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

 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
*/
/*

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.
*/
/*


 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 2018 Contributors (https://github.com/rrweb-io/rrweb/graphs/contributors) and SmartX Inc.
 SPDX-License-Identifier: MIT
*/
/*

 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 GS_,ea$,Zf_,Off,M$A,V$p,Zq,Tsf,bfF,MU,TS,v4F,wAU,ay,ff,$Ua,S_A,q_4,HA,lqf,RaS,s_,XAa,dUs,Qy$,pAf,n4f,mU_,Y_s,FS4,JiA,xUp,Zb,hS,Db,zai,El,iy,WSy,qW,fP,LSq,GC4,CP,uy,rSN,hES,Tjy,Yw,iPS,bPS,AS,vwa,wcy,$Wq,JS,DWS,xw,qlN,lbS,K3$,wW,fb_,kCF,vY,jWS,EV,abS,Xca,CyA,nws,mWp,ja,ySN,Yl_,ASF,F3S,JSs,xWU,Pyy,W3A,Njf,emS,Zds,Ma_,ECF,bdp,idf,nd,vCS,gCi,YC,Rmp,K8_,alF,flp,XYN,A2,Bj$,Fo,J2,BY,kAs,PY,oC4,HdF,dBN,NB,s8s,Q8F,Ilp,pYA,uoA,CHN,nC_,mBS,c2$,zA,y2S,F8$,BWp,PHp,MZ,zms,L84,ht,rt$,MZq,NWN,VZi,Tzs,DZy,Skf,
bjs,tZa,lv_,RXs,avA,Xw$,Hji,dZq,Q2i,pwy,n$a,ctA,YkS,Ata,Bzi,Nzs,Hw,Ge4,r6_,ZmN,Cj,uz,m_,Pw,zq,Lj,ims,Mg,wL$,qfS,lf4,R1A,jLp,b7,aff,wP,$5,Sr,qg,KYF,ff$,keF,HmS,dg_,sLS,QLi,If$,pLp,ua$,RL,l7,n5p,mgN,c6A,y6A,Yfi,A6p,FYy,J6s,oL,sf,Qw,IL,u7,xgA,nm,Ug4,GVU,cL,eGF,rx4,ZN$,A6,ON$,Mzi,VzS,Fa,DKp,x5,bN$,vff,PL,$K4,w24,SwN,qwf,tzf,gfA,WL,ldS,RG$,Ng,jPy,adq,Lm,GV,ez,rS,X2s,fdS,Kd4,Zd,HNA,dKS,ofS,MK,hx,Dd,Ew,iL,bL,sP4,QPS,p2p,CLU,nfF,mKa,cxa,YwU,yxN,Ax$,Sz,FdA,JxS,xKq,PLs,UKF,zGA,Wdi,NSa,LdF,gS,GX$,jz,aP,e$F,
OBa,MKp,VKs,T1A,DMs,EWA,wpq,$MS,SQa,qQp,tKa,gWf,lDF,XpN,fN,Kli,fD_,kXA,HB_,dMf,oW4,QF_,JA_,B14,xM$,z$S,Wlf,CN,N1S,et4,Ooy,MOU,VOs,hti,TwU,DIq,E8S,ioa,v8A,wOA,rBs,$Ia,SMS,qMa,tOA,g8$,l2p,RtN,jha,a24,ky$,KVp,o8F,HoS,dIF,I2A,pOU,CWi,shA,n84,Qh_,cBU,GX,YMF,eK,ZD,yBp,FV$,JBf,PWq,Ozi,ztF,UIA,Nwp,Gbi,WVs,EZp,hNf,izS,bzf,vZa,wXa,$0S,q9q,S9S,t1$,gZs,lYN,RNS,aYF,K0s,fYN,kbf,d0S,Hzi,yHs,hA,AHS,JHs,Bx$,x0y,P6S,U0A,W0q,NxF,L0i,w1,$W,GGF,Vmf,tA,g1,E1p,bra,jZp,fB,Ka4,fWa,o1p,Hrp,dtq,sQ,sZF,QZN,p_s,CqN,u_f,n1A,mtF,
cdF,Y5A,Ad$,Faa,BRU,JdS,Uta,YW,Fx,Wa_,NRq,LaF,Gcy,ez_,r04,OFy,VSN,MSa,OM,VD,SuF,EM,jci,aGq,iW,KBa,XG$,pGq,CAS,uF4,ma$,A0p,J0y,BLA,xai,PAa,zzi,NLf,LB$,$8,erq,lW,ZLs,OLf,M4S,hr4,rG4,Grq,V4U,tB,DhF,vcS,iLF,SsA,qs$,gcf,lRy,Rri,jQS,k8,aRS,Kfa,XgN,fR4,HL_,oh,NlN,OMp,hs_,V8S,EsA,po,vsp,no,cO,mV,qHq,bMs,t8N,lm$,RsF,AB,XJi,BO,x8,k2_,osi,Q5s,ImU,pJS,PO,CCa,zy,u1s,mxp,cT4,YHU,yT4,Fua,Gb,JTF,BeS,rx,M0,Uxp,zsq,WuA,GUq,eZf,ZtA,OtU,itF,btS,TE4,wUa,$Np,S0_,S1,tH,gx,lES,RZN,j1,jdF,aE_,XUS,KM_,kUi,Ht$,dNN,ou4,fES,
sdi,Kz,IEa,mNs,fz,nuq,cPS,QdS,Y0$,HX,AP4,FM_,JPa,BES,PY$,xNf,UNN,NEs,zZp,Gw$,VWF,Toi,Ey4,vya,bOy,iOq,wi4,SWN,tW_,qW$,lzS,m0,jpi,azy,Xii,KHS,HOs,oyN,dzi,sp$,Qp$,AH,IzS,piA,uRs,mzS,yb_,FH_,AbS,E5,JbF,ny_,Noy,Gn_,eBf,ryy,Sm,Z_y,Mqa,TJS,i_S,EJa,$nS,SKy,qK_,tqf,l_A,KCq,RBS,a_p,Xny,f_F,kns,dnS,H_$,sl4,oJ$,dR,Ql_,pnF,Cpa,cyA,nr,ma,YKp,yyF,c_,BJf,F_,Jd,B_,zBf,x1,LC_,zG,GFy,eTN,rha,ZQf,Lr,OQy,M6$,V6s,Tfy,Etp,vty,$ra,DG,S6$,q6F,t6y,gtp,lHN,RTN,jIp,aH$,bA,fHS,kF_,HQ_,dra,otf,sIa,QIS,IHi,pSS,Cw$,usS,nt4,mrp,
lA,WGi,Nfi,Rc,jS,ac,LGq,G1S,eDS,rXy,Zas,Oaf,MFF,ENF,ias,baS,vNf,w1S,k2,dL,oc,su,pF,CF,uA,SO4,mB,tFF,cG,gNs,lC$,Y2,RDp,jBi,aCp,QBs,p1U,cXy,Fkp,AXF,ICN,JXS,Pf4,TvF,Goa,vPp,rs_,bR_,wxA,x2,Sma,Uu,tDa,gPF,Rci,jRA,aQS,KrS,Na,kos,HRs,deF,oPp,sR$,QRa,IQq,fQN,u6S,nP$,me$,Gr,Jsp,Bvf,Fra,PDU,Uep,WrN,Nvq,zca,Msy,hIF,Dqy,iCs,Es,tsa,SY_,qYS,aM$,K2$,fMq,kai,HC4,dqf,ohS,lj,c_A,y_s,nh$,u0f,YYs,QgU,F2A,ePU,xqi,P1F,Uqi,i1i,vO4,EON,gOy,DkA,sg_,tvi,B2p,GhU,b1S,A_s,pQp,IM4,C1A,mq4,TpS,nL,Ipy,CZN,ufa,nOa,mkN,PZN,LO$,G_s,
Us,rIq,MVN,Do4,T8N,iWS,bWA,we$,S2S,$of,q2y,tVa,gb$,lV_,jHi,RLf,Dm,HWf,k_i,fVa,QHN,doS,IV_,sHN,pe$,Ctp,cIp,nbF,moy,yIs,JIS,B8U,UoU,zLA,Wvs,N8A,G4S,rZN,$s,OxS,hdq,MMs,T7S,bxS,vis,Sza,tMN,lC,R5,jNp,a9s,j8,a5,X4A,X1,KM,KLA,fM,f9i,ks,k44,Hxs,de,d$S,oiF,sNA,QNy,I94,CnU,p4i,nif,YzU,cZS,yZN,AZA,uTi,FL$,x$A,B7S,m$S,Pnq,U$$,pM,zd$,N7S,WLs,LL4,Gxf,rV_,epA,Zpf,uC,M0q,V0$,OpU,TBF,DSU,EUS,wzs,qeU,jr4,fk_,nM,dSf,oUp,mu,sr4,F1,JT,nU_,yk,PJ,mSU,cVs,yVf,AVS,JV_,xS$,PMp,USN,zpi,L$4,O2f,r3A,NBN,Mcy,Vcq,GU,Z2_,h5p,ZE,
TU$,D__,EjA,i2N,$_a,b2i,wsi,gjq,lgS,KKf,XsU,H2s,pss,Cgf,njq,c3N,Yip,A3p,FKy,J3i,x_y,PgF,U_F,NU$,rDA,Zli,LK$,M__,h3p,V_4,Ola,Tci,ESp,ili,blA,vSf,wos,$u,SC,gE,Rd,qg_,t_N,lwA,awS,jC,ad,XoS,Xp,kDU,Hly,duF,ft,poU,muy,Ygp,yDf,ADy,JD$,Bcq,xuU,z3f,HU,WZa,Gia,dE,eF$,M7f,od,TTs,s0,pt,Ct,DQa,iYA,EVS,vV4,wKp,$QF,SSN,bYs,RFa,jb4,XK4,fSq,oV4,dQA,sbs,IS4,pKs,CGS,uXS,nVs,mQS,c8S,A8$,YSS,Yu,J8p,yH,BTf,Fp,JP,xQ_,PGF,UQU,zFi,WTN,BU,NTf,LTS,Gjq,ekf,Z9S,O9p,Mga,VgU,hk4,D1f,Tdp,xu,b94,wf4,$1y,SAq,qAf,lXs,jU$,WU,XfS,fX4,
kja,H9y,d14,op$,sUS,QUA,IXq,RkA,aXy,pfy,CmU,cKa,YAq,yKy,AKs,O7q,h94,Tgi,DpS,Vfi,$pF,tfU,SB4,gv_,jsA,Xva,fFU,ovf,dpp,pvU,hb,Clq,uWs,Tw,nv4,Dz,mpp,cQN,YBU,AQi,yQq,F9$,JQq,Bgs,xp_,GRy,rYs,OVF,ZVi,W9A,UpA,Vk_,T_y,vMS,wuF,q3A,aia,Kys,vi,fiF,HVF,d4N,seq,Cdp,m4A,yYq,AYF,FyN,JYS,z7$,B_y,G8N,e2F,r9S,OS_,SW,MjA,h2S,Thi,Dw$,E6i,iSi,bSS,v6S,$wp,S4y,Rp,q4s,tj$,lOa,ap,g6$,j4A,fO4,ky,k8U,HSy,dwf,Q4s,IO_,o6_,C_q,c9a,Y4y,y9f,pO,A9S,xw4,P_i,mH,WiA,UwS,z2a,GMf,ej_,rON,VJU,D84,TQa,hjf,EAy,b6A,vAp,tJS,wVA,gAU,Rj$,lLN,
kMa,oAf,QaF,pVa,m8f,BQ_,lp,P9$,NQi,G$p,ty,ol,VRp,Eei,Dl$,bEq,veU,$lp,wtS,SIA,qI_,sK,YOF,hey,iEy,TqA,Hn,lZi,ReN,jCN,aZF,k$S,dlA,oef,sCN,QCU,IZS,Ay,pt4,CJi,urp,neS,mlU,xJ,coA,Aof,Joq,Bqs,LEs,eJN,rL_,Zhf,MXS,VX4,rf,Tk_,D6F,EBy,ihy,bhq,vB4,$6N,qZf,gBs,l7s,f7F,XhS,kt$,oBs,sTS,DH,QTN,I74,phf,nBy,cLU,m6_,yLq,FFU,vS,Bk_,x6_,JL_,Pri,U6y,WFS,LFU,NkS,G64,zJS,ehU,r44,ZbN,Obq,MUU,VUS,hhS,TFs,DGS,bbA,ib$,v0q,$Gq,wkf,wf,SDS,g0N,asA,qDS,fs_,k6_,HbS,dGf,Qqa,c4$,YDA,A4F,FcS,kt,POf,NF$,eif,HS,MGS,r5F,ZKA,OKf,VGN,iK$,
II,bKA,v94,$Ci,xCF,Piq,UCf,WQq,NDS,hKs,ZJU,MwN,D9_,T9_,E_$,iJy,v_q,$9p,q1$,g_N,lr4,jAS,QA$,CBS,n_p,m9F,cvN,Y1$,yvS,F6N,JvA,PBS,U9S,zKS,W6f,N9y,L6a,G3y,evf,O0i,THq,BS,xt,PS,Dmy,EmF,WS,b0F,RvA,k3s,KNf,FNF,JqA,BHN,wyN,lop,qEF,PoN,UmF,zv4,WN$,ao$,NHy,GZF,rES,MIF,VIp,hX,$Ri,qpy,gry,lAf,aA_,KjU,XH_,HX4,ors,nry,CK$,QkS,uSf,IAN,mRs,AEU,aB,Xq,NZi,URA,G5N,eqq,ZwS,Ows,fa,MP_,T5p,D2A,EEA,iwS,gE_,tP$,pa,K7U,c1,k5A,HwS,d2N,oEi,suy,Qup,I54,pFi,CXN,uzF,nE_,yl,m2U,cJA,YUp,yJS,AJi,F7U,JJq,B5S,Fq,x2_,PX_,U2U,zq_,W7$,
N5y,L7i,G7$,eni,rMq,ZHS,OH_,Mb$,B1,hn$,Dcq,iHi,wrS,q8y,tbA,gX$,Rni,anU,Xry,Kx$,rv,oXN,HHS,smF,Qma,Iny,u2A,nXy,mcs,Y84,wv,AMF,bD,JM4,BA$,$P,xcS,PQs,Uci,znf,qe,GE4,r$F,hQF,VHF,DYs,Ezi,X6,i5N,b5f,wdq,Saa,qa$,gza,l8f,$Yp,RQ$,f8y,oza,sY$,KR,QYa,I8p,mY_,pd_,uuS,nzS,J$$,Ya$,BGa,PN$,zQS,Wg4,NG_,Lg_,GPa,eHN,ZIA,OIp,MLS,VLa,hHS,DDA,iIf,wPq,tLF,RHi,aUa,fUS,QI,kPs,HIS,dDS,oqq,sDi,IU_,pPp,C8S,uAf,nqa,mDN,cmS,YLp,ymU,Amf,FA_,Bis,JmF,UD4,WAS,CR,NiS,eu4,GuA,OUN,M2S,V2F,Dj4,bU$,iUf,TMy,$jA,wEa,lTp,SJA,YP,t2N,kuF,
aT4,XES,KtF,fTf,HUi,o3S,djs,yI,As,n34,Q6S,uYF,C0F,ITf,pEy,YJS,AlA,Jly,FtN,BMA,zuF,Uj_,NM$,eyp,rc4,Gmp,ZyS,MB_,OyA,hyi,Exi,Um,iyU,byA,$3F,l6y,f6N,Wx,Hy$,oxN,p0S,I6A,s7s,Q74,r2,m3_,C2q,uO4,ccA,yc4,YT$,JcS,Bmp,P2f,U3f,zyq,WmS,Nmf,Gga,efi,qq,ZT$,OTS,Tr_,DOU,js,Eaf,bT_,Rfy,kh,S7p,l$$,q7S,teA,Knf,XaS,dOp,f$s,oaf,swU,d2,I$_,paa,CU4,QwU,Qb,umf,og,Y7U,PUi,UOi,zfi,Wn_,NrN,LnU,ZGA,eSp,rwy,GQS,Mpy,Tuq,iGp,bGy,wla,qvy,$bA,SvA,tpS,l0N,RSy,j0F,a0_,Xl_,Kb_,kQ_,Yh,dbS,Q0S,s0s,plU,I0$,CRi,uPs,mba,cwA,zS4,PRS,Lb_,GNN,
VYF,hli,T3N,DFF,EGy,ieU,wN4,$F4,Sds,tYi,gGs,leS,Rli,jf_,aeN,Kw_,feS,kNp,rp,sf4,oG_,dFp,He$,Ie_,ucy,pNf,mFs,cgN,Yd_,yg_,Agy,Fw$,Jg_,B3F,Wwq,xFF,Pva,UFN,N3y,LwA,GOS,zls,he,Z8q,M9S,O8a,Dp,V9i,Tti,DT4,EFS,h4p,i8$,b8S,vFa,w$S,$TS,qr_,t9N,gFq,l14,a1$,jKq,H8s,R4U,iZ,dTF,X$4,kOU,sKi,QKF,I1i,p$$,CVA,nFS,mTy,cuF,yui,FsN,BtU,PV_,LsN,WsS,Nta,z4_,UT_,Glf,lZ,eW_,RV,rz_,ZqS,K1,hWS,DdS,EoU,iqf,bq$,vop,wqF,kO,H5,goN,Scf,$d4,qc$,sJN,HqN,tlq,klS,md_,czF,Ycq,yzS,AzS,BCq,PIy,zWq,NCf,LUs,G0p,Ovp,ZvN,Moa,h6F,P5,Eli,ivq,
bvp,vls,w7s,$Ef,S$N,zh,W5,glN,lPy,jxS,K4i,sxs,uDF,CcN,nlq,crN,Y$y,yrN,ArS,F4S,Jr_,ZV,BIp,L4A,GpS,z6_,UE_,NIp,W4$,MxS,VxS,hCF,Ty_,DX4,ELN,vLS,bi$,iiF,jXy,lxp,axp,XRS,Kpi,Hi_,dXa,fxN,kpU,nLi,cn4,yns,FpN,Byi,PS4,Nyq,Lpp,Gf$,ZAN,rjp,exF,OAp,MAa,VAS,hx_,TaF,DfS,ETp,iA_,bAy,vTA,SC$,qCs,tAy,gTy,lJ4,Rxp,aJ_,XB_,KRy,fJ$,kf_,HAf,QnN,IJ$,Cu_,nT_,uip,mfS,SV,cjF,YC_,yjp,Aja,xfS,BaU,Puy,UfA,zxS,WRF,GYq,rCS,ZZs,OZp,MyF,Vy$,hbp,TO_,DLS,EDp,iZF,vDq,bZ_,wTF,$Ly,SGq,qG$,ty4,gDF,lNF,RbF,XK,aNA,XT4,fN4,kYp,HZN,dLi,oDS,
sOa,INS,pTN,uIN,He,cCS,JCN,AC$,yCN,YG4,FPA,BOs,xLf,PTF,WPy,NO4,LPA,GIy,rRi,Zga,Og4,VnU,MnN,hOf,T6q,DAq,bgU,vQy,wWp,$Af,SFq,qFU,l4p,ROq,ut,kIf,HgA,oQ4,I4S,Qvi,pWa,Cbf,nW,ce,nQ_,mAS,AI,FK,ARa,cRS,YF$,B6N,xAi,Pb$,UAN,Lqy,e0y,ra$,Zcs,OcS,M5U,h0A,TbU,DHf,Ekf,ics,bcS,vk_,xb,w3U,$Hf,U2,SxU,qxN,t5U,gka,l34,R0U,No,LW,jMN,a3_,G4,X3S,Kzy,f3_,kKF,dHp,ok4,QM$,nks,uva,C5s,mHq,caf,xHa,Aa4,Fzs,Jai,yap,BbN,P5F,z0U,r7,LzU,GTS,e__,rNF,Zuf,Mhy,h_F,E7y,wDU,bup,Z9,iuS,g7F,R_a,Oz,jzA,ayA,XDU,Kh4,fy$,HuS,dsp,o7N,Qzq,Iy_,
C$_,uVs,YR_,cNS,ANy,FhU,JNF,xsN,P$y,UsS,z_f,eV$,rfF,ZkS,Ok$,hVy,bn,w7,v4,ERS,ikA,bki,vR_,w6f,$iF,qo4,tt_,gRS,luq,jSA,au$,X6a,SM,KJF,fu4,di$,oRf,q$,tZ,Iuy,sS_,p6a,nRf,Ca$,miq,Yoy,jM,yff,AfS,BNS,PaF,aN,zVU,WJS,NN_,LJa,GkU,eRA,rpf,Z$i,hRp,EHN,TXa,D5$,i$S,$5s,b$y,wMS,Sj$,qjN,tuq,RRs,j3s,aIA,KXA,fIf,Q3q,s3f,m5p,ypS,QM,App,F0a,FX4,Jp$,x5s,zR4,WXN,ODF,MQ_,VQA,h8a,T44,DJ_,iDS,bDy,wja,Sys,vg_,$Ji,tQi,qyp,lBs,aBS,R8y,XjF,Ko$,fB$,kva,HDN,dJ$,s1s,og4,CkF,mJS,uhN,cWp,YyU,yWa,yM,AWN,FoF,FT,B4$,JWU,xJS,UJU,Pky,
LoS,GdA,rkp,Z4F,Mdp,Vdf,hMU,T$S,i4$,vna,Sta,$Va,qtS,tdp,gnA,jtU,QtS,fai,pI4,CP_,nnq,mVS,Aka,FDS,Jky,B$F,xVi,PPq,zM4,WDy,N$_,LDA,r7N,Onf,ZnU,DPq,EYq,in_,bn4,vYp,wms,$Ps,qni,lcs,RoS,jjF,acy,Xmf,KW$,Hns,k9i,sjS,Ici,pmN,Csy,uey,nYy,c7s,mP4,y7i,xP4,WWs,zo$,Nni,LW4,GLf,rFf,wB,Osi,tV,VNA,TK_,Dyi,wCi,SX_,gI4,RY_,jEf,XCS,K1$,fhA,HsN,oIF,sEA,IhS,u7f,C3s,pCS,Xb,mya,nI$,cFA,YXa,yFA,AFA,F1_,JFA,BKy,P3q,UyS,zYi,W1i,NKF,L1S,GHf,eAA,rUF,O3a,MiU,vdS,w8y,$7U,qqA,tiS,gdf,j9y,se,H3y,d7F,s9y,Q9S,Iji,p8_,Chq,Ir,MI,pp,
uM,BV$,x7f,zA4,NVq,Weq,m$,Le$,GSl,eaE;GS_=function(){var G,e;return typeof CSS!=="undefined"&&((e=(G=CSS).supports)==null?void 0:e.call(G,"selector(:has(*))"))};
ea$=function(G){return G.visibility!=="hidden"&&G.display!=="none"};
Zf_=function(G){if(GS_()||G.tagName!=="DETAILS"?!G.matches(riS):G.querySelector("summary")!==null)return-1;G=G.getAttribute("tabindex")||"0";return Number(G)};
Off=function(G){return G.some(function(e){return Zf_(e)>0})};
M$A=function(G){if(G.textContent||G.ariaLabel)return!0;if(G instanceof HTMLInputElement){if(!G.labels)return!1;G=_.h(G.labels);for(var e=G.next();!e.done;e=G.next())if(e.value.textContent)return!0}return!1};
V$p=function(G){return G.sort(function(e,r){return Zf_(r)-Zf_(e)})};
_.ha_=function(G){G=Array.from(G.querySelectorAll(riS)).filter(function(e){return(ea$(e.style)?ea$(window.getComputedStyle(e)):!1)&&M$A(e)});
return Off(G)?V$p(G):G};
_.rs=function(G,e){if(Error.captureStackTrace)Error.captureStackTrace(this,_.rs);else{var r=Error().stack;r&&(this.stack=r)}G&&(this.message=String(G));e!==void 0&&(this.cause=e)};
Zq=function(){throw Error("E");};
Tsf=function(G,e){e=String.fromCharCode.apply(null,e);return G==null?e:G+e};
bfF=function(G){var e=!1;e=e===void 0?!1:e;if(DUi){if(e&&(E4S?!G.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(G)))throw Error("F");G=(ify||(ify=new TextEncoder)).encode(G)}else{for(var r=0,Z=new Uint8Array(3*G.length),O=0;O<G.length;O++){var M=G.charCodeAt(O);if(M<128)Z[r++]=M;else{if(M<2048)Z[r++]=M>>6|192;else{if(M>=55296&&M<=57343){if(M<=56319&&O<G.length){var T=G.charCodeAt(++O);if(T>=56320&&T<=57343){M=(M-55296)*1024+T-56320+65536;Z[r++]=M>>18|
240;Z[r++]=M>>12&63|128;Z[r++]=M>>6&63|128;Z[r++]=M&63|128;continue}else O--}if(e)throw Error("F");M=65533}Z[r++]=M>>12|224;Z[r++]=M>>6&63|128}Z[r++]=M&63|128}}G=r===Z.length?Z:Z.subarray(0,r)}return G};
MU=function(G){_.O_.setTimeout(function(){throw G;},0)};
_.Vp=function(G,e){return G.lastIndexOf(e,0)==0};
TS=function(G,e){var r=G.length-e.length;return r>=0&&G.indexOf(e,r)==r};
_.iF=function(G){return/^[\s\xa0]*$/.test(G)};
_.vA=function(G,e){return G.indexOf(e)!=-1};
_.ws=function(G,e){return _.vA(G.toLowerCase(),e.toLowerCase())};
_.S$=function(G,e){var r=0;G=$4(String(G)).split(".");e=$4(String(e)).split(".");for(var Z=Math.max(G.length,e.length),O=0;r==0&&O<Z;O++){var M=G[O]||"",T=e[O]||"";do{M=/(\d*)(\D*)(.*)/.exec(M)||["","","",""];T=/(\d*)(\D*)(.*)/.exec(T)||["","","",""];if(M[0].length==0&&T[0].length==0)break;r=v4F(M[1].length==0?0:parseInt(M[1],10),T[1].length==0?0:parseInt(T[1],10))||v4F(M[2].length==0,T[2].length==0)||v4F(M[2],T[2]);M=M[3];T=T[3]}while(r==0)}return r};
v4F=function(G,e){return G<e?-1:G>e?1:0};
_.gs=function(){var G=_.O_.navigator;return G&&(G=G.userAgent)?G:""};
wAU=function(G){if(!lF||!j$)return!1;for(var e=0;e<j$.brands.length;e++){var r=j$.brands[e].brand;if(r&&_.vA(r,G))return!0}return!1};
ay=function(G){return _.vA(_.gs(),G)};
ff=function(){return lF?!!j$&&j$.brands.length>0:!1};
$Ua=function(){return ff()?!1:ay("Opera")};
S_A=function(){return ff()?!1:ay("Trident")||ay("MSIE")};
q_4=function(){return ff()?wAU("Microsoft Edge"):ay("Edg/")};
HA=function(){return ay("Firefox")||ay("FxiOS")};
_.t$S=function(){return ay("Safari")&&!(_.oy()||(ff()?0:ay("Coast"))||$Ua()||(ff()?0:ay("Edge"))||q_4()||(ff()?wAU("Opera"):ay("OPR"))||HA()||ay("Silk")||ay("Android"))};
_.oy=function(){return ff()?wAU("Chromium"):(ay("Chrome")||ay("CriOS"))&&!(ff()?0:ay("Edge"))||ay("Silk")};
_.g4p=function(){return ay("Android")&&!(_.oy()||HA()||$Ua()||ay("Silk"))};
lqf=function(G){var e={};G.forEach(function(r){e[r[0]]=r[1]});
return function(r){return e[r.find(function(Z){return Z in e})]||""}};
RaS=function(G){var e=_.gs();if(G==="Internet Explorer"){if(S_A())if((G=/rv: *([\d\.]*)/.exec(e))&&G[1])e=G[1];else{G="";var r=/MSIE +([\d\.]+)/.exec(e);if(r&&r[1])if(e=/Trident\/(\d.\d)/.exec(e),r[1]=="7.0")if(e&&e[1])switch(e[1]){case "4.0":G="8.0";break;case "5.0":G="9.0";break;case "6.0":G="10.0";break;case "7.0":G="11.0"}else G="7.0";else G=r[1];e=G}else e="";return e}var Z=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");r=[];for(var O;O=Z.exec(e);)r.push([O[1],O[2],O[3]||void 0]);
e=lqf(r);switch(G){case "Opera":if($Ua())return e(["Version","Opera"]);if(ff()?wAU("Opera"):ay("OPR"))return e(["OPR"]);break;case "Microsoft Edge":if(ff()?0:ay("Edge"))return e(["Edge"]);if(q_4())return e(["Edg"]);break;case "Chromium":if(_.oy())return e(["Chrome","CriOS","HeadlessChrome"])}return G==="Firefox"&&HA()||G==="Safari"&&_.t$S()||G==="Android Browser"&&_.g4p()||G==="Silk"&&ay("Silk")?(e=r[2])&&e[1]||"":""};
_.jyS=function(G){if(ff()&&G!=="Silk"){var e=j$.brands.find(function(r){return r.brand===G});
if(!e||!e.version)return NaN;e=e.version.split(".")}else{e=RaS(G);if(e==="")return NaN;e=e.split(".")}return e.length===0?NaN:Number(e[0])};
s_=function(){return lF?!!j$&&!!j$.platform:!1};
_.aq4=function(){return s_()?j$.platform==="Android":ay("Android")};
XAa=function(){return ay("iPhone")&&!ay("iPod")&&!ay("iPad")};
_.Qp=function(){return XAa()||ay("iPad")||ay("iPod")};
_.KSq=function(){return s_()?j$.platform==="macOS":ay("Macintosh")};
_.fq_=function(){return s_()?j$.platform==="Windows":ay("Windows")};
_.kSp=function(){return s_()?j$.platform==="Chrome OS":ay("CrOS")};
_.pf=function(G){return G[G.length-1]};
_.Cf=function(G,e,r){e=_.HfF(G,e,r);return e<0?null:typeof G==="string"?G.charAt(e):G[e]};
_.HfF=function(G,e,r){for(var Z=G.length,O=typeof G==="string"?G.split(""):G,M=0;M<Z;M++)if(M in O&&e.call(r,O[M],M,G))return M;return-1};
dUs=function(G){for(var e=_.uF,r=typeof G==="string"?G.split(""):G,Z=G.length-1;Z>=0;Z--)if(Z in r&&e.call(void 0,r[Z],Z,G))return Z;return-1};
_.Y4=function(G,e){return _.cA(G,e)>=0};
_.o4S=function(G,e){_.Y4(G,e)||G.push(e)};
_.yp=function(G,e){e=_.cA(G,e);var r;(r=e>=0)&&_.sys(G,e);return r};
_.sys=function(G,e){Array.prototype.splice.call(G,e,1)};
_.Ai=function(G){var e=G.length;if(e>0){for(var r=Array(e),Z=0;Z<e;Z++)r[Z]=G[Z];return r}return[]};
_.Ji=function(G,e){for(var r=1;r<arguments.length;r++){var Z=arguments[r];if(_.FN(Z)){var O=G.length||0,M=Z.length||0;G.length=O+M;for(var T=0;T<M;T++)G[O+T]=Z[T]}else G.push(Z)}};
_.Iqp=function(G,e,r,Z){Array.prototype.splice.apply(G,Qy$(arguments,1))};
Qy$=function(G,e,r){return arguments.length<=2?Array.prototype.slice.call(G,e):Array.prototype.slice.call(G,e,r)};
pAf=function(G,e){e=e||G;for(var r=0,Z=0,O={};Z<G.length;){var M=G[Z++],T=_.PA(M)?"o"+_.zS(M):(typeof M).charAt(0)+M;Object.prototype.hasOwnProperty.call(O,T)||(O[T]=!0,e[r++]=M)}e.length=r};
_.uNS=function(G,e,r){r=r||_.CFA;for(var Z=0,O=G.length,M;Z<O;){var T=Z+(O-Z>>>1);var E=r(e,G[T]);E>0?Z=T+1:(O=T,M=!E)}return M?Z:-Z-1};
_.WA=function(G,e,r){if(!_.FN(G)||!_.FN(e)||G.length!=e.length)return!1;var Z=G.length;r=r||n4f;for(var O=0;O<Z;O++)if(!r(G[O],e[O]))return!1;return!0};
_.CFA=function(G,e){return G>e?1:G<e?-1:0};
n4f=function(G,e){return G===e};
mU_=function(G,e,r){e=Array.prototype.splice.call(G,e,1);Array.prototype.splice.call(G,r,0,e[0])};
Y_s=function(G){return ci$[G]||""};
FS4=function(G){if(!yif)return _.NU(G);G=Ais.test(G)?G.replace(Ais,Y_s):G;G=atob(G);for(var e=new Uint8Array(G.length),r=0;r<G.length;r++)e[r]=G.charCodeAt(r);return e};
JiA=function(G,e){G.__closure__error__context__984382||(G.__closure__error__context__984382={});G.__closure__error__context__984382.severity=e};
_.eE=function(G){G=Error(G);JiA(G,"warning");return G};
xUp=function(G,e){if(G!=null){var r;var Z=(r=Bsf)!=null?r:Bsf={};r=Z[G]||0;r>=e||(Z[G]=r+1,G=Error(),JiA(G,"incident"),MU(G))}};
Zb=function(G,e,r){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(r===void 0?0:r)&&Symbol.for&&G?Symbol.for(G):G!=null?Symbol(G):Symbol():e};
hS=function(G,e){Ol||_.MW in G||PFN(G,UUS);G[_.MW]|=e};
Db=function(G,e){Ol||_.MW in G||PFN(G,UUS);G[_.MW]=e};
zai=function(G){if(4&G)return 512&G?512:1024&G?1024:0};
El=function(G){hS(G,34);return G};
iy=function(G){hS(G,8192);return G};
WSy=function(G){hS(G,32);return G};
qW=function(){return typeof BigInt==="function"};
fP=function(G,e){return e===void 0?G.copyOnWrite!==jE&&!!(2&(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.MW]|0)):!!(2&e)&&G.copyOnWrite!==jE};
_.Qv=function(G,e){if(G!=null)if(typeof G==="string")G=G?new dj(G,oW):_.sl();else if(G.constructor!==dj)if(NsS&&G!=null&&G instanceof Uint8Array)G=G.length?new dj(new Uint8Array(G),oW):_.sl();else{if(!e)throw Error();G=void 0}return G};
LSq=function(G,e){if(typeof e!=="number"||e<0||e>=G.length)throw Error();};
GC4=function(G,e,r){var Z=e&128?0:-1,O=G.length,M;if(M=!!O)M=G[O-1],M=M!=null&&typeof M==="object"&&M.constructor===Object;var T=O+(M?-1:0);for(e=e&128?1:0;e<T;e++)r(e-Z,G[e]);if(M){G=G[O-1];for(var E in G)!isNaN(E)&&r(+E,G[E])}};
CP=function(G){return G&128?pP:void 0};
uy=function(G){G.isGuard_doNotManuallySetPrettyPlease=!0;return G};
rSN=function(){var G=eEU;return uy(function(e){for(var r in G)if(e===G[r]&&!/^[0-9]+$/.test(r))return!0;return!1})};
_.nP=function(G){var e=G;if(ZPp(e)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(e))throw Error(String(e));}else if(OP4(e)&&!Number.isSafeInteger(e))throw Error(String(e));return ME_?BigInt(G):G=VE4(G)?G?"1":"0":ZPp(G)?G.trim()||"0":String(G)};
hES=function(G,e){if(G.length>e.length)return!1;if(G.length<e.length||G===e)return!0;for(var r=0;r<G.length;r++){var Z=G[r],O=e[r];if(Z>O)return!1;if(Z<O)return!0}};
Tjy=function(G){var e=G>>>0;m3=e;cc=(G-e)/4294967296>>>0};
Yw=function(G){if(G<0){Tjy(-G);var e=_.h(DWS(m3,cc));G=e.next().value;e=e.next().value;m3=G>>>0;cc=e>>>0}else Tjy(G)};
iPS=function(G){var e=EwS||(EwS=new DataView(new ArrayBuffer(8)));e.setFloat32(0,+G,!0);cc=0;m3=e.getUint32(0,!0)};
bPS=function(G,e){var r=e*4294967296+(G>>>0);return Number.isSafeInteger(r)?r:_.yv(G,e)};
AS=function(G,e){var r=e&2147483648;r&&(G=~G+1>>>0,e=~e>>>0,G==0&&(e=e+1>>>0));G=bPS(G,e);return typeof G==="number"?r?-G:G:r?"-"+G:G};
vwa=function(G){var e=m3,r=cc,Z=r>>31;r=(r<<1|e>>>31)^Z;G(e<<1^Z,r)};
wcy=function(G,e){var r=-(G&1);G=(G>>>1|e<<31)^r;return AS(G,e>>>1^r)};
_.yv=function(G,e){e>>>=0;G>>>=0;if(e<=2097151)var r=""+(4294967296*e+G);else qW()?r=""+(BigInt(e)<<BigInt(32)|BigInt(G)):(r=(G>>>24|e<<8)&16777215,e=e>>16&65535,G=(G&16777215)+r*6777216+e*6710656,r+=e*8147497,e*=2,G>=1E7&&(r+=G/1E7>>>0,G%=1E7),r>=1E7&&(e+=r/1E7>>>0,r%=1E7),r=e+$Wq(r)+$Wq(G));return r};
$Wq=function(G){G=String(G);return"0000000".slice(G.length)+G};
_.Sla=function(G,e){e&2147483648?qW()?G=""+(BigInt(e|0)<<BigInt(32)|BigInt(G>>>0)):(e=_.h(DWS(G,e)),G=e.next().value,e=e.next().value,G="-"+_.yv(G,e)):G=_.yv(G,e);return G};
JS=function(G){if(G.length<16)Yw(Number(G));else if(qW())G=BigInt(G),m3=Number(G&BigInt(4294967295))>>>0,cc=Number(G>>BigInt(32)&BigInt(4294967295));else{var e=+(G[0]==="-");cc=m3=0;for(var r=G.length,Z=e,O=(r-e)%6+e;O<=r;Z=O,O+=6)Z=Number(G.slice(Z,O)),cc*=1E6,m3=m3*1E6+Z,m3>=4294967296&&(cc+=Math.trunc(m3/4294967296),cc>>>=0,m3>>>=0);e&&(e=_.h(DWS(m3,cc)),G=e.next().value,e=e.next().value,m3=G,cc=e)}};
DWS=function(G,e){e=~e;G?G=~G+1:e+=1;return[G,e]};
xw=function(G){return Array.prototype.slice.call(G)};
_.zC=function(G,e){throw Error(e===void 0?"unexpected value "+G+"!":e);};
_.Wc=function(G){if(G!=null&&typeof G!=="number")throw Error("L`"+typeof G+"`"+G);return G};
_.NW=function(G){if(G==null||typeof G==="number")return G;if(G==="NaN"||G==="Infinity"||G==="-Infinity")return Number(G)};
qlN=function(G){if(G!=null&&typeof G!=="boolean")throw Error("M`"+_.LP(G)+"`"+G);return G};
_.tEF=function(G){if(G==null||typeof G==="boolean")return G;if(typeof G==="number")return!!G};
_.rW=function(G){switch(typeof G){case "bigint":return!0;case "number":return GA(G);case "string":return gw$.test(G);default:return!1}};
_.MB=function(G){if(!GA(G))throw _.eE("enum");return G|0};
_.VW=function(G){return G==null?G:GA(G)?G|0:void 0};
lbS=function(G){if(typeof G!=="number")throw _.eE("int32");if(!GA(G))throw _.eE("int32");return G|0};
_.TA=function(G){return G==null?G:lbS(G)};
_.Dl=function(G){if(G==null)return G;if(typeof G==="string"&&G)G=+G;else if(typeof G!=="number")return;return GA(G)?G|0:void 0};
_.REi=function(G){if(G==null)return G;if(typeof G==="string"&&G)G=+G;else if(typeof G!=="number")return;return GA(G)?G>>>0:void 0};
K3$=function(G){var e=0;e=e===void 0?0:e;if(!_.rW(G))throw _.eE("int64");var r=typeof G;switch(e){case 512:switch(r){case "string":return EV(G);case "bigint":return String(iH(64,G));default:return jWS(G)}case 1024:switch(r){case "string":return abS(G);case "bigint":return _.nP(iH(64,G));default:return Xca(G)}case 0:switch(r){case "string":return EV(G);case "bigint":return _.nP(iH(64,G));default:return vY(G)}default:return _.zC(e,"Unknown format requested type for int64")}};
wW=function(G){return G==null?G:K3$(G)};
fb_=function(G){var e=G.length;if(G[0]==="-"?e<20||e===20&&G<="-9223372036854775808":e<19||e===19&&G<="9223372036854775807")return G;JS(G);return _.Sla(m3,cc)};
kCF=function(G){if(G[0]==="-")var e=!1;else e=G.length,e=e<20?!0:e===20&&G<="18446744073709551615";if(e)return G;JS(G);return _.yv(m3,cc)};
vY=function(G){G=$C(G);Sa(G)||(Yw(G),G=AS(m3,cc));return G};
_.HPS=function(G){G=$C(G);G>=0&&Sa(G)||(Yw(G),G=bPS(m3,cc));return G};
jWS=function(G){G=$C(G);Sa(G)?G=String(G):(Yw(G),G=_.Sla(m3,cc));return G};
_.dWa=function(G){G=$C(G);G>=0&&Sa(G)?G=String(G):(Yw(G),G=_.yv(m3,cc));return G};
EV=function(G){var e=$C(Number(G));if(Sa(e))return String(e);e=G.indexOf(".");e!==-1&&(G=G.substring(0,e));return fb_(G)};
abS=function(G){var e=$C(Number(G));if(Sa(e))return _.nP(e);e=G.indexOf(".");e!==-1&&(G=G.substring(0,e));return qW()?_.nP(iH(64,BigInt(G))):_.nP(fb_(G))};
Xca=function(G){return Sa(G)?_.nP(vY(G)):_.nP(jWS(G))};
_.owp=function(G){return Sa(G)?_.nP(_.HPS(G)):_.nP(_.dWa(G))};
_.sWS=function(G){var e=$C(Number(G));if(Sa(e)&&e>=0)return String(e);e=G.indexOf(".");e!==-1&&(G=G.substring(0,e));return kCF(G)};
_.QWa=function(G){var e=$C(Number(G));if(Sa(e)&&e>=0)return _.nP(e);e=G.indexOf(".");e!==-1&&(G=G.substring(0,e));return qW()?_.nP((0,_.qB)(64,BigInt(G))):_.nP(kCF(G))};
_.pcs=function(G){if(G==null)return G;if(typeof G==="bigint")return Ibf(G)?G=Number(G):(G=iH(64,G),G=Ibf(G)?Number(G):String(G)),G;if(_.rW(G))return typeof G==="number"?vY(G):EV(G)};
CyA=function(G,e){e=e===void 0?!1:e;var r=typeof G;if(G==null)return G;if(r==="bigint")return String(iH(64,G));if(_.rW(G))return r==="string"?EV(G):e?jWS(G):vY(G)};
_.un$=function(G){var e=typeof G;if(G==null)return G;if(e==="bigint")return _.nP(iH(64,G));if(_.rW(G))return e==="string"?abS(G):Xca(G)};
nws=function(G){if(G==null)return G;var e=typeof G;if(e==="bigint")return String(iH(64,G));if(_.rW(G)){if(e==="string")return EV(G);if(e==="number")return vY(G)}};
mWp=function(G){if(G==null)return G;var e=typeof G;if(e==="bigint")return String((0,_.qB)(64,G));if(_.rW(G)){if(e==="string")return _.sWS(G);if(e==="number")return _.HPS(G)}};
_.R8=function(G){if(typeof G!=="string")throw Error();return G};
ja=function(G){if(G!=null&&typeof G!=="string")throw Error();return G};
_.Xo=function(G){return G==null||typeof G==="string"?G:void 0};
ySN=function(G,e,r,Z){if(G!=null&&G[Kd]===HY)return G;if(!Array.isArray(G))return r?Z&2?e[cS4]||(e[cS4]=Yl_(e)):new e:void 0;r=G[_.MW]|0;Z=r|Z&32|Z&2;Z!==r&&Db(G,Z);return new e(G)};
Yl_=function(G){G=new G;El(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return G};
ASF=function(G,e,r){G=e?lbS(G):_.Dl(G);return G==null?r?0:void 0:G|0};
F3S=function(G){return G};
JSs=function(G){return G};
xWU=function(G,e,r,Z,O,M){G=ySN(G,Z,r,M);O&&(G=Bj$(G));return G};
Pyy=function(G){return[G,this.get(G)]};
W3A=function(){return UWN||(UWN=new dW(El([]),void 0,void 0,void 0,zES))};
Njf=function(G){var e=I8(pd);return e?G[e]:void 0};
emS=function(G,e){var r=r===void 0?!1:r;if(I8(L3F)&&I8(pd)&&void 0===L3F){var Z=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=Z[pd];if(!O)return;if(O=O.reviveUnknownFields)try{O(Z,e,GAS);return}catch(M){MU(M)}}r&&(G=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(r=I8(pd))&&r in G&&(G=G[r])&&delete G[e])};
Zds=function(G,e){var r=I8(pd),Z;Ol&&r&&((Z=G[r])==null?void 0:Z[e])!=null&&xUp(r2F,3)};
Ma_=function(G,e){e<100||xUp(Odq,1)};
ECF=function(G,e,r,Z){var O=Z!==void 0;Z=!!Z;var M=I8(pd),T;!O&&Ol&&M&&(T=G[M])&&VaF(T,Ma_);M=[];var E=G.length;T=4294967295;var b=!1,w=!!(e&64),q=w?e&128?0:-1:void 0;if(!(e&1)){var t=E&&G[E-1];t!=null&&typeof t==="object"&&t.constructor===Object?(E--,T=E):t=void 0;if(w&&!(e&128)&&!O){b=!0;var g;T=((g=hmS)!=null?g:F3S)(T-q,q,G,t,void 0)+q}}e=void 0;for(g=0;g<E;g++){var l=G[g];if(l!=null&&(l=r(l,Z))!=null)if(w&&g>=T){var X=g-q,H=void 0;((H=e)!=null?H:e={})[X]=l}else M[g]=l}if(t)for(var I in t)E=t[I],
E!=null&&(E=r(E,Z))!=null&&(g=+I,l=void 0,w&&!Number.isNaN(g)&&(l=g+q)<T?M[l]=E:(g=void 0,((g=e)!=null?g:e={})[I]=E));e&&(b?M.push(e):M[T]=e);O&&I8(pd)&&(G=Njf(G))&&G instanceof TW4&&(M[pd]=DBU(G));return M};
bdp=function(G){G[0]=idf(G[0]);G[1]=idf(G[1]);return G};
idf=function(G){switch(typeof G){case "number":return Number.isFinite(G)?G:""+G;case "bigint":return Ibf(G)?Number(G):""+G;case "boolean":return G?1:0;case "object":if(Array.isArray(G)){var e=G[_.MW]|0;return G.length===0&&e&1?void 0:ECF(G,e,idf)}if(G!=null&&G[Kd]===HY)return vCS(G);if(G instanceof dj){e=G.JSC$8829_value_;if(e==null)G="";else if(typeof e==="string")G=e;else{if(yif){for(var r="",Z=0,O=e.length-10240;Z<O;)r+=String.fromCharCode.apply(null,e.subarray(Z,Z+=10240));r+=String.fromCharCode.apply(null,
Z?e.subarray(Z):e);e=btoa(r)}else e=_.uH(e);G=G.JSC$8829_value_=e}return G}if(G instanceof dW)return G=G.size!==0?wYA(G,bdp):void 0,G;return}return G};
nd=function(G,e){if(e){hmS=e==null||e===F3S||e[$Bi]!==SVq?F3S:e;try{return vCS(G)}finally{hmS=void 0}}return vCS(G)};
vCS=function(G){G=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return ECF(G,G[_.MW]|0,idf)};
gCi=function(G){switch(typeof G){case "boolean":return qVA||(qVA=[0,void 0,!0]);case "number":return G>0?void 0:G===0?tay||(tay=[0,void 0]):[-G,void 0];case "string":return[0,G];case "object":return G}};
YC=function(G,e,r){return G=_.cY(G,e[0],e[1],r?1:2)};
_.cY=function(G,e,r,Z){Z=Z===void 0?0:Z;if(G==null){var O=32;r?(G=[r],O|=128):G=[];e&&(O=O&-16760833|(e&1023)<<14)}else{if(!Array.isArray(G))throw Error("O");O=G[_.MW]|0;if(lls&&1&O)throw Error("P");2048&O&&!(2&O)&&Rmp();if(O&256)throw Error("Q");if(O&64)return Z!==0||O&2048||Db(G,O|2048),G;if(r&&(O|=128,r!==G[0]))throw Error("R");a:{r=G;O|=64;var M=r.length;if(M){var T=M-1,E=r[T];if(E!=null&&typeof E==="object"&&E.constructor===Object){e=O&128?0:-1;T-=e;if(T>=1024)throw Error("T");for(var b in E)M=
+b,M<T&&(r[M+e]=E[b],delete E[b]);O=O&-16760833|(T&1023)<<14;break a}}if(e){b=Math.max(e,M-(O&128?0:-1));if(b>1024)throw Error("U");O=O&-16760833|(b&1023)<<14}}}O|=64;Z===0&&(O|=2048);Db(G,O);return G};
Rmp=function(){if(lls)throw Error("S");xUp(j84,5)};
K8_=function(G,e){if(typeof G!=="object")return G;if(Array.isArray(G)){var r=G[_.MW]|0;return G.length===0&&r&1?void 0:alF(G,r,e)}if(G!=null&&G[Kd]===HY)return XYN(G);if(G instanceof dW){e=G.arrayState;if(e&2)return G;if(!G.size)return;r=El(wYA(G));if(G.valueCtor)for(G=0;G<r.length;G++){var Z=r[G],O=Z[1];O==null||typeof O!=="object"?O=void 0:O!=null&&O[Kd]===HY?O=XYN(O):Array.isArray(O)?O=alF(O,O[_.MW]|0,!!(e&32)):O=void 0;Z[1]=O}return r}if(G instanceof dj)return G};
alF=function(G,e,r){if(e&2)return G;!r||4096&e||16&e?G=A2(G,e,!1,r&&!(e&16)):(hS(G,34),e&4&&Object.freeze(G));return G};
flp=function(G,e,r){G=new G.constructor(e);r&&(G.copyOnWrite=jE);G.noLegacyNull=jE;return G};
XYN=function(G){var e=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,r=e[_.MW]|0;return fP(G,r)?G:kAs(G,e,r)?flp(G,e):A2(e,r)};
A2=function(G,e,r,Z){Z!=null||(Z=!!(34&e));G=ECF(G,e,K8_,Z);Z=32;r&&(Z|=2);e=e&16769217|Z;Db(G,e);return G};
Bj$=function(G){var e=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,r=e[_.MW]|0;return fP(G,r)?kAs(G,e,r)?flp(G,e,!0):new G.constructor(A2(e,r,!1)):G};
Fo=function(G){if(G.copyOnWrite!==jE)return!1;var e=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;e=A2(e,e[_.MW]|0);hS(e,2048);G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=e;G.copyOnWrite=void 0;G.noLegacyNull=void 0;return!0};
J2=function(G){if(!Fo(G)&&fP(G,G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.MW]|0))throw Error();};
BY=function(G,e){e===void 0&&(e=G[_.MW]|0);e&32&&!(e&4096)&&Db(G,e|4096)};
kAs=function(G,e,r){return r&2?!0:r&32&&!(r&4096)?(Db(e,r|2),G.copyOnWrite=jE,!0):!1};
PY=function(G,e,r,Z,O){var M=r+(O?0:-1),T=G.length-1;if(T>=1+(O?0:-1)&&M>=T){var E=G[T];if(E!=null&&typeof E==="object"&&E.constructor===Object)return E[r]=Z,e}if(M<=T)return G[M]=Z,e;if(Z!==void 0){var b;T=((b=e)!=null?b:e=G[_.MW]|0)>>14&1023||536870912;r>=T?Z!=null&&(M={},G[T+(O?0:-1)]=(M[r]=Z,M)):G[M]=Z}return e};
_.WY=function(G,e,r,Z,O){var M=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,T=M[_.MW]|0;Z=fP(G,T)?1:Z;O=!!O||Z===3;Z===2&&Fo(G)&&(M=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,T=M[_.MW]|0);G=HdF(M,e);var E=G===UV?7:G[_.MW]|0,b=dBN(E,T);var w=4&b?!1:!0;if(w){4&b&&(G=xw(G),E=0,b=zA(b,T),T=PY(M,T,e,G));for(var q=0,t=0;q<G.length;q++){var g=r(G[q]);g!=null&&(G[t++]=g)}t<q&&(G.length=t);r=(b|4)&-513;b=r&=-1025;b&=-4097}b!==E&&(Db(G,b),2&b&&Object.freeze(G));return G=oC4(G,b,M,
T,e,Z,w,O)};
oC4=function(G,e,r,Z,O,M,T,E){var b=e;M===1||(M!==4?0:2&e||!(16&e)&&32&Z)?NB(e)||(e|=!G.length||T&&!(4096&e)||32&Z&&!(4096&e||16&e)?2:256,e!==b&&Db(G,e),Object.freeze(G)):(M===2&&NB(e)&&(G=xw(G),b=0,e=zA(e,Z),Z=PY(r,Z,O,G)),NB(e)||(E||(e|=16),e!==b&&Db(G,e)));2&e||!(4096&e||16&e)||BY(r,Z);return G};
HdF=function(G,e,r){G=Ld(G,e,r);return Array.isArray(G)?G:UV};
dBN=function(G,e){2&e&&(G|=2);return G|1};
NB=function(G){return!!(2&G)&&!!(4&G)||!!(256&G)};
s8s=function(G){return _.Qv(G,!0)};
Q8F=function(G){G=xw(G);for(var e=0;e<G.length;e++){var r=G[e]=xw(G[e]);Array.isArray(r[1])&&(r[1]=El(r[1]))}return iy(G)};
Ilp=function(G,e){var r=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=r[_.MW]|0;a:{var O=Z;Z=fP(G,Z);!Z&&Fo(G)&&(r=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=r[_.MW]|0);var M=Ld(r,e);G=!1;if(M==null){if(Z){e=W3A();break a}M=[]}else if(M.constructor===dW)if(M.arrayState&2&&!Z)M=wYA(M);else{e=M;break a}else Array.isArray(M)?G=!!((M[_.MW]|0)&2):M=[];if(Z){if(!M.length){e=W3A();break a}G||(G=!0,El(M))}else G&&(G=!1,iy(M),M=Q8F(M));!G&&O&32&&WSy(M);Z=new dW(M,void 0,ASF,ASF);
O=PY(r,O,e,Z);G||BY(r,O);e=Z}return e};
_.Gq=function(G,e,r,Z){J2(G);var O=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=O[_.MW]|0;if(r==null)return PY(O,M,e),G;var T=r===UV?7:r[_.MW]|0,E=T,b=NB(T),w=b||Object.isFrozen(r);b||(T=0);w||(r=xw(r),E=0,T=zA(T,M),w=!1);T|=5;var q;b=(q=zai(T))!=null?q:0;for(q=0;q<r.length;q++){var t=r[q],g=Z(t,b);Object.is(t,g)||(w&&(r=xw(r),E=0,T=zA(T,M),w=!1),r[q]=g)}T!==E&&(w&&(r=xw(r),T=zA(T,M)),Db(r,T));PY(O,M,e,r);return G};
_.eZ=function(G,e,r,Z,O){J2(G);var M=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;PY(M,M[_.MW]|0,e,(Z==="0"?Number(r)===0:r===Z)?void 0:r,O);return G};
_.rz=function(G,e,r){if(e&2)throw Error();var Z=CP(e),O=HdF(G,r,Z),M=O===UV?7:O[_.MW]|0,T=dBN(M,e);if(2&T||NB(T)||16&T)T===M||NB(T)||Db(O,T),O=xw(O),M=0,T=zA(T,e),PY(G,e,r,O,Z);T&=-13;T!==M&&Db(O,T);return O};
pYA=function(G){if(Ol){var e;return(e=G[Zv])!=null?e:G[Zv]=new Map}if(Zv in G)return G[Zv];e=new Map;Object.defineProperty(G,Zv,{value:e});return e};
uoA=function(G,e,r,Z,O){var M=pYA(G),T=CHN(M,G,e,r,O);T!==Z&&(T&&(e=PY(G,e,T,void 0,O)),M.set(r,Z));return e};
CHN=function(G,e,r,Z,O){var M=G.get(Z);if(M!=null)return M;for(var T=M=0;T<Z.length;T++){var E=Z[T];Ld(e,E,O)!=null&&(M!==0&&(r=PY(e,r,M,void 0,O)),M=E)}G.set(Z,M);return M};
nC_=function(G,e,r,Z,O){var M=!1;Z=Ld(G,Z,O,function(T){var E=ySN(T,r,!1,e);M=E!==T&&E!=null;return E});
if(Z!=null)return M&&!fP(Z)&&BY(G,e),Z};
mBS=function(G,e,r,Z,O,M,T,E){var b=fP(G,r);M=b?1:M;T=!!T||M===3;b=E&&!b;(M===2||b)&&Fo(G)&&(e=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,r=e[_.MW]|0);G=HdF(e,O);var w=G===UV?7:G[_.MW]|0,q=dBN(w,r);if(E=!(4&q)){var t=G,g=r,l=!!(2&q);l&&(g|=2);for(var X=!l,H=!0,I=0,C=0;I<t.length;I++){var u=ySN(t[I],Z,!1,g);if(u instanceof Z){if(!l){var P=fP(u);X&&(X=!P);H&&(H=P)}t[C++]=u}}C<I&&(t.length=C);q|=4;q=H?q&-4097:q|4096;q=X?q|8:q&-9}q!==w&&(Db(G,q),2&q&&Object.freeze(G));if(b&&!(8&q||!G.length&&
(M===1||(M!==4?0:2&q||!(16&q)&&32&r)))){NB(q)&&(G=xw(G),q=zA(q,r),r=PY(e,r,O,G));Z=G;b=q;for(w=0;w<Z.length;w++)t=Z[w],q=Bj$(t),t!==q&&(Z[w]=q);b|=8;q=b=Z.length?b|4096:b&-4097;Db(G,q)}return G=oC4(G,q,e,r,O,M,E,T)};
c2$=function(G){G==null&&(G=void 0);return G};
zA=function(G,e){return G=(2&e?G|2:G&-3)&-273};
_.YVS=function(G,e,r,Z,O){J2(G);e=_.WY(G,e,O,2,!0);var M;O=(M=zai(e===UV?7:e[_.MW]|0))!=null?M:0;e.push(r(Z,O));return G};
y2S=function(G,e,r,Z,O,M,T){J2(G);var E=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;G=mBS(G,E,E[_.MW]|0,r,e,2,!0);if(M&&T)O!=null||(O=G.length-1),LSq(G,O),G.splice(O,M),G.length||(G[_.MW]&=-4097);else{if(M){if(typeof O!=="number"||O<0||O>G.length)throw Error();}else Z=Z!=null?Z:new r;O!=void 0?G.splice(O,M,Z):G.push(Z);O=r=G===UV?7:G[_.MW]|0;(Z=fP(Z))?(r&=-9,G.length===1&&(r&=-4097)):r|=4096;r!==O&&Db(G,r);Z||BY(E)}};
F8$=function(G,e){if(typeof G==="string")return new Ok(FS4(G),e);if(Array.isArray(G))return new Ok(new Uint8Array(G),e);if(G.constructor===Uint8Array)return new Ok(G,!1);if(G.constructor===ArrayBuffer)return G=new Uint8Array(G),new Ok(G,!1);if(G.constructor===dj)return e=A2s(G)||new Uint8Array(0),new Ok(e,!0,G);if(G instanceof Uint8Array)return G=G.constructor===Uint8Array?G:new Uint8Array(G.buffer,G.byteOffset,G.byteLength),new Ok(G,!1);throw Error();};
BWp=function(G){switch(typeof G){case "string":J2_(G)}};
PHp=function(G){switch(typeof G){case "string":xBN(G)}};
MZ=function(){var G=function(){throw Error();};
Object.setPrototypeOf(G,G.prototype);return G};
zms=function(G,e){var r=r===void 0?UBS:r;return new Vt(G,e,r)};
L84=function(G,e,r,Z,O){W8s(G,r,NWN(e,Z),O)};
ht=function(G,e,r,Z){var O=Z[G];if(O)return O;O={};O.binaryFields=Z;O.messageMetadata=gCi(Z[0]);var M=Z[1],T=1;M&&M.constructor===Object&&(O.extensions=M,M=Z[++T],typeof M==="function"&&(O.isMessageSet=!0,Gqa!=null||(Gqa=M),eXA!=null||(eXA=Z[T+1]),M=Z[T+=2]));for(var E={};M&&rt$(M);){for(var b=0;b<M.length;b++)E[M[b]]=M;M=Z[++T]}for(b=1;M!==void 0;){typeof M==="number"&&(b+=M,M=Z[++T]);var w=void 0;if(M instanceof Vt)var q=M;else q=ZjN,T--;M=void 0;if((M=q)==null?0:M.$$isMsg){M=Z[++T];w=Z;var t=T;
typeof M==="function"&&(M=M(),w[t]=M);w=M}M=Z[++T];t=b+1;typeof M==="number"&&M<0&&(t-=M,M=Z[++T]);for(;b<t;b++){var g=E[b];w?r(O,b,q,w,g):e(O,b,q,g)}}return Z[G]=O};
rt$=function(G){return Array.isArray(G)&&!!G.length&&typeof G[0]==="number"&&G[0]>0};
MZq=function(G){return Array.isArray(G)?G[0]instanceof Vt?G:[Oji,G]:[G,void 0]};
NWN=function(G,e){if(G instanceof _.Tq)return G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(G))return YC(G,e,!1)};
VZi=function(G,e,r,Z){var O=r.$$binaryReaderFn;G[e]=Z?function(M,T,E){return O(M,T,E,Z)}:O};
Tzs=function(G,e,r,Z,O){var M=r.$$binaryReaderFn,T,E;G[e]=function(b,w,q){return M(b,w,q,E||(E=ht(hX_,VZi,Tzs,Z).messageMetadata),T||(T=DZy(Z)),O)}};
DZy=function(G){var e=G[E$a];if(e!=null)return e;var r=ht(hX_,VZi,Tzs,G);e=r.isMessageSet?function(Z,O){return Gqa(Z,O,r)}:function(Z,O){for(;ijy(O)&&O.nextWireType_!=4;){var M=O.nextField_,T=r[M];
if(T==null){var E=r.extensions;E&&(E=E[M])&&(E=bjs(E),E!=null&&(T=r[M]=E))}if(T==null||!T(O,Z,M)){E=O;T=E.fieldCursor_;v$N(E);if(E.discardUnknownFields)var b=void 0;else{var w=E.decoder_.cursor_-T;E.decoder_.cursor_=T;b=wwS(E.decoder_,w)}w=E=T=void 0;var q=Z;b&&((T=(E=(w=q[pd])!=null?w:q[pd]=new TW4)[M])!=null?T:E[M]=[]).push(b)}}if(Z=Njf(Z))Z.reviveUnknownFields=r.binaryFields[$Za];return!0};
G[E$a]=e;G[$Za]=Skf.bind(G);return e};
Skf=function(G,e,r,Z){var O=this[hX_],M=this[E$a],T=YC(void 0,O.messageMetadata,!1),E=Njf(G);if(E){var b=!1,w=O.extensions;if(w){O=function(X,H,I){if(I.length!==0)if(w[H])for(X=_.h(I),H=X.next();!H.done;H=X.next()){H=qks(H.value);try{b=!0,M(T,H)}finally{H.free()}}else Z==null||Z(G,H,I)};
if(e==null)VaF(E,O);else if(E!=null){var q=E[e];q&&O(E,e,q)}if(b){var t=G[_.MW]|0;if(t&2&&t&2048&&(r==null||!r.reviveIntoImmutable))throw Error();var g=CP(t),l=function(X,H){if(Ld(G,X,g)!=null)switch(r==null?void 0:r.resolutionBehavior){case 1:return;default:throw Error();}H!=null&&(t=PY(G,t,X,H,g));delete E[X]};
e==null?GC4(T,T[_.MW]|0,function(X,H){l(X,H)}):l(e,Ld(T,e,g))}}}};
bjs=function(G){G=MZq(G);var e=G[0].$$binaryReaderFn;if(G=G[1]){var r=DZy(G),Z=ht(hX_,VZi,Tzs,G).messageMetadata;return function(O,M,T){return e(O,M,T,Z,r)}}return e};
tZa=function(G,e,r){G[e]=r.$$binaryWriterFn};
lv_=function(G,e,r,Z){var O,M,T=r.$$binaryWriterFn;G[e]=function(E,b,w){return T(E,b,w,M||(M=ht(g$S,tZa,lv_,Z).messageMetadata),O||(O=RXs(Z)))}};
RXs=function(G){var e=G[j2A];if(!e){var r=ht(g$S,tZa,lv_,G);e=function(Z,O){return avA(Z,O,r)};
G[j2A]=e}return e};
avA=function(G,e,r){GC4(G,G[_.MW]|0,function(Z,O){if(O!=null){var M=Xw$(r,Z);M?M(e,O,Z):Z<500||xUp(K_4,3)}});
(G=Njf(G))&&VaF(G,function(Z,O,M){Dv(e,e.encoder_.end());for(Z=0;Z<M.length;Z++)Dv(e,A2s(M[Z])||new Uint8Array(0))})};
Xw$=function(G,e){var r=G[e];if(r)return r;if(r=G.extensions)if(r=r[e]){r=MZq(r);var Z=r[0].$$binaryWriterFn;if(r=r[1]){var O=RXs(r),M=ht(g$S,tZa,lv_,r).messageMetadata;r=G.isMessageSet?eXA(M,O):function(T,E,b){return Z(T,E,b,M,O)}}else r=Z;
return G[e]=r}};
_.fvi=function(G,e,r){if(Array.isArray(e)){var Z=e[_.MW]|0;if(Z&4)return e;for(var O=0,M=0;O<e.length;O++){var T=G(e[O]);T!=null&&(e[M++]=T)}M<O&&(e.length=M);G=Z|1;r&&(G=(G|4)&-1537);G!==Z&&Db(e,G);r&&G&2&&Object.freeze(e);return e}};
_.iz=function(G,e,r){return new Vt(G,e,r)};
_.kqa=function(G,e,r){return new Vt(G,e,r)};
_.bz=function(G,e,r){PY(G,G[_.MW]|0,e,r,CP(G[_.MW]|0))};
Hji=function(G,e,r){e=_.NW(e);e!=null&&(_.vw(G,r,1),G=G.encoder_,r=EwS||(EwS=new DataView(new ArrayBuffer(8))),r.setFloat64(0,+e,!0),m3=r.getUint32(0,!0),cc=r.getUint32(4,!0),_.wz(G,m3),_.wz(G,cc))};
dZq=function(G,e,r){e=_.NW(e);e!=null&&(_.vw(G,r,5),G=G.encoder_,iPS(e),_.wz(G,m3))};
_.SZ=function(G,e,r){e=nws(e);if(e!=null&&(BWp(e),e!=null))switch(_.vw(G,r,0),typeof e){case "number":G=G.encoder_;Yw(e);$$(G,m3,cc);break;case "bigint":r=BigInt.asUintN(64,e);r=new o$$(Number(r&BigInt(4294967295)),Number(r>>BigInt(32)));$$(G.encoder_,r.JSC$8872_lo,r.JSC$8872_hi);break;default:r=J2_(e),$$(G.encoder_,r.JSC$8872_lo,r.JSC$8872_hi)}};
Q2i=function(G,e,r){e=mWp(e);if(e!=null&&(PHp(e),e!=null))switch(_.vw(G,r,0),typeof e){case "number":G=G.encoder_;Yw(e);$$(G,m3,cc);break;case "bigint":r=s2_(e);$$(G.encoder_,r.JSC$8870_lo,r.JSC$8870_hi);break;default:r=xBN(e),$$(G.encoder_,r.JSC$8870_lo,r.JSC$8870_hi)}};
pwy=function(G,e,r){e=_.Dl(e);e!=null&&e!=null&&(_.vw(G,r,0),_.IvN(G.encoder_,e))};
_.uyU=function(G,e,r){CzA(G,r,mWp(e))};
n$a=function(G,e,r){e=_.tEF(e);e!=null&&(_.vw(G,r,0),G.encoder_.JSC$8874_buffer_.push(e?1:0))};
ctA=function(G,e,r){e=_.Xo(e);e!=null&&mZS(G,r,bfF(e))};
YkS=function(G,e,r,Z,O){W8s(G,r,NWN(e,Z),O)};
_.ytN=function(G,e,r){e=e==null||typeof e=="string"||e instanceof dj?e:void 0;e!=null&&mZS(G,r,F8$(e,!0).buffer)};
Ata=function(G,e,r){e=_.REi(e);e!=null&&e!=null&&(_.vw(G,r,0),qZ(G.encoder_,e))};
_.F_$=function(G,e,r){e=_.Dl(e);e!=null&&(e=parseInt(e,10),_.vw(G,r,0),_.IvN(G.encoder_,e))};
_.tt=function(G,e){return function(r,Z){var O={treatNewDataAsImmutable:!0};Z&&Object.assign(O,Z);r=qks(r,void 0,void 0,O);try{var M=new G,T=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;DZy(e)(T,r);var E=M}finally{r.free()}return E}};
_.lz=function(G){return function(e){return Jtp(e,G)}};
Bzi=function(G){return function(){return Jtp(this,G)}};
_.xZp=function(G){return uy(function(e){return e instanceof G&&!fP(e)})};
_.a2=function(G){return function(e){return PzS(G,e)}};
Nzs=function(G,e){return UZy({child:G,origin:e||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:zXN,getPayloadCase:function(r){return r.getPayloadCase()},
createInitMessage:function(r){var Z=new Xy,O=new W_y;r=_.Kj(O,1,r);return _.fj(Z,5,k$,r)}})};
Hw=function(G){return{valueOf:G}.valueOf()};
Ge4=function(){var G=null;if(!L_U)return G;try{var e=function(r){return r};
G=L_U.createPolicy("goog#html",{createHTML:e,createScript:e,createScriptURL:e})}catch(r){}return G};
r6_=function(){e1y===void 0&&(e1y=Ge4());return e1y};
_.sk=function(G){var e=r6_();G=e?e.createScriptURL(G):G;return new dz(G)};
_.Qt=function(G){if(G instanceof dz)return G.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.I2=function(G){return Object.isFrozen(G)&&Object.isFrozen(G.raw)};
ZmN=function(G){return G.toString().indexOf("`")===-1};
Cj=function(G){return new _.pj(Om4,G)};
uz=function(G){return G instanceof _.pj};
_.nj=function(G){if(uz(G))return G.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
m_=function(G){return new MrU(function(e){return e.substr(0,G.length+1).toLowerCase()===G+":"})};
_.Y$=function(G,e){e=e===void 0?VrS:e;if(uz(G))return G;for(var r=0;r<e.length;++r){var Z=e[r];if(Z instanceof MrU&&Z.isValid(G))return Cj(G)}};
_.Fy=function(G,e){e=e===void 0?VrS:e;return _.Y$(G,e)||At};
_.Jt=function(G){var e=window;if(typeof MediaSource!=="undefined"&&G instanceof MediaSource||typeof e.ManagedMediaSource!=="undefined"&&G instanceof e.ManagedMediaSource)return Cj(URL.createObjectURL(G));e=G.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 Cj(URL.createObjectURL(G))};
_.h1F=function(G){for(var e=_.Bw.apply(1,arguments),r=[G[0]],Z=0;Z<e.length;Z++)r.push(String(e[Z])),r.push(G[Z+1]);return Cj(r.join(""))};
_.Dgy=function(G){if(!TP$){a:{var e=document.createElement("a");try{e.href=G}catch(r){G=void 0;break a}G=e.protocol;G=G===":"||G===""?"https:":G}return G}try{e=new URL(G)}catch(r){return"https:"}return e.protocol};
_.x$=function(G){G instanceof _.pj?G=_.nj(G):G=E5$.test(G)?G:void 0;return G};
Pw=function(G,e){e=_.x$(e);e!==void 0&&(G.href=e)};
zq=function(G){var e=r6_();G=e?e.createHTML(G):G;return new Uk(G)};
Lj=function(G){if(G instanceof Uk)return G.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.Ge=function(G,e){G.src=_.Qt(e).toString()};
ims=function(G,e){G.setAttribute("sandbox","");for(var r=0;r<e.length;r++)G.sandbox.supports&&!G.sandbox.supports(e[r])||G.sandbox.add(e[r])};
_.v5U=function(G,e,r){G.removeAttribute("srcdoc");switch(e){case 0:if(r instanceof dz)throw new bmN("TrustedResourceUrl",0);ims(G,[]);e=_.x$(r);e!==void 0&&(G.src=e);break;case 1:if(!(r instanceof dz))throw new bmN(typeof r,1);ims(G,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.Ge(G,r);break;case 2:if(r instanceof dz)throw new bmN("TrustedResourceUrl",2);ims(G,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
e=_.x$(r);e!==void 0&&(G.src=e);break;default:_.zC(e)}};
_.er=function(G,e,r,Z){e=_.x$(e);return e!==void 0?G.open(e,r,Z):null};
_.rP=function(G){G=G===void 0?document:G;var e,r;G=(r=(e=G).querySelector)==null?void 0:r.call(e,"script[nonce]");return G==null?"":G.nonce||G.getAttribute("nonce")||""};
_.Of=function(G){var e=r6_();G=e?e.createScript(G):G;return new _.Zf(G)};
Mg=function(G){if(G instanceof _.Zf)return G.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
wL$=function(G){var e=_.rP(G.ownerDocument);e&&G.setAttribute("nonce",e)};
_.Vw=function(G,e){G.textContent=Mg(e);wL$(G)};
_.h6=function(G,e){G.src=_.Qt(e);wL$(G)};
_.Te=function(G,e){if(G.nodeType===1&&/^(script|style)$/i.test(G.tagName))throw Error("Z");G.innerHTML=Lj(e)};
_.Df=function(G,e,r,Z){if(G.length===0)throw Error("Z");G=G.map(function(M){if(M instanceof $gy)M=M.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return M});
var O=r.toLowerCase();if(G.every(function(M){return O.indexOf(M)!==0}))throw Error("aa`"+r);
e.setAttribute(r,Z)};
_.Ef=function(G,e,r){if(e instanceof dz)G.href=_.Qt(e).toString(),G.rel=r;else{if(Sfp.indexOf(r)===-1)throw Error("ba`"+r);e=_.x$(e);e!==void 0&&(G.href=e,G.rel=r)}};
qfS=function(G){if(G instanceof i7)return G.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.g5N=function(G,e){e=_.x$(e);e!==void 0&&(G.href=e)};
lf4=function(G){return new Worker(_.Qt(G),void 0)};
R1A=function(G){return _.sk(G)};
jLp=function(G,e){G&&(e=G.indexOf(e),0<=e&&G.splice(e,1))};
b7=function(G){return typeof G==="function"};
aff=function(G){return G instanceof vL||G&&"closed"in G&&b7(G.remove)&&b7(G.add)&&b7(G.unsubscribe)};
wP=function(){};
$5=function(G){XLS(function(){throw G;})};
Sr=function(G){return G};
qg=function(){return KYF(_.Bw.apply(0,arguments))};
KYF=function(G){return G.length===0?Sr:G.length===1?G[0]:function(e){return G.reduce(function(r,Z){return Z(r)},e)}};
ff$=function(G){var e;return(e=G!=null?G:void 0)!=null?e:Promise};
keF=function(G,e){return new t6(function(r){var Z=0;return e.schedule(function(){Z===G.length?r.complete():(r.next(G[Z++]),r.closed||this.schedule())})})};
HmS=function(G,e){if(!G)throw Error("ca");return new t6(function(r){var Z=new vL;Z.add(e.schedule(function(){var O=G[Symbol.asyncIterator]();Z.add(e.schedule(function(){var M=this;O.next().then(function(T){T.done?r.complete():(r.next(T.value),M.schedule())})}))}));
return Z})};
dg_=function(G,e,r){e=e.schedule(function(){try{r.call(this)}catch(Z){G.error(Z)}},0);
G.add(e)};
sLS=function(G,e){return new t6(function(r){var Z;r.add(e.schedule(function(){Z=G[o5_]();dg_(r,e,function(){var O=Z.next(),M=O.value;O.done?r.complete():(r.next(M),this.schedule())})}));
return function(){var O;return b7((O=Z)==null?void 0:O.return)&&Z.return()}})};
QLi=function(G,e){return new t6(function(r){var Z=new vL;Z.add(e.schedule(function(){var O=G[gP]();Z.add(O.subscribe({next:function(M){Z.add(e.schedule(function(){return r.next(M)}))},
error:function(M){Z.add(e.schedule(function(){return r.error(M)}))},
complete:function(){Z.add(e.schedule(function(){return r.complete()}))}}))}));
return Z})};
If$=function(G,e){return new t6(function(r){return e.schedule(function(){return G.then(function(Z){r.add(e.schedule(function(){r.next(Z);r.add(e.schedule(function(){return r.complete()}))}))},function(Z){r.add(e.schedule(function(){return r.error(Z)}))})})})};
pLp=function(G){return new TypeError("da`"+(G!==null&&typeof G==="object"?"an invalid object":"'"+G+"'"))};
ua$=function(G,e){if(G!=null){if(b7(G[gP]))return QLi(G,e);if(C7a(G))return keF(G,e);if(b7(G==null?void 0:G.then))return If$(G,e);if(Symbol.asyncIterator&&b7(G==null?void 0:G[Symbol.asyncIterator]))return HmS(G,e);if(b7(G==null?void 0:G[o5_]))return sLS(G,e)}throw pLp(G);};
RL=function(G,e){return e?ua$(G,e):l7(G)};
l7=function(G){if(G instanceof t6)return G;if(G!=null){if(b7(G[gP]))return n5p(G);if(C7a(G))return mgN(G);if(b7(G==null?void 0:G.then))return c6A(G);if(Symbol.asyncIterator&&b7(G==null?void 0:G[Symbol.asyncIterator]))return Yfi(G);if(b7(G==null?void 0:G[o5_]))return y6A(G)}throw pLp(G);};
n5p=function(G){return new t6(function(e){var r=G[gP]();if(b7(r.subscribe))return r.subscribe(e);throw new TypeError("ea");})};
mgN=function(G){return new t6(function(e){for(var r=0;r<G.length&&!e.closed;r++)e.next(G[r]);e.complete()})};
c6A=function(G){return new t6(function(e){G.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,$5)})};
y6A=function(G){return new t6(function(e){for(var r=G[o5_]();!e.closed;){var Z=r.next(),O=Z.value;Z.done?e.complete():e.next(O)}return function(){return b7(r==null?void 0:r.return)&&r.return()}})};
Yfi=function(G){return new t6(function(e){A6p(G,e).catch(function(r){return e.error(r)})})};
A6p=function(G,e){var r,Z,O,M,T,E;return _.D(function(b){switch(b.nextAddress){case 1:_.jr(b,2,3),M=_.aL(G);case 5:return b.yield(M.next(),8);case 8:Z=b.yieldResult;if(Z.done){b.jumpTo(3);break}T=Z.value;e.next(T);b.jumpTo(5);break;case 3:_.Xa(b);_.Km(b,9);if(!Z||Z.done||!(O=M.return)){b.jumpTo(9);break}return b.yield(O.call(M),9);case 9:_.Xa(b,0,0,1);if(r)throw r.error;_.fm(b,10,1);break;case 10:_.fm(b,4);break;case 2:E=_.k5(b);r={error:E};b.jumpTo(3);break;case 4:e.complete(),_.HL(b)}})};
FYy=function(G,e){return e?keF(G,e):mgN(G)};
J6s=function(G){return b7(G[G.length-1])?G.pop():void 0};
oL=function(G){var e=G[G.length-1];return e&&b7(e.schedule)?G.pop():void 0};
sf=function(){var G=_.Bw.apply(0,arguments),e=oL(G);return e?keF(G,e):FYy(G)};
Qw=function(G){var e=b7(G)?G:function(){return G};
return new t6(function(r){return r.error(e())})};
IL=function(G){return function(e){if(b7(e==null?void 0:e.lift))return e.lift(function(r){try{return G(r,this)}catch(Z){this.error(Z)}});
throw new TypeError("fa");}};
u7=function(){return IL(function(G,e){var r=null;G._refCount++;var Z=new Cm(e,void 0,void 0,void 0,function(){if(!G||G._refCount<=0||0<--G._refCount)r=null;else{var O=G._connection,M=r;r=null;!O||M&&O!==M||O.unsubscribe();e.unsubscribe()}});
G.subscribe(Z);Z.closed||(r=G.connect())})};
xgA=function(){var G=BPS;var e=e===void 0?0:e;return IL(function(r,Z){Z.add(G.schedule(function(){return r.subscribe(Z)},e))})};
nm=function(G){return IL(function(e,r){var Z=0;e.subscribe(new Cm(r,function(O){r.next(G.call(void 0,O,Z++))}))})};
Ug4=function(G){return nm(function(e){return P7_(e)?G.apply(null,_.mY(e)):G(e)})};
GVU=function(G){if(G.length===1){var e=G[0];if(z1f(e))return{args:e,keys:null};if(e&&typeof e==="object"&&WYN(e)===NP4)return G=LY4(e),{args:G.map(function(r){return e[r]}),
keys:G}}return{args:G,keys:null}};
cL=function(){var G=_.Bw.apply(0,arguments),e=oL(G),r=J6s(G);G=GVU(G);var Z=G.args,O=G.keys;if(Z.length===0)return RL([],e);e=new t6(eGF(Z,e,O?function(M){for(var T={},E=0;E<M.length;E++)T[O[E]]=M[E];return T}:Sr));
return r?e.pipe(Ug4(r)):e};
eGF=function(G,e,r){r=r===void 0?Sr:r;return function(Z){rx4(e,function(){for(var O=G.length,M=Array(O),T=O,E=G.map(function(){return!1}),b=!0,w={i$jscomp$217:0};w.i$jscomp$217<O;w={i$jscomp$217:w.i$jscomp$217},w.i$jscomp$217++)rx4(e,function(q){return function(){RL(G[q.i$jscomp$217],e).subscribe(new yw(Z,function(t){M[q.i$jscomp$217]=t;
b&&(E[q.i$jscomp$217]=!0,b=!E.every(Sr));b||Z.next(r(M.slice()))},function(){return--T===0}))}}(w),Z)},Z)}};
rx4=function(G,e,r){G?r.add(G.schedule(e)):e()};
ZN$=function(G,e,r,Z){var O=[],M=0,T=0,E=!1,b=function(w){M++;l7(r(w,T++)).subscribe(new Cm(e,function(q){e.next(q)},void 0,function(){M--;
for(var q={};O.length&&M<Z;q={bufferedValue:void 0})q.bufferedValue=O.shift(),b(q.bufferedValue);!E||O.length||M||e.complete()}))};
G.subscribe(new Cm(e,function(w){return M<Z?b(w):O.push(w)},void 0,function(){E=!0;
!E||O.length||M||e.complete()}));
return function(){O=null}};
A6=function(G,e){var r=r===void 0?Infinity:r;if(b7(e))return A6(function(Z,O){return nm(function(M,T){return e(Z,M,O,T)})(l7(G(Z,O)))},r);
typeof e==="number"&&(r=e);return IL(function(Z,O){return ZN$(Z,O,G,r)})};
ON$=function(G){G=G===void 0?Infinity:G;return A6(Sr,G)};
Mzi=function(){var G=_.Bw.apply(0,arguments);return ON$(1)(FYy(G,oL(G)))};
VzS=function(G){return new t6(function(e){l7(G()).subscribe(e)})};
Fa=function(G,e,r){if(b7(r)){var Z=r;r=void 0}if(Z)return Fa(G,e,r).pipe(Ug4(Z));Z=_.h(b7(G.addEventListener)&&b7(G.removeEventListener)?hG_.map(function(T){return function(E){return G[T](e,E,r)}}):b7(G.addListener)&&b7(G.removeListener)?TS_.map(DKp(G,e)):b7(G.on)&&b7(G.off)?Ef_.map(DKp(G,e)):[]);
var O=Z.next().value,M=Z.next().value;return!O&&C7a(G)?A6(function(T){return Fa(T,e,r)})(FYy(G)):new t6(function(T){if(!O)throw new TypeError("ga");
var E=function(){var b=_.Bw.apply(0,arguments);return T.next(1<b.length?b:b[0])};
O(E);return function(){return M(E)}})};
DKp=function(G,e){return function(r){return function(Z){return G[r](e,Z)}}};
x5=function(){var G=_.Bw.apply(0,arguments),e=oL(G);var r=typeof G[G.length-1]==="number"?G.pop():Infinity;return G.length?G.length===1?l7(G[0]):ON$(r)(FYy(G,e)):BL};
bN$=function(G){return G.length===1&&iNF(G[0])?G[0]:G};
vff=function(){var G=bN$(_.Bw.apply(0,arguments));return IL(function(e,r){var Z=[e].concat(_.mY(G)),O=function(){if(!r.closed)if(Z.length>0){try{var M=l7(Z.shift())}catch(E){O();return}var T=new Cm(r,void 0,wP,wP);r.add(M.subscribe(T));T.add(O)}else r.complete()};
O()})};
PL=function(G){return IL(function(e,r){var Z=0;e.subscribe(new Cm(r,function(O){return G.call(void 0,O,Z++)&&r.next(O)}))})};
$K4=function(){var G=_.Bw.apply(0,arguments);G=bN$(G);return G.length===1?l7(G[0]):new t6(w24(G))};
w24=function(G){return function(e){for(var r=[],Z={i$jscomp$220:0};r&&!e.closed&&Z.i$jscomp$220<G.length;Z={i$jscomp$220:Z.i$jscomp$220},Z.i$jscomp$220++)r.push(l7(G[Z.i$jscomp$220]).subscribe(new Cm(e,function(O){return function(M){if(r){for(var T=0;T<r.length;T++)T!==O.i$jscomp$220&&r[T].unsubscribe();r=null}e.next(M)}}(Z))))}};
SwN=function(){var G=_.Bw.apply(0,arguments),e=J6s(G),r=bN$(G);return r.length?new t6(function(Z){var O=r.map(function(){return[]}),M=r.map(function(){return!1});
Z.add(function(){O=M=null});
for(var T={sourceIndex$jscomp$1:0};!Z.closed&&T.sourceIndex$jscomp$1<r.length;T={sourceIndex$jscomp$1:T.sourceIndex$jscomp$1},T.sourceIndex$jscomp$1++)l7(r[T.sourceIndex$jscomp$1]).subscribe(new Cm(Z,function(E){return function(b){O[E.sourceIndex$jscomp$1].push(b);O.every(function(w){return w.length})&&(b=O.map(function(w){return w.shift()}),Z.next(e?e.apply(null,_.mY(b)):b),O.some(function(w,q){return!w.length&&M[q]})&&Z.complete())}}(T),void 0,function(E){return function(){M[E.sourceIndex$jscomp$1]=
!0;
!O[E.sourceIndex$jscomp$1].length&&Z.complete()}}(T)));
return function(){O=M=null}}):BL};
qwf=function(G){var e,r,Z;return!!G&&typeof G.active==="boolean"&&typeof((e=G.clock)==null?void 0:e.now)==="function"&&((r=G.clock)==null?void 0:r.timeline)!==void 0&&!((Z=G.lastMeasurement)==null||!Z.timestamp)&&typeof G.equivalentTo==="function"&&typeof G.extrapolateToNow==="function"&&typeof G.extrapolateToTime==="function"&&typeof G.map==="function"&&typeof G.joinWith==="function"};
tzf=function(G){function e(r){return typeof r==="boolean"||typeof r==="string"||typeof r==="number"||r===void 0||r===null}
return e(G)?!0:Array.isArray(G)?G.every(e):typeof G==="object"?Object.keys(G).every(function(r){return typeof r==="string"})&&Object.values(G).every(function(r){return Array.isArray(r)?r.every(e):e(r)}):!1};
gfA=function(G){if(tzf(G))return G;if(qwf(G))return{lastMeasurement:{value:gfA(G.lastMeasurement.value),timestamp:Uf(G.lastMeasurement.timestamp,new ze(0,G.lastMeasurement.timestamp.timeline))},active:G.active};try{return JSON.parse(JSON.stringify(G))}catch(e){}return String(G)};
WL=function(G,e){return function(r){return new t6(function(Z){return r.subscribe(function(O){G.timeExecution(e,function(){Z.next(O)})()},function(O){G.timeExecution(e,function(){Z.error(O)})()},function(){G.timeExecution(e,function(){Z.complete()})()})})}};
ldS=function(G,e){var r=!1;return new t6(function(Z){var O=G.setTimeout(function(){r=!0;Z.next(!0);Z.complete()},e);
return function(){r||G.clearTimeout(O)}})};
RG$=function(G){G=G.global;if(G.fetchLater)return G.fetchLater.bind(G)};
Ng=function(G){return IL(function(e,r){var Z=null,O=!1,M;Z=e.subscribe(new Cm(r,void 0,function(T){M=l7(G(T,Ng(G)(e)));Z?(Z.unsubscribe(),Z=null,M.subscribe(r)):O=!0}));
O&&(Z.unsubscribe(),Z=null,M.subscribe(r))})};
jPy=function(G,e,r){return function(Z,O){var M=r,T=e,E=0;Z.subscribe(new Cm(O,function(b){var w=E++;T=M?G(T,b,w):(M=!0,b);O.next(T)},void 0,void 0))}};
adq=function(G){G=G===void 0?null:G;return IL(function(e,r){var Z=!1;e.subscribe(new Cm(r,function(O){Z=!0;r.next(O)},void 0,function(){Z||r.next(G);
r.complete()}))})};
Lm=function(){return IL(function(G,e){G.subscribe(new Cm(e,wP))})};
GV=function(G){return IL(function(e,r){e.subscribe(new Cm(r,function(){return r.next(G)}))})};
ez=function(G){return G<=0?function(){return BL}:IL(function(e,r){var Z=0;
e.subscribe(new Cm(r,function(O){++Z<=G&&(r.next(O),G<=Z&&r.complete())}))})};
rS=function(G){var e=e===void 0?Sr:e;var r;G=(r=G)!=null?r:X2s;return IL(function(Z,O){var M,T=!0;Z.subscribe(new Cm(O,function(E){var b=e(E);if(T||!G(M,b))T=!1,M=b,O.next(E)}))})};
X2s=function(G,e){return G===e};
fdS=function(G){G=G===void 0?Kd4:G;return IL(function(e,r){var Z=!1;e.subscribe(new Cm(r,function(O){Z=!0;r.next(O)},void 0,function(){return Z?r.complete():r.error(G())}))})};
Kd4=function(){return new kVN};
Zd=function(){var G=_.Bw.apply(0,arguments);return function(e){return Mzi(e,sf.apply(null,_.mY(G)))}};
HNA=function(G){return IL(function(e,r){var Z=0;e.subscribe(new Cm(r,function(O){G.call(void 0,O,Z++,e)||(r.next(!1),r.complete())},void 0,function(){r.next(!0);
r.complete()}))})};
dKS=function(){return IL(function(G,e){var r=[];G.subscribe(new Cm(e,function(Z){r.push(Z);1<r.length&&r.shift()},void 0,function(){for(var Z=_.h(r),O=Z.next();!O.done;O=Z.next())e.next(O.value);
e.complete()},function(){r=null}))})};
ofS=function(G,e){var r=arguments.length>=2;return function(Z){return Z.pipe(G?PL(function(O,M){return G(O,M,Z)}):Sr,dKS(),r?adq(e):fdS(function(){return new kVN}))}};
MK=function(G){var e=b7(G)?G:function(){return G};
return b7()?IL(function(r,Z){var O=e();(void 0)(O).subscribe(Z).add(r.subscribe(O))}):function(r){var Z=new Ow(r,e);
b7(r==null?void 0:r.lift)&&(Z.lift=r.lift);Z.source=r;Z.subjectFactory=e;return Z}};
hx=function(G){var e=new VB(G,void 0,void 0);return function(r){return MK(function(){return e})(r)}};
Dd=function(G,e){return IL(jPy(G,e,arguments.length>=2))};
Ew=function(){var G=_.Bw.apply(0,arguments),e=oL(G);return IL(function(r,Z){(e?Mzi(G,r,e):Mzi(G,r)).subscribe(Z)})};
iL=function(G){return IL(function(e,r){var Z=null,O=0,M=!1;e.subscribe(new Cm(r,function(T){var E;(E=Z)==null||E.unsubscribe();E=O++;l7(G(T,E)).subscribe(Z=new Cm(r,function(b){return r.next(b)},void 0,function(){Z=null;
M&&!Z&&r.complete()}))},void 0,function(){(M=!0,!Z)&&r.complete()}))})};
bL=function(G,e){e=e===void 0?!1:e;return IL(function(r,Z){var O=0;r.subscribe(new Cm(Z,function(M){var T=G(M,O++);(T||e)&&Z.next(M);!T&&Z.complete()}))})};
sP4=function(G,e,r){var Z=b7(G)||e||r?{next:G,error:e,complete:r}:G;return Z?IL(function(O,M){O.subscribe(new Cm(M,function(T){var E;(E=Z.next)==null||E.call(Z,T);M.next(T)},function(T){var E;
(E=Z.error)==null||E.call(Z,T);M.error(T)},function(){var T;
(T=Z.complete)==null||T.call(Z);M.complete()}))}):Sr};
QPS=function(){var G=_.Bw.apply(0,arguments),e=J6s(G);return IL(function(r,Z){for(var O=G.length,M=Array(O),T=G.map(function(){return!1}),E=!1,b={i$jscomp$230:0};b.i$jscomp$230<O;b={i$jscomp$230:b.i$jscomp$230},b.i$jscomp$230++)l7(G[b.i$jscomp$230]).subscribe(new Cm(Z,function(w){return function(q){M[w.i$jscomp$230]=q;
E||T[w.i$jscomp$230]||(T[w.i$jscomp$230]=!0,(E=T.every(Sr))&&(T=null))}}(b),void 0,wP));
r.subscribe(new Cm(Z,function(w){E&&(w=[w].concat(_.mY(M)),Z.next(e?e.apply(null,_.mY(w)):w))}))})};
p2p=function(G){var e=Id4;if(e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&G(e[r],r,e)};
CLU=function(){var G=[];p2p(function(e){G.push(e)});
return G};
nfF=function(G){try{return!!G&&G.location.href!=null&&u$s(G,"foo")}catch(e){return!1}};
_.wS=function(G){return new $gy(G[0].toLowerCase())};
mKa=function(G){for(var e=_.Bw.apply(1,arguments),r=G[0],Z=0;Z<G.length-1;Z++)r+=String(e[Z]),r+=G[Z+1];e=document.implementation.createHTMLDocument("");Z=e.createElement("style");e.head.appendChild(Z);e=Z.sheet;e.insertRule(r,0);if(e.cssRules.length===1&&(r=e.cssRules[0],r instanceof CSSStyleRule))return new i7(r.cssText.replace(/</g,"\\3C "))};
cxa=function(G){try{return new URL(G,window.document.baseURI)}catch(e){return new URL("about:invalid")}};
YwU=function(G,e){var r=e.createRange();r.selectNode(e.body);G=zq(G);return r.createContextualFragment(Lj(G))};
yxN=function(G){G=G.nodeName;return typeof G==="string"?G:"FORM"};
Ax$=function(G){G=G.nodeType;return G===1||typeof G!=="number"};
Sz=function(G,e,r){G.setAttribute(e,r)};
FdA=function(G){return G.parts.map(function(e){var r=e.descriptor;return""+e.url+(r?" "+r:"")}).join(" , ")};
_.qK=function(G){var e=_.Bw.apply(1,arguments);if(e.length===0)return _.sk(G[0]);for(var r=G[0],Z=0;Z<e.length;Z++)r+=encodeURIComponent(e[Z])+G[Z+1];return _.sk(r)};
_.tx=function(G,e){G=_.Qt(G).toString();var r=G.split(/[?#]/),Z=/[?]/.test(G)?"?"+r[1]:"";return JxS(r[0],Z,/[#]/.test(G)?"#"+(Z?r[2]:r[1]):"",e)};
JxS=function(G,e,r,Z){function O(T,E){T!=null&&(Array.isArray(T)?T.forEach(function(b){return O(b,E)}):(e+=M+encodeURIComponent(E)+"="+encodeURIComponent(T),M="&"))}
var M=e.length?"&":"?";Z.constructor===Object&&(Z=Object.entries(Z));Array.isArray(Z)?Z.forEach(function(T){return O(T[1],T[0])}):Z.forEach(O);
return _.sk(G+e+r)};
xKq=function(){var G=Mg(BSq).toString();return _.sk(URL.createObjectURL(new Blob([G],{type:"text/javascript"})))};
PLs=function(G){var e=[],r=0,Z;for(Z in G)e[r++]=Z;return e};
UKF=function(G,e){for(var r in G)if(G[r]==e)return!0;return!1};
zGA=function(G,e,r){for(var Z in G)if(e.call(r,G[Z],Z,G))return Z};
Wdi=function(G){if(!G||typeof G!=="object")return G;if(typeof G.clone==="function")return G.clone();if(typeof Map!=="undefined"&&G instanceof Map)return new Map(G);if(typeof Set!=="undefined"&&G instanceof Set)return new Set(G);if(G instanceof Date)return new Date(G.getTime());var e=Array.isArray(G)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(G)||G instanceof DataView?{}:new G.constructor(G.length),r;for(r in G)e[r]=Wdi(G[r]);return e};
NSa=function(G){var e=arguments.length;if(e==1&&Array.isArray(arguments[0]))return NSa.apply(null,arguments[0]);if(e%2)throw Error("ma");for(var r={},Z=0;Z<e;Z+=2)r[arguments[Z]]=arguments[Z+1];return r};
LdF=function(G){var e=arguments.length;if(e==1&&Array.isArray(arguments[0]))return LdF.apply(null,arguments[0]);for(var r={},Z=0;Z<e;Z++)r[arguments[Z]]=!0;return r};
gS=function(G,e,r,Z){this.top=G;this.right=e;this.bottom=r;this.left=Z};
GX$=function(G){G=G.global;if(G.PendingGetBeacon)return G.PendingGetBeacon};
jz=function(G){return function(e){return e.pipe(e$F(G,MK(new RP)))}};
aP=function(G){return function(e){return e.pipe(e$F(G,hx(1)))}};
e$F=function(G,e){function r(Z){return new t6(function(O){return Z.subscribe(function(M){X$(G,function(){return void O.next(M)},3)},function(M){X$(G,function(){return void O.error(M)},3)},function(){X$(G,function(){return void O.complete()},3)})})}
return qg(r,xgA(),e,u7(),r)};
OBa=function(G){var e=rAS(G);return e===null?new KN(null):e.pipe(nm(function(r){r=r.serialize();if(ZBp)r=_.O_.btoa(r);else{for(var Z=[],O=0,M=0;M<r.length;M++){var T=r.charCodeAt(M);T>255&&(Z[O++]=T&255,T>>=8);Z[O++]=T}r=_.uH(Z)}return r}),ez(1),aP(G.queue))};
MKp=function(G){var e=e===void 0?{}:e;if(typeof Event==="function")return new Event(G,e);if(typeof document!=="undefined"){var r=document.createEvent("CustomEvent");r.initCustomEvent(G,e.bubbles||!1,e.cancelable||!1,e.detail);return r}throw Error();};
VKs=function(G){return typeof G==="string"?document.getElementById(G):G};
T1A=function(G){var e=!1;e=e===void 0?!1:e;if(G.tagName==="IMG"){if(G.complete&&(!G.naturalWidth||!G.naturalHeight))return!0;var r;if(e&&((r=G.style)==null?void 0:r.display)==="none")return!0}var Z,O;return h$S.test((Z=G.getAttribute("width"))!=null?Z:"")&&h$S.test((O=G.getAttribute("height"))!=null?O:"")};
DMs=function(G,e){if(G.tagName==="IMG")return G.naturalWidth&&G.naturalHeight?!0:!1;try{if(G.readyState)var r=G.readyState;else{var Z,O;r=(Z=G.contentWindow)==null?void 0:(O=Z.document)==null?void 0:O.readyState}return r==="complete"}catch(M){return e===void 0?!1:e}};
EWA=function(G){G||(G=function(e,r,Z){e.addEventListener(r,Z)});
return G};
wpq=function(G,e){var r=iBS();r=r===void 0?new bBF:r;if(G=VKs(G)){var Z=EWA(Z);for(var O=!1,M=function(I){O||(O=!0,e(I))},T,E=2,b=0;b<vWq.length;++b)if(vWq[b]===G.tagName){E=3;
T=[G];break}T||(T=G.querySelectorAll(vWq.join(",")));var w=0,q=0,t=!0,g=G=!1;b={};for(var l=0;l<T.length;b={isImg:void 0},l++){var X=T[l];if(!T1A(X))if(b.isImg=X.tagName==="IMG",DMs(X,r.crossDomainLoadedDefault))G=!0,b.isImg&&(t=!0);else{w++;var H=function(I){return function(C){w--;!w&&t&&M(E);I.isImg&&(C=C&&C.type==="error",q--,C||(t=!0),!q&&g&&t&&M(E))}}(b);
Z(X,"load",H);b.isImg&&(q++,Z(X,"error",H))}}q===0&&(t=!0);T=null;T=_.O_.document.readyState==="complete";if(w===0&&!G&&T)E=5;else if(w||!G){Z(_.O_,"load",function(){!r.pendingImagesBlockLoad||!q&&t?M(4):g=!0});
return}M(E)}};
$MS=function(G,e,r){if(G)for(var Z=0;G!=null&&Z<500&&!r(G);++Z)G=e(G)};
SQa=function(G,e){$MS(G,function(r){try{return r===r.parent?null:r.parent}catch(Z){}return null},e)};
qQp=function(G,e){if(G.tagName=="IFRAME")e(G);else{G=G.querySelectorAll("IFRAME");for(var r=0;r<G.length&&!e(G[r]);++r);}};
tKa=function(G){return(G=G.ownerDocument)&&(G.parentWindow||G.defaultView)||null};
gWf=function(G,e,r){try{var Z=JSON.parse(r.data)}catch(T){}if(typeof Z==="object"&&Z&&Z.type==="creativeLoad"){var O=tKa(G);if(r.source&&O){var M;SQa(r.source,function(T){try{if(T.parent===O)return M=T,!0}catch(E){}});
M&&qQp(G,function(T){if(T.contentWindow===M)return e(Z),!0})}}};
lDF=function(G){return typeof G==="string"?document.getElementById(G):G};
XpN=function(){var G={};return G[0]=_.qK(R$y,"current"),G[1]=_.qK(jFa),G[2]=_.qK(aD$),G};
fN=function(G,e){return G.left===e.left&&G.top===e.top&&G.width===e.width&&G.height===e.height};
Kli=function(G,e){return{left:Math.max(G.left,e.left),top:Math.max(G.top,e.top),width:Math.max(0,Math.min(G.left+G.width,e.left+e.width)-Math.max(G.left,e.left)),height:Math.max(0,Math.min(G.top+G.height,e.top+e.height)-Math.max(G.top,e.top))}};
fD_=function(G,e){return{left:Math.round(G.left+e.x),top:Math.round(G.top+e.y),width:G.width,height:G.height}};
kXA=function(G,e,r){if(G&&e!==null&&e!=e.top){if(!e.top)return new _.kf(-12245933,-12245933);e=e.top}try{return(r===void 0?0:r)?(new _.kf(e.innerWidth,e.innerHeight)).round():_.dS(e).round()}catch(Z){return new _.kf(-12245933,-12245933)}};
HB_=function(G,e,r){try{if(G){if(!e.top)return new gS(-12245933,-12245933,-12245933,-12245933);e=e.top}var Z=kXA(G,e,r),O=Z.height,M=Z.width;if(M===-12245933)return new gS(M,M,M,M);var T=oP(sw(e.document)),E=T.x,b=T.y;return new gS(b,E+M,b+O,E)}catch(w){return new gS(-12245933,-12245933,-12245933,-12245933)}};
dMf=function(G){var e;return(e=G.google_tag_data)!=null?e:G.google_tag_data={}};
oW4=function(G){var e,r;return typeof((e=G.navigator)==null?void 0:(r=e.userAgentData)==null?void 0:r.getHighEntropyValues)==="function"};
QF_=function(G){if(!oW4(G))return null;var e=dMf(G);if(e.uach_promise)return e.uach_promise;G=G.navigator.userAgentData.getHighEntropyValues(sFa).then(function(r){e.uach!=null||(e.uach=r);return r});
return e.uach_promise=G};
JA_=function(G){var e;return IDN(ppS(Cxa(uxy(nW4(mMi(cA$(YQp(yAq(new AAS,G.architecture||""),G.bitness||""),G.mobile||!1),G.model||""),G.platform||""),G.platformVersion||""),G.uaFullVersion||""),((e=G.fullVersionList)==null?void 0:e.map(function(r){var Z=new FlF;Z=_.QB(Z,1,r.brand);return _.QB(Z,2,r.version)}))||[]),G.wow64||!1)};
B14=function(G){var e,r;return(r=(e=QF_(G))==null?void 0:e.then(function(Z){return JA_(Z)}))!=null?r:null};
xM$=function(G,e){return new t6(function(r){var Z=!1,O=Array(e.length);O.fill(void 0);var M=new Set,T=new Set,E=function(t,g){G.running?(O[g]=t,M.add(g),Z||(Z=!0,X$(G,function(){Z=!1;r.next(_.Ai(O))},1))):r.error(new pN(g))},b=function(t,g){T.add(g);
M.add(g);X$(G,function(){r.error(t)},1)},w=function(t){T.add(t);
X$(G,function(){T.size===e.length&&r.complete()},1)},q=e.map(function(t,g){return t.subscribe(function(l){return void E(l,g)},function(l){return void b(l,g)},function(){return void w(g)})});
return function(){q.forEach(function(t){return void t.unsubscribe()})}})};
z$S=function(G,e,r){function Z(){if(e.debugChannel){var I=e.debugChannel,C=I.next;var u={creativeId:e.debugNames.getName(r),requiredSignals:O,signals:Object.assign({},M),hasPrematurelyCompleted:T,errorMessage:E,erroredSignalKey:b};u={specMajor:2,specMinor:0,specPatch:0,timestamp:Uf(e.timeProvider.now(),new ze(0,e.timeProvider.timeline)),instanceId:e.debugNames.getName(e.symbol),creativeState:u};C.call(I,u)}}
for(var O=Object.keys(G),M={},T=!1,E=null,b=null,w={},q=new Set,t=[],g=[],l=_.h(O),X=l.next(),H={};!X.done;H={key$jscomp$394:void 0},X=l.next())H.key$jscomp$394=X.value,X=G[H.key$jscomp$394],X instanceof KN?(w[H.key$jscomp$394]=X.value,q.add(H.key$jscomp$394),e.debugChannel&&(M[String(H.key$jscomp$394)]=gfA(X.value))):(X=X.pipe(rS(function(I,C){return qwf(I)||qwf(C)?!1:I===C}),nm(function(I){return function(C){e.debugChannel&&(M[String(I.key$jscomp$394)]=gfA(C),Z());
var u={};return u[I.key$jscomp$394]=C,u}}(H)),Ng(function(I){return function(C){if(C instanceof pN)throw new PxS(String(I.key$jscomp$394));
throw C;}}(H)),sP4(function(I){return function(){q.add(I.key$jscomp$394)}}(H),function(I){return function(C){b=String(I.key$jscomp$394);
E=String(C);Z()}}(H),function(I){return function(){q.has(I.key$jscomp$394)||(T=!0,Z())}}(H))),g.push(H.key$jscomp$394),t.push(X));
(G=Object.keys(M).length>0)&&Z();l=xM$(e.queue,t).pipe(Ng(function(I){if(I instanceof pN)throw new UM_(String(g[I.inputObservableIndex]));throw I;}),nm(function(I){return Object.freeze(Object.assign.apply(Object,[{},
w].concat(_.mY(I))))}));
return(t=t.length>0)&&G?x5(sf(Object.freeze(w)),l):t?l:sf(Object.freeze(w))};
Wlf=function(G,e,r,Z,O){return G.performanceMonitor.timeExecution.bind(G.performanceMonitor)(733,function(){var M={};try{return e.pipe(Ng(function(T){Z(Object.assign({},M,{error:T}));return BL}),A6(function(T){try{var E=r(G,T)}catch(w){return Z(Object.assign({},M,{error:w instanceof Error?w:String(w)})),BL}var b={};
return z$S(E,G,T.symbol).pipe(sP4(function(w){b=w}),hx(1),u7()).pipe(O,Ng(function(w){Z(Object.assign({},b,{error:w}));
return BL}),Zd(void 0),nm(function(){return!0}))})).pipe(Dd(function(T){return T+1},0),Ng(function(T){Z(Object.assign({},M,{error:T}));
return BL}))}catch(T){return Z(Object.assign({},M,{error:T})),BL}})()};
CN=function(G){var e=new Map;if(typeof G!=="object"||G===null)return e;Object.values(G).forEach(function(r){r&&typeof r.extrapolateToNow==="function"&&(e.has(r.clock.timeline)||e.set(r.clock.timeline,r.clock.now()))});
return e};
N1S=function(G,e){return typeof G==="string"?encodeURIComponent(G):typeof G==="number"?String(G):Array.isArray(G)?G.map(function(r){return N1S(r,e)}).join(","):G instanceof ze?G.toString():G&&typeof G.extrapolateToNow==="function"?N1S(G.extrapolateUsingTimestampMap(e).value,e):G===!0?"1":G===!1?"0":G===void 0||G===null?null:G instanceof Ll4?Gyf(G):[G.top,
G.left,G.top+G.height,G.left+G.width].join()};
et4=function(G,e){G=Object.entries(G).map(function(r){var Z=_.h(r);r=Z.next().value;Z=Z.next().value;Z=N1S(Z,e);return Z===null?"":r+"="+Z}).filter(function(r){return r!==""});
return G.length?G.join("&"):""};
Ooy=function(G,e){var r=rBs,Z=ZoN;e=e===void 0?.01:e;return function(O){e>0&&Math.random()<=e&&(G.global.HTMLFencedFrameElement&&G.global.fence&&typeof G.global.fence.reportEvent==="function"&&G.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),O=Object.assign({},O,{errorMessage:O.error instanceof Error&&O.error.message?O.error.message:String(O.error),errorStack:O.error instanceof Error&&O.error.stack?String(O.error.stack):null,errorName:O.error instanceof
Error&&O.error.name?String(O.error.name):null,errorContext:String(G.performanceMonitor.timedFunctionContext),errorEscapedQueryId:O.escapedQueryId}),r(Object.assign({},O,{payloadMapper:function(){return function(M){try{return Z(Object.assign({},M))}catch(T){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),CN(O)).forEach(function(M){G.beaconFactory.makeBeacon(M).sendNow()}))}};
MOU=function(){var G=_.Bw.apply(0,arguments);return function(e){var r=e.pipe(hx(1),u7());e=G.map(function(Z){return r.pipe(Z,Zd(!0))});
return cL(e).pipe(ez(1),Lm())}};
VOs=function(){var G=_.Bw.apply(0,arguments);return function(e){var r=e.pipe(hx(1),u7());e=G.map(function(Z){return r.pipe(Z,Zd(!0))});
return x5.apply(null,_.mY(e)).pipe(ez(1),Lm())}};
hti=function(G,e){return function(r){var Z=r.pipe(hx(1),u7());r=Z.pipe(G,Zd(!0));Z=Z.pipe(qg(e,hx(),u7()),Zd(!0));r=cL([r,Z]);return $K4(r,Z).pipe(ez(1),Lm())}};
TwU=function(G,e,r){r(!0)};
DIq=function(G,e){return qg(iL(function(r){var Z=G(r),O=e(r),M={};return Z&&O&&M?new t6(function(T){O(Z,M,function(E){T.next(Object.assign({},r,{canEmit:E}));T.complete()});
return function(){}}):uL}),PL(function(r){return r.canEmit}))};
E8S=function(G){var e={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(r){return r.pipe(iL(function(Z){return new t6(function(O){function M(){E.disconnect();b.unsubscribe()}
var T=G.MutationObserver;if(T&&Z.ref!==void 0){var E=new T(function(w){O.next(w)});
E.observe(Z.ref,e);var b=Z.JSC$9369_released.subscribe(M);return M}})}))}};
ioa=function(G){if(G.measurementDeferralState===3)return null;if(G.timeOnScreenReason!==void 0){var e=G.creativeFound===!1?"n":null;if(e!==null)return e}return G.geometricMeasurementErrors instanceof nN?"msf":G.contextValidationErrors instanceof md?"c":G.contextVisibilityKnown===!1?"pv":G.geometricMeasurementErrors||G.contextValidationErrors?"x":null};
v8A=function(G,e){return G.replace(boN,function(r,Z){try{var O=_.c2.get(e,Z);if(O==null||O.toString()==null)return r;O=O.toString();if(O==""||!_.iF(O==null?"":String(O)))return encodeURIComponent(O).replace(/%2C/g,",")}catch(M){}return r})};
wOA=function(G,e){var r=Object.assign({},G),Z=G.userAgentClientHints;r=(delete r.userAgentClientHints,r);r=G.payloadMapper(r);var O=et4(r,e);return _.Yf(G.urlPrefixes,function(M){var T="";typeof Z==="string"&&(T="&"+et4({uach:Z},e));var E={};return v8A(M,(E.VIEWABILITY=O,E))+T})};
rBs=function(G,e){var r=G.payloadMapper(G),Z=et4(r,e);return Z?_.Yf(G.urlPrefixes,function(O){O=O.indexOf("?")>=0?O:O+"?";O="?&".indexOf(O.slice(-1))>=0?O:O+"&";return O+Z}):G.urlPrefixes};
$Ia=function(){return qg(PL(function(G){return G!==void 0}),nm(function(G){return G}))};
SMS=function(G){return qg(nm(function(){return!0}),Ew(!1),aP(G))};
qMa=function(G){return G.length<=0?BL:cL(G.map(function(e){var r=0;return e.pipe(nm(function(Z){return{index:r++,value:Z}}))})).pipe(PL(function(e){return e.every(function(r){return r.index===e[0].index})}),nm(function(e){return e.map(function(r){return r.value})}))};
tOA=function(G,e){G.currentState&&(G.previousState=G.currentState);G.currentState=e;G.previousState&&G.previousState.value?(e=Math.max(0,Uf(e.timestamp,G.previousState.timestamp)),G.totalTime+=e,G.consecutiveTime+=e):G.consecutiveTime=0;return G};
g8$=function(){return qg(Dd(tOA,{totalTime:0,consecutiveTime:0}),nm(function(G){return G.totalTime}))};
l2p=function(){return qg(Dd(tOA,{totalTime:0,consecutiveTime:0}),nm(function(G){return G.consecutiveTime}))};
RtN=function(G,e){return function(r){return qMa(e.map(function(Z){return r.pipe(G(Z))}))}};
jha=function(){var G;return qg(sP4(function(e){return void(G=e.timestamp)}),l2p(),nm(function(e){return{timestamp:G,
value:Math.round(e)}}))};
a24=function(G,e){return fN(G.topWindowViewportExternalGeometry,e.topWindowViewportExternalGeometry)&&fN(G.elementGeometry,e.elementGeometry)&&fN(G.exposedViewportLocalGeometry,e.exposedViewportLocalGeometry)&&fN(G.intersectionGeometry,e.intersectionGeometry)&&G.elementGeometrySourceName===e.elementGeometrySourceName&&G.measurementRequests===e.measurementRequests&&G.viewportGeometrySourceName===e.viewportGeometrySourceName&&G.viewportLocalAppOffset.x===e.viewportLocalAppOffset.x&&G.viewportLocalAppOffset.y===
e.viewportLocalAppOffset.y};
ky$=function(G,e){return function(r){return function(Z){var O=Z.pipe(MK(new RP),u7());Z=r.element.pipe(rS());O=O.pipe(nm(function(M){return M.value}));
return cL([Z,O,e]).pipe(nm(function(M){var T=_.h(M);M=T.next().value;var E=T.next().value;T=T.next().value;if(M.ref===void 0)var b={top:0,left:0,width:0,height:0};else{b=M.ref.getBoundingClientRect();var w=M.ref,q=G.global,t=new _.yB(0,0),g=Ax(_.F$(w));if(u$s(g,"parent")){do{if(g==q)var l=_.Jx(w);else l=XOS(w),l=new _.yB(l.left,l.top);t.x+=l.x;t.y+=l.y}while(g&&g!=q&&g!=g.parent&&(w=g.frameElement)&&(g=g.parent))}b={top:t.y,left:t.x,width:b.width,height:b.height}}b=fD_(b,E.viewportLocalAppOffset);
q=Kli(b,E.exposedViewportLocalGeometry);t=G.timeProvider.now();g=Object;w=g.assign;if(T!==2||G.inCrossDomainIframe||q.width<=0||q.height<=0)var X=!1;else try{var H=G.document.elementFromPoint(q.left+q.width/2,q.top+q.height/2);X=H?!KVp(H,M):!1}catch(I){X=!1}return{timestamp:t,value:w.call(g,{},E,{elementGeometrySourceName:"geo",intersectionGeometry:X?f2p.intersectionGeometry:q,elementGeometry:b})}}),jz(G.queue))}}};
KVp=function(G,e,r){r=r===void 0?0:r;return G.ref===void 0||e.ref===void 0?!1:G.ref===e.ref||_.B2(e.ref,function(Z){return Z===G.ref})?!0:e.ref.ownerDocument&&e.ref.ownerDocument.defaultView&&e.ref.ownerDocument.defaultView===e.ref.ownerDocument.defaultView.top?!1:r<10&&e.ref.ownerDocument&&e.ref.ownerDocument.defaultView&&e.ref.ownerDocument.defaultView.frameElement?KVp(G,new xf(e.ref.ownerDocument.defaultView.frameElement),r+1):!0};
o8F=function(G){return function(e){return e.pipe(G.ResizeObserver?HoS(G):dIF(G),hx(1),u7())}};
HoS=function(G){return function(e){return e.pipe(iL(function(r){var Z=G.ResizeObserver;if(!Z||r.ref===void 0)return sf(f2p.elementGeometry);var O=(new t6(function(M){function T(){r.ref!==void 0&&E.unobserve(r.ref);E.disconnect();b.unsubscribe()}
if(r.ref===void 0)return M.complete(),function(){};
var E=new Z(function(w){w.forEach(function(q){M.next(q)})});
E.observe(r.ref);var b=r.JSC$9369_released.subscribe(T);return T})).pipe(WL(G.performanceMonitor,736),nm(function(M){return M.contentRect}));
return x5(sf(r.ref.getBoundingClientRect()),O)}),rS(fN))}};
dIF=function(G){return function(e){var r=e.pipe(E8S(G)),Z=G.onResize;r=x5(e.pipe(nm(function(){return MKp("resize")})),r,Z);
return cL(e,r).pipe(WL(G.performanceMonitor,737),nm(function(O){O=_.h(O).next().value;return O.ref===void 0?void 0:O.ref.getBoundingClientRect()}),$Ia(),rS(fN))}};
I2A=function(G,e){var r=shA(G,e).pipe(hx(1),u7());return function(Z){return function(O){O=O.pipe(iL(function(M){return M.element}),rS());
return cL([r,O]).pipe(iL(function(M){var T=_.h(M);M=T.next().value;T=T.next().value;return Qh_(G,M.intersectionObserver,o8F(G),M.observations,Z,M.flushRecords,T)}),jz(G.queue))}}};
pOU=function(G){return nm(function(e){return e.value.viewportGeometrySourceName!=="nio"?e:Object.assign({},e,{value:Object.assign({},e.value,{exposedViewportLocalGeometry:P2(G,!0),topWindowViewportExternalGeometry:P2(G,!0)})})})};
CWi=function(G,e){return sf(e).pipe(G,nm(function(){return e}))};
shA=function(G,e){return G.timeProvider.timeline!==uQN?Qw(new nN(2)):G.MutationObserver?typeof IntersectionObserver==="undefined"?Qw(new nN(0)):(new t6(function(r){var Z=new RP,O=new W2(Z.next.bind(Z),{threshold:[].concat(_.mY(e))});r.next({observations:Z.pipe(WL(G.performanceMonitor,735)),intersectionObserver:O,flushRecords:function(M){M=O.takeRecords(M);M.length>0&&Z.next(M)}})})).pipe(ez(1),hx(1),u7()):Qw(new nN(1))};
n84=function(G){return ua$(G.sort(function(e,r){return e.time-r.time}),BPS)};
Qh_=function(G,e,r,Z,O,M,T){return new t6(function(E){function b(){X||(X=!0,T.ref!==void 0&&e.unobserve(O,T.ref),q.unsubscribe(),l.unsubscribe(),g.unsubscribe(),H.unsubscribe())}
if(T.ref!==void 0){mIS(e,O);e.observe(O,T.ref);var w=new NK({timestamp:G.timeProvider.now(),value:Object.assign({},f2p,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),q=Z.pipe(A6(function(I){return n84(I)}),PL(function(I){return I.target===T.ref}),nm(function(I){return{timestamp:new ze(I.time,uQN),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:I.rootBounds||LN,topWindowViewportExternalGeometry:I.rootBounds||P2(G,!0),measurementRequests:t,elementGeometrySourceName:"nio",intersectionGeometry:I.intersectionRect,elementGeometry:I.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:I.isIntersecting,isV2Visible:I.isVisible}}}),MK(w),u7()).subscribe(E),t=new RP,g=t.subscribe(function(){M(O);
E.next({timestamp:G.timeProvider.now(),value:w.value.value});T.ref!==void 0&&(e.unobserve(O,T.ref),e.observe(O,T.ref))}),l=CWi(r,T).subscribe(function(){t.next()}),X=!1,H=T.JSC$9369_released.subscribe(function(){return b()});
return b}})};
cBU=function(G,e){var r=G.getOnBackgrounded().pipe(nm(function(){return"b"}));
return $K4(e,r).pipe(ez(1),aP(G.queue))};
GX=function(G){return function(e){var r;return e.pipe(sP4(function(Z){return void(r=Z.timestamp)}),nm(function(Z){return Z.value}),G,nm(function(Z){return{timestamp:r,
value:Z}}))}};
YMF=function(G){return G.intersectionGeometry.width*G.intersectionGeometry.height/(G.elementGeometry.width*G.elementGeometry.height)};
eK=function(G,e,r){r=r===void 0?function(Z,O){return Z===O}:r;
return G.timestamp.equals(e.timestamp)&&r(G.value,e.value)};
ZD=function(G,e){return e.pipe(nm(function(r){return new r1(G.timeProvider,{timestamp:G.timeProvider.now(),value:r})}))};
yBp=function(G){return function(e){return e.pipe(QPS(G),nm(function(r){var Z=_.h(r);r=Z.next().value;Z=Z.next().value;var O=r.value;return{timestamp:r.timestamp,value:O>=1?!0:O<=0?!1:O>=Z}}))}};
FV$=function(){return qg(PL(function(G,e){return e>0}),ABS,Ew(-1),rS())};
JBf=function(G,e,r){return G?cL([e,r]).pipe(PL(function(Z){var O=_.h(Z);Z=O.next().value;O=O.next().value;return Z.timestamp.equals(O.timestamp)}),nm(function(Z){var O=_.h(Z);
Z=O.next().value;O=O.next().value;return Z.value>O.value?Z:O})):e};
PWq=function(G){return function(e){var r=e.pipe(Bwy),Z=e.pipe(xIA);return G instanceof t6?G.pipe(iL(function(O){return JBf(O,r,Z)})):JBf(G.value,r,Z)}};
Ozi=function(G,e,r,Z){var O=Z.geometryIsOccluded,M=Z.exposureThreshold,T=Z.wasLargeAdAtRender,E=Z.allowLargeAdThreshold,b=Z.largeAdExposureThreshold,w=Z.mayUseViewportShareExposure,q=Z.hasMeasurementStarted;Z=Z.useIntersectionObserverV2;e=UIA(G,r,e);r=ztF(G,r);Z=WVs(e,Z);var t=Nwp(G,O,w,e),g=t.pipe(nm(function(J){return J.value}),rS(),aP(G),Dd(function(J,U){return Math.max(J,U)},0)),l=t.pipe(nm(function(J){return J.value}),FV$(),aP(G)),X=e.pipe(LVN,nm(function(J){return J.value}),ez(2),rS(),aP(G));
T=Gbi(G,e,T,E);var H=T.pipe(Ew(!1),rS(),nm(function(J){return J?b:M}));
E=t.pipe(yBp(H),rS(),aP(G));var I=cL([E,e]).pipe(PL(function(J){var U=_.h(J);J=U.next().value;U=U.next().value;return J.timestamp.equals(U.timestamp)}),nm(function(J){var U=_.h(J);
J=U.next().value;U=U.next().value;return{visible:J.value,geometry:U.value.elementGeometry}}),Dd(function(J,U){return!U.visible&&J.visible?J:U},{visible:!1,
geometry:LN}),nm(function(J){return J.geometry}),Ew(LN),aP(G),rS(fN));
w=w instanceof t6?w.pipe(rS(),GV()):uL;H=cL([w,H]).pipe(GV());var C=e.pipe(PL(function(J){return J.value.viewportGeometrySourceName!=="ns"&&J.value.elementGeometrySourceName!=="ns"}),Dd(function(J){return J+1},0),Ew(0),aP(G)),u=r.pipe(GV(!0),Ew(!1),aP(G));
u=cL([q,u]).pipe(nm(function(J){var U=_.h(J);J=U.next().value;U=U.next().value;return J&&!U}),aP(G));
var P=e.pipe(eNf,rS()),F=P.pipe(nm(function(J){return J.value}),Dd(function(J,U){return Math.max(J,U)},0),rS(),aP(G));
G=P.pipe(nm(function(J){return J.value}),FV$(),aP(G));
return{shouldResetExposureSignals:w,shouldResetViewabilitySignals:H,geometrySignals:{readyGeometryWithDefault:e,measurementStrategy:e.pipe(rHi),creativePosition:I.pipe(rS(fN)),visible:E.pipe(rS(eK)),timestampedExposure:t.pipe(rS(eK)),maximumExposure:g,minimumExposure:l,browserSize:e.pipe(ZzU,rS(_.WA)),timestampedScreenShare:P,maxScreenShare:F,minScreenShare:G,geometricMeasurementErrors:r,measurementRequests:e.pipe(nm(function(J){return J.value.measurementRequests})),
isLargeAd:T,geometryIsOccluded:O,hasMeasurementStarted:q,geometryMeasurable:u,validMeasurementCount:C,loadTimeExposure:X,v2VisibilityBitVector:Z}}};
ztF=function(G,e){return e.pipe(PL(function(){return!1}),nm(function(r){return r}),Ng(function(r){return OQ(new KN(r),G)}))};
UIA=function(G,e,r){return e.pipe(vff(uL),aP(G)).pipe(rS(function(Z,O){return eK(Z,O,a24)}),Ew({timestamp:r.now(),
value:f2p}),aP(G))};
Nwp=function(G,e,r,Z){r=Z.pipe(PWq(r),GX(nm(function(O){return Math.round(O*100)/100})),aP(G));
return e instanceof KN?r:cL([r,e]).pipe(nm(function(O){var M=_.h(O);O=M.next().value;M=M.next().value;return{timestamp:M.timestamp.maximum(O.timestamp),value:M.value?0:O.value}}),rS(eK),aP(G))};
Gbi=function(G,e,r,Z){e=[e.pipe(nm(function(O){return O.value.elementGeometry.width*O.value.elementGeometry.height>=242500}))];
r instanceof t6&&e.push(r.pipe(nm(function(O){return!!O})));
r=cL(e);return Z?r.pipe(nm(function(O){return O.some(function(M){return M})}),Ew(!1),rS(),aP(G)):OQ(new KN(!1),G)};
WVs=function(G,e){G=cL([G,e]).pipe(nm(function(O){var M=_.h(O);O=M.next().value;if(M.next().value&&O.value.isIntersecting)return O.value.isV2Visible}),rS());
var r=G.pipe(nm(function(O){return O===void 0?!0:O}),Dd(function(O,M){return O||!M},!1)),Z=G.pipe(Dd(function(O,M){return M===void 0?O:M?!1:O!=null?O:!0},void 0),nm(function(O){return!!O}));
return cL([e,SwN(G,r,Z)]).pipe(nm(function(O){var M=_.h(O);O=M.next().value;var T=_.h(M.next().value);M=T.next().value;var E=T.next().value;T=T.next().value;var b=0;if(!O)return 0;if(M===void 0)return 16;M&&(b|=1);M||(b|=2);E&&(b|=4);T&&(b|=8);return b}))};
EZp=function(G,e,r,Z,O){var M=M1S.timeThresholdMs;var T=T===void 0?new V1$(e,Z):T;return(new t6(function(E){var b=r.pipe(Ew(void 0),iL(function(){return hNf(O)})).pipe(nm(function(w){var q=w.value;
w=w.timestamp;var t=q.visible;q=q.consecutiveViewTime;var g=q>=M;g||!t?Txf(T):(w=Math.max(0,Uf(e.now(),w)),D0s(T,Math.max(0,M-q-w)));return g}),Dd(function(w,q){return q||w},!1),rS()).subscribe(E);
return function(){T.dispose();b.unsubscribe()}})).pipe(bL(function(E){return!E},!0),aP(G))};
hNf=function(G){return qMa([G,G.pipe(jha())]).pipe(nm(function(e){var r=_.h(e);e=r.next().value;r=r.next().value;return{timestamp:e.timestamp,value:{visible:e.value,consecutiveViewTime:r.value}}}),rS(function(e,r){return eK(e,r,function(Z,O){return Z.consecutiveViewTime===O.consecutiveViewTime&&Z.visible===O.visible})}))};
izS=function(){return qg(l2p(),Dd(function(G,e){return Math.max(G,e)},0),nm(function(G){return Math.round(G)}))};
bzf=function(G){return qg(yBp(sf(G)),izS())};
vZa=function(G,e){return e instanceof t6?e.pipe(iL(function(r){return(r=r?15:null)?Qw(new nN(r)):G})):(e=e.value?15:null)?Qw(new nN(e)):G};
wXa=function(G){var e=new nN(13);if(G.length<1)return{chain:BL,capturedErrors:BL};var r=new RP,Z=G[0];return{chain:G.slice(1).reduce(function(O,M){return O.pipe(Ng(function(T){r.next(T);return M}))},Z).pipe(Ng(function(O){r.next(O);
return Qw(e)}),MK(new RP),u7()),
capturedErrors:r}};
$0S=function(G,e){var r=G.pipe(MK(new RP),u7());return iL(function(Z){return r.pipe(e(Z))})};
q9q=function(G,e){if(G.inCrossDomainIframe)return Qw(new nN(6));var r=new RP;return x5(sf({}),e,r).pipe(nm(function(){return{timestamp:G.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:S9S(G),topWindowViewportExternalGeometry:P2(G,!0),measurementRequests:r,viewportLocalAppOffset:{x:0,y:0}}}}),jz(G.queue))};
S9S=function(G){var e=P2(G,!1);if(!G.inIframe||!nfF(G.global.parent)||G.global.parent===G.global)return e;var r=new MM(G.global.parent,G.debugChannel);r.beaconFactory=G.beaconFactory;r=S9S(r);G=G.global.frameElement.getBoundingClientRect();return Kli(fD_(Kli(r,G),{x:e.left-G.left,y:e.top-G.top}),e)};
t1$=function(G){if(G.prerendering)return 3;var e;return(e={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[G.visibilityState||G.webkitVisibilityState||G.mozVisibilityState||""])!=null?e:0};
gZs=function(G){return G.document.JSC$9380_onVisibilityChange.pipe(nm(function(e){return e==="visible"}),rS(),aP(G.queue))};
lYN=function(G,e,r){var Z;return e.pipe(rS(),iL(function(O){return r.pipe(nm(function(){if(!Z){Z=!0;try{O.next()}finally{Z=!1}}return!0}))}),Ew(!1),aP(G.queue))};
RNS=function(G){return qg(GX(nm(function(e){return e>=1?!0:e<=0?!1:e>=G})),g8$(),nm(function(e){return Math.round(e)}))};
aYF=function(G,e,r,Z,O){var M=joi;if(M.length>1)for(var T=0;T<M.length-1;T++)if(M[T]<M[T+1])throw Error();T=O.pipe(Ew(void 0),iL(function(){return r.pipe(jha())}),rS(),aP(G));
O=O.pipe(Ew(void 0),iL(function(){return r.pipe(izS())}),rS(),aP(G));
return{totalMeasurementTime:Z.pipe(Ew(void 0),iL(function(){return e.pipe(nm(function(E){return{timestamp:E.timestamp,value:!0}}),g8$())}),rS(),aP(G)),
totalUnviewedTime:Z.pipe(Ew(void 0),iL(function(){return e.pipe(nm(function(E){return{timestamp:E.timestamp,value:E.value===0}}),g8$())}),rS(),aP(G)),
maxTimeOnScreen:Z.pipe(Ew(void 0),iL(function(){return e.pipe(RtN(bzf,M))}),rS(_.WA),aP(G)),
timeOnScreen:Z.pipe(Ew(void 0),iL(function(){return e.pipe(RtN(RNS,M),nm(function(E){return E.map(function(b,w){return w>0?b-E[w-1]:b})}))}),rS(_.WA),aP(G)),
maxConsecutiveViewTime:O,consecutiveViewTime:T.pipe(rS(eK),aP(G))}};
K0s=function(G){var e=!0;e=e===void 0?!1:e;return qg(iL(function(r){return XXN(G.document,r,e)}),aP(G.queue))};
fYN=function(G,e,r){var Z=r.pipe(nm(function(O){return{value:O,timestamp:G.timeProvider.now()}}),rS(eK));
return e instanceof t6?e.pipe(rS(),iL(function(O){return O?OQ(new KN({value:!1,timestamp:G.timeProvider.now()}),G.queue):Z})):e.value===!1?Z:new KN(!1)};
kbf=function(G,e,r,Z,O,M,T){var E=M1S;e=e instanceof t6?e.pipe(Ew(!1),rS()):e;var b=!G.isMobile();r=fYN(G,r,Z);G=T.measurableCreative.pipe(SMS(G.queue));return Object.assign({},E,{geometryIsOccluded:r,wasLargeAdAtRender:O,allowLargeAdThreshold:b,mayUseViewportShareExposure:e,hasMeasurementStarted:G,useIntersectionObserverV2:M})};
d0S=function(G,e,r,Z,O,M){var T=1;M=M===void 0?!0:M;T=T===void 0?.01:T;var E=E===void 0?G.timeProvider.intervalObservable(100).pipe(aP(G.queue)):E;return G.performanceMonitor.timeExecution(916,function(){return Hzi(G,e.pipe(jz(G.queue)),r.pipe(jz(G.queue)),Z,O,M,T,E)})()};
Hzi=function(G,e,r,Z,O,M,T,E){var b=gZs(G).pipe(nm(function(q){return!q})),w=new oZN(G,[new soS(G,joi),
new Qoa(G,E)]);E=MOU(IYi,pXs);return Wlf(G,e,function(q,t){var g=OQ(new KN(t.element),q.queue).pipe(K0s(q),aP(q.queue)),l={loadedElement:g,shouldMeasure:g.pipe(GV(!0)),measurableCreative:g.pipe(nm(function(J){var U=U===void 0?Symbol():U;return Object.freeze({symbol:U,element:OQ(new KN(J),q.queue)})})),
creativeSearchResult:OQ(new KN("mue"),q.queue)},X=new KN(!1),H=new KN(!1),I=new KN(17),C=new KN(!1),u=new KN(!1),P=OQ(VT,q.queue);X=w.buildGeometrySource(l,{inApp:X,useV2:!1,requestSource:OQ(I,q.queue)}).geometrySource;l=kbf(q,C,H,b,u,P,l);H=Ozi(q.queue,q.timeProvider,X,l);l=H.geometrySignals;C=H.shouldResetViewabilitySignals;H=aYF(q.queue,l.timestampedExposure,l.visible,H.shouldResetExposureSignals,C);C=EZp(q.queue,q.timeProvider,C,l.measurementRequests,l.visible);u=r.pipe(PL(function(J){return J===
t.element.ref}),nm(function(){return"ur"}));
P=ldS(q.timeProvider,O).pipe(GV("t"));u=cBU(q,x5(u,P));P=lYN(q,l.measurementRequests,u.pipe(PL(function(J){return J!==null})));
X=u.pipe(PL(function(J){return J!==null}),nm(function(){return t1$(q.global.document)===1}));
var F=C6$(q.document);return Object.assign({},{beaconFactory:new KN(q.beaconFactory),context:new KN(q),inferredPingId:new KN("lidar2"),timeOnScreenPingId:new KN("lidartos"),binaryContext:new KN(17),binaryVersion:new KN(Z),requestSource:I,contextValidationErrors:new KN(q.validate()?null:new md),contextVisibilityKnown:new KN(F),payloadMapper:new KN(ZoN),endOfSessionReason:u,timeOnScreenReason:u,requestMeasurementOnEndOfSession:P,hasImpressionFired:ut4,crossDomainIframeState:new KN(q.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:VT,inFetchLaterBeaconExperiment:VT,isTurtlex:VT,turtlexReportEventData:new KN(""),reportFencedFrameEvent:uL,isViewableAttributionEnabled:VT,inViewableAttributionExperiment:new KN(0),fetchBeaconFactory:uL,supportsPendingBeacon:VT,supportsFetchLater:VT,emit:new KN(TwU),beginToRenderEvent:new KN(Symbol()),activeViewUnmeasurableEvent:new KN(Symbol()),activeViewViewableEvent:new KN(Symbol()),creativeFound:ut4,immediateUrlPrefixes:new KN(t.immediateUrls),timeOnScreenUrlPrefixes:new KN(t.timeOnScreenUrls),
cpmavUrls:uL,viewableRelayUrls:uL,measurementDeferralState:new KN(2),urlSerializer:new KN(wOA),viewUrlSerializer:new KN(nZN),isCreativeLoaded:g.pipe(SMS(q.queue)),pageVisible:b.pipe(nm(function(J){return!J})),
eosPageVisible:X,timestampedExposureHistory:l.timestampedExposure.pipe(Dd(function(J,U){J.push(U);return J},[]))},l,{viewable:ZD(q,C),
maxTimeOnScreen:ZD(q,H.maxTimeOnScreen),timeOnScreen:ZD(q,H.timeOnScreen),maxConsecutiveViewTime:ZD(q,H.maxConsecutiveViewTime),consecutiveViewTime:H.consecutiveViewTime.pipe(nm(function(J){return new r1(q.timeProvider,J)})),
totalMeasurementTime:ZD(q,H.totalMeasurementTime),totalUnviewedTime:ZD(q,H.totalUnviewedTime),userAgentClientHints:OBa(q),clientOrderPingCounter:new KN(new Ll4)})},Ooy(G,T),VOs(M?hti(E,m0a):hti(E,cHp),Y9S))};
yHs=function(G){var e=_.Bw.apply(1,arguments).filter(Boolean).join("&");if(!e)return G;var r=G.match(/[?&]adurl=/);return r?G.slice(0,r.index+1)+e+"&"+G.slice(r.index+1):G+(G.indexOf("?")<0?"?":"&")+e};
hA=function(G,e){return e?"&"+G+"="+encodeURIComponent(e):""};
AHS=function(){try{var G,e;return!!((G=window)==null?0:(e=G.top)==null?0:e.location.href)&&!1}catch(r){return!0}};
_.TX=function(G){G&&typeof G.dispose=="function"&&G.dispose()};
_.DD=function(G){for(var e=0,r=arguments.length;e<r;++e){var Z=arguments[e];_.FN(Z)?_.DD.apply(null,Z):_.TX(Z)}};
JHs=function(){var G=F0a();G=G===void 0?"bevasrsg":G;return new Promise(function(e){var r=window===window.top?window:AHS()?window:window.top,Z=r[G],O;((O=Z)==null?0:O.bevasrs)?e(new EQ(Z.bevasrs)):(Z||(Z={},Z=(Z.nqfbel=[],Z),r[G]=Z),Z.nqfbel.push(function(M){e(new EQ(M))}))})};
Bx$=function(G){var e={c:G.j0,e:G.nzS,mc:G.dz3,me:G.pZa};G.xH&&(e.co={c:G.xH.eh0,a:G.xH.vt5,s:G.xH.xyh});return e};
x0y=function(G){var e,r,Z={j0:G.c,nzS:G.e,dz3:(e=G.mc)!=null?e:!1,pZa:(r=G.me)!=null?r:!1};G.co&&(Z.xH={eh0:G.co.c,vt5:G.co.a,xyh:G.co.s});return Z};
P6S=function(G){return function(){var e;return _.D(function(r){if(r.nextAddress==1)return r.yield(G(),2);e=r.yieldResult;return r.return({f:function(){return e.gFY()},
c:function(Z){return e.f85(Z)},
m:function(Z){return e.r9(x0y(Z))},
mws:function(Z){return e.tOv(x0y(Z))}})})}};
U0A=function(G,e){var r=F0a();r=r===void 0?"bevasrsg":r;e={s:function(M){var T;return G.snapshot(Object.assign({},M.c&&{j0:M.c},M.s&&{xwg:M.s},{m07:(T=M.p)!=null?T:!0}))},
e:function(M){var T;return void((T=G.puw)==null?void 0:T.call(G,M))},
c:function(M,T){return G.b70(M,T)},
p:G.uwM,l:function(){return G.b6v()},
wpc:e?P6S(e):void 0};var Z=window===window.top?window:AHS()?window:window.top,O=Z[r];if(O){O.bevasrs=e;if(O.nqfbel!==void 0)for(r=_.h(O.nqfbel),Z=r.next();!Z.done;Z=r.next())Z=Z.value,Z(e);O.nqfbel=void 0}else O={},O=(O.bevasrs=e,O.nqfbel=void 0,O),Z[r]=O};
W0q=function(G){var e=e===void 0?51:e;var r=[];_.ix(G,zNS,6,_.bx()).forEach(function(Z){_.vp(Z,2)<=e&&r.push(_.vp(Z,1))});
return r};
NxF=function(G){var e=e===void 0?51:e;var r=[];_.ix(G,zNS,6,_.bx()).forEach(function(Z){_.vp(Z,2)>e&&r.push(_.vp(Z,1))});
return r};
L0i=function(G){G.then(function(){},function(){})};
w1=function(G){return{fieldType:1,fieldName:G}};
$W=function(G){return{fieldType:2,fieldName:G}};
_.SK=function(G){return{fieldType:3,fieldName:G}};
GGF=function(){function G(){O[0]=1732584193;O[1]=4023233417;O[2]=2562383102;O[3]=271733878;O[4]=3285377520;q=w=0}
function e(t){for(var g=T,l=0;l<64;l+=4)g[l/4]=t[l]<<24|t[l+1]<<16|t[l+2]<<8|t[l+3];for(l=16;l<80;l++)t=g[l-3]^g[l-8]^g[l-14]^g[l-16],g[l]=(t<<1|t>>>31)&4294967295;t=O[0];var X=O[1],H=O[2],I=O[3],C=O[4];for(l=0;l<80;l++){if(l<40)if(l<20){var u=I^X&(H^I);var P=1518500249}else u=X^H^I,P=1859775393;else l<60?(u=X&H|I&(X|H),P=2400959708):(u=X^H^I,P=3395469782);u=((t<<5|t>>>27)&4294967295)+u+C+P+g[l]&4294967295;C=I;I=H;H=(X<<30|X>>>2)&4294967295;X=t;t=u}O[0]=O[0]+t&4294967295;O[1]=O[1]+X&4294967295;O[2]=
O[2]+H&4294967295;O[3]=O[3]+I&4294967295;O[4]=O[4]+C&4294967295}
function r(t,g){if(typeof t==="string"){t=unescape(encodeURIComponent(t));for(var l=[],X=0,H=t.length;X<H;++X)l.push(t.charCodeAt(X));t=l}g||(g=t.length);l=0;if(w==0)for(;l+64<g;)e(t.slice(l,l+64)),l+=64,q+=64;for(;l<g;)if(M[w++]=t[l++],q++,w==64)for(w=0,e(M);l+64<g;)e(t.slice(l,l+64)),l+=64,q+=64}
function Z(){var t=[],g=q*8;w<56?r(E,56-w):r(E,64-(w-56));for(var l=63;l>=56;l--)M[l]=g&255,g>>>=8;e(M);for(l=g=0;l<5;l++)for(var X=24;X>=0;X-=8)t[g++]=O[l]>>X&255;return t}
for(var O=[],M=[],T=[],E=[128],b=1;b<64;++b)E[b]=0;var w,q;G();return{reset:G,update:r,digest:Z,digestString:function(){for(var t=Z(),g="",l=0;l<t.length;l++)g+="0123456789ABCDEF".charAt(Math.floor(t[l]/16))+"0123456789ABCDEF".charAt(t[l]%16);return g}}};
Vmf=function(G,e){e=e===void 0?ewf:e;if(!rds){var r;G=(r=G.navigator)==null?void 0:r.userAgentData;if(!G||typeof G.getHighEntropyValues!=="function"||G.brands&&typeof G.brands.map!=="function")return Promise.reject(Error("ua"));ZrS((G.brands||[]).map(function(O){var M=new OrF;M=_.QB(M,1,O.brand);return _.QB(M,2,O.version)}));
typeof G.mobile==="boolean"&&_.qM(Mmy,2,G.mobile);rds=G.getHighEntropyValues(e)}var Z=new Set(e);return rds.then(function(O){var M=Mmy.clone();Z.has("platform")&&_.QB(M,3,O.platform);Z.has("platformVersion")&&_.QB(M,4,O.platformVersion);Z.has("architecture")&&_.QB(M,5,O.architecture);Z.has("model")&&_.QB(M,6,O.model);Z.has("uaFullVersion")&&_.QB(M,7,O.uaFullVersion);return M.serialize()}).catch(function(){return Mmy.serialize()})};
tA=function(G,e,r,Z){this.initialValue_=G;this.maxValue_=e;this.currBaseValue_=this.currValue_=G;this.randomFactor_=r||0;this.backoffFactor_=Z||2};
g1=function(G){this.src=G;this.listeners={};this.typeCount_=0};
E1p=function(){for(var G;G=hw_.remove();){try{G.fn.call(G.scope)}catch(e){MU(e)}TRf.put(G)}Dty=!1};
_.ir$=function(G){switch(G){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}};
bra=function(G){switch(G){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""}};
_.v1S=function(){};
jZp=function(G,e,r,Z){G=w_a($ta(S54(new _.jK(1828,"0"),G),new q5q)).disableWithCredentials();e.length&&tma(G,g1q(new lWf,e));Z!==void 0&&(G.destinationUrl=Z);var O=new RwU(1828,"","",!1,"",G.build());_.Xx(O,G);var M=new KB({flush:function(T){try{O.flush(T)}catch(E){r(E)}}});
M.addOnDisposeCallback(function(){setTimeout(function(){try{M.snapshotAndFlush()}finally{O.dispose()}})});
M.invocationLimit=1E5;M.flushInterval=3E4;M.JSC$9796_flushTimer.setInterval(3E4);return M};
fB=function(){var G,e,r;return(r=(G=globalThis.performance)==null?void 0:(e=G.now)==null?void 0:e.call(G))!=null?r:Date.now()};
Ka4=function(G,e){if(G.disable)return new aWs;e=e?W0q(e):[];G={j5:G.j5,p5A:G.i1X,b0x:G.i8y,destinationUrl:G.destinationUrl,wMA:G.wMA,vFM:G.vFM};e=e===void 0?[]:e;return new X_S(G,e)};
fWa=function(G){if(!G)return null;G=_.kW(G,2);return G===null||G===void 0?null:zq(G)};
_.kGN=function(G){if(!G)return null;G=_.kW(G,4);return G===null||G===void 0?null:_.sk(G)};
o1p=function(G,e){return e?Hrp(e):G?dtq(G):Promise.resolve()};
Hrp=function(G){return new Promise(function(e,r){var Z=_.Hp("SCRIPT"),O=_.kGN(G);_.h6(Z,O);Z.onload=function(){_.d1(Z);e()};
Z.onerror=function(){_.d1(Z);r(Error("Fa"))};
(oF("HEAD")[0]||document.documentElement).appendChild(Z)})};
dtq=function(G){return new Promise(function(e){var r=_.Hp("SCRIPT");if(G){var Z=_.kW(G,6);Z=Z===null||Z===void 0?null:_.Of(Z)}else Z=null;_.Vw(r,Z);(oF("HEAD")[0]||document.documentElement).appendChild(r);_.d1(r);e()})};
sQ=function(G,e,r){var Z,O=new Promise(function(M){Z=setTimeout(M,e)});
return Promise.race([G.finally(function(){return void clearTimeout(Z)}),
O.then(r)])};
sZF=function(G,e){try{return globalThis.sessionStorage.setItem(G,e),!0}catch(r){return!1}};
QZN=function(G,e,r,Z){e=e===void 0?0:e;r=r===void 0?G.length:r;var O=0;for(Z&&(O=QZN(Z));e<r;e++)Z=typeof G==="string"?G.charCodeAt(e):G[e],O=IWq(31,O)+Z|0;return O};
p_s=function(G,e){return[QZN(G,0,G.length>>1,e),QZN(G,G.length>>1)]};
CqN=function(G){var e=_.h(p_s(G,QT));G=e.next().value;e=e.next().value;return G.toString(16)+e.toString(16)};
u_f=function(G,e){var r=p_s(e);G=new Uint32Array(G.buffer);e=G[0];var Z=_.h(r);r=Z.next().value;Z=Z.next().value;for(var O=1;O<G.length;O+=2){for(var M=e,T=O,E=r,b=Z,w=0;w<22;w++)T=T>>>8|T<<24,T+=M|0,T^=E+38293,M=M<<3|M>>>29,M^=T,b=b>>>8|b<<24,b+=E|0,b^=w+38293,E=E<<3|E>>>29,E^=b;M=[M,T];G[O]^=M[0];O+1<G.length&&(G[O+1]^=M[1])}};
n1A=function(G,e,r,Z,O){var M=(4-(QT.length+r.length)%4)%4,T=new Uint8Array(4+M+QT.length+4+r.length),E=new DataView(T.buffer),b=0;E.setUint32(b,Math.random()*4294967295);b=b+4+M;T.set(QT,b);b+=QT.length;E.setUint32(b,O);T.set(r,b+4);u_f(T,Z);return G.insert(e,function(w){return void globalThis.sessionStorage.removeItem(w)})?sZF(e,_.uH(T))?"s":"t":"i"};
mtF=function(G,e){var r=globalThis.sessionStorage.getItem(G);if(!r)return["m"];try{var Z=_.NU(r);u_f(Z,e)}catch(O){return globalThis.sessionStorage.removeItem(G),["c"]}for(e=4;e<7&&Z[e]===0;)e++;for(r=0;r<QT.length;r++)if(Z[e++]!==QT[r])return globalThis.sessionStorage.removeItem(G),["d"];r=(new DataView(Z.buffer)).getUint32(e);return Math.floor(Date.now()/1E3)>=r?(globalThis.sessionStorage.removeItem(G),["e"]):["a",new Uint8Array(Z.buffer,e+4)]};
cdF=function(G){return globalThis.TextEncoder?(new TextEncoder).encode(G):_.IF(G)};
Y5A=function(G){var e=G,r;return function(){if(e){var Z=e;e=void 0;r=Z.apply(this,arguments)}return r}};
Ad$=function(G){return uy(function(e){if(e instanceof G)return!0;var r,Z,O=e==null?void 0:(r=e.ownerDocument)==null?void 0:(Z=r.defaultView)==null?void 0:Z[G.name];return ydS(O)&&e instanceof O})};
_.ux=function(G,e,r){_.pB.call(this);this.JSC$10010_listener_=G;this.JSC$10010_interval_=e||0;this.handler_=r;this.callback_=(0,_.CB)(this.JSC$10012_doAction_,this)};
_.nB=function(G){G=Faa(G);return _.sk(G)};
Faa=function(G){return G===null?"null":G===void 0?"undefined":G};
BRU=function(G){if(G&&G.focus)if(G!==document.activeElement)G.focus();else return JdS(function(){return _.D(function(e){document.activeElement&&document.activeElement.blur();return e.return(JdS(function(){G.focus()}))})})};
_.xta=function(G){var e=e===void 0?5:e;setTimeout(function(){var r;return _.D(function(Z){Z.nextAddress==1&&(r=document.activeElement);if(Z.nextAddress!=5)return(document.activeElement===r||document.activeElement===document.body)&&e>=0&&G?Z.yield(BRU(G),5):Z.jumpTo(0);if(document.activeElement===G)return Z.return();G=G.parentElement;--e;return Z.jumpTo(2)})},15)};
JdS=function(G){return new Promise(function(e){requestAnimationFrame(function(){e(G())})})};
Uta=function(G){if(_.ml)G(_.ml);else{var e;((e=PqN)!=null?e:PqN=[]).push(G)}};
YW=function(){!_.ml&&_.cp&&_.zwa(_.cp());return _.ml};
_.zwa=function(G){_.ml=G;var e;(e=PqN)==null||e.forEach(Uta);PqN=void 0};
_.yT=function(G){_.ml&&_.ml.beforeLoadModuleCode(G)};
_.AA=function(){_.ml&&_.ml.JSC$11063_setLoaded()};
Fx=function(G){return Ibf(G)?Number(G):String(G)};
Wa_=function(G){this.action=G;this.wfv=!1};
NRq=function(G,e){Wa_.call(this,"set-drive-options");this.appId=G;this.appOrigin=e};
LaF=function(G){Wa_.call(this,"visibility");this.visible=G};
Gcy=function(G,e,r){JA.call(this,G,e,r)};
ez_=function(G){xW.call(this,G)};
r04=function(G){G=G&&G.getWindow()||window;return G.gadgets&&G.gadgets.rpc};
OFy=function(G,e){var r=e&&e.getWindow()||window;if(r04(e))G();else if(ZFf)ZFf.push(G);else var Z=ZFf=[G],O=r.setInterval(function(){if(r04(e)){r.clearInterval(O);for(var M=0;M<Z.length;M++)Z[M]();ZFf=null}},100)};
VSN=function(G,e){var r=new Pp(G);_.Xx(e,r);var Z={passive:!1};e.listen(r,"mousewheel",function(O){return void MSa(G,O)},Z).listen(G,"scroll",function(O){return void MSa(G,O)},Z)};
MSa=function(G,e){var r;a:{for(r=e.target;r;){if(r.nodeType==1){var Z=_.UQ(r,"overflowY");if(Z=="auto"||Z=="scroll")break a}r=r.parentNode}r=null}if(!r||!_.zX(G,r)||r.scrollHeight==r.clientHeight||e.deltaY>0&&Math.abs(r.scrollTop-(r.scrollHeight-r.clientHeight))<=1||e.deltaY<0&&r.scrollTop==0)e.preventDefault(),e.stopPropagation()};
OM=function(G,e,r,Z,O,M,T,E,b){E=E===void 0?!1:E;b=b===void 0?!1:b;JA.call(this,void 0,void 0,void 0);JA.call(this,M?M+" picker modal-dialog":"picker modal-dialog",!0,r);_.Wp(G,"protocol");this.iframeManager_=new hzp;this.targetId_=NM();this.rpcToken_=NM();G=_.LB(G);_.Gy(G,"hostId");this.useGapi_=!b;E&&_.eO(G,"fv2","true");this.setUrl(G.toString());this.preferredDialogWidth_=Z;this.preferredDialogHeight_=O;Z!==void 0||O!==void 0?Z=!0:(Z=_.Gy(_.LB(G.toString()),"hostId"),TL_||(TL_=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),
Z=!TL_.has(Z));this.autoSizeDialog_=Z;this.JSC$10200_gadgetsDomHelper_=T||this.JSC$10151_dom_;e&&(T=this.JSC$10200_gadgetsDomHelper_,e=_.Gy(_.LB(this.JSC$10202_url_),"grugl")=="true"?Das:E2$,r04(T)||(T=T||sw(document),Z=T.createElement("SCRIPT"),_.h6(Z,e),Z.type="text/javascript",T.JSC$9335_document_.body.appendChild(Z)));G=G.toString();e=null;T=G.indexOf("/picker?");T>-1?e=G.substring(0,T+8-1):TS(G,"/picker")&&(e=G);e&&this.setRelayUrl(e+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=
null;this.buttonEl_&&(this.buttons_?(G=this.buttons_,G.JSC$10185_element_=this.buttonEl_,G.render()):_.Te(this.buttonEl_,iF$),_.Z2(this.buttonEl_,!!this.buttons_))};
_.$as=function(G){var e=e===void 0?bFp:e;var r=_.zS(G),Z=function(M){M=_.h(M);M.next();M=MI(M);return e(r,M)},O=function(M){var T=_.h(M);
M=T.next().value;T=MI(T);return G.apply(M,T)};
return function(){var M=_.Bw.apply(0,arguments),T=this||_.O_,E=v2y.get(T);E||(E={},v2y.set(T,E));return wGq(E,[this].concat(_.mY(M)),O,Z)}};
VD=function(G){var e={};G=G.replace(/\r/g,"").split("\n");for(var r=0;r<G.length;r++){var Z=G[r],O=Z.indexOf(":");O<0||(e[Z.substring(0,O)]=Z.substring(O+2,Z.length))}return e};
SuF=function(G,e,r){r=r===void 0?function(){}:r;
return G?e():r()};
_.tS4=function(G){var e;return((e=qup.documentOverride)!=null?e:G).__wizdispatcher};
_.Ty=function(G){var e=hB;hB=G;return e};
_.lG_=function(G){return G===g2p||(G==null?void 0:G.name)==="\u0275NotFound"};
_.D2=function(G,e){var r;if((r=G)==null?0:r.isDisposed)throw Error("jb`"+String(G.debugName));for(;G!==void 0;){r=G;if(r.retrieve)return r.retrieve(e,{optional:!0});G=G.parent}return g2p};
EM=function(G){return{"\u0275prov":{providedIn:"root",token:Symbol(G),factory:void 0,value:void 0}}};
_.Rz_=function(G){var e=hB;if(!e){switch(G===void 0?3:G){case 0:G=Error("ib");break;case 1:G=Error("kb");break;case 2:G=Error("lb");break;default:G=Error("mb")}throw G;}return e};
jci=function(G){var e=_.Ty(G);G={};return G[Symbol.dispose]=function(){_.Ty(e)},G};
aGq=function(G,e){G.disposables||(G.disposables=[]);G.disposables.push(e)};
iW=function(G){var e=hB;e&&!e.isDisposed&&(aGq(e,G),G.parent=e)};
KBa=function(G){if(G.disposables){for(var e=_.h(G.disposables),r=e.next();!r.done;r=e.next())r=r.value,typeof r==="function"?r():XG$(r);G.disposables.length=0}};
XG$=function(G){if(!G.isDisposed){G.isDisposed=!0;var e;(e=G[Symbol.dispose])==null||e.call(G);delete G.parent;KBa(G)}};
pGq=function(G){var e={retrieve:function(r){switch(r.\u0275prov.token){case fGS.\u0275prov.token:var Z=G.asyncDeps;break;case _.kcN.\u0275prov.token:Z=G.rootElement;break;case HFA.\u0275prov.token:Z=G.modelRootElement;break;case daf.\u0275prov.token:Z=G.appContext;break;case o2p.\u0275prov.token:Z=G.rendererData;break;case scp.\u0275prov.token:Z=G.injectingConstructor;break;case QcS.\u0275prov.token:Z=G.dispatcher}if(Z)r=Z;else a:{for(Z=e.parent;Z;){var O=Z;if(O.retrieve){r=O.retrieve(r);break a}Z=
Z.parent}Z=r.\u0275prov.token;O=IG_[Z];O!==void 0?r=O:(O=r.\u0275prov.providedIn,r.\u0275prov.factory?(r=r.\u0275prov.factory(),Z&&O==="root"&&(IG_[Z]=r)):r=g2p)}return r}};
iW(e);return e};
CAS=function(){var G=_.Rz_(1),e=_.D2(G,daf);if(!_.lG_(e))return e;G=_.D2(G,QcS);if(!_.lG_(G))return G.getOptionalAppContext()};
uF4=function(G){if(typeof document!=="undefined"&&document&&document.getElementById&&(G=document.getElementById(G))){var e=G.tagName.toUpperCase();if(e=="SCRIPT"||e=="LINK")return G}return null};
ma$=function(G,e){if((G=G===void 0?"":G)&&e)throw Error("sb");var r="";var Z=_.O_._F_jsUrl;(G=e||uF4(G))&&(r=G.src?G.src:G.getAttribute("href"));if(Z&&r){if(Z!=r)throw Error("tb`"+Z+"`"+r);r=Z}else r=Z||r;if(!n2_(r))throw Error("ub");return r};
A0p=function(){if(!c0S){c0S=!0;try{var G=ma$(_.O_._F_jsUrl?"":"base-js")}catch(Z){return}var e=YuN(y0N(G)),r=Object.keys(e);r.length!==0&&Uta(function(Z){for(var O=_.h(r),M=O.next();!M.done;M=O.next()){M=M.value;for(var T=_.h(Object.keys(e[M])),E=T.next();!E.done;E=T.next())Z.addExtraEdge(M,E.value)}})}};
J0y=function(){var G=Object.assign({},FB$);Object.getOwnPropertyNames(FB$).forEach(function(e){bW[e]!==void 0&&(G[e]=bW[e])});
return G};
BLA=function(G,e){if(bW.enablePerformanceTiming){var r,Z;(Z=(r=performance).mark)==null||Z.call(r,G+"Start__"+e)}};
xai=function(G,e){if(bW.enablePerformanceTiming){var r,Z;(Z=(r=performance).measure)==null||Z.call(r,G+"__"+e,G+"Start__"+e)}};
PAa=function(G,e,r){var Z;return G&&e?G+"__"+e:(Z=G!=null?G:e)!=null?Z:r};
zzi=function(G,e){var r=Object.create(UaN);r.debugName=e;!hB||iW(r);e=_.Ty(r);try{G(r)}finally{_.Ty(e)}return function(){return void XG$(r)}};
NLf=function(G){return vO(G)&&WBp in G};
LB$=function(G,e){return Object.is(G,e)};
$8=function(G){var e=ww;ww=G;return e};
erq=function(G){if(SO)throw Error("Z");if(ww!==null){var e=ww.producersTail;if(e===void 0||e.producer!==G){var r=void 0,Z=ww.recomputing;if(Z&&(r=e!==void 0?e.nextProducer:ww.producers,r!==void 0&&r.producer===G)){ww.producersTail=r;r.lastReadVersion=G.version;return}var O=G.consumersTail,M;if(!(M=O===void 0||O.consumer!==ww)){if(Z){a:{M=ww;Z=M.producersTail;if(Z!==void 0){M=M.producers;do{if(M===O){Z=!0;break a}if(M===Z)break;M=M.nextProducer}while(M!==void 0)}Z=!1}Z=!Z}M=Z}M&&(Z=tB(ww),r={producer:G,
consumer:ww,nextProducer:r,prevConsumer:O,lastReadVersion:G.version,nextConsumer:void 0},ww.producersTail=r,e!==void 0?e.nextProducer=r:ww.producers=r,Z&&Grq(G,r))}}};
lW=function(G){if(!tB(G)||G.dirty)if(G.dirty||G.lastCleanEpoch!==gw)(G.producerMustRecompute(G)||rG4(G))&&G.producerRecomputeValue(G),G.dirty=!1,G.lastCleanEpoch=gw};
ZLs=function(G){if(G.consumers!==void 0){var e=SO;SO=!0;try{for(var r=G.consumers;r!==void 0;r=r.nextConsumer){var Z=r.consumer;Z.dirty||(G=void 0,Z.dirty=!0,ZLs(Z),(G=Z.consumerMarkedDirty)==null||G.call(Z,Z))}}finally{SO=e}}};
OLf=function(){var G;return((G=ww)==null?void 0:G.consumerAllowSignalWrites)!==!1};
M4S=function(G){G&&(G.producersTail=void 0,G.recomputing=!0);return $8(G)};
hr4=function(G){G.recomputing=!1;var e=G.producersTail,r=e!==void 0?e.nextProducer:G.producers;if(r!==void 0){if(tB(G)){do r=V4U(r);while(r!==void 0)}e!==void 0?e.nextProducer=void 0:G.producers=void 0}};
rG4=function(G){for(G=G.producers;G!==void 0;G=G.nextProducer){var e=G.producer,r=G.lastReadVersion;if(r!==e.version)return!0;lW(e);if(r!==e.version)return!0}return!1};
Grq=function(G,e){var r=G.consumersTail,Z=tB(G);r!==void 0?(e.nextConsumer=r.nextConsumer,r.nextConsumer=e):(e.nextConsumer=void 0,G.consumers=e);e.prevConsumer=r;G.consumersTail=e;if(!Z)for(G=G.producers;G!==void 0;G=G.nextProducer)Grq(G.producer,G)};
V4U=function(G){var e=G.producer,r=G.nextProducer,Z=G.nextConsumer,O=G.prevConsumer;G.nextConsumer=void 0;G.prevConsumer=void 0;Z!==void 0?Z.prevConsumer=O:e.consumersTail=O;if(O!==void 0)O.nextConsumer=Z;else if(e.consumers=Z,!tB(e))for(G=e.producers;G!==void 0;)G=V4U(G);return r};
tB=function(G){return G.consumerIsAlwaysLive||G.consumers!==void 0};
DhF=function(G){var e=Object.create(Tli);e.computation=G;G=function(){lW(e);erq(e);if(e.value===Rh)throw e.error;return e.value};
G[jO]=e;return G};
vcS=function(G,e){var r=Object.create(Eca);r.value=G;e!==void 0&&(r.equal=e);G=function(){erq(r);return r.value};
G[jO]=r;return[G,function(Z){return iLF(r,Z)},
function(Z){OLf()||bLS(r);iLF(r,Z(r.value))}]};
iLF=function(G,e){OLf()||bLS(G);if(!G.equal(G.value,e)){G.value=e;G.version++;gw++;ZLs(G);var r;(r=wga)==null||r(G)}};
SsA=function(G,e,r){var Z=Object.create($hN);Z.source=G;Z.computation=e;r!=void 0&&(Z.equal=r);G=function(){lW(Z);erq(Z);if(Z.value===Rh)throw Z.error;return Z.value};
G[jO]=Z;return G};
_.ah=function(G){var e=$8(null);try{return G()}finally{$8(e)}};
_.XQ=function(G,e,r){r=r===void 0?"":r;G=vcS(G,e==null?void 0:e.equals);var Z=G[0],O=Z[jO];O.debugName=PAa(e==null?void 0:e.debugName,r,"[signal]");if(!bW.enablePerformanceTiming)return G;var M=G[1],T=G[2];return[Z,function(E){qs$(function(){return void M(E)},O)},
function(E){qs$(function(){return void T(E)},O)}]};
qs$=function(G,e){BLA("signalSet",e.debugName);try{G()}finally{xai("signalSet",e.debugName)}};
gcf=function(G,e){var r=_.h(_.XQ(G,void 0,"cPpJzc"));G=r.next().value;r=r.next().value;G[t4a]=r;G[Ko]=e;return G};
lRy=function(G){return!!G&&typeof G==="object"&&Object.getPrototypeOf(G)===Object.prototype};
Rri=function(G){return typeof G==="function"&&t4a in G&&typeof G[t4a]==="function"};
jQS=function(G,e){Object.defineProperty(G,Ko,{get:function(){return e}})};
k8=function(G,e){if(fo(G)){var r=G.map(function(M){return k8(M,e)});
jQS(r,e);return r}if(lRy(G)){r={};G=_.h(Object.entries(G));for(var Z=G.next();!Z.done;Z=G.next()){var O=_.h(Z.value);Z=O.next().value;O=O.next().value;r[Z]=k8(O,e)}jQS(r,e);return r}return gcf(G,e)};
aRS=function(G){if(fo(G))return G.map(function(O){return aRS(O)});
if(lRy(G)){var e={};G=_.h(Object.entries(G));for(var r=G.next();!r.done;r=G.next()){var Z=_.h(r.value);r=Z.next().value;Z=Z.next().value;e[r]=aRS(Z)}return e}return Rri(G)?G():G};
Kfa=function(){var G={height:0,width:0};if(!lRy(G))throw Error("Jb");var e=Symbol("Kb");return[k8(G,e),function(r,Z){if(r[Ko]===e)if(typeof Z==="function"){var O=[].concat(_.mY(aRS(r)));Z=Z(O)||O;XgN(r,[].concat(_.mY(Z)))}else XgN(r,Z);else throw Error("Lb");}]};
XgN=function(G,e){if(Rri(G))G[t4a](e);else if(fo(G)&&fo(e))e=k8(e,G[Ko]),G.length=0,G.push.apply(G,_.mY(e));else if((lRy(G)||fo(G))&&(fo(e)||typeof e==="object"&&e!==null)){e=_.h(Object.entries(e));for(var r=e.next();!r.done;r=e.next()){var Z=_.h(r.value);r=Z.next().value;Z=Z.next().value;var O=G,M=O[r];Object.hasOwn(G,r)?XgN(M,Z):O[r]=k8(Z,G[Ko])}}else throw Error("Mb");};
fR4=function(G){return Object.create(Object.assign({},HO,G))};
HL_=function(){var G;return(G=krA)!=null?G:krA=fR4({consumerAllowSignalWrites:!0})};
_.dw=function(G,e,r){r=r===void 0?"":r;G=DhF(G);var Z=G[jO];Z.debugName=PAa(e==null?void 0:e.debugName,r,"[computed]");(e==null?void 0:e.equals)!=null&&(Z.equal=e.equals);return G};
oh=function(G){var e=$8(dhA);try{G()}finally{$8(e)}};
NlN=function(G){switch(G.onInitType){case oc$:Uhp.schedule(G);break;case zrN:bW.enableQueueEffectAndOnInitInitialRuns?WfS.enqueue(G):WfS.schedule(G);break;default:_.zC(G.onInitType)}};
OMp=function(G){if(!G.isDisposed)switch(G.effectType){case sM:LfF.schedule(G);break;case G2q:esp.schedule(G);break;case rTp:bW.enableQueueEffectAndOnInitInitialRuns||G.hasRun?ZMp.enqueue(G):ZMp.schedule(G);break;default:_.zC(G.effectType)}};
hs_=function(){if(QD>0)bW.flushRenderEffectsDuringRender&&LfF.flush();else{for(var G=_.h(M8_),e=G.next();!e.done;e=G.next())e.value.flush();V8S()}};
V8S=function(){_.D(function(G){if(G.nextAddress==1)return G.yield(Promise.resolve(),2);for(var e=_.h(TeS),r=e.next();!r.done;r=e.next())r.value.flush();_.HL(G)})};
EsA=function(G){Ih=!0;try{for(var e=_.h(G),r=e.next();!r.done;r=e.next()){for(var Z=r.value,O=[Z],M=Z;M.parent!==void 0;)M=M.parent,DxS(M)&&G.has(M)&&O.push(M);for(;O.length>0;){var T=O.pop();G.delete(T);T.run()}}}finally{Ih=!1}};
po=function(G){QD--;if(G){G=_.h(iMF);for(var e=G.next();!e.done;e=G.next())e.value.clear()}else QD>0||Ih&&!bW.flushRenderEffectsDuringRender||hs_()};
vsp=function(G,e,r){var Z=bMs(G);Co={name:r?Z+" ("+r+")":Z,isReactive:G.componentType!==uW,parent:Co};G=e();Co=Co.parent;return G};
no=function(){var G=Co;return G?G.isReactive:!1};
cO=function(G,e,r){var Z=Co;e&&(Co=e);try{return r==null?G():G.call(r)}catch(M){G=M;mV(G,Co);if(G!==wJF){$xN=Co;e=[];for(r=hB;r;){var O=void 0;e.push((O=r.debugName)!=null?O:"[context]");O=void 0;r=(O=r.parent)!=null?O:null}SHU=e.reverse()}wJF=G;throw G;}finally{Co=Z}};
mV=function(G,e){try{var r=qHq(e);if(r&&!G.componentStack&&(G.componentStack=r,bW.enableComponentStacksInErrorMessages)){var Z=G.message+"\n\nComponent stack: "+r;G.stack&&(G.stack=G.stack.replace(G.message,Z));G.message=Z}}catch(O){}};
qHq=function(G){if(vO(G)&&G.name!==void 0&&G.isReactive!==void 0&&G.parent!==void 0||G===null){for(var e=0,r="";e<20&&G;)r+=G.name+" > ",G=G.parent,e++;G=r.slice(0,-3)}else if(bW.enableContextBasedComponentStacks){a:{for(G=G===void 0?hB:G;G;){if(NLf(G))break a;e=void 0;G=(e=G.parent)!=null?e:null}G=null}G=G.getComponentStack().slice(0,20).join(" > ")}else G="";return G};
bMs=function(G){return G.debugName||G.name||"[component]"};
t8N=function(G,e,r){e=Object.create(e);G&&(e.effectFn=G);r&&(e.debugName=r);iW(e);e.componentStack=Co;return e};
_.Y8=function(G,e){G=t8N(G,gsS,e);OMp(G)};
lm$=function(G){return G};
RsF=function(G,e){function r(){return O()}
var Z=Z===void 0?"":Z;var O=typeof G==="function"?SsA(G,lm$,e==null?void 0:e.equals):SsA(G.source,G.computation,e==null?void 0:e.equals);var M=O[jO];M.debugName=PAa(e==null?void 0:e.debugName,Z,"[linkedSignal]");r[jO]=M;return[r,function(T){qs$(function(){lW(M);iLF(M,T);M.dirty=!1;M.lastCleanEpoch=gw},M)},
function(T){qs$(function(){lW(M);OLf()||bLS(M);iLF(M,T(M.value));M.dirty=!1;M.lastCleanEpoch=gw},M)}]};
_.yD=function(G){var e=hB;if(e){var r=Co;aGq(e,function(){var Z=$8(HL_());try{cO(function(){return void G()},r)}catch(O){throw bW.enableContextBasedComponentStacks&&mV(O),O;
}finally{$8(Z)}})}};
AB=function(G,e){var r={};(e===void 0||e)&&iW(r);e=_.Ty(r);try{G(r)}finally{_.Ty(e)}return function(){return void XG$(r)}};
_.FQ=function(G){return typeof G==="function"?G():(G==null?0:G[j5U])?G.get():G};
_.JB=function(G,e){G=t8N(G,ams,e);OMp(G)};
XJi=function(G){if(hB)throw Error("nb");AB(G,!1)};
BO=function(G,e){G=_.Ty(G);try{return _.ah(e)}finally{_.Ty(G)}};
x8=function(G,e){var r=qHq($xN),Z,O;var M=(O=(Z=SHU)==null?void 0:Z.slice())!=null?O:[];e={componentStack:r,contextTrace:M,errorSeverity:3,featureFlags:J0y(),tagName:e};return[G,e]};
k2_=function(G,e,r){if(Object.hasOwnProperty.call(Kup,G)&&(G=Kup[G],Object.hasOwnProperty.call(G,e)&&(G=G[e],G instanceof Array))){for(var Z=null,O=!1,M=0,T=G.length;M<T;++M){var E=G[M],b=E.contingentAttribute;if(!b)return E.contract;Z===null&&(Z={});b=Object.hasOwnProperty.call(Z,b)?Z[b]:Z[b]=r(b);if(b===E.requiredValue)return E.contract;b==null&&(O=!0)}if(O)return null}e=fmF[e];return typeof e==="number"?e:null};
osi=function(G,e,r){var Z=null;(G=HMf[G])&&(Z=G[e]);return typeof Z!=="number"&&((G=HMf["*"])&&(Z=G[e]),typeof Z!=="number")?!1:!0===dxU[Z][String(r).toLowerCase()]};
Q5s=function(G,e){e=k2_(G.toLowerCase(),e,function(){var Z;(Z=bW.handleError)==null||Z.call.apply(Z,[bW].concat(_.mY(x8(Error("Tb"),G.toLowerCase()))))});
if(e===null)return null;var r;return(r=s5$[e])!=null?r:null};
ImU=function(G,e,r){if(r===null||r===void 0)return r;e=e.toLowerCase();G=Q5s(G,e);return G===null?r:G(e,r)};
pJS=function(){};
PO=function(G,e){for(;G.length>e;)G.pop()};
CCa=function(G){G=Array(G);PO(G,0);return G};
zy=function(G,e,r){if(r==null)G.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)?G.setAttributeNS(Z,e,r):G.setAttribute(e,r)}};
u1s=function(G,e,r){G[e]=r};
mxp=function(G,e,r){G=G.style;if(typeof r==="string")G.cssText=r;else{G.cssText="";for(var Z in r)if(nsS.call(r,Z)){e=G;var O=Z,M=r[Z];O.indexOf("-")>=0?e.setProperty(O,M):e[O]=M}}};
cT4=function(G,e,r){var Z=typeof r;Z==="object"||Z==="function"?G[e]=r:zy(G,e,r)};
YHU=function(){var G=new pJS;G[WO.default]=cT4;G.style=mxp;return G};
yT4=function(G,e,r,Z){(Z[e]||Z[WO.default])(G,e,r)};
Fua=function(G,e,r){e=new ATA(e,r);return G.__incrementalDOMData=e};
Gb=function(G,e){if(G.__incrementalDOMData)return G.__incrementalDOMData;var r=G.nodeType===1?G.localName:G.nodeName,Z=G.nodeType===1?G.getAttribute("key"):null;e=Fua(G,r,G.nodeType===1?Z||e:null);if(G.nodeType===1&&(G=G.attributes,r=G.length)){Z=e._attrsArr||(e._attrsArr=CCa(r*2));for(var O=0,M=0;O<r;O+=1,M+=2){var T=G[O],E=T.value;Z[M]=T.name;Z[M+1]=E}}return e};
JTF=function(G,e,r,Z,O){return e==r&&Z==O};
BeS=function(G){for(var e=e1,r=rx();r!==G;){var Z=r.nextSibling;e.removeChild(r);ZY.deleted.push(r);r=Z}};
rx=function(){return O9?O9.nextSibling:e1.firstChild};
M0=function(){O9=rx()};
Uxp=function(G,e,r){M0();var Z;a:{if(Z=O9){do{var O=Z,M=G,T=e,E=Gb(O,T);if(xxp(O,M,E.nameOrCtor,T,E.key))break a}while(e&&(Z=Z.nextSibling))}Z=null}Z||(G==="#text"?(r=VY.createTextNode(""),Fua(r,"#text",null),G=r):(Z=VY,O=e1,typeof G==="function"?Z=new G:Z=(O=G==="svg"?"http://www.w3.org/2000/svg":G==="math"?"http://www.w3.org/1998/Math/MathML":O==null||Gb(O).nameOrCtor==="foreignObject"?null:O.namespaceURI)?Z.createElementNS(O,G):Z.createElement(G),Fua(Z,G,e),G=Z,r&&G.setAttribute("nonce",r)),ZY.created.push(G),
Z=G);r=Z;if(r!==O9){if(PC4.indexOf(r)>=0)for(G=e1,e=r.nextSibling,Z=O9;Z!==null&&Z!==r;)O=Z.nextSibling,G.insertBefore(Z,e),Z=O;else e1.insertBefore(r,O9);O9=r}};
zsq=function(G,e,r){Uxp(G,e,r);e1=O9;O9=null;return e1};
WuA=function(){BeS(null);O9=e1;e1=e1.parentNode};
GUq=function(G,e){e=e===void 0?{}:e;var r=e.matches===void 0?JTF:e.matches;return function(Z,O,M){var T=ZY,E=VY,b=PC4,w=hH,q=Tb,t=O9,g=e1,l=xxp;VY=Z.ownerDocument;ZY=new Ne4(Z);xxp=r;hH=[];Tb=[];O9=null;var X=e1=Z.parentNode,H,I=Luq.call(Z);if((H=I.nodeType===11||I.nodeType===9?I.activeElement:null)&&Z.contains(H)){for(I=[];H!==X;)I.push(H),H=H.parentNode||(X?H.host:null);X=I}else X=[];PC4=X;try{return G(Z,O,M)}finally{Z=ZY,DY&&Z.deleted.length>0&&DY(Z.deleted),VY=E,ZY=T,xxp=l,hH=w,Tb=q,O9=t,e1=g,
PC4=b}}};
eZf=function(G,e,r,Z){E9.push(yT4);E9.push(G);E9.push(e);E9.push(r);E9.push(Z)};
ZtA=function(G,e,r){var Z=Tb;e=e._attrsArr||(e._attrsArr=CCa(Z.length));for(var O=!e.length||!1,M=0;M<Z.length;M+=2){var T=Z[M];if(O)e[M]=T;else if(e[M]!==T)break;var E=Z[M+1];if(O||e[M+1]!==E)e[M+1]=E,eZf(G,T,E,r)}if(M<Z.length||M<e.length){for(M=O=M;M<e.length;M+=2)i6[e[M]]=e[M+1];for(M=O;M<Z.length;M+=2)O=Z[M],T=Z[M+1],i6[O]!==T&&eZf(G,O,T,r),e[M]=O,e[M+1]=T,delete i6[O];PO(e,Z.length);for(var b in i6)eZf(G,b,void 0,r),delete i6[b]}G=rPN;rPN=r=E9.length;for(b=G;b<r;b+=5)(0,E9[b])(E9[b+1],E9[b+
2],E9[b+3],E9[b+4]);rPN=G;PO(E9,G);PO(Z,0)};
OtU=function(G){Uxp("#text",null);var e=O9;var r=Gb(e);if(r.text!==G){r=r.text=G;for(var Z=1;Z<arguments.length;Z+=1)r=(0,arguments[Z])(r);e.data!==r&&(e.data=r)}};
itF=function(G,e,r){if(r===!1&&MCS.has(e))zy(G,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(r===void 0||r===null){var Z;(Z=bW.handleError)==null||Z.call.apply(Z,[bW].concat(_.mY(x8(Error("Xb`"+e),G.tagName))));G[e]=void 0}else{var O=e.slice(3);Z=no();if(O==="jsaction"){r=Array.isArray(r)?r:[r];r=_.h(r);for(var M=r.next();!M.done;M=r.next()){M=M.value;if(typeof M!=="object"||M===null||typeof M.selfReg!==
"function")throw Error("$b`"+e);M.selfReg(0,G,Z?_.yD:function(){})}}else{if(typeof r!=="object"||r===null)throw Error("Yb`"+e+"`"+typeof r);
if(typeof r.getFn!=="function")throw Error("Zb`"+e+"`"+Object.keys(r));if(r.selfReg)r.selfReg(0,G,O,Z?_.yD:function(){});
else if(Z&&G["on"+O]===void 0){var T=r.getFn(0);G.addEventListener(O,T);_.yD(function(){return void G.removeEventListener(O,T)})}else if(Z||!VC4.includes(O))G["on"+O]=r.getFn(0)}}}else{if(e.startsWith("data-")&&typeof r==="string")try{r=hZs(r)}catch(E){r="zSoyz"}typeof r!=="function"||G._disposeEffects!=null?((Z=e.startsWith("prop:"))&&(e=e.slice(5)),bW.enableAttributeSanitization&&(Z&&TE4(G.tagName)||(r=ImU(G.tagName,e,r))),e==="style"?("function"==typeof _.b6&&r instanceof _.b6&&(r=r.toString()),
DNq(G,e,r)):Z?G[e]=r:Euf(G,e,r)):(G._signalProps||(G._signalProps=[]),G._signalValues||(G._signalValues=[]),G._signalProps.push(e))}};
btS=function(G,e,r){r=(r===void 0?{}:r).isReactive;if(e==null?0:e.el){var Z=e.el,O;(O=Z.onRender)==null||O.call(Z,G);G._disposeRef||(G._disposeRef=function(){var M;(M=Z.onUnmount)==null||M.call(Z);delete G._disposeRef},r&&_.yD(function(){var M;
(M=G._disposeRef)==null||M.call(G)}))}};
TE4=function(G){return G.length>0&&G.includes("-")&&!vua.includes(G.toLowerCase())};
wUa=function(G){return vO(G)&&vX in G};
$Np=function(G){return wUa(G)?G[vX].flattened:G};
S0_=function(G,e){var r=_.Bw.apply(2,arguments),Z;e=(Z=e)!=null?Z:{};Z={};return Z.type=G,Z.props=e,Z.children=r,Z[wx]=!0,Z};
_.$Z=function(G){return G.children};
S1=function(G){var e=q0S!==S0_;q0S=G?tCN:S0_;return e};
_.q0=function(G){return _.PA(G)?"nodeType"in G:!1};
tH=function(){return document.createTextNode("")};
gx=function(G){G=document.createTextNode(String(G));G._isSignalTextNode=!0;return G};
lES=function(G){return G!=null&&G.contentKind===Ro||G instanceof Uk||guy(G)};
RZN=function(G){var e=document.createElement("div");if(guy(G)&&fWa(G))_.Te(e,fWa(G));else if(G instanceof Uk)_.Te(e,G);else if(G!=null&&G.contentKind===Ro){if(G.contentKind!==Ro)throw Error("Wb");G=zq(G.toString());_.Te(e,G)}G=_.h(e.childNodes);for(var r=G.next();!r.done;r=G.next())r.value._isSafeOrSanitizedHtmlNode=!0;return e};
j1=function(G){G=typeof G;return G==="string"||G==="number"||G==="boolean"};
jdF=function(G){return G instanceof dz||uz(G)||G instanceof i7||"function"==typeof _.b6&&G instanceof _.b6};
aE_=function(G,e){var r=G.parentElement;if(!r)return e;r.replaceChild(e,G);return e};
XUS=function(G,e){var r=G[0].parentElement;if(r)if(G[0].previousSibling||G[G.length-1].nextSibling){r.insertBefore(e,G[0]);for(var Z=G.length-1;Z>=0;Z--)r.removeChild(G[Z])}else r.textContent="",r.appendChild(e);return e};
KM_=function(G,e){if(G[0].parentElement)for(var r=G[0].parentElement,Z=e.length,O=G.length,M=Z,T=0,E=0,b=G[O-1].nextSibling,w=null;T<O||E<M;)if(G[T]===e[E])T++,E++;else{for(;G[O-1]===e[M-1];)O--,M--;if(O===T)for(var q=M<Z?E?e[E-1].nextSibling:e[M-E]:b;E<M;){var t=e[E++];r.insertBefore(t,q)}else if(M===E)for(;T<O;)q=G[T],w&&w.has(q)||r.removeChild(q),T++;else if(G[T]===e[M-1]&&e[E]===G[O-1])q=G[--O].nextSibling,r.insertBefore(e[E++],G[T++].nextSibling),r.insertBefore(e[--M],q),G[O]=e[M];else{if(!w)for(w=
new Map,q=E;q<M;)w.set(e[q],q++);q=w.get(G[T]);if(q==null)r.removeChild(G[T]),T++;else if(E<q&&q<M){t=T;for(var g=1,l=void 0;++t<O&&t<M&&(l=w.get(G[t]))!=null&&l===q+g;)g++;if(g>q-E)for(t=G[T];E<q;)r.insertBefore(e[E++],t);else r.replaceChild(e[E++],G[T++])}else T++}}return e};
kUi=function(G){if(Array.isArray(G)){if(G.length>1)throw Error("jc`"+G.length+"`"+G.map(fES).join(", "));G=G[0]}if(G==null)return null;if(!(G instanceof _.Zf)){var e,r;if((e=window)==null?0:(r=e.trustedTypes)==null?0:r.isScript(G))throw Error("ic");if(String(G).trim().length===0)return null;throw Error("kc`"+fES(G));}return G};
Ht$=function(G,e){e=kUi(e);e!==null&&_.Vw(G,e)};
dNN=function(G){if(Array.isArray(G)){if(G.length>1)throw Error("lc`"+G.length+"`"+G.map(fES).join(", "));G=G[0]}if(G==null)return null;if(!(G instanceof i7)){if(String(G).trim().length===0)return null;throw Error("mc`"+fES(G));}return G};
ou4=function(G,e){e=dNN(e);e!==null&&(G.textContent=qfS(e))};
fES=function(G){return"("+typeof G+") "+(G!=null&&typeof G==="object"?G.constructor.name:typeof G)+" "+G};
sdi=function(){};
Kz=function(G,e){e=e===void 0?{}:e;var r=QdS(),Z=!0,O,M=!!bW.legacyTriggerSoyRendererEvents;M&&(O=CAS());_.JB(function(){var T=!Z&&e.isControlFlowComponent&&M,E=T?r[vX].flattened[0].parentElement:void 0;Z=!1;_.ao.setUp();e.isControlFlowComponent&&QD++;var b=r[0],w=r[vX].flattened,q=S1(!0);try{var t=G(),g=IEa(b,t,r);Array.isArray(g)||(r[vX].flattened=[g]);var l=r[vX].flattened;if(w&&(!Array.isArray(w)||w.length!==0)){var X=Array.isArray(w)?w[0]:w,H=X[Xt],I=X._disposeEffects;X._disposeEffects=void 0;
X=Array.isArray(l)?l[0]:l;X[Xt]=H;X[Xt]&&(X[Xt].numNodes=X===l?1:l.length);X._disposeEffects=I}r[0]=g;e.isControlFlowComponent&&po(!1)}catch(C){throw e.isControlFlowComponent&&po(!0),C;}finally{S1(q),_.ao.tearDown()}T&&(T=O,T!=null||(T=_.tS4(document).getAppContext()),T.get(pUp).JSC$29373_getEventTarget().dispatchEvent(new CYi(up4,E,Ro)))},e.debugName);
return r};
IEa=function(G,e,r){for(;typeof e==="function";)e=e();if(e!=null&&e[wx]){var Z,O,M;(M=bW.handleError)==null||M.call.apply(M,[bW].concat(_.mY(x8(Error("nc`"+((Z=e.type)==null?void 0:Z.TAG_NAME)),(O=e.type)==null?void 0:O.TAG_NAME))))}if(G==null)return e==null?tH():j1(e)?gx(e):jdF(e)?gx(e.toString()):_.q0(e)?e:e.length===0?tH():nuq(e,r);if(_.q0(G)){if(e==null)return aE_(G,tH());if(j1(e))return mNs(G,e);if(jdF(e))return mNs(G,e.toString());if(_.q0(e))return aE_(G,e);if(e.length===0)return aE_(G,tH());
e=nuq(e,r);KM_([G],r[vX].flattened);return e}G=fz(G);if(e==null)return XUS(G,tH());if(j1(e))return XUS(G,gx(e));if(jdF(e))return XUS(G,gx(e.toString()));if(_.q0(e))return KM_(G,[e])[0];if(e.length===0)return XUS(G,tH());e=nuq(e,r);KM_(G,r[vX].flattened);return e};
mNs=function(G,e){G.nodeType===Node.TEXT_NODE?G.textContent!==String(e)&&(G.textContent=String(e)):G=aE_(G,gx(e));return G};
fz=function(G,e,r){return cPS(G,e!=null?e:[],r===void 0?!1:r)};
nuq=function(G,e){var r=fz(G,void 0,!0);if(r.length===0)return tH();e[vX].flattened=r;return G};
cPS=function(G,e,r,Z,O){e=e===void 0?[]:e;r=r===void 0?!1:r;O=O===void 0?-1:O;if(G==null)return e;if(G instanceof kZ){var M=G.render();return cPS(M,e,r,Z,O)}if(_.q0(e)&&e.nodeType===Node.ELEMENT_NODE)switch(e.tagName){case "SCRIPT":Ht$(e,G);return;case "STYLE":ou4(e,G);return}j1(G)&&(G=gx(G),Z&&r&&(Z[O]=G));if(lES(G)){r=RZN(G);r=Array.from(r.childNodes);r=_.h(r);for(M=r.next();!M.done;M=r.next())Y0$(e,M.value);return e}jdF(G)&&(G=gx(G.toString()),Z&&r&&(Z[O]=G));if(_.q0(G))return Y0$(e,G);if(Array.isArray(G)){for(M=
0;M<G.length;M++)cPS(G[M],e,r,G,M);return e}if(typeof G==="function"){M=Kz(function(){var E=G();return E!=null&&!j1(E)&&lES(E)?(E=RZN(E),Array.from(E.childNodes)):E},{debugName:"qmF2ne",
debugFn:G})[0];if(Array.isArray(M)){r=_.h(M);for(M=r.next();!M.done;M=r.next())Y0$(e,M.value);return e}Z&&r&&(Z[O]=M);return Y0$(e,M)}if(G!=null&&G[wx]){Z=G;O=S1(!0);var T=q0S;try{M=T.apply(null,[Z.type,Z.props].concat(_.mY(Z.children)))}finally{S1(O)}return cPS(M,e,r)}(T=bW.handleError)==null||T.call.apply(T,[bW].concat(_.mY(x8(Error("oc")))));return e};
QdS=function(G){var e={};e=Object.assign([],(e[vX]={flattened:[]},e));if(!G)return e;e[0]=nuq(G,e);return e};
Y0$=function(G,e){Array.isArray(G)?G.push(e):G.appendChild(e);return G};
HX=function(G){if(!bW.enableLazyTsx)return G;if(Array.isArray(G)){for(var e=0;e<G.length;e++)G[e]=HX(G[e]);return G}return G instanceof kZ?(G=G.render(),HX(G)):G};
AP4=function(G,e){var r,Z,O=bMs(G),M=function(l){Z=l;l=S1(!0);var X=$8(dx);BLA("render",O);try{r=HX(G(e))}finally{xai("render",O),$8(X),S1(l)}};
M=bW.enableContextPerComponent?zzi(M,O):AB(M,bW.alwaysTrackContexts||!!hB);NLf(Z);if(!e.renderedFromIdom){var T=_.Ty(Z);try{return yPp(G,e,r),r}finally{_.Ty(T)}}!wUa(r)&&Array.isArray(r)&&(r=QdS(r));var E=$Np(r);T=Array.isArray(E)?E[0]:E;var b=!1;if(T){var w,q=(w=e==null?void 0:e.idomKey)!=null?w:G;w=E!==T;T._disposeEffects=M;var t=T[Xt]||{},g=wUa(r)?r:t.sourceDynamicRange;Object.assign(t,{key:q,numNodes:w?E.length:1,context:Z,higherOrder:!!T[Xt],sourceDynamicRange:g});T[Xt]=t}else b=!0;(function(){var l=
_.Ty(Z);try{yPp(G,e,E)}finally{_.Ty(l)}})();
b&&M();return r};
FM_=function(G){var e={},r;for(r in G)e={prev$jscomp$24:void 0,next$jscomp$33:void 0},e.prev$jscomp$24=oo[r],e.next$jscomp$33=G[r],oo[r]=function(Z){return function(){var O=_.Bw.apply(0,arguments);Z.prev$jscomp$24.apply(null,_.mY(O));Z.next$jscomp$33.apply(null,_.mY(O))}}(e)};
JPa=function(){if(no())throw Error("pc");return s9};
BES=function(G,e){if(!G.__unmounted&&e){G.__unmounted=!0;try{G.didUnmount()}catch(O){var r,Z;(Z=bW.handleError)==null||Z.call.apply(Z,[bW].concat(_.mY(x8(O,(r=G.__type)==null?void 0:r.TAG_NAME))))}oo.didUnmount(G);G.el=null;e.__instance&&delete e.__instance}};
PY$=function(G,e,r){G._signalProps!=null&&G._disposeEffects==null&&((r===void 0?0:r)?G._disposeEffects=AB(function(){return void xNf(G,e)},bW.alwaysTrackContexts||!!hB):xNf(G,e))};
xNf=function(G,e){_.JB(function(){for(var r=G._signalProps,Z=G._signalValues,O=0;O<r.length;O++){var M=r[O],T=e[M]();Z[O]!==T&&(Z[O]=T,itF(G,M,T))}},"e3YVbb")};
UNN=function(G,e,r){var Z,O=[];G._disposeEffects=AB(function(){_.JB(function(){var M=r();if(M===null||M===void 0)M="";if(j1(M)||M===null)Z!=null||(Z=document.createTextNode("")),Z.parentNode!==G&&(Z._isSignalTextNode=!0,G.insertBefore(Z,e)),Z.textContent=String(M);else if(lES(M)){for(var T=O.length>0?O[O.length-1].nextSibling:e,E=_.h(O),b=E.next();!b.done;b=E.next())G.removeChild(b.value);M=RZN(M);O=Array.from(M.childNodes);M=_.h(O);for(E=M.next();!E.done;E=M.next())G.insertBefore(E.value,T)}else throw b=
(E=(T=Co)==null?void 0:T.name)!=null?E:"unknown",Error("ec`"+b+"`"+typeof M);},"VvDgC")},bW.alwaysTrackContexts||!!hB)};
NEs=function(G,e){var r=_.Bw.apply(2,arguments);e!=null||(e={});return!bW.enableLazyTsx||Co!=null&&!no()?zZp(G,e,r):new WMA(G,e,r)};
zZp=function(G,e,r){if(G===_.$Z)return r;if(typeof G==="function")return Co&&!no()&&(e.renderedFromIdom=!0),vsp(G,function(){var M=LM_(G,e,r);if(M)return M;r.length>0&&(e.children=r.length===1?r[0]:r);if(G.componentType===uW){var T;zzi(function(){var E=e;if(G.componentType!==uW)T=!1;else{E||(E={});var b=new QY(E,G),w=$8(dx);try{var q=b.render(E)}finally{$8(w)}q instanceof HTMLElement?(q.__instance=b,b.el=q,b.__type=G,G.TAG_NAME=q.tagName.toLowerCase(),oo.didPatch(b),T=q):T=q}},G.name);
if(T)return T}return AP4(G,e)},e.debugInstance);
var Z=Gw$(G,e),O;for(O in e)itF(Z,O,e[O]);PY$(Z,e);fz(r,Z);btS(Z,e,{isReactive:!0});egq(Z,e);return Z};
Gw$=function(G,e){G=(rbU.has(G.toLowerCase())?0:ZOq.has(G.startsWith("svg:")?G.replace("svg:",""):G))?document.createElementNS("http://www.w3.org/2000/svg",G.startsWith("svg:")?G.replace("svg:",""):G):OOf(G,e)||document.createElement(G);G[MW_]=!0;return G};
VWF=function(G){if(G){var e;(e=G._disposeRef)==null||e.call(G);var r;(r=G._disposeEffects)==null||r.call(G);G.__instance&&G.__instance instanceof Io&&(e=G.__instance,BES(e,G),e instanceof QY&&e.disposeEffects());for(e=0;e<G.childNodes.length;e++)VWF(G.childNodes[e])}};
Toi=function(G){hgS.push(G)===1&&requestAnimationFrame(function(){setTimeout(function(){var e=[].concat(_.mY(hgS));hgS=[];e=_.h(e);for(var r=e.next();!r.done;r=e.next()){r=r.value;try{for(var Z=0;Z<r.length;Z++)VWF(r[Z])}catch(O){Z=r=void 0,(Z=(r=bW).handleError)==null||Z.call.apply(Z,[r].concat(_.mY(x8(O))))}}})})};
_.v=function(G,e){return q0S.apply(null,[G,e].concat(_.mY(_.Bw.apply(2,arguments))))};
_.pz=function(G){return G};
_.Cz=function(G){return{isDefault:!0,children:G.children}};
_.S=function(G){var e=G.cond;if(e===void 0)return G.else&&G.else();var r=_.dw(function(){return!!e()},void 0,"JHVi8"),Z=function(){var O=e();
if(!O){var M;(M=bW.handleError)==null||M.call.apply(M,[bW].concat(_.mY(x8(Dzq.nonNullableCondIsNull()))))}return O};
return Kz(function(){var O=r(),M;AB(function(){var T=$8(dx);try{M=HX(O?G.then(Z):G.else&&G.else())}finally{$8(T)}},!0);
return M},{debugName:G.debugInstance,
debugFn:G.then,isControlFlowComponent:!0})};
Ey4=function(G){return _.S(G)};
_.u6=function(G){return G.keyBy==="INDEX"?iOq(G):bOy(G)};
vya=function(G){G=_.h(G);for(var e=G.next();!e.done;e=G.next()){var r=void 0;(r=e.value)==null||r()}};
bOy=function(G){var e=G.keyBy===void 0||G.keyBy==="REFERENCE",r=e?function(q){return q}:G.keyBy,Z=[],O=[],M=[],T=[],E=[],b=[],w=!0;
_.yD(function(){vya(T)});
return Kz(function(){var q=G.each(),t=q.length;if(t===0){if(Z.length===0&&!w)return M;vya(T);Z=q;O=[];for(q=0;q<Z.length;q++)O.push(r(Z[q]));M=[];T=[];E=[];b=[];G.fallback&&(T[0]=wi4(function(){M[0]=HX(G.fallback())}));
w=!1;return M}for(var g=new $z4,l=Z.length-1;l>=0;l--)g.push(O[l],l);l=Array(t);for(var X=Array(t),H=Array(t),I=Array(t),C=Array(e?0:t),u={i$jscomp$450:0};u.i$jscomp$450<t;u={i$jscomp$450:u.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$563:void 0},u.i$jscomp$450++){u.item$jscomp$104=q[u.i$jscomp$450];u.key$jscomp$563=r(u.item$jscomp$104);var P=g.pop(u.key$jscomp$563);P!=null?(H[u.i$jscomp$450]=M[P],X[u.i$jscomp$450]=O[P],l[u.i$jscomp$450]=T[P],I[u.i$jscomp$450]=E[P],e||(C[u.i$jscomp$450]=b[P]),oh(function(F){return function(){I[F.i$jscomp$450](F.i$jscomp$450);
if(!e)C[F.i$jscomp$450](F.item$jscomp$104)}}(u)),delete T[P]):l[u.i$jscomp$450]=wi4(function(F){return function(){var J=_.h(_.XQ(F.i$jscomp$450,void 0,"Fqk1zd")),U=J.next().value;
J=J.next().value;I[F.i$jscomp$450]=J;X[F.i$jscomp$450]=F.key$jscomp$563;if(e)H[F.i$jscomp$450]=HX(G.children(F.item$jscomp$104,U));else{var e$=_.h(_.XQ(F.item$jscomp$104,void 0,"GBj5de"));J=e$.next().value;e$=e$.next().value;C[F.i$jscomp$450]=e$;H[F.i$jscomp$450]=HX(G.children(J,U))}}}(u))}vya(T);
Z=q;O=X;M=H;T=l;E=I;b=C;w=!1;return H},{debugName:G.debugInstance,
debugFn:G.each,isControlFlowComponent:!0})};
iOq=function(G){var e=[],r=[],Z=[],O=[],M=!1;_.yD(function(){for(var T=_.h(O),E=T.next();!E.done;E=T.next())E=E.value,E()});
return Kz(function(){var T=G.each();M&&T.length>0&&(O.pop()(),e.pop(),M=!1);for(var E=Array(T.length),b={i$jscomp$451:0};b.i$jscomp$451<T.length;b={i$jscomp$451:b.i$jscomp$451},b.i$jscomp$451++)if(b.i$jscomp$451<e.length)e[b.i$jscomp$451]!==T[b.i$jscomp$451]&&(oh(function(q){return function(){return void r[q.i$jscomp$451](T[q.i$jscomp$451])}}(b)),e[b.i$jscomp$451]=T[b.i$jscomp$451]),E[b.i$jscomp$451]=Z[b.i$jscomp$451];
else{var w=wi4(function(q){return function(){e[q.i$jscomp$451]=T[q.i$jscomp$451];var t=_.h(_.XQ(T[q.i$jscomp$451],void 0,"JMMLmd")),g=t.next().value;t=t.next().value;r[q.i$jscomp$451]=t;E[q.i$jscomp$451]=HX(G.children(g,q.i$jscomp$451))}}(b));
O[b.i$jscomp$451]=w}for(;e.length>T.length;)e.pop(),O.pop()(),r.pop();T.length===0&&!M&&G.fallback&&(b=wi4(function(){E[0]=HX(G.fallback())}),O[0]=b,M=!0);
return Z=E},{debugName:G.debugInstance,
isControlFlowComponent:!0})};
wi4=function(G){var e=hB;return AB(function(r){var Z=$8(dx);try{r.parent=e,G(r)}finally{$8(Z)}},!1)};
_.nz=function(G){var e=SWN(G),r=_.dw(function(){return qW$(e)},void 0,"F1PF4");
return Kz(function(){var Z=r(),O;AB(function(){var M=$8(dx);try{O=HX(Z())}finally{$8(M)}});
return O},{debugName:G.debugInstance,
isControlFlowComponent:!0})};
SWN=function(G){G=G.children;return Array.isArray(G)?G:[G]};
tW_=function(G){var e=G.props;G=G.getChildren()[0];return e.when?{when:e.when,children:G}:{isDefault:!0,children:G}};
qW$=function(G){var e=function(){return null};
G=_.h(G);for(var r=G.next();!r.done;r=G.next())if(r=r.value,r!=null&&r[wx]&&(r=r.type===_.Cz?{isDefault:!0,children:r.children[0]}:{when:r.props.when,children:r.children[0]}),r instanceof kZ&&(r=tW_(r)),r.isDefault)e=r.children;else if(r.when())return r.children;return e};
lzS=function(G){var e=null,r,Z={get value(){var M,T;(T=(M=O).validateGetValue)==null||T.call(M);return O.__value},set value(M){var T,E;(E=(T=O).validateSetValue)==null||E.call(T,M);O.__value=M;O.__hasBeenSet=!0}},O=(Z.__value=null,Z.__hasBeenSet=!1,Z.__hasErrored=!1,Z.onRender=function(M){if(r&&M!==r){r._disposeRef=void 0;var T;(T=e)==null||T()}r=M;e=G(M)||null},Z.onUnmount=function(){var M;
(M=e)==null||M();e=O.value=null},Z[_.gyq]=!0,Z);
return O};
m0=function(G){return typeof G==="symbol"};
jpi=function(G){var e=JPa();if(e==null)throw _.Rg$.PRIMITIVE_INVALID_HOOK_CALL();var r=e.hookCounter++;e.hooks||(e.hooks=[]);var Z=e.hooks;Z[r]||(Z[r]={key:G,host:e});if(G!==Z[r].key){if(e.__type){var O;G=(O=e.__type)==null?void 0:O.name}else G=e instanceof QY?bMs(e.functionComponent):"<"+e.el.tagName.toLowerCase()+">";throw _.Rg$.OUT_OF_ORDER_HOOK_CALL(G);}return Z[r]};
azy=function(G,e){return!G||G.length!==(e==null?void 0:e.length)||G.some(function(r,Z){return r!==e[Z]})};
Xii=function(G,e){var r=jpi("onChange"),Z=JPa();azy(r.deps,e)&&(r.deps=e,r.pendingEffect=G,Z.__syncEffects||(Z.__syncEffects=[]),Z.__syncEffects.push(r))};
_.cX=function(G,e,r){r!=null||(r={});r=r.appContext;var Z=!!bW.legacyTriggerSoyRendererEvents;_.ao.setUp();try{var O=KHS(G,e,r);Z&&(e=r,e!=null||(e=_.tS4(document).getAppContext()),e.get(pUp).JSC$29373_getEventTarget().dispatchEvent(new CYi(fzy,G,Ro)));_.ao.log(G);return O}finally{_.ao.tearDown()}};
KHS=function(G,e,r){var Z=cO(function(){var O=$8(dx);try{return AB(function(){var M=_.tS4(_.F$(G)),T;var E=pGq({rootElement:{value:G},appContext:r||(M==null?void 0:(T=M.getOptionalAppContext)==null?void 0:T.call(M)),dispatcher:M});M=_.Ty(E);E=S1(!0);QD++;try{fz(e(),G),po(!1)}catch(b){throw po(!0),b;}finally{S1(E),_.Ty(M)}},!1)}catch(M){throw bW.enableContextBasedComponentStacks&&mV(M),M;
}finally{$8(O)}});
G[kw_]=!0;return function(){G.textContent="";Z();G[kw_]=!1}};
_.YZ=function(G){if(DxS(ww)){var e;(e=bW.handleError)==null||e.call.apply(e,[bW].concat(_.mY(x8(Error("dc")))))}var r=hB,Z=Co;NlN({onInitType:zrN,run:function(){if(r&&!r.isDisposed){var O=_.Ty(r);try{cO(function(){return void G()},Z)}catch(M){throw bW.enableContextBasedComponentStacks&&mV(M),M;
}finally{_.Ty(O)}}}})};
HOs=function(G,e){Xii(function(){return _.ah(G)},e)};
_.yY=function(G){no()?_.YZ(function(){_.ah(G)}):Xii(function(){return _.ah(G)},[])};
oyN=function(G){var e=[].concat(_.mY(G));G.length=0;G=_.h(e);for(e=G.next();!e.done;e=G.next()){e=e.value;dzi(e);var r=e.pendingEffect;e.pendingEffect=null;if(r=r==null?void 0:r())e.pendingCleanup=r}};
dzi=function(G){var e=G.pendingCleanup;G.pendingCleanup=null;e==null||e()};
sp$=function(G,e){if(no())return G();var r=jpi("useMemoInternal");azy(r.deps,e)&&(r.deps=e,r.value=G());return r.value};
Qp$=function(G,e){return sp$(G,e)};
AH=function(G){return sp$(G,[])};
IzS=function(G){return AH(function(){return{value:G}})};
_.Ft=function(G,e){if(!G)return null;G=Object.keys(G);G=_.h(G);for(var r=G.next();!r.done;r=G.next()){r=r.value;var Z=r.toLowerCase();if(Z.indexOf(e,Z.length-e.length)>-1)return r}return null};
_.BX=function(){var G=arguments,e=_.JH;G.length>1?e[G[0]]=G[1]:G.length===1&&Object.assign(e,G[0])};
_.xZ=function(G,e){return G in _.JH?_.JH[G]:e};
_.PX=function(G,e){return!!_.xZ(G,e)};
piA=function(G){var e=_.JH.EXPERIMENT_FLAGS;return e?e[G]:void 0};
uRs=function(G){C4_.forEach(function(e){return e(G)})};
_.N0=function(G){return G&&window.yterr?function(){try{return G.apply(this,arguments)}catch(e){_.WX(e)}}:G};
_.WX=function(G){var e=_.Lz("yt.logging.errors.log");e?e(G,"ERROR",void 0,void 0,void 0,void 0,void 0):(e=_.xZ("ERRORS",[]),e.push([G,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.BX("ERRORS",e));uRs(G)};
_.GG=function(G,e,r,Z,O){var M=_.Lz("yt.logging.errors.log");M?M(G,"WARNING",e,r,Z,void 0,O):(M=_.xZ("ERRORS",[]),M.push([G,"WARNING",e,r,Z,void 0,O]),_.BX("ERRORS",M))};
mzS=function(G,e){e=G.split(e);for(var r={},Z=0,O=e.length;Z<O;Z++){var M=e[Z].split("=");if(M.length===1&&M[0]||M.length===2)try{var T=ny_(M[0]||""),E=ny_(M[1]||"");if(T in r){var b=r[T];Array.isArray(b)?_.Ji(b,E):r[T]=[b,E]}else r[T]=E}catch(g){var w=g,q=M[0],t=String(mzS);w.args=[{key:q,value:M[1],query:G,method:cbA===t?"unchanged":t}];YWy.hasOwnProperty(q)||_.GG(w)}}return r};
yb_=function(G){var e=[];_.c2.forEach(G,function(r,Z){var O=_.em(Z);r=Array.isArray(r)?r:[r];_.rR(r,function(M){M==""?e.push(O):e.push(O+"="+_.em(M))})});
return e.join("&")};
_.ZW=function(G){G.charAt(0)==="?"&&(G=G.substring(1));return mzS(G,"&")};
_.O5=function(G){return G.indexOf("?")!==-1?(G=(G||"").split("#")[0],G=G.split("?",2),_.ZW(G.length>1?G[1]:G[0])):{}};
_.Mt=function(G,e){return AbS(G,e||{},!0)};
FH_=function(G,e){return AbS(G,e||{},!1)};
AbS=function(G,e,r){var Z=G.split("#",2);G=Z[0];Z=Z.length>1?"#"+Z[1]:"";var O=G.split("?",2);G=O[0];O=_.ZW(O[1]||"");for(var M in e)if(r||!_.c2.containsKey(O,M))O[M]=e[M];return _.Vi(G,O)+Z};
E5=function(G){if(!e)var e=window.location.href;var r=_.hd(G)[1]||null,Z=_.TG(G);return r&&Z?DW(G,e):Z?_.TG(e)===Z&&(Number(_.hd(e)[4]||null)||null)===(Number(_.hd(G)[4]||null)||null):!0};
_.Bof=function(G){G=JbF(G);return G===null?!1:G[0]==="com"&&G[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
JbF=function(G){G=_.TG(G);return G!==null?G.split(".").reverse():null};
ny_=function(G){return G&&G.match(xzs)?G:iq(G)};
_.bq=function(G){return new P4a(G)};
_.v_=function(){UzF||(UzF=new zg4);return UzF};
Noy=function(){var G=WHS;return function(){var e=_.v_();if(!e.resolve(_.bq(G))){var r={};e.addProvider((r.provide=G,r.useClass=G,r[wR]=void 0,r))}return e.resolve(G)}};
Gn_=function(G){var e=_.$1,r,Z;_.D(function(O){r=_.v_();return(Z=r.resolve(_.bq(e)))?(G(Z),O.return(Promise.resolve(Z))):O.return(r.resolve(new LHs(e)).then(function(M){G(M);return M}))})};
_.R=function(G){G=Sm(G);return typeof G==="string"&&G==="false"?!1:!!G};
_.qt=function(G,e){G=Sm(G);return G===void 0&&e!==void 0?e:Number(G||0)};
eBf=function(G){G=Sm(G);return Array.isArray(G)?_.Yf(G,function(e){return Number(e||0)}):[Number(G||0)]};
_.td=function(G){G=Sm(G);return G!==void 0?String(G):""};
_.gR=function(G){G=Sm(G);return Array.isArray(G)?_.Yf(G,function(e){return String(e||"")}):[String(G||"")]};
ryy=function(){return _.xZ("EXPERIMENTS_TOKEN","")};
Sm=function(G){return _.xZ("EXPERIMENT_FLAGS",{})[G]};
Z_y=function(){for(var G=[],e=_.xZ("EXPERIMENTS_FORCED_FLAGS",{}),r=_.h(Object.keys(e)),Z=r.next();!Z.done;Z=r.next())Z=Z.value,G.push({key:Z,value:String(e[Z])});r=_.xZ("EXPERIMENT_FLAGS",{});Z=_.h(Object.keys(r));for(var O=Z.next();!O.done;O=Z.next())O=O.value,O.startsWith("force_")&&e[O]===void 0&&G.push({key:O,value:String(r[O])});return G};
Mqa=function(){if(!O_s)return null;var G=O_s();return"open"in G?G:null};
_.Vqa=function(G){switch(_.lq(G)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.lq=function(G){return G&&"status"in G?G.status:-1};
_.jm=function(G,e){typeof G==="function"&&(G=_.N0(G));return window.setTimeout(G,e)};
_.aZ=function(G,e){typeof G==="function"&&(G=_.N0(G));return window.setInterval(G,e)};
_.X_=function(G){window.clearTimeout(G)};
TJS=function(G){G=_.O5(G);for(var e=_.h(hBS),r=e.next();!r.done;r=e.next())if(G[r.value]!==void 0)return!0;return!1};
i_S=function(G,e,r,Z,O,M,T,E,b){r=r===void 0?"GET":r;Z=Z===void 0?"":Z;E=E===void 0?!1:E;var w=Mqa();if(!w)return null;var q=function(){(w&&"readyState"in w?w.readyState:0)===4&&e&&_.N0(e)(w)};
"onloadend"in w?w.addEventListener("loadend",q,!1):w.onreadystatechange=q;_.R("debug_forward_web_query_parameters")&&(G=Dna(G,window.location.search));w.open(r,G,!0);M&&(w.responseType=M);T&&(w.withCredentials=!0);r=r==="POST"&&(window.FormData===void 0||!(Z instanceof FormData));if(O=EJa(G,O))for(var t in O)w.setRequestHeader(t,O[t]),"content-type"===t.toLowerCase()&&(r=!1);r&&w.setRequestHeader("Content-Type","application/x-www-form-urlencoded");b&&"onprogress"in w&&(w.onprogress=function(){b(w.responseText)});
if(E&&"setAttributionReporting"in XMLHttpRequest.prototype){G={eventSourceEligible:!0,triggerEligible:!1};try{w.setAttributionReporting(G)}catch(g){_.GG(g)}}w.send(Z);return w};
EJa=function(G,e){e=e===void 0?{}:e;var r=E5(G),Z=_.xZ("INNERTUBE_CLIENT_NAME"),O=_.R("web_ajax_ignore_global_headers_if_set"),M;for(M in b_y){var T=_.xZ(b_y[M]),E=M==="X-Goog-AuthUser"||M==="X-Goog-PageId";M!=="X-Goog-Visitor-Id"||T||(T=_.xZ("VISITOR_DATA"));var b;if(!(b=!T)){if(!(b=r||(_.TG(G)?!1:!0))){b=G;var w;if(w=_.R("add_auth_headers_to_remarketing_google_dot_com_ping")&&M==="Authorization"&&(Z==="TVHTML5"||Z==="TVHTML5_UNPLUGGED"||Z==="TVHTML5_SIMPLY"))w=JbF(b),w=w===null?!1:w[1]==="google"?
!0:w[2]==="google"?w[0]==="au"&&w[1]==="com"?!0:w[0]==="uk"&&w[1]==="co"?!0:!1:!1;w&&(b=_.Kr(b)||"",b=b.split("/"),b="/"+(b.length>1?b[1]:""),w=b==="/pagead");b=w?!0:!1}b=!b}b||O&&e[M]!==void 0||Z==="TVHTML5_UNPLUGGED"&&E||(e[M]=T)}"X-Goog-EOM-Visitor-Id"in e&&"X-Goog-Visitor-Id"in e&&delete e["X-Goog-Visitor-Id"];if(r||!_.TG(G))e["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(r||!_.TG(G)){try{var q=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(t){}q&&(e["X-YouTube-Time-Zone"]=
q)}document.location.hostname.endsWith("youtubeeducation.com")||!r&&_.TG(G)||(e["X-YouTube-Ad-Signals"]=yb_(vJy()));return e};
_.wn4=function(G,e){var r=_.TG(G);_.R("debug_handle_relative_url_for_query_forward_killswitch")||!r&&E5(G)&&(r=document.location.hostname);var Z=_.Kr(G);Z=(r=r&&(r.endsWith("youtube.com")||r.endsWith("youtube-nocookie.com")))&&Z&&Z.startsWith("/api/");if(!r||Z)return G;var O=_.ZW(e),M={};_.rR(hBS,function(T){O[T]&&(M[T]=O[T])});
return FH_(G,M)};
$nS=function(G,e){e.method="POST";e.postParams||(e.postParams={});return _.fr(G,e)};
SKy=function(G,e){var r=_.xZ("XSRF_FIELD_NAME"),Z;e.headers&&(Z=e.headers["Content-Type"]);return!e.excludeXsrf&&(!_.TG(G)||e.withCredentials||_.TG(G)===document.location.hostname)&&e.method==="POST"&&(!Z||Z==="application/x-www-form-urlencoded")&&!(e.postParams&&e.postParams[r])};
_.fr=function(G,e){var r=e.format||"JSON";G=qK_(G,e);var Z=tqf(G,e),O=!1,M=gJq(G,function(b){if(!O){O=!0;E&&_.X_(E);var w=_.Vqa(b),q=null,t=400<=b.status&&b.status<500,g=500<=b.status&&b.status<600;if(w||t||g)q=l_A(G,r,b,e.convertToSafeHtml);w&&(w=RBS(r,b,q));q=q||{};t=e.context||_.O_;w?e.onSuccess&&e.onSuccess.call(t,b,q):e.onError&&e.onError.call(t,b,q);e.onFinish&&e.onFinish.call(t,b,q)}},e.method,Z,e.headers,e.responseType,e.withCredentials,!1,e.onProgress);
Z=e.timeout||0;if(e.onTimeout&&Z>0){var T=e.onTimeout;var E=_.jm(function(){O||(O=!0,M.abort(),_.X_(E),T.call(e.context||_.O_,M))},Z)}return M};
qK_=function(G,e){e.includeDomain&&(G=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+G);var r=_.xZ("XSRF_FIELD_NAME");if(e=e.urlParams)e[r]&&delete e[r],G=_.Mt(G,e);return G};
tqf=function(G,e){var r=_.xZ("XSRF_FIELD_NAME"),Z=_.xZ("XSRF_TOKEN"),O=e.postBody||"",M=e.postParams;SKy(G,e)&&(M||(M={}),M[r]=Z);(_.R("ajax_parse_query_data_only_when_filled")&&M&&Object.keys(M).length>0||M)&&typeof O==="string"&&(O=_.ZW(O),_.c2.extend(O,M),O=e.postBodyFormat&&e.postBodyFormat==="JSON"?JSON.stringify(O):_.k1(O));M=O||M&&!_.c2.isEmpty(M);!jlf&&M&&e.method!=="POST"&&(jlf=!0,_.WX(Error("Jc")));return O};
l_A=function(G,e,r,Z){var O=null;switch(e){case "JSON":try{var M=r.responseText}catch(T){throw Z=Error("Kc"),Z.params=G,_.GG(Z),T;}G=r.getResponseHeader("Content-Type")||"";M&&G.indexOf("json")>=0&&(M.substring(0,5)===")]}'\n"&&(M=M.substring(5)),O=JSON.parse(M));break;case "XML":if(G=(G=r.responseXML)?a_p(G):null)O={},_.rR(G.getElementsByTagName("*"),function(T){O[T.tagName]=Xny(T)})}Z&&KCq(O);
return O};
KCq=function(G){if(_.PA(G))for(var e in G)e==="html_content"||TS(e,"_html")?G[e]=zq(G[e]):KCq(G[e])};
RBS=function(G,e,r){if(e&&e.status===204)return!0;switch(G){case "JSON":return!!r;case "XML":return Number(r&&r.return_code)===0;case "RAW":return!0;default:return!!r}};
a_p=function(G){return G?(G=("responseXML"in G?G.responseXML:G).getElementsByTagName("root"))&&G.length>0?G[0]:null:null};
Xny=function(G){var e="";_.rR(G.childNodes,function(r){e+=r.nodeValue});
return e};
f_F=function(G){if(G.name==="JavaException")return!0;G=G.stack;return G.includes("chrome://")||G.includes("-extension://")||G.includes("webkit-masked-url://")};
kns=function(G){if(!G.stack)return!0;var e=!G.stack.includes("\n");return e&&G.stack.includes("ErrorType: ")||e&&G.stack.includes("Anonymous function (Unknown script")||G.stack.toLowerCase()==="not available"||G.fileName==="user-script"||G.fileName.startsWith("user-script:")?!0:!1};
_.H_=function(G){_.pB.call(this);this.JSC$10527_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!G};
dnS=function(G,e){var r=G.length,Z=0,O=function(){return G.charCodeAt(Z++)};
do{var M=H_$(O);if(M===Infinity)break;var T=M>>3;switch(M&7){case 0:M=H_$(O);if(T===e)return M;break;case 1:if(T===e)return;Z+=8;break;case 2:M=H_$(O);if(T===e)return G.substr(Z,M);Z+=M;break;case 5:if(T===e)return;Z+=4;break;default:return}}while(Z<r)};
H_$=function(G){var e=G(),r=e&127;if(e<128)return r;e=G();r|=(e&127)<<7;if(e<128)return r;e=G();r|=(e&127)<<14;if(e<128)return r;e=G();return e<128?r|(e&127)<<21:Infinity};
sl4=function(G,e,r,Z){if(G)if(Array.isArray(G)){var O=Z;for(Z=0;Z<G.length&&!(G[Z]&&(O+=oJ$(Z,G[Z],e,r),O>500));Z++);Z=O}else if(typeof G==="object")for(O in G){if(G[O]){var M=O;var T=G[O],E=e,b=r;M=typeof T!=="string"||M!=="clickTrackingParams"&&M!=="trackingParams"?0:(T=dnS(atob(T.replace(/-/g,"+").replace(/_/g,"/")),2))?oJ$(M+".ve",T,E,b):0;Z+=M;Z+=oJ$(O,G[O],e,r);if(Z>500)break}}else r[e]=dR(G),Z+=r[e].length;else r[e]=dR(G),Z+=r[e].length;return Z};
oJ$=function(G,e,r,Z){r+="."+G;G=dR(e);Z[r]=G;return r.length+G.length};
dR=function(G){try{return(typeof G==="string"?G:String(JSON.stringify(G))).substr(0,500)}catch(e){return"unable to serialize "+typeof G+" ("+e.message+")"}};
Ql_=function(G){switch(G){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}};
_.s5=function(G,e,r,Z,O){_.oZ.set(G,e,{maxAge:r,path:"/",domain:Z===void 0?"youtube.com":Z,secure:O===void 0?!1:O})};
_.I__=function(G,e,r){_.oZ.remove(G,e===void 0?"/":e,r===void 0?"youtube.com":r)};
_.Qi=function(){if(_.R("embeds_web_enable_cookie_detection_fix")){if(!_.O_.navigator.cookieEnabled)return!1}else if(!_.oZ.isEnabled())return!1;if(!_.oZ.isEmpty())return!0;_.R("embeds_web_enable_cookie_detection_fix")?_.oZ.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.oZ.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.oZ.get("TESTCOOKIESENABLED")!=="1")return!1;_.oZ.remove("TESTCOOKIESENABLED");return!0};
pnF=function(){var G=_.O_.navigator;return G?G.connection:void 0};
Cpa=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(G){}};
_.nJi=function(){var G=pnF();if(G){var e=uJs[G.type||"unknown"]||"CONN_UNKNOWN";G=uJs[G.effectiveType||"unknown"]||"CONN_UNKNOWN";e==="CONN_CELLULAR_UNKNOWN"&&G!=="CONN_UNKNOWN"&&(e=G);if(e!=="CONN_UNKNOWN")return e;if(G!=="CONN_UNKNOWN")return G}};
cyA=function(){var G=pnF();if(G!=null&&G.effectiveType)return mnN.hasOwnProperty(G.effectiveType)?mnN[G.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.pr=function(){try{return _.IZ(),!0}catch(G){return!1}};
_.IZ=function(G){if(_.xZ("DATASYNC_ID")!==void 0)return _.xZ("DATASYNC_ID");throw new _.Cr("Datasync ID not set",G===void 0?"unknown":G);};
_.uq=function(G){this.mechanism=G};
nr=function(G){this.mechanism=G};
ma=function(G){this.storage_=G;this.cachedIsStorageAvailable_=null};
YKp=function(){var G=null;try{G=_.O_.localStorage||null}catch(e){}ma.call(this,G)};
yyF=function(){var G=null;try{G=_.O_.sessionStorage||null}catch(e){}ma.call(this,G)};
c_=function(G,e){this.mechanism_=G;this.JSC$10629_prefix_=e+"::"};
_.AyA=function(G){var e=new YKp;return e.isAvailable()?G?new c_(e,G):e:null};
_.FCU=function(G){var e=new yyF;return e.isAvailable()?G?new c_(e,G):e:null};
BJf=function(){var G;return(G=JyU())==null?void 0:G.get("LAST_RESULT_ENTRY_KEY",!0)};
_.Ad=function(G){xnp||(_.Y1?_.Y1.logError(G):(_.yi.push({type:"ERROR",payload:G}),_.yi.length>10&&_.yi.shift()))};
F_=function(G,e){xnp||(_.Y1?_.Y1.logEvent(G,e):(_.yi.push({type:"EVENT",eventType:G,payload:e}),_.yi.length>10&&_.yi.shift()))};
Jd=function(G){if(G.indexOf(":")>=0)throw Error("Rc");};
B_=function(G){return G.substr(0,G.indexOf(":"))||G};
zBf=function(){return(Ppq||UnN)&&x1("applewebkit")&&!x1("version")&&(!x1("safari")||x1("gsa/"))};
x1=function(G){var e=_.gs();return e?e.toLowerCase().indexOf(G)>=0:!1};
LC_=function(G,e,r,Z){e=B_(e);var O=G instanceof Error?G:Error("Sc`"+G);if(O instanceof P_)return O;G={objectStoreNames:r,dbName:e,dbVersion:Z};if(O.name==="QuotaExceededError")return new P_("QUOTA_EXCEEDED",G);if(_.U5&&O.name==="UnknownError")return new P_("QUOTA_MAYBE_EXCEEDED",G);if(O instanceof WCq)return new P_("MISSING_INDEX",Object.assign({},G,{objectStore:O.objectStore,index:O.index}));if(O.name==="InvalidStateError"&&NJi.some(function(M){return O.message.includes(M)}))return new P_("EXECUTE_TRANSACTION_ON_CLOSED_DB",
G);
if(O.name==="AbortError")return new P_("UNKNOWN_ABORT",G,O.message);O.args=[Object.assign({},G,{name:"IdbError",originalName:O.name})];O.level="WARNING";return O};
zG=function(G,e,r){var Z=BJf();return new P_("IDB_NOT_SUPPORTED",{context:{caller:G,publicName:e,version:r,hasSucceededOnce:Z==null?void 0:Z.hasSucceededOnce}})};
GFy=function(G){if(!G)throw Error();throw G;};
eTN=function(G){return G};
rha=function(G,e,r){var Z=function(){try{G.removeEventListener("success",O),G.removeEventListener("error",M)}catch(T){}},O=function(){e(G.result);
Z()},M=function(){r(G.error);
Z()};
G.addEventListener("success",O);G.addEventListener("error",M)};
ZQf=function(G){return new Promise(function(e,r){rha(G,e,r)})};
Lr=function(G){return new W_(new Nt(function(e,r){rha(G,e,r)}))};
OQy=function(G,e){return new W_(new Nt(function(r,Z){var O=function(){var M=G?e(G):null;M?M.then(function(T){G=T;O()},Z):r()};
O()}))};
M6$=function(G,e,r){return new Promise(function(Z,O){var M=e!==void 0?self.indexedDB.open(G,e):self.indexedDB.open(G);var T=r.blocked,E=r.blocking,b=r.terminated,w=r.upgrade,q=r.closed,t,g=function(){t||(t=new Gc(M.result,{closed:q}));return t};
M.addEventListener("upgradeneeded",function(l){try{if(l.newVersion===null)throw Error("Xc");if(M.transaction===null)throw Error("Yc");l.dataLoss&&l.dataLoss!=="none"&&F_("IDB_DATA_CORRUPTED",{reason:l.dataLossMessage||"unknown reason",dbName:B_(G)});var X=g(),H=new eS(M.transaction);w&&w(X,function(I){return l.oldVersion<I&&l.newVersion>=I},H);
H.done.catch(function(I){O(I)})}catch(I){O(I)}});
M.addEventListener("success",function(){var l=M.result;E&&l.addEventListener("versionchange",function(){E(g())});
l.addEventListener("close",function(){F_("IDB_UNEXPECTEDLY_CLOSED",{dbName:B_(G),dbVersion:l.version});b&&b()});
Z(g())});
M.addEventListener("error",function(){O(M.error)});
T&&M.addEventListener("blocked",function(){T()})})};
V6s=function(G,e,r){r=r===void 0?{}:r;return M6$(G,e,r)};
_.ZG=function(G,e){e=e===void 0?{}:e;var r,Z,O,M;return _.D(function(T){if(T.nextAddress==1)return _.jr(T,2),r=self.indexedDB.deleteDatabase(G),Z=e,(O=Z.blocked)&&r.addEventListener("blocked",function(){O()}),T.yield(ZQf(r),4);
if(T.nextAddress!=2)return _.rL(T,0);M=_.k5(T);throw LC_(M,G,"",-1);})};
Tfy=function(G,e){var r;return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(_.Ou(hTS,e),2);r=Z.yieldResult;return Z.return(_.Ma(r,["databases"],{enableRetries:!0,mode:"readwrite"},function(O){var M=O.objectStore("databases");return M.get(G.actualName).then(function(T){if(T?G.actualName!==T.actualName||G.publicName!==T.publicName||G.userIdentifier!==T.userIdentifier:1)return M.put(G).then(function(){})})}))})};
_.Vr=function(G,e){var r;return _.D(function(Z){if(Z.nextAddress==1)return G?Z.yield(_.Ou(hTS,e),2):Z.return();r=Z.yieldResult;return Z.return(r.delete("databases",G))})};
_.DrA=function(G,e){var r,Z;return _.D(function(O){return O.nextAddress==1?(r=[],O.yield(_.Ou(hTS,e),2)):O.nextAddress!=3?(Z=O.yieldResult,O.yield(_.Ma(Z,["databases"],{enableRetries:!0,mode:"readonly"},function(M){r.length=0;return h0(M.objectStore("databases"),{},function(T){G(T.getValue())&&r.push(T.getValue());return T.continue()})}),3)):O.return(r)})};
Etp=function(G,e){return _.DrA(function(r){return r.publicName===G&&r.userIdentifier!==void 0},e)};
vty=function(){var G,e,r,Z;return _.D(function(O){switch(O.nextAddress){case 1:G=BJf();if((e=G)==null?0:e.hasSucceededOnce)return O.return(!0);var M;if(M=iQ4)M=/WebKit\/([0-9]+)/.exec(_.gs()),M=!!(M&&parseInt(M[1],10)>=600);M&&(M=/WebKit\/([0-9]+)/.exec(_.gs()),M=!(M&&parseInt(M[1],10)>=602));if(M||Tc)return O.return(!1);try{if(r=self,!(r.indexedDB&&r.IDBIndex&&r.IDBKeyRange&&r.IDBObjectStore))return O.return(!1)}catch(T){return O.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return O.return(!1);
_.jr(O,2);Z={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return O.yield(Tfy(Z,bQU),4);case 4:return O.yield(_.Vr("yt-idb-test-do-not-use",bQU),5);case 5:return O.return(!0);case 2:return _.k5(O),O.return(!1)}})};
$ra=function(){if(wS$!==void 0)return wS$;xnp=!0;return wS$=vty().then(function(G){xnp=!1;var e;if((e=JyU())!=null&&e.hasLocalStorage()){var r;e={hasSucceededOnce:((r=BJf())==null?void 0:r.hasSucceededOnce)||G};var Z;(Z=JyU())==null||Z.set("LAST_RESULT_ENTRY_KEY",e,2592E3,!0)}return G})};
DG=function(){return _.Lz("ytglobal.idbToken_")||void 0};
_.iA=function(){var G=DG();return G?Promise.resolve(G):$ra().then(function(e){(e=e?bQU:void 0)&&_.Eu("ytglobal.idbToken_",e);return e})};
S6$=function(G){if(!_.pr())throw G=new P_("AUTH_INVALID",{dbName:G}),_.Ad(G),G;var e=_.IZ();return{actualName:G+":"+e,publicName:G,userIdentifier:e}};
q6F=function(G,e,r,Z){var O,M,T,E,b,w;return _.D(function(q){switch(q.nextAddress){case 1:return M=(O=Error().stack)!=null?O:"",q.yield(_.iA(),2);case 2:T=q.yieldResult;if(!T)throw E=zG("openDbImpl",G,e),_.R("ytidb_async_stack_killswitch")||(E.stack=E.stack+"\n"+M.substring(M.indexOf("\n")+1)),_.Ad(E),E;Jd(G);b=r?{actualName:G,publicName:G,userIdentifier:void 0}:S6$(G);_.jr(q,3);return q.yield(Tfy(b,T),5);case 5:return q.yield(V6s(b.actualName,e,Z),6);case 6:return q.return(q.yieldResult);case 3:return w=
_.k5(q),_.jr(q,7),q.yield(_.Vr(b.actualName,T),9);case 9:_.rL(q,8);break;case 7:_.k5(q);case 8:throw w;}})};
t6y=function(G,e,r){r=r===void 0?{}:r;return q6F(G,e,!1,r)};
gtp=function(G,e,r){r=r===void 0?{}:r;return q6F(G,e,!0,r)};
lHN=function(G,e){e=e===void 0?{}:e;var r,Z;return _.D(function(O){if(O.nextAddress==1)return O.yield(_.iA(),2);if(O.nextAddress!=3){r=O.yieldResult;if(!r)return O.return();Jd(G);Z=S6$(G);return O.yield(_.ZG(Z.actualName,e),3)}return O.yield(_.Vr(Z.actualName,r),0)})};
RTN=function(G,e,r){G=G.map(function(Z){return _.D(function(O){return O.nextAddress==1?O.yield(_.ZG(Z.actualName,e),2):O.yield(_.Vr(Z.actualName,r),0)})});
return Promise.all(G).then(function(){})};
jIp=function(G){var e=e===void 0?{}:e;var r,Z;return _.D(function(O){if(O.nextAddress==1)return O.yield(_.iA(),2);if(O.nextAddress!=3){r=O.yieldResult;if(!r)return O.return();Jd(G);return O.yield(Etp(G,r),3)}Z=O.yieldResult;return O.yield(RTN(Z,e,r),0)})};
aH$=function(G,e){e=e===void 0?{}:e;var r;return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(_.iA(),2);if(Z.nextAddress!=3){r=Z.yieldResult;if(!r)return Z.return();Jd(G);return Z.yield(_.ZG(G,e),3)}return Z.yield(_.Vr(G,r),0)})};
bA=function(G,e){return XSN(G,e)};
fHS=function(G){return _.Ou(KGf(),G)};
kF_=function(G,e,r,Z){var O,M,T;return _.D(function(E){switch(E.nextAddress){case 1:return O={config:G,hashData:e,timestamp:Z!==void 0?Z:(0,_.vG)()},E.yield(fHS(r),2);case 2:return M=E.yieldResult,E.yield(M.clear("hotConfigStore"),3);case 3:return E.yield(M.put("hotConfigStore",O),4);case 4:return T=E.yieldResult,E.return(T)}})};
HQ_=function(G,e,r,Z,O){var M,T,E;return _.D(function(b){switch(b.nextAddress){case 1:return M={config:G,hashData:e,configData:r,timestamp:O!==void 0?O:(0,_.vG)()},b.yield(fHS(Z),2);case 2:return T=b.yieldResult,b.yield(T.clear("coldConfigStore"),3);case 3:return b.yield(T.put("coldConfigStore",M),4);case 4:return E=b.yieldResult,b.return(E)}})};
dra=function(G){var e,r;return _.D(function(Z){return Z.nextAddress==1?Z.yield(fHS(G),2):Z.nextAddress!=3?(e=Z.yieldResult,r=void 0,Z.yield(_.Ma(e,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(O){return _.wL(O.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(M){r=M.getValue()})}),3)):Z.return(r)})};
otf=function(G){var e,r;return _.D(function(Z){return Z.nextAddress==1?Z.yield(fHS(G),2):Z.nextAddress!=3?(e=Z.yieldResult,r=void 0,Z.yield(_.Ma(e,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(O){return _.wL(O.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(M){r=M.getValue()})}),3)):Z.return(r)})};
sIa=function(){return _.D(function(G){return G.yield(jIp("ytGcfConfig"),0)})};
QIS=function(){return"INNERTUBE_API_KEY"in _.JH&&"INNERTUBE_API_VERSION"in _.JH};
_.$2=function(){return{innertubeApiKey:_.xZ("INNERTUBE_API_KEY"),innertubeApiVersion:_.xZ("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.xZ("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.xZ("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.xZ("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.xZ("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.xZ("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.xZ("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.xZ("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.PX("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.PX("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.xZ("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.chi=function(G){var e={client:{hl:G.innertubeContextHostLanguage,gl:G.innertubeContextGeoLocation,clientName:G.innertubeContextClientName,clientVersion:G.innertubeContextClientVersion,configInfo:G.innertubeContextClientConfigInfo}};navigator.userAgent&&(e.client.userAgent=String(navigator.userAgent));var r=_.O_.devicePixelRatio;r&&r!=1&&(e.client.screenDensityFloat=String(r));r=ryy();r!==""&&(e.client.experimentsToken=r);r=Z_y();r.length>0&&(e.request={internalExperimentFlags:r});IHi(G,void 0,e);
pSS(void 0,e);Cw$(void 0,e);usS(G,void 0,e);nt4(void 0,e);_.R("start_client_gcf")&&mrp(void 0,e);_.xZ("DELEGATED_SESSION_ID")&&!_.R("pageid_as_header_web")&&(e.user={onBehalfOfUser:_.xZ("DELEGATED_SESSION_ID")});!_.R("fill_delegate_context_in_gel_killswitch")&&(G=_.xZ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(e.user=Object.assign({},e.user,{serializedDelegationContext:G}));G=_.xZ("INNERTUBE_CONTEXT");var Z;if(_.R("enable_persistent_device_token")&&(G==null?0:(Z=G.client)==null?0:Z.rolloutToken)){var O;
e.client.rolloutToken=G==null?void 0:(O=G.client)==null?void 0:O.rolloutToken}Z=Object;O=Z.assign;G=e.client;r={};for(var M=_.h(Object.entries(_.ZW(_.xZ("DEVICE","")))),T=M.next();!T.done;T=M.next()){var E=_.h(T.value);T=E.next().value;E=E.next().value;T==="cbrand"?r.deviceMake=E:T==="cmodel"?r.deviceModel=E:T==="cbr"?r.browserName=E:T==="cbrver"?r.browserVersion=E:T==="cos"?r.osName=E:T==="cosver"?r.osVersion=E:T==="cplatform"&&(r.platform=E)}e.client=O.call(Z,G,r);return e};
IHi=function(G,e,r){G=G.innertubeContextClientName;if(G==="WEB"||G==="MWEB"||G===1||G===2)if(e){r=_.SS(e,Y64,96)||new Y64;var Z=yhi();Z=Object.keys(Ahp).indexOf(Z);Z=Z===-1?null:Z;Z!==null&&_.qa(r,3,Z);_.Kj(e,96,r)}else r&&(r.client.mainAppWebInfo=(Z=r.client.mainAppWebInfo)!=null?Z:{},r.client.mainAppWebInfo.webDisplayMode=yhi())};
pSS=function(G,e){var r=_.Lz("yt.embedded_player.embed_url");r&&(G?(e=_.SS(G,FGF,7)||new FGF,_.QB(e,4,r),_.Kj(G,7,e)):e&&(e.thirdParty={embedUrl:r}))};
Cw$=function(G,e){var r;if(_.R("web_log_memory_total_kbytes")&&((r=_.O_.navigator)==null?0:r.deviceMemory)){var Z;r=(Z=_.O_.navigator)==null?void 0:Z.deviceMemory;G?_.t0(G,95,wW(r*1E6)):e&&(e.client.memoryTotalKbytes=""+r*1E6)}};
usS=function(G,e,r){if(G.appInstallData)if(e){var Z;r=(Z=_.SS(e,gL,62))!=null?Z:new gL;_.QB(r,6,G.appInstallData);_.Kj(e,62,r)}else r&&(r.client.configInfo=r.client.configInfo||{},r.client.configInfo.appInstallData=G.appInstallData)};
nt4=function(G,e){var r=_.nJi();r&&(G?_.qa(G,61,Jhs[r]):e&&(e.client.connectionType=r));_.R("web_log_effective_connection_type")&&(r=cyA())&&(G?_.qa(G,94,Bf4[r]):e&&(e.client.effectiveConnectionType=r))};
_.Ur_=function(G,e,r){r=r===void 0?{}:r;var Z={};_.xZ("EOM_VISITOR_DATA")?Z={"X-Goog-EOM-Visitor-Id":_.xZ("EOM_VISITOR_DATA")}:Z={"X-Goog-Visitor-Id":r.visitorData||_.xZ("VISITOR_DATA","")};if(e&&e.includes("www.youtube-nocookie.com"))return Z;e=r.authorization||_.xZ("AUTHORIZATION");e||(G?e="Bearer "+_.Lz("gapi.auth.getToken")().access_token:(xrf.instance||(xrf.instance=new xrf),G=PwF(),_.R("pageid_as_header_web")||delete G["X-Goog-PageId"],Z=Object.assign({},Z,G)));e&&(Z.Authorization=e);return Z};
mrp=function(G,e){var r=zTp();if(r){var Z=r.coldConfigData,O=r.coldHashData;r=r.hotHashData;if(G){var M;e=(M=_.SS(G,gL,62))!=null?M:new gL;Z=_.QB(e,1,Z);_.QB(Z,3,O).setHotHashData(r);_.Kj(G,62,e)}else e&&(e.client.configInfo=e.client.configInfo||{},Z&&(e.client.configInfo.coldConfigData=Z),O&&(e.client.configInfo.coldHashData=O),r&&(e.client.configInfo.hotHashData=r))}};
lA=function(G){for(var e=G.length;--e>=0;)G[e]=0};
WGi=function(G,e,r,Z,O){this.static_tree=G;this.extra_bits=e;this.extra_base=r;this.elems=Z;this.max_length=O;this.has_stree=G&&G.length};
Nfi=function(G,e){this.dyn_tree=G;this.max_code=0;this.stat_desc=e};
Rc=function(G,e){G.pending_buf[G.pending++]=e&255;G.pending_buf[G.pending++]=e>>>8&255};
jS=function(G,e,r){G.bi_valid>16-r?(G.bi_buf|=e<<G.bi_valid&65535,Rc(G,G.bi_buf),G.bi_buf=e>>16-G.bi_valid,G.bi_valid+=r-16):(G.bi_buf|=e<<G.bi_valid&65535,G.bi_valid+=r)};
ac=function(G,e,r){jS(G,r[e*2],r[e*2+1])};
LGq=function(G,e){var r=0;do r|=G&1,G>>>=1,r<<=1;while(--e>0);return r>>>1};
G1S=function(G,e,r){var Z=Array(16),O=0,M;for(M=1;M<=15;M++)Z[M]=O=O+r[M-1]<<1;for(r=0;r<=e;r++)O=G[r*2+1],O!==0&&(G[r*2]=LGq(Z[O]++,O))};
eDS=function(G){var e;for(e=0;e<286;e++)G.dyn_ltree[e*2]=0;for(e=0;e<30;e++)G.dyn_dtree[e*2]=0;for(e=0;e<19;e++)G.bl_tree[e*2]=0;G.dyn_ltree[512]=1;G.opt_len=G.static_len=0;G.last_lit=G.matches=0};
rXy=function(G){G.bi_valid>8?Rc(G,G.bi_buf):G.bi_valid>0&&(G.pending_buf[G.pending++]=G.bi_buf);G.bi_buf=0;G.bi_valid=0};
Zas=function(G,e,r){rXy(G);Rc(G,r);Rc(G,~r);XF.arraySet(G.pending_buf,G.window,e,r,G.pending);G.pending+=r};
Oaf=function(G,e,r,Z){var O=e*2,M=r*2;return G[O]<G[M]||G[O]===G[M]&&Z[e]<=Z[r]};
MFF=function(G,e,r){for(var Z=G.heap[r],O=r<<1;O<=G.heap_len;){O<G.heap_len&&Oaf(e,G.heap[O+1],G.heap[O],G.depth)&&O++;if(Oaf(e,Z,G.heap[O],G.depth))break;G.heap[r]=G.heap[O];r=O;O<<=1}G.heap[r]=Z};
ENF=function(G,e,r){var Z=0;if(G.last_lit!==0){do{var O=G.pending_buf[G.d_buf+Z*2]<<8|G.pending_buf[G.d_buf+Z*2+1];var M=G.pending_buf[G.l_buf+Z];Z++;if(O===0)ac(G,M,e);else{var T=KF[M];ac(G,T+256+1,e);var E=VFS[T];E!==0&&(M-=hDq[T],jS(G,M,E));O--;T=O<256?fF[O]:fF[256+(O>>>7)];ac(G,T,r);E=T0$[T];E!==0&&(O-=Dvi[T],jS(G,O,E))}}while(Z<G.last_lit)}ac(G,256,e)};
ias=function(G,e){var r=e.dyn_tree,Z=e.stat_desc.static_tree,O=e.stat_desc.has_stree,M=e.stat_desc.elems,T,E=-1;G.heap_len=0;G.heap_max=573;for(T=0;T<M;T++)r[T*2]!==0?(G.heap[++G.heap_len]=E=T,G.depth[T]=0):r[T*2+1]=0;for(;G.heap_len<2;){var b=G.heap[++G.heap_len]=E<2?++E:0;r[b*2]=1;G.depth[b]=0;G.opt_len--;O&&(G.static_len-=Z[b*2+1])}e.max_code=E;for(T=G.heap_len>>1;T>=1;T--)MFF(G,r,T);b=M;do T=G.heap[1],G.heap[1]=G.heap[G.heap_len--],MFF(G,r,1),Z=G.heap[1],G.heap[--G.heap_max]=T,G.heap[--G.heap_max]=
Z,r[b*2]=r[T*2]+r[Z*2],G.depth[b]=(G.depth[T]>=G.depth[Z]?G.depth[T]:G.depth[Z])+1,r[T*2+1]=r[Z*2+1]=b,G.heap[1]=b++,MFF(G,r,1);while(G.heap_len>=2);G.heap[--G.heap_max]=G.heap[1];T=e.dyn_tree;b=e.max_code;Z=e.stat_desc.static_tree;O=e.stat_desc.has_stree;M=e.stat_desc.extra_bits;var w=e.stat_desc.extra_base,q=e.stat_desc.max_length,t,g=0;for(t=0;t<=15;t++)G.bl_count[t]=0;T[G.heap[G.heap_max]*2+1]=0;for(e=G.heap_max+1;e<573;e++){var l=G.heap[e];t=T[T[l*2+1]*2+1]+1;t>q&&(t=q,g++);T[l*2+1]=t;if(!(l>
b)){G.bl_count[t]++;var X=0;l>=w&&(X=M[l-w]);var H=T[l*2];G.opt_len+=H*(t+X);O&&(G.static_len+=H*(Z[l*2+1]+X))}}if(g!==0){do{for(t=q-1;G.bl_count[t]===0;)t--;G.bl_count[t]--;G.bl_count[t+1]+=2;G.bl_count[q]--;g-=2}while(g>0);for(t=q;t!==0;t--)for(l=G.bl_count[t];l!==0;)Z=G.heap[--e],Z>b||(T[Z*2+1]!==t&&(G.opt_len+=(t-T[Z*2+1])*T[Z*2],T[Z*2+1]=t),l--)}G1S(r,E,G.bl_count)};
baS=function(G,e,r){var Z,O=-1,M=e[1],T=0,E=7,b=4;M===0&&(E=138,b=3);e[(r+1)*2+1]=65535;for(Z=0;Z<=r;Z++){var w=M;M=e[(Z+1)*2+1];++T<E&&w===M||(T<b?G.bl_tree[w*2]+=T:w!==0?(w!==O&&G.bl_tree[w*2]++,G.bl_tree[32]++):T<=10?G.bl_tree[34]++:G.bl_tree[36]++,T=0,O=w,M===0?(E=138,b=3):w===M?(E=6,b=3):(E=7,b=4))}};
vNf=function(G,e,r){var Z,O=-1,M=e[1],T=0,E=7,b=4;M===0&&(E=138,b=3);for(Z=0;Z<=r;Z++){var w=M;M=e[(Z+1)*2+1];if(!(++T<E&&w===M)){if(T<b){do ac(G,w,G.bl_tree);while(--T!==0)}else w!==0?(w!==O&&(ac(G,w,G.bl_tree),T--),ac(G,16,G.bl_tree),jS(G,T-3,2)):T<=10?(ac(G,17,G.bl_tree),jS(G,T-3,3)):(ac(G,18,G.bl_tree),jS(G,T-11,7));T=0;O=w;M===0?(E=138,b=3):w===M?(E=6,b=3):(E=7,b=4)}}};
w1S=function(G){var e=4093624447,r;for(r=0;r<=31;r++,e>>>=1)if(e&1&&G.dyn_ltree[r*2]!==0)return 0;if(G.dyn_ltree[18]!==0||G.dyn_ltree[20]!==0||G.dyn_ltree[26]!==0)return 1;for(r=32;r<256;r++)if(G.dyn_ltree[r*2]!==0)return 1;return 0};
k2=function(G,e,r){G.pending_buf[G.d_buf+G.last_lit*2]=e>>>8&255;G.pending_buf[G.d_buf+G.last_lit*2+1]=e&255;G.pending_buf[G.l_buf+G.last_lit]=r&255;G.last_lit++;e===0?G.dyn_ltree[r*2]++:(G.matches++,e--,G.dyn_ltree[(KF[r]+256+1)*2]++,G.dyn_dtree[(e<256?fF[e]:fF[256+(e>>>7)])*2]++);return G.last_lit===G.lit_bufsize-1};
dL=function(G,e){G.msg=HG[e];return e};
oc=function(G){for(var e=G.length;--e>=0;)G[e]=0};
su=function(G){var e=G.state,r=e.pending;r>G.avail_out&&(r=G.avail_out);r!==0&&(XF.arraySet(G.output,e.pending_buf,e.pending_out,r,G.next_out),G.next_out+=r,e.pending_out+=r,G.total_out+=r,G.avail_out-=r,e.pending-=r,e.pending===0&&(e.pending_out=0))};
pF=function(G,e){var r=G.block_start>=0?G.block_start:-1,Z=G.strstart-G.block_start,O=0;if(G.level>0){G.strm.data_type===2&&(G.strm.data_type=w1S(G));ias(G,G.l_desc);ias(G,G.d_desc);baS(G,G.dyn_ltree,G.l_desc.max_code);baS(G,G.dyn_dtree,G.d_desc.max_code);ias(G,G.bl_desc);for(O=18;O>=3&&G.bl_tree[$vq[O]*2+1]===0;O--);G.opt_len+=3*(O+1)+5+5+4;var M=G.opt_len+3+7>>>3;var T=G.static_len+3+7>>>3;T<=M&&(M=T)}else M=T=Z+5;if(Z+4<=M&&r!==-1)jS(G,e?1:0,3),Zas(G,r,Z);else if(G.strategy===4||T===M)jS(G,2+(e?
1:0),3),ENF(G,Qr,Ic);else{jS(G,4+(e?1:0),3);r=G.l_desc.max_code+1;Z=G.d_desc.max_code+1;O+=1;jS(G,r-257,5);jS(G,Z-1,5);jS(G,O-4,4);for(M=0;M<O;M++)jS(G,G.bl_tree[$vq[M]*2+1],3);vNf(G,G.dyn_ltree,r-1);vNf(G,G.dyn_dtree,Z-1);ENF(G,G.dyn_ltree,G.dyn_dtree)}eDS(G);e&&rXy(G);G.block_start=G.strstart;su(G.strm)};
CF=function(G,e){G.pending_buf[G.pending++]=e};
uA=function(G,e){G.pending_buf[G.pending++]=e>>>8&255;G.pending_buf[G.pending++]=e&255};
SO4=function(G,e){var r=G.max_chain_length,Z=G.strstart,O=G.prev_length,M=G.nice_match,T=G.strstart>G.w_size-262?G.strstart-(G.w_size-262):0,E=G.window,b=G.w_mask,w=G.prev,q=G.strstart+258,t=E[Z+O-1],g=E[Z+O];G.prev_length>=G.good_match&&(r>>=2);M>G.lookahead&&(M=G.lookahead);do{var l=e;if(E[l+O]===g&&E[l+O-1]===t&&E[l]===E[Z]&&E[++l]===E[Z+1]){Z+=2;for(l++;E[++Z]===E[++l]&&E[++Z]===E[++l]&&E[++Z]===E[++l]&&E[++Z]===E[++l]&&E[++Z]===E[++l]&&E[++Z]===E[++l]&&E[++Z]===E[++l]&&E[++Z]===E[++l]&&Z<q;);
l=258-(q-Z);Z=q-258;if(l>O){G.match_start=e;O=l;if(l>=M)break;t=E[Z+O-1];g=E[Z+O]}}}while((e=w[e&b])>T&&--r!==0);return O<=G.lookahead?O:G.lookahead};
mB=function(G){var e=G.w_size,r;do{var Z=G.window_size-G.lookahead-G.strstart;if(G.strstart>=e+(e-262)){XF.arraySet(G.window,G.window,e,e,0);G.match_start-=e;G.strstart-=e;G.block_start-=e;var O=r=G.hash_size;do{var M=G.head[--O];G.head[O]=M>=e?M-e:0}while(--r);O=r=e;do M=G.prev[--O],G.prev[O]=M>=e?M-e:0;while(--r);Z+=e}if(G.strm.avail_in===0)break;O=G.strm;r=G.window;M=G.strstart+G.lookahead;var T=O.avail_in;T>Z&&(T=Z);T===0?r=0:(O.avail_in-=T,XF.arraySet(r,O.input,O.next_in,T,M),O.state.wrap===
1?O.adler=qOU(O.adler,r,T,M):O.state.wrap===2&&(O.adler=nF(O.adler,r,T,M)),O.next_in+=T,O.total_in+=T,r=T);G.lookahead+=r;if(G.lookahead+G.insert>=3)for(Z=G.strstart-G.insert,G.ins_h=G.window[Z],G.ins_h=(G.ins_h<<G.hash_shift^G.window[Z+1])&G.hash_mask;G.insert&&!(G.ins_h=(G.ins_h<<G.hash_shift^G.window[Z+3-1])&G.hash_mask,G.prev[Z&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=Z,Z++,G.insert--,G.lookahead+G.insert<3););}while(G.lookahead<262&&G.strm.avail_in!==0)};
tFF=function(G,e){for(var r;;){if(G.lookahead<262){mB(G);if(G.lookahead<262&&e===0)return 1;if(G.lookahead===0)break}r=0;G.lookahead>=3&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+3-1])&G.hash_mask,r=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart);r!==0&&G.strstart-r<=G.w_size-262&&(G.match_length=SO4(G,r));if(G.match_length>=3)if(r=k2(G,G.strstart-G.match_start,G.match_length-3),G.lookahead-=G.match_length,G.match_length<=G.max_lazy_match&&G.lookahead>=3){G.match_length--;
do G.strstart++,G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+3-1])&G.hash_mask,G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart;while(--G.match_length!==0);G.strstart++}else G.strstart+=G.match_length,G.match_length=0,G.ins_h=G.window[G.strstart],G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+1])&G.hash_mask;else r=k2(G,0,G.window[G.strstart]),G.lookahead--,G.strstart++;if(r&&(pF(G,!1),G.strm.avail_out===0))return 1}G.insert=G.strstart<2?G.strstart:2;return e===4?(pF(G,
!0),G.strm.avail_out===0?3:4):G.last_lit&&(pF(G,!1),G.strm.avail_out===0)?1:2};
cG=function(G,e){for(var r,Z;;){if(G.lookahead<262){mB(G);if(G.lookahead<262&&e===0)return 1;if(G.lookahead===0)break}r=0;G.lookahead>=3&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+3-1])&G.hash_mask,r=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart);G.prev_length=G.match_length;G.prev_match=G.match_start;G.match_length=2;r!==0&&G.prev_length<G.max_lazy_match&&G.strstart-r<=G.w_size-262&&(G.match_length=SO4(G,r),G.match_length<=5&&(G.strategy===1||G.match_length===3&&
G.strstart-G.match_start>4096)&&(G.match_length=2));if(G.prev_length>=3&&G.match_length<=G.prev_length){Z=G.strstart+G.lookahead-3;r=k2(G,G.strstart-1-G.prev_match,G.prev_length-3);G.lookahead-=G.prev_length-1;G.prev_length-=2;do++G.strstart<=Z&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+3-1])&G.hash_mask,G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart);while(--G.prev_length!==0);G.match_available=0;G.match_length=2;G.strstart++;if(r&&(pF(G,!1),G.strm.avail_out===0))return 1}else if(G.match_available){if((r=
k2(G,0,G.window[G.strstart-1]))&&pF(G,!1),G.strstart++,G.lookahead--,G.strm.avail_out===0)return 1}else G.match_available=1,G.strstart++,G.lookahead--}G.match_available&&(k2(G,0,G.window[G.strstart-1]),G.match_available=0);G.insert=G.strstart<2?G.strstart:2;return e===4?(pF(G,!0),G.strm.avail_out===0?3:4):G.last_lit&&(pF(G,!1),G.strm.avail_out===0)?1:2};
gNs=function(G,e){for(var r,Z,O,M=G.window;;){if(G.lookahead<=258){mB(G);if(G.lookahead<=258&&e===0)return 1;if(G.lookahead===0)break}G.match_length=0;if(G.lookahead>=3&&G.strstart>0&&(Z=G.strstart-1,r=M[Z],r===M[++Z]&&r===M[++Z]&&r===M[++Z])){for(O=G.strstart+258;r===M[++Z]&&r===M[++Z]&&r===M[++Z]&&r===M[++Z]&&r===M[++Z]&&r===M[++Z]&&r===M[++Z]&&r===M[++Z]&&Z<O;);G.match_length=258-(O-Z);G.match_length>G.lookahead&&(G.match_length=G.lookahead)}G.match_length>=3?(r=k2(G,1,G.match_length-3),G.lookahead-=
G.match_length,G.strstart+=G.match_length,G.match_length=0):(r=k2(G,0,G.window[G.strstart]),G.lookahead--,G.strstart++);if(r&&(pF(G,!1),G.strm.avail_out===0))return 1}G.insert=0;return e===4?(pF(G,!0),G.strm.avail_out===0?3:4):G.last_lit&&(pF(G,!1),G.strm.avail_out===0)?1:2};
lC$=function(G,e){for(var r;;){if(G.lookahead===0&&(mB(G),G.lookahead===0)){if(e===0)return 1;break}G.match_length=0;r=k2(G,0,G.window[G.strstart]);G.lookahead--;G.strstart++;if(r&&(pF(G,!1),G.strm.avail_out===0))return 1}G.insert=0;return e===4?(pF(G,!0),G.strm.avail_out===0?3:4):G.last_lit&&(pF(G,!1),G.strm.avail_out===0)?1:2};
Y2=function(G,e,r,Z,O){this.good_length=G;this.max_lazy=e;this.nice_length=r;this.max_chain=Z;this.func=O};
RDp=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 XF.Buf16(1146);this.dyn_dtree=new XF.Buf16(122);this.bl_tree=new XF.Buf16(78);oc(this.dyn_ltree);oc(this.dyn_dtree);oc(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new XF.Buf16(16);this.heap=new XF.Buf16(573);oc(this.heap);this.heap_max=this.heap_len=0;this.depth=new XF.Buf16(573);oc(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};
jBi=function(G,e){if(!G||!G.state||e>5||e<0)return G?dL(G,-2):-2;var r=G.state;if(!G.output||!G.input&&G.avail_in!==0||r.status===666&&e!==4)return dL(G,G.avail_out===0?-5:-2);r.strm=G;var Z=r.last_flush;r.last_flush=e;if(r.status===42)if(r.wrap===2)G.adler=0,CF(r,31),CF(r,139),CF(r,8),r.gzhead?(CF(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),CF(r,r.gzhead.time&255),CF(r,r.gzhead.time>>8&255),CF(r,r.gzhead.time>>16&255),CF(r,r.gzhead.time>>
24&255),CF(r,r.level===9?2:r.strategy>=2||r.level<2?4:0),CF(r,r.gzhead.os&255),r.gzhead.extra&&r.gzhead.extra.length&&(CF(r,r.gzhead.extra.length&255),CF(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(G.adler=nF(G.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(CF(r,0),CF(r,0),CF(r,0),CF(r,0),CF(r,0),CF(r,r.level===9?2:r.strategy>=2||r.level<2?4:0),CF(r,3),r.status=113);else{var O=8+(r.w_bits-8<<4)<<8;O|=(r.strategy>=2||r.level<2?0:r.level<6?1:r.level===6?2:3)<<6;r.strstart!==0&&(O|=
32);r.status=113;uA(r,O+(31-O%31));r.strstart!==0&&(uA(r,G.adler>>>16),uA(r,G.adler&65535));G.adler=1}if(r.status===69)if(r.gzhead.extra){for(O=r.pending;r.gzindex<(r.gzhead.extra.length&65535)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>O&&(G.adler=nF(G.adler,r.pending_buf,r.pending-O,O)),su(G),O=r.pending,r.pending!==r.pending_buf_size));)CF(r,r.gzhead.extra[r.gzindex]&255),r.gzindex++;r.gzhead.hcrc&&r.pending>O&&(G.adler=nF(G.adler,r.pending_buf,r.pending-O,O));r.gzindex===r.gzhead.extra.length&&
(r.gzindex=0,r.status=73)}else r.status=73;if(r.status===73)if(r.gzhead.name){O=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>O&&(G.adler=nF(G.adler,r.pending_buf,r.pending-O,O)),su(G),O=r.pending,r.pending===r.pending_buf_size)){var M=1;break}M=r.gzindex<r.gzhead.name.length?r.gzhead.name.charCodeAt(r.gzindex++)&255:0;CF(r,M)}while(M!==0);r.gzhead.hcrc&&r.pending>O&&(G.adler=nF(G.adler,r.pending_buf,r.pending-O,O));M===0&&(r.gzindex=0,r.status=91)}else r.status=91;if(r.status===
91)if(r.gzhead.comment){O=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>O&&(G.adler=nF(G.adler,r.pending_buf,r.pending-O,O)),su(G),O=r.pending,r.pending===r.pending_buf_size)){M=1;break}M=r.gzindex<r.gzhead.comment.length?r.gzhead.comment.charCodeAt(r.gzindex++)&255:0;CF(r,M)}while(M!==0);r.gzhead.hcrc&&r.pending>O&&(G.adler=nF(G.adler,r.pending_buf,r.pending-O,O));M===0&&(r.status=103)}else r.status=103;r.status===103&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&su(G),
r.pending+2<=r.pending_buf_size&&(CF(r,G.adler&255),CF(r,G.adler>>8&255),G.adler=0,r.status=113)):r.status=113);if(r.pending!==0){if(su(G),G.avail_out===0)return r.last_flush=-1,0}else if(G.avail_in===0&&(e<<1)-(e>4?9:0)<=(Z<<1)-(Z>4?9:0)&&e!==4)return dL(G,-5);if(r.status===666&&G.avail_in!==0)return dL(G,-5);if(G.avail_in!==0||r.lookahead!==0||e!==0&&r.status!==666){Z=r.strategy===2?lC$(r,e):r.strategy===3?gNs(r,e):yr[r.level].func(r,e);if(Z===3||Z===4)r.status=666;if(Z===1||Z===3)return G.avail_out===
0&&(r.last_flush=-1),0;if(Z===2&&(e===1?(jS(r,2,3),ac(r,256,Qr),r.bi_valid===16?(Rc(r,r.bi_buf),r.bi_buf=0,r.bi_valid=0):r.bi_valid>=8&&(r.pending_buf[r.pending++]=r.bi_buf&255,r.bi_buf>>=8,r.bi_valid-=8)):e!==5&&(jS(r,0,3),Zas(r,0,0),e===3&&(oc(r.head),r.lookahead===0&&(r.strstart=0,r.block_start=0,r.insert=0))),su(G),G.avail_out===0))return r.last_flush=-1,0}if(e!==4)return 0;if(r.wrap<=0)return 1;r.wrap===2?(CF(r,G.adler&255),CF(r,G.adler>>8&255),CF(r,G.adler>>16&255),CF(r,G.adler>>24&255),CF(r,
G.total_in&255),CF(r,G.total_in>>8&255),CF(r,G.total_in>>16&255),CF(r,G.total_in>>24&255)):(uA(r,G.adler>>>16),uA(r,G.adler&65535));su(G);r.wrap>0&&(r.wrap=-r.wrap);return r.pending!==0?0:1};
aCp=function(G){if(!(this instanceof aCp))return new aCp(G);G=this.options=XF.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},G||{});G.raw&&G.windowBits>0?G.windowBits=-G.windowBits:G.gzip&&G.windowBits>0&&G.windowBits<16&&(G.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new X1U;this.strm.avail_out=0;var e=this.strm;var r=G.level,Z=G.method,O=G.windowBits,M=G.memLevel,T=G.strategy;if(e){var E=1;r===-1&&(r=6);O<0?(E=0,O=-O):O>15&&
(E=2,O-=16);if(M<1||M>9||Z!==8||O<8||O>15||r<0||r>9||T<0||T>4)e=dL(e,-2);else{O===8&&(O=9);var b=new RDp;e.state=b;b.strm=e;b.wrap=E;b.gzhead=null;b.w_bits=O;b.w_size=1<<b.w_bits;b.w_mask=b.w_size-1;b.hash_bits=M+7;b.hash_size=1<<b.hash_bits;b.hash_mask=b.hash_size-1;b.hash_shift=~~((b.hash_bits+3-1)/3);b.window=new XF.Buf8(b.w_size*2);b.head=new XF.Buf16(b.hash_size);b.prev=new XF.Buf16(b.w_size);b.lit_bufsize=1<<M+6;b.pending_buf_size=b.lit_bufsize*4;b.pending_buf=new XF.Buf8(b.pending_buf_size);
b.d_buf=b.lit_bufsize;b.l_buf=3*b.lit_bufsize;b.level=r;b.strategy=T;b.method=Z;if(e&&e.state){e.total_in=e.total_out=0;e.data_type=2;r=e.state;r.pending=0;r.pending_out=0;r.wrap<0&&(r.wrap=-r.wrap);r.status=r.wrap?42:113;e.adler=r.wrap===2?0:1;r.last_flush=0;if(!Kki){Z=Array(16);for(M=T=0;M<28;M++)for(hDq[M]=T,O=0;O<1<<VFS[M];O++)KF[T++]=M;KF[T-1]=M;for(M=T=0;M<16;M++)for(Dvi[M]=T,O=0;O<1<<T0$[M];O++)fF[T++]=M;for(T>>=7;M<30;M++)for(Dvi[M]=T<<7,O=0;O<1<<T0$[M]-7;O++)fF[256+T++]=M;for(O=0;O<=15;O++)Z[O]=
0;for(O=0;O<=143;)Qr[O*2+1]=8,O++,Z[8]++;for(;O<=255;)Qr[O*2+1]=9,O++,Z[9]++;for(;O<=279;)Qr[O*2+1]=7,O++,Z[7]++;for(;O<=287;)Qr[O*2+1]=8,O++,Z[8]++;G1S(Qr,287,Z);for(O=0;O<30;O++)Ic[O*2+1]=5,Ic[O*2]=LGq(O,5);fC_=new WGi(Qr,VFS,257,286,15);k1i=new WGi(Ic,T0$,0,30,15);HaF=new WGi([],dvU,0,19,7);Kki=!0}r.l_desc=new Nfi(r.dyn_ltree,fC_);r.d_desc=new Nfi(r.dyn_dtree,k1i);r.bl_desc=new Nfi(r.bl_tree,HaF);r.bi_buf=0;r.bi_valid=0;eDS(r);r=0}else r=dL(e,-2);r===0&&(e=e.state,e.window_size=2*e.w_size,oc(e.head),
e.max_lazy_match=yr[e.level].max_lazy,e.good_match=yr[e.level].good_length,e.nice_match=yr[e.level].nice_length,e.max_chain_length=yr[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=r}}else e=-2;if(e!==0)throw Error(HG[e]);G.header&&(e=this.strm)&&e.state&&e.state.wrap===2&&(e.state.gzhead=G.header);if(G.dictionary){var w;typeof G.dictionary==="string"?w=oNU(G.dictionary):sBF.call(G.dictionary)==="[object ArrayBuffer]"?
w=new Uint8Array(G.dictionary):w=G.dictionary;G=this.strm;M=w;T=M.length;if(G&&G.state)if(w=G.state,e=w.wrap,e===2||e===1&&w.status!==42||w.lookahead)e=-2;else{e===1&&(G.adler=qOU(G.adler,M,T,0));w.wrap=0;T>=w.w_size&&(e===0&&(oc(w.head),w.strstart=0,w.block_start=0,w.insert=0),r=new XF.Buf8(w.w_size),XF.arraySet(r,M,T-w.w_size,w.w_size,0),M=r,T=w.w_size);r=G.avail_in;Z=G.next_in;O=G.input;G.avail_in=T;G.next_in=0;G.input=M;for(mB(w);w.lookahead>=3;){M=w.strstart;T=w.lookahead-2;do w.ins_h=(w.ins_h<<
w.hash_shift^w.window[M+3-1])&w.hash_mask,w.prev[M&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=M,M++;while(--T);w.strstart=M;w.lookahead=2;mB(w)}w.strstart+=w.lookahead;w.block_start=w.strstart;w.insert=w.lookahead;w.lookahead=0;w.match_length=w.prev_length=2;w.match_available=0;G.next_in=Z;G.input=O;G.avail_in=r;w.wrap=e;e=0}else e=-2;if(e!==0)throw Error(HG[e]);this._dict_set=!0}};
QBs=function(G,e){e=e||{};e.gzip=!0;e=new aCp(e);e.push(G,!0);if(e.err)throw e.msg||HG[e.err];return e.result};
p1U=function(G,e){var r=ICN();r&&r.publish.call(r,G.toString(),G,e)};
cXy=function(G,e,r){var Z=ICN();if(!Z)return 0;var O=Z.subscribe(G.toString(),function(M,T){var E=_.Lz("ytPubsub2Pubsub2SkipSubKey");E&&E==O||(E=function(){if(Cfq[O])try{if(T&&G instanceof uqf&&G!=M)try{var b=G.dataClass,w=T;if(!w.args||!w.version)throw Error("$c");try{if(!b.version_){var q=new b;b.version_=q.version}var t=b.version_}catch(g){}if(!t||w.version!=t)throw Error("ad");try{T=Reflect.construct(b,_.Ai(w.args))}catch(g){throw g.message="yt.pubsub2.Data.deserialize(): "+g.message,g;}}catch(g){throw g.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+G.toString()+": "+g.message,g;}e.call(r||window,T)}catch(g){_.WX(g)}},nN4[G.toString()]?_.Lz("yt.scheduler.instance")?_.A0.addLowPriorityJob(E):_.jm(E,0):E())});
Cfq[O]=!0;mvp[G.toString()]||(mvp[G.toString()]=[]);mvp[G.toString()].push(O);return O};
Fkp=function(){var G=YOF,e=cXy(yXa,function(r){G.apply(void 0,arguments);AXF(e)});
return e};
AXF=function(G){var e=ICN();e&&(typeof G==="number"&&(G=[G]),_.rR(G,function(r){e.unsubscribeByKey(r);delete Cfq[r]}))};
ICN=function(){return _.Lz("ytPubsub2Pubsub2Instance")};
JXS=function(G,e,r){r=r===void 0?{sampleRate:.1}:r;Math.random()<Math.min(.02,r.sampleRate/100)&&p1U("meta_logging_csi_event",{timerName:G,timelineData:e})};
_.B0p=function(G){return G?(G=G.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.Of(G):null:null};
_.FF=function(G){return G?(G=G.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.sk(G):null:null};
Pf4=function(){xv$||(xv$=_.FF(_.xZ("WORKER_SERIALIZATION_URL")));return xv$||void 0};
_.zDA=function(){var G=Pf4();Uv4||G===void 0||(Uv4=lf4(G));return Uv4};
_.Wkf=function(){return typeof Worker==="function"&&Pf4()?!0:!1};
_.ecp=function(){if(_.Wkf()&&!N0S){var G=function(r){r=r.data;if(r.op==="gzippedGelBatch"){var Z=Lky.get(r.key);Z&&(Goa(r.gzippedBatch,Z.latencyPayload,Z.url,Z.options,Z.sendFn),Lky.delete(r.key))}},e=_.zDA();
e&&(e.addEventListener("message",G),e.onerror=function(){Lky.clear()},N0S=!0)}};
TvF=function(G,e,r,Z,O){O=O===void 0?!1:O;var M={startTime:(0,_.vG)(),ticks:{},infos:{}};if(J0)try{var T=rs_(e);if(T!=null&&(T>ZRF||T<OR$))Z(G,r);else{if(_.R("gzip_gel_with_worker")&&(_.R("initial_gzip_use_main_thread")&&!MDp||!_.R("initial_gzip_use_main_thread"))){N0S||_.ecp();var E=_.zDA();if(E&&!O){Lky.set(VDa,{latencyPayload:M,url:G,options:r,sendFn:Z});E.postMessage({op:"gelBatchToGzip",serializedBatch:e,key:VDa});VDa++;return}}var b=QBs(hcS(e));Goa(b,M,G,r,Z)}}catch(w){_.GG(w),Z(G,r)}else Z(G,
r)};
Goa=function(G,e,r,Z,O){MDp=!1;var M=(0,_.vG)();e.ticks.gelc=M;BG++;_.R("disable_compression_due_to_performance_degredation")&&M-e.startTime>=DeS&&(EPy++,_.R("abandon_compression_after_N_slow_zips")?BG===_.qt("compression_disable_point")&&EPy>iRA&&(J0=!1):J0=!1);bR_(e);Z.headers||(Z.headers={});Z.headers["Content-Encoding"]="gzip";Z.postBody=G;Z.postParams=void 0;O(r,Z)};
vPp=function(G){var e=e===void 0?!1:e;var r=r===void 0?!1:r;var Z=(0,_.vG)(),O={startTime:Z,ticks:{},infos:{}},M=e?_.Lz("yt.logging.gzipForFetch",!1):!0;if(J0&&M){if(!G.body)return G;try{var T=r?G.body:typeof G.body==="string"?G.body:JSON.stringify(G.body);M=T;if(!r&&typeof T==="string"){var E=rs_(T);if(E!=null&&(E>ZRF||E<OR$))return G;r=e?{level:1}:void 0;M=QBs(hcS(T),r);var b=(0,_.vG)();O.ticks.gelc=b;if(e){BG++;if((_.R("disable_compression_due_to_performance_degredation")||_.R("disable_compression_due_to_performance_degradation_lr"))&&
b-Z>=DeS)if(EPy++,_.R("abandon_compression_after_N_slow_zips")||_.R("abandon_compression_after_N_slow_zips_lr")){e=EPy/BG;var w=iRA/_.qt("compression_disable_point");BG>0&&BG%_.qt("compression_disable_point")===0&&e>=w&&(J0=!1)}else J0=!1;bR_(O)}}G.headers=Object.assign({},{"Content-Encoding":"gzip"},G.headers||{});G.body=M;return G}catch(q){return _.GG(q),G}}else return G};
rs_=function(G){try{return(new Blob(G.split(""))).size}catch(e){return _.GG(e),null}};
bR_=function(G){_.R("gel_compression_csi_killswitch")||!_.R("log_gel_compression_latency")&&!_.R("log_gel_compression_latency_lr")||JXS("gel_compression",G,{sampleRate:.1})};
wxA=function(){this.blockSize=-1};
x2=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var G=1;G<this.blockSize;++G)this.pad_[G]=0;this.total_=this.inbuf_=0;this.reset()};
Sma=function(G){G=Object.assign({},G);delete G.Authorization;var e=_.$e$();if(e){var r=new x2;r.update(_.xZ("INNERTUBE_API_KEY"));r.update(e);G.hash=_.uH(r.digest(),3)}return G};
Uu=function(){qmp||(qmp=new _.PG("yt.innertube"));return qmp};
tDa=function(G,e,r,Z){if(Z)return null;Z=Uu().get("nextId",!0)||1;var O=Uu().get("requests",!0)||{};O[Z]={method:G,request:e,authState:Sma(r),requestTime:Math.round((0,_.vG)())};Uu().set("nextId",Z+1,86400,!0);Uu().set("requests",O,86400,!0);return Z};
gPF=function(G){var e=Uu().get("requests",!0)||{};delete e[G];Uu().set("requests",e,86400,!0)};
Rci=function(G){var e=Uu().get("requests",!0);if(e){for(var r in e){var Z=e[r];if(!(Math.round((0,_.vG)())-Z.requestTime<6E4)){var O=Z.authState,M=Sma(_.Ur_(!1));_.c2.equals(O,M)&&(O=Z.request,"requestTimeMs"in O&&(O.requestTimeMs=Math.round((0,_.vG)())),lQN(G,Z.method,O,{}));delete e[r]}}Uu().set("requests",e,86400,!0)}};
jRA=function(G){var e;return(G=G==null?void 0:(e=G.error)==null?void 0:e.code)&&G>=400&&G<=599?!1:!0};
aQS=function(G){var e;G=G==null?void 0:(e=G.error)==null?void 0:e.code;return!(G!==400&&G!==415)};
KrS=function(){if(Xxf)return Xxf();var G={};Xxf=bA("LogsDatabaseV2",{objectStores:(G.LogsRequestsStore={addedAtVersion:2},G),shared:!1,upgrade:function(e,r,Z){r(2)&&zc(e,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});r(3);r(5)&&(Z=Z.objectStore("LogsRequestsStore"),Z.JSC$10688_wrapped.indexNames.contains("newRequest")&&Z.JSC$10688_wrapped.deleteIndex("newRequest"),WG(Z,"newRequestV2",["status","interface","timestamp"]));r(7)&&e.JSC$10673_wrapped.objectStoreNames.contains("sapisid")&&e.JSC$10673_wrapped.deleteObjectStore("sapisid");
r(9)&&e.JSC$10673_wrapped.objectStoreNames.contains("SWHealthLog")&&e.JSC$10673_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return Xxf()};
Na=function(G){return _.Ou(KrS(),G)};
kos=function(G,e){var r,Z,O,M;return _.D(function(T){if(T.nextAddress==1)return r={startTime:(0,_.vG)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},T.yield(Na(e),2);if(T.nextAddress!=3)return Z=T.yieldResult,O=Object.assign({},G,{options:JSON.parse(JSON.stringify(G.options)),interface:_.xZ("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),T.yield(Z.put("LogsRequestsStore",O),3);M=T.yieldResult;r.ticks.tc=(0,_.vG)();fQN(r);return T.return(M)})};
HRs=function(G,e){var r,Z,O,M,T,E,b,w,q;return _.D(function(t){if(t.nextAddress==1)return r={startTime:(0,_.vG)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},t.yield(Na(e),2);if(t.nextAddress!=3)return Z=t.yieldResult,O=_.xZ("INNERTUBE_CONTEXT_CLIENT_NAME",0),M=[G,O,0],T=[G,O,(0,_.vG)()],E=IDBKeyRange.bound(M,T),b="prev",_.R("use_fifo_for_networkless")&&(b="next"),w=void 0,q=G==="NEW"?"readwrite":"readonly",_.R("use_readonly_for_get_most_recent_by_status_killswitch")&&(q="readwrite"),
t.yield(_.Ma(Z,["LogsRequestsStore"],{mode:q,enableRetries:!0},function(g){return _.wL(g.objectStore("LogsRequestsStore").index("newRequestV2"),{query:E,direction:b},function(l){l.getValue()&&(w=l.getValue(),G==="NEW"&&(w.status="QUEUED",l.update(w)))})}),3);
r.ticks.tc=(0,_.vG)();fQN(r);return t.return(w)})};
deF=function(G,e){var r;return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(Na(e),2);r=Z.yieldResult;return Z.return(_.Ma(r,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(O){var M=O.objectStore("LogsRequestsStore");return M.get(G).then(function(T){if(T)return T.status="QUEUED",M.put(T).then(function(){return T})})}))})};
oPp=function(G,e,r,Z){r=r===void 0?!0:r;var O;return _.D(function(M){if(M.nextAddress==1)return M.yield(Na(e),2);O=M.yieldResult;return M.return(_.Ma(O,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(T){var E=T.objectStore("LogsRequestsStore");return E.get(G).then(function(b){return b?(b.status="NEW",r&&(b.sendCount+=1),Z!==void 0&&(b.options.compress=Z),E.put(b).then(function(){return b})):W_.resolve(void 0)})}))})};
sR$=function(G,e){var r;return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(Na(e),2);r=Z.yieldResult;return Z.return(r.delete("LogsRequestsStore",G))})};
QRa=function(G){var e,r;return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(Na(G),2);e=Z.yieldResult;r=(0,_.vG)()-2592E6;return Z.yield(_.Ma(e,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(O){return h0(O.objectStore("LogsRequestsStore"),{},function(M){if(M.getValue().timestamp<=r)return M.delete().then(function(){return M.continue()})})}),0)})};
IQq=function(){_.D(function(G){return G.yield(jIp("LogsDatabaseV2"),0)})};
fQN=function(G){_.R("nwl_csi_killswitch")||JXS("networkless_performance",G,{sampleRate:1})};
_.CDs=function(G){return _.Ou(pxU(),G)};
u6S=function(G){var e,r;_.D(function(Z){if(Z.nextAddress==1)return Z.yield(_.CDs(G),2);e=Z.yieldResult;r=(0,_.vG)()-2592E6;return Z.yield(_.Ma(e,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(O){return h0(O.objectStore("SWHealthLog"),{},function(M){if(M.getValue().timestamp<=r)return M.delete().then(function(){return M.continue()})})}),0)})};
nP$=function(G){var e;return _.D(function(r){if(r.nextAddress==1)return r.yield(_.CDs(G),2);e=r.yieldResult;return r.yield(e.clear("SWHealthLog"),0)})};
_.LF=function(G,e,r,Z,O,M,T){O=O===void 0?"":O;M=M===void 0?!1:M;T=T===void 0?!1:T;if(G)if(r&&!x1("cobalt"))_.GG(new _.Cr("Legacy referrer-scrubbed ping detected")),G&&me$(G,void 0,{scrubReferrer:!0});else if(O)i_S(G,e,"POST",O,Z);else if(_.xZ("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||Z||T)i_S(G,e,"GET","",Z,void 0,M,T);else{b:{try{c:{var E=new css({url:G});if(E.urlParamValues_.dsh==="1")var b=null;else{var w=E.urlParamValues_.ae;if(w==="1"){var q=E.urlParamValues_.adurl;if(q)try{b={version:3,directUrl:decodeURIComponent(q),
asyncUrl:yHs(E.JSC$9485_url_,"act=1","ri=1",Ymy(E))};break c}catch(X){}}b=w==="2"?{version:4,directUrl:yHs(E.JSC$9485_url_,"dct=1","suid="+E.suid_,"ri=1"),asyncUrl:yHs(E.JSC$9485_url_,"act=1","ri=1","suid="+E.suid_)}:null}}if(b){var t=_.Kr(G);var g=!(!t||!t.endsWith("/aclk")||_.Wp(G,"ri")!=="1");break b}}catch(X){}g=!1}if(g){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(G,"")){var l=!0;break b}}catch(X){}l=!1}l?(e&&e(),r=!0):r=!1}else r=!1;r||me$(G,e)}};
me$=function(G,e,r){r=r===void 0?{}:r;var Z=new Image,O=""+ysF++;As$[O]=Z;Z.onload=Z.onerror=function(){e&&As$[O]&&e();delete As$[O]};
r.scrubReferrer&&(Z.referrerPolicy="no-referrer");Z.src=G};
Gr=function(G,e){Fra(G,e==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
Jsp=function(G){var e;return((e=document.featurePolicy)==null?0:e.allowedFeatures().includes("attribution-reporting"))?G+"&nis=6":G+"&nis=5"};
Bvf=function(G){if(!G)return!1;try{var e;if(((e=_.ZW(G))==null?void 0:e.asm)==="4")return!0}catch(r){_.WX(r)}return!1};
Fra=function(G,e){e?(G=Jsp(G),_.LF(G,void 0,void 0,void 0,"",!0,!0)):_.LF(G)};
PDU=function(){xes||(xes=new _.PG("yt.offline"));return xes};
Uep=function(G){if(_.R("offline_error_handling")){var e=PDU().get("errors",!0)||{};e[G.message]={name:G.name,stack:G.stack};G.level&&(e[G.message].level=G.level);PDU().set("errors",e,2592E3,!0)}};
WrN=function(G,e,r,Z){Z=Z===void 0?!1:Z;e=_.R("web_fp_via_jspb")?Object.assign({},e):e;_.R("use_cfr_monitor")&&zca(G,e);if(_.R("use_request_time_ms_header"))e.headers&&E5(G)&&(e.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.vG)())));else{var O;if((O=e.postParams)==null?0:O.requestTimeMs)e.postParams.requestTimeMs=Math.round((0,_.vG)())}r&&Object.keys(e).length===0?_.LF(G):e.compress?e.postBody?(typeof e.postBody!=="string"&&(e.postBody=JSON.stringify(e.postBody)),TvF(G,e.postBody,
e,_.fr,Z)):TvF(G,JSON.stringify(e.postParams),e,$nS,Z):_.fr(G,e)};
Nvq=function(G,e){_.R("use_event_time_ms_header")&&E5(G)&&(e.headers||(e.headers={}),e.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.vG)())));return e};
_.Ga$=function(){Lrq||(Lrq=new _.e4({logOfflineErrors:!0,enablePolling:!0}));return Lrq};
zca=function(G,e){var r=e.onError?e.onError:function(){};
e.onError=function(O,M){rl().requestComplete(G,!1);r(O,M)};
var Z=e.onSuccess?e.onSuccess:function(){};
e.onSuccess=function(O,M){rl().requestComplete(G,!0);Z(O,M)}};
_.eIf=function(){return _.TG(document.location.toString())!=="www.youtube-nocookie.com"};
_.OCa=function(){return _.Lz("ytNetworklessLoggingInitializationOptions")?_.r_p.isNwlInitialized:_.ZC_};
Msy=function(G,e){if(_.R("polymer_on_demand_shady_dom")){var r;var Z=(r=G.__shady_native_firstElementChild)!=null?r:G.firstElementChild}else Z=G.firstElementChild;for(;Z;){if(G=e(Z)?Z:Msy(Z,e))return G;Z=Z.nextElementSibling}return null};
hIF=function(){var G=document;if("visibilityState"in G)return G.visibilityState;var e=Vsy+"VisibilityState";if(e in G)return G[e]};
_.T2s=function(G,e){var r;ZR(G,function(Z){r=e[Z];return!!r});
return r};
_.Mh=function(G){var e=Dqy(G);e?e.focus(void 0):_.Os(G)};
Dqy=function(G){return(G=Msy(G,function(e){return _.Vx(e)?Eha(e)&&!!e.offsetParent:!1}))?G:null};
_.Os=function(G,e){G.hasAttribute("tabindex")||G.setAttribute("tabindex","-1");G.focus(e)};
iCs=function(G,e,r,Z){Z=Z===void 0?{}:Z;G.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 _.c2.findKey(hG,function(O){var M=typeof O[4]==="boolean"&&O[4]==!!Z,T=_.PA(O[4])&&_.PA(Z)&&_.c2.equals(O[4],Z);return!!O.length&&O[0]==G&&O[1]==e&&O[2]==r&&(M||T)})};
_.DR=function(G,e,r,Z){Z=Z===void 0?{}:Z;if(!G||!G.addEventListener&&!G.attachEvent)return"";var O=iCs(G,e,r,Z);if(O)return O;O=++bCU.count+"";var M=!(e!="mouseenter"&&e!="mouseleave"||!G.addEventListener||"onmouseenter"in document);var T=M?function(E){E=new Tr(E);if(!_.B2(E.relatedTarget,function(b){return b==G},!0))return E.currentTarget=G,E.type=e,r.call(G,E)}:function(E){E=new Tr(E);
E.currentTarget=G;return r.call(G,E)};
T=_.N0(T);G.addEventListener?(e=="mouseenter"&&M?e="mouseover":e=="mouseleave"&&M?e="mouseout":e=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(e="MozMousePixelScroll"),vhS()||typeof Z==="boolean"?G.addEventListener(e,T,Z):G.addEventListener(e,T,!!Z.capture)):G.attachEvent("on"+e,T);hG[O]=[G,e,r,T,Z];return O};
_.$q$=function(G,e,r){var Z=Z===void 0?{}:Z;var O=_.DR(G,e,function(){_.wQs(O);r.apply(G,arguments)},Z)};
_.wQs=function(G){G&&(typeof G=="string"&&(G=[G]),_.rR(G,function(e){if(e in hG){var r=hG[e],Z=r[0],O=r[1],M=r[3];r=r[4];Z.removeEventListener?vhS()||typeof r==="boolean"?Z.removeEventListener(O,M,r):Z.removeEventListener(O,M,!!r.capture):Z.detachEvent&&Z.detachEvent("on"+O,M);delete hG[e]}}))};
Es=function(G){this.callback_=G;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(G=0;G<4;G++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.DR(window,"mousemove",(0,_.CB)(this.onMouseMove_,this));this.timerId_=_.aZ((0,_.CB)(this.checkPosition_,this),25)};
tsa=function(){var G={};var e=G.preferMobileEvents===void 0?!1:G.preferMobileEvents;G=G.enableScrollEventListener===void 0?!0:G.enableScrollEventListener;if(_.Lz("_lact",window)==null){var r=parseInt(_.xZ("LACT"),10);r=isFinite(r)?Date.now()-Math.max(r,0):-1;_.Eu("_lact",r,window);_.Eu("_fact",r,window);r==-1&&_.ij();SY_(window,e,G);new Es(function(){qYS("mouse",100)})}};
SY_=function(G,e,r){e=e===void 0?!1:e;r=r===void 0?!0:r;_.DR(G.document,"keydown",_.ij);_.DR(G.document,"keyup",_.ij);_.DR(G.document,"mousedown",_.ij);_.DR(G.document,"mouseup",_.ij);e?_.DR(G,"touchmove",function(){qYS("touchmove",200)},{passive:!0}):(_.DR(G,"resize",function(){qYS("resize",200)}),r&&_.DR(G,"scroll",function(){qYS("scroll",200)}));
_.DR(G.document,"touchstart",_.ij,{passive:!0});_.DR(G.document,"touchend",_.ij,{passive:!0})};
qYS=function(G,e){ghA[G]||(ghA[G]=!0,_.A0.addLowPriorityJob(function(){_.ij();ghA[G]=!1},e))};
_.ij=function(){_.Lz("_lact",window)==null&&tsa();var G=Date.now();_.Eu("_lact",G,window);_.Lz("_fact",window)==-1&&_.Eu("_fact",G,window);(G=_.Lz("ytglobal.ytUtilActivityCallback_"))&&G()};
_.bj=function(){var G=_.Lz("_lact",window);return G==null?-1:Math.max(Date.now()-G,0)};
_.S4=function(G,e,r){var Z=_.vg();if(Z&&e){var O=Z.subscribe(G,function(){var M=arguments,T=function(){wl[O]&&e.apply&&typeof e.apply=="function"&&e.apply(r||window,M)};
try{_.lM$[G]?T():_.jm(T,0)}catch(E){_.WX(E)}},r);
wl[O]=!0;$c[G]||($c[G]=[]);$c[G].push(O);return O}return 0};
_.RIa=function(G){var e=_.vg();e&&(typeof G==="number"?G=[G]:typeof G==="string"&&(G=[parseInt(G,10)]),_.rR(G,function(r){e.unsubscribeByKey(r);delete wl[r]}))};
_.jgN=function(G,e){var r=_.vg();r&&r.publish.apply(r,arguments)};
_.XQF=function(G){var e=_.vg();if(e)if(e.clear(G),G)aM$(G);else for(var r in $c)aM$(r)};
_.vg=function(){return _.O_.ytPubsubPubsubInstance};
aM$=function(G){$c[G]&&(G=$c[G],_.rR(G,function(e){wl[e]&&delete wl[e]}),G.length=0)};
K2$=function(){var G,e;return"h5vcc"in qh&&((G=qh.h5vcc.traceEvent)==null?0:G.traceBegin)&&((e=qh.h5vcc.traceEvent)==null?0:e.traceEnd)?1:"performance"in qh&&qh.performance.mark&&qh.performance.measure?2:0};
fMq=function(G){var e=K2$();switch(e){case 1:qh.h5vcc.traceEvent.traceBegin("YTLR",G);break;case 2:qh.performance.mark(G+"-start");break;case 0:break;default:_.zC(e,"unknown trace type")}};
kai=function(G){var e=K2$();switch(e){case 1:qh.h5vcc.traceEvent.traceEnd("YTLR",G);break;case 2:e=G+"-start";var r=G+"-end";qh.performance.mark(r);qh.performance.measure(G,e,r);break;case 0:break;default:_.zC(e,"unknown trace type")}};
HC4=function(G){var e,r;(r=(e=window).onerror)==null||r.call(e,G.message,"",0,0,G)};
dqf=function(G){if(_.R("web_lifecycle_error_handling_killswitch"))return G();try{return G()}catch(e){HC4(e)}};
ohS=function(G){return[G.auth===void 0?"undefined":G.auth,G.isJspb===void 0?"undefined":G.isJspb,G.cttAuthInfo===void 0?"undefined":G.cttAuthInfo,G.tier===void 0?"undefined":G.tier].join("/")};
_.a=function(G,e){if(G)return G[e.name]};
lj=function(){var G=_.Lz("yt.logging.ims");G||(G=new gl,_.Eu("yt.logging.ims",G));return G};
c_A=function(G,e){if(G.endpoint==="log_event"){sg_(G);var r=QgU(G),Z=IM4(G.payload)||"",O=pQp(Z),M=200;if(O){if(O.enabled===!1&&!_.R("web_payload_policy_disabled_killswitch"))return;M=C1A(O.tier);if(M===400){u0f(G,e);return}}RQ[r]=!0;r={cttAuthInfo:r,isJspb:!1,tier:M};lj().storePayload(r,G.payload);nh$(e,!1,r,mq4(Z))}};
y_s=function(G,e,r){if(e.endpoint==="log_event"){sg_(void 0,e);var Z=QgU(e,!0),O=pQp(G),M=200;if(O){if(O.enabled===!1&&!_.R("web_payload_policy_disabled_killswitch"))return;M=C1A(O.tier);if(M===400){YYs(G,e,r);return}}RQ[Z]=!0;Z={cttAuthInfo:Z,isJspb:!0,tier:M};lj().storePayload(Z,nd(e.payload));nh$(r,!0,Z,mq4(G))}};
nh$=function(G,e,r,Z){e=e===void 0?!1:e;Z=Z===void 0?!1:Z;G&&(j4=new G);G=_.qt("tvhtml5_logging_max_batch_ads_fork")||_.qt("tvhtml5_logging_max_batch")||_.qt("web_logging_max_batch")||100;var O=(0,_.vG)(),M=A_s(e,r.tier),T=M.lastDebounceQueueFromLogTimeMs;Z&&(M.useVideoStatsEndPoint=!0);Z=0;r&&(Z=lj().getSequenceCount(r));var E=function(){F2A({writeThenSend:!0},e,r.tier)};
Z>=1E3?E():Z>=G?J_4||(J_4=B2p(function(){E();J_4=void 0},0)):O-T>=10&&(xqi(e,r.tier),M.lastDebounceQueueFromLogTimeMs=O)};
u0f=function(G,e){if(G.endpoint==="log_event"){_.R("more_accurate_gel_parser")&&lj().storePayload({isJspb:!1},G.payload);sg_(G);var r=QgU(G),Z=new Map;Z.set(r,[G.payload]);var O=IM4(G.payload)||"";e&&(j4=new e);return new _.aQ(function(M,T){j4&&j4.isReady()?P1F(Z,j4,M,T,{bypassNetworkless:!0},!0,mq4(O)):M()})}};
YYs=function(G,e,r){if(e.endpoint==="log_event"){sg_(void 0,e);var Z=QgU(e,!0),O=new Map;O.set(Z,[nd(e.payload)]);r&&(j4=new r);return new _.aQ(function(M){j4&&j4.isReady()?Uqi(O,j4,M,{bypassNetworkless:!0},!0,mq4(G)):M()})}};
QgU=function(G,e){var r="";if(G.dangerousLogToVisitorSession)r="visitorOnlyApprovedKey";else if(G.cttAuthInfo){if(e===void 0?0:e){e=G.cttAuthInfo.token;r=G.cttAuthInfo;var Z=new zIU;r.videoId?Z.setVideoId(r.videoId):r.playlistId&&XH(Z,2,W2_,ja(r.playlistId));N2S[e]=Z}else e=G.cttAuthInfo,r={},e.videoId?r.videoId=e.videoId:e.playlistId&&(r.playlistId=e.playlistId),L2a[G.cttAuthInfo.token]=r;r=G.cttAuthInfo.token}return r};
F2A=function(G,e,r){G=G===void 0?{}:G;e=e===void 0?!1:e;new _.aQ(function(Z,O){var M=A_s(e,r),T=M.useVideoStatsEndPoint;M.useVideoStatsEndPoint=!1;GhU(M.queueTimer);GhU(M.queueMaxTimer);M.queueMaxTimer=0;j4&&j4.isReady()?r===void 0&&_.R("enable_web_tiered_gel")?ePU(Z,O,G,e,300,T):ePU(Z,O,G,e,r,T):(xqi(e,r),Z())})};
ePU=function(G,e,r,Z,O,M){var T=j4;r=r===void 0?{}:r;Z=Z===void 0?!1:Z;O=O===void 0?200:O;M=M===void 0?!1:M;var E=new Map,b=new Map,w={isJspb:Z,cttAuthInfo:void 0,tier:O},q={isJspb:Z,cttAuthInfo:void 0};if(Z){e=_.h(Object.keys(RQ));for(O=e.next();!O.done;O=e.next())O=O.value,b=_.R("enable_web_tiered_gel")?lj().smartExtractMatchingEntries({keys:[w,q],sizeLimit:1E3}):lj().extractMatchingEntries({isJspb:!0,cttAuthInfo:O}),b.length>0&&E.set(O,b),(_.R("web_fp_via_jspb_and_json")&&r.writeThenSend||!_.R("web_fp_via_jspb_and_json"))&&
delete RQ[O];Uqi(E,T,G,r,!1,M)}else{E=_.h(Object.keys(RQ));for(w=E.next();!w.done;w=E.next())w=w.value,q=_.R("enable_web_tiered_gel")?lj().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:w,tier:O},{isJspb:!1,cttAuthInfo:w}],sizeLimit:1E3}):lj().extractMatchingEntries({isJspb:!1,cttAuthInfo:w}),q.length>0&&b.set(w,q),(_.R("web_fp_via_jspb_and_json")&&r.writeThenSend||!_.R("web_fp_via_jspb_and_json"))&&delete RQ[w];P1F(b,T,G,e,r,!1,M)}};
xqi=function(G,e){G=G===void 0?!1:G;e=e===void 0?200:e;var r=function(){F2A({writeThenSend:!0},G,e)},Z=A_s(G,e),O=Z===reS||Z===Z1p?5E3:O1i;
_.R("web_gel_timeout_cap")&&!Z.queueMaxTimer&&(O=B2p(function(){r()},O),Z.queueMaxTimer=O);
GhU(Z.queueTimer);O=_.xZ("LOGGING_BATCH_TIMEOUT",_.qt("web_gel_debounce_ms",1E4));_.R("shorten_initial_gel_batch_timeout")&&MvS&&(O=Vvf);O=B2p(function(){_.qt("gel_min_batch_size")>0?lj().getSequenceCount({cttAuthInfo:void 0,isJspb:G,tier:e})>=hPp&&r():r()},O);
Z.queueTimer=O};
P1F=function(G,e,r,Z,O,M,T){O=O===void 0?{}:O;var E=Math.round((0,_.vG)()),b=G.size,w=TpS(T);G=_.h(G);var q=G.next();for(T={};!q.done;T={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},q=G.next()){var t=_.h(q.value);q=t.next().value;t=t.next().value;T.batchRequest=_.c2.unsafeClone({context:_.chi(e.config_||_.$2())});if(!_.FN(t)&&!_.R("throw_err_when_logevent_malformed_killswitch")){Z();break}T.batchRequest.events=t;
(t=L2a[q])&&DkA(T.batchRequest,q,t);delete L2a[q];T.dangerousLogToVisitorSession=q==="visitorOnlyApprovedKey";EON(T.batchRequest,E,T.dangerousLogToVisitorSession);i1i(O);T.onSuccess$jscomp$3=function(g){_.R("start_client_gcf")&&_.A0.addLowPriorityJob(function(){return _.D(function(l){return l.yield(b1S(g),0)})});
b--;b||r()};
T.networkFailures=0;T.onError$jscomp$5=function(g){return function(){g.networkFailures++;if(O.bypassNetworkless&&g.networkFailures===1)try{lQN(e,w,g.batchRequest,vO4({writeThenSend:!0},g.dangerousLogToVisitorSession,g.onSuccess$jscomp$3,g.onError$jscomp$5,M)),MvS=!1}catch(l){_.WX(l),Z()}b--;b||r()}}(T);
try{lQN(e,w,T.batchRequest,vO4(O,T.dangerousLogToVisitorSession,T.onSuccess$jscomp$3,T.onError$jscomp$5,M)),MvS=!1}catch(g){_.WX(g),Z()}}};
Uqi=function(G,e,r,Z,O,M){Z=Z===void 0?{}:Z;var T=Math.round((0,_.vG)()),E={value:G.size},b=new Map([].concat(_.mY(G)));b=_.h(b);for(var w=b.next();!w.done;w=b.next()){var q=_.h(w.value).next().value,t=G.get(q);w=new w5S;var g=e.config_||_.$2(),l=new KL,X=new $kS;_.QB(X,1,g.innertubeContextHostLanguage);_.QB(X,2,g.innertubeContextGeoLocation);_.qa(X,16,g.innertubeContextClientNameFieldNumber);_.QB(X,17,g.innertubeContextClientVersion);if(g.innertubeContextClientConfigInfo){var H=g.innertubeContextClientConfigInfo,
I=new gL;H.coldConfigData&&_.QB(I,1,H.coldConfigData);H.appInstallData&&_.QB(I,6,H.appInstallData);H.coldHashData&&_.QB(I,3,H.coldHashData);H.hotHashData&&I.setHotHashData(H.hotHashData);_.Kj(X,62,I)}(H=_.O_.devicePixelRatio)&&H!=1&&_.t0(X,65,_.Wc(H));H=ryy();H!==""&&_.QB(X,54,H);H=Z_y();if(H.length>0){I=new Sbq;for(var C=0;C<H.length;C++){var u=new fL;u.setKey(H[C].key);XH(u,2,qby,ja(H[C].value));kc(I,15,fL,u)}_.Kj(l,5,I)}IHi(g,X);pSS(l);Cw$(X);usS(g,X);nt4(X);_.R("start_client_gcf")&&mrp(X);_.xZ("DELEGATED_SESSION_ID")&&
!_.R("pageid_as_header_web")&&(g=new Hg,_.QB(g,3,_.xZ("DELEGATED_SESSION_ID")));!_.R("fill_delegate_context_in_gel_killswitch")&&(H=_.xZ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(I=_.SS(l,Hg,3)||new Hg,g=l,H=_.QB(I,18,H),_.Kj(g,3,H));g=X;H=_.h(Object.entries(_.ZW(_.xZ("DEVICE",""))));for(I=H.next();!I.done;I=H.next())C=_.h(I.value),I=C.next().value,C=C.next().value,I==="cbrand"?_.QB(g,12,C):I==="cmodel"?_.QB(g,13,C):I==="cbr"?_.QB(g,87,C):I==="cbrver"?_.QB(g,88,C):I==="cos"?_.QB(g,18,
C):I==="cosver"?_.QB(g,19,C):I==="cplatform"&&_.qa(g,42,Ql_(C));l.setClient(X);_.Kj(w,1,l);if(X=N2S[q])a:{if(_.kW(X,dl(X,W2_,1)))l=1;else if(X.getPlaylistId())l=2;else break a;_.Kj(w,4,X);X=w.getContext()||new KL;g=_.SS(X,Hg,3)||new Hg;H=new oQ;H.setToken(q);_.qa(H,1,l);kc(g,12,oQ,H);_.Kj(X,3,g)}delete N2S[q];q=q==="visitorOnlyApprovedKey";tvi()||_.ss(w,2,T);!q&&(l=_.xZ("EVENT_ID"))&&(X=gOy(),g=new lp4,_.QB(g,1,l),_.ss(g,2,X),_.Kj(w,5,g));i1i(Z);if(_.R("jspb_serialize_with_worker")&&(l=_.zDA())&&
Z.writeThenSend){_.RPi.set(jVq,{client:e,resolve:r,networklessOptions:Z,isIsolated:O,useVSSEndpoint:M,dangerousLogToVisitorSession:q,requestsOutstanding:E});l.postMessage({op:"gelBatchToSerialize",batchRequest:nd(w),clientEvents:t,key:jVq});jVq++;break}if(t){l=[];for(X=0;X<t.length;X++)try{l.push(new Qx(t[X]))}catch(P){_.WX(new _.Cr("Transport failed to deserialize "+String(t[X])))}t=l}else t=[];t=_.h(t);for(l=t.next();!l.done;l=t.next())kc(w,3,Qx,l.value);t={startTime:(0,_.vG)(),ticks:{},infos:{}};
w=w.serialize();t.ticks.geljspc=(0,_.vG)();_.R("log_jspb_serialize_latency")&&JXS("gel_jspb_serialize",t,{sampleRate:.1});_.apF(w,e,r,Z,O,M,q,E)}};
_.apF=function(G,e,r,Z,O,M,T,E){Z=Z===void 0?{}:Z;E=E===void 0?{value:0}:E;M=TpS(M);Z=vO4(Z,T,function(b){_.R("start_client_gcf")&&_.A0.addLowPriorityJob(function(){return _.D(function(w){return w.yield(b1S(b),0)})});
E.value--;E.value||r()},function(){E.value--;
E.value||r()},O);
Z.headers["Content-Type"]="application/json+protobuf";Z.postBodyFormat="JSPB";Z.postBody=G;lQN(e,M,"",Z);MvS=!1};
i1i=function(G){_.R("always_send_and_write")&&(G.writeThenSend=!1)};
vO4=function(G,e,r,Z,O){G={retry:!0,onSuccess:r,onError:Z,networklessOptions:G,dangerousLogToVisitorSession:e,bypassMonitoring:!!O,headers:{},postBodyFormat:"",postBody:"",compress:_.R("compress_gel")||_.R("compress_gel_lr")};tvi()&&(G.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.vG)())));return G};
EON=function(G,e,r){tvi()||(G.requestTimeMs=String(e));_.R("unsplit_gel_payloads_in_logs")&&(G.unsplitGelPayloadsInLogs=!0);!r&&(e=_.xZ("EVENT_ID"))&&(r=gOy(),G.serializedClientEventId={serializedEventId:e,clientCounter:String(r)})};
gOy=function(){var G=_.xZ("BATCH_CLIENT_COUNTER")||0;G||(G=Math.floor(Math.random()*65535/2));G++;G>65535&&(G=1);_.BX("BATCH_CLIENT_COUNTER",G);return G};
DkA=function(G,e,r){if(r.videoId)var Z="VIDEO";else if(r.playlistId)Z="PLAYLIST";else return;G.credentialTransferTokenTargetId=r;G.context=G.context||{};G.context.user=G.context.user||{};G.context.user.credentialTransferTokens=[{token:e,scope:Z}]};
sg_=function(G,e){var r=_.td("il_payload_scraping")==="enable_il_payload_scraping";if(!_.Lz("yt.logging.transport.enableScrapingForTest"))if(r)X5N=[],_.Eu("yt.logging.transport.enableScrapingForTest",!0),_.Eu("yt.logging.transport.scrapedPayloadsForTesting",X5N),_.Eu("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.Eu("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.Eu("yt.logging.transport.scrapeClientEvent",!0);else return;r=_.Lz("yt.logging.transport.scrapedPayloadsForTesting");var Z=_.Lz("yt.logging.transport.payloadToScrape");e&&(e=_.Lz("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(e.payload)())&&r.push(e);e=_.Lz("yt.logging.transport.scrapeClientEvent");if(Z&&Z.length>=1)for(var O=0;O<Z.length;O++)if(G&&G.payload[Z[O]])if(e)r.push(G.payload);else{var M=void 0;r.push(((M=G)==null?void 0:M.payload)[Z[O]])}_.Eu("yt.logging.transport.scrapedPayloadsForTesting",
r)};
tvi=function(){return _.R("use_request_time_ms_header")||_.R("lr_use_request_time_ms_header")};
B2p=function(G,e){return _.R("transport_use_scheduler")===!1?_.jm(G,e):_.R("logging_avoid_blocking_during_navigation")||_.R("lr_logging_avoid_blocking_during_navigation")?_.IQ(_.A0,function(){if(_.KOA().currentState==="none")G();else{var r={};_.KOA().install((r.none={callback:G},r))}},e):_.IQ(_.A0,G,e)};
GhU=function(G){_.R("transport_use_scheduler")?_.A0.cancelJob(G):_.X_(G)};
b1S=function(G){var e,r,Z,O,M,T,E,b,w,q;return _.D(function(t){return t.nextAddress==1?(Z=(e=G)==null?void 0:(r=e.responseContext)==null?void 0:r.globalConfigGroup,O=_.a(Z,fpi),T=(M=Z)==null?void 0:M.hotHashData,E=_.a(Z,khS),w=(b=Z)==null?void 0:b.coldHashData,(q=_.v_().resolve(_.bq(pL)))?T?O?t.yield(H1y(q,T,O),2):t.yield(H1y(q,T),2):t.jumpTo(2):t.return()):w?E?t.yield(dkf(q,w,E),0):t.yield(dkf(q,w),0):t.jumpTo(0)})};
A_s=function(G,e){e=e===void 0?200:e;return G?e===300?reS:oOF:e===300?Z1p:sVA};
pQp=function(G){if(_.R("enable_web_tiered_gel")){G=QVN[G||""];var e,r,Z,O=_.v_().resolve(_.bq(pL))==null?void 0:(e=CL())==null?void 0:(r=e.loggingHotConfig)==null?void 0:(Z=r.eventLoggingConfig)==null?void 0:Z.payloadPolicies;if(O)for(e=0;e<O.length;e++)if(O[e].payloadNumber===G)return O[e]}};
IM4=function(G){G=Object.keys(G);G=_.h(G);for(var e=G.next();!e.done;e=G.next())if(e=e.value,QVN[e])return e};
C1A=function(G){switch(G){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}};
mq4=function(G){return G==="gelDebuggingEvent"};
TpS=function(G){return(G===void 0?0:G)&&_.R("vss_through_gel_video_stats")?"video_stats":"log_event"};
nL=function(G,e,r,Z){Z=Z===void 0?{}:Z;var O={},M=Math.round(Z.timestamp||(0,_.vG)());O.eventTimeMs=M<Number.MAX_SAFE_INTEGER?M:0;O[G]=e;G=_.bj();O.context={lastActivityMs:String(Z.timestamp||!isFinite(G)?-1:G)};Z.sequenceGroup&&!_.R("web_gel_sequence_info_killswitch")&&(G=O.context,e=Z.sequenceGroup,e={index:Ipy(e),groupKey:e},G.sequence=e,Z.endOfSequence&&delete uj[Z.sequenceGroup]);_.R("web_tag_automated_log_events")&&(O.context.automatedLogEventSource=Z.automatedLogEventSource);(Z.sendIsolatedPayload?
u0f:c_A)({endpoint:"log_event",payload:O,cttAuthInfo:Z.cttAuthInfo,dangerousLogToVisitorSession:Z.dangerousLogToVisitorSession},r)};
Ipy=function(G){uj[G]=G in uj?uj[G]+1:0;return uj[G]};
_.cg=function(G,e,r){r=r===void 0?{}:r;var Z=mf;_.PX("ytLoggingEventsDefaultDisabled",!1)&&mf===mf&&(Z=null);nL(G,e,Z,r)};
_.Yc=function(){if(_.R("web_fp_via_jspb")){var G=!0;G=G===void 0?!1:G;var e=p5_;p5_=[];if(e){e=_.h(e);for(var r=e.next();!r.done;r=e.next())r=r.value,G?nL(r.payloadName,r.payload,mf,r.options):_.cg(r.payloadName,r.payload,r.options)}F2A(void 0,!0);if(!_.R("web_fp_via_jspb_and_json"))return}F2A(void 0,!1)};
CZN=function(G,e){var r;if((r=e)==null?0:r.componentStack)return e;if(G=G.componentStack)e||(e={}),e.componentStack=G;return e};
ufa=function(){_.rR(_.xZ("ERRORS")||[],function(G){_.yx.apply(null,G)});
_.BX("ERRORS",[])};
_.AG=function(G){_.yx(G)};
_.FH=function(G){_.yx(G,"WARNING")};
nOa=function(G){G instanceof Error?_.yx(G):(G=_.PA(G)?JSON.stringify(G):String(G),G=new _.Cr(G),G.name="RejectedPromiseError",_.FH(G))};
mkN=function(G,e,r,Z,O,M){e=e===void 0?"Unknown file":e;r=r===void 0?0:r;var T=!1,E=piA("log_window_onerror_fraction");if(E&&Math.random()<E)T=!0;else{E=document.getElementsByTagName("script");for(var b=0,w=E.length;b<w;b++)if(E[b].src.indexOf("/debug-")>0){T=!0;break}}T&&(T=!1,O?T=!0:(typeof G==="string"?E=G:ErrorEvent&&G instanceof ErrorEvent?(T=!0,E=G.message,e=G.filename,r=G.lineno,Z=G.colno):(E="Unknown error",e="Unknown file",r=0),O=new _.Cr(E),O.name="UnhandledWindowError",O.message=E,O.fileName=
e,O.lineNumber=r,isNaN(Z)?delete O.columnNumber:O.columnNumber=Z),_.R("wiz_enable_component_stack_propagation_killswitch")||(M=CZN(O,M)),M&&_.JG(O,M),T?_.yx(O):_.FH(O))};
_.yx=function(G,e,r,Z,O,M,T,E){M=M===void 0?{}:M;M.name=r||_.xZ("INNERTUBE_CONTEXT_CLIENT_NAME",1);M.version=Z||_.xZ("INNERTUBE_CONTEXT_CLIENT_VERSION");r=M;e=e===void 0?"ERROR":e;T=T===void 0?!1:T;e=e===void 0?"ERROR":e;T=T===void 0?!1:T;if(G&&(G.hasOwnProperty("level")&&G.level&&(e=G.level),_.R("console_log_js_exceptions")&&(Z=[],Z.push("Name: "+G.name),Z.push("Message: "+G.message),G.hasOwnProperty("params")&&Z.push("Error Params: "+JSON.stringify(G.params)),G.hasOwnProperty("args")&&Z.push("Error args: "+
JSON.stringify(G.args)),Z.push("File name: "+G.fileName),Z.push("Stacktrace: "+G.stack),Z=Z.join("\n"),window.console.log(Z,G)),!(ceS>=5))){Z=[];O=_.h(Yb4);for(M=O.next();!M.done;M=O.next()){M=M.value;try{M()&&Z.push(M())}catch(I){}}Z=[].concat(_.mY(yei),_.mY(Z));var b=Aef(G);O=b.message||"Unknown Error";M=b.name||"UnknownError";var w=b.stack||G.stacktrace||"Not available";if(w.startsWith(M+": "+O)){var q=w.split("\n");q.shift();w=q.join("\n")}q=b.lineNumber||"Not available";b=b.fileName||"Not available";
var t=0;if(G.hasOwnProperty("args")&&G.args&&G.args.length)for(var g=0;g<G.args.length&&!(t=sl4(G.args[g],"params."+g,r,t),t>=500);g++);else if(G.hasOwnProperty("params")&&G.params){var l=G.params;if(typeof G.params==="object")for(g in l){if(l[g]){var X="params."+g,H=dR(l[g]);r[X]=H;t+=X.length+H.length;if(t>500)break}}else r.params=dR(l)}if(Z.length)for(g=0;g<Z.length&&!(t=sl4(Z[g],"params.context."+g,r,t),t>=500);g++);navigator.vendor&&!r.hasOwnProperty("vendor")&&(r["device.vendor"]=navigator.vendor);
g={message:O,name:M,lineNumber:q,fileName:b,stack:w,params:r,sampleWeight:1};r=Number(G.columnNumber);isNaN(r)||(g.lineNumber=g.lineNumber+":"+r);if(G.level==="IGNORED")G=0;else a:{G=FOf();r=_.h(G.messageWeights);for(Z=r.next();!Z.done;Z=r.next())if(Z=Z.value,g.message&&g.message.match(Z.messageRegExp)){G=Z.weight;break a}G=_.h(G.callbackWeights);for(r=G.next();!r.done;r=G.next())if(r=r.value,r.callback(g)){G=r.weight;break a}G=1}g.sampleWeight=G;G=_.h(Jeq);for(r=G.next();!r.done;r=G.next())if(r=
r.value,r.patternsForType[g.name])for(O=_.h(r.patternsForType[g.name]),Z=O.next();!Z.done;Z=O.next())if(M=Z.value,Z=g.message.match(M.regexp)){g.params["params.error.original"]=Z[0];O=M.groups;M={};for(q=0;q<O.length;q++)M[O[q]]=Z[q+1],g.params["params.error."+O[q]]=Z[q+1];g.message=r.messageFn(M);break}g.params||(g.params={});G=FOf();g.params["params.errorServiceSignature"]="msg="+G.messageWeights.length+"&cb="+G.callbackWeights.length;g.params["params.serviceWorker"]="false";_.O_.document&&_.O_.document.querySelectorAll&&
(g.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new Bg(Bpf,"sample")).constructor!==Bg&&(g.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(g);if(g.sampleWeight!==0&&!xkf.has(g.message)){if(T&&_.R("web_enable_error_204"))PZN(e===void 0?"ERROR":e,g);else{e=e===void 0?"ERROR":e;e==="ERROR"?(xc.publish("handleError",g),_.R("record_app_crashed_web")&&Uks===0&&g.sampleWeight===1&&(Uks++,T={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.R("report_client_error_with_app_crash_ks")||(T.systemHealth={crashData:{clientError:{logMessage:{message:g.message}}}}),_.cg("appCrashed",T)),zP$++):e==="WARNING"&&xc.publish("handleWarning",g);if(_.R("kevlar_gel_error_routing")){T=e;E=E===void 0?{}:E;b:{G=_.h(WOa);for(r=G.next();!r.done;r=G.next())if(x1(r.value.toLowerCase())){G=!0;break b}G=!1}if(G)E=void 0;else{r={stackTrace:g.stack};g.fileName&&(r.filename=g.fileName);G=g.lineNumber&&g.lineNumber.split?g.lineNumber.split(":"):[];G.length!==
0&&(G.length!==1||isNaN(Number(G[0]))?G.length!==2||isNaN(Number(G[0]))||isNaN(Number(G[1]))||(r.lineNumber=Number(G[0]),r.columnNumber=Number(G[1])):r.lineNumber=Number(G[0]));G={level:"ERROR_LEVEL_UNKNOWN",message:g.message,errorClassName:g.name,sampleWeight:g.sampleWeight};T==="ERROR"?G.level="ERROR_LEVEL_ERROR":T==="WARNING"&&(G.level="ERROR_LEVEL_WARNNING");r={isObfuscated:!0,browserStackInfo:r};E.pageUrl=window.location.href;E.kvPairs=[];_.xZ("FEXP_EXPERIMENTS")&&(E.experimentIds=_.xZ("FEXP_EXPERIMENTS"));
Z=_.xZ("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!piA("web_disable_gel_stp_ecatcher_killswitch")&&Z)for(O=_.h(Object.keys(Z)),M=O.next();!M.done;M=O.next())M=M.value,E.kvPairs.push({key:M,value:String(Z[M])});if(Z=g.params)for(O=_.h(Object.keys(Z)),M=O.next();!M.done;M=O.next())M=M.value,E.kvPairs.push({key:"client."+M,value:String(Z[M])});Z=_.xZ("SERVER_NAME");O=_.xZ("SERVER_VERSION");Z&&O&&(E.kvPairs.push({key:"server.name",value:Z}),E.kvPairs.push({key:"server.version",value:O}));E={errorMetadata:E,
stackTrace:r,logMessage:G}}E&&(_.cg("clientError",E),(T==="ERROR"||_.R("errors_flush_gel_always_killswitch"))&&_.Yc())}_.R("suppress_error_204_logging")||PZN(e,g)}try{xkf.add(g.message)}catch(I){}ceS++}}};
PZN=function(G,e){var r=e.params||{};G={urlParams:{a:"logerror",t:"jserror",type:e.name,msg:e.message.substr(0,250),line:e.lineNumber,level:G,"client.name":r.name},postParams:{url:_.xZ("PAGE_NAME",window.location.href),file:e.fileName},method:"POST"};r.version&&(G["client.version"]=r.version);if(G.postParams){e.stack&&(G.postParams.stack=e.stack);e=_.h(Object.keys(r));for(var Z=e.next();!Z.done;Z=e.next())Z=Z.value,G.postParams["client."+Z]=r[Z];if(r=_.xZ("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(e=
_.h(Object.keys(r)),Z=e.next();!Z.done;Z=e.next())Z=Z.value,G.postParams[Z]=r[Z];(r=_.xZ("LAVA_VERSION"))&&(G.postParams["lava.version"]=r);r=_.xZ("SERVER_NAME");e=_.xZ("SERVER_VERSION");r&&e&&(G.postParams["server.name"]=r,G.postParams["server.version"]=e)}_.fr(_.xZ("ECATCHER_REPORT_HOST","")+"/error_204",G)};
_.Npp=function(G,e){e=e===void 0?"ERROR":e;var r=r===void 0?{}:r;var Z=_.Lz("ytbin.polymer.shared.lib.tampering.info");Z&&(Z=Z())&&(r["params.tamperingInfo"]=Z.sort().join(","));_.yx(G,e,void 0,void 0,!0,r)};
_.JG=function(G){var e=_.Bw.apply(1,arguments);G.args||(G.args=[]);Array.isArray(G.args)&&G.args.push.apply(G.args,_.mY(e))};
LO$=function(G){G.level="IGNORED"};
G_s=function(G,e){yei.push(G);e();yei.pop()};
Us=function(G,e){for(var r in e)e.hasOwnProperty(r)&&(G=_.Pg(G,r,e[r]));return G};
_.eLN=function(G,e,r){r=r===void 0?!1:r;if(!G)return null;if(G.adInfoDialogEndpoint||G.backstageImageUploadEndpoint||G.confirmDialogEndpoint||G.clientActionEndpoint||G.createBackstagePostDialogEndpoint||G.createCommentReplyDialogEndpoint||G.flowEndpoint||G.guideBuilderEndpoint||G.liveChatDialogEndpoint||G.modalEndpoint||G.openPopupAction||G.shareEndpoint||G.shareEntityEndpoint||G.showLiveChatItemEndpoint||G.subscriptionManagerEndpoint||G.unlimitedCreateFamilyEndpoint||G.unlimitedFamilyFlowEndpoint||
G.updateCommentDialogEndpoint||G.updateCommentReplyDialogEndpoint||G.userFeedbackEndpoint||G.videoEditorEndpoint||G.ypcCancelSurveyEndpoint)return e=_.qt("polymer_report_client_url_requested_rate"),!r&&Math.random()<e&&_.FH(new _.Cr("urlForEndpoint used on client endpoint",G)),null;var Z=_.qt("polymer_report_missing_web_navigation_endpoint_rate");if(G.liveChatEndpoint||G.liveChatReplayEndpoint)Z=0;if(!G.commandMetadata&&!G.clickTrackingParams&&Math.random()<Z){var O={},M;for(M in G)O[M]="1";_.FH(new _.Cr("Missing navigation data",
O))}O="";if(G.commandMetadata&&G.commandMetadata.webCommandMetadata&&G.commandMetadata.webCommandMetadata.url)O=G.commandMetadata.webCommandMetadata.url;else if(G.searchEndpoint)Math.random()<Z&&_.FH(new _.Cr("Should not manually handle search",G)),O="/results?search_query="+encodeURIComponent(G.searchEndpoint.query).replace(/%20/g,"+"),G.searchEndpoint.params&&(O+="&sp="+G.searchEndpoint.params);else if(G.watchEndpoint)Math.random()<Z&&_.FH(new _.Cr("Should not manually handle watch",G)),O="/watch?v="+
G.watchEndpoint.videoId,G.watchEndpoint.playlistId&&(O+="&list="+G.watchEndpoint.playlistId),G.watchEndpoint.index&&(O+="&index="+G.watchEndpoint.index),G.watchEndpoint.startTimeSeconds&&(O+="&t="+G.watchEndpoint.startTimeSeconds);else if(G.browseEndpoint)Z=G.browseEndpoint.browseId,(M=G.browseEndpoint.canonicalBaseUrl)?O=M:Z&&(O=Z.substr(0,2),O=O==="FE"?Z==="FEwhat_to_watch"?"/":Z==="FEmy_videos"?"/my_videos":"/feed/"+Z.substr(2):O==="VL"?"/playlist?list="+Z.substr(2):"/channel/"+Z),O&&G.browseEndpoint.query&&
(O=Us(O+"/search",{query:G.browseEndpoint.query})),O&&G.browseEndpoint.params&&(O=Us(O,{params:G.browseEndpoint.params}));else{if(G.urlEndpoint)return G.urlEndpoint.url;G.signInEndpoint?(O="https://accounts.google.com/ServiceLogin",Z={},_.c2.extend(Z,e||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),e=Z):G.uploadEndpoint?O="//www.youtube.com/upload":G.liveChatEndpoint?(O=G.liveChatEndpoint,Z=_.c2.clone(O),_.PA(O.continuation)&&(M=Object.keys(O.continuation)[0],
Z.continuation=O.continuation[M].continuation),O=Us("/youtubei/v1/live_chat/get_live_chat",Z)):G.liveChatReplayEndpoint?(O=_.c2.clone(G.liveChatReplayEndpoint),O.currentPlayerState&&(_.c2.extend(O,O.currentPlayerState),delete O.currentPlayerState),O=Us("/youtubei/v1/live_chat/get_live_chat_replay",O)):G.liveChatItemContextMenuEndpoint?O=Us("/youtubei/v1/live_chat/get_item_context_menu",G.liveChatItemContextMenuEndpoint):G.liveChatPurchaseMessageEndpoint?O=Us("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
G.liveChatPurchaseMessageEndpoint):G.openSuperStickerBuyFlowCommand?O=Us("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",G.openSuperStickerBuyFlowCommand):G.videoEditEndpoint?O=Us("/edit",{video_id:G.videoEditEndpoint.videoId}):G.liveDashboardEndpoint?O=G.liveDashboardEndpoint.videoId?Us("/live_dashboard",{v:G.liveDashboardEndpoint.videoId}):"/live_dashboard":G.signalNavigationEndpoint&&G.signalNavigationEndpoint.signal&&G.signalNavigationEndpoint.signal==="WEBCAM"?O="/webcam":G.getPdgBuyFlowCommand&&
(O=Us(G.getPdgBuyFlowCommand.buyflowApiPath,{params:G.getPdgBuyFlowCommand.params}))}return O||r?Us(O,e||{}):(_.FH(new _.Cr("Error: Can't construct url for endpoint","keys:"+Object.keys(G).sort().join(","),G)),null)};
rIq=function(G){if(G){if(G.browseEndpoint)return!!G.browseEndpoint.nofollow;if(G.watchEndpoint)return!!G.watchEndpoint.nofollow;if(G.urlEndpoint)return!!G.urlEndpoint.nofollow}return!1};
_.OWf=function(G,e){var r=e+G,Z=ZWS.get(r);if(Z)return Z;G=e+"-"+G.replace(/([A-Z])/g,"-$1").toLowerCase();ZWS.set(r,G);return G};
MVN=function(G){var e=_.Ft(G,"action")||_.Ft(G,"command")||_.Ft(G,"endpoint");if(!e)return null;e=_.OWf(e,"yt");_.a(G,_.zr)&&(e+="-"+_.a(G,_.zr).signal.toLowerCase().replace(/_/g,"-"));return e};
Do4=function(G){try{var e=Object.keys(G)}catch(O){return[]}for(var r=0;r<e.length;r++){var Z=e[r];if(VVN.test(Z)||hLA.test(Z))return T8N(G[Z])}return[]};
T8N=function(G){return G.command?[G.command]:G.onExecutionAction?[G.onExecutionAction]:G.onResponseReceivedCommand?[G.onResponseReceivedCommand]:G.updateFlowCommand?[G.updateFlowCommand]:G.clientActions?G.clientActions:G.action?[G.action]:G.actions||G.commands||G.onResponseReceivedActions||G.onResponseReceivedCommands||G.onResponseReceivedEndpoints||[]};
iWS=function(G,e){e=e===void 0?!1:e;var r=_.v_().resolve(_.bq(LL));r||(r=new Eb4,_.v_().addProvider({provide:LL,useValue:r}));return r&&G&&!_.c2.isEmpty(G)?r.getUrl(G,e):""};
bWA=function(G,e,r){r=r===void 0?"":r;if(e){G.data=e;var Z=iWS(e);Z?(Pw(G,Z),rIq(e)||!E5(Z)?G.rel="nofollow":G.removeAttribute("rel"),_.a(e,_.G2)&&_.a(e,_.G2).target==="TARGET_NEW_WINDOW"?G.target="_blank":r?G.target=r:G.removeAttribute("target")):(G.removeAttribute("href"),G.removeAttribute("rel"),G.removeAttribute("target"))}};
_.Vk=function(G,e){var r=hB;if(no())vbi(G,function(){var M=_.Bw.apply(0,arguments);BO(r,function(){e.apply(null,_.mY(M))})});
else{var Z=_.e8.getInstance(),O=IzS(e);Xii(function(){O.value=e});
_.yY(function(){var M={},T=_.re(Z,(M[G]=function(){var E=_.Bw.apply(0,arguments);BO(r,function(){O.value.apply(O,_.mY(E))})},M));
return function(){var E={};_.Mx(Z,(E[G]="",E),T)}})}};
_.hT=function(G,e){return we$(G,!1,e)};
_.T2=function(G,e){return we$(G,!0,e)};
we$=function(G,e,r){return no()?$of(G,e,r):S2S(G,e,r)};
S2S=function(G,e,r){return AH(function(){return $of(G,e,r)})};
$of=function(G,e,r){var Z=lzS(function(O){Z.value=O;var M=function(){var T=$8(null);try{return r==null?void 0:r(O)}finally{$8(T)}}();
return function(){M==null||M()}});
Z.__expectedTagName=G;Z.__optional=e;Z.isIdom=!no();return Z};
q2y=function(G){var e=hB,r=Co;return{getFn:function(){return function(Z){if(!e.isDisposed){var O=function(){return G(Z)};
cO(function(){return _.ah(O)},r)!==!0&&Z.stopPropagation()}}}}};
tVa=function(G){if(typeof G.children==="function")return G.children(),null;G=_.h(G.children);for(var e=G.next();!e.done;e=G.next())e=e.value,e();return null};
gb$=function(G){var e;return((e=G.prototype)==null?void 0:e.render)===void 0};
lV_=function(G){return G.items.map(G.children)};
jHi=function(G,e,r){r=r===void 0?!1:r;cO(function(){return RLf(G,e,r)})};
RLf=function(G,e,r){var Z=null;QD++;r=(r===void 0?0:r)?aVa:Xep;try{Z=r(G,function(){Dm(e)}),po(!1)}catch(O){throw po(!0),O;
}return Z===null?G:Z};
Dm=function(G){if(G!==void 0&&G!==null)if(G instanceof kZ)for(var e=e1;rx()!=null&&MW_ in rx()&&e.contains(rx());)M0();else if(Array.isArray(G))for(e=_.h(G),G=e.next();!G.done;G=e.next())Dm(G.value);else if(G instanceof dz||G instanceof i7||"function"==typeof _.b6&&G instanceof _.b6)OtU(G.toString());else if(_.q0(G)){if(rx()!==G){var r,Z;e=(Z=(r=Co)==null?void 0:r.name)!=null?Z:"unknown";throw Error("hc`"+G.tagName+"`"+e);}M0()}else if(G!=null&&G.contentKind===Ro||G instanceof Uk||guy(G))for(e=RZN(G),
e=Array.from(e.childNodes),e=_.h(e),G=e.next();!G.done;G=e.next())e1.appendChild(G.value),M0();else if(uz(G)&&(G=G.toString()),r=typeof G,r==="boolean"||r==="number"||r==="string")OtU(G);else if(typeof G==="function"){e=e1;var O=rx();O&&(O._isSignalTextNode||O._isSafeOrSanitizedHtmlNode)||UNN(e,O,G);M0()}else if(G.type===lV_)Dm(G.type(Object.assign({},G.props,{children:G.children[0]})));else{oo.beforeVisit(G);if(typeof G.type==="string"){a:{G.__open||zsq(G.type,G.props.idomKey);O=e1;for(e in G.props)if(G.props[e]!==
KvF){var M=G.props[e];r=Tb;r.push(e);r.push(M)}e=bW.attributes;e=e===void 0?EH:e;M=e1;r=Gb(M);ZtA(M,r,e);PY$(O,G.props,!0);if((G.props.skip||G.props.skipchildren)&&e1.hasChildNodes())O9=e1.lastChild;else{if(G.type==="style"&&dNN(G.children)===null){O9=e1.lastChild;e=void 0;break a}Dm(G.children)}WuA();G.__open&&(G.__open=!1);btS(O,G.props);e=O}return e}if(G.type===_.$Z)Dm(G.children);else if(!fVa(G)){e=G;try{k_i(e)}catch(T){G=T,(M=bW.handleError)==null||M.call.apply(M,[bW].concat(_.mY(x8(G,(O=e.type)==
null?void 0:O.TAG_NAME))))}e.__open&&(WuA(),e.__open=!1)}}};
HWf=function(G,e){var r;gb$(G)?r=new QY(e,G):r=new G(e);r.__type=G;r.__updateContext={nextState:r.state,isForced:!1};return r};
k_i=function(G){var e=G.type,r=e.TAG_NAME;if(e===tVa)G.props.children=G.children,e(G.props);else{G.children.length>0&&(G.props.children=G.children);var Z;(Z=G.props).idomKey||(Z.idomKey=e);if(r){var O=zsq(r,G.props.idomKey);G.__open=!0;var M=O.__instance}M||(M=HWf(e,G.props),M.props=null,O&&(O.__instance=M,M.el=O));var T;r=((T=M.__updateContext)!=null?T:{nextState:M.state,isForced:!1}).nextState;M.__updateContext=void 0;e.getDerivedStateFromProps&&(r=e.getDerivedStateFromProps(G.props,r));M.props=
G.props;M.state=r;T=function(){var E=M;oo.beforeRender(E);var b=E.render(E.props);oo.afterRender(E,b);b?(E.props.idomKey&&(b.props.idomKey=E.props.idomKey),E=b):E=void 0;if(b=E)if(b.__open=G.__open,E=Dm(b),G.__open=b.__open,!e.TAG_NAME)if(E)e.TAG_NAME=E.tagName.toLowerCase(),E.__instance=M,M.el=E;else{var w;if((w=M.hooks)==null?0:w.length){var q;(q=bW.handleError)==null||q.call.apply(q,[bW].concat(_.mY(x8(Error("od")))))}}M.didPatch();oo.didPatch(M)};
(r=M.functionComponent)?vsp(r,T,M.props.debugInstance):T()}};
fVa=function(G){var e=G.type;if(!gb$(e)||e===tVa||e.componentType===uW)return!1;G.props.children=G.children.length>1?G.children:G.children[0];var r,Z=(r=G.props.idomKey)!=null?r:G.type,O;if(rx()&&((O=rx()[Xt])==null?void 0:O.key)===Z){var M=rx(),T=M[Xt];if(!T)throw Error("gc`"+M.tagName);var E;(E=T.updateSignalsFromIdomProps)==null||E.call(T,G.props);doS(T);return!0}if(obF.has(e.name))throw E=e.name,e=(T=(M=Co)==null?void 0:M.name)!=null?T:"unknown",Error("fc`"+E+"`"+e);LM_(G.type,G.props,G.children);
G.props.renderedFromIdom=!0;(E=vsp(G.type,function(){return AP4(G.type,G.props)},G.props.debugInstance))&&sHN(E);
return!0};
QHN=function(G){for(var e=0;e<fz(G).length;e++)M0()};
doS=function(G){var e=IV_();if(e)QHN(e);else for(var r=0;r<G.numNodes;r++)(e=IV_())?QHN(e):M0()};
IV_=function(){var G;return(G=rx()[Xt])==null?void 0:G.sourceDynamicRange};
sHN=function(G){G=$Np(G);G=Array.isArray(G)?G:[G];G=_.h(G);for(var e=G.next();!e.done;e=G.next())e1.insertBefore(e.value,rx()),M0()};
pe$=function(){var G=JPa(),e=AH(function(){return{value:0}});
return[e.value,function(r){if(s9!==null){var Z;(Z=bW.handleError)==null||Z.call.apply(Z,[bW].concat(_.mY(x8(Error("pd")))))}e.value=typeof r==="function"?r(e.value):r;G.__updateContext={nextState:G.state,isForced:!0};r=_.Ty(G.effectContext);Z=S1(!1);try{if(G.el){var O,M={},T=(M.props=G.props,M.type=G.__type,M.children=(O=G.props.children)!=null?O:[],M[wx]=!0,M);try{jHi(G.el,T,!0)}catch(w){var E,b;(b=bW.handleError)==null||b.call.apply(b,[bW].concat(_.mY(x8(w,(E=G.__type)==null?void 0:E.TAG_NAME))))}}}finally{S1(Z),
_.Ty(r)}}]};
_.iC=function(G,e){var r=hB,Z=function(O){BO(r,function(){e(O)})};
window.addEventListener(G,Z,void 0);_.yD(function(){window.removeEventListener(G,Z,void 0)})};
_.vJ=function(G){var e=hB;return function(r){var Z,O=(Z=G.observer)!=null?Z:_.v_().resolve(bC);Z=Ctp(r);var M=[];G.showOption&&M.push(O.observe(r,function(){BO(e,function(){G.visibilityCallback(!0,r)})},G.showOption));
G.hideOption&&M.push(O.observe(r,function(){BO(e,function(){G.visibilityCallback(!1,r)})},G.hideOption));
G.prescanOption&&G.prescanCallback&&M.push(O.observe(r,function(){BO(e,function(){G.prescanCallback()})},G.prescanOption));
var T;Z.visibilityMonitorKeys=((T=Z.visibilityMonitorKeys)!=null?T:[]).concat(M)}};
Ctp=function(G){var e;return(e=G.polymerController)!=null?e:G};
cIp=function(G,e){var r=uKi;return _.v(_.$Z,null,SuF(bW.enableLazyTsx,function(){return _.v(nbF,{id:r,value:G,children:e})},function(){var Z=moy(r,G);
iW(Z);Z=_.Ty(Z);try{return e()}finally{_.Ty(Z)}}))};
nbF=function(G){var e=G.children;G=moy(G.id,G.value);iW(G);G=_.Ty(G);try{return _.v(_.$Z,null,HX(e()))}finally{_.Ty(G)}};
moy=function(G,e){return Object.assign(Object.create(Y2S),{id:G,contextValue:e})};
yIs=function(G){var e,r=hB;_.JB(function(){var Z=_.Ty(r),O=S1(!e);try{if(e)jHi(e,G.children(),!0);else if(e=HX(G.children()),!(e instanceof Element))throw Error("qd");}finally{S1(O),_.Ty(Z)}},"f");
return e};
_.AIa=function(G,e){var r;e=AB(function(){var Z=S1(!0);QD++;try{r=fz(G()),po(!1)}catch(O){throw po(!0),O;}finally{S1(Z)}},e===void 0?!1:e);
return[r,e]};
JIS=function(G){var e=new FvF;e.abort(G);return e.signal};
B8U=function(){if(this.aborted){var G;throw(G=this.reason)!=null?G:new DOMException("signal is aborted without reason","AbortError");}};
UoU=function(G){var e=new FvF;G=_.h(G);for(var r=G.next();!r.done;r=G.next())if(r=r.value,r.aborted){e.abort(r.reason);break}else xoS.set(e.signal,e),PtS.add(r,e.signal);return e.signal};
zLA=function(){for(var G=_.h(PtS.get(this)),e=G.next();!e.done;e=G.next())xoS.get(e.value).abort(this.reason)};
Wvs=function(G){var e=new FvF;setTimeout(function(){e.abort(new DOMException("signal timed out","TimeoutError"))},G);
return e.signal};
N8A=function(){var G,e;return{promise:new Promise(function(r,Z){G=r;e=Z}),
resolve:G,reject:e}};
G4S=function(G){var e=N8A(),r=e.promise;Lva.set(G,{promise:r,resolve:e.resolve,reject:e.reject});we||(we=[],queueMicrotask(function(){var Z=[].concat(_.mY(we));we=null;var O=YW().loadMultiple(Z);Z=_.h(Z);for(var M=Z.next();!M.done;M=Z.next())M=M.value,O[M].then(Lva.get(M).resolve,Lva.get(M).reject)}));
we.push(G);return r};
rZN=function(G){G=G.buf.charCodeAt(G.pos++);return edS[G]};
$s=function(G){var e=0,r=0;do{var Z=rZN(G);e|=(Z&31)<<r;r+=5}while(Z&32);return e<0?e+4294967296:e};
OxS=function(G,e,r,Z){var O=!0;O=O===void 0?!1:O;e=e===void 0?!1:e;Z=Z===void 0?{}:Z;var M=Z.cssRowKey||"",T=Z.combinedSignature||"";!M&&window&&window._F_cssRowKey&&(M=window._F_cssRowKey,!T&&window._F_combinedSignature&&(T=window._F_combinedSignature));if(M&&typeof window._F_installCss!=="function")throw Error("Ad");var E=Z.loaderClass||_.S8;G=uF4(G===void 0?"base-js":G);e=new E(R1A(ma$("",G)),M,T,O,e);O=Z.useCors||G&&G.hasAttribute("crossorigin");G=Z.corsMode||G&&G.getAttribute("crossorigin");
O&&(e.useCors_=O);G&&(e.corsMode_=G);Z.urlMaxLength&&(e.urlMaxLength=Z.urlMaxLength);r&&(e.insertPos=r);Z.fetchPriority&&(e.fetchPriority=Z.fetchPriority);var b=YW();b.JSC$10063_loader_=e;b.setBatchModeEnabled(!0);_.Zxp=Z.batchingStrategy==="BATCH"?G4S:function(w){return Promise.resolve(b.load(w))}};
hdq=function(G,e,r){MMs(G,e);G[e][VMF].unshift(r)};
MMs=function(G,e){if(!G[e]||!G[e][VMF]){var r=G[e],Z=r?[r]:[];G[e]=function(){for(var O=_.h(Z),M=O.next();!M.done;M=O.next())M.value.apply(this,arguments)};
G[e][VMF]=Z}};
T7S=function(G){if(!G)return[];var e=[];G=_.h(G);for(var r=G.next();!r.done;r=G.next())r=r.value,Array.isArray(r)?e.push.apply(e,_.mY(T7S(r))):e.push(r);return e};
_.tT=function(G,e){if(G&&D$s.test(G)||G==="//")return G;if(EiA===void 0){EiA=!1;try{var r=new URL("b","http://a");r.pathname="c%20d";EiA=r.href==="http://a/c%20d"}catch(Z){}}e||(e=document.baseURI||window.location.href);if(EiA)try{return(new URL(G,e)).href}catch(Z){return G}qx||(qx=document.implementation.createHTMLDocument("temp"),qx.base=qx.createElement("base"),qx.head.appendChild(qx.base),qx.anchor=qx.createElement("a"),qx.body.appendChild(qx.anchor));qx.base.href=e;qx.anchor.href=G;return qx.anchor.href||
G};
bxS=function(G,e){return G.replace(ixs,function(r,Z,O,M){return Z+"'"+_.tT(O.replace(/["']/g,""),e)+"'"+M})};
vis=function(G){return G.substring(0,G.lastIndexOf("/")+1)};
Sza=function(){w4s=!1;for(var G=ge.length,e=0;e<G;e++){var r=ge[e];if(r)try{r()}catch(Z){setTimeout(function(){throw Z;})}}ge.splice(0,G);
$$4+=G};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(G){console.log("["+G.is+"]: registered")};
tMN=function(G){qzN.push(G)};
lC=function(G){return gif[G]||(gif[G]=G.indexOf("-")<0?G:G.replace(l9U,function(e){return e[1].toUpperCase()}))};
R5=function(G){return gif[G]||(gif[G]=G.replace(RdS,"-$1").toLowerCase())};
jNp=function(G,e){var r=e.parentInfo&&jNp(G,e.parentInfo);if(r)for(G=r.firstChild,r=0;G;G=G.nextSibling){if(e.parentIndex===r++)return G}else return G};
a9s=function(G,e){G=G._methodHost||G;return function(r){if(G[e])G[e](r,r.detail);else console.warn("listener method `"+e+"` not defined")}};
j8=function(G){return G.indexOf(".")>=0};
a5=function(G){var e=G.indexOf(".");return e===-1?G:G.slice(0,e)};
X4A=function(G,e){return G.indexOf(e+".")===0};
X1=function(G,e){return e.indexOf(G+".")===0};
KM=function(G,e,r){return e+r.slice(G.length)};
KLA=function(G,e){return G===e||X4A(G,e)||X1(G,e)};
fM=function(G){if(Array.isArray(G)){for(var e=[],r=0;r<G.length;r++)for(var Z=G[r].toString().split("."),O=0;O<Z.length;O++)e.push(Z[O]);return e.join(".")}return G};
f9i=function(G){return Array.isArray(G)?fM(G).split("."):G.toString().split(".")};
ks=function(G,e,r){e=f9i(e);for(var Z=0;Z<e.length;Z++){if(!G)return;G=G[e[Z]]}r&&(r.path=e.join("."));return G};
k44=function(G,e,r){var Z=f9i(e),O=Z[Z.length-1];if(Z.length>1){for(e=0;e<Z.length-1;e++)if(G=G[Z[e]],!G)return;G[O]=r}else G[e]=r;return Z.join(".")};
Hxs=function(G,e,r){var Z=G[e];if(!Z)Z=G[e]={};else if(!G.hasOwnProperty(e)&&(Z=G[e]=Object.create(G[e]),r))for(var O in Z)for(G=Z[O],e=Z[O]=Array(G.length),r=0;r<G.length;r++)e[r]=G[r];return Z};
de=function(G,e,r,Z,O,M){if(e){var T=!1,E=HJ++,b;for(b in r){var w=O?a5(b):b;if(w=e[w])for(var q=0,t=w.length,g=void 0;q<t&&(g=w[q]);q++)g.info&&g.info.lastRun===E||O&&!d$S(b,g.trigger)||(g.info&&(g.info.lastRun=E),g.fn(G,b,r,Z,g.info,O,M),T=!0)}return T}return!1};
d$S=function(G,e){if(e){var r=e.name;return r==G||!(!e.structured||!X4A(r,G))||!(!e.wildcard||!X1(r,G))}return!0};
oiF=function(G,e,r,Z,O){e=typeof O.method==="string"?G[O.method]:O.method;r=O.property;e?e.call(G,G.__data[r],Z[r]):O.dynamicFn||console.warn("observer method `"+O.method+"` not defined")};
sNA=function(G,e,r,Z){r={value:r,queueProperty:!0};Z&&(r.path=Z);(0,_.o5)(G).dispatchEvent(new CustomEvent(e,{detail:r}))};
QNy=function(G,e,r,Z,O,M){M=(Z=(M?a5(e):e)!=e?e:null)?ks(G,Z):G.__data[e];Z&&M===void 0&&(M=r[e]);sNA(G,O.eventName,M,Z)};
I94=function(G,e,r,Z,O){r=G.__data[e];sH&&(r=sH(r,O.attrName,"attribute",G));G._propertyToAttribute(e,O.attrName,r)};
CnU=function(G){var e=G.constructor.__orderedComputedDeps;if(!e){e=new Map;for(var r=G.__computeEffects,Z=p4i(G),O=Z.counts,M=Z.ready,T=Z.total;Z=M.shift();)e.set(Z,e.size),(Z=r[Z])&&Z.forEach(function(E){E=E.info.methodInfo;--T;--O[E]===0&&M.push(E)});
T!==0&&console.warn("Computed graph for "+G.localName+" incomplete; circular?");G.constructor.__orderedComputedDeps=e}return e};
p4i=function(G){var e=G.__computeInfo,r={};G=G.__computeEffects;var Z=[],O=0,M;for(M in e){var T=e[M];O+=r[M]=T.args.filter(function(b){return!b.literal}).length+(T.dynamicFn?1:0)}for(var E in G)e[E]||Z.push(E);
return{counts:r,ready:Z,total:O}};
nif=function(G,e,r,Z,O){e=uTi(G,e,r,Z,O);if(e===Qk)return!1;O=O.methodInfo;if(G.__dataHasAccessor&&G.__dataHasAccessor[O])return G._setPendingProperty(O,e,!0);G[O]=e;return!1};
YzU=function(G,e,r,Z,O,M,T){r.bindings=r.bindings||[];Z={kind:Z,target:O,parts:M,literal:T,isCompound:M.length!==1};r.bindings.push(Z);Z.target&&Z.kind!="attribute"&&Z.kind!="text"&&!Z.isCompound&&Z.parts[0].mode==="{"&&(r=Z.parts[0],M=r.negate,Z.listenerEvent=r.event||R5(O)+"-changed",Z.listenerNegate=M);O=e.nodeInfoList.length;for(r=0;r<Z.parts.length;r++){var E=Z.parts[r];E.compoundIndex=r;M=G;T=e;var b=Z,w=E,q=O;if(!w.literal)if(b.kind==="attribute"&&b.target[0]==="-")console.warn("Cannot set attribute "+
b.target+' because "-" is not a valid attribute starting character');else for(E=w.dependencies,b={index:q,binding:b,part:w,evaluator:M},w=0;w<E.length;w++)q=E[w],typeof q=="string"&&(q=m$S(q),q.wildcard=!0),M._addTemplatePropertyEffect(T,q.rootProperty,{fn:cZS,info:b,trigger:q})}};
cZS=function(G,e,r,Z,O,M,T){T=T[O.index];var E=O.binding,b=O.part;M&&b.source&&e.length>b.source.length&&E.kind=="property"&&!E.isCompound&&T.__isPropertyEffectsClient&&T.__dataHasAccessor&&T.__dataHasAccessor[E.target]?(r=r[e],e=KM(b.source,E.target,e),T._setPendingPropertyOrPath(e,r,!1,!0)&&G._enqueueClient(T)):(e=O.evaluator._evaluateBinding(G,b,e,r,Z,M),e!==Qk&&(E.isCompound&&(r=T.__dataCompoundStorage[E.target],r[b.compoundIndex]=e,e=r.join("")),E.kind==="attribute"||E.target!=="textContent"&&
(E.target!=="value"||T.localName!=="input"&&T.localName!=="textarea")||(e=e==void 0?"":e),b=e,sH&&(b=sH(b,E.target,E.kind,T)),E.kind=="attribute"?G._valueToNodeAttribute(T,b,E.target):(E=E.target,T.__isPropertyEffectsClient&&T.__dataHasAccessor&&T.__dataHasAccessor[E]?T.__readOnly&&T.__readOnly[E]||T._setPendingProperty(E,b)&&G._enqueueClient(T):G._setUnmanagedPropertyToNode(T,E,b))))};
yZN=function(G,e,r){if(r.listenerEvent){var Z=r.parts[0];G.addEventListener(r.listenerEvent,function(O){var M=r.target,T=Z.source,E=Z.negate,b=O.detail,w=b&&b.path;w?(T=KM(M,T,w),O=b&&b.value):O=O.currentTarget[M];e.__readOnly&&e.__readOnly[T]||!e._setPendingPropertyOrPath(T,E?!O:O,!0,!!w)||b&&b.queueProperty||e._invalidateProperties()})}};
AZA=function(G,e,r,Z,O,M){M=e.static||M&&(typeof M!=="object"||M[e.methodName]);O={methodName:e.methodName,args:e.args,methodInfo:O,dynamicFn:M};for(var T=0,E=void 0;T<e.args.length&&(E=e.args[T]);T++)E.literal||G._addPropertyEffect(E.rootProperty,r,{fn:Z,info:O,trigger:E});M&&G._addPropertyEffect(e.methodName,r,{fn:Z,info:O});return O};
uTi=function(G,e,r,Z,O){Z=G._methodHost||G;var M=Z[O.methodName];if(M)return G=G._marshalArgs(O.args,e,r),G===Qk?Qk:M.apply(Z,G);O.dynamicFn||console.warn("method `"+O.methodName+"` not defined")};
FL$=function(G){for(var e="",r=0;r<G.length;r++)e+=G[r].literal||"";return e};
x$A=function(G){if(G=G.match(/([^\s]+?)\(([\s\S]*)\)/)){var e={methodName:G[1],static:!0,args:JZs};return G[2].trim()?B7S(G[2].replace(/\\,/g,"&comma;").split(","),e):e}return null};
B7S=function(G,e){e.args=G.map(function(r){r=m$S(r);r.literal||(e.static=!1);return r},this);
return e};
m$S=function(G){G=G.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var e={name:G,value:"",literal:!1},r=G[0];r==="-"&&(r=G[1]);r>="0"&&r<="9"&&(r="#");switch(r){case "'":case '"':e.value=G.slice(1,-1);e.literal=!0;break;case "#":e.value=Number(G),e.literal=!0}e.literal||(e.rootProperty=a5(G),e.structured=j8(G),e.structured&&(e.wildcard=G.slice(-2)==".*",e.wildcard&&(e.name=G.slice(0,-2))));return e};
Pnq=function(G,e,r){G=ks(G,r);G===void 0&&(G=e[r]);return G};
U$$=function(G,e,r,Z){Z={indexSplices:Z};I5&&!G._overrideLegacyUndefined&&(e.splices=Z);G.notifyPath(r+".splices",Z);G.notifyPath(r+".length",e.length);I5&&!G._overrideLegacyUndefined&&(Z.indexSplices=[])};
pM=function(G,e,r,Z,O,M){U$$(G,e,r,[{index:Z,addedCount:O,removed:M,object:e,type:"splice"}])};
zd$=function(G){G=bxS((G.body?G.body:G).textContent,G.baseURI);var e=document.createElement("style");e.textContent=G;return e};
N7S=function(G){G=G.trim().split(/\s+/);for(var e=[],r=0;r<G.length;r++)e.push.apply(e,_.mY(WLs(G[r])));return e};
WLs=function(G){var e=CM.import(G);if(!e)return console.warn("Could not find style data in module named",G),[];if(e._styles===void 0){G=[];G.push.apply(G,_.mY(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(e)));var r=e.querySelector("template");r&&G.push.apply(G,_.mY(LL4(r,e.assetpath)));e._styles=G}return e._styles};
LL4=function(G,e){if(!G._styles){for(var r=[],Z=G.content.querySelectorAll("style"),O=0;O<Z.length;O++){var M=Z[O],T=M.getAttribute("include");T&&r.push.apply(r,_.mY(N7S(T).filter(function(E,b,w){return w.indexOf(E)===b})));
e&&(M.textContent=bxS(M.textContent,e));r.push(M)}G._styles=r}return G._styles};
Gxf=function(G){return(G=CM.import(G))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(G):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(G){var e=[];G=G.querySelectorAll("link[rel=import][type~=css]");for(var r=0;r<G.length;r++){var Z=G[r];if(Z.import){var O=Z.import;if((Z=Z.hasAttribute("shady-unscoped"))&&!O._unscopedStyle){var M=zd$(O);M.setAttribute("shady-unscoped","");O._unscopedStyle=M}else O._style||(O._style=zd$(O));e.push(Z?O._unscopedStyle:O._style)}}return e};
rV_=function(G){G=G.trim().split(/\s+/);for(var e="",r=0;r<G.length;r++)e+=epA(G[r]);return e};
epA=function(G){var e=CM.import(G);if(e&&e._cssText===void 0){var r=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(e),Z=e.querySelector("template");Z&&(r+=Zpf(Z,e.assetpath));e._cssText=r||null}e||console.warn("Could not find style data in module named",G);return e&&e._cssText||""};
Zpf=function(G,e){var r="";G=LL4(G,e);for(e=0;e<G.length;e++){var Z=G[e];Z.parentNode&&Z.parentNode.removeChild(Z);r+=Z.textContent}return r};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(G){var e="";G=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(G);for(var r=0;r<G.length;r++)e+=G[r].textContent;return e};
uC=function(G,e){return{index:G,removed:[],addedCount:e}};
M0q=function(G,e,r,Z){var O=0,M=0,T=0,E=0,b=Math.min(e-O,Z-M);if(O==0&&M==0)a:{for(T=0;T<b;T++)if(G[T]!==r[T])break a;T=b}if(e==G.length&&Z==r.length){E=G.length;for(var w=r.length,q=0;q<b-T&&OpU(G[--E],r[--w]);)q++;E=q}O+=T;M+=T;e-=E;Z-=E;if(e-O==0&&Z-M==0)return[];if(O==e){for(e=uC(O,0);M<Z;)e.removed.push(r[M++]);return[e]}if(M==Z)return[uC(O,e-O)];b=O;T=M;Z=Z-T+1;E=e-b+1;e=Array(Z);for(w=0;w<Z;w++)e[w]=Array(E),e[w][0]=w;for(w=0;w<E;w++)e[0][w]=w;for(w=1;w<Z;w++)for(q=1;q<E;q++)if(G[b+q-1]===
r[T+w-1])e[w][q]=e[w-1][q-1];else{var t=e[w-1][q]+1,g=e[w][q-1]+1;e[w][q]=t<g?t:g}b=e.length-1;T=e[0].length-1;Z=e[b][T];for(G=[];b>0||T>0;)b==0?(G.push(2),T--):T==0?(G.push(3),b--):(E=e[b-1][T-1],w=e[b-1][T],q=e[b][T-1],t=w<q?w<E?w:E:q<E?q:E,t==E?(E==Z?G.push(0):(G.push(1),Z=E),b--,T--):t==w?(G.push(3),b--,Z=w):(G.push(2),T--,Z=q));G.reverse();e=void 0;b=[];for(T=0;T<G.length;T++)switch(G[T]){case 0:e&&(b.push(e),e=void 0);O++;M++;break;case 1:e||(e=uC(O,0));e.addedCount++;O++;e.removed.push(r[M]);
M++;break;case 2:e||(e=uC(O,0));e.addedCount++;O++;break;case 3:e||(e=uC(O,0)),e.removed.push(r[M]),M++}e&&b.push(e);return b};
V0$=function(G,e){return M0q(G,G.length,e,e.length)};
OpU=function(G,e){return G===e};
TBF=function(G){if(G instanceof hpS)return G.value;throw Error("Id`"+G);};
DSU=function(G,e){for(var r in e)r===null?G.style.removeProperty(r):G.style.setProperty(r,e[r])};
EUS=function(G,e){return(G=window.getComputedStyle(G).getPropertyValue(e))?G.trim():""};
wzs=function(G){requestAnimationFrame(function(){ips?ips(G):(bpa||(bpa=new Promise(function(e){vUq=e}),document.readyState==="complete"?vUq():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&vUq()})),bpa.then(function(){G&&G()}))})};
qeU=function(G){$Sy=G&&G.shimcssproperties?!1:Seq||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
jr4=function(G){if(!(t0S.indexOf(G)>-1)&&G!=="touchend"&&gUs&&lk4&&Rp$)return{passive:!0}};
fk_=function(G){for(var e=aks?["click"]:t0S,r=0,Z;r<e.length;r++)Z=e[r],G?(XzN.length=0,document.addEventListener(Z,K$p,!0)):document.removeEventListener(Z,K$p,!0)};
nM=function(G){var e=G.type;return t0S.indexOf(e)>-1?e==="mousemove"?(e=G.buttons===void 0?1:G.buttons,G instanceof window.MouseEvent&&!kxN&&(e=Hpi[G.which]||0),!!(e&1)):(G.button===void 0?0:G.button)===0:!1};
dSf=function(G){if(G.type==="click"){if(G.detail===0)return!0;var e=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;e=e.getBoundingClientRect();var r=G.pageX;G=G.pageY;return!(r>=e.left&&r<=e.right&&G>=e.top&&G<=e.bottom)}return!1};
oUp=function(G,e,r){G.movefn=e;G.upfn=r;document.addEventListener("mousemove",e);document.addEventListener("mouseup",r)};
mu=function(G){document.removeEventListener("mousemove",G.movefn);document.removeEventListener("mouseup",G.upfn);G.movefn=null;G.upfn=null};
sr4=function(G,e){for(var r=document.elementFromPoint(G,e),Z=r;Z&&Z.shadowRoot&&!window.ShadyDOM;){var O=Z;Z=Z.shadowRoot.elementFromPoint(G,e);if(O===Z)break;Z&&(r=Z)}return r};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G){var e=QrN(G);return e.length>0?e[0]:G.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G){var e=G.type,r=G.currentTarget.__polymerGestures;if(r&&(r=r[e])){if(!G.__polymerGesturesHandled&&(G.__polymerGesturesHandled={},e.slice(0,5)==="touch")){var Z=G.changedTouches[0];e==="touchstart"&&G.touches.length===1&&(Ik4=Z.identifier);if(Ik4!==Z.identifier)return;gUs||(e==="touchstart"||e==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G)}Z=
G.__polymerGesturesHandled;if(!Z.skip){for(var O=0,M;O<Ys.length;O++)M=Ys[O],r[M.name]&&!Z[M.name]&&M.flow&&M.flow.start.indexOf(G.type)>-1&&M.reset&&M.reset();for(O=0;O<Ys.length;O++)M=Ys[O],r[M.name]&&!Z[M.name]&&(Z[M.name]=!0,M[e](G))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G){var e=G.changedTouches[0],r=G.type;if(r==="touchstart")pzN=e.clientX,CMF=e.clientY,ubi=!1;else if(r==="touchmove"&&!ubi){ubi=!0;r="auto";for(var Z=QrN(G),O=0,M;O<Z.length;O++)if(M=Z[O],M.__polymerGesturesTouchAction){r=M.__polymerGesturesTouchAction;break}Z=!1;O=Math.abs(pzN-e.clientX);e=Math.abs(CMF-e.clientY);G.cancelable&&(r==="none"?Z=!0:r==="pan-x"?Z=e>O:r==="pan-y"&&(Z=O>e));Z?G.preventDefault():
yk("track")}};
F1=function(G,e,r){return AT[e]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G,e,r),!0):!1};
JT=function(G,e,r){return AT[e]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G,e,r),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G,e,r){var Z=AT[e],O=Z.deps,M=Z.name,T=G.__polymerGestures;T||(G.__polymerGestures=T={});for(var E=0,b,w;E<O.length;E++)b=O[E],aks&&t0S.indexOf(b)>-1&&b!=="click"||((w=T[b])||(T[b]=w={_count:0}),w._count===0&&G.addEventListener(b,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,jr4(b)),w[M]=(w[M]||0)+1,w._count=(w._count||0)+1);G.addEventListener(e,r);Z.touchAction&&_.BJ(G,Z.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G,e,r){var Z=AT[e],O=Z.deps;Z=Z.name;var M=G.__polymerGestures;if(M)for(var T=0,E,b;T<O.length;T++)E=O[T],(b=M[E])&&b[Z]&&(b[Z]=(b[Z]||1)-1,b._count=(b._count||1)-1,b._count===0&&G.removeEventListener(E,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,jr4(E)));G.removeEventListener(e,r)};
nU_=function(G){Ys.push(G);for(var e=0;e<G.emits.length;e++)AT[G.emits[e]]=G};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G){for(var e=0,r;e<Ys.length;e++){r=Ys[e];for(var Z=0,O;Z<r.emits.length;Z++)if(O=r.emits[Z],O===G)return r}return null};
_.BJ=function(G,e){gUs&&G instanceof HTMLElement&&xs.run(function(){G.style.touchAction=e});
G.__polymerGesturesTouchAction=e};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G,e,r){e=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});e.detail=r;(0,_.o5)(G).dispatchEvent(e);e.defaultPrevented&&(G=r.preventer||r.sourceEvent)&&G.preventDefault&&G.preventDefault()};
yk=function(G){G=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G);G.info&&(G.info.prevent=!0)};
PJ=function(G,e,r,Z){e&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e,G,{x:r.clientX,y:r.clientY,sourceEvent:r,preventer:Z,prevent:function(O){return yk(O)}})};
mSU=function(G,e,r){if(G.prevent)return!1;if(G.started)return!0;r=Math.abs(G.y-r);return Math.abs(G.x-e)>=5||r>=5};
cVs=function(G,e,r){if(e){var Z=G.moves[G.moves.length-2],O=G.moves[G.moves.length-1],M=O.x-G.x,T=O.y-G.y,E=0;if(Z){var b=O.x-Z.x;E=O.y-Z.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e,"track",{state:G.state,x:r.clientX,y:r.clientY,dx:M,dy:T,ddx:b,ddy:E,sourceEvent:r,hover:function(){return sr4(r.clientX,r.clientY)}})}};
yVf=function(G,e,r){var Z=Math.abs(e.clientX-G.x),O=Math.abs(e.clientY-G.y),M=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(r||e);!M||Yei[M.localName]&&M.hasAttribute("disabled")||!(isNaN(Z)||isNaN(O)||Z<=25&&O<=25||dSf(e))||G.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:r})};
AVS=function(G,e,r,Z,O){var M;O&&(M=typeof r==="object"&&r!==null)&&(Z=G.__dataTemp[e]);Z=Z!==r&&(Z===Z||r===r);M&&Z&&(G.__dataTemp[e]=r);return Z};
JV_=function(){if(WJ&&!Nx){if(!F$F){F$F=!0;var G=document.createElement("style");G.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(G)}return!0}return!1};
xS$=function(){return BBf};
PMp=function(G,e){BBf=G;Object.setPrototypeOf(G,e.prototype);new e;BBf=null};
USN=function(G,e){for(var r=0;r<e.length;r++){var Z=e[r];if(!!G!=!!Z.__hideTemplateChildren__)if(Z.nodeType===Node.TEXT_NODE)G?(Z.__polymerTextContent__=Z.textContent,Z.textContent=""):Z.textContent=Z.__polymerTextContent__;else if(Z.localName==="slot")if(G)Z.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.o5)((0,_.o5)(Z).parentNode).replaceChild(Z.__polymerReplaced__,Z);else{var O=Z.__polymerReplaced__;O&&(0,_.o5)((0,_.o5)(O).parentNode).replaceChild(Z,O)}else Z.style&&(G?(Z.__polymerDisplay__=
Z.style.display,Z.style.display="none"):Z.style.display=Z.__polymerDisplay__);Z.__hideTemplateChildren__=G;Z._showHideChildren&&Z._showHideChildren(G)}};
zpi=function(G){return(G=G.__dataHost)&&G._methodHost||G};
L$4=function(G,e,r){var Z=r.mutableData?W$p:LM;GU.mixin&&(Z=GU.mixin(Z));var O=function(){return Z.apply(this,arguments)||this};
_.K(O,Z);O.prototype.__templatizeOptions=r;O.prototype._bindTemplate(G);NBN(O,G,e,r);return O};
O2f=function(G,e,r,Z){var O=r.forwardHostProp;if(O&&e.hasHostProps){var M=G.localName=="template",T=e.templatizeTemplateClass;if(!T){if(M){var E=r.mutableData?GBS:e5y;T=function(){return E.apply(this,arguments)||this};
_.K(T,E);T=e.templatizeTemplateClass=T}else{var b=G.constructor;T=function(){return b.apply(this,arguments)||this};
_.K(T,b);T=e.templatizeTemplateClass=T}var w=e.hostProps,q;for(q in w)T.prototype._addPropertyEffect("_host_"+q,T.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:r3A(O)}),T.prototype._createNotifyingProperty("_host_"+q);eC&&Z&&Z2_(e,r,Z)}G.__dataProto&&Object.assign(G.__data,G.__dataProto);if(M)PMp(G,T),G.__dataTemp={},G.__dataPending=null,G.__dataOld=null,G._enableProperties();else{Object.setPrototypeOf(G,T.prototype);e=e.hostProps;for(var t in e)t="_host_"+t,t in G&&(e=G[t],delete G[t],G.__data[t]=
e)}}};
r3A=function(G){return function(e,r,Z){G.call(e.__templatizeOwner,r.substring(6),Z[r])}};
NBN=function(G,e,r,Z){var O=r.hostProps||{},M;for(M in Z.instanceProps){delete O[M];var T=Z.notifyInstanceProp;T&&G.prototype._addPropertyEffect(M,G.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Mcy(T)})}if(Z.forwardHostProp&&e.__dataHost)for(var E in O)r.hasHostProps||(r.hasHostProps=!0),G.prototype._addPropertyEffect(E,G.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Vcq()})};
Mcy=function(G){return function(e,r,Z){G.call(e.__templatizeOwner,e,r,Z[r])}};
Vcq=function(){return function(G,e,r){G.__dataHost._setPendingPropertyOrPath("_host_"+e,r[e],!0,!0)}};
GU=function(G,e,r){if(rE&&!zpi(G))throw Error("Od");r=r||{};if(G.__templatizeOwner)throw Error("Pd");G.__templatizeOwner=e;var Z=(e?e.constructor:LM)._parseTemplate(G),O=Z.templatizeInstanceClass;O||(O=L$4(G,Z,r),Z.templatizeInstanceClass=O);var M=zpi(G);O2f(G,Z,r,M);r=function(){return O.apply(this,arguments)||this};
_.K(r,O);r.prototype._methodHost=M;r.prototype.__dataHost=G;r.prototype.__templatizeOwner=e;r.prototype.__hostProps=Z.hostProps;return r};
Z2_=function(G,e,r){r=r.constructor._properties;G=G.propertyEffects;e=e.instanceProps;for(var Z in G)if(!(r[Z]||e&&e[Z]))for(var O=G[Z],M=0;M<O.length;M++){var T=O[M].info.part;if(!T.signature||!T.signature.static){console.warn("Property '"+Z+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
h5p=function(G,e){for(var r;e;)if(r=e.__dataHost?e:e.__templatizeInstance)if(r.__dataHost!=G)e=r.__dataHost;else return r;else e=(0,_.o5)(e).parentNode;return null};
ZE=function(G){return G.localName==="slot"};
TU$=function(){for(var G=O0.prototype,e="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),r={},Z=0;Z<e.length;r={method$jscomp$33:void 0},Z++)r.method$jscomp$33=e[Z],G[r.method$jscomp$33]=function(O){return function(){return this.node[O.method$jscomp$33].apply(this.node,arguments)}}(r)};
D__=function(G,e){for(var r={},Z=0;Z<e.length;r={name$jscomp$448:void 0},Z++)r.name$jscomp$448=e[Z],Object.defineProperty(G,r.name$jscomp$448,{get:function(O){return function(){return this.node[O.name$jscomp$448]}}(r),
configurable:!0})};
EjA=function(){for(var G=O0.prototype,e=["textContent","innerHTML","className"],r={},Z=0;Z<e.length;r={name$jscomp$449:void 0},Z++)r.name$jscomp$449=e[Z],Object.defineProperty(G,r.name$jscomp$449,{get:function(O){return function(){return this.node[O.name$jscomp$449]}}(r),
set:function(O){return function(M){this.node[O.name$jscomp$449]=M}}(r),
configurable:!0})};
i2N=function(){MN=document.documentElement.getAttribute("dir");MN=document.documentElement.getAttribute("dir");for(var G=0;G<VH.length;G++){var e=VH[G];e.__autoDirOptOut||e.setAttribute("dir",MN)}};
$_a=function(){hP=!0;requestAnimationFrame(function(){hP=!1;b2i(vj_);setTimeout(function(){for(var G=0,e=TU.length;G<e;G++)wsi(TU.shift())})})};
b2i=function(G){for(;G.length;)wsi(G.shift())};
wsi=function(G){var e=G[0],r=G[1];G=G[2];try{r.apply(e,G)}catch(Z){setTimeout(function(){throw Z;})}};
_.SiN=function(G,e,r){hP||$_a();vj_.push([G,e,r])};
_.DE=function(G,e,r){hP||$_a();TU.push([G,e,r])};
gjq=function(G,e){e=e===void 0?!1:e;if(!qiF||!tci||!qiF.handlesDynamicScoping)return null;var r=tci.ScopingShim;if(!r)return null;var Z=r.scopeForNode(G),O=(0,_.o5)(G).getRootNode(),M=function(T){if((0,_.o5)(T).getRootNode()===O){var E=Array.from(qiF.nativeMethods.querySelectorAll.call(T,"*"));E.push(T);for(T=0;T<E.length;T++){var b=E[T];if((0,_.o5)(b).getRootNode()===O){var w=r.currentScopeForNode(b);w!==Z&&(w!==""&&r.unscopeNode(b,w),r.scopeNode(b,Z))}}}};
M(G);return e?(e=new MutationObserver(function(T){for(var E=0;E<T.length;E++)for(var b=T[E],w=0;w<b.addedNodes.length;w++){var q=b.addedNodes[w];q.nodeType===Node.ELEMENT_NODE&&M(q)}}),e.observe(G,{childList:!0,
subtree:!0}),e):null};
lgS=function(){document.body.removeAttribute("unresolved")};
KKf=function(G){var e=G=G.replace(R5p,"").replace(j$F,""),r=new ag4;r.start=0;r.end=e.length;for(var Z=r,O=0,M=e.length;O<M;O++)if(e[O]==="{"){Z.rules||(Z.rules=[]);var T=Z,E=T.rules[T.rules.length-1]||null;Z=new ag4;Z.start=O+1;Z.parent=T;Z.previous=E;T.rules.push(Z)}else e[O]==="}"&&(Z.end=O+1,Z=Z.parent||r);return XsU(r,G)};
XsU=function(G,e){var r=e.substring(G.start,G.end-1);G.parsedCssText=G.cssText=r.trim();G.parent&&(r=e.substring(G.previous?G.previous.end:G.parent.start,G.start-1),r=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(r),r=r.replace(fgA," "),r=r.substring(r.lastIndexOf(";")+1),r=G.parsedSelector=G.selector=r.trim(),G.atRule=r.indexOf("@")===0,G.atRule?r.indexOf("@media")===0?G.type=4:r.match(kBN)&&(G.type=7,G.keyframesName=G.selector.split(fgA).pop()):r.indexOf("--")===
0?G.type=1E3:G.type=1);if(r=G.rules)for(var Z=0,O=r.length,M=void 0;Z<O&&(M=r[Z]);Z++)XsU(M,e);return G};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(G){return G.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var e=arguments[1],r=6-e.length;r--;)e="0"+e;return"\\"+e})};
H2s=function(G,e,r){r=r===void 0?"":r;var Z="";if(G.cssText||G.rules){var O=G.rules;if(O&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(O))for(var M=0,T=O.length,E=void 0;M<T&&(E=O[M]);M++)Z=H2s(E,e,Z);else e?e=G.cssText:(e=G.cssText,e=e.replace(d_a,"").replace(oj_,""),e=e.replace(s$4,"").replace(Q$4,"")),(Z=e.trim())&&(Z="  "+Z+"\n")}Z&&(G.selector&&(r+=G.selector+" {\n"),r+=Z,G.selector&&(r+="}\n\n"));return r};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(G){G=G[0];return!!G&&!!G.selector&&G.selector.indexOf("--")===0};
pss=function(G){if(G=Igq[G])G._applyShimCurrentVersion=G._applyShimCurrentVersion||0,G._applyShimValidatingVersion=G._applyShimValidatingVersion||0,G._applyShimNextVersion=(G._applyShimNextVersion||0)+1};
Cgf=function(G){return G._applyShimCurrentVersion===G._applyShimNextVersion};
njq=function(G){G._applyShimValidatingVersion=G._applyShimNextVersion;G._validating||(G._validating=!0,uCS.then(function(){G._applyShimCurrentVersion=G._applyShimNextVersion;G._validating=!1}))};
c3N=function(G){if(!G)return"";typeof G==="string"&&(G=KKf(G));return H2s(G,m_i)};
Yip=function(G){!G.__cssRules&&G.textContent&&(G.__cssRules=KKf(G.textContent));return G.__cssRules||null};
A3p=function(G,e,r,Z){if(G){var O=!1,M=G.type;if(Z&&M===4){var T=G.selector.match(y3s);T&&(window.matchMedia(T[1]).matches||(O=!0))}M===1?e(G):r&&M===7?r(G):M===1E3&&(O=!0);if((G=G.rules)&&!O)for(O=0,M=G.length,T=void 0;O<M&&(T=G[O]);O++)A3p(T,e,r,Z)}};
FKy=function(G,e){var r=G.indexOf("var(");if(r===-1)return e(G,"","","");a:{var Z=0;var O=r+3;for(var M=G.length;O<M;O++)if(G[O]==="(")Z++;else if(G[O]===")"&&--Z===0)break a;O=-1}Z=G.substring(r+4,O);r=G.substring(0,r);G=FKy(G.substring(O+1),e);M=Z.indexOf(",");if(M===-1)return e(r,Z.trim(),"",G);O=Z.substring(0,M).trim();Z=Z.substring(M+1).trim();return e(r,O,Z,G)};
J3i=function(G){if(E0!==void 0)return E0;if(G.__cssBuild===void 0){var e=G.getAttribute("css-build");if(e)G.__cssBuild=e;else{a:{e=G.localName==="template"?G.content.firstChild:G.firstChild;if(e instanceof Comment&&(e=e.textContent.trim().split(":"),e[0]==="css-build")){e=e[1];break a}e=""}if(e!==""){var r=G.localName==="template"?G.content.firstChild:G.firstChild;r.parentNode.removeChild(r)}G.__cssBuild=e}}return G.__cssBuild||""};
x_y=function(G,e,r,Z){for(var O=e._noAccessors,M=Object.getOwnPropertyNames(e),T=0;T<M.length;T++){var E=M[T];if(!(E in Z))if(O)G[E]=e[E];else{var b=Object.getOwnPropertyDescriptor(e,E);b&&(b.configurable=!0,Object.defineProperty(G,E,b))}}for(var w in BUs)e[w]&&(r[w]=r[w]||[],r[w].push(e[w]))};
PgF=function(G,e,r){e=e||[];for(var Z=G.length-1;Z>=0;Z--){var O=G[Z];O?Array.isArray(O)?PgF(O,e):e.indexOf(O)<0&&(!r||r.indexOf(O)<0)&&e.unshift(O):console.warn("behavior is null, check for missing or 404 import")}return e};
U_F=function(G,e){for(var r in e){var Z=G[r],O=e[r];G[r]=!("value"in O)&&Z&&"value"in Z?Object.assign({value:Z.value},O):O}};
NU$=function(G,e,r){var Z={},O=function(){return e.apply(this,arguments)||this};
_.K(O,e);O._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(T)for(var b=0,w;b<T.length;b++)w=T[b],w.properties&&this.createProperties(w.properties),w.observers&&this.createObservers(w.observers,w.properties);G.properties&&this.createProperties(G.properties);G.observers&&this.createObservers(G.observers,G.properties);this._prepareTemplate()}else e._finalizeClass.call(this)};
O.prototype.created=function(){e.prototype.created.call(this);var b=Z.created;if(b)for(var w=0;w<b.length;w++)b[w].call(this)};
O.prototype._registered=function(){var b=O.prototype;if(!b.hasOwnProperty("__hasRegisterFinished")){b.__hasRegisterFinished=!0;e.prototype._registered.call(this);WJ&&E(b);b=Object.getPrototypeOf(this);var w=Z.beforeRegister;if(w)for(var q=0;q<w.length;q++)w[q].call(b);if(w=Z.registered)for(q=0;q<w.length;q++)w[q].call(b)}};
O.prototype._applyListeners=function(){e.prototype._applyListeners.call(this);var b=Z.listeners;if(b)for(var w=0;w<b.length;w++){var q=b[w];if(q)for(var t in q)this._addMethodEventListenerToNode(this,t,q[t])}};
O.prototype._ensureAttributes=function(){var b=Z.hostAttributes;if(b)for(var w=b.length-1;w>=0;w--){var q=b[w],t;for(t in q)this._ensureAttribute(t,q[t])}e.prototype._ensureAttributes.call(this)};
O.prototype.ready=function(){e.prototype.ready.call(this);var b=Z.ready;if(b)for(var w=0;w<b.length;w++)b[w].call(this)};
O.prototype.attached=function(){e.prototype.attached.call(this);var b=Z.attached;if(b)for(var w=0;w<b.length;w++)b[w].call(this)};
O.prototype.detached=function(){e.prototype.detached.call(this);var b=Z.detached;if(b)for(var w=0;w<b.length;w++)b[w].call(this)};
O.prototype.attributeChanged=function(b,w,q){e.prototype.attributeChanged.call(this);var t=Z.attributeChanged;if(t)for(var g=0;g<t.length;g++)t[g].call(this,b,w,q)};
_.iY.Object.defineProperties(O,{properties:{configurable:!0,enumerable:!0,get:function(){var b={};if(T)for(var w=0;w<T.length;w++)U_F(b,T[w].properties);U_F(b,G.properties);return b}},
observers:{configurable:!0,enumerable:!0,get:function(){var b=[];if(T)for(var w=0,q;w<T.length;w++)q=T[w],q.observers&&(b=b.concat(q.observers));G.observers&&(b=b.concat(G.observers));return b}}});
if(r){Array.isArray(r)||(r=[r]);var M=e.prototype.behaviors;var T=PgF(r,null,M);O.prototype.behaviors=M?M.concat(r):T}var E=function(b){if(T)for(var w=T,q=0;q<w.length;q++)x_y(b,w[q],Z,z54);x_y(b,G,Z,WK_)};
WJ||E(O.prototype);O.generatedFrom=G;return O};
rDA=function(G){var e=typeof G!=="string"?G:{is:G,notifyObserversOnUndefined:!0};e.fastInit===void 0&&(e.fastInit=!0);return function(r){if(!e.disableInheritanceCheck&&Object.getPrototypeOf(r.prototype).constructor!==_.bY)throw Error("Td");var Z=r.prototype;Z.is=e.is;hdq(Z,"created",function(){this.hostElement=this;this.polymerController=this});
LK$(Z,r,e.fastInit);e.notifyObserversOnUndefined&&(Z._overrideLegacyUndefined=!0);if(GDS)for(var O=_.h(Object.getOwnPropertyNames(Z)),M=O.next();!M.done;M=O.next()){M=M.value;var T=Object.getOwnPropertyDescriptor(Z,M);T.enumerable===!1&&(T.enumerable=!0,Object.defineProperty(Z,M,T))}if("template"in r)var E=function(){return r.template};
else e.template!==void 0&&(E=e.template);if(E!==void 0){var b;Object.defineProperty(Z,"_template",{get:function(){b===void 0&&(b=E());return b},
set:function(w){b=w},
configurable:!0,enumerable:!0})}Polymer(Z);r[e3s]=Z}};
Zli=function(G){G=G===void 0?{}:G;G.fastInit===void 0&&(G.fastInit=!0);return function(e){if(!G.disableInheritanceCheck&&Object.getPrototypeOf(e.prototype).constructor!==vU)throw Error("Ud");LK$(e.prototype,e,G.fastInit)}};
LK$=function(G,e,r){r=r===void 0?!1:r;Ola(e);r?hdq(G,"created",function(){this.disableEnforceFastDefaultValuesCheck||M__(e,this)}):hdq(G,"ready",function(){for(var Z={},O=_.h(T7S(this.behaviors)),M=O.next();!M.done;M=O.next())M=M.value,M.properties&&Object.assign(Z,V_4(this,M.properties));
Object.assign(Z,V_4(this,this.properties));M__(e,this);O=_.h(Object.keys(Z));for(M=O.next();!M.done;M=O.next())M=M.value,this[M]=Z[M]})};
M__=function(G,e){if(GDS){G=new G;for(var r=_.h(Object.getOwnPropertyNames(G)),Z=r.next();!Z.done;Z=r.next())Z=Z.value,e[Z]=G[Z];for(r=e;r&&r!==Object.prototype;r=Object.getPrototypeOf(r)){Z=_.h(Object.getOwnPropertyNames(r));for(var O=Z.next();!O.done;O=Z.next())O=O.value,G.hasOwnProperty(O)||Object.defineProperty(G,O,h3p(e,O))}}else G.apply(e)};
h3p=function(G,e){return{get:function(){var r=G[e];return r instanceof Function?r.bind(G):r},
set:function(r){G[e]=r}}};
V_4=function(G,e){if(!e)return{};for(var r={},Z=_.h(Object.keys(e)),O=Z.next();!O.done;O=Z.next())if(O=O.value,!e[O].readOnly){var M=G[O];M!==void 0&&(r[O]=M)}return r};
Ola=function(G){var e=new G;G=G.prototype.properties||{};for(var r=_.h(Object.keys(G)),Z=r.next();!Z.done;Z=r.next())if(Z=Z.value,e.hasOwnProperty(Z)){var O=G[Z];typeof O==="function"&&(G[Z]=O={type:O});e[Z]!=null&&O.type===Object&&(O.type=Tci(e[Z].constructor))}};
Tci=function(G){for(var e=_.h(DuN),r=e.next();!r.done;r=e.next())if(r=r.value,G===r)return r;return Object};
ESp=function(G){return function(e,r){e.behaviors=e.behaviors||[];e.behaviors.push(G||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",e,r).prototype:void 0));Object.defineProperty(e,r,{get:function(){return this},
enumerable:!0,configurable:!0})}};
ili=function(G){G=G===void 0?{}:G;return function(e,r){e.properties=e.properties||{};G.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?G.type=Tci(Reflect.getMetadata("design:type",e,r)):G.type=String);var Z=G,O=e.properties[r];e.properties[r]=O?Object.assign({},O,Z):Z}};
blA=function(G){return function(e,r){e.listeners=e.listeners||{};e.listeners[G]=r}};
vSf=function(){var G=_.Bw.apply(0,arguments);if(G.length===0)throw Error("Vd");return function(e,r){e.observers=e.observers||[];e.observers.push(r+"("+G.join(",")+")")}};
wos=function(){var G=_.Bw.apply(0,arguments);return function(e,r,Z){var O=Object.getOwnPropertyDescriptor(e,r).get,M="__compute__"+r;Object.defineProperty(e,M,{value:O,enumerable:!0});e.properties=e.properties||{};O=e.properties[r];O||(O={},e.properties[r]=O);O.computed=M+"("+G.join(",")+")";Z.get=void 0}};
_.wE=function(G,e,r){_.pB.call(this);this.JSC$11319_id_=null;this.usingListeners_=!1;this.JSC$11319_listener_=G;this.handler_=r;this.JSC$11319_win_=e||window;this.callback_=(0,_.CB)(this.JSC$11321_doAction_,this)};
$u=function(G){this.range_=G};
SC=function(G){this.range_=G};
gE=function(G,e,r){_.pB.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=G;this.scrollTimer_=new _.qN(50);this.JSC$11398_eventHandler_=new _.tP(this);this.scrollDelta_=new _.yB;this.containerIsActuallyContent_=G.tagName==="BODY"||G.tagName==="HTML";this.containerBounds_=$uN(G);this.containerIsActuallyContent_&&(G=_.dS(),this.containerBounds_.height=G.height,this.containerBounds_.width=G.width);this.margin_=e||0;if(e){if(e=this.containerBounds_.clone(),G=this.margin_){var Z=
Math.min(G,e.height*.25);e.top+=Z;e.height-=2*Z;G=Math.min(G,e.width*.25);e.left+=G;e.width-=2*G}}else e=this.containerBounds_;this.scrollBounds_=e;r||this.JSC$11398_eventHandler_.listen(_.F$(this.containerNode_),"mousemove",this.JSC$11400_onMouseMove);this.JSC$11398_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11400_onTick_)};
_.lY=function(G){this.mechanism=G};
Rd=function(G,e){this.JSC$11496_key_=G;this.JSC$11496_value_=e};
qg_=function(G){if(G>=55296&&G<=57343||G>1114111)return"\ufffd";G in Sg4&&(G=Sg4[G]);var e="";G>65535&&(G-=65536,e+=String.fromCharCode(G>>>10&1023|55296),G=56320|G&1023);return e+=String.fromCharCode(G)};
t_N=function(G,e){return G<e?1:-1};
lwA=function(){return function(G){return G.charAt(1)==="#"?G.charAt(2)==="X"||G.charAt(2)==="x"?qg_(parseInt(G.substr(3),16)):qg_(parseInt(G.substr(2),10)):gS_[G.slice(1,-1)]}};
awS=function(G){return G.slice(1,G.length-1).trim().replace(R3S,function(e){return ji$[e]||" "})};
jC=function(G){return G===32||G===9};
ad=function(G,e){return e<G.length?G.charCodeAt(e):-1};
XoS=function(G){for(;G;){if(G._lastLineBlank)return!0;var e=G.type;if(e==="list"||e==="item")G=G._lastChild;else break}return!1};
Xp=function(G){if(KZ_.test(G)){var e=1,r=0,Z=0;for(G[r]=="|"&&r++;r<G.length;){switch(G[r]){case "|":Z=1;break;case " ":break;case "\t":break;default:Z&&(Z=0,e++)}r++}return fwp.test(G)?-e:e}return 0};
kDU=function(G){return G=="table"||G=="row"||G=="cell"};
Hly=function(){return new Kt("document",[[1,1],[0,0]])};
duF=function(){};
ft=function(){var G={safe:!1};G=G||{};G.softbreak=G.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=G};
poU=function(G,e){var r="";if(G)if(G=G.toLowerCase(),G===" "||oSN.test(G))r="space";else if(sis.test(G))r="esc";else if(G.length==1){if(!e||Qi4.test(G))r=G}else r=IwF.test(G)?G.replace("arrow",""):G=="multiply"?"*":G;return r};
muy=function(G,e){var r=G.hasModifiers;if(e.key)r=poU(e.key,r);else if(e.detail&&e.detail.key)r=poU(e.detail.key,r);else{r=e.keyIdentifier;var Z="";r&&(r in CEa?Z=CEa[r]:ukN.test(r)?(r=parseInt(r.replace("U+","0x"),16),Z=String.fromCharCode(r).toLowerCase()):Z=r.toLowerCase());(r=Z)||(r=e.keyCode,Z="",Number(r)&&(r>=65&&r<=90?Z=String.fromCharCode(32+r):r>=112&&r<=123?Z="f"+(r-112+1):r>=48&&r<=57?Z=String(r-48):r>=96&&r<=105?Z=String(r-96):Z=nSs[r]),r=Z);r=r||""}return r===G.key&&(!G.hasModifiers||
!!e.shiftKey===!!G.shiftKey&&!!e.ctrlKey===!!G.ctrlKey&&!!e.altKey===!!G.altKey&&!!e.metaKey===!!G.metaKey)};
Ygp=function(G){return G.length===1?{combo:G,key:G,event:"keydown"}:G.split("+").reduce(function(e,r){var Z=r.split(":");r=Z[0];Z=Z[1];r in cD_?(e[cD_[r]]=!0,e.hasModifiers=!0):(e.key=r,e.event=Z||"keydown");return e},{combo:G.split(":").shift()})};
yDf=function(G){return G.trim().split(" ").map(function(e){return Ygp(e)})};
ADy=function(G,e){if(G&&G.fn){var r=G.fn;G.fn=function(){try{r.apply(this,arguments)}catch(Z){if(Z instanceof ku)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 G};
JD$=function(){var G=[],e;var r=r||_.FZq.length;for(e=0;e<8;e++)G[e]=_.FZq[0|Math.random()*r];return G.join("")};
Bcq=function(){var G=_.Bw.apply(0,arguments);return G.length===0?function(e){return e}:G.length===1?G[0]:G.reduce(function(e,r){return function(){return e(r.apply(null,_.mY(_.Bw.apply(0,arguments))))}})};
xuU=function(){var G=_.Bw.apply(0,arguments);return function(e){return function(r,Z){r=e(r,Z);var O=function(){throw Error("Fe");},M={getState:r.getState,
dispatch:function(T){return O.apply(null,[T].concat(_.mY(_.Bw.apply(1,arguments))))}};
Z=G.map(function(T){return T(M)});
O=Bcq.apply(null,_.mY(Z))(r.dispatch);return Object.assign({},r,{dispatch:O})}}};
z3f=function(G){Object.keys(G).forEach(function(e){var r=G[e];if(typeof r(void 0,{type:PEf})==="undefined")throw Error("Ge`"+e);if(typeof r(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+UuN()})==="undefined")throw Error("He`"+e+"`"+PEf);})};
HU=function(G){for(var e=Object.keys(G),r={},Z=0;Z<e.length;Z++){var O=e[Z];typeof G[O]==="function"&&(r[O]=G[O])}var M=Object.keys(r);try{z3f(r)}catch(E){var T=E}return function(E,b){E=E===void 0?{}:E;if(T)throw T;for(var w=!1,q={},t=0;t<M.length;t++){var g=M[t],l=E[g],X=(0,r[g])(l,b);if(typeof X==="undefined")throw E=b&&b.type,Error("Ie`"+(E?'"'+String(E)+'"':"(unknown type)")+"`"+g);q[g]=X;w=w||X!==l}return(w=w||M.length!==Object.keys(E).length)?q:E}};
WZa=function(G,e,r){function Z(){if(q)throw Error("Je");return E}
function O(l){if(typeof l!=="function")throw Error("Ke`"+typeof l);if(q)throw Error("Le");var X=!0;w===b&&(w=b.slice());w.push(l);return function(){if(X){if(q)throw Error("Me");X=!1;w===b&&(w=b.slice());var H=w.indexOf(l);w.splice(H,1);b=null}}}
function M(l){if(typeof l!=="object"||l===null)var X=!1;else{for(X=l;Object.getPrototypeOf(X)!==null;)X=Object.getPrototypeOf(X);X=Object.getPrototypeOf(l)===X}if(!X)throw Error("Ne`"+typeof l);if(typeof l.type==="undefined")throw Error("Oe");if(q)throw Error("Pe");try{q=!0,E=T(E,l)}finally{q=!1}X=b=w;for(var H=0;H<X.length;H++)(0,X[H])();return l}
if(typeof e==="function"&&typeof r==="function"||typeof r==="function"&&typeof arguments[3]==="function")throw Error("Qe");typeof e==="function"&&typeof r==="undefined"&&(r=e,e=void 0);if(typeof r!=="undefined"){if(typeof r!=="function")throw Error("Re`"+typeof r);return r(WZa)(G,e)}if(typeof G!=="function")throw Error("Se`"+typeof G);var T=G,E=e,b=[],w=b,q=!1;M({type:PEf});var t={},g=(t.dispatch=M,t.subscribe=O,t.getState=Z,t.replaceReducer=function(l){if(typeof l!=="function")throw Error("Te`"+
typeof l);T=l;M({type:Nca});return g},t[LZS]=function(){var l={};
return l.subscribe=function(X){function H(){X.next&&X.next(Z())}
if(typeof X!=="object"||X===null)throw new TypeError("Ue`"+typeof X);H();return{unsubscribe:O(H)}},l[LZS]=function(){return this},l},t);
return g};
Gia=function(G){function e(){O&&(O=!1,G());M&&Z()}
function r(){requestAnimationFrame(e)}
function Z(){var E=Date.now();if(O){if(E-T<2)return;M=!0}else O=!0,M=!1,setTimeout(r,20);T=E}
var O=!1,M=!1,T=0;return Z};
dE=function(G){return typeof G==="number"?G:parseFloat(G)||0};
eF$=function(G){return _.Bw.apply(1,arguments).reduce(function(e,r){return e+dE(G["border-"+r+"-width"])},0)};
M7f=function(G){if(r8f[G])return r8f[G];var e=globalThis[G],r=e.prototype,Z=G in ZYy?ZYy[G]:void 0;Z=!(!Z||!Z.every(function(b){var w,q;return!!((w=Object.getOwnPropertyDescriptor(r,b))==null?0:(q=w.get)==null?0:q.toString().includes("[native code]"))}));
var O=G in OYp?OYp[G]:void 0;O=!(!O||!O.every(function(b){var w;return typeof r[b]==="function"&&((w=r[b])==null?void 0:w.toString().includes("[native code]"))}));
if(Z&&O&&!globalThis.Zone)return r8f[G]=e.prototype;try{var M=document.createElement("iframe");document.body.appendChild(M);var T=M.contentWindow;if(!T)return e.prototype;var E=T[G].prototype;document.body.removeChild(M);return E?r8f[G]=E:r}catch(b){return r}};
od=function(G,e,r){var Z=G+"."+String(r);if(V7S[Z])return V7S[Z].call(e);G=M7f(G);var O;G=(O=Object.getOwnPropertyDescriptor(G,r))==null?void 0:O.get;if(!G)return e[r];V7S[Z]=G;return G.call(e)};
TTs=function(G,e){var r="Node."+String(e);if(hFp[r])return hFp[r].bind(G);var Z=M7f("Node")[e];if(typeof Z!=="function")return G[e];hFp[r]=Z;return Z.bind(G)};
s0=function(G,e,r){try{if(!(e in G))return function(){};
var Z=G[e],O=r(Z);typeof O==="function"&&(O.prototype=O.prototype||{},Object.defineProperties(O,{__rrweb_original__:{enumerable:!1,value:Z}}));G[e]=O;return function(){G[e]=Z}}catch(M){return function(){}}};
pt=function(G){var e=G&&"host"in G&&"mode"in G&&QH(G)||null;return!!(e&&"shadowRoot"in e&&Id(e)===G)};
Ct=function(G){return Object.prototype.toString.call(G)==="[object ShadowRoot]"};
DQa=function(G){G.includes(" background-clip: text;")&&!G.includes(" -webkit-background-clip: text;")&&(G=G.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return G};
iYA=function(G){try{var e=G.rules||G.cssRules;if(!e)return null;var r=G.href;!r&&G.ownerNode&&(r=G.ownerNode.baseURI);var Z=Array.from(e,function(O){return EVS(O,r)}).join("");
return DQa(Z)}catch(O){return null}};
EVS=function(G,e){if("styleSheet"in G){try{var r;if(!(r=iYA(G.styleSheet))){var Z=G.cssText;if(Z.split('"').length<3)r=Z;else{var O=["@import","url("+JSON.stringify(G.href)+")"];G.layerName===""?O.push("layer"):G.layerName&&O.push("layer("+G.layerName+")");G.supportsText&&O.push("supports("+G.supportsText+")");G.media.length&&O.push(G.media.mediaText);r=O.join(" ")+";"}}var M=r}catch(T){M=G.cssText}return G.styleSheet.href?bYs(M,G.styleSheet.href):M}M=G.cssText;"selectorText"in G&&G.selectorText.includes(":")&&
(M=M.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return e?bYs(M,e):M};
vV4=function(G){var e=G.element;var r=G.maskInputOptions;var Z=G.tagName;var O=G.type;var M=G.value;G=G.maskInputFn;M=M||"";O=O&&O.toLowerCase();if(r[Z.toLowerCase()]||O&&r[O])M=G?G(M,e):"*".repeat(M.length);return M};
wKp=function(G){var e=G.getContext("2d");if(!e)return!0;for(var r=0;r<G.width;r+=50)for(var Z=0;Z<G.height;Z+=50){var O=e.getImageData;if((new Uint32Array(("__rrweb_original__"in O?O.__rrweb_original__:O).call(e,r,Z,Math.min(50,G.width-r),Math.min(50,G.height-Z)).data.buffer)).some(function(M){return M!==0}))return!1}return!0};
$QF=function(G){var e=G.type;return G.hasAttribute("data-rr-is-password")?"password":e?e.toLowerCase():null};
SSN=function(G){try{var e=new URL(G,window.location.href)}catch(O){return null}var r,Z;return(Z=(r=e.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:r[1])!=null?Z:null};
bYs=function(G,e){return(G||"").replace(qS_,function(r,Z,O,M,T,E){O=O||T||E;Z=Z||M||"";if(!O)return r;if(t7S.test(O)||gVN.test(O)||lSi.test(O))return"url("+Z+O+Z+")";if(O[0]==="/")return r=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],r=r.split("?")[0],"url("+Z+(r+O)+Z+")";r=e.split("/");M=O.split("/");r.pop();M=_.h(M);for(O=M.next();!O.done;O=M.next())O=O.value,O!=="."&&(O===".."?r.pop():r.push(O));return"url("+Z+r.join("/")+Z+")"})};
RFa=function(G,e){return(e=e===void 0?!1:e)?G.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):G.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
jb4=function(G,e){var r=r===void 0?!1:r;e=Array.from(e.childNodes);var Z=[],O=0;if(e.length>1&&G&&typeof G==="string")for(var M=RFa(G,r),T=M.length/G.length,E=1;E<e.length;E++)if(e[E].textContent&&typeof e[E].textContent==="string"){for(var b=RFa(e[E].textContent,r),w=3;w<b.length&&(b[w].match(/[a-zA-Z0-9]/)||b.indexOf(b.substring(0,w),1)!==-1);w++);for(;w<b.length;w++){var q=b.substring(0,w),t=M.split(q),g=-1;if(t.length===2)g=t[0].length;else if(t.length>2&&t[0]===""&&e[E-1].textContent!=="")g=
M.indexOf(q,1);else if(t.length===1){q=q.substring(0,q.length-1);t=M.split(q);if(t.length<=1)return Z.push(G),Z;w=101}else w===b.length-1&&(g=M.indexOf(q));if(t.length>=2&&w>100){var l=e[E-1].textContent;l&&typeof l==="string"&&(g=M.indexOf(q,RFa(l).length));g===-1&&(g=t[0].length)}if(g!==-1){for(b=Math.floor(g/T);b>0&&b<G.length;){O+=1;if(O>50*e.length)return Z.push(G),Z;w=RFa(G.substring(0,b),r);if(w.length===g){Z.push(G.substring(0,b));G=G.substring(b);M=M.substring(g);break}else b=w.length<g?
b+Math.max(1,Math.floor((g-w.length)/T)):b-Math.max(1,Math.floor((w.length-g)*T))}break}}}Z.push(G);return Z};
XK4=function(){return aSa++};
fSq=function(G){if(G instanceof HTMLFormElement)return"form";G=G.tagName.toLowerCase();return KTU.test(G)?"div":G};
oV4=function(G,e){function r(w){return(w=w.exec(e.substring(Z)))?(w=w[0],Z+=w.length,w):""}
if(e.trim()==="")return e;for(var Z=0,O=[];;){r(ki_);if(Z>=e.length)break;var M=r(HYF);if(M.slice(-1)===",")M=dQA(G,M.substring(0,M.length-1)),O.push(M);else{var T="";M=dQA(G,M);for(var E=!1;;){var b=e.charAt(Z);if(b===""){O.push((M+T).trim());break}else if(E)b===")"&&(E=!1);else if(b===","){Z+=1;O.push((M+T).trim());break}else b==="("&&(E=!0);T+=b;Z+=1}}}return O.join(", ")};
dQA=function(G,e){return e&&e.trim()!==""?sbs(G,e):e};
sbs=function(G,e){var r=Qb_.get(G);r||(r=G.createElement("a"),Qb_.set(G,r));if(!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;Pw(r,e);return r.href};
IS4=function(G,e,r,Z){return Z?r==="src"||r==="href"&&(e!=="use"||Z[0]!=="#")||r==="xlink:href"&&Z[0]!=="#"||r==="background"&&(e==="table"||e==="td"||e==="th")?dQA(G,Z):r==="srcset"?oV4(G,Z):r==="style"?bYs(Z,sbs(G)):e==="object"&&r==="data"?dQA(G,Z):Z:Z};
pKs=function(G,e){return(G==="video"||G==="audio")&&e==="autoplay"};
CGS=function(G,e,r){try{if(typeof e==="string"){if(G.classList.contains(e))return!0}else for(var Z=G.classList.length;Z--;)if(e.test(G.classList[Z]))return!0;if(r)return G.matches(r)}catch(O){}return!1};
uXS=function(G,e,r){if(!G)return!1;if(G.nodeType!==G.ELEMENT_NODE)return r?uXS(uY(G),e,r):!1;for(var Z=G.classList.length;Z--;)if(e.test(G.classList[Z]))return!0;return r?uXS(uY(G),e,r):!1};
nVs=function(G,e,r,Z){if(G.nodeType===G.ELEMENT_NODE){if(!nt(G).length)return!1}else{if(mM(G)===null)return!1;G=mM(G)}try{if(typeof e==="string")if(Z){if(G.closest("."+e))return!0}else{if(G.classList.contains(e))return!0}else if(uXS(G,e,Z))return!0;if(r)if(Z){if(G.closest(r))return!0}else if(G.matches(r))return!0}catch(O){}return!1};
mQS=function(G,e,r){var Z=G.contentWindow;if(Z){var O=!1;try{var M=Z.document.readyState}catch(E){return}if(M!=="complete"){var T=setTimeout(function(){O||(e(),O=!0)},r);
G.addEventListener("load",function(){clearTimeout(T);O=!0;e()})}else Z.location.href==="about:blank"&&G.src!=="about:blank"&&G.src!==""||setTimeout(e,0),G.addEventListener("load",e)}};
c8S=function(G,e,r){var Z=!1;try{var O=G.sheet}catch(T){return}if(!O){var M=setTimeout(function(){Z||(e(),Z=!0)},r);
G.addEventListener("load",function(){clearTimeout(M);Z=!0;e()})}};
A8$=function(G,e){var r=e.doc,Z=e.blockClass,O=e.blockSelector,M=e.needsMask,T=e.inlineStylesheet,E=e.maskInputOptions===void 0?{}:e.maskInputOptions,b=e.maskTextFn,w=e.maskInputFn,q=e.dataURLOptions===void 0?{}:e.dataURLOptions,t=e.inlineImages,g=e.recordCanvas,l=e.keepIframeSrcFn,X=e.newlyAddedElement===void 0?!1:e.newlyAddedElement,H=e.cssCaptured===void 0?!1:e.cssCaptured;e=e.mirror;e.nodeMetaMap.has(r)?(e=e.getId(r),e=e===1?void 0:e):e=void 0;switch(G.nodeType){case G.DOCUMENT_NODE:return G.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:G.compatMode}:{type:0,childNodes:[]};case G.DOCUMENT_TYPE_NODE:return{type:1,name:G.name,publicId:G.publicId,systemId:G.systemId,rootId:e};case G.ELEMENT_NODE:return YSS(G,{doc:r,blockClass:Z,blockSelector:O,inlineStylesheet:T,maskInputOptions:E,maskInputFn:w,dataURLOptions:q,inlineImages:t,recordCanvas:g,keepIframeSrcFn:l,newlyAddedElement:X,rootId:e});case G.TEXT_NODE:return T=(Z=uY(G))&&Z.tagName,Z="",O=T==="STYLE"?!0:void 0,(T=T==="SCRIPT"?!0:void 0)?
Z="SCRIPT_PLACEHOLDER":H||(Z=y8_(G),O&&Z&&(Z=bYs(Z,sbs(r)))),!O&&!T&&Z&&M&&(Z=b?b(Z,mM(G)):Z.replace(/[\S]/g,"*")),{type:3,textContent:Z||"",rootId:e};case G.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:e};case G.COMMENT_NODE:return{type:5,textContent:y8_(G)||"",rootId:e};default:return!1}};
YSS=function(G,e){var r=e.doc,Z=e.inlineStylesheet,O=e.maskInputOptions===void 0?{}:e.maskInputOptions,M=e.maskInputFn,T=e.dataURLOptions===void 0?{}:e.dataURLOptions,E=e.inlineImages,b=e.recordCanvas,w=e.keepIframeSrcFn,q=e.newlyAddedElement===void 0?!1:e.newlyAddedElement,t=e.rootId;e=CGS(G,e.blockClass,e.blockSelector);for(var g=fSq(G),l={},X=G.attributes.length,H=0;H<X;H++){var I=G.attributes[H];pKs(g,I.name)||(l[I.name]=IS4(r,g,I.name.toLowerCase(),I.value))}g==="link"&&Z&&(Z=Array.from(r.styleSheets).find(function(J){return J.href===
G.href}),X=null,Z&&(X=iYA(Z)),X&&(delete l.rel,delete l.href,l._cssText=X));
g==="style"&&G.sheet&&(Z=iYA(G.sheet))&&(G.childNodes.length>1&&(Z=jb4(Z,G).join("/* rr_split */")),l._cssText=Z);if(g==="input"||g==="textarea"||g==="select")Z=G.value,X=G.checked,l.type!=="radio"&&l.type!=="checkbox"&&l.type!=="submit"&&l.type!=="button"&&Z?l.value=vV4({element:G,type:$QF(G),tagName:g,value:Z,maskInputOptions:O,maskInputFn:M}):X&&(l.checked=X);g==="option"&&(G.selected&&!O.select?l.selected=!0:delete l.selected);g==="dialog"&&G.open&&(l.rr_open_mode=G.matches("dialog:modal")?"modal":
"non-modal");g==="canvas"&&b&&(G.__context==="2d"?wKp(G)||(l.rr_dataURL=G.toDataURL(T.type,T.quality)):"__context"in G||(O=G.toDataURL(T.type,T.quality),M=r.createElement("canvas"),M.width=G.width,M.height=G.height,M=M.toDataURL(T.type,T.quality),O!==M&&(l.rr_dataURL=O)));if(g==="img"&&E){cU||(cU=r.createElement("canvas"),FTf=cU.getContext("2d"));var C=G.currentSrc||G.getAttribute("src")||"<unknown-src>",u=G.crossOrigin,P=function(){G.removeEventListener("load",P);try{cU.width=G.naturalWidth,cU.height=
G.naturalHeight,FTf.drawImage(G,0,0),l.rr_dataURL=cU.toDataURL(T.type,T.quality)}catch(J){if(G.crossOrigin!=="anonymous"){G.crossOrigin="anonymous";G.complete&&G.naturalWidth!==0?P():G.addEventListener("load",P);return}console.warn("Cannot inline img src="+C+"! Error: "+J)}G.crossOrigin==="anonymous"&&(u?l.crossOrigin=u:G.removeAttribute("crossorigin"))};
G.complete&&G.naturalWidth!==0?P():G.addEventListener("load",P)}if(g==="audio"||g==="video")r=l,r.rr_mediaState=G.paused?"paused":"played",r.rr_mediaCurrentTime=G.currentTime,r.rr_mediaPlaybackRate=G.playbackRate,r.rr_mediaMuted=G.muted,r.rr_mediaLoop=G.loop,r.rr_mediaVolume=G.volume;q||(G.scrollLeft&&(l.rr_scrollLeft=G.scrollLeft),G.scrollTop&&(l.rr_scrollTop=G.scrollTop));e&&(q=G.getBoundingClientRect(),l={class:l.class,rr_width:q.width+"px",rr_height:q.height+"px"});g!=="iframe"||w(l.src)||(G.contentDocument||
(l.rr_src=l.src),delete l.src);var F;try{customElements.get(g)&&(F=!0)}catch(J){}return{type:2,tagName:g,attributes:l,childNodes:[],isSVG:!(G.tagName!=="svg"&&!G.ownerSVGElement)||void 0,needBlock:e,rootId:t,isCustom:F}};
Yu=function(G){return G===void 0||G===null?"":G.toLowerCase()};
J8p=function(G,e){return e.comment&&G.type===5||G.type===2&&(e.script&&(G.tagName==="script"||G.tagName==="link"&&(G.attributes.rel==="preload"&&G.attributes.as==="script"||G.attributes.rel==="modulepreload")||G.tagName==="link"&&G.attributes.rel==="prefetch"&&typeof G.attributes.href==="string"&&SSN(G.attributes.href)==="js")||e.headFavicon&&(G.tagName==="link"&&G.attributes.rel==="shortcut icon"||G.tagName==="meta"&&(Yu(G.attributes.name).match(/^msapplication-tile(image|color)$/)||Yu(G.attributes.name)===
"application-name"||Yu(G.attributes.rel)==="icon"||Yu(G.attributes.rel)==="apple-touch-icon"||Yu(G.attributes.rel)==="shortcut icon"))||G.tagName==="meta"&&(e.headMetaDescKeywords&&Yu(G.attributes.name).match(/^description|keywords$/)||e.headMetaSocial&&(Yu(G.attributes.property).match(/^(og|twitter|fb):/)||Yu(G.attributes.name).match(/^(og|twitter):/)||Yu(G.attributes.name)==="pinterest")||e.headMetaRobots&&(Yu(G.attributes.name)==="robots"||Yu(G.attributes.name)==="googlebot"||Yu(G.attributes.name)===
"bingbot")||e.headMetaHttpEquiv&&G.attributes["http-equiv"]!==void 0||e.headMetaAuthorship&&(Yu(G.attributes.name)==="author"||Yu(G.attributes.name)==="generator"||Yu(G.attributes.name)==="framework"||Yu(G.attributes.name)==="publisher"||Yu(G.attributes.name)==="progid"||Yu(G.attributes.property).match(/^article:/)||Yu(G.attributes.property).match(/^product:/))||e.headMetaVerification&&(Yu(G.attributes.name)==="google-site-verification"||Yu(G.attributes.name)==="yandex-verification"||Yu(G.attributes.name)===
"csrf-token"||Yu(G.attributes.name)==="p:domain_verify"||Yu(G.attributes.name)==="verify-v1"||Yu(G.attributes.name)==="verification"||Yu(G.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
yH=function(G,e){var r=e.doc,Z=e.mirror,O=e.blockClass,M=e.blockSelector,T=e.maskTextClass,E=e.maskTextSelector,b=e.skipChild===void 0?!1:e.skipChild,w=e.inlineStylesheet===void 0?!0:e.inlineStylesheet,q=e.maskInputOptions===void 0?{}:e.maskInputOptions,t=e.maskTextFn,g=e.maskInputFn,l=e.slimDOMOptions,X=e.dataURLOptions===void 0?{}:e.dataURLOptions,H=e.inlineImages===void 0?!1:e.inlineImages,I=e.recordCanvas===void 0?!1:e.recordCanvas,C=e.onSerialize,u=e.onIframeLoad,P=e.iframeLoadTimeout===void 0?
5E3:e.iframeLoadTimeout,F=e.onStylesheetLoad,J=e.stylesheetLoadTimeout===void 0?5E3:e.stylesheetLoadTimeout,U=e.keepIframeSrcFn===void 0?function(){return!1}:e.keepIframeSrcFn,e$=e.newlyAddedElement===void 0?!1:e.newlyAddedElement,Dq=e.cssCaptured===void 0?!1:e.cssCaptured,bF=e.needsMask,Kf=e.preserveWhiteSpace===void 0?!0:e.preserveWhiteSpace;
bF||(bF=nVs(G,T,E,bF===void 0));var ti=A8$(G,{doc:r,mirror:Z,blockClass:O,blockSelector:M,needsMask:bF,inlineStylesheet:w,maskInputOptions:q,maskTextFn:t,maskInputFn:g,dataURLOptions:X,inlineImages:H,recordCanvas:I,keepIframeSrcFn:U,newlyAddedElement:e$,cssCaptured:Dq});if(!ti)return console.warn(G,"not serialized"),null;e$=Z.nodeMetaMap.has(G)?Z.getId(G):J8p(ti,l)||!Kf&&ti.type===3&&!ti.textContent.replace(/^\s+|\s+$/gm,"").length?-2:aSa++;e=Object.assign(ti,{id:e$});Z.add(G,e);if(e$===-2)return null;
C&&C(G);e$=!b;e.type===2&&(e$=e$&&!e.needBlock,delete e.needBlock,(Dq=Id(G))&&Ct(Dq)&&(e.isShadowHost=!0));if((e.type===0||e.type===2)&&e$){l.headWhitespace&&e.type===2&&e.tagName==="head"&&(Kf=!1);b={doc:r,mirror:Z,blockClass:O,blockSelector:M,needsMask:bF,maskTextClass:T,maskTextSelector:E,skipChild:b,inlineStylesheet:w,maskInputOptions:q,maskTextFn:t,maskInputFn:g,slimDOMOptions:l,dataURLOptions:X,inlineImages:H,recordCanvas:I,preserveWhiteSpace:Kf,onSerialize:C,onIframeLoad:u,iframeLoadTimeout:P,
onStylesheetLoad:F,stylesheetLoadTimeout:J,keepIframeSrcFn:U,cssCaptured:!1};if(e.type!==2||e.tagName!=="textarea"||e.attributes.value===void 0)for(e.type===2&&e.attributes._cssText!==void 0&&typeof e.attributes._cssText==="string"&&(b.cssCaptured=!0),e$=_.h(Array.from(nt(G))),Dq=e$.next();!Dq.done;Dq=e$.next())(Dq=yH(Dq.value,b))&&e.childNodes.push(Dq);e$=null;if(G.nodeType===G.ELEMENT_NODE&&(e$=Id(G))){Dq=_.h(Array.from(nt(e$)));for(var Ry=Dq.next();!Ry.done;Ry=Dq.next())if(Ry=yH(Ry.value,b))Ct(e$)&&
(Ry.isShadow=!0),e.childNodes.push(Ry)}}(b=uY(G))&&pt(b)&&Ct(b)&&(e.isShadow=!0);e.type===2&&e.tagName==="iframe"&&mQS(G,function(){var nf=G.contentDocument;nf&&u&&(nf=yH(nf,{doc:nf,mirror:Z,blockClass:O,blockSelector:M,needsMask:bF,maskTextClass:T,maskTextSelector:E,skipChild:!1,inlineStylesheet:w,maskInputOptions:q,maskTextFn:t,maskInputFn:g,slimDOMOptions:l,dataURLOptions:X,inlineImages:H,recordCanvas:I,preserveWhiteSpace:Kf,onSerialize:C,onIframeLoad:u,iframeLoadTimeout:P,onStylesheetLoad:F,stylesheetLoadTimeout:J,
keepIframeSrcFn:U}))&&u(G,nf)},P);
e.type===2&&e.tagName==="link"&&typeof e.attributes.rel==="string"&&(e.attributes.rel==="stylesheet"||e.attributes.rel==="preload"&&typeof e.attributes.href==="string"&&SSN(e.attributes.href)==="css")&&c8S(G,function(){if(F){var nf=yH(G,{doc:r,mirror:Z,blockClass:O,blockSelector:M,needsMask:bF,maskTextClass:T,maskTextSelector:E,skipChild:!1,inlineStylesheet:w,maskInputOptions:q,maskTextFn:t,maskInputFn:g,slimDOMOptions:l,dataURLOptions:X,inlineImages:H,recordCanvas:I,preserveWhiteSpace:Kf,onSerialize:C,
onIframeLoad:u,iframeLoadTimeout:P,onStylesheetLoad:F,stylesheetLoadTimeout:J,keepIframeSrcFn:U});nf&&F(G,nf)}},J);
return e};
BTf=function(G){var e=document;G=G||{};var r=G.maskAllInputs===void 0?!1:G.maskAllInputs,Z=G.slimDOM===void 0?!1:G.slimDOM;return yH(e,{doc:e,mirror:G.mirror===void 0?new AP:G.mirror,blockClass:G.blockClass===void 0?"rr-block":G.blockClass,blockSelector:G.blockSelector===void 0?null:G.blockSelector,maskTextClass:G.maskTextClass===void 0?"rr-mask":G.maskTextClass,maskTextSelector:G.maskTextSelector===void 0?null:G.maskTextSelector,skipChild:!1,inlineStylesheet:G.inlineStylesheet===void 0?!0:G.inlineStylesheet,
maskInputOptions:r===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:r===!1?{password:!0}:r,maskTextFn:G.maskTextFn,maskInputFn:G.maskInputFn,slimDOMOptions:Z===!0||Z==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:Z==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:Z===!1?{}:Z,dataURLOptions:G.dataURLOptions,
inlineImages:G.inlineImages===void 0?!1:G.inlineImages,recordCanvas:G.recordCanvas===void 0?!1:G.recordCanvas,preserveWhiteSpace:G.preserveWhiteSpace,onSerialize:G.onSerialize,onIframeLoad:G.onIframeLoad,iframeLoadTimeout:G.iframeLoadTimeout,onStylesheetLoad:G.onStylesheetLoad,stylesheetLoadTimeout:G.stylesheetLoadTimeout,keepIframeSrcFn:G.keepIframeSrcFn===void 0?function(){return!1}:G.keepIframeSrcFn,
newlyAddedElement:!1})};
Fp=function(G,e,r){r=r===void 0?document:r;var Z={capture:!0,passive:!0};r.addEventListener(G,e,Z);return function(){return r.removeEventListener(G,e,Z)}};
JP=function(G,e,r){r=r===void 0?{}:r;var Z=null,O=0;return function(){var M=_.Bw.apply(0,arguments),T=Date.now();O||r.leading!==!1||(O=T);var E=e-(T-O),b=this;E<=0||E>e?(Z&&(clearTimeout(Z),Z=null),O=T,G.apply(b,M)):Z||r.trailing===!1||(Z=setTimeout(function(){O=r.leading===!1?0:Date.now();Z=null;G.apply(b,M)},E))}};
xQ_=function(G,e,r,Z,O){O=O===void 0?window:O;var M=O.Object.getOwnPropertyDescriptor(G,e);O.Object.defineProperty(G,e,Z?r:{set:function(T){var E=this;setTimeout(function(){r.set.call(E,T)},0);
M&&M.set&&M.set.call(this,T)}});
return function(){return xQ_(G,e,M||{},!0)}};
PGF=function(G){var e=G.document,r,Z,O,M;return{left:e.scrollingElement?e.scrollingElement.scrollLeft:G.pageXOffset!==void 0?G.pageXOffset:e.documentElement.scrollLeft||(e==null?void 0:e.body)&&((r=mM(e.body))==null?void 0:r.scrollLeft)||(e==null?void 0:(Z=e.body)==null?void 0:Z.scrollLeft)||0,top:e.scrollingElement?e.scrollingElement.scrollTop:G.pageYOffset!==void 0?G.pageYOffset:(e==null?void 0:e.documentElement.scrollTop)||(e==null?void 0:e.body)&&((O=mM(e.body))==null?void 0:O.scrollTop)||(e==
null?void 0:(M=e.body)==null?void 0:M.scrollTop)||0}};
UQU=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
zFi=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
WTN=function(G){return G?G.nodeType===G.ELEMENT_NODE?G:mM(G):null};
BU=function(G,e,r,Z){if(!G)return!1;G=WTN(G);if(!G)return!1;try{if(typeof e==="string"){if(G.classList.contains(e)||Z&&G.closest("."+e)!==null)return!0}else if(uXS(G,e,Z))return!0}catch(O){}return r&&(G.matches(r)||Z&&G.closest(r)!==null)?!0:!1};
NTf=function(G,e,r){return G.tagName==="TITLE"&&r.headTitleMutations?!0:e.getId(G)===-2};
LTS=function(G,e){if(pt(G))return!1;var r=e.getId(G);return e.has(r)?(r=uY(G))&&r.nodeType===G.DOCUMENT_NODE?!1:r?LTS(r,e):!0:!0};
Gjq=function(){var G=G===void 0?window:G;"NodeList"in G&&!G.NodeList.prototype.forEach&&(G.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in G&&!G.DOMTokenList.prototype.forEach&&(G.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
ekf=function(G,e){return!(G.nodeName!=="LINK"||G.nodeType!==G.ELEMENT_NODE||!G.getAttribute||G.getAttribute("rel")!=="stylesheet"||!e.nodeMetaMap.get(G))};
Z9S=function(G){var e=null,r;"getRootNode"in G&&((r=rKs(G))==null?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&QH(rKs(G))&&(e=QH(rKs(G)));return e};
O9p=function(G){var e=G.ownerDocument;if(e){if(!(e=TTs(e,"contains")(G)))if(e=G.ownerDocument){for(var r;r=Z9S(G);)G=r;e=TTs(e,"contains")(G)}else e=!1}else e=!1;return e};
Mga=function(G,e){G.delete(e);nt(e).forEach(function(r){return Mga(G,r)})};
VgU=function(G,e){for(var r=[G];r.length;)G=r.pop(),e.has(G)||(e.add(G),nt(G).forEach(function(Z){return r.push(Z)}))};
hk4=function(G,e){G.size===0?G=!1:G=(e=uY(e))?G.has(e):!1;return G};
D1f=function(G,e){return G.size===0?!1:Tdp(G,e)};
Tdp=function(G,e){return(e=uY(e))?G.has(e)?!0:Tdp(G,e):!1};
xu=function(G){try{if("composedPath"in G){var e=G.composedPath();if(e.length)return e[0]}else if("path"in G&&G.path.length)return G.path[0]}catch(r){}return G&&G.target};
b94=function(G,e){var r=new i9F;PU.push(r);r.init(G);G=new (M7f("MutationObserver").constructor)(U0(r.processMutations.bind(r)));G.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return G};
wf4=function(G){var e=G.mousemoveCb;var r=G.sampling;var Z=G.doc;var O=G.mirror;if(r.mousemove===!1)return function(){};
var M=[],T,E=JP(U0(function(w){var q=Date.now()-T;e(M.map(function(t){t.timeOffset-=q;return t}),w);
M=[];T=null}),typeof r.mousemoveCallback==="number"?r.mousemoveCallback:500);
G=U0(JP(U0(function(w){var q=xu(w),t=w.changedTouches?w.changedTouches[0]:w,g=t.clientX;t=t.clientY;T||(T=vpp());M.push({x:g,y:t,id:O.getId(q),timeOffset:vpp()-T});E(typeof DragEvent!=="undefined"&&w instanceof DragEvent?12:w instanceof MouseEvent?1:6)}),typeof r.mousemove==="number"?r.mousemove:50,{trailing:!1}));
var b=[Fp("mousemove",G,Z),Fp("touchmove",G,Z),Fp("drag",G,Z)];return U0(function(){b.forEach(function(w){return w()})})};
$1y=function(G){var e=G.mouseInteractionCb;var r=G.doc;var Z=G.mirror;var O=G.blockClass;var M=G.blockSelector;G=G.sampling;if(G.mouseInteraction===!1)return function(){};
var T=G.mouseInteraction===!0||G.mouseInteraction===void 0?{}:G.mouseInteraction,E=[],b=null,w=function(q){return function(t){var g=xu(t);if(!BU(g,O,M,!0)){var l=null,X=q;if("pointerType"in t){switch(t.pointerType){case "mouse":l=0;break;case "touch":l=2;break;case "pen":l=1}l===2&&(zU[q]===1?X="TouchStart":zU[q]===0&&(X="TouchEnd"))}else t.changedTouches&&(l=2);if(l!==null){if(b=l,X.startsWith("Touch")&&l===2||X.startsWith("Mouse")&&l===0)l=null}else zU[q]===2&&(l=b,b=null);if(t=t.changedTouches?
t.changedTouches[0]:t)g=Z.getId(g),U0(e)(Object.assign({},{type:zU[X],id:g,x:t.clientX,y:t.clientY},l!==null&&{pointerType:l}))}}};
Object.keys(zU).filter(function(q){return Number.isNaN(Number(q))&&!q.endsWith("_Departed")&&T[q]!==!1}).forEach(function(q){var t=q.toLowerCase(),g=w(q);
if(window.PointerEvent)switch(zU[q]){case 1:case 0:t=t.replace("mouse","pointer");break;case 7:case 9:return}E.push(Fp(t,g,r))});
return U0(function(){E.forEach(function(q){return q()})})};
SAq=function(G){var e=G.scrollCb;var r=G.doc;var Z=G.mirror;var O=G.blockClass;var M=G.blockSelector;return Fp("scroll",U0(JP(U0(function(T){var E=xu(T);E&&!BU(E,O,M,!0)&&(T=Z.getId(E),E===r&&r.defaultView?(E=PGF(r.defaultView),e({id:T,x:E.left,y:E.top})):e({id:T,x:E.scrollLeft,y:E.scrollTop}))}),G.sampling.scroll||100)),r)};
qAf=function(G,e){var r=G.viewportResizeCb;var Z=-1,O=-1;return Fp("resize",U0(JP(U0(function(){var M=UQU(),T=zFi();if(Z!==M||O!==T)r({width:Number(T),height:Number(M)}),Z=M,O=T}),200)),e.win)};
lXs=function(G){function e(I){var C=xu(I),u=I.isTrusted,P=C&&C.tagName;C&&P==="OPTION"&&(C=mM(C));if(!(!C||!P||tgN.indexOf(P)<0||BU(C,T,E,!0)||C.classList.contains(b)||w&&C.matches(w))){var F=C.value,J=!1;I=$QF(C)||"";if(I==="radio"||I==="checkbox")J=C.checked;else if(q[P.toLowerCase()]||q[I])F=vV4({element:C,maskInputOptions:q,tagName:P,type:I,value:F,maskInputFn:t});r(C,l?{text:F,isChecked:J,userTriggered:u}:{text:F,isChecked:J});u=C.name;I==="radio"&&u&&J&&O.querySelectorAll('input[type="radio"][name="'+
u+'"]').forEach(function(U){if(U!==C){var e$=U.value;r(U,l?{text:e$,isChecked:!J,userTriggered:!1}:{text:e$,isChecked:!J})}})}}
function r(I,C){var u=gp_.get(I);u&&u.text===C.text&&u.isChecked===C.isChecked||(gp_.set(I,C),I=M.getId(I),U0(Z)(Object.assign({},C,{id:I})))}
var Z=G.inputCb;var O=G.doc;var M=G.mirror;var T=G.blockClass;var E=G.blockSelector;var b=G.ignoreClass;var w=G.ignoreSelector;var q=G.maskInputOptions;var t=G.maskInputFn;var g=G.sampling;var l=G.userTriggeredOnInput;var X=(g.input==="last"?["change"]:["input","change"]).map(function(I){return Fp(I,U0(e),O)}),H=O.defaultView;
if(!H)return function(){X.forEach(function(I){return I()})};
G=H.Object.getOwnPropertyDescriptor(H.HTMLInputElement.prototype,"value");g=[[H.HTMLInputElement.prototype,"value"],[H.HTMLInputElement.prototype,"checked"],[H.HTMLSelectElement.prototype,"value"],[H.HTMLTextAreaElement.prototype,"value"],[H.HTMLSelectElement.prototype,"selectedIndex"],[H.HTMLOptionElement.prototype,"selected"]];G&&G.set&&X.push.apply(X,_.mY(g.map(function(I){return xQ_(I[0],I[1],{set:function(){U0(e)({target:this,isTrusted:!1})}},!1,H)})));
return U0(function(){X.forEach(function(I){return I()})})};
jU$=function(G){var e=[],r,Z,O,M;RkA("CSSGroupingRule")&&((r=G.parentRule)==null?void 0:(Z=r.constructor)==null?void 0:Z.name)==="CSSGroupingRule"||RkA("CSSMediaRule")&&G.parentRule instanceof CSSMediaRule||RkA("CSSSupportsRule")&&G.parentRule instanceof CSSSupportsRule||RkA("CSSConditionRule")&&((O=G.parentRule)==null?void 0:(M=O.constructor)==null?void 0:M.name)==="CSSConditionRule"?(G=Array.from(G.parentRule.cssRules).indexOf(G),e.unshift(G)):G.parentStyleSheet&&(G=Array.from(G.parentStyleSheet.cssRules).indexOf(G),
e.unshift(G));return e};
WU=function(G,e,r){var Z,O;if(!G)return{};G.ownerNode?Z=e.getId(G.ownerNode):O=r.getId(G);return{styleId:O,id:Z}};
XfS=function(G,e){var r=G.styleSheetRuleCb;var Z=G.mirror;var O=G.stylesheetManager;var M=e.win;if(!M.CSSStyleSheet||!M.CSSStyleSheet.prototype)return function(){};
var T=M.CSSStyleSheet.prototype.insertRule;M.CSSStyleSheet.prototype.insertRule=new NN(T,{apply:U0(function(g,l,X){var H=_.h(X),I=H.next().value;H=H.next().value;var C=WU(l,Z,O.styleMirror),u=C.id;C=C.styleId;(u&&u!==-1||C&&C!==-1)&&r({id:u,styleId:C,adds:[{rule:I,index:H}]});return g.apply(l,X)})});
M.CSSStyleSheet.prototype.addRule=function(g,l,X){X=X===void 0?this.cssRules.length:X;return M.CSSStyleSheet.prototype.insertRule.apply(this,[g+" { "+l+" }",X])};
var E=M.CSSStyleSheet.prototype.deleteRule;M.CSSStyleSheet.prototype.deleteRule=new NN(E,{apply:U0(function(g,l,X){var H=_.h(X).next().value,I=WU(l,Z,O.styleMirror),C=I.id;I=I.styleId;(C&&C!==-1||I&&I!==-1)&&r({id:C,styleId:I,removes:[{index:H}]});return g.apply(l,X)})});
M.CSSStyleSheet.prototype.removeRule=function(g){return M.CSSStyleSheet.prototype.deleteRule.apply(this,[g])};
if(M.CSSStyleSheet.prototype.replace){var b=M.CSSStyleSheet.prototype.replace;M.CSSStyleSheet.prototype.replace=new NN(b,{apply:U0(function(g,l,X){var H=_.h(X).next().value,I=WU(l,Z,O.styleMirror),C=I.id;I=I.styleId;(C&&C!==-1||I&&I!==-1)&&r({id:C,styleId:I,replace:H});return g.apply(l,X)})})}if(M.CSSStyleSheet.prototype.replaceSync){var w=M.CSSStyleSheet.prototype.replaceSync;
M.CSSStyleSheet.prototype.replaceSync=new NN(w,{apply:U0(function(g,l,X){var H=_.h(X).next().value,I=WU(l,Z,O.styleMirror),C=I.id;I=I.styleId;(C&&C!==-1||I&&I!==-1)&&r({id:C,styleId:I,replaceSync:H});return g.apply(l,X)})})}var q={};
aXy("CSSGroupingRule")?q.CSSGroupingRule=M.CSSGroupingRule:(aXy("CSSMediaRule")&&(q.CSSMediaRule=M.CSSMediaRule),aXy("CSSConditionRule")&&(q.CSSConditionRule=M.CSSConditionRule),aXy("CSSSupportsRule")&&(q.CSSSupportsRule=M.CSSSupportsRule));var t={};Object.entries(q).forEach(function(g){var l=_.h(g);g=l.next().value;l=l.next().value;t[g]={insertRule:l.prototype.insertRule,deleteRule:l.prototype.deleteRule};l.prototype.insertRule=new NN(t[g].insertRule,{apply:U0(function(X,H,I){var C=_.h(I),u=C.next().value;
C=C.next().value;var P=WU(H.parentStyleSheet,Z,O.styleMirror),F=P.id;P=P.styleId;(F&&F!==-1||P&&P!==-1)&&r({id:F,styleId:P,adds:[{rule:u,index:[].concat(_.mY(jU$(H)),[C||0])}]});return X.apply(H,I)})});
l.prototype.deleteRule=new NN(t[g].deleteRule,{apply:U0(function(X,H,I){var C=_.h(I).next().value,u=WU(H.parentStyleSheet,Z,O.styleMirror),P=u.id;u=u.styleId;(P&&P!==-1||u&&u!==-1)&&r({id:P,styleId:u,removes:[{index:[].concat(_.mY(jU$(H)),[C])}]});return X.apply(H,I)})})});
return U0(function(){M.CSSStyleSheet.prototype.insertRule=T;M.CSSStyleSheet.prototype.deleteRule=E;b&&(M.CSSStyleSheet.prototype.replace=b);w&&(M.CSSStyleSheet.prototype.replaceSync=w);Object.entries(q).forEach(function(g){var l=_.h(g);g=l.next().value;l=l.next().value;l.prototype.insertRule=t[g].insertRule;l.prototype.deleteRule=t[g].deleteRule})})};
fX4=function(G,e){var r=G.mirror;var Z=G.stylesheetManager;var O=null;O=e.nodeName==="#document"?r.getId(e):r.getId(QH(e));var M,T,E;G=e.nodeName==="#document"?(M=e.defaultView)==null?void 0:M.Document:(T=e.ownerDocument)==null?void 0:(E=T.defaultView)==null?void 0:E.ShadowRoot;var b=(G==null?0:G.prototype)?Object.getOwnPropertyDescriptor(G==null?void 0:G.prototype,"adoptedStyleSheets"):void 0;if(O===null||O===-1||!G||!b)return function(){};
Object.defineProperty(e,"adoptedStyleSheets",{configurable:b.configurable,enumerable:b.enumerable,get:function(){var w;return(w=b.get)==null?void 0:w.call(this)},
set:function(w){var q,t=(q=b.set)==null?void 0:q.call(this,w);if(O!==null&&O!==-1)try{KIq(Z,w,O)}catch(g){}return t}});
return U0(function(){Object.defineProperty(e,"adoptedStyleSheets",{configurable:b.configurable,enumerable:b.enumerable,get:b.get,set:b.set})})};
kja=function(G,e){var r=G.styleDeclarationCb;var Z=G.mirror;var O=G.ignoreCSSAttributes;var M=G.stylesheetManager;var T=e.win;var E=T.CSSStyleDeclaration.prototype.setProperty;T.CSSStyleDeclaration.prototype.setProperty=new NN(E,{apply:U0(function(w,q,t){var g=_.h(t),l=g.next().value,X=g.next().value;g=g.next().value;if(O.has(l))return E.apply(q,[l,X,g]);var H,I=WU((H=q.parentRule)==null?void 0:H.parentStyleSheet,Z,M.styleMirror);H=I.id;I=I.styleId;(H&&H!==-1||I&&I!==-1)&&r({id:H,styleId:I,set:{property:l,
value:X,priority:g},index:jU$(q.parentRule)});return w.apply(q,t)})});
var b=T.CSSStyleDeclaration.prototype.removeProperty;T.CSSStyleDeclaration.prototype.removeProperty=new NN(b,{apply:U0(function(w,q,t){var g=_.h(t).next().value;if(O.has(g))return b.apply(q,[g]);var l,X=WU((l=q.parentRule)==null?void 0:l.parentStyleSheet,Z,M.styleMirror);l=X.id;X=X.styleId;(l&&l!==-1||X&&X!==-1)&&r({id:l,styleId:X,remove:{property:g},index:jU$(q.parentRule)});return w.apply(q,t)})});
return U0(function(){T.CSSStyleDeclaration.prototype.setProperty=E;T.CSSStyleDeclaration.prototype.removeProperty=b})};
H9y=function(G){var e=G.mediaInteractionCb;var r=G.blockClass;var Z=G.blockSelector;var O=G.mirror;var M=G.sampling;G=G.doc;var T=U0(function(b){return JP(U0(function(w){if((w=xu(w))&&!BU(w,r,Z,!0)){var q=w.currentTime,t=w.volume,g=w.muted,l=w.playbackRate,X=w.loop;e({type:b,id:O.getId(w),currentTime:q,volume:t,muted:g,playbackRate:l,loop:X})}}),M.media||500)}),E=[Fp("play",T(0),G),
Fp("pause",T(1),G),Fp("seeked",T(2),G),Fp("volumechange",T(3),G),Fp("ratechange",T(4),G)];return U0(function(){E.forEach(function(b){return b()})})};
d14=function(G){var e=G.fontCb;G=G.doc;var r=G.defaultView;if(!r)return function(){};
var Z=[],O=new WeakMap,M=r.FontFace;r.FontFace=function(T,E,b){var w=new M(T,E,b);O.set(w,{family:T,buffer:typeof E!=="string",descriptors:b,fontSource:typeof E==="string"?E:JSON.stringify(Array.from(new Uint8Array(E)))});return w};
G=s0(G.fonts,"add",function(T){return function(E){setTimeout(U0(function(){var b=O.get(E);b&&(e(b),O.delete(E))}),0);
return T.apply(this,[E])}});
Z.push(function(){r.FontFace=M});
Z.push(G);return U0(function(){Z.forEach(function(T){return T()})})};
op$=function(G){var e=G.doc,r=G.mirror,Z=G.blockClass,O=G.blockSelector,M=G.selectionCb,T=!0;G=U0(function(){var E=e.getSelection();if(E&&!(T&&(E==null?0:E.isCollapsed))){T=E.isCollapsed||!1;for(var b=[],w=E.rangeCount||0,q=0;q<w;q++){var t=E.getRangeAt(q),g=t.startContainer,l=t.startOffset,X=t.endContainer;t=t.endOffset;BU(g,Z,O,!0)||BU(X,Z,O,!0)||b.push({start:r.getId(g),startOffset:l,end:r.getId(X),endOffset:t})}M({ranges:b})}});
G();return Fp("selectionchange",G)};
sUS=function(G){var e=G.doc;var r=G.customElementCb;return(G=e.defaultView)&&G.customElements?s0(G.customElements,"define",function(Z){return function(O,M,T){try{r({define:{name:O}})}catch(E){console.warn("Custom element callback failed for "+O)}return Z.apply(this,[O,M,T])}}):function(){}};
QUA=function(G,e){var r=G.mutationCb,Z=G.mousemoveCb,O=G.mouseInteractionCb,M=G.scrollCb,T=G.viewportResizeCb,E=G.inputCb,b=G.mediaInteractionCb,w=G.styleSheetRuleCb,q=G.styleDeclarationCb,t=G.canvasMutationCb,g=G.fontCb,l=G.selectionCb,X=G.customElementCb;G.mutationCb=function(){var H=_.Bw.apply(0,arguments);e.mutation&&e.mutation.apply(e,_.mY(H));r.apply(null,_.mY(H))};
G.mousemoveCb=function(){var H=_.Bw.apply(0,arguments);e.mousemove&&e.mousemove.apply(e,_.mY(H));Z.apply(null,_.mY(H))};
G.mouseInteractionCb=function(){var H=_.Bw.apply(0,arguments);e.mouseInteraction&&e.mouseInteraction.apply(e,_.mY(H));O.apply(null,_.mY(H))};
G.scrollCb=function(){var H=_.Bw.apply(0,arguments);e.scroll&&e.scroll.apply(e,_.mY(H));M.apply(null,_.mY(H))};
G.viewportResizeCb=function(){var H=_.Bw.apply(0,arguments);e.viewportResize&&e.viewportResize.apply(e,_.mY(H));T.apply(null,_.mY(H))};
G.inputCb=function(){var H=_.Bw.apply(0,arguments);e.input&&e.input.apply(e,_.mY(H));E.apply(null,_.mY(H))};
G.mediaInteractionCb=function(){var H=_.Bw.apply(0,arguments);e.mediaInteaction&&e.mediaInteaction.apply(e,_.mY(H));b.apply(null,_.mY(H))};
G.styleSheetRuleCb=function(){var H=_.Bw.apply(0,arguments);e.styleSheetRule&&e.styleSheetRule.apply(e,_.mY(H));w.apply(null,_.mY(H))};
G.styleDeclarationCb=function(){var H=_.Bw.apply(0,arguments);e.styleDeclaration&&e.styleDeclaration.apply(e,_.mY(H));q.apply(null,_.mY(H))};
G.canvasMutationCb=function(){var H=_.Bw.apply(0,arguments);e.canvasMutation&&e.canvasMutation.apply(e,_.mY(H));t.apply(null,_.mY(H))};
G.fontCb=function(){var H=_.Bw.apply(0,arguments);e.font&&e.font.apply(e,_.mY(H));g.apply(null,_.mY(H))};
G.selectionCb=function(){var H=_.Bw.apply(0,arguments);e.selection&&e.selection.apply(e,_.mY(H));l.apply(null,_.mY(H))};
G.customElementCb=function(){var H=_.Bw.apply(0,arguments);e.customElement&&e.customElement.apply(e,_.mY(H));X.apply(null,_.mY(H))}};
IXq=function(G,e){e=e===void 0?{}:e;var r=G.doc.defaultView;if(!r)return function(){};
QUA(G,e);var Z;G.recordDOM&&(Z=b94(G,G.doc));var O=wf4(G),M=$1y(G),T=SAq(G),E=qAf(G,{win:r}),b=lXs(G),w=H9y(G),q=function(){},t=function(){},g=function(){},l=function(){};
G.recordDOM&&(q=XfS(G,{win:r}),t=fX4(G,G.doc),g=kja(G,{win:r}),G.collectFonts&&(l=d14(G)));var X=op$(G),H=sUS(G),I=[];G=_.h(G.plugins);for(e=G.next();!e.done;e=G.next())e=e.value,I.push(e.observer(e.callback,r,e.options));return U0(function(){PU.forEach(function(u){return u.reset()});
var C;(C=Z)==null||C.disconnect();O();M();T();E();b();w();q();t();g();l();X();H();I.forEach(function(u){return u()})})};
RkA=function(G){return typeof window[G]!=="undefined"};
aXy=function(G){return!!(typeof window[G]!=="undefined"&&window[G].prototype&&"insertRule"in window[G].prototype&&"deleteRule"in window[G].prototype)};
pfy=function(G){G=new Uint8Array(G);for(var e="",r=0;r<G.byteLength;r++)e+=String.fromCharCode(G[r]);return btoa(e)};
CmU=function(G,e,r){if(G instanceof Array)return G.map(function(O){return CmU(O,e,r)});
if(G!==null){if(G instanceof Float32Array||G instanceof Float64Array||G instanceof Int32Array||G instanceof Uint32Array||G instanceof Uint8Array||G instanceof Uint16Array||G instanceof Int16Array||G instanceof Int8Array||G instanceof Uint8ClampedArray)return{rr_type:G.constructor.name,args:[Object.values(G)]};if(G instanceof ArrayBuffer){var Z=G.constructor.name;G=pfy(G);return{rr_type:Z,base64:G}}if(G instanceof DataView)return{rr_type:G.constructor.name,args:[CmU(G.buffer,e,r),G.byteOffset,G.byteLength]};
if(G instanceof HTMLImageElement)return{rr_type:G.constructor.name,src:G.src};if(G instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:G.toDataURL()};if(G instanceof ImageData)return{rr_type:G.constructor.name,args:[CmU(G.data,e,r),G.width,G.height]};if(uly(G,e)||typeof G==="object")return Z=G.constructor.name,G=np4(G,e,r),{rr_type:Z,index:G}}return G};
cKa=function(G,e,r,Z){for(var O=[],M=_.h(Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype)),T=M.next(),E={};!T.done;E={prop$jscomp$58:void 0},T=M.next()){E.prop$jscomp$58=T.value;try{if(typeof e.CanvasRenderingContext2D.prototype[E.prop$jscomp$58]==="function"){var b=s0(e.CanvasRenderingContext2D.prototype,E.prop$jscomp$58,function(w){return function(q){return function(){var t=_.Bw.apply(0,arguments),g=this;BU(this.canvas,r,Z,!0)||setTimeout(function(){var l=m1$(t,e,g);G(g.canvas,{type:Lt["2D"],
property:w.prop$jscomp$58,args:l})},0);
return q.apply(this,t)}}}(E));
O.push(b)}}catch(w){T=xQ_(e.CanvasRenderingContext2D.prototype,E.prop$jscomp$58,{set:function(q){return function(t){G(this.canvas,{type:Lt["2D"],property:q.prop$jscomp$58,args:[t],setter:!0})}}(E)}),O.push(T)}}return function(){O.forEach(function(w){return w()})}};
YAq=function(G,e,r,Z){var O=[];try{var M=s0(G.HTMLCanvasElement.prototype,"getContext",function(T){return function(E){var b=_.Bw.apply(1,arguments);if(!BU(this,e,r,!0)){var w=E==="experimental-webgl"?"webgl":E;"__context"in this||(this.__context=w);Z&&["webgl","webgl2"].includes(w)&&(b[0]&&typeof b[0]==="object"?(w=b[0],w.preserveDrawingBuffer||(w.preserveDrawingBuffer=!0)):b.splice(0,1,{preserveDrawingBuffer:!0}))}return T.apply(this,[E].concat(_.mY(b)))}});
O.push(M)}catch(T){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){O.forEach(function(T){return T()})}};
yKy=function(G,e,r,Z,O,M){for(var T=[],E=_.h(Object.getOwnPropertyNames(G)),b=E.next(),w={};!b.done;w={prop$jscomp$59:void 0},b=E.next())if(w.prop$jscomp$59=b.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(w.prop$jscomp$59))try{if(typeof G[w.prop$jscomp$59]==="function"){var q=s0(G,w.prop$jscomp$59,function(t){return function(g){return function(){var l=_.Bw.apply(0,arguments),X=g.apply(this,l);np4(X,M,this);"tagName"in this.canvas&&!BU(this.canvas,Z,O,!0)&&(l=
m1$(l,M,this),r(this.canvas,{type:e,property:t.prop$jscomp$59,args:l}));return X}}}(w));
T.push(q)}}catch(t){b=xQ_(G,w.prop$jscomp$59,{set:function(g){return function(l){r(this.canvas,{type:e,property:g.prop$jscomp$59,args:[l],setter:!0})}}(w)}),T.push(b)}return T};
AKs=function(G,e,r,Z){var O=[];O.push.apply(O,_.mY(yKy(e.WebGLRenderingContext.prototype,1,G,r,Z,e)));typeof e.WebGL2RenderingContext!=="undefined"&&O.push.apply(O,_.mY(yKy(e.WebGL2RenderingContext.prototype,2,G,r,Z,e)));return function(){O.forEach(function(M){return M()})}};
O7q=function(G){var e=G=G===void 0?{}:G,r=e.emit,Z=e.checkoutEveryNms,O=e.checkoutEveryNth,M=e.blockClass===void 0?"rr-block":e.blockClass,T=e.blockSelector===void 0?null:e.blockSelector,E=e.ignoreClass===void 0?"rr-ignore":e.ignoreClass,b=e.ignoreSelector===void 0?null:e.ignoreSelector,w=e.maskTextClass===void 0?"rr-mask":e.maskTextClass,q=e.maskTextSelector===void 0?null:e.maskTextSelector,t=e.inlineStylesheet===void 0?!0:e.inlineStylesheet,g=e.maskAllInputs,l=e.maskInputOptions,X=e.slimDOMOptions,
H=e.maskInputFn,I=e.maskTextFn,C=e.hooks,u=e.packFn,P=e.sampling===void 0?{}:e.sampling,F=e.dataURLOptions===void 0?{}:e.dataURLOptions,J=e.mousemoveWait,U=e.recordDOM===void 0?!0:e.recordDOM,e$=e.recordCanvas===void 0?!1:e.recordCanvas,Dq=e.recordCrossOriginIframes===void 0?!1:e.recordCrossOriginIframes,bF=e.recordAfter===void 0?G.recordAfter==="DOMContentLoaded"?G.recordAfter:"load":e.recordAfter,Kf=e.userTriggeredOnInput===void 0?!1:e.userTriggeredOnInput,ti=e.collectFonts===void 0?!1:e.collectFonts,
Ry=e.inlineImages===void 0?!1:e.inlineImages,nf=e.plugins,k4=e.keepIframeSrcFn===void 0?function(){return!1}:e.keepIframeSrcFn,SE=e.ignoreCSSAttributes===void 0?new Set([]):e.ignoreCSSAttributes;
Gw=e.errorHandler;var Fn=Dq?window.parent===window:!0,kw=!1;if(!Fn)try{window.parent.document&&(kw=!1)}catch(by){kw=!0}if(Fn&&!r)throw Error("$e");if(!Fn&&!kw)return function(){};
J!==void 0&&P.mousemove===void 0&&(P.mousemove=J);eW.reset();var Lf=g===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:l!==void 0?l:{password:!0},vc=X===!0||X==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:X==="all",headMetaDescKeywords:X==="all",headTitleMutations:X==="all"}:
X?X:{};Gjq();var IW,Hc=0,a8=function(by){for(var ea=_.h(nf||[]),U_=ea.next();!U_.done;U_=ea.next())U_=U_.value,U_.eventProcessor&&(by=U_.eventProcessor(by));u&&!kw&&(by=u(by));return by};
ro=function(by,ea){by.timestamp=vpp();var U_;((U_=PU[0])==null?0:U_.isFrozen())&&by.type!==2&&(by.type!==3||by.data.source!==0)&&PU.forEach(function(ly){return ly.unfreeze()});
Fn?r==null||r(a8(by),ea):kw&&(ea={type:"rrweb",event:a8(by),origin:window.location.origin,isCheckout:ea},window.parent.postMessage(ea,"*"));by.type===2?(IW=by,Hc=0):by.type!==3||by.data.source===0&&by.data.isAttachIframe||(Hc++,by=Z&&by.timestamp-IW.timestamp>Z,(O&&Hc>=O||by)&&FIq(!0))};
var t2=function(by){ro({type:3,data:Object.assign({},{source:0},by)})},hi=function(by){return ro({type:3,
data:Object.assign({},{source:3},by)})},rj=function(by){return ro({type:3,
data:Object.assign({},{source:9},by)})},tS=new JKp({mutationCb:t2,
adoptedStyleSheetCb:function(by){return ro({type:3,data:Object.assign({},{source:15},by)})}}),OV=new Bdf({mirror:eW,
mutationCb:t2,stylesheetManager:tS,recordCrossOriginIframes:Dq,wrappedEmit:ro});G=_.h(nf||[]);for(e=G.next();!e.done;e=G.next())e=e.value,e.getMirror&&e.getMirror({nodeMirror:eW,crossOriginIframeMirror:OV.crossOriginIframeMirror,crossOriginIframeStyleMirror:OV.crossOriginIframeStyleMirror});var RW=new x1$;Pm$=new U1U({recordCanvas:e$,mutationCb:rj,win:window,blockClass:M,blockSelector:T,mirror:eW,sampling:P.canvas,dataURLOptions:F});var Zl=new zk$({mutationCb:t2,scrollCb:hi,bypassOptions:{blockClass:M,
blockSelector:T,maskTextClass:w,maskTextSelector:q,inlineStylesheet:t,maskInputOptions:Lf,dataURLOptions:F,maskTextFn:I,maskInputFn:H,recordCanvas:e$,inlineImages:Ry,sampling:P,slimDOMOptions:vc,iframeManager:OV,stylesheetManager:tS,canvasManager:Pm$,keepIframeSrcFn:k4,processedNodeManager:RW},mirror:eW});FIq=function(by){by=by===void 0?!1:by;if(U){ro({type:4,data:{href:window.location.href,width:zFi(),height:UQU()}},by);tS.reset();Zl.init();PU.forEach(function(U_){return U_.lock()});
var ea=BTf({mirror:eW,blockClass:M,blockSelector:T,maskTextClass:w,maskTextSelector:q,inlineStylesheet:t,maskAllInputs:Lf,maskTextFn:I,maskInputFn:H,slimDOM:vc,dataURLOptions:F,recordCanvas:e$,inlineImages:Ry,onSerialize:function(U_){U_.nodeName==="IFRAME"&&eW.nodeMetaMap.get(U_)&&WIa(OV,U_);ekf(U_,eW)&&NdS(tS,U_);U_&&Id(U_)&&LIy(Zl,Id(U_),document)},
onIframeLoad:function(U_,ly){GzN(OV,U_,ly);U_.contentWindow&&U_.contentDocument&&e9f(Zl,U_.contentWindow.Element,U_.contentDocument)},
onStylesheetLoad:function(U_,ly){rQ$(tS,U_,ly)},
keepIframeSrcFn:k4});ea?(ro({type:2,data:{node:ea,initialOffset:PGF(window)}},by),PU.forEach(function(U_){return U_.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&KIq(tS,document.adoptedStyleSheets,eW.getId(document))):console.warn("Failed to snapshot the document")}};
try{var pm=[],Bc=function(by){var ea;return U0(IXq)({mutationCb:t2,mousemoveCb:function(U_,ly){return ro({type:3,data:{source:ly,positions:U_}})},
mouseInteractionCb:function(U_){return ro({type:3,data:Object.assign({},{source:2},U_)})},
scrollCb:hi,viewportResizeCb:function(U_){return ro({type:3,data:Object.assign({},{source:4},U_)})},
inputCb:function(U_){return ro({type:3,data:Object.assign({},{source:5},U_)})},
mediaInteractionCb:function(U_){return ro({type:3,data:Object.assign({},{source:7},U_)})},
styleSheetRuleCb:function(U_){return ro({type:3,data:Object.assign({},{source:8},U_)})},
styleDeclarationCb:function(U_){return ro({type:3,data:Object.assign({},{source:13},U_)})},
canvasMutationCb:rj,fontCb:function(U_){return ro({type:3,data:Object.assign({},{source:10},U_)})},
selectionCb:function(U_){ro({type:3,data:Object.assign({},{source:14},U_)})},
customElementCb:function(U_){ro({type:3,data:Object.assign({},{source:16},U_)})},
blockClass:M,ignoreClass:E,ignoreSelector:b,maskTextClass:w,maskTextSelector:q,maskInputOptions:Lf,inlineStylesheet:t,sampling:P,recordDOM:U,recordCanvas:e$,inlineImages:Ry,userTriggeredOnInput:Kf,collectFonts:ti,doc:by,maskInputFn:H,maskTextFn:I,keepIframeSrcFn:k4,blockSelector:T,slimDOMOptions:vc,dataURLOptions:F,mirror:eW,iframeManager:OV,stylesheetManager:tS,shadowDomManager:Zl,processedNodeManager:RW,canvasManager:Pm$,ignoreCSSAttributes:SE,plugins:(nf==null?void 0:(ea=nf.filter(function(U_){return U_.observer}))==
null?void 0:ea.map(function(U_){return{observer:U_.observer,
options:U_.options,callback:function(ly){return ro({type:6,data:{plugin:U_.name,payload:ly}})}}}))||[]},C)};
Z7$(OV,function(by){try{pm.push(Bc(by.contentDocument))}catch(ea){console.warn(ea)}});
var wj=function(){FIq();pm.push(Bc(document))};
document.readyState==="interactive"||document.readyState==="complete"?wj():(pm.push(Fp("DOMContentLoaded",function(){ro({type:0,data:{}});bF==="DOMContentLoaded"&&wj()})),pm.push(Fp("load",function(){ro({type:1,
data:{}});bF==="load"&&wj()},window)));
return function(){pm.forEach(function(by){try{by()}catch(ea){String(ea).toLowerCase().includes("cross-origin")||console.warn(ea)}});
RW.destroy();Gw=void 0}}catch(by){console.warn(by)}};
_.f=function(G,e){e=Lj(zq(e));G.innerHTML=e};
h94=function(G){var e=MfU;e||(e=Vfi(),e=MfU=_.c2.transpose(e));e=e[G];return typeof e==="string"?e:_.Zz(G)};
Tgi=function(G){G=String(G).toLowerCase();var e=Vfi()[G];return typeof e==="string"?e:_.OW(G)};
DpS=function(G){G=G.toLowerCase();G=Vfi()[G];return typeof G==="string"?G:null};
Vfi=function(){if(!Evy){for(var G=Object.assign({},i7y),e=_.h(b7U),r=e.next();!r.done;r=e.next())r=r.value,G[r.toLowerCase()]=r;Evy=G}return Evy};
$pF=function(G,e){var r=window.customElements;return r&&r.get(G)||vvi[G]===!0?2:e.name==="HTMLUnknownElement"?1:e.name==="HTMLElement"&&wvN.test(G)?3:0};
tfU=function(G,e){switch(e){case "innerHTML":return SB4(G)===1?2:null;case "textContent":return G=SB4(G),G===1||G===6?1:null;default:var r,Z;return(Z=(r=qBi[G.localName])==null?void 0:r[e])!=null?Z:null}};
SB4=function(G){var e=G.localName,r=$pF(e,G.constructor);switch(r){case 0:case 1:return gv_(e,G);case 3:case 2:return 1;default:_.zC(r,"got an unknown element classification")}};
gv_=function(G,e){var r=Object.hasOwnProperty.call(lFp,G)?lFp[G]:null;return r!==null?r:Object.hasOwnProperty.call(R9f,G)&&e instanceof SVGElement?R9f[G]:null};
jsA=function(G,e){return e};
Xva=function(G){return(G=G.split(aFS,2))?{url:G[0],metadata:G[1]}:null};
fFU=function(G){var e=String(G.url).replace(K9s,encodeURIComponent);if(G=G.metadata){K9s.lastIndex=0;if(K9s.test(G))return null;e+=" "+G}return e};
ovf=function(G){function e(w){var q=w.localName;if(!w.getAttribute("is")&&$pF(q,w.constructor)===2){var t;return(t=b)!=null?t:b=document.createElement("polyresinuncustomized")}(w=E[q])||(w=E[q]=document.createElement(q));return w}
var r=G.reportHandler||void 0,Z=G.safeTypesBridge||kzi,O=/^$/;if(G=G.allowedIdentifierPrefixes){G=_.h(G);for(var M=G.next();!M.done;M=G.next())O=new RegExp(O.source+"|^"+_.H7p(M.value))}r&&r(!1,"initResin",null);var T=dpp(O,Z,r),E={},b=null;return function(w,q,t){var g=w.nodeType;if(g!==Node.ELEMENT_NODE){if(g===Node.TEXT_NODE){q=w.parentElement;t=!q;if(q&&q.nodeType===Node.ELEMENT_NODE){g=q.localName;var l=$pF(g,q.constructor);switch(l){case 0:case 1:q=gv_(g,q);t=q===1||q===6;break;case 3:case 2:t=
!0;break;default:_.zC(l,"got an unknown element classification")}}if(t)return function(C){return""+Z(C,"STRING",C)}}return function(C){if(!C&&C!==document.all)return C;
r&&r(!0,"Failed to sanitize "+(w.parentElement&&w.parentElement.nodeName)+" #text node to value "+C,w.parentElement);return Mz}}var X=w.localName;
g=e(w);var H=null;switch(t){case "attribute":if(Tgi(q)in g)break;return function(C){return C};
case "property":if(q in g){H=tfU(g,q);break}if((l=DpS(q))&&l in g)break;return function(C){return C};
default:_.zC(t,"got an unknown resin type, expected either 'property' or 'attribute'")}var I=t==="attribute"?q.toLowerCase():h94(q);H||(H=k2_(X,I,function(C){var u=w.getAttribute(C);return!u||/[\[\{]/.test(C)?null:u}));
return function(C){var u=V5,P=null;if(!C&&C!==document.all)return C;if(H!=null){var F=T[H],J=F.safeType;P=F.safeReplacement;J&&(u=Z(C,J,V5));u===V5&&(F.filterString?(u=String(Z(C,"STRING",C)),u=F.filterString(X,I,u)):F.filterRaw&&(u=F.filterRaw(X,I,C,w)),u===P&&(u=V5))}u===V5&&(u=P||Mz,r&&r(!0,"Failed to sanitize attribute of <"+X+">: <"+X+" "+I+'="'+C+'">',w));return u}}};
dpp=function(G,e,r){return[,{filterRaw:function(Z,O,M){return M},
filterString:void 0,safeReplacement:void 0,safeType:void 0},{filterRaw:void 0,filterString:void 0,safeReplacement:void 0,safeType:"HTML"},{filterRaw:void 0,filterString:void 0,safeReplacement:ssy,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:ssy,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Mz,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:QsS,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(Z,O,M){M=
String(M).toLowerCase();return osi(Z,O,M)?M:Mz},
safeReplacement:Mz,safeType:void 0},,{filterRaw:void 0,filterString:function(Z,O,M){return G.test(M)?M:Mz},
safeReplacement:Mz,safeType:"CONSTANT"},{filterRaw:function(Z,O,M,T){if(typeof M==="string")var E=(E=M.match(IF_))?E.map(Xva).filter(Boolean):[];else if(Array.isArray(M))E=M;else return ssy;var b=E;E=[];var w=[],q={};if(Array.isArray(b))for(var t=0,g=b.length;t<g;++t){var l=b[t],X=l&&l.url;if(X){var H=e(X,"URL",q);if(H){var I=H!==q;(I?E:w).push({url:I?H:X,metadata:l.metadata})}}}else w.push(b);b=w.length?JSON.stringify(w):null;w=V5;if(E.length){if(!Array.isArray(E))throw Error();w=E.map(fFU).filter(Boolean).join(" , ")||
V5}b&&r&&r(!0,"Failed to sanitize attribute value of <"+Z+">: <"+Z+" "+O+'="'+M+'">: '+b,T);return w===V5?ssy:w},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
pvU=function(G){var e=ovf(G);return function(r,Z,O,M){return M||M===document.all?e(r,Z,O)(M):M}};
hb=function(G,e){function r(){function O(E,b,w){for(b=Reflect.getMetadata("parameters",E)||[];b.length<=w;)b.push(null);b[w]=b[w]||[];b[w].push(T);Reflect.defineMetadata(b,E);return E}
var M=_.Bw.apply(0,arguments);if(this instanceof r)return Z.apply(this,M),this;var T=new (Function.prototype.bind.apply(r,[null].concat(_.mY(M))));O.annotation=T;return O}
var Z=Clq(e);r.prototype.toString=function(){return"@"+G};
return r.annotationCls=r};
Clq=function(G){return function(){var e=_.Bw.apply(0,arguments),r=this;G.forEach(function(Z,O){O=e[O];if(Array.isArray(Z))r[Z[0]]=O&&O!==void 0?O:Z[1];else for(var M in Z)r[M]=O&&O[M]!==void 0?O[M]:Z[M]})}};
uWs=function(G){return G!==void 0&&G!==null};
Tw=function(G){if(typeof G==="string")return G;if(G===void 0||G===null)return""+G;if(G.overriddenName)return G.overriddenName;if(G.name)return G.name;G=G.toString();var e=G.indexOf("\n");return e===-1?G:G.substring(0,e)};
nv4=function(G){G.__forward_ref__=nv4;G.toString=function(){return Tw(this())};
return G};
Dz=function(G){return typeof G==="function"&&G.hasOwnProperty("__forward_ref__")&&G.__forward_ref__===nv4?G():G};
mpp=function(G){return G?G.map(function(e){return new (Function.prototype.bind.apply(e.type.annotationCls,[null].concat(_.mY(e.args?e.args:[]))))}):[]};
cQN=function(G){for(var e=[],r=0;r<G.length;++r){if(e.indexOf(G[r])>-1){e.push(G[r]);break}e.push(G[r])}return e};
YBU=function(G){return G.length>1?" ("+cQN(G.slice().reverse()).map(function(e){return Tw(e.token)}).join(" -> ")+")":""};
AQi=function(G,e,r,Z){if(Z){var O=Error("cf``"+(Z instanceof Error?Z.message:Z));O.ngOriginalError=Z}else O=Error();O.addKey=yQq;O.keys=[e];O.injectors=[G];O.constructResolvingMessage=r;O.message=O.constructResolvingMessage();O.ngOriginalError=Z;return O};
yQq=function(G,e){this.injectors.push(G);this.keys.push(e);this.message=this.constructResolvingMessage()};
F9$=function(G,e){return AQi(G,e,function(){return"No provider for "+Tw(this.keys[0].token)+"!"+YBU(this.keys)})};
JQq=function(G,e){return AQi(G,e,function(){return"Cannot instantiate cyclic dependency!"+YBU(this.keys)})};
Bgs=function(G,e,r){return AQi(G,r,function(){var Z=Tw(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+Z+"!"+YBU(this.keys)+"."},e)};
xp_=function(G,e){for(var r=[],Z=0,O=e.length;Z<O;Z++){var M=e[Z];M&&M.length!=0?r.push(M.map(Tw).join(" ")):r.push("?")}return Error("gf`"+Tw(G)+"`"+r.join(", ")+"`"+Tw(G))};
GRy=function(G){var e=void 0,r=void 0;if(G&&G.useClass!==void 0){e=G.useClass;var Z=Dz(G.useClass);var O=PlS.factory(Z);Z=UpA(Z)}else G&&G.useExisting!==void 0?(O=function(M){return M},Z=[z9N(EW.get(Dz(G.useExisting)))]):G&&G.useFactory!==void 0?(O=G.useFactory,Z=W9A(G.useFactory,G.deps)):(r=G.useValue,O=function(){return G.useValue},Z=Ng_);
return new L9F(O,Z,e,r)};
rYs=function(G){return new e7S(EW.get(Dz(G.provide)),[GRy(G)],G.multi)};
OVF=function(G){G=ZVi(G,[]).map(rYs);for(var e=new Map,r=0;r<G.length;r++){var Z=G[r],O=e.get(Z.key.id);if(O){if(Z.multiProvider!==O.multiProvider)throw Error("jf`"+O+"`"+Z);if(Z.multiProvider)for(var M=0;M<Z.resolvedFactories.length;M++)O.resolvedFactories.push(Z.resolvedFactories[M]);else e.set(Z.key.id,Z)}else O=void 0,Z.multiProvider?O=new e7S(Z.key,Z.resolvedFactories.slice(),Z.multiProvider):O=Z,e.set(Z.key.id,O)}return Array.from(e.values())};
ZVi=function(G,e){G.forEach(function(r){if(r instanceof Mka)e.push({provide:r,useClass:r});else if(r&&typeof r=="object"&&r.provide!==void 0)e.push(r);else if(r instanceof Array)ZVi(r,e);else throw Error("ff`"+r);});
return e};
W9A=function(G,e){if(e){var r=e.map(function(Z){return[Z]});
return e.map(function(Z){return Vk_(G,Z,r)})}return UpA(G)};
UpA=function(G){var e=PlS.parameters(G);if(!e)return[];if(e.some(function(r){return r==null}))throw xp_(G,e);
return e.map(function(r){return Vk_(G,r,e)})};
Vk_=function(G,e,r){var Z=null,O=!1;if(!Array.isArray(e))return e instanceof h74?T_y(e.token,O,null):T_y(e,O,null);for(var M=null,T=0;T<e.length;++T){var E=e[T];if(E instanceof Mka)Z=E;else if(E instanceof h74)Z=E.token;else if(E instanceof D4i)O=!0;else if(E instanceof EMa||E instanceof iV4)M=E}Z=Dz(Z);if(Z!=null)return T_y(Z,O,M);throw xp_(G,r);};
T_y=function(G,e,r){return new bVU(EW.get(Dz(G)),e,r)};
vMS=function(G,e){for(var r=Array(G.providers.length),Z=0;Z<G.providers.length;++Z){var O=Z;if(Z<0||Z>=G.providers.length)throw Error("hf`"+Z);r[O]=e(G.providers[Z])}return r};
wuF=function(G){return typeof G==="function"&&PlS.parameters(G).every(function(e){return!!e})};
q3A=function(G){var e=$4U;S3q.get(G)||S3q.set(G,new e);return S3q.get(G)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(G)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(G)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G,e){var r,Z;if(G.contains(e))return!0;G=_.i4(G).querySelectorAll("content,slot");for(r=0;r<G.length;++r){var O=_.i4(G[r]).getDistributedNodes();for(Z=0;Z<O.length;++Z)if(O[Z].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(O[Z],e))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G){G.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(G)&&G.preventDefault();G.targetTouches&&(G=G.targetTouches[0],tkq=G.pageX,gMF=G.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 G=0,e=b4.length;G<e;G++)document.addEventListener(b4[G],_._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 G=0,e=b4.length;G<e;G++)document.removeEventListener(b4[G],_._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(G){var e=_.i4(G).rootTarget;G.type!=="touchmove"&&liA!==e&&(liA=e,R7$=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.i4(G).path));if(!R7$.length)return!0;if(G.type==="touchstart")return!1;G=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(G);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(R7$,G.deltaX,G.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G){for(var e=[],r=G.indexOf(jeF),Z=0;Z<=r;Z++)if(G[Z].nodeType===Node.ELEMENT_NODE){var O=G[Z],M=O.style;M.overflow!=="scroll"&&M.overflow!=="auto"&&(M=window.getComputedStyle(O));M.overflow!=="scroll"&&M.overflow!=="auto"||e.push(O)}return e};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G,e,r){if(e||r)for(var Z=Math.abs(r)>=Math.abs(e),O=0;O<G.length;O++){var M=G[O];if(Z?r<0?M.scrollTop>0:M.scrollTop<M.scrollHeight-M.clientHeight:e<0?M.scrollLeft>0:M.scrollLeft<M.scrollWidth-M.clientWidth)return M}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G){var e={deltaX:G.deltaX,deltaY:G.deltaY};"deltaX"in G||("wheelDeltaX"in G&&"wheelDeltaY"in G?(e.deltaX=-G.wheelDeltaX,e.deltaY=-G.wheelDeltaY):"wheelDelta"in G?(e.deltaX=0,e.deltaY=-G.wheelDelta):"axis"in G?(e.deltaX=G.axis===1?G.detail:0,e.deltaY=G.axis===2?G.detail:0):G.targetTouches&&(G=G.targetTouches[0],e.deltaX=tkq-G.pageX,e.deltaY=gMF-G.pageY));return e};
aia=function(G){this.element=G;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
Kys=function(G){this.element=G;this.color=window.getComputedStyle(G).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");_.i4(this.waveContainer).appendChild(this.wave);Xup(this)};
vi=function(G,e){for(var r in G)if(r.toLowerCase()===e.toLowerCase())return G[r]};
fiF=function(G,e){for(var r in G)if(r.toLowerCase()===e.toLowerCase()){delete G[r];break}};
HVF=function(G){G=_.c2.clone(G);for(var e=0;e<kRS.length;++e){var r=kRS[e],Z=vi(G,r);Z&&(G["X-Goog-Upload-Header-"+r]=Z,fiF(G,r))}return G};
d4N=function(G){G=_.c2.clone(G);fiF(G,"X-Goog-Upload-Status")};
seq=function(G){return oMN.some(function(e){return e.test(G)})};
Cdp=function(G,e){var r;var Z=(r=G.formContent)==null?void 0:r.locale;r=Z==null?void 0:Z.split("-")[0];Z=Z&&QeU.includes(Z)?Z:r&&QeU.includes(r)?r:void 0;Z=(Z!=null?Z:"en").replaceAll("-","_").toLowerCase();var O;G=((O=G.initializationData)==null?0:O.useNightlyRelease)?"nightly":"live";var M;return(e==null?0:(M=e.getEnableAlohaBinarySplit)==null?0:M.call(e))?_.qK(IiS,G):_.qK(pup,G,Z)};
m4A=function(G,e,r,Z){if(u5f&&nM_===e)return u5f;nM_=e;var O=Cdp(G,Z);return u5f=e.feedbackV2GlobalObject?Promise.resolve(e.feedbackV2GlobalObject):new Promise(function(M,T){var E=_.Hp("SCRIPT");_.h6(E,O);E.onload=function(){e.feedbackV2GlobalObject?M(e.feedbackV2GlobalObject):T(Error("mf"))};
E.onerror=function(){T(Error("nf`"+O.toString()))};
r.body.appendChild(E)})};
yYq=function(G,e,r,Z){if(cYU&&Y3y===e)return cYU;Y3y=e;var O=Cdp(G,Z);return cYU=e.feedbackV2GlobalObject?Promise.resolve(e.feedbackV2GlobalObject):new Promise(function(M,T){var E=_.Hp("SCRIPT");_.h6(E,O);E.onload=function(){e.feedbackV2GlobalObject?M(e.feedbackV2GlobalObject):T(Error("mf"))};
E.onerror=function(){T(Error("nf`"+O.toString()))};
r.body.appendChild(E)})};
AYF=function(G,e,r,Z,O){O=O===void 0?!0:O;var M,T,E,b,w;return _.D(function(q){switch(q.nextAddress){case 1:return M=Date.now(),q.yield(m4A(G,r,Z,e),2);case 2:T=q.yieldResult;if(!(O||((b=G.initializationData)==null?0:b.useNightlyRelease)||((w=G.initializationData)==null?0:w.isLocalServer))){E=T.initializeFeedbackClient(G,M,e);q.jumpTo(3);break}return q.yield(T.initializeFeedbackClientAsync(G,M,e),4);case 4:E=q.yieldResult;case 3:return E.initiateAloha(),q.return(E)}})};
FyN=function(G,e,r,Z){var O,M,T;return _.D(function(E){if(E.nextAddress==1)return O=Date.now(),E.yield(yYq(G,r,Z.document,e),2);if(E.nextAddress!=3)return M=E.yieldResult,E.yield(M.initializeFeedbackClientAsync(G,O,e,Z),3);T=E.yieldResult;T.initiateAloha();return E.return(T)})};
JYS=function(G,e,r){var Z=!0;Z=Z===void 0?!0:Z;var O,M,T,E,b,w,q,t,g,l;return _.D(function(X){O=r||_.O_;if((M=e)==null?0:(E=(T=M).getEnableAlohaBinarySplit)==null?0:E.call(T)){b=O;if(b.isFormOpened)throw w=Error("of"),w.name="DuplicateFormError",w;b.isFormOpened=!0;G.callbacks=G.callbacks||{};q=G.callbacks.onClose||function(){};
G.callbacks.onClose=function(H){b.isFormOpened=!1;q(H)};
try{return X.return(FyN(G,e,b,O))}catch(H){throw b.isFormOpened=!1,H;}}else{t=O;if(t.isFormOpened)throw g=Error("of"),g.name="DuplicateFormError",g;t.isFormOpened=!0;G.callbacks=G.callbacks||{};l=G.callbacks.onClose||function(){};
G.callbacks.onClose=function(H){t.isFormOpened=!1;l(H)};
try{return X.return(AYF(G,e,t,O.document,Z))}catch(H){throw t.isFormOpened=!1,H;}}_.HL(X)})};
z7$=function(G,e){return _.D(function(r){return r.return(new Promise(function(Z,O){Number.isInteger(Number(G))&&Number(G)>0?(O=B_y(e!=null?e:"")+"/aloha_form_properties?productId="+G,x4p(O,function(M){M=M.target;var T=null;try{var E=JSON,b=E.stringify;if(M.JSC$9805_xhr_){var w=M.JSC$9805_xhr_.responseText;w.indexOf(")]}'\n")==0&&(w=w.substring(5));var q=(0,_.wo)(w)}else q=void 0;T=PzS(PdA,b.call(E,q))}catch(t){b=new PdA,q=U4F(),q=_.$y(q,13,!1),q=_.$y(q,14,!0),q=_.$y(q,15,!0),q=_.$y(q,20,!1),T=_.Kj(b,
1,q)}Z(T)},"GET","",{},2E3,!0)):O(Error("pf`"+G))}))})};
B_y=function(G){return seq(G)?G:"https://www.google.com/tools/feedback"};
G8N=function(G){G=G.match(new RegExp(Wyp,"gi"))||[];G=_.h(G);for(var e=G.next();!e.done;e=G.next()){e=e.value;a:{var r=_.h(N_N);for(var Z=r.next();!Z.done;Z=r.next())if(Z.value.test(e)){r=!1;break a}r=!0}if(!r)a:{r=_.h(Lyi);for(Z=r.next();!Z.done;Z=r.next())if(Z.value.test(e)){r=!0;break a}r=!1}if(r)return!0}return!1};
e2F=function(G,e){var r={},Z=Object.keys(G);Z=_.h(Z);for(var O=Z.next();!O.done;O=Z.next())O=O.value,r[O]=e(O,G[O]);return r};
r9S=function(G){switch(G){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"}};
OS_=function(G){if(window.crypto&&window.crypto.getRandomValues)try{var e=Array(G),r=new Uint8Array(G);window.crypto.getRandomValues(r);for(var Z=0;Z<e.length;Z++)e[Z]=r[Z];return e}catch(M){}e=Array(G);for(r=0;r<G;r++){Z=Date.now();for(var O=0;O<Z%23;O++)e[r]=Math.random();e[r]=Math.floor(Math.random()*256)}if(ZSS)for(r=1,Z=0;Z<ZSS.length;Z++)e[r%G]^=e[(r-1)%G]/4^ZSS.charCodeAt(Z),r++;return e};
SW=function(G){G=OS_(G);for(var e=[],r=0;r<G.length;r++)e.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(G[r]&63));return e.join("")};
MjA=function(){var G=_.O_.ytLoggingDocDocumentNonce_;G||(G=SW(16),_.Eu("ytLoggingDocDocumentNonce_",G));return G};
h2S=function(G){G&&_.cg("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Vjf,clientScreenNonce:G})};
Thi=function(G){return _.xZ("client-screen-nonce-store",{})[G===void 0?0:G]};
Dw$=function(G,e){e=e===void 0?0:e;var r=_.xZ("client-screen-nonce-store");r||(r={},_.BX("client-screen-nonce-store",r));r[e]=G};
E6i=function(G){G=G===void 0?0:G;return G===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+G};
iSi=function(G){return _.xZ(E6i(G===void 0?0:G))};
_.go=function(G){return(G=iSi(G===void 0?0:G))?new tb({veType:G,youtubeData:void 0,jspbYoutubeData:void 0}):null};
bSS=function(){var G=_.xZ("csn-to-ctt-auth-info");G||(G={},_.BX("csn-to-ctt-auth-info",G));return G};
v6S=function(){return Object.values(_.xZ("client-screen-nonce-store",{})).filter(function(G){return G!==void 0})};
_.l4=function(G){G=Thi(G===void 0?0:G);if(!G&&!_.PX("USE_CSN_FALLBACK",!0))return null;G||(G="UNDEFINED_CSN");return G?G:null};
$wp=function(G){for(var e=_.h(Object.values(w9p)),r=e.next();!r.done;r=e.next())if(_.l4(r.value)===G)return!0;return!1};
S4y=function(G,e,r){var Z=bSS();(r=_.l4(r))&&delete Z[r];e&&(Z[G]=e)};
Rp=function(G){return bSS()[G]};
_.jW=function(G,e,r,Z){r=r===void 0?0:r;if(G!==Thi(r)||e!==_.xZ(E6i(r)))if(S4y(G,Z,r),Dw$(G,r),_.BX(E6i(r),e),e=function(){setTimeout(function(){h2S(G)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(e)}catch(O){e()}else e()};
q4s=function(G,e){e=e===void 0?"":e;var r=[],Z;for(Z in G)if(G.hasOwnProperty(Z)){var O=e!==""?e+"."+Z:Z;typeof G[Z]==="object"?r.push.apply(r,_.mY(q4s(G[Z],O))):r.push([O,G[Z]])}r.sort();return r};
_.KO=function(G){var e=_.Bw.apply(1,arguments);if(!ap(G)||e.some(function(Z){return!ap(Z)}))throw Error("qf");
e=_.h(e);for(var r=e.next();!r.done;r=e.next())tj$(G,r.value)};
tj$=function(G,e){for(var r in e)if(ap(e[r])){if(r in G&&!ap(G[r]))throw Error("rf");r in G||(G[r]={});tj$(G[r],e[r])}else if(g6$(e[r])){if(r in G&&!g6$(G[r]))throw Error("sf");r in G||(G[r]=[]);lOa(G[r],e[r])}else G[r]=e[r];return G};
lOa=function(G,e){e=_.h(e);for(var r=e.next();!r.done;r=e.next())r=r.value,ap(r)?G.push(tj$({},r)):g6$(r)?G.push(lOa([],r)):G.push(r);return G};
ap=function(G){return typeof G==="object"&&!Array.isArray(G)};
g6$=function(G){return typeof G==="object"&&Array.isArray(G)};
j4A=function(G){for(var e=_.h(Object.entries(R2_)),r=e.next();!r.done;r=e.next())if(r=_.h(r.value),r.next(),r=r.next().value,r==="SLI_STATUS_"+G)return r;return"SLI_STATUS_UNKNOWN"};
_.fO=function(G,e,r,Z){return aOq(G,e,function(){return new _.X9$(G,e,r,Z)})};
_.Kip=function(){return _.fO("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
fO4=function(){return _.fO("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
ky=function(){return _.fO("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
k8U=function(){return _.fO("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
HSy=function(){return _.fO("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
dwf=function(){return _.fO("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
Q4s=function(G){G&&(G.dataset?G.dataset[o6_()]="true":_.Df([_.wS(s4f)],G,"data-loaded","true".toString()))};
IO_=function(G){return G?G.dataset?G.dataset[o6_()]:G.getAttribute("data-loaded"):null};
o6_=function(){return p9F.loaded||(p9F.loaded="loaded".replace(/\-([a-z])/g,function(G,e){return e.toUpperCase()}))};
_.Hi=function(G,e,r){C_q(G,e,r===void 0?null:r)};
_.n6N=function(G,e){G&&e&&(G=""+_.zS(e),(G=uga[G])&&_.RIa(G))};
C_q=function(G,e,r){r=r===void 0?null:r;var Z=_.mws(typeof G==="string"?G:G.toString()),O=document.getElementById(Z),M=O&&IO_(O),T=O&&!M;M?e&&e():(e&&(M=_.S4(Z,e),e=""+_.zS(e),uga[e]=M),T||(O=c9a(G,Z,function(){IO_(O)||(Q4s(O),_.jgN(Z),_.jm(function(){_.XQF(Z)},0))},r)))};
c9a=function(G,e,r,Z){Z=Z===void 0?null:Z;var O=_.Hp("SCRIPT");O.id=e;O.onload=function(){r&&setTimeout(r,0)};
O.onreadystatechange=function(){switch(O.readyState){case "loaded":case "complete":O.onload()}};
Z&&O.setAttribute("nonce",Z);_.h6(O,typeof G==="string"?_.nB(G):G);G=document.getElementsByTagName("head")[0]||document.body;G.insertBefore(O,G.firstChild);return O};
_.mws=function(G){var e=document.createElement("a");Pw(e,G);return"js-"+op(e.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
Y4y=function(G){var e=_.xZ("INNERTUBE_HOST_OVERRIDE");e&&(G=String(e)+String(_.sW(G)));return G};
y9f=function(G){var e={};_.R("json_condensed_response")&&(e.prettyPrint="false");return G=FH_(G,e)};
_.Q5=function(G){return E5(G)?"same-origin":"include"};
_.Ip=function(G){return E5(G)?"same-origin":"cors"};
pO=function(G,e,r){r=r===void 0?{}:r;G={method:e===void 0?"POST":e,mode:_.Ip(G),credentials:_.Q5(G)};e={};for(var Z=_.h(Object.keys(r)),O=Z.next();!O.done;O=Z.next())O=O.value,r[O]&&(e[O]=r[O]);Object.keys(e).length>0&&(G.headers=e);return G};
_.CO=function(G,e){e=e===void 0?{}:e;return"service:"+G+"/"+Object.keys(e).sort().map(function(r){return r+":"+e[r]}).join("/")};
A9S=function(G){var e,r,Z,O;G=(e=_.a(G,_.u4))==null?void 0:(r=e.watchEndpointSupportedOnesieConfig)==null?void 0:(Z=r.html5PlaybackOnesieConfig)==null?void 0:(O=Z.commonConfig)==null?void 0:O.url;if(!G)return[];e=new _.nO(G);return e.JSC$10041_domain_?["https://"+e.JSC$10041_domain_+"/generate_204"]:[]};
_.BhN=function(){return Fip()||zBf()||J9S&&x1("version/")?!0:_.xZ("EOM_VISITOR_DATA")?!1:!0};
xw4=function(G){var e=G.docid||G.video_id||G.videoId||G.id;if(e)return e;e=G.raw_player_response;e||(G=G.player_response)&&(e=JSON.parse(G));return e&&e.videoDetails&&e.videoDetails.videoId||null};
P_i=function(G){return G.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
mH=function(G){return!isNaN(Number(G))&&!_.iF(G)};
_.Yy=function(G,e,r,Z){Z=Z===void 0?!0:Z;var O=_.xZ("VALID_SESSION_TEMPDATA_DOMAINS",[]),M=_.TG(window.location.href);M&&O.push(M);M=_.TG(G);if(_.Y4(O,M)||!M&&_.Vp(G,"/"))if(O=document.createElement("a"),Pw(O,G),G=O.href)if(G=_.sW(G),G=_.ci(G))Z&&!e.csn&&(e.itct||e.ved)&&(e=Object.assign({csn:_.l4()},e)),r?(r=parseInt(r,10),isFinite(r)&&r>0&&UwS(G,e,r)):UwS(G,e)};
WiA=function(G){var e=_.xZ("VALID_SESSION_TEMPDATA_DOMAINS",[]),r=_.TG(window.location.href);r&&e.push(r);r=_.TG(G);if(!(_.Y4(e,r)||!r&&_.Vp(G,"/")))return null;G=_.sW(G);(G=_.ci(G))?(G=z2a(G),G=(G=_.oZ.get(G,void 0)||null)?_.ZW(G):{}):G=null;return G};
UwS=function(G,e,r){G=z2a(G);e=e?_.k1(e):"";r=r||5;_.BhN()&&_.s5(G,e,r)};
z2a=function(G){for(var e=_.h(Nhq),r=e.next();!r.done;r=e.next())G=_.y5(G,r.value);return"ST-"+op(G).toString(36)};
_.Li$=function(G){if(G.requestFullscreen)G=G.requestFullscreen(void 0);else if(G.webkitRequestFullscreen)G=G.webkitRequestFullscreen();else if(G.mozRequestFullScreen)G=G.mozRequestFullScreen();else if(G.msRequestFullscreen)G=G.msRequestFullscreen();else if(G.webkitEnterFullscreen)G=G.webkitEnterFullscreen();else return Promise.reject(Error("Bf"));return G instanceof Promise?G:Promise.resolve()};
_.FR=function(G){var e;_.T2s(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.Ab()==G&&(e=document):e=G;if(e&&(G=_.T2s(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],e))){G.call(e)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.Ab=function(){var G=G===void 0?!1:G;var e=_.T2s(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(G)for(;e&&e.shadowRoot;)e=e.shadowRoot.fullscreenElement;return e?e:null};
_.Jb=function(G,e){e=e===void 0?!0:e;G.addEventListener("wheel",GMf);G.overscrollConfig={cooldown:e}};
_.Bi=function(G){G.overscrollConfig=void 0;G.removeEventListener("wheel",GMf)};
GMf=function(G){var e=G.deltaY,r=G.target,Z=null;if(window.Polymer&&window.Polymer.Element){if(r=G.path||G.composedPath&&G.composedPath()){r=_.h(r);for(var O=r.next();!O.done&&(O=O.value,!ej_(O,e));O=r.next())if(O.overscrollConfig){Z=O;break}}}else for(;r&&!ej_(r,e);){if(r.overscrollConfig){Z=r;break}r=r.parentElement}Z&&(e=Z.overscrollConfig,e.cooldown?(Z=G.deltaY,r=e.lastDeltaY||0,e.lastDeltaY=Z,O=e.lastStopped||0,r&&O&&r>0==Z>0?Math.abs(r)>=Math.abs(Z)?(Z=O+1200,r=!1):(Z=O+600,r=!0):(Z=Date.now()+
600,r=!0),Z>Date.now()&&(G.preventDefault(),r&&(e.lastStopped=Date.now()))):G.preventDefault())};
ej_=function(G,e){return e<0&&G.scrollTop>0||e>0&&G.scrollTop<G.scrollHeight-G.clientHeight-1?(G=getComputedStyle(G).overflowY,G=="auto"||G=="scroll"):!1};
_.xy=function(G,e,r,Z){Z||(Z={bubbles:!0,cancelable:!1,composed:!0});r!==null&&r!==void 0&&(Z.detail=r);var O=new CustomEvent(e,Z);_.R("untrack_fire_custom_event_killswitch")?G.dispatchEvent(O):_.ah(function(){return void G.dispatchEvent(O)});
return O};
rON=function(G){var e=window,r=function(Z){e.removeEventListener("yt-navigate-start",r);return G.call(e,Z)};
e.addEventListener("yt-navigate-start",r,void 0)};
_.Pi=function(G,e,r,Z){e=new Z6p(e,!(Z===void 0||!Z),r);_.xy(G,"yt-action",e);return e.returnValue};
_.UW=function(G,e,r){return _.Pi(G,e,r,!0)};
_.Wi=function(G,e,r,Z){e&&e.length&&e.forEach(function(O){var M=MVN(O);M&&(_.R("handle_service_request_actions")&&O.commandMetadata&&O.commandMetadata.webCommandMetadata&&O.commandMetadata.webCommandMetadata.sendPost?_.zw(r?r:G,[O]):_.UW(G,M,[O,r,Z]))})};
_.zw=function(G,e){var r=[G];e&&r.push.apply(r,e);e=_.Pi(G,"yt-service-request",r);return e.length>0&&(e=e[0],_.xy(G,"yt-service-request-sent",e),e&&e.ajaxPromise)?(e.ajaxPromise.then(function(Z){_.xy(G,"yt-service-request-completed",Z)},function(Z){_.xy(G,"yt-service-request-error",{error:Z,
params:r})},G),e.ajaxPromise):_.Nz()};
_.Gn=function(G,e){if(_.R("handle_service_request_actions"))_.Wi(e,G,e);else{G=_.h(G);for(var r=G.next();!r.done;r=G.next()){r=r.value;var Z=void 0;((Z=_.a(r,_.LO))==null?0:Z.commands)?_.Gn(_.a(r,_.LO).commands,e):(Z=void 0,((Z=_.a(r,_.eq))==null?0:Z.actions)?_.Gn(_.a(r,_.eq).actions,e):(Z=void 0,((Z=_.a(r.commandMetadata,_.rJ))==null?0:Z.sendPost)?_.zw(e,[r]):_.Wi(e,[r],e)))}}};
_.MJU=function(G,e,r){e=e===void 0?{}:e;typeof e==="function"&&(e={callback:e});r||e._c&&e._c.jsl&&e._c.jsl.h||_.c2.extend(e,{_c:{jsl:{h:_.xZ("GAPI_HINT_PARAMS")}}});(e.gapiHintOverride||_.xZ("GAPI_HINT_OVERRIDE"))&&(r=_.O5(document.location.href).gapi_jsh)&&_.c2.extend(e,{_c:{jsl:{h:r}}});O6F(G,e)};
_.OK=function(G,e,r){e=e===void 0?{}:e;G=(G=G in Z_?Z_[G]:r)||"";r={};for(var Z in e){r={key$jscomp$844:r.key$jscomp$844};r.key$jscomp$844=Z;var O=function(M){return function(){return String(e[M.key$jscomp$844])}}(r);
G=G.replace(new RegExp("\\$\\{"+r.key$jscomp$844+"\\}","gi"),O);G=G.replace(new RegExp("\\$"+r.key$jscomp$844,"gi"),O)}return G};
_.Mn=function(G,e){return VJU(G in Z_?Z_[G]:{},e)};
VJU=function(G,e){var r=_.xZ("I18N_PLURAL_RULES");r||(r=function(Z){return Z==1?"one":"other"});
return(G=G["case"+e]||G[r(e)])?G.replace("#",e.toString()):e+""};
D84=function(G){var e=hjf(G),r=document.getElementById(e),Z=r&&IO_(r);Z||r&&!Z||(r=TQa(G,e,function(){if(!IO_(r)){Q4s(r);_.jgN(e);var O=_.VU(_.XQF,e);_.jm(O,0)}}))};
TQa=function(G,e,r){var Z=document.createElement("link");Z.id=e;Z.onload=function(){r&&setTimeout(r,0)};
G=_.nB(G);_.Ef(Z,G,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(Z);return Z};
hjf=function(G){var e=_.Hp("A");Pw(e,Cj(G));return"css-"+op(e.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.i6N=function(G){var e=EAy();G!==e&&(e=_.hy(),!_.R("web_autonav_allow_off_by_default")&&G||_.Tn(0,141,!0),_.Tn(0,140,!G),e.save())};
EAy=function(){var G=_.hy();return _.R("web_autonav_allow_off_by_default")&&!G.getFlag(141)&&_.xZ("AUTONAV_OFF_BY_DEFAULT")?!1:!G.getFlag(140)};
b6A=function(G,e){var r,Z;G=((r=G.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(Z=r.videoAuthorizationToken)==null?void 0:Z.credentialTransferTokens)||[];for(r=0;r<G.length;++r)if(G[r].scope===e)return G[r].token||void 0};
vAp=function(G){for(var e=0,r=0;r<G.length;r++)e=e*31+G.charCodeAt(r),r<G.length-1&&(e%=0x800000000000);return e%1E5};
_.D_=function(G){return _.Lz("ytcsi."+(G||"")+"data_")||wVA(G)};
_.$8F=function(G){G=_.D_(G);G.metadata||(G.metadata={});return G.metadata};
_.SPa=function(G){G=_.D_(G);G.tick||(G.tick={});return G.tick};
_.EK=function(G){G=_.D_(G);if(G.gel){var e=G.gel;e.gelInfos||(e.gelInfos={});e.gelTicks||(e.gelTicks={})}else G.gel={gelTicks:{},gelInfos:{}};return G.gel};
_.qPU=function(G){G=_.EK(G);G.gelInfos||(G.gelInfos={});return G.gelInfos};
tJS=function(G){var e=_.D_(G).nonce;e||(e=SW(16),_.D_(G).nonce=e);return e};
wVA=function(G){var e={tick:{},info:{}};_.Eu("ytcsi."+(G||"")+"data_",e);return e};
gAU=function(){var G=_.Lz("ytcsi.debug");G||(G=[],_.Eu("ytcsi.debug",G),_.Eu("ytcsi.reference",{}));return G};
_.ip=function(G){G=G||"";var e=lLN();if(e[G])return e[G];var r=gAU(),Z={timerName:G,info:{},tick:{},span:{},jspbInfo:[]};r.push(Z);return e[G]=Z};
Rj$=function(G){G=G||"";var e=lLN();e[G]&&delete e[G];var r=gAU(),Z={timerName:G,info:{},tick:{},span:{},jspbInfo:[]};r.push(Z);e[G]=Z};
lLN=function(){var G=_.Lz("ytcsi.reference");if(G)return G;gAU();return _.Lz("ytcsi.reference")};
_.aLS=function(G){return jaq[G]||"LATENCY_ACTION_UNKNOWN"};
kMa=function(G,e,r){r=r===void 0?{}:r;var Z=!1;_.PX("ytLoggingEventsDefaultDisabled",!1)&&(Z=!0);Z=Z?null:mf;r=r===void 0?{}:r;var O=Math.round(r.timestamp||(0,_.vG)());_.ss(e,1,O<Number.MAX_SAFE_INTEGER?O:0);O=new XVq;if(r.lact)_.ss(O,1,isFinite(r.lact)?r.lact:-1);else if(r.timestamp)_.ss(O,1,-1);else{var M=_.bj();_.ss(O,1,isFinite(M)?M:-1)}if(r.sequenceGroup&&!_.R("web_gel_sequence_info_killswitch")){M=r.sequenceGroup;var T=Ipy(M),E=new K5$;_.ss(E,2,T);_.QB(E,1,M);_.Kj(O,3,E);r.endOfSequence&&delete fLa[r.sequenceGroup]}_.Kj(e,
33,O);(r.sendIsolatedPayload?YYs:y_s)(G,{endpoint:"log_event",payload:e,cttAuthInfo:r.cttAuthInfo,dangerousLogToVisitorSession:r.dangerousLogToVisitorSession},Z)};
_.wJ=function(){return(_.R("csi_use_time_origin")||_.R("csi_use_time_origin_tvhtml5"))&&_.bp.timeOrigin?Math.floor(_.bp.timeOrigin):_.bp.timing.navigationStart};
_.H6f=function(G,e){_.$J("_start",G,e)};
_.Sq=function(G,e){if(!_.R("web_csi_action_sampling_enabled")||!_.D_(e).actionDisabled){var r=_.ip(e||"");_.KO(r.info,G);G.loadType&&(r=G.loadType,_.$8F(e).loadType=r);_.KO(_.qPU(e),G);r=tJS(e);e=_.D_(e).cttAuthInfo;d8i().info(G,r,e)}};
oAf=function(){var G,e,r,Z;return((Z=_.v_().resolve(_.bq(pL))==null?void 0:(G=CL())==null?void 0:(e=G.loggingHotConfig)==null?void 0:(r=e.csiConfig)==null?void 0:r.debugTicks)!=null?Z:[]).map(function(O){return Object.values(O)[0]})};
_.$J=function(G,e,r){if(!_.R("web_csi_action_sampling_enabled")||!_.D_(r).actionDisabled){var Z=tJS(r),O;if(O=_.R("web_csi_debug_sample_enabled")&&Z){(_.v_().resolve(_.bq(pL))==null?0:CL())&&!sai&&(sai=!0,_.$J("gcfl",(0,_.vG)(),r));var M,T,E;O=(_.v_().resolve(_.bq(pL))==null?void 0:(M=CL())==null?void 0:(T=M.loggingHotConfig)==null?void 0:(E=T.csiConfig)==null?void 0:E.debugSampleWeight)||0;if(M=O!==0)b:{M=oAf();if(M.length>0)for(T=0;T<M.length;T++)if(G===M[T]){M=!0;break b}M=!1}M?(O=vAp(Z)%O!==0,
_.D_(r).debugTicksExcludedLogged||(M={},M.debugTicksExcluded=O,_.Sq(M,r)),_.D_(r).debugTicksExcludedLogged=!0):O=!1}if(!O){G[0]!=="_"&&QaF(G,r,e);O=_.ip(r||"");O.tick[G]=e||(0,_.vG)();if(O.callback&&O.callback[G])for(O=_.h(O.callback[G]),M=O.next();!M.done;M=O.next())M=M.value,M();O=_.EK(r);O.gelTicks&&(O.gelTicks[G]=!0);M=_.SPa(r);O=e||(0,_.vG)();_.R("log_repeated_ytcsi_ticks")?G in M||(M[G]=O):M[G]=O;M=_.D_(r).cttAuthInfo;G==="_start"?d8i().baseline(Z,e,M):d8i().tick(G,Z,e,M);_.ILU(r);return O}}};
QaF=function(G,e,r){if(_.bp.mark)if(G.startsWith("mark_")||(G="mark_"+G),e&&(G+=" ("+e+")"),r===void 0||_.R("web_csi_disable_alt_time_performance_mark"))_.bp.mark(G);else{r=_.R("csi_use_performance_navigation_timing")?r-_.bp.timeOrigin:r-(_.bp.timeOrigin||_.bp.timing.navigationStart);try{_.bp.mark(G,{startTime:r})}catch(Z){}}};
pVa=function(){var G,e=(G=_.bp.getEntriesByType)==null?void 0:G.call(_.bp,"mark");e&&e.forEach(function(r){if(r.name.startsWith("mark_")){var Z;(Z=_.bp.clearMarks)==null||Z.call(_.bp,r.name)}})};
_.C9F=function(){switch(hIF()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.uGS=function(G){var e={},r=function(M,T,E){T=T.match("_rid")?T.split("_rid")[0]:T;typeof E==="number"&&(E=JSON.stringify(E));M.requestIds?M.requestIds.push({endpoint:T,id:E}):M.requestIds=[{endpoint:T,id:E}]};
G=_.h(Object.entries(G));for(var Z=G.next();!Z.done;Z=G.next()){var O=_.h(Z.value);Z=O.next().value;O=O.next().value;switch(Z){case "GetBrowse_rid":r(e,Z,O);break;case "GetGuide_rid":r(e,Z,O);break;case "GetHome_rid":r(e,Z,O);break;case "GetPlayer_rid":r(e,Z,O);break;case "GetSearch_rid":r(e,Z,O);break;case "GetSettings_rid":r(e,Z,O);break;case "GetTrending_rid":r(e,Z,O);break;case "GetWatchNext_rid":r(e,Z,O);break;case "yt_red":e.isRedSubscriber=!!O;break;case "yt_ad":e.isMonetized=!!O}}return e};
m8f=function(G,e,r,Z,O,M){if(!_.R("web_csi_action_sampling_enabled")||!_.D_(M).actionDisabled){var T=_.EK(M);if(T.gelSpans)T.gelSpans[G]=!0;else{var E={};T.gelSpans=(E[G]=!0,E)}nAF++;G={spanName:G,spanLengthUsec:String(Math.round(e*1E3)),spanNonce:nAF};Z&&(G.spanInfo=Z);O&&(G.parentSpanNonce=O);r&&(G.spanStartTimeUsec=String(Math.round(r*1E3)));_.ip(M||"").span[String(G.spanName)]=G;r=_.EK(M);r.gelSpans||(r.gelSpans={});_.KO(r.gelSpans,G);r=tJS(M);M=_.D_(M).cttAuthInfo;d8i().span(G,r,M);return G.spanNonce}};
_.cO_=function(G){var e=_.qn("aft",G);if(e)return e;e=_.xZ((G||"")+"TIMING_AFT_KEYS",["ol"]);for(var r=e.length,Z=0;Z<r;Z++){var O=_.qn(e[Z],G);if(O)return O}return NaN};
_.YPa=function(G,e){_.Eu("ytglobal.timing"+(e||"")+"ready_",G)};
_.qn=function(G,e){if(G=_.SPa(e)[G])return typeof G==="number"?G:G[G.length-1]};
_.ILU=function(G){var e=_.qn("_start",G),r=_.cO_(G),Z=!yOA;e&&r&&Z&&(p1U(AOa,new F5i(Math.round(r-e),G)),yOA=!0)};
BQ_=function(G){wVA(G);JO_();pVa();G||(_.xZ("TIMING_ACTION")&&_.BX("PREVIOUS_ACTION",_.xZ("TIMING_ACTION")),_.BX("TIMING_ACTION",""))};
_.x8p=function(G){G=G===void 0?{}:G;_.N0(function(){ty();Rj$();BQ_();_.YPa(!1);G.cttAuthInfo&&(_.D_().cttAuthInfo=G.cttAuthInfo);_.BX("TIMING_AFT_KEYS",[]);G.isHot?_.gJ({loadType:"hot"}):_.gJ({loadType:"warm"});_.BX("TIMING_ACTION","");delete _.xZ("TIMING_INFO",{}).yt_lt;_.N0(_.H6f)(G.startTime,void 0)})()};
_.Rl=function(G,e,r,Z){e=e===void 0?{}:e;_.N0(function(){var O=r?r:G;lp(O);var M=e.sampleRate;if(!_.R("web_csi_action_sampling_enabled")||M===void 0||M<=1)M=!1;else{var T=tJS(O);M=vAp(T)%M!==0}M&&(_.D_(O).actionDisabled=!0);_.ip(O||"").info.actionType=G;e.cttAuthInfo&&(_.D_(O).cttAuthInfo=e.cttAuthInfo);_.BX(O+"TIMING_ACTION",G);_.N0(_.H6f)(e.startTime,O);M={actionType:Z||_.aLS(G)};e.logPreviousAction&&(M.previousAction=_.aLS(_.xZ("TIMING_ACTION")));(T=_.l4())&&T!=="UNDEFINED_CSN"&&(M.clientScreenNonce=
T);_.gJ(M,O);_.YPa(!0,O)})()};
lp=function(G){_.N0(function(){ty(G);Rj$(G);BQ_(G)})()};
P9$=function(){_.N0(function(){var G=[],e;for(e in _.Lz("ytcsi.".slice(0,-1)))e.endsWith("data_")&&G.push(e.slice(0,-5));G=_.h(G);for(e=G.next();!e.done;e=G.next())lp(e.value);ty()})()};
_.zjq=function(G){return _.N0(function(){return _.U8A("_start",G)})()};
_.gJ=function(G,e,r){_.N0(_.Sq)(G,e,r===void 0?!1:r)};
_.jq=function(G,e,r){return _.N0(_.$J)(G,e,r)};
_.U8A=function(G,e){return _.N0(function(){var r=_.SPa(e);return G in r})()};
NQi=function(G){if(!_.R("universal_csi_network_ticks"))return"";G=_.Kr(G)||"";for(var e=Object.keys(W5q),r=0;r<e.length;r++){var Z=e[r];if(G.includes(Z))return Z}return""};
G$p=function(G){if(!_.R("universal_csi_network_ticks"))return function(){};
var e=W5q[G];return e?(_.K_(e),function(){var r=_.R("universal_csi_network_ticks")?(r=L5S[G])?_.K_(r):!1:!1;return r}):function(){}};
_.K_=function(G,e,r){return _.N0(function(){if(_.U8A(G,r))return!1;_.jq(G,e,r);return!0})()};
_.f_=function(G,e,r){_.N0(function(){if(!_.zjq(r)||_.U8A(G,r))return!1;_.jq(G,e,r);return!0})()};
_.kJ=function(G){return _.N0(_.qn)(G,void 0)};
ty=function(G){_.zjq(G)&&_.jq("aa",void 0,G)};
_.MRf=function(G,e,r,Z,O,M,T,E,b){var w=eey();E=new tb({veType:e,youtubeData:M,jspbYoutubeData:E});M=Hn({},w);O&&(M.cttAuthInfo=O);O={csn:w,pageVe:E.getAsJson()};_.R("expectation_logging")&&b&&b.screenCreatedLoggingExpectations&&(O.screenCreatedLoggingExpectations=b.screenCreatedLoggingExpectations);r&&r.visualElement?(O.implicitGesture={parentCsn:r.clientScreenNonce,gesturedVe:r.visualElement.getAsJson()},T&&(O.implicitGesture.gestureType=T)):r&&_.FH(new _.Cr("newScreen() parent element does not have a VE - rootVe",
e));Z&&(O.cloneCsn=Z);G?nL("screenCreated",O,G,M):_.cg("screenCreated",O,M);p1U(yXa,new ros(w));dJ.clear();ZEq.clear();OEs.clear();return w};
ol=function(G,e,r,Z,O,M){M=M===void 0?{}:M;VRp(G,e,r,[Z],O===void 0?!1:O,M)};
VRp=function(G,e,r,Z,O,M){O=O===void 0?!1:O;M=M===void 0?{}:M;Object.assign(M,Hn({cttAuthInfo:Rp(e)||void 0},e));for(var T=_.h(Z),E=T.next();!E.done;E=T.next()){E=E.value;var b=E.getAsJson();(_.c2.isEmpty(b)||!b.trackingParams&&!b.veType)&&_.FH(Error("Cf"));if(_.R("no_client_ve_attach_unless_shown")){var w=hey(E,e);if(b.veType&&!ZEq.has(w)&&!OEs.has(w)&&!O){if(!_.R("il_attach_cache_limit")||dJ.size<1E3){dJ.set(w,[G,e,r,E]);return}_.R("il_attach_cache_limit")&&dJ.size>1E3&&_.FH(new _.Cr("IL Attach cache exceeded limit"))}E=
hey(r,e);dJ.has(E)?TqA(r,e):OEs.set(E,!0)}}Z=Z.filter(function(q){q.csn!==e?(q.csn=e,q=!0):q=!1;return q});
r={csn:e,parentVe:r.getAsJson(),childVes:_.Yf(Z,function(q){return q.getAsJson()})};
e==="UNDEFINED_CSN"?sK("visualElementAttached",M,r):G?nL("visualElementAttached",r,G,M):_.cg("visualElementAttached",r,M)};
Eei=function(G,e,r,Z,O){Dl$(G,e,r,O)};
Dl$=function(G,e,r,Z){iEy(r,e);var O=Hn({cttAuthInfo:Rp(e)||void 0},e);r={csn:e,ve:r.getAsJson(),eventType:1};Z&&(r.clientData=Z);e==="UNDEFINED_CSN"?sK("visualElementShown",O,r):G?nL("visualElementShown",r,G,O):_.cg("visualElementShown",r,O)};
bEq=function(G,e,r,Z){iEy(r,e);var O=Hn({cttAuthInfo:Rp(e)||void 0},e);r={csn:e,ve:r.getAsJson(),eventType:4};Z&&(r.clientData=Z);e==="UNDEFINED_CSN"?sK("visualElementShown",O,r):G?nL("visualElementShown",r,G,O):_.cg("visualElementShown",r,O)};
veU=function(G,e,r,Z,O){var M=(Z=Z===void 0?!1:Z)?16:8;Z=Hn({cttAuthInfo:Rp(e)||void 0,endOfSequence:Z},e);r={csn:e,ve:r.getAsJson(),eventType:M};O&&(r.clientData=O);e==="UNDEFINED_CSN"?sK("visualElementHidden",Z,r):G?nL("visualElementHidden",r,G,Z):_.cg("visualElementHidden",r,Z)};
$lp=function(G,e,r,Z,O){wtS(G,e,r,void 0,Z,O)};
wtS=function(G,e,r,Z,O){iEy(r,e);Z=Z||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var M=Hn({cttAuthInfo:Rp(e)||void 0},e);r={csn:e,ve:r.getAsJson(),gestureType:Z};O&&(r.clientData=O);e==="UNDEFINED_CSN"?sK("visualElementGestured",M,r):G?nL("visualElementGestured",r,G,M):_.cg("visualElementGestured",r,M)};
SIA=function(G,e,r,Z){var O=Hn({cttAuthInfo:Rp(e)||void 0},e);r={csn:e,ve:r.getAsJson(),clientData:Z};e==="UNDEFINED_CSN"?sK("visualElementStateChanged",O,r):G?nL("visualElementStateChanged",r,G,O):_.cg("visualElementStateChanged",r,O)};
qI_=function(){var G=OS_(16);for(var e=[],r=0;r<G.length;r++)e.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(G[r]&63));return e.join("")};
sK=function(G,e,r){tRS.push({payloadName:G,payload:r,jspbPayload:void 0,options:e});geN||(geN=Fkp())};
YOF=function(G){if(tRS){for(var e=_.h(tRS),r=e.next();!r.done;r=e.next())r=r.value,r.payload&&(r.payload.csn=G.csn,_.cg(r.payloadName,r.payload,r.options));tRS.length=0}geN=0};
hey=function(G,e){return""+G.getAsJson().veType+G.getAsJson().veCounter+e};
iEy=function(G,e){if(_.R("no_client_ve_attach_unless_shown")){var r=hey(G,e);ZEq.set(r,!0);TqA(G,e)}};
TqA=function(G,e){G=hey(G,e);dJ.has(G)&&(e=dJ.get(G)||[],ol(e[0],e[1],e[2],e[3],!0),dJ.delete(G))};
Hn=function(G,e){_.R("log_sequence_info_on_gel_web")&&(G.sequenceGroup=e);return G};
_.QU=function(G,e,r){_.N0(ol)(void 0,G,e,r)};
_.Il=function(G,e,r){_.N0(VRp)(void 0,G,e,r)};
_.p_=function(G,e){_.N0(Eei)(void 0,G,e,void 0,void 0,void 0)};
_.C_=function(G,e,r){_.N0(function(){_.rR(e,function(Z){bEq(void 0,G,Z,r)})})()};
_.up=function(G,e,r,Z){_.N0(function(){_.rR(e,function(O){veU(void 0,G,O,r,Z)})})()};
_.n_=function(G,e,r){_.N0($lp)(void 0,G,e,r,void 0)};
_.mC=function(G,e,r,Z){_.N0(wtS)(void 0,G,e,r,Z,void 0)};
_.cn=function(G,e,r){_.N0(SIA)(void 0,G,e,r,void 0)};
lZi=function(G,e){YJ.set(G,e)};
ReN=function(G){yU.initialized=!0;yU.sessionId=G.sessionId||"";yU.enabledSpans=G.enabledSpans;G.shouldSampleFn!=null&&(yU.shouldSampleFn=G.shouldSampleFn)};
jCN=function(G){yU.processors.push(G)};
aZF=function(G){return yU.initialized?yU.enabledSpans?yU.enabledSpans[G]:!0:!1};
k$S=function(G,e,r){if(typeof r==="function"){var Z=r;r=void 0}var O=r;G=aZF(G)&&yU.shouldSampleFn(G,e,Xt$)?new KEN(G,e,O):fZS;var M;G!==fZS&&((M=r)==null?void 0:M.active)!==!1&&yU.stack.push(G);if(!Z)return G;if(G===fZS)return Z(G);try{var T=Z(G);G.end();return T}catch(E){throw G.end(2),E;}};
dlA=function(){xc.subscribe("handleError",function(G){try{for(var e in HEp)try{var r=HEp[e];typeof HEp[e]==="function"&&(r=r());G.params[e]=typeof HEp[e]==="object"?JSON.stringify(r):String(r)}catch(Z){_.FH(Z)}}catch(Z){_.FH(Z)}})};
oef=function(){};
sCN=function(G,e){var r=Object.keys(G);G=new _.Cr("[Command Handler] "+e,{filteredCommandNames:r,originalCommand:G});_.yx(G)};
QCU=function(G,e){sCN(G,e+" was called but not set")};
IZS=function(G){return function(){return new G}};
Ay=function(G){return function(){return _.v_().resolve(G)}};
pt4=function(G,e){var r=_.a(G,_.zr);if(r&&(r=e[r.signal]))return r();G=_.h(Object.keys(G));for(r=G.next();!r.done;r=G.next())if(r=r.value,e[r]&&(r=e[r]))return r()};
_.FJ=function(G,e,r,Z){return{browseEndpoint:{browseId:G},commandMetadata:{webCommandMetadata:{url:e,rootVe:r,webPageType:Z===void 0?"WEB_PAGE_TYPE_BROWSE":Z}}}};
CJi=function(G,e,r){var Z=e=e===void 0?0:e;r=r===void 0?0:r;var O=r-Z;return _.Jy(G,"PPSV",void 0,void 0,(O>600?0:O<60||r<=0||Z/r>.9)?0:e)};
_.Jy=function(G,e,r,Z,O){var M="/watch?v="+G;G={videoId:G};e&&(G.playlistId=e,M+="&list="+e);Z&&(M+="&pp="+Z);O&&(G.startTimeSeconds=O,M+="&t="+O+"s");e={watchEndpoint:G,commandMetadata:{webCommandMetadata:{url:M,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};r&&(e.clickTrackingParams=r);Z&&(_.a(e,_.u4).playerParams=Z);return e};
urp=function(G){return{browseEndpoint:{browseId:"VL"+G},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+G,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
neS=function(G){if(G){var e;if(G){var r=(e=_.a(G.commandMetadata,_.rJ))==null?void 0:e.url;e=!(!r||r==="/service_ajax")}else e=!1;if(e)return G;var Z;if(G=(Z=_.a(G,_.LO))==null?void 0:Z.commands)for(Z=_.h(G),G=Z.next();!G.done;G=Z.next())if(G=neS(G.value))return G}};
_.Bn=function(G){return{runs:[{text:G}]}};
mlU=function(G,e){return G&&e?{runs:[{text:G,navigationEndpoint:e}]}:void 0};
xJ=function(G){return G?_.Bn(G):void 0};
_.Pn=function(G){return G?{simpleText:G}:void 0};
_.UK=function(G){var e=G.type;G=G.payload;e={type:e};G!==void 0&&(e.payload=G);return e};
coA=function(G,e,r){for(var Z=Object.assign({},G),O=_.h(Object.keys(e)),M=O.next();!M.done;M=O.next()){M=M.value;var T=G[M],E=e[M];if(E===void 0)delete Z[M];else if(T===void 0)Z[M]=E;else if(Array.isArray(E)&&Array.isArray(T))Z[M]=r?[].concat(_.mY(T),_.mY(E)):E;else if(!Array.isArray(E)&&_.PA(E)&&!Array.isArray(T)&&_.PA(T))Z[M]=coA(T,E,r);else if(typeof E===typeof T)Z[M]=E;else return e=new _.Cr("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:M,originalValue:T,updateValue:E}),
_.yx(e),G}return Z};
Aof=function(G){if(!G.length)return"";try{if(YIq)return YIq.decode(G);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(G)}catch(T){}for(var e=0,r=[],Z=G.length;e<Z;){for(var O=0;O<1024&&e<Z;){var M=G[e++];if(M<128)yof[O++]=M;else{if(M<224)M=(M&31)<<6|G[e++]&63;else if(M<240)M=(M&15)<<12|(G[e++]&63)<<6|G[e++]&63;else{if(O+1===1024){--e;break}M=(M&7)<<18|(G[e++]&63)<<12|(G[e++]&63)<<6|G[e++]&63;M-=65536;yof[O++]=55296|M>>10;M=56320|M&1023}yof[O++]=M}}M=String.fromCharCode.apply(String,
yof);O<1024&&(M=M.substring(0,O));r.push(M)}return r.join("")};
Joq=function(G,e){var r;if((r=FEA)==null?0:r.encodeInto)return e=FEA.encodeInto(G,e),e.read<G.length?G.length*4:e.written;for(var Z=r=0;Z<G.length;Z++){var O=G.charCodeAt(Z);O<128?e[r++]=O:(O<2048?e[r++]=O>>6|192:((O&64512)===55296&&Z+1<G.length&&(G.charCodeAt(Z+1)&64512)===56320?(O=65536+((O&1023)<<10)+(G.charCodeAt(++Z)&1023),e[r++]=O>>18|240,e[r++]=O>>12&63|128):e[r++]=O>>12|224,e[r++]=O>>6&63|128),e[r++]=O&63|128)}return r};
Bqs=function(G,e,r){if(e&&r&&r.buffer===e.exports.memory.buffer){var Z=e.realloc(r.byteOffset,G);if(Z)return new Uint8Array(e.exports.memory.buffer,Z,G)}G=e?new Uint8Array(e.exports.memory.buffer,e.malloc(G),G):new Uint8Array(G);r&&G.set(r);return G};
_.Wn=function(G){G=new xla(new PJa([_.NU(decodeURIComponent(G))]));if(Uly(G,2)){var e=zn(G);var r=G.pos;var Z=G.arrayView;r=r===void 0?0:r;var O=e===void 0?-1:e;r=r===void 0?0:r;O=O===void 0?-1:O;if(Z.totalLength&&O){O<0&&(O=Z.totalLength-r);Z.focus(r);if(!(r-Z.arrayPos+O<=Z.arrays[Z.arrayIdx].length)){var M=Z.arrayIdx,T=Z.arrayPos;Z.focus(r+O-1);T=new Uint8Array(Z.arrayPos+Z.arrays[Z.arrayIdx].length-T);for(var E=0,b=M;b<=Z.arrayIdx;b++)T.set(Z.arrays[b],E),E+=Z.arrays[b].length;Z.arrays.splice(M,
Z.arrayIdx-M+1,T);Z.arrayIdx=0;Z.arrayPos=0;Z.focus(r)}M=Z.arrays[Z.arrayIdx];Z=new DataView(M.buffer,M.byteOffset+r-Z.arrayPos,O)}else Z=new DataView(new ArrayBuffer(0));Z=new Uint8Array(Z.buffer,Z.byteOffset,Z.byteLength);G.pos+=e;e=Z}else e=void 0;e=e?Aof(e):void 0;G=Uly(G,4)?zn(G):void 0;Z=zeF[G];if(typeof Z==="undefined")throw G=new _.Cr("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:G}),_.yx(G),G;return{entityTypeFieldNumber:G,entityType:Z,entityId:e}};
_.GF=function(G,e,r){r=r===void 0?0:r;var Z=new WEU;if(FEA)G=FEA.encode(G);else{var O=new Uint8Array(Math.ceil(G.length*1.2)),M=Joq(G,O);O.length<M&&(O=new Uint8Array(M),M=Joq(G,O));O.length>M&&(O=O.subarray(0,M));G=O}G!==void 0&&(Nn(Z,18),O=G.length,Nn(Z,O),L_(Z,O),Z.buf.set(G,Z.pos),Z.pos+=O);G=Nqy[e];if(typeof G==="undefined")throw r=new _.Cr("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:e}),_.yx(r),r;G!==void 0&&(Nn(Z,32),Nn(Z,G));Nn(Z,40);Nn(Z,1);e=new Uint8Array(Z.buf.buffer,
Z.buf.byteOffset,Z.pos);return encodeURIComponent(_.uH(e,r))};
LEs=function(G){G=G.key||G.id;if(!G)throw Error("Hf");return G};
eJN=function(G,e){G=G===void 0?{}:G;return GtU(G,e)};
rL_=function(G,e,r,Z){if(Z===void 0)return Z=Object.assign({},G[e]||{}),r=(delete Z[r],Z),Z={},Object.assign({},G,(Z[e]=r,Z));var O={},M={};return Object.assign({},G,(M[e]=Object.assign({},G[e],(O[r]=Z,O)),M))};
Zhf=function(G,e,r,Z,O){var M=G[e];if(M==null||!M[r])return G;Z=coA(M[r],Z,O==="REPEATED_FIELDS_MERGE_OPTION_APPEND");O={};M={};return Object.assign({},G,(M[e]=Object.assign({},G[e],(O[r]=Z,O)),M))};
_.e6=function(G,e,r){return G[e]?G[e][r]||null:null};
MXS=function(){if(Ohs)return Ohs();var G={};Ohs=bA("PersistentEntityStoreDb",{objectStores:(G.EntityStore={addedAtVersion:1},G.EntityAssociationStore={addedAtVersion:2},G),shared:!1,upgrade:function(e,r){r(1)&&WG(zc(e,"EntityStore",{keyPath:"key"}),"entityType","entityType");r(2)&&(e=zc(e,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),WG(e,"byParentEntityKey","parentEntityKey"),WG(e,"byChildEntityKey","childEntityKey"))},
version:3});return Ohs()};
VX4=function(G){return _.Ou(MXS(),G)};
rf=function(G){return window.Int32Array?new Int32Array(G):Array(G)};
Tk_=function(G){return _.Ou(hJf(),G)};
D6F=function(G){return new ZH("WRONG_DATA_TYPE",{encoderVersion:G})};
EBy=function(G){return G instanceof Error?new ZH("UNKNOWN_ENCODE_ERROR",{originalMessage:G.message}):new ZH("UNKNOWN_ENCODE_ERROR")};
ihy=function(G){return G instanceof Error?new ZH("UNKNOWN_DECODE_ERROR",{originalMessage:G.message}):new ZH("UNKNOWN_DECODE_ERROR")};
bhq=function(G,e){G=G instanceof ZH?G:e(G);_.yx(G);throw G;};
vB4=function(G){G=(new TextEncoder).encode(G).subarray(0,16);var e=new Uint8Array(16);e.set(G);return e};
$6N=function(G){var e=wh$[G];if(e)return e;_.FH(new _.Cr("Entity model not found.",{entityType:G}))};
_.O6=function(){SZ_||(SZ_=qZf());return SZ_};
qZf=function(){var G,e,r;return _.D(function(Z){if(Z.nextAddress==1)return _.jr(Z,2),Z.yield(_.iA(),4);if(Z.nextAddress!=2){G=Z.yieldResult;if(!G||!_.pr()||typeof _.O_.BroadcastChannel==="undefined")return Z.return();e=new tX$;return Z.return(new Mr(G,e))}r=_.k5(Z);r instanceof Error&&_.yx(r);return Z.return()})};
_.V4=function(G,e){var r;return _.D(function(Z){if(Z.nextAddress==1){r=G.mutations;if(!r||r.length<=0)return Z.return();e&&e.dispatch(_.UK({type:"ENTITY_LOADED",payload:r}));return Z.yield(gBs(r),2)}r.length=0;_.HL(Z)})};
gBs=function(G){var e;return _.D(function(r){return r.nextAddress==1?r.yield(_.O6(),2):(e=r.yieldResult)?r.yield(_.hh(e,"readwrite",function(Z){for(var O={},M=_.h(G),T=M.next(),E={};!T.done;E={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},T=M.next())E.mutation$jscomp$8=T.value,E.mutation$jscomp$8.entityKey&&l7s(E.mutation$jscomp$8)&&(E.mutationEntityType$jscomp$3=(0,_.c2.getAnyKey)(E.mutation$jscomp$8.payload),T=void 0,E.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(T=function(b){return function(){return _.RJy(Z,
b.mutation$jscomp$8.payload[b.mutationEntityType$jscomp$3],b.mutationEntityType$jscomp$3)}}(E)),E.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(T=function(b){return function(){return jTS(Z,b.mutation$jscomp$8.entityKey)}}(E)),E.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(T=function(b){return function(){return a7f(Z,b.mutation$jscomp$8.entityKey,b.mutation$jscomp$8.payload[b.mutationEntityType$jscomp$3],b.mutationEntityType$jscomp$3)}}(E)),T&&(O[E.mutation$jscomp$8.entityKey]=
O[E.mutation$jscomp$8.entityKey]?O[E.mutation$jscomp$8.entityKey].then(T):T()));
return W_.all(Object.values(O))}),0):r.return()})};
l7s=function(G){var e;G=(e=G.options)==null?void 0:e.persistenceOption;return G==="ENTITY_PERSISTENCE_OPTION_PERSIST"||G==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
f7F=function(G,e){var r,Z;_.D(function(O){if(O.nextAddress==1)return O.yield(_.O6(),2);if(O.nextAddress!=3)return(r=O.yieldResult)?O.yield(_.hh(r,"readonly",function(M){var T={},E=Object.keys(e).map(function(b){var w=e[b]?[].concat(_.mY(e[b])):[];return XhS(M,b,w,T)});
return W_.all(E).then(function(){return T})}),3):O.return();
Z=O.yieldResult;Object.keys(Z).length>0&&G.dispatch(KFs(Z));_.HL(O)})};
XhS=function(G,e,r,Z){return TF(G,e,r).then(function(O){Z[e]=kt$(r,O)})};
kt$=function(G,e){if(e.length!==G.length)throw Error("Kf");return e.reduce(function(r,Z,O){r[G[O]]=Z;return r},{})};
oBs=function(G){var e=G.filter(function(O){var M;return(O==null?void 0:(M=O.transferEntity)==null?void 0:M.transferState)==="TRANSFER_STATE_COMPLETE"}).length,r=G.filter(function(O){var M;
return(O==null?void 0:(M=O.transferEntity)==null?void 0:M.transferState)==="TRANSFER_STATE_FAILED"}).length,Z=G.filter(function(O){var M;
return(O==null?void 0:(M=O.transferEntity)==null?void 0:M.transferState)&&Hh_.includes(O.transferEntity.transferState)});
if(!(e||Z!=null&&Z.length))return 0;e=_.d6s(Z)+e;G=G.length-r;return G===0?0:Math.round(e*100/G)/100};
_.d6s=function(G){var e=[];e=e.concat.apply(e,_.mY(G.filter(function(M){return M.streamEntity}).map(function(M){var T=Object.assign({},M.streamEntity),E,b=(E=M.transferEntity)==null?void 0:E.transferState;
T.streamsProgress=T.streamsProgress||[];T.streamsProgress=T.streamsProgress.map(function(w){var q=Object.assign({},w);q.numBytesDownloaded=b==="TRANSFER_STATE_COMPLETE"?w.numTotalBytes:w.numBytesDownloaded;return q});
return T}).map(function(M){return M.streamsProgress})));
var r=G=0;e=_.h(e);for(var Z=e.next();!Z.done;Z=e.next()){var O=Z.value;Z=Number(O.numBytesDownloaded);O=Number(O.numTotalBytes);r+=isNaN(Z)?0:Z;G+=isNaN(O)?0:O}return G===0?0:Math.round(r*100/G)/100};
sTS=function(G){if(!G||!G.expirationTimestamp||!G.action)return!1;var e=(0,_.vG)()/1E3;return Number(G.expirationTimestamp)>=e};
DH=function(G){return G&&G.expirationTimestamp&&G.action?sTS(G)&&G.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.E6=function(G){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(G||"TRANSFER_STATE_UNKNOWN")};
QTN=function(G){var e=new WEU;if(G!==void 0){var r=Math.ceil(Math.log2(G.length*4+2)/7);r=r===void 0?2:r;Nn(e,10);e.submessagePosStack.push(e.pos);e.submessagePosStack.push(r);e.pos+=r;L_(e,G.length*1.2);r=Joq(G,e.buf.subarray(e.pos));e.pos+r>e.buf.length&&(L_(e,r),r=Joq(G,e.buf.subarray(e.pos)));e.pos+=r;G=e.submessagePosStack.pop();r=e.submessagePosStack.pop();for(var Z=e.pos-r-G;G--;){var O=G?128:0;e.view.setUint8(r++,Z&127|O);Z>>=7}}e=new Uint8Array(e.buf.buffer,e.buf.byteOffset,e.pos);return(new TextDecoder("utf-8")).decode(e)};
_.iw=function(G){var e=0;G=_.h(G);for(var r=G.next(),Z={};!r.done;Z={transferState$jscomp$3:void 0},r=G.next()){var O=r.value,M=void 0;r=(M=O.streamEntity)!=null?M:{};M=void 0;Z.transferState$jscomp$3=(M=O.transferEntity)==null?void 0:M.transferState;M=O=void 0;((O=r)==null?0:(M=O.streamsProgress)==null?0:M.length)&&r.streamsProgress.forEach(function(T){return function(E){E=Number(T.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?E.numTotalBytes:E.numBytesDownloaded);isFinite(E)&&(e+=E)}}(Z))}return e};
I74=function(G){return G.some(function(e){var r;if(!(e==null?0:(r=e.transferEntity)==null?0:r.transferState)){var Z;return!(e==null?0:(Z=e.policyEntity)==null?0:Z.action)||e.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return Hh_.includes(e.transferEntity.transferState)})};
phf=function(G,e){if(!e)return!1;if(_.R("of_pb_en_po_ks"))return!0;var r;G=(r=_.e6(G,"offlineVideoPolicy",_.GF(e,"offlineVideoPolicy")))!=null?r:void 0;return!!G&&DH(G)};
_.u9$=function(G){var e=["TRANSFER_STATE_COMPLETE"];e=e===void 0?CrS:e;return G.filter(function(r){var Z,O;return e.includes((O=(Z=r.transferEntity)==null?void 0:Z.transferState)!=null?O:"TRANSFER_STATE_UNKNOWN")})};
nBy=function(G,e){if(e){var r,Z=(r=_.e6(G,"playbackData",_.GF(e,"playbackData")))!=null?r:null,O;r=(O=_.e6(G,"transfer",_.GF(e,"transfer")))!=null?O:null;var M;O=(M=_.e6(G,"offlineVideoStreams",_.GF(e,"offlineVideoStreams")))!=null?M:null;var T;G=(T=_.e6(G,"offlineVideoPolicy",_.GF(e,"offlineVideoPolicy")))!=null?T:null;if(Z||r||O||G)return{playbackDataEntity:Z,transferEntity:r,streamEntity:O,policyEntity:G}}};
_.bw=function(G){var e=G.playbackData;if(!e)return[];var r=[];e=_.h(Object.keys(e));for(var Z=e.next();!Z.done;Z=e.next()){var O=Z.value;if(!m6_(G,_.Wn(O).entityId)&&(Z=nBy(G,_.Wn(O).entityId))){var M=void 0,T=void 0;O=(T=Number((M=_.e6(G,"playbackData",O))==null?void 0:M.streamDownloadTimestampSeconds))!=null?T:(0,_.vG)();r.push({entity:Z,streamDownloadTimestamp:O})}}return r.sort(function(E,b){var w=E.streamDownloadTimestamp,q=b.streamDownloadTimestamp;return q===w?E.entity.streamEntity&&!b.entity.streamEntity?
1:-1:q-w}).map(function(E){return E.entity})};
cLU=function(G){return _.u9$(_.bw(G))};
_.YZq=function(G){return _.bw(G).filter(function(e){var r;if(((r=e.policyEntity)==null?0:r.action)&&e.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var Z;if((Z=e.transferEntity)==null?0:Z.transferState){var O;return Hh_.includes((O=e.transferEntity)==null?void 0:O.transferState)}return!0})};
m6_=function(G,e){var r;return((r=_.e6(G,"downloadStatusEntity",_.GF(e,"downloadStatusEntity")))==null?void 0:r.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
yLq=function(G){var e;if(G==null?0:(e=G.playbackDataEntity)==null?0:e.key)return _.Wn(G.playbackDataEntity.key).entityId;var r;if(G==null?0:(r=G.transferEntity)==null?0:r.key)return _.Wn(G.transferEntity.key).entityId;var Z;if(G==null?0:(Z=G.streamEntity)==null?0:Z.key)return _.Wn(G.streamEntity.key).entityId;var O;if(G==null?0:(O=G.policyEntity)==null?0:O.key)return _.Wn(G.policyEntity.key).entityId};
FFU=function(G){var e=new Set,r;G=(r=G.mainDownloadsListEntity)==null?void 0:r[ALy];var Z;if(!(G==null?0:(Z=G.downloads)==null?0:Z.length))return e;var O;G==null||(O=G.downloads)==null||O.forEach(function(M){(M==null?0:M.videoItem)&&e.add(M.videoItem)});
return e};
vS=function(G,e){if(e){var r=_.e6(G,"mainVideoEntity",_.GF(e,"mainVideoEntity")),Z=_.e6(G,"downloadStatusEntity",_.GF(e,"downloadStatusEntity")),O=_.e6(G,"ytMainChannelEntity",_.GF(e,"ytMainChannelEntity")),M={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};G=nBy(G,e);Z=(Z==null?void 0:Z.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.R("woffle_render_failed_download_state_ks")&&(Z==null?void 0:Z.downloadState)==="DOWNLOAD_STATE_FAILED";!G&&Z&&(G=M);if(G&&r&&
O)return Object.assign({},{videoEntity:r,channelEntity:O},G)}};
Bk_=function(G,e){return JL_(G,e)==="TRANSFER_STATE_COMPLETE"&&phf(G,e)};
x6_=function(G,e){if(!e)return!1;var r;G=(r=_.e6(G,"playbackData",_.GF(e,"playbackData")))!=null?r:void 0;return!!G&&!!G.playerResponseJson};
JL_=function(G,e){if(!e)return"TRANSFER_STATE_UNKNOWN";var r=_.e6(G,"transfer",_.GF(e,"transfer"));if(r){var Z;return(Z=r.transferState)!=null?Z:"TRANSFER_STATE_UNKNOWN"}r=_.e6(G,"offlineOrchestrationActionWrapperEntity",_.GF(e,"offlineOrchestrationActionWrapperEntity"));G=_.e6(G,"mainVideoEntity",_.GF(e,"mainVideoEntity"));return r||G?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
Pri=function(G,e){if(!e)return"TRANSFER_STATE_UNKNOWN";if(G=_.e6(G,"transfer",_.GF(e,"transfer"))){var r;return(r=G.transferState)!=null?r:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
U6y=function(G,e){return e&&(G=_.e6(G,"videoPlaybackPositionEntity",_.GF(e,"videoPlaybackPositionEntity")),G==null?0:G.lastPlaybackPositionSeconds)?Number(G.lastPlaybackPositionSeconds):0};
WFS=function(G,e){return zJS(G).some(function(r){var Z;return(r==null?void 0:(Z=r.mainPlaylistEntity)==null?void 0:Z.playlistId)===e})};
LFU=function(G,e,r){var Z=NkS(G,e);if(!Z.length)return[];e=[];Z=_.h(Z);for(var O=Z.next();!O.done;O=Z.next()){O=O.value;var M=vS(G,O);r&&JL_(G,O)!=="TRANSFER_STATE_COMPLETE"||M&&e.push(M)}return e};
NkS=function(G,e){if(!e)return[];var r=_.GF(e,"mainPlaylistEntity"),Z;e=(Z=G.mainPlaylistEntity)==null?void 0:Z[r];Z=[];if(e==null||!e.videos)return Z;e=_.h(e.videos);for(r=e.next();!r.done;r=e.next()){r=r.value;var O=void 0,M=void 0,T=void 0,E=(O=G)==null?void 0:(M=O.mainPlaylistVideoEntity)==null?void 0:(T=M[r])==null?void 0:T.video;E&&(r=_.Wn(E).entityId)&&Z.push(r)}return Z};
G64=function(G,e){if(e){var r=_.e6(G,"mainPlaylistEntity",_.GF(e,"mainPlaylistEntity")),Z=_.e6(G,"mainPlaylistDownloadStateEntity",_.GF(e,"mainPlaylistDownloadStateEntity"));G=_.e6(G,"ytMainChannelEntity",_.GF(e,"ytMainChannelEntity"));if(Z&&r)return Object.assign({},{mainPlaylistEntity:r,mainPlaylistDownloadStateEntity:Z},!!G&&{channelEntity:G})}};
zJS=function(G){return ehU(G).sort(function(e,r){return r.addedTimestampMillis-e.addedTimestampMillis}).map(function(e){return e.downloadedPlaylistEntities})};
ehU=function(G){var e=G.mainPlaylistDownloadStateEntity,r=[];if(!e)return r;for(var Z=_.h(Object.keys(e)),O=Z.next();!O.done;O=Z.next()){var M=O.value;O=G64(G,_.Wn(M).entityId);var T=void 0;M=Number((T=e[M])==null?void 0:T.addedTimestampMillis);T=isNaN(M)?(0,_.vG)():M;O!==void 0&&r.push({downloadedPlaylistEntities:O,addedTimestampMillis:T})}return r};
r44=function(G){var e,r=(e=G.mainPlaylistVideoEntity)!=null?e:{};return new Set(zJS(G).reduce(function(Z,O){Z=Z===void 0?[]:Z;var M,T;O==null||(M=O.mainPlaylistEntity)==null||(T=M.videos)==null||T.forEach(function(E){var b;(E=(b=r[E])==null?void 0:b.video)&&Z.push(E)});
return Z},[]))};
ZbN=function(G){return"downloadedMusicPlaylistEntities"in G};
Obq=function(G){return"mainPlaylistEntity"in G&&"mainPlaylistDownloadStateEntity"in G};
MUU=function(G){return"videoEntity"in G&&"channelEntity"in G};
VUS=function(G){var e=G.musicPlaylistDownloadMetadataEntity,r=[];if(!e)return r;for(var Z=_.h(Object.keys(e)),O=Z.next();!O.done;O=Z.next()){O=O.value;a:{var M=G,T=_.Wn(O).entityId;if(T){var E=_.e6(M,"musicPlaylist",_.GF(T,"musicPlaylist"));M=_.e6(M,"musicPlaylistDownloadMetadataEntity",_.GF(T,"musicPlaylistDownloadMetadataEntity"));if(E&&M){E={musicPlaylistEntity:E,musicPlaylistDownloadStateEntity:M};break a}}E=void 0}M=void 0;O=Number((M=e[O])==null?void 0:M.addedTimestampMillis);O=isNaN(O)?(0,_.vG)():
O;E!==void 0&&r.push({downloadedMusicPlaylistEntities:E,addedTimestampMillis:O})}return r};
hhS=function(G){var e=new Set;G=_.h(G);for(var r=G.next();!r.done;r=G.next())if(r=r.value,"musicPlaylistEntity"in r&&"musicPlaylistDownloadStateEntity"in r){r=_.h(r.musicPlaylistEntity.tracks);for(var Z=r.next();!Z.done;Z=r.next())e.add(Z.value)}return e};
TFs=function(G,e){if(e){var r=_.e6(G,"musicTrack",_.GF(e,"musicTrack")),Z=_.e6(G,"musicArtist",_.GF(e,"musicArtist"))||{};if((G=nBy(G,e))&&r&&Z)return Object.assign({},{musicTrackEntity:r,musicArtistEntity:Z},G)}};
DGS=function(G){var e=G.musicTrackDownloadMetadataEntity,r=[];if(!e)return[];e=_.h(Object.keys(e));for(var Z=e.next();!Z.done;Z=e.next()){var O=Z.value;Z=TFs(G,_.Wn(O).entityId);var M=void 0;O=Number((M=_.e6(G,"musicTrackDownloadMetadataEntity",O))==null?void 0:M.addedTimestampMillis);M=isNaN(O)?(0,_.vG)():O;Z!==void 0&&r.push({downloadedMusicEntities:Z,addedTimestampMillis:M})}return r};
bbA=function(G,e){if(!e)return[];if(Object.values(E0N).includes(e))return ib$(G,e);e=_.GF(e,"musicPlaylist");var r;G=(r=G.musicPlaylist)==null?void 0:r[e];r=[];if(G==null||!G.tracks)return r;G=_.h(G.tracks);for(e=G.next();!e.done;e=G.next())(e=_.Wn(e.value).entityId)&&r.push(e);return r};
ib$=function(G,e){var r=new Set,Z=VUS(G).map(function(M){return M.downloadedMusicPlaylistEntities});
Z=hhS(Z);Z=_.h(Z);for(var O=Z.next();!O.done;O=Z.next())(O=_.Wn(O.value).entityId)&&r.add(O);return v0q(G).downloadedMusicEntities.filter(function(M){var T;if((T=M.musicTrackEntity)!=null&&T.videoId){M=M.musicTrackEntity;if(T=e==="PPOM"?!0:!r.has(M.videoId))b:switch(M=M.musicVideoType,e){case "PPSE":T=M==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:T=M!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}M=T}else M=!1;return M}).map(function(M){var T;
return(T=M.musicTrackEntity)==null?void 0:T.videoId})};
v0q=function(G){var e=DGS(G).sort(function(r,Z){return Z.addedTimestampMillis-r.addedTimestampMillis}).map(function(r){return"downloadedMusicEntities"in r?r.downloadedMusicEntities:ZbN(r)?r.downloadedMusicPlaylistEntities:{}});
G=VUS(G).sort(function(r,Z){return Z.addedTimestampMillis-r.addedTimestampMillis}).map(function(r){return"downloadedMusicEntities"in r?r.downloadedMusicEntities:ZbN(r)?r.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:e,downloadedMusicPlaylistEntities:G}};
$Gq=function(G,e){e=_.xZ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?bbA(G,e):NkS(G,e);if(!e.length)return"TRANSFER_STATE_UNKNOWN";e=e.map(function(r){return Pri(G,r)});
return wkf(e)};
wkf=function(G){var e=new Set(G);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";G=e.has("TRANSFER_STATE_TRANSFERRING");e=e.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return G||e?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
wf=function(G){var e=G.mainVideoDownloadStateEntity,r=[];if(!e)return[];e=_.h(Object.keys(e));for(var Z=e.next();!Z.done;Z=e.next()){var O=Z.value;if(!m6_(G,_.Wn(O).entityId)){Z=vS(G,_.Wn(O).entityId);var M=void 0,T=void 0;O=(T=Number((M=_.e6(G,"mainVideoDownloadStateEntity",O))==null?void 0:M.addedTimestampMillis))!=null?T:(0,_.vG)();Z!==void 0&&r.push({downloadedVideoEntities:Z,addedTimestampMillis:O})}}return r};
SDS=function(G){return wf(G).sort(function(e,r){return r.addedTimestampMillis-e.addedTimestampMillis}).map(function(e){return e.downloadedVideoEntities})};
_.tUN=function(G){var e=r44(G),r=_.$t(G),Z=FFU(G),O=wf(G).filter(function(T){var E,b;if((T==null?void 0:(E=T.downloadedVideoEntities)==null?void 0:(b=E.transferEntity)==null?void 0:b.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var w,q;T=T==null?void 0:(w=T.downloadedVideoEntities)==null?void 0:(q=w.videoEntity)==null?void 0:q.key;return _.R("kevlar_use_library_entity")?T&&(Z.has(T)||r[T]):T&&!e.has(T)}),M=ehU(G).filter(function(T){return $Gq(G,T.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.mY(O),_.mY(M)).sort(function(T,E){return E.addedTimestampMillis-T.addedTimestampMillis}).map(function(T){return qDS(T)})};
g0N=function(G,e){if(e&&phf(G,e)){var r,Z,O=(Z=(r=_.e6(G,"playbackData",_.GF(e,"playbackData")))!=null?r:void 0)==null?void 0:Z.playerResponseJson;if(O){try{var M=JSON.parse(O);var T=_.e6(G,"transfer",_.GF(e,"transfer")),E=U6y(G,e);E&&(M=Object.assign({},M,{playerConfig:Object.assign({},M.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+E*1E3}}})}));M.cotn=T==null?void 0:T.cotn}catch(b){}return M}}};
_.Rha=function(G){var e,r,Z;G=(Z=(r=((e=G.downloadsPageViewConfigurationEntity)!=null?e:{})[_.S6])==null?void 0:r.smartDownloadsOptInBannerVisibility)!=null?Z:{};var O;return(O=_.a(G,lsf))!=null?O:{}};
_.$t=function(G){var e,r,Z;G=(Z=(r=((e=G.mainDownloadsListEntity)!=null?e:{})[_.jqA])==null?void 0:r.downloads)!=null?Z:[];e={};r=_.h(G);for(Z=r.next();!Z.done;Z=r.next())G=void 0,e[(G=Z.value.videoItem)!=null?G:""]=!0;return e};
asA=function(G){var e=_.$t(G);if(Object.keys(e).length===0)return!1;var r=G.mainVideoEntity;if(!r)return!0;r=_.h(Object.keys(r));for(var Z=r.next();!Z.done;Z=r.next()){Z=Z.value;var O=_.Wn(Z).entityId;if(e[Z]&&!m6_(G,O))return!1}return!0};
_.qr=function(G){var e=_.$t(G);return wf(G).sort(function(r,Z){return r.addedTimestampMillis-Z.addedTimestampMillis}).map(function(r){return r.downloadedVideoEntities}).filter(function(r){var Z;
return(r=r==null?void 0:(Z=r.videoEntity)==null?void 0:Z.key)&&!!e[r]})};
_.KcN=function(G){var e,r,Z;G=(Z=(r=((e=G.downloadsPageViewConfigurationEntity)!=null?e:{})[_.S6])==null?void 0:r.downloadsUpsellBannerVisibility)!=null?Z:{};var O;return(O=_.a(G,XkS))!=null?O:{}};
qDS=function(G){return"downloadedVideoEntities"in G?G.downloadedVideoEntities:"downloadedPlaylistEntities"in G?G.downloadedPlaylistEntities:{}};
fs_=function(G){var e=_.$t(G),r=r44(G),Z=wf(G).filter(function(O){var M,T;return(O=O==null?void 0:(M=O.downloadedVideoEntities)==null?void 0:(T=M.videoEntity)==null?void 0:T.key)&&!e[O]&&!r.has(O)});
G=ehU(G);return[].concat(_.mY(Z),_.mY(G)).sort(function(O,M){return M.addedTimestampMillis-O.addedTimestampMillis}).map(function(O){return qDS(O)})};
_.th=function(G){if(!_.R("kevlar_use_library_entity"))return fs_(G);var e=wf(G).filter(function(Z){var O,M;if(O=Z=Z==null?void 0:(O=Z.downloadedVideoEntities)==null?void 0:(M=O.videoEntity)==null?void 0:M.key){var T,E,b;O=((E=(T=G.mainDownloadsListEntity)==null?void 0:T[ALy])==null?0:(b=E.downloads)==null?0:b.length)?FFU(G).has(Z):!1}return O}),r=ehU(G);
return[].concat(_.mY(e),_.mY(r)).sort(function(Z,O){return O.addedTimestampMillis-Z.addedTimestampMillis}).map(function(Z){return qDS(Z)})};
k6_=function(G){var e=_.$t(G),r=r44(G);return SDS(G).filter(function(Z){var O;return(Z=Z==null?void 0:(O=Z.videoEntity)==null?void 0:O.key)&&!e[Z]&&!r.has(Z)})};
HbS=function(G){if(!_.R("kevlar_use_library_entity"))return k6_(G);var e=_.$t(G),r=FFU(G);return SDS(G).filter(function(Z){var O;return(Z=Z==null?void 0:(O=Z.videoEntity)==null?void 0:O.key)&&!e[Z]&&r.has(Z)})};
dGf=function(G,e){e=_.GF(e,"settingEntity");var r,Z,O;return!!((O=(Z=((r=G.settingEntity)!=null?r:{})[e])==null?void 0:Z.settingOptionValue)!=null?O:{}).boolValue};
_.gf=function(G){var e=_.qr(G);if(I74(e))return 0;var r=[];e=_.h(e);for(var Z=e.next();!Z.done;Z=e.next()){Z=Z.value;var O=void 0,M=void 0;if((O=Z)==null?0:(M=O.videoEntity)==null?0:M.key)O=_.Wn(Z.videoEntity.key).entityId,Z=G,O=_.GF(O,"mainVideoDownloadStateEntity"),Z=_.e6(Z,"mainVideoDownloadStateEntity",O),(Z=Number(Z==null?void 0:Z.addedTimestampMillis))&&r.push(Z)}return Math.max.apply(Math,_.mY(r))};
_.lw=function(G){return G.ui.richGridMiniMode};
_.RI=function(G){return G.ui.richGridItemsPerRow};
_.o0i=function(G){return G.ui.richGridSlimItemsPerRow};
_.sq$=function(G){return G.ui.guideIsExpanded};
_.j6=function(G){return G.ui.miniplayerIsActive};
Qqa=function(G){return G.ui.singleOptionSurveyIsActive};
_.aI=function(G){var e;return((e=G.ui)==null?void 0:e.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.Iss=function(G){return _.aI(G)==="WEB_PAGE_TYPE_WATCH"};
_.pkN=function(G){return _.aI(G)==="WEB_PAGE_TYPE_SHORTS"};
_.COp=function(G){return G.ui.inlinePreviewIsActive};
_.u3F=function(G){return G.ui.inlinePreviewIsEnabled};
_.n0F=function(G){return G.ui.miniplayerPlaybackState};
_.Xs=function(G){return G.ui.isOnline};
_.mGA=function(G){return G.ui.frostedGlassMode};
_.KQ=function(G,e){return JL_(G.entities,e)};
_.fQ=function(G,e){return $Gq(G.entities,e)};
c4$=function(G,e){var r;if(e){var Z;G=(Z=_.e6(G.entities,"offlineVideoPolicy",_.GF(e,"offlineVideoPolicy")))==null?void 0:Z.action}else G=void 0;return(r=G)!=null?r:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
YDA=function(G,e){var r;e?(G=_.e6(G.entities,"offlineVideoPolicy",_.GF(e,"offlineVideoPolicy")),G=Number(G==null?void 0:G.expirationTimestamp)):G=void 0;return(r=G)!=null?r:0};
_.y44=function(G){return _.bw(G.entities).length};
A4F=function(G,e){return vS(G.entities,e)};
FcS=function(G,e){return G64(G.entities,e)};
kt=function(G,e){return(G=vS(G.entities,e))?_.d6s([G]):0};
_.J4s=function(G,e){var r=_.xZ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(r){var Z=G.entities;var O=bbA(Z,e);if(O.length){var M=[];O=_.h(O);for(var T=O.next();!T.done;T=O.next())(T=TFs(Z,T.value))&&M.push(T);Z=M}else Z=[]}else Z=LFU(G.entities,e);var E;if(r){var b=G.entities;e?(e=_.GF(e,"musicPlaylist"),b=(E=b.musicPlaylist)==null?void 0:E[e],E=b!=null&&b.tracks?b.tracks.length:0):E=0}else E=G.entities,e?(e=_.GF(e,"mainPlaylistEntity"),E=(b=E.mainPlaylistEntity)==null?void 0:b[e],E=E!=null&&E.videos?
E.videos.length:0):E=0;return Z.length!==E?0:Z?oBs(Z):0};
_.BFf=function(G){return G.download.isLeaderTab};
_.xGp=function(G,e,r){if(!e&&r){var Z=G.entities;if(r){var O=QTN(r),M,T;e=(T=(M=_.e6(Z,"offlineabilityEntity",_.GF(O,"offlineabilityEntity")))==null?void 0:M.addToOfflineButtonState)!=null?T:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else e="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else M=G.entities,e?(T=QTN(e),e=(O=(Z=_.e6(M,"offlineabilityEntity",_.GF(T,"offlineabilityEntity")))==null?void 0:Z.addToOfflineButtonState)!=null?O:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):e="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return e};
POf=function(G,e){G=G.entities;if(e){e=QTN(e);var r,Z;e=(Z=(r=_.e6(G,"offlineabilityEntity",_.GF(e,"offlineabilityEntity")))==null?void 0:r.addToOfflineButtonState)!=null?Z:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else e="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return e};
_.UGy=function(G){var e=G.entities;G=_.Xs(G);var r=dGf(e,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.R("kevlar_modern_downloads_page")&&r)var Z=!1;else{var O,M;e=(M=(O=((Z=e.downloadsPageViewConfigurationEntity)!=null?Z:{})[_.S6])==null?void 0:O.smartDownloadsOptInBannerVisibility)!=null?M:{};Z=G?!!e.visibleWithConnection:!!e.visibleWithoutConnection}return Z};
_.zhi=function(G){return dGf(G.entities,"SMART_DOWNLOADS_ENABLED")};
_.Wcs=function(G){return asA(G.entities)};
NF$=function(G){return _.qr(G.entities).every(function(e){var r;return(e==null?void 0:(r=e.transferEntity)==null?void 0:r.transferState)&&!Hh_.includes(e.transferEntity.transferState)})};
_.Lcf=function(G){var e,r,Z,O=(Z=(r=((e=G.entities.downloadsPageViewConfigurationEntity)!=null?e:{})[_.S6])==null?void 0:r.downloadsUpsellBannerVisibility)!=null?Z:{};return _.Xs(G)?!!O.visibleWithConnection:!!O.visibleWithoutConnection};
_.Gs$=function(G,e){return m6_(G.entities,e)};
eif=function(G,e){if(e){var r,Z;G=(Z=(r=_.e6(G.entities,"downloadStatusEntity",_.GF(e,"downloadStatusEntity")))==null?void 0:r.downloadState)!=null?Z:"DOWNLOAD_STATE_UNKNOWN"}else G="DOWNLOAD_STATE_UNKNOWN";return G};
HS=function(G,e){return U6y(G.entities,e)};
MGS=function(G){G=r5F(G);var e=G.hours===void 0?0:G.hours,r=G.minutes===void 0?0:G.minutes,Z=G.seconds===void 0?0:G.seconds,O=e>0;G=[];O&&(e=ZKA(e),G.push(e));e=O;e=e===void 0?!1:e;r=(["af","be","lt"].includes(oI)||e)&&r<10?OKf().format(r):(new Intl.NumberFormat("en-u-nu-latn")).format(r);G.push(r);r=OKf().format(Z);G.push(r);r=":";"da fi id si sr sr-Latn".split(" ").includes(oI)&&(r=".");return G.join(r)};
_.his=function(G){G=r5F(G);var e=G.hours===void 0?0:G.hours,r=G.minutes===void 0?0:G.minutes,Z=G.seconds===void 0?0:G.seconds;G=[];if(e>0){var O=VGN().format({hours:e});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(oI)||e>9999)O=O.replace(e.toString(),ZKA(e)),oI==="km"&&(O=O.replace(".",","));G.push(O)}r>0&&G.push(VGN().format({minutes:r}));Z>0&&G.push(VGN().format({seconds:Z}));e="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");r=oI=="am"?"{0}\u1363 ":oI=="fa"?"{0}\u060c\u200f ":
oI=="my"?"{0} - ":oI=="ne"?"{0},":oI=="th"?"{0} ":oI=="ur"?"{0}\u060c ":oI=="ar"||oI=="ar-XB"?"{0} \u0648":oI=="ja"||oI=="zh-CN"||oI=="zh-HK"||oI=="zh-TW"?"{0}\u3001":"{0}, ";Z=oI=="am"?"\u1363 ":oI=="fa"?"\u060c\u200f ":oI=="my"?" - ":oI=="th"?" ":oI=="ur"?"\u060c ":oI=="ar"||oI=="ar-XB"?" \u0648":oI=="ja"||oI=="zh-CN"||oI=="zh-HK"||oI=="zh-TW"?"\u3001":", ";O=oI=="am"?" \u12a5\u1293 {0}":oI=="as"?" \u0986\u09f0\u09c1 {0}":oI=="az"?" v\u0259 {0}":oI=="bn"?" \u098f\u09ac\u0982 {0}":oI=="cs"?" a\u00a0{0}":
oI=="de"?" und {0}":oI=="el"?" \u03ba\u03b1\u03b9 {0}":oI=="eu"?" eta {0}":oI=="fa"?"\u060c \u0648 {0}":oI=="fil"?", at {0}":oI=="gu"?" \u0a85\u0aa8\u0ac7 {0}":oI=="hi"?", \u0914\u0930 {0}":oI=="hu"?" \u00e9s {0}":oI=="hy"?" \u0587 {0}":oI=="id"?", dan {0}":oI=="iw"?" \u05d5-{0}":oI=="ja"?"\u3001{0}":oI=="ka"?" \u10d3\u10d0 {0}":oI=="km"?" \u1793\u17b7\u1784 {0}":oI=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":oI=="ko"?" \ubc0f {0}":oI=="ky"?" \u0436\u0430\u043d\u0430 {0}":oI=="lt"?" ir {0}":oI==
"lv"?" un {0}":oI=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":oI=="mr"?" \u0906\u0923\u093f {0}":oI=="ms"?" dan {0}":oI=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":oI=="ne"?" \u0930 {0}":oI=="or"?", \u0b13 {0}":oI=="pa"?" \u0a05\u0a24\u0a47 {0}":oI=="ro"?" \u0219i {0}":oI=="si"?", \u0dc3\u0dc4 {0}":oI=="sk"?" a {0}":oI=="sl"?" in {0}":oI=="sq"?" dhe {0}":oI=="sv"?" och {0}":oI=="sw"?" na {0}":oI=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":oI=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
oI=="th"?" \u0e41\u0e25\u0e30{0}":oI=="tr"?" ve {0}":oI=="ur"?"\u060c \u0627\u0648\u0631 {0}":oI=="uz"?" va {0}":oI=="vi"?" v\u00e0 {0}":oI=="zh-HK"?"\u53ca{0}":oI=="zu"?", ne-{0}":oI=="af"||oI=="nl"?" en {0}":oI=="ar"||oI=="ar-XB"?" \u0648{0}":oI=="be"||oI=="uk"?" \u0456 {0}":oI=="en-GB"||oI=="en-IN"?" and {0}":oI=="en"||oI=="en-XA"?", and {0}":oI=="et"||oI=="fi"?" ja {0}":oI=="fr"||oI=="fr-CA"?" et {0}":oI=="zh-CN"||oI=="zh-TW"?"\u548c{0}":oI=="da"||oI=="is"||oI=="no"?" og {0}":oI=="es"||oI=="es-419"||
oI=="es-US"?" y {0}":oI=="kk"||oI=="lo"||oI=="mn"?", {0}":oI=="bg"||oI=="mk"||oI=="ru"||oI=="sr"?" \u0438 {0}":oI=="gl"||oI=="it"||oI=="pt-BR"||oI=="pt-PT"?" e {0}":" i {0}";var M=oI=="am"?"{0} \u12a5\u1293 {1}":oI=="as"?"{0} \u0986\u09f0\u09c1 {1}":oI=="az"?"{0} v\u0259 {1}":oI=="bn"?"{0} \u098f\u09ac\u0982 {1}":oI=="de"?"{0} und {1}":oI=="el"?"{0} \u03ba\u03b1\u03b9 {1}":oI=="eu"?"{0} eta {1}":oI=="fa"?"{0} \u0648 {1}":oI=="fil"?"{0} at {1}":oI=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":oI=="hi"?"{0} \u0914\u0930 {1}":
oI=="hu"?"{0} \u00e9s {1}":oI=="hy"?"{0} \u0587 {1}":oI=="iw"?"{0} \u05d5-{1}":oI=="ja"?"{0}\u3001{1}":oI=="ka"?"{0} \u10d3\u10d0 {1}":oI=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":oI=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":oI=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":oI=="ko"?"{0} \ubc0f {1}":oI=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":oI=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":oI=="lt"?"{0} ir {1}":oI=="lv"?"{0} un {1}":oI=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":oI=="mn"?"{0}, {1}":oI==
"mr"?"{0} \u0906\u0923\u093f {1}":oI=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":oI=="ne"?"{0} \u0930 {1}":oI=="or"?"{0} \u0b13 {1}":oI=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":oI=="ro"?"{0} \u0219i {1}":oI=="si"?"{0} \u0dc3\u0dc4 {1}":oI=="sl"?"{0} in {1}":oI=="sq"?"{0} dhe {1}":oI=="sv"?"{0} och {1}":oI=="sw"?"{0} na {1}":oI=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":oI=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":oI=="th"?"{0}\u0e41\u0e25\u0e30{1}":oI=="tr"?"{0} ve {1}":oI=="ur"?
"{0} \u0627\u0648\u0631 {1}":oI=="uz"?"{0} va {1}":oI=="vi"?"{0} v\u00e0 {1}":oI=="zh-HK"?"{0}\u53ca{1}":oI=="zu"?"{0} ne-{1}":oI=="af"||oI=="nl"?"{0} en {1}":oI=="ar"||oI=="ar-XB"?"{0} \u0648{1}":oI=="be"||oI=="uk"?"{0} \u0456 {1}":oI=="cs"||oI=="sk"?"{0} a\u00a0{1}":oI=="et"||oI=="fi"?"{0} ja {1}":oI=="fr"||oI=="fr-CA"?"{0} et {1}":oI=="id"||oI=="ms"?"{0} dan {1}":oI=="zh-CN"||oI=="zh-TW"?"{0}\u548c{1}":oI=="da"||oI=="is"||oI=="no"?"{0} og {1}":oI=="es"||oI=="es-419"||oI=="es-US"?"{0} y {1}":oI==
"bg"||oI=="mk"||oI=="ru"||oI=="sr"?"{0} \u0438 {1}":oI=="en"||oI=="en-GB"||oI=="en-IN"||oI=="en-XA"?"{0} and {1}":oI=="gl"||oI=="it"||oI=="pt-BR"||oI=="pt-PT"?"{0} e {1}":"{0} i {1}";oI==="sq"?(O=O.replace("dhe","e"),M=M.replace("dhe","e")):oI==="th"?(Z=Z.replace("{0}"," {0}"),M=M.replace("{0}","{0} "),M=M.replace("{1}"," {1}")):oI==="ne"?Z=",":oI==="zh-CN"?Z="":e.includes(oI)&&(Z=" ");return G.length<2?G.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(oI)?
G.length===2?M.replace("{0}",G[0]).replace("{1}",G[1]):r.replace("{0}",G[0])+G.slice(1,-1).join(Z)+O.replace("{0}",G[G.length-1]):G.join(Z)};
r5F=function(G){var e=G.hours||0,r=G.minutes||0,Z=G.seconds||0;e=Z+r*60+e*3600+(G.days||0)*86400+(G.weeks||0)*604800+(G.months||0)*2629800+(G.years||0)*31557600;if(e<=0)return{hours:0,minutes:0,seconds:0};G=e;e=Math.floor(G/3600);G%=3600;r=Math.floor(G/60);Z=Math.floor(G%60);return{hours:e,minutes:r,seconds:Z}};
ZKA=function(G){G=(new Intl.NumberFormat("en-u-nu-latn")).format(G);var e=["fr"],r="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(oI)?G.replace(",","\u00a0"):e.includes(oI)?G.replace(",","\u202f"):r.includes(oI)?G.replace(",","."):G};
OKf=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
VGN=function(){TDq||(s6=DCN,TDq=new E9S);return TDq};
iK$=function(G){try{return(new _.Q4(5)).format(G)}catch(e){}};
II=function(G){return{thumbnailOverlayDownloadingRenderer:{state:G}}};
bKA=function(){var G=_.OK("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.Bn(G),icon:{iconType:"PLAY_ALL"}}}};
v94=function(G){G=_.pQ(G,2);return oI!=="ru"&&oI!=="es_419"&&oI!=="es-419"&&oI!=="es"&&oI!=="es_US"&&oI!=="es-US"&&oI!=="fr"&&oI!=="pl"&&oI!=="it"&&oI!=="nl"&&oI!=="uk"&&oI!=="fr_CA"&&oI!=="fr-CA"||G===""?G:G[0].toLocaleUpperCase()+G.substring(1)};
$Ci=function(G){return function(e){var r=G(),Z=_.pQ(e,r.dateFormat);e=_.pQ(e,r.timeFormat);var O=wbS.DATETIMEFORMATS[r.joinerStyle];O=O.replace(/'(?!')/g,"");O=O.replace("{0}",e);O=O.replace("{1}",Z);return r.capitalize(O)}};
xCF=function(G){return G?typeof G.seconds==="string"&&(G.nanos===void 0||typeof G.nanos==="number"):!1};
Piq=function(G){return new Date(Number(G.seconds)*1E3+(G.nanos||0)*1E-6)};
_.pQ=function(G,e){if(typeof G.getTime==="function")G={date:G};else if(xCF(G))G={date:Piq(G)};else if(typeof xCF(G.timestamp)&&typeof G.i18nInternalSecondsEastOfUtc==="number")G={date:Piq(G.timestamp),timeZone:CQ(-G.i18nInternalSecondsEastOfUtc/60)};else throw Error("Lf`"+JSON.stringify(G));var r=G;G=r.date;r=r.timeZone;e=UCf(e).format(G,r);oI==="zh-TW"&&(G=r?Number(UCf("H").format(G,r)):G.getHours(),e=G<5?e.replace("\u4e0a\u5348","\u51cc\u6668"):G<8?e.replace("\u4e0a\u5348","\u65e9\u4e0a"):G<12?
e.replace("\u4e0a\u5348","\u4e0a\u5348"):G<13?e.replace("\u4e0b\u5348","\u4e2d\u5348"):G<19?e.replace("\u4e0b\u5348","\u4e0b\u5348"):e.replace("\u4e0b\u5348","\u665a\u4e0a"));return e};
UCf=function(G){if(ziy.has(G))return ziy.get(G);var e=WQq(G);e=NDS(e);LQ4!==!0&&(LQ4=!0);GJU=!0;GJU=!1;e=new uw(e,wbS);ziy.set(G,e);return e};
WQq=function(G){return(new uw(G,wbS)).patternParts_.map(function(e){return e.type===0?"'"+e.text+"'":e.text}).join("")};
NDS=function(G){return oI==="en"||oI==="es_US"||oI==="es-US"?G:G.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(e,r,Z){return"H".repeat(r.length)+Z})};
hKs=function(G,e){eKa||(s6=DCN,eKa=new rvN);var r=eKa;a:if(G=ZJU(G),e=ZJU(e||new Date),G>e)r=G.getTime()-e.getTime()>6048E5?_.pQ(G,1):OJ4(G);else{for(var Z=0;MwN(G,12*(Z+1))<e;)++Z;if(Z>0)r=r.format(-Z,0);else{for(Z=0;MwN(G,Z+1)<e;)++Z;if(Z>0)r=r.format(-Z,2);else{G=e.getTime()-G.getTime();e=_.h(Vwa);for(Z=e.next();!Z.done;Z=e.next()){Z=Z.value;var O=Z.unit,M=Math.floor(G/Z.unitDuration);if(M>=(Z.threshold===void 0?1:Z.threshold)){r=r.format(-M,O);break a}}r=r.format(-0,7)}}}return r};
ZJU=function(G){if(typeof G.getTime==="function")return G;if(xCF(G))return Piq(G);throw Error("Mf`"+JSON.stringify(G));};
MwN=function(G,e){for(var r=0,Z;;++r)if(Z=new Date(G.getFullYear(),G.getMonth()+e,G.getDate()-r,G.getHours(),G.getMinutes(),G.getSeconds()),Z.getMonth()===(G.getMonth()+e)%12)return Z};
_.nQ=function(G){return{runs:[{text:G}]}};
_.mG=function(G){if(G&&G.simpleText)return G.simpleText;var e="";if(G&&G.runs)for(var r=0;r<G.runs.length;r++)G.runs[r].text&&(e+=G.runs[r].text);return e};
D9_=function(G,e,r,Z){return G.videoEntity&&!G.policyEntity&&r!=="DOWNLOAD_STATE_FAILED"?[II("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:DH(G.policyEntity)&&e!=="TRANSFER_STATE_FAILED"&&e!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?e==="TRANSFER_STATE_PAUSED_BY_USER"?[II("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.E6(e)?[II("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:G.videoEntity.lengthSeconds?T9_(G.videoEntity.lengthSeconds,Z):[]:
[II("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
T9_=function(G,e){var r=[{thumbnailOverlayTimeStatusRenderer:{text:_.Bn(MGS({seconds:G})),style:"DEFAULT"}}];e&&(G=e<=0||G<=0?0:e>=G?100:Math.ceil(e*100/G),G>0&&r.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:G}}));return r};
E_$=function(G,e,r,Z,O){if(e==="TRANSFER_STATE_UNKNOWN"||!G)return{};if(_.E6(e)||e==="TRANSFER_STATE_PRE_TRANSFER")var M=[II("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var T,E;if(e==="TRANSFER_STATE_COMPLETE"&&((T=G.mainPlaylistEntity)==null?0:(E=T.videos)==null?0:E.length)){var b;G=(M=G.mainPlaylistEntity)==null?void 0:(b=M.videos)==null?void 0:b.length;M=(M=iK$(G))?{thumbnailOverlayBottomPanelRenderer:{text:_.Bn(M),icon:{iconType:"PLAYLISTS"}}}:void 0;M=[bKA(),Object.assign({},
M!=null?M:{})]}else M=[]}a:if(e==="TRANSFER_STATE_PRE_TRANSFER")r=xJ(_.OK("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(e==="TRANSFER_STATE_TRANSFER_IN_QUEUE")r=xJ(_.OK("WAITING_TO_DOWNLOAD"));else if(_.E6(e))r=Math.floor(r*100).toString(),r=xJ(_.OK("DOWNLOADING_PERCENT",{percent:r},"Downloading... "+r+"%"));else{if(Z&&(_.R("playlist_is_offline_selector_killswitch")&&(O=_.v_().resolve(_.e4).isNetworkAvailable()),O)){r=mlU(_.OK("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
urp(Z));break a}r=void 0}e=e==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.OK("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},M.length?{thumbnailOverlays:M}:{},r?{viewPlaylistText:r}:{viewPlaylistText:_.nQ("")},e.length?{badges:e}:{})};
iJy=function(G,e,r,Z,O,M){if(e==="TRANSFER_STATE_UNKNOWN"||!G)return{};if(Z==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var T=D9_(G,e,Z);if(G.videoEntity&&!G.policyEntity&&Z!=="DOWNLOAD_STATE_FAILED"){var E=_.OK("WAITING_TO_DOWNLOAD");if(E)return{shortViewCountText:_.nQ(E),publishedTimeText:void 0,thumbnailOverlays:T}}if(!DH(G.policyEntity)){M=G.policyEntity&&!sTS(G.policyEntity)?_.OK("DOWNLOAD_EXPIRED",{},"Download expired"):
_.OK("TRANSFER_FAILED",{},"Download failed");var b;if((b=G.policyEntity)==null?0:b.shortMessageForDisabledAction)M=G.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:xJ(M),publishedTimeText:void 0,thumbnailOverlays:T}}if(e==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.nQ(_.OK("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:T};if(e==="TRANSFER_STATE_FAILED"||e==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.nQ(_.OK("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:T};if(e==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(b=_.OK("WAITING_TO_DOWNLOAD"),Z==="DOWNLOAD_STATE_PAUSED"&&(b=_.OK("DOWNLOAD_PAUSED",{},"Download paused")),b))return{shortViewCountText:_.nQ(b),publishedTimeText:void 0,thumbnailOverlays:T};if(_.E6(e))return G=Math.floor(r*100).toString(),{shortViewCountText:_.nQ(_.OK("DOWNLOADING_PERCENT",{percent:G},"Downloading... "+G+"%")),publishedTimeText:void 0,thumbnailOverlays:T};e=void 0;G.videoEntity.publishedTimestampMillis&&
(e=new Date,O&&(e=new Date(O)),e=xJ(hKs(new Date(Number(G.videoEntity.publishedTimestampMillis)),e)));O=[];_.R("kevlar_woffle_badge_killswitch")||(O=[{metadataBadgeRenderer:{label:_.OK("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var w;G=xJ((w=G.videoEntity.localizedStrings)==null?void 0:w.viewCount);return Object.assign({},M?{shortViewCountText:void 0}:{shortViewCountText:G},M?{}:{publishedTimeText:e},{badges:O,thumbnailOverlays:T})};
v_q=function(G,e){G=G===void 0?bJp:G;switch(e.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:e.payload.playlistId,inviteLinkURL:e.payload.inviteLinkUrl};default:return G}};
$9p=function(G,e){G=G===void 0?wZy:G;switch(e.type){case "SET_CURRENT_FORM_ID":return e=e.payload.formId,G.currentFormId===e?G:{currentFormId:e,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var r=e.payload;e=r.groupId;r=r.command;if(G.currentFormId){var Z=Object.assign({},G.commandsMap);Z[e]=r;G=Object.assign({},G,{commandsMap:Z})}return G;case "RESET_COMMAND_MAP":return Object.assign({},G,{commandsMap:{}});default:return G}};
q1$=function(G,e){G=G===void 0?S1a:G;switch(e.type){case "UPDATE_CANVAS_MODE":return Object.assign({},G,{currentMode:e.payload.currentMode});default:return G}};
g_N=function(G,e){G=G===void 0?twa:G;switch(e.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},G,{guideIsExpanded:e.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},G,{scrollAtTop:e.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},G,{guideIsVisibleButNotPersistent:e.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},G,{miniplayerIsActive:e.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},G,{singleOptionSurveyIsActive:e.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},G,{slimlineSurveyRatingSelectedIndex:e.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},G,{richGridMiniMode:e.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},G,{richGridItemsPerRow:e.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},G,{richGridSlimItemsPerRow:e.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},G,{richGridContainerWidth:e.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},G,{richGridStyle:e.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},G,{currentPageType:e.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},G,{inlinePreviewIsActive:e.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},G,{inlinePreviewIsEnabled:e.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},G,{darkModeIsEnabled:e.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
G,{miniplayerPlaybackState:e.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},G,{tabGesturesIsActive:e.payload});case "SET_ONLINE_STATUS":return Object.assign({},G,{isOnline:e.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},G,{chipBarIsSticky:e.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},G,{frostedGlassMode:e.payload});default:return G}};
lr4=function(){return _.R("kevlar_disable_theater_mode_persistence")?!1:_.PX("START_IN_THEATER_MODE")};
jAS=function(G,e){G=G===void 0?RK_:G;switch(e.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},G,{transcription:e.payload});case "SET_OVERLAY_STATE":return Object.assign({},G,{overlay:e.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return G}};
QA$=function(){return HU(Object.assign({},{continuation:arF,download:XZF,canvas:q1$,reportChannelAbuse:K6N,share:fry,talkToRecs:kJU,ui:g_N,voiceSearch:jAS,watch:HJA,ypc:d9f,shorts:o_N,radioButtonGroup:$9p,collabInviteLink:v_q},sAq))};
CBS=function(){return _.R("web_player_entities_middleware")?new cS(QA$(),[IrS,pZ_]):new cS(QA$(),[IrS])};
_.Yt=function(){uL4||(uL4=CBS());return uL4};
n_p=function(G,e,r){if(G.length)return{titleText:_.Bn(e!=null?e:_.OK("DOWNLOADS",void 0,"Downloads")),contents:G.map(function(Z){var O=Z.videoEntity;Z={videoId:O.videoId,title:xJ(O.title),shortBylineText:xJ(Z.channelEntity.title),thumbnail:O.thumbnail};var M=O.videoId?HS(_.Yt().getState(),O.videoId):0;O.videoId&&r?Z.navigationEndpoint=_.Jy(O.videoId,r,void 0,void 0,M):O.videoId&&(Z.navigationEndpoint=CJi(O.videoId,M,O.lengthSeconds));O.lengthSeconds&&(Z.thumbnailOverlays=T9_(O.lengthSeconds,M));return{playlistPanelVideoRenderer:Z}}),
totalVideos:G.length}};
m9F=function(G){return(G=(0,_.c2.getValueByKeys)(G,"playlistId"))?{playlistId:G}:null};
cvN=function(){return{}};
Y1$=function(G,e){return new _.aQ(function(r,Z){G.then(function(O){if(O){if(O=e(O))return r(O);Z()}},Z)})};
yvS=function(G){var e,r,Z,O=(e=G.contents)==null?void 0:(r=e.twoColumnWatchNextResults)==null?void 0:(Z=r.autoplay)==null?void 0:Z.autoplay,M,T,E;e=(M=G.contents)==null?void 0:(T=M.twoColumnWatchNextResults)==null?void 0:(E=T.playlist)==null?void 0:E.playlist;return O&&e&&e.playlistId?{rawResponse:G,autoplayRenderer:O,playlistPanelRenderer:e,playlistId:e.playlistId}:null};
F6N=function(G){var e=e===void 0?"UNKNOWN_INTERFACE":e;if(G.length===1)return G[0];var r=Avp[e];if(r){r=new RegExp(r);for(var Z=_.h(G),O=Z.next();!O.done;O=Z.next())if(O=O.value,r.exec(O))return O}var M=[];Object.entries(Avp).forEach(function(T){var E=_.h(T);T=E.next().value;E=E.next().value;e!==T&&M.push(E)});
r=new RegExp(M.join("|"));G.sort(function(T,E){return T.length-E.length});
Z=_.h(G);for(O=Z.next();!O.done;O=Z.next())if(O=O.value,!r.exec(O))return O;return G[0]};
_.y4=function(G){return"/youtubei/v1/"+F6N(G)};
_.Ah=function(G,e){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:G}}},e!==void 0?{durationHintMs:e}:{})}};
_.Fs=function(G,e){return _.Ah(_.nQ(G),e)};
JvA=function(G,e){var r={mode:"NORMAL"};G&&(r.autoplayVideo=G.navigationEndpoint,r.nextButtonVideo=G.navigationEndpoint);e&&(r.previousButtonVideo=e.navigationEndpoint);return r};
PBS=function(G,e,r){if(!r||!r.sets)return{sets:[JvA(G,e)]};var Z=r.sets.find(function(T){return T.mode==="NORMAL"}),O=(0,_.c2.unsafeClone)(r);
if(!Z)return O.sets.push(JvA(G,e)),O;if(!G)return r;Z=_.c2.getValueByKeys.apply(null,[Z].concat(_.mY(B9S)));var M=_.c2.getValueByKeys.apply(null,[G].concat(_.mY(x9p)));if(Z===M)return r;O.sets=O.sets.filter(function(T){return T.mode!=="NORMAL"});
O.sets.push(JvA(G,e));return O};
U9S=function(G){return!!G.playlistPanelVideoRenderer&&!G.playlistPanelVideoRenderer.unplayableText};
zKS=function(G){return!!G.playlistPanelVideoRenderer&&!!G.playlistPanelVideoRenderer.title};
W6f=function(G,e){if(e.contents&&!(G>=e.contents.length)&&(G=e.contents.slice(G).find(U9S)))return G.playlistPanelVideoRenderer};
N9y=function(G,e){if(e.contents)return(e=e.contents.find(function(r){return!!r.playlistPanelVideoRenderer&&r.playlistPanelVideoRenderer.videoId===G}))?e.playlistPanelVideoRenderer:void 0};
L6a=function(G,e){return e.contents?e.contents.findIndex(function(r){return!!r.playlistPanelVideoRenderer&&r.playlistPanelVideoRenderer.videoId===G}):-1};
G3y=function(G,e){return e.contents?e.contents.findIndex(function(r){return!!r.playlistPanelVideoRenderer&&r.playlistPanelVideoRenderer.playlistSetVideoId===G}):-1};
evf=function(G,e){G.contents&&e!==-1&&G.contents.splice(e,1).length===1&&G.totalVideos!==void 0&&(--G.totalVideos,delete G.videoCountText)};
_.rqA=function(G){var e=[];if(!G||!G.contents)return e;G=_.h(G.contents);for(var r=G.next();!r.done;r=G.next())r=r.value,r.playlistPanelVideoRenderer&&r.playlistPanelVideoRenderer.videoId&&e.push(r.playlistPanelVideoRenderer.videoId);return e};
_.Z0_=function(G){if(G&&G.contents)return(G=G.contents.find(function(e){return!!e.playlistPanelVideoRenderer&&!!e.playlistPanelVideoRenderer.selected})||G.contents[G.currentIndex])?G.playlistPanelVideoRenderer:void 0};
O0i=function(G,e,r,Z,O,M,T){O=O===void 0?!1:O;M=M===void 0?!1:M;T=T===void 0?!1:T;if(G.contents&&G.contents.length!==0){Z&&(G.contents=G.contents.filter(Z));Z=G.contents.length;for(var E=0;E<Z;E++){var b=G.contents[E].playlistPanelVideoRenderer;b&&(E===e?(M&&delete b.menu,b.indexText=_.nQ("\u25b6")):O||G.isInfinite||b.indexText===void 0?delete b.indexText:b.indexText=_.nQ((E+1+r).toString()))}G.currentIndex=e+r;T&&(delete G.videoCountText,G.totalVideos=Z)}};
_.Jh=function(G){G=MTF(G);if(G){var e=G.length;var r=-97%e;r<0&&(r=e+r);G=G.slice(e-r)+G.slice(0,e-r)}else G="";r="";for(e=0;e<G.length&&G[e]!==VTy;e++)r+=G[e];return r};
_.hvs=function(G,e){var r=document.body;e=e===void 0?function(E){return E}:e;
var Z,O=null;G=_.h(G);for(Z=G.next();!Z.done;Z=G.next()){var M=Z.value;Z="div";M[2]&&(Z=e(M[2]));Z=document.createElement(Z);O||(O=Z);var T=M[0];M=M[1];T&&(Z.id=e(T));if(M)for(M=_.h(M),T=M.next();!T.done;T=M.next())Z.classList.add(e(T.value));r.appendChild(Z);r=Z}return[O,r]};
THq=function(G,e){for(var r="",Z=0;Z<e;Z++)r+=G.charAt(Math.floor(Math.random()*G.length));return r};
BS=function(G){return THq("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",G)};
xt=function(G){return THq("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",G)};
PS=function(G){return THq("0123456789",G)};
Dmy=function(){var G=performance.now(),e=new Date;var r="2."+e.getFullYear()+String(e.getMonth()+1).padStart(2,"0")+String(e.getDate()).padStart(2,"0");for(var Z,O=Math.floor(Math.random()*11)+15,M=[],T=0;T<O;T++)M.push(Math.floor(Math.random()*26476865)+24547720);Z=M.join(",");var E=BS(10),b=BS(100),w=BS(102),q=BS(106),t=BS(108),g=BS(11),l=BS(1140),X=BS(123),H=BS(14),I=BS(16),C=BS(1900),u=BS(23),P=BS(26),F=BS(34),J=BS(397),U=BS(44),e$=BS(5),Dq=BS(72),bF=BS(74),Kf=BS(75),ti=BS(88),Ry=BS(91),nf="rr2---sn-aigl6nzl rr3---sn-q4fl6n6d rr2---sn-q4flrnle rr2---sn-hgn7yn7l rr1---sn-aigl6nsd rr5---sn-q4fl6nsl rr2---sn-q4fl6n6d rr3---sn-q4flrnss rr2---sn-q4fl6n6s rr3---sn-q4fl6n6s rr3---sn-5hnednss rr3---sn-q4fl6nsk rr3---sn-hgn7rn7k rr4---sn-q4fl6nsd rr1---sn-aigzrnz7 rr5---sn-q4fzen7y rr1---sn-q4fl6nsk rr5---sn-q4fzenee rr3---sn-ntqe6nes rr5---sn-q4fl6nsk".split(" ");
var k4=nf[Math.floor(Math.random()*nf.length)];var SE=(new Date("2010-01-01")).getTime();var Fn=(new Date(SE+Math.random()*((new Date).getTime()-SE))).toISOString().split("T")[0];for(var kw,Lf=[],vc=0;vc<4;vc++)Lf.push(Math.floor(Math.random()*100));kw=Lf.join(".");var IW=Number(PS(5)),Hc=Number(PS(6)),a8=Number(PS(7)),t2=Number(PS(9)),hi=PS(1),rj=PS(10),tS=PS(16),OV=PS(19),RW=PS(2),Zl=PS(20),pm=PS(21),Bc=PS(3),wj=PS(4),by=PS(5),ea=PS(6),U_=PS(7),ly=PS(8),gW=PS(9);var Ww=THq("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var o8=[xt(5),xt(5),xt(5)].join("%2C"),Y5=[PS(3),PS(5),PS(5)].join("%2C"),Wg=xt(0),TV=xt(1),Ul=xt(10),fd=xt(108),h2=xt(11),Uw=xt(12),lx=xt(13),RF=xt(14),rw=xt(15),lL=xt(16),cJ=xt(17),ds=xt(18),mS=xt(19),BA=xt(2),aW=xt(20),lH=xt(22),o2=xt(23),sV=xt(24),KP=xt(266),Xn=xt(3),m8=xt(30),gz=xt(34),gj=xt(35),H2=xt(36),qI=xt(4),cw=xt(40),UM=xt(43),Nh=xt(47),Mq=xt(5),IP=xt(6),vn=xt(7),Z$=xt(75),x4=xt(8),kC=xt(80),yW=xt(9),bH="https://www."+xt(12)+".com",v2={},zV={},Bp={},Vb={},YO={},u5={},nc={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:r},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+xt(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:r},{key:"client.name",value:"WEB"},{key:"client.fexp",value:Z}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:pm+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+xt(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:cw,ypcGetOfflineUpsellEndpoint:{params:kC}},trackingParams:gj+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+k4+".googlevideo.com/videoplayback?expire="+rj+"&ei="+u+"&ip="+kw+"&id=o-AF"+UM+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+Y5+"&mn="+o8+"&ms="+o8+"&mv="+TV+"&mvi="+hi+"&pl="+RW+"&initcwndbps="+U_+"&siu="+hi+"&spc="+U+"&vprv="+hi+"&svpuc="+hi+"&mime=video%2Fmp4&ns="+sV+"&cnr="+RW+"&ratebypass=yes&dur="+ly+"&lmt="+tS+"&mt="+rj+"&fvip=3&c=WEB&txp="+U_+"&n="+I+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:Hc,width:640,height:360,lastModified:tS,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:U_,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+k4+".googlevideo.com/videoplayback?expire="+rj+"&ei="+u+"&ip="+kw+"&id=o-AF"+UM+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+Y5+"&mn="+
o8+"&ms="+o8+"&mv="+TV+"&mvi="+hi+"&pl="+RW+"&initcwndbps="+U_+"&siu="+hi+"&spc="+U+"&vprv="+hi+"&svpuc="+hi+"&mime=video%2Fmp4&ns="+sV+"&cnr="+RW+"&ratebypass=yes&dur="+ly+"&lmt="+tS+"&mt="+rj+"&fvip=3&c=WEB&txp="+U_+"&n="+I+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+fd+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:Hc,width:1280,
height:720,lastModified:tS,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:U_,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+k4+".googlevideo.com/videoplayback?expire="+rj+"&ei="+u+"&ip="+kw+"&id=o-AF"+UM+"&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="+Y5+"&mn="+o8+"&ms="+
o8+"&mv="+TV+"&mvi="+hi+"&pl="+RW+"&initcwndbps="+U_+"&siu="+hi+"&spc="+U+"&vprv="+hi+"&svpuc="+hi+"&mime=video%2Fmp4&ns="+sV+"&gir="+Xn+"&clen="+gW+"&dur="+ly+"&lmt="+tS+"&mt="+rj+"&fvip=3&keepalive="+Xn+"&c=WEB&txp="+U_+"&n="+lL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:a8,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:Bc,end:wj},lastModified:tS,contentLength:gW,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:a8,approxDurationMs:U_},{itag:248,url:"https://"+k4+".googlevideo.com/videoplayback?expire="+rj+"&ei="+u+"&ip="+kw+"&id=o-AF"+UM+"&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="+Y5+"&mn="+o8+"&ms="+o8+"&mv="+
TV+"&mvi="+hi+"&pl="+RW+"&initcwndbps="+U_+"&siu="+hi+"&spc="+U+"&vprv="+hi+"&svpuc="+hi+"&mime=video%2Fwebm&ns="+sV+"&gir="+Xn+"&clen="+gW+"&dur="+ly+"&lmt="+tS+"&mt="+rj+"&fvip=3&keepalive="+Xn+"&c=WEB&txp="+U_+"&n="+lL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/webm; codecs="vp9"',bitrate:a8,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:Bc,end:wj},lastModified:tS,contentLength:gW,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:a8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:U_},{itag:399,url:"https://"+k4+".googlevideo.com/videoplayback?expire="+rj+"&ei="+u+"&ip="+kw+"&id=o-AF"+UM+"&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="+
Y5+"&mn="+o8+"&ms="+o8+"&mv="+TV+"&mvi="+hi+"&pl="+RW+"&initcwndbps="+U_+"&siu="+hi+"&spc="+U+"&vprv="+hi+"&svpuc="+hi+"&mime=video%2Fmp4&ns="+sV+"&gir="+Xn+"&clen="+gW+"&dur="+ly+"&lmt="+tS+"&mt="+rj+"&fvip=3&keepalive="+Xn+"&c=WEB&txp="+U_+"&n="+lL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:a8,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:Bc,end:wj},lastModified:tS,contentLength:gW,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:a8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:U_},{itag:136,url:"https://"+k4+".googlevideo.com/videoplayback?expire="+rj+"&ei="+u+"&ip="+kw+"&id=o-AF"+UM+"&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="+
Y5+"&mn="+o8+"&ms="+o8+"&mv="+TV+"&mvi="+hi+"&pl="+RW+"&initcwndbps="+U_+"&siu="+hi+"&spc="+U+"&vprv="+hi+"&svpuc="+hi+"&mime=video%2Fmp4&ns="+sV+"&gir="+Xn+"&clen="+gW+"&dur="+ly+"&lmt="+tS+"&mt="+rj+"&fvip=3&keepalive="+Xn+"&c=WEB&txp="+U_+"&n="+lL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:a8,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:Bc,end:wj},lastModified:tS,contentLength:gW,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Hc,approxDurationMs:U_},{itag:247,url:"https://"+k4+".googlevideo.com/videoplayback?expire="+rj+"&ei="+u+"&ip="+kw+"&id=o-AF"+UM+"&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="+Y5+"&mn="+
o8+"&ms="+o8+"&mv="+TV+"&mvi="+hi+"&pl="+RW+"&initcwndbps="+U_+"&siu="+hi+"&spc="+U+"&vprv="+hi+"&svpuc="+hi+"&mime=video%2Fwebm&ns="+sV+"&gir="+Xn+"&clen="+gW+"&dur="+ly+"&lmt="+tS+"&mt="+rj+"&fvip=3&keepalive="+Xn+"&c=WEB&txp="+U_+"&n="+lL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/webm; codecs="vp9"',bitrate:a8,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:Bc,end:wj},lastModified:tS,contentLength:gW,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Hc,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:U_},{itag:398,url:"https://"+k4+".googlevideo.com/videoplayback?expire="+rj+"&ei="+u+"&ip="+kw+"&id=o-AF"+UM+"&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="+
Y5+"&mn="+o8+"&ms="+o8+"&mv="+TV+"&mvi="+hi+"&pl="+RW+"&initcwndbps="+U_+"&siu="+hi+"&spc="+U+"&vprv="+hi+"&svpuc="+hi+"&mime=video%2Fmp4&ns="+sV+"&gir="+Xn+"&clen="+gW+"&dur="+ly+"&lmt="+tS+"&mt="+rj+"&fvip=3&keepalive="+Xn+"&c=WEB&txp="+U_+"&n="+lL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:a8,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:Bc,end:wj},lastModified:tS,contentLength:gW,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Hc,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:U_},{itag:135,url:"https://"+k4+".googlevideo.com/videoplayback?expire="+rj+"&ei="+u+"&ip="+kw+"&id=o-AF"+UM+"&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="+
Y5+"&mn="+o8+"&ms="+o8+"&mv="+TV+"&mvi="+hi+"&pl="+RW+"&initcwndbps="+U_+"&siu="+hi+"&spc="+U+"&vprv="+hi+"&svpuc="+hi+"&mime=video%2Fmp4&ns="+sV+"&gir="+Xn+"&clen="+ly+"&dur="+ly+"&lmt="+tS+"&mt="+rj+"&fvip=3&keepalive="+Xn+"&c=WEB&txp="+U_+"&n="+lL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Hc,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:Bc,end:wj},lastModified:tS,contentLength:ly,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Hc,approxDurationMs:U_},{itag:244,url:"https://"+k4+".googlevideo.com/videoplayback?expire="+rj+"&ei="+u+"&ip="+kw+"&id=o-AF"+UM+"&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="+Y5+"&mn="+
o8+"&ms="+o8+"&mv="+TV+"&mvi="+hi+"&pl="+RW+"&initcwndbps="+U_+"&siu="+hi+"&spc="+U+"&vprv="+hi+"&svpuc="+hi+"&mime=video%2Fwebm&ns="+sV+"&gir="+Xn+"&clen="+ly+"&dur="+ly+"&lmt="+tS+"&mt="+rj+"&fvip=3&keepalive="+Xn+"&c=WEB&txp="+U_+"&n="+lL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+fd+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/webm; codecs="vp9"',bitrate:Hc,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:Bc,end:wj},lastModified:tS,contentLength:ly,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Hc,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:U_},{itag:397,url:"https://"+k4+".googlevideo.com/videoplayback?expire="+rj+"&ei="+u+"&ip="+kw+"&id=o-AF"+UM+"&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="+
Y5+"&mn="+o8+"&ms="+o8+"&mv="+TV+"&mvi="+hi+"&pl="+RW+"&initcwndbps="+U_+"&siu="+hi+"&spc="+U+"&vprv="+hi+"&svpuc="+hi+"&mime=video%2Fmp4&ns="+sV+"&gir="+Xn+"&clen="+ly+"&dur="+ly+"&lmt="+tS+"&mt="+rj+"&fvip=3&keepalive="+Xn+"&c=WEB&txp="+U_+"&n="+lL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:Hc,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:Bc,end:wj},lastModified:tS,contentLength:ly,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Hc,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:U_},{itag:134,url:"https://"+k4+".googlevideo.com/videoplayback?expire="+rj+"&ei="+u+"&ip="+kw+"&id=o-AF"+UM+"&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="+
Y5+"&mn="+o8+"&ms="+o8+"&mv="+TV+"&mvi="+hi+"&pl="+RW+"&initcwndbps="+U_+"&siu="+hi+"&spc="+U+"&vprv="+hi+"&svpuc="+hi+"&mime=video%2Fmp4&ns="+sV+"&gir="+Xn+"&clen="+ly+"&dur="+ly+"&lmt="+tS+"&mt="+rj+"&fvip=3&keepalive="+Xn+"&c=WEB&txp="+U_+"&n="+lL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:Hc,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:Bc,end:wj},lastModified:tS,contentLength:ly,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Hc,highReplication:!0,approxDurationMs:U_},{itag:243,url:"https://"+k4+".googlevideo.com/videoplayback?expire="+rj+"&ei="+u+"&ip="+kw+"&id=o-AF"+UM+"&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="+
Y5+"&mn="+o8+"&ms="+o8+"&mv="+TV+"&mvi="+hi+"&pl="+RW+"&initcwndbps="+U_+"&siu="+hi+"&spc="+U+"&vprv="+hi+"&svpuc="+hi+"&mime=video%2Fwebm&ns="+sV+"&gir="+Xn+"&clen="+ly+"&dur="+ly+"&lmt="+tS+"&mt="+rj+"&fvip=3&keepalive="+Xn+"&c=WEB&txp="+U_+"&n="+lL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/webm; codecs="vp9"',bitrate:Hc,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:Bc,end:wj},lastModified:tS,contentLength:ly,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Hc,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:U_},{itag:396,url:"https://"+k4+".googlevideo.com/videoplayback?expire="+rj+"&ei="+u+"&ip="+kw+"&id=o-AF"+UM+"&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="+
Y5+"&mn="+o8+"&ms="+o8+"&mv="+TV+"&mvi="+hi+"&pl="+RW+"&initcwndbps="+U_+"&siu="+hi+"&spc="+U+"&vprv="+hi+"&svpuc="+hi+"&mime=video%2Fmp4&ns="+sV+"&gir="+Xn+"&clen="+ly+"&dur="+ly+"&lmt="+tS+"&mt="+rj+"&fvip=3&keepalive="+Xn+"&c=WEB&txp="+U_+"&n="+lL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:Hc,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:Bc,end:wj},lastModified:tS,contentLength:ly,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Hc,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:U_},{itag:133,url:"https://"+k4+".googlevideo.com/videoplayback?expire="+rj+"&ei="+u+"&ip="+kw+"&id=o-AF"+UM+"&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="+
Y5+"&mn="+o8+"&ms="+o8+"&mv="+TV+"&mvi="+hi+"&pl="+RW+"&initcwndbps="+U_+"&siu="+hi+"&spc="+U+"&vprv="+hi+"&svpuc="+hi+"&mime=video%2Fmp4&ns="+sV+"&gir="+Xn+"&clen="+ly+"&dur="+ly+"&lmt="+tS+"&mt="+rj+"&fvip=3&keepalive="+Xn+"&c=WEB&txp="+U_+"&n="+lL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:Hc,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:Bc,end:wj},lastModified:tS,contentLength:ly,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Hc,approxDurationMs:U_},{itag:242,url:"https://"+k4+".googlevideo.com/videoplayback?expire="+rj+"&ei="+u+"&ip="+kw+"&id=o-AF"+UM+"&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="+Y5+"&mn="+
o8+"&ms="+o8+"&mv="+TV+"&mvi="+hi+"&pl="+RW+"&initcwndbps="+U_+"&siu="+hi+"&spc="+U+"&vprv="+hi+"&svpuc="+hi+"&mime=video%2Fwebm&ns="+sV+"&gir="+Xn+"&clen="+ly+"&dur="+ly+"&lmt="+tS+"&mt="+rj+"&fvip=3&keepalive="+Xn+"&c=WEB&txp="+U_+"&n="+lL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/webm; codecs="vp9"',bitrate:Hc,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:Bc,end:wj},lastModified:tS,contentLength:ly,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Hc,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:U_},{itag:395,url:"https://"+k4+".googlevideo.com/videoplayback?expire="+rj+"&ei="+u+"&ip="+kw+"&id=o-AF"+UM+"&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="+
Y5+"&mn="+o8+"&ms="+o8+"&mv="+TV+"&mvi="+hi+"&pl="+RW+"&initcwndbps="+U_+"&siu="+hi+"&spc="+U+"&vprv="+hi+"&svpuc="+hi+"&mime=video%2Fmp4&ns="+sV+"&gir="+Xn+"&clen="+ly+"&dur="+ly+"&lmt="+tS+"&mt="+rj+"&fvip=3&keepalive="+Xn+"&c=WEB&txp="+U_+"&n="+lL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Hc,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:Bc,end:wj},lastModified:tS,contentLength:ly,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Hc,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:U_},{itag:160,url:"https://"+k4+".googlevideo.com/videoplayback?expire="+rj+"&ei="+u+"&ip="+kw+"&id=o-AF"+UM+"&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="+
Y5+"&mn="+o8+"&ms="+o8+"&mv="+TV+"&mvi="+hi+"&pl="+RW+"&initcwndbps="+U_+"&siu="+hi+"&spc="+U+"&vprv="+hi+"&svpuc="+hi+"&mime=video%2Fmp4&ns="+sV+"&gir="+Xn+"&clen="+ly+"&dur="+ly+"&lmt="+tS+"&mt="+rj+"&fvip=3&keepalive="+Xn+"&c=WEB&txp="+U_+"&n="+lL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:Hc,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:Bc,end:wj},lastModified:tS,contentLength:ly,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:IW,approxDurationMs:U_},{itag:278,url:"https://"+k4+".googlevideo.com/videoplayback?expire="+rj+"&ei="+u+"&ip="+kw+"&id=o-AF"+UM+"&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="+Y5+"&mn="+
o8+"&ms="+o8+"&mv="+TV+"&mvi="+hi+"&pl="+RW+"&initcwndbps="+U_+"&siu="+hi+"&spc="+U+"&vprv="+hi+"&svpuc="+hi+"&mime=video%2Fwebm&ns="+sV+"&gir="+Xn+"&clen="+ly+"&dur="+ly+"&lmt="+tS+"&mt="+rj+"&fvip=3&keepalive="+Xn+"&c=WEB&txp="+U_+"&n="+lL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/webm; codecs="vp9"',bitrate:Hc,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:Bc,end:wj},lastModified:tS,contentLength:ly,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:IW,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:U_},{itag:394,url:"https://"+k4+".googlevideo.com/videoplayback?expire="+rj+"&ei="+u+"&ip="+kw+"&id=o-AF"+UM+"&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="+
Y5+"&mn="+o8+"&ms="+o8+"&mv="+TV+"&mvi="+hi+"&pl="+RW+"&initcwndbps="+U_+"&siu="+hi+"&spc="+U+"&vprv="+hi+"&svpuc="+hi+"&mime=video%2Fmp4&ns="+sV+"&gir="+Xn+"&clen="+ly+"&dur="+ly+"&lmt="+tS+"&mt="+rj+"&fvip=3&keepalive="+Xn+"&c=WEB&txp="+U_+"&n="+lL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:IW,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:Bc,end:wj},lastModified:tS,contentLength:ly,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:IW,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:U_},{itag:140,url:"https://"+k4+".googlevideo.com/videoplayback?expire="+rj+"&ei="+u+"&ip="+kw+"&id=o-AF"+UM+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
Y5+"&mn="+o8+"&ms="+o8+"&mv="+TV+"&mvi="+hi+"&pl="+RW+"&initcwndbps="+U_+"&siu="+hi+"&spc="+U+"&vprv="+hi+"&svpuc="+hi+"&mime=audio%2Fmp4&ns="+sV+"&gir="+Xn+"&clen="+ly+"&dur="+ly+"&lmt="+tS+"&mt="+rj+"&fvip=3&keepalive="+Xn+"&c=WEB&txp="+U_+"&n="+lL+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:Hc,
initRange:{start:"0",end:"631"},indexRange:{start:Bc,end:wj},lastModified:tS,contentLength:ly,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Hc,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:U_,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+k4+".googlevideo.com/videoplayback?expire="+rj+"&ei="+u+"&ip="+kw+"&id=o-AF"+UM+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+Y5+"&mn="+o8+"&ms="+o8+"&mv="+TV+"&mvi="+hi+"&pl="+
RW+"&initcwndbps="+U_+"&siu="+hi+"&spc="+U+"&vprv="+hi+"&svpuc="+hi+"&mime=audio%2Fwebm&ns="+sV+"&gir="+Xn+"&clen="+U_+"&dur="+ly+"&lmt="+tS+"&mt="+rj+"&fvip=3&keepalive="+Xn+"&c=WEB&txp="+U_+"&n="+lL+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'audio/webm; codecs="opus"',bitrate:IW,initRange:{start:"0",end:"265"},indexRange:{start:Bc,
end:wj},lastModified:tS,contentLength:U_,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:IW,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:U_,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+k4+".googlevideo.com/videoplayback?expire="+rj+"&ei="+u+"&ip="+kw+"&id=o-AF"+UM+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+Y5+"&mn="+o8+"&ms="+o8+"&mv="+TV+"&mvi="+hi+"&pl="+RW+"&initcwndbps="+U_+"&siu="+hi+"&spc="+U+"&vprv="+hi+"&svpuc="+hi+"&mime=audio%2Fwebm&ns="+
sV+"&gir="+Xn+"&clen="+U_+"&dur="+ly+"&lmt="+tS+"&mt="+rj+"&fvip=3&keepalive="+Xn+"&c=WEB&txp="+U_+"&n="+lL+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'audio/webm; codecs="opus"',bitrate:IW,initRange:{start:"0",end:"265"},indexRange:{start:Bc,end:wj},lastModified:tS,contentLength:U_,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:IW,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:U_,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+k4+".googlevideo.com/videoplayback?expire="+rj+"&ei="+u+"&ip="+kw+"&id=o-AF"+UM+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+Y5+"&mn="+o8+"&ms="+o8+"&mv="+TV+"&mvi="+hi+"&pl="+RW+"&initcwndbps="+U_+"&siu="+hi+"&spc="+U+"&vprv="+hi+"&svpuc="+hi+"&mime=audio%2Fwebm&ns="+sV+"&gir="+Xn+"&clen="+ly+"&dur="+ly+"&lmt="+tS+"&mt="+rj+"&fvip=3&keepalive="+Xn+"&c=WEB&txp="+
U_+"&n="+lL+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'audio/webm; codecs="opus"',bitrate:Hc,initRange:{start:"0",end:"265"},indexRange:{start:Bc,end:wj},lastModified:tS,contentLength:ly,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Hc,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:U_,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="+gW+"&docid="+g+"&ei="+u+"&feature="+E+"&fexp="+Wg+"&ns="+BA+"&plid="+I+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+TV+"&el="+Ul+"&len="+wj+"&of="+lH+
"&uga="+RW+"&vm="+KP},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+gW+"&docid="+g+"&ei="+u+"&feature="+E+"&fexp="+Wg+"&ns="+BA+"&plid="+I+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+TV+"&el="+Ul+"&len="+wj+"&of="+lH+"&uga="+RW+"&vm="+KP},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+gW+"&docid="+g+"&ei="+u+"&feature="+E+"&fexp="+Wg+"&ns="+BA+"&plid="+I+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
TV+"&el="+Ul+"&len="+wj+"&of="+lH+"&uga="+RW+"&vm="+KP},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+u+"&m="+ti+"&oid="+lH+"&plid="+I+"&pltype="+vn+"&ptchn="+lH+"&ptk="+H+"&video_id="+g},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+gW+"&docid="+g+"&ei="+u+"&event="+RF+"&feature="+E+"&fexp="+Wg+"&ns="+BA+"&plid="+I+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+TV},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
lL+"&ver=2&cmt=1."+Bc+"&fmt="+Bc+"&fs=0&rt="+by+"&euri&lact="+Bc+"&cl="+gW+"&mos="+hi+"&volume=100&cbrand="+Mq+"&cbr="+IP+"&cbrver="+kw+"&c=WEB&cver="+r+"&cplayer=UNIPLAYER&cos="+yW+"&cosver="+U_+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+RW+"&len="+ly+"&fexp="+o8+"&feature=g-high-rec&afmt="+Bc+"&muted=0&conn=1&docid="+g+"&ei="+u+"&plid="+I+"&vm="+xt(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
g+"&caps="+Xn+"&opi="+gW+"&xoaf="+hi+"&hl="+BA+"&ip="+kw+"&ipbits="+hi+"&expire="+rj+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+kw+"&key="+Xn+"&lang="+e$,name:{simpleText:Uw},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+g+"&caps="+Xn+"&opi="+gW+"&xoaf="+hi+"&hl="+BA+"&ip="+kw+"&ipbits="+hi+"&expire="+rj+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+kw+"&key="+Xn+"&kind="+Xn+"&lang="+BA,name:{simpleText:ds},
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:h2,title:rw,lengthSeconds:"1155",keywords:[vn,h2,Mq,qI],channelId:sV,isOwnerViewing:!1,shortDescription:x4,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+g+"/hqdefault.jpg?sqp=-oaymwE"+H2+"G&rs="+gz,width:168,height:94},{url:"https://i.ytimg.com/vi/"+g+"/hqdefault.jpg?sqp=-oaymwE"+H2+
"G&rs="+gz,width:196,height:110},{url:"https://i.ytimg.com/vi/"+g+"/hqdefault.jpg?sqp=-oaymwE"+H2+"G&rs="+F,width:246,height:138},{url:"https://i.ytimg.com/vi/"+g+"/hqdefault.jpg?sqp=-oaymwE"+H2+"G&rs="+F,width:336,height:188},{url:"https://i.ytimg.com/vi/"+g+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:U_,author:lx,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:U_,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
lH+"/featured_channel.jpg?v="+x4,width:40,height:40}]},trackingParams:gj+"=",navigationEndpoint:{clickTrackingParams:cw,commandMetadata:{webCommandMetadata:{url:"/channel/"+sV,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:sV}},channelName:lx,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Uw}]},subscribed:!1,enabled:!0,type:"FREE",channelId:sV,showPreferences:!1,subscribedButtonText:{runs:[{text:cJ}]},unsubscribedButtonText:{runs:[{text:Mq}]},
trackingParams:gj+"=",unsubscribeButtonText:{runs:[{text:mS}]},serviceEndpoints:[{clickTrackingParams:cw,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[sV],params:x4}},{clickTrackingParams:cw,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:cw,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:gj+"=",dialogMessages:[{runs:[{text:vn},
{text:aW},{text:RF}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:IP}]},serviceEndpoint:{clickTrackingParams:cw,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[sV],params:x4}},accessibility:{label:qI},trackingParams:gj+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:yW}]},accessibility:{label:qI},
trackingParams:gj+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:RF}},unsubscribeAccessibility:{accessibilityData:{label:vn}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:ly},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:cw,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:cw,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[sV],
params:x4}},unsubscribeCommand:{clickTrackingParams:cw,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[sV],params:x4}},addToWatchLaterCommand:{clickTrackingParams:cw,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:h2,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:cw,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:h2}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+g+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+H2+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+g+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+h2,width:1280,
height:720},title:{simpleText:x4},description:{simpleText:rw},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+Ul,externalChannelId:sV,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:U_,category:"Travel & Events",publishDate:Fn,ownerChannelName:lx,uploadDate:Fn}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:vn},trackingParams:gj+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:cw,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:gj+"="}}],headerText:{simpleText:RF},icon:{infoCardIconRenderer:{trackingParams:gj+"="}},closeButton:{infoCardIconRenderer:{trackingParams:gj+"="}},trackingParams:gj+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:gj+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+h2+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:Ww,interpreterSafeUrl:(v2.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+m8+".js",v2),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:vn},{text:ds,bold:!0}]},endpoint:{clickTrackingParams:cw,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:gj+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:yW}]},actionButton:{buttonRenderer:{text:{runs:[{text:cJ}]},navigationEndpoint:{clickTrackingParams:cw,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+g,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
g,target:"TARGET_NEW_WINDOW"}},trackingParams:gj+"="}},trackingParams:gj+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+Dq+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+Dq+"=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:U_,endMs:U_,title:{accessibility:{accessibilityData:{label:vn}},simpleText:mS},metadata:{simpleText:x4},callToAction:{simpleText:Mq},dismiss:{simpleText:cJ},endpoint:{clickTrackingParams:cw,commandMetadata:{webCommandMetadata:{url:"/channel/"+sV,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:sV}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:yW}]},subscribed:!1,enabled:!0,type:"FREE",channelId:sV,showPreferences:!1,
subscribedButtonText:{runs:[{text:rw}]},unsubscribedButtonText:{runs:[{text:h2}]},trackingParams:gj+"=",unsubscribeButtonText:{runs:[{text:rw}]},serviceEndpoints:[{clickTrackingParams:cw,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[sV],params:x4}},{clickTrackingParams:cw,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:cw,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:gj+
"=",dialogMessages:[{runs:[{text:lx},{text:Uw},{text:vn}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:qI}]},serviceEndpoint:{clickTrackingParams:cw,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[sV],params:x4}},accessibility:{label:aW},trackingParams:gj+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Ul}]},
accessibility:{label:mS},trackingParams:gj+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:ds}},unsubscribeAccessibility:{accessibilityData:{label:cJ}}}},trackingParams:gj+"=",isSubscribe:!0,id:Zl}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+g+"/hqdefault.jpg?sqp=-oaymwE"+H2+"G&rs="+F,width:168,height:94},{url:"https://i.ytimg.com/vi/"+g+"/hqdefault.jpg?sqp=-oaymwE"+H2+"G&rs="+gz,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+g+"/hqdefault.jpg?sqp=-oaymwE"+H2+"G&rs="+F,width:246,height:138},{url:"https://i.ytimg.com/vi/"+g+"/hqdefault.jpg?sqp=-oaymwE"+H2+"G&rs="+F,width:336,height:188},{url:"https://i.ytimg.com/vi/"+g+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:U_,endMs:U_,title:{accessibility:{accessibilityData:{label:x4}},simpleText:qI},metadata:{simpleText:ds},endpoint:{clickTrackingParams:cw,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
h2,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:h2,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+k4+".googlevideo.com/videoplayback?source=youtube&oeis="+hi+"&c=WEB&oad="+wj+"&ovd="+wj+"&oaad="+by+"&oavd="+by+"&ocs="+Bc+"&oewis="+hi+"&oputc="+hi+"&ofpcc="+hi+"&siu="+hi+"&msp="+hi+"&odepv="+hi+
"&id=o-AF"+UM+"&ip="+kw+"&initcwndbps="+U_+"&mt="+rj+"&oweuc="+Wg}}}}},trackingParams:gj+"=",id:Zl,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:qI}},simpleText:Mq},style:"DEFAULT"}}]}}],startMs:U_,trackingParams:gj+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:hi,offsetEndMilliseconds:by},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+gW+";dc_trk_cid="+gW+";dc_dbm_token="+t+";ord="+rj+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hi+";dc_rui="+hi+";dc_exteid="+Zl+";dc_av="+Bc+";dc_sk="+hi+";dc_ctype="+RW+";dc_ref=http://www.youtube.com/video/"+h2+";dc_pubid="+hi+";dc_btype=23?gclid="+Ry+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
l+"____________"+X+"AxAA&sigh="+h2+"&cid="+P+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+hi+"&ns="+hi+"&event="+hi+"&device="+hi+"&content_v="+g+"&el="+Ul+"&ei="+u+"&devicever="+r+"&bti="+U_+"&format="+ea+"&break_type="+hi+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+hi+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+kw+"&slot_pos="+hi+"&slot_len="+hi+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+Y5+"&ad_len="+by+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
h2+"&aqi="+u+"&ad_rmp="+hi+"&sli="+hi}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+g+"&cid="+P+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+g+"&cid="+P+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+
";etm1="+hi+";eid1="+RW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+g+"&cid="+P+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+ea+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
l+"____________"+X+"AxAA&sigh="+g+"&cid="+P+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+RW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+g+"&cid="+P+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+g+"&cid="+P+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+RW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+g+"&cid="+P+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+U_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+g+"&cid="+P+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
l+"____________"+X+"AxAA&sigh="+g+"&cid="+P+"&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"+l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&ctype="+Bc+"&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"+
l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_engaged_view&ctype="+Bc+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+ea+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
gW+";dc_trk_cid="+gW+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hi+";ord="+gW+";dc_rui="+hi+";dc_exteid="+OV+";dc_av="+hi+";dc_sk="+hi+";dc_ctype="+RW+";dc_pubid="+hi+";dc_btype=3?gclid="+Ry+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+g+"&cid="+P+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+RW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+w+"&sig="+o2+"&ad_cpn=[AD_CPN]&id="+IP+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+IP+"&dc_pubid="+hi+"&dc_exteid="+Zl+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+g+"&cid="+P+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+w+"&sig="+o2+"&ad_cpn=[AD_CPN]&id="+IP+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+hi},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+IP+"&avm="+hi+"&dc_pubid="+hi+"&dc_exteid="+
Zl+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+g+"&cid="+P+"&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="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+RW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
w+"&sig="+o2+"&ad_cpn=[AD_CPN]&id="+IP+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+hi},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+IP+"&dc_pubid="+hi+"&dc_exteid="+Zl+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+RW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+ea+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+RW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+ea+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+g+"&cid="+P+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+RW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:cw,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+
Bc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+g+"/mqdefault.jpg",width:320,height:180}]},trackingParams:gj+"="},trackingParams:gj+
"=",templatedCountdown:{templatedAdText:{text:ds,isTemplated:!0,trackingParams:gj+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:RF,isTemplated:!1,trackingParams:gj+"="},trackingParams:gj+"="}},trackingParams:gj+"=",skipOffsetMilliseconds:5E3}},trackingParams:gj+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:mS},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:cw,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:gj+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:mS,isTemplated:!1,trackingParams:gj+"="},trackingParams:gj+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:vn,isTemplated:!0,trackingParams:gj+"="}},trackingParams:gj+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:cw,openPopupAction:{popup:{aboutThisAdRenderer:{url:(zV.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+C+"&hl="+BA+"&origin=www.youtube.com&ata_theme="+qI,zV),trackingParams:gj+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:gj+"="}},hoverText:{runs:[{text:Uw}]},trackingParams:gj+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Nh+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:gj+"="},headline:{text:Uw,isTemplated:!1,trackingParams:gj+"="},description:{text:lx,
trackingParams:gj+"="},actionButton:{buttonRenderer:{text:{simpleText:x4},navigationEndpoint:{clickTrackingParams:cw,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+gW+";dc_trk_cid="+gW+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hi+";ord="+gW+";dc_rui="+hi+";dc_exteid="+Zl+";dc_av="+hi+";dc_sk="+hi+";dc_ctype="+RW+";dc_pubid="+hi+";dc_btype=3?gclid="+Ry+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:gj+"="}},startMs:hi,trackingParams:gj+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Ul},elementId:IP}},elementId:aW,trackingParams:gj+"=",legacyInfoCardVastExtension:lL,sodarExtensionData:{siub:aW,bgub:aW,scs:lL,bgp:mS},externalVideoId:h2,adLayoutLoggingData:{serializedAdServingDataEntry:qI},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Nh+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:gj+"="},
headline:{text:qI,isTemplated:!1,trackingParams:gj+"="},description:{text:rw,isTemplated:!1,trackingParams:gj+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:cJ},navigationEndpoint:{clickTrackingParams:cw,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+gW+";dc_trk_cid="+gW+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hi+";ord="+gW+";dc_rui="+hi+";dc_exteid="+
Zl+";dc_av="+hi+";dc_sk="+hi+";dc_ctype="+RW+";dc_pubid="+hi+";dc_btype=3?gclid="+Ry+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+X+"AxAA&ase=2&num="+
hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:gj+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:gj+"="}},navigationEndpoint:{clickTrackingParams:cw,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+gW+";dc_trk_cid="+
gW+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hi+";ord="+gW+";dc_rui="+hi+";dc_exteid="+Zl+";dc_av="+hi+";dc_sk="+hi+";dc_ctype="+RW+";dc_pubid="+hi+";dc_btype=3?gclid="+Ry+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+g+"&cid="+P+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+
X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:gj+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:gj+"="},abandonCommands:{commands:[{clickTrackingParams:cw,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+g+"&cid="+P+"&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="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+
hi+"="+hi+";etm1="+hi+";eid1="+RW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:cw,commandExecutorCommand:{commands:[{clickTrackingParams:cw,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+g+"&cid="+P+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:cJ,isTemplated:!1,trackingParams:gj+
"="},trackingParams:gj+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:rw},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+g+"&cid="+P+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+U_+";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="+gW+";dc_trk_cid="+gW+";ord="+rj+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hi+";dc_rui="+hi+";dc_exteid="+Zl+";dc_av="+Bc+";dc_sk="+hi+";dc_ctype="+RW+";dc_ref=http://www.youtube.com/video/"+h2+";dc_pubid="+hi+";dc_btype=23?gclid="+Ry+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+l+"____________"+X+"AxAA&sigh="+h2+"&cid="+P+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+hi+"&ns="+hi+"&event="+hi+"&device="+hi+"&content_v="+g+"&el="+Ul+"&ei="+u+"&devicever="+r+"&bti="+U_+"&format="+ea+"&break_type="+hi+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+hi+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+kw+"&slot_pos="+hi+"&slot_len="+hi+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
Y5+"&ad_len="+by+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+h2+"&aqi="+u+"&ad_rmp="+hi+"&sli="+hi}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+h2+"&cid="+P+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+h2+"&cid="+P+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+RW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+h2+"&cid="+P+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+ea+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+h2+"&cid="+P+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+RW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+h2+"&cid="+
P+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+h2+"&cid="+P+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+RW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
l+"____________"+X+"AxAA&sigh="+h2+"&cid="+P+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+U_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+h2+"&cid="+P+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+h2+"&cid="+P+"&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"+l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&ctype="+Bc+"&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"+l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_engaged_view&ctype="+Bc+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+ea+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+h2+"&cid="+P+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+RW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+w+"&sig="+o2+"&ad_cpn=[AD_CPN]&id="+
IP+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+IP+"&dc_pubid="+hi+"&dc_exteid="+Zl+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+h2+"&cid="+P+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+w+
"&sig="+o2+"&ad_cpn=[AD_CPN]&id="+IP+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+hi},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+IP+"&avm="+hi+"&dc_pubid="+hi+"&dc_exteid="+Zl+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+h2+"&cid="+P+"&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="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+RW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+w+"&sig="+o2+"&ad_cpn=[AD_CPN]&id="+IP+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+hi},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+IP+"&dc_pubid="+hi+"&dc_exteid="+Zl+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+RW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+ea+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+RW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+ea+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+h2+"&cid="+P+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+RW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:cw,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+
Bc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",
playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+g+"/mqdefault.jpg",width:320,height:180}]},trackingParams:gj+"="},trackingParams:gj+"=",templatedCountdown:{templatedAdText:{text:RF,isTemplated:!0,trackingParams:gj+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:RF,isTemplated:!1,trackingParams:gj+"="},trackingParams:gj+"="}},
trackingParams:gj+"=",skipOffsetMilliseconds:5E3}},trackingParams:gj+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:vn},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:cw,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:gj+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Mq,isTemplated:!1,trackingParams:gj+"="},trackingParams:gj+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:x4,
isTemplated:!0,trackingParams:gj+"="}},trackingParams:gj+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:cw,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Bp.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+C+"&hl="+BA+"&origin=www.youtube.com&ata_theme="+qI,Bp),trackingParams:gj+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:gj+"="}},hoverText:{runs:[{text:rw}]},trackingParams:gj+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+bF+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:gj+"="},headline:{text:Ul,isTemplated:!1,trackingParams:gj+"="},description:{text:lx,trackingParams:gj+"="},actionButton:{buttonRenderer:{text:{simpleText:Ul},navigationEndpoint:{clickTrackingParams:cw,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:gj+"="}},startMs:hi,trackingParams:gj+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Uw},elementId:x4}},elementId:qI,trackingParams:gj+"=",legacyInfoCardVastExtension:x4,sodarExtensionData:{siub:Ul,bgub:h2,scs:ds,bgp:rw},externalVideoId:h2,adLayoutLoggingData:{serializedAdServingDataEntry:lx},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+bF+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:gj+"="},headline:{text:h2,
isTemplated:!1,trackingParams:gj+"="},description:{text:Ul,isTemplated:!1,trackingParams:gj+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:mS},navigationEndpoint:{clickTrackingParams:cw,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:gj+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:gj+"="}},navigationEndpoint:{clickTrackingParams:cw,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
l+"____________"+X+"AxAA&sigh="+h2+"&cid="+P+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+X+"AxAA&ase=2&num="+
hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:gj+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:gj+"="},abandonCommands:{commands:[{clickTrackingParams:cw,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+h2+"&cid="+P+"&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="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+RW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:cw,commandExecutorCommand:{commands:[{clickTrackingParams:cw,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+h2+"&cid="+P+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:cJ,isTemplated:!1,trackingParams:gj+"="},trackingParams:gj+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:ds},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+h2+"&cid="+P+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hi+";dc_exteid="+Zl+";met="+hi+";ecn"+hi+"="+hi+";etm1="+hi+";eid1="+
U_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:IP}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Mq}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:by,offsetEndMilliseconds:ea},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+u+"&m_pos="+RW+"&token=ALHj"+J+"&index="+hi+"&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="+r+"&m_pos_ms="+by}},adSlotLoggingData:{serializedSlotAdServingDataEntry:rw}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:ea,offsetEndMilliseconds:ea},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+u+"&m_pos="+Bc+"&token=ALHj"+J+"&index="+hi+"&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="+
r+"&m_pos_ms="+ea}},adSlotLoggingData:{serializedSlotAdServingDataEntry:qI}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:ea,offsetEndMilliseconds:ea},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+u+"&m_pos="+Bc+"&token=ALHj"+J+"&index="+hi+"&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="+
r+"&m_pos_ms="+ea}},adSlotLoggingData:{serializedSlotAdServingDataEntry:cJ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:ea,offsetEndMilliseconds:ea},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+u+"&m_pos="+Bc+"&token=ALHj"+J+"&index="+hi+"&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="+
r+"&m_pos_ms="+ea}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Uw}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:ea,offsetEndMilliseconds:RW},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+u+"&m_pos="+Bc+"&token=ALHj"+J+"&index="+hi+"&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="+
r+"&m_pos_ms="+ea}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Uw}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:RW,offsetEndMilliseconds:RW},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+u+"&m_pos="+RW+"&token=ALHj"+J+"&index="+hi+"&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="+
r+"&m_pos_ms="+RW}},adSlotLoggingData:{serializedSlotAdServingDataEntry:cJ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:ds,isTemplated:!1,trackingParams:gj+"="},description:{text:mS,isTemplated:!1,trackingParams:gj+"="},actionButton:{buttonRenderer:{text:{simpleText:lx},navigationEndpoint:{clickTrackingParams:cw,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
gW+";dc_trk_cid="+gW+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hi+";ord="+gW+";dc_rui="+hi+";dc_exteid="+Zl+";dc_av="+hi+";dc_sk="+hi+";dc_ctype="+RW+";dc_pubid="+hi+";dc_btype=3?gclid="+Ry+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:gj+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Nh+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:gj+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Kf+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:gj+"="},navigationEndpoint:{clickTrackingParams:cw,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+gW+";dc_trk_cid="+gW+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hi+";ord="+gW+
";dc_rui="+hi+";dc_exteid="+Zl+";dc_av="+hi+";dc_sk="+hi+";dc_ctype="+RW+";dc_pubid="+hi+";dc_btype=3?gclid="+Ry+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:gj+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:cw,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Vb.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+C+"&hl="+BA+"&origin=www.youtube.com&ata_theme="+qI,Vb),trackingParams:gj+"="}},popupType:"DIALOG"}},trackingParams:gj+"="}},hoverText:{runs:[{text:IP}]},trackingParams:gj+"="}},adVideoId:h2,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+g+"&cid="+P+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:ds},associatedCompositePlayerBytesLayoutId:lL}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:ds}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:yW,isTemplated:!1,trackingParams:gj+"="},description:{text:vn,isTemplated:!1,trackingParams:gj+"="},actionButton:{buttonRenderer:{text:{simpleText:ds},navigationEndpoint:{clickTrackingParams:cw,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+
X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:gj+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+bF+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:gj+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Z$+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:gj+"="},navigationEndpoint:{clickTrackingParams:cw,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+X+"AxAA&ase=2&num="+
hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:gj+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:cw,openPopupAction:{popup:{aboutThisAdRenderer:{url:(YO.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+C+"&hl="+BA+"&origin=www.youtube.com&ata_theme="+qI,YO),trackingParams:gj+"="}},popupType:"DIALOG"}},trackingParams:gj+"="}},
hoverText:{runs:[{text:Uw}]},trackingParams:gj+"="}},adVideoId:h2,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+h2+"&cid="+P+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Mq},associatedCompositePlayerBytesLayoutId:lL}},adSlotLoggingData:{serializedSlotAdServingDataEntry:mS}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Mq,
isTemplated:!1,trackingParams:gj+"="},description:{text:mS,isTemplated:!1,trackingParams:gj+"="},actionButton:{buttonRenderer:{text:{simpleText:vn},navigationEndpoint:{clickTrackingParams:cw,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+gW+";dc_trk_cid="+gW+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hi+";ord="+gW+";dc_rui="+hi+";dc_exteid="+Zl+";dc_av="+hi+";dc_sk="+hi+";dc_ctype="+
RW+";dc_pubid="+hi+";dc_btype=3?gclid="+Ry+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+
F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:gj+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Nh+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:gj+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Kf+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:gj+
"="},navigationEndpoint:{clickTrackingParams:cw,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+gW+";dc_trk_cid="+gW+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hi+";ord="+gW+";dc_rui="+hi+";dc_exteid="+Zl+";dc_av="+hi+";dc_sk="+hi+";dc_ctype="+RW+";dc_pubid="+hi+";dc_btype=3?gclid="+Ry+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+X+"AxAA&ase=2&num="+hi+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+F+"&adurl="+bH+"&label=video_click_to_advertiser_site&ctype="+Bc+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:gj+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:cw,openPopupAction:{popup:{aboutThisAdRenderer:{url:(u5.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+C+"&hl="+BA+"&origin=www.youtube.com&ata_theme="+qI,u5),trackingParams:gj+"="}},popupType:"DIALOG"}},trackingParams:gj+
"="}},hoverText:{runs:[{text:aW}]},trackingParams:gj+"="}},adVideoId:h2,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+X+"AxAA&sigh="+g+"&cid="+P+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:x4},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:lL}},adSlotLoggingData:{serializedSlotAdServingDataEntry:lL}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:m8,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:m8,command:{innertubeCommand:{clickTrackingParams:cw,ypcGetOfflineUpsellEndpoint:{params:kC}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:gj+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:rj,nanos:t2}}}},Epa=JSON.stringify(nc),mz=performance.now()-G;return{objectRepresentation:nc,jsonRepresentation:Epa,generationTime:mz}};
EmF=function(G,e){if(G===e)return!0;if(!G||!e||typeof G!==typeof e)return!1;if(G instanceof Array&&e instanceof Array){if(G.length!==e.length)return!1;for(var r=0;r<G.length;r++)if(!EmF(G[r],e[r]))return!1;return!0}if(typeof G==="object"&&typeof e==="object"&&G&&e){for(r in G)if(!(r in e&&EmF(G[r],e[r])))return!1;for(var Z in e)if(!(Z in G))return!1;return!0}return!1};
_.zF=function(){if(!U6){U6=new KB(new i0S);var G=_.qt("client_streamz_web_flush_count",-1);G!==-1&&(U6.invocationLimit=G)}return U6};
WS=function(G,e,r,Z){if(G===e)return!0;if(Array.isArray(G)&&Array.isArray(e)){if(G.length!==e.length)return!1;for(var O=0;O<G.length;O++)if(!WS(G[O],e[O],r,Z))return!1;return!0}if(G instanceof Set||e instanceof Set){if(G instanceof Set&&e instanceof Set){if(G.size!==e.size)return!1;Z=_.h(G.values());for(O=Z.next();!O.done;O=Z.next())if(!e.has(O.value))return!1;return!0}return!1}if(G instanceof Function){if(Z)return!0;G.name===""&&_.yx(Error("Qf"),"ERROR");return!1}if(G instanceof Date&&e instanceof
Date)return G.getTime()===e.getTime();if(G instanceof Object&&e instanceof Object){if(b0F(G)&&b0F(e))try{return G.equals(e)}catch(T){_.yx(Error("Rf`"+T),"ERROR")}O=Object.getOwnPropertyNames(G).filter(function(T){return r?G[T]!==void 0:!0});
var M=Object.getOwnPropertyNames(e).filter(function(T){return r?e[T]!==void 0:!0});
if(O.length!==M.length)return!1;O=_.h(O);for(M=O.next();!M.done;M=O.next())if(M=M.value,!WS(G[M],e[M],r,Z))return!1;return!0}return!1};
b0F=function(G){G=Object.getPrototypeOf(G).equals;return G instanceof Function&&G.length===1};
_.$mq=function(){return _.D(function(G){if(G.nextAddress==1)return vmi!==2?G.jumpTo(2):G.yield(wyN(),3);G.nextAddress!=2&&(vmi=G.yieldResult);return G.return(vmi)})};
_.tT_=function(){return _.D(function(G){if(G.nextAddress==1)return _.R("ab_pl_man")?SE_!==2?G.jumpTo(2):G.yield(qEF(),3):G.return(1);G.nextAddress!=2&&(SE_=G.yieldResult);return G.return(SE_)})};
RvA=function(){return _.D(function(G){if(G.nextAddress==1)return _.R("ab_fk_sk_cl")?gm4!==2?G.jumpTo(2):G.yield(lop(),3):G.return(1);G.nextAddress!=2&&(gm4=G.yieldResult);return G.return(gm4)})};
_.Xy$=function(){return _.D(function(G){if(G.nextAddress==1)return _.R("ab_det_apb_b")?jGA!==2?G.jumpTo(2):G.yield(ao$(),3):G.return(1);G.nextAddress!=2&&(jGA=G.yieldResult);return G.return(jGA)})};
k3s=function(){var G;return _.D(function(e){if(e.nextAddress==1)return e.yield(Promise.all([_.$mq(),_.Xy$(),_.tT_(),RvA()]),2);if(e.nextAddress!=3)return KNf()?e.return(!0):e.yield(_.foi(),3);G=e.yieldResult;return e.return(G===0)})};
KNf=function(){var G=!1,e=function(r,Z){H0i.increment(Z,r);r===0&&(G=!0)};
e(_.dmN(),"j.s_");e(vmi,"f.i_");e(jGA,"a.b_");e(SE_,"p.m_");e(gm4,"i.f_");oma===2&&(oma=_.sGi(QGA));e(oma,"e.h_");_.R("ks_det_gpbl")||e(_.IoS(),"p.i_");_.R("ks_get_o_pp")||e(_.pyf(),"g.o_");_.R("ab_deg_unex_thr")||e(_.Coi(),"a.o_");e(uMA,"s.t_");_.R("ab_det_sc_inj_enf")&&e(_.nmN(),"s.i_");e(mm$,"d.p_");e(_.cqF(_.Nr),"o.p_");e(_.YEp()===0?0:_.yqq(),"o.a_");return _.R("debug_sk_em_precheck")?!0:G};
FNF=function(){var G=[].concat(_.mY(Aqq));try{var e=Dmy();G.push({jsonRepresentation:e.jsonRepresentation,objectRepresentation:e.objectRepresentation})}catch(r){G=[].concat(_.mY(Aqq))}return G};
JqA=function(){var G=["adPlacements","adSlots"];try{return G.filter(function(){return!0}).length!==G.length?0:1}catch(e){return 0}};
_.pyf=function(){if(JqA()===0)return 0;var G=Dmy(),e=G.objectRepresentation,r=(0,_.c2.unsafeClone)(e),Z=[];if(e&&typeof e==="object")for(var O in e)Z.push(O);else return 4;G=G.objectRepresentation.adPlacements;if(!(G&&G.length>0))return 4;try{if(!EmF(Z,Object.getOwnPropertyNames(e)))return 0}catch(M){return 0}return EmF(r,e)?1:0};
_.cqF=function(G){if(!G||!G.length||typeof G==="string")return 0;for(var e=Object.getOwnPropertyNames(Object.prototype),r=0;r<G.length;r++)for(var Z=_.Jh(G[r]),O=_.h(e),M=O.next();!M.done;M=O.next())if(Z===M.value)return 0;return 1};
BHN=function(G){var e=_.Jh(G[1]);if(G[0]===null)return e;G=G[0];for(var r={},Z=0;Z<G.length;Z++){var O=_.Jh(G[Z]);if(Z===0)r[O]=e;else{var M={};M[O]=r;r=M}}return r};
_.YEp=function(){for(var G=_.LQ,e=0;e<G.length;e++){var r=BHN(G[e]),Z=[];Z.push(r);if(Z.length===0)return 0}return 1};
_.yqq=function(){for(var G=_.LQ,e={},r=0;r<G.length;e={rmM:void 0},r++){var Z=[BHN(G[r])];e.rmM=[];Z.forEach(function(O){return function(M){O.rmM[O.rmM.length]=M}}(e));
if(e.rmM.length===0)return 0}return 1};
_.dmN=function(){for(var G=_.h(FNF()),e=G.next();!e.done;e=G.next()){var r=e.value;e=r.jsonRepresentation;r=r.objectRepresentation;try{var Z=JSON.parse(e);if(!WS(Z,r,!1,!1))return 0}catch(O){return 0}}return 1};
_.nmN=function(){try{var G=_.gR("ab_det_sc_inj_val");G.length===1&&G[0]===""&&(G=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var e=document.querySelectorAll("script"),r=_.h(e),Z=r.next();!Z.done;Z=r.next())for(var O=Z.value,M=_.h(G),T=M.next();!T.done;T=M.next()){var E=T.value;e=void 0;if((e=O.textContent)==null?0:e.includes(E))return 0}}catch(b){return 4}return 1};
_.foi=function(){var G,e,r,Z,O,M,T;return _.D(function(E){switch(E.nextAddress){case 1:_.jr(E,2),G=_.h(Aqq),e=G.next();case 4:if(e.done)return E.return(1);Z=r=e.value;O=Z.jsonRepresentation;M=Z.objectRepresentation;return E.yield((new Response(O,{status:200})).json(),7);case 7:T=E.yieldResult;if(!WS(T,M,!1,!1))return E.return(0);e=G.next();E.jumpTo(4);break;case 2:return _.k5(E),E.return(4)}})};
_.Coi=function(){try{btoa("abc")}catch(G){return 0}return 1};
wyN=function(){var G,e,r,Z,O,M,T,E,b,w,q;return _.D(function(t){switch(t.nextAddress){case 1:_.jr(t,2),G=_.h(FNF()),e=G.next();case 4:if(e.done)return t.return(1);Z=r=e.value;O=Z.jsonRepresentation;M=Z.objectRepresentation;T=btoa(O);E="data:application/json;base64,"+T;b=new Request(E);Object.defineProperty(b,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(b,"method",{get:function(){return"POST"}});
Object.defineProperty(b,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(b,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(b,"body",{get:function(){return new ReadableStream}});
return t.yield(fetch(b),7);case 7:return w=t.yieldResult,t.yield(w.json(),8);case 8:q=t.yieldResult;if(!WS(q,M,!1,!1))return t.return(0);e=G.next();t.jumpTo(4);break;case 2:return _.k5(t),t.return(4)}})};
_.sGi=function(G){if(!G||!G.length||typeof G==="string")return 0;for(var e=function(O){return _.Jh(O)},r=2,Z=0;Z<G.length&&(r=_.xm4(_.hvs(G[Z],e)),r!==0);Z++);
return r};
_.xm4=function(G){var e=_.h(G);G=e.next().value;e=e.next().value;try{var r=document.createElement("div");document.body.appendChild(r);var Z=getComputedStyle(r).display;document.body.removeChild(r);if(Z==="none")return 4;var O=getComputedStyle(e).display==="none"?0:1;document.body.removeChild(G);return O}catch(M){return 4}};
lop=function(){var G,e,r;return _.D(function(Z){G=new _.G1;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";r=function(){e.parentElement&&e.parentElement.removeChild(e)};
e.onclick=function(){G.resolve(0);r()};
document.body.appendChild(e);setTimeout(function(){r();G.resolve(1)},50);
return Z.return(G.promise)})};
qEF=function(){var G,e,r,Z,O,M,T;return _.D(function(E){G=new _.G1;e=document.createElement("ytd-player");try{document.body.prepend(e)}catch(b){return E.return(4)}r=function(){e.parentElement&&e.parentElement.removeChild(e)};
e.getElementsByTagName("div").length>0?Z=e.getElementsByTagName("div")[0]:(Z=document.createElement("div"),e.appendChild(Z));O=document.createElement("div");Z.appendChild(O);M=document.createElement("video");T=new Blob([new Uint8Array([26,69,223,163,159,66,134,129,1,66,247,129,1,66,242,129,4,66,243,129,8,66,130,132,119,101,98,109,66,135,129,4,66,133,129,2,24,83,128,103,1,255,255,255,255,255,255,255,21,73,169,102,153,42,215,177,131,15,66,64,77,128,134,67,104,114,111,109,101,87,65,134,67,104,114,111,
109,101,22,84,174,107,169,174,167,215,129,1,115,197,135,207,96,156,234,24,157,175,131,129,1,85,238,129,1,134,133,86,95,86,80,56,224,138,176,129,1,186,129,1,83,192,129,1,31,67,182,117,1,255,255,255,255,255,255,255,231,129,0,160,204,161,162,129,0,0,0,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,229,106,0,117,161,165,166,163,238,129,1,165,158,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,232,120,0,160,187,161,152,129,3,233,0,177,
1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,129,0,160,188,161,152,129,7,208,0,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,130,3,233])],{type:"video/webm"});M.src=_.nj(_.Jt(T));M.ontimeupdate=function(){r();G.resolve(0)};
O.appendChild(M);M.classList.add("html5-main-video");setTimeout(function(){O.classList.add("ad-interrupting")},200);
setTimeout(function(){r();G.resolve(1)},5E3);
return E.return(G.promise)})};
PoN=function(G){var e=Dmy().objectRepresentation.playbackTracking;if(e){var r=[],Z;r.push(e==null?void 0:(Z=e.videostatsPlaybackUrl)==null?void 0:Z.baseUrl);var O;r.push(e==null?void 0:(O=e.videostatsDelayplayUrl)==null?void 0:O.baseUrl);var M;r.push(e==null?void 0:(M=e.videostatsWatchtimeUrl)==null?void 0:M.baseUrl);var T;r.push(e==null?void 0:(T=e.ptrackingUrl)==null?void 0:T.baseUrl);var E;r.push(e==null?void 0:(E=e.qoeUrl)==null?void 0:E.baseUrl);var b;r.push(e==null?void 0:(b=e.atrUrl)==null?
void 0:b.baseUrl);e=_.h(r);for(r=e.next();!r.done;r=e.next())if((r=r.value)&&G.test(r))return r.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
UmF=function(G,e){var r,Z;return _.D(function(O){switch(O.nextAddress){case 1:r=[],Z=0;case 2:if(!(Z<3)){O.jumpTo(4);break}return O.yield(fetch(G,{cache:"no-store",method:e}).then(function(M){r.push(M.status)}).catch(function(){r.push(-1)}),3);
case 3:Z++;O.jumpTo(2);break;case 4:return O.return(r)}})};
zv4=function(G){return G.domainLookupStart===0&&G.domainLookupEnd===0&&G.connectStart===0&&G.connectEnd===0||G.duration===0};
WN$=function(G,e,r){r=r===void 0?"GET":r;var Z,O,M,T,E,b,w,q,t,g;return _.D(function(l){if(l.nextAddress==1)return l.yield(Promise.all([UmF(G,r),UmF(e,r)]),2);Z=l.yieldResult;O=_.h(Z);M=O.next().value;T=O.next().value;E=M;b=T;if(Math.min.apply(Math,_.mY(b))!==Math.max.apply(Math,_.mY(b))||Math.min.apply(Math,_.mY(E))!==Math.max.apply(Math,_.mY(E)))return l.return(2);if(Math.min.apply(Math,_.mY(b))===Math.min.apply(Math,_.mY(E)))return l.return(1);q=(w=performance.getEntriesByName(G))==null?void 0:
w[0];g=(t=performance.getEntriesByName(e))==null?void 0:t[0];return q&&g?zv4(g)?l.return(1):zv4(q)?l.return(0):l.return(1):l.return(2)})};
ao$=function(){var G;return _.D(function(e){var r=[];var Z;var O,M,T;(O=Z=(O=Dmy().objectRepresentation.streamingData)==null?void 0:(M=O.formats)==null?void 0:(T=M[0])==null?void 0:T.url)&&O&&!Z.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(O=O.replace("initcwndbps","ctier=L&initcwndbps"),O=O.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),Z={testUrl:O,baseUrl:Z,method:"GET"}):Z=void 0;Z&&r.push(Z);_.R("ab_net_tp_e")&&r.push({testUrl:_.O_.location.origin+"/ad_companion",baseUrl:_.O_.location.origin+
"/generate_204",method:"OPTIONS"});_.R("ab_fix_creator_view_cnt")&&(r.length=0,(Z=PoN(/api\/stats\/atr/))&&r.push({testUrl:_.O_.location.origin+Z,baseUrl:_.O_.location.origin+"/generate_204",method:"POST"}));_.R("ad_net_pb_pbp")&&(Z=PoN(/api\/stats\/qoe/))&&r.push({testUrl:_.O_.location.origin+Z,baseUrl:_.O_.location.origin+"/feed/download",method:"GET"});r=r.length!==0?r[Math.floor(Math.random()*r.length)]:void 0;return(G=r)?e.return(WN$(G.testUrl,G.baseUrl,G.method)):e.return(4)})};
_.IoS=function(){if(_.O_.uT3===void 0||_.O_.uT3===null||typeof _.O_.uT3!=="function")return 2;try{return _.O_.uT3()===!0?0:1}catch(G){return 0}};
NHy=function(G){switch(G){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.zC(G,"unknown result type")}};
_.LNy=function(G,e){var r=Number(_.xZ("CATSTAT",0));if(e.oX3===void 0)return r;e=e.oX3;G=NHy(G);return r&~(3<<e)|G<<e};
GZF=function(G){var e,r;if((G=(e=G.auxiliaryUi)==null?void 0:(r=e.messageRenderers)==null?void 0:r.bkaEnforcementMessageViewModel)&&G.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return G};
rES=function(){for(var G=_.h(Object.values(_.eU$)),e=G.next();!e.done;e=G.next())e=e.value,e.mrB&&e.oX3&&_.BX("CATSTAT",_.LNy(2,e))};
_.ZC=function(G,e){G=_.eF("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",G);(e===void 0?0:e)?_.ZXN(G,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.r0().logFlowEvent(G,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
MIF=function(){if(!OX4){if(Polymer.Base){var G=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{G.apply(this,arguments)}catch(t){_.WX(t)}};
var e=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{e.apply(this,arguments)}catch(t){_.WX(t)}};
var r=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{r.apply(this,arguments)}catch(t){_.WX(t)}};
var Z=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{Z.apply(this,arguments)}catch(t){_.WX(t)}};
var O=Polymer.Base._listen,M=new WeakMap;Polymer.Base._listen=function(t,g,l){var X=function(){try{l.apply(this,arguments)}catch(H){_.WX(H)}};
M.set(l,X);O.call(this,t,g,X)};
var T=Polymer.Base._unlisten;Polymer.Base._unlisten=function(t,g,l){T.call(this,t,g,M.get(l))}}if(Polymer.Async){var E=Polymer.Async,b=E._atEndOfMicrotask;
E._atEndOfMicrotask=function(){try{b.apply(E,arguments)}catch(t){_.WX(t)}}}if(Polymer.RenderStatus){var w=Polymer.RenderStatus,q=w.afterNextRender;
w.afterNextRender=function(t,g,l){q.call(w,t,function(){try{g.apply(this,arguments)}catch(X){_.WX(X)}},l)}}OX4=!0}};
_.hUU=function(G){var e=G?_.Kr(G):"";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 _.R("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 _.R("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(VIp(G))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==="/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=G?_.Kr(G):"")&&e.indexOf("/watch")===0&&_.R("web_watch_enable_learning_journey")?(G=_.O5(G),G=!!G.list&&G.list.indexOf("LJPP")===0):G=!1;if(G)return"learning_journey_watch"}};
_.OO=function(G){var e,r;(G=(r=_.a(G==null?void 0:G.commandMetadata,_.rJ))==null?void 0:r.url)&&(e=_.hUU(G));return e};
VIp=function(G){var e=G?_.Kr(G):"";if(!e)return!1;e=e.toLowerCase();return e.indexOf("/show/")===0||e.indexOf("/playlist")===0&&(G=_.O5(G),G.list&&G.list.indexOf("EL")===0)?!0:!1};
hX=function(G){var e="unknown",r;var Z=((r=_.a(G==null?void 0:G.commandMetadata,_.rJ))==null?void 0:r.webPageType)||"";Z?(r=Z.toLowerCase(),r.startsWith("web_page_type_")&&(r=r.slice(14))):r=Z;r&&TZp[r.toUpperCase()]?e=TZp[r.toUpperCase()]:_.a(G,_.Mv)||_.a(G,DRA)?e="browse":_.a(G,_.Vl)?e="search":_.a(G,_.u4)&&(e="watch");e==="watch"&&_.OO(G||null)==="learning_journey_watch"&&(e="learning_journey_watch");e==="unknown"&&_.FH(Error("Tf`"+JSON.stringify({clickTrackingParams:G==null?void 0:G.clickTrackingParams,
commandMetadata:G==null?void 0:G.commandMetadata,allEndpointKeys:Object.keys(G||[])})));return e};
_.T1=function(G){if(!_.Eri||G)_.Eri=_.dS();return _.Eri};
_.iXS=function(G){return!!_.a(G,_.u4)||!!_.a(G,_.DC)&&_.R("kevlar_enable_shorts_prefetch")};
_.bXf=function(G,e){G=_.a(G,_.u4)||_.a(G,_.DC);return"v"+G.videoId+(G.playlistId?"-pl"+G.playlistId:"")+(e?"-an1":"")+(G.params?"-pr"+G.params:"")};
_.vrS=function(G){var e=new EO(_.xZ("ONE_PICK_URL",""));e.urlParamMap_.set("hostId",G);(G=_.xZ("GAPI_LOCALE"))&&e.urlParamMap_.set("hl",G);(G=_.xZ("SESSION_INDEX"))&&e.urlParamMap_.set("authuser",G);(G=_.xZ("DELEGATED_SESSION_ID"))&&e.urlParamMap_.set("groupId",G);return e};
$Ri=function(){var G=_.v_(),e=G.resolve(_.bf);G=G.resolve(_.v1);return new wHy(e,G)};
qpy=function(G){if(window.IntersectionObserver)return new Spp(G,400);throw new TypeError("Vf");};
gry=function(){var G=Hammer.TouchAction,e=G.prototype.preventDefaults;G.prototype.preventDefaults=function(r){var Z=this.actions.indexOf("pan-down")>-1;if(!Z)return e.call(this,r);if(!tIf){var O=r.srcEvent;r=r.direction;var M;if((M=this.manager)==null?0:M.session.prevented)O.preventDefault();else if(Z&&r&Hammer.DIRECTION_DOWN)return this.preventSrc(O)}}};
lAf=function(G){if(!G||G.size===0)return Hammer.DIRECTION_ALL;if(G.size===2){if(G.has("up")&&G.has("down"))return Hammer.DIRECTION_VERTICAL;if(G.has("right")&&G.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(G.size===1){if(G.has("up"))return Hammer.DIRECTION_UP;if(G.has("down"))return Hammer.DIRECTION_DOWN;if(G.has("right"))return Hammer.DIRECTION_RIGHT;if(G.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.jkN=function(){return RUi?Promise.resolve(RUi):new Promise(function(G,e){var r=self.indexedDB.open("swpushnotificationsdb");r.onerror=e;r.onsuccess=function(){var Z=r.result;if(Z.objectStoreNames.contains("swpushnotificationsstore"))RUi=Z,G(RUi);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.jkN()};
r.onupgradeneeded=aA_})};
aA_=function(G){G=G.target.result;G.objectStoreNames.contains("swpushnotificationsstore")&&G.deleteObjectStore("swpushnotificationsstore");G.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
_.$N=function(G,e,r){var Z=r&&r>0?r:0;r=Z?Date.now()+Z*1E3:0;if((Z=Z?_.w0.getLocalStorage():_.w0.getSessionStorage())&&window.JSON){typeof e!=="string"&&(e=JSON.stringify(e,void 0));try{Z.set(G,e,r)}catch(O){Z.remove(G)}}};
_.SF=function(G){var e=_.w0.getSessionStorage(),r=_.w0.getLocalStorage();if(!e&&!r||!window.JSON)return null;try{var Z=e.get(G)}catch(O){}if(typeof Z!=="string")try{Z=r.get(G)}catch(O){}if(typeof Z!=="string")return null;try{Z=JSON.parse(Z,void 0)}catch(O){}return Z};
_.qv=function(G){try{var e=_.w0.getSessionStorage(),r=_.w0.getLocalStorage();e&&e.remove(G);r&&r.remove(G)}catch(Z){}};
KjU=function(G){var e=XH_(),r;return _.D(function(Z){switch(Z.nextAddress){case 1:return _.jr(Z,2),Z.yield(G.match(e,{cacheName:"yt-appshell-assets"}),4);case 4:r=Z.yieldResult;_.rL(Z,3);break;case 2:_.k5(Z);case 3:return Z.return(r)}})};
XH_=function(){var G=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?fAf.registration.scope:kZp;G.endsWith("/")&&(G=G.slice(0,-1));return G+"/app_shell_home"};
HX4=function(G){G.map(function(e){return e.source}).join("|")};
_.dRp=function(G){return _.D(function(e){return e.return(KjU(G))})};
ors=function(){var G=window.caches,e;return _.D(function(r){if(r.nextAddress==1)return r.yield(_.dRp(G),2);e=r.yieldResult;return r.return(!!e)})};
nry=function(){_.D(function(G){if(G.nextAddress==1){if(sk_)return G.jumpTo(0);sk_=!0;if(_.R("enable_system_health_primes_monitoring"))return _.aZ(QkS,3E4),IAN(),G.return();if(!(Math.random()<_.qt("web_system_health_fraction")))return G.jumpTo(0);pHs={heightPixels:screen.height,widthPixels:screen.width};tX&&!isNaN(tX.jsHeapSizeLimit)&&(pHs.memoryTotalKbytes=String(Math.round(tX.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(pHs.devicePixelRatio=window.devicePixelRatio);return G.yield(CK$(),4)}_.aZ(QkS,
3E4);return G.yield(uSf(),0)})};
CK$=function(){return _.D(function(G){if(G.nextAddress==1)return g0.intersectionObserverPresent="IntersectionObserver"in window,g0.serviceWorkerPresent="serviceWorker"in navigator,g0.webSharePresent="share"in navigator,g0.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,g0.cacheStoragePresent="caches"in window,g0.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,g0.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
g0.webkitTemporaryStoragePresent="webkitTemporaryStorage"in lf&&lf.webkitTemporaryStorage&&"queryUsageAndQuota"in lf.webkitTemporaryStorage,g0.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",G.yield($ra(),2);g0.indexedDbPresent=G.yieldResult;g0.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;g0.broadcastChannelPresent="BroadcastChannel"in window;g0.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(g0.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,g0.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.HL(G)})};
QkS=function(){var G=9E4+Math.random()*2E3;_.bj()>G||(_.R("enable_system_health_primes_monitoring")?IAN():uSf())};
uSf=function(){var G;return _.D(function(e){if(e.nextAddress==1)return e.yield(mRs(),2);G=e.yieldResult;_.cg("systemHealthCaptured",G);_.HL(e)})};
IAN=function(){var G={metric:{}},e=cEs();e.networkEvents.length&&(G.metric.networkEvents=Yp_(e));_.cg("systemHealthCaptured",G)};
mRs=function(){var G,e,r,Z,O,M,T,E,b,w;return _.D(function(q){switch(q.nextAddress){case 1:G={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;_.R("enable_is_extended_monitoring")&&e&&"isExtended"in e&&(G.isExtended=!!e.isExtended);r={metric:{staticContext:pHs,dynamicContext:G,webMetric:yE4,webApiSupport:g0}};
if(Z=_.l4())r.csn=Z;tX&&(r.metric.webMetric.currentHeapKbytes=Math.round(tX.usedJSHeapSize/1E3));window.matchMedia&&(r.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,r.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,r.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in lf&&typeof lf.getBattery==="function")){q.jumpTo(2);break}return q.yield(lf.getBattery(),3);case 3:if(O=
q.yieldResult)r.metric.dynamicContext.chargingStatus=O.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(r.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(g0.storageEstimatePresent)return q.yield(navigator.storage.estimate(),8);if(!g0.webkitTemporaryStoragePresent){q.jumpTo(5);break}return q.yield(AEU(),7);case 7:M=q.yieldResult;q.jumpTo(5);break;case 8:M=q.yieldResult;case 5:return r.metric.dynamicContext.deviceStorageQuotaMbytes=((T=M)==null?0:T.quota)?String(Math.round(M.quota/
1048576/10)*10):"-1",r.metric.dynamicContext.deviceStorageUsageMbytes=((E=M)==null?0:E.usage)?String(Math.round(M.usage/1048576/10)*10):"-1",b=r.metric.dynamicContext,q.yield(ors(),9);case 9:return b.hasAppShell=q.yieldResult,w=cEs(),w.networkEvents.length&&(r.metric.networkEvents=Yp_(w)),q.return(r)}})};
AEU=function(){return new Promise(function(G){var e;g0.webkitTemporaryStoragePresent&&(e=lf.webkitTemporaryStorage)!=null&&e.queryUsageAndQuota?lf.webkitTemporaryStorage.queryUsageAndQuota(function(r,Z){G({usage:r,quota:Z})}):G(void 0)})};
_.RB=function(G){G&=16777215;G=[(G&16711680)>>16,(G&65280)>>8,G&255];return Fjp(G[0],G[1],G[2])};
_.jF=function(G){G=[(G&16711680)>>>16,(G&65280)>>>8,G&255,(G&4278190080)>>>24];if(!_.JES(G,function(e){return e===(e&255)}))throw Error("Wf`"+G.join(","));
return"rgba("+G[0]+","+G[1]+","+G[2]+","+(G[3]/255).toFixed(3)+")"};
_.BZN=function(G){return[(G&16711680)>>>16,(G&65280)>>>8,G&255]};
_.xRS=function(G){G=G.map(function(e){e/=255;return e<=.03928?e/12.92:Math.pow((e+.05)/1.05,2.4)});
return G[0]*.2126+G[1]*.7152+G[2]*.0722};
aB=function(G,e){G=_.BZN(G);return"rgba("+G[0]+", "+G[1]+", "+G[2]+", "+e+")"};
Xq=function(G){return(G&4278190080)>>>24===0?aB(G,"1"):_.jF(G)};
_.PK4=function(){try{return!!self.localStorage}catch(G){return!1}};
NZi=function(){if(URA())_.FH(Error("Xf"));else{var G=document.createElement("iframe");G.style.display="none";var e=e===void 0?window.location.href:e;var r=_.FF(_.xZ("PERSIST_IDENTITY_IFRAME_URL"));e=r?r:(new URL(e)).host.indexOf("studio")===0?_.qK(zUN,"persist_identity"):_.qK(WjA,"persist_identity");_.v5U(G,1,e);G.id="persist_identity";var Z;(Z=document.body)==null||Z.appendChild(G)}};
URA=function(){var G=Lj$;G||(G=document.querySelector("#persist_identity"));return G};
G5N=function(){var G=!1;try{G=!!window.sessionStorage.getItem("session_logininfo")}catch(e){G=!0}return(_.xZ("INNERTUBE_CLIENT_NAME")==="WEB"||_.xZ("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&G};
eqq=function(G,e){if(!G5N())return!1;e||(e=_.xZ("LOGIN_INFO"));return e?(G.session_logininfo=e,!0):!1};
ZwS=function(G,e){G=G===void 0?!1:G;if((e===void 0||!e)&&rJS!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.PX("LOG_STICKINESS",!1)){e=_.l4();var r=_.go(),Z={identityStickinessData:{initialState:rJS}};e&&r&&_.cn(e,r,Z)}if(e=URA())if(r=e.src?(new URL(e.src)).origin:"*",G){var O;(O=e.contentWindow)==null||O.postMessage({action:"clear"},r)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(G=window.sessionStorage.getItem("session_logininfo"))){var M;(M=e.contentWindow)==null||M.postMessage({loginInfo:G},r)}};
_.Ka=function(G){G=G===void 0?!0:G;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.BX("LOGIN_INFO",""),G&&window.sessionStorage.setItem("from_switch_account","1"),ZwS(!0,G)}catch(e){}};
Ows=function(G){G&&(G.startsWith("https://accounts.google.com/AddSession")?_.Ka():G.startsWith("https://accounts.google.com/ServiceLogin")?_.Ka():G.startsWith("https://myaccount.google.com")&&_.LB(G).getPath().endsWith("/youtubeoptions")&&_.Ka())};
fa=function(G,e){Ows(G);if(_.PX("LOGGED_IN",!0)&&G5N()){var r=WiA(G);r==null&&(r={});eqq(r,e)&&_.Yy(G,r)}};
MP_=function(){function G(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=G(e))&&fa(e)});
document.addEventListener("click",function(e){(e=G(e))&&fa(e)})};
T5p=function(){var G=new VP$;try{if(_.PX("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(E){G.increment(5,!1);return}if(_.xZ("LOGIN_INFO")){var e=hqN?hqN:window.location;_.xZ("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&NZi();var r=WiA(e.href);r==null&&(r={});var Z=r.session_logininfo,O=Number(window.sessionStorage.getItem("stickiness_reload")),M=Z===_.xZ("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
O>=2||M)O>=2?G.increment(2,M):M?G.increment(7,M):window.sessionStorage.getItem("session_logininfo")||(G.increment(3,M),rJS="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.xZ("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.xZ("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))G.increment(4,M),window.sessionStorage.removeItem("stickiness_reload");
else if(O<2){window.sessionStorage.setItem("stickiness_reload",String(O+1));var T=e.href;T=_.y5(T,"sttick");fa(T,window.sessionStorage.getItem("session_logininfo"));T=_.Mt(T,{sttick:O});G.increment(O,M);_.g5N(e,T)}}else G.increment(6,!1)}else _.Ka(!1)}catch(E){}};
_.kN=function(G,e,r,Z,O){e=e===void 0?{}:e;r=r===void 0?"":r;Z=Z===void 0?window:Z;G=_.Vi(G,e);fa(G);r=_.Fy(G+r,O);_.g5N(Z.location,r)};
D2A=function(G){if(G.urlEndpoint){if(G=_.O5(G.urlEndpoint.url),G.adurl)return iq(G.adurl)}else if(G.watchEndpoint)return"//www.youtube.com/watch?v="+G.watchEndpoint.videoId;return null};
EEA=function(G){if(!G||!G.reportingPings)return null;var e={};G.reportingPings.forEach(function(r){r.pingType in e?e[r.pingType].push(r.url):e[r.pingType]=[r.url]});
return{adpings:yb_(e)}};
_.d0=function(G){G=G===void 0?!1:G;var e=_.hy(),r="USER_INTERFACE_THEME_LIGHT";e.getFlag(165)?r="USER_INTERFACE_THEME_DARK":e.getFlag(174)?r="USER_INTERFACE_THEME_LIGHT":_.H1()&&(r="USER_INTERFACE_THEME_DARK");return G?r:iwS()||r};
_.bwy=function(){return!_.R("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.H1=function(){return _.bwy()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.oB=function(){var G=_.hy();return _.bwy()&&!G.getFlag(165)&&!G.getFlag(174)};
iwS=function(){var G=G===void 0?window.location.href:G;if(_.R("kevlar_disable_theme_param"))return null;var e=_.Kr(G);if(_.vEN(e))return"USER_INTERFACE_THEME_DARK";try{var r=_.O5(G).theme;return wFA.get(r)||null}catch(Z){}return null};
_.vEN=function(G){return _.R("enable_dark_theme_only_on_shorts")?!(G==null||!G.startsWith("/shorts/")):!1};
_.qUF=function(G,e,r,Z,O){e=e===void 0?!1:e;r=r===void 0?!1:r;var M=_.xZ("INNERTUBE_CONTEXT");if(!M)return _.yx(Error("ag")),{};M=(0,_.c2.unsafeClone)(M);_.R("web_no_tracking_params_in_shell_killswitch")||delete M.clickTracking;M.client||(M.client={});var T=M.client;T.clientName==="MWEB"&&T.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(T.clientFormFactor=_.xZ("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");T.screenWidthPoints=window.innerWidth;T.screenHeightPoints=window.innerHeight;T.screenPixelDensity=
Math.round(window.devicePixelRatio||1);T.screenDensityFloat=window.devicePixelRatio||1;T.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());T.userInterfaceTheme=_.d0();if(!e){var E=_.nJi();E&&(T.connectionType=E);_.R("web_log_effective_connection_type")&&(E=cyA())&&(M.client.effectiveConnectionType=E)}var b;if(_.R("web_log_memory_total_kbytes")&&((b=_.O_.navigator)==null?0:b.deviceMemory)){var w;b=(w=_.O_.navigator)==null?void 0:w.deviceMemory;M.client.memoryTotalKbytes=""+b*1E6}e&&Z&&!_.R("web_it_context_set_original_url_ks")&&
(T.originalUrl=$2i(_.O_.location.href,Z).toString());_.R("web_gcf_hashes_innertube")&&(E=zTp())&&(w=E.coldConfigData,b=E.coldHashData,E=E.hotHashData,M.client.configInfo=M.client.configInfo||{},w&&(M.client.configInfo.coldConfigData=w),b&&(M.client.configInfo.coldHashData=b),E&&(M.client.configInfo.hotHashData=E));w=_.O5(_.O_.location.href);!_.R("web_populate_internal_geo_killswitch")&&w.internalcountrycode&&(T.internalGeo=w.internalcountrycode);!_.R("web_populate_client_screen_killswitch")&&O&&(T.clientScreen=
O);T.clientName==="MWEB"||T.clientName==="WEB"?(T.mainAppWebInfo||(T.mainAppWebInfo={}),T.mainAppWebInfo.graftUrl=Z||_.O_.location.href,_.R("kevlar_woffle")&&_.sO.instance&&(Z=_.sO.instance,T.mainAppWebInfo.pwaInstallabilityStatus=!Z.appInstalledEventFired&&Z.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),T.mainAppWebInfo.webDisplayMode=yhi(),T.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):T.clientName==="TVHTML5"&&
(!_.R("web_lr_app_quality_killswitch")&&(Z=_.xZ("LIVING_ROOM_APP_QUALITY"))&&(T.tvAppInfo=Object.assign(T.tvAppInfo||{},{appQuality:Z})),Z=_.xZ("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(T.tvAppInfo=Object.assign(T.tvAppInfo||{},{certificationScope:Z}));!_.R("web_populate_time_zone_itc_killswitch")&&(Z=Cpa())&&(T.timeZone=Z);(Z=ryy())?T.experimentsToken=Z:delete T.experimentsToken;T=Z_y();Z=_.SUy();Z=(0,_.c2.getValues)(Z.tokenJars);M.request=Object.assign({},M.request,{internalExperimentFlags:T,consistencyTokenJars:Z});
!_.R("web_prequest_context_killswitch")&&(T=_.xZ("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(M.request.externalPrequestContext=T);Z=_.hy();T=Z.getFlag(58);Z=Z.get("gsml","");M.user=Object.assign({},M.user);T&&(M.user.enableSafetyMode=T);Z&&(M.user.lockedSafetyMode=!0);_.R("warm_op_csn_cleanup")?r&&(e=_.l4())&&(M.clientScreenNonce=e):!e&&(e=_.l4())&&(M.clientScreenNonce=e);G&&(M.clickTracking={clickTrackingParams:G});if(G=_.Lz("yt.mdx.remote.remoteClient_"))M.remoteClient=G;_.Ql.getInstance().setLocationOnInnerTubeContext(M);
try{var q=vJy(),t=q.bid;delete q.bid;M.adSignalsInfo={params:[],bid:t};for(var g=_.h(Object.entries(q)),l=g.next();!l.done;l=g.next()){var X=_.h(l.value),H=X.next().value,I=X.next().value;q=H;t=I;G=void 0;(G=M.adSignalsInfo.params)==null||G.push({key:q,value:""+t})}var C,u;if(((C=M.client)==null?void 0:C.clientName)==="TVHTML5"||((u=M.client)==null?void 0:u.clientName)==="TVHTML5_UNPLUGGED"){var P=_.xZ("INNERTUBE_CONTEXT");P.adSignalsInfo&&(M.adSignalsInfo.advertisingId=P.adSignalsInfo.advertisingId,
M.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",M.adSignalsInfo.limitAdTracking=P.adSignalsInfo.limitAdTracking)}}catch(F){_.yx(F)}return M};
_.IB=function(){return{isShellLoad:_.PX("IS_SHELL_LOAD",!1)}};
gE_=function(){navigator.serviceWorker.getRegistrations().then(function(G){G.forEach(tP$)})};
tP$=function(G){G&&_.l5$(Rq4,G.scope)};
_.l5$=function(G,e){e={scope:e||_.td("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.Qt(G),e)};
pa=function(G,e,r,Z){if(e&&e.serializedYpcCujLoggingParams){if(r){var O={};O.transactionErrorType=r;Z&&(O.errorMessage=Z);e.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:O}}}r={};r.ypcCujContext=e;G=_.eF("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",G,r);_.r0().logFlowEvent(G,"FLOW_TYPE_YPC_ACQUISITION")}};
_.juS=function(G,e,r,Z){var O={};O.serializedTransactionFlowLoggingParams=e;r&&(O.errorType=r);Z&&(O.errorMessage=Z);_.cg(G,O);_.Yc()};
_.a5s=function(G){G&&_.juS("transactionFlowStarted",G)};
_.XFf=function(G){G&&_.juS("transactionFlowCancelled",G)};
_.Ca=function(G,e,r){e&&_.juS("transactionFlowFailed",e,G,r)};
K7U=function(G){var e=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");e&&(e.inert=G)};
_.uf=function(){this.megabloxUrl_=null};
_.na=function(G){try{var e=f5F==null?void 0:f5F.composedPath(G)}catch(r){e=G.composedPath?G.composedPath():[]}return e&&e.length>0?e:G.composedPath?G.composedPath():[]};
_.mk=function(G){return _.na(G)[0]};
c1=function(G){return G instanceof ShadowRoot?ShadowRoot:G instanceof DocumentFragment?DocumentFragment:G instanceof Document?Document:HTMLElement};
k5A=function(G){if(G instanceof Element)return Element.prototype;if(G instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("eg`"+G);};
HwS=function(G,e){return _.R("sunnydom_native_scoped_query_selectors")?k5A(G).querySelector.call(G,e):c1(G).prototype.querySelector.call(G,e)};
d2N=function(G,e){return _.R("sunnydom_native_scoped_query_selectors")?k5A(G).querySelectorAll.call(G,e):c1(G).prototype.querySelectorAll.call(G,e)};
oEi=function(G){var e,r,Z;return(Z=(r=(e=G.parentElement)!=null?e:G.__shady_native_parentElement)!=null?r:G.__shady_parentElement)!=null?Z:null};
suy=function(G){var e,r,Z;return(Z=(r=(e=G.parentNode)!=null?e:G.__shady_native_parentNode)!=null?r:G.__shady_parentNode)!=null?Z:null};
Qup=function(G){var e,r,Z;return(Z=(r=(e=G.nextSibling)!=null?e:G.__shady_native_nextSibling)!=null?r:G.__shady_nextSibling)!=null?Z:null};
I54=function(G){var e,r,Z;return(Z=(r=(e=G.previousSibling)!=null?e:G.__shady_native_previousSibling)!=null?r:G.__shady_previousSibling)!=null?Z:null};
pFi=function(G){var e,r,Z;return(Z=(r=(e=G.nextElementSibling)!=null?e:G.__shady_native_nextElementSibling)!=null?r:G.__shady_nextElementSibling)!=null?Z:null};
CXN=function(G){var e,r,Z;return(Z=(r=(e=G.previousElementSibling)!=null?e:G.__shady_native_previousElementSibling)!=null?r:G.__shady_previousElementSibling)!=null?Z:null};
uzF=function(G){var e,r,Z;return new Set([].concat(_.mY((e=G.children)!=null?e:[]),_.mY((r=G.__shady_native_children)!=null?r:[]),_.mY((Z=G.__shady_children)!=null?Z:[])))};
nE_=function(G){var e,r,Z;return new Set([].concat(_.mY((e=G.childNodes)!=null?e:[]),_.mY((r=G.__shady_native_childNodes)!=null?r:[]),_.mY((Z=G.__shady_childNodes)!=null?Z:[])))};
_.YN=function(G){if(!(G instanceof Element))return null;G=G.classList?Array.from(G.classList):void 0;if(!G)return null;var e=G.indexOf("style-scope");return e>-1&&e+1<G.length?G[e+1]:null};
yl=function(G){if(!(G instanceof HTMLElement))return null;var e=G&&(G.$$||G.polymerController)?G.tagName.toLowerCase():null;return e?e:_.YN(G)};
m2U=function(G,e){return _.R("sunnydom_native_scoped_query_selectors")?G+".style-scope."+e:G.replace(/[^a-z]*[^\s]+/g,function(r){return r+".style-scope."+e})};
cJA=function(G,e){return e?G.split(",").map(function(r){return m2U(r.trim(),e)}).join(", "):G};
_.AX=function(G){var e,r,Z,O;return(O=(Z=(r=(e=G.root)!=null?e:G.shadowRoot)!=null?r:G.__shady_native_shadowRoot)!=null?Z:G.__shady_shadowRoot)!=null?O:G};
YUp=function(G){var e,r,Z;return(Z=(r=(e=G.__shady_parentNode)!=null?e:G.__shady_native_parentNode)!=null?r:G.parentNode)!=null?Z:null};
yJS=function(G){var e,r;return(r=(e=suy(G))!=null?e:G.host)!=null?r:null};
AJi=function(G){for(;G&&!(G instanceof HTMLElement);)G=yJS(G);return G};
F7U=function(G){var e=AJi(G);return G===e?_.YN(G):e?yl(e):null};
JJq=function(G){return(G=AJi(G))?yl(G):null};
B5S=function(G){if(G instanceof Comment)return!1;if(G instanceof Text){var e,r;if(((r=(e=G.textContent)==null?void 0:e.trim())!=null?r:"")==="")return!1}return!0};
Fq=function(G,e,r){var Z=e(G);for(r=r===void 0?JJq(G):r;Z&&(F7U(Z)!==r||!B5S(Z));)G=Z,Z=e(G);return Z};
x2_=function(G,e,r){if(!e)return null;G=JJq(G);return F7U(e)===G&&B5S(e)?e:Fq(e,r,G)};
PX_=function(G){return Fq(G,YUp,_.YN(G))};
U2U=function(G){return Fq(G,pFi)};
zq_=function(G){return Fq(G,Qup)};
W7$=function(G){return Fq(G,CXN)};
N5y=function(G){return Fq(G,I54)};
L7i=function(G){return x2_(G,G.firstChild||null,Qup)};
G7$=function(G){var e,r,Z;var O=(Z=(r=(e=G.firstElementChild)!=null?e:G.__shady_native_firstElementChild)!=null?r:G.__shady_firstElementChild)!=null?Z:null;return x2_(G,O,pFi)};
eni=function(G){var e,r,Z;var O=(Z=(r=(e=G.lastChild)!=null?e:G.__shady_native_lastChild)!=null?r:G.__shady_lastChild)!=null?Z:null;return x2_(G,O,I54)};
rMq=function(G){var e,r,Z;var O=(Z=(r=(e=G.lastElementChild)!=null?e:G.__shady_native_lastElementChild)!=null?r:G.__shady_lastElementChild)!=null?Z:null;return x2_(G,O,CXN)};
ZHS=function(G){var e=JJq(G);return Array.from(nE_(G)).filter(function(r){return F7U(r)===e})};
OH_=function(G){var e=yl(G);return Array.from(uzF(G)).filter(function(r){return _.YN(r)===e})};
Mb$=function(G){if(!G)return null;var e=_.YN(G);if(!e){var r;return(r=Node.prototype.getRootNode)==null?void 0:r.call(G)}e=e.toUpperCase();for(G=oEi(G);G&&G.tagName!==e;)G=oEi(G);return G?_.AX(G):null};
_.JX=function(G,e,r){if(G instanceof HTMLElement&&_.YN(G)===r){var Z=Array.from(G.classList).indexOf("style-scope");if(Z===-1)G.classList.add("style-scope"),G.classList.add(e);else if(!(Z+1>=G.classList.length)){Z=G.classList[Z+1];var O,M;G==null||(O=G.classList)==null||(M=O.replace)==null||M.call(O,Z,e)}}if(G instanceof HTMLElement||G instanceof DocumentFragment)for(O=_.h(uzF(G)),M=O.next();!M.done;M=O.next())_.JX(M.value,e,r);return G};
B1=function(G,e){if(G instanceof HTMLElement&&_.YN(G)===e){var r=Array.from(G.classList).indexOf("style-scope");r===-1||r+1>=G.classList.length||G.classList.remove("style-scope",G.classList[r+1])}if(G instanceof HTMLElement||G instanceof DocumentFragment){r=_.h(G.children);for(var Z=r.next();!Z.done;Z=r.next())B1(Z.value,e)}return G};
_.VbN=function(G,e){return c1(G).prototype.appendChild.call(G,e)};
hn$=function(G,e){if(G===e)return!0;G=nE_(G);return Array.from(G).some(function(r){return hn$(r,e)})};
_.z1=function(G,e){if(G instanceof UO)return G;(e==null?0:e.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(G,"ownerDocument")&&Object.defineProperty(G,"ownerDocument",{get:function(){return window.document}});
return new UO(G)};
Dcq=function(){var G=UO.prototype,e=[].concat(_.mY(TAq?[]:["getRootNode"]),["setAttribute","removeAttribute"]);e=_.h(e);for(var r=e.next(),Z={};!r.done;Z={method$jscomp$53:void 0},r=e.next())Z.method$jscomp$53=r.value,G[Z.method$jscomp$53]=function(O){return function(){return this.host[O.method$jscomp$53].apply(this.host,arguments)}}(Z)};
iHi=function(){var G=UO.prototype,e=[].concat(_.mY(TAq?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.mY(EXN?[]:["querySelector","querySelectorAll"]));e=_.h(e);for(var r=e.next(),Z={};!r.done;Z={method$jscomp$54:void 0},r=e.next())Z.method$jscomp$54=r.value,G[Z.method$jscomp$54]=function(O){return function(){return this.root[O.method$jscomp$54].apply(this.root,arguments)}}(Z)};
wrS=function(){var G=UO.prototype,e=[].concat(_.mY(bHi?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.mY(vXp?[]:["parentNode"]));e=_.h(e);for(var r=e.next(),Z={};!r.done;Z={prop$jscomp$67:void 0},r=e.next())Z.prop$jscomp$67=r.value,Object.defineProperty(G,Z.prop$jscomp$67,{get:function(O){return function(){return this.host[O.prop$jscomp$67]}}(Z),
configurable:!0})};
q8y=function(){var G=UO.prototype,e=["activeElement"].concat(_.mY(bHi?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.mY($cF?[]:["children"]),_.mY(S8U?[]:["lastChild"]));e=_.h(e);for(var r=e.next(),Z={};!r.done;Z={prop$jscomp$68:void 0},r=e.next())Z.prop$jscomp$68=r.value,Object.defineProperty(G,Z.prop$jscomp$68,{get:function(O){return function(){return this.root[O.prop$jscomp$68]}}(Z),
configurable:!0})};
tbA=function(){for(var G=UO.prototype,e=_.h(["innerHTML","textContent"]),r=e.next(),Z={};!r.done;Z={prop$jscomp$69:void 0},r=e.next())Z.prop$jscomp$69=r.value,Object.defineProperty(G,Z.prop$jscomp$69,{get:function(O){return function(){return this.root[O.prop$jscomp$69]}}(Z),
set:function(O){return function(M){this.root[O.prop$jscomp$69]=M}}(Z),
configurable:!0})};
gX$=function(G){var e=UO.prototype;G=_.h(Object.entries(G));for(var r=G.next(),Z={};!r.done;Z={fn$jscomp$403:void 0},r=G.next()){var O=_.h(r.value);r=O.next().value;O=O.next().value;Z.fn$jscomp$403=O;e[r]=function(M){return function(){return M.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.mY(arguments)))}}(Z)}};
Rni=function(){for(var G=UO.prototype,e=_.h(Object.entries(lnf)),r=e.next(),Z={};!r.done;Z={fn$jscomp$404:void 0},r=e.next()){var O=_.h(r.value);r=O.next().value;O=O.next().value;Z.fn$jscomp$404=O;Object.defineProperty(G,r,{get:function(M){return function(){return M.fn$jscomp$404.apply(null,[this.host.node||this.host].concat(_.mY(arguments)))}}(Z),
configurable:!0})}};
_.W1=function(G){return G instanceof jmN||G instanceof Document?G:new jmN(G)};
anU=function(){for(var G=jmN.prototype,e=_.h("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),r=e.next(),Z={};!r.done;Z={method$jscomp$55:void 0},r=e.next())Z.method$jscomp$55=r.value,G[Z.method$jscomp$55]=function(O){return function(){return HTMLElement.prototype[O.method$jscomp$55].call.apply(HTMLElement.prototype[O.method$jscomp$55],[this.node].concat(_.mY(arguments)))}}(Z)};
Xry=function(){for(var G=jmN.prototype,e=_.h("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),r=e.next(),Z={};!r.done;Z={prop$jscomp$70:void 0},r=e.next())Z.prop$jscomp$70=r.value,Object.defineProperty(G,Z.prop$jscomp$70,{get:function(O){return function(){var M;return(M=this.node["__shady_native_"+O.prop$jscomp$70])!=null?M:this.node[O.prop$jscomp$70]}}(Z),
configurable:!0})};
_.Nv=function(G,e,r){r===void 0&&(r=!G.classList.contains(e));r?G.classList.add(e):G.classList.remove(e)};
_.La=function(G,e,r){r===void 0&&(r=!G.hasAttribute(e));if(e==="class")throw Error("fg");r?_.W1(G).setAttribute(e,""):_.W1(G).removeAttribute(e)};
Kx$=function(G){return(G.localName!=="slot"?[]:(0,_.Go)(G).assignedNodes({flatten:!0})).filter(function(e){return e.nodeType===Node.ELEMENT_NODE})};
_.fnp=function(G){return(G=_.z1(G).querySelector("slot"))&&G.localName==="slot"?Kx$(G):[]};
_.eD=function(G,e){window.ShadyCSS&&window.ShadyCSS.styleSubtree(G,e)};
rv=function(G,e){var r=e.bind(G);return function(Z){r(Z,Z.detail)}};
_.ZQ=function(G,e){var r=k7s.get(G);r||(r=new WeakMap,k7s.set(G,r));if(r.has(e))return r.get(e);if(_.R("web_fi_listen_disable_bound_fn_helper")){var Z=e.bind(G);G=function(O){Z(O,O==null?void 0:O.detail)}}else G=rv(G,e);
r.set(e,G);return G};
oXN=function(G,e){HHS(G);G.created[dcf].push(e)};
HHS=function(G){if(!G.created||!G.created[dcf]){var e=G.created,r=e?[e]:[];G.created=function(){for(var Z=_.h(r),O=Z.next();!O.done;O=Z.next())O.value.apply(this)};
G.created[dcf]=r}};
smF=function(G){return function(){var e=_.Bw.apply(0,arguments);return function(r,Z,O){G.apply(null,_.mY(e))(r,Z,O)}}};
Qma=function(){return function(){var G=_.Bw.apply(0,arguments);return function(e,r,Z){ESp.apply(null,_.mY(G))(e,r,Z)}}};
_.k=function(G){return Qma()(G)};
_.d=function(){return smF(wos).apply(null,_.mY(_.Bw.apply(0,arguments)))};
_.Om=function(G){return _.R("pbcm_fi_listen_decorators")?Iny(G):smF(blA)(G)};
Iny=function(G){return function(e,r){oXN(e,function(){var Z=this[r],O=_.R("web_fi_listen_disable_bound_fn_helper")?function(M){Z(M,M.detail)}.bind(this):rv(this,Z);
pr$.has(G)?F1(this.hostElement,G,O):this.hostElement.addEventListener(G,O)})}};
_.Me=function(){return smF(vSf).apply(null,_.mY(_.Bw.apply(0,arguments)))};
_.n=function(G){G=G===void 0?{}:G;return smF(ili)(G)};
_.VI=function(G){if(G.hostElement&&G!==G.hostElement){var e=_.i4(G.hostElement);e=G.renderIdom?e:e.shadowRoot}e||(G=G.root,e=G instanceof Node?_.i4(G):null);return e};
_.hs=function(G){return CQy?u2A(G):function(e,r){Object.defineProperty(e,r,{get:function(){var Z;return(Z=_.VI(this))==null?void 0:Z.querySelector(G)},
enumerable:!0,configurable:!0})}};
u2A=function(G){return function(e,r){Object.defineProperty(e,r,{get:function(){var Z,O=(Z=_.z1(this.hostElement))==null?void 0:Z.querySelector(G);if(O)return O;var M;return(M=_.VI(this))==null?void 0:M.querySelector(G)},
enumerable:!0,configurable:!0})}};
_.To=function(G){return CQy?nXy(G):function(e,r){Object.defineProperty(e,r,{get:function(){var Z;return(Z=_.VI(this))==null?void 0:Z.querySelectorAll(G)},
enumerable:!0,configurable:!0})}};
nXy=function(G){return function(e,r){Object.defineProperty(e,r,{get:function(){var Z,O=(Z=_.z1(this.hostElement))==null?void 0:Z.querySelectorAll(G);if(O==null?0:O.length)return O;var M;return(M=_.VI(this))==null?void 0:M.querySelectorAll(G)},
enumerable:!0,configurable:!0})}};
mcs=function(G){return function(e){if(![_.bY,_.m].includes(Object.getPrototypeOf(e.prototype).constructor))throw Error("gg");rDA(Object.assign({},typeof G!=="string"?G:{is:G,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(e)}};
_.Em=function(){var G=G===void 0?{}:G;return function(e){if(![vU,_.DQ].includes(Object.getPrototypeOf(e.prototype).constructor))throw Error("hg");Zli(Object.assign({},G,{disableInheritanceCheck:!0}))(e)}};
Y84=function(G,e){cMq[G]!=null||(cMq[G]=new Set);cMq[G].add(e)};
_.iD=function(){var G=_.Me.apply(null,_.mY(_.Bw.apply(0,arguments)));return function(e,r){Y84(e.is,r);G(e,r)}};
wv=function(G,e,r){if(bD(G)&&!yMS.has(e)){e=e.replace(/^JSC\$[\d]+_/,"");e=e.replace(/\.\d+(\.|$)/g,function(M,T){return".#"+T});
vx[G]!=null||(vx[G]={});var Z,O;(Z=vx[G])[O=e]!=null||(Z[O]=new Set);vx[G][e].has(r)||(vx[G][e].add(r),_.cg("polymerPropertyAccessEvent",{componentName:G,propertyName:e,accessType:r}))}};
AMF=function(){return _.R("polymer_property_access_logging_debug")||_.R("polymer_enable_property_access_logging")};
bD=function(G){if(_.R("polymer_property_access_logging_debug"))return!0;if(!_.R("polymer_enable_property_access_logging"))return!1;Fxq||(Fxq=Date.now());return(op(G)+Fxq)%100<_.qt("polymer_property_access_logging_percent")};
JM4=function(G,e){return bD(e)&&G.hostElement.loggingStatus?new Proxy(G,{get:function(r,Z,O){if(r.hostElement.loggingStatus.bypassProxyController)return r[Z];r.hostElement.loggingStatus.isExternalGet=!0;var M=r[Z];r.hostElement.loggingStatus.isExternalGet=!1;if(M instanceof Function)return function(){var T=_.Bw.apply(0,arguments);try{return r.hostElement.loggingStatus.currentExternalCall=Z,wv(e,Z,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),M.apply(this===O?r:this,T)}finally{r.hostElement.loggingStatus.currentExternalCall=
void 0}};
wv(e,Z,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return M},
set:function(r,Z,O){if(r.hostElement.loggingStatus.bypassProxyController)return r[Z]=O,!0;r.hostElement.loggingStatus.isRendererStamper?wv(e,Z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):r.hostElement.loggingStatus.isDeclarativeExternal||wv(e,Z,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{r.hostElement.loggingStatus.currentExternalSet=Z,r[Z]=O}finally{r.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):G};
BA$=function(G,e){G&&G.loggingStatus&&!G.loggingStatus.isDeclarativeExternal&&!G.loggingStatus.isExternalGet&&G.loggingStatus.currentExternalSet!==e&&wv(G.tagName.toLowerCase(),e,"PROPERTY_ACCESS_GET_INTERNAL")};
$P=function(G,e,r){G&&(r||G.loggingStatus&&!G.loggingStatus.isInitializing&&!G.loggingStatus.isDefiningPropertyAccessor&&G.loggingStatus.currentExternalSet!==e)&&wv(G.tagName.toLowerCase(),e,"PROPERTY_ACCESS_SET_INTERNAL")};
xcS=function(){return{_definePropertyAccessor:function(G,e){var r=this,Z=r.hostElement.loggingStatus;Z&&(Z.isDefiningPropertyAccessor=!0);var O=r[G];O!==void 0&&(r.__data?r._setPendingProperty(G,O):(r.__dataProto!=null||(r.__dataProto={}),r.__dataProto[G]=O));Z&&(Z.isDefiningPropertyAccessor=!1);Object.defineProperty(this,G,{get:function(){BA$(r.hostElement,G);return this.__data[G]},
set:function(M){e||this._setPendingProperty(G,M,!0)&&this._invalidateProperties()}})},
created:function(){var G=this._setPendingProperty.bind(this);this._setPendingProperty=function(e,r,Z){$P(this.hostElement,e);return G.apply(this,[e,r,Z])}}}};
PQs=function(G){AMF()&&_.k(SD.prototype)(G.prototype,"__templateBindingLoggingBehavior")};
Uci=function(G,e){if(e.resolvedFactories.length!==G.resolvedFactories.length)return!0;e=_.h(e.resolvedFactories.entries());for(var r=e.next();!r.done;r=e.next()){var Z=_.h(r.value);r=Z.next().value;Z=Z.next().value;if(Z.providerClass){if(Z.providerClass!==G.resolvedFactories[r].providerClass)return!0}else if(Z.providerValue){if(Z.providerValue!==G.resolvedFactories[r].providerValue)return!0}else if(Z.factory!==G.resolvedFactories[r].factory)return!0}return!1};
znf=function(G,e){G=_.h(G);for(var r=G.next();!r.done;r=G.next())if(r=r.value,r.constructor===Array)znf(r,e);else{var Z=e;Z.has(r)||(r.inject&&Z.add(r),r.behaviors&&znf(r.behaviors,Z))}};
qe=function(G,e){var r=G[e];G[e]=function(){var Z=_.Bw.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(r)return r.apply(this,Z)}};
GE4=function(){_.ts.Class=function(r,Z){r=WxN(r,Z);qe(r.prototype,"created");return r};
qe(gv.prototype,"_initializeProperties");qe(_.lD.prototype,"_initializeProperties");if(NA4)qe(LxU,"created");else{var G=function(){qe(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))G();else{var e=customElements.define;customElements.define=function(r,Z,O){e.call(customElements,r,Z,O);r==="tp-yt-iron-list"&&(G(),customElements.define=e)}}}};
r$F=function(G,e){G.prototype.behaviors=G.prototype.behaviors||[];G.prototype.behaviors.unshift(eQp.InjectBehavior);G.prototype.provide=e};
_.aR=function(G){return function(e){if(!G.disableElementRegistration){G.noInjection||r$F(e,G.providers);var r=e.prototype;r.__templateHelpers||ESp(RR.prototype)(r,"__templateHelpers");r=G.is;Z5y||(Z5y=Date.now());(op(r)+Z5y)%100<_.qt("polymer_log_prop_change_observer_percent")&&ESp(jD.prototype)(e.prototype,"__propertyObserverObserver");e.prototype.behaviors=e.prototype.behaviors||[];e.prototype.behaviors.unshift(_.O5f.YtHostElementBehavior);PQs(e);mcs({is:G.is,notifyObserversOnUndefined:G.notifyObserversOnUndefined!==
!1,fastInit:G.fastInit,template:G.template,disableEnforceFastDefaultValuesCheck:!0})(e)}}};
_.c=function(G){return _.aR({is:G.is,template:G.template,disableElementRegistration:G.disableElementRegistration,cssBuildOptOut:G.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
hQF=function(G,e){if(MHA){G=new G;for(var r=_.h(Object.getOwnPropertyNames(G)),Z=r.next();!Z.done;Z=r.next())Z=Z.value,e[Z]=G[Z];for(r=e;r&&r!==Object.prototype;r=Object.getPrototypeOf(r)){Z=_.h(Object.getOwnPropertyNames(r));for(var O=Z.next();!O.done;O=Z.next())O=O.value,G.hasOwnProperty(O)||Object.defineProperty(G,O,VHF(e,O))}}else G.apply(e)};
VHF=function(G,e){return{get:function(){var r=G[e];return r instanceof Function?r.bind(G):r},
set:function(r){G[e]=r}}};
DYs=function(G,e){for(var r=G._noAccessors,Z=_.h(Object.getOwnPropertyNames(G)),O=Z.next();!O.done;O=Z.next())if(O=O.value,!TGN.has(O))if(r)e[O]=G[O];else{var M=Object.getOwnPropertyDescriptor(G,O);M&&(M.configurable=!0,Object.defineProperty(e,O,M))}};
Ezi=function(G,e,r){return function(Z){if(r){var O=r();Z.model=O}if(G[e])G[e](Z,Z.detail)}};
X6=function(G){var e=[];if(typeof G==="string")G.length>0&&e.push.apply(e,_.mY(G.split(".")));else{G=_.h(G);for(var r=G.next();!r.done;r=G.next())r=r.value,typeof r==="string"?e.push.apply(e,_.mY(r.split("."))):e.push(r)}return e};
i5N=function(G,e){if(e[e.length-1]!=="*"&&e[e.length-1]!=="splices"){for(var r=0;r<e.length;r++){if(!G)return;G=G[e[r]]}return G}};
b5f=function(G,e){if(G.length>e.length)return!1;for(var r=0;r<G.length;r++)if(G[r]!==e[r])return!1;return!0};
wdq=function(G,e,r){if(e.type==="compute"){var Z=e.getter.bind(r);var O=e.args}else Z=function(){return r[e.method.methodName].apply(r,_.mY(_.Bw.apply(0,arguments)))},O=e.method.args;
vzF(G,e.propertyKey,Z,O,e.value)};
Saa=function(G,e){if(e.readOnly){var r=Object.getOwnPropertyDescriptor(G.model,e.propertyKey);Object.defineProperty(G.model,e.propertyKey,{get:r.get,set:function(){}});
G.model[$Yp(e.propertyKey)]=r.set}};
qa$=function(G,e,r){if(r){var Z=e.propertyKey,O=e.selector;e=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.mY(e.selectorArgs.map(function(M){return{type:"path",path:M}})));
vzF(G,Z,function(M){var T=_.Bw.apply(1,arguments);return O.apply(null,[r.getState()].concat(_.mY(T)))},e)}};
gza=function(G,e,r){var Z=_.Zz(e.propertyKey)+"-changed";tHN(G,function(O){var M={value:O.value,queueProperty:!0};O.path.split(".").length>1&&(M.path=O.path);r.dispatchEvent(new CustomEvent(Z,{detail:M}))},[{type:"wildcard",
path:e.propertyKey}])};
l8f=function(G,e,r){tHN(G,function(){r[e.method.methodName].apply(r,_.mY(_.Bw.apply(0,arguments)))},e.method.args)};
$Yp=function(G){return"_set"+(G.charAt(0).toUpperCase()+G.slice(1))};
RQ$=function(){var G,e=AB(function(r){G=r},!1);
return[G,e]};
f8y=function(G){G=G.trim().replace(jYq,",").replace(a84,"$1");var e=G[0];e==="-"&&(e=G[1]);if(e>="0"&&e<="9")return{type:"literal",value:Number(G)};if(e==="'"||e==='"')return{type:"literal",value:G.slice(1,-1)};if(e=G.match(Xd4)){e=e[1];var r=KgF[e];if(r)return{type:r,path:G.slice(0,-(e.length+1))}}return{type:"path",path:G}};
oza=function(G){var e=G.match(kEi);if(e)return G={methodName:e[1],args:H5F},e[2].trim()&&(e=e[2].replace(dYa,"&comma;").split(","),G.args=e.map(f8y)),G};
sY$=function(G,e,r,Z){Z=Z===void 0?!1:Z;e=_.Zz(e);var O=sH;O&&(r=O(r,e,"attribute",G));KR(G,r,e,Z)};
KR=function(G,e,r,Z){e=QYa(e,Z===void 0?!1:Z);e===void 0?G.removeAttribute(r):G.setAttribute(r,e)};
QYa=function(G,e){switch(typeof G){case "object":case "function":if(G instanceof Date)return G.toString();if(G){if((e===void 0?0:e)&&!_.R("polymer_reflect_objects_as_boolean_killswitch"))return G?"":void 0;e=window.trustedTypes?window.trustedTypes.isHTML(G)||window.trustedTypes.isScript(G)||window.trustedTypes.isScriptURL(G):void 0;if(e)return G;try{return JSON.stringify(G)}catch(r){_.FH(Error("Dg`"+G))}}break;case "boolean":return G?"":void 0;default:return G!==null&&G!==void 0?G.toString():void 0}};
I8p=function(G){if(G===void 0)throw Error("Eg");return G};
mY_=function(G,e,r,Z){var O=pd_(Z);if(O.length){Z=r;var M="property";CNF.test(r)?M="attribute":r[r.length-1]==="$"&&(r=r.slice(0,-1),M="attribute");var T=uuS(O);T&&M==="attribute"&&(r==="class"&&G.hasAttribute("class")&&(T+=" "+G.getAttribute(r)),KR(G,T,r));M==="attribute"&&Z==="disable-upgrade$"&&G.setAttribute("disable-upgrade","");G.localName==="input"&&Z==="value"&&G.setAttribute("value","");G.removeAttribute(Z);M==="property"&&(r=_.OW(r));e=I8p(e);nzS(e,M,r,O);return!0}return r.slice(0,3)===
"on-"?(G.removeAttribute(r),(M=e).events!=null||(M.events=[]),e.events.push({name:r.slice(3),value:Z}),!0):r==="id"?(e.id=Z,!0):!1};
pd_=function(G){for(var e=[],r=0,Z;(Z=c$f.exec(G))!==null;){Z.index>r&&e.push({type:"literal",value:G.slice(r,Z.index)});var O=Z[1][0];r=!!Z[2];Z=Z[3].trim();if(O==="{")throw Error("Fg");(O=oza(Z))?e.push({type:"method",negate:r,signature:O}):e.push({type:"path",negate:r,path:Z});r=c$f.lastIndex}r&&r<G.length&&(G=G.substring(r))&&e.push({type:"literal",value:G});return e};
uuS=function(G){for(var e="",r=0;r<G.length;r++){var Z=G[r];Z.type==="literal"&&(e+=Z.value)}return e};
nzS=function(G,e,r,Z){G.bindings!=null||(G.bindings=[]);G.bindings.push({kind:e,target:r,parts:Z})};
J$$=function(G,e,r){var Z=!1;if(G.localName==="template"){Z=r;var O=e.stripWhitespace;O=Ya$(G,O===void 0?!1:O);var M=G.content.ownerDocument.createDocumentFragment();O.content=M;M.appendChild(G.content);Z&&(Z.templateInfo=O);Z=!0}else G.localName==="slot"&&(e.hasInsertionPoint=!0);if(G.firstChild&&(O=r,G.localName!=="script"&&G.localName!=="style")){M=0;for(var T=G.firstChild;T;){var E=T;if(E.localName==="template"){var b=E.getAttribute("is");if((T=b==="dom-if")||b==="dom-repeat"){E.removeAttribute("is");
b=E.ownerDocument.createElement("ps-"+b);E.parentNode.replaceChild(b,E);b.appendChild(E);var w=Array.from(E.attributes);w=_.h(w);for(var q=w.next();!q.done;q=w.next())q=q.value,T?y$p.has(q.name)&&KR(b,q.value,q.name):A$U.has(q.name)?KR(b,q.value,q.name):FgS.has(q.name),E.removeAttribute(q.name);T=b}else T=E}if(T.nodeType===Node.TEXT_NODE){E=void 0;b=G;for(w=T;((E=w.nextSibling)==null?void 0:E.nodeType)===Node.TEXT_NODE;)q=void 0,(q=w).textContent!=null||(q.textContent=""),w.nextSibling.textContent&&
(w.textContent+=w.nextSibling.textContent),b.removeChild(w.nextSibling);if(e.stripWhitespace&&T.textContent&&!T.textContent.trim()){G.removeChild(T);T=T.nextSibling;continue}}J$$(T,e,{parentIndex:M,parentInfo:O});T.parentNode&&M++;T=T.nextSibling}}var t;if((t=G.hasAttributes)==null?0:t.call(G)){t=r=I8p(r);O=!1;M=Array.from(G.attributes);M=_.h(M);for(E=M.next();!E.done;E=M.next())E=E.value,O=mY_(G,t,E.name,E.value)||O;Z=O||Z}G.nodeType===Node.TEXT_NODE&&(t=pd_(G.textContent),t.length&&(G.textContent=
uuS(t)||" ",r=I8p(r),nzS(r,"text","textContent",t),Z=!0));r&&Z&&(r.infoIndex=e.nodeInfoList.push(r)-1)};
Ya$=function(G,e){e={nodeInfoList:[],stripWhitespace:(e===void 0?!1:e)||G.hasAttribute("strip-whitespace")};J$$(G.content,e);return e};
BGa=function(G){Object.assign(G,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
PN$=function(G,e,r){e.signalCache!=null||(e.signalCache={});var Z=e.signalCache[r];if(!Z){var O=r.split(".");Z=!xYS(G,O[0]);if(O.length>1&&Z){var M=G.getPathMutationSignal(O);Z=function(){var T=BO(G.owner,function(){return G.getWithPath([O[0]])}),E,b=(E=M())==null?void 0:E.value;
return{rootWasDefined:T!==void 0,value:b}}}else Z=function(){var T=G.getWithPath(O);
return{rootWasDefined:T!==void 0,value:T}};
e.signalCache[r]=Z}return Z()};
zQS=function(G,e,r,Z,O){e=e.parts.map(function(T,E){if(T.type==="literal"){r.partWasDefined!=null||(r.partWasDefined=[]);var b;(b=r.partWasDefined)[E]||(b[E]=T.value!==void 0);return T.value}var w;if(T.type==="method"){var q,t=(q=(w=r.partWasDefined)==null?void 0:w[E])!=null?q:!1;t||(t=T.signature.args.every(function(X){return X.type==="literal"}));
var g=!1,l=!0;w=T.signature.args.map(function(X){if(X.type==="literal")return X.value;if(X.type!=="path")throw Error("Gg`"+X.type);var H=PN$(G,r,X.path);X=H.value;H=H.rootWasDefined;g||(g=H);l&&(l=H);return X});
t||(t=O===1?l:g);r.partWasDefined!=null||(r.partWasDefined={});r.partWasDefined[E]=t;if(!t)return;w=(E=PN$(G,r,T.signature.methodName).value)&&typeof E==="function"?E.apply(Z,w):void 0}else q=PN$(G,r,T.path),w=q.value,r.partWasDefined!=null||(r.partWasDefined={}),(t=r.partWasDefined)[E]||(t[E]=w!==void 0||q.rootWasDefined);T.negate&&(w=!w);return w});
if(e.length===1){var M;return((M=r.partWasDefined)==null?0:M[0])?e[0]:UYN}return e.join("")};
Wg4=function(G){return typeof G==="object"&&!!G&&"notifyPath"in G&&"canNotifyPath"in G};
NG_=function(G){return typeof G==="object"&&!!G&&"notifyPath"in G};
Lg_=function(G){return"polymerController"in G};
GPa=function(G,e){e=""+X6(e)[0];if(Wg4(G))return G.canNotifyPath(e);if(Lg_(G)&&Wg4(G.polymerController))return G.polymerController.canNotifyPath(e);if(NG_(G)){var r;return!((r=G.properties)==null||!r[e])}if(Lg_(G)&&NG_(G.polymerController)){var Z;return!((Z=G.polymerController.properties)==null||!Z[e])}return!1};
eHN=function(G,e,r){Wg4(G)||NG_(G)?G.notifyPath(e,r):Lg_(G)&&(Wg4(G.polymerController)||NG_(G.polymerController))&&G.polymerController.notifyPath(e,r)};
ZIA=function(G,e,r){if(r!==UYN){G.kind==="attribute"||G.target!=="textContent"&&(G.target!=="value"||e.localName!=="input"&&e.localName!=="textarea")||(r=r===void 0?"":r);var Z,O=(Z=rma.Polymer)==null?void 0:Z.sanitizeDOMValue;O&&(r=O(r,G.target,G.kind,e));if(G.kind==="attribute"){G=G.target;if(G==="class"||G==="name"||G==="slot")e=(0,_.Go)(e);KR(e,r,G)}else if(G=G.target,r!==e[G]||typeof r==="object")e.loggingStatus&&(e.loggingStatus.isDeclarativeExternal=!0,wv(e.localName,G,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
e[G]=r,e.loggingStatus&&(e.loggingStatus.isDeclarativeExternal=!1)}};
OIp=function(G,e,r,Z){var O=e.parts[0];if(e.parts.length!==1||O.type!=="path"||!GPa(r,e.target))return!1;var M=_.h(O.path.split(".")),T=M.next().value,E=MI(M);if(xYS(G,T))return!1;Z.signalCache!=null||(Z.signalCache={});M=Z.signalCache[O.path];var b;M=(b=M)==null?void 0:b().value;if((M==null?void 0:M.path)!==void 0){Z=X6(M.path);var w=X6(O.path);Z=[e.target].concat(_.mY(Z.slice(w.length-1)));eHN(r,Z,O.negate?!M.value:M.value);return!0}var q=fR(G,T);var t=q.getChangeRecordSignal(E),g=!1;M=function(){if(!g){var X=
BO(G.owner,function(){return q.getWithPath([])});
g||(g=X!==void 0)}return{value:t(),rootWasDefined:g}};
Z.signalCache[O.path]=M;Z.partWasDefined!=null||(Z.partWasDefined={});M=M();(w=Z.partWasDefined)[0]||(w[0]=M.rootWasDefined);var l=BO(G.owner,function(){return q.getWithPath(E)});
Z.partWasDefined[0]&&BO(G.owner,function(){return void ZIA(e,r,O.negate?!l:l)});
return!0};
MLS=function(G,e,r,Z,O,M){if(!OIp(G,e,r,Z)){var T=zQS(G,e,Z,O,M);BO(G.owner,function(){return void ZIA(e,r,T)})}};
VLa=function(G,e,r,Z,O,M){r=_.h(r);for(var T=r.next(),E={};!T.done;E={infoIndex:void 0},T=r.next()){T=T.value;var b=T.bindings;E.infoIndex=T.infoIndex;T=T.parentInfo;if(b){b=_.h(b);for(var w=b.next(),q={};!w.done;q={b$jscomp$256:void 0,bindingCtx$jscomp$4:void 0},w=b.next()){q.b$jscomp$256=w.value;if(E.infoIndex===void 0)throw Error("Hg");q.bindingCtx$jscomp$4={};G.effect(function(t,g){return function(){O&&!O()||MLS(G,t.b$jscomp$256,e[g.infoIndex],t.bindingCtx$jscomp$4,Z,M)}}(q,E))}}T&&VLa(G,e,[T],
Z,O,M)}};
hHS=function(G,e){G=(e.parentInfo?hHS(G,e.parentInfo):G).firstChild;for(var r=0;G;G=G.nextSibling)if(e.parentIndex===r++)return G;throw Error("Ig");};
DDA=function(G,e,r,Z){G=document.importNode(G.content,!0);G.__noInsertionPoint=!(Z==null?0:Z.hasInsertionPoint);for(var O=Array(e.length),M={},T=0;T<e.length;T++){var E=e[T],b=hHS(G,E);O[T]=b;E.id&&(M[E.id]=b);if(E.templateInfo){var w=b.parentElement;w&&(w.templateInfo=E.templateInfo,w.parentSignalProxy=r,w.eventListenerHost=Z.eventListenerHost,w.stampingEnabled=Z.enabledSignal)}w=void 0;if((w=E.events)==null?0:w.length)for(w=0;w<E.events.length;w++){var q=E.events[w];Ti4(Z.eventListenerHost,b,q.name,
q.value,Z.getModel)}}VLa(r,O,e,Z.thisCtx,Z.enabledSignal,Z.methodInvocationRequirement);return{root:G,nodes:O,nodesById:M}};
iIf=function(G,e){G=G();var r;(r=EqN.ShadyCSS)==null||r.prepareTemplate(G,e);e=Ya$(G);return{template:G,nodeInfoList:e.nodeInfoList,hasInsertionPoint:e.hasInsertionPoint}};
wPq=function(){bI$=!1;for(var G=kP.length,e=0;e<G;e++){var r=kP[e];if(r)try{r()}catch(Z){Promise.resolve().then(function(){throw Z;})}}kP.splice(0,G);
vqf+=G};
tLF=function(G){bI$||(bI$=!0,$Dq.textContent=(SLp++).toString());kP.push(G);return qL_++};
_.oR=function(G,e,r){Hx++;G=e?new gqA(Hx,G,e,r):new lUs(Hx,G);dv.set(Hx,G);return Hx};
RHi=function(G){(G=dv.get(G))&&G.cancel()};
aUa=function(G,e){G=jD4.get(G);return G?(e=G.get(e))?e:null:null};
_.sm=function(G,e,r,Z){var O=aUa(G,e);if(!O){O=new XPi;var M=jD4.get(G);M||(M=new Map,jD4.set(G,M));M.set(e,O)}G=r.bind(G);O.run(G,Z,void 0)};
_.KAU=function(G,e){var r;(r=aUa(G,e))==null||r.cancel()};
fUS=function(G){var e;(e=aUa(G,"doRender"))==null||e.flush()};
QI=function(G){var e;return(e=G.hostElement)!=null?e:G};
kPs=function(G){var e=G.indexOf(".");return e===-1?G:G.slice(0,e)};
HIS=function(G,e,r,Z,O,M){M=(O=(Z=M?kPs(e):e)?e:null)?G.get(O):G.__data[e];O&&M===void 0&&(M=r[e]);_.xy(G.hostElement,P_i(Z)+"-changed",{value:M,queueProperty:!0,path:O!=null?O:void 0},{bubbles:!1,composed:!1})};
dDS=function(G,e){G.__isReflecting=!0;sY$(G.hostElement,e,G.__data[e]);G.__isReflecting=!1};
oqq=function(G){if(G._onIronRequestResizeNotifications){var e=G._onIronRequestResizeNotifications.bind(G);G._onIronRequestResizeNotifications=function(r){_.mk(r)!==G.hostElement&&e(r)}}G._ariaActiveAttributeChanged&&(G._ariaActiveAttributeChanged=G._ariaActiveAttributeChanged.bind(G.hostElement));
G._activeChanged&&(G._activeChanged=function(r){G.toggles?KR(G.hostElement,r?"true":"false",G.ariaActiveAttribute):G.hostElement.removeAttribute(G.ariaActiveAttribute);G._changedButtonState()});
G._asyncClick&&(G._asyncClick=function(){_.oR(function(){G.hostElement.click()},1)});
!G.keyEventTarget||G.keyEventTarget instanceof EventTarget||(G.keyEventTarget=QI(G.keyEventTarget));G._disabledChanged&&(G._disabledChanged=G._disabledChanged.bind(G.hostElement));G._observeItems&&(G._observeItems=function(r){var Z=QI(r);return _.i4(Z).observeNodes(function(O){G._updateItems();G._updateSelected();_.xy(Z,"iron-items-changed",O,{bubbles:!1,cancelable:!1})})});
G._updateItems&&G._updateItems===_.IR._updateItems&&(G._updateItems=function(){var r=_.i4(G.hostElement).queryDistributedElements(G.selectable||"*");r=Array.prototype.filter.call(r,G._bindFilterItem);G._setItems(r)});
G._computeKeyboardClass&&(G._computeKeyboardClass=function(r){_.Nv(G.hostElement,"keyboard-focus",r)});
G.ensureRipple&&(G.ensureRipple=function(r){if(G.hasRipple&&!G.hasRipple()){if(!G._createRipple)return;G._ripple=G._createRipple();G._ripple.noink=G.noink;var Z=G._rippleContainer||G.hostElement;Z&&_.z1(Z).appendChild(G._ripple)}var O;if(r&&((O=G._ripple)==null?0:O.uiDownAction)){Z=_.z1(G._rippleContainer||G.hostElement);var M;O=(M=r.composedPath())==null?void 0:M[0];Z.contains(O)&&G._ripple.uiDownAction(r)}});
G._updateMultiselectable&&(G._updateMultiselectable=function(r){r?G.hostElement.setAttribute("aria-multiselectable","true"):G.hostElement.removeAttribute("aria-multiselectable")})};
sDi=function(G,e,r){r=_.h(r);for(var Z=r.next();!Z.done;Z=r.next())hQF(Z.value.constructor,G);hQF(e.constructor,G)};
IU_=function(G,e){G=_.h(G);for(var r=G.next();!r.done;r=G.next())if(r=r.value,r.type==="signal"){var Z=r.propertyKey;if(e.hasOwnProperty(Z)&&e[Z]!=null&&r.attributeType===Object){a:{Z=e[Z].constructor;for(var O=_.h(QDS),M=O.next();!M.done;M=O.next())if(M=M.value,Z===M){Z=M;break a}Z=Object}r.attributeType=Z}}};
pPp=function(){};
C8S=function(G){var e;return(e=G.hostElement)!=null?e:G};
uAf=function(){throw Error("Mg");};
nqa=function(G,e){G.constructor.prototype.useSignals=!0;var r=new G.constructor;sDi(r,G,e.behaviors);IU_(e.reactiveSchemas,r);r={};for(var Z=_.h(e.reactiveSchemas),O=Z.next();!O.done;O=Z.next())O=O.value,O.type==="signal"&&(r[O.propertyKey]=O.attributeType);var M={copyPropertiesToProto:uAf,didRegister:!1,typesForSignals:r},T=["disable-upgrade"].concat(_.mY(e.observedAttributes)),E=function(b){pR.call(this,G,e,M,b)};
_.K(E,pR);_.iY.Object.defineProperties(E,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return T}}});
M.copyPropertiesToProto=function(){for(var b=0;b<e.behaviors.length;b++)DYs(e.behaviors[b],E.prototype);DYs(G,E.prototype)};
e.legacyOptimizations||M.copyPropertiesToProto();E.prototype.is=G.is;return E};
mDN=function(G,e){if(Object.getPrototypeOf(e.prototype).constructor!==_.m)throw Error("Ng");e.prototype.is=G.is;return nqa(e.prototype,G)};
cmS=function(G){return G.type==="compute"||G.type==="computeWithMethod"};
YLp=function(G){for(var e=G.reactiveSchemas.filter(cmS),r=new Map,Z=new Map,O=new Map,M=_.h(e),T=M.next();!T.done;T=M.next())T=T.value,r.set(T.propertyKey,T),Z.set(T.propertyKey,[]),O.set(T.propertyKey,0);M=0;e=_.h(e);for(T=e.next();!T.done;T=e.next()){T=T.value;for(var E=_.h(T.type==="computeWithMethod"?T.method.args:T.args),b=E.next();!b.done;b=E.next())b=b.value,b.type!=="literal"&&(b=b.path.split(".")[0],Z.has(b)&&(Z.get(b).push(T.propertyKey),O.set(T.propertyKey,O.get(T.propertyKey)+1),M++))}T=
[].concat(_.mY(Z.keys())).filter(function(w){return O.get(w)===0});
for(e=[];T.length;)for(E=T.shift(),e.push(r.get(E)),E=_.h(Z.get(E)),b=E.next();!b.done;b=E.next())b=b.value,O.set(b,O.get(b)-1),M--,O.get(b)===0&&T.push(b);r=G.reactiveSchemas.filter(function(w){return!cmS(w)});
G.reactiveSchemas=[].concat(_.mY(r),_.mY(e))};
ymU=function(G,e){if(e.properties)for(var r=_.h(Object.entries(e.properties)),Z=r.next();!Z.done;Z=r.next()){var O=_.h(Z.value);Z=O.next().value;O=O.next().value;G.properties[Z]=typeof O==="function"?{type:O}:O}e.observers&&G.observers.push.apply(G.observers,_.mY(e.observers));e.disabledPolySiReactions&&G.disabledPolySiReactions.push.apply(G.disabledPolySiReactions,_.mY(e.disabledPolySiReactions))};
Amf=function(G,e){for(var r=e.length-1;r>=0;r--){var Z=e[r];Array.isArray(Z)?Amf(G,Z):G.indexOf(Z)<0&&G.unshift(Z)}};
FA_=function(G,e){G.reactiveSchemas=G.reactiveSchemas.filter(function(r){return r.type==="observe"&&e.includes(r.method.methodName)||cmS(r)&&e.includes(r.propertyKey)?!1:!0})};
Bis=function(G,e){var r=e.prototype,Z,O,M={is:G.is,reactiveSchemas:[],observedAttributes:[],behaviors:[eQp.InjectBehavior,RR.prototype],disableElementRegistration:G.disableElementRegistration,provide:(Z=G.providers)!=null?Z:[],reactivityMode:G.reactivityMode,signalProperties:(O=r.signalProperties)!=null?O:[]};"template"in e?M.templateGetter=function(){return e.template}:G.getTemplate&&(M.templateGetter=G.getTemplate);
r.behaviors&&Amf(M.behaviors,r.behaviors);JmF(M,e);return M};
JmF=function(G,e){for(var r=e.prototype,Z={properties:{},observers:[],disabledPolySiReactions:[]},O=_.h(G.behaviors),M=O.next();!M.done;M=O.next())ymU(Z,M.value);ymU(Z,r);if(G.signalProperties)for(r=_.h(G.signalProperties),O=r.next();!O.done;O=r.next())delete Z.properties[O.value];r=_.h(Object.entries(Z.properties));for(O=r.next();!O.done;O=r.next()){M=_.h(O.value);O=M.next().value;M=M.next().value;var T=void 0;if((T=G.signalProperties)==null||!T.includes(O)){T=void 0;var E=G,b=M.type;if(!b)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{b=Reflect.getMetadata("design:type",e,O);for(var w=_.h(xDA),q=w.next();!q.done;q=w.next())if(q=q.value,b===q){b=q;break a}b=Object}else b=String;M.computed||M.selector||(E.reactiveSchemas.push({type:"signal",propertyKey:O,value:M.value,attributeType:b,readOnly:M.readOnly}),E.observedAttributes.push(_.Zz(O)));M.reflectToAttribute&&E.reactiveSchemas.push({type:"reflect",propertyKey:O});if(M.computed){b=oza(M.computed);if(!b)throw Error("Og");E.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:O,method:b,value:M.value})}M.observer&&E.reactiveSchemas.push({type:"observe",method:{methodName:M.observer,args:[{type:"path",path:O}]}});M.notify&&E.reactiveSchemas.push({type:"notify",propertyKey:O});M.selector&&E.reactiveSchemas.push({type:"redux",propertyKey:O,selector:M.selector,selectorArgs:(T=M.selectorArgs)!=null?T:[]})}}P8_&&YLp(G);e=_.h(Z.observers);for(O=e.next();!O.done;O=e.next())r=G,O=O.value,(M=oza(O))?r.reactiveSchemas.push({type:"observe",method:M}):console.log('Warning: unable to parse observe declaration: "'+
O+'"');FA_(G,Z.disabledPolySiReactions)};
UD4=function(G,e){for(var r=0;r<e.length;r++){var Z=e[r],O=void 0;(O=Z).showHideApi!=null||(O.showHideApi={});O=void 0;!!G!==!((O=Z.showHideApi)==null||!O.hideTemplateChildren)&&(Z.nodeType===Node.TEXT_NODE?G?(Z.showHideApi.polymerTextContent=Z.textContent,Z.textContent=""):(O=void 0,Z.textContent=(O=Z.showHideApi.polymerTextContent)!=null?O:null):Z instanceof Element&&Z.localName==="slot"?G?(Z.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.Go)((0,_.Go)(Z).parentNode).replaceChild(Z.showHideApi.polymerReplaced,
Z)):(O=Z.showHideApi.polymerReplaced)&&(0,_.Go)((0,_.Go)(O).parentNode).replaceChild(Z,O):Z instanceof HTMLElement&&Z.style&&(G?(Z.showHideApi.polymerDisplay=Z.style.display,Z.style.display="none"):Z.style.display=Z.showHideApi.polymerDisplay));Z.showHideApi.hideTemplateChildren=G;Z.showHideChildren&&Z.showHideChildren(G)}};
WAS=function(){if(!zHi){var G=document.createElement("style");G.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(G);zHi=!0}};
CR=function(){return _.R("disable_hidden_dom_if_using_stamper")};
NiS=function(G,e){var r=_.uD().getState();return e?G.apply(null,[r].concat(_.mY(e))):G(r)};
eu4=function(){if(LAA)return LAA;var G=_.h(_.XQ(0,void 0,"MB1Hb")),e=G.next().value;G.next();var r=G.next().value;_.uD().subscribe(function(){GuA(r)});
return LAA=e};
GuA=function(G){rl4||(rl4=!0,Promise.resolve().then(function(){G(function(e){return e+1});
rl4=!1}))};
_.uD=function(){return ZUs.getAppStore()};
OUN=function(G,e){return ZUs.getSelectFn()(G,e)};
_.nR=function(G){ZUs.getDispatchFn()(G)};
M2S=function(G,e){var r={},Z;for(Z in G)r[Z]=e(G[Z],Z);return r};
_.mr=function(G,e){return function(){var r;return(r=_.FQ(G))!=null?r:e}};
_.cx=function(G,e){var r=Object.assign({},G),Z;for(Z in e)e.hasOwnProperty(Z)&&(r[Z]=_.mr(G[Z],e[Z]));return r};
V2F=function(G,e,r){G instanceof Element&&(r.debugName||(r.debugName="<"+G.tagName.toLowerCase()+(G.tagName.includes("-")?">":"."+G.className+">")),_.R("ytwiz_enable_debug_component_props")&&(G.debugProps||(G.debugProps=M2S(e,function(Z){return function(){return Z()}}))))};
_.y=function(G,e){var r=function(Z){return k$S("ytComponent",{},function(O){var M=hu_={};var T;if(((T=r)==null?0:T.idomCompat)&&Z.renderedFromIdom){var E;T=typeof r.idomCompat==="object"?(E=r)==null?void 0:E.idomCompat.callbacks:{};T=_.h(TMy(Z,T,r.debugName));E=T.next().value;T.next();T=T.next().value;var b=Dj4(G,E);M.privateValue=b;hu_=void 0;V2F(b,E,r);O.addAttributes({debugName:r.debugName});O=$Np(b);O=Array.isArray(O)?O[0]:O;O[Xt]||(O[Xt]={});O[Xt].updateSignalsFromIdomProps=T;E3f(E,b);return b}T=
M2S(Z,iUf);E=Dj4(G,T);M.privateValue=E;hu_=void 0;V2F(E,T,r);O.addAttributes({debugName:r.debugName});E3f(T,E);return E})};
r.debugName=e===void 0?"":e;return r};
Dj4=function(G,e){G=G(e);return HX(G)};
bU$=function(G,e){G[e]||(G=new _.Cr("IDOM interop setter undefined. Key:",e),_.yx(G))};
iUf=function(G,e){return e==="children"||e==="ref"||typeof G==="function"||G===void 0?G:function(){return _.FQ(G)}};
TMy=function(G,e,r){var Z={},O={},M={},T={},E;for(E in G){T={key$jscomp$951:T.key$jscomp$951};T.key$jscomp$951=E;var b=G[T.key$jscomp$951];if(T.key$jscomp$951==="children"||T.key$jscomp$951==="ref")Z[T.key$jscomp$951]=b;else if(typeof b==="function")T.key$jscomp$951 in e||b.length>0?(M[T.key$jscomp$951]=b,Z[T.key$jscomp$951]=function(q){return function(){return M[q.key$jscomp$951].apply(M,_.mY(_.Bw.apply(0,arguments)))}}(T)):Z[T.key$jscomp$951]=b;
else if(!(G[T.key$jscomp$951]===void 0&&T.key$jscomp$951 in e)){var w=_.h(_.XQ(G[T.key$jscomp$951],{debugName:T.key$jscomp$951+":cwis:"+r},"cvwbof"));b=w.next().value;w=w.next().value;Z[T.key$jscomp$951]=b;O[T.key$jscomp$951]=w}}return[Z,O,function(q){var t={},g;for(g in q)t={key$jscomp$952:t.key$jscomp$952,val$jscomp$122:void 0},t.key$jscomp$952=g,t.val$jscomp$122=q[t.key$jscomp$952],t.key$jscomp$952!=="children"&&t.key$jscomp$952!=="ref"&&(typeof t.val$jscomp$122==="function"?t.key$jscomp$952 in
e?M[t.key$jscomp$952]=t.val$jscomp$122:t.val$jscomp$122.length>0&&(M[t.key$jscomp$952]=t.val$jscomp$122,_.FH(new _.Cr("Callback detected that was not set in the idomCompat callbacks map. Key:",t.key$jscomp$952))):t.key$jscomp$952 in e&&t.val$jscomp$122===void 0||(bU$(O,t.key$jscomp$952),oh(function(l){return function(){O[l.key$jscomp$952](l.val$jscomp$122)}}(t))))}]};
$jA=function(G,e,r){var Z=NU$(G.prototype,v3i,G.prototype.behaviors);Z.prototype.is=e;Z.prototype.localName=e;r&&wEa(Z,r);return function(O){O&&(Z.prototype.hostElement=O);var M=new Z;M.root=M;M.hostElement=O;return M}};
wEa=function(G,e){var r;Object.defineProperty(G.prototype,"_template",{get:function(){r===void 0&&(r=e());return r},
set:function(Z){r=Z},
configurable:!0,enumerable:!0})};
lTp=function(G,e,r,Z){function O(){if(!l){for(var X=new Set,H=_.h(q),I=H.next();!I.done;I=H.next()){I=I.value;for(var C=_.h(Object.getOwnPropertyNames(I)),u=C.next();!u.done;u=C.next()){u=u.value;var P=void 0,F=(P=Object.getOwnPropertyDescriptor(I,u))==null?void 0:P.value;F&&F instanceof Function&&!YP(u)&&(!E[u]||_.R("polymer_forward_method_killswitch"))&&X.add(u)}}H=_.h(Object.entries(Object.getOwnPropertyDescriptors(G.prototype)));for(I=H.next();!I.done;I=H.next())C=_.h(I.value),I=C.next().value,
C=C.next().value,C.value instanceof Function&&!YP(I)&&X.add(I);l=X}return l}
SJA(G,e,Z==null?void 0:Z.providers);LK$(G.prototype,G,!0);var M=$jA(G,e,r),T,E=(T=G.prototype.properties)!=null?T:{},b,w,q=(w=(b=G.prototype.behaviors)==null?void 0:b.flat(Infinity))!=null?w:[];r=_.h(q);for(T=r.next();!T.done;T=r.next())E=Object.assign({},T.value.properties,E);var t=[].concat(_.mY(qJ4),_.mY(Object.keys(E).map(function(X){return _.Zz(X)}))),g=!1,l;
return{ctor:function(X,H){var I=M(X),C,u;X=[].concat(_.mY((C=Z==null?void 0:Z.allowedProps)!=null?C:[]),_.mY((u=Z==null?void 0:Z.allowedPropsFromBehaviors)!=null?u:[]));I.allowedProps=X.length>0?X:void 0;C={};u=_.h(t);for(X=u.next();!X.done;X=u.next())X=X.value,C[X]=_.OW(X);I.__dataAttributes=C;var P=I.ready.bind(I);I.ready=function(){H.beforeReady();P();if(bD(e)&&!g){var F=I.__templateInfo;if(F==null?0:F.hostProps){F=_.h(Object.keys(F.hostProps));for(var J=F.next();!J.done;J=F.next())wv(e,J.value,
"PROPERTY_ACCESS_GET_INTERNAL")}g=!0}};
I._overrideLegacyUndefined=!0;return I},
props:E,observedAttributes:t,getInitialMethods:O,getPropsToForwardBeforeRegister:function(){for(var X=[],H=new Set,I=_.h(Object.keys(E)),C=I.next();!C.done;C=I.next())C=C.value,X.push([C,E[C].readOnly]),H.add(C);I=O();C=_.h(Object.keys(Object.getOwnPropertyDescriptors(G.prototype)));for(var u=C.next();!u.done;u=C.next())u=u.value,!t2N(u)||I.has(u)||H.has(u)||(X.push([u,!1]),H.add(u));H=_.h(g3$);for(I=H.next();!I.done;I=H.next())X.push([I.value,!0]);return X},
getPropsToForwardBeforeReady:function(X){for(var H=[],I=_.h(Object.entries(X)),C=I.next();!C.done;C=I.next()){var u=_.h(C.value);C=u.next().value;u=u.next().value;if(t2N(C)&&!(u instanceof Function)&&(H.push([C,!1]),bD(e))){var P=u=void 0;(P=(u=X)._createPropertyAccessor)==null||P.call(u,C)}}return H},
shouldForwardProp:t2N,shouldLog:bD}};
SJA=function(G,e,r){r$F(G,r);G.prototype.behaviors.unshift(Ruf);if(AMF()){if(bD(e)){var Z;(Z=G.prototype).behaviors!=null||(Z.behaviors=[]);G.prototype.behaviors.unshift(xcS())}PQs(G)}_.k(RR.prototype)(G.prototype,"__templateHelpers")};
YP=function(G){return j6F.has(G)||G.startsWith("__compute__")};
t2N=function(G){return!YP(G)&&!G.startsWith("_")&&!G.endsWith("_")};
kuF=function(G,e){function r(){var g=b();g=_.h(g);for(var l=g.next();!l.done;l=g.next()){var X=_.h(l.value);l=X.next().value;X=X.next().value;aT4(t.prototype,l,X)}Z=!0}
var Z=!1,O=G.ctor,M=G.getInitialMethods,T=G.observedAttributes,E=G.getPropsToForwardBeforeReady,b=G.getPropsToForwardBeforeRegister,w=G.shouldForwardProp,q=G.shouldLog,t=function(){var g=HTMLElement.call(this)||this;g.didForwardDynamicProps=!1;g.loggingStatus={};Z||r();g.inst=O(g,{beforeReady:function(){g.didForwardDynamicProps||(g.forwardDynamicProps(),g.didForwardDynamicProps=!0)}});
g.controllerProxy=JM4(g.inst,e);g.forwardMethods();return g};
_.K(t,HTMLElement);t.prototype.forwardMethods=function(){for(var g=this,l=_.h(this.inst.getExtraMethodsToForward()),X=l.next(),H={};!X.done;H={method$jscomp$65:void 0},X=l.next()){var I=_.h(X.value);X=I.next().value;I=I.next().value;H.method$jscomp$65=I;this[X]=function(C){return function(){return C.method$jscomp$65.call.apply(C.method$jscomp$65,[g.inst].concat(_.mY(_.Bw.apply(0,arguments))))}}(H)}l=_.h(M());
for(H=l.next();!H.done;H=l.next())H=H.value,w(H)&&XES(this,H),q(e)&&!YP(H)&&KtF(this.inst,H)};
t.prototype.forwardDynamicProps=function(){var g=E(this.inst);g=_.h(g);for(var l=g.next();!l.done;l=g.next()){var X=_.h(l.value);l=X.next().value;X=X.next().value;aT4(this,l,X);q(e)&&!YP(l)&&fTf(this.inst,l)}};
t.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
t.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
t.prototype.attributeChangedCallback=function(g,l,X){this.inst.attributeChangedCallbackWrapper(g,l,X)};
_.iY.Object.defineProperties(t.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return e}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.iY.Object.defineProperties(t,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return T}}});
customElements.define(e,t)};
aT4=function(G,e,r){G.hasOwnProperty(e)||Object.defineProperty(G,e,{get:function(){var Z,O=((Z=G.is)!=null?Z:G.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||wv(O,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(!r){var O,M=((O=G.is)!=null?O:G.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||wv(M,e,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=e,this.loggingStatus.bypassProxyController=!0,this.polymerController[e]!==Z&&(O={},this.polymerController.setProperties((O[e]=Z,O)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
XES=function(G,e,r){var Z=G.polymerController;G[e]=function(){var O=_.Bw.apply(0,arguments);G.loggingStatus.currentExternalCall=e;G.loggingStatus.bypassProxyController=!0;var M,T=((M=G.is)!=null?M:G.tagName).toLowerCase();wv(T,e,"PROPERTY_ACCESS_CALL_EXTERNAL");var E;M=(E=r!=null?r:Z[e])==null?void 0:E.call.apply(E,[Z].concat(_.mY(O)));G.loggingStatus.currentExternalCall=void 0;G.loggingStatus.bypassProxyController=!1;return M}};
KtF=function(G,e){var r=G.hostElement,Z=G[e];G[e]=function(){var O=_.Bw.apply(0,arguments);if(r.loggingStatus.currentExternalCall!==e){var M,T=((M=r.is)!=null?M:r.tagName).toLowerCase();wv(T,e,"PROPERTY_ACCESS_CALL_INTERNAL")}return Z==null?void 0:Z.apply(G,O)}};
fTf=function(G,e){var r=Object.getOwnPropertyDescriptor(G,e);r&&!r.get&&Object.defineProperty(G,e,{get:function(){BA$(G.hostElement,e);return r.value},
set:function(Z){$P(G.hostElement,e);r.value=Z}})};
HUi=function(G){return _.R("poly_si_dom_repeat_detached_fix_killswitch")||G.tagName!=="PS-DOM-REPEAT"?G.tagName==="DOM-REPEAT":!0};
o3S=function(G,e){var r=djs(G);G instanceof Element&&r.unshift(G);G=_.h(r.filter(HUi));for(var Z=G.next();!Z.done;Z=G.next()){var O=void 0;Z=_.h((O=Z.value.__instances)!=null?O:[]);for(O=Z.next();!O.done;O=Z.next())if(O=O.value,O.root){O=Array.from(O.root.children);O=_.h(O);for(var M=O.next();!M.done;M=O.next())r.push.apply(r,_.mY(o3S(M.value,e)))}}return r.filter(function(T){return T.usePatchedLifecycles&&T.lifecycleIsConnected===e})};
djs=function(G){var e=null;G instanceof Element?e=Element.prototype.querySelectorAll:G instanceof DocumentFragment&&(e=DocumentFragment.prototype.querySelectorAll);return e?Array.from(e.call(G,"*")):[]};
yI=function(G){_.ah(function(){for(var e=_.h(o3S(G,!1)),r=e.next();!r.done;r=e.next()){r=r.value;r.lifecycleIsConnected=!0;try{var Z=void 0,O=void 0,M=void 0,T=void 0;(Z=(T=r.polymerController)!=null?T:r)==null||(M=(O=Z).connectedCallback)==null||M.call(O)}catch(E){_.yx(E)}}})};
As=function(G){_.ah(function(){for(var e=_.h(o3S(G,!0)),r=e.next();!r.done;r=e.next()){r=r.value;r.lifecycleIsConnected=!1;try{var Z=void 0,O=void 0,M=void 0,T=void 0;(Z=(T=r.polymerController)!=null?T:r)==null||(M=(O=Z).disconnectedCallback)==null||M.call(O)}catch(E){_.yx(E)}}})};
n34=function(){if(!s64){s64=!0;var G=[Node];F6&&G.push(F6.Wrapper);var e=Node.prototype.insertBefore,r=Node.prototype.removeChild;G=_.h(G);for(var Z=G.next(),O={};!Z.done;O={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},Z=G.next())Z=Z.value,O.nativeInsertBefore=Z.prototype.insertBefore,Z.prototype.insertBefore=function(T){return function(E,b){if(E instanceof DocumentFragment){var w=Array.from(E.children);E=T.nativeInsertBefore.call(this,E,b);
if(this.isConnected&&T.nativeInsertBefore===e)for(b=_.h(w),w=b.next();!w.done;w=b.next())yI(w.value);return E}w=E instanceof Element&&E.isConnected;b=T.nativeInsertBefore.call(this,E,b);w&&As(E);this.isConnected&&yI(E);return b}}(O),O.nativeAppendChild=Z.prototype.appendChild,Z.prototype.appendChild=function(T){return function(E){if(E instanceof DocumentFragment){var b=Array.from(E.children);
E=T.nativeAppendChild.call(this,E);if(this.isConnected){b=_.h(b);for(var w=b.next();!w.done;w=b.next())yI(w.value)}return E}b=E instanceof Element&&E.isConnected;w=T.nativeAppendChild.call(this,E);b&&As(E);this.isConnected&&yI(E);return w}}(O),O.nativeRemoveChild=Z.prototype.removeChild,Z.prototype.removeChild=function(T){return function(E){var b=E instanceof Element&&E.isConnected,w=T.nativeRemoveChild.call(this,E);
b&&r===T.nativeRemoveChild&&As(E);return w}}(O),O.nativeReplaceChild=Z.prototype.replaceChild,Z.prototype.replaceChild=function(T){return function(E,b){if(E instanceof DocumentFragment){var w=Array.from(E.children);
E=T.nativeReplaceChild.call(this,E,b);if(this.isConnected)for(As(b),b=_.h(w),w=b.next();!w.done;w=b.next())yI(w.value);return E}w=E instanceof Element&&E.isConnected;var q=this.isConnected,t=T.nativeReplaceChild.call(this,E,b);q&&As(b);w&&As(E);q&&yI(E);return t}}(O);
G=[Element];F6&&G.push(F6.Wrapper);G=_.h(G);Z=G.next();for(O={};!Z.done;O={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},Z=G.next())Z=Z.value,Z.prototype.before=Q6S(Z.prototype.before),Z.prototype.after=Q6S(Z.prototype.after),O.nativeReplaceWith=Z.prototype.replaceWith,Z.prototype.replaceWith=function(T){return function(){var E=_.Bw.apply(0,arguments),b=_.h(ITf(E)),w=b.next().value,
q=b.next().value;b=this.isConnected;T.nativeReplaceWith.apply(this,E);E=_.h(q);for(q=E.next();!q.done;q=E.next())As(q.value);if(b)for(As(this),w=_.h(w),b=w.next();!b.done;b=w.next())b=b.value,b instanceof Element&&yI(b)}}(O),O.nativeRemove=Z.prototype.remove,Z.prototype.remove=function(T){return function(){var E=this.isConnected;
T.nativeRemove.call(this);E&&As(this)}}(O),O.nativeInsertAdjacentElement=Z.prototype.insertAdjacentElement,Z.prototype.insertAdjacentElement=function(T){return function(E,b){var w=b.isConnected;
E=T.nativeInsertAdjacentElement.call(this,E,b);w&&As(b);E.isConnected&&yI(E);return E}}(O),O.nativeSetAttribute=Z.prototype.setAttribute,Z.prototype.setAttribute=function(T){return function(E,b){var w=pEy(this);
if(!w.usePatchedLifecycles)return T.nativeSetAttribute.call(this,E,b);var q=this.getAttribute(E);T.nativeSetAttribute.call(this,E,b);b=this.getAttribute(E);C0F(w,E,q,b)}}(O),O.nativeRemoveAttribute=Z.prototype.removeAttribute,Z.prototype.removeAttribute=function(T){return function(E){var b=pEy(this);
if(!b.usePatchedLifecycles)return T.nativeRemoveAttribute.call(this,E);var w=this.getAttribute(E);T.nativeRemoveAttribute.call(this,E);w!==null&&C0F(b,E,w,null)}}(O),O.nativeToggleAttribute=Z.prototype.toggleAttribute,Z.prototype.toggleAttribute=function(T){return function(E,b){var w=pEy(this);
if(!this.usePatchedLifecycles)return T.nativeToggleAttribute.call(this,E,b);var q=this.getAttribute(E),t=q!==null;b=T.nativeToggleAttribute.call(this,E,b);b!==t&&C0F(w,E,q,b?"":null);return b}}(O);
G=[Document,DocumentFragment,Element,ShadowRoot];F6&&G.push(F6.Wrapper);G=_.h(G);for(O=G.next();!O.done;O=G.next())O=O.value,O.prototype.prepend=Q6S(O.prototype.prepend),O.prototype.append=Q6S(O.prototype.append);(F6==null?void 0:F6.noPatch)===!0&&uYF();document.readyState==="complete"?yI(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&yI(document.body)});
var M=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");M&&M.get&&M.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:M.enumerable,configurable:!0,get:M.get,set:function(T){T||As(this);M.set.call(this,T);return T}})}};
Q6S=function(G){return function(){var e=_.Bw.apply(0,arguments),r=_.h(ITf(e)),Z=r.next().value;r=r.next().value;G.apply(this,e);e=_.h(r);for(r=e.next();!r.done;r=e.next())As(r.value);if(this.isConnected)for(Z=_.h(Z),e=Z.next();!e.done;e=Z.next())e=e.value,e instanceof Element&&yI(e)}};
uYF=function(){for(var G=_.h(mjf),e=G.next();!e.done;e=G.next()){e=e.value.prototype;for(var r=_.h(clp),Z=r.next();!Z.done;Z=r.next()){Z=Z.value;var O=Object.getOwnPropertyDescriptor(e,Z);O&&Object.defineProperty(e,"__shady_native_"+Z,O)}}};
C0F=function(G,e,r,Z){var O,M;if((O=G.polymerController)==null?0:(M=O.observedAttributes)==null?0:M.includes(e))if(G=G.polymerController,G.attributeChangedCallbackWrapper)G.attributeChangedCallbackWrapper.call(G,e,r,Z);else{var T;(T=G.attributeChangedCallback)==null||T.call(G,e,r,Z)}};
ITf=function(G){var e=[],r=[];G=_.h(G);for(var Z=G.next();!Z.done;Z=G.next())Z=Z.value,Z instanceof Element&&Z.isConnected&&r.push(Z),Z instanceof DocumentFragment?e.push.apply(e,_.mY(Array.from(Z.children))):e.push(Z);return[e,r]};
pEy=function(G){return!(G instanceof Element)&&G.node instanceof Element?G.node:G};
YJS=function(G,e){var r=e?["children"].concat(_.mY(e)):["children"];e=[];r=_.h(r);for(var Z=r.next();!Z.done;Z=r.next()){var O=Z.value;if(G.hasOwnProperty(O)){Z=G[O];Z=typeof Z==="function"?Z():Z;Z=Array.isArray(Z)?Z:[Z];Z=HX(Z).flat();if(O!=="children"){O=P_i(O);for(var M=_.h(Z),T=M.next();!T.done;T=M.next())T=T.value,T instanceof Element&&T.setAttribute("slot",O)}e.push(Z)}}e.length===0?G=[]:(G=HX(_.v("div",null,e)),G=Array.from(G.childNodes));return G};
AlA=function(G,e,r){var Z={};_.JB(function(){var O={},M;for(M in e)if(e.hasOwnProperty(M)){var T=void 0,E=void 0;if(!(((T=r.slotProps)==null?0:T.includes(M))||M==="children"||((E=r.callbackProps)==null?0:E.includes(M))||M==="ref")&&(T=_.FQ(e[M]),Z[M]!==T)){Z[M]=T;E=void 0;var b=(E=G.hostElement)!=null?E:G;!r.skipHostForwardedProps&&yli.has(M)&&(b[M]=T);O[M]=T}}oh(function(){if(G.setProperties)G.setProperties(O);else for(var w=_.h(Object.entries(O)),q=w.next();!q.done;q=w.next()){var t=_.h(q.value);
q=t.next().value;t=t.next().value;G[q]=t}})},"i")};
Jly=function(G,e,r,Z){var O=YJS(r,Z.slotProps),M=(0,_.Go)(G);O=_.h(O);for(var T=O.next();!T.done;T=O.next())M.appendChild(T.value);AlA(e,r,Z);Z=_.h(Z.callbackProps||[]);O=Z.next();for(M={};!O.done;M={kebabEventName:void 0,eventListener:void 0},O=Z.next())T=O=O.value,String(O).substring(0,2)==="on"&&r[T]?(M.kebabEventName=P_i(String(O).substring(2)),M.eventListener=r[T],G.addEventListener(M.kebabEventName,M.eventListener),_.yD(function(q){return function(){G.removeEventListener(q.kebabEventName,q.eventListener)}}(M))):
e[T]=r[T];
if(r.ref){r=_.h(FtN(r.ref));var E=r.next().value,b=r.next().value,w=e.attached.bind(e);e.attached=function(){E(G);w()};
_.yD(function(){b()})}};
FtN=function(G){if(typeof G==="function"){var e;return[function(r){e=G(r)},
function(){var r;(r=e)==null||r()}]}if(!G.onRender||!G.onUnmount)throw Error("Sg");
return[G.onRender,G.onUnmount]};
BMA=function(G,e){e=e===void 0?{}:e;var r=function(Z){var O=document.createElement(G),M;var T=(M=O.polymerController)!=null?M:O;Jly(O,T,Z,e);return O};
r.debugName=G+" (CoW wrapped)";return r};
zuF=function(G,e,r,Z,O){Z=Z===void 0?{}:Z;var M=xjp,T=!1;M?(T=!0,xjp=void 0):(P0f=e,M=document.createElement(e),P0f=void 0);var E=M;E.usePatchedLifecycles=!0;E.lifecycleIsConnected=!1;M.loggingStatus={};var b=Uj_(G,e,M,Z,O);_.yD(function(){E.lifecycleIsConnected&&(E.lifecycleIsConnected=!1,b.disconnectedCallback())});
T||(M.__noInsertionPoint=!0,Jly(M,b,r,Z));return M};
Uj_=function(G,e,r,Z,O){O=O===void 0?lTp:O;Wts[e]!=null||(Wts[e]=O(G,e,Z==null?void 0:Z.getTemplate,Z));var M=Wts[e],T=M.ctor;O=M.getInitialMethods;var E=M.getPropsToForwardBeforeReady;G=M.getPropsToForwardBeforeRegister;Z=M.shouldForwardProp;var b=M.observedAttributes,w=M.shouldLog,q=T(r,{beforeReady:function(){var t=q;t._takeAttributes?t._takeAttributes():t.setPropertiesFromInitialAttributeValues&&t.setPropertiesFromInitialAttributeValues();t=_.h(E(r.polymerController));for(var g=t.next();!g.done;g=
t.next()){var l=_.h(g.value);g=l.next().value;l=l.next().value;aT4(r,g,l);w(e)&&!YP(g)&&fTf(r.polymerController,g)}r.polymerController=JM4(q,e)}});
r.polymerController=q;r.polymerController.observedAttributes=b;M=_.h(q.getExtraMethodsToForward());for(T=M.next();!T.done;T=M.next())b=_.h(T.value),T=b.next().value,b=b.next().value,XES(r,T,b);O=_.h(O());for(M=O.next();!M.done;M=O.next())M=M.value,Z(M)&&XES(r,M),w(e)&&!YP(M)&&KtF(q,M);G=_.h(G());for(Z=G.next();!Z.done;Z=G.next())O=_.h(Z.value),Z=O.next().value,O=O.next().value,aT4(r,Z,O);return q};
NM$=function(G){var e=Js;Js=G;return e};
eyp=function(G){if(Lt_.has(G)&&Js&&Gmp(Js)===G){var e;(e=Js)._numRenders!=null||(e._numRenders=0);Js._numRenders++;if(Js._numRenders>1)throw Error("Tg");return Js}};
rc4=function(G){var e=Gmp(G);Js!==G&&e.includes("-")&&Bx.set(G,!0)};
Gmp=function(G){var e;return(e=G==null?void 0:G.tagName.toLowerCase())!=null?e:""};
ZyS=function(G,e){if(G.componentType===uW)throw Error("Ug");Lt_.add(e);var r=function(){var Z=HTMLElement.call(this)||this;Z.is=e;if(P0f===e)return Z.isInert=!0,Z;Z.createElement();return Z};
_.K(r,HTMLElement);r.prototype.createElement=function(){if(!this.isInert){xjp=this;var Z=_.h(_.AIa(function(){return _.v(G,null)})).next().value;
xjp=void 0;BGa(this);return Z}};
customElements.define(e,r)};
MB_=function(G,e,r,Z,O){G.prototype.is=e;(Z==null?0:Z.useSink)?OyA(G,e,r,Z,O):(r=lTp(G,e,r,Z),kuF(r,e));return G};
OyA=function(G,e,r,Z,O){n34();var M=_.y(function(T){return zuF(G,e,T,Object.assign({},Z,{getTemplate:r}),O)},"j");
M.debugName=e+" (CoW wrapped)";ZyS(M,e);return M};
hyi=function(G){return!VBp.has(G)};
Exi=function(G,e,r,Z){function O(){if(!t){for(var g=new Set(Tms),l=_.h(M.behaviors),X=l.next();!X.done;X=l.next()){X=X.value;for(var H=_.h(Object.getOwnPropertyNames(X)),I=H.next();!I.done;I=H.next()){I=I.value;var C=void 0,u=(C=Object.getOwnPropertyDescriptor(X,I))==null?void 0:C.value;u&&u instanceof Function&&(!w[I]||_.R("polymer_forward_method_killswitch"))&&g.add(I)}}l=_.h(Object.entries(Object.getOwnPropertyDescriptors(G.prototype)));for(X=l.next();!X.done;X=l.next())H=_.h(X.value),X=H.next().value,
H=H.next().value,H.value instanceof Function&&g.add(X);t=g}return t}
var M=Bis({is:e,disableElementRegistration:!1,getTemplate:r,providers:Z==null?void 0:Z.providers,reactivityMode:Z==null?void 0:Z.reactivityMode},G);if((Z==null?0:Z.allowedProps)||(Z==null?0:Z.allowedPropsFromBehaviors)){var T,E;M.allowedProps=[].concat(_.mY((T=Z.allowedProps)!=null?T:[]),_.mY((E=Z.allowedPropsFromBehaviors)!=null?E:[]))}var b=mDN(M,G);e=b.observedAttributes;var w={};r=_.h(M.reactiveSchemas);for(Z=r.next();!Z.done;Z=r.next())if(Z=Z.value,Z.type==="signal")w[Z.propertyKey]={readOnly:Z.readOnly},
Z.readOnly&&(w[$Yp(Z.propertyKey)]={readOnly:!0});else if(Z.type==="compute"||Z.type==="computeWithMethod"||Z.type==="redux")w[Z.propertyKey]={readOnly:!0};var q=M.reactiveSchemas.length,t;return{ctor:function(g,l){g=new b(g);g.beforeReady=l.beforeReady;return g},
props:w,observedAttributes:e,getInitialMethods:O,getPropsToForwardBeforeRegister:function(){for(var g=[],l=new Set,X=_.h(D3q),H=X.next();!H.done;H=X.next())H=H.value,g.push([H,H!=="observers"&&H!=="properties"]),l.add(H);X=_.h(Object.keys(w));for(H=X.next();!H.done;H=X.next())H=H.value,g.push([H,w[H].readOnly]),l.add(H);X=O();H=_.h(Object.keys(Object.getOwnPropertyDescriptors(G.prototype)));for(var I=H.next();!I.done;I=H.next())I=I.value,!hyi(I)||X.has(I)||l.has(I)||(g.push([I,!1]),l.add(I));g.push(["allowedProps",
!0]);return g},
getPropsToForwardBeforeReady:function(g){var l=[];g=_.h(Object.keys(g));for(var X=g.next();!X.done;X=g.next()){X=X.value;var H=O();hyi(X)&&!H.has(X)&&l.push([X,!1])}g=_.h(M.reactiveSchemas.slice(q));for(X=g.next();!X.done;X=g.next())X=X.value,X.type!=="compute"&&X.type!=="computeWithMethod"&&X.type!=="redux"&&X.type!=="signal"||l.push([X.propertyKey,X.type==="signal"?X.readOnly:!0]);return l},
shouldForwardProp:hyi,shouldLog:bD}};
_.A=function(G,e,r,Z){var O,M,T=(M=(O=Z)==null?void 0:O.mode)!=null?M:0;Z!=null||(Z={});var E;(E=Z).reactivityMode!=null||(E.reactivityMode=0);T===1&&_.gR("creator_poly_si_disable_list").includes(e)&&(T=2);return T===1?MB_(G,e,r,Object.assign({},Z,{useSink:!0}),Exi):MB_(G,e,r,Object.assign({},Z,{useSink:T===2}))};
_.xP=function(){return function(G,e,r,Z){var O,M,T=(M=(O=Z)==null?void 0:O.mode)!=null?M:2;Z!=null||(Z={});var E;(E=Z).reactivityMode!=null||(E.reactivityMode=0);if(T===0)throw Error("Vg`"+T);return OyA(G,e,r,Z,T===1?Exi:void 0)}};
_.Px=function(G){return _.R("creator_poly_si_killswitch")?!1:_.R("force_all_poly_si_batches")&&(G==="poly_si_all_on_test_check"||G==="creator_poly_si_batch_050"?0:G)||document.documentElement.hasAttribute("use-signals")?!0:!G||_.R(G+"_holdback_enabled")&&_.R("kevlar_polysi_holdback")?!1:_.R(G)};
Um=function(G){return G?G.icon?G.icon.iconType.toLowerCase():G.customThumbnail?"member":"":""};
iyU=function(G){if(!G)return"";G=_.h(G);for(var e=G.next();!e.done;e=G.next())if((e=e.value)&&e.liveChatAuthorBadgeRenderer&&(e=Um(e.liveChatAuthorBadgeRenderer))&&e!=="verified")return e;return""};
byA=function(G,e){if(!G)return null;var r;return((r=G.find(function(Z){return Z&&Z.liveChatAuthorBadgeRenderer?Um(Z.liveChatAuthorBadgeRenderer)===e:!1}))==null?void 0:r.liveChatAuthorBadgeRenderer)||null};
_.tBs=function(G){var e=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;G=vxF(G);e=vxF(e);var r=w0S(G.hex);e=w0S(e.hex);var Z=e[0]/255;var O=e[1]/255,M=e[2]/255,T=Math.max(Z,O,M),E=Math.min(Z,O,M),b=0,w=0,q=.5*(T+E);T!=E&&(T==Z?b=60*(O-M)/(T-E):T==O?b=60*(M-Z)/(T-E)+120:T==M&&(b=60*(Z-O)/(T-E)+240),w=0<q&&q<=.5?(T-E)/(2*q):(T-E)/(2-2*q));Z=[Math.round(b+360)%360,w,q];r=$3F(r,e);for(G=STs(G.hex);r<4.5;){G=Z[2]>=.5?G.darker((4.5-r)/2):G.brighter((4.5-r)/2);r=G.toString();
O=qTS(r);if(!O.length)throw Error("Xd`"+r);r=O;r=$3F(r,e)}return G.hex()};
$3F=function(G,e){G=_.xRS(G);e=_.xRS(e);return(Math.max(G,e)+.05)/(Math.min(G,e)+.05)};
_.zo=function(G){return"#"+("000000"+(G&16777215).toString(16)).slice(-6)};
_.gxf=function(G){for(var e=0,r=0;r<G.length;r++)e=G.charCodeAt(r)+((e<<5)-e);G="#";for(r=0;r<3;r++)G+=("00"+(e>>r*8&255).toString(16)).slice(-2);return G};
l6y=function(G){G=(G||"").split(":");G.length===1&&G.unshift("yt-icons");G[1]=G[1].toLowerCase();return G};
f6N=function(G,e){var r=(e=e===void 0?!1:e)?Ryi:j7p,Z=e?a6_:X0f;G.getIconNames().forEach(function(O){O=e?O:O.substring(O.indexOf(":")+1);G.name==="yt-icons"?Kmq.add(O):O.includes("-filled")?r.add(O):Z.add(O)})};
Wx=function(G,e,r,Z){r=r===void 0?!1:r;Z=Z===void 0?!1:Z;var O,M,T;return _.D(function(E){if(E.nextAddress==1)return E.yield(kmp,2);if(Z)return E.return(Kmq.has(G));O=r?Ryi:j7p;M=r?a6_:X0f;return e?(T=G.includes("-filled")?G:G.concat("-filled"),E.return(O.has(T))):E.return(M.has(G))})};
_.Ne=function(G){if(Hy$(G))return G.toString();var e=d3p.get(G);if(e)return e;e=G.toLowerCase();var r="yt-icons",Z=e.replace(/_/g,"-");switch(G){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":r="av";e="closed-caption";break;case "COLLECTION":r="maps";e="layers";break;case "CONTACT":r=
"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":r="yt-studio-system-icons";e=Z.split("creator-studio-")[1];break;case "DISMISSAL":e="close";break;case "DO_NOT_DISTURB":e="block";break;case "DOGFOOD":r="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":r="ytg";e="my-games";break;case "GO_TO_PAGE":e="arrow-forward";break;case "GROUP":r="social";break;case "HIDE":e="not_interested";break;case "INPUT_COMPONENT":r="icons";e="settings-input-component";break;case "KIDS_BLOCK":e="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":r="ytg";e="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":r=
"ytg";e="membership-post-purchase";break;case "MULTIVIEW":e="screen_multi_view";break;case "MY_LOCATION":r="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":r="miniplayer";break;case "PAYMENT":r="icons";break;case "PHONE_DOWNLOAD":e="phone_download";break;case "PREMIUM_STANDALONE":r="yt-logos";e="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":r="yt-logos";e="premium_standalone_cairo";
break;case "QUESTION_ANSWER":e="question_answer";break;case "REDEEM":r="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":r="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":r=
"yt-icons";e="people";break;case "STAFF_PICK":r="ytg";e="spotlight";break;case "START_DVR":e="add";break;case "STOP_DVR":r="av";e="stop";break;case "TAB_LIKED":e="like";break;case "TAB_INBOX":e="mail";break;case "TERMS_OF_SERVICE":r="icons";e="description";break;case "TRENDING":e="fire";break;case "UNBLOCK_USER":e="remove";break;case "UNPLUGGED_DARK_THEME":r="image";e="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":e="live";break;case "UNPLUGGED_SPORTS":r="ytu";e="visibility-off";break;
case "VIDEOS":r="av";e="play-circle-filled";break;case "YOUTUBE":r="yt-logos";e="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":r="yt-logos-ext";e="yt-logo-red-updated";break;case "YOUTUBE_LOGO":r="yt-logos-ext";e="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":r="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":r="shorts";e=Z;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":r="yt-sys-icons";e="youtube_improve_tv";break;case "OUTLINE_BAG":r=
"yt-sys-icons";e="bag";break;case "QUEUE_PLAY_LAST":r="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":r="yt-sys-icons";e="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":r="yt-sys-icons";e="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":r="yt-sys-icons",e="tic_tac_toe"}e=r+":"+e;d3p.set(G,e);return e};
Hy$=function(G){var e;_.R("kevlar_use_wil_icons")?e=!!_.v_().resolve(_.LR).resolveIcon({iconName:G.toString()}):e=!1;return e};
_.es=function(G,e,r,Z){r=r===void 0?{}:r;Z=Z===void 0?!1:Z;r===null&&(r={});var O=_.gR("kevlar_command_handler_command_banlist");O=_.h(O);for(var M=O.next();!M.done;M=O.next())if(M=G?G.hasOwnProperty(M.value):void 0,M)return!1;O=_.a(G.commandMetadata,_.rJ);return Z&&O!=null&&O.url?!1:!e.disableCommandHandlerOverride&&_.Ga.instance?(Z=_.Ga.instance,r.form||(r.form={element:e}),r.form.element||(r.form.element=e),!r.clickedVisualElement&&e.visualElement&&(r.clickedVisualElement=e.visualElement),Z.resolveCommand(G,
r),!0):!1};
oxN=function(G,e){G=r2(G);for(var r=_.h(G.visibilityMonitorKeys||[]),Z=r.next();!Z.done;Z=r.next())e.unobserveByKey(Z.value);G.visibilityMonitorKeys=void 0};
p0S=function(G,e){if(_.l4()){if(_.R("kevlar_vimio_use_shared_monitor"))s7s(G,e.data);else if(!s7s(G,e.data))return;var r=e.data,Z=Q74(r);if(_.R("enable_client_ve_spec_logging"))oxN(G,e.observer);else{var O=r2(G);O.trackedParams&&O.trackedParams!==Z&&oxN(G,e.observer)}O=r2(G);!r||O.data&&O.data===r||(O.data=r);I6A(G,e);O.trackedParams=Z}};
I6A=function(G,e){var r=e.observer;if(!r&&_.R("web_skip_missing_vimio_observer")){var Z,O;_.FH(new _.Cr("VisibilityObserver is not defined.",G.tagName,G.trackedParams,(Z=e.data)==null?void 0:Z.trackingParams,(O=e.data)==null?void 0:O.loggingDirectives))}else{var M=e.layer,T=e.visibilityCallback||function(){},E=e.prescanCallback,b=r2(G);
Z=[];e.showOption&&Z.push(r.observe(G,function(){e.skipLogging&&e.skipLogging()||_.ZM().reportShown(b,void 0,M);T(!0)},e.showOption));
e.hideOption&&Z.push(r.observe(G,function(){_.ZM().reportHidden(b,void 0,M);T(!1)},e.hideOption));
e.prescanOption&&E&&Z.push(r.observe(G,function(){E()},e.prescanOption));
b.visibilityMonitorKeys=Z}};
s7s=function(G,e){G=r2(G);if(G.visualElement&&!e)return!0;if(!e)return!1;var r=!1;if(_.R("enable_client_ve_spec_logging")){var Z,O;r=!!((Z=e.loggingDirectives)==null?0:(O=Z.clientVeSpec)==null?0:O.uiType)}Z=Q74(e);if(!Z&&!r)return!1;_.R("mweb_component_visibility_logging")&&(G.veContainer||(G.veContainer={}),G.veContainer.trackingParams=Z);if(G.trackedParams&&G.trackedParams===Z)return!1;var M;if(_.R("enable_client_ve_spec_logging")&&((M=G.visualElement)==null?0:M.isClientVe())){var T;M=(T=G.visualElement)==
null?void 0:T.getAsJspb();var E,b,w,q;if(_.vp(M,2)===((E=e.loggingDirectives)==null?void 0:(b=E.clientVeSpec)==null?void 0:b.uiType)&&_.vp(M,3,-1)===((w=e.loggingDirectives)==null?void 0:(q=w.clientVeSpec)==null?void 0:q.elementIndex))return!1}if(_.R("enable_client_ve_spec_logging")){var t,g;!G.visualElement&&((t=e.loggingDirectives)==null?0:(g=t.clientVeSpec)==null?0:g.uiType)&&(E=e.loggingDirectives.clientVeSpec,e=E.uiType,T=E.elementIndex,E=E.clientYoutubeData,G.visualElement=_.OY(_.h_(),{veType:e,
elementIndex:T,clientYouTubeData:E}))}return!0};
Q74=function(G){if(G==null?0:G.rendererContext){var e=_.a(G.rendererContext,_.Ta);if(e==null?0:e.loggingDirectives)return e.loggingDirectives.trackingParams}return(G==null?0:G.loggingDirectives)?G.loggingDirectives.trackingParams:G==null?void 0:G.trackingParams};
r2=function(G){var e;return(e=G.polymerController)!=null?e:G};
m3_=function(G){_.ZM();if(_.N0(DM().JSC$12728_elementShouldLogGesture).bind(DM())(G,4)){C2q(G);var e=uO4(G);nxU.set(G,e)}};
C2q=function(G){nxU.has(G)&&(nxU.get(G).cancel("untrack hover element"),nxU.delete(G))};
uO4=function(G){var e,r=[],Z=!1,O=new _.aQ(function(M,T){EY(G,"mouseenter",_.N0(function(){var E,b,w;return _.D(function(q){if(q.nextAddress==1)return e=(0,_.vG)(),E=ccA(G),r.push(E),b=YT$(G,function(){Z=!0;T(Error("Wg"))}),q.yield(E,2);
if(q.nextAddress!=3)return b&&i1(b),w=yc4(G),r.push(w),q.yield(w,3);M();_.HL(q)})}))});
O.then(function(){var M=(0,_.vG)()-e;M=Math.round(M);if(!(500>M||6E5<=M)){var T=G.getScreenLayer?G.getScreenLayer():void 0;T=_.l4(T)||"";var E=AcA(_.ZM(),G);_.mC(T,G.visualElement?G.visualElement:_.b1(E),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:M}})}m3_(G)},function(){vQ&&(vQ(),vQ=null);
Z&&(C2q(G),m3_(G))});
return O};
ccA=function(G){var e;return(new _.aQ(function(r,Z){vQ=function(){Z(Error("Xg"))};
e=_.A0.debounce(_.N0(function(){i1(O);r()}),1,100);
var O=_.w2(G,"mousemove",e)})).thenCatch(function(){var r=_.A0.cancelDebouncedJobMap.get(e);
r&&_.A0.cancelJob(r)})};
yc4=function(G){var e;return(new _.aQ(function(r,Z){vQ=function(){Z(Error("Yg"))};
e=EY(G,"mouseleave",_.N0(function(){r()}))})).thenCatch(function(){i1(e)})};
YT$=function(G,e){return EY(G,"mouseleave",_.N0(e))};
JcS=function(G){FmS&&_.$h.cancel(FmS);FmS=_.$h.run(function(){_.xy(G,"yt-visibility-refresh");FmS=0})};
Bmp=function(G){G=Number(G);return"rgba("+[G>>16&255,G>>8&255,G&255,(G>>24&255)/255].join()+")"};
P2f=function(G){if(!G)return!1;if(_.a(G,_.x3S))return!0;var e;if(G=(e=_.a(G,_.LO))==null?void 0:e.commands)for(e=_.h(G),G=e.next();!G.done;G=e.next())if(_.a(G.value,_.x3S))return!0;return!1};
U3f=function(G){var e=!0;e=e===void 0?!0:e;if(!G.useSignals&&!G.experimentalPropertiesChanged||_.R("experimental_templating_behavior_nopatch_killswitch")){var r=G._propertiesChanged;G._propertiesChanged=function(Z,O,M){e?G.debounceRender():G.doRender();r&&r.call(G,Z,O,M)}}};
zyq=function(G,e){if(G.useSignals||G.experimentalPropertiesChanged)if(_.R("experimental_templating_behavior_nopatch_killswitch"))G.experimentalPropertiesChanged=function(){};
else return;var r=new Set,Z=[G].concat(_.mY(G.behaviors));Z=_.h(Z);for(var O=Z.next();!O.done;O=Z.next()){O=O.value;for(var M in O.properties)r.has(M)||(G._addPropertyEffect(M,"function",e),r.add(M))}};
WmS=function(){var G=Polymer.Element,e=G._prepareTemplate;G._prepareTemplate=function(){e.call(this);var r=this.prototype;if(r.experimentalTemplatingInUse&&r.experimentalTemplatingInUse()&&r.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.yx(Error("Zg"));else{r=this.template.content.childNodes;for(var Z=r.length-1;Z>=0;Z--){var O=r[Z];O.nodeName!=="STYLE"&&O.nodeName!=="LINK"&&O.nodeName!=="SCRIPT"&&O.nodeName!=="#comment"&&O.remove()}}}};
Nmf=function(G){var e=!0;e=e===void 0?!0:e;WmS();var r=G.ready;G.ready=function(){this._template=null;r.call(this)};
zyq(G,e?G.debounceRender:G.doRender)};
Gga=function(G,e,r){if(r===null||r===void 0)return r;var Z=k2_(G.tagName.toLowerCase(),e,function(){throw Error("Tb");});
if(Z===null)return r;Z=Lma[Z];var O;if((O=Z.isUnwrappable)==null?0:O.call(Z,r)){if(Z.unwrap)return Z.unwrap(r);throw Error("bh");}return Z.filterString?Z.filterString(G.tagName,e,String(r)):r};
efi=function(G,e,r){var Z=e[e.length-1]!=="$",O=Gga(G,e,r);if(Z)if(typeof O==="function"&&e.startsWith("reactiveon")&&e===e.toLowerCase()){var M=hB;u1s(G,e.slice(8),function(T){BO(M,function(){O(T)})})}else G[e]=O;
else r=O==null?null:String(O),zy(G,e.slice(0,-1),r)};
qq=function(G){r1s.length===0&&requestAnimationFrame(function(){setTimeout(function(){var e=r1s.slice();r1s.length=0;e=_.h(e);for(var r=e.next();!r.done;r=e.next()){r=r.value;try{r()}catch(Z){_.Ss(Z)}}})});
r1s.push(G)};
ZT$=function(G){if(G){var e=G.component;if(e){var r;e==null||(r=e.events)==null||r.publish("DISCONNECTED");var Z;e==null||(Z=e.onDisconnected)==null||Z.call(e)}var O,M;(O=G.__spec)==null||(M=O.didUnmount)==null||M.call(O);for(e=0;e<G.childNodes.length;e++)ZT$(G.childNodes[e])}};
OTS=function(G,e,r){var Z=e&&e.key,O=hH;O[0]=G;O[1]=Z;O[2]=void 0;for(var M in e)e.hasOwnProperty(M)&&(G=e[M],Z=Tb,Z.push(M),Z.push(G));e=hH;a:{if(M=hH[2])for(G=0;G<M.length;G+=2)if(M[G]==="nonce"){M=M[G+1];break a}M=""}M=zsq(e[0],e[1],M);G=Gb(M);Z=e[2];if(!G.staticsApplied&&(G.staticsApplied=!0,Z&&Z.length))if((O=G._attrsArr)&&O.length){for(O=0;O<Z.length;O+=2)t_[Z[O]]=O+1;O=G._attrsArr||(G._attrsArr=CCa(0));for(var T=0,E=0;E<O.length;E+=2){var b=O[E],w=O[E+1],q=t_[b];q?Z[q]===w&&delete t_[b]:(O[T]=
b,O[T+1]=w,T+=2)}PO(O,T);for(var t in t_)yT4(M,t,Z[t_[t]],EH),delete t_[t]}else for(t=0;t<Z.length;t+=2)yT4(M,Z[t],Z[t+1],EH);ZtA(M,G,EH);PO(e,0);r&&r(e1);WuA()};
_.g2=function(G,e,r){r===void 0?delete G[e.name]:G[e.name]=r};
_.l1=function(G){var e={androidIncludeFontPadding:!1},r=0,Z=[],O=[],M=[];if(G.simpleText)return e.content=G.simpleText,e;if(G.runs===void 0)return e.content="",e;G=_.h(G.runs);for(var T=G.next();!T.done;T=G.next()){T=T.value;var E=T.text,b=void 0,w=(b=E)==null?void 0:b.length;if(E&&w){Z.push(E);if(T.bold||T.italics||T.strikethrough||T.underline||T.textColor!=null&&T.textColor!==0||T.deemphasize){E=O;b=E.push;var q={startIndex:r,length:w};T.bold&&(q.weightLabel="FONT_WEIGHT_MEDIUM");T.italics&&(q.italic=
!0);T.strikethrough&&(q.strikethrough="LINE_STYLE_SINGLE");T.underline&&(q.underline="LINE_STYLE_SINGLE");T.textColor!=null&&T.textColor!==0?document.documentElement.hasAttribute("dark")?q.fontColor=T.darkModeTextColor||T.textColor:q.fontColor=T.textColor:T.deemphasize&&(document.documentElement.hasAttribute("dark")?q.fontColor=parseInt("ff"+Me$("#aaa").substring(1),16):q.fontColor=parseInt("ff"+Me$("#606060").substring(1),16));b.call(E,q)}T.navigationEndpoint&&(E=M,b=E.push,q={startIndex:r,length:w,
onTap:{innertubeCommand:T.navigationEndpoint}},T.loggingDirectives&&_.g2(q,Ve_,T.loggingDirectives),b.call(E,q));r+=w}}e.content=Z.join("");e.styleRuns=O.length?O:void 0;e.commandRuns=M.length?M:void 0;return e};
Tr_=function(G){if(G==null||!G.runs)return!0;G=_.h(G.runs);for(var e=G.next();!e.done;e=G.next())if(e=e.value,e.bracket||e.errorUnderline||e.deemphasize||_.a(e,Rg)||_.a(e,hfy))return!1;return!0};
DOU=function(G,e){return function(r){var Z=e.unit;if(Z!==r)throw Error("eh`"+G+"`"+Z+"`"+r);return e}};
js=function(G){if(!((G==null?0:G.value)&&(G==null?0:G.unit)))return"";switch(G.unit){case "DIMENSION_UNIT_FRACTION":var e="%";break;default:e="px"}G=G.value;e==="%"&&(G*=100);return""+G+e};
Eaf=function(G){try{return G()}catch(e){_.FH(e)}};
_.X0=function(G){var e=_.a(G,_.ag);if(e)return e;if((e=_.a(G,iTF))&&e.commands)return bT_(e.commands);if((e=_.a(G,va4))&&e.commands)return bT_(e.commands);if((G=_.a(G,waS))&&G.identifier&&G.command&&($OA||($OA=[]),!$OA.includes(G.identifier)))return $OA.push(G.identifier),_.a(G.command,_.ag)};
bT_=function(G){if(G.length!==0){var e=[];G=_.h(G);for(var r=G.next();!r.done;r=G.next())(r=_.X0(r.value))&&e.push(r);return{commandExecutorCommand:{commands:e}}}};
_.fC=function(G){var e=G.defaultTarget,r=G.elementConfig,Z=G.elementsCommand,O=G.skipOnClick,M=G.forceNewState,T=G.additionalCommandArgs,E=G.innertubeCommand||_.X0(Z);if(E){G={};var b=S7p(E);Z=b.navigatingCommand;b=b.href;Z&&b?(G.href$=b,q7S(G,Z,b,e),_.R("web_atagconfig_pointerdown")&&teA(G,Z),M&&(G["force-new-state$"]=!0)):(G.role$="button",G.href$="javascript:void(0);");_.a(E,ga4)&&(G["aria-haspopup$"]=!0);O||(G.onclick=function(w){var q={};if(l$$(w)){var t=(T==null?void 0:T.clickedVisualElement)||
(T==null?void 0:T.getClickedVisualElement)&&T.getClickedVisualElement();t&&(q={clickedVisualElement:t});q=Object.assign({},{form:{element:w.target,event:w,createScreenConfig:q}},T);w.preventDefault();_.KC(E,q)}});
return Object.assign({},r,G)}};
Rfy=function(G){if(G.length){if(G.length===1)return G[0];var e={};_.g2(e,_.LO,{commands:G});return e}};
kh=function(G){return G&&G.href$!=="javascript:void(0);"};
S7p=function(G){var e,r=((e=_.a(G,_.LO))==null?void 0:e.commands)||[G];G=_.h(r);for(e=G.next();!e.done;e=G.next()){e=e.value;var Z=void 0,O=void 0;r=(O=_.a((Z=e)==null?void 0:Z.commandMetadata,_.rJ))==null?void 0:O.url;_.R("web_remove_web_navigation_endpoint_data")||(Z=void 0,r=r||((Z=_.a(e,jwp))==null?void 0:Z.url));if(r&&r!=="/service_ajax"){if(Z=_.Y$(r,a$U))return G=_.nj(Z),{navigatingCommand:e,href:G};_.FH(new _.Cr("AttributedString URL could not be sanitized",r))}}return{}};
l$$=function(G){return G.button!==void 0?G.button===0&&!(G.shiftKey||G.altKey||G.metaKey||G.ctrlKey):!(G.shiftKey||G.altKey||G.metaKey||G.ctrlKey)};
q7S=function(G,e,r,Z){r=!E5(r);var O,M,T;if((O=_.a(e,_.Mv))!=null&&O.nofollow||(M=_.a(e,_.u4))!=null&&M.nofollow||(T=_.a(e,_.G2))!=null&&T.nofollow||r)G.rel$="nofollow";var E;e=((E=_.a(e,_.G2))==null?void 0:E.target)==="TARGET_NEW_WINDOW"?"_blank":Z===void 0?"":Z;G.target$=e};
teA=function(G,e){e.clickTrackingParams&&(G.params={itct:e.clickTrackingParams});G.onpointerdown=function(r){XaS(r)};
G._data=e};
Knf=function(G){(G.loggingUrls||[]).forEach(function(e){Gr(e.baseUrl,e.attributionSrcMode)})};
XaS=function(G){var e=G.currentTarget;G=Eaf(function(){return e.href});
var r=e.params;G&&_.Yy(G,r||{},8,!0)};
_.HQ=function(G,e){(G=_.X0(G))&&_.KC(G,e)};
_.KC=function(G,e){Gn_(function(r){e?r.resolveCommand(G,e):r.resolveCommand(G)})};
dOp=function(G,e){var r=["yt-core-attributed-string__link"];e!=null&&e.noLinkColor||((e==null?0:e.isOverlay)?r.push("yt-core-attributed-string__link--overlay-call-to-action-color"):r.push("yt-core-attributed-string__link--call-to-action-color"),(e==null?0:e.linkInheritColor)&&r.push("yt-core-attributed-string--link-inherit-color"));r={className:r.join(" "),tabindex$:"0"};var Z=G.onTap||G.onLongPress;if(!Z)return r;var O=f$s(G);O&&(r["aria-label$"]=O);e=_.fC({elementsCommand:Z,elementConfig:r,skipOnClick:!(e==
null||!e.skipOnClick),forceNewState:!0});G.onLongPress&&(Z=new kgS(function(){var M=_.X0(G.onLongPress);M&&_.v_().resolve(_.$1).resolveCommand(M)}),e&&HTA(Z,e));
return e||r};
f$s=function(G){var e,r;return(e=G.onTapOptions)==null?void 0:(r=e.accessibilityInfo)==null?void 0:r.accessibilityLabel};
oaf=function(G){var e=G;G<=16777215&&(e+=parseInt("ff000000",16));return _.jF(e)};
swU=function(G){var e=G.isDarkTheme;var r=G.extension;G=G.runColor;var Z=void 0;if(r=r==null?void 0:r.colorMap){e=e?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";r=_.h(r);for(var O=r.next();!O.done;O=r.next())if(O=O.value,e===O.key){Z=O.value;break}}Z==null&&G&&(Z=G);if(Z)return oaf(Z)};
d2=function(G){var e=G.config;var r=G.image;var Z=G.imageConfig;var O=G.imageWrapperConfig;var M=G.run;var T=G.tag;var E=G.textLength;var b=G.startIndex===void 0?0:G.startIndex;G=G.length;b===void 0&&(b=0);M={run:M,startIndex:b,endIndex:G!==void 0?b+G:E,tag:T};r&&(M.image=r);Z&&(M.imageConfig=Z);O&&(M.imageWrapperConfig=O);e&&(M.config=e);return M};
I$_=function(G,e){var r=[];r.push("yt-core-attributed-string");(e==null?0:e.className)&&r.push(e==null?void 0:e.className);(e==null?0:e.ellipsisTruncate)?r.push("yt-core-attributed-string--ellipsis-truncate"):(e==null?0:e.noWrap)?r.push("yt-core-attributed-string--white-space-no-wrap"):(e==null?0:e.noPreWrap)||r.push("yt-core-attributed-string--white-space-pre-wrap");(e==null?0:e.linkInheritColor)&&r.push("yt-core-attributed-string--link-inherit-color");G.alignment&&r.push(QwU(G.alignment));G.lineBreakMode&&
r.push("yt-core-attributed-string--word-wrapping");return r.join(" ")};
paa=function(G,e){if(G.weight)return G.weight;switch(G.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}};
CU4=function(G){switch(G){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"}};
QwU=function(G){switch(G){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"}};
Qb=function(G,e,r){var Z=e;G.content&&r&&(r=G.content.indexOf("\n"),r!==-1&&(Z=Math.min(e,r)));if(!G.content||G.content.length<=Z)e=G;else if(G.attachmentRuns||G.commandRuns||G.decorationRuns||G.styleRuns||G.paragraphStyleRuns){e=og(G.content,Z);r=Z;var O=G.attachmentRuns;if(O){var M=[];O=_.h(O);for(var T=O.next();!T.done;T=O.next())T=Object.assign({},T.value),T.startIndex===void 0||T.startIndex>=r||(T.length||(T.length=0),T.length+T.startIndex>r&&(T.length=r-T.startIndex),M.push(T));r=M}else r=void 0;
M=umf(Z,G.commandRuns);O=Z;var E=G.decorationRuns;if(E){T=[];E=_.h(E);for(var b=E.next();!b.done;b=E.next()){b=b.value;var w=_.a(b.textDecorator,sY);if(w&&w.startIndex!==void 0&&!(w.startIndex>=O)){b=Object.assign({},b,{textDecorator:{highlightTextDecorator:Object.assign({},w)}});w=_.a(b.textDecorator,sY);if(!w.length||w.length+w.startIndex>O)w.length=O-w.startIndex;T.push(b)}}O=T}else O=void 0;T=umf(Z,G.styleRuns);if(E=G.paragraphStyleRuns)for(G=[],E=_.h(E),b=E.next();!b.done;b=E.next()){var q=b.value;
b=Object.assign({},q);if(!(b.startIndex===void 0||b.startIndex>=Z)){if(!b.length||b.length+b.startIndex>Z)b.length=Z-b.startIndex;w=[];var t=void 0,g=void 0;if((t=q)==null?0:(g=t.listGroup)==null?0:g.listItems)for(q=_.h(q.listGroup.listItems),t=q.next();!t.done;t=q.next())if(t=Object.assign({},t.value),!(t.startIndex===void 0||t.startIndex>=Z)){if(!t.length||t.length+t.startIndex>Z)t.length=Z-t.startIndex;w.push(t)}w.length>0&&(b.listGroup||(b.listGroup={}),b.listGroup=Object.assign({},b.listGroup,
{listItems:w}));G.push(b)}}else G=void 0;e={content:e,attachmentRuns:r,commandRuns:M,decorationRuns:O,styleRuns:T,paragraphStyleRuns:G}}else e=Object.assign({},G,{content:og(G.content,Z)});return e};
umf=function(G,e){if(e){var r=[];e=_.h(e);for(var Z=e.next();!Z.done;Z=e.next())if(Z=Object.assign({},Z.value),!(Z.startIndex===void 0||Z.startIndex>=G)){if(!Z.length||Z.length+Z.startIndex>G)Z.length=G-Z.startIndex;r.push(Z)}return r}};
og=function(G,e){var r=e,Z;if(Z=r>0)Z=G.charCodeAt(r-1),Z=Z>=55296&&Z<=56319;Z&&(r=G.charCodeAt(r),Z=r>=56320&&r<=57343);Z&&--e;return G.substring(0,e)};
Y7U=function(G,e,r){r=r===void 0?nap:r;if(G){var Z=_.v_().resolve(bC);Z||_.R("mweb_no_observer_killswitch")?p0S(G,{data:e,observer:Z,visibilityCallback:r,hideOption:mOf,showOption:c1y,layer:G.layer}):_.FH(new _.Cr("Warning: monitorVisibility called with null observer",G.tagName,e==null?void 0:e.loggingDirectives,e==null?void 0:e.trackingParams))}else _.FH(new _.Cr("Warning: monitorVisibility called with null element",e==null?void 0:e.loggingDirectives,e==null?void 0:e.trackingParams,e==null?void 0:
e.rendererContext))};
PUi=function(G,e){var r=[],Z=G.content.length,O,M=(O=_.v_().resolve(_.bq(_.Ig)))==null?void 0:O();if(G.paragraphStyleRuns){O=_.h(G.paragraphStyleRuns);for(var T=O.next();!T.done;T=O.next()){var E=r.push,b=E.apply;var w=void 0;T=T.value;if((w=T.listGroup)!=null&&w.listItems){w=[];b:switch(T.listGroup.listType){case "LIST_TYPE_BULLET":var q="ul";break b;default:q="span"}w.push(d2({run:T,textLength:Z,tag:q,config:{className:"yt-core-attributed-string__list-group"},startIndex:T.startIndex,length:T.length}));
q=_.h(T.listGroup.listItems);for(var t=q.next();!t.done;t=q.next()){t=t.value;b:switch(T.listGroup.listType){case "LIST_TYPE_BULLET":var g="li";break b;default:g="span"}w.push(d2({run:T,textLength:Z,tag:g,startIndex:t.startIndex,length:t.length}))}T=w}else T=[];b.call(E,r,_.mY(T))}}if(G.styleRuns&&(e==null||!e.noStyleRuns))for(O=_.h(G.styleRuns),E=O.next();!E.done;E=O.next()){T=E=E.value;w=M;b=e;w=swU({extension:_.a(T.styleRunExtensions,y1N),isDarkTheme:w===void 0?!1:w,runColor:T.fontColor});t=T;
q=[];w&&q.push("yt-core-attributed-string--link-inherit-color");t.italic&&q.push("yt-core-attributed-string--italicized");t.underline&&t.strikethrough?q.push("yt-core-attributed-string--underline-strikethrough",CU4(t.underline)):t.underline?q.push("yt-core-attributed-string--underlined",CU4(t.underline)):t.strikethrough&&q.push("yt-core-attributed-string--strikethrough",CU4(t.strikethrough));if(t.baselineOffset){a:switch(t.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":t="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":t="yt-core-attributed-string--baseline-offset-superscript";break a;default:t="yt-core-attributed-string--baseline-offset-unknown"}q.push(t)}q=q.join(" ");t={};if(T.weight||T.weightLabel)t.fontWeight=paa(T,b==null?void 0:b.isHeadline).toString();w&&(t.color=w);r.push(d2({run:E,textLength:Z,tag:"span",config:{className:q,style:t},startIndex:E.startIndex,length:E.length}))}if(G.decorationRuns)for(O=_.h(G.decorationRuns),E=O.next();!E.done;E=O.next())E=E.value,
b={},E.textDecorator&&(q=E.textDecorator,T=M===void 0?!1:M,t=[],w=_.a(q,sY),q=_.a(q,A1q),w?(q=t,t=q.concat,g=[],(T=swU({extension:_.a(w.highlightTextDecoratorExtensions,FnA),isDarkTheme:T,runColor:w.backgroundColor}))&&g.push("background-color: "+T+";"),w.backgroundCornerRadius!==void 0&&g.push("border-radius: "+w.backgroundCornerRadius+"px;"),w.leftPadding!==void 0&&g.push("padding-left: "+w.leftPadding+"px;"),w.rightPadding!==void 0&&g.push("padding-right: "+w.rightPadding+"px;"),w.topPadding!==
void 0&&g.push("padding-top: "+w.topPadding+"px;"),w.bottomPadding!==void 0&&g.push("padding-bottom: "+w.bottomPadding+"px;"),t=t.call(q,g)):q&&(w=t,t=w.concat,T=T?"#2ba640":"#107516",T=q.color?oaf(q.color):T,T=["padding: 2px;","border-top: solid "+T+" 2px;","border-bottom: solid "+T+" 2px;","background: linear-gradient(135deg, "+T+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+T+" 3px, rgba(0, 0, 0, 0) 3px);"],t=t.call(w,T)),T=t.join(" "),b.style$=T,T=E.textDecorator,w=[],q=_.a(T,
A1q),_.a(T,sY)?w.push("yt-core-attributed-string--highlight-text-decorator"):q&&w.push("yt-core-attributed-string--bracket-text-decorator"),T=w.join(" "),b.className=T,b.dir="auto"),T=_.a(E.textDecorator,sY),w=_.a(E.textDecorator,A1q),q=_.a(E.textDecorator,sY),t=_.a(E.textDecorator,A1q),r.push(d2({run:E,textLength:Z,tag:"span",config:b,startIndex:(T==null?void 0:T.startIndex)||(w==null?void 0:w.startIndex)||0,length:(q==null?void 0:q.length)||(t==null?void 0:t.length)||0}));if(G.commandRuns&&(e==
null||!e.noEndpoints))for(M=_.h(G.commandRuns),O=M.next();!O.done;O=M.next())O=O.value,E=dOp(O,e),r.push(d2({run:O,textLength:Z,tag:"a",config:E,startIndex:O.startIndex,length:O.length}));if(G.attachmentRuns)for(G=_.h(G.attachmentRuns),M=G.next();!M.done;M=G.next()){M=M.value;b=E=void 0;O={className:"yt-core-attributed-string--inline-block-mod"};if((b=M.element)==null?0:b.properties){b=(E=M.element)==null?void 0:E.properties;E=[];b=_.a(b,J1A);if(b==null?0:b.margin)b=b.margin,b.left&&E.push("margin-left: "+
js(b.left)+";"),b.right&&E.push("margin-right: "+js(b.right)+";"),b.top&&E.push("margin-top: "+js(b.top)+";"),b.bottom&&E.push("margin-bottom: "+js(b.bottom)+";");E=E.length!==0?E.join(" "):void 0;O.style$=E}T=void 0;E={alt:"",preserveHeight:!0,preserveWidth:!0};b=["yt-core-attributed-string__image-element"];if(M.alignment){a:switch(M.alignment){case "ALIGNMENT_BASELINE":w="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":w="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:w="yt-core-attributed-string__image-element--image-alignment-bottom"}b.push(w)}if((T=M.element)==null?0:T.properties)T=[],w=_.a(M.element.properties,J1A),(w==null?0:w.height)&&T.push("height: "+js(w.height)+";"),(w==null?0:w.width)&&T.push("width: "+js(w.width)+";"),T=T.length!==0?T.join(" "):void 0,E.style$=T,w=void 0,T=((w=_.a(M.element.properties,BrN))==null?void 0:w.label)||"",E.alt=T;E.className=b.join(" ");b=void 0;q=w=void 0;T=((q=M.element)==null?0:q.type)?(w=_.a(M.element.type,
xOi))==null?void 0:w.image:void 0;r.push(d2({run:M,textLength:Z,tag:"img",image:T,imageConfig:E,imageWrapperConfig:O,startIndex:M.startIndex,length:(b=M.length)!=null?b:0}))}if(e==null?0:e.headerRuns)for(e=_.h(e.headerRuns),G=e.next();!G.done;G=e.next())if(G=G.value,G.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(G.headerMapping)){a:{switch(G.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":M=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":M="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":M="yt-core-attributed-string--heading-3";break a}M=void 0}r.push(d2({run:G,textLength:Z,tag:"span",config:M?{className:M}:void 0,startIndex:G.startIndex,length:G.length}))}return r};
_.pC=function(G){return(G==null?void 0:G.content)!==void 0};
UOi=function(G){return _.pC(G)?G:_.l1(G)};
zfi=function(G){return G.image!==void 0&&G.imageConfig!==void 0};
Wn_=function(G,e){if(e==null?0:e.userInput)for(G=_.h(G),e=G.next();!e.done;e=G.next())if(e=e.value,e.tag!=="a"&&e.tag!=="li"){var r=void 0;(r=e).config||(r.config={});e.config.dir=e.tag==="ul"?_.v_().resolve(_.CC):"auto"}};
NrN=function(G){return function(e){var r=G.run;(r.onTap!==void 0||r.onLongPress!==void 0)&&_.a(r,Ve_)&&Y7U(e,{loggingDirectives:_.a(r,Ve_)})}};
LnU=function(G){return function(e){for(var r in G)(EH[r]||EH[WO["default"]])(e,r,G[r])}};
ZGA=function(G,e){GQS(e);var r={data:null,start:0,end:G.length,parts:[]};e=_.h(e);for(var Z=e.next();!Z.done;Z=e.next())Z=Z.value,eSp(r,Z.startIndex,Z.endIndex,Z);rwy(G,r);return r};
eSp=function(G,e,r,Z){for(var O=_.h(G.parts),M=O.next();!M.done;M=O.next()){M=M.value;if(typeof M==="string")throw Error("gh");if(M.start<=e&&r<=M.end){eSp(M,e,r,Z);return}}G.parts.push({data:Z,parts:[],start:e,end:r})};
rwy=function(G,e){for(var r=e.parts.length;r>=0;r--){var Z=e.parts[r],O=e.parts[r-1],M=r===e.parts.length?e.end:Z.start;O=r===0?e.start:O.end;M!==O&&e.parts.splice(r,0,G.slice(O,M));Z&&rwy(G,Z)}};
GQS=function(G){G.sort(function(e,r){if(e.startIndex<r.startIndex)return-1;if(r.startIndex<e.startIndex)return 1;e=e.endIndex-e.startIndex;r=r.endIndex-r.startIndex;return e>r?-1:r>e?1:0})};
_.OGF=function(G){var e=G.thumbnails;if(e){G={sources:[]};e=_.h(e);for(var r=e.next();!r.done;r=e.next()){r=r.value;var Z={};Z.url=r.url;Z.width=r.width;Z.height=r.height;G.sources.push(Z)}return G}};
Mpy=function(G,e,r,Z){if(!e)return G.length>=1?G[G.length-1]:null;if(Z)for(var O=_.h(G),M=O.next();!M.done;M=O.next()){M=M.value;var T=void 0,E=(T=M.url)==null?void 0:T.indexOf(Z);if(E!==void 0&&E>=0)return M}Z=_.h(G);for(O=Z.next();!O.done;O=Z.next())if(O=O.value,O.width&&O.height&&(r&&O.width>=e||!r&&O.height>=e))return O;for(e=G.length-1;e>=0;e--)if(r&&G[e].width||!r&&G[e].height)return G[e];return G[0]};
_.Vpy=function(G){var e;return(G=(e=G.sources)==null?void 0:e[0])?G.width/G.height:0};
_.hSq=function(G){if(G.sources){G=_.h(G.sources);for(var e=G.next();!e.done;e=G.next()){e=e.value;var r=void 0;if((r=e.clientResource)==null?0:r.imageName)return e}}};
Tuq=function(G){var e;if((e=G.clientResource)!=null&&e.imageColor)return _.jF(G.clientResource.imageColor)};
_.EKy=function(G,e,r,Z,O,M,T){if(!e||e.length===0||e[0].clientResource)return null;if(r&&e[0].url)return e[0].url;Z===void 0&&(Z=!0);if(Z){var E;G=Dbp*(O||(G==null?void 0:(E=G.getBoundingClientRect())==null?void 0:E.width)||0)}else{var b;G=Dbp*(M||(G==null?void 0:(b=G.getBoundingClientRect())==null?void 0:b.height)||0)}e=Mpy(e,G,Z,T);return(e==null?0:e.url)?e.url:(e==null?0:e.imageData)?e.imageData:null};
iGp=function(G,e,r){r=r?[r]:[];G.opacity&&r.push("opacity: "+G.opacity+";");e&&G.placeholderColor?(G=_.jF(G.placeholderColor),r.push("background-color: "+G+";")):r.push("background-color: transparent;");return r.join(" ")};
bGy=function(G,e,r,Z,O){var M=["ytCoreImageHost"];e&&M.push(e);r||M.push("ytCoreImageFillParentHeight");Z||M.push("ytCoreImageFillParentWidth");switch(G.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":M.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":M.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":M.push("ytCoreImageContentModeCenter");break;default:M.push("ytCoreImageContentModeScaleToFill")}G.flipForRtlLayout&&M.push("ytCoreImageFlipRtl");
switch(O){case "TOP_START":var T;M.push(((T=document.body)==null?void 0:T.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return M.join(" ")};
wla=function(G){var e;if(G==null?0:(e=G.clientResource)==null?0:e.imageName){var r;G=(r=G.clientResource)==null?void 0:r.imageName;a:{switch(G){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":r="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":r="yt-logos-ext:yt-logo-updated";break a}r=void 0}return r||vKS.get(G)||G}};
qvy=function(G){return _.R("mweb_wiz_skip_render")?$bA(G):SvA(G)};
$bA=function(G){return function(e){var r=zsq("wink-root");O9=e1.lastChild;WuA();jHi(r,_.v(G,e))}};
SvA=function(G){var e=e===void 0?!1:e;return function(r){if(!e||!_.R("mweb_skip_keto_to_c3_if_no_data")||r.data!==void 0){var Z=S1(!1);try{var O=r.children;_.R("mweb_render_outside_patch_killswitch")||e1?O?Dm(_.v(G,r,O)):Dm(_.v(G,r)):_.FH(new _.Cr("ketoToC3 called outside of a patch",{tagName:G.TAG_NAME}))}finally{S1(Z)}}}};
tpS=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
l0N=function(G,e){G.onViewportEntered=e;gKf.observe(G)};
RSy=function(){var G={rootMargin:"10%",threshold:.01};_.R("mweb_enable_set_io_root_to_null_safari")?G.root=null:_.R("mweb_enable_set_io_root_to_body_safari")&&(G.root=document.body);return new IntersectionObserver(function(e,r){e.filter(function(Z){return Z.intersectionRect.height>0}).forEach(function(Z){Z=Z.target;
if(!_.R("mweb_enable_only_update_image_when_connected")||Z.isConnected!==!1){var O;(O=Z.onViewportEntered)==null||O.call(Z);r.unobserve(Z)}})},G)};
j0F=function(G,e,r,Z,O){function M(){if(Z){var E=Z.loadedClass,b=Z.notifyOnUnloaded;E&&_.u1(G,E);b&&G.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function T(){var E=r(e,G);E&&G.getAttribute("src")!==E&&(_.R("mweb_enable_only_update_image_when_connected")&&G.isConnected===!1||E===G.src||(G.src=E),M())}
O=O===void 0?!0:O;G.removeAttribute("src");M();e&&(O?l0N(G,T):T())};
a0_=function(G,e,r){if(!e)return!1;e=r(e,G);r=G.getAttribute("src");return e&&e===r&&G.complete};
Xl_=function(G,e){for(var r in e)r==="className"?G.className=e[r]:(EH[r]||EH[WO.default])(G,r,e[r])};
Kb_=function(G,e,r,Z){qvy(_.nC)({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:G,callback:r,renderLazy:Z===void 0?!0:Z,hideOn404:!1})};
kQ_=function(G,e,r){r=r===void 0?!1:r;var Z=G.sources!==void 0?G:_.OGF(G);if(Z){var O=e.onload;e.onload=function(b){var w=b.target;r&&w.naturalWidth===120||_.m2(w,"ytCoreImageLoaded");e.notifyOnLoaded&&w.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));O==null||O(b)};
e.targetWidth&&e.preserveWidth&&(e.width=e.targetWidth);e.targetHeight&&e.preserveHeight&&(e.height=e.targetHeight);var M=_.hSq(Z),T=M&&wla(M);if(T)return(G=Tuq(M))&&(e.color=G),{type:"icon",iconName:T,config:Object.assign({},e,e.alt?{}:{"aria-hidden$":"true"},{"aria-label$":e.alt,role:"img"})};if(G.sources===void 0){e.alt=G.accessibility&&G.accessibility.accessibilityData&&G.accessibility.accessibilityData.label||e.alt;e.style$=iGp(G,e.shouldShowPlaceholder,e.style$);var E;e.isPreloaded=!((E=_.a(G,
f0a))==null||!E.isPreloaded)}e.contentMode&&!Z.contentMode&&(Z.contentMode=e.contentMode);e.className=bGy(Z,e.className,e.preserveHeight,e.preserveWidth,e.objectPosition);e.loadedClass="ytCoreImageLoaded";return{type:"image",image:Z,config:e}}};
_.cQ=function(){var G=_.Bw.apply(0,arguments);return _.T2(HGf,function(e){var r=G.map(function(Z){return Z==null?void 0:Z(e)});
return function(){return void r.forEach(function(Z){return void(Z==null?void 0:Z())})}})};
Yh=function(G,e){var r=e==null?void 0:e.initial;return _.dw(function(){_.FQ(!0);return r=G(r)},{equals:e==null?void 0:e.isEqual},"rSlKsc")};
dbS=function(G,e){if(G===e)return!0;if(G===void 0||e===void 0)return!1;var r,Z,O,M,T,E,b,w;return G.content===e.content&&((r=G.styleRuns)==null?void 0:r.length)===((Z=e.styleRuns)==null?void 0:Z.length)&&((O=G.commandRuns)==null?void 0:O.length)===((M=e.commandRuns)==null?void 0:M.length)&&((T=G.attachmentRuns)==null?void 0:T.length)===((E=e.attachmentRuns)==null?void 0:E.length)&&((b=G.decorationRuns)==null?void 0:b.length)===((w=e.decorationRuns)==null?void 0:w.length)};
Q0S=function(G,e){if(G){var r=UOi(G);if(r!=null&&r.content)if(_.R("attr_string_reactive"))qvy(oKU)({text:G,config:e});else{var Z=!(e==null||!e.ariaLabel)||!(r.commandRuns&&r.commandRuns.length!==0||r.paragraphStyleRuns&&r.paragraphStyleRuns.length!==0);G=Z?e==null?void 0:e.ariaLabel:null;Z=Z?"text":null;OTS("span",{className:I$_(r,e),dir$:(e==null?0:e.userInput)?"auto":void 0,"aria-label$":G,role$:Z},function(){if(r.styleRuns||r.commandRuns||r.attachmentRuns||r.decorationRuns||r.paragraphStyleRuns){var O=
PUi(r,e);Wn_(O,e);O=ZGA(r.content,O);O=_.h(O.parts);for(var M=O.next();!M.done;M=O.next())s0s(M.value)}else OtU(r.content)})}}};
s0s=function(G){typeof G==="string"?OtU(G):zfi(G.data)?OTS("span",G.data.imageWrapperConfig,function(){Kb_(G.data.image,G.data.imageConfig)}):OTS(G.data.tag,G.data.config,function(e){NrN(G.data)(e);
e=_.h(G.parts);for(var r=e.next();!r.done;r=e.next())s0s(r.value)})};
plU=function(G){return G.parts.map(I0$)};
I0$=function(G){if(typeof G==="string")return G;G=zfi(G.data)?_.v("span",{el:_.cQ(LnU(G.data.imageWrapperConfig))},_.v(_.nC,Object.assign({},{data:G.data.image},G.data.imageConfig))):_.v(G.data.tag,{el:_.cQ(NrN(G.data),LnU(G.data.config))},G.parts.map(I0$));return HX(G)};
CRi=function(G,e){return G===e?!0:G===void 0||e===void 0?!1:G.noStyleRuns===e.noStyleRuns&&G.noLinkColor===e.noLinkColor&&G.noEndpoints===e.noEndpoints&&G.headerRuns===e.headerRuns&&G.isOverlay===e.isOverlay&&G.linkInheritColor===e.linkInheritColor&&G.userInput===e.userInput&&G.isHeadline===e.isHeadline};
uPs=function(G){return function(){var e,r,Z,O,M,T,E,b,w,q,t,g,l,X;return{ariaLabel:(e=G.ariaLabel)==null?void 0:e.call(G),className:(r=G.className)==null?void 0:r.call(G),ellipsisTruncate:(Z=G.ellipsisTruncate)==null?void 0:Z.call(G),isOverlay:(O=G.isOverlay)==null?void 0:O.call(G),linkInheritColor:(M=G.linkInheritColor)==null?void 0:M.call(G),noEndpoints:(T=G.noEndpoints)==null?void 0:T.call(G),noStyleRuns:(E=G.noStyleRuns)==null?void 0:E.call(G),noLinkColor:(b=G.noLinkColor)==null?void 0:b.call(G),
noPreWrap:(w=G.noPreWrap)==null?void 0:w.call(G),noWrap:(q=G.noWrap)==null?void 0:q.call(G),skipOnClick:(t=G.skipOnClick)==null?void 0:t.call(G),userInput:(g=G.userInput)==null?void 0:g.call(G),headerRuns:(l=G.headerRuns)==null?void 0:l.call(G),isHeadline:(X=G.isHeadline)==null?void 0:X.call(G)}}};
mba=function(G,e){G=new nKU(G,e);_.yx(G);throw G;};
cwA=function(G,e,r){var Z=NM$(G);G._numRenders=0;try{var O=_.AIa(function(){return _.v(e,Object.assign({},r))})}catch(T){var M=function(E){E.args||(E.args=[]);
E.args.push("Error in web component wrapper");E.args.push(G.tagName.toLowerCase());return E};
_.AG(T instanceof Error?M(T):new nKU("Wiz rendering error",G.tagName.toLowerCase()));throw T;}finally{NM$(Z)}return O};
_.J_=function(G,e,r){function Z(q){var t={};q=_.h(q);for(var g=q.next();!g.done;g=q.next()){g=g.value;var l=void 0,X=void 0,H=void 0,I=_.OW((H=(X=(l=g).getAttribute)==null?void 0:X.call(l,"slot"))!=null?H:"children");if(l=t[I])l.push(g);else if(I in M||I==="children")t[I]=[g]}q=_.h(Object.keys(t));I=q.next();for(g={};!I.done;g={content$jscomp$59:void 0},I=q.next())I=I.value,I!=="children"&&(g.content$jscomp$59=t[I],t[I]=function(C){return function(){return C.content$jscomp$59}}(g));
return t}
r=r===void 0?{}:r;G.componentType!==uW||mba("Components must be marked reactive to be used from web component wrapper.",e);var O,M=(O=r.props)!=null?O:{};Lt_.add(e);var T=Yvf();O=function(){var q=T.apply(this,arguments)||this;q.rawProps={};q.queuingRender=!1;q.dispose=function(){};
q.isWebComponentWrapper=!0;q.isReparenting=!1;q.hasRendered=!1;return q};
_.K(O,T);O.prototype.render=function(){this.hasRendered=!0;for(var q=_.h([].concat(_.mY(this.attributes))),t=q.next();!t.done;t=q.next())t=t.value,t.name!=="slot"&&t.name!=="hidden"&&this.removeAttribute(t.name);q=Object.assign({},this.componentProps,this.slotProps);t=_.h(cwA(this,G,q));q=t.next().value;t=t.next().value;!(q[0]instanceof Element)||q.length>1?mba("Wrapped Wiz components must return a single root element.",e):(q=q[0].tagName.toLowerCase(),q!==e&&mba("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(q+" !== '"+e),e),this.dispose=t)};
O.prototype.setUpProps=function(){for(var q=this.rawProps,t=this.attributes,g=_.h(Object.keys(M)),l=g.next();!l.done;l=g.next()){l=l.value;var X=void 0;((X=this)==null?0:X[l])&&this[l]!==ywS&&q[l]===void 0&&(q[l]=this[l],(X=Object.getOwnPropertyDescriptor(this.constructor.prototype,l))&&Object.defineProperty(this,l,X))}g=_.h(t);for(l=g.next();!l.done;l=g.next()){X=l.value;l=_.OW(X.name);var H=l==="class"&&!t.getNamedItem("class-name");if(l in M||H)X=X.value===""||X.value==="true"?!0:X.value==="false"?
!1:isNaN(Number(X.value))?X.value:Number(X.value),l!=="class"||q.className?q[l]=X:q.className=X}t={};for(var I in M)M[I]!==_.yb&&M[I]!==Aw$&&(q[I]instanceof Function&&mba("Function props must be configured as STATIC, not SIGNAL.",e),l=_.h(_.XQ(q[I],void 0,"sxQxLc")),g=l.next().value,l=l.next().value,t[I]=l,q[I]=g);q=_.h([q,t]);this.componentProps=q.next().value;this.setters=q.next().value;this.slotProps=Z(this.childNodes)};
O.prototype.connectedCallback=function(){FbS===e&&Bx.set(this,!0);Bx.has(this)||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in M&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
O.prototype.disconnectedCallback=function(){if(!Bx.has(this)){var q;a:{if(_.A_)for(q=this;q;){if(_.F0.has(q)){q=!0;break a}q=q.parentElement}q=!1}if(q)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){q=_.h([].concat(_.mY(this.attributes)));for(var t=q.next();!t.done;t=q.next()){t=t.value;var g=void 0;t.name==="slot"||t.name==="hidden"&&((g=r.unsafeExternallySettableAttributes)==null?0:g.has("hidden"))||this.removeAttribute(t.name)}}this.innerText="";BGa(this)}}};
O.prototype._setPendingPropertyOrPath=function(){};
O.prototype.notifyPath=function(){};
_.iY.Object.defineProperties(O.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var E=_.h(Object.keys(M)),b=E.next(),w={};!b.done;w={prop$jscomp$109:void 0},b=E.next())w.prop$jscomp$109=b.value,b=void 0,((b=r.legacyPolymer)==null?0:b.forwardHostProps)&&yli.has(w.prop$jscomp$109)||Object.defineProperty(O.prototype,w.prop$jscomp$109,{set:function(q){return function(t){var g=this;Bx.has(this)||(this.setters?oh(function(){var l,X;return void((X=(l=g.setters)[q.prop$jscomp$109])==null?void 0:X.call(l,t))}):(this.rawProps[q.prop$jscomp$109]=t,this.queuingRender&&q.prop$jscomp$109===
"data"&&t!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(w),
get:JwU.has(w.prop$jscomp$109)?void 0:function(){return ywS}});
customElements.define(e,O)};
_.Bup=function(G,e){return(G=_.BQ(G,e))?_.nj(_.Fy(G)):null};
_.xh=function(G){if(G=_.BQ(G,Number.MAX_VALUE,void 0,"width"))return _.Fy(G)};
_.BQ=function(G,e,r,Z){Z=Z===void 0?"width":Z;if(!G||!G.length)return null;if(_.R("kevlar_tuner_should_always_use_device_pixel_ratio")){var O=window.devicePixelRatio;_.R("kevlar_tuner_should_clamp_device_pixel_ratio")?O=Math.min(O,_.qt("kevlar_tuner_clamp_device_pixel_ratio")):_.R("kevlar_tuner_should_use_thumbnail_factor")&&(O=_.qt("kevlar_tuner_thumbnail_factor"));xbp=O}else xbp||(xbp=window.devicePixelRatio);O=xbp;_.R("kevlar_tuner_should_always_use_device_pixel_ratio")?e*=O:O>1&&(e*=O);if(_.R("kevlar_tuner_min_thumbnail_quality"))return G[0].url||
null;O=G.length;if(_.R("kevlar_tuner_max_thumbnail_quality"))return G[O-1].url||null;if(r)for(var M=0;M<O;M++)if(G[M].url.indexOf(r)>=0)return G[M].url||null;for(r=0;r<O;r++)if(G[r][Z]>=e)return G[r].url||null;for(e=O-1;e>0;e--)if(G[e][Z])return G[e].url||null;return G[0].url||null};
zS4=function(){PQ.size?setTimeout(function(){UY(PRS)},0):UbS=0};
PRS=function(){var G=(0,_.vG)(),e=null,r=!1;PQ.forEach(function(O){O.loaded=!0;O.loadTime=G;O.pendingPaint=!1;var M=Wba.get(O);M&&M.resolve(G);e=O;r||!O.ftlEligible&&O.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(r=!0)});
var Z;((Z=e)==null?0:Z.markDirty)&&e.markDirty();PQ.clear();UbS=0;r&&Nuy(G)};
Lb_=function(G){PQ.add(G);G.pendingPaint=!0;UbS||(UbS=_.za(_.A0,zS4))};
GNN=function(G){G.loaded=!1;G.loadTime=Infinity;var e=Wba.get(G);e&&(e.reject(Error("mh")),Wba.delete(G));G.pendingPaint&&(PQ.delete(G),G.pendingPaint=!1)};
_.elp=function(G){var e=G.indexOf(":");return e===-1?{originalName:G}:{originalName:G.substring(0,e),datasyncId:G.substring(e+1)}};
_.Ze_=function(){return _.D(function(G){if(rg$!==void 0)return G.return(rg$);rg$=new Promise(function(e){var r;return _.D(function(Z){switch(Z.nextAddress){case 1:return _.jr(Z,2),Z.yield(_.WQ.open("test-only"),4);case 4:return Z.yield(_.WQ.delete("test-only"),5);case 5:_.rL(Z,3);break;case 2:if(r=_.k5(Z),r instanceof Error&&r.name==="SecurityError")return e(!1),Z.return();case 3:e("caches"in window),_.HL(Z)}})});
return G.return(rg$)})};
VYF=function(){return _.D(function(G){if(G.nextAddress==1)return G.yield(_.Ze_(),2);if(!G.yieldResult)return G.return(void 0);OeU||(OeU=new MYa);return G.return(OeU)})};
hli=function(G){var e,r,Z,O;return _.D(function(M){switch(M.nextAddress){case 1:return M.yield(VYF(),2);case 2:e=M.yieldResult;if(!e)throw Error("oh");return M.yield(e.open("yt-player-local-img"),3);case 3:return r=M.yieldResult,M.yield(r.match(G),4);case 4:Z=M.yieldResult;if(!Z)throw Error("ph");return M.yield(Z.blob(),5);case 5:return O=M.yieldResult,M.return(O)}})};
T3N=function(G,e){for(var r in G)if(G.hasOwnProperty(r)&&e[r])return r;return null};
DFF=function(G){return"stamp"+G.replace("-","_")+"_"};
EGy=function(G){var e=G.match(/\[\[([\w\.]+)\]\]/);if(e&&e.length>1)return e[1];_.yx(Error("rh`"+G));return null};
ieU=function(G){return G===void 0?_.PX("REUSE_COMPONENTS",!1):G||!1};
wN4=function(G,e,r){r&&(e.is?(bes.has(e)&&(G=bes.get(e),r=G.listener,delete e[G.property],r.type==="element"&&e.removeEventListener(r.eventName,r.handler),bes.delete(e)),vG$(e)):e.__proto__==HTMLElement.prototype&&(e=new _.Cr("Rendererstamper removed a non custom element","Stamper: "+G+" element: "+(e&&e.nodeName)),_.FH(e)))};
$F4=function(G,e,r,Z){var O=e.node?e.node:e;_.z1(r).parentNode===O&&(e.removeChild(r),wN4(G,r,Z));if(G=Nq.get(r))Nq.delete(r),_.A0.cancelJob(G);r.hidden=!1};
Sds=function(G,e,r,Z){if(e&&e.children&&(r=e.children[r]))if(_.PX("DEFERRED_DETACH"))for(;r&&!Nq.has(r);){var O=G,M=e,T=r,E=Z;T.hidden=!0;O=_.IQ(_.A0,$F4.bind(null,O,M,T,E),0);Nq.set(T,O);r=r.nextElementSibling}else for(;(T=e.lastElementChild)&&(e.removeChild(T),wN4(G,T,Z),T!=r););};
_.LC=function(){for(var G=_.Bw.apply(0,arguments),e=!0,r=_.h(G),Z=r.next();!Z.done;Z=r.next())if(typeof Z.value!=="string"){e=!1;break}return e?G.join(" ").trim()||void 0:function(){for(var O="",M=_.h(G),T=M.next();!T.done;T=M.next())if(T=T.value,typeof T==="function"&&(T=T()),T)if(typeof T==="string")O+=" "+T;else for(var E in T)if(T.hasOwnProperty(E)){var b=T[E];typeof b==="function"&&(b=b());b&&(O+=" "+E)}O=O.trim()||void 0;return _.FQ(O)}};
_.qdy=function(G,e){return _.e6(G.entities,"markersEngagementPanelSyncEntity",e)};
_.Gh=function(G,e){return _.e6(G.entities,"playerStateEntity",e)};
tYi=function(G,e){return _.e6(G.entities,"fantasyWinProbabilityEntity",e)};
gGs=function(G,e){return _.e6(G.entities,"fantasyTeamEntity",e)};
leS=function(G,e){return _.e6(G.entities,"fantasyPlayerEntity",e)};
Rli=function(G,e){return _.e6(G.entities,"booleanEntity",e)};
jf_=function(G,e){return _.e6(G.entities,"qrCodeEntity",e)};
aeN=function(G){return _.e6(G.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
Kw_=function(G){var e;return(e=XNi[G])!=null?e:"EVENT_SPAN_TYPE_UNKNOWN"};
feS=function(G){var e=G.nodeName;if(G.id)return e+="#"+G.id;if(G.classList)for(var r=_.h(G.classList),Z=r.next();!Z.done;Z=r.next())e+="."+Z.value;G.parentElement&&(e=feS(G.parentElement)+" > "+e);return e};
kNp=function(G){return function(e){var r=Kw_(e.type);return r==="EVENT_SPAN_TYPE_UNKNOWN"?G(e):k$S("event",{type:r,nodepath:e.target instanceof Element?feS(e.target):void 0},function(){return G(e)})}};
_.ev=function(G){G&&aZF("event")&&(G=kNp(G));return q2y(function(e){var r,Z=(r=G)==null?void 0:r(e);return typeof Z==="boolean"?Z:!0})};
rp=function(G){return function(){return G()?G():void 0}};
sf4=function(G){var e=_.hT("animated-rolling-character"),r=IzS(),Z=mH(G.character)||mH(G.previousCharacter),O=_.h(pe$()),M=O.next().value,T=O.next().value;_.yY(function(){if(window.ResizeObserver&&_.R("web_fix_rolling_numbers_zoom_safari")){var E=new _.Zp(function(){var w,q,t=Math.round(((q=(w=e.value.querySelector("div"))==null?void 0:w.getBoundingClientRect().height)!=null?q:0)*100)/100;t&&T(t)},500),b=new ResizeObserver(function(){E.fire()});
b.observe(e.value);return function(){b.disconnect();E.dispose()}}});
Xii(function(){var E=_.R("web_fix_rolling_numbers_zoom_safari")?M:G.marginMultiplier;if(E){var b;(b=r.value)==null||b.cancel();Z?(b=G.previousCharacter?Number(G.previousCharacter)+10:G.rollUp?0:30,G.shouldAnimate||(b-=He$(G,b))):(b=G.rollUp?0:2,G.shouldAnimate||(b-=G.rollUp?-1:1));e.value.style.marginTop="-"+b*E+"px";G.shouldAnimate?r.value=dFp(e.value,G,b,Z,E):e.value.style.display=G.character?"":"none"}});
return _.v("animated-rolling-character",{el:e,class:"animatedRollingCharacterHost"},SuF(Z,function(){for(var E=[],b=1;b<30;b++)E.push(_.v("div",null,b%10));return _.v(_.$Z,null,_.v("div",null,"\u00a0"),E,_.v("div",null,"\u00a0"))},function(){return oG_(G.character)}))};
oG_=function(G){return _.v(_.$Z,null,_.v("div",null,"\u00a0"),_.v(_.$Z,null,SuF(!G||_.iF(G),function(){return _.v("div",null,"\u00a0")},function(){return _.v("div",null,G)})),_.v("div",null,"\u00a0"))};
dFp=function(G,e,r,Z,O){r=new Animation(new KeyframeEffect(G,[{transform:"translateY(0px)"},{transform:"translateY("+(Z?He$(e,r):e.rollUp?-1:1)*O+"px)"}],Qfq),document.timeline);e.character?(G.style.display="",r.onfinish=null):r.onfinish=function(){G.style.display="none"};
r.play();return r};
He$=function(G,e){var r=Number(G.character)+10;if(G.previousCharacter)if(G.character){var Z=Number(G.character),O=Number(G.previousCharacter);G=G.rollUp?O<Z?r:r+10:O<Z?r-10:r}else G=G.rollUp?30:0;else G=G.character==="0"?r:G.rollUp?r-10:r+10;return e-G};
Ie_=function(G){return function(e){var r={},Z;for(Z in e){var O=void 0,M=void 0;((O=void 0)==null?0:(M=O.callbacks)==null?0:M[Z])||(r[Z]=e[Z])}return _.v(yIs,null,function(){for(var T in r)e[T]=_.FQ(r[T]);e.disableReactiveLogging=!0;return _.v(G,Object.assign({},e))})}};
ucy=function(G,e,r,Z,O,M,T){r=new Animation(new KeyframeEffect(G,[{transform:"translateY(0px)"},{transform:"translateY("+(M?pNf(e,r,Z,O):Z?-1:1)*T+"px)"}],CvF),document.timeline);e?(G.style.display="",r.onfinish=null):r.onfinish=function(){G.style.display="none"};
r.play();return r};
pNf=function(G,e,r,Z){var O=Number(G)+10;e?G?(G=Number(G),e=Number(e),r=r?e<G?O:O+10:e<G?O-10:O):r=r?30:0:r=G==="0"?O:r?O-10:O+10;return Z-r};
mFs=function(G){var e=IzS(),r=IzS();HOs(function(){e.value=G.numberText;r.value=G.numberValue},[G.numberText]);
var Z=G.fontSizeMultiplier?G.heightPx*G.fontSizeMultiplier:G.heightPx,O=Qp$(function(){if(G.numberText){var T=G.numberText;var E=G.forceRollUp||!r.value||!G.numberValue||r.value<G.numberValue;var b=!!G.shouldAnimate,w=e.value,q=[],t=0,g=0,l=(w?w.replace(/\D/g,"").length:0)-(T?T.replace(/\D/g,"").length:0);w=w?w.split(/(\d)/).filter(Boolean):[];for(T=T.split(/(\d)/).filter(Boolean);l<0;){var X=T[g];q.push({character:X,rollUp:E,marginMultiplier:Z,shouldAnimate:b});g++;mH(X)&&l++}for(;t<l;)X=w[t],q.push({previousCharacter:X,
rollUp:E,marginMultiplier:Z,shouldAnimate:b}),t++,mH(X)||l++;for(;g<T.length;)l=T[g],X=w[t],mH(l)===mH(X)?(g++,t++):mH(l)?(t++,l=void 0):mH(X)&&(g++,X=void 0),q.push({character:l,previousCharacter:X,rollUp:E,marginMultiplier:Z,shouldAnimate:b});E=q}else E=[];return E},[G.numberText]),M=G.numberText?["height: "+Z+"px;",
"line-height: "+G.heightPx+"px;"].join(" "):"";return _.v("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:M,dir:"ltr","aria-hidden":"true"},O.map(function(T){return _.v(nGS,Object.assign({},T))}))};
cgN=function(G){switch(G){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}};
Yd_=function(G,e){if(!G&&!e)return"medium";G=Math.max(G||0,e||0);return G>=256?"large":G>=96?"medium":"small"};
yg_=function(G){switch(G){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
Agy=function(G){return new KeyframeEffect(G,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
Fw$=function(G){return new KeyframeEffect(G,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.Ob=function(G){if(G.length===0)return RsF(G,"D");var e=_.h(RsF({source:function(){return G()},
computation:function(O,M){return(M==null?0:M.value)?G(M.value):O}},"E")),r=e.next().value,Z=e.next().value;
e=e.next().value;return[r,Z,e]};
_.Mk=function(G){return function(){var e="",r;for(r in G){for(var Z=G[r];typeof Z==="function";)Z=Z();Z!==void 0&&Z!==null&&(e+="; "+r+": "+Z)}return e.length>0?_.FQ(e.slice(2)):_.FQ()}};
Jg_=function(G){switch(G){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"}};
B3F=function(G,e){if(e)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(G)switch(G){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"}};
Wwq=function(G,e,r,Z,O,M,T){var E=xFF(G),b=E.disabled,w=E.iconPosition,q=E.style,t=E.focused,g=function(){return!!H()&&w()==="icon-only"},l=function(){return!!H()&&w()==="icon-only-40"},X=function(){return!!H()&&w()==="icon-with-label"},H=function(){return!!e||!(Z==null||!Z())};
return{type:function(){return q()==="call-to-action-inverse"?"text":q()==="overlay-dark"&&G().type!=="filled"&&G().type!=="tonal"?"tonal":G().type},
shouldFocus:function(){return(t()||(M==null?void 0:M()))&&!b()},
hasIconLeading:function(){return!!H()&&w()==="leading"},
hasIconTrailing:function(){return!!H()&&w()==="trailing"},
hasIconLeadingTrailing:function(){return!!H()&&!!(r||O!=null&&O())&&w()==="leading-trailing"},
hasIconOnly:g,hasIconOnly40:l,hasIconWithLabel:X,iconButton:function(){return g()||l()||X()},
visiblyDisabled:function(){return(b()?"disabled":G().state)==="disabled"||b()},
overrideSmallSizeIcon:function(){return!G().ignoreIconSizeOverride&&Pva(G(),H())},
iconToRender:e?e:function(){return _.v(_.V$,{icon:Z,gradientColor:function(){var I;return(I=G().customColors)==null?void 0:I.iconGradientColor},
size:function(){return UFN(G(),!0,G().ignoreIconSizeOverride)},
active:function(){return G().toggled},
iconFilter:function(){return zls(G())},
animateIcon:T})},
secondaryIconToRender:r?r:function(){return _.v(_.V$,{icon:O,size:function(){return UFN(G(),!0,G().ignoreIconSizeOverride)},
active:function(){return G().toggled},
iconFilter:function(){return zls(G())}})}}};
xFF=function(G){return{size:function(){return G().size},
style:function(){return G().style},
focused:function(){return G().focused},
disabled:function(){return G().disabled},
onTap:function(e){var r,Z;return(Z=(r=G()).onTap)==null?void 0:Z.call(r,e)},
alignByText:function(){return G().alignByText},
aTagConfig:function(){return G().aTagConfig},
customColors:function(){return G().customColors},
segmentedPosition:function(){return G().segmentedPosition},
toggled:function(){return G().toggled},
toggleable:function(){return G().toggleable},
accessibilityLabel:function(){return G().accessibilityLabel},
onToggle:function(e){var r,Z;return(Z=(r=G()).onToggle)==null?void 0:Z.call(r,e)},
iconPosition:function(){return G().iconPosition},
oneOffCustomTextWrap:function(){return G().oneOffCustomTextWrap},
disableTextEllipsis:function(){return G().disableTextEllipsis},
disableBackdropFilter:function(){return G().disableBackdropFilter},
tooltipText:function(){return G().tooltipText},
tooltipShape:function(){return G().tooltipShape},
ariaHidden:function(){return G().ariaHidden},
tabIndex:function(){return G().tabIndex},
buttonText:function(){return G().buttonText},
formattedButtonText:function(){return G().formattedButtonText},
animatedTextProps:function(){return G().animatedTextProps},
onClickRateLimitMs:function(){return G().onClickRateLimitMs}}};
Pva=function(G,e){e=(G.iconPosition==="icon-only"||G.iconPosition==="icon-only-40"||G.iconPosition==="icon-with-label")&&e;return!G.segmentedPosition&&e&&G.size==="S"};
UFN=function(G,e,r){switch(G.size){case "XS":return 16;case "S":return!r&&Pva(G,e)?24:16;default:return 24}};
N3y=function(G){switch(G){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"}};
LwA=function(G){switch(G){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"}};
GOS=function(G){switch(G){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"}};
zls=function(G){if(G.style==="overlay-dark"&&G.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
he=function(G){return G&&G.endsWith("px")?Number(G.slice(0,-2)):0};
Z8q=function(G,e){var r=_.h(_.Ob(function(){var O,M;return(M=G())!=null?M:e==null?void 0:(O=e())==null?void 0:O.text})),Z=r.next().value;
return[function(O){var M=_.dw(function(){var b;return Object.assign({},{location:"bottom",offset:16,delay:1},e==null?void 0:e(),{text:(b=Z())!=null?b:""})},void 0,"IJU38d");
_.Y8(function(){var b=M();_.ah(function(){_.A0.addJob(function(){Th.notify(O,b)},4)})},"WlsgZc");
var T=function(){e4_(O,M())},E=function(){ruU()};
O.addEventListener("mouseenter",T);O.addEventListener("focus",T);O.addEventListener("mouseleave",E);O.addEventListener("blur",E);O.addEventListener("tap",E);_.yD(function(){O.removeEventListener("mouseenter",T);O.removeEventListener("mouseleave",E);O.removeEventListener("focus",T);O.removeEventListener("blur",E);O.removeEventListener("tap",E);ruU()})},
r.next().value]};
M9S=function(G,e){if(!hB){var r;XJi(function(){return r=cIp(G,e)});
return r}G.parent=O8a();return cIp(G,e)};
O8a=function(){var G=_.D2(hB||void 0,uKi);return _.lG_(G)?void 0:G};
Dp=function(G,e){_.KC(G,Object.assign({},e,{forceClickLogging:!0}))};
V9i=function(G){switch(G){case "TOOLTIP_VIEW_MODEL_PLACEMENT_BOTTOM":return"bottom";case "TOOLTIP_VIEW_MODEL_PLACEMENT_TOP":return"top";case "TOOLTIP_VIEW_MODEL_PLACEMENT_LEFT":return"left";case "TOOLTIP_VIEW_MODEL_PLACEMENT_RIGHT":return"right";default:return"bottom"}};
Tti=function(G,e){var r=_.X0(G==null?void 0:G.onTap),Z={};r&&(Z.getClickedVisualElement=function(){var O;return h4p(G,r,e==null?void 0:(O=e.value)==null?void 0:O.visualElement)});
Z=_.fC({elementsCommand:G.onTap,forceNewState:!0,additionalCommandArgs:Z});return kh(Z)?Z:void 0};
DT4=function(G,e,r,Z){Dp(G,Object.assign({},{form:{element:e,event:r}},Z))};
EFS=function(G,e,r,Z,O){var M=void 0;return function(T){var E=_.X0(r?G==null?void 0:G.onDisabledTap:G==null?void 0:G.onTap);if(E){var b;M=(b=M)!=null?b:e==null?void 0:e.value;if(E)if(_.R("web_button_vm_click_client_ve_killswitch"))DT4(E,M,T);else{var w;b=h4p(G,E,(w=M)==null?void 0:w.visualElement);if(O){DT4(E,O,T,{clickedVisualElement:b,form:{element:O}});return}DT4(E,M,T,{clickedVisualElement:b})}}Z&&Z(T)}};
h4p=function(G,e,r){e=e==null?void 0:e.clickTrackingParams;var Z,O;G=G==null?void 0:(Z=G.loggingDirectives)==null?void 0:(O=Z.clientVeSpec)==null?void 0:O.uiType;if(r&&G&&!e)return r};
i8$=function(G){switch(G){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"}};
b8S=function(G){switch(G){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"}};
vFa=function(G){switch(G){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"}};
w$S=function(G){switch(G){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"}};
_.Eb=function(G){return _.dw(function(){eu4()();return OUN(G)},{debugName:"d8B62c"},"DEXkhd")};
$TS=function(G,e){return _.e6(G.entities,"engagementToolbarStateEntityPayload",e)};
qr_=function(G){(G=_.b1(G))&&_.SrS(G)};
_.SrS=function(G){var e=_.l4();e&&_.p_(e,G)};
t9N=function(G,e,r){_.Pi(G,"yt-open-popup-action",[e,r||G])};
gFq=function(G,e){var r=_.Ft(G,"endpoint"),Z=_.Ft(G,"action");return(r=Z?Z:r)&&e&&(r=e.navigationEndpointPopupMap[r])&&(G=_.Lz(r,G),(r=_.Ft(G,"renderer"))&&e.supportedPopups.hasOwnProperty(r))?{openPopupAction:{popupType:e.popupTypeMap[r],popup:G}}:null};
l14=function(G,e,r,Z){if(Z){var O;r=r==null?void 0:(O=r.data)==null?void 0:O.contents;(O=r instanceof Array&&r.length?r[0]:r)&&(r=_.Ft(O,"renderer"))&&Z.supportedPopups.hasOwnProperty(r)&&(e.stopPropagation(),t9N(G,{openPopupAction:{popupType:Z.popupTypeMap[r],popup:O}}))}};
a1$=function(G,e,r,Z){Z=Z===void 0?!1:Z;var O=R4U(e);if(O){O.href&&fa(O.href);var M=e.button;M=M!==void 0?M===0&&!iZ(e):!iZ(e);O.data&&M&&jKq(G,O,e,r,Z)}};
jKq=function(G,e,r,Z,O){O=O===void 0?!1:O;var M=_.qt("pbj_navigate_limit",-1)===0;X$4(e);_.v_().resolve(_.bq(LL));var T=e.data;if(Object.keys(T).length!==0)if(!_.R("unplugged_web_disable_actions_for_cec_endpoint")&&_.a(T,_.LO))_.R("endpoint_behavior_command_executor_fix_killswitch")||(r.preventDefault(),r.stopPropagation()),_.Wi(G,[T],G);else if(Z=gFq(T,Z))T.loggingUrls&&T.loggingUrls.forEach(function(b){b.baseUrl&&_.LF(b.baseUrl)}),r.preventDefault(),r.stopPropagation(),t9N(G,Z,e);
else{var E=KsS(0,e.data,r);if(G=e.getForm)G=G(),E.tempData=E.tempData||{},E.tempData=Object.assign({},E.tempData,G);G=_.na(r);if(Z=G.find(function(b){return!!b.visualElement}))E.createScreenConfig=E.createScreenConfig||{},E.createScreenConfig.clickedVisualElement=Z.visualElement;
if(!M)if(r.preventDefault(),r.stopPropagation(),_.a(T,_.f1S)&&!O&&_.Ga.instance)_.Ga.instance.resolveCommand(T,E);else if(_.R("kevlar_command_handler_formatted_string")&&!O&&_.Ga.instance&&kOU(T))O=G.find(function(b){return!!b.is})||r.target,r={form:Object.assign({},E,{event:r,
element:O,originatingNode:e})},_.Ga.instance.resolveCommand(T,r);else{T=_.na(r);r=[];for(O=0;O<T.length;O++)(M=T[O].is)&&r.push(M);G_s({parents:r.join(","),text:e.innerText},function(){_.xy(e,"yt-navigate",E)})}}};
H8s=function(G){if(G=R4U(G))X$4(G),Ows(G.href)};
R4U=function(G){G=_.na(G);for(var e,r=0;r<G.length;r++)if(e=G[r],e.tagName==="A"&&e.classList.contains("yt-simple-endpoint")){if(!e.data)break;return e}return null};
iZ=function(G){return G.shiftKey||G.altKey||G.metaKey||G.ctrlKey};
dTF=function(G,e){var r={itct:e.clickTrackingParams};_.R("kevlar_client_side_screens")&&(!_.a(e,_.DC)||_.R("kevlar_exclude_endpoint_killswitch"))&&(r.endpoint=JSON.stringify(e));_.R("enable_unknown_lact_fix_on_html5")&&_.v_().resolve(_.bq(_.bZ))&&(r.lact=_.bj());eqq(r);_.Yy(G,r)};
X$4=function(G){G.href&&Object.keys(G.data).length!==0&&dTF(G.href,G.data)};
kOU=function(G){for(var e=_.h(oFA),r=e.next();!r.done;r=e.next())if(G[r.value])return!1;return!0};
sKi=function(){if(v5)return v5;if(window.lottie)return v5=Promise.resolve(window.lottie);var G=_.FF(_.xZ("LOTTIE_URL"));return G?v5=new Promise(function(e,r){var Z=document.createElement("script");Z.addEventListener("load",function(){e(lottie)});
Z.addEventListener("error",function(O){var M="Lottie library failed to load.";O?O.message&&(M+=" Original description: "+O.message,_.JG(O,M)):O=Error(M);_.FH(O);r(O)});
Z.setAttribute("async","");_.h6(Z,G);document.head.appendChild(Z)}):Promise.reject(Error("sh"))};
QKF=function(){return v5?v5:sKi()};
I1i=function(G){if(G)switch(G){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.R("kevlar_use_wil_icons"))return G=(G=aeN(_.Yt().getState()))&&G.animationLightUrl&&G.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:G.animationLightUrl,pathDarkTheme:G.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,G?G:wp.get("LIKE");break;case "LIKE_DELHI_PLAYER":return wp.get("LIKE_DELHI_PLAYER")}};
p$$=function(G){var e=I1i(G);if(e)return e;switch(G){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return wp.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return wp.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return wp.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return wp.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return wp.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return wp.get("NOTIFICATION_BELL")}};
CVA=function(G,e){if(!G.closest)return!1;e=!!I1i(e);return _.xZ("ID_TOKEN")&&e?!!G.closest("segmented-like-dislike-button-view-model")||!!G.closest("yt-player-quick-action-buttons"):!1};
nFS=function(G,e){if(!G||udA)e=!1;else{var r;if(!(r=CVA(G,e)))if(G.closest)if(r=!_.xZ("ID_TOKEN"),G=G.closest("ytd-subscription-notification-toggle-button-renderer-next"),r||!G)r=!1;else{var Z;r=((Z=G.data)==null?void 0:Z.targetId)==="notification-bell"&&e!=="EXPAND_MORE"}else r=!1;e=r}return e};
mTy=function(G){var e,r;return _.D(function(Z){switch(Z.nextAddress){case 1:return _.jr(Z,2),Z.yield(fetch(G),4);case 4:return e=Z.yieldResult,Z.yield(e.json(),5);case 5:return Z.return(Z.yieldResult);case 2:r=_.k5(Z),_.FH(r),_.HL(Z)}})};
cuF=function(G,e){var r,Z,O;return _.D(function(M){if(M.nextAddress==1)return(r=e?G.pathDarkTheme:G.path)?M.yield(Promise.all([mTy(r),sKi()]),2):M.return();Z=M.yieldResult;O=Z[0];$O.set(r,O);_.HL(M)})};
yui=function(G,e,r,Z){function O(T,E){if(e.value===E&&!e.cancelled&&G!=null&&G.value){for(;G.value.firstChild;)G.value.removeChild(G.value.firstChild);G.value.classList.add("ytSpecIconShapeHost");T(G.value,Z)}}
var M=_.Yrs(_.v_().resolve(_.LR),r);typeof M==="function"?(e.value=null,O(M,null)):(e.value=M,M.then(function(T){O(T,M)}))};
FsN=function(G,e){var r=document.createElement("div"),Z=_.cX(r,function(){return _.v(_.S,{cond:G,then:function(O){return _.v(AuS,{data:O,options:e})}})},"ba");
return[r,Z]};
_.Sv=function(G,e){if(e){var r={};JuF.forEach(function(Z){Z=BtU(e,Z,"--yt-lightsource-");Object.assign(r,Z)});
xTs.forEach(function(Z){Z=BtU(e,Z,"--yt-basic-");Object.assign(r,Z)});
_.eD(G,r)}};
BtU=function(G,e,r){var Z={};Z[r+_.Zz(e)]=G&&G[e]?_.jF(G[e]):"";return Z};
_.te=function(G,e,r){qk[G]||(qk[G]={});qk[G][e]=r};
_.gp=function(G){qk[G]||(qk[G]={});return qk[G]};
PV_=function(G){if(!G)return{};var e=G.foregroundTitleColor,r=G.backgroundColor;G=G.borderColor;var Z="text";G?Z="outline":r&&(Z="filled");return{type:Z,customColors:{color:e?_.jF(e):void 0,backgroundColor:r?_.jF(r):void 0,borderColor:G?_.jF(G):void 0}}};
LsN=function(G){var e=G.renderer;var r=G.element;var Z=G.commandController;var O=G.onTapCallback;var M=G.skipCommandHandling;var T=G.overrides;var E=G.forceIcon;var b=G.forceModernIconButton;var w=G.forceDisabled;var q=G.isSubscribe===void 0?!1:G.isSubscribe;var t=G.isPressed===void 0?!1:G.isPressed;var g=G.useButtonSize===void 0?!1:G.useButtonSize;G=UT_(e);q&&(G.style="mono",G.type="filled");E=!e.icon||!E&&e.text?e.icon?e.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:b?"icon-only":"icon-only-40";E==="icon-only-40"&&(G.type="text");var l;b=Object;q=b.assign;g=z4_(e,g);t=!!e.isSelected||!_.R("web_propagate_is_pressed_killswitch")&&!!t;var X=e.isSelected!==void 0;w=w===void 0?e.isDisabled:w;var H=e.text?_.l1(e.text):void 0;var I,C,u,P=((I=e.accessibilityData)==null?void 0:(C=I.accessibilityData)==null?void 0:C.label)||((u=e.accessibility)==null?void 0:u.label);I=P?P:_.mG(e.text);r=WsS(e,r,Z,O,M);Z=Nta(e);Z!=null&&Z.length?(Z=_.fC({innertubeCommand:Rfy(Z),
forceNewState:!0}),Z=kh(Z)?Z:void 0):Z=void 0;return q.call(b,{},G,g,{iconPosition:E},T,{focused:!1,toggled:t,toggleable:X,disabled:w,formattedButtonText:H,accessibilityLabel:I,onTap:r,aTagConfig:Z},PV_((l=e.colorData)==null?void 0:l.basicColorPaletteData),{oneOffCustomTextWrap:e.oneOffCustomTextWrap})};
WsS=function(G,e,r,Z,O){return function(M){var T=Nta(G);Z(T,M);if(!O){T=_.h(T);for(var E=T.next();!E.done;E=T.next())Dp(E.value,{form:{element:e,event:M},commandController:r})}}};
Nta=function(G){var e=[];G.command&&e.push(G.command);G.serviceEndpoint&&e.push(G.serviceEndpoint);G.navigationEndpoint&&e.push(G.navigationEndpoint);return e};
z4_=function(G,e){if(e)switch(G.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(G.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
UT_=function(G){switch(G.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"}}};
Glf=function(G,e){return typeof G!=="object"||G===null?!1:Object.keys(e).every(function(r){return r in G})};
lZ=function(G){return Object.fromEntries(Object.keys(G).map(function(e){return[e,e]}))};
eW_=function(G,e,r){return e2F(r,function(Z,O){return function(M){var T=_.Bw.apply(1,arguments);return Glf(M,G)?O.apply(null,[M[e]].concat(_.mY(T))):O.apply(null,[M].concat(_.mY(T)))}})};
RV=function(G){return function(e,r){return eW_(G,e,r)}};
rz_=function(G,e){var r;return(r=_.e6(G,"playlistLoopStateEntity",e))!=null?r:void 0};
ZqS=function(G,e){var r;return(r=_.e6(G,"toggleMenuServiceItemEntity",e))!=null?r:void 0};
_.jv=function(G){return G!=null&&G.watch?G.watch.isTheaterMode:!1};
_.aV=function(G){return G!=null&&G.watch?G.watch.isWatchFullscreen:!1};
_.Xf=function(G){if(_.OqF(G))return!0;G=_.MlN(G);return _.R("web_watch_enable_single_column_grid_view")?G:!1};
_.OqF=function(G){return G.watch.isSwatcherooActive};
_.MlN=function(G){return G.watch.isWatchNarrowWidth};
_.Vl$=function(G){return G.watch.openEngagementPanels};
K1=function(G,e){return _.e6(G.entities,"likeStatusEntity",e)};
hWS=function(G,e){return _.e6(G.entities,"likeCountEntity",e)};
_.TCs=function(G,e){return _.e6(G.entities,"stringEntity",e)};
DdS=function(G,e){return _.e6(G.entities,"dataFreshnessEntity",e)};
EoU=function(G,e){if(!G)return!1;var r,Z=(r=_.a(G,_.eq))==null?void 0:r.signal;if(Z&&e.signalEndpointMap)return!!e.signalEndpointMap[Z];var O;if((r=(O=_.a(G,_.f1))==null?void 0:O.request)&&e.continuationEndpointMap)return!!e.continuationEndpointMap[r];for(var M in G)if(e.commandEndpointMap[M])return!0;return!1};
iqf=function(G,e){if(e.streamingEndpointMap)for(var r in G)if(e.streamingEndpointMap[r]&&(G=e.streamingEndpointMap[r]))return G()};
bq$=function(G,e){var r,Z=(r=_.a(G,_.eq))==null?void 0:r.signal;if(Z&&e.signalEndpointMap&&(r=e.signalEndpointMap[Z]))return r();var O;if((r=(O=_.a(G,_.f1))==null?void 0:O.request)&&e.continuationEndpointMap&&(O=e.continuationEndpointMap[r]))return O();for(var M in G)if(e.commandEndpointMap[M]&&(G=e.commandEndpointMap[M]))return G()};
vop=function(G){var e={"Content-Type":"application/json"};_.xZ("EOM_VISITOR_DATA")?e["X-Goog-EOM-Visitor-Id"]=_.xZ("EOM_VISITOR_DATA"):_.xZ("VISITOR_DATA")&&(e["X-Goog-Visitor-Id"]=_.xZ("VISITOR_DATA"));e["X-Youtube-Bootstrap-Logged-In"]=_.xZ("LOGGED_IN",!1);_.xZ("DEBUG_SETTINGS_METADATA")&&(e["X-Debug-Settings-Metadata"]=_.xZ("DEBUG_SETTINGS_METADATA"));if(G!=="cors"){var r=_.xZ("INNERTUBE_CONTEXT_CLIENT_NAME");r&&(e["X-Youtube-Client-Name"]=r);(r=_.xZ("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(e["X-Youtube-Client-Version"]=
r);(r=_.xZ("CHROME_CONNECTED_HEADER"))&&(e["X-Youtube-Chrome-Connected"]=r);(r=_.xZ("DOMAIN_ADMIN_STATE"))&&(e["X-Youtube-Domain-Admin-State"]=r)}_.PX("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(G=_.xZ("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(e["X-YouTube-Lava-Device-Context"]=G):G!=="cors"&&_.PX("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(G=_.xZ("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(e["X-YouTube-Lava-Device-Context"]=G);return e};
wqF=function(G,e){e.watchNextResponse||e.reelItemWatchResponse?e.watchNextResponse?G.content=e.watchNextResponse:G.content=e.reelItemWatchResponse:e.playerResponse?G.player=e.playerResponse:e.reelWatchSequenceResponse&&(G.reelSequence=e.reelWatchSequenceResponse)};
kO=function(G){return function(){return new G}};
H5=function(G){var e=_.v_();return function(){return e.resolve(G)}};
_.dp=function(G){if(!G)return null;for(var e=[],r=0;r<G.textSegments.length;r++){var Z=G.textSegments[r];Z.text?e.push(Z):Z.emojiId&&e.push({emoji_id:Z.emojiId})}return{text_segments:e}};
goN=function(G,e,r,Z,O,M,T){M=M===void 0?[]:M;var E=new _.oV;E.endpoint=r;if(!r)return _.AG(new _.Cr("handle undefined endpoint",e.tagName)),E;var b=Do4(r);b.length&&(_.Wi(G,b,e,Z),E.actions=b);r.loggingUrls&&r.loggingUrls.forEach(function(q){q.baseUrl&&Gr(q.baseUrl,q.attributionSrcMode)});
b=!_.R("web_skip_impression_click_killswitch")&&Z&&Z.impression;if(r.clickTrackingParams&&!$d4(r)&&!Scf(e)&&!b&&(b=_.h_(),!_.sb(b,e))){var w=e.getScreenLayer&&e.getScreenLayer();w?b.clickCommand(r,null,w):b.clickCommand(r,null)}b=!1;for(w=0;w<M.length;w++)if((0,M[w])(e,r,Z)){b=!0;break}!b&&qc$(r)&&(E.ajaxPromise=tlq(G,e,r,Z,O,T));return E};
Scf=function(G){var e;return(G=(e=G.data)==null?void 0:e.navigationEndpoint)&&!!G.clickTrackingParams};
$d4=function(G){var e=_.a(G,_.eq);if(e&&(e=e.signal)&&lKs.indexOf(e)>=0)return!0;for(var r in G)if(RWs.indexOf(r)>=0)return!0;return!1};
qc$=function(G){var e;if(((e=_.a(G,_.eq))==null?void 0:e.signal)==="CLIENT_SIGNAL")return!1;for(var r in G)if(jJA.indexOf(r)>=0)return!1;G=Object.keys(G);return G.length===1&&G[0]==="loggingUrls"?!1:!0};
sJN=function(G,e,r,Z,O,M,T){var E=_.Q$.instance;if(E&&_.IV(E,Z))var b=_.p1(E,Z,O).then(function(q){return(q==null?0:q.data)?q:{data:q}});
else b=G.requestDataForServiceEndpoint(Z,O),_.a(Z,aK$)||_.a(Z,Xq4)||_.a(Z,_.KUy)||_.a(Z,fKU)||_.FH(new _.Cr("No RequestBuilder for endpoint",Z));var w=_.C1();w.promise.thenCatch(function(){var q=_.Ft(Z,"action")||_.Ft(Z,"command")||_.Ft(Z,"endpoint");q&&(q=Z[q],q.hasOwnProperty("onFailureAction")?_.Wi(e,[q.onFailureAction],r):q.hasOwnProperty("onFailureCommand")&&_.Wi(e,q.onFailureCommand,r));b.cancel("Resolver promise rejected")});
b.then(function(q){if(q){var t=q.error;if(t){if(M&&M.onServerError)M.onServerError(Z,q);w.reject(new _.Cr("Response error",Z,t))}else if(q=q.data)if(t=q.error){if(M&&M.onServerError)M.onServerError(Z,q);w.reject(new _.Cr("Returned error",Z,t))}else{klS(e,r,q,Z);HqN(q);if(t=T8N(q))for(var g=_.h(t),l=g.next();!l.done;l=g.next()){l=l.value;var X=_.v_().resolve(_.bq(ddS))||ooF;if(!_.Q$.instance||!X.some(function(I){return!!_.a(Z,I)})||_.R("kevlar_response_processor_allowlist_killswitch")){var H=X=void 0;
((H=_.a((X=l)==null?void 0:X.commandMetadata,_.rJ))==null?0:H.sendPost)?_.zw(e,[l]):_.Wi(e,[l],r)}}(g=_.a(q==null?void 0:q.frameworkUpdates,uZ))&&T&&T(g);if(M&&M.onSuccess)M.onSuccess(Z,q);w.resolve(new _.n1(q,t))}}else w.reject(new _.Cr("Invalid service endpoint provided",Z))},function(q){w.reject(q)});
return w.promise};
HqN=function(G){var e;(G=(e=_.a(G==null?void 0:G.onResponseReceivedCommand,_.QJ_))==null?void 0:e.continuationItems)&&(G==null?void 0:G.length)===1&&_.a(G[0],IK4)&&_.jq("so_r",void 0,"search_overview_answer")};
tlq=function(G,e,r,Z,O,M){var T;return(T=e.getNetworkManager&&e.getNetworkManager()?e.getNetworkManager():_.v_().resolve(_.bq(_.bf)))?sJN(T,G,e,r,Z,O,M):_.Ss("No network manager.")};
klS=function(G,e,r,Z){if(r=r.trackingParams||r.loggingDirectives&&r.loggingDirectives.trackingParams){var O;(_.a(Z,pqf)||_.a(Z,CIA)||_.a(Z,uBi))&&Z.clickTrackingParams?O=_.b1(Z.clickTrackingParams):_.R("web_graft_to_parent_command")&&Z.clickTrackingParams&&(O=_.b1(Z.clickTrackingParams));var M;Z=(M=e.getScreenLayer)==null?void 0:M.call(e);e=_.h_().graftServerVe(r,O,Z);_.UW(G,"yt-store-grafted-ve-action",[e])}};
_.nos=function(G){var e=new Image;return new _.aQ(function(r,Z){e.addEventListener("load",function(){r()});
e.addEventListener("error",function(){Z()});
e.src=G})};
md_=function(G){return!!G};
czF=function(G){return!!G};
Ycq=function(G,e,r){var Z=G.rowIndex;Z!==void 0&&_.UW(G.hostElement,"yt-section-reactive-dismissal",[Z,e,r])};
_.mO=function(G,e,r){G=_.h(G);for(var Z=G.next();!Z.done;Z=G.next()){Z=Z.value;if(Z===e)break;for(var O=_.h(r),M=O.next();!M.done;M=O.next())if(M=M.value,Z.tagName===M||!_.R("web_event_button_role_check_killswitch")&&Z.role==="button"&&M==="BUTTON")return!0}return!1};
_.c5=function(G,e,r){G=_.h(G);for(var Z=G.next();!Z.done;Z=G.next()){Z=Z.value;if(Z===e)break;for(var O=_.h(r),M=O.next();!M.done;M=O.next())if(Z.id===M.value)return!0}return!1};
_.Ff=function(){var G=_.v_().resolve(_.bq(_.y$));return G?(G=G.getCurrentPage())?_.Ae(G):null:null};
_.Je=function(){var G=_.Ff();if(!G){var e=_.v_().resolve(_.bq(_.y$)),r=e?typeof e:"no page manager";e=e?e.getCurrentPage():null;r=new _.Cr("Player is missing when requested.",r,e?e.tagName:"no page");_.yx(r)}return G};
_.Ae=function(G){return G&&G.getPlayer?G.getPlayer():null};
yzS=function(G,e){G={args:{raw_player_response:G}};e&&(G.args=Object.assign({},G.args,e));return G};
AzS=function(G){if(G.args){if(G.args.raw_player_response)return G.args.raw_player_response;if(G.args.player_response)return JSON.parse(G.args.player_response)}};
_.FUp=function(G,e){var r={url:"/watch?v="+G.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};G.playlistId&&(r.url+="&list="+G.playlistId);G.playerParams&&(r.url+="&pp="+G.playerParams);G={watchEndpoint:G,commandMetadata:{webCommandMetadata:r}};e&&(G.clickTrackingParams=e);return G};
BCq=function(){return Jzy||!!_.Lz("yt.player.Application")};
PIy=function(){return xdN||!!document.querySelector("link#player-css")};
zWq=function(){function G(){Jzy=!0;Udy.resolve()}
var e,r;return _.D(function(Z){Udy||(Udy=new _.G1,BCq()?G():(e=document.createElement("script"),e.addEventListener("load",G),r=_.nB(_.xZ("PLAYER_JS_URL")),_.h6(e,r),document.head.appendChild(e)));return Z.return(Udy.promise)})};
NCf=function(){function G(){xdN=!0;WUA.resolve()}
if(!WUA)if(WUA=new _.G1,PIy())G();else{var e=document.createElement("link");e.id="player-css";e.addEventListener("load",G);var r=_.nB(_.xZ("PLAYER_CSS_URL"));_.Ef(e,r,"stylesheet");document.head.appendChild(e)}return WUA.promise};
LUs=function(){return BCq()&&PIy()?Promise.resolve([]):Promise.all([zWq(),NCf()])};
G0p=function(G,e,r){var Z={args:{}};G&&(Z.args.raw_player_response=G);e&&(Z.args.raw_watch_next_response=e);r&&(Z.args=Object.assign({},Z.args,r));return Z};
Ovp=function(G,e,r){var Z=!1;Z=Z===void 0?!0:Z;G=typeof G==="string"?_.B5(document,G):G;var O=e6U+"_"+_.zS(G),M=rrA[O];if(M&&Z)return ZvN(e,r)?M.api.loadVideoByPlayerVars(e.args||null):M.loadNewVideoConfig(e),M.api;M=new xO(G,O,e,r,void 0);rrA[O]=M;M.addOnDisposeCallback(function(){delete rrA[M.getId()]});
return M.api};
ZvN=function(G,e){return e&&e.serializedExperimentFlags?e.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):G&&G.args&&G.args.fflags?G.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
Moa=function(){var G=new _.G1;G.resolved=!1;var e=G.resolve;G.resolve=function(r){G.resolved=!0;e(r)};
return G};
h6F=function(G){var e={};VoS().install((e.document_disposed={callback:G},e))};
P5=function(G,e){if(!G&&Math.random()<=_.qt("kevlar_unified_player_logging_threshold")){G=Error("uh`"+(e?e:"Unspecified error"));if(_.R("kevlar_unified_player_throw_errors"))throw G;_.FH(G)}};
_.TIN=function(){var G=_.Lz("ytDebugData.callbacks");G||(G={},_.Eu("ytDebugData.callbacks",G));return G};
Eli=function(G,e){var r=_.TIN();if(_.R("web_dd_iu")||DEF.includes(G))r[G]=e};
ivq=function(){return _.D(function(G){return G.return({isLeader:_.BFf(_.Yt().getState()),c:_.xZ("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.xZ("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
bvp=function(){var G;_.D(function(e){if(e.nextAddress==1)return Eli("APP_STATE",ivq),e.yield(_.v_().resolve(_.Ub),2);G=e.yieldResult;Eli("PI",function(){return _.D(function(r){return r.return(G.getVideoStats())})});
_.HL(e)})};
vls=function(G){return!!G&&G.length>0&&G[0].loggingUrls!=null&&G[0].loggingUrls.length>0};
w7s=function(){var G=_.xZ("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(G==null?void 0:G.length)===2?G[1]:null};
$Ef=function(G){if(!G)return[];var e=[];G=_.h(G);for(var r=G.next();!r.done;r=G.next())if(r=r.value,r.loggingUrls){r=_.h(r.loggingUrls);for(var Z=r.next();!Z.done;Z=r.next())Z=Z.value,Z.baseUrl&&e.push(Z.baseUrl)}return e};
S$N=function(G){var e=_.ci(_.sW(_.O_.location.href));G=_.ci(_.sW(G));return _.R("kevlar_clear_non_displayable_url_params")?e==zh(G):zh(e)==zh(G)};
zh=function(G){var e=_.q$4(G);G=G.slice(0);var r=["frags"];_.R("kevlar_hide_pp_url_param")&&r.push("pp");_.R("kevlar_hide_time_continue_url_param")&&r.push("time_continue");r=_.h(r);for(var Z=r.next();!Z.done;Z=r.next())Z=Z.value,G=_.y5(_.ci(G),Z);return _.ci(G)+(e?"#"+e:"")};
W5=function(G,e){e=Number(e)*1E3;var r=Math.round((0,_.vG)()),Z=r.toString();G={innertubeResponse:G,serverDateTimestampMs:Z,lastModifiedTimestampMs:Z,expireTimestampMs:(r+e).toString()};if(e=_.xZ("INNERTUBE_CONTEXT_CLIENT_NAME"))G.clientName=e;return G};
glN=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++toA};
lPy=function(G){return!isNaN(G)&&G>0};
jxS=function(){_.R("web_adaptive_repeat_ase")&&R6F&&_.cg("applicationStarted",R6F)};
_.aPi=function(){var G=_.go(),e=_.l4();e&&G&&_.up(e,[G],!0)};
K4i=function(G){return G&&X7S.some(function(e){return G.includes(e)})};
sxs=function(G){var e=_.a(G,_.G2);if(!e)return!1;var r=e.url,Z=e.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!r)return _.yx(Error("zh")),!1;if(e.target==="TARGET_NEW_WINDOW"){e={};_.R("resolve_url_parent_tracking_params")&&(!_.TG(r)||DW(window.location.href,r))&&(e={endpoint:G,itct:G.clickTrackingParams});eqq(e);G=null;try{if(Z){a:{var O=r,M=e;Z=Z===void 0?!1:Z;M&&_.Yy(O,M);var T=_.Fy(O),E=_.nj(T);O!=E&&_.GG(Error("Yf`"+O));O=E;try{if(Z){E=O;E=Jsp(E);fa(E);G=_.er(window,E,"_blank",
"attributionsrc");break a}}catch(g){_.WX(g)}fa(O);G=_.er(window,T,"_blank")}fPa(_.v_().resolve(k0p),G,r);return!0}}catch(g){_.yx(g)}_.Yy(r,e);e={target:"_blank",noopener:!1};T=window;E=uz(r)?r:_.Fy(typeof r.href!="undefined"?r.href:String(r));Z=self.crossOriginIsolated!==void 0;G="strict-origin-when-cross-origin";window.Request&&(G=(new Request("/")).referrerPolicy);O=e.noreferrer;if(Z&&O&&G==="unsafe-url")throw Error("ve");G=O&&!Z;O=e.target||r.target;M=[];var b=[],w=!1;for(t in e){var q=e[t];switch(t){case "width":case "height":case "top":case "left":M.push(t+
"="+q);break;case "target":break;case "noopener":case "noreferrer":q?b.push(t):(w=!0,b.push(t+"=false"));break;case "attributionsrc":M.push(t+(q?"="+q:""));break;default:M.push(t+"="+(q?1:0))}}var t=O!==void 0&&!["_blank","_self","_top","_parent",""].includes(O);t=HA()&&t;Hvq&&Z&&M.length===0&&b.length>0&&!t&&!w?(b.length===2&&(b=["noreferrer"]),_.er(T,E,O,b[0]),G=dE4()):(t=M.join(","),_.Qp()&&T.navigator&&T.navigator.standalone&&O&&O!="_self"?(t=_.Hp("A"),Pw(t,E),t.target=O,G&&(t.rel="noreferrer"),
((e=e.attributionsrc)||e==="")&&t.setAttribute("attributionsrc",e),e=document.createEvent("MouseEvent"),e.initMouseEvent("click",!0,!0,T,1),t.dispatchEvent(e),t=dE4()):G?(t=_.er(T,"",O,t),T=_.nj(E),t&&(t.opener=null,T===""&&(T="javascript:''"),T='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Nk(T)+'">',T=zq(T),(e=t.document)&&e.write&&(e.write(Lj(T)),e.close()))):((t=_.er(T,E,O,t))&&e.noopener&&(t.opener=null),t&&e.noreferrer&&(t.opener=null)),G=t);fPa(_.v_().resolve(k0p),
G,r);return!0}t=_.Kr(r);t=K4i(t)||r==="https://studio.youtube.com/";if(_.TG(r)&&!DW(window.location.href,r)||t)fa(r),ty(),_.kN(r,void 0,void 0,window.top,ol_);else return _.FH(new _.Cr("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",G)),!1;return!0};
_.p74=function(G,e){e=e===void 0?0:e;if(!(_.a(G,Qxa)||_.a(G,IP4)||_.a(G,_.G2)&&_.a(G,_.G2).url))return!1;var r,Z=(r=_.a(G,_.G2))==null?void 0:r.url;r=Z?{externalLinkData:{url:Z}}:null;return _.h_().clickCommand(G,r,e)};
uDF=function(G,e,r,Z,O){O=O===void 0?{}:O;return function(M){var T,E;var b=((T=G.loggingDirectives)==null?0:(E=T.clientVeSpec)==null?0:E.uiType)?_.L1(G.loggingDirectives.clientVeSpec.uiType):void 0;O.clickedVisualElement||(O.clickedVisualElement=b);b=CcN(G,e);r(b,M);b=_.h(b);for(T=b.next();!T.done;T=b.next()){T=T.value;E=Z;var w=M,q=O;q.form?q.form.event=w:q.form={element:E,event:w};Dp(T,q)}}};
CcN=function(G,e){var r=[];e?(G.toggledCommand&&r.push(G.toggledCommand),G.toggledServiceEndpoint&&r.push(G.toggledServiceEndpoint)):(G.defaultCommand&&r.push(G.defaultCommand),G.defaultServiceEndpoint&&r.push(G.defaultServiceEndpoint),G.defaultNavigationEndpoint&&r.push(G.defaultNavigationEndpoint));return r};
nlq=function(G,e){var r=G.toggledStyle||G.style,Z;switch((Z=e?r:G.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"}}};
_.G_=function(){return _.D(function(G){return G.nextAddress==1?G.yield(_.v_().resolve(_.Ub),2):G.return(_.v_().resolve(mE_)())})};
_.eV=function(){return _.v_().resolve(mE_)()};
_.r8=function(){return AH(function(){return{lottieEl:void 0}})};
crN=function(G,e){return G.startsWith(e.uniqueId)};
Y$y=function(G){var e,r;_.D(function(Z){if(Z.nextAddress==1)return Z.yield(_.G_(),2);e=Z.yieldResult;if((r=e)==null||!r.addEventListener)return ZV(),Z.return();e.addEventListener("onCueRangeEnter",G);_.HL(Z)})};
yrN=function(G){var e,r;_.D(function(Z){if(Z.nextAddress==1)return Z.yield(_.G_(),2);e=Z.yieldResult;if((r=e)==null||!r.removeEventListener)return ZV(),Z.return();e.removeEventListener("onCueRangeEnter",G);_.HL(Z)})};
ArS=function(G){var e,r,Z,O,M;_.D(function(T){if(T.nextAddress==1)return T.yield(_.G_(),2);e=T.yieldResult;if((r=e)==null||!r.addCueRange)return ZV(),T.return();Z=_.h(G.timings);for(O=Z.next();!O.done;O=Z.next())M=O.value,e.addCueRange(G.uniqueId+"-"+M,M/1E3,(M+100)/1E3);_.HL(T)})};
F4S=function(G){var e,r,Z,O,M;_.D(function(T){if(T.nextAddress==1)return T.yield(_.G_(),2);e=T.yieldResult;if((r=e)==null||!r.removeCueRange)return ZV(),T.return();Z=_.h(G.timings);for(O=Z.next();!O.done;O=Z.next())M=O.value,e.removeCueRange(G.uniqueId+"-"+M);_.HL(T)})};
Jr_=function(){var G,e,r;return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(_.G_(),2);G=Z.yieldResult;if((e=G)==null||!e.getPlayerState)return ZV(),Z.return();r=G.getPlayerState();return Z.return(r===2)})};
ZV=function(){_.FH(new _.Cr("Smartimation player does not exist or is corrupted"))};
BIp=function(){try{var G;return(G=window.CSS)!=null&&G.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 _.FH(new _.Cr("Smartimation CSS.supports threw an error")),!1}};
L4A=function(G,e,r,Z,O){var M=G.playlistId?xE_:Pcs;e=e();r=r();O=!!G.videoId&&O()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.E6(e))return UE_({data:G,actionType:M,disabled:O},r);if(G.videoId&&Z())return z6_({data:G,actionType:M,disabled:O});switch(e){case "TRANSFER_STATE_UNKNOWN":return z6_({data:G,actionType:M,disabled:O});case "TRANSFER_STATE_FAILED":return G.videoId?W4$({data:G,actionType:M,disabled:O}):NIp({data:G,actionType:M,disabled:O});case "TRANSFER_STATE_COMPLETE":return NIp({data:G,
actionType:M,disabled:O});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return UE_({data:G,actionType:M,disabled:O},r);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return G.videoId?W4$({data:G,actionType:M,disabled:O}):z6_({data:G,actionType:M,disabled:O});default:return z6_({data:G,actionType:M,disabled:O})}};
GpS=function(G,e){var r=G.onTapCommand,Z=_.X0(r);if(G.videoId&&_.a(Z,_.O2))return _.a(Z,_.O2).action=e,r;G.playlistId&&_.a(Z,_.Mo)&&(_.a(Z,_.Mo).action=e);return r};
z6_=function(G){var e=G.data;var r=G.actionType;G=G.disabled;return{text:eC$,iconType:"OFFLINE_DOWNLOAD",onTap:GpS(e,r.ACTION_ADD),disabled:G}};
UE_=function(G,e){var r=G.data;var Z=G.actionType;G=G.disabled;var O="OFFLINE_DOWNLOAD";e>=0&&e<=.1?O="OFFLINE_DOWNLOADING_ZERO":e>.1&&e<=.3?O="OFFLINE_DOWNLOADING_TWENTY":e>.3&&e<=.5?O="OFFLINE_DOWNLOADING_FORTY":e>.5&&e<=.7?O="OFFLINE_DOWNLOADING_SIXTY":e>.7&&e<1?O="OFFLINE_DOWNLOADING_EIGHTY":e===1&&(O="OFFLINE_PIN");return{text:rn_,iconType:O,onTap:GpS(r,Z.ACTION_REMOVE_WITH_PROMPT),disabled:G}};
NIp=function(G){var e=G.data;var r=G.actionType;G=G.disabled;return{text:ZiF,iconType:"OFFLINE_PIN",onTap:GpS(e,r.ACTION_REMOVE_WITH_PROMPT),disabled:G}};
W4$=function(G){var e=G.data;var r=G.actionType;G=G.disabled;return{text:OiF,iconType:"OFFLINE_DOWNLOAD",onTap:GpS(e,r.ACTION_RETRY),disabled:G}};
_.hI=function(G,e){var r=eu4();return _.dw(function(){r();return OUN(G,[_.FQ(e)||""])},{debugName:"LUZslf"},"Z105t")};
MxS=function(G){var e=_.hI(_.KQ,function(){return G().videoId}),r=_.hI(_.fQ,function(){return G().playlistId});
return function(){return G().videoId?e:G().playlistId?r:_.h(_.XQ("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
VxS=function(G){var e=_.hI(kt,function(){return G().videoId}),r=_.hI(_.J4s,function(){return G().playlistId});
return function(){return G().videoId?e:G().playlistId?r:_.h(_.XQ(0,void 0,"K4tgOc")).next().value}};
hCF=function(G){var e=_.hI(_.Gs$,function(){return G().videoId});
return function(){return G().videoId?e:_.h(_.XQ(!1,void 0,"Oaxwcf")).next().value}};
Ty_=function(G){var e=_.hI(POf,function(){return G().videoId});
return function(){return G().videoId?e:_.h(_.XQ("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
DX4=function(){return{}};
_.wRa=function(G,e,r){return{submitForm:function(){var Z,O,M,T;return _.D(function(E){if(E.nextAddress==1){Z=ELN(G());if(!Z)return E.return();if(Z.onSubmit)return iiF(e),Z.onSubmit(),iiF(r),E.return();if(!Z.submitConfig||!Z.formData)return E.jumpTo(0);Z.disableDuringSubmission&&bi$(G(),!0);iiF(e);return E.yield(vLS(Z.submitConfig,Z.formData()),3)}O=E.yieldResult;iiF(r);if(((M=O)==null?0:M.submitResult)&&((T=Z)==null?0:T.onSubmitResult))Z.onSubmitResult(O.submitResult);Z.disableDuringSubmission&&bi$(G(),
!1);return E.return()})},
isValid:function(){var Z=ELN(G());if(Z){var O;return!((O=Z.isValid)==null||!O.call(Z))}return!0},
isSubmitting:function(){var Z,O;return!!((Z=ELN(G()))==null?0:(O=Z.isSubmitting)==null?0:O.call(Z))}}};
_.T_=function(){if(!$Xq){var G=_.h(_.XQ(new Map,void 0,"Y1XnBc"));$Xq=G.next().value;Sh$=G.next().value}return $Xq};
_.qhS=function(G){Sh$(new Map(G))};
ELN=function(G){if(G)return _.T_()().get(G)};
vLS=function(G,e){var r;return _.D(function(Z){return Z.nextAddress==1?e?(r=_.v_().resolve(_.bq(txp)))&&G.submitId?Z.yield(r.submitForm(G.submitId,e,gLA,G.params,G.clickTrackingParams),2):Z.return(Promise.reject(Error("Bh"))):Z.return(Promise.reject(Error("Ah"))):Z.return(Z.yieldResult)})};
bi$=function(G,e){if(G){var r=_.T_();r().set(G,Object.assign({},r().get(G),{isSubmitting:function(){return e}}));
_.qhS(r())}};
iiF=function(G){if(G){var e=_.v_().resolve(_.$1);e&&(G=_.X0(G()))&&e.resolveCommand(G)}};
jXy=function(G,e){e=e===void 0?{shouldPersist:!0}:e;return{useUpdatableData:function(r,Z){var O=_.dw(function(){return G(r())},void 0,"Gmrblb"),M=lxp(r,O,Z,e);
_.Y8(function(){if(O()!=null){RC$.set(O(),M);var T=O();_.yD(function(){RC$.delete(T)})}},"j4hx9b");
return M},
getData:function(r){var Z;return(Z=RC$.get(G(r)))==null?void 0:Z[0]()},
updateData:function(r,Z){r=G(r);r=RC$.get(r);if(!r)return!1;var O=_.h(r);r=O.next().value;O=O.next().value;Z=Z(r());O(Z);return!0}}};
lxp=function(G,e,r,Z){Z=Z===void 0?{}:Z;var O=_.h(_.Ob(function(){var E=G(),b=e();return axp(E,b,r,Z)})),M=O.next().value,T=O.next().value;
return[M,function(E){T(E);var b=e();if(Z.shouldPersist&&b!=null){var w,q=(w=r==null?void 0:r.map(function(t){return t()}))!=null?w:[];
_.DV.set(b,[E,q])}}]};
axp=function(G,e,r,Z){Z=Z===void 0?{}:Z;if(e==null||!Z.shouldPersist)return G;Z=_.DV.get(e);if(!Z)return G;var O=_.h(Z);Z=O.next().value;var M=O.next().value,T;O=(T=r==null?void 0:r.map(function(E){return E()}))!=null?T:[];
if((M==null?0:M.length)&&(r==null?0:r.length)&&O.some(function(E,b){return E!==M[b]}))return _.DV.remove(e),G;
(r==null?0:r.length)&&_.DV.set(e,[Z,O]);return Z};
XRS=function(G){var e=_.h(_.XQ(!0,void 0,"bKtO6d")),r=e.next().value;e.next();return function(){var Z=HX(G.children());return _.v(_.S,{cond:r,then:function(){return Z},
else:G.fallback})}()};
_.E2=function(G){var e=Kpi(G),r=e.data,Z=e.mapping,O=e.wrapper;e=e.pendingFallback;var M=function(){return fxN(_.FQ(r))},T=function(){var E=M(),b=[];
E=_.h(E);for(var w=E.next();!w.done;w=E.next()){var q=void 0;w=w.value;var t=void 0;for(q in w)if(!(!w).hasOwnProperty(q)){t=q;break}(q=t)&&b.push(q)}return b};
return G.data?_.v(XRS,{fallback:e},function(){return _.v(_.u6,{each:T},function(E,b){var w=O?function(t){return O(function(){return Z[E](t,b)},q,b)}:function(t){return Z[E](t,b)};
w.debugName||(w.debugName=String(E));if(!Z[String(E)])return document.createComment("");w.componentType!==uW&&kpU(String(E));var q=Hi_(M,E,b);return _.v(w,{data:q})})}):_.v(_.$Z,null)};
Kpi=function(G){var e=G.targetId||dXa(G.children);if(!G.data||!e)return Object.assign({},G,{mapping:G.children,wrapper:void 0});var r="stamper-"+oLy++,Z=function(){var E;return(E=typeof G.targetId==="function"?G.targetId(r):G.targetId)!=null?E:r};
e=_.h(sX_(function(){var E=fxN(G.data());E.targetId=Z;return E})).next().value;
var O=Object.assign({},(_.v_().resolve(_.bq(QXS))||{}).replaceableMapping,G.children);if(G.replacementWrapper){var M=O.notificationTextRenderer,T=O.notificationMultiActionRenderer;M&&(O.notificationTextRenderer=function(E,b){return G.replacementWrapper(M({data:E.data},b))});
T&&(O.notificationMultiActionRenderer=function(E,b){return G.replacementWrapper(T({data:E.data},b))})}return Object.assign({},G,{data:e,
mapping:O,wrapper:function(E,b,w){return M9S({targetId:Z,stamperIndex:w},E)}})};
Hi_=function(G,e,r){var Z;return _.dw(function(){var O=G()[r()];if(O)Z=O[e];else return _.FH(new _.Cr("Stamper failed to find "+String(e)+" at index "+r()+" of data array of length "+(G().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),Z;return O[e]},void 0,"AtsHlc")};
dXa=function(G){G=_.h(Object.keys(G));for(var e=G.next();!e.done;e=G.next())if(e=e.value,Ix4.includes(e)||pRf.includes(e)||CSp.includes(e))return!0;return!1};
fxN=function(G){return G?Array.isArray(G)&&G instanceof Array?G:[G]:[]};
kpU=function(G){if(_.R("web_enable_renderer_logger")){var e;(e=_.v_().resolve(_.bq(uZS)))!=null&&e.loggingEnabled&&!e.ids.has(G)&&e.ids.add(G)}};
nLi=function(){var G,e;return(e=(G=_.v_().resolve(_.bq(_.Ig)))==null?void 0:G())!=null?e:!1};
cn4=function(G,e){G=G===void 0?mXS:G;switch(e.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},G,{isOpen:e.payload});default:return G}};
yns=function(G,e){G=G===void 0?YhU:G;switch(e.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},G,{isAllowed:e.payload});default:return G}};
FpN=function(G,e){G=G===void 0?Anp:G;switch(e.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},G,{errorMessage:e.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},G,{title:e.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},G,{privacy:e.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},G,{isDisabled:e.payload});default:return G}};
Byi=function(G,e){G=G===void 0?JnS:G;switch(e.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},G,{isOpen:e.payload});default:return G}};
PS4=function(G,e){G=G===void 0?xXy:G;switch(e.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},G,{isFullscreen:e.payload});case "SET_NAVIGATION_BUTTON":var r=e.payload.targetId,Z=Object.assign({},G.navigationButtons);Z[r]=e.payload.button;return Object.assign({},G,{navigationButtons:Z});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},G,{topPanelId:e.payload});case "SET_SECONDARY_HEADER":return r=e.payload.panelId,Z=Object.assign({},G.secondaryHeader),Z[r]=e.payload.secondaryHeader,
Object.assign({},G,{secondaryHeader:Z});default:return G}};
Nyq=function(){return HU(Object.assign({},{voiceSearch:jAS,engagementPanel:PS4,bottomSheet:cn4,cinematicSetting:yns,shorts:o_N,drawerLayout:Byi,createPlaylist:FpN,locationCollection:UXA,reportChannel:zC_,reportForm:WpF},sAq))};
Lpp=function(G,e){_.A0.addLowPriorityJob(function(){var r,Z,O;return _.D(function(M){switch(M.nextAddress){case 1:return _.jr(M,2),M.yield(sKi(),4);case 4:return M.yield(fetch(G),5);case 5:return r=M.yieldResult,M.yield(r.json(),6);case 6:Z=M.yieldResult;$O.set(G,Z);requestAnimationFrame(function(){e(Z)});
_.rL(M,0);break;case 2:O=_.k5(M),_.FH(O),_.HL(M)}})})};
Gf$=function(G){var e={animationConfig:{},listeners:{}},r=function(){G(!0)};
e.listeners.data_failed=r;e.listeners.error=r;e.listeners.data_ready=function(){G(!1)};
return e};
ZAN=function(G){var e=G.model;var r=G.subscribed;var Z=G.isOverlay;var O=G.element;var M=G.commandController;var T=G.notificationState;if(r){var E,b;var w=(e==null?void 0:(E=e.buttonStyle)==null?void 0:E.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:e==null?void 0:(b=e.unsubscribeButtonContent)==null?void 0:b.buttonText}else{var q;w=e==null?void 0:(q=e.subscribeButtonContent)==null?void 0:q.buttonText}a:{var t;switch(e==null?void 0:(t=e.buttonStyle)==
null?void 0:t.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":E="S";break a;default:E="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(r)var g="tonal";else switch((g=e.buttonStyle)==
null?void 0:g.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":g="tonal";break a;default:g="filled"}return{style:Z,type:g,state:e.disableSubscribeButton?"disabled":"active",size:E,focused:G.focused,toggled:r,accessibilityLabel:exF(e,r,T),buttonText:w,iconPosition:e.disableNotificationBell?"none":"leading-trailing",onTap:rjp(e,r,O,M),disableTextEllipsis:!!G.disableTextEllipsis}};
rjp=function(G,e,r,Z){return function(O){if(e){var M;var T=G.disableNotificationBell?_.X0(G==null?void 0:(M=G.unsubscribeButtonContent)==null?void 0:M.onTapCommand):_.X0(G==null?void 0:G.onShowSubscriptionOptions)}else{var E;T=_.X0(G==null?void 0:(E=G.subscribeButtonContent)==null?void 0:E.onTapCommand)}T&&Dp(T,{form:{element:r==null?void 0:r.value},commandController:Z});O.stopPropagation()}};
exF=function(G,e,r){if(e){if(G==null?0:G.disableNotificationBell){var Z;return G==null?void 0:(Z=G.unsubscribeButtonContent)==null?void 0:Z.accessibilityText}switch(r){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var O;return G==null?void 0:(O=G.bellAccessibilityData)==null?void 0:O.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var M;return G==null?void 0:(M=G.bellAccessibilityData)==null?void 0:M.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var T;return G==null?void 0:(T=
G.bellAccessibilityData)==null?void 0:T.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var E;return G==null?void 0:(E=G.bellAccessibilityData)==null?void 0:E.disabledLabel;default:var b;return G==null?void 0:(b=G.unsubscribeButtonContent)==null?void 0:b.accessibilityText}}else{var w;return G==null?void 0:(w=G.subscribeButtonContent)==null?void 0:w.accessibilityText}};
OAp=function(G,e){return _.e6(G.entities,"subscriptionStateEntity",e)};
MAa=function(G,e){return _.e6(G.entities,"subscriptionNotificationStateEntity",e)};
VAS=function(G,e){return _.e6(G.entities,"upcomingEventReminderStateEntity",e)};
hx_=function(G,e){return _.e6(G.entities,"commentEntityPayload",e)};
TaF=function(G,e){return _.e6(G.entities,"engagementToolbarSurfaceEntityPayload",e)};
DfS=function(G,e){return _.e6(G.entities,"triStateButtonStateEntityPayload",e)};
ETp=function(G,e){return _.e6(G.entities,"commerceCartCheckoutButtonEntity",e)};
iA_=function(G,e){return _.e6(G.entities,"commandEntity",e)};
bAy=function(G){if(G){switch(G){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":G="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":G="NOTIFICATIONS_OFF";break;default:G="NOTIFICATIONS_NONE"}return G}};
vTA=function(G,e,r){r.subscribed!==e&&((r=r.key)&&_.nR(_.bt("subscriptionStateEntity",r,{key:r,subscribed:e})),G.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:e})),e||_.Pi(G,"yt-unsubscribe-action"))};
SC$=function(G){G=_.a(_.X0(G),_.wBF);var e,r,Z,O;return(O=_.a(G==null?void 0:(e=G.panelLoadingStrategy)==null?void 0:(r=e.inlineContent)==null?void 0:(Z=r.sheetViewModel)==null?void 0:Z.content,$fi))==null?void 0:O.listItems};
qCs=function(G,e){if(G.onShowSubscriptionOptions&&e&&(G=SC$(G.onShowSubscriptionOptions),G!=null&&G.length)){var r=bAy(e);G.forEach(function(Z){Z=_.a(Z,_.ve);var O,M,T,E,b=Z==null?void 0:(O=Z.leadingImage)==null?void 0:(M=O.sources)==null?void 0:(T=M[0])==null?void 0:(E=T.clientResource)==null?void 0:E.imageName;Z&&b&&(Z.isSelected=b===r)})}};
tAy=function(G,e,r,Z){e&&r?G.style.width=r+"px":!e&&Z&&(G.style.width=Z+"px")};
gTy=function(G,e,r){var Z;(Z=G.lottieEl)==null||Z.goToAndPlay(0);var O;(O=e.lottieEl)==null||O.goToAndPlay(0);_.w8(_.A0,function(){var M;(M=r.lottieEl)==null||M.goToAndPlay(0)},300)};
lJ4=function(G){return!(G==null||!G.iconName||(G==null?0:G.title))};
Rxp=function(G,e,r,Z){r&&_.A0.cancelJob(r);r=_.A0.addLowPriorityJob(function(){Z(void 0)},5E3);
Z(r);e&&G!==(e.likeStatus==="LIKE")&&e.key&&_.nR(_.bt("likeStatusEntity",e.key,{key:e.key,likeStatus:G?"LIKE":"INDIFFERENT",hadUserInteraction:G}))};
_.jns=function(G,e){return _.e6(G.entities,"accountLinkStatusEntity",e)};
aJ_=function(G,e){return _.e6(G.entities,"hatsSurveyEntity",e)};
XB_=function(G,e){return _.e6(G.entities,"hatsSurveyStateEntity",e)};
KRy=function(G,e){return _.e6(G.entities,"quantityIncrementerEntity",e)};
fJ$=function(G){switch(G){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_LIVE_NOW":return 11;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}};
kf_=function(G){switch(G){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}};
HAf=function(G){switch(G){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"}};
_.oTp=function(G){var e=_.qt("web_generic_client_event_wait_period ",0);e||(e=3E5);var r=df4.get(G);!_.R("enable_web_client_experiment_event_timeout_killswitch")&&r&&(0,_.vG)()-r<e||(df4.set(G,(0,_.vG)()),_.cg("genericClientExperimentEvent",{eventType:G}))};
_.sny=function(G,e){var r,Z,O,M;a:{var T=G.style;if(T===void 0)T=17;else switch(T){case "LIVE":T=18;break a;default:T=17}}return{type:T,text:e?MGS({seconds:e}):_.mG(G.text),accessibilityText:(r=G.text)==null?void 0:(Z=r.accessibility)==null?void 0:(O=Z.accessibilityData)==null?void 0:O.label,icon:(M=G.icon)==null?void 0:M.iconType}};
QnN=function(G){switch(G){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
IJ$=function(G){if(!G)return"";var e,r=(e=_.v_().resolve(_.bq(_.Ig)))==null?void 0:e(),Z;if(!r&&((Z=G.vibrantColorPalette)==null?0:Z.iconInactiveColor))return aB(G.vibrantColorPalette.iconInactiveColor,"1");var O;return r&&((O=G.darkColorPalette)==null?0:O.iconInactiveColor)?aB(G.darkColorPalette.iconInactiveColor,"1"):G.color?aB(G.color,"1"):G.sampledThumbnailColor?(G=G.sampledThumbnailColor,"rgba("+G.red+","+G.green+","+G.blue+");"):""};
_.$b=function(G,e){if(!G.includes("DATE_PLACEHOLDER"))return G;var r=new Date(0);r.setUTCSeconds(e);return G.replace("DATE_PLACEHOLDER",pBF(r))};
Cu_=function(G,e,r){return function(Z){var O=G.command;O&&(Dp(O,{form:{element:r}}),e([O],Z))}};
nT_=function(G,e,r,Z,O){return function(M){var T=uip(G,e);T&&Dp(T,{form:{element:r},commandController:Z});O&&M.stopPropagation()}};
uip=function(G,e){if(G.signInEndpoint&&!_.R("web_subscribe_sign_in_endpoint_killswitch"))return G.signInEndpoint;if(e){if(G.serviceEndpoints)return G.serviceEndpoints[1];if(G.onUnsubscribeEndpoints)return G.onUnsubscribeEndpoints[0]}else{if(G.serviceEndpoints)return G.serviceEndpoints[0];if(G.onSubscribeEndpoints)return G.onSubscribeEndpoints[0]}};
mfS=function(G,e){var r,Z,O,M;e=e&&((r=G.unsubscribeAccessibility)==null?void 0:(Z=r.accessibilityData)==null?void 0:Z.label)||((O=G.subscribeAccessibility)==null?void 0:(M=O.accessibilityData)==null?void 0:M.label);return G.longSubscriberCountText?[e,_.mG(G.longSubscriberCountText)].filter(function(T){return T}).join(" "):e};
SV=function(G,e){return e||(G==null?0:G.isChannelDelegate)?"disabled":"active"};
cjF=function(G,e){var r;switch((r=G.style)==null?void 0:r.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:SV(G)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:SV(G)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:SV(G,!0)};case "OVERLAY":return e?{style:"overlay",type:"tonal",state:SV(G)}:{style:"overlay",type:"filled",state:SV(G)};default:return e?{style:"mono",type:"tonal",state:SV(G)}:{style:"mono",type:"filled",state:SV(G)}}};
_.qo=function(){for(var G=[],e=_.h(_.Bw.apply(0,arguments)),r=e.next();!r.done;r=e.next())if(r=r.value)if(typeof r==="string")G.push(r);else{r=_.h(Object.entries(r));for(var Z=r.next();!Z.done;Z=r.next()){var O=_.h(Z.value);Z=O.next().value;(O=O.next().value)&&G.push(Z)}}return G.join(" ")};
YC_=function(G){switch(G){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
yjp=function(G){switch(G){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
Aja=function(G,e){var r=G.map(function(Z){return Z.toString()});
return _.ev(function(Z){if(r.includes(Z.key)){e&&Z.preventDefault();var O;(O=Z.currentTarget)==null||O.click()}})};
_.FRU=function(){return Aja(["Enter"])};
_.Jj4=function(){return Aja(["Enter"," "],!0)};
_.tI=function(G){if(G.composedPath)return G.composedPath();if(!G.__composedPath){for(var e=[],r=G.target;r;)e.push(r),r=r.parentNode;e.push(window);G.__composedPath=e}return G.__composedPath};
_.g8=function(G,e,r){G=_.h(G);for(var Z=G.next();!Z.done;Z=G.next()){Z=Z.value;if(Z===e)break;for(var O=_.h(r),M=O.next();!M.done;M=O.next())if(M=M.value,Z.tagName===M||Z.role==="button"&&M==="BUTTON")return!0}return!1};
xfS=function(G,e){var r,Z=(r=e.observer)!=null?r:_.v_().resolve(bC);if(G){r=BaU(G);var O=[];e.showOption&&O.push(Z.observe(G,function(){e.visibilityCallback(!0,G)},e.showOption));
e.hideOption&&O.push(Z.observe(G,function(){e.visibilityCallback(!1,G)},e.hideOption));
e.prescanOption&&e.prescanCallback&&O.push(Z.observe(G,function(){e.prescanCallback()},e.prescanOption));
var M;r.visibilityMonitorKeys=((M=r.visibilityMonitorKeys)!=null?M:[]).concat(O)}};
BaU=function(G){var e;return(e=G.polymerController)!=null?e:G};
_.RH=function(G){return!!_.lt(G)};
_.jV=function(G,e,r,Z,O){return function(M){var T=O8a();_.Y8(function(){if(M){Puy(M,G(),O);var E=UfA(M,G(),e,r,Z,T);_.yD(E)}},"nr377e")}};
Puy=function(G,e,r){var Z=zxS(e),O=WRF(e);e=Z&&NaS;var M=O&&LR4;(Z||O)&&xfS(G,{visibilityCallback:function(T){var E=_.v_().resolve(_.$1);T&&Z?E.resolveCommand(Z,{form:{element:r?G:void 0},disableClickTracking:!0}):!T&&O&&E.resolveCommand(O,{form:{element:r?G:void 0},disableClickTracking:!0})},
showOption:e,hideOption:M})};
UfA=function(G,e,r,Z,O,M){var T=new Map;if(e=_.lt(e)){var E;G=(Z==null?void 0:(E=Z.onTap)==null?void 0:E.value)||G;r=GYq(e,G,r==null?void 0:r.onTap,O,M);G.addEventListener("click",r);T.set("click",r)}return function(){for(var b=_.h(T),w=b.next();!w.done;w=b.next()){var q=_.h(w.value);w=q.next().value;q=q.next().value;G.removeEventListener(w,q)}}};
_.lt=function(G){var e;return(G=(e=_.a(G,ebs))==null?void 0:e.onTap)&&_.X0(G)};
zxS=function(G){var e;return(G=(e=_.a(G,ebs))==null?void 0:e.onVisible)&&_.X0(G)};
WRF=function(G){var e;return(G=(e=_.a(G,ebs))==null?void 0:e.onHidden)&&_.X0(G)};
GYq=function(G,e,r,Z,O){var M=function(E){_.v_().resolve(_.$1).resolveCommand(G,E)},T=function(E){Z&&_.g8(_.tI(E),e,Z)||M(E.target?{form:{element:E.target,
sourceData:G,mutationContext:O}}:void 0)};
r&&(T=function(E){r(E,M)});
return T};
rCS=function(G){switch(G){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}};
ZZs=function(G){var e=G.numAvatarsInCluster;switch(G.clusterSize){case "small":return e===2?22:18;case "40":return e===2?24:22;default:return e===2?24:20}};
OZp=function(G,e){return function(r){var Z=Object.keys(e);_.Y8(function(){if(G!=null&&G()){for(var O=_.h(Z),M=O.next();!M.done;M=O.next())M=M.value,r.addEventListener(M,e[M]);_.yD(function(){for(var T=_.h(Z),E=T.next();!E.done;E=T.next())E=E.value,r.removeEventListener(E,e[E])})}},"bXZGfe")}};
MyF=function(G){switch(ZZs(G)){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""}};
Vy$=function(G){switch(G){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""}};
hbp=function(G){switch(ZZs(G)){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""}};
TO_=function(G){switch(G){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""}};
DLS=function(G){switch(G){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}};
EDp=function(G){return G==="medium"||G==="48"||G==="large"||G==="extra-large"||G==="extra-extra-large"||G==="giant"};
iZF=function(G){return!!((G==null?0:G.includes(3))||(G==null?0:G.includes(5)))};
vDq=function(G){var e=G.data;return{size:bZ_(e.avatarImageSize),type:e.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:G.onTap,decorations:G.decorations||[],badgeText:G.badgeText,accessibilityText:G.accessibilityText,avatarButtonCustomClassName:G.avatarButtonCustomClassName,clusterLayoutConfig:G.clusterLayoutConfig}};
bZ_=function(G){switch(G){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"}};
wTF=function(G){switch(G){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}};
$Ly=function(G){switch(G){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""}};
SGq=function(G){var e=G.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",r,Z=G.avatars&&G.avatars.length>0?(r=_.a(G.avatars[0],_.aH))==null?void 0:r.avatarImageSize:"AVATAR_SIZE_UNKNOWN";r=wTF(Z)||0;if(e){var O,M=(O=G.avatarClusterSize)!=null?O:"AVATAR_SIZE_M";e=wTF(M);var T,E,b=Math.min((E=(T=G.avatars)==null?void 0:T.length)!=null?E:0,4),w;return{avatars:((w=G.avatars)==null?void 0:w.slice(0,4))||[],avatarSizeInPx:r,avatarStackStyle:{width:e+"px",height:e+"px",position:"relative"},avatarStyle:function(t){var g=
ZZs({clusterSize:bZ_(M),numAvatarsInCluster:b,avatarIndex:t});var l=wTF(M);b===3&&t===2?(l=(l-g)/2,l=(_.xZ("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*l):l=void 0;return{position:"absolute",top:b===2&&t===1||b===3&&t===2||b===4&&t>=2?"0":void 0,bottom:b===2&&t===0||b>2&&t<2?"0":void 0,left:b===2&&t===1||b>2&&(t===1||t===3)?"0":void 0,right:b<=3&&t===0||b===4&&(t===0||t===2)?"0":void 0,transform:l?"translateX("+l+"px)":void 0,width:g+"px",height:g+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(t){return{clusterSize:bZ_(G.avatarClusterSize),numAvatarsInCluster:b,avatarIndex:t}},
avatarButtonCustomClassName:void 0}}var q;return{avatars:((q=G.avatars)==null?void 0:q.slice())||[],avatarSizeInPx:r,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:$Ly(Z),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
qG$=function(G,e,r){return function(){Dp(G,{form:{element:e},commandController:r})}};
ty4=function(G){switch(G){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
gDF=function(G){switch(G){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"}};
lNF=function(G){if("accessibilityText"in G)return G.accessibilityText||"";if("title"in G){var e,r,Z;return((e=G.title)==null?void 0:(r=e.accessibility)==null?void 0:(Z=r.accessibilityData)==null?void 0:Z.label)||""}if("accessibility"in G){var O,M;return((O=G.accessibility)==null?void 0:(M=O.accessibilityData)==null?void 0:M.label)||""}return""};
RbF=function(G){return"inlinePlayerData"in G};
XK=function(G){return new jOi(G)};
aNA=function(G){return function(e){G&&(G.thumbnailElRef=e.thumbnailElRef,G.thumbnail=e.thumbnail,G.thumbnailOverlays=e.thumbnailOverlays,G.thumbnailSize=e.thumbnailSize)}};
XT4=function(G){switch(G){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
fN4=function(G){var e=_.h(_.XQ(!1,void 0,"E6wDDe")),r=e.next().value,Z=e.next().value;_.yY(function(){var O=G==null?void 0:G();if(O){var M=_.v_().resolve(_.bq(KP_));if(M){var T={triggeringElement:O,onDwellTriggeredFn:function(){Z(!0)},
onDwellEndFn:function(){Z(!1)}};
M.registerElement(T);_.yD(function(){_.KW(M,T)})}}});
return r};
kYp=function(G,e,r){r?r(e):_.HQ(e,G.target?{form:{element:G.target}}:void 0)};
_.fW=function(G,e,r,Z){return function(O){_.Y8(function(){function M(q){q=q.composedPath();q=_.h(q);for(var t=q.next();!t.done;t=q.next()){t=t.value;if(t===O)break;if(t.className.indexOf("HostIsClickableAdComponent")>=0||t.tagName==="A".toString()||t.tagName==="BUTTON".toString())return!0}return!1}
var T=new Map,E,b=(E=G())==null?void 0:E.onTap;if(b){E=function(q){M(q)||kYp(q,b,e)};
var w=function(q){M(q)||q.key!=="Enter"||kYp(q,b,e)};
(r==null?0:r())||_.R("enable_web_home_top_landscape_image_layout_level_click")?(O.addEventListener("tap",E),T.set("tap",E)):(O.addEventListener("click",E),T.set("click",E));if(Z==null?0:Z())O.addEventListener("keydown",w),T.set("keydown",w)}_.yD(function(){for(var q=_.h(T),t=q.next();!t.done;t=q.next()){var g=_.h(t.value);t=g.next().value;g=g.next().value;O.removeEventListener(t,g)}})},"D7XqOc")}};
HZN=function(G,e){var r,Z=(r=G.interaction)==null?void 0:r.onTap;if(G=_.fC({elementsCommand:Z,forceNewState:!0,skipOnClick:!0}))return G.onclick=function(O){l$$(O)&&(O.preventDefault(),Z&&kYp(O,Z,e))},kh(G)?G:void 0};
dLi=function(G){switch(G){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
oDS=function(G){switch(G){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"}};
sOa=function(G){switch(G){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"}};
_.QOF=function(G){return _.R("rich_grid_enable_dynamic_offset")&&G?Math.max((G-_.qt("rich_grid_dynamic_offset_anchor_width",1300))/100*_.qt("rich_grid_dynamic_offset_offset_per_100",10),_.qt("rich_grid_dynamic_offset_lower_bound",-60)):0};
INS=function(G,e){switch(e){case 4:return 16;case 1:return G<528?16:G<1024?32:48;case 2:return(G>=528?16:8)/2;case 3:return(G<528?16:G<1024?32:48)+(G>=528?16:8)/2;default:return 0}};
pTN=function(G){var e=G.originalContainerWidth;var r=G.sizing;var Z=G.standardUnit;if(G.isCompactList&&e<528)return 1;switch(r){case "STANDARD":return Z;case "COMPACT":return Z+1;case "EXTRA_COMPACT":return _.R("web_responsive_extra_compact_2x")?Z*2:_.R("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}};
uIN=function(G){var e=G.containerWidth;var r=G.peek;var Z=G.gutter;var O=G.numItems;G=G.ignoreMaxWidthLimit;e=r?Math.max((e-r-Z*O)/O,0):Math.max((e-Z*(O-1))/O,0);return G?e:Math.min(e,CT_)};
_.kb=function(G){var e=G.containerWidth;var r=G.hasPeek;var Z=G.sizing;var O=G.marginSettings;var M=G.isCompactList;var T=G.enableFullBleedForSingleCol;var E=G.standardUnitMinWidth;Z=Z||"STANDARD";r=!!r;G=e>=528?16:8;var b=r?e>=528?48:24:0;O=INS(e,O);var w=Math.max(e-O*2,0);E=_.R("kevlar_disable_min_width_override")?void 0:E;E=Math.min(Math.max(Math.floor((w-b+G)/((E!=null?E:nDp)+_.QOF(e)+G)),1),6);var q=(T=!!T&&E===1)||E===1&&Z!=="STANDARD";r=r||q?w:Math.min(w,(CT_+G)*E-G);Z=pTN({originalContainerWidth:e,
sizing:Z,standardUnit:E,isCompactList:M});return{itemWidth:uIN({containerWidth:r,peek:b,gutter:G,numItems:Z,ignoreMaxWidthLimit:q}),gutter:G,maxContainerWidth:r,numItems:Z,margin:T?0:O,contentMargin:INS(e,1),typographyBump:uIN({containerWidth:r,peek:b,gutter:G,numItems:E,ignoreMaxWidthLimit:q})>400&&!(M&&e<528),standardUnit:E}};
He=function(G){switch(G){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.mL4=function(G){if(G){var e;if((e=G.responsiveContainerConfiguration)==null?0:e.responsiveSize)return He(G.responsiveContainerConfiguration.responsiveSize);if(G.layoutSizing)switch(G.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"}}};
cCS=function(G){if(G.fullbleed)return 1;switch(G.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
JCN=function(G,e,r,Z,O,M,T,E){a:if(G===4&&Z==="LOCKUP_CONTENT_TYPE_SOURCE")var b=1;else switch(G){case 3:b=1;break a;default:b=0}a:switch(G){case 4:M=!!(M&&M<100);break a;default:M=!1}a:switch(G){case 3:case 4:var w=Z==="LOCKUP_CONTENT_TYPE_CHANNEL"||Z==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:w=!1}return{isOverlay:YG4(G,Z),isCard:yCN(Z,T),sizing:e!=null?e:"STANDARD",typographyBump:r!=null?r:!1,isTiny:M,isCentered:w,isCollection:AC$(Z),arrangement:b,addMarginForFullbleed:G===1&&Z!=="LOCKUP_CONTENT_TYPE_VIDEO",
fullbleed:G===1&&Z==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:FPA(Z,O,E),disableRounding:G===5||yCN(Z,T)||G===1&&Z==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:AC$(Z)?2:0,useLegacyTypography:!(E==null||!E.useLegacyTypography),useRichGridLegacyTypography:!(E==null||!E.useRichGridLegacyTypography)&&!_.R("web_enable_typography_bump"),compactMetadata:b===0&&Z==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:E==null?void 0:E.onFocusEffect,titleMaxLines:Z==="LOCKUP_CONTENT_TYPE_AI_CARD"?1:void 0}};
AC$=function(G){switch(G){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":case "LOCKUP_CONTENT_TYPE_MIX":case "LOCKUP_CONTENT_TYPE_STATION":return!0;default:return!1}};
yCN=function(G,e){if(e&&G==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(G){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
YG4=function(G,e){if(e==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(G){case 5:return!0;case 4:return!1;default:return!1}};
FPA=function(G,e,r){if(e&&(r==null||!r.alwaysRespectPodcastShowAspectRatio||G!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(G){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}};
BOs=function(G){switch(G){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"}};
xLf=function(G){switch(G){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}};
PTF=function(G){switch(G){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}};
_.d8=function(G){if(G){var e;return((e=_.v_().resolve(_.bq(_.Ig)))==null?0:e())?G.darkThemeImage:G.image}};
WPy=function(G,e,r,Z,O,M){if(O&&M&&e==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:O,height:M};if(!r)return{};O=r.size;r=r.allowFullWidth;if(e==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&r)return{fullWidth:!0};if(O===void 0)return{};switch(G){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:O,height:O};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:O,height:1/UL4*O};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:O*
zbs,height:O};default:return(Z==null?0:Z.height)&&(Z==null?0:Z.width)?Z.width/Z.height>1?{maxWidth:O*zbs}:{maxWidth:O}:{maxWidth:O}}};
NO4=function(G){var e;return G&&((e=_.d8(G.themedImage))!=null?e:G.image)};
LPA=function(G){var e;return G==null?void 0:(e=G.sources)==null?void 0:e[0]};
GIy=function(G){switch(G){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"}};
_.eOs=function(G){if(G)return"content-id-"+G};
rRi=function(G){switch(G.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"}}};
Zga=function(G){var e=_.oH.currentPageSubTypeSelector(_.uD().getState())||"";return G?G+e:""};
Og4=function(G){switch(G){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
VnU=function(G){var e=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],r=_.h(_.XQ(void 0,void 0,"JrqNsb")),Z=r.next().value,O=r.next().value,M=_.h(_.XQ(void 0,void 0,"rWytse"));r=M.next().value;var T=M.next().value;M=_.h(_.XQ(void 0,void 0,"DHRqxe"));var E=M.next().value,b=M.next().value;return{touchFeedbackEvents:{pointerUpEvent:Z,pointerDownEvent:r,pointerLeaveEvent:E},touchFeedbackOnPointerUp:_.ev(function(w){MnN(_.tI(w),e)||(O(w),T(void 0),b(void 0))}),
touchFeedbackOnPointerDown:_.ev(function(w){G==null||G(w);MnN(_.tI(w),e)||(T(w),O(void 0),b(void 0))}),
touchFeedbackOnPointerLeave:_.ev(function(w){MnN(_.tI(w),e)||(b(w),T(void 0),O(void 0))})}};
MnN=function(G,e){e=e===void 0?[]:e;e=[].concat(_.mY(e),["BUTTON".toString()]);G=_.h(G);for(var r=G.next();!r.done;r=G.next()){r=r.value;for(var Z=_.h(e),O=Z.next();!O.done;O=Z.next())if(r.tagName===O.value)return!0}return!1};
hOf=function(G){switch(G){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"}};
T6q=function(G){return G.scrollHeight-G.offsetHeight>1};
DAq=function(G,e){var r;return Qb(G,((r=G.content)==null?void 0:r.length)||0,!e)};
bgU=function(G,e,r,Z,O,M){if(!e||EQa){var T;return Qb(G,((T=G.content)==null?void 0:T.length)||0,!0)}e=Z.value;if(!r.value||!e||!G.content)return G;r=0;Z=G.content.length;T=0;igf||(igf=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var E=igf;for(O=O*M*E;r<=Z;)M=Math.floor(r+(Z-r)/2),E=Qb(G,M)||G,e.firstChild&&(e.firstChild.textContent=E.content),e.scrollHeight>O?Z=M-1:(T=M,r=M+1);return Qb(G,T)};
vQy=function(G,e){var r,Z;return(((r=G.content)==null?void 0:r.length)||0)>(((Z=e.content)==null?void 0:Z.length)||0)};
wWp=function(G,e,r,Z,O,M){var T=_.hT("truncated-text-content"),E=_.hT("truncated-text-content"),b=_.hT("button"),w=_.hT("button"),q=_.hT("button"),t=_.v_().resolve(_.CC),g=_.h(_.Ob(function(){return DAq(G(),O())})),l=g.next().value,X=g.next().value;
g=_.h(_.Ob(function(){return vQy(G(),l())}));
var H=g.next().value,I=g.next().value,C=null;_.Y8(function(){function u(){if(T.value&&b.value&&q.value){var J=M()?G():bgU(G(),O(),T,E,e(),r());X(J);requestAnimationFrame(function(){if(T.value&&b.value&&q.value){var U=T6q(T.value)||vQy(G(),J);I(U);if(!Z()){var e$=T6q(T.value),Dq=r(),bF=T.value,Kf=b.value,ti=q.value,Ry=t==="rtl";if(bF&&Kf){var nf=Kf.offsetLeft;Ry&&(nf=bF.offsetWidth-Kf.offsetWidth-Kf.offsetLeft);if(U){U=Kf.offsetWidth;Kf=bF.offsetWidth;var k4=e$?Kf-U-70:nf-70;Dq="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
Dq+"rem,\n      #000 "+Dq+"rem,\n      #000 100%), linear-gradient(\n      to "+((Ry?"left":"right")+",\n      #000 0px,\n      #000 "+k4+"px,\n      transparent "+(e$?Kf-U:k4+70)+"px)");bF.style.setProperty("-webkit-mask-image",Dq);bF.style.setProperty("mask-image",Dq)}else bF.style.setProperty("-webkit-mask-image",""),bF.style.setProperty("mask-image","");e$?Ry?(ti.style.setProperty("left","0"),ti.style.setProperty("right","unset")):(ti.style.setProperty("left",""),ti.style.setProperty("right",
"0")):Ry?(ti.style.setProperty("left","unset"),ti.style.setProperty("right",nf+"px")):(ti.style.setProperty("left",nf+"px"),ti.style.setProperty("right","unset"))}}}})}}
var P,F;(P=C)==null||(F=P.stop)==null||F.call(P);P=new _.Zp(u,17);u();C=P},"KjwIxd");
_.yY(function(){X(DAq(G(),O()));I(vQy(G(),l()));var u=function(){igf=void 0;var F,J;(F=C)==null||(J=F.fire)==null||J.call(F)};
if(window.ResizeObserver){var P=new ResizeObserver(u);P.observe(T.value);_.yD(function(){var F,J;(F=C)==null||(J=F.stop)==null||J.call(F);P.disconnect()})}else window.addEventListener("resize",u),_.yD(function(){var F,J;
(F=C)==null||(J=F.stop)==null||J.call(F);window.removeEventListener("resize",u)})});
return{isTruncated:H,displayText:l,contentRef:T,hiddenRef:E,placeholderTruncationTextRef:b,hiddenTruncationTextRef:w,truncationTextRef:q}};
$Af=function(G){return{content:G!=null?G:""}};
SFq=function(G){return _.X0(G.onTap)||_.lt(G.rendererContext)};
qFU=function(G){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:G.overflowMenuA11yLabel,onTap:function(e){e.preventDefault();e.stopPropagation();if(G.overflowMenuOnTap){var r=_.fC({elementsCommand:G.overflowMenuOnTap,forceNewState:!0});if(r==null?0:r.onclick)r.onclick(e)}}}};
_.s2=function(G,e,r,Z,O){Z=Z===void 0?{}:Z;if(!O||Math.random()<5E-4){e=e||null;r=r||null;G=G instanceof Error?G:new _.Cr(G);if(G.args)for(var M=_.h(G.args),T=M.next();!T.done;T=M.next())T=T.value,T instanceof Object&&(Z=Object.assign({},T,Z));Z.category="H5 Ads Control Flow";e&&(Z.slot=e?"slot:  "+e.slotType:"");r&&(Z.layout=r?"layout:  "+r.layoutType:"",Z.layoutId=r.layoutId);O&&(Z.known_error_aggressively_sampled=!0);G.args=[Z];_.FH(G)}};
_.tns=function(G,e){e=_.Ah(e);_.Pi(G,"yt-open-popup-action",[e,G])};
_.QO=function(G,e){_.tns(G,_.nQ(e))};
l4p=function(G){if(!G)return"";if(gQ_[G])return gQ_[G];IH||(IH=_.Hp("A"));IH.href!==G&&Pw(IH,G);var e=IH.pathname;gQ_[G]=e.startsWith("/")?e:"/"+e;return gQ_[G]};
ROq=function(){var G=l4p(window.location.href);if(G==="/")return"home";if(G.startsWith("/results"))return"search";if(G.startsWith("/watch"))return"watch";if(G.startsWith("/shorts"))return"shorts";if(G.startsWith("/hashtag"))return"hashtag";if(G.startsWith("/create_channel"))return"create_channel";if(G.startsWith("/@")||G.startsWith("/user/")||G.startsWith("/channel/"))return"channel";if(G.startsWith("/experiments"))return"experiments";if(G.startsWith("/sponsor_channel"))return"sponsorship";if(G.startsWith("/select_site"))return"settings";
if(G.startsWith("/locate"))return"locate";if(G.startsWith("/redeem"))return"redeem";if(G.startsWith("/musicpremium")||G.startsWith("/premium")||G.startsWith("/red"))return"premium";if(G.startsWith("/paid_memberships"))return"paid_memberships";if(G.startsWith("/oops"))return"oops";if(G.startsWith("/clip"))return"clip";var e;return(pW==null?void 0:(e=pW.response)==null?void 0:e.page)==="404"?"404":G.startsWith("/feed/history")?"history":G.startsWith("/feed/library")?"library":G.startsWith("/feed/subscriptions")?
"subscriptions":G.startsWith("/feed/trending")?"trending":G.startsWith("/feed/news_destination")?"news":G.startsWith("/playlist")?"playlist":G.startsWith("/minor_moment")?"minor_moment":G.startsWith("/playable/")||G.match("^/playables/(?!saved).")?"mini_app":G.startsWith("/playables")?"playables":G.startsWith("/create/live/join")?"open_in_app":G.startsWith("/feed/explore")?"explore":"browse"};
_.Kqs=function(){var G=pW==null?void 0:pW.response,e=G==null?void 0:G.endpoint;if(!e)return(G==null?void 0:G.page)==="watch"?"watch":ROq();var r;G=(r=_.a(e==null?void 0:e.commandMetadata,_.rJ))==null?void 0:r.webPageType;r=!1;if(G&&!jva.includes(G))switch(G){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=_.a(e==null?void 0:e.commandMetadata,_.rJ))==null?0:Z.url)&&l4p(_.a(e.commandMetadata,_.rJ).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var O;return(e=(O=_.a(e,_.Mv))==null?void 0:O.browseId)?a4p[e]||"browse":"browse";default:r=!0}if(_.a(e,_.CW)||_.a(e,XWp))return"sponsorship";O=l4p(window.location.href);if(O.startsWith("/experiments"))return"experiments";if(O.startsWith("/create_channel"))return"create_channel";
if(_.a(e,_.G2)&&O.startsWith("/shorts"))return"shorts";if(_.a(e,_.G2)&&O.startsWith("/watch"))return"watch";r&&(e=new _.Cr("Unsupported mWeb page type",{pathname:O,webPageType:G}),_.yx(e));return"browse"};
ut=function(G,e,r,Z){return G&&e?G!==r||e!==Z?(_.s2(Error("Kh"),void 0,void 0,{"stored-slot":G,"stored-layout":e,"latest-slot":r,"latest-layout":Z}),!1):!0:!1};
kIf=function(G,e,r){return G({targetId:e},function(Z){return r.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},Z,{contents:[r.continuationItems?_.a(r.continuationItems[0],f44):{}]}):r.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},Z,{header:r.continuationItems?r.continuationItems[0]:void 0}):Object.assign({},Z,{contents:r.continuationItems?r.continuationItems:[]})})};
HgA=function(G,e,r,Z){if(e=e.trackingParams){var O,M=(O=r.getScreenLayer)==null?void 0:O.call(r);r=_.l4(M);O=_.go(M);if(r&&O){var T=_.b1(e);_.R("combine_ve_grafts")?G.graftServerVe(e,O,M):_.QU(r,O,T);Z==null||Z(T)}}};
oQ4=function(G){var e;return((e=dAN.get(G))==null?void 0:e.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
I4S=function(G,e){var r={type:e.slotType,controlFlowManagerLayer:sv4.get(e.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};e.slotEntryTrigger&&(r.entryTriggerType=e.slotEntryTrigger.triggerType);e.slotPhysicalPosition!==1&&(r.slotPhysicalPosition=e.slotPhysicalPosition);if(G){r.debugData={slotId:e.slotId};if(G=e.slotEntryTrigger)r.debugData.slotEntryTriggerData=Qvi(G);G=e.slotFulfillmentTriggers;r.debugData.fulfillmentTriggerData=[];G=_.h(G);for(var Z=G.next();!Z.done;Z=G.next())r.debugData.fulfillmentTriggerData.push(Qvi(Z.value));
e=e.slotExpirationTriggers;r.debugData.expirationTriggerData=[];e=_.h(e);for(G=e.next();!G.done;G=e.next())r.debugData.expirationTriggerData.push(Qvi(G.value))}return r};
Qvi=function(G,e){var r={type:G.triggerType};e!=null&&(r.category=e);G.triggeringSlotId!=null&&(r.triggerSourceData||(r.triggerSourceData={}),r.triggerSourceData.associatedSlotId=G.triggeringSlotId);G.triggeringLayoutId!=null&&(r.triggerSourceData||(r.triggerSourceData={}),r.triggerSourceData.associatedLayoutId=G.triggeringLayoutId);return r};
pWa=function(G,e,r,Z){e={opportunityType:e};G&&(Z||r)&&(Z=_.Yf(Z||[],function(O){return I4S(G,O)}),e.debugData=Object.assign({},r&&r.length>0?{associatedSlotId:r}:{},Z.length>0?{slots:Z}:{}));
return e};
Cbf=function(G){return nW(G.opportunityAdapterMap).concat(nW(G.triggerAdapterMap)).concat(nW(G.fulfillmentAdapterFactoryMap)).concat(nW(G.slotAdapterFactoryMap)).concat(nW(G.layoutRenderingAdapterFactoryMap))};
nW=function(G){var e=[];G=_.h(G.values());for(var r=G.next();!r.done;r=G.next())r=r.value,r.isAdsControlFlowEventListener&&e.push(r);return e};
ce=function(G){var e=G.slotId,r=G.slotType,Z=G.slotPhysicalPosition;return e===void 0?new mv("Cannot construct a slot due to the missing id.",{adSlotMetadata:G}):r===void 0?new mv("Cannot construct a slot due to the missing type.",{adSlotMetadata:G}):Z===void 0?new mv("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:G}):{slotId:e,slotType:r,slotPhysicalPosition:Z,managerLayer:"external",adSlotLoggingData:G.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new u4S}};
nQ_=function(G){var e=G.layoutId,r=G.layoutType;return e===void 0?new Yb("Cannot construct a layout due to the missing id.",{adLayoutMetadata:G}):r===void 0?new Yb("Cannot construct a layout due to the missing type.",{adLayoutMetadata:G}):{layoutId:e,layoutType:r,managerLayer:"external",adLayoutLoggingData:G.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new u4S,interactionLoggingAdsClientData:{}}};
mAS=function(G){if(G.querySelector("img")){var e=G.querySelector("img");e.addEventListener("error",function(){hli(e.src).then(function(r){(r=_.Jt(r).toString())?e.src=r:e.removeAttribute("src")}).catch(function(){e.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
AI=function(G,e){if(e&&(cRS(e.viewableCommand)||cRS(e.endOfSessionCommand))){var r=YF$(e==null?void 0:e.viewableCommand);e=YF$(e==null?void 0:e.endOfSessionCommand);if(!yO){var Z=_.qt("custom_active_view_tos_timeout_ms");yO=Z>0&&Z!==36E5?new yRq(ARa(),Z):new yRq(ARa())}Fqa(yO,G);JRq(yO,G,r,e)}};
FK=function(G){yO&&Fqa(yO,G)};
ARa=function(){var G=_.xZ("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(G==null?void 0:G.length)===2?G[1]:null};
cRS=function(G){G=_.X0(G);return!(G==null||!G.loggingUrls)&&G.loggingUrls.length>0};
YF$=function(G){if(!G)return[];var e=[],r,Z;((Z=(r=_.X0(G))==null?void 0:r.loggingUrls)!=null?Z:[]).forEach(function(O){O.baseUrl&&e.push(O.baseUrl)});
return e};
B6N=function(G){if(_.R("stop_av_measurement_on_detach"))return function(){FK(G)}};
xAi=function(G){return function(){_.R("stop_av_measurement_on_detach")&&FK(G)}};
Pb$=function(G){if(_.R("stop_av_measurement_on_detach"))return function(){FK(G)}};
UAN=function(G){return G.shorts.isDesktopSmallWidth};
_.zO_=function(G){return G.shorts.isShortsActive};
_.WqF=function(G){return G.shorts.isWatchWhileMode};
_.JI=function(G){return G.shorts.isFullscreen};
_.Be=function(G){return G.shorts.isShortsPipActive};
Lqy=function(G){var e,r;if(G=(e=_.a(G.reelsAdCardButtoned,N6_))==null?void 0:(r=e.animatedRenderingConfig)==null?void 0:r.easeOutSeconds)return G+"s"};
e0y=function(G,e,r){return _.D(function(Z){return Z.return(new Promise(function(O){var M=new Image;M.onload=function(){O(new GKf(G,e,r,M.naturalWidth,M.naturalHeight))};
M.src=r.toString()}))})};
ra$=function(G,e){return Math.round(G/1E-5)===Math.round(e/1E-5)};
Zcs=function(G,e){return Math.round(G/1E-5)===Math.round(e/1E-5)};
OcS=function(G,e){return G.year===e.year&&G.month===e.month&&G.day===e.day};
M5U=function(G,e){return G.year!==e.year?G.year<e.year:G.month!==e.month?G.month<e.month:G.day<e.day};
h0A=function(G){return G.day===V5N(G.year,G.month)?G.month===11?{year:G.year+1,month:0,day:1}:{year:G.year,month:G.month+1,day:1}:{year:G.year,month:G.month,day:G.day+1}};
TbU=function(){var G=new Date,e={year:G.getFullYear(),month:G.getMonth(),day:G.getDate()};return{start:e,end:{year:G.getFullYear()+2,month:G.getMonth(),day:G.getDate()},selectedDate:h0A(e)}};
DHf=function(G){return(new uw(2)).format(new Date(G.year,G.month,G.day))};
Ekf=function(G){return{year:G.getFullYear(),month:G.getMonth(),day:G.getDate()}};
ics=function(G,e){G=(G+(Number(e.utcOffsetSec)+(new Date(G*1E3)).getTimezoneOffset()*60))*1E3;e=Ekf(new Date(G));return{date:e,secondsSinceMidnight:Math.floor((G-(new Date(e.year,e.month,e.day)).getTime())/1E3)}};
bcS=function(G,e){e=e.months.findIndex(function(r){return r.year===G.year&&r.month===G.month});
return e>=0?e:void 0};
vk_=function(G){if(!G)return!1;try{if(G.host&&G.host.tagName==="YT-FORMATTED-STRING"&&G.host.id==="contenteditable-textarea"||G.nodeType===Node.ELEMENT_NODE&&G.tagName==="YTD-COMMENTBOX")return!0}catch(e){return!1}return vk_(G.parentNode)};
xb=function(G){return G?!(G.tagName!=="A"||!G.href||!G.classList.contains("yt-simple-endpoint")):!1};
w3U=function(G){return G?G.tagName==="IMG"&&G.classList.contains("emoji"):!1};
$Hf=function(G,e,r){if(!G)return null;var Z=xb(G);if(Z&&r)return e=G.pathname.substring(G.pathname.indexOf("/channel/")+9),document.createTextNode("@"+e);if(Z&&!r)return document.createTextNode("");if(w3U(G))return r=G.alt,G=G.dataset.emojiId,!G&&e&&(e=_.Pe(e,r))&&e.isCustomEmoji&&(G=e.emojiId),G?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+G+">"):document.createTextNode(r);Z=G.cloneNode(!1);for(var O=0;O<G.childNodes.length;++O){var M=$Hf(G.childNodes[O],e,r);M&&Z.appendChild(M)}return Z};
U2=function(G){return G?xb(G)?G:U2(G.lastChild):null};
SxU=function(G){return G?xb(G)?G:SxU(G.firstChild):null};
qxN=function(G){if(!G)return null;for(var e=G.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=U2(e))?G=e:G=(G=G.parentNode)?U2(G.previousElementSibling):null;return G};
t5U=function(G){if(!G)return null;for(var e=G.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=SxU(e))?e:t5U(G.parentNode)};
gka=function(G){var e=_.z_(),r=e.JSC$11352_getStartNode();if(!vk_(r.parentNode))return null;e=e.JSC$11352_getStartOffset();if(r.nodeType===Node.TEXT_NODE){var Z=_.B2(r,xb);if(Z){if(G&&e===0||!G&&e===r.length)return Z}else{if(G&&e===r.length)return!r||r.nodeName==="BR"||r.nextElementSibling&&_.We(r.nextElementSibling,"display")==="block"?null:SxU(r.nextElementSibling);if(!G&&e===0)return r?U2(r.previousElementSibling):null}}if(r.nodeType===Node.ELEMENT_NODE)if(G){if(0<=e&&e<r.childNodes.length)return SxU(r.childNodes[e])}else if(0<
e&&e<=r.childNodes.length)return U2(r.childNodes[e-1]);return null};
l34=function(G,e,r){if(!G)return null;if(G.nodeType===Node.TEXT_NODE)if(r){var Z=qxN(G);if(Z&&!/^\s+\S/.test(G.wholeText.substr(0,e)))return Z}else if((Z=t5U(G))&&!/\S\s+/.test(G.wholeText.substr(e,G.wholeText.length)))return Z;return G.nodeType===Node.ELEMENT_NODE?r?qxN(G.childNodes[e]):t5U(G.childNodes[e]):l34(G.parentNode,e,r)};
R0U=function(G){if(G.hasChildNodes())switch(G.tagName){case "DIV":case "A":case "SPAN":var e="";for(G=G.firstChild;G;G=G.nextSibling)e+=R0U(G);return e;default:return""}else switch(G.nodeType){case 3:return G.textContent;default:return""}};
No=function(G,e){return G.year===e.year&&G.month===e.month&&G.day===e.day};
LW=function(G,e){return G.year!==e.year?G.year<e.year:G.month!==e.month?G.month<e.month:G.day<e.day};
jMN=function(G){return{year:G.getFullYear(),month:G.getMonth(),day:G.getDate()}};
a3_=function(G){var e=v94;e=e===void 0?v94:e;e(new Date(G.year,G.month,G.day))};
G4=function(G){return jMN(new Date(Number(G.seconds)*1E3))};
X3S=function(G){return G.year!==void 0&&G.month!==void 0&&G.day!==void 0};
Kzy=function(G){return G.start!==void 0&&G.end!==void 0};
f3_=function(G){return Kzy(G)?G.start:G};
kKF=function(G){return Kzy(G)?G.end:void 0};
dHp=function(G,e){for(var r=[],Z=new Date(G.start.year,G.start.month);Z.getFullYear()<G.end.year||Z.getFullYear()===G.end.year&&Z.getMonth()<=G.end.month;){var O=r,M=O.push,T=Z.getFullYear(),E=Z.getMonth(),b=G,w=e,q=void 0,t=[],g=Object.freeze({extraCssClass:"invisible"}),l=new Date(T,E),X=jMN(l);l=l.getDay();for(var H=jMN(new Date);X.month===E;){l!==Hcf&&q||(q=Array.from({length:7}).fill(g),t.push(q));var I={date:{year:T,month:E,day:X.day},extraCssClass:"",debugClass:""};I.extraCssClass=w(I.date,
X,H,b).trim();q[(l-Hcf+7)%7]=I;X=X.day===V5N(X.year,X.month)?X.month===11?{year:X.year+1,month:0,day:1}:{year:X.year,month:X.month+1,day:1}:{year:X.year,month:X.month,day:X.day+1};l=(l+1)%7}M.call(O,{weeks:t,monthLabel:eM.SHORTMONTHS[E]+" "+T,year:T,month:E,monthLabelExtraCssClass:t[0][2]===g?"shift-down-label":""});Z.setMonth(Z.getMonth()+1)}return r};
ok4=function(G,e){e=e.months.findIndex(function(r){return r.year===G.year&&r.month===G.month});
return e>=0?e:void 0};
QM$=function(G,e){a:{var r=r===void 0?[2,3]:r;r=_.h(r);for(var Z=r.next();!Z.done;Z=r.next()){var O=new Date;if((new sM4(Z.value)).parse(e,O,{validate:!0})){O.setHours(0,0,0,0);e=O;break a}}e=null}if(!e)return{isValid:!1,value:void 0};e=jMN(e);r=G.end;return LW(e,G.start)||LW(r,e)?{isValid:!1,value:void 0}:{isValid:!0,value:e}};
nks=function(G){var e=I3s;e=e===void 0?p3a:e;var r=G.columnsToShow||[],Z=C5s(G.columnDimensions,G.columnsToShow,G.leftFloatingColumns,e);return r.map(function(O,M){var T=G.columns[O];if(T===void 0)throw Error("Qh");var E=Z?Z[M]:"";var b=G.getCustomTooltip?G.getCustomTooltip(O,T.headerTooltipParagraphs):T.headerTooltipParagraphs;var w=uva(G,O);return{type:O,index:M,style:E,classes:w,headerName:T.headerName||"",headerIcon:T.headerIcon,headerTooltipParagraphs:b||[],headerTooltipHelpContext:T.headerTooltipHelpContext,
sortOrders:T.sortOrders||[],selectionState:T.isSelectionCheckbox?G.selectionState:void 0}})};
uva=function(G,e){var r=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],Z=G.columns[e];if(Z===void 0)return"";var O=r.includes("DEFAULTS")&&Z.cssClass?[Z.cssClass]:[];if(r.includes("SORTING")){Z.sortOrders&&Z.sortOrders.length&&O.push("sortable");if(G.sorting&&G.sorting.columnType===e)a:switch(G.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var M="column-sorted";break a;default:M=""}else M="";M&&O.push(M)}r.includes("FLOATING")&&(e=G.columnsToShow.indexOf(e),G.leftFloatingColumns&&e<G.leftFloatingColumns&&
O.push("floating-column"),G.leftFloatingColumns&&e===G.leftFloatingColumns-1&&O.push("last-floating-column"));r.includes("RIGHT_ALIGN")&&Z.rightAlignHeader&&O.push("right-align");return O.filter(function(T){return T}).join(" ")};
C5s=function(G,e,r,Z){r=r===void 0?0:r;Z=Z===void 0?p3a:Z;if(G){var O=[],M=0;mHq(G,e,Z).forEach(function(T,E){var b="min-width:"+T.minWidth+"px;padding-left:"+T.paddingLeft+"px;padding-right:"+T.paddingRight+"px;flex:"+T.flexGrow+" 0 "+T.minWidth+"px;";T.maxWidth!==Infinity&&(b=[b,"max-width:"+T.maxWidth+"px;"].join(""));M>0&&E<r&&(b=[b,"left:"+M+"px;"].join(""));O.push(b);M+=T.minWidth+T.paddingLeft+T.paddingRight});
return O}};
mHq=function(G,e,r){r=r===void 0?p3a:r;return e.map(function(Z,O){Z=G&&G[Z]||{};var M=O===0?r.paddingLeftFirstColumn:r.padding;Z.paddingLeft!==void 0&&(M=Z.paddingLeft);O=O===e.length-1?r.paddingRightLastColumn:r.padding;Z.paddingRight!==void 0&&(O=Z.paddingRight);return{paddingLeft:M,paddingRight:O,minWidth:Z.minWidth!==void 0?Z.minWidth:r.minWidth,maxWidth:Z.maxWidth!==void 0?Z.maxWidth:r.maxWidth,flexGrow:Z.flexGrow!==void 0?Z.flexGrow:r.flexGrow}})};
caf=function(G){var e=G.reduce(function(Z,O){var M=O.columnId,T={};O.headerText&&(T.headerName=_.mG(O.headerText));O.rightAlignHeader&&(T.rightAlignHeader=O.rightAlignHeader);var E;if((E=O.headerIcon)==null?0:E.iconType)T.headerIcon=_.Ne(O.headerIcon.iconType);Z[M]=T;return Z},{}),r=G.filter(function(Z){return!Z.hideColumn}).map(function(Z){return Z.columnId});
G=G.filter(function(Z){return!!Z.dimensions}).reduce(function(Z,O){Z[O.columnId]=O.dimensions;
return Z},{});
return{columns:e,columnsToShow:r,columnDimensions:G}};
_.Yxs=function(G){return G?G.simpleText?G.simpleText:G.runs?G.runs.map(function(e){return e.text}).join(""):"":""};
xHa=function(G){var e=G.data;var r=G.onTap;var Z=G.isSelected;var O=G.onFocusIn;if(!e)return{};G=yap(e);Z===void 0&&(Z=e==null?void 0:e.isSelected);var M;return{text:Aa4(e,G),startIcon:(M=e.icon)==null?void 0:M.iconType,state:Z?0:2,type:0,style:Fzs(e),onTap:Jai(e,r),accessibilityLabel:BbN(e,G),onFocusIn:function(){return O==null?void 0:O()}}};
Aa4=function(G,e){if(!e)return G.text?_.Yxs(G.text):void 0};
Fzs=function(G){var e;switch((e=G.style)==null?void 0:e.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
Jai=function(G,e){return function(r){e==null||e(r,G)}};
yap=function(G){G=G.style&&G.style.styleType;return!EQa&&G==="STYLE_EXPLORE_LAUNCHER_CHIP"};
BbN=function(G,e){if(e){var r,Z,O;return(O=(r=G.accessibilityData)==null?void 0:(Z=r.accessibilityData)==null?void 0:Z.label)!=null?O:Aa4(G,!1)}};
P5F=function(G,e){return _.e6(G.entities,"chipEntity",e)};
z0U=function(G,e,r,Z){return function(){var O=UHa.has(G.displayType)&&G.selected,M=O&&G.deselectCommand?G.deselectCommand:G.tapCommand;!M||O&&Z||_.HQ(M,{form:{element:e==null?void 0:e.value}});r==null||r()}};
r7=function(G){return{signalAction:{signal:G}}};
LzU=function(){return _.xZ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?WzS:_.NbS};
GTS=function(G,e){G=G===void 0?"SOFT_RELOAD_PAGE":G;e=e===void 0?49504:e;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.Bn(_.OK("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:e}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:G}}]}}}};
e__=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Bn(_.OK("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:LzU()}};
rNF=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Bn(_.OK("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:LzU()}};
Zuf=function(G,e){var r=_.Bn(_.OK("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),Z=_.Bn(_.OK("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),O={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Bn(_.OK("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};O.serviceEndpoint=G?G:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[r7("SOFT_RELOAD_PAGE")]}};return{title:r,bodyText:Z,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:O},
style:{value:e!=null?e:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
Mhy=function(G){G=G===void 0?{}:G;return{title:_.Bn(G.localizedZeroStateTitleText===void 0?"":G.localizedZeroStateTitleText),bodyText:_.Bn(G.localizedZeroStateMessage===void 0?"":G.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Bn(G.localizedZeroStateButtonText===void 0?"":G.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[Ous]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
h_F=function(G){G=G===void 0?{}:G;return{title:_.Bn(G.localizedOptInBannerTitleText===void 0?"":G.localizedOptInBannerTitleText),titleLength:19,subtitle:_.Bn(G.localizedOptInMessage===void 0?"":G.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Bn(_.OK("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:_.Bn(_.OK("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:[Vh$]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
E7y=function(G,e){var r=e=e===void 0?{}:e;e=r.offlineTitleText===void 0?"":r.offlineTitleText;var Z=r.offlineDescriptionText===void 0?"":r.offlineDescriptionText,O=r.formattedSupplementalText,M=r.actionButtonText===void 0?"":r.actionButtonText,T=r.titleText===void 0?"":r.titleText;r=r.descriptionText===void 0?"":r.descriptionText;var E={title:M,accessibilityText:M,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"}}}}};G||(T=e,r=Z,E={title:M,accessibilityText:M,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:_.Bn(T),titleLength:T.length,overrideTitleMaxFontSize:30,subtitle:_.Bn(r),supplementalText:O,primaryButton:{buttonViewModel:E},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[TYi]},darkTileImage:{thumbnails:[Dsp]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.v7$=function(G,e,r,Z,O,M,T,E,b,w,q){O=O===void 0?!1:O;M=M===void 0?!1:M;T=T===void 0?0:T;E=E===void 0?-Infinity:E;b=b===void 0?!1:b;w=w===void 0?!1:w;q=q===void 0?!1:q;var t=[],g=_.Bn(_.OK("SMART_DOWNLOADS",void 0,"Smart downloads")),l=_.Bn(iuS(T,E,G.length));E=T=void 0;w?T={statementBannerRenderer:E7y(q,Z)}:O?G.length>0?E=bup(G,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.R("kevlar_manual_downloads_above"),g,l):b?E={alertBannerViewModel:{heading:{content:r.localizedOptInBannerTitleText===
void 0?"":r.localizedOptInBannerTitleText},body:{content:r.localizedPromptMessage===void 0?"":r.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.OK("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.OK("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:_.jqA}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:M&&(E={backgroundPromoRenderer:{bodyText:_.Bn(_.OK("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"}}}):
M&&(E={alertBannerViewModel:{heading:{content:r.localizedOptInBannerTitleText===void 0?"":r.localizedOptInBannerTitleText},body:{content:r.localizedOptInMessage===void 0?"":r.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.OK("TURN_ON",void 0,"Turn on"),accessibilityText:_.OK("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}}}}}});r=_.Bn(_.OK("YOUR_DOWNLOADS",void 0,"Your downloads"));Z=void 0;e.length>0?(Z=void 0,_.R("kevlar_display_downloads_numbers")&&(Z=_.Bn(_.Mn("VIDEO_COUNT",e.length))),Z=bup(e,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,r,Z)):O||G.length||
w||(Z={backgroundPromoRenderer:{bodyText:_.Bn(_.OK("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}}}});T?t.push({richSectionRenderer:{content:T}}):E&&!_.R("kevlar_manual_downloads_above")&&t.push({richSectionRenderer:{content:E,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
Z&&t.push({richSectionRenderer:{content:Z,loggingDirectives:{clientVeSpec:{uiType:51721}}}});E&&_.R("kevlar_manual_downloads_above")&&t.push({richSectionRenderer:{content:E,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(e.length>0||O&&G.length>0&&!w)&&t.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Bn(_.OK("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:t}};
_.$sy=function(G){return wDU(G,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.SRf=function(G){return wDU(G,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
wDU=function(G,e){var r=[];G=bup(G,e,!0);r.push({richSectionRenderer:{content:G}});return{contents:r}};
bup=function(G,e,r,Z,O){r=r===void 0?!1:r;var M="RESPONSIVE_SIZE_STANDARD";_.R("kevlar_standard_rich_grid_on_offline_home")&&e==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?M="RESPONSIVE_SIZE_STANDARD":_.R("kevlar_modern_downloads_compact")?M="RESPONSIVE_SIZE_COMPACT":_.R("kevlar_modern_downloads_extra_compact")?M="RESPONSIVE_SIZE_EXTRA_COMPACT":_.R("kevlar_modern_downloads_tiny")&&(M="RESPONSIVE_SIZE_TINY");G={isExpanded:r,contents:Z9(G),entitySelectorType:e,responsiveContainerConfiguration:{responsiveSize:M}};
Z&&(G.title=Z);O&&(G.subtitle=O);r||(_.R("kevlar_smart_downloads_show_more_button")?(G.showMoreButton={buttonRenderer:{accessibility:{label:_.OK("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.Bn(_.OK("SHOW_MORE",void 0,"Show more"))}},G.showLessButton={buttonRenderer:{accessibility:{label:_.OK("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.Bn(_.OK("SHOW_LESS",void 0,"Show less"))}}):(G.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.OK("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}}}},G.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.OK("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}}}},G.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.OK("VIEW_ALL",void 0,"View all"),accessibilityText:_.OK("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:_.FJ("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:G}};
Z9=function(G){var e=[];G=_.h(G);for(var r=G.next();!r.done;r=G.next())if(r=r.value,MUU(r)){var Z=e,O=Z.push;var M=void 0;if(r==null?0:(M=r.videoEntity)==null?0:M.videoId){M=HS(_.Yt().getState(),r.videoEntity.videoId);var T=_.Yt().getState();var E=_.GF(r.videoEntity.videoId,"mainVideoEntity");T=!!_.$t(T.entities)[E];T={videoId:r.videoEntity.videoId,title:xJ(r.videoEntity.title),shortBylineText:xJ(r.channelEntity.title),thumbnail:r.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:T&&_.R("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:CJi(r.videoEntity.videoId,M,r.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.OK("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};r.videoEntity.lengthSeconds&&(T.thumbnailOverlays=T9_(r.videoEntity.lengthSeconds,M));T.isWatched=M>0;_.R("kevlar_modern_downloads_page")&&(T.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:r.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.OK("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},T.badges=void 0);r=T}else r={};O.call(Z,{richItemRenderer:{content:{videoRenderer:r},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(Obq(r)){Z=e;O=Z.push;var b=E=M=void 0,w=void 0,q=void 0,t=void 0,g=void 0,l=void 0,X=void 0,H=void 0,I=void 0,C=void 0;T=r.mainPlaylistEntity.playlistId;var u=r==null?void 0:(C=r.mainPlaylistEntity)==null?void 0:(I=C.thumbnailStyleData)==null?void 0:(H=I[0])==null?void 0:(X=H.value)==null?void 0:(l=X.collageThumbnail)==
null?void 0:l.coverThumbnail;if(T&&u){l=urp(T);!_.R("enable_offline_playlist_page")&&(r==null?0:(g=r.mainPlaylistEntity)==null?0:g.videos)&&(g=r==null?void 0:(t=r.mainPlaylistEntity)==null?void 0:(q=t.videos)==null?void 0:q[0],q=_.Wn(g).entityId,q=JSON.parse(q).videoId,q!==void 0&&(l=HS(_.Yt().getState(),q),l=_.Jy(q,T,void 0,void 0,l)));q=[];if(r==null?0:(w=r.mainPlaylistEntity)==null?0:(b=w.videos)==null?0:b.length)b=bKA(),w=Object,q=w.assign,t=(t=iK$(r==null?void 0:r.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.Bn(t),icon:{iconType:"PLAYLISTS"}}}:void 0,q=[b,q.call(w,{},(E=t)!=null?E:{})];r={playlistId:T,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:u}},navigationEndpoint:l,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:q,title:xJ(r.mainPlaylistEntity.title),shortBylineText:xJ(r==null?void 0:(M=r.channelEntity)==null?void 0:M.title),badges:[{metadataBadgeRenderer:{label:_.OK("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.R("kevlar_modern_downloads_page")&&(r.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:qRs,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:T,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.OK("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},r.badges=void 0)}else r=void 0;O.call(Z,{richItemRenderer:{content:{playlistRenderer:r},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return e};
iuS=function(G,e,r){G=G?tha(G):"";e!==void 0&&isFinite(e)?e===0?e=_.OK("UPDATING",void 0,"Updating..."):(e=hKs(new Date(e),new Date),e=_.OK("UPDATED_TIME",{relative_time:e},"Updated "+e)):e="";var Z="";G&&e&&(Z=" \u2022 ");if(r&&_.R("kevlar_display_downloads_numbers")){r=_.Mn("VIDEO_COUNT",r);if(G||e)Z=" \u2022 ";return r+Z+G+Z+e}return G+Z+e};
g7F=function(G){return zJS(G.entities).length};
_.ly4=function(G,e){var r=He(G.responsiveSize),Z;G=!((Z=G.responsiveMap)==null||!Z.some(function(O){return O.containerSize==="CONTAINER_SIZE_NARROW"&&O.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:e,sizing:r,enableFullBleedForSingleCol:!1,isCompactList:r==="COMPACT"&&G}};
R_a=function(G,e){return _.e6(G.entities,"votingEntity",e)};
Oz=function(G){if(G){var e;return((e=_.v_().resolve(_.bq(_.Ig)))==null?0:e())?G.darkTheme:G.lightTheme}};
jzA=function(G,e){if(G.simpleText)return Object.assign({},G,{simpleText:og(G.simpleText,e)});if(!G.runs)return G;for(var r=Object.assign({},G,{runs:[]}),Z=0,O=_.h(G.runs),M=O.next();!M.done;M=O.next())if(M=M.value,M.text)if(Z+M.text.length<=e)r.runs.push(M),Z+=M.text.length;else return r.runs.push(Object.assign({},M,{text:og(M.text,e-Z)})),r;return G};
ayA=function(G,e){return _.e6(G.entities,"chipBarStateEntity",e)};
XDU=function(G){switch(G){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""}};
Kh4=function(G,e){return{triggeringElement:G,onDwellTriggeredFn:function(){var r={triggeringElement:G,loadVideoPreviewEventData:e},Z=document.querySelector(".video-preview");Z&&Z.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:r}))},
onDwellEndFn:function(){var r=document.querySelector(".video-preview");r&&r.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
fy$=function(G,e){var r=_.v_().resolve(_.bq(KP_)),Z=function(){var O=e();return r&&O?Kh4(G.value,O):null};
_.Y8(function(){var O=Z();r&&O&&Promise.resolve().then(function(){r.registerElement(O)});
_.yD(function(){r&&O&&Promise.resolve().then(function(){_.KW(r,O)})})},"csPUge")};
HuS=function(G){var e=G.dataset.resizeObserverId;if(e)return e;e=""+kTS++;return G.dataset.resizeObserverId=e};
dsp=function(G,e){var r=HuS(G);M$.has(r)||M$.set(r,new Set);M$.get(r).add(e);VM.has(r)&&e(Object.assign({},{target:G},VM.get(r)))};
o7N=function(G){G=_.h(G);for(var e=G.next();!e.done;e=G.next()){e=e.value;var r=HuS(e.target),Z=Object.assign({},{target:e.target},VM.get(r));if(Z!=null&&Z.contentRect?Z.contentRect.width!==e.contentRect.width||Z.contentRect.height!==e.contentRect.height:1)for(VM.set(r,{borderBoxSize:e.borderBoxSize,contentBoxSize:e.contentBoxSize,contentRect:e.contentRect,devicePixelContentBoxSize:e.devicePixelContentBoxSize}),r=_.h(M$.get(r)||[]),Z=r.next();!Z.done;Z=r.next())Z=Z.value,Z(e)}};
Qzq=function(){return hZ?hZ:hZ=new szS(o7N)};
Iy_=function(G,e){var r=HuS(G);M$.has(r)&&(M$.get(r).delete(e),M$.get(r).size===0&&(M$.delete(r),VM.delete(r),hZ.unobserve(G),delete G.dataset.resizeObserverId));M$.size===0&&hZ&&(hZ.disconnect(),hZ=void 0)};
C$_=function(G,e){var r=_.v_().resolve(bC);return pDp.map(function(Z){return r.observe(G,e,Z)})};
uVs=function(G){var e=_.v_().resolve(bC);G.forEach(function(r){e.unobserveByKey(r)})};
_.T4=function(G,e){var r=Object.assign({},n7S,e);e=_.h(Kfa());var Z=e.next().value,O=e.next().value,M=function(T){var E=T.contentRect.height;if((T=T.contentRect.width)||E||r.canHaveZeroSize)Z.width()===T&&Z.height()===E||O(Z,{height:E,width:T})};
_.yY(function(){var T=G instanceof HTMLElement?G:G.value,E=msA(M,r.throttleMs),b=[];r.useVisibilityObserver&&(b=C$_(T,function(w,q){requestAnimationFrame(function(){q==="visible"?(dsp(T,E),Qzq().observe(T)):Iy_(T,E)})}));
b.length||(dsp(T,E),Qzq().observe(T));_.yD(function(){b.length&&(uVs(b),b.length=0);Iy_(T,E)})});
return Z};
YR_=function(G,e,r,Z,O){G=e?G.switchOffCommand:G.switchOnCommand;if(Z&&O)cNS(G,r,O);else{var M,T;(M=_.fC({elementsCommand:G}))==null||(T=M.onclick)==null||T.call(M,r)}};
cNS=function(G,e,r){G=_.fC({elementsCommand:G,additionalCommandArgs:{commandController:{onSuccess:function(){r(!1)},
onServerError:function(){r(!1)}}}});
if(G==null?0:G.onclick)G.onclick(e),r(!0)};
ANy=function(G){if(G)return _.a(G,yN$)};
FhU=function(G,e){if(!((G==null?0:G.entitySelectorType)&&(G==null?0:G.entityKey)))return{};switch(G.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.R("enable_web_shorts_captions_language_command")){var r;var Z=(r=_.eV())==null?void 0:r.getOption("captions","track");var O,M=typeof(Z==null?void 0:Z.translationLanguage)==="object"&&((O=Z.translationLanguage)==null?void 0:O.languageName)||(Z==null?void 0:Z.displayName)||"";Z={data:Object.assign({},
!!M&&{selectionText:{content:M}},!!M&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof Z==="undefined"})}}else Z={};return Z;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.R("web_shorts_audio_track_picker")){var T;O=((T=_.eV())==null?void 0:T.getAudioTrack())||void 0;r=O==null?void 0:(M=O.getLanguageInfo())==null?void 0:M.getName();O={data:Object.assign({},{selectionText:{content:r}},r&&!(O==null?0:(Z=O.getLanguageInfo())==
null?0:Z.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else O={};return O;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return Z=G!=null&&G.entityKey?(Z=_.Gh(e,G.entityKey))?{isHidden:(Z==null?void 0:Z.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},Z;default:return{}}};
JNF=function(G){var e=["A".toString(),"BUTTON".toString()];return function(r){var Z=function(O){_.g8(_.tI(O),r,e)||G(O)};
r.addEventListener("click",Z);return function(){r.removeEventListener("click",Z)}}};
_.BYU=function(G){return function(){return _.a(G(),_.D9)}};
xsN=function(G){switch(G==null?void 0:G.all){case "LINEAR_LAYOUT_SPACE_S1":return 4;case "LINEAR_LAYOUT_SPACE_S2":return 8;case "LINEAR_LAYOUT_SPACE_S3":return 12;case "LINEAR_LAYOUT_SPACE_S4":return 16;case "LINEAR_LAYOUT_SPACE_S5":return 20;case "LINEAR_LAYOUT_SPACE_S6":return 24;case "LINEAR_LAYOUT_SPACE_S7":return 28;case "LINEAR_LAYOUT_SPACE_S8":return 32;case "LINEAR_LAYOUT_SPACE_S9":return 36;case "LINEAR_LAYOUT_SPACE_S10":return 40;default:return 0}};
P$y=function(G){switch(G){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
UsS=function(G){switch(G){case "JUSTIFY_CONTENT_CENTER":return"ytLinearLayoutViewModelJustifyContentCenter";case "JUSTIFY_CONTENT_FLEX_END":return"ytLinearLayoutViewModelJustifyContentFlexEnd";case "JUSTIFY_CONTENT_SPACE_AROUND":return"ytLinearLayoutViewModelJustifyContentSpaceAround";case "JUSTIFY_CONTENT_BETWEEN":return"ytLinearLayoutViewModelJustifyContentBetween";case "JUSTIFY_CONTENT_SPACE_EVENLY":return"ytLinearLayoutViewModelJustifyContentSpaceEvenly";default:return"ytLinearLayoutViewModelJustifyContentFlexStart"}};
z_f=function(G){switch(G){case "ALIGN_ITEMS_START":return"ytLinearLayoutViewModelAlignItemsStart";case "ALIGN_ITEMS_END":return"ytLinearLayoutViewModelAlignItemsEnd";case "ALIGN_ITEMS_CENTER":return"ytLinearLayoutViewModelAlignItemsCenter";case "ALIGN_ITEMS_BASELINE_FIRST":return"ytLinearLayoutViewModelAlignItemsBaselineFirst";case "ALIGN_ITEMS_BASELINE_LAST":return"ytLinearLayoutViewModelAlignItemsBaselineLast";default:return"ytLinearLayoutViewModelAlignItemsStretch"}};
eV$=function(G,e,r){if(e)return[WhA];switch(G){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[Ez];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return r?[Ez]:[NY4,Ez];case "TRANSFER_STATE_PAUSED_BY_USER":return[Lhf,Ez];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[GWS,Ez];default:return[WhA]}};
rfF=function(G,e,r,Z){return eV$(G,e,Z).map(function(O){var M=O.text,T=O.iconType,E=O.videoAction;O=O.playlistAction;M=M?{content:M}:void 0;T=T&&{sources:[{clientResource:{imageName:T}}]};var b=(0,_.c2.unsafeClone)(r);if(b){var w=_.a(b,_.O2),q=_.a(b,_.Mo);w&&E?w.action=E:q&&O&&(q.action=O)}return{title:M,leadingImage:T,rendererContext:b&&{commandContext:{onTap:{innertubeCommand:b}}}}})};
ZkS=function(G){G=_.lt(G.rendererContext);var e;return(e=_.a(G,_.Mo))==null?void 0:e.playlistId};
Ok$=function(G){var e;return(e=G.listItems)==null?void 0:e.some(function(r){var Z;return _.RH((Z=_.a(r,_.ve))==null?void 0:Z.rendererContext)})};
hVy=function(G){var e;return(e=G.listItems)==null?void 0:e.some(function(r){var Z,O,M=(O=(Z=_.a(r,Mtq))==null?void 0:Z.defaultListItem)!=null?O:r;r=_.a(M,_.ve);return!!_.a(r==null?void 0:r.leadingAccessory,VtU)})};
bn=function(G){var e=_.v_().resolve(_.bq(_.Ig));return e!=null&&e()?G.darkThemeColorPalette:G.lightThemeColorPalette};
w7=function(G){return{primaryTextColor:v4(G,0),secondaryTextColor:v4(G,1),optionColor:v4(G,2),backgroundColor:v4(G,3),videoBackgroundColor:v4(G,4)}};
v4=function(G,e){if(G){switch(e){case 0:G=G.primaryTitleColor;break;case 1:G=G.secondaryTitleColor;break;case 2:G=G.surgeColor;break;case 3:G=G.section2Color;break;case 4:G=G.section3Color;break;default:return}if(G)return _.RB(G)}};
ERS=function(G){var e=G.element;var r=G.veType;var Z=G.storedVisualElement===void 0?null:G.storedVisualElement;var O=G.elementIndex===void 0?0:G.elementIndex;G=G.clientYouTubeData;var M=_.l4();M!==TNy&&(DiF.clear(),TNy=M);if(e.visualElement&&DiF.has(e.visualElement))return null;if(Z&&DiF.has(Z))return e.visualElement=Z,null;r=_.OY(_.h_(),{veType:r,elementIndex:O,clientYouTubeData:G});if(!r)return null;e.visualElement=r;DiF.add(r);return r};
_.$i=function(G,e,r,Z){r=r===void 0?null:r;Z=Z===void 0?nap:Z;var O=O===void 0?null:O;qq(function(){if(e){r instanceof Function&&(r=r());var M=ERS({element:e,veType:G,storedVisualElement:r,clientYouTubeData:void 0});M&&(Y7U(e,O),Z(M))}})};
ikA=function(G){return G?_.jF(G):""};
bki=function(G){return(G==null?void 0:G.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
vR_=function(G,e){return _.e6(G.entities,"videoOverviewAsyncDataEntity",e)};
w6f=function(G,e){var r;return"linear-gradient(to bottom, "+((r=e==null?void 0:e.map(function(Z){var O=G?Z.darkThemeColor:Z.lightThemeColor;return O?_.jF(O)+" "+((Z==null?void 0:Z.startLocation)||0)*100+"%":"transparent"}))==null?void 0:r.join(", "))+")"};
$iF=function(G,e,r,Z,O){if(!((Z==null?0:Z.height)&&(Z==null?0:Z.width)))return{size:0};var M=Z.width;Z=Z.height;if(O)return e==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||e==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&M>Z?{size:312/zbs}:e==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(r!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||G!==1&&G!==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===M)switch(G){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>M)switch(G){case 1:case 3:return{size:240*UL4};default:return{size:360*UL4}}switch(G){case 1:case 2:return{size:1/zbs*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.SoS=function(G){if(!("matchMedia"in window))return _.GG(Error("Rh")),function(){return!1};
var e=window.matchMedia(G);G=_.h(_.XQ(e.matches,void 0,"jLJc8e"));var r=G.next().value,Z=G.next().value,O=function(M){Z(M.matches)};
e.addEventListener?(e.addEventListener("change",O),_.yD(function(){e.removeEventListener("change",O)})):e.addListener&&(e.addListener(O),_.yD(function(){e.removeListener(O)}));
return r};
qo4=function(G){return G==="IMAGE_BANNER_STYLE_INSET"||G==="IMAGE_BANNER_STYLE_UNKNOWN"};
tt_=function(){if(!("matchMedia"in window))return _.GG(Error("Rh")),function(){return 0};
var G=AH(function(){return window.matchMedia("(max-width: 527.9px)")}),e=AH(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),r=AH(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),Z=AH(function(){return window.matchMedia("(min-width: 1024px)")}),O=_.h(_.XQ(G.matches,void 0,"og9kEc")),M=O.next().value,T=O.next().value;
O=_.h(_.XQ(e.matches,void 0,"ybDWCb"));var E=O.next().value,b=O.next().value;O=_.h(_.XQ(r.matches,void 0,"o0Gfh"));var w=O.next().value,q=O.next().value;O=_.h(_.XQ(Z.matches,void 0,"yqUUgd"));var t=O.next().value,g=O.next().value,l=AH(function(){return function(C){T(C.matches)}}),X=AH(function(){return function(C){b(C.matches)}}),H=AH(function(){return function(C){q(C.matches)}}),I=AH(function(){return function(C){g(C.matches)}});
_.yY(function(){G.addEventListener?(G.addEventListener("change",l),e.addEventListener("change",X),r.addEventListener("change",H),Z.addEventListener("change",I)):G.addListener&&(G.addListener(l),e.addListener(X),r.addListener(H),Z.addListener(I));_.yD(function(){G.removeEventListener?(G.removeEventListener("change",l),e.removeEventListener("change",X),r.removeEventListener("change",H),Z.removeEventListener("change",I)):G.removeListener&&(G.removeListener(l),e.removeListener(X),r.removeListener(H),
Z.removeListener(I))})});
return function(){return M()?1:E()?2:w()?3:t()?4:0}};
gRS=function(G){var e=0;G=_.h([G.title,G.metadata,G.actions,G.description,G.attribution]);for(var r=G.next();!r.done;r=G.next())r.value&&e++;return e};
luq=function(G){return G===1||G===2?1:0};
jSA=function(G){G=(new RVS).parse(G);return(new ft).render(G).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(e){var r=e.split(":").map(Number),Z=0,O=0;if(r.length===3)r=_.h(r),Z=r.next().value,O=r.next().value,r=r.next().value;else if(r.length===2)r=_.h(r),O=r.next().value,r=r.next().value;else if(r.length===1)r=_.h(r).next().value;else throw Error("Sh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(Z*3600+O*60+r)+'" role="button">'+e+"</span>"})};
au$=function(G){G=_.h(G.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var e=G.next(),r={};!e.done;r={clickHandler$jscomp$5:void 0},e=G.next()){e=e.value;r.clickHandler$jscomp$5=function(O){O=Number(O.target.getAttribute("data-time"));if(isNaN(O))throw Error("Th");var M;(M=_.eV())==null||M.seekTo(O,!0)};
var Z=function(O){return function(M){M.key!=="Enter"&&M.key!=="Space"||(0,O.clickHandler$jscomp$5)(M)}}(r);
e.setAttribute("tabindex","0");e.removeEventListener("click",r.clickHandler$jscomp$5);e.removeEventListener("keydown",Z);e.addEventListener("click",r.clickHandler$jscomp$5);e.addEventListener("keydown",Z)}};
X6a=function(){return _.v("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.v(SM,{percentWidth:100}),_.v(SM,{animationDelay:200}),_.v(SM,{animationDelay:400}),_.v(SM,{animationDelay:600}),_.v(SM,{animationDelay:800,percentWidth:60}),_.v("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.v(SM,{percentWidth:100}),_.v(SM,{animationDelay:200}),_.v(SM,{animationDelay:400}),_.v(SM,{animationDelay:600,percentWidth:50}))};
SM=function(G){return _.v("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(G.percentWidth===void 0?100:G.percentWidth)+"%"},_.v("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(G.animationDelay===void 0?0:G.animationDelay)+"ms"}))};
KJF=function(){var G=_.h(_.XQ(function(){return""},void 0,"dXJHWc")),e=G.next().value;
return[function(){return e()()},
G.next().value]};
fu4=function(G,e){G=G?tha(G):"";e!==void 0&&isFinite(e)?e===0?e=_.OK("UPDATING",void 0,"Updating..."):(e=hKs(new Date(e),new Date),e=_.OK("UPDATED_TIME",{relative_time:e},"Updated "+e)):e="";var r="";G&&e&&(r=" \u2022 ");return _.Bn(G+r+e)};
di$=function(G,e,r,Z,O,M){e=e===void 0?0:e;var T=kWq[e],E=T.title,b=T.iconType,w=T.topButtonRenderer,q=T.sectionClientVE;T=T.videoClientVE;var t;if(e!==1||G.length){r=[];G=_.h(G);for(Z=G.next();!Z.done;Z=G.next()){var g=Z.value;if(MUU(g))r.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:g.videoEntity.videoId,title:xJ(g.videoEntity.title),shortBylineText:xJ(g.channelEntity.title),thumbnail:g.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:g.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.OK("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:T}}}}}});else if(Obq(g)){Z=r;var l=Z.push;var X=void 0,H=void 0,I=void 0,C=void 0,u=void 0,P=void 0,F=void 0,J=void 0,U=g.mainPlaylistEntity.playlistId,e$=g==null?void 0:(J=g.mainPlaylistEntity)==null?void 0:(F=J.thumbnailStyleData)==null?void 0:(P=F[0])==null?void 0:(u=P.value)==null?void 0:(C=u.collageThumbnail)==null?void 0:C.coverThumbnail;C=urp(U);if(!_.R("enable_offline_playlist_page")&&
(g==null?0:(I=g.mainPlaylistEntity)==null?0:I.videos)){b:{I=g==null?void 0:(H=g.mainPlaylistEntity)==null?void 0:H.videos;H=_.Yt().getState().entities;if(I!=null&&I.length&&H)for(I=_.h(I),u=I.next();!u.done;u=I.next())if(u=_.Wn(u.value).entityId,(u=JSON.parse(u).videoId)&&Pri(H,u)==="TRANSFER_STATE_COMPLETE"){H=u;break b}H=""}H!==void 0&&(C=HS(_.Yt().getState(),H),C=_.Jy(H,U,void 0,void 0,C))}H=mlU(_.OK("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),urp(U));g=U&&e$&&H?{playlistId:U,navigationEndpoint:C,
viewPlaylistText:H,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:e$}},title:xJ(g.mainPlaylistEntity.title),shortBylineText:xJ(g==null?void 0:(X=g.channelEntity)==null?void 0:X.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:Hky,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:U,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.OK("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:T}}}:
void 0;l.call(Z,{gridPlaylistRenderer:g})}}T={gridRenderer:{items:r}};e===1&&(t=fu4(O,M))}else if(Z){var Dq=_.Bn((l=r==null?void 0:r.localizedPromptMessage)!=null?l:"");T={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Bn(_.OK("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.jqA}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Bn(_.OK("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};t=fu4(O,M)}else Dq=_.Bn(_.OK("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
T={};return{contents:[{shelfRenderer:{title:E,titleAnnotation:t,icon:{iconType:b},subtitle:Dq,content:T,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:w}]}}}}],loggingDirectives:{clientVeSpec:{uiType:q}}}};
oRf=function(G,e,r,Z,O,M,T,E,b,w,q){r=r===void 0?{}:r;Z=Z===void 0?{}:Z;O=O===void 0?!1:O;M=M===void 0?!1:M;T=T===void 0?!1:T;E=E===void 0?!1:E;b=b===void 0?!1:b;w=w===void 0?0:w;q=q===void 0?-Infinity:q;if(!(e.length||G.length||O||E))return M?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:Mhy(r)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.Bn(_.OK("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 t=[];G.length&&t.push(di$(G,0));E?t.push({contents:[{statementBannerRenderer:E7y(b,Z)}]}):O?t.push(di$(e,1,r,T,w,q)):M&&t.push({contents:[{statementBannerRenderer:h_F(r)}]});(O&&e.length||G.length)&&t.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Bn(_.OK("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 t.map(function(g){return{itemSectionRenderer:g}})};
q$=function(G,e){if(typeof G!=="object")return null;G=_.h(Object.entries(G));for(var r=G.next();!r.done;r=G.next()){var Z=_.h(r.value);r=Z.next().value;Z=Z.next().value;if(r===e)return r;if(Z=q$(Z,e))return r+"."+Z}return null};
tZ=function(G){var e=G.content;return(G=G.styleRuns)&&e?{runs:G.map(function(r){var Z={text:e.slice(r.startIndex,r.startIndex+r.length)};r.fontColor&&(Z.textColor=r.fontColor);return Z})}:{simpleText:e}};
Iuy=function(G,e,r,Z){var O=sS_;Z&&(G.quantity=Z);if(!G.quantity||!G.maxQuantity)return{};Z=G.minusButton;var M=G.plusButton,T,E,b,w;return{value:G.quantity,maxValue:G.maxQuantity,onChangeCallback:function(q){O(G,q)},
minusLabel:(T=_.a(Z,QSF))==null?void 0:T.label,minimumReachedLabel:(E=_.a(Z,QSF))==null?void 0:E.limitReachedLabel,plusLabel:(b=_.a(M,QSF))==null?void 0:b.label,maximumReachedLabel:(w=_.a(M,QSF))==null?void 0:w.limitReachedLabel,disabled:e,onRemoveCommand:r}};
sS_=function(G,e){var r=G.quantityIncrementerEntityKey;if(r){var Z={};Z.quantity=e;_.nR(_.g7("quantityIncrementerEntity",r,Z));G.onChangeCommand&&_.HQ(G.onChangeCommand)}};
p6a=function(G){if(G)return G===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(G).overflowY)?G:p6a(G.parentElement)};
nRf=function(G,e){(G=Ca$(G))&&((_.R("enable_mini_app_command_handler_mweb_fix")?0:e)?uE_.push({command:G,sourceData:{},commandContext:void 0}):_.v_().resolve(_.$1).resolveCommand(G))};
Ca$=function(G){return _.a(G,_.ag)};
miq=function(){var G=window.performance.timeOrigin+window.performance.now(),e=(new _.ln).setSeconds(G/1E9);return _.eZ(e,2,_.TA(G%1E9),0)};
Yoy=function(G,e){var r;G=(r=_.a(_.a(G,_.ag),cfy))==null?void 0:r.methodName;var Z,O;(r=window.youtubewebview||((Z=window.webkit)==null?void 0:(O=Z.messageHandlers)==null?void 0:O.youtubewebview))&&G&&(Z=new RN,G=_.QB(Z,1,G),G=_.uH(G.JSC$12554_serializeBinary()),e=_.uH(e),r.postMessage(G+","+e))};
jM=function(G,e){var r=_.a(_.a(G,_.ag),cfy);r&&(e&&(r.serializedAdditionalMetadata=_.uH(e)),nRf(G,!0))};
yff=function(G){switch(G){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"}};
AfS=function(){return!!_.xZ("ID_TOKEN")};
BNS=function(G){return G instanceof Error&&G.cause instanceof FJ_&&G.cause.rpcErrorCode!==void 0?!JfS.includes(G.cause.rpcErrorCode):!0};
PaF=function(){return _.Vi(xia,{authuser:""+(_.xZ("SESSION_INDEX")||0)})};
aN=function(G,e,r,Z){r=r===void 0?"MINI_APP_SDK_API_UNSPECIFIED":r;Z=Z===void 0?"":Z;var O=new _.Cr;r={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:Z,sdkApi:r};G instanceof Error&&(O.message=G.message,O.name=G.name,G.cause instanceof FJ_&&G.cause.rpcErrorCode!==void 0&&(r.rpcErrorCode=G.cause.rpcErrorCode));var M;(M=e.onError)==null||M.call(e,{loggingError:O,metadata:r})};
zVU=function(G,e,r,Z){switch(G){case "MINI_APP_SOURCE_GAMESNACKS":return new XT(e,r,Z);default:return new Ui_(e,r,Z)}};
WJS=function(G){switch(G){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"}};
NN_=function(G){switch(G){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"}};
LJa=function(G){switch(G){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"}};
GkU=function(){return Math.floor(Math.random()*4)+1};
eRA=function(G,e,r,Z){G=_.h(Object.entries(G));for(var O=G.next(),M={};!O.done;M={message$jscomp$995:void 0},O=G.next()){var T=_.h(O.value);O=T.next().value;T=T.next().value;M.message$jscomp$995=T;e.push(setTimeout(function(E){return function(){Z(!1);r(E.message$jscomp$995.text)}}(M),M.message$jscomp$995.delayMs));
Number(O)>0&&e.push(setTimeout(function(){Z(!0)},M.message$jscomp$995.delayMs-400))}};
rpf=function(G,e){var r=r===void 0?nap:r;_.R("mweb_fix_monitor_visibility_after_render")?G&&qq(function(){Y7U(G,e,r)}):qq(function(){Y7U(G,e,r)})};
Z$i=function(G,e){var r=document.createElement("ytd-engagement-panel-section-list-renderer");r.data=G;var Z=e!=null?e:{};G=Z.isPersistentPanel;e=Z.hideDelayMs;Z=Z.overscrollContain;G=Object.assign({},G&&{isPersistentPanel:G},e&&{hideDelayMs:e},Z&&{overscrollContain:Z});Object.assign(r,G);return r};
hRp=function(G){O$U||(O$U=Muy(new _.Q4(1,void 0,void 0,VuS),0));var e=O$U.format(Math.floor(G));e=oI==="be"||oI==="bg"||oI==="es"||oI==="et"||oI==="hu"||oI==="ka"||oI==="lv"||oI==="pl"||oI==="pt-PT"||oI==="sq"?e.replace(new RegExp("^(\\d)"+VuS.GROUP_SEP.replace(".","\\.")+"(\\d+("+VuS.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):e;return G>=1E3&&G<=9999&&e[1]==="."&&(oI==="sl"||oI==="it")?e.replace(".",""):e};
EHN=function(G,e,r,Z){if(G)return Z=Z||G.likeStatus,e?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:Z==="LIKE",isDisabled:!G.likesAllowed,defaultIcon:{iconType:r},defaultText:Z==="LIKE"?G.likeCountWithUnlikeText:G.likeCountText,toggledText:Z==="LIKE"?G.likeCountText:G.likeCountWithLikeText,defaultNavigationEndpoint:TXa(G,"LIKE"),defaultServiceEndpoint:D5$(G,"LIKE"),toggledServiceEndpoint:D5$(G,"INDIFFERENT"),defaultTooltip:_.mG(G.likeCountTooltipText),toggledTooltip:_.mG(G.likeCountTooltipText),
targetId:G.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:Z==="DISLIKE",isDisabled:!G.likesAllowed,defaultIcon:{iconType:r},defaultText:Z==="DISLIKE"?G.dislikeCountWithUndislikeText:G.dislikeCountText,toggledText:Z==="DISLIKE"?G.dislikeCountText:G.dislikeCountWithDislikeText,defaultNavigationEndpoint:TXa(G,"DISLIKE"),defaultServiceEndpoint:D5$(G,"DISLIKE"),toggledServiceEndpoint:D5$(G,"INDIFFERENT"),defaultTooltip:_.mG(G.dislikeCountTooltipText),
toggledTooltip:_.mG(G.dislikeCountTooltipText)}};
TXa=function(G,e){if(e==="LIKE")return G.likeCommand;if(e==="DISLIKE")return G.dislikeNavigationEndpoint};
D5$=function(G,e){var r;return(r=G.serviceEndpoints)==null?void 0:r.find(function(Z){var O;return((O=_.a(Z,_.Kx))==null?void 0:O.status)===e})};
_.vHS=function(G,e,r){return window.spf&&!_.R("web_disable_spfjs_client")?i$S(G,e,r):b$y(G,e)};
i$S=function(G,e,r){var Z=null,O=(new _.aQ(function(M,T){var E={};if(e){E.method=e.method;var b=e.postParams||{};SKy(G,e)&&(b[_.xZ("XSRF_FIELD_NAME")]=_.xZ("XSRF_TOKEN"));E.postData=_.k1(b);e.type&&(E.type=e.type);b=e.headers}E.headers=EJa(G,b);_.R("debug_forward_web_query_parameters")&&(G=_.wn4(G,window.location.search));E.experimental_headers=E.headers;E.onError=function(w){w.err&&w.xhr&&(w.err.params={url:w.xhr.responseURL,response:w.xhr.responseText.substr(0,64)});T(w.err)};
E.onPartDone=function(w){r&&r.call(null,w.part)};
E.onDone=function(w){var q=wMS(w.response,"xsrf_token");DW(window.location.href,G)&&q&&_.BX("XSRF_TOKEN",q);if(q=wMS(w.response,"service_worker_killswitch"))_.BX("SERVICE_WORKER_KILLSWITCH",q),gE_();M(w.response)};
Z=spf.request(G,E)})).then($5s);
O.thenCatch(function(M){var T=M instanceof _.fx,E=M&&M.hasOwnProperty("params")&&M.params.response?M.params.response:"";M instanceof Error&&(E?T?LO$(M):E===')]}\'\n{"reload":"now"}'?LO$(M):(Sj$(M,G,E),qjN(M,E)?_.FH(M):_.yx(M)):LO$(M));Z&&Z.abort()});
return O};
$5s=function(G){if(G.type==="multipart"){var e=G.timing;G=G.parts.reduce(function(r,Z){Object.assign(r,Z);return r},{});
G.timing=G.timing||{};Object.assign(G.timing,e);G.type="reduced"}return G};
b$y=function(G,e){e=e===void 0?{}:e;var r=null,Z=new _.aQ(function(O,M){e.onFinish=function(T){if(T.readyState===XMLHttpRequest.DONE)if(T.status===200){if(T.responseType!=="json"){var E=T.response;E.substring(0,5)===")]}'\n"&&(E=E.substring(5));try{var b=JSON.parse(E)}catch(w){b=w}}else b=T.response;b instanceof Error?M(b):(E=wMS(b,"xsrf_token"),DW(window.location.href,G)&&E&&_.BX("XSRF_TOKEN",E),T=T.responseURL,window.performance&&window.performance.getEntriesByName?(E=window.performance.getEntriesByName(T).pop())?
T={responseStart:(0,_.vG)()-(E.responseEnd-E.responseStart)}:(Math.random()<.01&&(E=Error("ei"),E.params=T,_.FH(E)),T={responseStart:-1}):T={responseStart:0},b.timing=b.timing||{},Object.assign(b.timing,T),O(b))}else M(Error("di`"+T.status))};
(r=_.fr(G,e))||M(Error("di`"+r.status))});
Z.thenCatch(function(O){O instanceof Error&&(Sj$(O,G),qjN(O)&&(O.level="WARNING"))});
_.R("cancel_pending_navs")&&Z.thenCatch(function(){r.abort()});
return Z};
wMS=function(G,e){var r=G[e],Z=G.parts;G.type==="multipart"&&Z&&(r=(G=Z.find(function(O){return e in O}))&&G[e]);
return r};
Sj$=function(G,e,r){var Z=G.message||"";e={original:Z,url:e};if(r)if(Z=Z.match(/position:?\s*(\d+)/)){Z=Z&&Number(Z[1])?Number(Z[1]):0;var O=Math.max(Z-25,0);e.position=Z;e.response=r.substring(O,Z+25)}else e.response=r.substring(0,50);_.JG(G,e);try{G.message="JSON parse error"}catch(M){}};
qjN=function(G,e){G=G.message||"";G=!!(G.indexOf("<")>=0||G.indexOf("end of ")>=0||G.indexOf("Unterminated string")>=0||G.indexOf("Unexpected EOF"));if(!G&&e)for(var r=e.length,Z=!1,O=0;O<r;O++)if(Z&&e[O]==="\\")O++;else if(e[O]==='"')Z=!Z;else if(e[O]==="<"&&!Z){G=!0;break}return G};
tuq=function(){return document.documentElement.hasAttribute("dark")};
_.gHf=function(G,e){if(G!=="GFEEDBACK"&&G!=="GUIDED_HELP")_.WX(Error("fi`"+G));else{var r=_.v_().resolve(_.bq(_.y$));if(r&&(r=r.getCurrentPage())&&r.getServiceTrackingParams&&(r=r.getServiceTrackingParams()))for(var Z=0,O;O=r[Z++];)if(O.service===G){if(G=O.params)for(r=0;Z=G[r++];)e[Z.key]=Z.value;break}}};
_.lIS=function(G){var e=_.Ff();e&&(e=e.getPlayer())&&(e.pauseVideo(),G.playback_id=e.getVideoData().cpn,G.eid=e.getVideoData().eventId,Object.assign(G,e.getFeedbackProductData()))};
RRs=function(){var G={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.xZ("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(G.enableAnonymousFeedback=!0);_.xZ("SESSION_INDEX")&&(G.authuser=String(_.xZ("SESSION_INDEX")));_.R("enable_pageid_for_feedback")&&_.xZ("DELEGATED_SESSION_ID")&&(G.pageId=String(_.xZ("DELEGATED_SESSION_ID")));return G};
_.ki=function(G){_.R("enable_ypc_spinners")&&_.Pi(G,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},G])};
_.H4=function(G){_.R("enable_ypc_spinners")&&_.Pi(G,"yt-close-popup-action",["yt-loading-renderer"])};
j3s=function(G){return new Promise(function(e,r){_.KC({verifyCommand:{recaptchaToken:G.recaptchaResponse}},{commandController:{onSuccess:function(Z,O){O||r("ChallengeService did not return a response.");var M;e({challengeCompleted:(M=O.verified)!=null?M:!1})},
onServerError:function(Z,O){r(O)}}})})};
aIA=function(G,e,r,Z){e({recaptchaResponse:Z}).then(function(O){O.challengeCompleted?_.Qi()?(r(3),_.v_().resolve(_.$1).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:G}})):r(2):r(4)},function(){r(4)})};
KXA=function(G,e,r){_.Hi(_.qK(XMi,_.xZ("HL")),function(){var Z;(Z=window.grecaptcha)==null||Z.ready(function(){var O=window.grecaptcha;O?(r(O.render(G,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:aIA.bind(null,G,j3s,e)})),e(1)):e(4)})})};
fIf=function(G,e){return function(){switch(e()){case 0:return G().captchaLoadingMessage;case 1:return G().challengeReason;case 3:return G().captchaSuccessfulMessage;case 2:return G().captchaCookieSetFailureMessage;case 4:return G().captchaFailedMessage;default:return G().challengeReason}}()};
_.d7=function(){if(!kk_){var G=document.querySelector("#player.skeleton");G&&(_.d1(G),kk_=!0)}};
_.d5_=function(){return H$N=KNf()};
Q3q=function(){return _.D(function(G){return oHA!==void 0?G.return():G.yield(s3f(),0)})};
s3f=function(){return _.D(function(G){if(G.nextAddress==1)return G.yield(k3s(),2);H$N=G.yieldResult;oHA=_.A0.addLowPriorityJob(s3f,5E3);_.HL(G)})};
m5p=function(G){var e=e===void 0?IIS:e;var r,Z,O=(r=G.responseContext)==null?void 0:(Z=r.mainAppWebResponseContext)==null?void 0:Z.trackingParam;if(!O){e.increment("MISSING");var M,T,E,b,w,q;_.FH(new _.Cr("282054944_a",{uBk:!!((M=G.responseContext)==null?0:(T=M.mainAppWebResponseContext)==null?0:T.loggedOut),wOH:((E=G.responseContext)==null?void 0:E.mainAppWebResponseContext)===void 0,vMI:G.responseContext===void 0,cp:(b=G.playabilityStatus)==null?void 0:b.contextParams,ijU:(((w=G.streamingData)==
null?void 0:w.formats)||[]).length>0,kXH:(((q=G.streamingData)==null?void 0:q.adaptiveFormats)||[]).length>0,os:!!G.offlineState,cotn:G.cotn}));return 2}r="";try{r=pMF(O)}catch(l){return e.increment("C_ERROR"),_.yx(l),2}try{var t=_.Ce$(r);var g=u8S(t)}catch(l){return e.increment("P_ERROR"),_.yx(l),2}g=_.ix(g,nHF,1,_.bx());O=[];g=_.h(g);for(t=g.next();!t.done;t=g.next())Z=t.value,t=Z.getPath(),r=(0,_.c2.getValueByKeys)(G,t.split(".")),r=String(r===void 0||r===null?"":r),Z=Z.getValue()||"",M=/[+\-\/_]/g,
r.replace(M,"")!==Z.replace(M,"")&&(e.increment("MISMATCH"),_.R("ab_mis_log_err")&&(r=new _.Cr("282054944_p",{wzN:t,g:String(r),e:String(Z)}),_.yx(r)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(t)||(t.match(/enforcementMessageViewModel/i)?O.push(3):O.push(2)));if(O.length>0)return Math.max.apply(Math,_.mY(O));e.increment("SUCCESS");return 1};
ypS=function(G){var e=new oN;if(G.interpreterJavascript){var r=_.B0p(G.interpreterJavascript);r=Mg(r).toString();var Z=new cpf;_.QB(Z,6,r);_.Kj(e,1,Z,pP)}else G.interpreterUrl&&(r=_.FF(G.interpreterUrl),r=_.Qt(r).toString(),Z=new _.YjA,_.QB(Z,4,r),_.Kj(e,2,Z,pP));G.interpreterHash&&_.sz(e,3,G.interpreterHash,pP);G.program&&_.sz(e,4,G.program,pP);G.globalName&&_.sz(e,5,G.globalName,pP);G.clientExperimentsStateBlob&&_.sz(e,7,G.clientExperimentsStateBlob,pP);return e};
QM=function(G){var e={};G=_.h(G.split("&"));for(var r=G.next();!r.done;r=G.next())r=r.value.split("="),r.length===2&&(e[r[0]]=r[1]);return e};
App=function(G){return Number(G.t)||7200};
F0a=function(){if(_.R("bg_st_hr"))return"havuokmhhs-0";var G,e=((G=globalThis.performance)==null?void 0:G.timeOrigin)||0;return"havuokmhhs-"+Math.floor(e)};
FX4=function(){return new Promise(function(G){var e=window;e.ntpevasrs!==void 0?G(new IN(e.ntpevasrs)):(e.ntpqfbel===void 0&&(e.ntpqfbel=[]),e.ntpqfbel.push(function(r){G(new IN(r))}))})};
Jp$=function(G){var e=G.ps0.bind(G);_.Eu("yt.aba.att",e);G=G.cIB.bind(G);_.Eu("yt.aba.att2",G)};
x5s=function(G){switch(_.Kr(G.input)){case _.y4(BXf):var e={};return e.encryptedVideoId=G.innerTubeRequest.externalVideoId,e}return{}};
zR4=function(G){switch(_.Kr(G.input)){case _.y4(BXf):if(_.R("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.y4(Pea):if(_.R("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.y4(px):if(_.R("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&G.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.y4(U5A):var e,r;if(_.R("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((r=_.a((e=G.config)==null?void 0:e.command,pqf))==null?0:r.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.NXN=function(G){var e;if(G.playlistVideoRenderer&&((e=G.playlistVideoRenderer)==null?0:e.engagementBar))return WXN(G.playlistVideoRenderer.engagementBar);if(_.a(G,Cx)){var r;if(G=(r=_.a(G,Cx))==null?void 0:r.engagementBar)return WXN(G)}return""};
WXN=function(G){if(!G)return"";G=_.a(G,_.LXs);if(G==null||!G.actions)return"";G=_.h(G.actions);for(G=G.next();!G.done;G=G.next()){G=_.a(G.value,_.Gv$);var e=void 0;if((e=G)==null||!e.itemId)break;return G.itemId}return""};
_.e8_=function(G){var e;if(G.playlistVideoRenderer&&((e=G.playlistVideoRenderer)==null?0:e.videoId))return G.playlistVideoRenderer.videoId;if(_.a(G,Cx)){var r,Z;if(G=(r=_.a(G,Cx))==null?void 0:(Z=r.playlistItemData)==null?void 0:Z.videoId)return G}return""};
_.rWS=function(G){var e;if(G.playlistVideoRenderer&&((e=G.playlistVideoRenderer)==null?0:e.voteCount))return G.playlistVideoRenderer.voteCount;if(_.a(G,Cx)){var r,Z;if(G=(r=_.a(G,Cx))==null?void 0:(Z=r.playlistItemData)==null?void 0:Z.voteCount)return G}return 0};
_.un=function(G,e){return _.e6(G.entities,"flowStateEntity",e)};
ODF=function(G,e,r,Z){var O=void 0;G=_.h(G[e.iconName]||[]);for(var M=G.next();!M.done;M=G.next()){M=M.value;var T=e.iconSize;var E=e.iconStyle;T=!T||T===M[2];var b=ZDa[M[0]];Z&&Z!==M[1]||!T||E&&E!==b?E=!1:O?(E=ZDa[M[0]],E=!!e.iconStyle||E==="youtube_outline",T=O.version<=M[1],E=(!!e.iconSize||M[2]===24)&&E&&T):E=!0;E&&(O={name:e.iconName,style:ZDa[M[0]],size:M[2],version:M[1],allowMirroring:!!M[3],url:r(e.iconName,M)})}return O};
MQ_=function(G,e,r,Z){return G+(""+ZDa[r[0]]+((Z===void 0?0:Z)?"_experimental":"")+"/"+e+"/v"+r[1]+"/")+(r[2]+"px.svg")};
VQA=function(G){return _.xZ("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.xZ("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":G};
h8a=function(G,e){return MQ_("https://fonts.gstatic.com/s/i/",G,e)};
T44=function(G,e){return MQ_("https://fonts.gstatic.com/s/i/",G,e,!0)};
DJ_=function(G,e){return MQ_("https://www.gstatic.com/youtube/img/icons/web/",G,e)};
iDS=function(G){var e=G.enabled;var r=G.itemPlaybackModel;var Z=G.thumbnailElRef;var O=G.containerElRef;var M=G.options;var T;_.Y8(function(){var E=O==null?void 0:O.value;var b,w=(b=Z())==null?void 0:b.value;b=r();var q=M();if(e&&b&&E&&w&&(q==null?0:q.thumbnail)){var t={data:b,hostElement:E},g,l,X=[].concat(_.mY((g=q.thumbnailOverlays)!=null?g:[]),_.mY((l=b.overlays)!=null?l:[]));l=b.itemPlaybackOptions;g=(l==null?void 0:l.enableRoundedPlayer)||q.enableRounding;l=l==null?void 0:l.disableTimeStatusOverlay;
var H,I;E={mediaRenderer:t,lockupElement:E,thumbnailElement:w,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.X0((H=b.inlinePlayerData)==null?void 0:H.onVisible),navigationEndpoint:_.X0((I=b.inlinePlayerData)==null?void 0:I.onSelect),thumbnail:q.thumbnail,thumbnailOverlays:X,accessibilityText:q.accessibilityText||""},thumbnailSize:q.thumbnailSize,enableRounding:g,mouseleaveCallback:q.mouseleaveCallback,hideTimeDisplay:l}}}else E=void 0;if(H=E){var C;(C=T)==null||nx(C);T=XK(H);var u,P;
((u=r())==null?0:(P=u.inlinePlayerData)==null?0:P.forceImpAutoplay)&&EgS(T)}},"BLiQOd");
_.yD(function(){var E;(E=T)==null||nx(E)})};
bDy=function(G){G=atob(G);for(var e=[],r=0;r<G.length;r++)e.push(G.charCodeAt(r));return new Blob([new Uint8Array(e)],{type:"image/png"})};
wja=function(G,e,r,Z){Z=Z===void 0?"INSERTION_POSITION_UNSPECIFIED":Z;return G({targetId:e},function(O){var M,T=(M=O.contents)!=null?M:[];M=r!=null?r:[];var E=vg_(T);switch(Z){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},O,{contents:[].concat(_.mY(T.slice(0,E)),_.mY(M),_.mY(T.slice(E+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},O,{contents:[].concat(_.mY(M),_.mY(T))});case "INSERTION_POSITION_LAST":return Object.assign({},O,{contents:[].concat(_.mY(T),_.mY(M))});
default:return O}})};
Sys=function(G,e,r,Z,O){O=O===void 0?"RELATIVE_INSERTION_POSITION_AFTER":O;return G({targetId:e},function(M){var T,E=(T=M.contents)!=null?T:[];T=$Ji(E,r);if(T<0)return M;T=O==="RELATIVE_INSERTION_POSITION_BEFORE"?T:T+1;return Object.assign({},M,{contents:[].concat(_.mY(E.slice(0,T)),_.mY(Z),_.mY(E.slice(T)))})})};
vg_=function(G){var e=G.findIndex(function(r){return _.a(r,_.mL)});
return e>=0?e:G.length};
$Ji=function(G,e){return G.findIndex(function(r){a:{r=_.h(Object.values(r));for(var Z=r.next();!Z.done;Z=r.next())if((Z=Z.value)&&Z.targetId){r=Z.targetId;break a}r=""}return r===e})};
tQi=function(G,e,r){return G({targetId:e},function(Z){var O,M=(O=Z.contents)!=null?O:[];return Object.assign({},Z,{contents:qyp(M,r)})})};
qyp=function(G,e){return G.filter(function(r){var Z=e.includes;a:{r=_.h(Object.values(r));for(var O=r.next();!O.done;O=r.next())if((O=O.value)&&O.targetId){r=O.targetId;break a}r=""}return!Z.call(e,r||"")})};
_.ggq=function(G,e){return{engagementPanelSectionListRenderer:{panelIdentifier:G,identifier:e,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
lBs=function(G,e){G=G.getAvailableAudioTracks();if(G.length)return G==null?void 0:G.find(function(r){var Z;return(r==null?void 0:(Z=r.getLanguageInfo())==null?void 0:Z.getId())===e})};
_.j1i=function(G){var e,r=(e=G.getOption("captions","tracklist",{includeAsr:!0}))!=null?e:[];return r=R8y(r,G)};
aBS=function(G){return G.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
R8y=function(G,e){e=aBS(e);if(e==null||!e.length)return G;var r=e.filter(function(T){return T});
e=G.filter(function(T){return T.languageCode.startsWith("en")});
r=_.h(r);for(var Z=r.next();!Z.done;Z=r.next())if(Z=Z.value,e.length){var O=e[0],M=Object.assign({},O);O.languageCode!==Z.languageCode&&(M.displayName=O.languageName+" >> "+Z.languageName,M.translationLanguage=Z,G.push(M))}return G};
XjF=function(G,e,r){G=_.j1i(G);if(G.length)return r?G.find(function(Z){if(typeof(Z==null?void 0:Z.translationLanguage)==="object"){var O;return((O=Z.translationLanguage)==null?void 0:O.languageCode)===e}return!1}):G==null?void 0:G.find(function(Z){return Z.languageCode===e})};
Ko$=function(G){return G.getOption("captions","tracklist",{includeAsr:!0})};
fB$=function(G){var e=G.getAvailableAudioTracks();if(e!=null&&e.length){var r=G.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.mY(e.map(function(Z){return{listItemViewModel:{title:{content:Z.getLanguageInfo().getName()},isSelected:Z.getLanguageInfo().getId()===(r==null?void 0:r.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:Z.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
kva=function(G){return G.getOption("captions","tracklist",{includeAsr:!0})};
HDN=function(G){var e=kva(G);if(e==null?0:e.length)return e;G.loadModule("captions");return kva(G)};
dJ$=function(G){var e=G.getOption("captions","track");if(e)return e;G.loadModule("captions");return G.getOption("captions","track")};
s1s=function(G){var e=HDN(G);if(e!=null&&e.length){var r=dJ$(G),Z;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.OK("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(r==null?0:r.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.mY(e.map(function(O){return{listItemViewModel:{title:{content:O.displayName},
isSelected:O.displayName===(r==null?void 0:r.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:O.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.OK("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!r.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!r.translationLanguage&&{selectionText:{content:(r==null?void 0:(Z=r.translationLanguage)==null?void 0:Z.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[og4(G)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
og4=function(G){var e=aBS(G);if(e==null||!e.length)throw Error("Ei");var r=dJ$(G);G=e.filter(function(Z){return!Z.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.mY(G.map(function(Z){var O;return{listItemViewModel:{title:{content:Z.languageName},isSelected:Z.languageName===(r==null?void 0:(O=r.translationLanguage)==null?void 0:O.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:Z.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
CkF=function(G){return new Promise(function(e,r){if(G===void 0)_.yx(Error("Ii"),"ERROR"),r(Error("Ii"));else{r=new _.Q1_;var Z=_.IBU();r=r.init();var O=_.pjA(_.xZ("YPC_MB_URL"),!0);Promise.all([r,O]).then(function(){var M=_.c4.payments.business.integration.ClientTokenFactory.createClientToken(G,Z);e(M)})}})};
mJS=function(G,e,r,Z,O,M,T){var E=_.C1();r=r.replace(/-/g,"+").replace(/_/g,"/");var b=_.hy().get("hl"),w=_.Yi(_.uf),q=e==null?void 0:e.element;q&&_.ki(q);uhN(e,!0);_.ngN(w,r,E.resolve,function(){q&&_.H4(q)},function(t){q&&_.H4(q);
E.reject(t)},b,Z?function(t){Z&&_.p1(G,Z,{backend_analytics:t})}:void 0,E.resolve,O,M,T);
return E.promise};
uhN=function(G,e){!(G=G==null?void 0:G.element)||G.tagName!=="YT-BUTTON-RENDERER"&&G.tagName!=="YTD-BUTTON-RENDERER"||(G.disabled=e)};
cWp=function(){var G=_.OK("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.Bn(G),actionButton:{buttonRenderer:rNF()}}},popupType:"TOAST"}};
YyU=function(){var G=_.OK("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.Bn(G),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
yWa=function(G){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:G}]}}};
yM=function(G,e,r,Z){var O;return _.D(function(M){if(M.nextAddress==1)return _.jr(M,2),M.yield(G,4);if(M.nextAddress!=2)return(O=_.bw(e.getState().entities).length>0)?M.return({title:_.Bn(_.OK("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.Bn(_.OK("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:e__()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
M.return(Zuf(r,Z));_.k5(M);return M.return(Zuf(r,Z))})};
AWN=function(G,e){return e?e==="PPSV"||WFS(G,e):!1};
FoF=function(G){G.responseContext||(G.responseContext={});G.responseContext.maxAgeSeconds=0;return G};
FT=function(G){var e;return _.D(function(r){return r.nextAddress==1?r.yield(JWU(G,"service:topbar:fallback"),2):(e=r.yieldResult)&&_.AZ(e)?r.return(FoF(_.AZ(e))):r.return()})};
B4$=function(G){var e;return _.D(function(r){return r.nextAddress==1?r.yield(JWU(G,"service:downloads_settings:fallback"),2):(e=r.yieldResult)&&_.AZ(e)?r.return(e):r.return()})};
JWU=function(G,e){var r;return _.D(function(Z){if(Z.nextAddress==1)return G?Z.yield(G.get(e),2):Z.return();r=Z.yieldResult;return!r||!_.AZ(r)||!isNaN(Number(r.data.expireTimestampMs))&&r.isExpired()?Z.return():Z.return(r)})};
xJS=function(G){var e=_.v_().resolve(JZ).getState().entities;return G.playlistId?AWN(e,G.playlistId):!1};
UJU=function(G){var e=_.qt("web_pbj_log_warning_rate",0);e=e>0&&Math.random()<e;if(!_.a(G,_.DC))return e&&_.FH(Error("bj")),!1;var r;return _.R("shorts_controller_retrieve_seedless_sequence_v2")&&((r=_.a(G,_.DC))==null?void 0:r.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:Pky(G)?!0:(e&&_.FH(Error("cj")),!1)};
Pky=function(G){var e=(_.a(G,_.u4)||_.a(G,_.DC)).videoId;if(!e||!z84.test(e))return!1;var r;return(G=(r=_.a(G.commandMetadata,_.rJ))==null?void 0:r.url)&&(G.includes(e)||G.startsWith("/clip"))?!0:!1};
_.N4N=function(){var G=_.hy();return G.getFlag(192)?G.getFlag(190):!(_.R("web_watch_cinematics_disabled_by_default")||_.R("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&WoN())};
_.B4=function(G,e,r){var Z={};Z.currentUrl=e;Z.vis=G.vis!==void 0?G.vis:0;Z.splay=!1;e=_.hy();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(_.xZ("STS"))||(Z.signatureTimestamp=_.xZ("STS"));G.autonav&&(Z.autoplay=!0,Z.autonav=!0);G.mutedAutoplay&&(Z.autoplay=!0,Z.mutedAutoplay=!0);G.inlinePlayback&&(Z.autoplay=!0,Z.autonav=!1,Z.isInlineUnmutedPlayback=!!G.inlineUnmuted);
Z.referer=r;Z.lactMilliseconds=G.lact!==void 0?G.lact.toString():"-1";_.R("enable_unknown_lact_fix_on_html5")&&Z.lactMilliseconds==="-1"&&_.FH(new _.Cr("Unknown LACT is set in playbackContext.",{"lact in tempData":G.lact||"undefined",autonav:G.autonav||"undefined"}));G={};e.getFlag(194)&&(G.hasShownAmbientMode=!0);e.getFlag(192)&&(G.hasToggledOffAmbientMode=!0);_.N4N()&&(G.watchAmbientModeEnabled=!0);Z.watchAmbientModeContext=G;return Z};
LoS=function(G){var e={},r=G.pbis||0;r&&(e.playbackBeginsInSeconds=r);G.prefetch_reason&&G.prefetch_reason==="hc_pbis"&&(e.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return e};
GdA=function(G,e){var r;if(e==null?0:(r=e.requestTemplate)==null?0:r.panelId)G.panelId=e.requestTemplate.panelId;var Z;if(e==null?0:(Z=e.requestTemplate)==null?0:Z.params)G.params=e.requestTemplate.params};
rkp=function(){if(eMs)return eMs();var G=!_.R("idb_response_store_auth_killswitch"),e={};eMs=bA("yt-it-response-store",{objectStores:(e.ResponseStore={addedAtVersion:1},e),shared:!G,upgrade:function(r,Z){Z(1)&&(r=zc(r,"ResponseStore",{keyPath:["key","clientName"]}),WG(r,"byExpiration","expireTimestampMs"),WG(r,"byInterface","clientName"))},
version:1});return eMs()};
Z4F=function(G){return _.Ou(rkp(),G)};
Mdp=function(G,e){var r;return _.D(function(Z){return Z.nextAddress==1?Z.yield(_.iA(),2):(r=Z.yieldResult)?Z.return(new O4y(G,e,r)):Z.return()})};
Vdf=function(G){var e=Object.keys(G)[0];if(e)return G.screenExit&&(e=e+";"+G.screenExit.screen),e};
hMU=function(G){var e=new Map;G=_.h(G);for(var r=G.next();!r.done;r=G.next())r=r.value,r!=null&&(e.has(r.taskType)||e.set(r.taskType,[]),e.get(r.taskType).push(r));return e};
T$S=function(G){G=[].concat(_.mY(G)).sort(function(r,Z){return r-Z});
var e=Math.floor(G.length/2);return G.length%2?G[e]:(G[e-1]+G[e])/2};
i4$=function(G,e){G=G===void 0?mkN:G;e=e===void 0?{}:e;_.Eu("yt.logging.errors.log",_.yx);ufa();DVU(FOf(),e);window.onerror=G;En4=nOa;window.addEventListener("unhandledrejection",function(r){if(r.reason instanceof Error){var Z=r.reason;_.JG(Z,{source:"unhandledrejection"});Z.name==="AbortError"&&(Z.level="WARNING")}nOa(r.reason);r.preventDefault()})};
_.b4f=function(G){var e,r,Z,O,M,T,E,b,w,q,t,g,l,X,H,I,C,u,P,F,J,U,e$,Dq,bF,Kf,ti,Ry,nf,k4,SE,Fn,kw,Lf,vc,IW,Hc,a8,t2,hi;return _.D(function(rj){if(rj.nextAddress==1)return rj.yield(_.hh(G,{mode:"readonly",enableRetries:!0},function(tS){return TF(tS,"playbackData").then(function(OV){var RW=OV.map(function(wj){return wj.transfer}).filter(function(wj){return!!wj}),Zl=OV.map(function(wj){return wj.offlineVideoPolicy}).filter(function(wj){return!!wj}),pm=OV.filter(function(wj){return!!wj.key}).map(function(wj){return _.GF(_.Wn(wj.key).entityId,
"downloadStatusEntity")});
RW=TF(tS,"transfer",RW);Zl=TF(tS,"offlineVideoPolicy",Zl);pm=TF(tS,"downloadStatusEntity",pm);var Bc=RW.then(function(wj){wj=wj.reduce(function(by,ea){(ea==null?0:ea.offlineVideoStreams)&&by.push.apply(by,_.mY(ea.offlineVideoStreams));return by},[]).filter(function(by){return!!by});
return TF(tS,"offlineVideoStreams",wj)});
return W_.all([RW,Zl,Bc,pm]).then(function(wj){var by=_.h(wj);wj=by.next().value;var ea=by.next().value;var U_=by.next().value;by=by.next().value;return[OV,wj,ea,U_,by]})})}),2);
if(rj.nextAddress!=3)return e=rj.yieldResult,rj.yield(_.hh(G,{mode:"readonly",enableRetries:!0},function(tS){return TF(tS,"mainDownloadsListEntity").then(function(OV){var RW,Zl;return(Zl=(RW=OV[0])==null?void 0:RW.downloads)!=null?Zl:[]})}),3);
r=rj.yieldResult;Z=_.h(e);O=Z.next().value;M=Z.next().value;T=Z.next().value;E=Z.next().value;b=Z.next().value;w=O;q=M;t=T;g=E;l=b;X={};H={};I={};C={};u={};P=[];F=_.h(q);for(J=F.next();!J.done;J=F.next())(U=J.value)&&(X[U.key]=U);e$=_.h(t);for(Dq=e$.next();!Dq.done;Dq=e$.next())(bF=Dq.value)&&(H[bF.key]=bF);Kf=_.h(l);for(ti=Kf.next();!ti.done;ti=Kf.next())(Ry=ti.value)&&(I[Ry.key]=Ry);nf=_.h(g);for(k4=nf.next();!k4.done;k4=nf.next())(SE=k4.value)&&(C[SE.key]=SE);Fn=_.h(r);for(kw=Fn.next();!kw.done;kw=
Fn.next())Lf=kw.value,vc=void 0,u[(vc=Lf.videoItem)!=null?vc:""]=!0,Lf.videoItem&&(Hc=IW=void 0,a8=(Hc=(IW=_.Wn(Lf.videoItem))==null?void 0:IW.entityId)!=null?Hc:"",P.push({externalVideoId:a8}));t2=w.filter(function(tS){if(!tS||!tS.key||!tS.offlineVideoPolicy)return!1;tS=_.Wn(tS.key).entityId;tS=_.GF(tS,"downloadStatusEntity");var OV;return!(tS&&((OV=I[tS])==null?void 0:OV.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
hi=t2.map(function(tS){var OV=X[tS.transfer],RW=[];if(OV==null?0:OV.offlineVideoStreams)for(var Zl=_.h(OV.offlineVideoStreams),pm=Zl.next();!pm.done;pm=Zl.next())(pm=C[pm.value])&&RW.push(pm);Zl=H[tS.offlineVideoPolicy];pm=u;var Bc=tS==null?void 0:tS.playerResponseTimestamp,wj=_.Wn(Zl.key).entityId;tS=_.GF(wj,"mainVideoEntity");if(Zl.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var by="OFFLINE_VIDEO_STATE_DISABLED";Zl.expirationTimestamp&&Number(Zl.expirationTimestamp)<Date.now()/1E3&&(by="OFFLINE_VIDEO_STATE_EXPIRED")}else if(Zl.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")by="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(OV==null?void 0:OV.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":by="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":by="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":by="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":by="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":by="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":by="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:by="OFFLINE_VIDEO_STATE_UNKNOWN"}if(by==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(OV==null?void 0:OV.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":by="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":by="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":by=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}wj={id:wj,videoState:by};if(OV==null?0:OV.cotn)wj.cotn=OV.cotn;if(OV==null?0:OV.maximumDownloadQuality)wj.selectedVideoQuality=OV==null?void 0:OV.maximumDownloadQuality;if(OV==null?0:OV.lastProgressTimeMs)wj.lastProgressTimeMs=OV.lastProgressTimeMs;Bc&&(wj.playerResponseSavedTimeMs=String(Number(Bc)*1E3));OV=String;Bc=0;RW=_.h(RW);for(by=RW.next();!by.done;by=RW.next())if(by=by.value,by.streamsProgress){by=_.h(by.streamsProgress);for(var ea=by.next();!ea.done;ea=
by.next()){var U_=void 0;Bc+=Number((U_=ea.value.numBytesDownloaded)!=null?U_:0)}}wj.downloadedBytes=OV(Bc);wj.selectedOfflineMode=pm[tS]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";Zl.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(wj.offlinePlaybackDisabledReason=Zl.offlinePlaybackDisabledReason);return wj});
return rj.return({offlineVideos:hi,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:P}}})})};
vna=function(){var G;return _.D(function(e){return e.nextAddress==1?e.yield(_.O6(),2):(G=e.yieldResult)?e.return(_.b4f(G)):e.return({state:"PES Unavailable"})})};
Sta=function(){var G,e,r,Z;return _.D(function(O){if(O.nextAddress==1)return O.yield(_.O6(),2);if(O.nextAddress!=3)return(G=O.yieldResult)?O.yield(wIq(G),3):O.return({state:"PES Unavailable"});e=O.yieldResult;r={};Z=e.reduce(function(M,T){M[T.key]=T;return M},r);
return O.return($Va(Z))})};
$Va=function(G){for(var e={},r=[],Z=_.h(Object.keys(G)),O=Z.next();!O.done;O=Z.next()){var M=O.value;O=G[M];var T=void 0;if(((T=O)==null?void 0:T.entityType)==="mainVideoEntity"){delete G[M];var E=O.data;O={};if(E){var b=void 0;T=(b=E.videoId)!=null?b:"vid-"+M;M=G;O.video=E;delete O.video.formattedDescription;delete O.video.thumbnail;E.owner&&(b=M[E.owner],b==null?0:b.data)&&(delete M[b.key],O.video.owner=b.data,delete O.video.owner.avatar);if(E=E.downloadState)if(b=M[E],b==null?0:b.data)if(delete M[E],
E=b.data.playbackData)if(b=M[E],b!=null&&b.data){delete M[E];E=b.data;delete E.playerResponseJson;O.playbackData=E;if(E.transfer&&(b=M[E.transfer],b==null?0:b.data)){delete M[b.key];var w=b.data;O.transfer=w;b=[];w=_.h(w.offlineVideoStreams||[]);for(var q=w.next();!q.done;q=w.next())if(q=M[q.value])delete M[q.key],b.push(q.data);b&&(O.streams=b)}(E=E.offlineVideoPolicy)&&(E=M[E])&&E.data&&(delete M[E.key],O.offlineVideoPolicy=E.data)}e[T]=O}}else O&&O.entityType==="offlineOrchestrationActionWrapperEntity"&&
O.data&&(delete G[O.key],T=O.data,M=void 0,r.push({id:T.rootActionId,type:((M=T.actionProto)==null?void 0:M.actionType)||"",entity:O}))}e.wrapperEntities=r;Object.keys(G).length>0&&(e.unknownKeys=G);return e};
qtS=function(){var G,e,r,Z,O,M,T,E,b;return _.D(function(w){if(w.nextAddress==1)return G=(new _.PG("")).hasLocalStorage(),Z=!!((e=_.O_.crypto)==null?0:(r=e.subtle)==null?0:r.importKey),O=!!_.O_.BroadcastChannel,M=!!_.O_.navigator.locks,w.yield($ra(),2);T=w.yieldResult;E=G&&Z&&O&&M&&T;b={isSupported:E};if(E)return w.return(b);b.missingBrowserFeatures=[];T||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");G||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
Z||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");O||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");M||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return w.return(b)})};
tdp=function(G,e,r,Z){var O=!1,M={contentId:void 0,contentType:"video"};e=_.h(Object.entries(e));for(var T=e.next();!T.done;T=e.next()){var E=_.h(T.value);T=E.next().value;E=E.next().value;G.includes(T)&&!r.has(E)?(M.contentId=E,r.add(E),O=!0):T==="contentType"?E==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(M.contentType="playlist"):typeof E==="object"&&E!==null&&tdp(G,E,r,Z)}O&&Z.push(M)};
gnA=function(){var G;return!((G=z4?z4:null)==null||!G.window)};
_.RMS=function(G){if(_.oy()&&_.jyS("Chromium")>=120){var e=_.laS().mediaSession;try{e.setActionHandler("enterpictureinpicture",function(){G()})}catch(r){}}};
jtU=function(G){for(var e=[],r=_.h(document.styleSheets),Z=r.next(),O={};!Z.done;O={node$jscomp$775:void 0},Z=r.next())O.node$jscomp$775=Z.value.ownerNode,O.node$jscomp$775&&(O.node$jscomp$775 instanceof HTMLStyleElement||O.node$jscomp$775 instanceof HTMLLinkElement)&&e.push(new Promise(function(M){return function(T){var E=M.node$jscomp$775.cloneNode(!0);E.onload=function(){T()};
E.onerror=function(){_.FH(Error("tj"));T()};
G.document.head.appendChild(E)}}(O)));
return Promise.all(e)};
QtS=function(G){var e=[_.wS(aaF),_.wS(XIA),_.wS(KDq)];fai(window.document.documentElement,G.document.documentElement,[_.wS(kd$),_.wS(H4f),_.wS(dVS),_.wS(ons),_.wS(stF)]);fai(window.document.body,G.document.body,e)};
fai=function(G,e,r){G=_.h(G.attributes);for(var Z=G.next();!Z.done;Z=G.next())if(Z=Z.value)try{_.Df(r,e,Z.name,Z.value)}catch(O){}};
pI4=function(G,e){G=new _.W4(G.document.documentElement);G.start(Ia4,e);return G};
CP_=function(G){var e=G.document.documentElement;e.addEventListener("click",function(r){a1$(e,r)});
e.addEventListener("touchstart",function(r){H8s(r)});
e.addEventListener("mousedown",function(r){H8s(r)})};
nnq=function(G,e,r,Z){Z=Z===void 0?!1:Z;e=new uUU(e||G,r||G);return{x:G.x+((Z===void 0?0:Z)?e.lengthX*-1:e.lengthX)*.2,y:G.y+((Z===void 0?0:Z)?e.lengthY*-1:e.lengthY)*.2}};
mVS=function(G){if(!G)return!1;var e=G.status==="OK"||G.status==="LIVE_STREAM_OFFLINE",r,Z,O,M=(O=(r=G.errorScreen)==null?void 0:r.playerLegacyDesktopYpcTrailerRenderer)!=null?O:(Z=G.errorScreen)==null?void 0:Z.ypcTrailerRenderer;return!!e||!!M};
_.ckp=function(G,e){if(!G)return!1;var r,Z=(r=G.errorScreen)==null?void 0:r.playerLegacyDesktopYpcOfferRenderer,O;e=!!(e==null?0:(O=e.playerOverlayRenderer)==null?0:O.gatedActionsOverlayRenderer);return!!mVS(G)||!!Z||!!e};
Aka=function(G){return Yts(G,0,"gclid",G.search(yks))>=0||Yts(G,0,"gad_source",G.search(yks))>=0};
FDS=function(G){var e=[],r=0;return{clear:function(){r=e.length=0},
push:function(Z){e[r]=Z;r=(r+1)%G},
iterate:function(){return function O(){var M,T,E,b;return _.N$(O,function(w){switch(w.nextAddress){case 1:_.Km(w,2),M=e.length,T=0;case 4:if(!(T<M)){w.jumpTo(2);break}E=r+T;b=_.Lx;return w.yield(e[E%M],7);case 7:b(w.yieldResult);T++;w.jumpTo(4);break;case 2:_.Xa(w),_.fm(w,0)}})}()}}};
Jky=function(G){G.eventsToIgnore||(G.eventsToIgnore=[]);var e=G.eventsToIgnore.map(Kw_),r=new Set(e),Z=FDS(G.bufferSize);return{flush:function(){var O=Array.from(Z.iterate());Z.clear();O=O.map(function(M){return{name:M.name,timestamp:M.startTime,attributes:M.attributes}});
return JSON.stringify(O)},
onSpanStart:function(O){O.name==="event"&&r.has(O.attributes.type)||Z.push(O)}}};
B$F=function(G){G=Jky(G);var e=G.flush;jCN({onSpanStart:G.onSpanStart});xc.subscribe("handleError",function(r){try{r.params.breadcrumbs=e()}catch(Z){_.yx(Z,"WARNING")}})};
xVi=function(){lp("web_tracing_action");_.Rl("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
PPq=function(){lp("web_tracing_action");_.Rl("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
zM4=function(G,e,r){if(e===void 0){UVy||(PPq(),setInterval(PPq,6E5),UVy=!0);var Z="web_tracing_action"}else Z=e;var O,M=((O=G.endTime)!=null?O:G.startTime)-G.startTime,T={};O=G.name;var E=G.startTime;T={webTracing:(T[G.name]=G.attributes,T)};r=_.N0(m8f)(O,M,E,T,r,Z);if(G.children)for(G=_.h(G.children),Z=G.next();!Z.done;Z=G.next())zM4(Z.value,e,r)};
WDy=function(G){var e=oef.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(r){r.data&&typeof r.data==="object"&&(r=r.data,r.from==="extension"&&r.app==="yt.telemetry"&&(e("Received message from extension",r),G.onMessage(r)))});
return function(r,Z){r={app:"yt.telemetry",from:"app",key:r,payload:Z};e("Sending message to extension",r);window.postMessage(r,"*")}};
N$_=function(){var G=G===void 0?3E3:G;var e=WDy({onMessage:function(){}}),r=[];
return{onSpanEnd:function(Z){Z.parentId==null&&r.push(Z)===1&&setTimeout(function(){var O=[].concat(_.mY(r));r.length=0;e("spansReported",{spans:O})},G)}}};
LDA=function(G){G=G===void 0?400:G;var e=[],r=[];return{start:function(){return O7q({checkoutEveryNth:G,emit:function(Z,O){O&&(e=r,r=[]);r.push(Z)}})},
getRecording:function(){return[].concat(_.mY(e),_.mY(r))}}};
r7N=function(){(new G9_({sessionReplayEvents:_.qt("web_tracing_session_replay",0)})).subscribe(function(G){if(G.sessionReplayEvents>0)try{var e=LDA(G.sessionReplayEvents);e.start();if(_.R("web_tracing_session_replay_demo")){var r=console.log;window.exportSessionReplay=function(){var Z=JSON.stringify(e.getRecording(),null,2);Z=eoq(new Blob([Z],{type:"text/plain"}));var O=document.createElement("a");O.download="session_replay.json";O.dataset.downloadurl=["application/json",O.download,O.href].join(":");
O.style.display="none";O.href=Z;O.click();URL.revokeObjectURL(Z);r("View replay at go/yt-session-replay-viewer")}}}catch(Z){_.FH(Error("vj"))}})};
Onf=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var G=window.performance.getEntriesByType("navigation");if(G.length>0){var e=G[0],r;(r=k$S("pageLoad",{navigationType:ZnU(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}))==null||r.end()}}catch(Z){}})};
ZnU=function(G){switch(G){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"}};
DPq=function(){for(var G=M3F.value,e={},r=_.h(G.enabledSpansArray),Z=r.next();!Z.done;Z=r.next())e[Z.value]=!0;ReN({sessionId:MjA(),enabledSpans:e,shouldSampleFn:function(O,M,T){if(V3p){var E;return O==="shortToShort"||(T==null?void 0:(E=T.rootSpan())==null?void 0:E.name)==="shortToShort"}return!0}});
dlA();aZF("pageLoad")&&Onf();G.exportToCsi&&jCN(hoS);G.exportToDevTools&&jCN(N$_());G.maxBreadcrumbs>0&&B$F({eventsToIgnore:TnU,bufferSize:G.maxBreadcrumbs})};
EYq=function(G){return new Promise(function(e){window.setTimeout(e,G)})};
in_=function(G){var e={bicf:function(M){G.hV5=M},
blc:function(){return G.getLatestChallengeResponse()},
bcr:function(M){G.iJh.push(M)}},r=window;
r.ntpevasrs=e;if(r.ntpqfbel!==void 0)for(var Z=_.h(r.ntpqfbel),O=Z.next();!O.done;O=Z.next())O=O.value,O(e);r.ntpqfbel=void 0};
bn4=function(G){return _.D(function(e){if(e.nextAddress==1)return _.jr(e,2),e.yield(G.gFY(),4);if(e.nextAddress!=2)return _.rL(e,0);_.k5(e);_.HL(e)})};
vYp=function(G){var e,r;(e=G.ytcsi)==null||(r=e.tick)==null||r.call(e,"pot_ist")};
wms=function(G){if(G instanceof Error){var e=_.Lz("yt.logging.errors.log");e&&e(G,"WARNING")}};
$Ps=function(G){try{var e=JSON.parse(G);if(e.bgChallenge)return e}catch(r){}};
qni=function(){var G=window,e={networkStatusManagerPromise:_.v_().resolve(new LHs(_.e4)),initialChallengeSli:_.R("wpo_att_sli")?new _.X9$("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};G=G===void 0?window:G;var r=G.ytAtR,Z;e==null||(Z=e.initialChallengeSli)==null||_.Gx(Z);if(r){if(r=$Ps(r)){var O;e==null||(O=e.initialChallengeSli)==null||_.e0(O,"SUCCESS");Snp(r,e)}G.ytAtR=void 0}else G.ytAtRC=function(M){if(M=$Ps(M)){var T;e==null||(T=e.initialChallengeSli)==null||
_.e0(T,"SUCCESS");Snp(M,e);G.ytAtRC=void 0}}};
lcs=function(){if(t3y)return t3y;try{var G=_.Hp("IFRAME");_.Ge(G,_.qK(gYA));G.sandbox.add("allow-same-origin");G.style.display="none";document.body.appendChild(G);return t3y=G}catch(e){G=new _.Cr("Failed to create sandbox iframe"),_.yx(G)}};
RoS=function(G){var e,r;return(r=G==null?void 0:(e=G.contentWindow)==null?void 0:e.fetch)!=null?r:window.fetch};
jjF=function(G){var e,r;return(r=G==null?void 0:(e=G.contentWindow)==null?void 0:e.Request)!=null?r:window.Request};
acy=function(G){var e,r;return(r=G==null?void 0:(e=G.contentWindow)==null?void 0:e.TextDecoder)!=null?r:window.TextDecoder};
Xmf=function(){return function(G,e){_.xZ("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[G]=e}};
KW$=function(){return function(G,e){var r={};r[G]=e;G=_.N0(_.uGS)(r);Object.keys(G).length>0&&_.gJ(G)}};
Hns=function(){if(hIF()==="hidden")var G="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else hIF()==="visible"&&(G="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",fcf=null);G&&k9i(G)};
k9i=function(G){if(G==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||G==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(dPF===G)return;dPF=G}var e=9E4+Math.random()*2E3;if(G!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.bj()>e)&&hIF()==="visible"){e=-1;fcf&&(e=Math.round((0,_.vG)()-fcf));var r=String;var Z=_.Lz("_fact",window);Z=Z==null||Z==-1?-1:Math.max(Date.now()-Z,0);_.cg("foregroundHeartbeat",{firstActivityMs:r(Z),clientDocumentNonce:Vjf,index:String(oYa),lastEventDeltaMs:String(e),trigger:G});
_.Eu("_fact",-1,window);oYa++;fcf=(0,_.vG)()}};
sjS=function(G,e,r,Z,O,M){e=new Uint8Array(e);if(G.length===0)return e;var T=0;O=O!=null?O:G.length-1;for(var E=r;E<=O;E++){var b=G[E],w=E===r?Z:0,q=void 0,t=E===O?(q=M)!=null?q:b.length:b.length;b=b.subarray(w,t);e.set(b,T);T+=b.length}return e};
_.QjA=function(){try{return!!self.sessionStorage}catch(G){return!1}};
Ici=function(){var G=navigator;return new Promise(function(e,r){var Z;(Z=G.webkitTemporaryStorage)!=null&&Z.queryUsageAndQuota?G.webkitTemporaryStorage.queryUsageAndQuota(function(O,M){e({usage:O,quota:M})},function(O){r(O)}):r(Error("Ej"))})};
pmN=function(G,e){var r={errorSeverity:e.errorSeverity.toString(),wizFeatureFlags:Object.entries(e.featureFlags).join("\n")};CZN(e,r);e=e.errorSeverity;e===3?_.yx(G,"ERROR",void 0,void 0,void 0,r):e===2&&_.yx(G,"WARNING",void 0,void 0,void 0,r);_.R("cow_if_errors_in_popup")&&e===3&&G.message.indexOf("<If>")!==-1&&window.alert(G.message)};
Csy=function(G,e){var r=YJ.get(G)||{layerNode:e};r.layerNode=e;lZi(G,r);G.getScreenLayer=function(){return rB(r.layerNode)}};
uey=function(G){var e;G=G.parentNode;for(var r;G&&((e=YJ.get(G))==null||!e.isRenderer)&&!((r=G.polymerController)!=null?r:G).isRenderer_;)G=G.parentNode||G.host;if(e=G)return YJ.get(e)};
nYy=function(G){if(G){YJ.delete(G);var e=_.v_().resolve(bC);oxN(G,e)}};
c7s=function(G,e,r){if(r===void 0?0:r){if(r=G.getAttribute("client-ve-type"),e.data&&!e.disableReactiveLogging||r)_.JB(function(){mP4(G,_.FQ(e.data))},"sg"),_.yD(function(){return void nYy(G)})}else typeof e.data!=="function"&&mP4(G,e.data)};
mP4=function(G,e){Yna++;y7i(G,e)&&_.A0.addJob(function(){_.Zk(_.A0,function(){if(y7i(G,e)&&G.ownerDocument.documentElement===document.documentElement&&G){var r;if(G.getAttribute("layer")){var Z=r=Number(G.getAttribute("layer")),O=YJ.get(G);O?O.layerNode.layer=Z:Csy(G,new A7F(Z));(Z=uey(G))&&(O=YJ.get(G))!=null&&(O.layerNode.parent=Z.layerNode)}else if(r=YJ.get(G))r=rB(r.layerNode);else{r=rB;Z=new A7F;if(O=uey(G))Z.parent=O.layerNode;Csy(G,Z);r=r(Z)}r!=null||(r=0);Z=G.getAttribute("client-ve-type");
O=Number(Z);var M=!1;Z=!1;var T=YJ.get(G),E;if((E=T)&&!(E=T[FWA]!==e)&&(E=O)){var b;E=((b=YJ.get(G))==null?void 0:b.clientVeType)===void 0}E&&(T[FWA]=e,M=Z=T.isRenderer=!0);YJ.has(G)&&(YJ.get(G).clientVeType=O);G.visualElement&&(Z=!0);if(_.R("wiz_next_ld_fix_client_ve_spec")){var w;b=((w=_.a(e==null?void 0:e.rendererContext,_.Ta))==null?void 0:w.loggingDirectives)||(e==null?void 0:e.loggingDirectives)}else b=e==null?void 0:e.loggingDirectives;b&&b.clientVeSpec&&(w=J7U(_.ZM(),G),w=_.Bn4(_.h_(),b,w||
void 0,r))&&(G.visualElement=w);!G.visualElement&&O&&M&&(G.veType=O,w=void 0,_.R("wiz_next_client_ve_parent_fix")&&(w=J7U(_.ZM(),G)),w=_.OY(_.h_(),G,w,r),G.visualElement=w);Z&&(w=_.v_().resolve(bC),p0S(G,{data:e,observer:w,layer:r,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
y7i=function(G,e){return(e==null?0:e.trackingParams)||(e==null?0:e.loggingDirectives)||_.a(e==null?void 0:e.rendererContext,_.Ta)||G.getAttribute("client-ve-type")?!0:!1};
xP4=function(G,e,r){G.componentType!==uW&&r instanceof HTMLElement&&e&&!_.R("cow_logging_in_component_wrapper")&&c7s(r,e,!0)};
WWs=function(){if(!Psa){Psa=!0;var G=Object.assign({},{flushRenderEffectsDuringRender:!0,enableQueueEffectAndOnInitInitialRuns:_.R("enable_wiz_queue_effect_and_on_init_initial_runs"),enableContextPerComponent:_.R("enable_wiz_context_per_component")},{handleError:pmN,enableComponentStacksInErrorMessages:!1});Object.assign(bW,G);LM_=UPA;zo$();OOf=eyp;egq=rc4}};
zo$=function(){_.R("cow_logging_in_component_wrapper")?(E3f=function(G,e){e instanceof HTMLElement&&c7s(e,G,!0)},yPp=function(){}):(E3f=function(){},yPp=xP4)};
Nni=function(G,e,r){e=e===void 0?{}:e;var Z,O=(Z=_.a(G.commandMetadata,_.rJ))==null?void 0:Z.url;Z=e.form||{};!r||Z.element||Z.skipDefaultElement||(e.form=e.form||{},e.form.element=r);if(O&&O!=="/service_ajax")return{type:0,command:G,form:e.form};if(_.R("kevlar_service_command_check")){if(_.IV(_.v_().resolve(_.v1),G))return Object.assign({},{type:1,command:G},e)}else{var M;if((M=_.a(G.commandMetadata,_.rJ))==null?0:M.apiUrl)return Object.assign({},{type:1,command:G},e)}return{type:2,command:G,form:e.form}};
LW4=function(G){if(G.form){var e=G.form,r=Object.assign({},e);e=e.element;r=(delete r.element,r);if(e)return[_.zw(e,[G.command,r,G.commandController])]}return[]};
GLf=function(G){if(G.form){var e=G.form,r=Object.assign({},e);e=e.element;r=(delete r.element,r);e&&_.Wi(e,[G.command],e,r)}};
rFf=function(G,e,r){var Z=new eYU(G,e),O=new Oe(G,e,r);G={"/youtubei/v1/browse":new MS(G,e,r),"/youtubei/v1/player":Z,"/youtubei/v1/navigation/resolve_url":new Vn,"/youtubei/v1/next":O,"/youtubei/v1/guide":new hV(r),"/youtubei/v1/search":new Tx(G,e,r),"/youtubei/v1/reel/reel_item_watch":new Dk(G,e,r),"/youtubei/v1/get_watch":new Ee(Z,O)};G["/youtubei/v1/account/account_menu"]=new iM;G["/youtubei/v1/notification/get_notification_menu"]=new bM;return G};
wB=function(){var G=_.v_().resolve(_.vz);return Promise.resolve(Zss(G,_.O_.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
Osi=function(G){return G&&(G=_.$U(_.q$4(G)))?(new URLSearchParams(G)).get("service"):null};
tV=function(G,e){_.za(_.S0(),function(){_.jq("adl")});
_.v_().resolve(MNU)(e);G=G.root;G.loadData&&G.loadData(e);(e==null?0:e.response)?_.e0(k8U(),"SUCCESS"):_.FH(new _.Cr("Lifecycle: No response in data",_.PX("IS_SHELL_LOAD"),e?e.page:"NO_PAGE",e?e.endpoint:"NO_ENDPOINT"));G.polymerController.$["page-manager"].lazyPrepareCriticalPages((e==null?void 0:e.page)||"",e.endpoint);var r,Z;((Z=_.a(e==null?void 0:(r=e.endpoint)==null?void 0:r.commandMetadata,_.rJ))==null?0:Z.webPageType)&&_.Yt().dispatch(_.qS(_.a(e.endpoint.commandMetadata,_.rJ).webPageType))};
VNA=function(){var G,e;return _.D(function(r){switch(r.nextAddress){case 1:G=window;if(!G.getDataPromise){r.jumpTo(2);break}_.jr(r,3);return r.yield(G.getDataPromise(),5);case 5:return r.return(r.yieldResult);case 3:return _.k5(r),r.yield(wB(),6);case 6:return r.return(r.yieldResult);case 2:if(G.getInitialData)return e=G.getInitialData(),G.getInitialData=void 0,r.return(e);throw Error("Gj`"+_.O_.location.href);}})};
TK_=function(){_.BX("CSI_SERVICE_NAME","youtube");_.gJ({loadType:"cold"});_.R("kevlar_log_lcp")&&hYA(function(G){_.jq("lcp",G.value)})};
Dyi=function(){var G=_.Wp(document.location.href,"enable");G&&G.indexOf("scraper")>-1&&_.BX("ADD_SCRAPER_ATTRIBUTES",!0)};
wCi=function(G){var e=G.root;G=[EI_,isA,_.gB];_.R("web_feedback_endpoint_autolog_allowlist_killswitch")&&G.push(_.lM,bsf);vIS(function(r,Z){return Nni(r,Z,e)},function(r){if(!r.command)return[];
var Z;((Z=r.form)==null?0:Z.element)?r.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},r.form,{endpoint:r.command})})):e.handleNavigate(r);return[]},G);
_.v_().addProvider({provide:_.$1,useValue:_.Ga.instance})};
SX_=function(){var G={},e={},r;for(r in $yS){var Z=_.h(_.XQ($yS[r],void 0,"IAtZ7"));G[r]=Z.next().value;e[r]=Z.next().value}return[G,function(O){for(var M in O){var T=void 0;(T=e[M])==null||T(O[M])}}]};
_.Rr=function(G,e,r){e=e===void 0?!1:e;var Z=_.c2.getValueByKeys(G,"contents","twoColumnWatchNextResults","results","results","contents"),O=_.c2.getValueByKeys(G,"contents","twoColumnWatchNextResults","playlist","playlist")||null;e&&(O=null);var M=e=null;if(O)e=_.c2.getValueByKeys(O,"titleText"),M=_.c2.unsafeClone(_.c2.getValueByKeys(O,"longBylineText")),Z="",M&&(Z=_.mG(M)),M=_.nQ(Z);else if(Z){Z=_.h(Z);for(var T=Z.next();!T.done;T=Z.next())T=T.value,T.videoPrimaryInfoRenderer&&(e=_.c2.getValueByKeys.apply(_.c2,
[T].concat(_.mY(qXS)))),T.videoSecondaryInfoRenderer&&(M=_.c2.getValueByKeys.apply(_.c2,[T].concat(_.mY(tNp))))}else _.GG(Error("Lj"));var E;G.currentVideoEndpoint?E=G.currentVideoEndpoint:_.GG(Error("Mj"));var b;r&&(b=_.c2.getValueByKeys(r,"playabilityStatus","miniplayer","miniplayerRenderer"));G={miniplayerTitle:e,miniplayerSubtitle:M,watchEndpoint:E,playlistData:O};b&&(G.miniplayerRenderer=b);return G};
gI4=function(G){if(G)return _.l1(G)};
_.lhs=function(){return{isFullscreen:function(){throw Error("Nj");},
toggleFullscreen:function(){throw Error("Oj");},
exitFullscreen:function(){throw Error("Pj");},
isAutonavEnabled:function(){throw Error("Qj");},
setAutonavEnabled:function(){throw Error("Rj");},
isAutoplaySetExplicitly:function(){throw Error("Sj");}}};
RY_=function(G){return G.videoDuration?G.numTaps>1&&G.tapDirection!==0?_.j0(G.draggedTime/G.videoDuration,0,1):_.j0((G.playedTime||0)/G.videoDuration,0,1):0};
jEf=function(G){return G.videoDuration?G.isDragging||G.numTaps>1&&G.tapDirection!==0?_.j0(G.draggedTime/G.videoDuration,0,1):_.j0((G.playedTime||0)/G.videoDuration,0,1):0};
XCS=function(G){var e,r,Z;return _.a(G==null?void 0:(e=G.markersMap)==null?void 0:(r=e.find(function(O){return O.key==="HEATSEEKER"}))==null?void 0:(Z=r.value)==null?void 0:Z.heatmap,ah4)};
K1$=function(G){var e,r;return(r=(e=XCS(G))==null?void 0:e.heatMarkersDecorations)!=null?r:[]};
fhA=function(G){if(_.R("mweb_supported_chapters_killswitch"))return!0;var e;return!!(G==null?0:(e=G.markersMap)==null?0:e.find(function(r){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(r.key)}))};
_.kLy=function(G){var e=Object,r=e.assign,Z;G={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(Z=G==null?void 0:G.getPlayerState())!=null?Z:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return r.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,lastTapTime:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},G,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
HsN=function(G){return function(e){var r=G(),Z,O=(Z=r.playerApi)==null?void 0:Z.getPlayerState();e&&e!==r.playerState&&(e===1||e===2)&&r.setState({playerState:O})}};
oIF=function(G){return function(e){var r=G(),Z=r.playerApi;Z&&(e==null?void 0:e.type)==="newdata"&&(dyU&&(clearTimeout(dyU),dyU=void 0),_.R("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),r.setState({playedTime:0,videoDuration:e}))}};
sEA=function(G){return function(e){var r=G(),Z=r.playerApi;if(Z){var O=Z.getPresentingPlayerType();_.R("web_shorts_use_progress_state_for_gapless")?(Z=Z.getProgressState(O),Z=Z.seekableEnd-Z.seekableStart):Z=Z.getDuration(O);r.setState({playedTime:e,videoDuration:Z})}}};
IhS=function(G){_.$i(112394,G,function(){return QE_},function(e){QE_=e})};
u7f=function(G,e){if(!G)return[];var r,Z,O;G=((r=G.markersMap)==null?void 0:(Z=r.find(function(M){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(M.key)}))==null?void 0:(O=Z.value)==null?void 0:O.chapters)||[];
!pCS(G)||(e==null?0:e.ignoreStub)||(G=[C3s()].concat(_.mY(G)));return G};
C3s=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
pCS=function(G){if(G.length===0)return!1;var e;return((e=_.a(G[0],ar))==null?void 0:e.timeRangeStartMillis)!==0};
Xb=function(G){return G?G.timeRangeStartMillis||0:0};
mya=function(G,e){if(G.isDragging&&e)return G=nI$(G,e),G===-1?C3s():u7f(e)[G]};
nI$=function(G,e){return G.isDragging&&e?u7f(e,{ignoreStub:!0}).findIndex(function(r,Z,O){r=cFA(G);return YXa(r,O,Z).scrubberHovering}):-1};
cFA=function(G){return Object.assign({},G,{videoDuration:G.videoDuration*1E3,playedTime:G.playedTime*1E3,draggedTime:G.draggedTime*1E3})};
YXa=function(G,e,r){var Z=Xb(_.a(e[r],ar));e=Xb(_.a(e[r+1],ar))||G.videoDuration;r=G.isDragging;var O;if(O=G.isDragging)O=G.draggedTime,O=O!==null&&O>=Z&&O<e;var M=G.playedTime;return M!==null&&M>=Z&&M<e?{videoPosition:"active",isScrubbing:r,scrubberHovering:O}:G.playedTime<Z?{videoPosition:"pending",isScrubbing:r,scrubberHovering:O}:{videoPosition:"seen",isScrubbing:r,scrubberHovering:O}};
yFA=function(G,e){return G.videoPosition==="seen"||(e===void 0?0:e)>0};
AFA=function(G,e,r){e=G/e.storyboardInterval;var Z=u7f(r);if(!Z.length)return-e*72;r=0;Z=_.h(Z);for(var O=Z.next();!O.done;O=Z.next())if(Xb(_.a(O.value,ar))/1E3<G)r++;else break;return-(e*72)-r*56};
F1_=function(G){return G?G.width/G.columns:0};
JFA=function(G){return G.isHovering?G.hoveredTime:G.draggedTime};
BKy=function(G,e){G=G.draggedTime*1E3;return G>=e.visibleTimeRangeStartMillis&&G<=e.visibleTimeRangeEndMillis};
_.xyy=function(G){if(G===void 0||Number.isNaN(G))return"--:--";var e=Math.abs(Math.floor(G)),r=Math.floor(e/86400),Z=Math.floor(e%86400/3600),O=Math.floor(e%3600/60);e=Math.floor(e%60);var M="";r>0&&(M+=r+":",Z<10&&(M+="0"));if(r>0||Z>0)M+=Z+":",O<10&&(M+="0");M+=O+":";e<10&&(M+="0");M+=e;return G>=0?M:"-"+M};
P3q=function(G,e){return function(){var r=JFA(G());var Z=e();var O=G().playerApi;if(O&&O.getNumberOfStoryboardLevels()!==0){var M=O.getStoryboardFrameIndex(r,1);M!==-1?Z=O.getStoryboardFrame(M,1):(r=O.getStoryboardFrameIndex(r,0),O=O.getStoryboardFrame(r,0),Z&&O&&(O.height*=3,O.width*=3),Z=O)}else Z=null;if(!Z)return null;e()&&(Z.width=90*Z.columns,Z.height=160*Z.rows);return Z}};
_.Kp=function(G){if(!G||G.getVideoData)return G};
UyS=function(){var G;return{playerApi:(G=_.eV())!=null?G:void 0}};
zYi=function(G){var e;_.D(function(r){if(r.nextAddress==1)return r.yield(_.G_(),2);if(e=r.yieldResult)e.unMute(!0),e.setVolume(G,!0);_.HL(r)})};
W1i=function(G,e){G&&(G.value=""+e,G.style.setProperty("--gradient-percent",e+"%"))};
NKF=function(G){var e;return(e=G==null?void 0:G.value)!=null?e:0};
L1S=function(){var G;_.D(function(e){if(e.nextAddress==1)return e.yield(_.G_(),2);G=e.yieldResult;if(!G)return e.return();G.isMuted()?G.unMute(!0):G.mute(!0);_.HL(e)})};
GHf=function(G){var e=_.v_().resolve(_.fp).getPlayerElement();e&&G&&(G===1?e.pause():e.play())};
eAA=function(G){_.UW(G,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
rUF=function(G){_.UW(G,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
O3a=function(G){return _.cX(G.document.body,function(){return _.v(Z3i,null)},"gh")};
MiU=function(){var G=window.performance.getEntriesByType("navigation");return G?G.map(function(e){return e.type}).includes("reload"):!1};
vdS=function(){kU(kU(kU(kU(kU(kU(kU(_.v_().resolve(_.Hz),_.ViS),_.hAU),_.TVN),_.D7U),_.Edi),_.i3A),_.b3a)};
w8y=function(G,e){e=e===void 0?!1:e;var r,Z,O,M;return _.D(function(T){if(T.nextAddress==1)return e||!_.R("kevlar_shorts_seedless_retry_initial_load")||(r=window,Z=!(!r.getDataPromise&&!r.getInitialData),Z)?T.yield(VNA(),2):(setTimeout(w8y.bind(window,G,!0),1E3),T.return());if(T.nextAddress!=3)return O=T.yieldResult,T.yield($7U(O),3);M=T.yieldResult;tV(G,M);_.HL(T)})};
$7U=function(G){var e;if((e=G.response)==null||!e.replacementEndpoint)return _.Nz(G);e=_.v_().resolve(_.vz);G=G.response;_.a(G.replacementEndpoint,_.DC)&&G.sequenceContinuation&&(_.a(G.replacementEndpoint,_.DC).sequenceParams=G.sequenceContinuation);return dB(e,G.replacementEndpoint,{},_.O_.location.href,"shorts",function(){},function(){return!1})};
qqA=function(G){var e=_.v_().resolve(Sqa);G.playerResponse&&e.handleResponse(G.playerResponse);G.response&&e.handleResponse(G.response)};
tiS=function(G){var e=_.Yt(),r,Z=_.a((r=G.response)==null?void 0:r.frameworkUpdates,uZ),O;r=_.a((O=G.playerResponse)==null?void 0:O.frameworkUpdates,uZ);var M;G=_.a((M=G.reelWatchSequenceResponse)==null?void 0:M.frameworkUpdates,uZ);Z&&_.V4(Z,e);r&&_.V4(r,e);G&&_.V4(G,e)};
gdf=function(G){var e;_.R("enable_redirect_linking_for_desktop_web_client")&&((e=window.location.hash)==null?0:e.includes("redirect_state"))&&G.url&&(G.url=G.url.toString()+window.location.hash)};
j9y=function(G){var e=_.v_(),r=e.resolve(_.vz);e=e.resolve(_.ljN);G.endpoint&&(r=RAS(r,G.endpoint),r.content&&G.response&&_.or(e,G.response,r.content),r.player&&G.playerResponse&&_.or(e,G.playerResponse,r.player),r.reelSequence&&G.reelWatchSequenceResponse&&_.or(e,G.reelWatchSequenceResponse,r.reelSequence))};
se=function(G,e){qqA(e);tiS(e);var r;(e==null?0:e.url)&&((r=window.location.hash)==null?0:r.includes("redirect_state"))&&(gdf(e),(r=Osi(e.url))&&_.Pi(G.root,"yt-initialize-third-party",[r,e]));j9y(e);r=_.v_();var Z=r.resolve(aja);e.playerResponse&&r.resolve(X84).handleResponse(e.playerResponse);if(e.playerResponse){r=void 0;if(_.R("ab_v_vid_sig")&&e.endpoint){var O,M=(O=_.a(e.endpoint,_.u4))!=null?O:_.a(e.endpoint,_.DC);M&&(r=M.videoId)}Key(Z,e.playerResponse,r)}e.playerResponse&&GZF(e.playerResponse)&&
_.R("web_enable_ab_rsp_cl")?Q3q().then(function(){fjN(Z,e.playerResponse);tV(G,e)}):tV(G,e)};
H3y=function(G){if(G=G.root.data){var e=_.v_().resolve(kHs);G.endpoint&&(G.response&&e.handleResponse(G.response,void 0,document.querySelector("ytd-app")),G.playerResponse&&e.handleResponse(G.playerResponse),G.reelWatchSequenceResponse&&e.handleResponse(G.reelWatchSequenceResponse))}};
d7F=function(G){var e,r,Z,O,M,T;return _.D(function(E){switch(E.nextAddress){case 1:e=window;if(!e.getDataPromise){E.jumpTo(2);break}_.jr(E,3);return E.yield(e.getDataPromise(),5);case 5:r=E.yieldResult;se(G,r);_.rL(E,4);break;case 3:return _.k5(E),E.yield(wB(),6);case 6:Z=E.yieldResult,tV(G,Z);case 4:return E.return();case 2:if(!_.R("sw_nav_preload_pbj")){E.jumpTo(7);break}e.fetchInitialData=function(){var b;return _.D(function(w){if(w.nextAddress==1)return w.yield(wB(),2);b=w.yieldResult;tV(G,b);
_.HL(w)})};
if(e.getInitialData){e.loadInitialData=function(b){se(G,b)};
O=e.getInitialData();e.getInitialData=void 0;se(G,O);E.jumpTo(8);break}e.fetchInitialData=void 0;return E.yield(wB(),9);case 9:M=E.yieldResult,tV(G,M);case 8:return E.return();case 7:e.getInitialData?(T=e.getInitialData(),e.getInitialData=void 0,se(G,T)):e.loadInitialData=function(b){se(G,b)},_.HL(E)}})};
s9y=function(){var G=new odA;_.zwa(G);G.registerInitializationCallback(function(){OxS(void 0,void 0,void 0,_.R("web_enable_mss_batching_ks")?void 0:{batchingStrategy:"BATCH"})});
G.registerCallback("error",function(e,r,Z){_.WX(Error("Wj`"+r+"`"+Z))})};
Q9S=function(G){var e=0;return function(){return e<G.length?{done:!1,value:G[e++]}:{done:!0}}};
Iji=typeof Object.defineProperties=="function"?Object.defineProperty:function(G,e,r){if(G==Array.prototype||G==Object.prototype)return G;G[e]=r.value;return G};
p8_=function(G){G=["object"==typeof globalThis&&globalThis,G,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<G.length;++e){var r=G[e];if(r&&r.Math==Math)return r}throw Error("a");};
_.iY=p8_(this);Chq="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.iY.BigInt64Array&&(Chq.push("BigInt64"),Chq.push("BigUint64"));var nda=function(G,e){if(e)for(var r=0;r<Chq.length;r++)ujF(Chq[r]+"Array.prototype."+G,e)},Qn=function(G,e){e&&ujF(G,e)},ujF=function(G,e){var r=_.iY;
G=G.split(".");for(var Z=0;Z<G.length-1;Z++){var O=G[Z];if(!(O in r))return;r=r[O]}G=G[G.length-1];Z=r[G];e=e(Z);e!=Z&&e!=null&&Iji(r,G,{configurable:!0,writable:!0,value:e})};
Qn("Symbol",function(G){if(G)return G;var e=function(M,T){this.$jscomp$symbol$id_=M;Iji(this,"description",{configurable:!0,writable:!0,value:T})};
e.prototype.toString=function(){return this.$jscomp$symbol$id_};
var r="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",Z=0,O=function(M){if(this instanceof O)throw new TypeError("b");return new e(r+(M||"")+"_"+Z++,M)};
return O});
Qn("Symbol.iterator",function(G){if(G)return G;G=Symbol("c");Iji(Array.prototype,G,{configurable:!0,writable:!0,value:function(){return m7y(Q9S(this))}});
return G});
Qn("Symbol.asyncIterator",function(G){return G?G:Symbol("d")});
var m7y=function(G){G={next:G};G[Symbol.iterator]=function(){return this};
return G},cUS=typeof Object.create=="function"?Object.create:function(G){var e=function(){};
e.prototype=G;return new e},Yqp=function(){function G(){function r(){}
new r;Reflect.construct(r,[],function(){});
return new r instanceof r}
if(typeof Reflect!="undefined"&&Reflect.construct){if(G())return Reflect.construct;var e=Reflect.construct;return function(r,Z,O){r=e(r,Z);O&&Reflect.setPrototypeOf(r,O.prototype);return r}}return function(r,Z,O){O===void 0&&(O=r);
O=cUS(O.prototype||Object.prototype);return Function.prototype.apply.call(r,O,Z)||O}}(),yUS;
if(typeof Object.setPrototypeOf=="function")yUS=Object.setPrototypeOf;else{var AU4;a:{var FeF={a:!0},JUa={};try{JUa.__proto__=FeF;AU4=JUa.a;break a}catch(G){}AU4=!1}yUS=AU4?function(G,e){G.__proto__=e;if(G.__proto__!==e)throw new TypeError("e`"+G);return G}:null}Ir=yUS;
_.K=function(G,e){G.prototype=cUS(e.prototype);G.prototype.constructor=G;if(Ir)Ir(G,e);else for(var r in e)if(r!="prototype")if(Object.defineProperties){var Z=Object.getOwnPropertyDescriptor(e,r);Z&&Object.defineProperty(G,r,Z)}else G[r]=e[r];G.superClass_=e.prototype};
_.h=function(G){var e=typeof Symbol!="undefined"&&Symbol.iterator&&G[Symbol.iterator];if(e)return e.call(G);if(typeof G.length=="number")return{next:Q9S(G)};throw Error("f`"+String(G));};
MI=function(G){for(var e,r=[];!(e=G.next()).done;)r.push(e.value);return r};
_.mY=function(G){return G instanceof Array?G:MI(_.h(G))};
_.Cp=function(G){return pp(G,G)};
pp=function(G,e){G.raw=e;Object.freeze&&(Object.freeze(G),Object.freeze(e));return G};
uM=function(G,e){return Object.prototype.hasOwnProperty.call(G,e)};
BV$=function(G){if(G==null)throw new TypeError("g");return Object(G)};
x7f=typeof Object.assign=="function"?Object.assign:function(G,e){G=BV$(G);for(var r=1;r<arguments.length;r++){var Z=arguments[r];if(Z)for(var O in Z)uM(Z,O)&&(G[O]=Z[O])}return G};
Qn("Object.assign",function(G){return G||x7f});
var np=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},Php=function(G){if(G.isRunning_)throw new TypeError("i");
G.isRunning_=!0};
np.prototype.JSC$8729_next_=function(G){this.yieldResult=G};
var U7S=function(G,e){G.abruptCompletion_={exception:e,isException:!0};G.nextAddress=G.catchAddress_||G.finallyAddress_};
np.prototype.return=function(G){this.abruptCompletion_={return:G};this.nextAddress=this.finallyAddress_};
np.prototype.yield=function(G,e){this.nextAddress=e;return{value:G}};
np.prototype.jumpTo=function(G){this.nextAddress=G};
_.HL=function(G){G.nextAddress=0};
_.jr=function(G,e,r){G.catchAddress_=e;r!=void 0&&(G.finallyAddress_=r)};
_.Km=function(G,e){G.catchAddress_=0;G.finallyAddress_=e||0};
_.rL=function(G,e,r){G.nextAddress=e;G.catchAddress_=r||0};
_.k5=function(G,e){G.catchAddress_=e||0;e=G.abruptCompletion_.exception;G.abruptCompletion_=null;return e};
_.Xa=function(G,e,r,Z){Z?G.finallyContexts_[Z]=G.abruptCompletion_:G.finallyContexts_=[G.abruptCompletion_];G.catchAddress_=e||0;G.finallyAddress_=r||0};
_.fm=function(G,e,r){r=G.finallyContexts_.splice(r||0)[0];(r=G.abruptCompletion_=G.abruptCompletion_||r)?r.isException?G.nextAddress=G.catchAddress_||G.finallyAddress_:r.jumpTo!=void 0&&G.finallyAddress_<r.jumpTo?(G.nextAddress=r.jumpTo,G.abruptCompletion_=null):G.nextAddress=G.finallyAddress_:G.nextAddress=e};
zA4=function(G){this.JSC$8734_context_=new np;this.program_=G};
NVq=function(G,e){Php(G.JSC$8734_context_);var r=G.JSC$8734_context_.yieldAllIterator_;if(r)return Weq(G,"return"in r?r["return"]:function(Z){return{value:Z,done:!0}},e,G.JSC$8734_context_.return);
G.JSC$8734_context_.return(e);return m$(G)};
Weq=function(G,e,r,Z){try{var O=e.call(G.JSC$8734_context_.yieldAllIterator_,r);if(!(O instanceof Object))throw new TypeError("h`"+O);if(!O.done)return G.JSC$8734_context_.isRunning_=!1,O;var M=O.value}catch(T){return G.JSC$8734_context_.yieldAllIterator_=null,U7S(G.JSC$8734_context_,T),m$(G)}G.JSC$8734_context_.yieldAllIterator_=null;Z.call(G.JSC$8734_context_,M);return m$(G)};
m$=function(G){for(;G.JSC$8734_context_.nextAddress;)try{var e=G.program_(G.JSC$8734_context_);if(e)return G.JSC$8734_context_.isRunning_=!1,{value:e.value,done:!1}}catch(r){G.JSC$8734_context_.yieldResult=void 0,U7S(G.JSC$8734_context_,r)}G.JSC$8734_context_.isRunning_=!1;if(G.JSC$8734_context_.abruptCompletion_){e=G.JSC$8734_context_.abruptCompletion_;G.JSC$8734_context_.abruptCompletion_=null;if(e.isException)throw e.exception;return{value:e.return,done:!0}}return{value:void 0,done:!0}};
Le$=function(G){this.next=function(e){Php(G.JSC$8734_context_);G.JSC$8734_context_.yieldAllIterator_?e=Weq(G,G.JSC$8734_context_.yieldAllIterator_.next,e,G.JSC$8734_context_.JSC$8729_next_):(G.JSC$8734_context_.JSC$8729_next_(e),e=m$(G));return e};
this.throw=function(e){Php(G.JSC$8734_context_);G.JSC$8734_context_.yieldAllIterator_?e=Weq(G,G.JSC$8734_context_.yieldAllIterator_["throw"],e,G.JSC$8734_context_.JSC$8729_next_):(U7S(G.JSC$8734_context_,e),e=m$(G));return e};
this.return=function(e){return NVq(G,e)};
this[Symbol.iterator]=function(){return this}};
_.N$=function(G,e){e=new Le$(new zA4(e));Ir&&G.prototype&&Ir(e,G.prototype);return e};
GSl=function(G){function e(Z){return G.next(Z)}
function r(Z){return G.throw(Z)}
return new Promise(function(Z,O){function M(T){T.done?Z(T.value):Promise.resolve(T.value).then(e,r).then(M,O)}
M(G.next())})};
_.D=function(G){return GSl(new Le$(new zA4(G)))};
_.aL=function(G){var e=G[Symbol.asyncIterator];return e!==void 0?e.call(G):new eaE(_.h(G))};
eaE=function(G){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return G};
this.next=function(e){return Promise.resolve(G.next(e))};
this["throw"]=function(e){return new Promise(function(r,Z){var O=G["throw"];O!==void 0?r(O.call(G,e)):(r=G["return"],r!==void 0&&r.call(G),Z(new TypeError("j")))})};
G["return"]!==void 0&&(this["return"]=function(e){return Promise.resolve(G["return"](e))})};
_.Bw=function(){for(var G=Number(this),e=[],r=G;r<arguments.length;r++)e[r-G]=arguments[r];return e};
_.Lx=function(G){return G};
Qn("globalThis",function(G){return G||_.iY});
Qn("Reflect",function(G){return G?G:{}});
Qn("Reflect.construct",function(){return Yqp});
Qn("Reflect.setPrototypeOf",function(G){return G?G:Ir?function(e,r){try{return Ir(e,r),!0}catch(Z){return!1}}:null});
Qn("Promise",function(G){function e(){this.batch_=null}
function r(T){return T instanceof O?T:new O(function(E){E(T)})}
if(G&&(typeof _.iY.PromiseRejectionEvent!=="undefined"||!_.iY.Promise||_.iY.Promise.toString().indexOf("[native code]")===-1))return G;e.prototype.asyncExecute=function(T){if(this.batch_==null){this.batch_=[];var E=this;this.asyncExecuteFunction(function(){E.executeBatch_()})}this.batch_.push(T)};
var Z=_.iY.setTimeout;e.prototype.asyncExecuteFunction=function(T){Z(T,0)};
e.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var T=this.batch_;this.batch_=[];for(var E=0;E<T.length;++E){var b=T[E];T[E]=null;try{b()}catch(w){this.asyncThrow_(w)}}}this.batch_=null};
e.prototype.asyncThrow_=function(T){this.asyncExecuteFunction(function(){throw T;})};
var O=function(T){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var E=this.createResolveAndReject_();try{T(E.resolve,E.reject)}catch(b){E.reject(b)}};
O.prototype.createResolveAndReject_=function(){function T(w){return function(q){b||(b=!0,w.call(E,q))}}
var E=this,b=!1;return{resolve:T(this.resolveTo_),reject:T(this.JSC$8762_reject_)}};
O.prototype.resolveTo_=function(T){if(T===this)this.JSC$8762_reject_(new TypeError("n"));else if(T instanceof O)this.settleSameAsPromise_(T);else{a:switch(typeof T){case "object":var E=T!=null;break a;case "function":E=!0;break a;default:E=!1}E?this.resolveToNonPromiseObj_(T):this.fulfill_(T)}};
O.prototype.resolveToNonPromiseObj_=function(T){var E=void 0;try{E=T.then}catch(b){this.JSC$8762_reject_(b);return}typeof E=="function"?this.settleSameAsThenable_(E,T):this.fulfill_(T)};
O.prototype.JSC$8762_reject_=function(T){this.settle_(2,T)};
O.prototype.fulfill_=function(T){this.settle_(1,T)};
O.prototype.settle_=function(T,E){if(this.state_!=0)throw Error("o`"+T+"`"+E+"`"+this.state_);this.state_=T;this.result_=E;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
O.prototype.scheduleUnhandledRejectionCheck_=function(){var T=this;Z(function(){if(T.notifyUnhandledRejection_()){var E=_.iY.console;typeof E!=="undefined"&&E.error(T.result_)}},1)};
O.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var T=_.iY.CustomEvent,E=_.iY.Event,b=_.iY.dispatchEvent;if(typeof b==="undefined")return!0;typeof T==="function"?T=new T("unhandledrejection",{cancelable:!0}):typeof E==="function"?T=new E("unhandledrejection",{cancelable:!0}):(T=_.iY.document.createEvent("CustomEvent"),T.initCustomEvent("unhandledrejection",!1,!0,T));T.promise=this;T.reason=this.result_;return b(T)};
O.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var T=0;T<this.onSettledCallbacks_.length;++T)M.asyncExecute(this.onSettledCallbacks_[T]);this.onSettledCallbacks_=null}};
var M=new e;O.prototype.settleSameAsPromise_=function(T){var E=this.createResolveAndReject_();T.callWhenSettled_(E.resolve,E.reject)};
O.prototype.settleSameAsThenable_=function(T,E){var b=this.createResolveAndReject_();try{T.call(E,b.resolve,b.reject)}catch(w){b.reject(w)}};
O.prototype.then=function(T,E){function b(g,l){return typeof g=="function"?function(X){try{w(g(X))}catch(H){q(H)}}:l}
var w,q,t=new O(function(g,l){w=g;q=l});
this.callWhenSettled_(b(T,w),b(E,q));return t};
O.prototype.catch=function(T){return this.then(void 0,T)};
O.prototype.callWhenSettled_=function(T,E){function b(){switch(w.state_){case 1:T(w.result_);break;case 2:E(w.result_);break;default:throw Error("p`"+w.state_);}}
var w=this;this.onSettledCallbacks_==null?M.asyncExecute(b):this.onSettledCallbacks_.push(b);this.isRejectionHandled_=!0};
O.resolve=r;O.reject=function(T){return new O(function(E,b){b(T)})};
O.race=function(T){return new O(function(E,b){for(var w=_.h(T),q=w.next();!q.done;q=w.next())r(q.value).callWhenSettled_(E,b)})};
O.all=function(T){var E=_.h(T),b=E.next();return b.done?r([]):new O(function(w,q){function t(X){return function(H){g[X]=H;l--;l==0&&w(g)}}
var g=[],l=0;do g.push(void 0),l++,r(b.value).callWhenSettled_(t(g.length-1),q),b=E.next();while(!b.done)})};
return O});
var cz=function(G,e,r){if(G==null)throw new TypeError("q`"+r);if(e instanceof RegExp)throw new TypeError("r`"+r);return G+""};
Qn("String.prototype.startsWith",function(G){return G?G:function(e,r){var Z=cz(this,e,"startsWith"),O=Z.length,M=e.length;r=Math.max(0,Math.min(r|0,Z.length));for(var T=0;T<M&&r<O;)if(Z[r++]!=e[T++])return!1;return T>=M}});
Qn("Object.setPrototypeOf",function(G){return G||Ir});
Qn("Symbol.dispose",function(G){return G?G:Symbol("s")});
Qn("SuppressedError",function(G){function e(r,Z,O){if(!(this instanceof e))return new e(r,Z,O);O=Error(O);"stack"in O&&(this.stack=O.stack);this.message=O.message;this.error=r;this.suppressed=Z}
if(G)return G;_.K(e,Error);e.prototype.name="SuppressedError";return e});
Qn("Array.from",function(G){return G?G:function(e,r,Z){r=r!=null?r:function(E){return E};
var O=[],M=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];if(typeof M=="function"){e=M.call(e);for(var T=0;!(M=e.next()).done;)O.push(r.call(Z,M.value,T++))}else for(M=e.length,T=0;T<M;T++)O.push(r.call(Z,e[T],T));return O}});
var riC=function(G,e,r){G instanceof String&&(G=String(G));for(var Z=G.length,O=0;O<Z;O++){var M=G[O];if(e.call(r,M,O,G))return{i:O,v:M}}return{i:-1,v:void 0}};
Qn("Array.prototype.find",function(G){return G?G:function(e,r){return riC(this,e,r).v}});
Qn("WeakMap",function(G){function e(){}
function r(b){var w=typeof b;return w==="object"&&b!==null||w==="function"}
function Z(b){if(!uM(b,M)){var w=new e;Iji(b,M,{value:w})}}
function O(b){var w=Object[b];w&&(Object[b]=function(q){if(q instanceof e)return q;Object.isExtensible(q)&&Z(q);return w(q)})}
if(function(){if(!G||!Object.seal)return!1;try{var b=Object.seal({}),w=Object.seal({}),q=new G([[b,2],[w,3]]);if(q.get(b)!=2||q.get(w)!=3)return!1;q.delete(b);q.set(w,4);return!q.has(b)&&q.get(w)==4}catch(t){return!1}}())return G;
var M="$jscomp_hidden_"+Math.random();O("freeze");O("preventExtensions");O("seal");var T=0,E=function(b){this.JSC$8770_id_=(T+=Math.random()+1).toString();if(b){b=_.h(b);for(var w;!(w=b.next()).done;)w=w.value,this.set(w[0],w[1])}};
E.prototype.set=function(b,w){if(!r(b))throw Error("t");Z(b);if(!uM(b,M))throw Error("u`"+b);b[M][this.JSC$8770_id_]=w;return this};
E.prototype.get=function(b){return r(b)&&uM(b,M)?b[M][this.JSC$8770_id_]:void 0};
E.prototype.has=function(b){return r(b)&&uM(b,M)&&uM(b[M],this.JSC$8770_id_)};
E.prototype.delete=function(b){return r(b)&&uM(b,M)&&uM(b[M],this.JSC$8770_id_)?delete b[M][this.JSC$8770_id_]:!1};
return E});
Qn("Map",function(G){if(function(){if(!G||typeof G!="function"||!G.prototype.entries||typeof Object.seal!="function")return!1;try{var E=Object.seal({x:4}),b=new G(_.h([[E,"s"]]));if(b.get(E)!="s"||b.size!=1||b.get({x:4})||b.set({x:4},"t")!=b||b.size!=2)return!1;var w=b.entries(),q=w.next();if(q.done||q.value[0]!=E||q.value[1]!="s")return!1;q=w.next();return q.done||q.value[0].x!=4||q.value[1]!="t"||!w.next().done?!1:!0}catch(t){return!1}}())return G;
var e=new WeakMap,r=function(E){this[0]={};this[1]=M();this.size=0;if(E){E=_.h(E);for(var b;!(b=E.next()).done;)b=b.value,this.set(b[0],b[1])}};
r.prototype.set=function(E,b){E=E===0?0:E;var w=Z(this,E);w.list||(w.list=this[0][w.id]=[]);w.entry?w.entry.value=b:(w.entry={next:this[1],previous:this[1].previous,head:this[1],key:E,value:b},w.list.push(w.entry),this[1].previous.next=w.entry,this[1].previous=w.entry,this.size++);return this};
r.prototype.delete=function(E){E=Z(this,E);return E.entry&&E.list?(E.list.splice(E.index,1),E.list.length||delete this[0][E.id],E.entry.previous.next=E.entry.next,E.entry.next.previous=E.entry.previous,E.entry.head=null,this.size--,!0):!1};
r.prototype.clear=function(){this[0]={};this[1]=this[1].previous=M();this.size=0};
r.prototype.has=function(E){return!!Z(this,E).entry};
r.prototype.get=function(E){return(E=Z(this,E).entry)&&E.value};
r.prototype.entries=function(){return O(this,function(E){return[E.key,E.value]})};
r.prototype.keys=function(){return O(this,function(E){return E.key})};
r.prototype.values=function(){return O(this,function(E){return E.value})};
r.prototype.forEach=function(E,b){for(var w=this.entries(),q;!(q=w.next()).done;)q=q.value,E.call(b,q[1],q[0],this)};
r.prototype[Symbol.iterator]=r.prototype.entries;var Z=function(E,b){var w=b&&typeof b;w=="object"||w=="function"?e.has(b)?w=e.get(b):(w=""+ ++T,e.set(b,w)):w="p_"+b;var q=E[0][w];if(q&&uM(E[0],w))for(E=0;E<q.length;E++){var t=q[E];if(b!==b&&t.key!==t.key||b===t.key)return{id:w,list:q,index:E,entry:t}}return{id:w,list:q,index:-1,entry:void 0}},O=function(E,b){var w=E[1];
return m7y(function(){if(w){for(;w.head!=E[1];)w=w.previous;for(;w.next!=w.head;)return w=w.next,{done:!1,value:b(w)};w=null}return{done:!0,value:void 0}})},M=function(){var E={};
return E.previous=E.next=E.head=E},T=0;
return r});
Qn("Set",function(G){if(function(){if(!G||typeof G!="function"||!G.prototype.entries||typeof Object.seal!="function")return!1;try{var r=Object.seal({x:4}),Z=new G(_.h([r]));if(!Z.has(r)||Z.size!=1||Z.add(r)!=Z||Z.size!=1||Z.add({x:4})!=Z||Z.size!=2)return!1;var O=Z.entries(),M=O.next();if(M.done||M.value[0]!=r||M.value[1]!=r)return!1;M=O.next();return M.done||M.value[0]==r||M.value[0].x!=4||M.value[1]!=M.value[0]?!1:O.next().done}catch(T){return!1}}())return G;
var e=function(r){this.JSC$8784_map_=new Map;if(r){r=_.h(r);for(var Z;!(Z=r.next()).done;)this.add(Z.value)}this.size=this.JSC$8784_map_.size};
e.prototype.add=function(r){r=r===0?0:r;this.JSC$8784_map_.set(r,r);this.size=this.JSC$8784_map_.size;return this};
e.prototype.delete=function(r){r=this.JSC$8784_map_.delete(r);this.size=this.JSC$8784_map_.size;return r};
e.prototype.clear=function(){this.JSC$8784_map_.clear();this.size=0};
e.prototype.has=function(r){return this.JSC$8784_map_.has(r)};
e.prototype.entries=function(){return this.JSC$8784_map_.entries()};
e.prototype.values=function(){return this.JSC$8784_map_.values()};
e.prototype.keys=e.prototype.values;e.prototype[Symbol.iterator]=e.prototype.values;e.prototype.forEach=function(r,Z){var O=this;this.JSC$8784_map_.forEach(function(M){return r.call(Z,M,M,O)})};
return e});
Qn("Math.log2",function(G){return G?G:function(e){return Math.log(e)/Math.LN2}});
Qn("Object.values",function(G){return G?G:function(e){var r=[],Z;for(Z in e)uM(e,Z)&&r.push(e[Z]);return r}});
Qn("Object.is",function(G){return G?G:function(e,r){return e===r?e!==0||1/e===1/r:e!==e&&r!==r}});
Qn("Array.prototype.includes",function(G){return G?G:function(e,r){var Z=this;Z instanceof String&&(Z=String(Z));var O=Z.length;r=r||0;for(r<0&&(r=Math.max(r+O,0));r<O;r++){var M=Z[r];if(M===e||Object.is(M,e))return!0}return!1}});
Qn("String.prototype.includes",function(G){return G?G:function(e,r){return cz(this,e,"includes").indexOf(e,r||0)!==-1}});
Qn("Object.entries",function(G){return G?G:function(e){var r=[],Z;for(Z in e)uM(e,Z)&&r.push([Z,e[Z]]);return r}});
Qn("Number.isFinite",function(G){return G?G:function(e){return typeof e!=="number"?!1:!isNaN(e)&&e!==Infinity&&e!==-Infinity}});
Qn("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Qn("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Qn("Number.isInteger",function(G){return G?G:function(e){return Number.isFinite(e)?e===Math.floor(e):!1}});
Qn("Number.isSafeInteger",function(G){return G?G:function(e){return Number.isInteger(e)&&Math.abs(e)<=Number.MAX_SAFE_INTEGER}});
Qn("String.prototype.endsWith",function(G){return G?G:function(e,r){var Z=cz(this,e,"endsWith");r===void 0&&(r=Z.length);r=Math.max(0,Math.min(r|0,Z.length));for(var O=e.length;O>0&&r>0;)if(Z[--r]!=e[--O])return!1;return O<=0}});
var Zfl=function(G,e){G instanceof String&&(G+="");var r=0,Z=!1,O={next:function(){if(!Z&&r<G.length){var M=r++;return{value:e(M,G[M]),done:!1}}Z=!0;return{done:!0,value:void 0}}};
O[Symbol.iterator]=function(){return O};
return O};
Qn("Array.prototype.entries",function(G){return G?G:function(){return Zfl(this,function(e,r){return[e,r]})}});
Qn("Math.trunc",function(G){return G?G:function(e){e=Number(e);if(isNaN(e)||e===Infinity||e===-Infinity||e===0)return e;var r=Math.floor(Math.abs(e));return e<0?-r:r}});
Qn("Number.isNaN",function(G){return G?G:function(e){return typeof e==="number"&&isNaN(e)}});
Qn("Array.prototype.keys",function(G){return G?G:function(){return Zfl(this,function(e){return e})}});
Qn("Array.prototype.values",function(G){return G?G:function(){return Zfl(this,function(e,r){return r})}});
Qn("Array.prototype.fill",function(G){return G?G:function(e,r,Z){var O=this.length||0;r<0&&(r=Math.max(0,O+r));if(Z==null||Z>O)Z=O;Z=Number(Z);Z<0&&(Z=Math.max(0,O+Z));for(r=Number(r||0);r<Z;r++)this[r]=e;return this}});
nda("fill",function(G){return G?G:Array.prototype.fill});
Qn("Object.fromEntries",function(G){return G?G:function(e){var r={};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");r[Z[0]]=Z[1]}return r}});
Qn("String.prototype.replaceAll",function(G){return G?G:function(e,r){if(e instanceof RegExp&&!e.global)throw new TypeError("x");return e instanceof RegExp?this.replace(e,r):this.replace(new RegExp(String(e).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),r)}});
Qn("Object.getOwnPropertySymbols",function(G){return G?G:function(){return[]}});
Qn("String.prototype.repeat",function(G){return G?G:function(e){var r=cz(this,null,"repeat");if(e<0||e>1342177279)throw new RangeError("y");e|=0;for(var Z="";e;)if(e&1&&(Z+=r),e>>>=1)r+=r;return Z}});
Qn("Array.prototype.findIndex",function(G){return G?G:function(e,r){return riC(this,e,r).i}});
Qn("Array.prototype.flatMap",function(G){return G?G:function(e,r){var Z=[];Array.prototype.forEach.call(this,function(O,M){O=e.call(r,O,M,this);Array.isArray(O)?Z.push.apply(Z,O):Z.push(O)});
return Z}});
Qn("String.prototype.codePointAt",function(G){return G?G:function(e){var r=cz(this,null,"codePointAt"),Z=r.length;e=Number(e)||0;if(e>=0&&e<Z){e|=0;var O=r.charCodeAt(e);if(O<55296||O>56319||e+1===Z)return O;e=r.charCodeAt(e+1);return e<56320||e>57343?O:(O-55296)*1024+e+9216}}});
Qn("String.fromCodePoint",function(G){return G?G:function(e){for(var r="",Z=0;Z<arguments.length;Z++){var O=Number(arguments[Z]);if(O<0||O>1114111||O!==Math.floor(O))throw new RangeError("z`"+O);O<=65535?r+=String.fromCharCode(O):(O-=65536,r+=String.fromCharCode(O>>>10&1023|55296),r+=String.fromCharCode(O&1023|56320))}return r}});
Qn("String.prototype.trimLeft",function(G){function e(){return this.replace(/^[\s\xa0]+/,"")}
return G||e});
Qn("String.prototype.trimStart",function(G){return G||String.prototype.trimLeft});
Qn("String.prototype.padStart",function(G){return G?G:function(e,r){var Z=cz(this,null,"padStart");e-=Z.length;r=r!==void 0?String(r):" ";return(e>0&&r?r.repeat(Math.ceil(e/r.length)).substring(0,e):"")+Z}});
Qn("Promise.prototype.finally",function(G){return G?G:function(e){return this.then(function(r){return Promise.resolve(e()).then(function(){return r})},function(r){return Promise.resolve(e()).then(function(){throw r;
})})}});
Qn("Math.imul",function(G){return G?G:function(e,r){e=Number(e);r=Number(r);var Z=e&65535,O=r&65535;return Z*O+((e>>>16&65535)*O+Z*(r>>>16&65535)<<16>>>0)|0}});
Qn("Object.hasOwn",function(G){return G?G:function(e,r){return Object.prototype.hasOwnProperty.call(e,r)}});
Qn("Math.sign",function(G){return G?G:function(e){e=Number(e);return e===0||isNaN(e)?e:e>0?1:-1}});
Qn("Array.prototype.flat",function(G){return G?G:function(e){e=e===void 0?1:e;var r=[];Array.prototype.forEach.call(this,function(Z){Array.isArray(Z)&&e>0?(Z=Array.prototype.flat.call(Z,e-1),r.push.apply(r,Z)):r.push(Z)});
return r}});
Qn("String.raw",function(G){return G?G:function(e,r){e=BV$(e);for(var Z=e.raw,O=Z.length,M="",T=0;T<O;++T)M+=Z[T],T+1<O&&T+1<arguments.length&&(M+=String(arguments[T+1]));return M}});
Qn("WeakSet",function(G){if(function(){if(!G||!Object.seal)return!1;try{var r=Object.seal({}),Z=Object.seal({}),O=new G([r]);if(!O.has(r)||O.has(Z))return!1;O.delete(r);O.add(Z);return!O.has(r)&&O.has(Z)}catch(M){return!1}}())return G;
var e=function(r){this.JSC$8795_map_=new WeakMap;if(r){r=_.h(r);for(var Z;!(Z=r.next()).done;)this.add(Z.value)}};
e.prototype.add=function(r){this.JSC$8795_map_.set(r,!0);return this};
e.prototype.has=function(r){return this.JSC$8795_map_.has(r)};
e.prototype.delete=function(r){return this.JSC$8795_map_.delete(r)};
return e});
Qn("Reflect.ownKeys",function(G){return G?G:function(e){var r=[],Z=Object.getOwnPropertyNames(e);e=Object.getOwnPropertySymbols(e);for(var O=0;O<Z.length;O++)(Z[O].substring(0,14)=="jscomp_symbol_"?e:r).push(Z[O]);return r.concat(e)}});
Qn("Object.getOwnPropertyDescriptors",function(G){return G?G:function(e){for(var r={},Z=Reflect.ownKeys(e),O=0;O<Z.length;O++)r[Z[O]]=Object.getOwnPropertyDescriptor(e,Z[O]);return r}});
Qn("Promise.allSettled",function(G){function e(Z){return{status:"fulfilled",value:Z}}
function r(Z){return{status:"rejected",reason:Z}}
return G?G:function(Z){var O=this;Z=Array.from(Z,function(M){return O.resolve(M).then(e,r)});
return O.all(Z)}});
Qn("Number.parseInt",function(G){return G||parseInt});
_._DumpException=window._DumpException||function(G){throw G;};
window._DumpException=_._DumpException;var OfP=window.ytcsi;OfP&&typeof OfP.tick==="function"&&OfP.tick("rses_dpj");var M$c,YU,yn,AV,V$v,hal,TsP,DUS,I8,E4C;M$c=M$c||{};_.O_=this||self;_.Eu=function(G,e,r){G=G.split(".");r=r||_.O_;for(var Z;G.length&&(Z=G.shift());)G.length||e===void 0?r[Z]&&r[Z]!==Object.prototype[Z]?r=r[Z]:r=r[Z]={}:r[Z]=e};
YU=function(G,e){var r=_.Lz("WIZ_global_data.oxN3nb");G=r&&r[G];return G!=null?G:e};
yn=_.O_._F_toggles_default_kevlar_base||[];AV=function(){};
AV.get=function(){return null};
_.Zxp=null;_.Lz=function(G,e){G=G.split(".");e=e||_.O_;for(var r=0;r<G.length;r++)if(e=e[G[r]],e==null)return null;return e};
_.Fb=function(G){G.instance_=void 0;G.getInstance=function(){return G.instance_?G.instance_:G.instance_=new G}};
_.LP=function(G){var e=typeof G;return e!="object"?e:G?Array.isArray(G)?"array":e:"null"};
_.FN=function(G){var e=_.LP(G);return e=="array"||e=="object"&&typeof G.length=="number"};
_.PA=function(G){var e=typeof G;return e=="object"&&G!=null||e=="function"};
_.zS=function(G){return Object.prototype.hasOwnProperty.call(G,V$v)&&G[V$v]||(G[V$v]=++hal)};
V$v="closure_uid_"+(Math.random()*1E9>>>0);hal=0;TsP=function(G,e,r){return G.call.apply(G.bind,arguments)};
DUS=function(G,e,r){if(!G)throw Error();if(arguments.length>2){var Z=Array.prototype.slice.call(arguments,2);return function(){var O=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(O,Z);return G.apply(e,O)}}return function(){return G.apply(e,arguments)}};
_.CB=function(G,e,r){_.CB=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?TsP:DUS;return _.CB.apply(null,arguments)};
_.VU=function(G,e){var r=Array.prototype.slice.call(arguments,1);return function(){var Z=r.slice();Z.push.apply(Z,arguments);return G.apply(this,Z)}};
_.JV=function(){return Date.now()};
I8=function(G){return G};
_.Bz=function(G,e){function r(){}
r.prototype=e.prototype;G.superClass_=e.prototype;G.prototype=new r;G.prototype.constructor=G;G.base=function(Z,O,M){for(var T=Array(arguments.length-2),E=2;E<arguments.length;E++)T[E-2]=arguments[E];return e.prototype[O].apply(Z,T)}};
E4C=function(G){return G};var ifW,bfy;_.B=function(G,e,r,Z){var O=arguments.length,M=O<3?e:Z===null?Z=Object.getOwnPropertyDescriptor(e,r):Z,T;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")M=Reflect.decorate(G,e,r,Z);else for(var E=G.length-1;E>=0;E--)if(T=G[E])M=(O<3?T(M):O>3?T(e,r,M):T(e,r))||M;O>3&&M&&Object.defineProperty(e,r,M)};
_.x=function(G,e){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(G,e)};
ifW=function(G,e){if(e!==null&&e!==void 0){if(typeof e!=="object"&&typeof e!=="function")throw new TypeError("A");if(r===void 0){if(!Symbol.dispose)throw new TypeError("C");var r=e[Symbol.dispose]}if(typeof r!=="function")throw new TypeError("D");G.stack.push({value:e,dispose:r,async:!1})}return e};
bfy=function(G){function e(M){G.error=G.hasError?new SuppressedError(M,G.error,"An error was suppressed during disposal."):M;G.hasError=!0}
function r(){for(;Z=G.stack.pop();)try{if(!Z.async&&O===1)return O=0,G.stack.push(Z),Promise.resolve().then(r);if(Z.dispose){var M=Z.dispose.call(Z.value);if(Z.async)return O|=2,Promise.resolve(M).then(r,function(T){e(T);return r()})}else O|=1}catch(T){e(T)}if(O===1)return G.hasError?Promise.reject(G.error):Promise.resolve();
if(G.hasError)throw G.error;}
var Z,O=0;r()};var v4y="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(" ");GS_()&&v4y.push("details:not(:has(summary))");var riS=v4y.join(",");_.Bz(_.rs,Error);_.rs.prototype.name="CustomError";var wAW;var $UE=void 0,S_c,q_w=typeof TextDecoder!=="undefined",ify,E4S=typeof String.prototype.isWellFormed==="function",DUi=typeof TextEncoder!=="undefined";var t$C;_.IF=function(G){for(var e=[],r=0,Z=0;Z<G.length;Z++){var O=G.charCodeAt(Z);O<128?e[r++]=O:(O<2048?e[r++]=O>>6|192:((O&64512)==55296&&Z+1<G.length&&(G.charCodeAt(Z+1)&64512)==56320?(O=65536+((O&1023)<<10)+(G.charCodeAt(++Z)&1023),e[r++]=O>>18|240,e[r++]=O>>12&63|128):e[r++]=O>>12|224,e[r++]=O>>6&63|128),e[r++]=O&63|128)}return e};
t$C=function(G){for(var e=[],r=0,Z=0;r<G.length;){var O=G[r++];if(O<128)e[Z++]=String.fromCharCode(O);else if(O>191&&O<224){var M=G[r++];e[Z++]=String.fromCharCode((O&31)<<6|M&63)}else if(O>239&&O<365){M=G[r++];var T=G[r++],E=G[r++];O=((O&7)<<18|(M&63)<<12|(T&63)<<6|E&63)-65536;e[Z++]=String.fromCharCode(55296+(O>>10));e[Z++]=String.fromCharCode(56320+(O&1023))}else M=G[r++],T=G[r++],e[Z++]=String.fromCharCode((O&15)<<12|(M&63)<<6|T&63)}return e.join("")};var $4=String.prototype.trim?function(G){return G.trim()}:function(G){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(G)[1]},g4v=/&/g,lqP=/</g,Ra3=/>/g,jyC=/"/g,aqw=/'/g,XAE=/\x00/g,KSb=/[\x00&<>"']/;var xU=!!(yn[0]>>15&1),fql=!!(yn[0]&1024),kSv=!!(yn[0]>>16&1),Hfy=!!(yn[0]&8),dUj=!!(yn[0]&2),o43=!!(yn[0]&4),syj=!!(yn[0]&16),QyE=!!(yn[0]&128);var lF=xU?kSv:YU(610401301,!1),Iqv=xU?Hfy:YU(772657768,!1),pAP=xU?dUj:YU(513659523,!1),CFc=xU?fql||!o43:YU(568333945,!0),Hvq=xU?syj:YU(1331761403,!1),lls=xU?fql||!QyE:YU(748402147,!0);var j$,uNC=_.O_.navigator;j$=uNC?uNC.userAgentData||null:null;var ZR;_.cA=function(G,e){return Array.prototype.indexOf.call(G,e,void 0)};
_.rR=function(G,e,r){Array.prototype.forEach.call(G,e,r)};
_.Pz=function(G,e,r){return Array.prototype.filter.call(G,e,r)};
_.Yf=function(G,e,r){return Array.prototype.map.call(G,e,r)};
ZR=function(G,e,r){return Array.prototype.some.call(G,e,r)};
_.JES=function(G,e,r){return Array.prototype.every.call(G,e,r)};var Ue=function(G){Ue[" "](G);return G};
Ue[" "]=function(){};
var u$s=function(G,e){try{return Ue(G[e]),!0}catch(r){}return!1},wGq=function(G,e,r,Z){Z=Z?Z(e):e;
return Object.prototype.hasOwnProperty.call(G,Z)?G[Z]:G[Z]=r(e)};var n4P,Tc,mUl,ciE,yiP,Aij,J9S,FSw,Jic,BsP,EQa,PFn,UUC,LSb,GCw,eEW;_.laS=function(){return _.O_.navigator||null};
n4P=$Ua();_.zx=S_A();Tc=ay("Edge");mUl=Tc||_.zx;_.Wz=ay("Gecko")&&!(_.ws(_.gs(),"WebKit")&&!ay("Edge"))&&!(ay("Trident")||ay("MSIE"))&&!ay("Edge");_.NS=_.ws(_.gs(),"WebKit")&&!ay("Edge");ciE=_.NS&&ay("Mobile");_.Y_j=_.KSq();yiP=_.fq_();Aij=(s_()?j$.platform==="Linux":ay("Linux"))||_.kSp();J9S=_.aq4();FSw=XAa();Jic=ay("iPad");BsP=ay("iPod");_.xUv=_.Qp();EQa=_.ws(_.gs(),"KaiOS");PFn=function(){var G=_.O_.document;return G?G.documentMode:void 0};
a:{var zaS="",WSW=function(){var G=_.gs();if(_.Wz)return/rv:([^\);]+)(\)|;)/.exec(G);if(Tc)return/Edge\/([\d\.]+)/.exec(G);if(_.zx)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(G);if(_.NS)return/WebKit\/(\S+)/.exec(G);if(n4P)return/(?:Version)[ \/]?(\S+)/.exec(G)}();
WSW&&(zaS=WSW?WSW[1]:"");if(_.zx){var NsC=PFn();if(NsC!=null&&NsC>parseFloat(zaS)){UUC=String(NsC);break a}}UUC=zaS}LSb=UUC;GCw={};_.Lp=function(G){return wGq(GCw,G,function(){return _.S$(LSb,G)>=0})};
if(_.O_.document&&_.zx){var rSn=PFn();eEW=rSn?rSn:parseInt(LSb,10)||void 0}else eEW=void 0;_.ZPv=eEW;var Ppq,UnN,OPw;_.GB=HA();Ppq=XAa()||ay("iPod");UnN=ay("iPad");OPw=_.g4p();_.ec=_.oy();_.U5=_.t$S()&&!_.Qp();var MEl,rU,ZBp,MTF,hE3,VEw;MEl={};rU=null;ZBp=_.Wz||_.NS||typeof _.O_.btoa=="function";_.uH=function(G,e){e===void 0&&(e=0);VEw();e=MEl[e];for(var r=Array(Math.floor(G.length/3)),Z=e[64]||"",O=0,M=0;O<G.length-2;O+=3){var T=G[O],E=G[O+1],b=G[O+2],w=e[T>>2];T=e[(T&3)<<4|E>>4];E=e[(E&15)<<2|b>>6];b=e[b&63];r[M++]=w+T+E+b}w=0;b=Z;switch(G.length-O){case 2:w=G[O+1],b=e[(w&15)<<2]||Z;case 1:G=G[O],r[M]=e[G>>2]+e[(G&3)<<4|w>>4]+b+Z}return r.join("")};
MTF=function(G){var e="";hE3(G,function(r){e+=String.fromCharCode(r)});
return e};
_.Ce$=function(G){var e=[];hE3(G,function(r){e.push(r)});
return e};
_.NU=function(G){var e=G.length,r=e*3/4;r%3?r=Math.floor(r):_.vA("=.",G[e-1])&&(r=_.vA("=.",G[e-2])?r-2:r-1);var Z=new Uint8Array(r),O=0;hE3(G,function(M){Z[O++]=M});
return O!==r?Z.subarray(0,O):Z};
hE3=function(G,e){function r(b){for(;Z<G.length;){var w=G.charAt(Z++),q=rU[w];if(q!=null)return q;if(!_.iF(w))throw Error("H`"+w);}return b}
VEw();for(var Z=0;;){var O=r(-1),M=r(0),T=r(64),E=r(64);if(E===64&&O===-1)break;e(O<<2|M>>4);T!=64&&(e(M<<4&240|T>>2),E!=64&&e(T<<6&192|E))}};
VEw=function(){if(!rU){rU={};for(var G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],r=0;r<5;r++){var Z=G.concat(e[r].split(""));MEl[r]=Z;for(var O=0;O<Z.length;O++){var M=Z[O];rU[M]===void 0&&(rU[M]=O)}}}};var NsS=typeof Uint8Array!=="undefined",yif=!_.zx&&typeof btoa==="function",Ais=/[-_.]/g,ci$={"-":"+",_:"/",".":"="},oW={};var dj,DWC;dj=function(G,e){if(e!==oW)throw Error("J");this.JSC$8829_value_=G;if(G!=null&&G.length===0)throw Error("I");};
_.sl=function(){return TjW||(TjW=new dj(null,oW))};
DWC=function(G){return new Uint8Array(A2s(G)||0)};
dj.prototype.isEmpty=function(){return this.JSC$8829_value_==null};
dj.prototype.sizeBytes=function(){var G=A2s(this);return G?G.length:0};
var A2s=function(G){if(oW!==oW)throw Error("J");var e=G.JSC$8829_value_;e==null||NsS&&e!=null&&e instanceof Uint8Array||(typeof e==="string"?e=FS4(e):(_.LP(e),e=null));return e==null?e:G.JSC$8829_value_=e},TjW;var Bsf=void 0;var Ol=typeof Symbol==="function"&&typeof Symbol()==="symbol",EwC=Zb("jas",void 0,!0),cS4=Zb(void 0,"0di"),Zv=Zb(void 0,"1oa"),pd=Zb(void 0,Symbol()),r2F=Zb(void 0,"0ub"),Odq=Zb(void 0,"0ubs"),K_4=Zb(void 0,"0ubsb"),j84=Zb(void 0,"0actk"),Kd=Zb("m_m","messagePrototypeMarker",!0),$Bi=Zb(void 0,"vps"),L3F=Zb();var UUS,PFN,UV,iP3;UUS={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};PFN=Object.defineProperties;_.MW=Ol?EwC:"internalArrayState";iP3=[];Db(iP3,7);UV=Object.freeze(iP3);var HY={},jE={},bP3=function(G,e,r){this.iterable=G;this.mapper=e;this.thisArg=r};
bP3.prototype.next=function(){var G=this.iterable.next();G.done||(G.value=this.mapper.call(this.thisArg,G.value));return G};
bP3.prototype[Symbol.iterator]=function(){return this};
var vwE=Object.freeze({}),pP={};_.wcW=uy(function(G){return G!==null&&G!==void 0});var OP4=uy(function(G){return typeof G==="number"}),ZPp=uy(function(G){return typeof G==="string"}),VE4=uy(function(G){return typeof G==="boolean"}),$Wb=uy(function(G){return G!=null&&typeof G==="object"&&typeof G.then==="function"}),ydS=uy(function(G){return typeof G==="function"}),vO=uy(function(G){return!!G&&(typeof G==="object"||typeof G==="function")});var ME_=typeof _.O_.BigInt==="function"&&typeof _.O_.BigInt(0)==="bigint";var Ibf=uy(function(G){return ME_?G>=SlE&&G<=qln:G[0]==="-"?hES(G,tEy):hES(G,gwE)}),tEy=Number.MIN_SAFE_INTEGER.toString(),SlE=ME_?BigInt(Number.MIN_SAFE_INTEGER):void 0,gwE=Number.MAX_SAFE_INTEGER.toString(),qln=ME_?BigInt(Number.MAX_SAFE_INTEGER):void 0;var lb3=typeof Uint8Array.prototype.slice==="function",m3=0,cc=0,EwS;var iH,Sa,GA,$C,gw$;iH=typeof BigInt==="function"?BigInt.asIntN:void 0;_.qB=typeof BigInt==="function"?BigInt.asUintN:void 0;Sa=Number.isSafeInteger;GA=Number.isFinite;$C=Math.trunc;gw$=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var SVq={};var zES={},RES=function(){try{var G=function(){return Yqp(Map,[],this.constructor)};
_.K(G,Map);Ue(new G);return!1}catch(e){return!0}}(),Zg=function(){this.JSC$8848_map_=new Map};
_.V=Zg.prototype;_.V.get=function(G){return this.JSC$8848_map_.get(G)};
_.V.set=function(G,e){this.JSC$8848_map_.set(G,e);this.size=this.JSC$8848_map_.size;return this};
_.V.delete=function(G){G=this.JSC$8848_map_.delete(G);this.size=this.JSC$8848_map_.size;return G};
_.V.clear=function(){this.JSC$8848_map_.clear();this.size=this.JSC$8848_map_.size};
_.V.has=function(G){return this.JSC$8848_map_.has(G)};
_.V.entries=function(){return this.JSC$8848_map_.entries()};
_.V.keys=function(){return this.JSC$8848_map_.keys()};
_.V.values=function(){return this.JSC$8848_map_.values()};
_.V.forEach=function(G,e){return this.JSC$8848_map_.forEach(G,e)};
Zg.prototype[Symbol.iterator]=function(){return this.entries()};
var Oi=function(){if(RES)return Object.setPrototypeOf(Zg.prototype,Map.prototype),Object.defineProperties(Zg.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Zg;var G=function(){return Yqp(Map,[],this.constructor)};
_.K(G,Map);return G}(),dW=function(G,e,r,Z){r=r===void 0?JSs:r;
Z=Z===void 0?JSs:Z;var O=Oi.call(this)||this;O.arrayState=G[_.MW]|0;O.valueCtor=e;O.keyToApi=r;O.valueToApi=O.valueCtor?xWU:Z;for(var M=0;M<G.length;M++){var T=G[M],E=r(T[0],!1,!0),b=T[1];e?b===void 0&&(b=null):b=Z(T[1],!1,!0,void 0,void 0,O.arrayState);Oi.prototype.set.call(O,E,b)}return O};
_.K(dW,Oi);var jW3=function(G){if(G.arrayState&2)throw Error("N");},wYA=function(G,e){return iy(Array.from(Oi.prototype.entries.call(G),e))};
_.V=dW.prototype;_.V.clear=function(){jW3(this);Oi.prototype.clear.call(this)};
_.V.delete=function(G){jW3(this);return Oi.prototype.delete.call(this,this.keyToApi(G,!0,!1))};
_.V.entries=function(){if(this.valueCtor){var G=Oi.prototype.keys.call(this);G=new bP3(G,Pyy,this)}else G=Oi.prototype.entries.call(this);return G};
_.V.values=function(){if(this.valueCtor){var G=Oi.prototype.keys.call(this);G=new bP3(G,dW.prototype.get,this)}else G=Oi.prototype.values.call(this);return G};
_.V.forEach=function(G,e){this.valueCtor?Oi.prototype.forEach.call(this,function(r,Z,O){G.call(e,O.get(Z),Z,O)}):Oi.prototype.forEach.call(this,G,e)};
_.V.set=function(G,e){jW3(this);G=this.keyToApi(G,!0,!1);return G==null?this:e==null?(Oi.prototype.delete.call(this,G),this):Oi.prototype.set.call(this,G,this.valueToApi(e,!0,!0,this.valueCtor,!1,this.arrayState))};
_.V.has=function(G){return Oi.prototype.has.call(this,this.keyToApi(G,!1,!1))};
_.V.get=function(G){G=this.keyToApi(G,!1,!1);var e=Oi.prototype.get.call(this,G);if(e!==void 0){var r=this.valueCtor;return r?(r=this.valueToApi(e,!1,!0,r,this.callToMutableOnAccess,this.arrayState),r!==e&&Oi.prototype.set.call(this,G,r),r):e}};
dW.prototype[Symbol.iterator]=function(){return this.entries()};
dW.prototype.toJSON=void 0;var UWN;var TW4=function(){},VaF=function(G,e){for(var r in G)!isNaN(r)&&e(G,+r,G[r])},DBU=function(G){var e=new TW4;
VaF(G,function(r,Z,O){e[Z]=xw(O)});
e.reviveUnknownFields=G.reviveUnknownFields;return e},GAS={reviveIntoImmutable:!0};var hmS;var qVA,tay;var ab3,Ld,XH,dl,XcE,bg,kc,K3E,fbl,q_,kCy,t3,R$,jc;ab3=_.nP(0);_.M_={};_.Va=function(G,e,r,Z,O){e=Ld(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e,r,O);if(e!==null||Z&&G.noLegacyNull!==jE)return e};
Ld=function(G,e,r,Z){if(e===-1)return null;var O=e+(r?0:-1),M=G.length-1;if(!(M<1+(r?0:-1))){if(O>=M){var T=G[M];if(T!=null&&typeof T==="object"&&T.constructor===Object){r=T[e];var E=!0}else if(O===M)r=T;else return}else r=G[O];if(Z&&r!=null){Z=Z(r);if(Z==null)return Z;if(!Object.is(Z,r))return E?T[e]=Z:G[O]=Z,Z}return r}};
_.t0=function(G,e,r,Z){J2(G);var O=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;PY(O,O[_.MW]|0,e,r,Z);return G};
_.h3=function(G,e,r){G=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return nC_(G,G[_.MW]|0,e,r)!==void 0};
_.TB=function(G,e,r,Z){var O=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return nC_(O,O[_.MW]|0,e,dl(G,Z,r))!==void 0};
_.bx=function(G){return G===vwE?2:4};
_.Dg=function(G,e){G=_.Va(G,e,void 0,void 0,s8s);return G==null?_.sl():G};
XH=function(G,e,r,Z){J2(G);var O=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=O[_.MW]|0;if(Z==null){var T=pYA(O);if(CHN(T,O,M,r)===e)T.set(r,0);else return G}else M=uoA(O,M,r,e);PY(O,M,e,Z);return G};
_.Ei=function(G,e,r,Z){var O=G[_.MW]|0,M=CP(O);O=uoA(G,O,r,e,M);PY(G,O,e,Z,M)};
dl=function(G,e,r){return _.ig(G,e)===r?r:-1};
_.ig=function(G,e){G=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return CHN(pYA(G),G,void 0,e,void 0)};
XcE=function(G,e,r){var Z=G[_.MW]|0,O=CP(Z),M=Ld(G,r,O);if(M!=null&&M[Kd]===HY){if(!fP(M))return Fo(M),M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var T=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(M)&&(T=M);if(T){var E=T[_.MW]|0;E&2&&(T=A2(T,E))}T=YC(T,e,!0);T!==M&&PY(G,Z,r,T,O);return T};
_.SS=function(G,e,r,Z){var O=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=O[_.MW]|0;e=nC_(O,M,e,r,Z);if(e==null)return e;M=O[_.MW]|0;if(!fP(G,M)){var T=Bj$(e);T!==e&&(Fo(G)&&(O=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=O[_.MW]|0),e=T,M=PY(O,M,r,e,Z),BY(O,M))}return e};
_.ix=function(G,e,r,Z){var O=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return mBS(G,O,O[_.MW]|0,e,r,Z,!1,!0)};
_.Kj=function(G,e,r,Z){r=c2$(r);_.t0(G,e,r,Z);r&&!fP(r)&&BY(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return G};
_.fj=function(G,e,r,Z){Z=c2$(Z);XH(G,e,r,Z);Z&&!fP(Z)&&BY(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return G};
bg=function(G,e,r){J2(G);var Z=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=Z[_.MW]|0;if(r==null)return PY(Z,O,e),G;for(var M=r===UV?7:r[_.MW]|0,T=M,E=NB(M),b=E||Object.isFrozen(r),w=!0,q=!0,t=0;t<r.length;t++){var g=r[t];E||(g=fP(g),w&&(w=!g),q&&(q=g))}E||(M=w?13:5,M=q?M&-4097:M|4096);b&&M===T||(r=xw(r),T=0,M=zA(M,O));M!==T&&Db(r,M);O=PY(Z,O,e,r);2&M||!(4096&M||16&M)||BY(Z,O);return G};
kc=function(G,e,r,Z){y2S(G,e,r,Z);return G};
K3E=function(G,e,r){y2S(G,e,vs,void 0,r,1,!0);return G};
_.wU=function(G,e,r){G=_.Va(G,e,void 0,r);e=typeof G;G=G==null?G:e==="bigint"?_.nP((0,_.qB)(64,G)):_.rW(G)?e==="string"?_.QWa(G):_.owp(G):void 0;return G};
_.Sc=function(G,e){var r=r===void 0?!1:r;var Z;return(Z=_.tEF(_.Va(G,e)))!=null?Z:r};
_.vp=function(G,e,r){r=r===void 0?0:r;var Z;return(Z=_.Dl(_.Va(G,e)))!=null?Z:r};
fbl=function(G,e){var r=r===void 0?0:r;G=_.REi(_.Va(G,e));return G!=null?G:r};
q_=function(G,e,r){r=r===void 0?ab3:r;var Z;return(Z=_.un$(_.Va(G,e)))!=null?Z:r};
kCy=function(G){var e=e===void 0?ab3:e;var r;return(r=_.wU(G,23))!=null?r:e};
t3=function(G,e){var r=r===void 0?0:r;var Z;return(Z=_.Va(G,e,void 0,void 0,_.NW))!=null?Z:r};
_.gU=function(G,e,r,Z){r=r===void 0?"":r;var O;return(O=_.Xo(_.Va(G,e,Z)))!=null?O:r};
_.lg=function(G,e){var r=r===void 0?0:r;var Z;return(Z=_.VW(_.Va(G,e)))!=null?Z:r};
R$=function(G,e){var r=r===void 0?"0":r;G=CyA(_.Va(G,e),!0);return G!=null?G:r};
jc=function(G,e,r){return _.gU(G,dl(G,r,e))};
_.a$=function(G,e,r,Z){return _.SS(G,e,dl(G,Z,r),void 0)};
_.kW=function(G,e){return _.Xo(_.Va(G,e,void 0,_.M_))};
_.qM=function(G,e,r){return _.t0(G,e,qlN(r))};
_.$y=function(G,e,r){return _.eZ(G,e,qlN(r),!1)};
_.XC=function(G,e,r){return _.t0(G,e,_.TA(r))};
_.ss=function(G,e,r){return _.t0(G,e,wW(r))};
_.QB=function(G,e,r){return _.t0(G,e,ja(r))};
_.sz=function(G,e,r,Z){return _.eZ(G,e,ja(r),"",Z)};
_.qa=function(G,e,r){return _.t0(G,e,r==null?r:_.MB(r))};
_.K2=function(G,e,r){return _.eZ(G,e,r==null?r:_.MB(r),0)};var Ok=function(G,e,r){this.buffer=G;if(r&&!e)throw Error();this.JSC$8860_isImmutable=e};var HPC=function(G,e,r,Z){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8863_start_=0;this.init(G,e,r,Z)},f2,owv,sWC,QWE,IbP,pcj,wwS,dWE;
_.V=HPC.prototype;_.V.init=function(G,e,r,Z){var O=Z===void 0?{}:Z;Z=O.aliasBytesFields===void 0?!1:O.aliasBytesFields;O=O.treatNewDataAsImmutable===void 0?!1:O.treatNewDataAsImmutable;this.aliasBytesFields=Z;this.treatNewDataAsImmutable=O;G&&(G=F8$(G,this.treatNewDataAsImmutable),this.bytes_=G.buffer,this.bytesAreImmutable_=G.JSC$8860_isImmutable,this.JSC$8863_start_=e||0,this.end_=r!==void 0?this.JSC$8863_start_+r:this.bytes_.length,this.cursor_=this.JSC$8863_start_)};
_.V.free=function(){this.clear();dWE.length<100&&dWE.push(this)};
_.V.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8863_start_=0;this.aliasBytesFields=!1};
_.V.reset=function(){this.cursor_=this.JSC$8863_start_};
_.V.atEnd=function(){return this.cursor_==this.end_};
_.kj=function(G,e){var r=0,Z=0,O=0,M=G.bytes_,T=G.cursor_;do{var E=M[T++];r|=(E&127)<<O;O+=7}while(O<32&&E&128);if(O>32)for(Z|=(E&127)>>4,O=3;O<32&&E&128;O+=7)E=M[T++],Z|=(E&127)<<O;f2(G,T);if(!(E&128))return e(r>>>0,Z>>>0);throw Error();};
f2=function(G,e){G.cursor_=e;if(e>G.end_)throw Error();};
_.Hs=function(G){var e=G.bytes_,r=G.cursor_,Z=e[r++],O=Z&127;if(Z&128&&(Z=e[r++],O|=(Z&127)<<7,Z&128&&(Z=e[r++],O|=(Z&127)<<14,Z&128&&(Z=e[r++],O|=(Z&127)<<21,Z&128&&(Z=e[r++],O|=Z<<28,Z&128&&e[r++]&128&&e[r++]&128&&e[r++]&128&&e[r++]&128&&e[r++]&128)))))throw Error();f2(G,r);return O};
_.dU=function(G){var e=G.bytes_,r=G.cursor_,Z=e[r],O=e[r+1],M=e[r+2];e=e[r+3];f2(G,G.cursor_+4);return(Z<<0|O<<8|M<<16|e<<24)>>>0};
owv=function(G){var e=_.dU(G);G=_.dU(G);return bPS(e,G)};
sWC=function(G){var e=_.dU(G);G=(e>>31)*2+1;var r=e>>>23&255;e&=8388607;return r==255?e?NaN:G*Infinity:r==0?G*1.401298464324817E-45*e:G*Math.pow(2,r-150)*(e+8388608)};
QWE=function(G){var e=_.dU(G),r=_.dU(G);G=(r>>31)*2+1;var Z=r>>>20&2047;e=4294967296*(r&1048575)+e;return Z==2047?e?NaN:G*Infinity:Z==0?G*4.9E-324*e:G*Math.pow(2,Z-1075)*(e+4503599627370496)};
IbP=function(G){for(var e=0,r=G.cursor_,Z=r+10,O=G.bytes_;r<Z;){var M=O[r++];e|=M;if((M&128)===0)return f2(G,r),!!(e&127)}throw Error();};
pcj=function(G,e){if(e<0)throw Error();var r=G.cursor_;e=r+e;if(e>G.end_)throw Error();G.cursor_=e;return r};
wwS=function(G,e){if(e==0)return _.sl();var r=pcj(G,e);G.aliasBytesFields&&G.bytesAreImmutable_?r=G.bytes_.subarray(r,r+e):(G=G.bytes_,e=r+e,r=r===e?new Uint8Array(0):lb3?G.slice(r,e):new Uint8Array(G.subarray(r,e)));return r.length==0?_.sl():new dj(r,oW)};
dWE=[];var unE=function(G,e,r,Z){if(dWE.length){var O=dWE.pop();O.init(G,e,r,Z);G=O}else G=new HPC(G,e,r,Z);this.decoder_=G;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;Cyc(this,Z)},Cyc=function(G,e){e=e===void 0?{}:e;
G.discardUnknownFields=e.discardUnknownFields===void 0?!1:e.discardUnknownFields},qks=function(G,e,r,Z){if(nwj.length){var O=nwj.pop();
Cyc(O,Z);O.decoder_.init(G,e,r,Z);return O}return new unE(G,e,r,Z)},ijy,v$N,o$,mWv,nwj;
unE.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;nwj.length<100&&nwj.push(this)};
unE.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
ijy=function(G){if(G.decoder_.atEnd())return!1;G.fieldCursor_=G.decoder_.cursor_;var e=_.Hs(G.decoder_)>>>0,r=e>>>3;e&=7;if(!(e>=0&&e<=5))throw Error();if(r<1)throw Error();G.nextField_=r;G.nextWireType_=e;return!0};
v$N=function(G){switch(G.nextWireType_){case 0:G.nextWireType_!=0?v$N(G):IbP(G.decoder_);break;case 1:G=G.decoder_;f2(G,G.cursor_+8);break;case 2:if(G.nextWireType_!=2)v$N(G);else{var e=_.Hs(G.decoder_)>>>0;G=G.decoder_;f2(G,G.cursor_+e)}break;case 5:G=G.decoder_;f2(G,G.cursor_+4);break;case 3:e=G.nextField_;do{if(!ijy(G))throw Error();if(G.nextWireType_==4){if(G.nextField_!=e)throw Error();break}v$N(G)}while(1);break;default:throw Error();}};
o$=function(G,e,r){var Z=G.decoder_.end_,O=_.Hs(G.decoder_)>>>0;O=G.decoder_.cursor_+O;var M=O-Z;M<=0&&(G.decoder_.end_=O,r(e,G,void 0,void 0,void 0),M=O-G.decoder_.cursor_);if(M)throw Error();G.decoder_.cursor_=O;G.decoder_.end_=Z;return e};
mWv=function(G){var e=_.Hs(G.decoder_)>>>0;G=G.decoder_;var r=pcj(G,e);G=G.bytes_;if(q_w){var Z=G,O;(O=S_c)||(O=S_c=new TextDecoder("utf-8",{fatal:!0}));e=r+e;Z=r===0&&e===Z.length?Z:Z.subarray(r,e);try{var M=O.decode(Z)}catch(w){if($UE===void 0){try{O.decode(new Uint8Array([128]))}catch(q){}try{O.decode(new Uint8Array([97])),$UE=!0}catch(q){$UE=!1}}!$UE&&(S_c=void 0);throw w;}}else{M=r;e=M+e;r=[];for(var T=null,E,b;M<e;)E=G[M++],E<128?r.push(E):E<224?M>=e?Zq():(b=G[M++],E<194||(b&192)!==128?(M--,
Zq()):r.push((E&31)<<6|b&63)):E<240?M>=e-1?Zq():(b=G[M++],(b&192)!==128||E===224&&b<160||E===237&&b>=160||((O=G[M++])&192)!==128?(M--,Zq()):r.push((E&15)<<12|(b&63)<<6|O&63)):E<=244?M>=e-2?Zq():(b=G[M++],(b&192)!==128||(E<<28)+(b-144)>>30!==0||((O=G[M++])&192)!==128||((Z=G[M++])&192)!==128?(M--,Zq()):(E=(E&7)<<18|(b&63)<<12|(O&63)<<6|Z&63,E-=65536,r.push((E>>10&1023)+55296,(E&1023)+56320))):Zq(),r.length>=8192&&(T=Tsf(T,r),r.length=0);M=Tsf(T,r)}return M};
_.cSw=function(G){var e=_.Hs(G.decoder_)>>>0;return wwS(G.decoder_,e)};
_.Yll=function(G,e,r){var Z=_.Hs(G.decoder_)>>>0;for(Z=G.decoder_.cursor_+Z;G.decoder_.cursor_<Z;)r.push(e(G.decoder_))};
nwj=[];var ySn=function(G,e){this.JSC$8870_lo=G>>>0;this.JSC$8870_hi=e>>>0},s2_=function(G){G=BigInt.asUintN(64,G);
return new ySn(Number(G&BigInt(4294967295)),Number(G>>BigInt(32)))},xBN=function(G){if(!G)return ASy||(ASy=new ySn(0,0));
if(!/^\d+$/.test(G))return null;JS(G);return new ySn(m3,cc)},ASy,o$$=function(G,e){this.JSC$8872_lo=G>>>0;
this.JSC$8872_hi=e>>>0},J2_=function(G){if(!G)return F3C||(F3C=new o$$(0,0));
if(!/^-?\d+$/.test(G))return null;JS(G);return new o$$(m3,cc)},F3C;var si=function(){this.JSC$8874_buffer_=[]},$$,qZ,JSj;
si.prototype.length=function(){return this.JSC$8874_buffer_.length};
si.prototype.end=function(){var G=this.JSC$8874_buffer_;this.JSC$8874_buffer_=[];return G};
$$=function(G,e,r){for(;r>0||e>127;)G.JSC$8874_buffer_.push(e&127|128),e=(e>>>7|r<<25)>>>0,r>>>=7;G.JSC$8874_buffer_.push(e)};
qZ=function(G,e){for(;e>127;)G.JSC$8874_buffer_.push(e&127|128),e>>>=7;G.JSC$8874_buffer_.push(e)};
_.IvN=function(G,e){if(e>=0)qZ(G,e);else{for(var r=0;r<9;r++)G.JSC$8874_buffer_.push(e&127|128),e>>=7;G.JSC$8874_buffer_.push(1)}};
JSj=function(G,e){JS(e);vwa(function(r,Z){$$(G,r>>>0,Z>>>0)})};
si.prototype.writeUint8=function(G){this.JSC$8874_buffer_.push(G>>>0&255)};
_.wz=function(G,e){G.JSC$8874_buffer_.push(e>>>0&255);G.JSC$8874_buffer_.push(e>>>8&255);G.JSC$8874_buffer_.push(e>>>16&255);G.JSC$8874_buffer_.push(e>>>24&255)};
si.prototype.writeInt8=function(G){this.JSC$8874_buffer_.push(G>>>0&255)};var BjE,Dv,CzA,mZS,W8s;BjE=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new si};
Dv=function(G,e){e.length!==0&&(G.blocks_.push(e),G.totalLength_+=e.length)};
_.xWW=function(G,e){_.vw(G,e,2);e=G.encoder_.end();Dv(G,e);e.push(G.totalLength_);return e};
_.PyW=function(G,e){var r=e.pop();for(r=G.totalLength_+G.encoder_.length()-r;r>127;)e.push(r&127|128),r>>>=7,G.totalLength_++;e.push(r);G.totalLength_++};
_.vw=function(G,e,r){qZ(G.encoder_,e*8+r)};
CzA=function(G,e,r){if(r!=null)switch(PHp(r),_.vw(G,e,1),typeof r){case "number":G=G.encoder_;Tjy(r);_.wz(G,m3);_.wz(G,cc);break;case "bigint":r=s2_(r);G=G.encoder_;e=r.JSC$8870_hi;_.wz(G,r.JSC$8870_lo);_.wz(G,e);break;default:r=xBN(r),G=G.encoder_,e=r.JSC$8870_hi,_.wz(G,r.JSC$8870_lo),_.wz(G,e)}};
mZS=function(G,e,r){_.vw(G,e,2);qZ(G.encoder_,r.length);Dv(G,G.encoder_.end());Dv(G,r)};
W8s=function(G,e,r,Z){r!=null&&(e=_.xWW(G,e),Z(r,G),_.PyW(G,e))};var UBS,UWn,zEC,W3c,NjP,GA3,em3,Zdj,Odb;UBS=MZ();UWn=MZ();zEC=MZ();W3c=MZ();NjP=MZ();_.L3y=MZ();_.Qa=MZ();GA3=MZ();em3=MZ();_.r2y=MZ();Zdj=MZ();Odb=MZ();_.Mal=MZ();_.Vay=MZ();_.Tq=function(G,e,r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G,e,r)};
_.Tq.prototype.toJSON=function(){return nd(this)};
_.Tq.prototype.serialize=function(G){return JSON.stringify(nd(this,G))};
var PzS=function(G,e){if(e==null||e=="")return new G;e=JSON.parse(e);if(!Array.isArray(e))throw Error("V");return new G(WSy(e))};
_.Tq.prototype.getExtension=function(G){Zds(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G.fieldIndex);emS(this,G.fieldIndex);return G.ctor?G.isRepeated?G.getExtensionFn(this,G.ctor,G.fieldIndex,_.bx(),G.JSC$8885_hasMessageId):G.getExtensionFn(this,G.ctor,G.fieldIndex,G.JSC$8885_hasMessageId):G.isRepeated?G.getExtensionFn(this,G.fieldIndex,_.bx(),G.JSC$8885_hasMessageId):G.getExtensionFn(this,G.fieldIndex,G.defaultValue,G.JSC$8885_hasMessageId)};
_.Tq.prototype.clone=function(){var G=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=G[_.MW]|0;return kAs(this,G,e)?flp(this,G,!0):new this.constructor(A2(G,e,!1))};
_.Tq.prototype[Kd]=HY;_.Tq.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Vt=function(G,e,r){this.$$binaryReaderFn=G;this.$$binaryWriterFn=e;G=I8(UBS);this.$$isMsg=!!G&&r===G||!1},ZjN=zms(function(G,e,r,Z,O){if(G.nextWireType_!==2)return!1;
o$(G,XcE(e,Z,r),O);return!0},L84),Oji=zms(function(G,e,r,Z,O){if(G.nextWireType_!==2)return!1;
o$(G,XcE(e,Z,r),O);return!0},L84),g$S=Symbol(),hX_=Symbol(),E$a=Symbol(),j2A=Symbol(),$Za=Symbol(),Gqa,eXA;var Jtp,hm3,I$,TWw,DBW,ECy,idP,C2,vC3,wYc,$BS,SVb,qVc,gCS,llj,Rmv,j8w,aly,XYn;Jtp=function(G,e){var r=new BjE;avA(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,r,ht(g$S,tZa,lv_,e));Dv(r,r.encoder_.end());G=new Uint8Array(r.totalLength_);e=r.blocks_;for(var Z=e.length,O=0,M=0;M<Z;M++){var T=e[M];G.set(T,O);O+=T.length}r.blocks_=[G];return G};
hm3=zms(function(G,e,r,Z,O){if(G.nextWireType_!==2)return!1;G=o$(G,YC([void 0,void 0],Z,!0),O);G=xw(G);Z=e[_.MW]|0;O=CP(Z);if(Z&2)throw Error();var M=Ld(e,r,O);if(M instanceof dW)(M.arrayState&2)!=0?(M=wYA(M),M.push(G),PY(e,Z,r,M,O)):(e=M,r=e.keyToApi(G[0],!1,!0),G=G[1],G=e.valueCtor?G===void 0?null:G:e.valueToApi(G,!1,!0,void 0,!1,e.arrayState),Oi.prototype.set.call(e,r,G));else if(Array.isArray(M)){var T=M[_.MW]|0;T&8192||Db(M,T|=8192);T&2&&(M=Q8F(M),PY(e,Z,r,M,O));M.push(G)}else PY(e,Z,r,iy([G]),
O);return!0},function(G,e,r,Z,O){if(e instanceof dW)e.forEach(function(E,b){W8s(G,r,YC([b,
E],Z,!1),O)});
else if(Array.isArray(e)){for(var M=0;M<e.length;M++){var T=e[M];Array.isArray(T)&&W8s(G,r,YC(T,Z,!1),O)}iy(e)}});
I$=_.iz(function(G,e,r){if(G.nextWireType_!==1)return!1;_.bz(e,r,QWE(G.decoder_));return!0},Hji,Odb);
TWw=_.iz(function(G,e,r,Z){if(G.nextWireType_!==1)return!1;_.Ei(e,r,Z,QWE(G.decoder_));return!0},Hji,Odb);
DBW=_.iz(function(G,e,r){if(G.nextWireType_!==5)return!1;_.bz(e,r,sWC(G.decoder_));return!0},dZq,Zdj);
ECy=_.kqa(function(G,e,r){if(G.nextWireType_!==5&&G.nextWireType_!==2)return!1;e=_.rz(e,e[_.MW]|0,r);G.nextWireType_==2?_.Yll(G,sWC,e):e.push(sWC(G.decoder_));return!0},function(G,e,r){e=_.fvi(_.NW,e,!0);
if(e!=null&&e.length)for(_.vw(G,r,2),qZ(G.encoder_,e.length*4),r=0;r<e.length;r++){var Z=G.encoder_;iPS(e[r]);_.wz(Z,m3)}},Zdj);
idP=_.iz(function(G,e,r,Z){if(G.nextWireType_!==5)return!1;_.Ei(e,r,Z,sWC(G.decoder_));return!0},dZq,Zdj);
_.bdv=_.iz(function(G,e,r){if(G.nextWireType_!==0)return!1;_.bz(e,r,_.kj(G.decoder_,_.Sla));return!0},_.SZ,_.Qa);
_.p2=_.iz(function(G,e,r){if(G.nextWireType_!==0)return!1;_.bz(e,r,_.kj(G.decoder_,AS));return!0},_.SZ,_.Qa);
C2=_.iz(function(G,e,r){if(G.nextWireType_!==0)return!1;G=_.kj(G.decoder_,AS);_.bz(e,r,G===0?void 0:G);return!0},_.SZ,_.Qa);
vC3=_.iz(function(G,e,r,Z){if(G.nextWireType_!==0)return!1;_.Ei(e,r,Z,_.kj(G.decoder_,AS));return!0},_.SZ,_.Qa);
wYc=_.iz(function(G,e,r){if(G.nextWireType_!==0)return!1;_.bz(e,r,_.kj(G.decoder_,_.yv));return!0},Q2i,GA3);
_.ug=_.iz(function(G,e,r){if(G.nextWireType_!==0)return!1;_.bz(e,r,_.kj(G.decoder_,bPS));return!0},Q2i,GA3);
_.n2=_.iz(function(G,e,r){if(G.nextWireType_!==0)return!1;_.bz(e,r,_.Hs(G.decoder_));return!0},pwy,W3c);
$BS=_.iz(function(G,e,r){if(G.nextWireType_!==0)return!1;G=_.Hs(G.decoder_);_.bz(e,r,G===0?void 0:G);return!0},pwy,W3c);
SVb=_.iz(function(G,e,r,Z){if(G.nextWireType_!==0)return!1;_.Ei(e,r,Z,_.Hs(G.decoder_));return!0},pwy,W3c);
qVc=_.iz(function(G,e,r){if(G.nextWireType_!==1)return!1;_.bz(e,r,owv(G.decoder_));return!0},_.uyU,_.r2y);
_.taW=_.kqa(function(G,e,r){if(G.nextWireType_!==1&&G.nextWireType_!==2)return!1;e=_.rz(e,e[_.MW]|0,r);G.nextWireType_==2?_.Yll(G,owv,e):e.push(owv(G.decoder_));return!0},function(G,e,r){e=_.fvi(mWp,e,!1);
if(e!=null)for(var Z=0;Z<e.length;Z++)CzA(G,r,e[Z])},_.r2y);
_.mK=_.iz(function(G,e,r){if(G.nextWireType_!==0)return!1;_.bz(e,r,IbP(G.decoder_));return!0},n$a,UWn);
_.cs=_.iz(function(G,e,r){if(G.nextWireType_!==0)return!1;G=IbP(G.decoder_);_.bz(e,r,G===!1?void 0:G);return!0},n$a,UWn);
gCS=_.iz(function(G,e,r,Z){if(G.nextWireType_!==0)return!1;_.Ei(e,r,Z,IbP(G.decoder_));return!0},n$a,UWn);
_.Yj=_.iz(function(G,e,r){if(G.nextWireType_!==2)return!1;_.bz(e,r,mWv(G));return!0},ctA,zEC);
_.ya=_.iz(function(G,e,r){if(G.nextWireType_!==2)return!1;G=mWv(G);_.bz(e,r,G===""?void 0:G);return!0},ctA,zEC);
_.FC=_.iz(function(G,e,r,Z){if(G.nextWireType_!==2)return!1;_.Ei(e,r,Z,mWv(G));return!0},ctA,zEC);
llj=_.kqa(function(G,e,r){if(G.nextWireType_!==2)return!1;G=mWv(G);_.rz(e,e[_.MW]|0,r).push(G);return!0},function(G,e,r){e=_.fvi(_.Xo,e,!0);
if(e!=null)for(var Z=0;Z<e.length;Z++){var O=G,M=r,T=e[Z];T!=null&&mZS(O,M,bfF(T))}},zEC);
Rmv=void 0;Rmv=Rmv===void 0?UBS:Rmv;_.J3=new Vt(function(G,e,r,Z,O){if(G.nextWireType_!==2)return!1;Z=YC(void 0,Z,!0);_.rz(e,e[_.MW]|0,r).push(Z);o$(G,Z,O);return!0},function(G,e,r,Z,O){if(Array.isArray(e)){for(var M=0;M<e.length;M++)YkS(G,e[M],r,Z,O);
G=e[_.MW]|0;G&1||Db(e,G|1)}},Rmv);
_.Bs=zms(function(G,e,r,Z,O,M){if(G.nextWireType_!==2)return!1;var T=e[_.MW]|0;uoA(e,T,M,r,CP(T));e=XcE(e,Z,r);o$(G,e,O);return!0},YkS);
_.xj=_.iz(function(G,e,r){if(G.nextWireType_!==2)return!1;_.bz(e,r,_.cSw(G));return!0},_.ytN,_.Mal);
j8w=_.iz(function(G,e,r,Z){if(G.nextWireType_!==2)return!1;_.Ei(e,r,Z,_.cSw(G));return!0},_.ytN,_.Mal);
_.Ps=_.iz(function(G,e,r){if(G.nextWireType_!==0)return!1;_.bz(e,r,_.Hs(G.decoder_)>>>0);return!0},Ata,NjP);
aly=_.iz(function(G,e,r,Z){if(G.nextWireType_!==0)return!1;_.Ei(e,r,Z,_.Hs(G.decoder_)>>>0);return!0},Ata,NjP);
_.Ui=_.iz(function(G,e,r){if(G.nextWireType_!==0)return!1;_.bz(e,r,_.Hs(G.decoder_));return!0},_.F_$,_.Vay);
_.zB=_.iz(function(G,e,r){if(G.nextWireType_!==0)return!1;G=_.Hs(G.decoder_);_.bz(e,r,G===0?void 0:G);return!0},_.F_$,_.Vay);
XYn=_.iz(function(G,e,r){if(G.nextWireType_!==0)return!1;_.bz(e,r,_.kj(G.decoder_,wcy));return!0},function(G,e,r){e=nws(e);
if(e!=null&&(BWp(e),e!=null))switch(_.vw(G,r,0),typeof e){case "number":G=G.encoder_;r=e;e=r<0;r=Math.abs(r)*2;Tjy(r);r=m3;var Z=cc;e&&(r==0?Z==0?Z=r=4294967295:(Z--,r=4294967295):r--);m3=r;cc=Z;$$(G,m3,cc);break;case "bigint":G=G.encoder_;e=e<<BigInt(1)^e>>BigInt(63);m3=Number(BigInt.asUintN(32,e));cc=Number(BigInt.asUintN(32,e>>BigInt(32)));$$(G,m3,cc);break;default:JSj(G.encoder_,e)}},em3);var kAj=function(){var G=K8l,e=flv;this.fieldIndex=175237375;this.ctor=e;this.isRepeated=0;this.getExtensionFn=_.SS;this.defaultValue=void 0;this.JSC$8885_hasMessageId=G.messageId!=null?pP:void 0};
kAj.prototype.register=function(){Ue(this)};var Hdy=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(Hdy,_.Tq);var dBn=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(dBn,_.Tq);var W_y=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(W_y,_.Tq);var oCw=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(oCw,_.Tq);var s8j=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(s8j,_.Tq);var Q8y=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(Q8y,_.Tq);var Ilv=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(Ilv,_.Tq);Ilv.prototype.getData=function(){return _.Dg(this,2)};var pYc=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(pYc,_.Tq);var CHn=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(CHn,_.Tq);CHn.prototype.getStyle=function(){return _.SS(this,Hdy,1)};var Xy=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(Xy,_.Tq);Xy.prototype.getPayloadCase=function(){return _.ig(this,k$)};
Xy.prototype.getStyle=function(){return _.a$(this,CHn,6,k$)};
var uoc=function(){var G=new Xy,e=new s8j;return _.fj(G,7,k$,e)},nCl=function(){var G=new Xy,e=new Q8y;
return _.fj(G,8,k$,e)},k$=[1,
2,3,4,5,6,7,8];var mBC=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(mBC,_.Tq);var c2E=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(c2E,_.Tq);var YV3=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(YV3,_.Tq);var y2C=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(y2C,_.Tq);var A2j=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(A2j,_.Tq);var F8E=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(F8E,_.Tq);var J2l=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(J2l,_.Tq);var BWv=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(BWv,_.Tq);BWv.prototype.getData=function(){return _.Dg(this,2)};var xBn=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(xBn,_.Tq);var zXN=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(zXN,_.Tq);zXN.prototype.getPayloadCase=function(){return _.ig(this,Ws)};
var Ws=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var N_=function(G,e){G=Error.call(this,G);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.code=e===void 0?2:e};
_.K(N_,Error);var PHv=Promise;var UBC=function(G){this.channelPromise=G};
UBC.prototype.send=function(G,e,r){this.channelPromise.then(function(Z){Z.send(G,e,r)})};var zmj=function(G,e){this.data=G;this.channel=e};
zmj.prototype.reply=function(G,e,r){this.channel.send(G,e,r)};var W8j=function(G){this.JSC$8951_port_=G};
W8j.prototype.send=function(G,e,r){r=r===void 0?[]:r;var Z=new MessageChannel;NWn(Z.port1,e);this.JSC$8951_port_.postMessage(G,[Z.port2].concat(r))};
var L8w=function(G,e){NWn(G,e);return new W8j(G)},NWn=function(G,e){e&&(G.onmessage=function(r){e(new zmj(r.data,L8w(r.ports[0])))})};var GqE=function(G){this.verifier_=G};
GqE.prototype.verify=function(G){return this.verifier_(G)};
var eXc=function(G){var e=Object.create(null);(typeof G==="string"?[G]:G).forEach(function(r){if(r==="null")throw Error("X");e[r]=!0});
return function(r){return e[r]===!0}};_.rtE=function(){if(!_.O_.addEventListener||!Object.defineProperty)return!1;var G=!1,e=Object.defineProperty({},"passive",{get:function(){G=!0}});
try{var r=function(){};
_.O_.addEventListener("test",r,e);_.O_.removeEventListener("test",r,e)}catch(Z){}return G}();var Zjn;_.L2=function(G){var e=G.destination;var r=G.iframe;var Z=G.origin;var O=G.channelName===void 0?"ZNWN1d":G.channelName;var M=G.onMessage===void 0?void 0:G.onMessage;G=G.onEstablished===void 0?void 0:G.onEstablished;return Zjn({destination:e,getSource:function(){return r.contentWindow},
originVerifier:Z instanceof GqE?Z:typeof Z==="function"?new GqE(Z):new GqE(eXc(Z)),channelName:O,onMessage:M,onEstablished:G})};
Zjn=function(G){var e=G.destination;var r=G.getSource;var Z=G.originVerifier;var O=G.token===void 0?void 0:G.token;var M=G.channelName;var T=G.onMessage===void 0?void 0:G.onMessage;var E=G.onEstablished===void 0?void 0:G.onEstablished;return new UBC(new PHv(function(b,w){var q=function(t){t.source&&t.source===r()&&Z.verify(t.origin)&&(t.data.n||t.data)===M&&(e.removeEventListener("message",q,!1),O&&t.data.t!==O?w(Error("Y`"+M+"`"+O+"`"+t.data.t)):(b(L8w(t.ports[0],T)),E&&E(t)))};
e.addEventListener("message",q,!1)}))};var OjS=function(G){try{G()}catch(e){MU(e)}};var VZS=function(G){var e=this;var r=G.getMessageType;var Z=G.onUnregisteredMessage===void 0?function(){}:G.onUnregisteredMessage;
var O=G.onBeforeRegisteredMessage===void 0?function(){}:G.onBeforeRegisteredMessage;
G=G.onAfterRegisteredMessage===void 0?function(){}:G.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=r;this.onUnregisteredMessage_=Z;this.onBeforeRegisteredMessage_=O;this.onAfterRegisteredMessage_=G;this.onMessage=function(M){return MZb(e,M)}};
VZS.prototype.register=function(G,e){this.registry_.set(G,e);return this};
var MZb=function(G,e){var r=G.getMessageType_(e.data),Z=G.registry_.get(r);Z?(OjS(function(){return G.onBeforeRegisteredMessage_(e,r)}),OjS(function(){return Z(e)}),OjS(function(){return G.onAfterRegisteredMessage_(e,r)})):OjS(function(){return G.onUnregisteredMessage_(e,r)})};var hXl=function(G){this.JSC$8968_channel_=G},DZW,E$E;
hXl.prototype.send=function(G,e,r){this.JSC$8968_channel_.send(nd(G),e,r)};
_.Tzj=function(G,e){return function(r){var Z=new G(r.data);return e(new zmj(Z,r.channel))}};
DZW=function(G){return function(e){return G(new zmj(e.data,new hXl(e.channel)))}};
E$E=function(G,e){return DZW(_.Tzj(G,e))};var ijW=function(G,e,r,Z){this.registry=G;this.delegate=e;this.receiveMessageConstructor=r;this.createInitMessage=Z;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},UZy=function(G){var e=new VZS({getMessageType:G.getPayloadCase});
return new ijW(e,new hXl(_.L2({iframe:G.child,destination:window,origin:G.origin,channelName:G.channelName,onMessage:E$E(G.receiveMessageConstructor,e.onMessage)})),G.receiveMessageConstructor,G.createInitMessage)},bjj=function(G,e){G.createInitMessage=e};
ijW.prototype.send=function(G){if(!this.initialised)throw new N_("Attempted to send a message before initialisation.");this.delegate.send(G)};
var v$n=function(G,e){return _.D(function(r){if(!G.initialised)throw new N_("Attempted to send a message before initialisation.");return r.return(new Promise(function(Z){G.delegate.send(e,E$E(G.receiveMessageConstructor,Z))}))})};
ijW.prototype.init=function(){var G=this;return _.D(function(e){if(G.initialised)throw new N_("Attempted to initialise twice. The SDK can only be initialised once.");if(G.createInitMessage!==void 0){var r=G.delegate,Z=r.send,O=G.createInitMessage;var M=new dBn;var T=[].concat(_.mY(G.features));M=_.Gq(M,1,T,_.MB);Z.call(r,O.call(G,M))}G.initialised=!0;_.HL(e)})};
var GD=function(G,e){if(G.initialised)throw new N_('Attempted to set up API "'+e+'" after initialisation. All APIs must be set up before initialising the SDK.');G.features.add(e);return G.registry};
_.iY.Object.defineProperties(ijW.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var ww3=function(G){this.channel=G;this.registered=!1};
ww3.prototype.update=function(G){if(this.channel.isInitialised){if(!this.registered)throw new N_("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var e=new Xy;var r=new oCw;r=_.qM(r,1,G);e=_.fj(e,2,k$,r);this.channel.send(e)}else this.register();this.JSC$8982_audioEnabled=G};
ww3.prototype.register=function(){GD(this.channel,1);this.registered=!0};
ww3.prototype.isAudioEnabled=function(){return this.JSC$8982_audioEnabled};var $ZE=function(G){this.channel=G};
_.V=$ZE.prototype;_.V.onFirstFrameReady=function(G){GD(this.channel,2).register(11,function(e){e=_.a$(e.data,mBC,11,Ws);if(!e)throw new N_("Unexpectedly nonexistent GameFirstFrameReadyEvent");G(_.gU(e,1))})};
_.V.onReady=function(G){GD(this.channel,2).register(4,function(e){e=_.a$(e.data,YV3,4,Ws);if(!e)throw new N_("Unexpectedly nonexistent GameReadyEvent");G(_.gU(e,1))})};
_.V.onLevelComplete=function(G){GD(this.channel,2).register(5,function(e){e=_.a$(e.data,y2C,5,Ws);if(!e)throw new N_("Unexpectedly nonexistent LevelCompleteEvent");G(_.gU(e,1),_.vp(e,2))})};
_.V.onGameOver=function(G){GD(this.channel,2).register(6,function(e){e=_.a$(e.data,c2E,6,Ws);if(!e)throw new N_("Unexpectedly nonexistent GameOverEvent");G(_.gU(e,1))})};
_.V.pause=function(){var G=this;if(!this.channel.isInitialised)return GD(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new N_("Using unregistered Game Feature: pause.");var e=uoc();return new Promise(function(r){return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(v$n(G.channel,e),2);r();_.HL(Z)})})};
_.V.resume=function(){var G=this;if(!this.channel.isInitialised)return GD(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new N_("Using unregistered Game Feature: resume.");var e=nCl();return new Promise(function(r){return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(v$n(G.channel,e),2);r();_.HL(Z)})})};var SkP=function(G){this.channel=G};
SkP.prototype.onReady=function(G){GD(this.channel,5).register(8,function(e){if(!_.a$(e.data,A2j,8,Ws))throw new N_("Unexpectedly nonexistent PageReadyEvent");G()})};var qkj=function(G){this.channel=G};
qkj.prototype.onChange=function(G){GD(this.channel,3).register(7,function(e){e=_.a$(e.data,F8E,7,Ws);if(!e)throw new N_("Unexpectedly nonexistent ScoreEvent");G(_.gU(e,1),_.vp(e,2))})};var tZE={load:function(){throw new N_("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new N_("Storage used, but storage.onSave() listener not set!");}},g$3=function(G){this.channel=G;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},lvl=function(G){GD(G.channel,4).register(2,tZE.load).register(3,tZE.save);
G.initialSetupDone=!0};
g$3.prototype.onLoad=function(G){this.initialSetupDone||lvl(this);this.loadRegistered||(this.loadRegistered=!0,GD(this.channel,4).register(2,function(e){var r,Z,O;return _.D(function(M){if(M.nextAddress==1){r=_.a$(e.data,J2l,2,Ws);if(!r)throw new N_("Unexpectedly nonexistent StorageLoad");Z=_.gU(r,1);return M.yield(G(Z),2)}O=M.yieldResult;var T=e.reply,E=new Xy;var b=new Ilv;b=_.QB(b,1,Z);b=_.t0(b,2,_.Qv(O,!1));E=_.fj(E,3,k$,b);T.call(e,E);_.HL(M)})}))};
g$3.prototype.onSave=function(G){this.initialSetupDone||lvl(this);this.saveRegistered||(this.saveRegistered=!0,GD(this.channel,4).register(3,function(e){var r,Z,O;return _.D(function(M){if(M.nextAddress==1){r=_.a$(e.data,BWv,3,Ws);if(!r)throw new N_("Unexpectedly nonexistent StorageSave");Z=_.gU(r,1);O=DWC(r.getData());return M.yield(G(Z,O),2)}var T=e.reply,E=new Xy;var b=new pYc;b=_.QB(b,1,Z);E=_.fj(E,4,k$,b);T.call(e,E);_.HL(M)})}))};var RXj=function(G){this.channel=G};
RXj.prototype.update=function(G){if(!this.channel.features.has(6))throw new N_("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var e=new Xy,r=new CHn;G=_.Kj(r,1,G);e=_.fj(e,6,k$,G);this.channel.send(e)};
RXj.prototype.register=function(){GD(this.channel,6)};var j2c=function(G){this.channel=G;this.userActivityLoggingIntervalMs=0};
j2c.prototype.onUserActivity=function(G,e){this.userActivityLoggingIntervalMs=e;GD(this.channel,7).register(9,function(r){if(!_.a$(r.data,xBn,9,Ws))throw new N_("Unexpectedly nonexistent ClickEvent");G()})};var avc=function(G){var e=this;this.channel=G;this.init=this.channel.init.bind(this.channel);this.page=new SkP(this.channel);this.game=new $ZE(this.channel);this.audio=new ww3(this.channel);this.score=new qkj(this.channel);this.storage=new g$3(this.channel);this.style=new RXj(this.channel);this.userActivity=new j2c(this.channel);bjj(this.channel,function(r){var Z=new W_y;r=_.Kj(Z,1,r);r=_.XC(r,3,e.userActivity.userActivityLoggingIntervalMs);Z=e.audio.isAudioEnabled();Z!==void 0&&_.qM(r,2,Z);Z=new Xy;
return _.fj(Z,5,k$,r)})};var XwE=function(){this.timedFunctionContext=0};
XwE.prototype.timeExecution=function(G,e){var r=this;return function(){var Z=_.Bw.apply(0,arguments);r.timedFunctionContext=G;return e.apply(null,_.mY(Z))}};var K_w=function(){var G={};this.priorityTasks=(G[3]=[],G[2]=[],G[1]=[],G);this.isFlushing=!1},X$=function(G,e,r){var Z=fvS(G,r);
G.priorityTasks[r].push(e);Z&&G.priorityTasks[r].length===1&&G.flush()},fvS=function(G,e){return Object.keys(G.priorityTasks).map(function(r){return Number(r)}).filter(function(r){return!isNaN(r)&&r>e}).every(function(r){return G.priorityTasks[r].length===0})};
K_w.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(G){return G.length>0});)kqE(this,3),kqE(this,2),kqE(this,1)}catch(G){throw Object.values(this.priorityTasks).forEach(function(e){return void e.splice(0,e.length)}),G;
}finally{this.isFlushing=!1}}};
var kqE=function(G,e){for(;fvS(G,e)&&G.priorityTasks[e].length>0;)G.priorityTasks[e][0](),G.priorityTasks[e].shift()};
_.iY.Object.defineProperties(K_w.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(G){return G.length>0})}}});var Om4={};var HjS=globalThis.trustedTypes,L_U=HjS,e1y;var dz=function(G){this.privateDoNotAccessOrElseWrappedResourceUrl=G};
dz.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var dZb,o$E,s2l,Q2S,Ivn,pwW,Czc,uyW;dZb=_.Cp([""]);o$E=pp(["\x00"],["\\0"]);s2l=pp(["\n"],["\\n"]);Q2S=pp(["\x00"],["\\u0000"]);Ivn=_.Cp([""]);pwW=pp(["\x00"],["\\0"]);Czc=pp(["\n"],["\\n"]);uyW=pp(["\x00"],["\\u0000"]);_.n$E=ZmN(function(G){return G(dZb)})||ZmN(function(G){return G(o$E)})||ZmN(function(G){return G(s2l)})||ZmN(function(G){return G(Q2S)});
_.mZC=_.I2(Ivn)&&_.I2(pwW)&&_.I2(Czc)&&_.I2(uyW);var At;_.pj=function(G,e){this.privateDoNotAccessOrElseWrappedUrl=e};
_.pj.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.ctc=Cj("about:blank");At=Cj("about:invalid#zClosurez");var MrU=function(G){this.isValid=G},Yk3=new MrU(function(G){return/^[^:]*([/?#]|$)/.test(G)}),ytn=m_("data"),AtE=m_("http"),F_E=m_("https"),Jtv=m_("ftp"),BzS=m_("mailto"),xZv=m_("intent"),Pz3=m_("vnd.youtube"),VrS=[ytn,
AtE,F_E,BzS,Jtv,Yk3],TP$=Hw(function(){return typeof URL==="function"}),UZW=["data:",
"http:","https:","mailto:","ftp:"],E5$=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Uk=function(G){this.privateDoNotAccessOrElseWrappedHtml=G};
Uk.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var iF$=Hw(function(){return new Uk(HjS?HjS.emptyHTML:"")});var zXn={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"},bmN=function(G,e){var r=Error.call(this,G+" cannot be used with intent "+zXn[e]);this.message=r.message;"stack"in r&&(this.stack=r.stack);this.type=G;this.intent=e;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.K(bmN,Error);_.Zf=function(G){this.privateDoNotAccessOrElseWrappedScript=G};
_.Zf.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var $gy=function(G){this.privateDoNotAccessOrElseWrappedAttributePrefix=G};
$gy.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var Sfp="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var i7=function(G){this.privateDoNotAccessOrElseWrappedStyleSheet=G};
i7.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var Aef=function(G){var e=_.Lz("window.location.href");G==null&&(G='Unknown Error of type "null/undefined"');if(typeof G==="string")return{message:G,name:"Unknown error",lineNumber:"Not available",fileName:e,stack:"Not available"};var r=!1;try{var Z=G.lineNumber||G.line||"Not available"}catch(T){Z="Not available",r=!0}try{var O=G.fileName||G.filename||G.sourceURL||_.O_.$googDebugFname||e}catch(T){O="Not available",r=!0}e=W_W(G);if(!(!r&&G.lineNumber&&G.fileName&&G.stack&&G.message&&G.name)){r=G.message;
if(r==null){if(G.constructor&&G.constructor instanceof Function){if(G.constructor.name)r=G.constructor.name;else if(r=G.constructor,e_[r])r=e_[r];else{r=String(r);if(!e_[r]){var M=/function\s+([^\(]+)/m.exec(r);e_[r]=M?M[1]:"[Anonymous]"}r=e_[r]}r='Unknown Error of type "'+r+'"'}else r="Unknown Error of unknown type";typeof G.toString==="function"&&Object.prototype.toString!==G.toString&&(r+=": "+G.toString())}return{message:r,name:G.name||"UnknownError",lineNumber:Z,fileName:O,stack:e||"Not available"}}return{message:G.message,
name:G.name,lineNumber:G.lineNumber,fileName:G.fileName,stack:e}},W_W=function(G,e){e||(e={});
e[Nzj(G)]=!0;var r=G.stack||"",Z=G.cause;Z&&!e[Nzj(Z)]&&(r+="\nCaused by: ",Z.stack&&Z.stack.indexOf(Z.toString())==0||(r+=typeof Z==="string"?Z:Z.message+"\n"),r+=W_W(Z,e));G=G.errors;if(Array.isArray(G)){Z=1;var O;for(O=0;O<G.length&&!(Z>4);O++)e[Nzj(G[O])]||(r+="\nInner error "+Z++ +": ",G[O].stack&&G[O].stack.indexOf(G[O].toString())==0||(r+=typeof G[O]==="string"?G[O]:G[O].message+"\n"),r+=W_W(G[O],e));O<G.length&&(r+="\n... "+(G.length-O)+" more inner errors")}return r},Nzj=function(G){var e=
"";
typeof G.toString==="function"&&(e=""+G);return e+G.stack},e_={};var L_W,iq,Nk,e1W,r6l,Gew,NM,op,Omw;L_W=function(G,e){for(var r=G.split("%s"),Z="",O=Array.prototype.slice.call(arguments,1);O.length&&r.length>1;)Z+=r.shift()+O.shift();return Z+r.join("%s")};
_.em=function(G){return encodeURIComponent(String(G))};
iq=function(G){return decodeURIComponent(G.replace(/\+/g," "))};
Nk=function(G){KSb.test(G)&&(G.indexOf("&")!=-1&&(G=G.replace(g4v,"&amp;")),G.indexOf("<")!=-1&&(G=G.replace(lqP,"&lt;")),G.indexOf(">")!=-1&&(G=G.replace(Ra3,"&gt;")),G.indexOf('"')!=-1&&(G=G.replace(jyC,"&quot;")),G.indexOf("'")!=-1&&(G=G.replace(aqw,"&#39;")),G.indexOf("\x00")!=-1&&(G=G.replace(XAE,"&#0;")));return G};
e1W=function(G){var e={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var r=_.O_.document.createElement("div");return G.replace(Gew,function(Z,O){var M=e[Z];if(M)return M;O.charAt(0)=="#"&&(O=Number("0"+O.slice(1)),isNaN(O)||(M=String.fromCharCode(O)));M||(_.Te(r,zq(Z+" ")),M=r.firstChild.nodeValue.slice(0,-1));return e[Z]=M})};
r6l=function(G){return G.replace(/&([^;]+);/g,function(e,r){switch(r){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return r.charAt(0)!="#"||(r=Number("0"+r.slice(1)),isNaN(r))?e:String.fromCharCode(r)}})};
Gew=/&([^;\s<&]+);?/g;_.H7p=function(G){return String(G).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.Zmn=String.prototype.repeat?function(G,e){return G.repeat(e)}:function(G,e){return Array(e+1).join(G)};
_.rc=function(G,e){if(!Number.isFinite(G))return String(G);G=String(G);var r=G.indexOf(".");r===-1&&(r=G.length);var Z=G[0]==="-"?"-":"";Z&&(G=G.substring(1));return Z+(0,_.Zmn)("0",Math.max(0,e-r))+G};
NM=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.JV()).toString(36)};
op=function(G){for(var e=0,r=0;r<G.length;++r)e=31*e+G.charCodeAt(r)>>>0;return e};
_.OW=function(G){return String(G).replace(/\-([a-z])/g,function(e,r){return r.toUpperCase()})};
_.Zz=function(G){return String(G).replace(/([A-Z])/g,"-$1").toLowerCase()};
Omw=function(G){return G.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(e,r,Z){return r+Z.toUpperCase()})};var MrW=function(){this.names=new Map};
MrW.prototype.getName=function(G){var e=this.names.get(G);if(e)return e;var r;e=(r=G.description)!=null?r:NM();this.names.set(G,e);return e};var Vr3=function(G){var e=Error.call(this,G?G.length+" errors occurred during unsubscription:\n"+G.map(function(r,Z){return Z+1+") "+r.toString()}).join("\n  "):"");
this.message=e.message;"stack"in e&&(this.stack=e.stack);this.errors=G;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.K(Vr3,Error);var vL=function(G){this.initialTeardown=G;this.closed=!1;this._teardowns=this._parentage=null};
_.V=vL.prototype;
_.V.unsubscribe=function(){if(!this.closed){this.closed=!0;var G=this._parentage;if(Array.isArray(G))for(var e=_.h(G),r=e.next();!r.done;r=e.next())r.value.remove(this);else G==null||G.remove(this);e=this.initialTeardown;if(b7(e))try{e()}catch(M){var Z=M instanceof Vr3?M.errors:[M]}var O=this._teardowns;if(O)for(this._teardowns=null,e=_.h(O),r=e.next();!r.done;r=e.next()){r=r.value;try{b7(r)?r():r.unsubscribe()}catch(M){r=void 0,Z=(r=Z)!=null?r:[],M instanceof Vr3?Z=[].concat(_.mY(Z),_.mY(M.errors)):
Z.push(M)}}if(Z)throw new Vr3(Z);}};
_.V.add=function(G){if(G&&G!==this)if(this.closed)b7(G)?G():G.unsubscribe();else{if(G instanceof vL){if(G.closed||G._hasParent(this))return;G._addParent(this)}var e;(this._teardowns=(e=this._teardowns)!=null?e:[]).push(G)}};
_.V._hasParent=function(G){var e=this._parentage;return e===G||Array.isArray(e)&&e.includes(G)};
_.V._addParent=function(G){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(G),e):e?[e,G]:G};
_.V._removeParent=function(G){var e=this._parentage;e===G?this._parentage=null:Array.isArray(e)&&jLp(e,G)};
_.V.remove=function(G){var e=this._teardowns;e&&jLp(e,G);G instanceof vL&&G._removeParent(this)};
var h1y=new vL;h1y.closed=!0;vL.JSC$9078_EMPTY=h1y;var XLS=function(){setTimeout.apply(null,_.mY(_.Bw.apply(0,arguments)))};var Zw=function(G){vL.call(this);this.JSC$9083_isStopped=!1;this.destination=G instanceof Zw?G:new Og(!G||b7(G)?{next:G!=null?G:void 0}:G);aff(G)&&G.add(this)};
_.K(Zw,vL);Zw.JSC$9078_EMPTY=vL.JSC$9078_EMPTY;Zw.create=function(G,e,r){return new Mu(G,e,r)};
_.V=Zw.prototype;_.V.next=function(G){this.JSC$9083_isStopped||this._next(G)};
_.V.error=function(G){this.JSC$9083_isStopped||(this.JSC$9083_isStopped=!0,this._error(G))};
_.V.complete=function(){this.JSC$9083_isStopped||(this.JSC$9083_isStopped=!0,this._complete())};
_.V.unsubscribe=function(){this.closed||(this.JSC$9083_isStopped=!0,vL.prototype.unsubscribe.call(this))};
_.V._next=function(G){this.destination.next(G)};
_.V._error=function(G){this.destination.error(G);this.unsubscribe()};
_.V._complete=function(){this.destination.complete();this.unsubscribe()};
var Og=function(G){this.partialObserver=G};
Og.prototype.next=function(G){var e=this.partialObserver;if(e.next)try{e.next(G)}catch(r){$5(r)}};
Og.prototype.error=function(G){var e=this.partialObserver;if(e.error)try{e.error(G)}catch(r){$5(r)}else $5(G)};
Og.prototype.complete=function(){var G=this.partialObserver;if(G.complete)try{G.complete()}catch(e){$5(e)}};
var Mu=function(G,e,r){Zw.call(this);var Z;b7(G)||!G?Z={next:G!=null?G:void 0,error:e!=null?e:void 0,complete:r!=null?r:void 0}:Z=G;this.destination=new Og(Z)};
_.K(Mu,Zw);Mu.JSC$9078_EMPTY=Zw.JSC$9078_EMPTY;Mu.create=Zw.create;var gP=typeof Symbol==="function"&&Symbol.observable||"@@observable";var t6=function(G){G&&(this._subscribe=G)};
_.V=t6.prototype;_.V.lift=function(G){var e=new t6;e.source=this;e.operator=G;return e};
_.V.subscribe=function(G,e,r){G=G&&G instanceof Zw||G&&b7(G.next)&&b7(G.error)&&b7(G.complete)&&aff(G)?G:new Mu(G,e,r);e=this.operator;r=this.source;G.add(e?e.call(G,r):r?this._subscribe(G):this._trySubscribe(G));return G};
_.V._trySubscribe=function(G){try{return this._subscribe(G)}catch(e){G.error(e)}};
_.V.forEach=function(G,e){var r=this;e=ff$(e);return new e(function(Z,O){var M=r.subscribe(function(T){try{G(T)}catch(E){O(E),M==null||M.unsubscribe()}},O,Z)})};
_.V._subscribe=function(G){var e;return(e=this.source)==null?void 0:e.subscribe(G)};
t6.prototype[gP]=function(){return this};
t6.prototype.pipe=function(){var G=_.Bw.apply(0,arguments);return G.length?KYF(G)(this):this};
t6.create=function(G){return new t6(G)};var TPE=function(){var G=Error.call(this,"object unsubscribed");this.message=G.message;"stack"in G&&(this.stack=G.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.K(TPE,Error);var RP=function(){this.observers=[];this.hasError=this.JSC$9099_isStopped=this.closed=!1;this.thrownError=null};
_.K(RP,t6);_.V=RP.prototype;_.V.lift=function(G){var e=new VS(this,this);e.operator=G;return e};
_.V._throwIfClosed=function(){if(this.closed)throw new TPE;};
_.V.next=function(G){this._throwIfClosed();if(!this.JSC$9099_isStopped){var e=this.observers.slice();e=_.h(e);for(var r=e.next();!r.done;r=e.next())r.value.next(G)}};
_.V.error=function(G){this._throwIfClosed();if(!this.JSC$9099_isStopped){this.hasError=this.JSC$9099_isStopped=!0;this.thrownError=G;for(var e=this.observers;e.length;)e.shift().error(G)}};
_.V.complete=function(){this._throwIfClosed();if(!this.JSC$9099_isStopped){this.JSC$9099_isStopped=!0;for(var G=this.observers;G.length;)G.shift().complete()}};
_.V.unsubscribe=function(){this.JSC$9099_isStopped=this.closed=!0;this.observers=null};
_.V._trySubscribe=function(G){this._throwIfClosed();return t6.prototype._trySubscribe.call(this,G)};
_.V._subscribe=function(G){this._throwIfClosed();this._checkFinalizedStatuses(G);return this._innerSubscribe(G)};
_.V._innerSubscribe=function(G){var e=this,r=this.JSC$9099_isStopped,Z=this.observers;return this.hasError||r?vL.JSC$9078_EMPTY:(Z.push(G),new vL(function(){return jLp(e.observers,G)}))};
_.V._checkFinalizedStatuses=function(G){var e=this.thrownError,r=this.JSC$9099_isStopped;this.hasError?G.error(e):r&&G.complete()};
RP.create=function(G,e){return new VS(G,e)};
var VS=function(G,e){RP.call(this);this.destination=G;this.source=e};
_.K(VS,RP);VS.create=RP.create;VS.prototype.next=function(G){var e,r;(e=this.destination)==null||(r=e.next)==null||r.call(e,G)};
VS.prototype.error=function(G){var e,r;(e=this.destination)==null||(r=e.error)==null||r.call(e,G)};
VS.prototype.complete=function(){var G,e;(G=this.destination)==null||(e=G.complete)==null||e.call(G)};
VS.prototype._subscribe=function(G){var e,r;return(r=(e=this.source)==null?void 0:e.subscribe(G))!=null?r:vL.JSC$9078_EMPTY};var NK=function(G){RP.call(this);this._value=G};
_.K(NK,RP);NK.create=RP.create;NK.prototype._subscribe=function(G){var e=RP.prototype._subscribe.call(this,G);!e.closed&&G.next(this._value);return e};
NK.prototype.getValue=function(){var G=this.thrownError,e=this._value;if(this.hasError)throw G;this._throwIfClosed();return e};
NK.prototype.next=function(G){RP.prototype.next.call(this,this._value=G)};
_.iY.Object.defineProperties(NK.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var BL=new t6(function(G){return G.complete()});var o5_=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var C7a=function(G){return G&&typeof G.length==="number"&&typeof G!=="function"};var DgW={now:function(){return(DgW.delegate||Date).now()},
delegate:void 0};var VB=function(G,e,r){G=G===void 0?Infinity:G;e=e===void 0?Infinity:e;r=r===void 0?DgW:r;RP.call(this);this.bufferSize=G;this.windowTime=e;this.timestampProvider=r;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=e===Infinity;this.bufferSize=Math.max(1,G);this.windowTime=Math.max(1,e)};
_.K(VB,RP);VB.create=RP.create;VB.prototype.next=function(G){var e=this.buffer,r=this.infiniteTimeWindow,Z=this.timestampProvider,O=this.windowTime;this.JSC$9099_isStopped||(e.push(G),!r&&e.push(Z.now()+O));E5E(this);RP.prototype.next.call(this,G)};
VB.prototype._subscribe=function(G){this._throwIfClosed();E5E(this);for(var e=this._innerSubscribe(G),r=this.infiniteTimeWindow,Z=this.buffer.slice(),O=0;O<Z.length&&!G.closed;O+=r?1:2)G.next(Z[O]);this._checkFinalizedStatuses(G);return e};
var E5E=function(G){var e=G.bufferSize,r=G.timestampProvider,Z=G.buffer;G=G.infiniteTimeWindow;var O=(G?1:2)*e;e<Infinity&&O<Z.length&&Z.splice(0,Z.length-O);if(!G){e=r.now();r=0;for(G=1;G<Z.length&&Z[G]<=e;G+=2)r=G;r&&Z.splice(0,r+1)}};var bmn=function(G,e){e=e===void 0?imj:e;this.schedulerActionCtor=G;this.now=e};
bmn.prototype.schedule=function(G,e,r){e=e===void 0?0:e;return(new this.schedulerActionCtor(this,G)).schedule(r,e)};
var imj=DgW.now;var kVN=function(){var G=Error.call(this,"no elements in sequence");this.message=G.message;"stack"in G&&(this.stack=G.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.K(kVN,Error);var Cm=function(G,e,r,Z,O){Zw.call(this,G);this.onUnsubscribe=O;e&&(this._next=function(M){try{e(M)}catch(T){this.destination.error(T)}});
r&&(this._error=function(M){try{r(M)}catch(T){this.destination.error(T)}this.unsubscribe()});
Z&&(this._complete=function(){try{Z()}catch(M){this.destination.error(M)}this.unsubscribe()})};
_.K(Cm,Zw);Cm.JSC$9078_EMPTY=Zw.JSC$9078_EMPTY;Cm.create=Zw.create;Cm.prototype.unsubscribe=function(){var G;this.closed||(G=this.onUnsubscribe)!=null&&G.call(this);Zw.prototype.unsubscribe.call(this)};var Ow=function(G,e){this.source=G;this.subjectFactory=e;this._subject=null;this._refCount=0;this._connection=null};
_.K(Ow,t6);Ow.create=t6.create;Ow.prototype._subscribe=function(G){return v5W(this).subscribe(G)};
var v5W=function(G){var e=G._subject;if(!e||e.JSC$9099_isStopped)G._subject=G.subjectFactory();return G._subject};
Ow.prototype._teardown=function(){this._refCount=0;var G=this._connection;this._subject=this._connection=null;G==null||G.unsubscribe()};
Ow.prototype.connect=function(){var G=this,e=this._connection;if(!e){e=this._connection=new vL;var r=v5W(this);e.add(this.source.subscribe(new Cm(r,void 0,function(Z){G._teardown();r.error(Z)},function(){G._teardown();
r.complete()},function(){return G._teardown()})));
e.closed&&(this._connection=null,e=vL.JSC$9078_EMPTY)}return e};var P7_=Array.isArray;var z1f=Array.isArray,wLE=Object,WYN=wLE.getPrototypeOf,NP4=wLE.prototype,LY4=wLE.keys;var yw=function(G,e,r){Zw.call(this,G);this._next=e;this.shouldComplete=r};
_.K(yw,Zw);yw.JSC$9078_EMPTY=Zw.JSC$9078_EMPTY;yw.create=Zw.create;yw.prototype._complete=function(){this.shouldComplete()?Zw.prototype._complete.call(this):this.unsubscribe()};var TS_=["addListener","removeListener"],hG_=["addEventListener","removeEventListener"],Ef_=["on","off"];var hD=function(){vL.call(this)};
_.K(hD,vL);hD.JSC$9078_EMPTY=vL.JSC$9078_EMPTY;hD.prototype.schedule=function(){return this};var $gW=function(G,e){return setInterval.apply(null,[G,e].concat(_.mY(_.Bw.apply(2,arguments))))};var TD=function(G,e){vL.call(this);this.scheduler=G;this.work=e;this.pending=!1};
_.K(TD,hD);TD.JSC$9078_EMPTY=hD.JSC$9078_EMPTY;TD.prototype.schedule=function(G,e){e=e===void 0?0:e;if(this.closed)return this;this.state=G;G=this.id;var r=this.scheduler;G!=null&&(this.id=Sfv(this,G,e));this.pending=!0;this.delay=e;this.id=this.id||this.requestAsyncId(r,this.id,e);return this};
TD.prototype.requestAsyncId=function(G,e,r){r=r===void 0?0:r;return $gW(G.flush.bind(G,this),r)};
var Sfv=function(G,e,r){r=r===void 0?0:r;if(r!=null&&G.delay===r&&G.pending===!1)return e;clearInterval(e)};
TD.prototype.execute=function(G,e){if(this.closed)return Error("ha");this.pending=!1;if(G=this._execute(G,e))return G;this.pending===!1&&this.id!=null&&(this.id=Sfv(this,this.id,null))};
TD.prototype._execute=function(G){var e=!1;try{this.work(G)}catch(Z){e=!0;var r=!!Z&&Z||Error(Z)}if(e)return this.unsubscribe(),r};
TD.prototype.unsubscribe=function(){if(!this.closed){var G=this.id,e=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;jLp(e,this);G!=null&&(this.id=Sfv(this,G,null));this.delay=null;hD.prototype.unsubscribe.call(this)}};var qf3=function(G,e){e=e===void 0?imj:e;bmn.call(this,G,e);this.actions=[];this.active=!1;this.scheduled=void 0};
_.K(qf3,bmn);qf3.prototype.flush=function(G){var e=this.actions;if(this.active)e.push(G);else{var r;this.active=!0;do if(r=G.execute(G.state,G.delay))break;while(G=e.shift());this.active=!1;if(r){for(;G=e.shift();)G.unsubscribe();throw r;}}};var uL=new t6(wP);var iNF=Array.isArray;var Dw=function(G,e){TD.call(this,G,e);this.scheduler=G;this.work=e};
_.K(Dw,TD);Dw.JSC$9078_EMPTY=TD.JSC$9078_EMPTY;Dw.prototype.schedule=function(G,e){e=e===void 0?0:e;if(e>0)return TD.prototype.schedule.call(this,G,e);this.delay=e;this.state=G;this.scheduler.flush(this);return this};
Dw.prototype.execute=function(G,e){return e>0||this.closed?TD.prototype.execute.call(this,G,e):this._execute(G,e)};
Dw.prototype.requestAsyncId=function(G,e,r){r=r===void 0?0:r;return r!=null&&r>0||r==null&&this.delay>0?TD.prototype.requestAsyncId.call(this,G,e,r):G.flush(this)};var trW=function(){qf3.apply(this,arguments)};
_.K(trW,qf3);var BPS=new trW(Dw);var g5n=function(){this.performanceMonitor=new XwE;this.queue=new K_w;this.internalSymbol=Symbol();this.debugNames=new MrW};
g5n.prototype.getOnBackgrounded=function(){return uL};
_.iY.Object.defineProperties(g5n.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var Eg=function(G,e){e=Error.call(this,e?G+": "+e:String(G));this.message=e.message;"stack"in e&&(this.stack=e.stack);this.code=G;this.__proto__=Eg.prototype;this.name=String(G)};
_.K(Eg,Error);var nN=function(G){Eg.call(this,1E3,'sfr:"'+G+'"');this.measurementStrategyFailureReason=G;this.__proto__=nN.prototype};
_.K(nN,Eg);var md=function(){Eg.call(this,1003);this.__proto__=md.prototype};
_.K(md,Eg);var iE=function(){Eg.call(this,1009);this.__proto__=iE.prototype};
_.K(iE,Eg);var lfw=function(){Eg.call(this,1011);this.__proto__=lfw.prototype};
_.K(lfw,Eg);var R1c=function(){Eg.call(this,1007);this.__proto__=md.prototype};
_.K(R1c,Eg);var pN=function(G){Eg.call(this,1004,String(G));this.inputObservableIndex=G;this.__proto__=pN.prototype};
_.K(pN,Eg);var PxS=function(G){Eg.call(this,1010,G);this.__proto__=UM_.prototype};
_.K(PxS,Eg);var UM_=function(G){Eg.call(this,1005,G);this.__proto__=UM_.prototype};
_.K(UM_,Eg);var jLv=function(G){var e=_.Bw.apply(1,arguments),r=this;this.orderedFactories=[];this.orderedFactories.push(G);e.forEach(function(Z){r.orderedFactories.push(Z)})};
jLv.prototype.isSupported=function(G){return this.orderedFactories.some(function(e){return e.isSupported(G)})};
jLv.prototype.makeBeacon=function(G,e){for(var r=0;r<this.orderedFactories.length;r++)if(this.orderedFactories[r].isSupported(e))return this.orderedFactories[r].makeBeacon(G,e);throw new iE;};var uQN=Symbol("ia"),afP=Symbol("ja"),ze=function(G,e){this.value=G;this.timeline=e},Uf=function(G,e){if(e.timeline!==G.timeline)throw new R1c;
return G.value-e.value};
_.V=ze.prototype;_.V.equals=function(G){return Uf(this,G)===0};
_.V.maximum=function(G){if(G.timeline!==this.timeline)throw new R1c;return this.value>=G.value?this:G};
_.V.round=function(){return new ze(Math.round(this.value),this.timeline)};
_.V.add=function(G){return new ze(this.value+G,this.timeline)};
_.V.toString=function(){return String(this.value)};var bE=function(G,e){this.context=G;this.JSC$9205_pinger=e};
bE.prototype.isSupported=function(G){return this.JSC$9205_pinger.isSupported(G)};
bE.prototype.makeBeacon=function(G,e){if(!this.isSupported(e))throw new iE;return new vo(this.context,this.JSC$9205_pinger,e!=null?e:void 0,G)};
var vo=function(G,e,r,Z){var O=this;this.JSC$9211_pinger=e;this.properties=r;this.url=Z;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var M;this.method=(M=r==null?void 0:r.beaconMethod)!=null?M:"GET";this.backgroundedSubscription=G.getOnBackgrounded().subscribe(function(){O.sendNow()})};
vo.prototype.deactivate=function(){this.internalIsPending=!1};
vo.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9211_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var G,e;this.JSC$9211_pinger.pingWithHeadersAndBody((G=this.properties)!=null?G:{},this.customHeaders,(e=this.body)!=null?e:"",this.url)}else this.JSC$9211_pinger.ping(this.url);this.internalIsPending=!1}catch(r){}else this.internalIsPending=!1};
vo.prototype.setHeader=function(G,e){this.customHeaders.set(G,e)};
_.iY.Object.defineProperties(vo.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var KYy=function(){for(var G=_.h(_.Bw.apply(0,arguments)),e=G.next();!e.done;e=G.next())if(e=e.value,e.available()){this.timeProvider=e;return}this.timeProvider=new XL3};
_.V=KYy.prototype;_.V.available=function(){return this.timeProvider.available()};
_.V.now=function(){return this.timeProvider.now()};
_.V.setTimeout=function(G,e){return this.timeProvider.setTimeout(G,e)};
_.V.clearTimeout=function(G){this.timeProvider.clearTimeout(G)};
_.V.interval=function(G,e){var r=this.intervalObservable(G).subscribe(e);return function(){return void r.unsubscribe()}};
_.V.intervalObservable=function(G){return this.timeProvider.intervalObservable(G)};
_.iY.Object.defineProperties(KYy.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var XL3=function(){this.timeline=Symbol()};
_.V=XL3.prototype;_.V.available=function(){return!1};
_.V.now=function(){return new ze(0,this.timeline)};
_.V.setTimeout=function(){return 0};
_.V.clearTimeout=function(){};
_.V.interval=function(){return function(){}};
_.V.intervalObservable=function(){return uL};var wc=function(G,e){this.intrinsicFunctionNamespace=G;this.performanceMonitor=e};
_.V=wc.prototype;_.V.setTimeout=function(G,e){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,G),e)};
_.V.clearTimeout=function(G){this.intrinsicFunctionNamespace.clearTimeout(G)};
_.V.interval=function(G,e){var r=this.intervalObservable(G).subscribe(e);return function(){return void r.unsubscribe()}};
_.V.intervalObservable=function(G){var e=this;return new t6(function(r){var Z=0,O=e.intrinsicFunctionNamespace.setInterval(function(){r.next(Z++)},G);
return function(){e.intrinsicFunctionNamespace.clearInterval(O)}})};
_.V.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var ffE=function(G,e){wc.call(this,G,e);this.timeline=afP};
_.K(ffE,wc);ffE.prototype.now=function(){return new ze(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
ffE.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&wc.prototype.available.call(this)};var key=function(G,e){wc.call(this,G,e);this.timeline=uQN};
_.K(key,wc);key.prototype.now=function(){return new ze(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
key.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&wc.prototype.available.call(this)};var dgl=function(G){this.context=G;if(Hm3===void 0)a:{var e,r,Z=(e=G.global)==null?void 0:(r=e.document)==null?void 0:r.createElement("meta");if(Z)try{Z.httpEquiv="origin-trial";Z.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";G.global.document.head.append(Z);Hm3=Z;break a}catch(O){}Hm3=void 0}},
Hm3;
dgl.prototype.isSupported=function(G){return RG$(this.context)!==void 0&&!(G==null||!G.endOfSession)&&!$S(this.context)&&!(G==null?0:G.attributionEnabled)&&!(G==null?0:G.customHeaders)&&!(G==null?0:G.customBody)};
dgl.prototype.makeBeacon=function(G,e){if(!this.isSupported(e))throw new iE;return new S_(this.context,G,e)};
var S_=function(G,e,r){this.context=G;this.properties=r;this.JSC$9238_urlWithoutToken=e;var Z;this.beaconMethod=(Z=r==null?void 0:r.beaconMethod)!=null?Z:"GET";G=RG$(this.context);if(G===void 0)throw Error();this.fetchLater=G;o5l(this,sLC(this))},o5l=function(G,e){G.beaconResult&&G.beaconResult.activated||(G.beaconAbort=new AbortController,G.beaconResult=G.fetchLater(e,{method:G.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:G.beaconAbort.signal,activateAfter:96E4}))},sLC=function(G){G=G.JSC$9238_urlWithoutToken;
return(G.slice(-1)[0]==="&"?G:G+"&")+"flapi=1"};
S_.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
S_.prototype.sendNow=function(){};
S_.prototype.setHeader=function(){};
_.iY.Object.defineProperties(S_.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9238_urlWithoutToken},
set:function(G){this.JSC$9238_urlWithoutToken=G;G=sLC(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);o5l(this,G)}},
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 QLS=function(G){this.context=G};
QLS.prototype.isSupported=function(){return!$S(this.context)&&!!this.context.global.fetch};
QLS.prototype.ping=function(){var G=this;return x5.apply(null,_.mY(_.Bw.apply(0,arguments).map(function(e){return RL(G.context.global.fetch(e,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(nm(function(r){return r.status===200}))}))).pipe(HNA(function(e){return e}),ofS())};
QLS.prototype.pingWithHeadersAndBody=function(G,e,r){for(var Z=_.Bw.apply(3,arguments),O=this,M=new Headers,T=_.h(e.entries()),E=T.next();!E.done;E=T.next()){var b=_.h(E.value);E=b.next().value;b=b.next().value;M.set(E,b)}var w,q=(w=G.keepAlive)!=null?w:!1;x5.apply(null,_.mY(Z.map(function(t){return RL(O.context.global.fetch(t,Object.assign({},{method:String(G.beaconMethod),cache:"no-cache"},q?{keepalive:!0}:{},{mode:"no-cors",headers:M,body:r}))).pipe(nm(function(g){return g.status===200}))}))).pipe(HNA(function(t){return t}),
ofS())};var IfE,msA,pLv;_.qu=function(){};
_.uF=function(G){return G};
IfE=function(G){var e=e||0;return function(){return G.apply(this,Array.prototype.slice.call(arguments,0,e))}};
_.tD=function(G){var e=!1,r;return function(){e||(r=G(),e=!0);return r}};
_.lE=function(G,e){var r=0;return function(Z){_.O_.clearTimeout(r);var O=arguments;r=_.O_.setTimeout(function(){G.apply(void 0,O)},e)}};
msA=function(G,e){var r=0,Z=!1,O=[],M=function(){r=0;Z&&(Z=!1,T())},T=function(){r=_.O_.setTimeout(M,e);
var E=O;O=[];G.apply(void 0,E)};
return function(E){O=arguments;r?Z=!0:T()}};
pLv=function(G,e){var r=0,Z=function(){r=0};
return function(O){r||(r=_.O_.setTimeout(Z,e),G.apply(void 0,arguments))}};var uaE=function(){return lF&&j$?j$.mobile:!C7E()&&(ay("iPod")||ay("iPhone")||ay("Android")||ay("IEMobile"))},C7E=function(){return lF&&j$?!j$.mobile&&(ay("iPad")||ay("Android")||ay("Silk")):ay("iPad")||ay("Android")&&!ay("Mobile")||ay("Silk")};var Ri=function(G,e,r,Z,O){this.allowedElements=G;this.elementPolicies=e;this.allowedGlobalAttributes=r;this.globalAttributePolicies=Z;this.globallyAllowedAttributePrefixes=O},n5v=function(G,e,r){r=G.elementPolicies.get(r);
return(r==null?0:r.has(e))?r.get(e):G.allowedGlobalAttributes.has(e)?{policyAction:1}:(r=G.globalAttributePolicies.get(e))?r:G.globallyAllowedAttributePrefixes&&[].concat(_.mY(G.globallyAllowedAttributePrefixes)).some(function(Z){return e.indexOf(Z)===0})?{policyAction:1}:{policyAction:0}};var mgn="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(" "),
c6c=[["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}]])]],YfS="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(" "),
y6c=[["dir",{policyAction:3,conditions:Hw(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:Hw(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:Hw(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:Hw(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],A6v=new Ri(new Set(mgn),new Map(c6c),new Set(YfS),new Map(y6c)),FYW=new Ri(new Set(mgn.concat(["BUTTON",
"INPUT"])),new Map(c6c),new Set(Hw(function(){return YfS.concat(["class","id","name"])})),new Map(Hw(function(){return y6c.concat([["style",
{policyAction:1}]])})));var J6j,BP3,P7l;J6j=function(G,e,r,Z,O){this.JSC$9295_sanitizerTable=G;this.styleElementSanitizer=e;this.styleAttributeSanitizer=r;this.JSC$9295_resourceUrlPolicy=Z;this.JSC$9295_navigationUrlPolicy=O;this.changes=[]};
_.xgc=function(G,e){var r=document.implementation.createHTMLDocument("");G=BP3(G,e,r);r=r.body;r.appendChild(G);r=(new XMLSerializer).serializeToString(r);r=r.slice(r.indexOf(">")+1,r.lastIndexOf("</"));return zq(r)};
BP3=function(G,e,r){e=YwU(e,r);e=document.createTreeWalker(e,5,function(E){if(E.nodeType===3)E=1;else if(Ax$(E))if(E=yxN(E),E===null)E=2;else{var b=G.JSC$9295_sanitizerTable;E=E!=="FORM"&&(b.allowedElements.has(E)||b.elementPolicies.has(E))?1:2}else E=2;return E});
for(var Z=e.nextNode(),O=r.createDocumentFragment(),M=O;Z!==null;){var T=void 0;if(Z.nodeType===3)G.styleElementSanitizer&&M.nodeName==="STYLE"?(Z=G.styleElementSanitizer(Z.data),T=G.createTextNode(Z)):T=G.createTextNode(Z.data);else if(Ax$(Z))T=P7l(G,Z,r);else throw Error("Z");M.appendChild(T);if(Z=e.firstChild())M=T;else for(;!(Z=e.nextSibling())&&(Z=e.parentNode());)M=M.parentNode}return O};
J6j.prototype.createTextNode=function(G){return document.createTextNode(G)};
P7l=function(G,e,r){var Z,O=yxN(e);r=r.createElement(O);e=e.attributes;for(var M=_.h(e),T=M.next();!T.done;T=M.next()){var E=T.value;T=E.name;E=E.value;var b=n5v(G.JSC$9295_sanitizerTable,T,O);a:{if(Z=b.conditions){Z=_.h(Z);for(var w=Z.next();!w.done;w=Z.next()){var q=_.h(w.value);w=q.next().value;q=q.next().value;var t=void 0;if((w=(t=e.getNamedItem(w))==null?void 0:t.value)&&!q.has(w)){Z=!1;break a}}}Z=!0}if(Z)switch(b.policyAction){case 1:Sz(r,T,E);break;case 2:throw Error();case 3:Sz(r,T,E.toLowerCase());
break;case 4:G.styleAttributeSanitizer?(E=G.styleAttributeSanitizer(E),Sz(r,T,E)):Sz(r,T,E);break;case 5:G.JSC$9295_resourceUrlPolicy?(b={type:2,attributeName:T,elementName:O},E=cxa(E),(E=G.JSC$9295_resourceUrlPolicy(E,b))&&Sz(r,T,E.toString())):Sz(r,T,E);break;case 6:if(G.JSC$9295_resourceUrlPolicy){b={type:2,attributeName:T,elementName:O};Z=[];E=_.h(E.split(","));for(w=E.next();!w.done;w=E.next())q=_.h(w.value.trim().split(/\s+/,2)),w=q.next().value,q=q.next().value,Z.push({url:w,descriptor:q});
E={parts:[]};Z=_.h(Z);for(w=Z.next();!w.done;w=Z.next())w=w.value,q=cxa(w.url),(q=G.JSC$9295_resourceUrlPolicy(q,b))&&E.parts.push({url:q.toString(),descriptor:w.descriptor});Sz(r,T,FdA(E))}else Sz(r,T,E);break;case 7:b=E;if(G.JSC$9295_navigationUrlPolicy){b={type:2,attributeName:T,elementName:O};E=cxa(E);E=G.JSC$9295_navigationUrlPolicy(E,b);if(E===null)break;b=E.toString()}E=b;b=_.Dgy(E);b=b!==void 0&&UZW.indexOf(b.toLowerCase())!==-1?E:"about:invalid#zClosurez";Sz(r,T,b)}}return r};
_.Ugw=Hw(function(){return new J6j(A6v)});
_.z1P=Hw(function(){return new J6j(FYW)});var WYn=function(){this.calledBuild=!1;this.JSC$9307_sanitizerTable=A6v},NPw=function(){WYn.apply(this,arguments)};
_.K(NPw,WYn);NPw.prototype.build=function(){if(this.calledBuild)throw Error("la");this.calledBuild=!0;return new J6j(this.JSC$9307_sanitizerTable,void 0,void 0,this.JSC$9307_resourceUrlPolicy,this.JSC$9307_navigationUrlPolicy)};var LYw=/[^#]*/;var Id4={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"},GVW=_.tD(function(){return CLU()}),
rxw=function(){var G=eGy("IFRAME"),e={};
_.rR(GVW(),function(r){G.sandbox&&G.sandbox.supports&&G.sandbox.supports(r)&&(e[r]=!0)});
return e},eGy=function(G,e){e=e===void 0?document:e;
return e.createElement(String(G).toLowerCase())};var j_;_.j0=function(G,e,r){return Math.min(Math.max(G,e),r)};
j_=function(G,e,r){return G+r*(e-G)};_.yB=function(G,e){this.x=G!==void 0?G:0;this.y=e!==void 0?e:0};
_.V=_.yB.prototype;_.V.clone=function(){return new _.yB(this.x,this.y)};
_.V.equals=function(G){return G instanceof _.yB&&(this==G?!0:this&&G?this.x==G.x&&this.y==G.y:!1)};
_.V.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.V.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.V.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.V.translate=function(G,e){G instanceof _.yB?(this.x+=G.x,this.y+=G.y):(this.x+=Number(G),typeof e==="number"&&(this.y+=e));return this};
_.V.scale=function(G,e){this.x*=G;this.y*=typeof e==="number"?e:G;return this};_.kf=function(G,e){this.width=G;this.height=e};
_.V=_.kf.prototype;_.V.clone=function(){return new _.kf(this.width,this.height)};
_.V.area=function(){return this.width*this.height};
_.V.aspectRatio=function(){return this.width/this.height};
_.V.isEmpty=function(){return!this.area()};
_.V.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.V.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.V.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.V.scale=function(G,e){this.width*=G;this.height*=typeof e==="number"?e:G;return this};var ZNE;_.c2={};ZNE="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.c2.add=function(G,e,r){if(G!==null&&e in G)throw Error("na`"+e);G[e]=r};
_.c2.clear=function(G){for(var e in G)delete G[e]};
_.c2.clone=function(G){var e={},r;for(r in G)e[r]=G[r];return e};
_.c2.contains=function(G,e){return UKF(G,e)};
_.c2.containsKey=function(G,e){return G!==null&&e in G};
_.c2.containsValue=UKF;_.c2.create=NSa;_.c2.createImmutableView=function(G){var e=G;Object.isFrozen&&!Object.isFrozen(G)&&(e=Object.create(G),Object.freeze(e));return e};
_.c2.createSet=LdF;_.c2.equals=function(G,e){for(var r in G)if(!(r in e)||G[r]!==e[r])return!1;for(var Z in e)if(!(Z in G))return!1;return!0};
_.c2.every=function(G,e,r){for(var Z in G)if(!e.call(r,G[Z],Z,G))return!1;return!0};
_.c2.extend=function(G,e){for(var r,Z,O=1;O<arguments.length;O++){Z=arguments[O];for(r in Z)G[r]=Z[r];for(var M=0;M<ZNE.length;M++)r=ZNE[M],Object.prototype.hasOwnProperty.call(Z,r)&&(G[r]=Z[r])}};
_.c2.filter=function(G,e,r){var Z={},O;for(O in G)e.call(r,G[O],O,G)&&(Z[O]=G[O]);return Z};
_.c2.findKey=zGA;_.c2.findValue=function(G,e,r){return(e=zGA(G,e,r))&&G[e]};
_.c2.forEach=function(G,e,r){for(var Z in G)e.call(r,G[Z],Z,G)};
_.c2.get=function(G,e,r){return G!==null&&e in G?G[e]:r};
_.c2.getAllPropertyNames=function(G,e,r){if(!G)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return PLs(G);for(var Z={};G&&(G!==Object.prototype||e)&&(G!==Function.prototype||r);){for(var O=Object.getOwnPropertyNames(G),M=0;M<O.length;M++)Z[O[M]]=!0;G=Object.getPrototypeOf(G)}return PLs(Z)};
_.c2.getAnyKey=function(G){for(var e in G)return e};
_.c2.getAnyValue=function(G){for(var e in G)return G[e]};
_.c2.getCount=function(G){var e=0,r;for(r in G)e++;return e};
_.c2.getKeys=PLs;_.c2.getSuperClass=function(G){return(G=Object.getPrototypeOf(G.prototype))&&G.constructor};
_.c2.getValueByKeys=function(G,e){var r=_.FN(e),Z=r?e:arguments;for(r=r?0:1;r<Z.length;r++){if(G==null)return;G=G[Z[r]]}return G};
_.c2.getValues=function(G){var e=[],r=0,Z;for(Z in G)e[r++]=G[Z];return e};
_.c2.isEmpty=function(G){for(var e in G)return!1;return!0};
_.c2.isImmutableView=function(G){return!!Object.isFrozen&&Object.isFrozen(G)};
_.c2.map=function(G,e,r){var Z={},O;for(O in G)Z[O]=e.call(r,G[O],O,G);return Z};
_.c2.remove=function(G,e){var r;(r=e in G)&&delete G[e];return r};
_.c2.set=function(G,e,r){G[e]=r};
_.c2.setIfUndefined=function(G,e,r){return e in G?G[e]:G[e]=r};
_.c2.setWithReturnValueIfNotSet=function(G,e,r){if(e in G)return G[e];r=r();return G[e]=r};
_.c2.some=function(G,e,r){for(var Z in G)if(e.call(r,G[Z],Z,G))return!0;return!1};
_.c2.transpose=function(G){var e={},r;for(r in G)e[G[r]]=r;return e};
_.c2.unsafeClone=Wdi;var Bg=function(G,e){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=G===Bpf&&e||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=ONE};
Bg.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var MzS=function(G){return G instanceof Bg&&G.constructor===Bg&&G.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===ONE?G.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},ONE={},Bpf={};
new Bg(Bpf,"");var sw,oF,Xk,Vz3,DKv,TSl,Ax,iNy,vfP,bNE,Ho,w2w,RGE,ldC,gfc,jPW,adb,X2j,Kdw,Eha,fdC,HNc,dKC,kVn,ai;sw=function(G){return G?new ai(_.F$(G)):wAW||(wAW=new ai)};
_.B5=function(G,e){return typeof e==="string"?G.getElementById(e):e};
oF=function(G,e){return(e||document).getElementsByTagName(String(G))};
_.hGl=function(G){return Vz3("yt-formatted-string","paper-input-input",G)};
Xk=function(G,e,r,Z){G=Z||G;return(e=e&&e!="*"?String(e).toUpperCase():"")||r?G.querySelectorAll(e+(r?"."+r:"")):G.getElementsByTagName("*")};
Vz3=function(G,e,r){var Z=document,O=G&&G!="*"?String(G).toUpperCase():"";return O||e?(r||Z).querySelector(O+(e?"."+e:"")):Xk(Z,G,e,r)[0]||null};
DKv=function(G,e){_.c2.forEach(e,function(r,Z){Z=="style"?G.style.cssText=r:Z=="class"?G.className=r:Z=="for"?G.htmlFor=r:TSl.hasOwnProperty(Z)?G.setAttribute(TSl[Z],r):_.Vp(Z,"aria-")||_.Vp(Z,"data-")?G.setAttribute(Z,r):G[Z]=r})};
TSl={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"};_.dS=function(G){G=(G||window).document;G=G.compatMode=="CSS1Compat"?G.documentElement:G.body;return new _.kf(G.clientWidth,G.clientHeight)};
_.Efl=function(G){var e=_.Kl(G);G=G.defaultView;return new _.yB((G==null?void 0:G.pageXOffset)||e.scrollLeft,(G==null?void 0:G.pageYOffset)||e.scrollTop)};
_.Kl=function(G){return G.scrollingElement?G.scrollingElement:_.NS||G.compatMode!="CSS1Compat"?G.body||G.documentElement:G.documentElement};
Ax=function(G){return G?G.defaultView:window};
_.fl=function(G,e,r){return iNy(document,arguments)};
iNy=function(G,e){var r=e[1],Z=bNE(G,String(e[0]));r&&(typeof r==="string"?Z.className=r:Array.isArray(r)?Z.className=r.join(" "):DKv(Z,r));e.length>2&&vfP(G,Z,e,2);return Z};
vfP=function(G,e,r,Z){function O(E){E&&e.appendChild(typeof E==="string"?G.createTextNode(E):E)}
for(;Z<r.length;Z++){var M=r[Z];if(!_.FN(M)||_.PA(M)&&M.nodeType>0)O(M);else{a:{if(M&&typeof M.length=="number"){if(_.PA(M)){var T=typeof M.item=="function"||typeof M.item=="string";break a}if(typeof M==="function"){T=typeof M.item=="function";break a}}T=!1}_.rR(T?_.Ai(M):M,O)}}};
_.Hp=function(G){return bNE(document,G)};
bNE=function(G,e){e=String(e);G.contentType==="application/xhtml+xml"&&(e=e.toLowerCase());return G.createElement(e)};
_.kS=function(){return document.createTextNode("\n")};
Ho=function(G){if(G.nodeType!=1)return!1;switch(G.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};
w2w=function(G,e){vfP(_.F$(G),G,arguments,1)};
_.dc=function(G){for(var e;e=G.firstChild;)G.removeChild(e)};
_.oi=function(G,e){e.parentNode&&e.parentNode.insertBefore(G,e)};
_.sg=function(G,e){e.parentNode&&e.parentNode.insertBefore(G,e.nextSibling)};
_.d1=function(G){return G&&G.parentNode?G.parentNode.removeChild(G):null};
_.$Kw=function(G,e){var r=e.parentNode;r&&r.replaceChild(G,e)};
_.Swn=function(G){var e,r=G.parentNode;if(r&&r.nodeType!=11)if(G.removeNode)G.removeNode(!1);else{for(;e=G.firstChild;)r.insertBefore(e,G);_.d1(G)}};
_.QS=function(G){return G.children!=void 0?G.children:Array.prototype.filter.call(G.childNodes,function(e){return e.nodeType==1})};
_.tzP=function(G){return G.nextElementSibling!==void 0?G.nextElementSibling:_.qwP(G.nextSibling,!0)};
_.qwP=function(G,e){for(;G&&G.nodeType!=1;)G=e?G.nextSibling:G.previousSibling;return G};
_.Vx=function(G){return _.PA(G)&&G.nodeType==1};
_.zX=function(G,e){if(!G||!e)return!1;if(G.contains&&e.nodeType==1)return G==e||G.contains(e);if(typeof G.compareDocumentPosition!="undefined")return G==e||!!(G.compareDocumentPosition(e)&16);for(;e&&G!=e;)e=e.parentNode;return e==G};
RGE=function(G,e){if(G==e)return 0;if(G.compareDocumentPosition)return G.compareDocumentPosition(e)&2?1:-1;if("sourceIndex"in G||G.parentNode&&"sourceIndex"in G.parentNode){var r=G.nodeType==1,Z=e.nodeType==1;if(r&&Z)return G.sourceIndex-e.sourceIndex;var O=G.parentNode,M=e.parentNode;return O==M?gfc(G,e):!r&&_.zX(O,e)?-1*ldC(G,e):!Z&&_.zX(M,G)?ldC(e,G):(r?G.sourceIndex:O.sourceIndex)-(Z?e.sourceIndex:M.sourceIndex)}Z=_.F$(G);r=Z.createRange();r.selectNode(G);r.collapse(!0);G=Z.createRange();G.selectNode(e);
G.collapse(!0);return r.compareBoundaryPoints(_.O_.Range.START_TO_END,G)};
ldC=function(G,e){var r=G.parentNode;if(r==e)return-1;for(;e.parentNode!=r;)e=e.parentNode;return gfc(e,G)};
gfc=function(G,e){for(;e=e.previousSibling;)if(e==G)return-1;return 1};
jPW=function(G){var e,r=arguments.length;if(!r)return null;if(r==1)return arguments[0];var Z=[],O=Infinity;for(e=0;e<r;e++){for(var M=[],T=arguments[e];T;)M.unshift(T),T=T.parentNode;Z.push(M);O=Math.min(O,M.length)}M=null;for(e=0;e<O;e++){T=Z[0][e];for(var E=1;E<r;E++)if(T!=Z[E][e])return M;M=T}return M};
_.F$=function(G){return G.nodeType==9?G:G.ownerDocument||G.document};
adb=function(G){return G.contentDocument||G.contentWindow.document};
_.Ii=function(G,e){if("textContent"in G)G.textContent=e;else if(G.nodeType==3)G.data=String(e);else if(G.firstChild&&G.firstChild.nodeType==3){for(;G.lastChild!=G.firstChild;)G.removeChild(G.lastChild);G.firstChild.data=String(e)}else _.dc(G),G.appendChild(_.F$(G).createTextNode(String(e)))};
X2j={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};Kdw={IMG:" ",BR:"\n"};Eha=function(G){var e;G.tagName=="A"&&G.hasAttribute("href")||G.tagName=="INPUT"||G.tagName=="TEXTAREA"||G.tagName=="SELECT"||G.tagName=="BUTTON"?e=!G.disabled&&(!G.hasAttribute("tabindex")||fdC(G)):e=G.hasAttribute("tabindex")&&fdC(G);return e};
fdC=function(G){G=G.tabIndex;return typeof G==="number"&&G>=0&&G<32768};
HNc=function(G){var e=[];kVn(G,e,!0);G=e.join("");G=G.replace(/ \xAD /g," ").replace(/\xAD/g,"");G=G.replace(/\u200B/g,"");G=G.replace(/ +/g," ");G!=" "&&(G=G.replace(/^\s*/,""));return G};
dKC=function(G){var e=[];kVn(G,e,!1);return e.join("")};
kVn=function(G,e,r){if(!(G.nodeName in X2j))if(G.nodeType==3)r?e.push(String(G.nodeValue).replace(/(\r\n|\r|\n)/g,"")):e.push(G.nodeValue);else if(G.nodeName in Kdw)e.push(Kdw[G.nodeName]);else for(G=G.firstChild;G;)kVn(G,e,r),G=G.nextSibling};
_.of3=function(G,e,r){if(!e&&!r)return null;var Z=e?String(e).toUpperCase():null;return _.B2(G,function(O){return(!Z||O.nodeName==Z)&&(!r||typeof O.className==="string"&&_.Y4(O.className.split(/\s+/),r))},!0)};
_.B2=function(G,e,r){G&&!r&&(G=G.parentNode);for(r=0;G;){if(e(G))return G;G=G.parentNode;r++}return null};
ai=function(G){this.JSC$9335_document_=G||_.O_.document||document};
_.V=ai.prototype;_.V.getElement=function(G){return _.B5(this.JSC$9335_document_,G)};
_.V.$=ai.prototype.getElement;_.V.getElementsByTagName=function(G,e){return(e||this.JSC$9335_document_).getElementsByTagName(String(G))};
_.V.getElementsByTagNameAndClass=function(G,e,r){return Xk(this.JSC$9335_document_,G,e,r)};
_.V.$$=ai.prototype.getElementsByTagNameAndClass;_.V.setProperties=DKv;_.V.JSC$9337_createDom=function(G,e,r){return iNy(this.JSC$9335_document_,arguments)};
_.V.createElement=function(G){return bNE(this.JSC$9335_document_,G)};
_.V.createTextNode=function(G){return this.JSC$9335_document_.createTextNode(String(G))};
_.V.getWindow=function(){return this.JSC$9335_document_.defaultView};
var oP=function(G){return _.Efl(G.JSC$9335_document_)};
_.V=ai.prototype;_.V.appendChild=function(G,e){G.appendChild(e)};
_.V.append=w2w;_.V.canHaveChildren=Ho;_.V.removeNode=_.d1;_.V.getChildren=_.QS;_.V.contains=_.zX;_.V.isFocusable=Eha;_.V=gS.prototype;_.V.getWidth=function(){return this.right-this.left};
_.V.getHeight=function(){return this.bottom-this.top};
_.V.clone=function(){return new gS(this.top,this.right,this.bottom,this.left)};
_.V.contains=function(G){return this&&G?G instanceof gS?G.left>=this.left&&G.right<=this.right&&G.top>=this.top&&G.bottom<=this.bottom:G.x>=this.left&&G.x<=this.right&&G.y>=this.top&&G.y<=this.bottom:!1};
_.V.expand=function(G,e,r,Z){_.PA(G)?(this.top-=G.top,this.right+=G.right,this.bottom+=G.bottom,this.left-=G.left):(this.top-=G,this.right+=Number(e),this.bottom+=Number(r),this.left-=Number(Z));return this};
_.V.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};
_.V.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};
_.V.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};
_.V.translate=function(G,e){G instanceof _.yB?(this.left+=G.x,this.right+=G.x,this.top+=G.y,this.bottom+=G.y):(this.left+=G,this.right+=G,typeof e==="number"&&(this.top+=e,this.bottom+=e));return this};
_.V.scale=function(G,e){e=typeof e==="number"?e:G;this.left*=G;this.right*=G;this.top*=e;this.bottom*=e;return this};var pl=function(G,e,r,Z){this.left=G;this.top=e;this.width=r;this.height=Z};
_.V=pl.prototype;_.V.clone=function(){return new pl(this.left,this.top,this.width,this.height)};
_.V.boundingRect=function(G){var e=Math.max(this.left+this.width,G.left+G.width),r=Math.max(this.top+this.height,G.top+G.height);this.left=Math.min(this.left,G.left);this.top=Math.min(this.top,G.top);this.width=e-this.left;this.height=r-this.top};
_.V.contains=function(G){return G instanceof _.yB?G.x>=this.left&&G.x<=this.left+this.width&&G.y>=this.top&&G.y<=this.top+this.height:this.left<=G.left&&this.left+this.width>=G.left+G.width&&this.top<=G.top&&this.top+this.height>=G.top+G.height};
_.V.distance=function(G){var e=G.x<this.left?this.left-G.x:Math.max(G.x-(this.left+this.width),0);G=G.y<this.top?this.top-G.y:Math.max(G.y-(this.top+this.height),0);return Math.sqrt(e*e+G*G)};
_.V.getSize=function(){return new _.kf(this.width,this.height)};
_.V.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};
_.V.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};
_.V.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};
_.V.translate=function(G,e){G instanceof _.yB?(this.left+=G.x,this.top+=G.y):(this.left+=G,typeof e==="number"&&(this.top+=e));return this};
_.V.scale=function(G,e){e=typeof e==="number"?e:G;this.left*=G;this.width*=G;this.top*=e;this.height*=e;return this};var QP3,nl,XOS,uE,u$j,CLW,nfy,$uN,mKE,YwW;_.Cl=function(G,e,r){if(typeof e==="string")(e=_.sPw(G,e))&&(G.style[e]=r);else for(var Z in e){r=G;var O=e[Z],M=_.sPw(r,Z);M&&(r.style[M]=O)}};
QP3={};_.sPw=function(G,e){var r=QP3[e];if(!r){var Z=_.OW(e);r=Z;G.style[Z]===void 0&&(Z=(_.NS?"Webkit":_.Wz?"Moz":null)+Omw(Z),G.style[Z]!==void 0&&(r=Z));QP3[e]=r}return r};
_.We=function(G,e){var r=_.F$(G);return r.defaultView&&r.defaultView.getComputedStyle&&(G=r.defaultView.getComputedStyle(G,null))?G[e]||G.getPropertyValue(e)||"":""};
_.UQ=function(G,e){return _.We(G,e)||(G.currentStyle?G.currentStyle[e]:null)||G.style&&G.style[e]};
_.Idw=function(G){return _.UQ(G,"position")};
nl=function(G,e,r){if(e instanceof _.yB){var Z=e.x;e=e.y}else Z=e,e=r;G.style.left=uE(Z,!1);G.style.top=uE(e,!1)};
XOS=function(G){try{return G.getBoundingClientRect()}catch(e){return{left:0,top:0,right:0,bottom:0}}};
_.Jx=function(G){var e=_.F$(G),r=new _.yB(0,0);if(G==(e?_.F$(e):document).documentElement)return r;G=XOS(G);e=oP(sw(e));r.x=G.left+e.x;r.y=G.top+e.y;return r};
_.p2v=function(G,e,r){if(e instanceof _.kf)r=e.height,e=e.width;else if(r==void 0)throw Error("oa");G.style.width=uE(e,!0);G.style.height=uE(r,!0)};
uE=function(G,e){typeof G=="number"&&(G=(e?Math.round(G):G)+"px");return G};
u$j=function(G){return CLW(G)};
CLW=function(G){var e=nfy;if(_.UQ(G,"display")!="none")return e(G);var r=G.style,Z=r.display,O=r.visibility,M=r.position;r.visibility="hidden";r.position="absolute";r.display="inline";G=e(G);r.display=Z;r.position=M;r.visibility=O;return G};
nfy=function(G){var e=G.offsetWidth,r=G.offsetHeight,Z=_.NS&&!e&&!r;return(e===void 0||Z)&&G.getBoundingClientRect?(G=XOS(G),new _.kf(G.right-G.left,G.bottom-G.top)):new _.kf(e,r)};
$uN=function(G){var e=_.Jx(G);G=CLW(G);return new pl(e.x,e.y,G.width,G.height)};
mKE=function(G,e){G=G.style;"opacity"in G?G.opacity=e:"MozOpacity"in G?G.MozOpacity=e:"filter"in G&&(G.filter=e===""?"":"alpha(opacity="+Number(e)*100+")")};
_.Z2=function(G,e){G.style.display=e?"":"none"};
_.cxE=function(G){return"rtl"==_.UQ(G,"direction")};
YwW=function(G){var e=_.We(G,"marginLeft"),r=_.We(G,"marginRight"),Z=_.We(G,"marginTop");G=_.We(G,"marginBottom");return new gS(parseFloat(Z),parseFloat(r),parseFloat(G),parseFloat(e))};
_.yxn=function(G){var e=_.We(G,"borderLeftWidth"),r=_.We(G,"borderRightWidth"),Z=_.We(G,"borderTopWidth");G=_.We(G,"borderBottomWidth");return new gS(parseFloat(Z),parseFloat(r),parseFloat(G),parseFloat(e))};var mZ=function(G){this.context=G};
mZ.prototype.isSupported=function(G){return(G==null?0:G.attributionEnabled)||(G==null?void 0:G.beaconMethod)==="POST"||(G==null?0:G.customHeaders)||(G==null?0:G.customBody)||(G==null?0:G.keepAlive)?!1:!$S(this.context)};
mZ.prototype.ping=function(){var G=this;return sf(_.Bw.apply(0,arguments).map(function(e){try{var r=G.context.global,Z=!1;Z=Z===void 0?!1:Z;r.google_image_requests||(r.google_image_requests=[]);var O=eGy("IMG",r.document);Z&&(O.attributionSrc="");O.src=e;r.google_image_requests.push(O);return!0}catch(M){return!1}}).every(function(e){return e}))};
mZ.prototype.pingWithHeadersAndBody=function(G,e,r){this.ping.apply(this,_.mY(_.Bw.apply(3,arguments)))};var AxE=function(G){this.context=G};
AxE.prototype.isSupported=function(G){return Fdc&&!$S(this.context)&&GX$(this.context)!==void 0&&!(G==null?0:G.attributionEnabled)&&(G==null?void 0:G.beaconMethod)!=="POST"&&!(G==null?0:G.customHeaders)&&!(G==null?0:G.customBody)};
AxE.prototype.makeBeacon=function(G,e){if(!this.isSupported(e))throw new iE;return new co(this.context,G)};
var Fdc=!1,co=function(G,e){this.context=G;this.JSC$9356_urlWithoutToken=e;G=GX$(this.context);if(G===void 0)throw Error();this.wrappedBeacon=new G(JxC(this),{})},JxC=function(G){G=G.JSC$9356_urlWithoutToken;
return(G.slice(-1)[0]==="&"?G:G+"&")+"pbapi=1"};
co.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
co.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
co.prototype.setHeader=function(){};
_.iY.Object.defineProperties(co.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9356_urlWithoutToken},
set:function(G){this.JSC$9356_urlWithoutToken=G;this.wrappedBeacon.setURL(JxC(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(G){if(G!=="GET")throw new iE;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var BSb=function(G){this.context=G};
BSb.prototype.isSupported=function(G){if((G==null?0:G.attributionEnabled)||(G==null?void 0:G.beaconMethod)==="GET"||(G==null?0:G.customHeaders)||(G==null?0:G.customBody)||(G==null?0:G.keepAlive))return!1;var e;return!$S(this.context)&&((e=this.context.global.navigator)==null?void 0:e.sendBeacon)!==void 0};
BSb.prototype.ping=function(){var G=this;return sf(_.Bw.apply(0,arguments).map(function(e){var r;return(r=G.context.global.navigator)==null?void 0:r.sendBeacon(e)}).every(function(e){return e}))};
BSb.prototype.pingWithHeadersAndBody=function(G,e,r){this.ping.apply(this,_.mY(_.Bw.apply(3,arguments)))};var KN=function(G){this.value=G},OQ=function(G,e){return sf(G.value).pipe(aP(e))},VT=new KN(!1),ut4=new KN(!0);var xf=function(G){this.value=G;this.releasedSubject=new RP};
xf.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.iY.Object.defineProperties(xf.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9369_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var vWq=["FRAME","IMG","IFRAME"],h$S=/^[01](px)?$/,bBF=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},iBS=function(){var G=new bBF;
G.crossDomainLoadedDefault=!0;G.pendingImagesBlockLoad=!0;return G};var xKb=function(G,e){var r=lDF(G);if(r)if(r.onCreativeLoad)r.onCreativeLoad(e);else{var Z=e?[e]:[],O=function(M){for(var T=0;T<Z.length;++T)try{Z[T](1,M)}catch(E){}Z={push:function(E){E(1,M)}}};
r.onCreativeLoad=function(M){Z.push(M)};
r.setAttribute("data-creative-load-listener","");r.addEventListener("creativeLoad",function(M){O(M.detail)});
_.O_.addEventListener("message",function(M){gWf(r,O,M)})}};var YS=function(G,e){var r=this;this.global=G;this.parentContext=e;this.JSC$9380_onVisibilityChange=this.document?x5(sf(!0),Fa(this.document,"visibilitychange")).pipe(WL(this.parentContext.performanceMonitor,748),nm(function(){return r.getVisibilityState()}),rS()):sf("visible");
this.document?Fa(this.document,"DOMContentLoaded").pipe(WL(this.parentContext.performanceMonitor,739),ez(1)):sf(MKp("DOMContentLoaded"))},C6$=function(G){return G.document!==null&&G.document.visibilityState!==void 0};
YS.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
YS.prototype.querySelector=function(G){return this.document?this.document.querySelector(G):null};
YS.prototype.querySelectorAll=function(G){return this.document?_.Ai(this.document.querySelectorAll(G)):[]};
YS.prototype.elementFromPoint=function(G,e){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;G=this.document.elementFromPoint(G,e);return G===null?null:new xf(G)};
var XXN=function(G,e,r){r=r===void 0?!1:r;if(e.ref===void 0||!G.document)return sf(e).pipe(WL(G.parentContext.performanceMonitor,749));var Z=new VB(1),O=function(){Z.next(e)};
r||xKb(e.ref,O);wpq(e.ref,O);return Z.pipe(WL(G.parentContext.performanceMonitor,749),ez(1))};
_.iY.Object.defineProperties(YS.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return u$s(this.global,"document")?this.global.document||null:null}}});var R$y=_.Cp(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),jFa=_.Cp(["./reach_worklet.js"]),aD$=_.Cp(["./reach_worklet.js"]),PLj=_.Cp(["./reach_worklet.html"]),UKy=_.Cp(["./reach_worklet.js"]),zGc=_.Cp(["./reach_worklet.js"]);_.qK(PLj);_.qK(UKy);_.qK(zGc);var LN={left:0,top:0,width:0,height:0};var WdS,NSE,Ldy,GXE,DW,rAC,ZBv,OBE,Yts,yks,h$3,T1c;WdS=function(G,e,r,Z,O,M,T){var E="";G&&(E+=G+":");r&&(E+="//",e&&(E+=e+"@"),E+=r,Z&&(E+=":"+Z));O&&(E+=O);M&&(E+="?"+M);T&&(E+="#"+T);return E};
NSE=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.hd=function(G){return G.match(NSE)};
_.$U=function(G,e){return G?e?decodeURI(G):decodeURIComponent(G):G};
Ldy=function(G){G=_.hd(G)[1]||null;!G&&_.O_.self&&_.O_.self.location&&(G=_.O_.self.location.protocol.slice(0,-1));return G?G.toLowerCase():""};
_.TG=function(G){return _.$U(_.hd(G)[3]||null,!0)};
_.Kr=function(G){return _.$U(_.hd(G)[5]||null,!0)};
_.q$4=function(G){var e=G.indexOf("#");return e<0?null:G.slice(e+1)};
GXE=function(G){G=_.hd(G);return WdS(G[1],G[2],G[3],G[4])};
_.e$y=function(G){G=_.hd(G);return WdS(G[1],null,G[3],G[4])};
_.sW=function(G){G=_.hd(G);return WdS(null,null,null,null,G[5],G[6],G[7])};
_.ci=function(G){var e=G.indexOf("#");return e<0?G:G.slice(0,e)};
DW=function(G,e){G=_.hd(G);e=_.hd(e);return G[3]==e[3]&&G[1]==e[1]&&G[4]==e[4]};
rAC=function(G,e){if(G){G=G.split("&");for(var r=0;r<G.length;r++){var Z=G[r].indexOf("="),O=null;if(Z>=0){var M=G[r].substring(0,Z);O=G[r].substring(Z+1)}else M=G[r];e(M,O?iq(O):"")}}};
ZBv=function(G){var e=G.indexOf("#");e<0&&(e=G.length);var r=G.indexOf("?");if(r<0||r>e){r=e;var Z=""}else Z=G.substring(r+1,e);return[G.slice(0,r),Z,G.slice(e)]};
OBE=function(G,e){return e?G?G+"&"+e:e:G};
_.MKv=function(G,e){if(!e)return G;G=ZBv(G);G[1]=OBE(G[1],e);return G[0]+(G[1]?"?"+G[1]:"")+G[2]};
_.VKj=function(G,e,r){if(Array.isArray(e))for(var Z=0;Z<e.length;Z++)_.VKj(G,String(e[Z]),r);else e!=null&&r.push(G+(e===""?"":"="+_.em(e)))};
_.k1=function(G){var e=[],r;for(r in G)_.VKj(r,G[r],e);return e.join("&")};
_.Vi=function(G,e){e=_.k1(e);return _.MKv(G,e)};
_.yS=function(G,e,r){r=r!=null?"="+_.em(r):"";return _.MKv(G,e+r)};
Yts=function(G,e,r,Z){for(var O=r.length;(e=G.indexOf(r,e))>=0&&e<Z;){var M=G.charCodeAt(e-1);if(M==38||M==63)if(M=G.charCodeAt(e+O),!M||M==61||M==38||M==35)return e;e+=O+1}return-1};
yks=/#|$/;_.Wp=function(G,e){var r=G.search(yks),Z=Yts(G,0,e,r);if(Z<0)return null;var O=G.indexOf("&",Z);if(O<0||O>r)O=r;Z+=e.length+1;return iq(G.slice(Z,O!==-1?O:0))};
h$3=/[?&]($|#)/;_.y5=function(G,e){for(var r=G.search(yks),Z=0,O,M=[];(O=Yts(G,Z,e,r))>=0;)M.push(G.substring(Z,O)),Z=Math.min(G.indexOf("&",O)+1||r,r);M.push(G.slice(Z));return M.join("").replace(h$3,"$1")};
_.Pg=function(G,e,r){return _.yS(_.y5(G,e),e,r)};
T1c=function(G){var e=ZBv(window.location.href),r=e[1],Z=[];r&&r.split("&").forEach(function(O){var M=O.indexOf("=");M=M>=0?O.slice(0,M):O;G.hasOwnProperty(M)||Z.push(O)});
e[1]=OBE(Z.join("&"),_.k1(G));return e[0]+(e[1]?"?"+e[1]:"")+e[2]};var FlF=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(FlF,_.Tq);var AAS=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(AAS,_.Tq);var uxy=function(G,e){return _.QB(G,2,e)},yAq=function(G,e){return _.QB(G,3,e)};
AAS.prototype.getModel=function(){return _.gU(this,4)};
var mMi=function(G,e){return _.QB(G,4,e)},Cxa=function(G,e){return _.QB(G,5,e)},YQp=function(G,e){return _.QB(G,9,e)},ppS=function(G,e){return bg(G,10,e)},IDN=function(G,e){return _.qM(G,11,e)},nW4=function(G,e){return _.QB(G,1,e)},cA$=function(G,e){return _.qM(G,7,e)};var sFa="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var MM=function(G,e,r,Z){G=G===void 0?window:G;e=e===void 0?null:e;r=r===void 0?new XwE:r;Z=Z===void 0?XpN():Z;g5n.call(this);var O=this;this.global=G;this.debugChannel=e;this.performanceMonitor=r;this.onPageHide=VzS(function(){return Fa(O.global,"pagehide")}).pipe(WL(this.performanceMonitor,941));
this.onLoad=VzS(function(){return Fa(O.global,"load")}).pipe(WL(this.performanceMonitor,738),ez(1));
this.onResize=VzS(function(){return Fa(O.global,"resize")}).pipe(WL(this.performanceMonitor,741));
this.onMessage=VzS(function(){return Fa(O.global,"message")}).pipe(WL(this.performanceMonitor,740));
this.document=new YS(this.global,this);this.timeProvider=new KYy(new key(this.intrinsicFunctionNamespace,this.performanceMonitor),new ffE(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new jLv(new dgl(this),new AxE(this),new bE(this,new QLS(this)),new bE(this,new BSb(this)),new bE(this,new mZ(this)))};
_.K(MM,g5n);MM.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(G){return G}};
var $S=function(G){var e=G.global;return!!G.global.HTMLFencedFrameElement&&!!e.fence&&typeof e.fence.reportEvent==="function"};
_.V=MM.prototype;_.V.reportFencedFrameEvent=function(G){$S(this)&&this.global.fence.reportEvent(G)};
_.V.getOnBackgrounded=function(){return this.onPageHide.pipe(WL(this.performanceMonitor,942),aP(this.queue),nm(function(){}))};
_.V.postMessage=function(G,e,r){r=r===void 0?[]:r;this.global.postMessage(G,e,r)};
_.V.getWidth=function(){return nfF(this.global)?this.global.width:0};
_.V.getHeight=function(){return nfF(this.global)?this.global.height:0};
_.V.isMobile=function(){return C7E()||uaE()};
var P2=function(G,e){try{var r=HB_(e,G.global,G.isMobile());return{left:r.left,top:r.top,width:r.getWidth(),height:r.getHeight()}}catch(Z){return LN}};
MM.prototype.validate=function(){var G=this.beaconFactory.isSupported()||$S(this);return this.global&&this.timeProvider.available()&&G};
var rAS=function(G){return(G=B14(G.global))?RL(G):null};
_.iY.Object.defineProperties(MM.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(G){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(G){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!nfF(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}}});_.DMj=!_.zx&&!_.t$S();var nZN=function(G){return G};var cHp=function(G){return G.pipe(PL(function(e){var r=e.endOfSessionReason;var Z;return((Z=e.viewable)==null?void 0:Z.extrapolateToNow().value)||r!=void 0}),ez(1),Lm())};var Ll4=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},Gyf=function(G){var e=G.sequenceNumber.toString(10).padStart(2,"0");
e=""+G.startTime+e;G.sequenceNumber<99&&G.sequenceNumber++;return e};var pXs=qg(bL(function(G){return G.endOfSessionReason===void 0}),nm(function(G){return Object.assign({},G,{timestamps:CN(G)})}),PL(function(G){var e=G.viewable;
G=G.timestamps;var r;return(r=e==null?void 0:e.extrapolateUsingTimestampMap(G).value)!=null?r:!1}),nm(function(G){var e=G.beaconFactory;
var r=G.timestampedExposureHistory;var Z=G.timeOnScreen;var O=G.binaryContext;G=G.timestamps;if(e===void 0||r===void 0||Z===void 0||O===void 0)return!1;if(Z.extrapolateUsingTimestampMap(G).value.every(function(M){return M>=0}))return!0;
r=r.map(function(M){return M.timestamp+":"+M.value}).join(",");
Z=et4({bin:O,tos:Z},G);e.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+Z+("&eh="+r)).sendNow();return!0}),bL(function(G){return!G}),Lm());var ZoN=function(G){return{id:G.pingId,mcvt:G.maxConsecutiveViewTime,p:G.creativePosition,asp:G.adSpeedPosition,tm:G.totalMeasurementTime,tu:G.totalUnviewedTime,mtos:G.maxTimeOnScreen,tos:G.timeOnScreen,v:G.binaryVersion,bin:G.binaryContext,avms:G.measurementStrategy,bs:G.browserSize,mc:G.maximumExposure,"if":G.crossDomainIframeState,vu:G.delayedImpressionJsState,app:G.inApp,mse:G.mraidError,mtop:G.mraidSituation,itpl:G.injectedTemplateId,adk:G.adKey,exk:G.awbidKey,rs:G.requestSource,la:G.isLargeAd,
cr:G.isContentRecommendationAd,uach:G.userAgentClientHints,vs:G.viewState,r:G.reasonCode,pay:G.hasCpmavUrl,co:G.clientPingOrderCounter,rst:G.adRenderStartTime,rpt:G.adRenderPeriodTime,isd:G.initialScrollDepth,lsd:G.loadedScrollDepth,context:G.errorContext,msg:G.errorMessage,stack:G.errorStack,name:G.errorName,ec:G.hasElementChanged,sfr:G.strategyFailureReasons,met:G.creativeSearchResult,wmsd:G.webMeasurementStartDiagnostic,pv:G.pageVisible,epv:G.eosPageVisible,pbe:G.inStatefulBeaconExperiment,fle:G.inFetchLaterBeaconExperiment,
vae:G.inViewableAttributionExperiment,spb:G.supportsPendingBeacon,sfl:G.supportsFetchLater,ffslot:G.isFencedFrameSlotTurtlex,reach:G.sharedStorageReachMode,io2:G.v2VisibilityBitVector,rxdbg:G.rxDebugger,omida:G.omidAppId,omidp:G.omidPartner,omidpv:G.omidPartnerVersion,omidor:G.omidOcclusionReasons,omidv:G.omidVersion,omids:G.omidSessionType,omidam:G.omidAccessMode,omidct:G.omidCreativeType,omidia:G.omidInApp,omiddc:G.omidDeviceCategory,omidlat:G.omidLastActivity,omiddit:G.omidDeviceIdleTime,qid:G.errorEscapedQueryId}};var m0a=function(G){var e=[];return G.pipe(nm(function(r){var Z=r.beaconFactory,O=r.fetchBeaconFactory,M=r.timeOnScreen,T=r.timeOnScreenUrlPrefixes,E=r.payloadMapper,b=r.timeOnScreenPingId,w=r.timeOnScreenReason,q=r.urlSerializer,t=r.viewable,g=r.hasImpressionFired,l=r.inStatefulBeaconExperiment,X=r.supportsPendingBeacon,H=r.supportsFetchLater,I=r.turtlexReportEventData;if(!r.geometryMeasurable||!g||r.maxTimeOnScreen===void 0||M===void 0||T===void 0||E===void 0||b===void 0||q===void 0||Z===void 0)return!1;
if(r.isTurtlex){if(w===void 0)return!1;T=r.reportFencedFrameEvent;if(!T)return!1;T({eventType:"active-view-time-on-screen",eventData:I!=null?I:"",destination:["buyer"]});return!0}if(!(l||H||w))return!1;I=CN(r);var C;t=(C=t==null?void 0:t.extrapolateUsingTimestampMap(I).value)!=null?C:!1;C=q(Object.assign({},r,{pingId:b,viewState:t?4:3,reasonCode:w!=null?w:"u",payloadMapper:E,urlPrefixes:T}),I);if(l){for(;e.length>T.length;)r=void 0,(r=e.shift())==null||r.deactivate();C.forEach(function(P,F){F>=e.length?
e.push(Z.makeBeacon(P)):e[F].url=P});
return X&&O&&w!==void 0?(C.forEach(function(P){O.makeBeacon(P).sendNow()}),!0):w!==void 0}if(X&&O&&w!==void 0)return C.forEach(function(P){O.makeBeacon(P).sendNow()}),!0;
if(H&&O){for(;e.length>T.length;)X=void 0,(X=e.shift())==null||X.deactivate();var u=q(Object.assign({},r,{pingId:b,viewState:t?4:3,reasonCode:w!=null?w:"u",payloadMapper:E,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),I)[0];C.forEach(function(P,F){F>=e.length?e.push(Z.makeBeacon(u,{endOfSession:!0})):e[F].url=u});
return w!==void 0?(C.forEach(function(P){O.makeBeacon(P).sendNow()}),!0):w!==void 0}return w!==void 0?(C.forEach(function(P){Z.makeBeacon(P).sendNow()}),!0):!1}),bL(function(r){return!r}),Lm())};var Y9S=qg(PL(function(G){return G.immediateUrlPrefixes!==void 0&&G.payloadMapper!==void 0&&G.urlSerializer!==void 0&&G.inferredPingId!==void 0&&G.beaconFactory!==void 0}),PL(function(G){return ioa(G)!==null}),DIq(function(G){return G.activeViewUnmeasurableEvent},function(G){return G.emit}),nm(function(G){if(G.isTurtlex){var e=G.reportFencedFrameEvent;
if(e){var r;e({eventType:"active-view-unmeasurable",eventData:(r=G.turtlexReportEventData)!=null?r:"",destination:["buyer"]})}}else{r=void 0;var Z=ioa(G);if(Z==="x"){var O,M=(O=G.geometricMeasurementErrors)!=null?O:G.contextValidationErrors;M&&(e=M.stack,r=M.message)}G.urlSerializer(Object.assign({},G,{urlPrefixes:G.immediateUrlPrefixes,payloadMapper:G.payloadMapper,pingId:G.inferredPingId,viewState:2,reasonCode:Z,errorMessage:r,errorStack:e}),CN(G)).forEach(function(T){G.beaconFactory.makeBeacon(T).sendNow()})}}),
ez(1),Lm());var boN=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var IYi=qg(PL(function(G){return G.payloadMapper!==void 0&&G.immediateUrlPrefixes!==void 0&&G.urlSerializer!==void 0&&G.inferredPingId!==void 0&&G.beaconFactory!==void 0}),nm(function(G){return Object.assign({},G,{timestamps:CN(G)})}),PL(function(G){var e=G.viewable;
var r=G.hasImpressionFired;G=G.timestamps;var Z;return!!r&&((Z=e==null?void 0:e.extrapolateUsingTimestampMap(G).value)!=null?Z:!1)}),DIq(function(G){return G.activeViewViewableEvent},function(G){return G.emit}),nm(function(G){var e=G.beaconFactory,r=G.turtlexReportEventData;
if(G.isTurtlex){var Z=G.reportFencedFrameEvent;if(!Z)return!1;Z({eventType:"active-view-viewable",eventData:r!=null?r:"",destination:["buyer"]});return!0}r=G.urlSerializer(Object.assign({},G,{urlPrefixes:G.immediateUrlPrefixes,payloadMapper:G.payloadMapper,pingId:G.inferredPingId,viewState:4,reasonCode:"v"}),G.timestamps);(Z=G.cpmavUrls)&&Z.length>0&&G.viewUrlSerializer&&G.viewUrlSerializer(Z,G).forEach(function(O){e.makeBeacon(O).sendNow()});
(Z=G.viewableRelayUrls)&&Z.length>0&&G.viewUrlSerializer&&G.viewUrlSerializer(Z,G).forEach(function(O){e.makeBeacon(O).sendNow()});
r.forEach(function(O){e.makeBeacon(O,{attributionEnabled:G.isViewableAttributionEnabled}).sendNow()});
return!0}),bL(function(G){return!G}),Lm());var ZzU=nm(function(G){return[G.value.topWindowViewportExternalGeometry.width,G.value.topWindowViewportExternalGeometry.height]});var W2=function(G,e){this.callback=G;this.options=e;this.intersectionObserverV2=this.intersectionObserverV1=null},mIS=function(G,e){e?G.intersectionObserverV2||(e=Object.assign({},G.options,{delay:100,
trackVisibility:!0}),G.intersectionObserverV2=new IntersectionObserver(G.callback,e)):G.intersectionObserverV1||(G.intersectionObserverV1=new IntersectionObserver(G.callback,G.options))},EWc=function(G,e){G=e?G.intersectionObserverV2:G.intersectionObserverV1;
if(!G)throw new lfw;return G};
W2.prototype.observe=function(G,e){EWc(this,G).observe(e)};
W2.prototype.unobserve=function(G,e){EWc(this,G).unobserve(e)};
W2.prototype.disconnect=function(G){EWc(this,G).disconnect()};
W2.prototype.takeRecords=function(G){return EWc(this,G).takeRecords()};var f2p={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:LN,topWindowViewportExternalGeometry:LN,measurementRequests:new RP,elementGeometrySourceName:"ns",elementGeometry:LN,intersectionGeometry:LN,viewportLocalAppOffset:{x:0,y:0}};var Bwy=GX(qg(nm(function(G){var e;return(e=G.exposureOverride)!=null?e:YMF(G)}),nm(function(G){return isFinite(G)?G:0}))),LVN=GX(qg(nm(function(G){var e;
return(e=G.exposureOverride)!=null?e:YMF(G)}),nm(function(G){return isFinite(G)?G:-1})));var AD=function(G,e){this.a=G;this.b=e;if(G.clock.timeline!==e.clock.timeline)throw Error();};
AD.prototype.equivalentTo=function(G){return G instanceof AD?this.a.equivalentTo(G.a)&&this.b.equivalentTo(G.b):!1};
AD.prototype.extrapolateToTime=function(G){var e=this.a.extrapolateToTime(G).value,r=this.b.extrapolateToTime(G).value;return{timestamp:G,value:[e,r]}};
_.iY.Object.defineProperties(AD.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.a.active||this.b.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.a.clock}},
lastMeasurement:{configurable:!0,enumerable:!0,get:function(){var G=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),e=this.a.lastMeasurement.timestamp.equals(G)?this.a.lastMeasurement.value:this.a.extrapolateToTime(G).value,r=this.b.lastMeasurement.timestamp.equals(G)?this.b.lastMeasurement.value:this.b.extrapolateToTime(G).value;return{timestamp:G,value:[e,r]}}}});var Fk=function(G,e){this.input=G;this.mapFunction=e;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
Fk.prototype.equivalentTo=function(G){return G instanceof Fk?this.input.equivalentTo(G.input)&&this.mapFunction===G.mapFunction:!1};
Fk.prototype.extrapolateToTime=function(G){G=this.input.extrapolateToTime(G);return{timestamp:G.timestamp,value:this.mapFunction(G.value)}};
_.iY.Object.defineProperties(Fk.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var JD=function(){};
JD.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
JD.prototype.extrapolateUsingTimestampMap=function(G){var e=this.clock.timeline,r,Z=(r=G.get(e))!=null?r:this.clock.now();G.set(e,Z);return this.extrapolateToTime(Z)};
JD.prototype.map=function(G){return new iB3(this,G)};
JD.prototype.joinWith=function(G){return new bBy(this,G)};
var bBy=function(){AD.apply(this,arguments);this.map=JD.prototype.map;this.joinWith=JD.prototype.joinWith;this.extrapolateToNow=JD.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=JD.prototype.extrapolateUsingTimestampMap};
_.K(bBy,AD);var iB3=function(){Fk.apply(this,arguments);this.map=JD.prototype.map;this.joinWith=JD.prototype.joinWith;this.extrapolateToNow=JD.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=JD.prototype.extrapolateUsingTimestampMap};
_.K(iB3,Fk);var r1=function(G,e){this.lastMeasurement=e;this.extrapolateToNow=JD.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=JD.prototype.extrapolateUsingTimestampMap;this.map=JD.prototype.map;this.joinWith=JD.prototype.joinWith;this.clock=G};
r1.prototype.equivalentTo=function(G){return G.active};
r1.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.iY.Object.defineProperties(r1.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var rHi=nm(function(G){if(G.value.viewportGeometrySourceName==="omid"){if(G.value.elementGeometrySourceName==="nio")return"omio";if(G.value.elementGeometrySourceName==="geo")return"omgeo"}return G.value.elementGeometrySourceName==="geo"||G.value.elementGeometrySourceName==="nio"?G.value.viewportGeometrySourceName:G.value.elementGeometrySourceName});var ABS=qg(PL(function(G){return!isNaN(G)}),Dd(function(G,e){return isNaN(G)?e:Math.min(G,e)},NaN),rS());var xIA=GX(qg(nm(function(G){return G.intersectionGeometry.width*G.intersectionGeometry.height/(G.exposedViewportLocalGeometry.width*G.exposedViewportLocalGeometry.height)}),nm(function(G){return isFinite(G)?Math.min(1,G):0})));var eNf=qg(GX(nm(function(G){G=G.exposureOverride?G.elementGeometry.width*G.elementGeometry.height*G.exposureOverride/(G.topWindowViewportExternalGeometry.width*G.topWindowViewportExternalGeometry.height):G.intersectionGeometry.width*G.intersectionGeometry.height/(G.topWindowViewportExternalGeometry.width*G.topWindowViewportExternalGeometry.height);return isFinite(G)?G:0})));var V1$=function(G,e){var r=this;this.timeProvider=G;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=e.pipe(rS()).subscribe(function(Z){Txf(r);r.measurementRequestObserver=Z})},D0s=function(G,e){Txf(G);
G.lastMeasurementRequest=G.timeProvider.setTimeout(function(){var r;return void((r=G.measurementRequestObserver)==null?void 0:r.next())},e)},Txf=function(G){G.lastMeasurementRequest!==null&&G.timeProvider.clearTimeout(G.lastMeasurementRequest);
G.lastMeasurementRequest=null};
V1$.prototype.dispose=function(){Txf(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var vWb=function(){};var oZN=function(G,e){this.context=G;this.strategies=e};
_.K(oZN,vWb);oZN.prototype.buildGeometrySource=function(G,e){var r=this.strategies.map(function(M){return M.buildGeometrySource(G,e)}),Z=wXa(r.map(function(M){return M.geometrySource})),O=Z.capturedErrors.pipe(wpb());
return{geometrySource:Z.chain.pipe(aP(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:O,strategyErrors:Z.capturedErrors}].concat(_.mY(r.map(function(M){return M.additionalOutputs}))))}};
var wpb=function(){return Dd(function(G,e){e instanceof nN?G.push(e.measurementStrategyFailureReason):G.push(-1);return G},[])};var Qoa=function(G,e){this.context=G;this.poller=e};
_.K(Qoa,vWb);Qoa.prototype.buildGeometrySource=function(G,e){var r=$0S(q9q(this.context,this.poller),ky$(this.context,e.requestSource));return{geometrySource:vZa(G.measurableCreative.pipe(r),e.inApp),additionalOutputs:{}}};var soS=function(G,e,r){r=r===void 0?I2A(G,e):r;this.context=G;this.intersectionObserverStrategy=r};
_.K(soS,vWb);soS.prototype.buildGeometrySource=function(G,e){var r=this.intersectionObserverStrategy(e.useV2);return{geometrySource:vZa(G.measurableCreative.pipe(r,pOU(this.context)),e.inApp),additionalOutputs:{}}};var $MC=function(G,e,r){var Z=Z===void 0?Symbol():Z;this.element=G;this.immediateUrls=e;this.timeOnScreenUrls=r;this.symbol=Z};var M1S=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),joi=Object.freeze([1,.75,M1S.exposureThreshold,M1S.largeAdExposureThreshold,0]);var yRq=function(G,e){e=e===void 0?36E5:e;var r=r===void 0?!0:r;this.creatives=new RP;this.elementsToUnregister=new RP;this.elementMap=new Map;var Z=new MM(window,null);Z.beaconFactory=new bE(Z,new mZ(Z));d0S(Z,this.creatives,this.elementsToUnregister,G,e,r).subscribe()},JRq=function(G,e,r,Z){if(!G.elementMap.has(e)){var O=new xf(e);
G.elementMap.set(e,O);G.creatives.next(new $MC(O,r,Z))}},Fqa=function(G,e){G.elementsToUnregister.next(e);
var r=G.elementMap.get(e);r!==void 0&&(r.release(),G.elementMap.delete(e))};var css=function(G){var e=G.url;G=G.uaDataValues;this.JSC$9485_url_=e;this.uaDataValues_=G;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var r=/[?&]([^&=]+)=([^&]*)/g;G=r.exec(e);)this.urlParamValues_[G[1]]=G[2]},Ymy=function(G){G=G.uaDataValues_;
if(!G)return"";var e=hA("uap",G.platform)+hA("uapv",G.platformVersion)+hA("uafv",G.uaFullVersion)+hA("uaa",G.architecture)+hA("uam",G.model)+hA("uab",G.bitness);G.fullVersionList&&(e+="&uafvl="+encodeURIComponent(G.fullVersionList.map(function(r){return encodeURIComponent(r.brand)+";"+encodeURIComponent(r.version)}).join("|")));
G.wow64!=null&&(e+="&uaw="+Number(G.wow64));return e.slice(1)};var SQE=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(SQE,_.Tq);SQE.prototype.getId=function(){return _.gU(this,1)};var Bo=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(Bo,_.Tq);Bo.prototype.getSeconds=function(){return q_(this,1)};
Bo.prototype.setSeconds=function(G){return _.eZ(this,1,wW(G),"0")};_.ln=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(_.ln,_.Tq);_.ln.prototype.getSeconds=function(){return q_(this,1)};
_.ln.prototype.setSeconds=function(G){return _.eZ(this,1,wW(G),"0")};
_.qQv=function(G){var e=Number(R$(G,1));G=_.vp(G,2);return new Date(e*1E3+G/1E6)};var xS=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(xS,_.Tq);xS.prototype.getUrl=function(){return _.gU(this,1)};
xS.prototype.setUrl=function(G){return _.sz(this,1,G)};
xS.prototype.getHeight=function(){return _.vp(this,2)};
xS.prototype.getWidth=function(){return _.vp(this,3)};var Po=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(Po,_.Tq);Po.prototype.getAspectRatio=function(){return t3(this,1)};
Po.prototype.getDuration=function(){return _.SS(this,Bo,2)};var tKE=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(tKE,_.Tq);var gWP=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(gWP,_.Tq);var lDy=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(lDy,_.Tq);var R$W=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(R$W,_.Tq);var jFE=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(jFE,_.Tq);var aDE=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(aDE,_.Tq);var Xpn=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(Xpn,_.Tq);var KlS=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(KlS,_.Tq);var fDl=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(fDl,_.Tq);var Ug=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(Ug,_.Tq);var zD=[2,4,5,6,7];var kXc=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(kXc,_.Tq);var vs=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(vs,_.Tq);_.V=vs.prototype;_.V.getId=function(){return _.SS(this,SQE,1)};
_.V.getName=function(){return _.gU(this,2)};
_.V.setDescription=function(G){return _.sz(this,3,G)};
_.V.getUrl=function(){return _.gU(this,8)};
_.V.setUrl=function(G){return _.sz(this,8,G)};
var Wo=function(G){return _.ix(G,xS,10,_.bx())};
vs.prototype.getOwner=function(G){var e=_.WY(this,40,_.Xo,3,!0);LSq(e,G);return e[G]};
var Nu=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(Nu,_.Tq);_.Ll=[0,C2,$BS];_.Gi=[0,C2,$BS];var HBl=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(HBl,_.Tq);var e7=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(e7,_.Tq);e7.prototype.getStatus=function(){return _.lg(this,1)};
e7.prototype.setStatus=function(G){return _.K2(this,1,G)};
e7.prototype.removeItem=function(G){return K3E(this,2,G)};var dMP=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(dMP,_.Tq);dMP.prototype.getName=function(){return _.gU(this,8)};var rT=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(rT,_.Tq);rT.prototype.getCommand=function(){return _.lg(this,1)};
rT.prototype.getSource=function(){return _.SS(this,dMP,2)};
rT.prototype.setVisible=function(G){return _.$y(this,5,G)};
rT.prototype.removeItem=function(G){return K3E(this,7,G)};var oWw=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(oWw,_.Tq);oWw.prototype.getCommand=function(){return _.lg(this,1)};
oWw.prototype.removeItem=function(G){return K3E(this,4,G)};
var sFE=_.a2(oWw);var ZS=function(G,e,r){r=r===void 0?Error():r;var Z=Error.call(this);this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.code=G;e+=":";r instanceof Error?(this.message=e+r.message,this.stack=r.stack||""):(this.message=e+String(r),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.K(ZS,Error);_.pB=function(){this.JSC$9543_disposed_=this.JSC$9543_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.pB.prototype.JSC$9543_disposed_=!1;_.pB.prototype.isDisposed=function(){return this.JSC$9543_disposed_};
_.pB.prototype.dispose=function(){this.JSC$9543_disposed_||(this.JSC$9543_disposed_=!0,this.disposeInternal())};
_.pB.prototype[Symbol.dispose]=function(){this.dispose()};
_.Xx=function(G,e){G.addOnDisposeCallback(_.VU(_.TX,e))};
_.pB.prototype.addOnDisposeCallback=function(G,e){this.JSC$9543_disposed_?e!==void 0?G.call(e):G():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),e&&(G=G.bind(e)),this.onDisposeCallbacks_.push(G))};
_.pB.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var OS=function(G){_.pB.call(this);this.wpc=G};
_.K(OS,_.pB);OS.prototype.gFY=function(){return this.wpc.f()};
OS.prototype.f85=function(G){return this.wpc.c(G)};
OS.prototype.r9=function(G){return this.wpc.m(Bx$(G))};
OS.prototype.tOv=function(G){return this.wpc.mws(Bx$(G))};
var EQ=function(G){_.pB.call(this);var e=this;this.vm=G;this.oBe="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.xI4=void 0;this.uwM=this.vm.p;this.xMv=this.puw.bind(this);this.addOnDisposeCallback(function(){return void QFl(e)})};
_.K(EQ,_.pB);var IDn=function(G){var e;return _.D(function(r){if(r.nextAddress==1){if(!G.vm.wpc)throw new ZS(30,"NWA");return G.j7w?r.return(G.j7w):r.yield(G.vm.wpc(),2)}e=r.yieldResult;G.j7w=new OS(e);return r.return(G.j7w)})};
EQ.prototype.snapshot=function(G){return this.vm.s(Object.assign({},G.j0&&{c:G.j0},G.xwg&&{s:G.xwg},G.wXI!==void 0&&{p:G.wXI}))};
EQ.prototype.puw=function(G){this.vm.e(G)};
EQ.prototype.b70=function(G,e){return this.vm.c(G,e,!1)};
var QFl=function(G){G.xI4!==void 0&&(G.oBe.forEach(function(e){var r;(r=G.xI4)==null||r.removeEventListener(e,G.xMv)}),G.xI4=void 0)};
EQ.prototype.b6v=function(){return this.vm.l()};var MQ=function(){_.pB.apply(this,arguments);this.xdV=1};
_.K(MQ,_.pB);MQ.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.xdV++;return this};
MQ.prototype.dispose=function(){--this.xdV||_.pB.prototype.dispose.call(this)};var pp3=function(G){this.xnB=G;G.addNewEventMetric("/client_streamz/bg/frs",_.SK("mk"))};
pp3.prototype.record=function(G,e){this.xnB.record("/client_streamz/bg/frs",G,e)};
var CxE=function(G){this.as2=G;G.addNewEventMetric("/client_streamz/bg/wrl",_.SK("mn"),$W("ac"),$W("sc"),_.SK("rk"),_.SK("mk"))};
CxE.prototype.record=function(G,e,r,Z,O,M){this.as2.record("/client_streamz/bg/wrl",G,e,r,Z,O,M)};
var uxW=function(G){this.mnV=G;G.addNewCounter("/client_streamz/bg/ec",_.SK("en"),_.SK("mk"))};
uxW.prototype.increment=function(G,e){this.mnV.JSC$9796_incrementCounter("/client_streamz/bg/ec",G,e)};
var nWw=function(G){this.cej=G;G.addNewEventMetric("/client_streamz/bg/el",_.SK("en"),_.SK("mk"))};
nWw.prototype.record=function(G,e,r){this.cej.record("/client_streamz/bg/el",G,e,r)};
var mMS=function(G){this.bQU=G;G.addNewCounter("/client_streamz/bg/cec",$W("ec"),_.SK("mk"))};
mMS.prototype.increment=function(G,e){this.bQU.JSC$9796_incrementCounter("/client_streamz/bg/cec",G,e)};
var cAE=function(G){this.nsj=G;G.addNewCounter("/client_streamz/bg/po/csc",$W("cs"),_.SK("mk"))};
cAE.prototype.increment=function(G,e){this.nsj.JSC$9796_incrementCounter("/client_streamz/bg/po/csc",G,e)};
var YQv=function(G){this.sCV=G;G.addNewCounter("/client_streamz/bg/po/ctav",_.SK("av"),_.SK("mk"))};
YQv.prototype.increment=function(G,e){this.sCV.JSC$9796_incrementCounter("/client_streamz/bg/po/ctav",G,e)};
var yAb=function(G){this.gAU=G;G.addNewCounter("/client_streamz/bg/po/cwsc",_.SK("su"),_.SK("mk"))};
yAb.prototype.increment=function(G,e){this.gAU.JSC$9796_incrementCounter("/client_streamz/bg/po/cwsc",G,e)};var lWf=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(lWf,_.Tq);var g1q=function(G,e){return _.Gq(G,3,e,lbS)};var AA3=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(AA3,_.Tq);var Fly=[1,2,3];var JAl=[0,Fly,_.FC,SVb,gCS];var B1w=[0,_.J3,[0,I$,_.p2]];var xME=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(xME,_.Tq);var Px3=[1,2,3];var UMl=[0,Px3,vC3,TWw,_.Bs,B1w];var z$3=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(z$3,_.Tq);var WlP=[0,_.J3,JAl,UMl];var N1C=[0,_.Yj];var Llw=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(Llw,_.Tq);var GyP=[0,_.Yj,-1,_.mK];var etw=[0,_.Yj,-1,_.n2,_.mK];var rBj=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(rBj,_.Tq);var Zon=[1,2,3];var OoW=[0,Zon,_.Bs,GyP,_.Bs,etw,_.Bs,N1C];var MOW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(MOW,_.Tq);MOW.prototype.JSC$9616_serializeBinary=Bzi([0,_.Yj,OoW,llj,_.J3,WlP,qVc,_.taW]);var VOj=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(VOj,_.Tq);var DIb=function(G){var e=new MOW;e=_.QB(e,1,G.JSC$9732_metricName);var r=htS(G);e=_.Gq(e,3,r,_.R8);r=[];for(var Z=[],O=_.h(G.cellMap.keys()),M=O.next();!M.done;M=O.next())Z.push(M.value.split(","));for(O=0;O<Z.length;O++){M=Z[O];for(var T=G.cellType,E=G.getCells(M)||[],b=[],w=0;w<E.length;w++){var q=E[w],t=q&&q.cellValue;q=new xME;switch(T){case 3:t=Number(t);Number.isFinite(t)&&XH(q,1,Px3,wW(t));break;case 2:XH(q,2,Px3,_.Wc(Number(t)))}b.push(q)}T=b;for(E=0;E<T.length;E++){b=T[E];w=new z$3;b=_.Kj(w,
2,b);w=[];q=TwW(G);for(t=0;t<q.length;t++){var g=q[t],l=M[t],X=new AA3;switch(g){case 3:XH(X,1,Fly,ja(String(l)));break;case 2:g=Number(l);Number.isFinite(g)&&XH(X,2,Fly,_.TA(g));break;case 1:XH(X,3,Fly,qlN(l==="true"))}w.push(X)}bg(b,1,w);r.push(b)}}bg(e,4,r);return e};var E8C=function(G){if(!G)return"";if(/^about:(?:blank|srcdoc)$/.test(G))return window.origin||"";G.indexOf("blob:")===0&&(G=G.substring(5));G=G.split("#")[0].split("?")[0];G=G.toLowerCase();G.indexOf("//")==0&&(G=window.location.protocol+G);/^[\w\-]*:\/\//.test(G)||(G=window.location.href);var e=G.substring(G.indexOf("://")+3),r=e.indexOf("/");r!=-1&&(e=e.substring(0,r));r=G.substring(0,G.indexOf("://"));if(!r)throw Error("qa`"+G);if(r!=="http"&&r!=="https"&&r!=="chrome-extension"&&r!=="moz-extension"&&
r!=="file"&&r!=="android-app"&&r!=="chrome-search"&&r!=="chrome-untrusted"&&r!=="chrome"&&r!=="app"&&r!=="devtools")throw Error("ra`"+r);G="";var Z=e.indexOf(":");if(Z!=-1){var O=e.substring(Z+1);e=e.substring(0,Z);if(r==="http"&&O!=="80"||r==="https"&&O!=="443")G=":"+O}return r+"://"+e+G};var bon=function(G,e,r){var Z=String(_.O_.location.href);return Z&&G&&e?[e,ioE(E8C(Z),G,r||null)].join(" "):null},ioE=function(G,e,r){var Z=[],O=[];
if((Array.isArray(r)?2:1)==1)return O=[e,G],_.rR(Z,function(E){O.push(E)}),v8c(O.join(" "));
var M=[],T=[];_.rR(r,function(E){T.push(E.key);M.push(E.value)});
r=Math.floor((new Date).getTime()/1E3);O=M.length==0?[r,e,G]:[M.join(":"),r,e,G];_.rR(Z,function(E){O.push(E)});
G=v8c(O.join(" "));G=[r,G];T.length==0||G.push(T.join(""));return G.join("_")},v8c=function(G){var e=GGF();
e.update(G);return e.digestString().toLowerCase()};var VE=function(G){this.JSC$9627_document_=G||{cookie:""}},wOc;
_.V=VE.prototype;_.V.isEnabled=function(){if(!_.O_.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};
_.V.set=function(G,e,r){var Z=!1;if(typeof r==="object"){var O=r.sameSite;Z=r.secure||!1;var M=r.domain||void 0;var T=r.path||void 0;var E=r.maxAge}if(/[;=\s]/.test(G))throw Error("sa`"+G);if(/[;\r\n]/.test(e))throw Error("ta`"+e);E===void 0&&(E=-1);r=M?";domain="+M:"";T=T?";path="+T:"";Z=Z?";secure":"";E=E<0?"":E==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+E*1E3)).toUTCString();this.JSC$9627_document_.cookie=G+"="+e+r+T+E+Z+(O!=null?";samesite="+O:"")};
_.V.get=function(G,e){for(var r=G+"=",Z=(this.JSC$9627_document_.cookie||"").split(";"),O=0,M;O<Z.length;O++){M=$4(Z[O]);if(M.lastIndexOf(r,0)==0)return M.slice(r.length);if(M==G)return""}return e};
_.V.remove=function(G,e,r){var Z=this.containsKey(G);this.set(G,"",{maxAge:0,path:e,domain:r});return Z};
_.V.getKeys=function(){return wOc(this).keys};
_.V.getValues=function(){return wOc(this).values};
_.V.isEmpty=function(){return!this.JSC$9627_document_.cookie};
_.V.getCount=function(){return this.JSC$9627_document_.cookie?(this.JSC$9627_document_.cookie||"").split(";").length:0};
_.V.containsKey=function(G){return this.get(G)!==void 0};
_.V.containsValue=function(G){for(var e=wOc(this).values,r=0;r<e.length;r++)if(e[r]==G)return!0;return!1};
_.V.clear=function(){for(var G=wOc(this).keys,e=G.length-1;e>=0;e--)this.remove(G[e])};
wOc=function(G){G=(G.JSC$9627_document_.cookie||"").split(";");for(var e=[],r=[],Z,O,M=0;M<G.length;M++)O=$4(G[M]),Z=O.indexOf("="),Z==-1?(e.push(""),r.push(O)):(e.push(O.substring(0,Z)),r.push(O.substring(Z+1)));return{keys:e,values:r}};
_.oZ=new VE(typeof document=="undefined"?null:document);var Fip,$IE;Fip=function(){var G=_.O_.__SAPISID||_.O_.__APISID||_.O_.__3PSAPISID||_.O_.__1PSAPISID||_.O_.__OVERRIDE_SID;if(G)return!0;typeof document!=="undefined"&&(G=new VE(document),G=G.get("SAPISID")||G.get("APISID")||G.get("__Secure-3PAPISID")||G.get("__Secure-1PAPISID"));return!!G};
$IE=function(G,e,r,Z){(G=_.O_[G])||typeof document==="undefined"||(G=(new VE(document)).get(e));return G?bon(G,r,Z):null};
_.$e$=function(G){var e=E8C(_.O_==null?void 0:_.O_.location.href),r=[];if(Fip()){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?_.O_.__SAPISID:_.O_.__APISID;Z||typeof document==="undefined"||(Z=new VE(document),Z=Z.get(e?"SAPISID":"APISID")||Z.get("__Secure-3PAPISID"));(Z=Z?bon(Z,e?"SAPISIDHASH":"APISIDHASH",G):null)&&r.push(Z);e&&((e=$IE("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",G))&&r.push(e),
(G=$IE("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",G))&&r.push(G))}return r.length==0?null:r.join(" ")};var SM3=function(){this.minSize=1024};
SM3.prototype.compress=function(G){var e,r,Z,O;return _.D(function(M){switch(M.nextAddress){case 1:return e=new CompressionStream("gzip"),r=(new Response(e.readable)).arrayBuffer(),Z=e.writable.getWriter(),M.yield(Z.write((new TextEncoder).encode(G)),2);case 2:return M.yield(Z.close(),3);case 3:return O=Uint8Array,M.yield(r,4);case 4:return M.return(new O(M.yieldResult))}})};
SM3.prototype.isSupported=function(G){return G<this.minSize?!1:typeof CompressionStream!=="undefined"};var qME=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(qME,_.Tq);var h8=function(G,e){this.intervalMs=G;this.callback=e;this.enabled=!1;this.nowFn=function(){return _.JV()};
this.lastTimeMs=this.nowFn()};
h8.prototype.setInterval=function(G){this.intervalMs=G;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
h8.prototype.start=function(){var G=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){G.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
h8.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
h8.prototype.tick=function(){var G=this;if(this.enabled){var e=Math.max(this.nowFn()-this.lastTimeMs,0);e<this.intervalMs*.8?this.timer=setTimeout(function(){G.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 tOc=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(tOc,_.Tq);var g8E=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(g8E,_.Tq);var l2v=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(l2v,_.Tq);l2v.prototype.getTransmissionType=function(){return _.lg(this,1)};var OrF=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(OrF,_.Tq);var Ti=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(Ti,_.Tq);var ZrS=function(G){bg(Mmy,1,G)};
Ti.prototype.getModel=function(){return _.gU(this,6)};
var Rtn=_.a2(Ti);var jhE=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(jhE,_.Tq);var ewf=["platform","platformVersion","architecture","model","uaFullVersion"],Mmy=new Ti,rds=null;var DS=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(DS,_.Tq);var a2w=function(G){return _.qa(G,1,1)};var XOC=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G,4)};
_.K(XOC,_.Tq);_.ES=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G,36)};
_.K(_.ES,_.Tq);_.ES.prototype.getExperimentIds=function(){return _.SS(this,qME,16)};var KVv=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G,19)};
_.K(KVv,_.Tq);KVv.prototype.setLogSource=function(G){return _.qa(this,2,G)};
KVv.prototype.setScheduler=function(G){return _.qa(this,10,G)};var kyE=function(G,e){this.isServiceWorkerScope=e=e===void 0?!1:e;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new KVv;Number.isInteger(G)&&this.logRequest.setLogSource(G);e||(this.locale=document.documentElement.getAttribute("lang"));f2v(this,new DS)};
kyE.prototype.setLogSource=function(G){this.logRequest.setLogSource(G);return this};
var f2v=function(G,e){_.Kj(G.logRequest,1,e);_.lg(e,1)||a2w(e);G.isServiceWorkerScope||(e=iG(G),_.gU(e,5)||_.QB(e,5,G.locale));G.uach&&(e=iG(G),_.SS(e,Ti,9)||_.Kj(e,9,G.uach))},Ho3=function(G,e){G.transmissionType=e},dIy=function(G){var e=e===void 0?ewf:e;
var r=G.isServiceWorkerScope?void 0:Ax();r?Vmf(r,e).then(function(Z){G.uach=Rtn(Z!=null?Z:"[]");Z=iG(G);_.Kj(Z,9,G.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},iG=function(G){var e=_.SS(G.logRequest,DS,1);
e||(e=new DS,f2v(G,e));G=e;e=_.SS(G,jhE,11);e||(e=new jhE,_.Kj(G,11,e));return e};
kyE.prototype.build=function(G,e,r,Z,O,M){e=e===void 0?0:e;r=r===void 0?0:r;Z=Z===void 0?null:Z;O=O===void 0?0:O;M=M===void 0?0:M;if(!this.isServiceWorkerScope){var T=iG(this);var E=new l2v;E=_.qa(E,1,this.transmissionType);E=_.qM(E,2,this.isFinal);r=_.XC(E,3,r>0?r:void 0);r=_.XC(r,4,O>0?O:void 0);r=_.XC(r,5,M>0?M:void 0);O=r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;M=O[_.MW]|0;r=fP(r,M)?r:kAs(r,O,M)?flp(r,O):new r.constructor(A2(O,M,!0));_.Kj(T,10,r)}T=this.logRequest.clone();r=Date.now().toString();
T=_.t0(T,4,wW(r));G=G.slice();G=bg(T,3,G);Z&&(T=new tOc,Z=_.XC(T,13,Z),T=new g8E,Z=_.Kj(T,2,Z),T=new XOC,Z=_.Kj(T,1,Z),Z=_.qa(Z,2,9),_.Kj(G,18,Z));e&&_.ss(G,14,e);return G};tA.prototype.currBackoffCount_=0;tA.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
tA.prototype.getValue=function(){return this.currValue_};
var o8y=function(G){G.currBaseValue_=Math.min(G.maxValue_,G.currBaseValue_*G.backoffFactor_);G.currValue_=Math.min(G.maxValue_,G.currBaseValue_+(G.randomFactor_?Math.round(G.randomFactor_*(Math.random()-.5)*2*G.currBaseValue_):0));G.currBackoffCount_++};var K8l=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G,8)};
_.K(K8l,_.Tq);var shc=_.a2(K8l);var flv=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(flv,_.Tq);var bG;bG=new kAj;var vK=function(G){_.pB.call(this);var e=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9705_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$9705_sendBeaconApiEnabled=!1;this.logSource=G.logSource;this.getAuthHeaderValue=
G.getAuthHeaderValue||function(){};
this.logRequestBuilder=new kyE(G.logSource,G.isServiceWorkerScope);this.network=G.network||null;this.productID=G.productID||null;this.bufferSize=1E3;this.clearcutUrl=G.urlOverride||null;this.sessionIndex=G.sessionIndex||null;this.disableAutomaticFlush=G.disableAutomaticFlush||!1;this.withCredentials=!G.disableWithCredentials;this.isServiceWorkerScope=G.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!Ax()&&!!Ax().navigator&&Ax().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(Qhl())).searchParams&&!!(new URL(Qhl())).searchParams.set;var r=a2w(new DS);f2v(this.logRequestBuilder,r);this.flushBackoff=new tA(1E4,3E5,.1);G=I2c(this,G.backgroundJobDeferrer);this.JSC$9705_flushTimer=new h8(this.flushBackoff.getValue(),G);this.backupTimer=new h8(6E5,G);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){pOW(e);
var Z;(Z=e.metalogService)==null||Z.flush()}}),document.addEventListener("pagehide",function(){pOW(e);
var Z;(Z=e.metalogService)==null||Z.flush()}))};
_.K(vK,_.pB);var I2c=function(G,e){return G.isBrowserSupported?e?function(){e().then(function(){G.flush()})}:function(){G.flush()}:function(){}};
vK.prototype.disposeInternal=function(){pOW(this);this.JSC$9705_flushTimer.stop();this.backupTimer.stop();_.pB.prototype.disposeInternal.call(this)};
var CWS=function(G){G.clearcutUrl||(G.clearcutUrl=Qhl());try{return(new URL(G.clearcutUrl)).toString()}catch(e){return(new URL(G.clearcutUrl,Ax().location.origin)).toString()}};
vK.prototype.dispatch=function(G){if(G instanceof _.ES)this.log(G);else try{var e=new _.ES,r=G.serialize();var Z=_.QB(e,8,r);this.log(Z)}catch(O){wT(this,4,1)}};
var wT=function(G,e,r){G.metalogService&&G.metalogService.increment(e,r)};
vK.prototype.log=function(G){wT(this,2,1);if(this.isBrowserSupported){G=G.clone();var e=this.sequencePosition++;G=_.ss(G,21,e);this.componentId&&_.QB(G,26,this.componentId);e=G;if(CyA(_.Va(e,1))==null){var r=Date.now();r=Number.isFinite(r)?r.toString():"0";_.t0(e,1,wW(r))}_.pcs(_.Va(e,15))!=null||_.ss(e,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(r=this.experimentIds.clone(),_.Kj(e,16,r));wT(this,1,1);e=this.pendingEvents.length-this.bufferSize+1;e>0&&(this.pendingEvents.splice(0,e),
this.numLogsDroppedSinceLastFlush+=e,wT(this,3,e));this.pendingEvents.push(G);this.disableAutomaticFlush||this.JSC$9705_flushTimer.enabled||this.JSC$9705_flushTimer.start()}};
vK.prototype.flush=function(G,e){var r=this;if(this.pendingEvents.length===0)G&&G();else if(this.JSC$9705_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,uQn(this);else{var Z=Date.now();if(this.noFlushUntilMs>Z&&this.startWaitingMs<Z)e&&e("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?Ho3(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var O=this.pendingEvents.length,
M=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),T=this.getAuthHeaderValue();if(T&&this.lastFailedAuth===T)e&&e("stale-auth-token");else{this.pendingEvents=[];this.JSC$9705_flushTimer.enabled&&this.JSC$9705_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;Z=M.serialize();var E;this.JSC$9705_compressor&&this.JSC$9705_compressor.isSupported(Z.length)&&
(E=this.JSC$9705_compressor.compress(Z));var b=n8w(this,Z,T),w=function(g){r.flushBackoff.reset();r.JSC$9705_flushTimer.setInterval(r.flushBackoff.getValue());if(g){var l=null;try{var X=JSON.stringify(JSON.parse(g.replace(")]}'\n","")));l=shc(X)}catch(H){}l&&(g=Number(q_(l,1,_.nP("-1"))),g>0&&(r.startWaitingMs=Date.now(),r.noFlushUntilMs=r.startWaitingMs+g),Zds(l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,bG.fieldIndex),emS(l,bG.fieldIndex),l=bG.ctor?bG.getExtensionFn(l,bG.ctor,bG.fieldIndex,
bG.JSC$8885_hasMessageId):bG.getExtensionFn(l,bG.fieldIndex,null,bG.JSC$8885_hasMessageId),l=l===null?void 0:l)&&(l=_.vp(l,1,-1),l!==-1&&(r.flushBackoff=new tA(l<1?1:l,3E5,.1),r.JSC$9705_flushTimer.setInterval(r.flushBackoff.getValue())))}G&&G();r.numRetriesSinceLastSuccessfulFlush=0},q=function(g,l){var X=_.ix(M,_.ES,3,_.bx());
var H=Number(q_(M,14));o8y(r.flushBackoff);r.JSC$9705_flushTimer.setInterval(r.flushBackoff.getValue());g===401&&T&&(r.lastFailedAuth=T);H&&(r.numLogsDroppedSinceLastFlush+=H);l===void 0&&(l=r.isRetryable(g));l&&(r.pendingEvents=X.concat(r.pendingEvents),r.disableAutomaticFlush||r.JSC$9705_flushTimer.enabled||r.JSC$9705_flushTimer.start());wT(r,7,1);e&&e("net-send-failed",g);++r.numRetriesSinceLastSuccessfulFlush},t=function(){r.network&&r.network.send(b,w,q)};
E?E.then(function(g){wT(r,5,O);b.requestHeaders["Content-Encoding"]="gzip";b.requestHeaders["Content-Type"]="application/binary";b.body=g;b.bodyType=2;t()},function(){wT(r,6,O);
t()}):t()}}}};
var n8w=function(G,e,r){r=r===void 0?null:r;var Z=Z===void 0?G.withCredentials:Z;var O={},M=new URL(CWS(G));r&&(O.Authorization=r);G.sessionIndex&&(O["X-Goog-AuthUser"]=G.sessionIndex,M.searchParams.set("authuser",G.sessionIndex));G.pageId&&(Object.defineProperty(O,"X-Goog-PageId",{value:G.pageId}),M.searchParams.set("pageId",G.pageId));return{url:M.toString(),body:e,bodyType:1,requestHeaders:O,requestType:"POST",withCredentials:Z,timeoutMillis:G.timeoutMillis}},pOW=function(G){G.logRequestBuilder.isFinal=
!0;
G.flush();G.logRequestBuilder.isFinal=!1},uQn=function(G){mIC(G,function(e,r){e=new URL(e);
e.searchParams.set("format","json");var Z=!1;try{Z=Ax().navigator.sendBeacon(e.toString(),r.serialize())}catch(O){}Z||(G.isSendBeaconSupported=!1);return Z})},mIC=function(G,e){if(G.pendingEvents.length!==0){var r=new URL(CWS(G));
r.searchParams.delete("format");var Z=G.getAuthHeaderValue();Z&&r.searchParams.set("auth",Z);r.searchParams.set("authuser",G.sessionIndex||"0");for(Z=0;Z<10&&G.pendingEvents.length;++Z){var O=G.pendingEvents.slice(0,32),M=G.logRequestBuilder.build(O,G.numLogsDroppedSinceLastFlush,G.numRetriesSinceLastSuccessfulFlush,G.productID,G.persistedLogRecoveredCount,G.persistedLogExpiredCount);if(!e(r.toString(),M)){++G.numRetriesSinceLastSuccessfulFlush;break}G.numLogsDroppedSinceLastFlush=0;G.numRetriesSinceLastSuccessfulFlush=
0;G.persistedLogRecoveredCount=0;G.persistedLogExpiredCount=0;G.pendingEvents=G.pendingEvents.slice(O.length)}G.JSC$9705_flushTimer.enabled&&G.JSC$9705_flushTimer.stop()}};
vK.prototype.isRetryable=function(G){return 500<=G&&G<600||G===401||G===0};
var Qhl=function(){return"https://play.google.com/log?format=json&hasfast=true"};var cBW=function(){this.abortSupported=typeof AbortController!=="undefined"};
cBW.prototype.send=function(G,e,r){var Z=this,O,M,T,E,b,w,q,t,g,l;return _.D(function(X){switch(X.nextAddress){case 1:return M=(O=Z.abortSupported?new AbortController:void 0)?setTimeout(function(){O.abort()},G.timeoutMillis):void 0,_.jr(X,2,3),T=Object.assign({},{method:G.requestType,
headers:Object.assign({},G.requestHeaders)},G.body&&{body:G.body},G.withCredentials&&{credentials:"include"},{signal:G.timeoutMillis&&O?O.signal:null}),X.yield(fetch(G.url,T),5);case 5:E=X.yieldResult;if(E.status!==200){(b=r)==null||b(E.status);X.jumpTo(3);break}if((w=e)==null){X.jumpTo(7);break}return X.yield(E.text(),8);case 8:w(X.yieldResult);case 7:case 3:_.Xa(X);clearTimeout(M);_.fm(X,0);break;case 2:q=_.k5(X);switch((t=q)==null?void 0:t.name){case "AbortError":(g=r)==null||g(408);break;default:(l=
r)==null||l(400)}X.jumpTo(3)}})};
cBW.prototype.getTransmissionType=function(){return 4};_.jK=function(G,e){e=e===void 0?"0":e;_.pB.call(this);this.logSource=G;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$9723_clearExperimentIds=this.productID=null;this.JSC$9723_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.K(_.jK,_.pB);var S54=function(G,e){G.buildLabel=e;return G},$ta=function(G,e){G.network=e;
return G},tma=function(G,e){G.JSC$9723_clearExperimentIds=e},w_a=function(G){G.JSC$9723_sendBeaconApiEnabled=!0;
return G};
_.jK.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.jK.prototype.build=function(){this.network||(this.network=new cBW);var G=new vK({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.$e$,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.Xx(this,G);if(this.buildLabel){var e=this.buildLabel,r=
iG(G.logRequestBuilder);_.QB(r,7,e)}G.JSC$9705_compressor=new SM3;this.componentId&&(G.componentId=this.componentId);this.productID&&(G.productID=this.productID);this.pageId&&(G.pageId=this.pageId);this.JSC$9723_clearExperimentIds&&((r=this.JSC$9723_clearExperimentIds)?(G.experimentIds||(G.experimentIds=new qME),e=G.experimentIds,r=r.serialize(),_.QB(e,4,r)):G.experimentIds&&_.t0(G.experimentIds,4));this.JSC$9723_sendBeaconApiEnabled&&(G.JSC$9705_sendBeaconApiEnabled=G.isSendBeaconSupported);dIy(G.logRequestBuilder);
this.bufferSize&&(G.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(G);return G};var RwU=function(G,e,r,Z,O,M,T){G=G===void 0?-1:G;e=e===void 0?"":e;r=r===void 0?"":r;Z=Z===void 0?!1:Z;O=O===void 0?"":O;_.pB.call(this);this.logSource=G;this.componentId=e;M?e=M:(G=new _.jK(G,"0"),G.componentId=e,_.Xx(this,G),r!==""&&(G.destinationUrl=r),Z&&(G.serviceWorkerScopeEnabled=!0),O&&S54(G,O),T&&$ta(G,T),e=G.build());this.JSC$9727_transport=e};
_.K(RwU,_.pB);RwU.prototype.flush=function(G){G=G||[];if(G.length){for(var e=new VOj,r=[],Z=0;Z<G.length;Z++){var O=G[Z],M=DIb(O);r.push(M);O.clear()}bg(e,1,r);this.JSC$9727_transport.dispatch(e);this.JSC$9727_transport.flush()}};var YMy=function(G){this.cellValue=G};var $V=function(G,e,r){this.JSC$9732_metricName=G;this.cellType=e;this.fields=r||[];this.cellMap=new Map},TwW=function(G){return G.fields.map(function(e){return e.fieldType})},htS=function(G){return G.fields.map(function(e){return e.fieldName})};
_.V=$V.prototype;_.V.addCell=function(G){var e=_.Bw.apply(1,arguments),r=this.getCells(e);r?r.push(new YMy(G)):this.JSC$9732_setCell(G,e)};
_.V.JSC$9732_setCell=function(G){var e=this.JSC$9732_getKey(_.Bw.apply(1,arguments));this.cellMap.set(e,[new YMy(G)])};
_.V.getCells=function(){var G=this.JSC$9732_getKey(_.Bw.apply(0,arguments));return this.cellMap.has(G)?this.cellMap.get(G):void 0};
_.V.getCell=function(){var G=this.getCells(_.Bw.apply(0,arguments));return G&&G.length?G[0]:void 0};
_.V.clear=function(){this.cellMap.clear()};
_.V.JSC$9732_getKey=function(){var G=_.Bw.apply(0,arguments);return G?G.join(","):"key"};var yBv=function(G,e){$V.call(this,G,3,e)};
_.K(yBv,$V);yBv.prototype.JSC$9735_incrementCounterBy=function(G){var e=_.Bw.apply(1,arguments),r=0,Z=this.getCell(e);Z&&(r=Z.cellValue);this.JSC$9732_setCell(r+G,e)};var ABC=function(G,e){$V.call(this,G,2,e)};
_.K(ABC,$V);ABC.prototype.record=function(G){this.addCell(G,_.Bw.apply(1,arguments))};_.S7=function(G){this.id=G};
_.S7.prototype.toString=function(){return this.id};_.qQ=function(G,e){this.type=G instanceof _.S7?String(G):G;this.currentTarget=this.target=e;this.defaultPrevented=this.propagationStopped_=!1};
_.qQ.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.qQ.prototype.preventDefault=function(){this.defaultPrevented=!0};_.t8=function(G,e){_.qQ.call(this,G?G.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;G&&this.init(G,e)};
_.Bz(_.t8,_.qQ);
_.t8.prototype.init=function(G,e){var r=this.type=G.type,Z=G.changedTouches&&G.changedTouches.length?G.changedTouches[0]:null;this.target=G.target||G.srcElement;this.currentTarget=e;e=G.relatedTarget;e||(r=="mouseover"?e=G.fromElement:r=="mouseout"&&(e=G.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=_.NS||G.offsetX!==void 0?G.offsetX:G.layerX,
this.offsetY=_.NS||G.offsetY!==void 0?G.offsetY:G.layerY,this.clientX=G.clientX!==void 0?G.clientX:G.pageX,this.clientY=G.clientY!==void 0?G.clientY:G.pageY,this.screenX=G.screenX||0,this.screenY=G.screenY||0);this.button=G.button;this.keyCode=G.keyCode||0;this.key=G.key||"";this.charCode=G.charCode||(r=="keypress"?G.keyCode:0);this.ctrlKey=G.ctrlKey;this.altKey=G.altKey;this.shiftKey=G.shiftKey;this.metaKey=G.metaKey;this.pointerId=G.pointerId||0;this.pointerType=G.pointerType;this.state=G.state;
this.timeStamp=G.timeStamp;this.event_=G;G.defaultPrevented&&_.t8.superClass_.preventDefault.call(this)};
_.t8.prototype.isButton=function(G){return this.event_.button==G};
_.t8.prototype.stopPropagation=function(){_.t8.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.t8.prototype.preventDefault=function(){_.t8.superClass_.preventDefault.call(this);var G=this.event_;G.preventDefault?G.preventDefault():G.returnValue=!1};var FVE="closure_listenable_"+(Math.random()*1E6|0),gT=function(G){return!(!G||!G[FVE])};var JBP=0;var BwW=function(G,e,r,Z,O){this.listener=G;this.proxy=null;this.src=e;this.type=r;this.capture=!!Z;this.handler=O;this.key=++JBP;this.removed=this.callOnce=!1},xIc=function(G){G.removed=!0;
G.listener=null;G.proxy=null;G.src=null;G.handler=null};g1.prototype.add=function(G,e,r,Z,O){var M=G.toString();G=this.listeners[M];G||(G=this.listeners[M]=[],this.typeCount_++);var T=PWb(G,e,Z,O);T>-1?(e=G[T],r||(e.callOnce=!1)):(e=new BwW(e,this.src,M,!!Z,O),e.callOnce=r,G.push(e));return e};
g1.prototype.remove=function(G,e,r,Z){G=G.toString();if(!(G in this.listeners))return!1;var O=this.listeners[G];e=PWb(O,e,r,Z);return e>-1?(xIc(O[e]),_.sys(O,e),O.length==0&&(delete this.listeners[G],this.typeCount_--),!0):!1};
var UIc=function(G,e){var r=e.type;if(!(r in G.listeners))return!1;var Z=_.yp(G.listeners[r],e);Z&&(xIc(e),G.listeners[r].length==0&&(delete G.listeners[r],G.typeCount_--));return Z};
g1.prototype.removeAll=function(G){G=G&&G.toString();var e=0,r;for(r in this.listeners)if(!G||r==G){for(var Z=this.listeners[r],O=0;O<Z.length;O++)++e,xIc(Z[O]);delete this.listeners[r];this.typeCount_--}return e};
g1.prototype.getListener=function(G,e,r,Z){G=this.listeners[G.toString()];var O=-1;G&&(O=PWb(G,e,r,Z));return O>-1?G[O]:null};
g1.prototype.hasListener=function(G,e){var r=G!==void 0,Z=r?G.toString():"",O=e!==void 0;return _.c2.some(this.listeners,function(M){for(var T=0;T<M.length;++T)if(!(r&&M[T].type!=Z||O&&M[T].capture!=e))return!0;return!1})};
var PWb=function(G,e,r,Z){for(var O=0;O<G.length;++O){var M=G[O];if(!M.removed&&M.listener==e&&M.capture==!!r&&M.handler==Z)return O}return-1};var zty,WVj,Nwv,GbS,eNP,EY,i1,OzS,rHS,ZzW,lG,M1C,LVn;zty="closure_lm_"+(Math.random()*1E6|0);WVj={};Nwv=0;_.w2=function(G,e,r,Z,O){if(Z&&Z.once)return EY(G,e,r,Z,O);if(Array.isArray(e)){for(var M=0;M<e.length;M++)_.w2(G,e[M],r,Z,O);return null}r=LVn(r);return gT(G)?G.listen(e,r,_.PA(Z)?!!Z.capture:!!Z,O):GbS(G,e,r,!1,Z,O)};
GbS=function(G,e,r,Z,O,M){if(!e)throw Error("va");var T=_.PA(O)?!!O.capture:!!O,E=lG(G);E||(G[zty]=E=new g1(G));r=E.add(e,r,Z,T,M);if(r.proxy)return r;Z=eNP();r.proxy=Z;Z.src=G;Z.listener=r;if(G.addEventListener)_.rtE||(O=T),O===void 0&&(O=!1),G.addEventListener(e.toString(),Z,O);else if(G.attachEvent)G.attachEvent(rHS(e.toString()),Z);else if(G.addListener&&G.removeListener)G.addListener(Z);else throw Error("wa");Nwv++;return r};
eNP=function(){var G=ZzW,e=function(r){return G.call(e.src,e.listener,r)};
return e};
EY=function(G,e,r,Z,O){if(Array.isArray(e)){for(var M=0;M<e.length;M++)EY(G,e[M],r,Z,O);return null}r=LVn(r);return gT(G)?G.listenOnce(e,r,_.PA(Z)?!!Z.capture:!!Z,O):GbS(G,e,r,!0,Z,O)};
_.Rb=function(G,e,r,Z,O){if(Array.isArray(e))for(var M=0;M<e.length;M++)_.Rb(G,e[M],r,Z,O);else Z=_.PA(Z)?!!Z.capture:!!Z,r=LVn(r),gT(G)?G.unlisten(e,r,Z,O):G&&(G=lG(G))&&(e=G.getListener(e,r,Z,O))&&i1(e)};
i1=function(G){if(typeof G==="number"||!G||G.removed)return!1;var e=G.src;if(gT(e))return UIc(e.eventTargetListeners_,G);var r=G.type,Z=G.proxy;e.removeEventListener?e.removeEventListener(r,Z,G.capture):e.detachEvent?e.detachEvent(rHS(r),Z):e.addListener&&e.removeListener&&e.removeListener(Z);Nwv--;(r=lG(e))?(UIc(r,G),r.typeCount_==0&&(r.src=null,e[zty]=null)):xIc(G);return!0};
OzS=function(G,e,r,Z,O){r=LVn(r);Z=!!Z;return gT(G)?G.getListener(e,r,Z,O):G?(G=lG(G))?G.getListener(e,r,Z,O):null:null};
rHS=function(G){return G in WVj?WVj[G]:WVj[G]="on"+G};
ZzW=function(G,e){if(G.removed)G=!0;else{e=new _.t8(e,this);var r=G.listener,Z=G.handler||G.src;G.callOnce&&i1(G);G=r.call(Z,e)}return G};
lG=function(G){G=G[zty];return G instanceof g1?G:null};
M1C="__closure_events_fn_"+(Math.random()*1E9>>>0);LVn=function(G){if(typeof G==="function")return G;G[M1C]||(G[M1C]=function(e){return G.handleEvent(e)});
return G[M1C]};_.j7=function(){_.pB.call(this);this.eventTargetListeners_=new g1(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.Bz(_.j7,_.pB);_.j7.prototype[FVE]=!0;_.V=_.j7.prototype;_.V.setParentEventTarget=function(G){this.parentEventTarget_=G};
_.V.addEventListener=function(G,e,r,Z){_.w2(this,G,e,r,Z)};
_.V.removeEventListener=function(G,e,r,Z){_.Rb(this,G,e,r,Z)};
_.V.dispatchEvent=function(G){var e,r=this.parentEventTarget_;if(r)for(e=[];r;r=r.parentEventTarget_)e.push(r);r=this.actualEventTarget_;var Z=G.type||G;if(typeof G==="string")G=new _.qQ(G,r);else if(G instanceof _.qQ)G.target=G.target||r;else{var O=G;G=new _.qQ(Z,r);_.c2.extend(G,O)}O=!0;var M;if(e)for(M=e.length-1;!G.propagationStopped_&&M>=0;M--){var T=G.currentTarget=e[M];O=V1E(T,Z,!0,G)&&O}G.propagationStopped_||(T=G.currentTarget=r,O=V1E(T,Z,!0,G)&&O,G.propagationStopped_||(O=V1E(T,Z,!1,G)&&
O));if(e)for(M=0;!G.propagationStopped_&&M<e.length;M++)T=G.currentTarget=e[M],O=V1E(T,Z,!1,G)&&O;return O};
_.V.disposeInternal=function(){_.j7.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.V.listen=function(G,e,r,Z){return this.eventTargetListeners_.add(String(G),e,!1,r,Z)};
_.V.listenOnce=function(G,e,r,Z){return this.eventTargetListeners_.add(String(G),e,!0,r,Z)};
_.V.unlisten=function(G,e,r,Z){return this.eventTargetListeners_.remove(String(G),e,r,Z)};
_.V.removeAllListeners=function(G){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(G):0};
var V1E=function(G,e,r,Z){e=G.eventTargetListeners_.listeners[String(e)];if(!e)return!0;e=e.concat();for(var O=!0,M=0;M<e.length;++M){var T=e[M];if(T&&!T.removed&&T.capture==r){var E=T.listener,b=T.handler||T.src;T.callOnce&&UIc(G.eventTargetListeners_,T);O=E.call(b,Z)!==!1&&O}}return O&&!Z.defaultPrevented};
_.j7.prototype.getListener=function(G,e,r,Z){return this.eventTargetListeners_.getListener(String(G),e,r,Z)};
_.j7.prototype.hasListener=function(G,e){return this.eventTargetListeners_.hasListener(G!==void 0?String(G):void 0,e)};var ab=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(G){return G&&AsyncContext.Snapshot.wrap(G)}:function(G){return G};var hNP=function(G,e){this.create_=G;this.reset_=e;this.occupants_=0;this.JSC$9767_head_=null};
hNP.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var G=this.JSC$9767_head_;this.JSC$9767_head_=G.next;G.next=null}else G=this.create_();return G};
hNP.prototype.put=function(G){this.reset_(G);this.occupants_<100&&(this.occupants_++,G.next=this.JSC$9767_head_,this.JSC$9767_head_=G)};var TxP=function(){this.workTail_=this.workHead_=null};
TxP.prototype.add=function(G,e){var r=TRf.get();r.set(G,e);this.workTail_?this.workTail_.next=r:this.workHead_=r;this.workTail_=r};
TxP.prototype.remove=function(){var G=null;this.workHead_&&(G=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),G.next=null);return G};
var TRf=new hNP(function(){return new D0j},function(G){return G.reset()}),D0j=function(){this.next=this.scope=this.fn=null};
D0j.prototype.set=function(G,e){this.fn=G;this.scope=e;this.next=null};
D0j.prototype.reset=function(){this.next=this.scope=this.fn=null};var EZv,Dty,hw_,iz3;Dty=!1;hw_=new TxP;_.XX=function(G,e){EZv||iz3();Dty||(EZv(),Dty=!0);hw_.add(G,e)};
iz3=function(){var G=Promise.resolve(void 0);EZv=function(){G.then(E1p)}};var bzP=function(G){G.prototype.$goog_Thenable=!0},vZE=function(G){if(!G)return!1;
try{return!!G.$goog_Thenable}catch(e){return!1}};var wXE,$0C,S9C,t1E,gZj,lYn,XXn,kbP,soC,d0C,En4;_.aQ=function(G,e){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(G!=_.qu)try{var r=this;G.call(e,function(Z){r.resolve_(2,Z)},function(Z){r.resolve_(3,Z)})}catch(Z){this.resolve_(3,Z)}};
wXE=function(){this.next=this.context=this.JSC$9778_onRejected=this.JSC$9778_onFulfilled=this.child=null;this.always=!1};
wXE.prototype.reset=function(){this.context=this.JSC$9778_onRejected=this.JSC$9778_onFulfilled=this.child=null;this.always=!1};
$0C=new hNP(function(){return new wXE},function(G){G.reset()});
S9C=function(G,e,r){var Z=$0C.get();Z.JSC$9778_onFulfilled=G;Z.JSC$9778_onRejected=e;Z.context=r;return Z};
_.Nz=function(G){if(G instanceof _.aQ)return G;var e=new _.aQ(_.qu);e.resolve_(2,G);return e};
_.Ss=function(G){return new _.aQ(function(e,r){r(G)})};
t1E=function(G,e,r){q9b(G,e,r,null)||_.XX(_.VU(e,G))};
_.KY=function(G){return new _.aQ(function(e,r){var Z=G.length,O=[];if(Z)for(var M=function(w,q){Z--;O[w]=q;Z==0&&e(O)},T=function(w){r(w)},E,b=0;b<G.length;b++)E=G[b],t1E(E,_.VU(M,b),T);
else e(O)})};
gZj=function(G){return new _.aQ(function(e){var r=G.length,Z=[];if(r)for(var O=function(E,b,w){r--;Z[E]=b?{fulfilled:!0,value:w}:{fulfilled:!1,reason:w};r==0&&e(Z)},M,T=0;T<G.length;T++)M=G[T],t1E(M,_.VU(O,T,!0),_.VU(O,T,!1));
else e(Z)})};
lYn=function(G){return new _.aQ(function(e,r){var Z=G.length,O=[];if(Z)for(var M=function(w){e(w)},T=function(w,q){Z--;
O[w]=q;Z==0&&r(O)},E,b=0;b<G.length;b++)E=G[b],t1E(E,M,_.VU(T,b));
else e(void 0)})};
_.C1=function(){var G,e,r=new _.aQ(function(Z,O){G=Z;e=O});
return new RNC(r,G,e)};
_.aQ.prototype.then=function(G,e,r){return joS(this,ab(typeof G==="function"?G:null),ab(typeof e==="function"?e:null),r)};
bzP(_.aQ);XXn=function(G,e,r,Z){aYy(G,S9C(e||_.qu,r||null,Z))};
_.fY=function(G,e){e=ab(e);e=S9C(e,e);e.always=!0;aYy(G,e);return G};
_.aQ.prototype.finally=function(G){var e=this;G=ab(G);return new _.aQ(function(r,Z){XXn(e,function(O){G();r(O)},function(O){G();
Z(O)})})};
_.aQ.prototype.thenCatch=function(G,e){return joS(this,null,ab(G),e)};
_.aQ.prototype.catch=_.aQ.prototype.thenCatch;_.aQ.prototype.cancel=function(G){if(this.state_==0){var e=new _.fx(G);_.XX(function(){K0j(this,e)},this)}};
var K0j=function(G,e){if(G.state_==0)if(G.parent_){var r=G.parent_;if(r.callbackEntries_){for(var Z=0,O=null,M=null,T=r.callbackEntries_;T&&(T.always||(Z++,T.child==G&&(O=T),!(O&&Z>1)));T=T.next)O||(M=T);O&&(r.state_==0&&Z==1?K0j(r,e):(M?(Z=M,Z.next==r.callbackEntriesTail_&&(r.callbackEntriesTail_=Z),Z.next=Z.next.next):fYn(r),kbP(r,O,3,e)))}G.parent_=null}else G.resolve_(3,e)},aYy=function(G,e){G.callbackEntries_||G.state_!=2&&G.state_!=3||HzS(G);
G.callbackEntriesTail_?G.callbackEntriesTail_.next=e:G.callbackEntries_=e;G.callbackEntriesTail_=e},joS=function(G,e,r,Z){var O=S9C(null,null,null);
O.child=new _.aQ(function(M,T){O.JSC$9778_onFulfilled=e?function(E){try{var b=e.call(Z,E);M(b)}catch(w){T(w)}}:M;
O.JSC$9778_onRejected=r?function(E){try{var b=r.call(Z,E);b===void 0&&E instanceof _.fx?T(E):M(b)}catch(w){T(w)}}:T});
O.child.parent_=G;aYy(G,O);return O.child};
_.aQ.prototype.unblockAndFulfill_=function(G){this.state_=0;this.resolve_(2,G)};
_.aQ.prototype.unblockAndReject_=function(G){this.state_=0;this.resolve_(3,G)};
_.aQ.prototype.resolve_=function(G,e){this.state_==0&&(this===e&&(G=3,e=new TypeError("xa")),this.state_=1,q9b(e,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=e,this.state_=G,this.parent_=null,HzS(this),G!=3||e instanceof _.fx||d0C(this,e)))};
var q9b=function(G,e,r,Z){if(G instanceof _.aQ)return XXn(G,e,r,Z),!0;if(vZE(G))return G.then(e,r,Z),!0;if(_.PA(G))try{var O=G.then;if(typeof O==="function")return oZn(G,O,e,r,Z),!0}catch(M){return r.call(Z,M),!0}return!1},oZn=function(G,e,r,Z,O){var M=!1,T=function(b){M||(M=!0,r.call(O,b))},E=function(b){M||(M=!0,Z.call(O,b))};
try{e.call(G,T,E)}catch(b){E(b)}},HzS=function(G){G.executing_||(G.executing_=!0,_.XX(G.executeCallbacks_,G))},fYn=function(G){var e=null;
G.callbackEntries_&&(e=G.callbackEntries_,G.callbackEntries_=e.next,e.next=null);G.callbackEntries_||(G.callbackEntriesTail_=null);return e};
_.aQ.prototype.executeCallbacks_=function(){for(var G;G=fYn(this);)kbP(this,G,this.state_,this.result_);this.executing_=!1};
kbP=function(G,e,r,Z){if(r==3&&e.JSC$9778_onRejected&&!e.always)for(;G&&G.hadUnhandledRejection_;G=G.parent_)G.hadUnhandledRejection_=!1;if(e.child)e.child.parent_=null,soC(e,r,Z);else try{e.always?e.JSC$9778_onFulfilled.call(e.context):soC(e,r,Z)}catch(O){En4.call(null,O)}$0C.put(e)};
soC=function(G,e,r){e==2?G.JSC$9778_onFulfilled.call(G.context,r):G.JSC$9778_onRejected&&G.JSC$9778_onRejected.call(G.context,r)};
d0C=function(G,e){G.hadUnhandledRejection_=!0;_.XX(function(){G.hadUnhandledRejection_&&En4.call(null,e)})};
En4=MU;_.fx=function(G){_.rs.call(this,G)};
_.Bz(_.fx,_.rs);_.fx.prototype.name="cancel";var RNC=function(G,e,r){this.promise=G;this.resolve=e;this.reject=r};var kV;_.qN=function(G,e){_.j7.call(this);this.JSC$9790_interval_=G||1;this.timerObject_=e||_.O_;this.boundTick_=(0,_.CB)(this.tick_,this);this.last_=_.JV()};
_.Bz(_.qN,_.j7);_.V=_.qN.prototype;_.V.enabled=!1;_.V.JSC$9792_timer_=null;_.V.setInterval=function(G){this.JSC$9790_interval_=G;this.JSC$9792_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9792_timer_&&this.stop()};
_.V.tick_=function(){if(this.enabled){var G=_.JV()-this.last_;G>0&&G<this.JSC$9790_interval_*.8?this.JSC$9792_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9790_interval_-G):(this.JSC$9792_timer_&&(this.timerObject_.clearTimeout(this.JSC$9792_timer_),this.JSC$9792_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.V.start=function(){this.enabled=!0;this.JSC$9792_timer_||(this.JSC$9792_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9790_interval_),this.last_=_.JV())};
_.V.stop=function(){this.enabled=!1;this.JSC$9792_timer_&&(this.timerObject_.clearTimeout(this.JSC$9792_timer_),this.JSC$9792_timer_=null)};
_.V.disposeInternal=function(){_.qN.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
kV=function(G,e,r){if(typeof G==="function")r&&(G=(0,_.CB)(G,r));else if(G&&typeof G.handleEvent=="function")G=(0,_.CB)(G.handleEvent,G);else throw Error("ya");return Number(e)>2147483647?-1:_.O_.setTimeout(G,e||0)};
_.QoE=function(G){var e=null;return(new _.aQ(function(r,Z){e=kV(function(){r(void 0)},G);
e==-1&&Z(Error("za"))})).thenCatch(function(r){_.O_.clearTimeout(e);
throw r;})};var KB=function(G){_.pB.call(this);this.streamzLogger=G;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9796_flushTimer=new _.qN(this.flushInterval);this.JSC$9796_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.Xx(this,this.JSC$9796_flushTimer)};
_.K(KB,_.pB);KB.prototype.sendIsolatedPayload=function(G){this.shouldSendIsolatedPayload=G;this.invocationLimit=1};
var IYS=function(G){G.JSC$9796_flushTimer.enabled||G.JSC$9796_flushTimer.start();G.invocationCount++;G.invocationCount>=G.invocationLimit&&G.snapshotAndFlush()};
KB.prototype.snapshotAndFlush=function(){var G=this.metricMap.values();G=[].concat(_.mY(G)).filter(function(e){return e.cellMap.size});
G.length&&this.streamzLogger.flush(G,this.shouldSendIsolatedPayload);pXj(G);this.invocationCount=0;this.JSC$9796_flushTimer.enabled&&this.JSC$9796_flushTimer.stop()};
KB.prototype.addNewCounter=function(G){var e=_.Bw.apply(1,arguments);this.metricMap.has(G)||this.metricMap.set(G,new yBv(G,e))};
KB.prototype.addNewEventMetric=function(G){var e=_.Bw.apply(1,arguments);this.metricMap.has(G)||this.metricMap.set(G,new ABC(G,e))};
var C6E=function(G,e){return G.disabledMetrics.has(e)?void 0:G.metricMap.get(e)};
KB.prototype.JSC$9796_incrementCounter=function(G){this.JSC$9796_incrementCounterBy(G,1,_.Bw.apply(1,arguments))};
KB.prototype.JSC$9796_incrementCounterBy=function(G,e){var r=_.Bw.apply(2,arguments),Z=C6E(this,G);Z&&Z instanceof yBv&&(Z.JSC$9735_incrementCounterBy(e,r),IYS(this))};
KB.prototype.record=function(G,e){var r=_.Bw.apply(2,arguments),Z=C6E(this,G);Z&&Z instanceof ABC&&(Z.record(e,r),IYS(this))};
var pXj=function(G){for(var e=0;e<G.length;e++)G[e].clear()};_.HK=function(G,e,r){r=r===void 0?{}:r;e=Error.call(this,e);this.message=e.message;"stack"in e&&(this.stack=e.stack);this.code=G;this.metadata=r;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.K(_.HK,Error);_.HK.prototype.toString=function(){var G="RpcError("+(bra(this.code)||String(this.code))+")";this.message&&(G+=": "+this.message);return G};_.utw=_.O_.JSON.parse;_.dT=_.O_.JSON.stringify;_.wo=_.O_.JSON.parse;_.nZn=function(G){switch(G){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 m0E=function(G){switch(G){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var cHv,Y93=function(){};
_.Bz(Y93,_.v1S);Y93.prototype.createInstance=function(){return new XMLHttpRequest};
cHv=new Y93;_.ob=function(G){_.j7.call(this);this.headers=new Map;this.JSC$9805_xmlHttpFactory_=G||null;this.JSC$9805_active_=!1;this.JSC$9805_xhr_=null;this.JSC$9805_lastUri_="";this.JSC$9805_lastErrorCode_=0;this.JSC$9805_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9805_timeoutId_=null;this.responseType_="";this.JSC$9805_withCredentials_=!1};
_.Bz(_.ob,_.j7);var yHj=/^https?$/i,AH3=["POST","PUT"],F0E=[],x4p=function(G,e,r,Z,O,M,T){var E=new _.ob;F0E.push(E);e&&E.listen("complete",e);E.listenOnce("ready",E.cleanupSend_);M&&(E.timeoutInterval_=Math.max(0,M));T&&(E.JSC$9805_withCredentials_=T);E.send(G,r,Z,O)};
_.ob.prototype.cleanupSend_=function(){this.dispose();_.yp(F0E,this)};
_.ob.prototype.send=function(G,e,r,Z){if(this.JSC$9805_xhr_)throw Error("Aa`"+this.JSC$9805_lastUri_+"`"+G);e=e?e.toUpperCase():"GET";this.JSC$9805_lastUri_=G;this.JSC$9805_lastError_="";this.JSC$9805_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9805_active_=!0;this.JSC$9805_xhr_=this.createXhr();this.JSC$9805_xhr_.onreadystatechange=ab((0,_.CB)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9805_xhr_.open(e,String(G),!0),this.inOpen_=!1}catch(T){JHj(this,T);return}G=r||"";r=new Map(this.headers);
if(Z)if(Object.getPrototypeOf(Z)===Object.prototype)for(var O in Z)r.set(O,Z[O]);else if(typeof Z.keys==="function"&&typeof Z.get==="function"){O=_.h(Z.keys());for(var M=O.next();!M.done;M=O.next())M=M.value,r.set(M,Z.get(M))}else throw Error("Ba`"+String(Z));Z=Array.from(r.keys()).find(function(T){return"content-type"==T.toLowerCase()});
O=_.O_.FormData&&G instanceof _.O_.FormData;!_.Y4(AH3,e)||Z||O||r.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e=_.h(r);for(Z=e.next();!Z.done;Z=e.next())r=_.h(Z.value),Z=r.next().value,r=r.next().value,this.JSC$9805_xhr_.setRequestHeader(Z,r);this.responseType_&&(this.JSC$9805_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9805_xhr_&&this.JSC$9805_xhr_.withCredentials!==this.JSC$9805_withCredentials_&&(this.JSC$9805_xhr_.withCredentials=this.JSC$9805_withCredentials_);
try{this.JSC$9805_timeoutId_&&(clearTimeout(this.JSC$9805_timeoutId_),this.JSC$9805_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9805_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9805_xhr_.send(G),this.inSend_=!1}catch(T){JHj(this,T)}};
_.ob.prototype.createXhr=function(){return this.JSC$9805_xmlHttpFactory_?this.JSC$9805_xmlHttpFactory_.createInstance():cHv.createInstance()};
_.ob.prototype.timeout_=function(){typeof M$c!="undefined"&&this.JSC$9805_xhr_&&(this.JSC$9805_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9805_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var JHj=function(G,e){G.JSC$9805_active_=!1;G.JSC$9805_xhr_&&(G.inAbort_=!0,G.JSC$9805_xhr_.abort(),G.inAbort_=!1);G.JSC$9805_lastError_=e;G.JSC$9805_lastErrorCode_=5;BxE(G);x0W(G)},BxE=function(G){G.errorDispatched_||(G.errorDispatched_=!0,G.dispatchEvent("complete"),G.dispatchEvent("error"))};
_.ob.prototype.abort=function(G){this.JSC$9805_xhr_&&this.JSC$9805_active_&&(this.JSC$9805_active_=!1,this.inAbort_=!0,this.JSC$9805_xhr_.abort(),this.inAbort_=!1,this.JSC$9805_lastErrorCode_=G||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),x0W(this))};
_.ob.prototype.disposeInternal=function(){this.JSC$9805_xhr_&&(this.JSC$9805_active_&&(this.JSC$9805_active_=!1,this.inAbort_=!0,this.JSC$9805_xhr_.abort(),this.inAbort_=!1),x0W(this,!0));_.ob.superClass_.disposeInternal.call(this)};
_.ob.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)P63(this);else this.onReadyStateChangeEntryPoint_()};
_.ob.prototype.onReadyStateChangeEntryPoint_=function(){P63(this)};
var P63=function(G){if(G.JSC$9805_active_&&typeof M$c!="undefined")if(G.inSend_&&_.sS(G)==4)setTimeout(G.onReadyStateChange_.bind(G),0);else if(G.dispatchEvent("readystatechange"),G.isComplete()){G.JSC$9805_active_=!1;try{if(G.isSuccess())G.dispatchEvent("complete"),G.dispatchEvent("success");else{G.JSC$9805_lastErrorCode_=6;try{var e=_.sS(G)>2?G.JSC$9805_xhr_.statusText:""}catch(r){e=""}G.JSC$9805_lastError_=e+" ["+G.getStatus()+"]";BxE(G)}}finally{x0W(G)}}},x0W=function(G,e){if(G.JSC$9805_xhr_){G.JSC$9805_timeoutId_&&
(clearTimeout(G.JSC$9805_timeoutId_),G.JSC$9805_timeoutId_=null);
var r=G.JSC$9805_xhr_;G.JSC$9805_xhr_=null;e||G.dispatchEvent("ready");try{r.onreadystatechange=null}catch(Z){}}};
_.ob.prototype.isActive=function(){return!!this.JSC$9805_xhr_};
_.ob.prototype.isComplete=function(){return _.sS(this)==4};
_.ob.prototype.isSuccess=function(){var G=this.getStatus(),e;if(!(e=m0E(G))){if(G=G===0)G=Ldy(String(this.JSC$9805_lastUri_)),G=!yHj.test(G);e=G}return e};
_.sS=function(G){return G.JSC$9805_xhr_?G.JSC$9805_xhr_.readyState:0};
_.V=_.ob.prototype;_.V.getStatus=function(){try{return _.sS(this)>2?this.JSC$9805_xhr_.status:-1}catch(G){return-1}};
_.V.getResponseText=function(){try{return this.JSC$9805_xhr_?this.JSC$9805_xhr_.responseText:""}catch(G){return""}};
_.V.getResponse=function(){try{if(!this.JSC$9805_xhr_)return null;if("response"in this.JSC$9805_xhr_)return this.JSC$9805_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9805_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9805_xhr_)return this.JSC$9805_xhr_.mozResponseArrayBuffer}return null}catch(G){return null}};
_.V.getAllResponseHeaders=function(){return this.JSC$9805_xhr_&&_.sS(this)>=2?this.JSC$9805_xhr_.getAllResponseHeaders()||"":""};
_.V.getLastError=function(){return typeof this.JSC$9805_lastError_==="string"?this.JSC$9805_lastError_:String(this.JSC$9805_lastError_)};var q5q=function(){};
q5q.prototype.send=function(G,e,r){e=e===void 0?function(){}:e;
r=r===void 0?function(){}:r;
x4p(G.url,function(Z){Z=Z.target;Z.isSuccess()?e(Z.getResponseText()):r(Z.getStatus())},G.requestType,G.body,G.requestHeaders,G.timeoutMillis,G.withCredentials)};
q5q.prototype.getTransmissionType=function(){return 1};var U0c=function(G,e){this.qxV=G;this.event=e;this.startTime=fB()},aWs;
U0c.prototype.done=function(){this.qxV.cK(this.event,fB()-this.startTime)};
var QE=function(){MQ.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.K(QE,MQ);_.Ib=function(G,e,r){var Z=fB();e=e();G.cK(r,fB()-Z);return e};
aWs=function(){QE.apply(this,arguments)};
_.K(aWs,QE);_.V=aWs.prototype;_.V.wD0=function(){};
_.V.tC=function(){};
_.V.cK=function(){};
_.V.logError=function(){};
_.V.pW=function(){};
_.V.rd0=function(){};
_.V.eT3=function(){};
_.V.jXO=function(){};
var zNC=function(G){QE.call(this);var e=this;this.cR=G;this.TEST_ONLY={zLH:function(){return e.cR},
getExperimentIds:function(){return e.cR.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void e.cR.dispose()})};
_.K(zNC,QE);_.V=zNC.prototype;_.V.update=function(G){this.cR.dispose();this.cR=G};
_.V.tC=function(G){this.cR.tC(G)};
_.V.cK=function(G,e){this.cR.cK(G,e)};
_.V.logError=function(G){this.cR.logError(G)};
_.V.pW=function(){this.cR.pW()};
_.V.rd0=function(G){this.cR.rd0(G)};
_.V.eT3=function(G){this.cR.eT3(G)};
_.V.jXO=function(G){this.cR.jXO(G)};
_.V.wD0=function(G){this.cR.wD0(G)};
var W0b=function(G,e){_.pB.call(this);var r=this;this.callback=G;this.vg4=e;this.t35=-e;this.addOnDisposeCallback(function(){return void clearTimeout(r.timer)})};
_.K(W0b,_.pB);var Nxy=function(G){if(G.timer===void 0){var e=Math.max(0,G.t35+G.vg4-fB());G.timer=setTimeout(function(){try{G.callback()}finally{G.t35=fB(),G.timer=void 0}},e)}},L0S=function(G,e){QE.call(this);
this.metrics=G;this.j5=e};
_.K(L0S,QE);_.V=L0S.prototype;_.V.wD0=function(G){this.metrics.sD6.record(G,this.j5)};
_.V.tC=function(G){this.metrics.eventCount.increment(G,this.j5)};
_.V.cK=function(G,e){this.metrics.z4Z.record(e,G,this.j5)};
_.V.logError=function(G){this.metrics.errorCount.increment(G,this.j5)};
_.V.rd0=function(G){this.metrics.fNo.increment(G,this.j5)};
_.V.eT3=function(G){this.metrics.yHe.increment(G,this.j5)};
_.V.jXO=function(G){this.metrics.yl6.increment(G,this.j5)};
var X_S=function(G,e){e=e===void 0?[]:e;var r={j5:G.j5||"_",p5A:G.p5A||[],b0x:G.b0x|0,destinationUrl:G.destinationUrl,wMA:G.wMA||function(){},
vFM:G.vFM||function(M,T){return jZp(M,T,r.wMA,r.destinationUrl)}},Z=r.vFM("51",r.p5A.concat(e));
L0S.call(this,{sD6:new pp3(Z),errorCount:new mMS(Z),eventCount:new uxW(Z),z4Z:new nWw(Z),oor:new CxE(Z),fNo:new cAE(Z),yHe:new YQv(Z),yl6:new yAb(Z)},r.j5);var O=this;this.TEST_ONLY={getExperimentIds:function(){return O.options.p5A.concat(O.dr5).sort(function(M,T){return M-T})}};
this.options=r;this.service=Z;this.mLD=!G.vFM;this.flushDebouncer=new W0b(function(){return void O.service.snapshotAndFlush()},r.b0x);
this.addOnDisposeCallback(function(){O.flushDebouncer.dispose();O.mLD&&O.service.dispose()});
(this.dr5=e.slice()).sort(_.CFA)};
_.K(X_S,L0S);X_S.prototype.pW=function(){Nxy(this.flushDebouncer)};var cpf=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(cpf,_.Tq);_.YjA=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(_.YjA,_.Tq);var oN=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G,0,oN.messageId)};
_.K(oN,_.Tq);var GGy=_.xZp(oN);oN.messageId="bfkj";var zNS=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(zNS,_.Tq);var ewP=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(ewP,_.Tq);var rdj=_.a2(ewP);_.G1=function(){var G=this;this.promise=new Promise(function(e,r){G.resolve=e;G.reject=r})};_.pY=function(G){_.pB.call(this);var e=this;this.fwF=Math.floor(Math.random()*200);this.xQA=new ewP;if("challenge"in G&&GGy(G.challenge)){var r=_.gU(G.challenge,4,void 0,pP);var Z=_.gU(G.challenge,5,void 0,pP);_.gU(G.challenge,7,void 0,pP)&&(this.xQA=rdj(_.gU(G.challenge,7,void 0,pP)))}else r=G.program,Z=G.globalName;this.addOnDisposeCallback(function(){var X,H,I;return _.D(function(C){if(C.nextAddress==1)return C.yield(e.wKw,2);X=C.yieldResult;H=X.t5Z;(I=H)==null||I();_.HL(C)})});
this.xn=Ka4(G.v0O||{},this.xQA);_.Xx(this,this.xn);var O=new _.G1;this.wKw=O.promise;this.xn.tC("t");var M=this.xn.share(),T=new U0c(M,"t"),E=function(X,H,I,C){if(!e.xn.isDisposed()){var u="k";H?u="h":I&&(u="u");u!=="k"?C!==0&&(e.xn.tC(u),e.xn.cK(u,X)):e.fwF<=0?(e.xn.tC(u),e.xn.cK(u,X),e.fwF=Math.floor(Math.random()*200)):e.fwF--}},b=function(X,H,I,C){Promise.resolve().then(function(){T.done();
M.pW();M.dispose();O.resolve({zxJ:X,t5Z:H,slo:I,gHK:C})})};
if(!_.O_[Z])throw this.xn.logError(25),Error("Ca");if(!_.O_[Z].a)throw this.xn.logError(26),Error("Da");try{var w=_.O_[Z].a;Z=[];for(var q=[],t=W0q(this.xQA),g=0;g<t.length;g++)Z.push(t[g]),q.push(1);var l=NxF(this.xQA);for(t=0;t<l.length;t++)Z.push(l[t]),q.push(2);this.kVB=_.h(w(r,b,!0,G.yyt,E,[Z,q],_.gU(this.xQA,5),!1)).next().value;this.uwM=O.promise.then(function(){})}catch(X){throw this.xn.logError(28),X;
}};
_.K(_.pY,_.pB);_.pY.prototype.snapshot=function(G){if(this.isDisposed())throw Error("Ea");this.xn.tC("n");var e=this.xn.share();return this.wKw.then(function(r){var Z=r.zxJ;return new Promise(function(O){var M=new U0c(e,"n");Z(function(T){M.done();e.wD0(T.length);e.pW();e.dispose();O(T)},[G.j0,
G.xwg,G.bPJ,G.wXI])})})};
_.pY.prototype.puw=function(G){this.wKw.then(function(e){var r;(r=e.slo)==null||r(G)})};
_.pY.prototype.b70=function(G,e){return this.wKw.then(function(r){var Z;return(Z=r.gHK)==null?void 0:Z(G,e,!1)})};
_.pY.prototype.b6v=function(){return this.xn.share()};var Zr3=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(Zr3,_.Tq);var guy=_.xZp(Zr3);var Ory=function(){this.promises={};this.zNu=null},MmW=function(){Ory.instance||(Ory.instance=new Ory);
return Ory.instance},hwl=function(G,e){return VmP(G,_.SS(e,cpf,1,pP),_.SS(e,_.YjA,2,pP),_.gU(e,3,void 0,pP))},VmP=function(G,e,r,Z){if(!e&&!r)return Promise.resolve();
if(!Z)return o1p(e,r);var O;(O=G.promises)[Z]||(O[Z]=new Promise(function(M,T){o1p(e,r).then(function(){G.zNu=Z;M()},function(E){delete G.promises[Z];
T(E)})}));
return G.promises[Z]};var TRP=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(TRP,_.Tq);var DtW=function(G,e){return _.sz(G,1,e)},E1v=function(G,e){return _.sz(G,2,e)};var CY=function(G){_.pB.call(this);var e=this;this.options=G;this.e4A=new _.G1;this.uwM=this.e4A.promise;this.iU8=new _.G1;this.hhu=1;this.pR8=new _.G1;this.ugM=[];this.c70=G.c70||function(){};
this.wBO=new zNC(Ka4(G.v0O||{}));irE(this,G.ox,G.j7B,G.ol4,G.fOF,Object.assign({},brE,G.e0O||{}));this.addOnDisposeCallback(function(){return void v13(e)})};
_.K(CY,_.pB);CY.prototype.snapshot=function(G){var e=this;return _.D(function(r){switch(r.nextAddress){case 1:if(e.isDisposed())throw Error("Ea");if(e.l8||e.sSa){r.jumpTo(2);break}return r.yield(e.iU8.promise,2);case 2:if(!e.l8){r.jumpTo(4);break}return r.yield(e.l8.snapshot(G),5);case 5:return r.return(r.yieldResult);case 4:throw e.sSa;}})};
var w_E=function(G){var e;return _.D(function(r){if(G.isDisposed())throw Error("Ea");(e=G.sI)!=null&&(e.endTimeMs=0,e.resolver(1));return r.yield(G.pR8.promise,0)})},v13=function(G){G.sSa=Error("Ga");
G.iU8.resolve();L0i(G.e4A.promise);G.e4A.reject(Error("Ga"));G.wBO.dispose();Promise.all(G.ugM).then(function(){var r;return _.D(function(Z){(r=G.l8)==null||r.dispose();G.l8=void 0;_.HL(Z)})});
G.ugM=[];var e;(e=G.sI)!=null&&(e.endTimeMs=0,e.resolver(1));L0i(G.pR8.promise);G.pR8.reject(Error("Ga"))};
CY.prototype.puw=function(G){var e,r;(e=this.l8)==null||(r=e.puw)==null||r.call(e,G)};
CY.prototype.b70=function(G,e){var r,Z,O;return(O=(r=this.l8)==null?void 0:(Z=r.b70)==null?void 0:Z.call(r,G,e))!=null?O:Promise.resolve()};
var $tE=function(G,e){var r=G.c70;G.c70=function(){r();e()}},S5w=function(G,e){G.isDisposed()||(G.l8=e,G.wBO.update(e.b6v()),G.iU8.resolve(),G.e4A.resolve(void 0),G.c70())};
CY.prototype.handleError=function(G){if(!this.isDisposed()){this.sSa=G;this.iU8.resolve();var e,r;(r=(e=this.options).uwZ)==null||r.call(e,G)}};
var q5b=function(G,e){e&&(Promise.all(G.ugM).then(function(){return void e.dispose()}),G.ugM=[])};
CY.prototype.setStatus=function(G){this.hhu=G;var e,r;(r=(e=this.options).azU)==null||r.call(e,G)};
var tmE=function(G){G.isDisposed()||(G.pR8.resolve(),G.pR8=new _.G1)},irE=function(G,e,r,Z,O,M){Z=Z===void 0?MmW():Z;
O=O===void 0?Promise.resolve(void 0):O;var T,E,b,w,q,t,g,l,X,H,I,C;_.D(function(u){switch(u.nextAddress){case 1:return u.yield(0,3);case 3:E=null;if(!T){u.jumpTo(6);break}G.setStatus(7);_.jr(u,7);return u.yield(sQ(T.snapshot({}),M.a3Z,function(){return Promise.resolve("E:CTO")}),9);
case 9:E=u.yieldResult;_.rL(u,6);break;case 7:_.k5(u),E="E:UCE";case 6:b=void 0,w=T?M.x4B:M.aov,q=new tA(w,M.cTD,M.bwh,M.loB),t=1;case 10:if(!(t<=M.maxAttempts)){u.jumpTo(12);break}if(t===1){u.jumpTo(13);break}G.setStatus(0);G.sI=new g1b(q.getValue(),M.nTZ,M.fjV);return u.yield(G.sI.promise,14);case 14:g=u.yieldResult,G.sI=void 0,g===1?(t=1,q.reset()):o8y(q);case 13:_.jr(u,15);l=void 0;if(r){l=r;u.jumpTo(17);break}G.setStatus(5);X=Z.zNu;return u.yield(sQ(lWP(e,X,E),M.b1j,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:l=u.yieldResult;case 17:return G.setStatus(3),u.yield(sQ(hwl(Z,l),M.rbU,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return G.setStatus(8),u.yield(O,20);case 20:return H=new _.pY({challenge:l,v0O:G.options.v0O,yyt:G.options.yyt}),u.yield(sQ(H.uwM,M.opy,function(){return Promise.reject(Error("Ja"))}),21);
case 21:b=H;u.jumpTo(12);break;case 15:I=_.k5(u),G.handleError(I),tmE(G);case 11:t++;u.jumpTo(10);break;case 12:if(G.isDisposed()){u.jumpTo(5);break}b&&(r=void 0,q5b(G,T),T=b,S5w(G,b),tmE(G));G.setStatus(2);G.sI=new g1b(M.a4B,M.nTZ,M.fjV);return u.yield(G.sI.promise,22);case 22:G.sI=void 0;if(G.isDisposed()){u.jumpTo(5);break}u.jumpTo(3);break;case 5:(C=T)==null||C.dispose(),_.HL(u)}})};
CY.prototype.b6v=function(){return this.wBO.share()};
var brE={a4B:432E5,nTZ:3E5,fjV:10,a3Z:1E4,b1j:3E4,rbU:3E4,opy:6E4,aov:1E3,x4B:6E4,cTD:6E5,bwh:.25,loB:2,maxAttempts:10},g1b=function(G,e,r){var Z=this;this.endTimeMs=Date.now()+G;this.promise=new Promise(function(M){Z.resolver=M});
var O=function(){var M=Z.endTimeMs-Date.now();M<=r?Z.resolver(0):setTimeout(O,Math.min(M,e))};
O()};var RwW,IWq=(RwW=Math.imul)!=null?RwW:function(G,e){return G*e|0},QT=[196,
200,224,18],uG=function(G,e,r){r=r===void 0?[]:r;this.maxItems=G;this.uy=e===void 0?0:e;this.vK=r},jZv=function(G){var e=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!e)return new uG(G);var r=e.split(",");if(r.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new uG(G);e=r.slice(1);e.length===1&&e[0]===""&&(e=[]);r=Number(r[0]);return isNaN(r)||r<0||r>e.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new uG(G)):new uG(G,r,e)};
uG.prototype.serialize=function(){return String(this.uy)+","+this.vK.join()};
uG.prototype.insert=function(G,e){var r=void 0;if(this.vK[this.uy]!==G){var Z=this.vK.indexOf(G);Z!==-1?(this.vK.splice(Z,1),Z<this.uy&&this.uy--,this.vK.splice(this.uy,0,G)):(r=this.vK[this.uy],this.vK[this.uy]=G)}this.uy=(this.uy+1)%this.maxItems;G=sZF("iU5q-!O9@$",this.serialize());r&&G&&e(r);return G};
var aWj=function(G,e){this.nsS=e;try{var r=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(Z){r=!1}r&&(this.index=jZv(G))},X_3=function(G,e,r,Z,O){var M=G.index?_.Ib(G.nsS,function(){return n1A(G.index,CqN(e),r,Z,O)},"W"):"u";
G.nsS.jXO(M)},Kaw=function(G,e,r){var Z=_.h(G.index?_.Ib(G.nsS,function(){return mtF(CqN(e),r)},"R"):["u"]),O=Z.next().value;
Z=Z.next().value;G.nsS.eT3(O);return Z};var fWE={toString:function(G){var e=[],r=0;G-=-2147483648;e[r++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(G%52);for(G=Math.floor(G/52);G>0;)e[r++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(G%62),G=Math.floor(G/62);return e.join("")}};var dtb=function(G){G=kGn(G);for(var e=2654435769,r=2654435769,Z=314159265,O=G.length,M=O,T=0,E=function(){e-=r;e-=Z;e^=Z>>>13;r-=Z;r-=e;r^=e<<8;Z-=e;Z-=r;Z^=r>>>13;e-=r;e-=Z;e^=Z>>>12;r-=Z;r-=e;r^=e<<16;Z-=e;Z-=r;Z^=r>>>5;e-=r;e-=Z;e^=Z>>>3;r-=Z;r-=e;r^=e<<10;Z-=e;Z-=r;Z^=r>>>15};M>=12;M-=12,T+=12)e+=Hrv(G,T),r+=Hrv(G,T+4),Z+=Hrv(G,T+8),E();
Z+=O;switch(M){case 11:Z+=G[T+10]<<24;case 10:Z+=G[T+9]<<16;case 9:Z+=G[T+8]<<8;case 8:r+=G[T+7]<<24;case 7:r+=G[T+6]<<16;case 6:r+=G[T+5]<<8;case 5:r+=G[T+4];case 4:e+=G[T+3]<<24;case 3:e+=G[T+2]<<16;case 2:e+=G[T+1]<<8;case 1:e+=G[T]}E();return fWE.toString(Z)},kGn=function(G){for(var e=[],r=0;r<G.length;r++)e.push(G.charCodeAt(r));
return e},Hrv=function(G,e){return G[e]+(G[e+1]<<8)+(G[e+2]<<16)+(G[e+3]<<24)};var nY=function(G){_.pB.call(this);this.uA=G;this.mcG=new _.G1};
_.K(nY,_.pB);var o1v=function(G,e){var r=setTimeout(function(){G.mcG.resolve()},e);
G.addOnDisposeCallback(function(){return void clearTimeout(r)})};
nY.prototype.tOv=function(G,e){var r=this.r9(G);e==null||e(r);return _.Ib(this.uA,function(){return _.uH(r,2)},this.oLO)};
var sZy=function(G,e,r,Z){return _.Ib(G.uA,function(){return r?G.tOv(e,Z):G.r9(e,Z)},G.lY3)},QZn=function(G,e,r,Z){nY.call(this,G);
this.x0U=e;this.m0Z=r;this.lY3="m";this.oLO="x";this.aOw=0;o1v(this,Z)};
_.K(QZn,nY);QZn.prototype.r9=function(G,e){var r=this;this.uA.tC(this.lY3);++this.aOw>=this.m0Z&&this.mcG.resolve();var Z=G();G=_.Ib(this.uA,function(){return r.x0U(Z)},"C");
if(G===void 0)throw new ZS(17,"YNJ:Undefined");if(!(G instanceof Uint8Array))throw new ZS(18,"ODM:Invalid");e==null||e(G);return G};
var IWb=function(G,e,r){nY.call(this,G);this.aHv=e;this.lY3="f";this.oLO="z";o1v(this,r)};
_.K(IWb,nY);IWb.prototype.r9=function(){return this.aHv};
var p_j=function(G,e,r){nY.call(this,G);this.sE2=e;this.lY3="w";this.oLO="z";o1v(this,r)};
_.K(p_j,nY);p_j.prototype.r9=function(){var G=this;return _.Ib(this.uA,function(){return _.NU(G.sE2)},"d")};
p_j.prototype.tOv=function(){return this.sE2};
var Cqn=function(G,e){nY.call(this,G);this.error=e;this.lY3="e";this.oLO="y"};
_.K(Cqn,nY);var u_P=function(G,e){var r=(e(G.error.message)+":"+e(G.error.stack)).substring(0,2048);e=r.length+1;r=cdF(r);var Z=new Uint8Array(4+r.length);Z.set([42,e&127|128,e>>7,G.error.code]);Z.set(r,4);return Z};
Cqn.prototype.r9=function(){if(this.arx)return this.arx;this.arx=u_P(this,function(G){return"_"+dtb(G)});
return u_P(this,function(G){return G})};
var n1c=function(G,e,r){nY.call(this,G);this.ice=e;this.clientState=r;this.lY3="S";this.oLO="q"};
_.K(n1c,nY);n1c.prototype.r9=function(){var G=Math.floor(Date.now()/1E3),e=[Math.random()*255,Math.random()*255],r=e.concat([this.ice&255,this.clientState],[G>>24&255,G>>16&255,G>>8&255,G&255]);G=new Uint8Array(2+r.length);G[0]=34;G[1]=r.length;G.set(r,2);r=G.subarray(2);for(var Z=e=e.length;Z<r.length;++Z)r[Z]^=r[Z%e];this.uA.rd0(this.clientState);return G};var mty={nvD:3E4,gBN:2E4},mT=function(G){_.pB.call(this);var e=this;this.eZ8=new _.G1;this.g01=0;this.wT=void 0;this.state=2;this.vm=G.vm;this.ox=G.ox;this.e0O=Object.assign({},mty,G.e0O||{});this.eA=G.vm.b6v();var r;this.onError=(r=G.onError)!=null?r:function(){};
this.sP0=G.sP0||!1;if(cdy(G)){var Z=this.vm;this.lQ1=function(){return w_E(Z).catch(function(T){T=e.reportError(new ZS(e.nt?20:32,"TRG:Disposed",T));e.wT=T;var E;(E=e.nt)==null||E.dispose();e.nt=void 0;e.eZ8.reject(T)})};
$tE(Z,function(){return void Y5c(e)});
Z.hhu===2&&Y5c(this)}else this.lQ1=G.vj4,Y5c(this);var O=this.eA.share();O.tC("o");var M=new U0c(O,"o");this.eZ8.promise.then(function(){M.done();O.pW();O.dispose()},function(){return void O.dispose()});
this.addOnDisposeCallback(function(){e.nt?(e.nt.dispose(),e.nt=void 0):e.wT?e.eA.pW():(e.wT=e.reportError(new ZS(32,"TNP:Disposed")),e.eA.pW(),e.eZ8.reject(e.wT))});
_.Xx(this,this.eA)};
_.K(mT,_.pB);mT.prototype.gFY=function(){return this.eZ8.promise};
var ydC=function(G,e){if(!(e instanceof ZS))if(e instanceof _.HK){var r=Error(e.toString());r.stack=e.stack;e=new ZS(11,"EBH:Error",r)}else e=new ZS(12,"BSO:Unknown",e);return G.reportError(e)},Y5c=function(G){var e,r,Z,O,M,T,E,b,w,q,t,g,l,X,H;
return _.D(function(I){switch(I.nextAddress){case 1:e=void 0;G.g01++;r=new _.G1;G.vm instanceof CY&&G.vm.ugM.push(r.promise);if(!G.sP0){I.jumpTo(2);break}Z=new _.G1;setTimeout(function(){return void Z.resolve()});
return I.yield(Z.promise,2);case 2:return O=G.eA.share(),_.jr(I,4,5),G.state=5,M={},T=[],I.yield(sQ(G.vm.snapshot({j0:M,bPJ:T}),G.e0O.gBN,function(){return Promise.reject(new ZS(15,"MDA:Timeout"))}),7);
case 7:E=I.yieldResult;if(G.isDisposed())throw new ZS(G.nt?20:32,"MDA:Disposed");b=T[0];G.state=6;return I.yield(sQ(AdE(G.ox,E),G.e0O.nvD,function(){return Promise.reject(new ZS(10,"BWB:Timeout"))}),8);
case 8:w=I.yieldResult;if(G.isDisposed())throw new ZS(G.nt?20:32,"BWB:Disposed");G.state=7;e=_.Ib(O,function(){var u=FaE(G,w,r,b);u.mcG.promise.then(function(){return void G.lQ1()});
return u},"i");
case 5:_.Xa(I);O.dispose();_.fm(I,6);break;case 4:q=_.k5(I);(t=e)==null||t.dispose();if(!G.wT){g=ydC(G,q);r.resolve();var C;if(C=G.vm instanceof CY&&G.g01<2)a:if(q instanceof ZS)C=q.code!==32&&q.code!==20&&q.code!==10;else{if(q instanceof _.HK)switch(q.code){case 2:case 13:case 14:case 4:break;default:C=!1;break a}C=!0}if(C)return l=(1+Math.random()*.25)*(G.nt?6E4:1E3),X=setTimeout(function(){return void G.lQ1()},l),G.addOnDisposeCallback(function(){return void clearTimeout(X)}),I.return();
G.wT=g}O.logError(G.nt?13:14);G.eZ8.reject(G.wT);return I.return();case 6:G.state=8,G.g01=0,(H=G.nt)==null||H.dispose(),G.nt=e,G.eZ8.resolve(),_.HL(I)}})},FaE=function(G,e,r,Z){var O=fbl(e,2)*1E3;
if(O<=0)throw new ZS(31,"TTM:Invalid");if(_.gU(e,4))return new p_j(G.eA,_.gU(e,4),O);if(!fbl(e,3))return new IWb(G.eA,DWC(_.Dg(e,1)),O);if(!Z)throw new ZS(4,"PMD:Undefined");Z=Z(DWC(_.Dg(e,1)));if(!(Z instanceof Function))throw new ZS(16,"APF:Failed");G.uuj=Math.floor((Date.now()+O)/1E3);G=new QZn(G.eA,Z,fbl(e,3),O);G.addOnDisposeCallback(function(){return void r.resolve()});
return G};
mT.prototype.r9=function(G){return JdC(this,Object.assign({},G),!1)};
mT.prototype.tOv=function(G){return JdC(this,Object.assign({},G),!0)};
mT.prototype.f85=function(G){if(G>150)return!1;try{return this.cache=new aWj(G,this.eA),!0}catch(e){return this.reportError(new ZS(22,"GBJ:init",e)),!1}};
mT.prototype.reportError=function(G){this.eA.logError(G.code);this.onError(G);return G};
var BRW=function(G,e){e=e instanceof ZS?e:new ZS(5,"TVD:error",e);return G.reportError(e)},JdC=function(G,e,r){try{if(G.isDisposed())throw new ZS(21,"BNT:disposed");
if(!G.nt&&G.wT)throw G.wT;var Z,O;return(O=(Z=xtE(G,e,r))!=null?Z:Pqn(G,e,r))!=null?O:UtE(G,e,r)}catch(M){if(!e.pZa)throw BRW(G,M);return zwE(G,r,M)}},xtE=function(G,e,r){var Z;
return(Z=G.nt)==null?void 0:sZy(Z,function(){return Wal(G,e)},r,function(O){var M;
if(G.nt instanceof QZn&&((M=e.xH)==null?0:M.xyh))try{var T;(T=G.cache)==null||X_3(T,Wal(G,e),O,e.xH.eh0,G.uuj-120)}catch(E){G.reportError(new ZS(24,"ELX:write",E))}})},Pqn=function(G,e,r){var Z;
if((Z=e.xH)!=null&&Z.vt5)try{var O,M=(O=G.cache)==null?void 0:Kaw(O,Wal(G,e),e.xH.eh0);return M?r?_.Ib(G.eA,function(){return _.uH(M,2)},"a"):M:void 0}catch(T){G.reportError(new ZS(23,"RXO:read",T))}},UtE=function(G,e,r){var Z={stack:[],
error:void 0,hasError:!1};try{if(!e.dz3)throw new ZS(29,"SDF:notready");return sZy(ifW(Z,new n1c(G.eA,0,G.state)),function(){return Wal(G,e)},r)}catch(O){Z.error=O,Z.hasError=!0}finally{bfy(Z)}},zwE=function(G,e,r){var Z={stack:[],
error:void 0,hasError:!1};try{var O=BRW(G,r);return sZy(ifW(Z,new Cqn(G.eA,O)),function(){return[]},e)}catch(M){Z.error=M,Z.hasError=!0}finally{bfy(Z)}},Wal=function(G,e){return e.nzS?e.nzS:e.j0?_.Ib(G.eA,function(){return e.nzS=cdF(e.j0)},"c"):[]},cdy=function(G){return uy(function(e){if(!vO(e))return!1;
for(var r=_.h(Object.entries(G)),Z=r.next();!Z.done;Z=r.next()){var O=_.h(Z.value);Z=O.next().value;O=O.next().value;if(!(Z in e)){if(O.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!O(e[Z]))return!1}return!0})}({vm:function(G){return uy(function(e){return e instanceof G})}(CY)},"");var NRb=function(){var G=_.zF();this.JSC$9923_streamzService=G;G.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",w1("cookie_enabled"),w1("cookie_3p_enabled"),_.SK("browser"))};
NRb.prototype.increment=function(G,e,r){this.JSC$9923_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",G,e,r)};
var VP$=function(){var G=_.zF();this.JSC$9947_streamzService=G;G.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",$W("tick"),w1("from_st_cookie"))};
VP$.prototype.increment=function(G,e){this.JSC$9947_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",G,e)};
var Lay=function(){var G=_.zF();this.JSC$9953_streamzService=G;G.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.SK("status"))};
Lay.prototype.increment=function(G){this.JSC$9953_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",G)};
var GcW=function(){var G=_.zF();this.JSC$9956_streamzService=G;G.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.SK("stage"),w1("is_using_ytd_player"),w1("has_expandable_tiles"))};
GcW.prototype.increment=function(G,e,r){this.JSC$9956_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",G,e,r)};
var ezl=function(){var G=_.zF();this.JSC$9959_streamzService=G;G.addNewCounter("/client_streamz/youtube/web/response_signature",_.SK("check_status"))};
ezl.prototype.increment=function(G){this.JSC$9959_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/web/response_signature",G)};
var r0w=function(){var G=_.zF();this.JSC$9962_streamzService=G;G.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.SK("sig"),$W("de"))};
r0w.prototype.increment=function(G,e){this.JSC$9962_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/web/e_sig_log",G,e)};
var ZFP=function(){var G=_.zF();this.JSC$9965_streamzService=G;G.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.SK("sig"),$W("de"))};
ZFP.prototype.increment=function(G,e){this.JSC$9965_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/web/e_sig_en",G,e)};
_.OFW=function(){var G=_.zF();this.JSC$9968_streamzService=G;G.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.SK("action"))};
_.OFW.prototype.increment=function(G){this.JSC$9968_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/web/enforcement_intent",G)};var cK=window;var MSE=(new Date).getTime();_.c2.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.c2.createSet("action","cite","data","formaction","href","manifest","poster","src");var VSn=function(G){this.servicePromise_=G;G.then((0,_.CB)(function(){},this),function(){},this)},hzv=function(G,e,r){G.servicePromise_.then(function(Z){var O=Z[e];
if(!O)throw Error("Ka`"+e);return O.apply(Z,r)})},E2E=function(G,e,r){for(var Z=Array(arguments.length-2),O=2;O<arguments.length;O++)Z[O-2]=arguments[O];
O=TLl(G,e).then(function(M){return M.apply(null,Z)},function(M){M=Error("La`"+e+"`"+G+"`"+M,{cause:M});
delete Daj[e];return _.Ss(M)});
return new VSn(O)},Daj={},TLl=function(G,e){var r=Daj[e];
if(r)return r;r=(r=_.Lz(e))?_.Nz(r):(new _.aQ(function(Z,O){var M=(new ai(document)).createElement("SCRIPT");M.async=!0;_.h6(M,_.sk(MzS(G)));M.onload=M.onreadystatechange=function(){M.readyState&&M.readyState!="loaded"&&M.readyState!="complete"||Z()};
M.onerror=function(T){O(Error("Ma`"+e+"`"+G,{cause:T}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(M)})).then(function(){var Z=_.Lz(e);
if(!Z)throw Error("Na`"+e+"`"+G);return Z});
return Daj[e]=r};var iFE={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},v2W=function(){var G=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=Y5A(function(){return _.D(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(bFv(G),2);G.rsaForList.length>
0&&document.addEventListener("click",G.requestAccessForHelpPanel);_.HL(e)})});
this.requestAccessForHelpPanel=function(){if(!(G.rsaForPromises.length>0)){for(var e=_.h(G.rsaForList),r=e.next();!r.done;r=e.next()){r=r.value;try{G.rsaForPromises.push(document.requestStorageAccessFor(r))}catch(Z){}}Promise.all(G.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){G.reset()})}}};
v2W.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var bFv=function(G){var e,r,Z,O;return _.D(function(M){switch(M.nextAddress){case 1:e=_.h(Object.values(iFE)),r=e.next();case 2:if(r.done){M.jumpTo(0);break}Z=r.value;_.jr(M,5);return M.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:Z}),7);case 7:O=M.yieldResult;O.state!=="granted"&&G.rsaForList.push(Z);_.rL(M,3);break;case 5:_.k5(M);M.jumpTo(0);break;case 3:r=e.next(),M.jumpTo(2)}})};(new v2W).initialize();var wGb=function(G){this.JSC$9982_loader_=G};
wGb.prototype.startHelp=function(G){hzv(this.JSC$9982_loader_,"startHelp",arguments)};
wGb.prototype.JSC$9984_loadChatSupport=function(G){hzv(this.JSC$9982_loader_,"loadChatSupport",arguments)};
var Suy=function(G,e){e=e||{};G=E2E($aj,"help.service.Lazy.create",G,{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 wGb(G)},$aj=new Bg(Bpf,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var quv=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(quv,_.Tq);var tSw=_.a2(quv);var g2v=[0,_.ya,C2,$BS];_.lGl=new function(G,e,r,Z){this.configType=G;this.flagName=r;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 jcS=function(){this.retriever=_.v_().resolve(Rzl)};_.c4={get payments(){return window.payments}};Ad$(Node);Ad$(Element);var aGb=Ad$(HTMLElement);Ad$(SVGElement);var XGE,KBE,A8,fG3;XGE=function(G){return typeof G.className=="string"?G.className:G.getAttribute&&G.getAttribute("class")||""};
KBE=function(G){return G.classList?G.classList:XGE(G).match(/\S+/g)||[]};
_.YV=function(G,e){typeof G.className=="string"?G.className=e:G.setAttribute&&G.setAttribute("class",e)};
_.yE=function(G,e){return G.classList?G.classList.contains(e):_.Y4(KBE(G),e)};
_.m2=function(G,e){if(G.classList)G.classList.add(e);else if(!_.yE(G,e)){var r=XGE(G);_.YV(G,r+(r.length>0?" "+e:e))}};
A8=function(G,e){if(G.classList)Array.prototype.forEach.call(e,function(O){_.m2(G,O)});
else{var r={};Array.prototype.forEach.call(KBE(G),function(O){r[O]=!0});
Array.prototype.forEach.call(e,function(O){r[O]=!0});
e="";for(var Z in r)e+=e.length>0?" "+Z:Z;_.YV(G,e)}};
_.u1=function(G,e){G.classList?G.classList.remove(e):_.yE(G,e)&&_.YV(G,Array.prototype.filter.call(KBE(G),function(r){return r!=e}).join(" "))};
fG3=function(G,e){G.classList?Array.prototype.forEach.call(e,function(r){_.u1(G,r)}):_.YV(G,Array.prototype.filter.call(KBE(G),function(r){return!_.Y4(e,r)}).join(" "))};var kcn=function(G){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=G.document},o2v=function(G,e){HFc(G);
var r=document.createElement("div"),Z;(Z=e.parentNode)==null||Z.insertBefore(r,e);r.tabIndex=0;r.id="fc-focus-trap-pre-div";r=document.createElement("div");var O;(O=e.parentNode)==null||O.insertBefore(r,e.nextSibling);r.tabIndex=0;r.id="fc-focus-trap-post-div";var M=daP(G,e),T=daP(G,e,!0);M&&T&&(G.focusChangeHandler=function(){var E=G.document.activeElement;if(E)if(_.zX(e,E))G.previouslyFocusedElement=E;else if(E===G.document.activeElement)switch(G.previouslyFocusedElement){case M:T.focus();G.previouslyFocusedElement=
T;break;default:M.focus(),G.previouslyFocusedElement=M}},G.document.addEventListener("focus",G.focusChangeHandler,!0),G.document.addEventListener("focusin",G.focusChangeHandler))},HFc=function(G){G.focusChangeHandler&&(document.removeEventListener("focus",G.focusChangeHandler,!0),document.removeEventListener("focusin",G.focusChangeHandler),G.focusChangeHandler=null);
var e;(e=document.getElementById("fc-focus-trap-pre-div"))==null||e.remove();var r;(r=document.getElementById("fc-focus-trap-post-div"))==null||r.remove()},scv=function(G,e,r,Z,O){r=r===void 0?!0:r;
var M;O=(M=O===void 0?null:O)!=null?M:daP(G,e,Z===void 0?!1:Z);O!==null&&(O.focus(),r&&o2v(G,e))};
kcn.prototype.disableButton=function(G,e){e=e===void 0?null:e;G.disabled=!0;e&&_.m2(G,e)};
var daP=function(G,e,r){r=r===void 0?!1:r;if(Eha(e)&&!r)return e;var Z=r?[].slice.call(e.children,0).reverse():e.children;Z=_.h(Z);for(var O=Z.next();!O.done;O=Z.next())if(O=O.value,aGb(O)&&(O=daP(G,O,r)))return O;return Eha(e)&&r?e:null};var QcC=function(G){this.originalBodyOverflow="";this.JSC$10009_domHelper=sw(G);var e;this.isScrollingEnabled=((e=this.JSC$10009_domHelper.JSC$9335_document_.body)==null?void 0:e.style.overflow)!=="hidden"};
QcC.prototype.enableScrolling=function(){this.isScrollingEnabled||(this.JSC$10009_domHelper.JSC$9335_document_.body.style.overflow=this.originalBodyOverflow,this.isScrollingEnabled=!0)};_.Bz(_.ux,_.pB);_.V=_.ux.prototype;_.V.JSC$10012_id_=0;_.V.disposeInternal=function(){_.ux.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10010_listener_;delete this.handler_};
_.V.start=function(G){this.stop();this.JSC$10012_id_=kV(this.callback_,G!==void 0?G:this.JSC$10010_interval_)};
_.V.stop=function(){this.isActive()&&_.O_.clearTimeout(this.JSC$10012_id_);this.JSC$10012_id_=0};
_.V.fire=function(){this.stop();this.JSC$10012_doAction_()};
_.V.isActive=function(){return this.JSC$10012_id_!=0};
_.V.JSC$10012_doAction_=function(){this.JSC$10012_id_=0;this.JSC$10010_listener_&&this.JSC$10010_listener_.call(this.handler_)};_.tP=function(G){_.pB.call(this);this.handler_=G;this.JSC$10013_keys_={}};
_.Bz(_.tP,_.pB);var IGl=[];_.tP.prototype.listen=function(G,e,r,Z){Array.isArray(e)||(e&&(IGl[0]=e.toString()),e=IGl);for(var O=0;O<e.length;O++){var M=_.w2(G,e[O],r||this.handleEvent,Z||!1,this.handler_||this);if(!M)break;this.JSC$10013_keys_[M.key]=M}return this};
_.tP.prototype.listenOnce=function(G,e,r,Z){return pGb(this,G,e,r,Z)};
var pGb=function(G,e,r,Z,O,M){if(Array.isArray(r))for(var T=0;T<r.length;T++)pGb(G,e,r[T],Z,O,M);else{e=EY(e,r,Z||G.handleEvent,O,M||G.handler_||G);if(!e)return G;G.JSC$10013_keys_[e.key]=e}return G};
_.tP.prototype.unlisten=function(G,e,r,Z,O){if(Array.isArray(e))for(var M=0;M<e.length;M++)this.unlisten(G,e[M],r,Z,O);else if(G=OzS(G,e,r||this.handleEvent,_.PA(Z)?!!Z.capture:!!Z,O||this.handler_||this))i1(G),delete this.JSC$10013_keys_[G.key];return this};
_.tP.prototype.removeAll=function(){_.c2.forEach(this.JSC$10013_keys_,function(G,e){this.JSC$10013_keys_.hasOwnProperty(e)&&i1(G)},this);
this.JSC$10013_keys_={}};
_.tP.prototype.disposeInternal=function(){_.tP.superClass_.disposeInternal.call(this);this.removeAll()};
_.tP.prototype.handleEvent=function(){throw Error("Oa");};var FX=function(){_.pB.call(this);this.services_={}};
_.Bz(FX,_.pB);FX.prototype.connect=function(G){G&&G()};
FX.prototype.isConnected=function(){return!0};
FX.prototype.registerService=function(G,e,r){this.services_[G]={callback:e,objectPayload:!!r}};
FX.prototype.getService=function(G,e){var r=this.services_[G];return r?r:this.defaultService_?{callback:_.VU(this.defaultService_,G),objectPayload:_.PA(e)}:null};
var CAC=function(G,e){if(e&&typeof G==="string")try{return JSON.parse(G)}catch(r){return null}else if(!e&&typeof G!=="string")return(0,_.dT)(G);return G};
FX.prototype.disposeInternal=function(){FX.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 BK=function(G,e){this.sequence_=[];this.onCancelFunction_=G;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};
BK.prototype.cancel=function(G){if(this.fired_)this.result_ instanceof BK&&this.result_.cancel();else{if(this.parent_){var e=this.parent_;delete this.parent_;G?e.cancel(G):(e.branches_--,e.branches_<=0&&e.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new xV(this))}};
BK.prototype.continue_=function(G,e){this.blocked_=!1;uFw(this,G,e)};
var uFw=function(G,e,r){G.fired_=!0;G.result_=r;G.hadError_=!e;n2l(G)},c0C=function(G){if(G.fired_){if(!G.silentlyCanceled_)throw new maE(G);
G.silentlyCanceled_=!1}};
BK.prototype.callback=function(G){c0C(this);uFw(this,!0,G)};
BK.prototype.errback=function(G){c0C(this);uFw(this,!1,G)};
var Yun=function(G,e,r){PK(G,e,null,r)};
BK.prototype.finally=function(G){var e=this;return y0n(new Promise(function(r,Z){PK(e,function(O){G();r(O)},function(O){G();
Z(O)})}))};
var PK=function(G,e,r,Z){var O=G.fired_;O||(e===r?e=r=ab(e):(e=ab(e),r=ab(r)));G.sequence_.push([e,r,Z]);O&&n2l(G)};
BK.prototype.then=function(G,e,r){var Z,O,M=new _.aQ(function(T,E){O=T;Z=E});
PK(this,O,function(T){T instanceof xV?M.cancel():Z(T);return A0v},this);
return M.then(G,e,r)};
bzP(BK);var FBE=function(G,e){e instanceof BK?Yun(G,(0,_.CB)(e.branch,e)):Yun(G,function(){return e})};
BK.prototype.branch=function(G){var e=new BK;PK(this,e.callback,e.errback,e);G&&(e.parent_=this,this.branches_++);return e};
BK.prototype.isError=function(G){return G instanceof Error};
var J0W=function(G){return ZR(G.sequence_,function(e){return typeof e[1]==="function"})},A0v={},n2l=function(G){if(G.unhandledErrorId_&&G.fired_&&J0W(G)){var e=G.unhandledErrorId_,r=BLc[e];
r&&(_.O_.clearTimeout(r.JSC$10030_id_),delete BLc[e]);G.unhandledErrorId_=0}G.parent_&&(G.parent_.branches_--,delete G.parent_);e=G.result_;for(var Z=r=!1;G.sequence_.length&&!G.blocked_;){var O=G.sequence_.shift(),M=O[0],T=O[1];O=O[2];if(M=G.hadError_?T:M)try{var E=M.call(O||G.defaultScope_,e);E===A0v&&(E=void 0);E!==void 0&&(G.hadError_=G.hadError_&&(E==e||G.isError(E)),G.result_=e=E);if(vZE(e)||typeof _.O_.Promise==="function"&&e instanceof _.O_.Promise)Z=!0,G.blocked_=!0}catch(b){e=b,G.hadError_=
!0,J0W(G)||(r=!0)}}G.result_=e;Z&&(E=(0,_.CB)(G.continue_,G,!0),Z=(0,_.CB)(G.continue_,G,!1),e instanceof BK?(PK(e,E,Z),e.blocking_=!0):e.then(E,Z));r&&(e=new xaS(e),BLc[e.JSC$10030_id_]=e,G.unhandledErrorId_=e.JSC$10030_id_)},y0n=function(G){var e=new BK;
G.then(function(r){e.callback(r)},function(r){e.errback(r)});
return e},maE=function(){_.rs.call(this)};
_.Bz(maE,_.rs);maE.prototype.message="Deferred has already fired";maE.prototype.name="AlreadyCalledError";var xV=function(){_.rs.call(this)};
_.Bz(xV,_.rs);xV.prototype.message="Deferred was canceled";xV.prototype.name="CanceledError";var xaS=function(G){this.JSC$10030_id_=_.O_.setTimeout((0,_.CB)(this.throwError,this),0);this.JSC$10030_error_=G};
xaS.prototype.throwError=function(){delete BLc[this.JSC$10030_id_];throw this.JSC$10030_error_;};
var BLc={};var PAE={1:"NativeMessagingTransport"},Uan=["pu","lru","pru","lpu","ppu"],WBv=function(){for(var G=10,e=zzS,r=e.length,Z="";G-- >0;)Z+=e.charAt(Math.floor(Math.random()*r));return Z},zzS="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var US=function(G){_.pB.call(this);this.JSC$10033_domHelper_=G||sw()};
_.Bz(US,_.pB);US.prototype.transportType=0;US.prototype.getWindow=function(){return this.JSC$10033_domHelper_.getWindow()};
US.prototype.getName=function(){return PAE[String(this.transportType)]||""};var zi=function(G,e,r,Z,O){US.call(this,r);this.JSC$10036_channel_=G;this.protocolVersion_=O||2;this.peerHostname_=e||"*";this.JSC$10036_eventHandler_=new _.tP(this);this.maybeAttemptToConnectTimer_=new _.qN(100,this.getWindow());this.oneSidedHandshake_=!!Z;this.setupAckReceived_=new BK;this.setupAckSent_=new BK;this.JSC$10036_connected_=new BK;this.endpointId_=WBv();this.peerEndpointId_=null;this.oneSidedHandshake_?NLP(this.JSC$10036_channel_)==1?FBE(this.JSC$10036_connected_,this.setupAckReceived_):
FBE(this.JSC$10036_connected_,this.setupAckSent_):(FBE(this.JSC$10036_connected_,this.setupAckReceived_),this.protocolVersion_==2&&FBE(this.JSC$10036_connected_,this.setupAckSent_));Yun(this.JSC$10036_connected_,this.notifyConnected_,this);this.JSC$10036_connected_.callback(!0);this.JSC$10036_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.Bz(zi,US);zi.prototype.peerProtocolVersion_=null;zi.prototype.initialized_=!1;zi.prototype.transportType=1;var LBE={};zi.prototype.sendTimerId_=0;
var rGw=function(G){var e=G.event_.data;if(typeof e!=="string")return!1;var r=e.indexOf("|"),Z=e.indexOf(":");if(r==-1||Z==-1)return!1;var O=e.substring(0,r);r=e.substring(r+1,Z);e=e.substring(Z+1);if(Z=WK[O])return Z.xpcDeliver(r,e,G.event_.origin),!0;Z=Grb(e)[0];for(var M in WK){var T=WK[M];if(NLP(T)==1&&!T.isConnected()&&r=="tp"&&(Z=="SETUP"||Z=="SETUP_NTPV2")&&erb(T,G.event_.origin))return delete WK[T.name],T.name=O,WK[O]=T,T.xpcDeliver(r,e),!0}return!1},ZLj=function(G){G.protocolVersion_!=2||
G.peerProtocolVersion_!=null&&G.peerProtocolVersion_!=2||G.send("tp","SETUP_NTPV2,"+G.endpointId_);
G.peerProtocolVersion_!=null&&G.peerProtocolVersion_!=1||G.send("tp","SETUP")},OLP=function(G,e){if(G.protocolVersion_!=2||G.peerProtocolVersion_!=null&&G.peerProtocolVersion_!=2||e!=2){if(G.peerProtocolVersion_!=null&&G.peerProtocolVersion_!=1||e!=1)return;
G.send("tp","SETUP_ACK")}else G.send("tp","SETUP_ACK_NTPV2");G.setupAckSent_.fired_||G.setupAckSent_.callback(!0)},M43=function(G,e){e>G.peerProtocolVersion_&&(G.peerProtocolVersion_=e);
G.peerProtocolVersion_==1&&(G.setupAckSent_.fired_||G.oneSidedHandshake_||G.setupAckSent_.callback(!0),G.peerEndpointId_=null)};
_.V=zi.prototype;_.V.connect=function(){var G=this.getWindow(),e=_.zS(G),r=LBE[e];typeof r!=="number"&&(r=0);r==0&&_.w2(G.postMessage?G:G.document,"message",rGw,!1,zi);LBE[e]=r+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.V.maybeAttemptToConnect_=function(){var G=NLP(this.JSC$10036_channel_)==0;this.oneSidedHandshake_&&G||this.JSC$10036_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),ZLj(this))};
_.V.send=function(G,e){var r=this.JSC$10036_channel_.peerWindowObject_;r&&(this.send=function(Z,O){var M=this,T=this.JSC$10036_channel_.name;this.sendTimerId_=kV(function(){M.sendTimerId_=0;try{var E=r.postMessage?r:r.document;E.postMessage&&E.postMessage(T+"|"+Z+":"+O,M.peerHostname_)}catch(b){}},0)},this.send(G,e))};
_.V.notifyConnected_=function(){var G=this.JSC$10036_channel_,e=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;G.isConnected()||G.connectionDelay_&&G.connectionDelay_.isActive()||(G.state_=2,_.TX(G.connectionDelay_),e!==void 0?(G.connectionDelay_=new _.ux(G.connectCb_,e),G.connectionDelay_.start()):(G.connectionDelay_=null,G.connectCb_()))};
_.V.disposeInternal=function(){if(this.initialized_){var G=this.getWindow(),e=_.zS(G),r=LBE[e];LBE[e]=r-1;r==1&&_.Rb(G.postMessage?G:G.document,"message",rGw,!1,zi)}this.sendTimerId_&&(_.O_.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.TX(this.JSC$10036_eventHandler_);delete this.JSC$10036_eventHandler_;_.TX(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10036_connected_.cancel();delete this.JSC$10036_connected_;delete this.send;zi.superClass_.disposeInternal.call(this)};
var Grb=function(G){G=G.split(",");G[1]=G[1]||null;return G};var hrw;_.NQ=function(G){if(G.getValues&&typeof G.getValues=="function")return G.getValues();if(typeof Map!=="undefined"&&G instanceof Map||typeof Set!=="undefined"&&G instanceof Set)return Array.from(G.values());if(typeof G==="string")return G.split("");if(_.FN(G)){for(var e=[],r=G.length,Z=0;Z<r;Z++)e.push(G[Z]);return e}return _.c2.getValues(G)};
_.V4W=function(G){if(G.getKeys&&typeof G.getKeys=="function")return G.getKeys();if(!G.getValues||typeof G.getValues!="function"){if(typeof Map!=="undefined"&&G instanceof Map)return Array.from(G.keys());if(!(typeof Set!=="undefined"&&G instanceof Set)){if(_.FN(G)||typeof G==="string"){var e=[];G=G.length;for(var r=0;r<G;r++)e.push(r);return e}return _.c2.getKeys(G)}}};
hrw=function(G,e,r){if(G.forEach&&typeof G.forEach=="function")G.forEach(e,r);else if(_.FN(G)||typeof G==="string")Array.prototype.forEach.call(G,e,r);else for(var Z=_.V4W(G),O=_.NQ(G),M=O.length,T=0;T<M;T++)e.call(r,O[T],Z&&Z[T],G)};var $2i,M1,hK,wgE,TlS,EcE,Dhy,vc3,iLy;
_.nO=function(G,e){this.JSC$10041_domain_=this.userInfo_=this.scheme_="";this.JSC$10041_port_=null;this.fragment_=this.JSC$10041_path_="";this.JSC$10041_ignoreCase_=!1;var r;G instanceof _.nO?(this.JSC$10041_ignoreCase_=e!==void 0?e:G.JSC$10041_ignoreCase_,_.LY(this,G.scheme_),this.userInfo_=G.userInfo_,_.Gj(this,G.JSC$10041_domain_),_.eg(this,G.JSC$10041_port_),_.rd(this,G.getPath()),_.ZX(this,G.JSC$10041_queryData_.clone()),_.OA(this,G.fragment_)):G&&(r=_.hd(String(G)))?(this.JSC$10041_ignoreCase_=
!!e,_.LY(this,r[1]||"",!0),this.userInfo_=M1(r[2]||""),_.Gj(this,r[3]||"",!0),_.eg(this,r[4]),_.rd(this,r[5]||"",!0),_.ZX(this,r[6]||"",!0),_.OA(this,r[7]||"",!0)):(this.JSC$10041_ignoreCase_=!!e,this.JSC$10041_queryData_=new _.Vj(null,this.JSC$10041_ignoreCase_))};
_.nO.prototype.toString=function(){var G=[],e=this.scheme_;e&&G.push(hK(e,TlS,!0),":");var r=this.JSC$10041_domain_;if(r||e=="file")G.push("//"),(e=this.userInfo_)&&G.push(hK(e,TlS,!0),"@"),G.push(_.em(r).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),r=this.JSC$10041_port_,r!=null&&G.push(":",String(r));if(r=this.getPath())this.JSC$10041_domain_&&r.charAt(0)!="/"&&G.push("/"),G.push(hK(r,r.charAt(0)=="/"?Dhy:EcE,!0));(r=this.JSC$10041_queryData_.toString())&&G.push("?",r);(r=this.fragment_)&&G.push("#",
hK(r,iLy));return G.join("")};
_.nO.prototype.resolve=function(G){var e=this.clone(),r=!!G.scheme_;r?_.LY(e,G.scheme_):r=!!G.userInfo_;r?e.userInfo_=G.userInfo_:r=!!G.JSC$10041_domain_;r?_.Gj(e,G.JSC$10041_domain_):r=G.JSC$10041_port_!=null;var Z=G.getPath();if(r)_.eg(e,G.JSC$10041_port_);else if(r=!!G.JSC$10041_path_){if(Z.charAt(0)!="/")if(this.JSC$10041_domain_&&!this.JSC$10041_path_)Z="/"+Z;else{var O=e.getPath().lastIndexOf("/");O!=-1&&(Z=e.getPath().slice(0,O+1)+Z)}O=Z;if(O==".."||O==".")Z="";else if(_.vA(O,"./")||_.vA(O,
"/.")){Z=_.Vp(O,"/");O=O.split("/");for(var M=[],T=0;T<O.length;){var E=O[T++];E=="."?Z&&T==O.length&&M.push(""):E==".."?((M.length>1||M.length==1&&M[0]!="")&&M.pop(),Z&&T==O.length&&M.push("")):(M.push(E),Z=!0)}Z=M.join("/")}else Z=O}r?_.rd(e,Z):r=G.JSC$10041_queryData_.toString()!=="";r?_.ZX(e,G.JSC$10041_queryData_.clone()):r=!!G.fragment_;r&&_.OA(e,G.fragment_);return e};
_.nO.prototype.clone=function(){return new _.nO(this)};
_.LY=function(G,e,r){G.scheme_=r?M1(e,!0):e;G.scheme_&&(G.scheme_=G.scheme_.replace(/:$/,""));return G};
_.Gj=function(G,e,r){G.JSC$10041_domain_=r?M1(e,!0):e;return G};
_.eg=function(G,e){if(e){e=Number(e);if(isNaN(e)||e<0)throw Error("Pa`"+e);G.JSC$10041_port_=e}else G.JSC$10041_port_=null;return G};
_.nO.prototype.getPath=function(){return this.JSC$10041_path_};
_.rd=function(G,e,r){G.JSC$10041_path_=r?M1(e,!0):e;return G};
_.ZX=function(G,e,r){e instanceof _.Vj?(G.JSC$10041_queryData_=e,bL3(G.JSC$10041_queryData_,G.JSC$10041_ignoreCase_)):(r||(e=hK(e,vc3)),G.JSC$10041_queryData_=new _.Vj(e,G.JSC$10041_ignoreCase_));return G};
_.eO=function(G,e,r){G.JSC$10041_queryData_.set(e,r);return G};
_.Gy=function(G,e){return G.JSC$10041_queryData_.get(e)};
_.OA=function(G,e,r){G.fragment_=r?M1(e):e;return G};
_.Tj=function(G){_.eO(G,"zx",NM());return G};
_.LB=function(G,e){return G instanceof _.nO?G.clone():new _.nO(G,e)};
$2i=function(G,e){G instanceof _.nO||(G=_.LB(G));e instanceof _.nO||(e=_.LB(e));return G.resolve(e)};
M1=function(G,e){return G?e?decodeURI(G.replace(/%25/g,"%2525")):decodeURIComponent(G):""};
hK=function(G,e,r){return typeof G==="string"?(G=encodeURI(G).replace(e,wgE),r&&(G=G.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),G):null};
wgE=function(G){G=G.charCodeAt(0);return"%"+(G>>4&15).toString(16)+(G&15).toString(16)};
TlS=/[#\/\?@]/g;EcE=/[#\?:]/g;Dhy=/[#\?]/g;vc3=/[#\?@]/g;iLy=/#/g;_.Vj=function(G,e){this.count_=this.keyMap_=null;this.encodedQuery_=G||null;this.JSC$10042_ignoreCase_=!!e};
_.DX=function(G){G.keyMap_||(G.keyMap_=new Map,G.count_=0,G.encodedQuery_&&rAC(G.encodedQuery_,function(e,r){G.add(iq(e),r)}))};
_.V=_.Vj.prototype;_.V.getCount=function(){_.DX(this);return this.count_};
_.V.add=function(G,e){_.DX(this);this.encodedQuery_=null;G=EA(this,G);var r=this.keyMap_.get(G);r||this.keyMap_.set(G,r=[]);r.push(e);this.count_+=1;return this};
_.V.remove=function(G){_.DX(this);G=EA(this,G);return this.keyMap_.has(G)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(G).length,this.keyMap_.delete(G)):!1};
_.V.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.V.isEmpty=function(){_.DX(this);return this.count_==0};
_.V.containsKey=function(G){_.DX(this);G=EA(this,G);return this.keyMap_.has(G)};
_.V.containsValue=function(G){var e=this.getValues();return _.Y4(e,G)};
_.V.forEach=function(G,e){_.DX(this);this.keyMap_.forEach(function(r,Z){r.forEach(function(O){G.call(e,O,Z,this)},this)},this)};
_.V.getKeys=function(){_.DX(this);for(var G=Array.from(this.keyMap_.values()),e=Array.from(this.keyMap_.keys()),r=[],Z=0;Z<e.length;Z++)for(var O=G[Z],M=0;M<O.length;M++)r.push(e[Z]);return r};
_.V.getValues=function(G){_.DX(this);var e=[];if(typeof G==="string")this.containsKey(G)&&(e=e.concat(this.keyMap_.get(EA(this,G))));else{G=Array.from(this.keyMap_.values());for(var r=0;r<G.length;r++)e=e.concat(G[r])}return e};
_.V.set=function(G,e){_.DX(this);this.encodedQuery_=null;G=EA(this,G);this.containsKey(G)&&(this.count_-=this.keyMap_.get(G).length);this.keyMap_.set(G,[e]);this.count_+=1;return this};
_.V.get=function(G,e){if(!G)return e;G=this.getValues(G);return G.length>0?String(G[0]):e};
_.$hn=function(G,e,r){G.remove(e);r.length>0&&(G.encodedQuery_=null,G.keyMap_.set(EA(G,e),_.Ai(r)),G.count_+=r.length)};
_.Vj.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var G=[],e=Array.from(this.keyMap_.keys()),r=0;r<e.length;r++){var Z=e[r],O=_.em(Z);Z=this.getValues(Z);for(var M=0;M<Z.length;M++){var T=O;Z[M]!==""&&(T+="="+_.em(Z[M]));G.push(T)}}return this.encodedQuery_=G.join("&")};
_.Vj.prototype.clone=function(){var G=new _.Vj;G.encodedQuery_=this.encodedQuery_;this.keyMap_&&(G.keyMap_=new Map(this.keyMap_),G.count_=this.count_);return G};
var EA=function(G,e){e=String(e);G.JSC$10042_ignoreCase_&&(e=e.toLowerCase());return e},bL3=function(G,e){e&&!G.JSC$10042_ignoreCase_&&(_.DX(G),G.encodedQuery_=null,G.keyMap_.forEach(function(r,Z){var O=Z.toLowerCase();
Z!=O&&(this.remove(Z),_.$hn(this,O,r))},G));
G.JSC$10042_ignoreCase_=e};
_.Vj.prototype.extend=function(G){for(var e=0;e<arguments.length;e++)hrw(arguments[e],function(r,Z){this.add(Z,r)},this)};var im=function(G,e){FX.call(this);for(var r=0,Z;Z=Uan[r];r++)if(Z in G&&!/^https?:\/\//.test(G[Z]))throw Error("Ra`"+G[Z]+"`"+Z);this.cfg_=G;this.name=this.cfg_.cn||WBv();this.JSC$10037_domHelper_=e||sw();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.tP(this);G.lpu=G.lpu||GXE(this.JSC$10037_domHelper_.getWindow().location.href)+"/robots.txt";G.ppu=G.ppu||GXE(G.pu||"")+"/robots.txt";WK[this.name]=this;OzS(window,"unload",Ssc)||EY(window,"unload",Ssc)};
_.Bz(im,FX);var qsE=RegExp("^%*tp$"),t4E=RegExp("^%+tp$");_.V=im.prototype;_.V.connectionDelay_=null;_.V.peerWindowDeferred_=null;_.V.transport_=null;_.V.state_=1;_.V.isConnected=function(){return this.state_==2};
_.V.peerWindowObject_=null;_.V.iframeElement_=null;_.V.getConfig=function(){return this.cfg_};
_.V.connect=function(G){this.connectCb_=G||_.qu;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?Yun(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.V.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10037_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var G=this.iframeElement_.contentWindow;G||(G=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=G}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$10037_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new zi(this,this.cfg_.ph,this.JSC$10037_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()()};
_.V.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.TX(this.transport_);this.connectCb_=this.transport_=null;_.TX(this.connectionDelay_);this.connectionDelay_=null};
_.V.send=function(G,e){if(this.isConnected()){try{var r=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(O){r=!1}if(r){_.PA(e)&&(e=(0,_.dT)(e));r=this.transport_;var Z=r.send;qsE.test(G)&&(G="%"+G);G=G.replace(/[%:|]/g,encodeURIComponent);Z.call(r,G,e)}else this.close()}};
_.V.xpcDeliver=function(G,e,r){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.CB)(this.xpcDeliver,this,G,e,r));else if(erb(this,r)&&!this.isDisposed()&&this.state_!=3)if(G&&G!="tp")this.isConnected()&&(G=G.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),G=t4E.test(G)?G.substring(1):G,G=this.getService(G,e))&&(e=CAC(e,G.objectPayload),e!=null&&G.callback(e));else switch(G=this.transport_,r=Grb(e),e=r[1],r[0]){case "SETUP_ACK":M43(G,1);G.setupAckReceived_.fired_||G.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":G.protocolVersion_==2&&(M43(G,2),G.setupAckReceived_.fired_||G.setupAckReceived_.callback(!0));break;case "SETUP":M43(G,1);OLP(G,1);break;case "SETUP_NTPV2":G.protocolVersion_==2&&(r=G.peerProtocolVersion_,M43(G,2),OLP(G,2),r!=1&&G.peerEndpointId_==null||G.peerEndpointId_==e||ZLj(G),G.peerEndpointId_=e)}};
var NLP=function(G){var e=G.cfg_.role;return typeof e==="number"?e:window.parent==G.peerWindowObject_?1:0},erb=function(G,e){var r=G.cfg_.ph;
return _.iF(e==null?"":String(e))||_.iF(r==null?"":String(r))||e==G.cfg_.ph};
im.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete WK[this.name];_.TX(this.peerLoadHandler_);delete this.peerLoadHandler_;im.superClass_.disposeInternal.call(this)};
var Ssc=function(){for(var G in WK)_.TX(WK[G])},WK={};var lRW=function(G,e){this.win=G;this.allowAdsHttpEndpoint=e;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10051_domHelper=sw(G);this.scrollManager=new QcC(G);this.accessibilityManager=new kcn(G);gcP(this)},gcP=function(G){var e=function(){G.allowAdsPopup&&G.allowAdsPopup.style.setProperty("display","none","important");
G.wallElement.style.setProperty("display","","important");HFc(G.accessibilityManager);scv(G.accessibilityManager,G.wallElement.querySelector(".fc-dialog-container"),!1,!1,G.wallElement.querySelector(".fc-button-whitelist"));G.scrollManager.enableScrolling()};
G.allowAdsPopup=G.JSC$10051_domHelper.JSC$9337_createDom("DIV",{"class":"fc-whitelist-root"});G.allowAdsPopup.style.setProperty("display","none","important");G.JSC$10051_domHelper.appendChild(G.JSC$10051_domHelper.JSC$9335_document_.body,G.allowAdsPopup);var r=G.JSC$10051_domHelper.JSC$9337_createDom("DIV",{"class":"fc-dialog-overlay"});G.JSC$10051_domHelper.appendChild(G.allowAdsPopup,r);var Z=G.JSC$10051_domHelper.JSC$9337_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:e});G.JSC$10051_domHelper.appendChild(G.allowAdsPopup,
Z);r=G.JSC$10051_domHelper.JSC$9337_createDom("IFRAME");r.className="fc-whitelist-dialog";r.frameBorder="0";r.id="fc-whitelist-iframe";r.tabIndex="0";_.Ge(r,G.allowAdsHttpEndpoint);G.JSC$10051_domHelper.appendChild(Z,r);Z={};Z.pu=_.Qt(G.allowAdsHttpEndpoint).toString();Z.tp=1;Z.cn="fc-whitelist-channel";Z.ifrid=r.id;Z.osh=!0;G.allowAdsCrossPageChannel=new im(Z);G.allowAdsCrossPageChannel.registerService("close",e);G.allowAdsCrossPageChannel.registerService("refresh",function(){G.win.location.reload()});
G.allowAdsCrossPageChannel.registerService("resize",function(O){if(O){var M=G.allowAdsPopup.querySelector(".fc-whitelist-dialog");O.width&&M.style.setProperty("width",O.width,"important");O.height&&M.style.setProperty("height",O.height,"important")}},!0);
G.allowAdsCrossPageChannel.connect()};
lRW.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10051_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var bm=window,vf=document,RrS=bm.location,jQC=function(){},aR3=/\[native code\]/,wd=function(G,e,r){return G[e]=G[e]||r},Xgn=function(G){G=G.sort();
for(var e=[],r=void 0,Z=0;Z<G.length;Z++){var O=G[Z];O!=r&&e.push(O);r=O}return e},$p=function(){var G;
if((G=Object.create)&&aR3.test(G))G=G(null);else{G={};for(var e in G)G[e]=void 0}return G},Sg=wd(bm,"gapi",{});var q1={};q1=wd(bm,"___jsl",$p());wd(q1,"I",0);wd(q1,"hel",10);var KfE=function(){var G=RrS.href;if(q1.dpo)var e=q1.h;else{e=q1.h;var r=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),Z=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(G=G&&(r.exec(G)||Z.exec(G)))try{e=decodeURIComponent(G[2])}catch(O){}}return e},fRw=function(G){var e=wd(q1,"PQ",[]);
q1.PQ=[];var r=e.length;if(r===0)G();else for(var Z=0,O=function(){++Z===r&&G()},M=0;M<r;M++)e[M](O)},krc=function(G){return wd(wd(q1,"H",$p()),G,$p())};var tK=function(G){this.JSC$10053_obj_=G};
tK.prototype.value=function(){return this.JSC$10053_obj_};
tK.prototype.getWidth=function(){return this.JSC$10053_obj_.width};
tK.prototype.getHeight=function(){return this.JSC$10053_obj_.height};
tK.prototype.getStyle=function(){return this.JSC$10053_obj_.style};var HLl=function(G){this.JSC$10056_obj_=G||{}};
_.V=HLl.prototype;_.V.value=function(){return this.JSC$10056_obj_};
_.V.setUrl=function(G){this.JSC$10056_obj_.url=G;return this};
_.V.getUrl=function(){return this.JSC$10056_obj_.url};
_.V.getStyle=function(){return this.JSC$10056_obj_.style};
_.V.getId=function(){return this.JSC$10056_obj_.id};
_.V.getContext=function(){return this.JSC$10056_obj_.context};
var dhc=function(G){G.JSC$10056_obj_.attributes=G.JSC$10056_obj_.attributes||{};return new tK(G.JSC$10056_obj_.attributes)};var ocE=function(){HLl.apply(this,arguments)};
_.K(ocE,HLl);var sQE=wd(q1,"perf",$p());wd(sQE,"g",$p());var QQS=wd(sQE,"i",$p());wd(sQE,"r",[]);$p();$p();var pgW=function(G,e,r){e&&e.length>0&&(e=IRb(e),r&&r.length>0&&(e+="___"+IRb(r)),e.length>28&&(e=e.substr(0,28)+(e.length-28)),r=e,e=wd(QQS,"_p",$p()),wd(e,r,$p())[G]=(new Date).getTime(),e=sQE.r,typeof e==="function"?e(G,"_p",r):e.push([G,"_p",r]))},IRb=function(G){return G.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var Cjw=$p(),uHE=[],gd=function(G){throw Error("Ua`"+G);};
uHE.push(["jsl",function(G){for(var e in G)if(Object.prototype.hasOwnProperty.call(G,e)){var r=G[e];typeof r=="object"?q1[e]=wd(q1,e,[]).concat(r):wd(q1,e,r)}if(e=G.u)G=wd(q1,"us",[]),G.push(e),(e=/^https:(.*)$/.exec(e))&&G.push("http:"+e[1])}]);
var ncv=/^(\/[a-zA-Z0-9_\-]+)+$/,mhl=[/\/amp\//,/\/amp$/,/^\/amp$/],cGE=/^[a-zA-Z0-9\-_\.,!]+$/,YsE=/^gapi\.loaded_[0-9]+$/,yGW=/^[a-zA-Z0-9,._-]+$/,Blb=function(G,e,r,Z,O){var M=G.split(";"),T=M.shift(),E=Cjw[T],b=null;E?b=E(M,e,r,Z):gd("no hint processor for: "+T);b||gd("failed to generate load url");e=b;r=e.match(AGn);(Z=e.match(FfW))&&Z.length===1&&JGy.test(e)&&r&&r.length===1||gd("failed sanity: "+G);try{G="?";if(O&&O.length>0){pAf(O);var w=O.join(",");b=b+"?le="+w;G="&"}if(q1.rol){var q=q1.ol;
q&&q.length&&(b=""+b+G+"ol="+q.length)}}catch(t){}return b},Uhv=function(G,e,r,Z){G=xhC(G);
YsE.test(r)||gd("invalid_callback");e=PjE(e);Z=Z&&Z.length?PjE(Z):null;var O=function(M){return encodeURIComponent(M).replace(/%2C/g,",")};
return[encodeURIComponent(G.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",O(G.version),"/m=",O(e),Z?"/exm="+O(Z):"","/rt=j/sv=1/d=1/ed=1",G.activeMods?"/am="+O(G.activeMods):"",G.resourceSig?"/rs="+O(G.resourceSig):"",G.zcms?"/t="+O(G.zcms):"","/cb=",O(r)].join("")},xhC=function(G){G.charAt(0)!=="/"&&gd("relative path");
for(var e=G.substring(1).split("/"),r=[];e.length;){G=e.shift();if(!G.length||G.indexOf(".")==0)gd("empty/relative directory");else if(G.indexOf("=")>0){e.unshift(G);break}r.push(G)}G={};for(var Z=0,O=e.length;Z<O;++Z){var M=e[Z].split("="),T=decodeURIComponent(M[0]),E=decodeURIComponent(M[1]);M.length==2&&T&&E&&(G[T]=G[T]||E)}e="/"+r.join("/");ncv.test(e)||gd("invalid_prefix");r=0;for(Z=mhl.length;r<Z;++r)mhl[r].test(e)&&gd("invalid_prefix");r=zrn(G,"k",!0);Z=zrn(G,"am");O=zrn(G,"rs");G=zrn(G,"t");
return{pathPrefix:e,version:r,activeMods:Z,resourceSig:O,zcms:G}},PjE=function(G){for(var e=[],r=0,Z=G.length;r<Z;++r){var O=G[r].replace(/\./g,"_").replace(/-/g,"_");
yGW.test(O)&&e.push(O)}return e.join(",")},zrn=function(G,e,r){G=G[e];
!G&&r&&gd("missing: "+e);if(G){if(cGE.test(G))return G;gd("invalid: "+e)}return null},JGy=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,FfW=/\/cb=/g,AGn=/\/\//g;
Cjw.m=function(G,e,r,Z){(G=G[0])||gd("missing_hint");return"https://apis.google.com"+Uhv(G,e,r,Z)};
var Wf3=decodeURI("%73cript"),Nln=/^[-+_0-9\/A-Za-z]+={0,2}$/,Lfy=function(G,e){for(var r=[],Z=0;Z<G.length;++Z){var O=G[Z],M;if(M=O){a:{for(M=0;M<e.length;M++)if(e[M]===O)break a;M=-1}M=M<0}M&&r.push(O)}return r},G2b=function(){var G=q1.nonce;
return G!==void 0?G&&G===String(G)&&G.match(Nln)?G:q1.nonce=null:vf.querySelector?(G=vf.querySelector("script[nonce]"))?(G=G.nonce||G.getAttribute("nonce")||"",G&&G===String(G)&&G.match(Nln)?q1.nonce=G:q1.nonce=null):null:null},ZMv=function(G){if(vf.readyState!="loading")esv(G);
else{var e=G2b(),r="";e!==null&&(r=' nonce="'+e+'"');G="<"+Wf3+' src="'+encodeURI(G)+'"'+r+"></"+Wf3+">";vf.write(rTv?rTv.createHTML(G):G)}},esv=function(G){var e=vf.createElement(Wf3);
e.setAttribute("src",rTv?rTv.createScriptURL(G):G);G=G2b();G!==null&&e.setAttribute("nonce",G);e.async="true";(G=vf.getElementsByTagName(Wf3)[0])?G.parentNode.insertBefore(e,G):(vf.head||vf.body||vf.documentElement).appendChild(e)},M8l=function(G,e,r){OMv(function(){var Z=e===KfE()?wd(Sg,"_",$p()):$p();
Z=wd(krc(e),"_",Z);G(Z)},r)},O6F=function(G,e){var r=e||{};
typeof e=="function"&&(r={},r.callback=e);var Z=(e=r)&&e._c;if(Z)for(var O=0;O<uHE.length;O++){var M=uHE[O][0],T=uHE[O][1];T&&Object.prototype.hasOwnProperty.call(Z,M)&&T(Z[M],G,e)}e=[];G?e=G.split(":"):r.features&&(e=r.features);if(!(G=r.h)&&(G=KfE(),!G))throw Error("Va");V83(e||[],r,G)},V83=function(G,e,r){G=Xgn(G)||[];
var Z=e.callback,O=e.config,M=e.timeout,T=e.ontimeout,E=e.onerror,b=void 0;typeof E=="function"&&(b=E);var w=null,q=!1;if(M&&!T||!M&&T)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";E=wd(krc(r),"r",[]).sort();var t=wd(krc(r),"L",[]).sort(),g=q1.le||[],l=[].concat(E),X=function(P,F){if(q)return 0;bm.clearTimeout(w);t.push.apply(t,H);var J=((Sg||{}).config||{}).update;J?J(O):O&&wd(q1,"cu",[]).push(O);if(F){pgW("me0",P,l);try{M8l(F,r,b)}finally{pgW("me1",P,l)}}return 1};
M>0&&(w=bm.setTimeout(function(){q=!0;T()},M));
var H=Lfy(G,t);if(H.length){H=Lfy(G,E);var I=wd(q1,"CP",[]),C=I.length;I[C]=function(P){if(!P)return 0;pgW("ml1",H,l);var F=function(U){I[C]=null;X(H,P)&&fRw(function(){Z&&Z();U()})},J=function(){var U=I[C+1];
U&&U()};
C>0&&I[C-1]?I[C]=function(){F(J)}:F(J)};
if(H.length){var u="loaded_"+q1.I++;Sg[u]=function(P){I[C](P);Sg[u]=null};
G=Blb(r,H,"gapi."+u,E,g);E.push.apply(E,H);pgW("ml0",H,l);e.sync||bm.___gapisync?ZMv(G):esv(G)}else I[C](jQC)}else X(H)&&Z&&Z()},hsl;
var TeC=null,Dx3=_.O_.trustedTypes;if(Dx3&&Dx3.createPolicy){try{TeC=Dx3.createPolicy("goog#gapi",{createHTML:E4C,createScript:E4C,createScriptURL:E4C})}catch(G){_.O_.console&&_.O_.console.error(G.message)}hsl=TeC}else hsl=TeC;var rTv=hsl,OMv=function(G,e){if(q1.hee&&q1.hel>0)try{return G()}catch(r){e&&e(r),q1.hel--,O6F("debug_error",function(){try{window.___jsl.hefn(r)}catch(Z){throw r;}})}else try{return G()}catch(r){throw e&&e(r),r;
}},Esc=Sg.load;
Esc&&wd(q1,"ol",[]).push(Esc);Sg.load=function(G,e){return OMv(function(){return O6F(G,e)})};var PqN;var bMj=function(G,e){var r=r||[];this.serviceId_=G;this.moduleId_=e||null;this.dependencies_=[];iMy(this,r)};
bMj.prototype.toString=function(){return this.serviceId_};
bMj.prototype.getModuleId=function(){return this.moduleId_};
var iMy=function(G,e){var r=!1;r=r===void 0?!1:r;G.dependencies_=G.dependencies_.concat(e);if(r){if(!G.moduleId_)throw Error("Wa`"+G.serviceId_);e.map(function(Z){return Z.getModuleId()}).forEach(function(Z){Uta(function(O){O.addExtraEdge(G.moduleId_,Z)})})}};var pUp=new bMj("MpJwZc","MpJwZc");var fzy=new _.S7("a"),up4=new _.S7("c"),CYi=function(G,e,r){_.qQ.call(this,G,e);this.node=e;this.kind=r};
_.K(CYi,_.qQ);var vsv=function(){this.JSC$10069_keys_={};this.urlPrefix_="";this.JSC$10069_queryData_={}};
vsv.prototype.toString=function(){var G=this.urlPrefix_+wJy(this),e=_.k1(this.JSC$10069_queryData_),r="";e!=""&&(r="?"+e);return G+r};
var $xn=function(G){G=lm(G,"md");return!!G&&G!=="0"},wJy=function(G){var e=[],r=function(Z){G.JSC$10069_keys_[Z]!==void 0&&e.push(Z+"="+G.JSC$10069_keys_[Z])};
$xn(G)?(r("md"),r("k"),r("ck"),r("am"),r("rs"),r("gssmodulesetproto"),r("slk"),r("dti")):(r("sdch"),r("k"),r("ck"),r("am"),r("rt"),"d"in G.JSC$10069_keys_||RU(G,"d","0"),r("d"),r("exm"),r("excm"),(G.JSC$10069_keys_.excm||G.JSC$10069_keys_.exm)&&e.push("ed=1"),r("im"),r("dg"),r("sm"),lm(G,"br")!="1"&&lm(G,"br")!="0"||r("br"),r("br-d"),lm(G,"rb")=="1"&&r("rb"),lm(G,"zs")!=="0"&&r("zs"),SHW(G)!==""&&r("wt"),r("gssmodulesetproto"),r("ujg"),r("sp"),r("rs"),r("cb"),r("ee"),r("slk"),r("dti"),r("m"));return e.join("/")},
lm=function(G,e){return G.JSC$10069_keys_[e]?G.JSC$10069_keys_[e]:null},RU=function(G,e,r){r?G.JSC$10069_keys_[e]=r:delete G.JSC$10069_keys_[e]},qHb=function(G,e){G.urlPrefix_=e},t8n=function(G,e){e&&e.length>0?(e.sort(),RU(G,"exm",e.join(","))):RU(G,"exm",null)},gs3=function(G,e){e&&e.length>0?(e.sort(),RU(G,"excm",e.join(","))):RU(G,"excm",null)},lmE=function(G){return(G=lm(G,"m"))?G.split(","):[]},SHW=function(G){switch(lm(G,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},Rsy=function(G,e){var r=Object.keys(e).filter(function(Z){return!!Object.keys(e[Z]).length}).map(function(Z){var O=Object.keys(e[Z]);
O.length>1&&O.sort();return Z+":"+O.join(",")});
r.sort();RU(G,"ee",r.join(";"))},YuN=function(G){var e=lm(G,"ee");
if(!e)return{};G={};e=_.h(e.split(";"));for(var r=e.next();!r.done;r=e.next()){var Z=_.h(r.value.split(":"));r=Z.next().value;Z=Z.next().value;G[r]={};Z=_.h(Z.split(","));for(var O=Z.next();!O.done;O=Z.next())G[r][O.value]=!0}return G},j5W=function(G){delete G.JSC$10069_keys_.m;
delete G.JSC$10069_keys_.exm;delete G.JSC$10069_keys_.ed};
vsv.prototype.clone=function(){var G=new vsv;G.JSC$10069_keys_=Object.assign({},this.JSC$10069_keys_);G.urlPrefix_=this.urlPrefix_;G.JSC$10069_queryData_=Object.assign({},this.JSC$10069_queryData_);return G};
var y0N=function(G,e){e=e===void 0?!0:e;var r=amj(G),Z=new vsv,O=_.hd(r)[5];_.c2.forEach(XJS,function(T){var E=O.match("/"+T+"=([^/]+)");E&&RU(Z,T,E[1])});
var M="";M=G.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";qHb(Z,G.substr(0,G.indexOf(M)+M.length));if(!e)return Z;(G=_.hd(r)[6]||null)&&rAC(G,function(T,E){Z.JSC$10069_queryData_[T]=E});
return Z},n2_=function(G){G=_.Kr(amj(G));
return G===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(G)?/\/k=/.test(G):!1},amj=function(G){return G.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?G.substr(65):G},XJS={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"},Kuv=RegExp("^loaded_(g|h)?[_\\d]+$");_.jg=function(G){this.JSC$10081_id_=G;this.opts={}};
_.jg.prototype.JSC$10083_setLabel=function(G){this.label_=G||void 0;return this};
_.jg.prototype.addUploadMetadata=function(G,e){var r=this.opts.data||{};r[G]=e;this.opts.data=r;return this};
var fmy=function(G){var e=_.c2.filter(G.opts,function(r){return r!==null});
e=_.c2.isEmpty(e)?null:e;G=[G.JSC$10081_id_,G.label_,e];e=dUs(G);return G=G.slice(0,e+1)};
_.jg.prototype.toString=function(){var G=fmy(this);return"("+_.Yf(G,function(e){return JSON.stringify(e)}).join(",")+")"};
_.jg.prototype.getId=function(){return this.JSC$10081_id_};
_.jg.prototype.getOptions=function(){return _.c2.clone(this.opts)};var aU=function(){_.jg.call(this,"image-search")};
_.K(aU,_.jg);aU.prototype.setSize=function(G){this.opts.imgsz=G;return this};
aU.prototype.JSC$10083_setLabel=function(G){_.jg.prototype.JSC$10083_setLabel.call(this,G);return this};
aU.prototype.addUploadMetadata=function(G,e){_.jg.prototype.addUploadMetadata.call(this,G,e);return this};var Xl=function(){_.jg.call(this,"maps")};
_.K(Xl,_.jg);Xl.prototype.setZoom=function(G){this.opts.zoom=G;return this};
Xl.prototype.JSC$10083_setLabel=function(G){_.jg.prototype.JSC$10083_setLabel.call(this,G);return this};
Xl.prototype.addUploadMetadata=function(G,e){_.jg.prototype.addUploadMetadata.call(this,G,e);return this};_.K9=function(){_.jg.call(this,"photos")};
_.K(_.K9,_.jg);_.K9.prototype.JSC$10083_setLabel=function(G){_.jg.prototype.JSC$10083_setLabel.call(this,G);return this};
_.K9.prototype.addUploadMetadata=function(G,e){_.jg.prototype.addUploadMetadata.call(this,G,e);return this};var f9=function(){_.jg.call(this,"url")};
_.K(f9,_.jg);var k2l=function(){var G=new f9;G.opts.type="video";G.opts.site="youtube.com";return G};
f9.prototype.JSC$10083_setLabel=function(G){_.jg.prototype.JSC$10083_setLabel.call(this,G);return this};
f9.prototype.addUploadMetadata=function(G,e){_.jg.prototype.addUploadMetadata.call(this,G,e);return this};var kp=function(){_.jg.call(this,"video-search")};
_.K(kp,_.jg);var HMP=function(){var G=new kp;G.opts.site="youtube.com";return G};
kp.prototype.JSC$10083_setLabel=function(G){_.jg.prototype.JSC$10083_setLabel.call(this,G);return this};
kp.prototype.addUploadMetadata=function(G,e){_.jg.prototype.addUploadMetadata.call(this,G,e);return this};var dxW=function(){_.jg.call(this,"web")};
_.K(dxW,_.jg);dxW.prototype.JSC$10083_setLabel=function(G){_.jg.prototype.JSC$10083_setLabel.call(this,G);return this};
dxW.prototype.addUploadMetadata=function(G,e){_.jg.prototype.addUploadMetadata.call(this,G,e);return this};var Hf=function(){this.items_=[];this.opts={}},osS=function(G){switch(G){case "image-search":return new aU;
case "maps":return new Xl;case "photos":return new _.K9;case "url":return new f9;case "video-search":return new kp;case "web":return new dxW}return new _.jg(G)};
Hf.prototype.addView=function(G){this.items_.push(typeof G==="string"?osS(G):G);return this};
var s5E=function(G){return"("+_.Yf(G.items_,function(e){return e.toString()}).join(",")+")"};
Hf.prototype.toString=function(){return s5E(this)};
Hf.prototype.getViews=function(G,e){e=e===void 0?[]:e;for(var r=this.items_,Z=0;Z<r.length;Z++){var O=r[Z];O instanceof Hf?O.getViews(G,e):O.getId()==G&&e.push(O)}return e};
Hf.prototype.getOptions=function(){return _.c2.clone(this.opts)};var xW=function(G){this.basePickerUrl_=G||"https://docs.google.com/picker";this.nav_=new Hf};
xW.prototype.nav_=null;xW.prototype.addView=function(G){this.nav_.addView(G);return this};
xW.prototype.getBaseUrl=function(){return this.basePickerUrl_};
xW.prototype.getViews=function(G){return this.nav_.getViews(G)};
_.Q5j=function(G,e){G.callback_=e;return G};var ImW=new Map;ImW.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");ImW.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");ImW.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var pJC=new Set;pJC.add("application/vnd.google-apps.kix");pJC.add("application/vnd.google-apps.ritz");pJC.add("application/vnd.google-apps.punch");var xxv=function(G,e,r){var Z=r&&_.gU(r,1);r=CCE(r);var O=G[0].getId();switch(_.lg(O,2)){case 13:return u1j(G,e,Z,r);case 3:return nsC(G,e,Z,r);case 10:return mxv(G,e,Z,r);case 27:return mxv(G,e,Z,r);case 12:return cTw(G,e);case 2:return YHW(G,e,Z,r);case 5:return yTw(G,e,Z,r);case 9:return ATc(G,e,Z,r);case 6:return FuE(G,e,Z,r);case 25:return JTy(G,e,Z,r);case 1:return _.h3(G[0],tKE,26)?Be3(G,e,Z,r):mxv(G,e,Z,r);default:return{}}},FuE=function(G,e,r,Z){G=G.map(function(O){return{id:O.getId().getId(),
serviceId:"youtube",name:O.getName(),description:_.gU(O,3),type:dd(O),lastEditedUtc:_.qQv(_.SS(O,_.ln,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:O.getUrl(),embedUrl:_.gU(O,13),thumbnails:oU(Wo(O))}});
return{action:e,docs:G,viewToken:Z,view:r||"youtube",v2Translated:!0}},YHW=function(G,e,r,Z){var O=G.map(function(M){var T=M.getId().getId(),E=_.gU(M,7),b=M.getName(),w=dd(M),q=_.qQv(_.SS(M,_.ln,12)).getTime(),t=M.getUrl(),g=Number(kCy(M)),l=_.gU(M,3),X=_.gU(M,11),H=oU(Wo(M));
var I=_.SS(M,Nu,21);I=_.Sc(I,1);var C=_.SS(M,Nu,21);C=_.gU(C,10);var u=_.gU(M,13);var P=_.SS(M,Nu,21);P=_.Sc(P,9);var F=_.SS(M,Nu,21);F=_.gU(F,11);T={id:T,serviceId:"docs",mimeType:E,name:b,type:w,lastEditedUtc:q,url:t,sizeBytes:g,description:l,iconUrl:X,thumbnails:H,isShared:I,downloadUrl:C,embedUrl:u,copyable:P,resourceKey:F};E=_.SS(M,Nu,21);_.Sc(E,12)&&(T.uploadState="success",T.isNew=!0);E=_.SS(M,Nu,21);_.h3(E,Po,3)&&(M=_.SS(M,Nu,21),M=_.SS(M,Po,3),_.h3(M,Bo,2)&&(E=Fx(M.getDuration().getSeconds()),
b=M.getDuration(),b=_.vp(b,2),T.duration=E+b/1E9),T.aspectRatio=M.getAspectRatio());return T});
return{action:e,docs:O,viewToken:Z,view:r||"all",extraUserInputs:PCw(G),v2Translated:!0}},yTw=function(G,e,r,Z){G=G.map(function(O){var M=_.SS(O,kXc,15);
M=_.SS(M,xS,1);kc(O,10,xS,M);return{id:O.getId().getId(),serviceId:"web",mimeType:_.gU(O,7),name:O.getName(),type:dd(O),url:O.getUrl(),description:_.gU(O,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:oU(Wo(O))}});
return{action:e,docs:G,viewToken:Z,view:r||"image-search",v2Translated:!0}},ATc=function(G,e,r,Z){G=G.map(function(O){return{serviceId:"url",
name:Wo(O)[0].getUrl().split("/").pop(),type:dd(O),mimeType:_.gU(O,7),url:O.getUrl(),description:_.gU(O,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:oU(Wo(O))}});
return{action:e,docs:G,viewToken:Z,view:r||"url",v2Translated:!0}},Be3=function(G,e,r,Z){G=G.map(function(O){return{id:O.getId().getId(),
serviceId:"picasa",name:O.getName(),type:dd(O),description:_.gU(O,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:oU(Wo(O))}});
return{action:e,docs:G,viewToken:Z,view:r||"webcam",v2Translated:!0}},mxv=function(G,e,r,Z){return{action:e,
docs:G.map(Uxv),viewToken:Z,view:zsb(r||"upload",G),extraUserInputs:PCw(G),v2Translated:!0}},zsb=function(G,e){return e.some(function(r){var Z;
return((Z=_.SS(r,Ug,30))==null?void 0:_.lg(Z,3))===9})?G+"/gmailphotos":G},nsC=function(G,e,r,Z){var O=G.map(function(M){var T={id:M.getId().getId(),
serviceId:"picasa",mimeType:_.gU(M,7),name:M.getName(),type:dd(M),lastEditedUtc:_.qQv(_.SS(M,_.ln,12)).getTime(),url:M.getUrl(),sizeBytes:Number(kCy(M)),description:_.gU(M,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:oU(Wo(M)),mediaKey:M.getId().getId(),parentId:_.gU(M,4)},E,b=(E=_.SS(M,R$W,18))==null?void 0:_.SS(E,lDy,3);b&&(T.latitude=t3(b,1),T.longitude=t3(b,2));var w;M=(w=_.SS(M,R$W,18))==null?void 0:q_(w,6);w=M!=null?Fx(M):void 0;w&&(T.version=
w);return T});
return{action:e,docs:O,viewToken:Z,view:r||"photos",extraUserInputs:PCw(G),v2Translated:!0}},u1j=function(G,e,r,Z){G=G.map(function(O){return{id:O.getId().getId(),
serviceId:"et",name:Wo(O)[0].getUrl().split("/").pop(),description:_.gU(O,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:oU(Wo(O),"etjpg")}});
return{action:e,docs:G,viewToken:Z,view:r||"et",v2Translated:!0}},JTy=function(G,e,r,Z){G=G.map(function(O){var M=O.getId().getId(),T=Z["2"];
return{id:M,serviceId:T.type!=="gmail_themes"&&T.parent==="6226252643674576769"?"picasa":"static_themes",name:O.getName(),mimeType:_.gU(O,7),type:dd(O),description:_.gU(O,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:O.getUrl(),embedUrl:O.getUrl(),thumbnails:oU(Wo(O))}});
return{action:e,docs:G,viewToken:Z,view:r||"photos",v2Translated:!0}},cTw=function(G,e){G=G.map(function(r){var Z=_.SS(r,gWP,27);
Z=_.WY(Z,1,_.Xo,_.bx())[0];return{id:r.getId().getId(),serviceId:"contacts",mimeType:_.gU(r,7),name:r.getName(),description:_.gU(r,3),url:"mailto:"+Z,thumbnail:[{url:_.gU(r,11)}],email:Z}});
return{action:e,docs:G,view:"contacts",v2Translated:!0}},CCE=function(G){if(!G)return{};
var e=_.gU(G,3);e=e&&JSON.parse(e)||{};return{0:_.gU(G,1),1:_.gU(G,2),2:e}},oU=function(G,e){e=e===void 0?"":e;
if(!G.length)return null;e=="etjpg"&&(G=G.filter(function(r){return r.getUrl().includes("w1200-h300")}));
return G.map(function(r){return{url:r.getUrl(),height:r.getHeight(),width:r.getWidth(),type:e}})},PCw=function(G){return{isAttachment:G.some(function(e){return _.Sc(e,31)})}},Uxv=function(G){var e,r={id:(e=G.getId())==null?void 0:e.getId(),
serviceId:Wuc(G),mimeType:_.gU(G,7),name:G.getName(),type:dd(G),sizeBytes:Number(kCy(G)),description:_.gU(G,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:oU(Wo(G)),isNew:!0};if(e=_.SS(G,Ug,30)){r.dataUrl=_.gU(e,1)||null;a:{var Z=_.SS(G,Ug,30);switch(_.lg(Z,3)){case 9:Z=_.a$(Z,KlS,2,zD);Z={remoteRefs:Z&&_.gU(Z,1)};break a;case 10:case 15:Z=_.a$(Z,Xpn,4,zD);var O=Wo(G);Z={photo_id:Z&&_.gU(Z,1),media_key:G.getId().getId(),media_type:_.lg(G,6)===1?1:2,image_url:O&&
O[0].getUrl(),width:O&&String(O[0].getWidth()),height:O&&String(O[0].getHeight())};break a}Z=null}r.uploadMetadata=Z;r.uploadId=_.gU(e,9)||null;r.uploadState=New(e)||null}(Z=e&&_.a$(e,Xpn,4,zD))&&(r.id=_.gU(Z,1));(Z=e&&_.a$(e,fDl,5,zD))&&(r.contentId=_.gU(Z,1));(Z=e&&_.a$(e,jFE,7,zD))&&(r.contentId=_.gU(Z,1));(Z=e&&_.a$(e,aDE,6,zD))&&(r.contentId=_.gU(Z,1));(e==null?void 0:_.lg(e,3))===1&&(r.mediaKey=G.getId().getId());return r},Wuc=function(G){var e;
switch(((e=_.SS(G,Ug,30))==null?void 0:_.lg(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},dd=function(G){switch(_.lg(G,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 _.gU(G,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},New=function(G){switch(G==null?void 0:_.lg(G,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 rPn,Lub,GUb,eZP;_.Ztc=function(G,e){var r=e||{};e=r.document||document;var Z=_.Qt(G).toString(),O=(new ai(e)).createElement("SCRIPT"),M={script_:O,timeout_:void 0},T=new BK(Lub,M),E=null,b=r.timeout!=null?r.timeout:5E3;b>0&&(E=window.setTimeout(function(){GUb(O,!0);T.errback(new eZP(1,"Timeout reached for loading script "+Z))},b),M.timeout_=E);
O.onload=O.onreadystatechange=function(){O.readyState&&O.readyState!="loaded"&&O.readyState!="complete"||(GUb(O,r.cleanupWhenDone||!1,E),T.callback(null))};
O.onerror=function(){GUb(O,!0,E);T.errback(new eZP(0,"Error while loading script "+Z))};
M=r.attributes||{};_.c2.extend(M,{type:"text/javascript",charset:"UTF-8"});DKv(O,M);_.h6(O,G);rPn(e).appendChild(O);return T};
rPn=function(G){var e=oF("HEAD",G);return e&&e.length!==0?e[0]:G.documentElement};
Lub=function(){if(this&&this.script_){var G=this.script_;G&&G.tagName=="SCRIPT"&&GUb(G,!0,this.timeout_)}};
GUb=function(G,e,r){r!=null&&_.O_.clearTimeout(r);G.onload=function(){};
G.onerror=function(){};
G.onreadystatechange=function(){};
e&&window.setTimeout(function(){_.d1(G)},0)};
eZP=function(G,e){var r="Jsloader error (code #"+G+")";e&&(r+=": "+e);_.rs.call(this,r);this.code=G};
_.Bz(eZP,_.rs);var OtW=_.Cp(["https://apis.google.com/js/api.js"]),MCC=_.qK(OtW),DNb=function(G,e,r){r=r===void 0?{}:r;var Z=!1,O=VCw(G,e,r).then(function(T){Z=!0;return T}),M=_.QoE(5E3).then(function(){return Z?VCw(G,e,r):hZj(e,r).then(function(T){return TEw(T,G)})});
return lYn([O,M])},VCw=function(G,e,r){r=r===void 0?{}:r;
return EuP(e,r).then(function(Z){return TEw(Z,G)})},TEw=function(G,e){var r=_.Vp(e,"gapi.")?e.slice(5):e;
return G[r]?_.Nz(G[r]):new _.aQ(function(Z,O){var M=kV(function(){O(Error("Ya"))},3E4);
G.load(e,{callback:function(){_.O_.clearTimeout(M);Z(G[r])},
onerror:function(T){_.O_.clearTimeout(M);O(T)}})})},EuP=function(G,e){e=e===void 0?{}:e;
return G.gapi&&G.gapi.load?_.Nz(G.gapi):hZj(G,e)},hZj=function(G,e){e=e===void 0?{}:e;
return _.Ztc(MCC,{document:G.document,attributes:e}).then(function(){return G.gapi})},ity=function(){};
ity.prototype.load=function(G,e,r){e=e===void 0?window:e;r=r===void 0?{}:r;var Z=Date.now();return DNb(G,e,r).then(function(O){var M=Date.now();return{library:O,loadStartMs:Z,loadEndMs:M}},function(O){throw O instanceof Error?O:Error(String(O));
})};var hzp=function(){_.pB.call(this);this.gapiLoader_=new ity;this.origin_=null;this.gapiPickerIframeResolver_=_.C1();this.gapiIframesResolver_=_.C1();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.K(hzp,_.pB);var bt3=function(G,e){var r=r===void 0?{}:r;var Z=_.Lz("gapi.iframes",e);return Z?(G=Date.now(),_.Nz({library:Z,loadStartMs:G,loadEndMs:G})):G.gapiLoader_.load("gapi.iframes",e,r)},vuE=function(G,e,r,Z,O,M){var T=!1;
T=T===void 0?!1:T;bt3(G,Ax(e.ownerDocument)).then(function(E){var b=E.library;G.gapiIframesResolver_.resolve(b);E=G.gapiPickerIframeResolver_;var w=E.resolve,q=T;q=q===void 0?!1:q;var t={};t["host-message-handler"]=r;G.hostMessageHandlerInternal_=t;var g=_.LB(Z);g=_.LB(g);g=_.eg(_.Gj(_.LY(new _.nO,g.scheme_),g.JSC$10041_domain_),g.JSC$10041_port_).toString();G.origin_=g;g=(new ocE).setUrl(Z);g.JSC$10056_obj_.where=e;g.JSC$10056_obj_.allowPost=q;g.JSC$10056_obj_.messageHandlers=t;q=_.Lz("makeWhiteListIframesFilter",
b)([G.origin_]);g.JSC$10056_obj_.messageHandlersFilter=q;O!=null&&(g.JSC$10056_obj_.id=O);M!=null&&(g.JSC$10056_obj_.rpctoken=M);q=dhc(g);q.JSC$10053_obj_.style={display:"block","min-width":"100%",width:"1px"};q.JSC$10053_obj_.height="100%";dhc(g).value().allow="camera 'src' "+G.origin_;b=b.getContext().openChild(g.value());w.call(E,b)},function(E){G.gapiIframesResolver_.reject(E);
G.gapiPickerIframeResolver_.reject(E)});
return G.gapiPickerIframeResolver_.promise},wUE=function(G,e){return _.KY([G.gapiIframesResolver_.promise,
G.gapiPickerIframeResolver_.promise]).then(function(r){var Z=_.h(r);r=Z.next().value;return(Z=Z.next().value)?Z.send("picker-message-handler",e,void 0,_.Lz("makeWhiteListIframesFilter",r)([G.origin_])):_.Ss(Error("Za"))})};
hzp.prototype.disposeInternal=function(){$Nv(this);_.pB.prototype.disposeInternal.call(this)};
var $Nv=function(G){G.gapiPickerIframeResolver_.promise.then(function(e){e&&(e.unregister("host-message-handler"),delete G.hostMessageHandlerInternal_["host-message-handler"])})};var S0l=function(){this.nextId=0};var tCn=function(G,e){switch(G.action){case "select-contacts":G=q0C(G.contacts);break;case "visibility":G=G.visible;var r=new rT;G=_.K2(r,1,7).setVisible(G);r={};r["iframe-command"]=G.serialize();G=r;break;default:G=null}return G?wUE(e,G):_.Nz()},q0C=function(G){if(!G||G.length==0)return null;
var e=new rT;_.K2(e,1,11);var r=new S0l;G.forEach(function(Z){if(Z.email){var O=new vs;O=_.sz(O,2,Z.name?Z.name:Z.email);var M=new gWP;Z=_.YVS(M,1,_.R8,Z.email,_.Xo);Z=_.Kj(O,27,Z);O=new SQE;M=":"+(r.nextId++).toString(36);O=_.sz(O,1,M);O=_.K2(O,2,12);Z=_.Kj(Z,1,O)}else Z=null;Z&&kc(e,7,vs,Z)});
G={};G["iframe-command"]=e.serialize();return G};_.guW=function(){if(yiP){var G=/Windows NT ([0-9.]+)/;return(G=G.exec(_.gs()))?G[1]:"0"}return _.Y_j?(G=/1[0|1][_.][0-9_.]+/,(G=G.exec(_.gs()))?G[0].replace(/_/g,"."):"10"):J9S?(G=/Android\s+([^\);]+)(\)|;)/,(G=G.exec(_.gs()))?G[1]:""):FSw||Jic||BsP?(G=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(G=G.exec(_.gs()))?G[1].replace(/_/g,"."):""):""}();var sA;sA=function(G){return(G=G.exec(_.gs()))?G[1]:""};
_.lEC=function(){if(_.GB)return sA(/Firefox\/([0-9.]+)/);if(_.zx||Tc||n4P)return LSb;if(_.ec){if(_.Qp()||_.KSq()){var G=sA(/CriOS\/([0-9.]+)/);if(G)return G}return sA(/Chrome\/([0-9.]+)/)}if(_.U5&&!_.Qp())return sA(/Version\/([0-9.]+)/);if(Ppq||UnN){if(G=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.gs()))return G[1]+"."+G[2]}else if(OPw)return(G=sA(/Android\s+([0-9.]+)/))?G:sA(/Version\/([0-9.]+)/);return""}();var RZn=function(){};
_.Fb(RZn);RZn.prototype.nextId_=0;_.Qj=function(G){return":"+(G.nextId_++).toString(36)};var IU=function(G){_.j7.call(this);this.JSC$10151_dom_=G||sw();this.JSC$10151_id_=null;this.inDocument_=!1;this.JSC$10151_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.Bz(IU,_.j7);IU.prototype.idGenerator_=RZn.getInstance();IU.prototype.getId=function(){return this.JSC$10151_id_||(this.JSC$10151_id_=_.Qj(this.idGenerator_))};
IU.prototype.getElement=function(){return this.JSC$10151_element_};
var p9=function(G){G.googUiComponentHandler_||(G.googUiComponentHandler_=new _.tP(G));return G.googUiComponentHandler_},jdy=function(G,e){if(G==e)throw Error("$a");
var r;if(r=e&&G.parent_&&G.JSC$10151_id_){r=G.parent_;var Z=G.JSC$10151_id_;r=r.childIndex_&&Z?_.c2.get(r.childIndex_,Z)||null:null}if(r&&G.parent_!=e)throw Error("$a");G.parent_=e;IU.superClass_.setParentEventTarget.call(G,e)};
IU.prototype.setParentEventTarget=function(G){if(this.parent_&&this.parent_!=G)throw Error("ab");IU.superClass_.setParentEventTarget.call(this,G)};
IU.prototype.JSC$10153_createDom=function(){this.JSC$10151_element_=this.JSC$10151_dom_.createElement("DIV")};
IU.prototype.render=function(G){aEl(this,G)};
var aEl=function(G,e,r){if(G.inDocument_)throw Error("bb");G.JSC$10151_element_||G.JSC$10153_createDom();e?e.insertBefore(G.JSC$10151_element_,r||null):G.JSC$10151_dom_.JSC$9335_document_.body.appendChild(G.JSC$10151_element_);G.parent_&&!G.parent_.inDocument_||G.enterDocument()};
_.V=IU.prototype;_.V.decorate=function(G){if(this.inDocument_)throw Error("bb");if(G&&this.canDecorate(G)){this.wasDecorated_=!0;var e=_.F$(G);this.JSC$10151_dom_&&this.JSC$10151_dom_.JSC$9335_document_==e||(this.JSC$10151_dom_=sw(G));this.decorateInternal(G);this.enterDocument()}else throw Error("cb");};
_.V.canDecorate=function(){return!0};
_.V.decorateInternal=function(G){this.JSC$10151_element_=G};
_.V.enterDocument=function(){this.inDocument_=!0;XU3(this,function(G){!G.inDocument_&&G.getElement()&&G.enterDocument()})};
_.V.exitDocument=function(){XU3(this,function(G){G.inDocument_&&G.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.V.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);XU3(this,function(G){G.dispose()});
!this.wasDecorated_&&this.JSC$10151_element_&&_.d1(this.JSC$10151_element_);this.parent_=this.model_=this.JSC$10151_element_=this.childIndex_=this.children_=null;IU.superClass_.disposeInternal.call(this)};
_.V.getModel=function(){return this.model_};
_.V.addChild=function(G,e){var r=this.children_?this.children_.length:0;if(G.inDocument_&&(e||!this.inDocument_))throw Error("bb");if(r<0||r>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);G.parent_==this?(_.c2.set(this.childIndex_,G.getId(),G),_.yp(this.children_,G)):_.c2.add(this.childIndex_,G.getId(),G);jdy(G,this);_.Iqp(this.children_,r,0,G);G.inDocument_&&this.inDocument_&&G.parent_==this?(e=this.getContentElement(),
(e.childNodes[r]||null)!=G.getElement()&&(G.getElement().parentElement==e&&e.removeChild(G.getElement()),r=e.childNodes[r]||null,e.insertBefore(G.getElement(),r))):e?(this.JSC$10151_element_||this.JSC$10153_createDom(),r=this.children_?this.children_[r+1]||null:null,aEl(G,this.getContentElement(),r?r.JSC$10151_element_:null)):this.inDocument_&&!G.inDocument_&&G.JSC$10151_element_&&G.JSC$10151_element_.parentNode&&G.JSC$10151_element_.parentNode.nodeType==1&&G.enterDocument()};
_.V.getContentElement=function(){return this.JSC$10151_element_};
var XU3=function(G,e){G.children_&&G.children_.forEach(e,void 0)};
IU.prototype.removeChild=function(G,e){if(G){var r=typeof G==="string"?G:G.getId();G=this.childIndex_&&r?_.c2.get(this.childIndex_,r)||null:null;r&&G&&(_.c2.remove(this.childIndex_,r),_.yp(this.children_,G),e&&(G.exitDocument(),G.JSC$10151_element_&&_.d1(G.JSC$10151_element_)),jdy(G,null))}if(!G)throw Error("eb");return G};_.Bz(NRq,Wa_);_.Bz(LaF,Wa_);var KMl;_.c2.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var fE3=function(G,e){e?G.setAttribute("role",e):G.removeAttribute("role")},C9=function(G,e,r){Array.isArray(r)&&(r=r.join(" "));
var Z="aria-"+e;r===""||r==void 0?(KMl||(r={},KMl=(r.atomic=!1,r.autocomplete="none",r.dropeffect="none",r.haspopup=!1,r.live="off",r.multiline=!1,r.multiselectable=!1,r.orientation="vertical",r.readonly=!1,r.relevant="additions text",r.required=!1,r.sort="none",r.busy=!1,r.disabled=!1,r.hidden=!1,r.invalid="false",r)),r=KMl,e in r?G.setAttribute(Z,r[e]):G.removeAttribute(Z)):G.setAttribute(Z,r)};var kUS;_.um=function(G,e,r){_.j7.call(this);this.target=G;this.handle=e||G;this.limits=r||new pl(NaN,NaN,NaN,NaN);this.JSC$10156_document_=_.F$(G);this.JSC$10156_eventHandler_=new _.tP(this);_.Xx(this,this.JSC$10156_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;_.w2(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=kUS};
_.Bz(_.um,_.j7);kUS=_.O_.document&&_.O_.document.documentElement&&!!_.O_.document.documentElement.setCapture&&!!_.O_.document.releaseCapture;_.HtE=function(G,e){G.hysteresisDistanceSquared_=Math.pow(e,2)};
_.V=_.um.prototype;_.V.setEnabled=function(G){this.enabled_=G};
_.V.disposeInternal=function(){_.um.superClass_.disposeInternal.call(this);_.Rb(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10156_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10156_document_.releaseCapture();this.handle=this.target=null};
_.V.startDrag=function(G){var e=G.type=="mousedown";if(!this.enabled_||this.dragging_||e&&(!G.isButton(0)||_.Y_j&&G.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new n9("start",this,G.clientX,G.clientY,G)))this.dragging_=!0,e&&G.preventDefault();else return;else e&&G.preventDefault();e=this.JSC$10156_document_;var r=e.documentElement,Z=!this.useSetCapture_;this.JSC$10156_eventHandler_.listen(e,["touchmove","mousemove"],this.handleMove_,
{capture:Z,passive:!1});this.JSC$10156_eventHandler_.listen(e,["touchend","mouseup"],this.endDrag,Z);this.useSetCapture_?(r.setCapture(!1),this.JSC$10156_eventHandler_.listen(r,"losecapture",this.endDrag)):this.JSC$10156_eventHandler_.listen(Ax(e),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10156_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,Z);this.clientX=this.startX=G.clientX;this.clientY=this.startY=G.clientY;this.screenX=G.screenX;this.screenY=G.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=oP(sw(this.JSC$10156_document_))}};
_.V.endDrag=function(G,e){this.JSC$10156_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10156_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new n9("end",this,G.clientX,G.clientY,G,dNn(this,this.deltaX),ouw(this,this.deltaY),e||G.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.V.handleMove_=function(G){if(this.enabled_){var e=G.clientX-this.clientX,r=G.clientY-this.clientY;this.clientX=G.clientX;this.clientY=G.clientY;this.screenX=G.screenX;this.screenY=G.screenY;if(!this.dragging_){var Z=this.startX-this.clientX,O=this.startY-this.clientY;if(Z*Z+O*O>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new n9("start",this,G.clientX,G.clientY,G)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(G);return}}r=sdS(this,e,r);e=r.x;r=r.y;this.dragging_&&this.dispatchEvent(new n9("beforedrag",
this,G.clientX,G.clientY,G,e,r))&&(Qd3(this,G,e,r),G.preventDefault())}};
var sdS=function(G,e,r){var Z=oP(sw(G.JSC$10156_document_));e+=Z.x-G.pageScroll.x;r+=Z.y-G.pageScroll.y;G.pageScroll=Z;G.deltaX+=e;G.deltaY+=r;return new _.yB(dNn(G,G.deltaX),ouw(G,G.deltaY))};
_.um.prototype.onScroll_=function(G){var e=sdS(this,0,0);G.clientX=this.clientX;G.clientY=this.clientY;Qd3(this,G,e.x,e.y)};
var Qd3=function(G,e,r,Z){G.target.style.left=r+"px";G.target.style.top=Z+"px";G.dispatchEvent(new n9("drag",G,e.clientX,e.clientY,e,r,Z))},dNn=function(G,e){var r=G.limits;
G=isNaN(r.left)?null:r.left;r=isNaN(r.width)?0:r.width;return Math.min(G!=null?G+r:Infinity,Math.max(G!=null?G:-Infinity,e))},ouw=function(G,e){var r=G.limits;
G=isNaN(r.top)?null:r.top;r=isNaN(r.height)?0:r.height;return Math.min(G!=null?G+r:Infinity,Math.max(G!=null?G:-Infinity,e))};
_.um.prototype.isDragging=function(){return this.dragging_};
var n9=function(G,e,r,Z,O,M,T){_.qQ.call(this,G);this.clientX=r;this.clientY=Z;this.browserEvent=O;this.left=M!==void 0?M:e.deltaX;this.top=T!==void 0?T:e.deltaY};
_.Bz(n9,_.qQ);var mI=function(G){this.JSC$10163_map_=new Map;var e=arguments.length;if(e>1){if(e%2)throw Error("ma");for(var r=0;r<e;r+=2)this.set(arguments[r],arguments[r+1])}else G&&this.addAll(G)};
_.V=mI.prototype;_.V.getCount=function(){return this.JSC$10163_map_.size};
_.V.getValues=function(){return Array.from(this.JSC$10163_map_.values())};
_.V.getKeys=function(){return Array.from(this.JSC$10163_map_.keys())};
_.V.containsKey=function(G){return this.JSC$10163_map_.has(G)};
_.V.containsValue=function(G){return this.getValues().some(function(e){return e==G})};
_.V.equals=function(G,e){var r=this;e=e===void 0?function(Z,O){return Z===O}:e;
return this===G?!0:this.JSC$10163_map_.size!=G.getCount()?!1:this.getKeys().every(function(Z){return e(r.JSC$10163_map_.get(Z),G.get(Z))})};
_.V.isEmpty=function(){return this.JSC$10163_map_.size==0};
_.V.clear=function(){this.JSC$10163_map_.clear()};
_.V.remove=function(G){return this.JSC$10163_map_.delete(G)};
_.V.get=function(G,e){return this.JSC$10163_map_.has(G)?this.JSC$10163_map_.get(G):e};
_.V.set=function(G,e){this.JSC$10163_map_.set(G,e);return this};
_.V.addAll=function(G){if(G instanceof mI){G=_.h(G.JSC$10163_map_);for(var e=G.next();!e.done;e=G.next()){var r=_.h(e.value);e=r.next().value;r=r.next().value;this.JSC$10163_map_.set(e,r)}}else if(G)for(G=_.h(Object.entries(G)),e=G.next();!e.done;e=G.next())r=_.h(e.value),e=r.next().value,r=r.next().value,this.JSC$10163_map_.set(e,r)};
_.V.forEach=function(G,e){var r=this;e=e===void 0?this:e;this.JSC$10163_map_.forEach(function(Z,O){return G.call(e,Z,O,r)})};
_.V.clone=function(){return new mI(this)};(function(){for(var G=["ms","moz","webkit","o"],e,r=0;e=G[r]&&!_.O_.requestAnimationFrame;++r)_.O_.requestAnimationFrame=_.O_[e+"RequestAnimationFrame"],_.O_.cancelAnimationFrame=_.O_[e+"CancelAnimationFrame"]||_.O_[e+"CancelRequestAnimationFrame"];if(!_.O_.requestAnimationFrame){var Z=0;_.O_.requestAnimationFrame=function(O){var M=(new Date).getTime(),T=Math.max(0,16-(M-Z));Z=M+T;return _.O_.setTimeout(function(){O(M+T)},T)};
_.O_.cancelAnimationFrame||(_.O_.cancelAnimationFrame=function(O){clearTimeout(O)})}})();
var IEE=[[],[]],pUv=0,CYS=!1,upw=0,mNj=function(G,e){var r=upw++,Z={measureTask:{id:r,fn:G.measure,context:e},mutateTask:{id:r,fn:G.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,IEE[pUv].push(Z));CYS||(CYS=!0,window.requestAnimationFrame(nub))}},nub=
function(){CYS=!1;
var G=IEE[pUv],e=G.length;pUv=(pUv+1)%2;for(var r,Z=0;Z<e;++Z){r=G[Z];var O=r.measureTask;r.isScheduled=!1;O.fn&&O.fn.apply(O.context,r.args)}for(Z=0;Z<e;++Z)r=G[Z],O=r.mutateTask,r.isScheduled=!1,O.fn&&O.fn.apply(O.context,r.args),r.state={};G.length=0};var cPC=_.Cp(["about:blank"]),Y0E=_.Cp(["javascript:undefined"]),yPv=_.qK(cPC);_.Qt(yPv);var APw=_.qK(Y0E);_.Qt(APw);var cf=function(G){_.j7.call(this);this.JSC$10169_element_=G;this.listenKeyIn_=_.w2(this.JSC$10169_element_,"focus",this,!0);this.listenKeyOut_=_.w2(this.JSC$10169_element_,"blur",this,!0)};
_.Bz(cf,_.j7);cf.prototype.handleEvent=function(G){var e=new _.t8(G.event_);e.type=G.type=="focusin"||G.type=="focus"?"focusin":"focusout";this.dispatchEvent(e)};
cf.prototype.disposeInternal=function(){cf.superClass_.disposeInternal.call(this);i1(this.listenKeyIn_);i1(this.listenKeyOut_);delete this.JSC$10169_element_};var FMl=function(G,e){this.JSC$10172_element_=G;this.JSC$10172_dom_=e};var Yp=function(G,e){IU.call(this,e);this.useIframeMask_=!!G;this.lastFocus_=null;this.resizeBackgroundTask_=mNj({mutate:this.resizeBackground_},this);mNj({mutate:this.updateModalAndBackground_},this)};
_.Bz(Yp,IU);_.V=Yp.prototype;_.V.focusHandler_=null;_.V.visible_=!1;_.V.bgEl_=null;_.V.bgIframeEl_=null;_.V.tabCatcherElement_=null;_.V.backwardTabWrapInProgress_=!1;_.V.getCssClass=function(){return"goog-modalpopup"};
_.V.getBackgroundElement=function(){return this.bgEl_};
_.V.JSC$10153_createDom=function(){Yp.superClass_.JSC$10153_createDom.call(this);var G=this.getElement(),e=$4(this.getCssClass()).split(" ");A8(G,e);G.tabIndex=0;_.Z2(G,!1);JPE(this);BEC(this)};
var JPE=function(G){if(G.useIframeMask_&&!G.bgIframeEl_){var e=G.JSC$10151_dom_.JSC$9337_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.Ge(e,yPv);G.bgIframeEl_=e;G.bgIframeEl_.className=G.getCssClass()+"-bg";_.Z2(G.bgIframeEl_,!1);mKE(G.bgIframeEl_,0)}G.bgEl_||(G.bgEl_=G.JSC$10151_dom_.JSC$9337_createDom("DIV",G.getCssClass()+"-bg"),_.Z2(G.bgEl_,!1))},BEC=function(G){G.tabCatcherElement_||(G.tabCatcherElement_=G.JSC$10151_dom_.createElement("SPAN"),_.Z2(G.tabCatcherElement_,
!1),G.tabCatcherElement_.tabIndex=0,G.tabCatcherElement_.style.position="absolute")};
_.V=Yp.prototype;_.V.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.V.canDecorate=function(G){return!!G&&G.tagName=="DIV"};
_.V.decorateInternal=function(G){Yp.superClass_.decorateInternal.call(this,G);G=$4(this.getCssClass()).split(" ");A8(this.getElement(),G);JPE(this);BEC(this);this.getElement().tabIndex=0;_.Z2(this.getElement(),!1)};
_.V.enterDocument=function(){this.bgIframeEl_&&_.oi(this.bgIframeEl_,this.getElement());_.oi(this.bgEl_,this.getElement());Yp.superClass_.enterDocument.call(this);_.sg(this.tabCatcherElement_,this.getElement());this.focusHandler_=new cf(this.JSC$10151_dom_.JSC$9335_document_);p9(this).listen(this.focusHandler_,"focusin",this.onFocus);xNP(this,!1)};
_.V.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.TX(this.focusHandler_);Yp.superClass_.exitDocument.call(this);_.d1(this.bgIframeEl_);_.d1(this.bgEl_);_.d1(this.tabCatcherElement_)};
_.V.setVisible=function(G){if(G!=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_&&xNP(this,G),G){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10151_dom_.JSC$9335_document_.activeElement}catch(O){}this.updateModalAndBackground_();p9(this).listen(this.JSC$10151_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10151_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);PYE(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)EY(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){p9(this).unlisten(this.JSC$10151_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10151_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)EY(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var e=this.JSC$10151_dom_,r=e.JSC$9335_document_.body,Z=e.JSC$9335_document_.activeElement||r;if(!this.lastFocus_||this.lastFocus_==r){this.lastFocus_=null;break a}(Z==r||e.contains(this.getElement(),Z))&&this.lastFocus_.focus()}catch(O){}this.lastFocus_=
null}}};
var xNP=function(G,e){G.modalAriaVisibilityHelper_||(G.modalAriaVisibilityHelper_=new FMl(G.JSC$10151_element_,G.JSC$10151_dom_));G=G.modalAriaVisibilityHelper_;if(e){G.hiddenElements_||(G.hiddenElements_=[]);e=G.JSC$10172_dom_.getChildren(G.JSC$10172_dom_.JSC$9335_document_.body);for(var r=0;r<e.length;r++){var Z=e[r],O;if(O=Z!=G.JSC$10172_element_)O=Z.getAttribute("aria-hidden"),O=!(O==null||O==void 0?0:String(O));O&&(C9(Z,"hidden",!0),G.hiddenElements_.push(Z))}}else if(G.hiddenElements_){for(e=
0;e<G.hiddenElements_.length;e++)G.hiddenElements_[e].removeAttribute("aria-hidden");G.hiddenElements_=null}};
Yp.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var PYE=function(G,e){G.bgIframeEl_&&_.Z2(G.bgIframeEl_,e);G.bgEl_&&_.Z2(G.bgEl_,e);_.Z2(G.getElement(),e);_.Z2(G.tabCatcherElement_,e)};
_.V=Yp.prototype;_.V.onShow=function(){this.dispatchEvent("show")};
_.V.onHide=function(){PYE(this,!1);this.dispatchEvent("hide")};
_.V.isVisible=function(){return this.visible_};
_.V.focus=function(){this.focusElement_()};
_.V.resizeBackground_=function(){this.bgIframeEl_&&_.Z2(this.bgIframeEl_,!1);this.bgEl_&&_.Z2(this.bgEl_,!1);var G=this.JSC$10151_dom_.JSC$9335_document_;var e=_.dS(Ax(this.JSC$10151_dom_.JSC$9335_document_)||window);var r=Math.max(e.width,Math.max(G.body.scrollWidth,G.documentElement.scrollWidth));G=Math.max(e.height,Math.max(G.body.scrollHeight,G.documentElement.scrollHeight));this.bgIframeEl_&&(_.Z2(this.bgIframeEl_,!0),_.p2v(this.bgIframeEl_,r,G));this.bgEl_&&(_.Z2(this.bgEl_,!0),_.p2v(this.bgEl_,
r,G))};
_.V.reposition=function(){var G;if(_.Idw(this.getElement())=="fixed")var e=G=0;else e=oP(this.JSC$10151_dom_),G=e.x,e=e.y;var r=u$j(this.getElement());var Z=_.dS(Ax(this.JSC$10151_dom_.JSC$9335_document_)||window);G=Math.max(G+Z.width/2-r.width/2,0);e=Math.max(e+Z.height/2-r.height/2,0);nl(this.getElement(),G,e);nl(this.tabCatcherElement_,G,e)};
_.V.onFocus=function(G){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():G.target==this.tabCatcherElement_&&kV(this.focusElement_,0,this)};
_.V.focusElement_=function(){try{this.getElement().focus()}catch(G){}};
_.V.disposeInternal=function(){_.TX(this.popupShowTransition_);this.popupShowTransition_=null;_.TX(this.popupHideTransition_);this.popupHideTransition_=null;_.TX(this.bgShowTransition_);this.bgShowTransition_=null;_.TX(this.bgHideTransition_);this.bgHideTransition_=null;Yp.superClass_.disposeInternal.call(this)};var JA=function(G,e,r){Yp.call(this,e,r);this.JSC$10182_class_=G||"modal-dialog";this.buttons_=(new yj).addButton(UNn,!0).addButton(zZv,!1,!0)};
_.Bz(JA,Yp);_.V=JA.prototype;_.V.escapeToCancel_=!0;_.V.hasTitleCloseButton_=!0;_.V.modal_=!0;_.V.draggable_=!0;_.V.backgroundElementOpacity_=.5;_.V.title_="";_.V.JSC$10184_dragger_=null;_.V.JSC$10184_disposeOnHide_=!1;_.V.titleEl_=null;_.V.titleTextEl_=null;_.V.titleTextId_=null;_.V.titleCloseEl_=null;_.V.contentEl_=null;_.V.buttonEl_=null;_.V.getCssClass=function(){return this.JSC$10182_class_};
_.V.setTitle=function(G){this.title_=G;this.titleTextEl_&&_.Ii(this.titleTextEl_,G)};
_.V.getTitle=function(){return this.title_};
_.V.getContent=function(){return""};
_.V.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var WMc=function(G){G.getElement()||G.render();return G.getElement()};
JA.prototype.getBackgroundElement=function(){this.getElement()||this.render();return JA.superClass_.getBackgroundElement.call(this)};
var NEj=function(G,e){G.backgroundElementOpacity_=e;G.getElement()&&(e=G.getBackgroundElement())&&mKE(e,G.backgroundElementOpacity_)};
JA.prototype.setDraggable=function(G){this.draggable_=G;LMl(this,G&&this.inDocument_)};
JA.prototype.handleDrag=function(){};
var LMl=function(G,e){var r=$4(G.JSC$10182_class_+"-title-draggable").split(" ");G.getElement()&&(e?A8(G.titleEl_,r):fG3(G.titleEl_,r));e&&!G.JSC$10184_dragger_?(e=new _.um(G.getElement(),G.titleEl_),G.JSC$10184_dragger_=e,A8(G.titleEl_,r),_.w2(G.JSC$10184_dragger_,"start",G.setDraggerLimits_,!1,G),_.w2(G.JSC$10184_dragger_,"drag",G.handleDrag,!1,G)):!e&&G.JSC$10184_dragger_&&(G.JSC$10184_dragger_.dispose(),G.JSC$10184_dragger_=null)};
_.V=JA.prototype;
_.V.JSC$10153_createDom=function(){JA.superClass_.JSC$10153_createDom.call(this);var G=this.getElement(),e=this.JSC$10151_dom_;this.titleTextId_=this.getId();var r=this.getId()+".contentEl";this.titleEl_=e.JSC$9337_createDom("DIV",this.JSC$10182_class_+"-title",this.titleTextEl_=e.JSC$9337_createDom("SPAN",{className:this.JSC$10182_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=e.JSC$9337_createDom("SPAN",this.JSC$10182_class_+"-title-close"));w2w(G,this.titleEl_,this.contentEl_=
e.JSC$9337_createDom("DIV",{className:this.JSC$10182_class_+"-content",id:r}),this.buttonEl_=e.JSC$9337_createDom("DIV",this.JSC$10182_class_+"-buttons"));fE3(this.titleTextEl_,"heading");fE3(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;C9(this.titleCloseEl_,"label","Close");fE3(G,"dialog");C9(G,"labelledby",this.titleTextId_||"");_.Z2(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(G=this.buttons_,G.JSC$10185_element_=this.buttonEl_,G.render());_.Z2(this.buttonEl_,!!this.buttons_);
NEj(this,this.backgroundElementOpacity_)};
_.V.decorateInternal=function(G){JA.superClass_.decorateInternal.call(this,G);G=this.getElement();var e=this.JSC$10182_class_+"-content";this.contentEl_=Xk(document,null,e,G)[0];this.contentEl_||(this.contentEl_=this.JSC$10151_dom_.JSC$9337_createDom("DIV",e),G.appendChild(this.contentEl_));e=this.JSC$10182_class_+"-title";var r=this.JSC$10182_class_+"-title-text",Z=this.JSC$10182_class_+"-title-close";(this.titleEl_=Xk(document,null,e,G)[0])?(this.titleTextEl_=Xk(document,null,r,this.titleEl_)[0],
this.titleCloseEl_=Xk(document,null,Z,this.titleEl_)[0]):(this.titleEl_=this.JSC$10151_dom_.JSC$9337_createDom("DIV",e),G.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=HNc(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.fl("SPAN",{className:r,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;C9(G,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10151_dom_.JSC$9337_createDom("SPAN",Z),this.titleEl_.appendChild(this.titleCloseEl_));_.Z2(this.titleCloseEl_,this.hasTitleCloseButton_);e=this.JSC$10182_class_+"-buttons";(this.buttonEl_=Xk(document,null,e,G)[0])?(this.buttons_=new yj(this.JSC$10151_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10151_dom_.JSC$9337_createDom("DIV",e),G.appendChild(this.buttonEl_),this.buttons_&&(G=this.buttons_,G.JSC$10185_element_=this.buttonEl_,G.render()),_.Z2(this.buttonEl_,
!!this.buttons_));NEj(this,this.backgroundElementOpacity_)};
_.V.enterDocument=function(){JA.superClass_.enterDocument.call(this);p9(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);p9(this).listen(this.buttonEl_,"click",this.onButtonClick_);LMl(this,this.draggable_);p9(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var G=this.getElement();fE3(G,"dialog");this.titleTextEl_.id!==""&&C9(G,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){G=this.JSC$10151_dom_;
var e=this.getBackgroundElement();G.removeNode(this.bgIframeEl_);G.removeNode(e)}this.isVisible()&&xNP(this,!1)}};
_.V.exitDocument=function(){this.isVisible()&&this.setVisible(!1);LMl(this,!1);JA.superClass_.exitDocument.call(this)};
_.V.setVisible=function(G){G!=this.isVisible()&&(this.inDocument_||this.render(),JA.superClass_.setVisible.call(this,G))};
_.V.onShow=function(){JA.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.V.onHide=function(){JA.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10184_disposeOnHide_&&this.dispose()};
_.V.setDraggerLimits_=function(){var G=this.JSC$10151_dom_.JSC$9335_document_,e=_.dS(Ax(G)||window),r=Math.max(G.body.scrollWidth,e.width);G=Math.max(G.body.scrollHeight,e.height);var Z=u$j(this.getElement());_.Idw(this.getElement())=="fixed"?this.JSC$10184_dragger_.limits=new pl(0,0,Math.max(0,e.width-Z.width),Math.max(0,e.height-Z.height)):this.JSC$10184_dragger_.limits=new pl(0,0,r-Z.width,G-Z.height)};
_.V.onTitleCloseClick_=function(){GwE(this)};
var GwE=function(G){if(G.hasTitleCloseButton_){var e=G.buttons_,r=e&&e.cancelButton_;r?(e=e.get(r),G.dispatchEvent(new AK(r,e))&&G.setVisible(!1)):G.setVisible(!1)}},egb=function(G){G.hasTitleCloseButton_=!1;
G.titleCloseEl_&&_.Z2(G.titleCloseEl_,G.hasTitleCloseButton_)};
JA.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;JA.superClass_.disposeInternal.call(this)};
JA.prototype.onButtonClick_=function(G){a:{for(G=G.target;G!=null&&G!=this.buttonEl_;){if(G.tagName=="BUTTON")break a;G=G.parentNode}G=null}if(G&&!G.disabled){G=G.name;var e=this.buttons_.get(G);this.dispatchEvent(new AK(G,e))&&this.setVisible(!1)}};
JA.prototype.onKey_=function(G){var e=!1,r=!1,Z=this.buttons_,O=G.target;if(G.type=="keydown")if(this.escapeToCancel_&&G.keyCode==27){var M=Z&&Z.cancelButton_;O=O.tagName=="SELECT"&&!O.disabled;M&&!O?(r=!0,e=Z.get(M),e=this.dispatchEvent(new AK(M,e))):O||(e=!0)}else{if(G.keyCode==9&&G.shiftKey&&O==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(q){}kV(this.resetBackwardTabWrap_,0,this)}}else if(G.keyCode==13){if(O.tagName=="BUTTON"&&!O.disabled)M=O.name;
else if(O==this.titleCloseEl_)GwE(this);else if(Z){var T=Z.defaultButton_,E;if(E=T)a:{E=oF("BUTTON",Z.JSC$10185_element_);for(var b,w=0;b=E[w];w++)if(b.name==T||b.id==T){E=b;break a}E=null}O=(O.tagName=="TEXTAREA"||O.tagName=="SELECT"||O.tagName=="A")&&!O.disabled;!E||E.disabled||O||(M=T)}M&&Z&&(r=!0,e=this.dispatchEvent(new AK(M,String(Z.get(M)))))}else O!=this.titleCloseEl_||G.keyCode!=32&&G.key!=" "||GwE(this);if(e||r)G.stopPropagation(),G.preventDefault();e&&this.setVisible(!1)};
var AK=function(G,e){this.type="dialogselect";this.key=G;this.caption=e};
_.Bz(AK,_.qQ);var yj=function(G){mI.call(this);G||sw();this.cancelButton_=this.JSC$10185_element_=this.defaultButton_=null};
_.Bz(yj,mI);_.V=yj.prototype;_.V.clear=function(){mI.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.V.set=function(G,e,r,Z){mI.prototype.set.call(this,G,e);r&&(this.defaultButton_=G);Z&&(this.cancelButton_=G);return this};
_.V.addButton=function(G,e,r){return this.set(G.key,G.caption,e,r)};
_.V.render=function(){if(this.JSC$10185_element_){_.Te(this.JSC$10185_element_,iF$);var G=sw(this.JSC$10185_element_);this.forEach(function(e,r){e=G.JSC$9337_createDom("BUTTON",{name:r},e);r==this.defaultButton_&&(e.className="goog-buttonset-default");this.JSC$10185_element_.appendChild(e)},this)}};
_.V.decorate=function(G){if(G&&G.nodeType==1){this.JSC$10185_element_=G;G=oF("BUTTON",this.JSC$10185_element_);for(var e,r,Z,O=0;e=G[O];O++)if(r=e.name||e.id,Z=HNc(e)||e.value,r){var M=O==0;this.set(r,Z,M,e.name=="cancel");M&&_.m2(e,"goog-buttonset-default")}}};
_.V.getElement=function(){return this.JSC$10185_element_};
var UNn={key:"ok",caption:"OK"},zZv={key:"cancel",caption:"Cancel"},rbW={key:"yes",caption:"Yes"},ZOb={key:"no",caption:"No"},OOP={key:"save",caption:"Save"},MWl={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new yj).addButton(UNn,!0,!0),(new yj).addButton(UNn,!0).addButton(zZv,!1,!0),(new yj).addButton(rbW,!0).addButton(ZOb,!1,!0),(new yj).addButton(rbW).addButton(ZOb,!0).addButton(zZv,!1,!0),(new yj).addButton(MWl).addButton(OOP).addButton(zZv,!0,!0));_.Bz(Gcy,JA);_.Bz(ez_,xW);var VWy=_.Cp(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),hg3=_.Cp(["//apis.google.com/js/rpc.js"]),E2$=_.qK(VWy),Das=_.qK(hg3),ZFf=null;var Pp=function(G,e){_.j7.call(this);this.JSC$10194_element_=G;G=_.Vx(this.JSC$10194_element_)?this.JSC$10194_element_:this.JSC$10194_element_?this.JSC$10194_element_.body:null;this.isRtl_=!!G&&_.cxE(G);this.listenKey_=_.w2(this.JSC$10194_element_,_.Wz?"DOMMouseScroll":"mousewheel",this,e)};
_.Bz(Pp,_.j7);Pp.prototype.handleEvent=function(G){var e=0,r=0,Z=G.event_;Z.type=="mousewheel"?(G=ToS(-Z.wheelDelta),Z.wheelDeltaX!==void 0?(e=ToS(-Z.wheelDeltaX),r=ToS(-Z.wheelDeltaY)):r=G):(G=Z.detail,G>100?G=3:G<-100&&(G=-3),Z.axis!==void 0&&Z.axis===Z.HORIZONTAL_AXIS?e=G:r=G);typeof this.maxDeltaX_==="number"&&(e=_.j0(e,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(r=_.j0(r,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(e=-e);e=new Dzb(G,Z,e,r);this.dispatchEvent(e)};
var ToS=function(G){return _.NS&&(_.Y_j||Aij)&&G%40!=0?G:G/40};
Pp.prototype.disposeInternal=function(){Pp.superClass_.disposeInternal.call(this);i1(this.listenKey_);this.listenKey_=null};
var Dzb=function(G,e,r,Z){_.t8.call(this,e);this.type="mousewheel";this.detail=G;this.deltaX=r;this.deltaY=Z};
_.Bz(Dzb,_.t8);_.Yi=function(G){var e="instance_";if(G.instance_&&G.hasOwnProperty(e))return G.instance_;e=new G;return G.instance_=e};var TL_;var Eyw=_.Cp(["https://about:blank"]),iOb=_.Cp(['javascript:""']),bOW=_.Cp(["about:blank"]);_.Bz(OM,Gcy);_.V=OM.prototype;_.V.JSC$10202_url_="";_.V.JSC$10202_iframe_=null;_.V.iframeLoaded_=!1;_.V.loadedFired_=!1;_.V.callback_=function(){};
_.V.enterDocument=function(){OM.superClass_.enterDocument.call(this);VSN(this.getBackgroundElement(),p9(this))};
_.V.render=function(G){var e=this;OM.superClass_.render.call(this,G);this.useGapi_?bt3(this.iframeManager_,window).then(function(){return vyE(e)}).then(null,function(){e.callback_({action:"error"})}):wiw(this)};
var vyE=function(G){var e=G.JSC$10151_dom_.JSC$9337_createDom("div",["picker-dialog-content","picker-frame"]);_.Z2(e,!1);G.getContentElement().appendChild(e);return vuE(G.iframeManager_,e,function(r){var Z=sFE(r["iframe-command"]);switch(Z.getCommand()){case 1:r=G.callback_;Z=_.SS(Z,e7,2);var O="";switch(Z.getStatus()){case 2:O="cancel";break;case 1:O="picked";break;case 3:O="error"}var M=_.ix(Z,vs,2,_.bx(vwE));Z=M.length===0?{action:O}:xxv(M,O,_.SS(Z,HBl,7));r.call(G,Z);G.setVisible(!1);break;case 4:egb(G);
G.callback_({action:"loaded"});break;case 7:case 8:r=G.callback_;a:{O=Z.getCommand();M=_.SS(Z,e7,2);switch(O){case 7:O="uploadScheduled";break;case 8:O="uploadStateChange";break;default:Z={};break a}Z=_.ix(M,vs,2,_.bx(vwE));if(Z.length===0)Z={action:O};else{var T=_.SS(M,HBl,7);M=T&&_.gU(T,1);T=CCE(T);Z=mxv(Z,O,M,T)}}r.call(G,Z)}},G.JSC$10202_url_,G.targetId_,G.rpcToken_).then(function(r){G.JSC$10202_iframe_=r.getIframeEl();
$zw(G);_.Z2(G.JSC$10202_iframe_.parentElement,!0);_.m2(G.getElement(),"picker-dialog");SWn(G);return r})},wiw=function(G){G.JSC$10202_iframe_=G.JSC$10151_dom_.JSC$9337_createDom("IFRAME",{id:G.targetId_,
name:G.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.Ge(G.JSC$10202_iframe_,qWE(G));_.m2(G.getElement(),"picker-dialog");G.getContentElement().appendChild(G.JSC$10202_iframe_);p9(G).listen(G.JSC$10202_iframe_,"load",function(){return void $zw(G)});
G.JSC$10202_iframe_.src=G.JSC$10202_url_;SWn(G)},gyb=function(G){tWl(G,(0,_.CB)(function(e){e.setAuthToken(this.targetId_,this.rpcToken_)},G))},SWn=function(G){var e=_.Gy(_.LB(G.JSC$10202_url_),"title");
e&&G.setTitle(e)},qWE=function(G){return _.jyS("Internet Explorer")>=7&&_.Vp(G.JSC$10202_url_,"https")?_.qK(Eyw):_.zx?_.qK(iOb):_.qK(bOW)},$zw=function(G){gyb(G);
G.iframeLoaded_=!0;G.JSC$10202_iframe_.tabIndex=0;G.isVisible()&&G.focus()};
OM.prototype.handleKeydown_=function(G){G.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),G.stopPropagation(),G.preventDefault())};
var tWl=function(G,e){var r=G.JSC$10200_gadgetsDomHelper_;OFy(function(){e(r.getWindow().gadgets.rpc)},r)};
OM.prototype.setUrl=function(G){G=_.eO(new _.nO(G),"rpcService",this.targetId_);_.eO(G,"rpctoken",this.rpcToken_);_.OA(G,"rpctoken="+this.rpcToken_);_.LY(G,"https");this.JSC$10202_url_=G.toString();this.JSC$10202_iframe_&&(this.JSC$10202_iframe_.src=this.JSC$10202_url_)};
var lzC=function(G,e){G.callback_=e;tWl(G,(0,_.CB)(function(r){r.register(this.targetId_,(0,_.CB)(this.handlePickerAction_,this))},G))};
OM.prototype.handlePickerAction_=function(G){var e=G.action;e=="loaded"&&(this.loadedFired_=!0,RgE(this,new LaF(this.isVisible())),jpS(this),egb(this),p9(this).unlisten(this.JSC$10151_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10202_iframe_.tabIndex=0);e!="picked"&&e!="cancel"||this.setVisible(!1);this.callback_(G)};
var jpS=function(G){G.JSC$10202_appId_&&RgE(G,new NRq(G.JSC$10202_appId_,window.location.protocol+"//"+window.location.host))};
OM.prototype.setRelayUrl=function(G){tWl(this,(0,_.CB)(function(e){e.setRelayUrl(this.targetId_,G)},this))};
var RgE=function(G,e){G.useGapi_&&tCn(e,G.iframeManager_).then(null,function(){G.callback_({action:"error"})});
tWl(G,(0,_.CB)(function(r){r.call(this.targetId_,"picker",null,e)},G))};
OM.prototype.resizePicker_=function(){var G=Ax(this.JSC$10151_dom_.JSC$9335_document_)||window;if(_.Gy(_.LB(this.JSC$10202_url_),"ignoreLimits")=="true")G=new _.kf(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.Gy(_.LB(this.JSC$10202_url_),"shadeDialog")=="true"){var e=WMc(this);e=YwW(e);var r=_.dS(G);G=r.width-80;r=r.height-40;e&&(G-=e.left?e.left:0,G-=e.right?e.right:0,r-=e.top?e.top:0,r-=e.bottom?e.bottom:0);G=new _.kf(G>0?G:0,r>0?r:0)}else(e=this.preferredDialogWidth_)?(e=Math.max(320,
Math.min(1051,e)),(r=this.preferredDialogHeight_)||(r=_.dS(G).height*.85),r=Math.max(480,Math.min(650,r))):(e=_.dS(G),r=e.width*.618,r=r<e.height?Math.round(Math.max(480,Math.min(650,r*.85))):Math.round(Math.max(480,Math.min(650,e.height*.85))),e=Math.round(r/.618)),G=_.dS(G),e=Math.min(e,Math.max(G.width,320)),r=Math.min(r,Math.max(G.height,480)),G=new _.kf(e,r);_.p2v(this.getContentElement(),G);this.reposition()};
OM.prototype.reposition=function(){if(_.Gy(_.LB(this.JSC$10202_url_),"shadeDialog")=="true"){var G=u$j(this.getElement()),e=_.dS(this.JSC$10151_dom_.getWindow());G=Math.floor(e.width/2-G.width/2);e=WMc(this);if(e=YwW(e)){var r=e.left?e.left:0;r+=e.right?e.right:0;G=Math.floor(G-r/2)}G=G>0?G:0;e=oP(this.JSC$10151_dom_).y;nl(this.getElement(),G,e)}else OM.superClass_.reposition.call(this)};
OM.prototype.setVisible=function(G){if(G!=this.isVisible()&&this.autoSizeDialog_){var e=this.JSC$10151_dom_.getWindow();G?(this.resizePicker_(),p9(this).listen(e,"resize",this.resizePicker_),this.iframeLoaded_||p9(this).listen(e,"keydown",this.handleKeydown_)):(p9(this).unlisten(e,"resize",this.resizePicker_),this.iframeLoaded_||p9(this).unlisten(e,"keydown",this.handleKeydown_))}OM.superClass_.setVisible.call(this,G);RgE(this,new LaF(G))};
OM.prototype.focus=function(){OM.superClass_.focus.call(this);if(this.JSC$10202_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10202_iframe_.focus()}catch(G){}};var EO=function(G,e){e=e===void 0?OM:e;xW.call(this,G);this.pickerConstructor=e;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(G=window.location.origin)||(G=window.location.protocol+"//"+window.location.host);G&&this.urlParamMap_.set("origin",G);this.postProcessors_=[]};
_.K(EO,ez_);EO.prototype.JSC$10207_disposeOnHide_=!1;
EO.prototype.build=function(){this.JSC$10108_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10108_appId_);this.getRelayUrl()||this.setRelayUrl(_.rd(_.OA(_.ZX(_.LB(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var G=new this.pickerConstructor(azW(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);G.JSC$10184_disposeOnHide_=this.JSC$10207_disposeOnHide_;
G.JSC$10202_appId_=this.JSC$10108_appId_;G.loadedFired_&&jpS(G);lzC(G,this.callback_);return G};
var XiS=function(G){G.urlParamMap_.set("multiselectEnabled","true");return G};
_.V=EO.prototype;_.V.getHeight=function(){return this.dialogHeight_};
_.V.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.V.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.V.getTitle=function(){return this.urlParamMap_.get("title")};
_.V.getWidth=function(){return this.dialogWidth_};
var KH3=function(G){G.JSC$10207_disposeOnHide_=void 0;return G};
EO.prototype.setRelayUrl=function(G){this.urlParamMap_.set("parent",G);return this};
var fzW=function(G,e){G.urlParamMap_.set("selectButtonLabel",e);return G};
EO.prototype.setSize=function(G,e){this.dialogWidth_=G;this.dialogHeight_=e;return this};
EO.prototype.setTitle=function(G){this.urlParamMap_.set("title",G);return this};
var azW=function(G){G.postProcessors_.length&&G.urlParamMap_.set("pp",JSON.stringify(G.postProcessors_));G.urlParamMap_.set("nav",s5E(G.nav_));var e=new _.nO(G.getBaseUrl());G.urlParamMap_.forEach(function(r,Z){_.eO(e,Z,r)});
return e};var dzS=function(G,e){G.name!==void 0?(this.name=G.name,this.code=kwl[G.name]):(this.code=G=G.code,this.name=HOj(G));_.rs.call(this,L_W("%s %s",this.name,e))};
_.Bz(dzS,_.rs);var HOj=function(G){var e=_.c2.findKey(kwl,function(r){return G==r});
if(e===void 0)throw Error("hb`"+G);return e},Fl={},kwl=(Fl.AbortError=3,Fl.EncodingError=5,Fl.InvalidModificationError=9,Fl.InvalidStateError=7,Fl.NotFoundError=1,Fl.NotReadableError=4,Fl.NoModificationAllowedError=6,Fl.PathExistsError=12,Fl.QuotaExceededError=10,Fl.SecurityError=2,Fl.SyntaxError=8,Fl.TypeMismatchError=11,Fl);var oyn=function(G,e){_.qQ.call(this,G.type,e);this.event_=G};
_.Bz(oyn,_.qQ);var spE=function(G,e,r){r===void 0&&(r=G.size);return G.slice?G.slice(e,r):null};var v2y=new WeakMap,bFp=function(G,e){G=[G];for(var r=e.length-1;r>=0;--r)G.push(typeof e[r],e[r]);return G.join("\v")};_.$as(function(){if(!_.O_.Blob)return!1;var G=new Uint8Array(100);try{var e=new Blob([G])}catch(r){return!1}return e.size!=100?!1:!0});
var QpE=_.$as(function(){if(!_.O_.Blob)return!1;var G=new Uint8Array(100);try{var e=new Blob([G])}catch(r){return!1}return spE(e,0,1)===null?!1:!0});_.O_.U3bHHf!=null||(_.O_.U3bHHf=0);_.O_.U3bHHf++;_.IzC=new WeakMap;_.pic=new WeakMap;var qup={};var hB=void 0;var g2p=Symbol("pb");var QcS=EM("WizInjectionContext_Dispatcher");var wx=Symbol("qb");var kZ,Io;kZ=function(){this.afterRenderCallbacks=null};
_.gyq=Symbol("rb");Io=function(G){this.props=G;this.__unmounted=!1};
Io.prototype.didPatch=function(){};
Io.prototype.didMount=function(){};
Io.prototype.didUnmount=function(){};
Io.prototype.didUpdate=function(){};_.kcN=EM("WizInjectionContext_RootElement");var daf=EM("WizInjectionContext_AppContext"),HFA=EM("WizInjectionContext_ModelRootElement"),o2p=EM("WizInjectionContext_RendererData"),scp=EM("WizInjectionContext_InjectingConstructor"),fGS=EM("WizInjectionContext_AsyncDeps"),IG_={};var c0S=!1;var FB$={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:pAP,enableLazyTsx:CFc,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:Iqv,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var bW=Object.assign({},{attributes:{},handleError:function(G){throw G;}},FB$);var C4l=Symbol("vb"),sM=Symbol("wb"),rTp=Symbol("xb"),G2q=Symbol("yb"),DxS=uy(function(G){return vO(G)&&C4l in G});var WBp=Symbol("zb"),JK={},UaN=(JK[WBp]=!0,JK.debugName="[component]",JK.getComponentStack=function(){for(var G=[],e=this;e;)NLf(e)&&G.push(e.debugName),e=e.parent;return G},JK.registerSignal=function(){},JK.registerEffect=function(){},JK);var ww=null,SO=!1,gw=1,jO=Symbol("Db"),HO={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 Bf=Symbol("Eb"),xp=Symbol("Fb"),Rh=Symbol("Gb"),Tli=Object.assign({},HO,{value:Bf,dirty:!0,error:null,equal:LB$,kind:"computed",producerMustRecompute:function(G){return G.value===Bf||G.value===xp},
producerRecomputeValue:function(G){if(G.value===xp)throw Error("Z");var e=G.value;G.value=xp;var r=M4S(G),Z=!1;try{var O=G.computation();$8(null);Z=e!==Bf&&e!==Rh&&O!==Rh&&G.equal(e,O)}catch(M){O=Rh,G.error=M}finally{$8(r),G&&hr4(G)}Z?G.value=e:(G.value=O,G.version++)}});Object.assign({},HO,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var bLS=function(){throw Error();};var wga=null,Eca=Object.assign({},HO,{equal:LB$,value:void 0,kind:"signal"});var $hN=Object.assign({},HO,{value:Bf,dirty:!0,error:null,equal:LB$,kind:"linkedSignal",producerMustRecompute:function(G){return G.value===Bf||G.value===xp},
producerRecomputeValue:function(G){if(G.value===xp)throw Error("Z");var e=G.value;G.value=xp;var r=M4S(G);try{var Z=G.source();var O=G.computation(Z,e===Bf||e===Rh?void 0:{source:G.sourceValue,value:e});G.sourceValue=Z}catch(M){O=Rh,G.error=M}finally{$8(r),G&&hr4(G)}e!==Bf&&O!==Rh&&G.equal(e,O)?G.value=e:(G.value=O,G.version++)}});Object.assign({},HO,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(G){G.schedule!==null&&G.schedule(G.ref)},
cleanupFn:function(){}});var t4a=Symbol("Hb"),Ko=Symbol("Ib");var fo=Array.isArray;var krA;var uRj={},dhA=fR4(Object.assign({},{consumerAllowSignalWrites:!0},uRj)),dx=fR4(Object.assign({},{consumerAllowSignalWrites:!0},uRj));var QD=0,Ih=!1,Pf=function(){this.queue=new Set};
Pf.prototype.schedule=function(G){this.queue.add(G)};
Pf.prototype.remove=function(G){this.queue.delete(G)};
Pf.prototype.clear=function(){this.queue.clear()};
var zrN=Symbol("Nb"),oc$=Symbol("Ob"),UA=function(){Pf.apply(this,arguments)};
_.K(UA,Pf);UA.prototype.flush=function(){if(this.queue.size){Ih=!0;for(var G=_.h(this.queue),e=G.next();!e.done;e=G.next()){e=e.value;this.queue.delete(e);try{e.run()}catch(r){nyl(r)}}Ih=!1}};
var mzC=function(){UA.apply(this,arguments)};
_.K(mzC,UA);var Uhp=new mzC,cbc=function(){UA.apply(this,arguments)};
_.K(cbc,UA);cbc.prototype.schedule=function(G){return _.D(function(e){if(e.nextAddress==1)return e.yield(Promise.resolve(),2);G.run();_.HL(e)})};
cbc.prototype.enqueue=function(G){this.queue.add(G)};
var WfS=new cbc,zj=function(){Pf.apply(this,arguments)};
_.K(zj,Pf);zj.prototype.flush=function(){this.queue.size&&EsA(this.queue)};
var YWW=function(){zj.apply(this,arguments)};
_.K(YWW,zj);YWW.prototype.schedule=function(G){G.hasRun?this.queue.add(G):G.run()};
YWW.prototype.flush=function(){if(this.queue.size)if(bW.flushRenderEffectsDuringRender){var G=this.queue;this.queue=new Set;EsA(G)}else EsA(this.queue)};
var LfF=new YWW,ybl=function(){zj.apply(this,arguments)};
_.K(ybl,zj);ybl.prototype.schedule=function(G){return _.D(function(e){if(e.nextAddress==1)return e.yield(Promise.resolve(),2);G.run();_.HL(e)})};
ybl.prototype.enqueue=function(G){this.queue.add(G)};
var ZMp=new ybl,Ab3=function(){zj.apply(this,arguments)};
_.K(Ab3,zj);var esp=new Ab3,M8_=[LfF,Uhp,esp],TeS=[WfS,ZMp],FHl=[LfF,esp,ZMp],iMF=[].concat(_.mY(M8_),_.mY(TeS)),Jby=[];wga=function(){hs_();for(var G=_.h(Jby),e=G.next();!e.done;e=G.next())e=e.value,e()};
var nyl=MU;var uW=Symbol("Pb");var Co=null,wJF,$xN=null,SHU;var Wf={},BoP=Object.assign({},HO,(Wf[C4l]=!0,Wf.effectType=sM,Wf.isResettableContext=!0,Wf.hasRun=!1,Wf.effectFn=null,Wf.consumerIsAlwaysLive=!0,Wf.consumerAllowSignalWrites=!0,Wf.consumerMarkedDirty=OMp,Wf.kind="effect",Wf.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(SO)throw Error("Qb");this.dirty=!1;if(!this.hasRun||rG4(this)){this.hasRun=!0;KBa(this);var G=_.Ty(this),e=M4S(this);BLA("effectRun",this.debugName);try{cO(this.effectFn,this.componentStack,this)}catch(r){throw bW.enableContextBasedComponentStacks&&
mV(r),r;}finally{xai("effectRun",this.debugName),$8(e),this&&hr4(this),_.Ty(G)}}}},Wf.componentStack=void 0,Wf.debugName="[effect]",Wf[Symbol.dispose]=function(){if(tB(this))for(var G=this.producers;G!==void 0;)G=V4U(G);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;G=_.h(FHl);for(var e=G.next();!e.done;e=G.next())e.value.remove(this);XG$(this)},Wf));var gsS=Object.assign({},BoP,{effectType:rTp});var j5U=Symbol("Rb");var ams=Object.assign({},BoP,{effectType:sM});var MCS=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 fmF={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},Kup=
{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}]}},lFp={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},dxU=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],HMf={"*":{async:1,dir:0,loading:2,target:3}};var xzj=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,N1={},s5$=(N1[1]=null,N1[2]=function(G,e){return e instanceof Uk?Lj(e):At.toString()},N1[3]=function(G,e){return uz(e)?_.nj(e):xzj.test(String(e))?String(e):At.toString()},N1[4]=function(G,e){return e instanceof dz?_.Qt(e):At.toString()},N1[5]=function(G,e){return String(e)},N1[7]=null,N1[8]=null,N1[10]=null,N1);var KvF=Symbol("Ub");var tha=function(G){var e=P4E,r=G,Z="",O="",M=1;G<0&&(G=-G);if(G===Infinity)G=(Infinity*Math.sign(r)).toString();else{for(var T=0;T<Uzy.length;T++){var E=Uzy[T];M=e[E];if(G>=M||M<=1&&G>.1*M){Z=E;break}}Z?(Z+="B",O=" "):M=1;G=Math.round(r/M*10)/10+O+Z}return G},Uzy="Y Z E P T G M K  m u n".split(" "),P4E={"":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};_.zgw=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 Ro={};RegExp.prototype.hasOwnProperty("sticky");var hZs=function(G){G=String(G);for(var e=function(Z,O,M){for(var T=Math.min(O.length-M,Z.length),E=0;E<T;E++){var b=O[M+E];if(Z[E]!==("A"<=b&&b<="Z"?b.toLowerCase():b))return!1}return!0},r=0;(r=G.indexOf("<",r))!=-1;){if(e("\x3c/script",G,r)||e("\x3c!--",G,r))return"zSoyz";
r+=1}return G};var WO={default:"__default"};var nsS=Object.prototype.hasOwnProperty;pJS.prototype=Object.create(null);var EH=YHU();var DY=null;var Ne4=function(G){this.created=[];this.deleted=[];this.node=G};var Luq=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var G=this,e=G;G;)e=G,G=G.parentNode;return e};var ATA=function(G,e){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=G;this.key=e;this.text=void 0};var ZY=null,O9=null,e1=null,VY=null,PC4=[],xxp=JTF,hH=[],Tb=[],Xep=function(G){return GUq(function(e,r,Z){e1=O9=e;O9=null;r(Z);BeS(null);O9=e1;e1=e1.parentNode;return e},G)}(),aVa=function(G){return GUq(function(e,r,Z){var O={nextSibling:e};
O9=O;r(Z);e1&&BeS(e.nextSibling);return O===O9?null:O9},G)}();var E9=[],rPN=0;var i6=new pJS;var t_=new pJS;var WH3=YHU(),Euf=WH3[WO.default],DNq=WH3.style,VC4=["focusin","focusout"],vua="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var LM_=function(){},yPp=function(){},OOf=function(){},egq=function(){};var vX=Symbol("bc");var tCN,q0S=S0_;var Xt=Symbol("cc");var ZOq=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(" ")),
rbU=new Set(["a","font","script","style","title"]);_.ao={setUp:sdi,tearDown:sdi,log:sdi,logNodeRange:sdi,graft:function(G,e){e()}};var oo={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var s9=null,QY=function(G,e){Io.call(this,G);var r=this;this.functionComponent=e;this.hooks=[];this.hookCounter=0;this.disposeEffects=AB(function(Z){r.effectContext=Z;_.yD(function(){BES(r,r.el)})},bW.alwaysTrackContexts||!!hB)};
_.K(QY,Io);QY.prototype.render=function(G){var e=s9;s9=this;this.hookCounter=0;var r=$8(dx),Z=_.Ty(this.effectContext);try{return BLA("render",this.componentName),this.functionComponent(G)}finally{xai("render",this.componentName),_.Ty(Z),$8(r),s9=e}};
_.iY.Object.defineProperties(QY.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return bMs(this.functionComponent)}}});var MW_=Symbol("qc"),WMA=function(G,e,r){this.afterRenderCallbacks=null;this.kind=G;this.props=e;this.children=r};
_.K(WMA,kZ);WMA.prototype.render=function(){var G=zZp(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var e=_.h(this.afterRenderCallbacks),r=e.next();!r.done;r=e.next())r=r.value,G=r(G);return G};
WMA.prototype.getChildren=function(){return this.children};var hgS=[];bLS=function(G){throw Error("ob`"+G.debugName);};
(function(){var G=DY;DY=function(e){G==null||G(e);Toi(e)}})();Object.assign({},BoP,{effectType:sM,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var G=this.elementRef;var e;G.element!=null||(G.element=(e=G.document.getElementById(G.value))!=null?e:void 0);G=G.element;for(e=this.attributes;e;){var r=e.signal();r!==e.prevValue&&(e.prevValue=r,e.namespace===1?G[e.name]=r:MCS.has(e.name)?zy(G,e.name,r?"":null):zy(G,e.name,r));e=e.next}}});_.pz.debugName="tbhMcf";_.Cz.debugName="zyMFzb";Object.assign({},BoP,{effectType:sM,hasRun:!0});_.S.debugName="RlDudd";var Dzq={nonNullableCondIsNull:function(){return Error("uc")}};var $z4=function(){this.map=new Map};
$z4.prototype.push=function(G,e){var r=this.map;r.has(G)&&(this.multi||(this.multi=new Map),this.multi.set(e,r.get(G)));r.set(G,e)};
$z4.prototype.pop=function(G){var e=this.map,r=e.get(G),Z;r!==void 0&&((Z=this.multi)==null?0:Z.has(r))?(e.set(G,this.multi.get(r)),this.multi.delete(r)):e.delete(G);return r};_.u6.debugName="nsTGHd";_.nz.debugName="vI1rtf";_.Rg$={OUT_OF_ORDER_HOOK_CALL:function(G){return Error("vc`"+G)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("wc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("xc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("yc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(G,e){return Error("zc`"+((e===void 0?0:e)?"IDOM":"Reactive")+"`"+(m0(G)?G.description:G))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(G,e){return Error("Ac`"+(m0(G)?G.description:G)+"`"+e)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(G){return Error("Bc`"+(m0(G)?G.description:G))},
USE_ELEMENT_NOT_ASSIGNED:function(G){return Error("Cc`"+(m0(G)?G.description:G))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(G){return Error("Dc`"+(m0(G)?G.description:G))}};tCN=NEs;var kw_=Symbol("Ec");FM_({beforeRender:function(G){var e=_.Ty(G.effectContext);try{var r;((r=G.__syncEffects)==null?0:r.length)&&oyN(G.__syncEffects)}finally{_.Ty(e)}},
didPatch:function(G){var e=_.Ty(G.effectContext);try{var r;((r=G.__syncEffects)==null?0:r.length)&&oyN(G.__syncEffects)}finally{_.Ty(e)}},
didUnmount:function(G){var e;((e=G.hooks)==null?0:e.length)&&G.hooks.forEach(dzi)}});var NoW,LHj,Gnl;NoW=_.O_.window;_.JH=(NoW==null?void 0:(LHj=NoW.yt)==null?void 0:LHj.config_)||(NoW==null?void 0:(Gnl=NoW.ytcfg)==null?void 0:Gnl.data_)||{};_.Eu("yt.config_",_.JH);var eBP={},C4_=[];_.Cr=function(G){var e=_.Bw.apply(1,arguments);var r=Error.call(this,G);this.message=r.message;"stack"in r&&(this.stack=r.stack);this.args=[].concat(_.mY(e));Object.setPrototypeOf(this,this.constructor.prototype)};
_.K(_.Cr,Error);var Z6p=function(G,e,r){this.actionName=G;this.optionalAction=e===void 0?!1:e;this.args=r===void 0?null:r;this.returnValue=[]};_.L9=function(G){this.name=G};_.zr=new _.L9("signalAction");var xzs=/^[\w.]*$/,YWy={q:!0,search_query:!0},cbA=String(mzS);var wR;wR=Symbol("Fc");_.Gz=function(G){this.name=G};
_.Gz.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var P4a=function(G){this.key=G},LHs=function(G){this.deferredKey=G},zg4=function(){var G=this;
this.providers=new Map;this.JSC$10497_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(G.providers)}}};
zg4.prototype.addProvider=function(G){this.providers.set(G.provide,G);var e=this.JSC$10497_deferred.get(G.provide);if(e)try{e.resolver(this.resolve(G.provide))}catch(r){e.rejector(r)}};
zg4.prototype.resolve=function(G){return G instanceof LHs?ryW(this,G):G instanceof P4a?Z_W(this,G.key,[],!0):Z_W(this,G,[])};
var ryW=function(G,e){e=e.deferredKey;if(G.JSC$10497_deferred.has(e))return G.JSC$10497_deferred.get(e).promise;var r={};r.promise=new Promise(function(Z,O){r.resolver=Z;r.rejector=O});
G.JSC$10497_deferred.set(e,r);return r.promise},Z_W=function(G,e,r,Z){Z=Z===void 0?!1:Z;
if(r.indexOf(e)>-1)throw Error("Gc`"+e);if(G.cachedValues.has(e))return G.cachedValues.get(e);if(!G.providers.has(e)){if(Z)return;throw Error("Hc`"+e);}Z=G.providers.get(e);r.push(e);if(Z.useValue!==void 0)var O=Z.useValue;else if(Z.useFactory)O=Z[wR]?O_j(G,Z[wR],r):[],O=Z.useFactory.apply(Z,_.mY(O));else if(Z.useClass){O=Z.useClass;var M=O[wR]?O_j(G,O[wR],r):[];O=new (Function.prototype.bind.apply(O,[null].concat(_.mY(M))))}else throw Error("Ic`"+e);r.pop();Z.skipCache||G.cachedValues.set(e,O);return O},
O_j=function(G,e,r){return e?e.map(function(Z){return Z instanceof P4a?Z_W(G,Z.key,r,!0):Z_W(G,Z,r)}):[]};var UzF;var LL=new _.Gz("ENDPOINT_HANDLER_TOKEN");_.G2=new _.L9("urlEndpoint");var MqE=function(){this.data=[];this.cachedPackedInt52=-1};
MqE.prototype.set=function(G,e){e=e===void 0?!0:e;0<=G&&G<52&&Number.isInteger(G)&&this.data[G]!==e&&(this.data[G]=e,this.cachedPackedInt52=-1)};
MqE.prototype.get=function(G){return!!this.data[G]};
var VqE=function(G){G.cachedPackedInt52===-1&&(G.cachedPackedInt52=G.data.reduce(function(e,r,Z){return e+(r?Math.pow(2,Z):0)},0));
return G.cachedPackedInt52};var vJy=function(G){var e=hB3;G=G===void 0?_.Lz("yt.ads.biscotti.lastId_")||"":G;var r=Object,Z=r.assign,O={};O.dt=MSE;O.flash="0";a:{try{var M=e.JSC$10503_win_.top.location.href}catch(e$){M=2;break a}M=M?M===e.doc_.location.href?0:1:2}O=(O.frm=M,O);try{O.u_tz=-(new Date).getTimezoneOffset();try{var T=cK.history.length}catch(e$){T=0}O.u_his=T;var E;O.u_h=(E=cK.screen)==null?void 0:E.height;var b;O.u_w=(b=cK.screen)==null?void 0:b.width;var w;O.u_ah=(w=cK.screen)==null?void 0:w.availHeight;var q;O.u_aw=
(q=cK.screen)==null?void 0:q.availWidth;var t;O.u_cd=(t=cK.screen)==null?void 0:t.colorDepth}catch(e$){}T=e.JSC$10503_win_;try{var g=T.screenX;var l=T.screenY}catch(e$){}try{var X=T.outerWidth;var H=T.outerHeight}catch(e$){}try{var I=T.innerWidth;var C=T.innerHeight}catch(e$){}try{var u=T.screenLeft;var P=T.screenTop}catch(e$){}try{I=T.innerWidth,C=T.innerHeight}catch(e$){}try{var F=T.screen.availWidth;var J=T.screen.availTop}catch(e$){}g=[u,P,g,l,F,J,X,H,I,C];l=kXA(!1,e.JSC$10503_win_.top);X={};
var U=U===void 0?_.O_:U;H=new MqE;"SVGElement"in U&&"createElementNS"in U.document&&H.set(0);I=rxw();I["allow-top-navigation-by-user-activation"]&&H.set(1);I["allow-popups-to-escape-sandbox"]&&H.set(2);U.crypto&&U.crypto.subtle&&H.set(3);"TextDecoder"in U&&"TextEncoder"in U&&H.set(4);U=VqE(H);e=(X.bc=U,X.bih=l.height,X.biw=l.width,X.brdim=g.join(),X.vis=t1$(e.doc_),X.wgl=!!cK.WebGLRenderingContext,X);r=Z.call(r,O,e);r.ca_type="image";G&&(r.bid=G);return r},hB3=new function(){var G=window.document;
this.JSC$10503_win_=window;this.doc_=G};
_.Eu("yt.ads_.signals_.getAdSignalsString",function(G){return yb_(vJy(G))});_.JV();navigator.userAgent.indexOf(" (CrKey ");var O_s="XMLHttpRequest"in _.O_?function(){return new XMLHttpRequest}:null;var TJC="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),DnE=[].concat(_.mY(TJC),["client_dev_set_cookie"]);var b_y={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"},hBS="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(_.mY(TJC)),jlf=!1,Dna=_.wn4,gJq=i_S;var Jeq=[{messageFn:function(G){return"Cannot read property '"+G.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(G){return"Cannot call '"+G.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(G){return G.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var EJE={messageWeights:[],callbackWeights:[{callback:f_F,weight:500},{callback:kns,weight:500}]};var i_C=function(){this.callbackWeights=[];this.messageWeights=[]},b_W,FOf=function(){if(!b_W){var G=b_W=new i_C;
G.messageWeights.length=0;G.callbackWeights.length=0;DVU(G,EJE)}return b_W},DVU=function(G,e){e.messageWeights&&G.messageWeights.push.apply(G.messageWeights,e.messageWeights);
e.callbackWeights&&G.callbackWeights.push.apply(G.callbackWeights,e.callbackWeights)};_.Bz(_.H_,_.pB);_.H_.prototype.subscribe=function(G,e,r){var Z=this.topics_[G];Z||(Z=this.topics_[G]=[]);var O=this.JSC$10527_key_;this.subscriptions_[O]=G;this.subscriptions_[O+1]=e;this.subscriptions_[O+2]=r;this.JSC$10527_key_=O+3;Z.push(O);return O};
var vJW=function(G){var e=xc,r=!1,Z=e.subscribe("handleError",function(O){r||(r=!0,this.unsubscribeByKey(Z),G.apply(void 0,arguments))},e)};
_.H_.prototype.unsubscribe=function(G,e,r){if(G=this.topics_[G]){var Z=this.subscriptions_;if(G=G.find(function(O){return Z[O+1]==e&&Z[O+2]==r}))return this.unsubscribeByKey(G)}return!1};
_.H_.prototype.unsubscribeByKey=function(G){var e=this.subscriptions_[G];if(e){var r=this.topics_[e];this.publishDepth_!=0?(this.pendingKeys_.push(G),this.subscriptions_[G+1]=function(){}):(r&&_.yp(r,G),delete this.subscriptions_[G],delete this.subscriptions_[G+1],delete this.subscriptions_[G+2])}return!!e};
_.H_.prototype.publish=function(G,e){var r=this.topics_[G];if(r){var Z=Array(arguments.length-1),O=arguments.length,M;for(M=1;M<O;M++)Z[M-1]=arguments[M];if(this.async_)for(M=0;M<r.length;M++)O=r[M],wnw(this.subscriptions_[O+1],this.subscriptions_[O+2],Z);else{this.publishDepth_++;try{for(M=0,O=r.length;M<O&&!this.isDisposed();M++){var T=r[M];this.subscriptions_[T+1].apply(this.subscriptions_[T+2],Z)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;r=this.pendingKeys_.pop();)this.unsubscribeByKey(r)}}return M!=
0}return!1};
var wnw=function(G,e,r){_.XX(function(){G.apply(e,r)})};
_.H_.prototype.clear=function(G){if(G){var e=this.topics_[G];e&&(e.forEach(this.unsubscribeByKey,this),delete this.topics_[G])}else this.subscriptions_.length=0,this.topics_={}};
_.H_.prototype.getCount=function(G){if(G){var e=this.topics_[G];return e?e.length:0}G=0;for(e in this.topics_)G+=this.getCount(e);return G};
_.H_.prototype.disposeInternal=function(){_.H_.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var xc=new _.H_;var gL=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(gL,_.Tq);gL.prototype.getColdHashData=function(){return _.gU(this,3)};
gL.prototype.getHotHashData=function(){return _.gU(this,5)};
gL.prototype.setHotHashData=function(G){return _.QB(this,5,G)};var Y64=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(Y64,_.Tq);var $kS=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K($kS,_.Tq);_.V=$kS.prototype;_.V.getDeviceId=function(){return _.gU(this,6)};
_.V.getExperimentIds=function(G){var e=_.WY(this,9,_.Dl,3,!0);LSq(e,G);return e[G]};
_.V.getPlayerType=function(){return _.lg(this,36)};
_.V.setHomeGroupInfo=function(G){return _.Kj(this,81,G)};
_.V.clearLocationPlayabilityToken=function(){return _.t0(this,89)};var fL=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(fL,_.Tq);fL.prototype.setKey=function(G){return _.QB(this,1,G)};
fL.prototype.getValue=function(){return jc(this,2,qby)};
var qby=[2,3,4,5,6];var $nC=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K($nC,_.Tq);$nC.prototype.setTrackingParams=function(G){return _.t0(this,1,_.Qv(G,!1))};var Sbq=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(Sbq,_.Tq);var FGF=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(FGF,_.Tq);FGF.prototype.getExperimentIds=function(G){var e=_.WY(this,5,_.REi,3,!0);LSq(e,G);return e[G]};var oQ=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(oQ,_.Tq);oQ.prototype.getToken=function(){return _.kW(this,2)};
oQ.prototype.setToken=function(G){return _.QB(this,2,G)};var Hg=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(Hg,_.Tq);Hg.prototype.setSafetyMode=function(G){return _.qa(this,5,G)};var KL=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(KL,_.Tq);KL.prototype.setClient=function(G){return _.Kj(this,1,G)};var Ahp={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 yhi;_.sO=function(){var G=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.O_.addEventListener("beforeinstallprompt",function(e){e.preventDefault();G.deferredInstallPrompt=e});
_.O_.addEventListener("appinstalled",function(){G.appInstalledEventFired=!0},{once:!0})};
yhi=function(){if(!_.O_.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.O_.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.O_.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.O_.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.O_.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(G){return"WEB_DISPLAY_MODE_UNKNOWN"}};var xrf=function(){this.syncHeaders=!0},PwF=function(G){var e={},r=[];
"USER_SESSION_ID"in _.JH&&r.push({key:"u",value:_.xZ("USER_SESSION_ID")});if(r=_.$e$(r))e.Authorization=r,r=G=G==null?void 0:G.sessionIndex,r===void 0&&(r=Number(_.xZ("SESSION_INDEX",0)),r=isNaN(r)?0:r),_.R("voice_search_auth_header_removal")||(e["X-Goog-AuthUser"]=r.toString()),"INNERTUBE_HOST_OVERRIDE"in _.JH||(e["X-Origin"]=window.location.origin),G===void 0&&"DELEGATED_SESSION_ID"in _.JH&&(e["X-Goog-PageId"]=_.xZ("DELEGATED_SESSION_ID"));return e};var SKW={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var ef=_.Lz("ytglobal.prefsUserPrefsPrefs_")||{},qKl;_.Eu("ytglobal.prefsUserPrefsPrefs_",ef);_.rg=function(){this.cookieName=_.xZ("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.xZ("ALT_PREF_COOKIE_DOMAIN","youtube.com");var G=_.oZ.get(this.cookieName,void 0);G&&this.parse(G)};
_.hy=function(){qKl||(qKl=new _.rg);return qKl};
_.rg.prototype.get=function(G,e){tqP(G);gJb(G);G=ef[G]!==void 0?ef[G].toString():null;return G!=null?G:e?e:""};
_.rg.prototype.set=function(G,e){tqP(G);gJb(G);if(e==null)throw Error("Lc");ef[G]=e.toString()};
_.rg.prototype.getFlag=function(G){return!!((l_c("f"+(Math.floor(G/31)+1))||0)&1<<G%31)};
_.Tn=function(G,e,r){G="f"+(Math.floor(e/31)+1);e=1<<e%31;var Z=l_c(G)||0;Z=r?Z|e:Z&~e;Z===0?delete ef[G]:(r=Z.toString(16),ef[G]=r.toString())};
_.rg.prototype.remove=function(G){tqP(G);gJb(G);delete ef[G]};
_.rg.prototype.save=function(){var G=!0;_.R("web_secure_pref_cookie_killswitch")&&(G=!1);_.s5(this.cookieName,this.dump(),63072E3,this.cookieDomain,G)};
_.rg.prototype.clear=function(){_.c2.clear(ef)};
_.rg.prototype.dump=function(){var G=[],e;for(e in ef)ef.hasOwnProperty(e)&&G.push(e+"="+encodeURIComponent(String(ef[e])));return G.join("&")};
var gJb=function(G){if(/^f([1-9][0-9]*)$/.test(G))throw Error("Mc`"+G);},tqP=function(G){if(!/^\w+$/.test(G))throw Error("Nc`"+G);
},l_c=function(G){G=ef[G]!==void 0?ef[G].toString():null;
return G!=null&&/^[A-Fa-f0-9]+$/.test(G)?parseInt(G,16):null};
_.rg.prototype.parse=function(G){G=decodeURIComponent(G).split("&");for(var e=0;e<G.length;e++){var r=G[e].split("="),Z=r[0];(r=r[1])&&(ef[Z]=r.toString())}};var uJs={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"},Jhs={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},Bf4={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},mnN={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var UY;_.ZF=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.IQ=function(G,e,r){return G.addJob(e,0,r)};
_.ZF.prototype.addLowPriorityJob=function(G,e){return this.addJob(G,1,e)};
_.w8=function(G,e,r){return G.addJob(e,2,r)};
_.Zk=function(G,e,r){return G.addJob(e,3,r)};
_.za=function(G,e,r){return G.addJob(e,4,r)};
UY=function(G){var e=_.Lz("yt.scheduler.instance.addImmediateJob");e?e(G):G()};
_.ZF.prototype.debounce=function(G,e,r){var Z=this,O=0,M=function(){O&&Z.cancelJob(O);O=Z.addJob(G,e,r);Z.cancelDebouncedJobMap.set(M,O)};
return M};
_.ZF.prototype.cancelThrottle=function(G){(G=this.cancelThrottledJobMap.get(G))&&G()};var OB=function(){_.ZF.apply(this,arguments)};
_.K(OB,_.ZF);_.S0=function(){OB.instance||(OB.instance=new OB);return OB.instance};
OB.prototype.addJob=function(G,e,r){r!==void 0&&Number.isNaN(Number(r))&&(r=void 0);var Z=_.Lz("yt.scheduler.instance.addJob");return Z?Z(G,e,r):r===void 0?(G(),NaN):_.jm(G,r||0)};
OB.prototype.cancelJob=function(G){if(G===void 0||!Number.isNaN(Number(G))){var e=_.Lz("yt.scheduler.instance.cancelJob");e?e(G):_.X_(G)}};
OB.prototype.start=function(){var G=_.Lz("yt.scheduler.instance.start");G&&G()};
OB.prototype.pause=function(){var G=_.Lz("yt.scheduler.instance.pause");G&&G()};
_.A0=_.S0();_.uq.prototype.set=function(G,e){e===void 0?this.mechanism.remove(G):this.mechanism.set(G,(0,_.dT)(e))};
_.uq.prototype.get=function(G){try{var e=this.mechanism.get(G)}catch(r){return}if(e!==null)try{return JSON.parse(e)}catch(r){throw"Storage: Invalid value was encountered";}};
_.uq.prototype.remove=function(G){this.mechanism.remove(G)};var Mp=function(G){this.mechanism=G};
_.Bz(Mp,_.uq);var RBC=function(G){this.data=G},jlP=function(G){return G===void 0||G instanceof RBC?G:new RBC(G)};
Mp.prototype.set=function(G,e){Mp.superClass_.set.call(this,G,jlP(e))};
Mp.prototype.getWrapper=function(G){G=Mp.superClass_.get.call(this,G);if(G===void 0||G instanceof Object)return G;throw"Storage: Invalid value was encountered";};
Mp.prototype.get=function(G){if(G=this.getWrapper(G)){if(G=G.data,G===void 0)throw"Storage: Invalid value was encountered";}else G=void 0;return G};_.Bz(nr,Mp);_.a_v=function(G){var e=G.creation;G=G.expiration;return!!G&&G<_.JV()||!!e&&e>_.JV()};
nr.prototype.set=function(G,e,r){if(e=jlP(e)){if(r){if(r<_.JV()){nr.prototype.remove.call(this,G);return}e.expiration=r}e.creation=_.JV()}nr.superClass_.set.call(this,G,e)};
nr.prototype.getWrapper=function(G,e){var r=nr.superClass_.getWrapper.call(this,G);if(r)if(!e&&_.a_v(r))nr.prototype.remove.call(this,G);else return r};var VQ=function(){};
VQ.prototype.next=function(){return hQ};
var hQ={done:!0,value:void 0},Tz=function(G){return{value:G,done:!1}};
VQ.prototype.__iterator__=function(){return this};
_.XnW=function(G){if(G instanceof VQ)return G;if(typeof G.__iterator__=="function")return G.__iterator__(!1);if(_.FN(G)){var e=0,r=new VQ;r.next=function(){for(;;){if(e>=G.length)return hQ;if(e in G)return Tz(G[e++]);e++}};
return r}throw Error("Oc");};var KCb=function(G){if(G instanceof DF||G instanceof EB||G instanceof il)return G;if(typeof G.next=="function")return new DF(function(){return G});
if(typeof G[Symbol.iterator]=="function")return new DF(function(){return G[Symbol.iterator]()});
if(typeof G.__iterator__=="function")return new DF(function(){return G.__iterator__()});
throw Error("Pc");},DF=function(G){this.func_=G};
DF.prototype.__iterator__=function(){return new EB(this.func_())};
DF.prototype[Symbol.iterator]=function(){return new il(this.func_())};
DF.prototype.toEs6=function(){return new il(this.func_())};
var EB=function(G){this.JSC$10611_iter_=G};
_.K(EB,VQ);EB.prototype.next=function(){return this.JSC$10611_iter_.next()};
EB.prototype[Symbol.iterator]=function(){return new il(this.JSC$10611_iter_)};
EB.prototype.toEs6=function(){return new il(this.JSC$10611_iter_)};
var il=function(G){DF.call(this,function(){return G});
this.JSC$10614_iter_=G};
_.K(il,DF);il.prototype.next=function(){return this.JSC$10614_iter_.next()};var f_y=function(){};var bl=function(){};
_.Bz(bl,f_y);bl.prototype.getCount=function(){for(var G=0,e=_.h(this),r=e.next();!r.done;r=e.next())G++;return G};
bl.prototype[Symbol.iterator]=function(){return KCb(this.__iterator__(!0)).toEs6()};
bl.prototype.clear=function(){var G=Array.from(this);G=_.h(G);for(var e=G.next();!e.done;e=G.next())this.remove(e.value)};_.Bz(ma,bl);_.V=ma.prototype;_.V.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var G=this.storage_;if(G)try{G.setItem("__sak","1");G.removeItem("__sak");var e=!0}catch(r){e=r instanceof DOMException&&(r.name==="QuotaExceededError"||r.code===22||r.code===1014||r.name==="NS_ERROR_DOM_QUOTA_REACHED")&&G&&G.length!==0}else e=!1;this.cachedIsStorageAvailable_=e}return this.cachedIsStorageAvailable_};
_.V.set=function(G,e){vv(this);try{this.storage_.setItem(G,e)}catch(r){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.V.get=function(G){vv(this);G=this.storage_.getItem(G);if(typeof G!=="string"&&G!==null)throw"Storage mechanism: Invalid value was encountered";return G};
_.V.remove=function(G){vv(this);this.storage_.removeItem(G)};
_.V.getCount=function(){vv(this);return this.storage_.length};
_.V.__iterator__=function(G){vv(this);var e=0,r=this.storage_,Z=new VQ;Z.next=function(){if(e>=r.length)return hQ;var O=r.key(e++);if(G)return Tz(O);O=r.getItem(O);if(typeof O!=="string")throw"Storage mechanism: Invalid value was encountered";return Tz(O)};
return Z};
_.V.clear=function(){vv(this);this.storage_.clear()};
_.V.key=function(G){vv(this);return this.storage_.key(G)};
var vv=function(G){if(G.storage_==null)throw Error("Qc");G.isAvailable()||MU(Error("Qc"))};_.Bz(YKp,ma);_.Bz(yyF,ma);_.Bz(c_,bl);c_.prototype.set=function(G,e){this.mechanism_.set(this.JSC$10629_prefix_+G,e)};
c_.prototype.get=function(G){return this.mechanism_.get(this.JSC$10629_prefix_+G)};
c_.prototype.remove=function(G){this.mechanism_.remove(this.JSC$10629_prefix_+G)};
c_.prototype.__iterator__=function(G){var e=this.mechanism_[Symbol.iterator](),r=this,Z=new VQ;Z.next=function(){var O=e.next();if(O.done)return O;for(O=O.value;O.slice(0,r.JSC$10629_prefix_.length)!=r.JSC$10629_prefix_;){O=e.next();if(O.done)return O;O=O.value}return Tz(G?O.slice(r.JSC$10629_prefix_.length):r.mechanism_.get(O))};
return Z};_.PG=function(G){this.expiringStorage_=(G=_.AyA(G))?new nr(G):null;this.JSC$10633_domain_=document.domain||window.location.hostname};
_.V=_.PG.prototype;_.V.hasLocalStorage=function(){return!!this.expiringStorage_};
_.V.set=function(G,e,r,Z){r=r||31104E3;this.remove(G);if(this.hasLocalStorage())try{this.expiringStorage_.set(G,e,Date.now()+r*1E3);return}catch(M){}var O="";if(Z)try{O=escape((0,_.dT)(e))}catch(M){return}else O=escape(e);_.s5(G,O,r,this.JSC$10633_domain_)};
_.V.get=function(G,e){var r=void 0,Z=!this.hasLocalStorage();if(!Z)try{r=this.expiringStorage_.get(G)}catch(O){Z=!0}if(Z&&(r=_.oZ.get(G,void 0))&&(r=unescape(r),e))try{r=JSON.parse(r)}catch(O){this.remove(G),r=void 0}return r};
_.V.remove=function(G){this.hasLocalStorage()&&this.expiringStorage_.remove(G);_.I__(G,"/",this.JSC$10633_domain_)};
_.V.getCreationTime=function(G){return this.hasLocalStorage()&&(G=(this.expiringStorage_.getWrapper(G)||{}).creation,typeof G==="number")?G:null};var JyU=function(){var G;return function(){G||(G=new _.PG("ytidb"));return G}}();var xnp;_.yi=[];xnp=!1;var iQ4=Ppq||UnN;var wg={},knj=(wg.AUTH_INVALID="No user identifier specified.",wg.EXPLICIT_ABORT="Transaction was explicitly aborted.",wg.IDB_NOT_SUPPORTED="IndexedDB is not supported.",wg.MISSING_INDEX="Index not created.",wg.MISSING_OBJECT_STORES="Object stores not created.",wg.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",wg.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",wg.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",wg.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",wg.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",wg.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",wg.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",wg),$v={},H_E=($v.AUTH_INVALID="ERROR",$v.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",$v.EXPLICIT_ABORT="IGNORED",
$v.IDB_NOT_SUPPORTED="ERROR",$v.MISSING_INDEX="WARNING",$v.MISSING_OBJECT_STORES="ERROR",$v.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",$v.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",$v.QUOTA_EXCEEDED="WARNING",$v.QUOTA_MAYBE_EXCEEDED="WARNING",$v.UNKNOWN_ABORT="WARNING",$v.INCOMPATIBLE_DB_VERSION="WARNING",$v),Sf={},dn3=(Sf.AUTH_INVALID=!1,Sf.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Sf.EXPLICIT_ABORT=!1,Sf.IDB_NOT_SUPPORTED=!1,Sf.MISSING_INDEX=!1,Sf.MISSING_OBJECT_STORES=!1,Sf.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Sf.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Sf.QUOTA_EXCEEDED=!1,Sf.QUOTA_MAYBE_EXCEEDED=!0,Sf.UNKNOWN_ABORT=!0,Sf.INCOMPATIBLE_DB_VERSION=!1,Sf),P_=function(G,e,r,Z,O){e=e===void 0?{}:e;r=r===void 0?knj[G]:r;Z=Z===void 0?H_E[G]:Z;O=O===void 0?dn3[G]:O;_.Cr.call(this,r,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:G},e));this.type=G;this.message=r;this.level=Z;this.retryable=O;Object.setPrototypeOf(this,P_.prototype)};
_.K(P_,_.Cr);var oJE=function(G,e){P_.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:e,foundObjectStores:G},knj.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,oJE.prototype)};
_.K(oJE,P_);var WCq=function(G,e){var r=Error.call(this);this.message=r.message;"stack"in r&&(this.stack=r.stack);this.index=G;this.objectStore=e;Object.setPrototypeOf(this,WCq.prototype)};
_.K(WCq,Error);var NJi=["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 Nt=function(G){this.executor=G},W_=function(G){var e=this;
this.state={status:"PENDING"};this.JSC$10661_onFulfilled=[];this.JSC$10661_onRejected=[];G=G.executor;var r=function(O){if(e.state.status==="PENDING"){e.state={status:"FULFILLED",value:O};O=_.h(e.JSC$10661_onFulfilled);for(var M=O.next();!M.done;M=O.next())M=M.value,M()}},Z=function(O){if(e.state.status==="PENDING"){e.state={status:"REJECTED",
reason:O};O=_.h(e.JSC$10661_onRejected);for(var M=O.next();!M.done;M=O.next())M=M.value,M()}};
try{G(r,Z)}catch(O){Z(O)}};
W_.all=function(G){return new W_(new Nt(function(e,r){var Z=[],O=G.length;O===0&&e(Z);for(var M={i$jscomp$468:0};M.i$jscomp$468<G.length;M={i$jscomp$468:M.i$jscomp$468},++M.i$jscomp$468)W_.resolve(G[M.i$jscomp$468]).then(function(T){return function(E){Z[T.i$jscomp$468]=E;O--;O===0&&e(Z)}}(M)).catch(function(T){r(T)})}))};
W_.resolve=function(G){return new W_(new Nt(function(e,r){G instanceof W_?G.then(e,r):e(G)}))};
W_.reject=function(G){return new W_(new Nt(function(e,r){r(G)}))};
W_.prototype.then=function(G,e){var r=this,Z=G!=null?G:eTN,O=e!=null?e:GFy;return new W_(new Nt(function(M,T){r.state.status==="PENDING"?(r.JSC$10661_onFulfilled.push(function(){slw(r,r,Z,M,T)}),r.JSC$10661_onRejected.push(function(){Qll(r,r,O,M,T)})):r.state.status==="FULFILLED"?slw(r,r,Z,M,T):r.state.status==="REJECTED"&&Qll(r,r,O,M,T)}))};
W_.prototype.catch=function(G){return this.then(void 0,G)};
var slw=function(G,e,r,Z,O){try{if(G.state.status!=="FULFILLED")throw Error("Tc");var M=r(G.state.value);M instanceof W_?I_l(G,e,M,Z,O):Z(M)}catch(T){O(T)}},Qll=function(G,e,r,Z,O){try{if(G.state.status!=="REJECTED")throw Error("Uc");
var M=r(G.state.reason);M instanceof W_?I_l(G,e,M,Z,O):Z(M)}catch(T){O(T)}},I_l=function(G,e,r,Z,O){e===r?O(new TypeError("Vc")):r.then(function(M){M instanceof W_?I_l(G,e,M,Z,O):Z(M)},function(M){O(M)})};var qp;qp=window;_.vG=qp.ytcsi&&qp.ytcsi.now?qp.ytcsi.now:qp.performance&&qp.performance.timing&&qp.performance.now&&qp.performance.timing.navigationStart?function(){return qp.performance.timing.navigationStart+qp.performance.now()}:function(){return(new Date).getTime()};var Gc=function(G,e){this.JSC$10673_wrapped=G;this.options=e;this.transactionCount=0;this.startedMs=Math.round((0,_.vG)());this.hasUnknownAbortedTransaction=!1},tQ=function(){return _.R("idb_immediate_commit")},uJj,nJS,Rs,YKv;
Gc.prototype.add=function(G,e,r){return _.Ma(this,[G],{mode:"readwrite",enableRetries:!0,commit:tQ()},function(Z){return Z.objectStore(G).add(e,r)})};
Gc.prototype.clear=function(G){return _.Ma(this,[G],{mode:"readwrite",enableRetries:!0},function(e){return e.objectStore(G).clear()})};
Gc.prototype.close=function(){this.JSC$10673_wrapped.close();var G;((G=this.options)==null?0:G.closed)&&this.options.closed()};
Gc.prototype.count=function(G,e){return _.Ma(this,[G],{mode:"readonly",enableRetries:!0,commit:tQ()},function(r){return r.objectStore(G).count(e)})};
var zc=function(G,e,r){G=G.JSC$10673_wrapped.createObjectStore(e,r);return new gg(G)};
Gc.prototype.delete=function(G,e){return _.Ma(this,[G],{mode:"readwrite",enableRetries:!0,commit:tQ()&&!(e instanceof IDBKeyRange)},function(r){return r.objectStore(G).delete(e)})};
var pny=function(G,e){return _.Ma(G,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(r){return r.objectStore("ResponseStore").index("byInterface").delete(e)})};
Gc.prototype.get=function(G,e){return _.Ma(this,[G],{mode:"readonly",enableRetries:!0,commit:tQ()},function(r){return r.objectStore(G).get(e)})};
Gc.prototype.getAll=function(G,e,r){return _.Ma(this,[G],{mode:"readonly",enableRetries:!0},function(Z){return Z.objectStore(G).getAll(e,r)})};
Gc.prototype.put=function(G,e,r){return _.Ma(this,[G],{mode:"readwrite",enableRetries:!0,commit:tQ()},function(Z){return Z.objectStore(G).put(e,r)})};
Gc.prototype.objectStoreNames=function(){return Array.from(this.JSC$10673_wrapped.objectStoreNames)};
_.Ma=function(G,e,r,Z){var O,M,T,E,b,w,q,t,g,l,X,H;return _.D(function(I){switch(I.nextAddress){case 1:var C={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof r==="string"?C.mode=r:Object.assign(C,r);O=C;G.transactionCount++;M=O.enableRetries?3:1;T=0;case 2:if(E){I.jumpTo(4);break}T++;b=Math.round((0,_.vG)());_.jr(I,5);w=G.JSC$10673_wrapped.transaction(e,O.mode);C=I.yield;var u=!!O.commit;var P=new eS(w);u=CpE(P,Z,u);return C.call(I,u,7);case 7:return q=I.yieldResult,t=Math.round((0,_.vG)()),
uJj(G,b,t,T,void 0,e.join(),O),I.return(q);case 5:g=_.k5(I);l=Math.round((0,_.vG)());X=LC_(g,G.JSC$10673_wrapped.name,e.join(),G.JSC$10673_wrapped.version);if((H=X instanceof P_&&!X.retryable)||T>=M)uJj(G,b,l,T,X,e.join(),O),E=X;I.jumpTo(2);break;case 4:return I.return(Promise.reject(E))}})};
uJj=function(G,e,r,Z,O,M,T){e=r-e;O?(O instanceof P_&&(O.type==="QUOTA_EXCEEDED"||O.type==="QUOTA_MAYBE_EXCEEDED")&&F_("QUOTA_EXCEEDED",{dbName:B_(G.JSC$10673_wrapped.name),objectStoreNames:M,transactionCount:G.transactionCount,transactionMode:T.mode}),O instanceof P_&&O.type==="UNKNOWN_ABORT"&&(r-=G.startedMs,r<0&&r>=2147483648&&(r=0),F_("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:M,transactionDuration:e,transactionCount:G.transactionCount,dbDuration:r}),G.hasUnknownAbortedTransaction=!0),
nJS(G,!1,Z,M,e,T.tag),_.Ad(O)):nJS(G,!0,Z,M,e,T.tag)};
nJS=function(G,e,r,Z,O,M){F_("TRANSACTION_ENDED",{objectStoreNames:Z,connectionHasUnknownAbortedTransaction:G.hasUnknownAbortedTransaction,duration:O,isSuccessful:e,tryCount:r,tag:M===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":M})};
Gc.prototype.getName=function(){return this.JSC$10673_wrapped.name};
var gg=function(G){this.JSC$10688_wrapped=G};
gg.prototype.add=function(G,e){return Lr(this.JSC$10688_wrapped.add(G,e))};
gg.prototype.autoIncrement=function(){return this.JSC$10688_wrapped.autoIncrement};
gg.prototype.clear=function(){return Lr(this.JSC$10688_wrapped.clear()).then(function(){})};
var WG=function(G,e,r){G.JSC$10688_wrapped.createIndex(e,r,{unique:!1})};
gg.prototype.count=function(G){return Lr(this.JSC$10688_wrapped.count(G))};
var mnn=function(G,e){return h0(G,{query:e},function(r){return r.delete().then(function(){return r.continue()})}).then(function(){})};
gg.prototype.delete=function(G){return G instanceof IDBKeyRange?mnn(this,G):Lr(this.JSC$10688_wrapped.delete(G))};
gg.prototype.get=function(G){return Lr(this.JSC$10688_wrapped.get(G))};
gg.prototype.getAll=function(G,e){return"getAll"in IDBObjectStore.prototype?Lr(this.JSC$10688_wrapped.getAll(G,e)):cyc(this,G,e)};
var cyc=function(G,e,r){var Z=[];return h0(G,{query:e},function(O){if(!(r!==void 0&&Z.length>=r))return Z.push(O.getValue()),O.continue()}).then(function(){return Z})};
gg.prototype.index=function(G){try{return new ll(this.JSC$10688_wrapped.index(G))}catch(e){if(e instanceof Error&&e.name==="NotFoundError")throw new WCq(G,this.JSC$10688_wrapped.name);throw e;}};
gg.prototype.getName=function(){return this.JSC$10688_wrapped.name};
gg.prototype.keyPath=function(){return this.JSC$10688_wrapped.keyPath};
gg.prototype.put=function(G,e){return Lr(this.JSC$10688_wrapped.put(G,e))};
var h0=function(G,e,r){G=G.JSC$10688_wrapped.openCursor(e.query,e.direction);return YKv(G).then(function(Z){return OQy(Z,r)})},eS=function(G){var e=this;
this.JSC$10696_wrapped=G;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(r,Z){e.JSC$10696_wrapped.addEventListener("complete",function(){r()});
e.JSC$10696_wrapped.addEventListener("error",function(O){O.currentTarget===O.target&&Z(e.JSC$10696_wrapped.error)});
e.JSC$10696_wrapped.addEventListener("abort",function(){var O=e.JSC$10696_wrapped.error;if(O)Z(O);else if(!e.aborted){O=P_;for(var M=e.JSC$10696_wrapped.objectStoreNames,T=[],E=0;E<M.length;E++){var b=M.item(E);if(b===null)throw Error("Wc");T.push(b)}O=new O("UNKNOWN_ABORT",{objectStoreNames:T.join(),dbName:e.JSC$10696_wrapped.db.name,mode:e.JSC$10696_wrapped.mode});Z(O)}})})},CpE=function(G,e,r){var Z=new Promise(function(O,M){try{var T=e(G);
r&&G.commit();T.then(function(E){O(E)}).catch(M)}catch(E){M(E),G.abort()}});
return Promise.all([Z,G.done]).then(function(O){return _.h(O).next().value})};
eS.prototype.abort=function(){this.JSC$10696_wrapped.abort();this.aborted=!0;throw new P_("EXPLICIT_ABORT");};
eS.prototype.commit=function(){if(!this.aborted){var G,e;(e=(G=this.JSC$10696_wrapped).commit)==null||e.call(G)}};
eS.prototype.objectStore=function(G){G=this.JSC$10696_wrapped.objectStore(G);var e=this.objectStoreCache.get(G);e||(e=new gg(G),this.objectStoreCache.set(G,e));return e};
var ll=function(G){this.JSC$10698_wrapped=G};
ll.prototype.count=function(G){return Lr(this.JSC$10698_wrapped.count(G))};
ll.prototype.delete=function(G){return _.wL(this,{query:G},function(e){return e.delete().then(function(){return e.continue()})})};
ll.prototype.get=function(G){return Lr(this.JSC$10698_wrapped.get(G))};
ll.prototype.getAll=function(G,e){return"getAll"in IDBIndex.prototype?Lr(this.JSC$10698_wrapped.getAll(G,e)):yyy(this,G,e)};
var yyy=function(G,e,r){var Z=[];return _.wL(G,{query:e},function(O){if(!(r!==void 0&&Z.length>=r))return Z.push(O.getValue()),O.continue()}).then(function(){return Z})};
ll.prototype.keyPath=function(){return this.JSC$10698_wrapped.keyPath};
ll.prototype.unique=function(){return this.JSC$10698_wrapped.unique};
_.wL=function(G,e,r){G=G.JSC$10698_wrapped.openCursor(e.query===void 0?null:e.query,e.direction===void 0?"next":e.direction);return YKv(G).then(function(Z){return OQy(Z,r)})};
Rs=function(G,e){this.request=G;this.cursor=e};
YKv=function(G){return Lr(G).then(function(e){return e?new Rs(G,e):null})};
Rs.prototype.continue=function(G){this.cursor.continue(G);return YKv(this.request)};
Rs.prototype.delete=function(){return Lr(this.cursor.delete()).then(function(){})};
Rs.prototype.getValue=function(){return this.cursor.value};
Rs.prototype.update=function(G){return Lr(this.cursor.update(G))};var jf=function(G,e){this.name=G;this.options=e;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},Ayc;
jf.prototype.openDb=function(G,e,r){r=r===void 0?{}:r;return V6s(G,e,r)};
jf.prototype.delete=function(G){G=G===void 0?{}:G;return _.ZG(this.name,G)};
Ayc=function(G,e){return new P_("INCOMPATIBLE_DB_VERSION",{dbName:G.name,oldVersion:G.options.version,newVersion:e})};
_.Ou=function(G,e){if(!e)throw zG("openWithToken",B_(G.name));return G.open()};
jf.prototype.open=function(){var G=this;if(!this.isCompatible)throw Ayc(this);if(this.connectionPromise)return this.connectionPromise;var e,r=function(){G.connectionPromise===e&&(G.connectionPromise=void 0)},Z={blocking:function(M){M.close()},
closed:r,terminated:r,upgrade:this.options.upgrade},O=function(){var M,T,E,b,w,q,t,g,l,X;return _.D(function(H){switch(H.nextAddress){case 1:return T=(M=Error().stack)!=null?M:"",_.jr(H,2),H.yield(G.openDb(G.name,G.options.version,Z),4);case 4:for(var I=E=H.yieldResult,C=G.options,u=[],P=_.h(Object.keys(C.objectStores)),F=P.next();!F.done;F=P.next()){F=F.value;var J=C.objectStores[F],U=J.removedAtVersion===void 0?Number.MAX_VALUE:J.removedAtVersion;!(I.JSC$10673_wrapped.version>=J.addedAtVersion)||
I.JSC$10673_wrapped.version>=U||I.JSC$10673_wrapped.objectStoreNames.contains(F)||u.push(F)}b=u;if(b.length===0){H.jumpTo(5);break}w=Object.keys(G.options.objectStores);q=E.objectStoreNames();if(G.timesReopenedToFixMissingObjectStore<_.qt("ytidb_reopen_db_retries",0))return G.timesReopenedToFixMissingObjectStore++,E.close(),_.Ad(new P_("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:G.name,expectedObjectStores:w,foundObjectStores:q})),H.return(O());if(!(G.timesDeletedToFixMissingObjectStore<_.qt("ytidb_remake_db_retries",
1))){H.jumpTo(6);break}G.timesDeletedToFixMissingObjectStore++;return H.yield(G.delete(),7);case 7:return _.Ad(new P_("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:G.name,expectedObjectStores:w,foundObjectStores:q})),H.return(O());case 6:throw new oJE(q,w);case 5:return H.return(E);case 2:t=_.k5(H);if(t instanceof DOMException?t.name!=="VersionError":"DOMError"in self&&t instanceof DOMError?t.name!=="VersionError":!(t instanceof Object&&"message"in t)||t.message!=="An attempt was made to open a database using a lower version than the existing version."){H.jumpTo(8);
break}return H.yield(G.openDb(G.name,void 0,Object.assign({},Z,{upgrade:void 0})),9);case 9:g=H.yieldResult;l=g.JSC$10673_wrapped.version;if(G.options.version!==void 0&&l>G.options.version+1)throw g.close(),G.isCompatible=!1,Ayc(G,l);return H.return(g);case 8:throw r(),t instanceof Error&&!_.R("ytidb_async_stack_killswitch")&&(t.stack=t.stack+"\n"+T.substring(T.indexOf("\n")+1)),LC_(t,G.name,"",(X=G.options.version)!=null?X:-1);}})};
return this.connectionPromise=e=O()};var hTS=new jf("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(G,e){e(1)&&zc(G,"databases",{keyPath:"actualName"})}});var wS$,bQU=new function(){}(new function(){});new _.G1;var FCW=function(G,e){jf.call(this,G,e);this.options=e;Jd(G)};
_.K(FCW,jf);var XSN=function(G,e){var r;return function(){r||(r=new FCW(G,e));return r}};
FCW.prototype.openDb=function(G,e,r){r=r===void 0?{}:r;return(this.options.shared?gtp:t6y)(G,e,Object.assign({},r))};
FCW.prototype.delete=function(G){G=G===void 0?{}:G;return(this.options.shared?aH$:lHN)(this.name,G)};var JyW={},KGf=bA("ytGcfConfig",{objectStores:(JyW.coldConfigStore={addedAtVersion:1},JyW.hotConfigStore={addedAtVersion:1},JyW),shared:!1,upgrade:function(G,e){e(1)&&(WG(zc(G,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),WG(zc(G,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var BJP=function(){_.pB.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var G=_.Lz("yt.gcf.config.hotUpdateCallbacks");G?(this.localHotConfigJobQueue=[].concat(_.mY(G)),this.sharedHotConfigJobQueue=G):(this.sharedHotConfigJobQueue=[],_.Eu("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.K(BJP,_.pB);BJP.prototype.disposeInternal=function(){for(var G=_.h(this.localHotConfigJobQueue),e=G.next();!e.done;e=G.next()){var r=this.sharedHotConfigJobQueue;e=r.indexOf(e.value);e>=0&&r.splice(e,1)}this.localHotConfigJobQueue.length=0;_.pB.prototype.disposeInternal.call(this)};var pL=function(){var G=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new BJP;this.TEST_ONLY={initializeConfigDb:function(){G.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return G.coldGlobalConfigGroup},
setHotConfigGroup:function(e){xnv(G,e)},
setHotHashData:function(e){G.setHotHashData(e)},
setColdConfigGroup:function(e){Ppb(G,e)},
getColdHashData:function(){return G.coldHashData},
getHotHashData:function(){return G.hotHashData},
getHotConfigGroup:function(){return G.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return Unn()},
getExportedHotConfigGroup:function(){return as()},
getExportedColdHashData:function(){return _.Lz("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.Lz("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){zBP(G)},
resetInstance:function(){G.setHotHashData(void 0);WCb(G);delete pL.instance},
setDebounceTimer:function(e){G.debounceTimer=e},
getDebounceTimer:function(){return G.debounceTimer}}},NJS=function(){if(!pL.instance){var G=new pL;
pL.instance=G}return pL.instance},eTn=function(G){var e;
_.D(function(r){if(r.nextAddress==1)return _.R("start_client_gcf")||_.R("delete_gcf_config_db")?_.R("start_client_gcf")?r.yield(_.iA(),3):r.jumpTo(2):r.return();r.nextAddress!=2&&((e=r.yieldResult)&&_.pr()&&!_.R("delete_gcf_config_db")?(G.isConfigDbInitialized=!0,zBP(G)):(LCl(G),GFW(G)));return _.R("delete_gcf_config_db")?r.yield(sIa(),0):r.jumpTo(0)})},CL=function(){var G;
return(G=as())!=null?G:_.xZ("RAW_HOT_CONFIG_GROUP")},rhE=function(G){var e,r,Z,O,M,T;
return _.D(function(E){switch(E.nextAddress){case 1:if(G.hotGlobalConfigGroup)return E.return(as());if(!G.isConfigDbInitialized)return e=zG("getHotConfig IDB not initialized"),_.GG(e),E.return(Promise.reject(e));r=DG();Z=_.xZ("TIME_CREATED_MS");if(!r){O=zG("getHotConfig token error");_.GG(O);E.jumpTo(2);break}return E.yield(otf(r),3);case 3:if((M=E.yieldResult)&&M.timestamp>Z)return xnv(G,M.config),G.setHotHashData(M.hashData),E.return(as());case 2:GFW(G);if(!(r&&G.hotGlobalConfigGroup&&G.hotHashData)){E.jumpTo(4);
break}return E.yield(kF_(G.hotGlobalConfigGroup,G.hotHashData,r,Z),4);case 4:return G.hotGlobalConfigGroup?E.return(as()):(T=new _.Cr("Config not available in ytConfig"),_.GG(T),E.return(Promise.reject(T)))}})},OQW=function(G){var e,r,Z,O,M,T;
return _.D(function(E){switch(E.nextAddress){case 1:if(G.coldGlobalConfigGroup)return E.return(Unn());if(!G.isConfigDbInitialized)return e=zG("getColdConfig IDB not initialized"),_.GG(e),E.return(Promise.reject(e));r=DG();Z=_.xZ("TIME_CREATED_MS");if(!r){O=zG("getColdConfig");_.GG(O);E.jumpTo(2);break}return E.yield(dra(r),3);case 3:if((M=E.yieldResult)&&M.timestamp>Z)return Ppb(G,M.config),ZQP(G,M.configData),WCb(G,M.hashData),E.return(Unn());case 2:LCl(G);if(!(r&&G.coldGlobalConfigGroup&&G.coldHashData&&
G.configData)){E.jumpTo(4);break}return E.yield(HQ_(G.coldGlobalConfigGroup,G.coldHashData,G.configData,r,Z),4);case 4:return G.coldGlobalConfigGroup?E.return(Unn()):(T=new _.Cr("Config not available in ytConfig"),_.GG(T),E.return(Promise.reject(T)))}})},zBP=function(G){if(!G.hotGlobalConfigGroup||!G.coldGlobalConfigGroup){if(!DG()){var e=zG("scheduleGetConfigs");
_.GG(e)}G.initJob||(G.initJob=_.A0.addLowPriorityJob(function(){return _.D(function(r){switch(r.nextAddress){case 1:return _.jr(r,2),r.yield(rhE(G),4);case 4:_.rL(r,3);break;case 2:_.k5(r);case 3:return _.jr(r,5),r.yield(OQW(G),7);case 7:_.rL(r,6);break;case 5:_.k5(r);case 6:G.initJob&&(G.initJob=0),_.HL(r)}})},100))}},H1y=function(G,e,r){var Z,O,M;
return _.D(function(T){switch(T.nextAddress){case 1:if(!_.R("start_client_gcf")){T.jumpTo(0);break}r&&xnv(G,r);G.setHotHashData(e);Z=DG();if(!Z){T.jumpTo(3);break}if(r){T.jumpTo(4);break}return T.yield(otf(Z),5);case 5:O=T.yieldResult,r=(M=O)==null?void 0:M.config;case 4:return T.yield(kF_(r,e,Z),3);case 3:if(r)for(var E=r,b=_.h(G.configUpdateService.sharedHotConfigJobQueue),w=b.next();!w.done;w=b.next())w=w.value,w(E);_.HL(T)}})},dkf=function(G,e,r){var Z,O,M,T;
return _.D(function(E){if(E.nextAddress==1){if(!_.R("start_client_gcf"))return E.jumpTo(0);WCb(G,e);return(Z=DG())?r?E.jumpTo(4):E.yield(dra(Z),5):E.jumpTo(0)}E.nextAddress!=4&&(O=E.yieldResult,r=(M=O)==null?void 0:M.config);if(!r)return E.jumpTo(0);T=r.configData;return E.yield(HQ_(r,e,T,Z),0)})},zTp=function(){var G=NJS(),e=(0,_.vG)()-G.debounceTimer;
if(!(G.debounceTimer!==0&&e<_.qt("send_config_hash_timer"))){e=_.Lz("yt.gcf.config.coldConfigData");var r=_.Lz("yt.gcf.config.hotHashData"),Z=_.Lz("yt.gcf.config.coldHashData");e&&r&&Z&&(G.debounceTimer=(0,_.vG)());return{coldConfigData:e,hotHashData:r,coldHashData:Z}}},LCl=function(G){Ppb(G,_.xZ("RAW_COLD_CONFIG_GROUP"));
WCb(G,_.xZ("SERIALIZED_COLD_HASH_DATA"));var e;ZQP(G,(e=G.coldGlobalConfigGroup)==null?void 0:e.configData)},GFW=function(G){xnv(G,_.xZ("RAW_HOT_CONFIG_GROUP"));
G.setHotHashData(_.xZ("SERIALIZED_HOT_HASH_DATA"))},xnv=function(G,e){G.hotGlobalConfigGroup=e;
_.Eu("yt.gcf.config.hotConfigGroup",G.hotGlobalConfigGroup||null)},Ppb=function(G,e){G.coldGlobalConfigGroup=e;
_.Eu("yt.gcf.config.coldConfigGroup",G.coldGlobalConfigGroup||null)};
pL.prototype.setHotHashData=function(G){this.hotHashData=G;_.Eu("yt.gcf.config.hotHashData",this.hotHashData||null)};
var WCb=function(G,e){G.coldHashData=e;_.Eu("yt.gcf.config.coldHashData",G.coldHashData||null)},ZQP=function(G,e){G.configData=e;
_.Eu("yt.gcf.config.coldConfigData",G.configData||null)},as=function(){return _.Lz("yt.gcf.config.hotConfigGroup")},Unn=function(){return _.Lz("yt.gcf.config.coldConfigGroup")};var XF={},M6E=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";XF.assign=function(G){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if(typeof r!=="object")throw new TypeError("Zc`"+r);for(var Z in r)Object.prototype.hasOwnProperty.call(r,Z)&&(G[Z]=r[Z])}}return G};
XF.shrinkBuf=function(G,e){if(G.length===e)return G;if(G.subarray)return G.subarray(0,e);G.length=e;return G};
var V6j={arraySet:function(G,e,r,Z,O){if(e.subarray&&G.subarray)G.set(e.subarray(r,r+Z),O);else for(var M=0;M<Z;M++)G[O+M]=e[r+M]},
flattenChunks:function(G){var e,r;var Z=r=0;for(e=G.length;Z<e;Z++)r+=G[Z].length;var O=new Uint8Array(r);Z=r=0;for(e=G.length;Z<e;Z++){var M=G[Z];O.set(M,r);r+=M.length}return O}},hT3={arraySet:function(G,e,r,Z,O){for(var M=0;M<Z;M++)G[O+M]=e[r+M]},
flattenChunks:function(G){return[].concat.apply([],G)}};
XF.setTyped=function(){M6E?(XF.Buf8=Uint8Array,XF.Buf16=Uint16Array,XF.Buf32=Int32Array,XF.assign(XF,V6j)):(XF.Buf8=Array,XF.Buf16=Array,XF.Buf32=Array,XF.assign(XF,hT3))};
XF.setTyped();var TfW=!0;try{new Uint8Array(1)}catch(G){TfW=!1}
var oNU=function(G){var e,r,Z=G.length,O=0;for(e=0;e<Z;e++){var M=G.charCodeAt(e);if((M&64512)===55296&&e+1<Z){var T=G.charCodeAt(e+1);(T&64512)===56320&&(M=65536+(M-55296<<10)+(T-56320),e++)}O+=M<128?1:M<2048?2:M<65536?3:4}var E=new XF.Buf8(O);for(e=r=0;r<O;e++)M=G.charCodeAt(e),(M&64512)===55296&&e+1<Z&&(T=G.charCodeAt(e+1),(T&64512)===56320&&(M=65536+(M-55296<<10)+(T-56320),e++)),M<128?E[r++]=M:(M<2048?E[r++]=192|M>>>6:(M<65536?E[r++]=224|M>>>12:(E[r++]=240|M>>>18,E[r++]=128|M>>>12&63),E[r++]=
128|M>>>6&63),E[r++]=128|M&63);return E};var qOU={};qOU=function(G,e,r,Z){var O=G&65535|0;G=G>>>16&65535|0;for(var M;r!==0;){M=r>2E3?2E3:r;r-=M;do O=O+e[Z++]|0,G=G+O|0;while(--M);O%=65521;G%=65521}return O|G<<16|0};for(var nF={},XW,Drc=[],Etv=0;Etv<256;Etv++){XW=Etv;for(var iQw=0;iQw<8;iQw++)XW=XW&1?3988292384^XW>>>1:XW>>>1;Drc[Etv]=XW}nF=function(G,e,r,Z){r=Z+r;for(G^=-1;Z<r;Z++)G=G>>>8^Drc[(G^e[Z])&255];return G^-1};var HG={};HG={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 VFS=[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],T0$=[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],dvU=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],$vq=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Qr=Array(576);lA(Qr);var Ic=Array(60);lA(Ic);var fF=Array(512);lA(fF);var KF=Array(256);lA(KF);var hDq=Array(29);lA(hDq);var Dvi=Array(30);lA(Dvi);var fC_,k1i,HaF,Kki=!1;var yr;
yr=[new Y2(0,0,0,0,function(G,e){var r=65535;for(r>G.pending_buf_size-5&&(r=G.pending_buf_size-5);;){if(G.lookahead<=1){mB(G);if(G.lookahead===0&&e===0)return 1;if(G.lookahead===0)break}G.strstart+=G.lookahead;G.lookahead=0;var Z=G.block_start+r;if(G.strstart===0||G.strstart>=Z)if(G.lookahead=G.strstart-Z,G.strstart=Z,pF(G,!1),G.strm.avail_out===0)return 1;if(G.strstart-G.block_start>=G.w_size-262&&(pF(G,!1),G.strm.avail_out===0))return 1}G.insert=0;if(e===4)return pF(G,!0),G.strm.avail_out===0?3:
4;G.strstart>G.block_start&&pF(G,!1);return 1}),
new Y2(4,4,8,4,tFF),new Y2(4,5,16,8,tFF),new Y2(4,6,32,32,tFF),new Y2(4,4,16,16,cG),new Y2(8,16,32,32,cG),new Y2(8,16,128,128,cG),new Y2(8,32,128,256,cG),new Y2(32,128,258,1024,cG),new Y2(32,258,258,4096,cG)];var X1U={};X1U=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 sBF=Object.prototype.toString;
aCp.prototype.push=function(G,e){var r=this.strm,Z=this.options.chunkSize;if(this.ended)return!1;var O=e===~~e?e:e===!0?4:0;typeof G==="string"?r.input=oNU(G):sBF.call(G)==="[object ArrayBuffer]"?r.input=new Uint8Array(G):r.input=G;r.next_in=0;r.avail_in=r.input.length;do{r.avail_out===0&&(r.output=new XF.Buf8(Z),r.next_out=0,r.avail_out=Z);G=jBi(r,O);if(G!==1&&G!==0)return bQW(this,G),this.ended=!0,!1;if(r.avail_out===0||r.avail_in===0&&(O===4||O===2))if(this.options.to==="string"){var M=XF.shrinkBuf(r.output,
r.next_out);e=M;M=M.length;if(M<65537&&(e.subarray&&TfW||!e.subarray))e=String.fromCharCode.apply(null,XF.shrinkBuf(e,M));else{for(var T="",E=0;E<M;E++)T+=String.fromCharCode(e[E]);e=T}this.chunks.push(e)}else e=XF.shrinkBuf(r.output,r.next_out),this.chunks.push(e)}while((r.avail_in>0||r.avail_out===0)&&G!==1);if(O===4)return(r=this.strm)&&r.state?(Z=r.state.status,Z!==42&&Z!==69&&Z!==73&&Z!==91&&Z!==103&&Z!==113&&Z!==666?G=dL(r,-2):(r.state=null,G=Z===113?dL(r,-3):0)):G=-2,bQW(this,G),this.ended=
!0,G===0;O===2&&(bQW(this,0),r.avail_out=0);return!0};
var bQW=function(G,e){e===0&&(G.result=G.options.to==="string"?G.chunks.join(""):XF.flattenChunks(G.chunks));G.chunks=[];G.err=e;G.msg=G.strm.msg};var vtW=typeof TextEncoder!=="undefined"?new TextEncoder:null,hcS=vtW?function(G){return vtW.encode(G)}:function(G){G=_.IF(G);
for(var e=new Uint8Array(G.length),r=0;r<e.length;r++)e[r]=G[r];return e};var W5q={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},L5S={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var K7=function(G,e){this.version=G;this.args=e};
K7.prototype.serialize=function(){return{version:this.version,args:this.args}};var uqf=function(G,e){this.topic=G;this.dataClass=e};
uqf.prototype.toString=function(){return this.topic};var wSE=_.Lz("ytPubsub2Pubsub2Instance")||new _.H_;_.H_.prototype.subscribe=_.H_.prototype.subscribe;_.H_.prototype.unsubscribeByKey=_.H_.prototype.unsubscribeByKey;_.H_.prototype.publish=_.H_.prototype.publish;_.H_.prototype.clear=_.H_.prototype.clear;_.Eu("ytPubsub2Pubsub2Instance",wSE);var Cfq=_.Lz("ytPubsub2Pubsub2SubscribedKeys")||{};_.Eu("ytPubsub2Pubsub2SubscribedKeys",Cfq);var mvp=_.Lz("ytPubsub2Pubsub2TopicToKeys")||{};_.Eu("ytPubsub2Pubsub2TopicToKeys",mvp);
var nN4=_.Lz("ytPubsub2Pubsub2IsAsync")||{};_.Eu("ytPubsub2Pubsub2IsAsync",nN4);_.Eu("ytPubsub2Pubsub2SkipSubKey",null);var Uv4=void 0,xv$=void 0;var ZRF=_.qt("max_body_size_to_compress",5E5),OR$=_.qt("min_body_size_to_compress",500),J0=!0,EPy=0,BG=0,DeS=_.qt("compression_performance_threshold_lr",250),iRA=_.qt("slow_compressions_before_abandon_count",4),N0S=!1,Lky=new Map,VDa=1,MDp=!0;_.Bz(x2,wxA);x2.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 $rE=function(G,e,r){r||(r=0);var Z=G.W_;if(typeof e==="string")for(var O=0;O<16;O++)Z[O]=e.charCodeAt(r)<<24|e.charCodeAt(r+1)<<16|e.charCodeAt(r+2)<<8|e.charCodeAt(r+3),r+=4;else for(O=0;O<16;O++)Z[O]=e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3],r+=4;for(e=16;e<80;e++)r=Z[e-3]^Z[e-8]^Z[e-14]^Z[e-16],Z[e]=(r<<1|r>>>31)&4294967295;e=G.chain_[0];r=G.chain_[1];O=G.chain_[2];for(var M=G.chain_[3],T=G.chain_[4],E,b,w=0;w<80;w++)w<40?w<20?(E=M^r&(O^M),b=1518500249):(E=r^O^M,b=1859775393):w<60?(E=r&O|M&(r|O),
b=2400959708):(E=r^O^M,b=3395469782),E=(e<<5|e>>>27)+E+T+b+Z[w]&4294967295,T=M,M=O,O=(r<<30|r>>>2)&4294967295,r=e,e=E;G.chain_[0]=G.chain_[0]+e&4294967295;G.chain_[1]=G.chain_[1]+r&4294967295;G.chain_[2]=G.chain_[2]+O&4294967295;G.chain_[3]=G.chain_[3]+M&4294967295;G.chain_[4]=G.chain_[4]+T&4294967295};
x2.prototype.update=function(G,e){if(G!=null){e===void 0&&(e=G.length);for(var r=e-this.blockSize,Z=0,O=this.buf_,M=this.inbuf_;Z<e;){if(M==0)for(;Z<=r;)$rE(this,G,Z),Z+=this.blockSize;if(typeof G==="string")for(;Z<e;){if(O[M]=G.charCodeAt(Z),++M,++Z,M==this.blockSize){$rE(this,O);M=0;break}}else for(;Z<e;)if(O[M]=G[Z],++M,++Z,M==this.blockSize){$rE(this,O);M=0;break}}this.inbuf_=M;this.total_+=e}};
x2.prototype.digest=function(){var G=[],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 r=this.blockSize-1;r>=56;r--)this.buf_[r]=e&255,e/=256;$rE(this,this.buf_);for(r=e=0;r<5;r++)for(var Z=24;Z>=0;Z-=8)G[e]=this.chain_[r]>>Z&255,++e;return G};var qmp;var kv=function(G){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(q){e.databaseToken=q},
triggerThrottle:function(){e.throttledSend()},
cancelThrottle:function(){e.cancelThrottledSend()},
immediateSend:function(q){return _.D(function(t){return t.yield(e.immediateSend(q),0)})},
requestWithinAgeLimit:function(q,t){return e.requestWithinAgeLimit(q,t)},
retryQueuedRequests:function(){e.retryQueuedRequests()}};
var r;this.throttleTimeout=(r=G.throttleTimeout)!=null?r:100;var Z;this.retryMaxAttempts=(Z=G.retryMaxAttempts)!=null?Z:1;var O;this.requestAgeLimitMs=(O=G.requestAgeLimitMs)!=null?O:2592E6;var M;this.queuedRequestAgeLimitMs=(M=G.queuedRequestAgeLimitMs)!=null?M:12E4;var T;this.retryDelayMs=(T=G.retryDelayMs)!=null?T:5E3;var E;this.databaseToken=(E=G.databaseToken)!=null?E:void 0;this.enableCleaning=!!G.enableCleaning;var b;this.cleaningRate=(b=G.cleaningRate)!=null?b:.1;var w;this.potentialEsfErrorLimit=
(w=G.potentialEsfErrorLimit)!=null?w:10;G.handleError&&(this.handleError=G.handleError);G.handleWarning&&(this.handleWarning=G.handleWarning);G.disableYtIdbTransactions&&(this.disableYtIdbTransactions=G.disableYtIdbTransactions);G.bypassDbTokenDependency&&(this.bypassDbTokenDependency=G.bypassDbTokenDependency);this.getBooleanFlag=G.getBooleanFlag;this.jobManager=G.jobManager;this.logsStore=G.logsStore;this.networkManager=G.networkManager;this.sendFn=G.sendFn;this.onlineEvent=G.onlineEvent;this.offlineEvent=
G.offlineEvent;f7(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&S6E(this)},S6E=function(G){f7(G)&&!G.disableYtIdbTransactions&&(G.initialized=!0,G.enableCleaning&&Math.random()<=G.cleaningRate&&G.logsStore.cleanLogsStore(G.databaseToken),G.retryQueuedRequests(),G.networkManager.isNetworkAvailable()&&G.throttledSend(),G.networkManager.listen(G.onlineEvent,G.throttledSend.bind(G)),G.networkManager.listen(G.offlineEvent,G.cancelThrottledSend.bind(G)))};
_.V=kv.prototype;_.V.writeThenSend=function(G,e){var r=this;e=e===void 0?{}:e;if(f7(this)&&this.initialized){var Z={url:G,options:e,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(Z,this.databaseToken).then(function(O){Z.id=O;r.networkManager.isNetworkAvailable()&&r.immediateSend(Z)}).catch(function(O){r.immediateSend(Z);
q6y(r,O)})}else this.sendFn(G,e)};
_.V.sendThenWrite=function(G,e,r){var Z=this;e=e===void 0?{}:e;if(f7(this)&&this.initialized){var O={url:G,options:e,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(O.skipRetry=r);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!O.skipRetry){if(!O.skipRetry){var M=e.onError?e.onError:function(){};
e.onError=function(T,E){return _.D(function(b){if(b.nextAddress==1)return b.yield(Z.logsStore.set(O,Z.databaseToken).catch(function(w){q6y(Z,w)}),2);
M(T,E);_.HL(b)})}}this.sendFn(G,e,O.skipRetry)}else this.logsStore.set(O,this.databaseToken).catch(function(T){Z.sendFn(G,e,O.skipRetry);
q6y(Z,T)})}else this.sendFn(G,e,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&r)};
_.V.sendAndWrite=function(G,e){var r=this;e=e===void 0?{}:e;if(f7(this)&&this.initialized){var Z={url:G,options:e,timestamp:this.now(),status:"NEW",sendCount:0},O=!1,M=e.onSuccess?e.onSuccess:function(){};
Z.options.onSuccess=function(T,E){Z.id!==void 0?r.logsStore.deleteRequest(Z.id,r.databaseToken):O=!0;r.networkManager.networkStatusHint&&r.getBooleanFlag&&r.getBooleanFlag("vss_network_hint")&&r.networkManager.networkStatusHint(!0);M(T,E)};
this.sendFn(Z.url,Z.options,void 0,!0);this.logsStore.set(Z,this.databaseToken).then(function(T){Z.id=T;O&&r.logsStore.deleteRequest(Z.id,r.databaseToken)}).catch(function(T){q6y(r,T)})}else this.sendFn(G,e,void 0,!0)};
_.V.throttledSend=function(){var G=this;if(!f7(this))throw Error("bd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var e;return _.D(function(r){if(r.nextAddress==1)return r.yield(G.logsStore.getMostRecentByStatus("NEW",G.databaseToken),2);if(r.nextAddress!=3)return e=r.yieldResult,e?r.yield(G.immediateSend(e),3):(G.cancelThrottledSend(),r.return());G.intervalJob&&(G.intervalJob=0,G.throttledSend());_.HL(r)})},this.throttleTimeout))};
_.V.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.V.immediateSend=function(G){var e=this,r;return _.D(function(Z){switch(Z.nextAddress){case 1:if(!f7(e))throw Error("cd");if(G.id===void 0){Z.jumpTo(2);break}return Z.yield(e.logsStore.markAsQueued(G.id,e.databaseToken),3);case 3:(r=Z.yieldResult)||e.handleWarning(Error("dd"));case 2:if(e.requestWithinAgeLimit(G,e.requestAgeLimitMs)){Z.jumpTo(4);break}e.handleWarning(Error("ed"));if(G.id===void 0){Z.jumpTo(5);break}return Z.yield(e.logsStore.deleteRequest(G.id,e.databaseToken),5);case 5:return Z.return();
case 4:G.skipRetry||(G=t6W(e,G));if(!G){Z.jumpTo(0);break}if(!G.skipRetry||G.id===void 0){Z.jumpTo(8);break}return Z.yield(e.logsStore.deleteRequest(G.id,e.databaseToken),8);case 8:e.sendFn(G.url,G.options,!!G.skipRetry),_.HL(Z)}})};
var t6W=function(G,e){if(!f7(G))throw Error("fd");var r=e.options.onError?e.options.onError:function(){};
e.options.onError=function(O,M){var T,E,b,w;return _.D(function(q){switch(q.nextAddress){case 1:T=jRA(M);(E=aQS(M))&&G.getBooleanFlag&&G.getBooleanFlag("web_enable_error_204")&&G.handleError(Error("gd"),e.url,M);if(!(G.getBooleanFlag&&G.getBooleanFlag("nwl_consider_error_code")&&T||G.getBooleanFlag&&!G.getBooleanFlag("nwl_consider_error_code")&&G.potentialEsfErrorCounter<=G.potentialEsfErrorLimit)){q.jumpTo(2);break}if(!G.networkManager.sendNetworkCheckRequest){q.jumpTo(3);break}return q.yield(G.networkManager.sendNetworkCheckRequest(),
3);case 3:if(G.networkManager.isNetworkAvailable()){q.jumpTo(2);break}r(O,M);if(!G.getBooleanFlag||!G.getBooleanFlag("nwl_consider_error_code")||((b=e)==null?void 0:b.id)===void 0){q.jumpTo(6);break}return q.yield(G.logsStore.resetRequest(e.id,G.databaseToken,!1),6);case 6:return q.return();case 2:if(G.getBooleanFlag&&G.getBooleanFlag("nwl_consider_error_code")&&!T&&G.potentialEsfErrorCounter>G.potentialEsfErrorLimit)return q.return();G.potentialEsfErrorCounter++;if(((w=e)==null?void 0:w.id)===void 0){q.jumpTo(8);
break}return e.sendCount<G.retryMaxAttempts?q.yield(G.logsStore.resetRequest(e.id,G.databaseToken,!0,E?!1:void 0),12):q.yield(G.logsStore.deleteRequest(e.id,G.databaseToken),8);case 12:G.jobManager.addLowPriorityJob(function(){G.networkManager.isNetworkAvailable()&&G.throttledSend()},G.retryDelayMs);
case 8:r(O,M),_.HL(q)}})};
var Z=e.options.onSuccess?e.options.onSuccess:function(){};
e.options.onSuccess=function(O,M){var T;return _.D(function(E){if(E.nextAddress==1)return((T=e)==null?void 0:T.id)===void 0?E.jumpTo(2):E.yield(G.logsStore.deleteRequest(e.id,G.databaseToken),2);G.networkManager.networkStatusHint&&G.getBooleanFlag&&G.getBooleanFlag("vss_network_hint")&&G.networkManager.networkStatusHint(!0);Z(O,M);_.HL(E)})};
return e};
kv.prototype.requestWithinAgeLimit=function(G,e){G=G.timestamp;return this.now()-G>=e?!1:!0};
kv.prototype.retryQueuedRequests=function(){var G=this;if(!f7(this))throw Error("hd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(e){e&&!G.requestWithinAgeLimit(e,G.queuedRequestAgeLimitMs)?G.jobManager.addLowPriorityJob(function(){return _.D(function(r){if(r.nextAddress==1)return e.id===void 0?r.jumpTo(2):r.yield(G.logsStore.resetRequest(e.id,G.databaseToken),2);G.retryQueuedRequests();_.HL(r)})}):G.networkManager.isNetworkAvailable()&&G.throttledSend()})};
var q6y=function(G,e){G.writeError&&!G.networkManager.isNetworkAvailable()?G.writeError(e):G.handleError(e)},f7=function(G){return!!G.databaseToken||G.bypassDbTokenDependency};var Xxf;var QVN={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,kidsPrismaDeeplinksEvent:530};var gtv={},pxU=bA("ServiceWorkerLogsDatabase",{objectStores:(gtv.SWHealthLog={addedAtVersion:1},gtv),shared:!0,upgrade:function(G,e){e(1)&&WG(zc(G,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var As$={},ysF=0;var xes;var Hv=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},rl=function(){if(!Hv.instance){var G=_.Lz("yt.networkRequestMonitor.instance")||new Hv;
_.Eu("yt.networkRequestMonitor.instance",G);Hv.instance=G}return Hv.instance};
Hv.prototype.requestComplete=function(G,e){e&&(this.anyRequestHasSucceeded=!0);G=this.removeParams(G);this.requestMap.get(G)||this.requestMap.set(G,e)};
Hv.prototype.isEndpointCFR=function(G){G=this.removeParams(G);return(G=this.requestMap.get(G))?!1:G===!1&&this.anyRequestHasSucceeded?!0:null};
Hv.prototype.removeParams=function(G){return G.split("?")[0]};
Hv.prototype.removeParams=Hv.prototype.removeParams;Hv.prototype.isEndpointCFR=Hv.prototype.isEndpointCFR;Hv.prototype.requestComplete=Hv.prototype.requestComplete;Hv.getInstance=rl;var dg=function(G){_.j7.call(this);var e=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=G!=null?G:{addLowPriorityJob:function(O,M){return setTimeout(O,M)},
cancelJob:function(O){clearTimeout(O)}};
var r,Z;this.isOnline=(Z=(r=window.navigator)==null?void 0:r.onLine)!=null?Z:!0;this.onNavigatorChange=function(){return _.D(function(O){return O.yield(lHn(e),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||RTn(this)};
_.K(dg,_.j7);dg.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete dg.instance};
dg.prototype.isNetworkAvailable=function(){return this.isOnline};
var RTn=function(G){G.pollingJob=G.jobManager.addLowPriorityJob(function(){var e;return _.D(function(r){if(r.nextAddress==1)return G.isOnline?((e=window.navigator)==null?0:e.onLine)?r.jumpTo(3):r.yield(lHn(G),3):r.yield(lHn(G),3);RTn(G);_.HL(r)})},3E4)},lHn=function(G,e){return G.networkRequestPromise?G.networkRequestPromise:G.networkRequestPromise=new Promise(function(r){var Z,O,M,T;
return _.D(function(E){switch(E.nextAddress){case 1:return Z=window.AbortController?new window.AbortController:void 0,M=(O=Z)==null?void 0:O.signal,T=!1,_.jr(E,2,3),Z&&(G.abortTimeoutKey=G.jobManager.addLowPriorityJob(function(){Z.abort()},e||2E4)),E.yield(fetch("/generate_204",{method:"HEAD",
signal:M}),5);case 5:T=!0;case 3:_.Xa(E);G.networkRequestPromise=void 0;G.abortTimeoutKey&&(G.jobManager.cancelJob(G.abortTimeoutKey),G.abortTimeoutKey=0);T!==G.isOnline&&(G.isOnline=T,G.isOnline?G.dispatchEvent("networkstatus-online"):G.dispatchEvent("networkstatus-offline"));r(T);_.fm(E,0);break;case 2:_.k5(E),T=!1,E.jumpTo(3)}})})};var sB=function(){_.j7.call(this);var G=this;this.shouldFlushErrors=!1;dg.instance||(dg.instance=new dg(_.A0));this.sharedNetworkStatusManager=dg.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(G.shouldFlushErrors&&_.R("offline_error_handling")){var e=PDU().get("errors",!0);if(e){for(var r in e)if(e[r]){var Z=new _.Cr(r,"sent via offline_errors");Z.name=e[r].name;Z.stack=e[r].stack;Z.level=e[r].level;_.WX(Z)}PDU().set("errors",{},2592E3,!0)}}})};
_.K(sB,_.j7);var jIv=function(){if(!sB.instance){var G=_.Lz("yt.networkStatusManager.instance")||new sB;_.Eu("yt.networkStatusManager.instance",G);sB.instance=G}return sB.instance};
_.V=sB.prototype;_.V.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.V.networkStatusHint=function(G){this.sharedNetworkStatusManager.isOnline=G};
_.V.getWindowStatus=function(){var G=window.navigator.onLine;return G===void 0?!0:G};
_.V.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.V.listen=function(G,e){return this.sharedNetworkStatusManager.listen(G,e)};
_.V.sendNetworkCheckRequest=function(G){G=lHn(this.sharedNetworkStatusManager,G);G.then(function(e){_.R("use_cfr_monitor")&&rl().requestComplete("generate_204",e)});
return G};
sB.prototype.sendNetworkCheckRequest=sB.prototype.sendNetworkCheckRequest;sB.prototype.listen=sB.prototype.listen;sB.prototype.enableErrorFlushing=sB.prototype.enableErrorFlushing;sB.prototype.getWindowStatus=sB.prototype.getWindowStatus;sB.prototype.networkStatusHint=sB.prototype.networkStatusHint;sB.prototype.isNetworkAvailable=sB.prototype.isNetworkAvailable;sB.getInstance=jIv;_.e4=function(G){G=G===void 0?{}:G;_.j7.call(this);var e=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=jIv();var r=_.Lz("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);r&&(G.rateLimit?(this.rateLimit=G.rateLimit,r("networkstatus-online",function(){aHE(e,"publicytnetworkstatus-online")}),r("networkstatus-offline",function(){aHE(e,"publicytnetworkstatus-offline")})):(r("networkstatus-online",function(){e.dispatchEvent("publicytnetworkstatus-online")}),r("networkstatus-offline",
function(){e.dispatchEvent("publicytnetworkstatus-offline")})))};
_.K(_.e4,_.j7);_.e4.prototype.isNetworkAvailable=function(){var G=_.Lz("yt.networkStatusManager.instance.isNetworkAvailable");return G?G.bind(this.nsmInstance)():!0};
_.e4.prototype.networkStatusHint=function(G){var e=_.Lz("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);e&&e(G)};
_.e4.prototype.sendNetworkCheckRequest=function(G){var e=this,r;return _.D(function(Z){r=_.Lz("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(e.nsmInstance);return _.R("skip_network_check_if_cfr")&&rl().isEndpointCFR("generate_204")?Z.return(new Promise(function(O){var M;e.networkStatusHint(((M=window.navigator)==null?void 0:M.onLine)||!0);O(e.isNetworkAvailable())})):r?Z.return(r(G)):Z.return(!0)})};
var aHE=function(G,e){G.rateLimit?G.lastJobTime?(_.A0.cancelJob(G.schedulerJob),G.schedulerJob=_.A0.addLowPriorityJob(function(){G.lastPublicSignalSent!==e&&(G.dispatchEvent(e),G.lastPublicSignalSent=e,G.lastJobTime=(0,_.vG)())},G.rateLimit-((0,_.vG)()-G.lastJobTime))):(G.dispatchEvent(e),G.lastPublicSignalSent=e,G.lastJobTime=(0,_.vG)()):G.dispatchEvent(e)};var Lrq,QQ=function(){kv.call(this,{logsStore:{cleanLogsStore:QRa,deleteRequest:sR$,getMostRecentByStatus:HRs,markAsQueued:deF,resetRequest:oPp,set:kos},networkManager:_.Ga$(),handleError:function(G,e,r){var Z,O=r==null?void 0:(Z=r.error)==null?void 0:Z.code;if(O===400||O===415){var M;G=new _.Cr(G.message,e,r==null?void 0:(M=r.error)==null?void 0:M.code);_.GG(G,void 0,void 0,void 0,!0)}else _.WX(G)},
handleWarning:_.GG,sendFn:WrN,now:_.vG,writeError:Uep,jobManager:_.S0(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.qt("potential_esf_error_limit",10),getBooleanFlag:_.R,disableYtIdbTransactions:!(_.pr()&&_.eIf())});this.initializationPromise=new _.G1;_.R("networkless_immediately_drop_all_requests")&&IQq();aH$("LogsDatabaseV2")};
_.K(QQ,kv);_.KGP=function(){var G=_.Lz("yt.networklessRequestController.instance");G||(G=new QQ,_.Eu("yt.networklessRequestController.instance",G),_.R("networkless_logging")&&_.iA().then(function(e){G.databaseToken=e;S6E(G);G.initializationPromise.resolve();G.enableCleaning&&Math.random()<=G.cleaningRate&&G.databaseToken&&u6S(G.databaseToken);_.R("networkless_immediately_drop_sw_health_store")&&XSn(G)}));
return G};
QQ.prototype.writeThenSend=function(G,e){e||(e={});e=Nvq(G,e);_.pr()||(this.initialized=!1);kv.prototype.writeThenSend.call(this,G,e)};
QQ.prototype.sendThenWrite=function(G,e,r){e||(e={});e=Nvq(G,e);_.pr()||(this.initialized=!1);kv.prototype.sendThenWrite.call(this,G,e,r)};
QQ.prototype.sendAndWrite=function(G,e){e||(e={});e=Nvq(G,e);_.pr()||(this.initialized=!1);kv.prototype.sendAndWrite.call(this,G,e)};
QQ.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var XSn=function(G){var e;_.D(function(r){if(!G.databaseToken)throw e=zG("clearSWHealthLogsDb"),e;return r.return(nP$(G.databaseToken).catch(function(Z){G.handleError(Z)}))})};_.ZC_=!1;_.r_p=_.O_.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.ZC_};_.Eu("ytNetworklessLoggingInitializationOptions",_.r_p);var mf=function(G){var e=this;this.config_=null;G?this.config_=G:QIS()&&(this.config_=_.$2());_.IQ(_.A0,function(){Rci(e)},5E3)};
mf.prototype.isReady=function(){!this.config_&&QIS()&&(this.config_=_.$2());return!!this.config_};
var lQN=function(G,e,r,Z){!_.xZ("VISITOR_DATA")&&e!=="visitor_id"&&Math.random()<.01&&_.GG(new _.Cr("Missing VISITOR_DATA when sending innertube request.",e,r,Z));if(!G.isReady()){var O=new _.Cr("innertube xhrclient not ready",e,r,Z);_.WX(O);throw O;}var M={headers:Z.headers||{},method:"POST",postParams:r,postBody:Z.postBody,postBodyFormat:Z.postBodyFormat||"JSON",onTimeout:function(){Z.onTimeout()},
onFetchTimeout:Z.onTimeout,onSuccess:function(t,g){if(Z.onSuccess)Z.onSuccess(g)},
onFetchSuccess:function(t){if(Z.onSuccess)Z.onSuccess(t)},
onProgress:function(t){if(Z.onProgress)Z.onProgress(t)},
onError:function(t,g){if(Z.onError)Z.onError(g)},
onFetchError:function(t){if(Z.onError)Z.onError(t)},
timeout:Z.timeout,withCredentials:!0,compress:Z.compress};M.headers["Content-Type"]||(M.headers["Content-Type"]="application/json");var T="";(O=G.config_.innertubeHostOverride)&&(T=O);var E=G.config_.innertubeUseThirdPartyAuth||!1,b=_.Ur_(E,T,Z);Object.assign(M.headers,b);M.headers.Authorization&&!T&&E&&(M.headers["x-origin"]=window.location.origin);var w=_.Mt(T+("/youtubei/"+G.config_.innertubeApiVersion+"/"+e),{alt:"json"}),q=function(t){t=t===void 0?!1:t;var g;if(Z.retry&&T!="www.youtube-nocookie.com"&&
(t||_.R("skip_ls_gel_retry")||M.headers["Content-Type"]!=="application/json"||(g=tDa(e,r,b,E)),g)){var l=M.onSuccess,X=M.onFetchSuccess;M.onSuccess=function(C,u){gPF(g);l(C,u)};
r.onFetchSuccess=function(C,u){gPF(g);X(C,u)}}try{if(t&&Z.retry&&!Z.networklessOptions.bypassNetworkless)M.method="POST",Z.networklessOptions.writeThenSend?_.KGP().writeThenSend(w,M):_.KGP().sendAndWrite(w,M);
else if(Z.compress){var H=!Z.networklessOptions.writeThenSend;if(M.postBody){var I=M.postBody;typeof I!=="string"&&(I=JSON.stringify(M.postBody));TvF(w,I,M,_.fr,H)}else TvF(w,JSON.stringify(M.postParams),M,$nS,H)}else _.R("web_all_payloads_via_jspb")?_.fr(w,M):$nS(w,M)}catch(C){if(C.name==="InvalidAccessError")g&&(gPF(g),g=0),_.GG(Error("id"));else throw C;}g&&_.IQ(_.A0,function(){Rci(G)},5E3)};
_.OCa()?$ra().then(function(t){q(t)}):q(!1)};var K5$=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(K5$,_.Tq);var fHC=0,Vsy=_.NS?"webkit":_.Wz?"moz":_.zx?"ms":n4P?"o":"";_.Eu("ytDomDomGetNextId",_.Lz("ytDomDomGetNextId")||function(){return++fHC});var kFl={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},Tr=function(G){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(G=
G||window.event){this.event=G;for(var e in G)e in kFl||(this[e]=G[e]);this.scale=G.scale;this.rotation=G.rotation;var r=G.target||G.srcElement;r&&r.nodeType==3&&(r=r.parentNode);this.target=r;var Z=G.relatedTarget;if(Z)try{Z=Z.nodeName?Z:null}catch(O){Z=null}else this.type=="mouseover"?Z=G.fromElement:this.type=="mouseout"&&(Z=G.toElement);this.relatedTarget=Z;this.clientX=G.clientX!=void 0?G.clientX:G.pageX;this.clientY=G.clientY!=void 0?G.clientY:G.pageY;this.keyCode=G.keyCode?G.keyCode:G.which;
this.charCode=G.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=G.altKey;this.ctrlKey=G.ctrlKey;this.shiftKey=G.shiftKey;this.metaKey=G.metaKey;this.pageX_=G.pageX;this.pageY_=G.pageY}}catch(O){}},HQl=function(G){if(document.body&&document.documentElement){var e=document.body.scrollTop+document.documentElement.scrollTop;
G.pageX_=G.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);G.pageY_=G.clientY+e}};
Tr.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Tr.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Tr.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var hG=_.O_.ytEventsEventsListeners||{};_.Eu("ytEventsEventsListeners",hG);var bCU=_.O_.ytEventsEventsCounter||{count:0};_.Eu("ytEventsEventsCounter",bCU);var vhS=_.tD(function(){var G=!1;try{var e=Object.defineProperty({},"capture",{get:function(){G=!0}});
window.addEventListener("test",null,e)}catch(r){}return G});_.Bz(Es,_.pB);Es.prototype.onMouseMove_=function(G){G.pageX_===void 0&&HQl(G);var e=G.pageX_;G.pageY_===void 0&&HQl(G);this.position_=new _.yB(e,G.pageY_)};
Es.prototype.checkPosition_=function(){if(this.position_){var G=(0,_.vG)();if(this.previousTime_!=0){var e=this.previousPosition_,r=this.position_,Z=e.x-r.x;e=e.y-r.y;Z=Math.sqrt(Z*Z+e*e)/(G-this.previousTime_);this.cycles_[this.index_]=Math.abs((Z-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(r=e=0;r<4;r++)e+=this.cycles_[r]||0;e>=3&&this.callback_();this.previousVelocity_=Z}this.previousTime_=G;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
Es.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.wQs(this.mouseListenerKey_)};var ghA={};var khS=new _.L9("rawColdConfigGroup");var fpi=new _.L9("rawHotConfigGroup");var drE=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(drE,_.Tq);var XVq=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(XVq,_.Tq);var Qx=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G,500)};
_.K(Qx,_.Tq);Qx.prototype.getPayloadCase=function(){return _.ig(this,otP)};
Qx.prototype.getContext=function(){return _.SS(this,XVq,33)};
var otP=[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,530];var lp4=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(lp4,_.Tq);var zIU=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(zIU,_.Tq);zIU.prototype.setVideoId=function(G){return XH(this,1,W2_,ja(G))};
zIU.prototype.getPlaylistId=function(){return _.kW(this,dl(this,W2_,2))};
var W2_=[1,2];var w5S=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(w5S,_.Tq);w5S.prototype.getContext=function(){return _.SS(this,KL,1)};
w5S.prototype.getTier=function(){return _.lg(this,7)};var sIE,wl,$c;sIE=_.O_.ytPubsubPubsubInstance||new _.H_;wl=_.O_.ytPubsubPubsubSubscribedKeys||{};$c=_.O_.ytPubsubPubsubTopicToKeys||{};_.lM$=_.O_.ytPubsubPubsubIsSynchronous||{};_.H_.prototype.subscribe=_.H_.prototype.subscribe;_.H_.prototype.unsubscribeByKey=_.H_.prototype.unsubscribeByKey;_.H_.prototype.publish=_.H_.prototype.publish;_.H_.prototype.clear=_.H_.prototype.clear;_.Eu("ytPubsubPubsubInstance",sIE);_.Eu("ytPubsubPubsubTopicToKeys",$c);_.Eu("ytPubsubPubsubIsSynchronous",_.lM$);
_.Eu("ytPubsubPubsubSubscribedKeys",wl);var qh=window;var Is=_.R("web_enable_lifecycle_monitoring")&&K2$()!==0,QI3=_.R("web_enable_lifecycle_monitoring");var IHS=function(G){var e=this;var r=r===void 0?0:r;var Z=Z===void 0?_.S0():Z;this.JSC$10895_defaultPriority=r;this.scheduler=Z;this.completedResolver=new _.G1;this.scheduledPayloads=G;for(G={i$jscomp$492:0};G.i$jscomp$492<this.scheduledPayloads.length;G={payload$jscomp$20:void 0,i$jscomp$492:G.i$jscomp$492},G.i$jscomp$492++)G.payload$jscomp$20=this.scheduledPayloads[G.i$jscomp$492],r=function(O){return function(){O.payload$jscomp$20.job();e.scheduledPayloads[O.i$jscomp$492].processed=!0;e.scheduledPayloads.every(function(M){return M.processed===
!0})&&e.completedResolver.resolve()}}(G),Z=this.getPriority(G.payload$jscomp$20),Z=this.scheduler.addJob(r,Z),this.scheduledPayloads[G.i$jscomp$492]=Object.assign({},G.payload$jscomp$20,{job:r,
jobId:Z})};
IHS.prototype.flushJobs=function(){var G=this,e=Array.from(this.scheduledPayloads.keys()).sort(function(Z,O){return G.getPriority(G.scheduledPayloads[O])-G.getPriority(G.scheduledPayloads[Z])});
e=_.h(e);for(var r=e.next();!r.done;r=e.next())r=this.scheduledPayloads[r.value],r.jobId===void 0||r.processed||(this.scheduler.cancelJob(r.jobId),this.scheduler.addJob(r.job,10))};
IHS.prototype.cancel=function(){for(var G=_.h(this.scheduledPayloads),e=G.next();!e.done;e=G.next())e=e.value,e.jobId===void 0||e.processed||this.scheduler.cancelJob(e.jobId),e.processed=!0;this.completedResolver.resolve()};
IHS.prototype.getPriority=function(G){var e;return(e=G.priority)!=null?e:this.JSC$10895_defaultPriority};var p7=function(G){this.state=G;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};Is&&fMq(this.state)};
p7.prototype.install=function(G){this.plugins.push(G);return this};
p7.prototype.uninstall=function(){var G=this;_.Bw.apply(0,arguments).forEach(function(e){e=G.plugins.indexOf(e);e>-1&&G.plugins.splice(e,1)})};
p7.prototype.transition=function(G,e){var r=this;Is&&kai(this.state);var Z=this.transitions.find(function(M){return Array.isArray(M.from)?M.from.find(function(T){return T===r.state&&M.to===G}):M.from===r.state&&M.to===G});
if(Z){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);pS3(this,G,e);this.state=G;Is&&fMq(this.state);Z=Z.action.bind(this);var O=this.plugins.filter(function(M){return M[G]}).map(function(M){return M[G]});
Z(CwE(this,O),e)}else throw Error("jd`"+this.state+"`"+G);};
var CwE=function(G,e){var r=e.filter(function(O){return us3(G,O)===10}),Z=e.filter(function(O){return us3(G,O)!==10});
return G.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var O=_.Bw.apply(0,arguments);return _.D(function(M){if(M.nextAddress==1)return M.yield(G.runImmediateJobsAsync.apply(G,[r].concat(_.mY(O))),2);G.setJobSetWithScheduledJobs.apply(G,[Z].concat(_.mY(O)));_.HL(M)})}:function(){var O=_.Bw.apply(0,arguments);
G.runImmediateJobsSync.apply(G,[r].concat(_.mY(O)));G.setJobSetWithScheduledJobs.apply(G,[Z].concat(_.mY(O)))}};
p7.prototype.runImmediateJobsSync=function(G){var e=_.Bw.apply(1,arguments);_.S0();for(var r=_.h(G),Z=r.next(),O={};!Z.done;O={lifecycle$jscomp$2:void 0},Z=r.next())O.lifecycle$jscomp$2=Z.value,UY(function(M){return function(){ntw(M.lifecycle$jscomp$2.name);dqf(function(){return M.lifecycle$jscomp$2.callback.apply(M.lifecycle$jscomp$2,_.mY(e))});
C7(M.lifecycle$jscomp$2.name)}}(O))};
p7.prototype.runImmediateJobsAsync=function(G){var e=_.Bw.apply(1,arguments),r,Z,O,M;return _.D(function(T){T.nextAddress==1&&(_.S0(),r=_.h(G),Z=r.next(),O={});if(T.nextAddress!=3){if(Z.done)return T.jumpTo(0);O.lifecycle$jscomp$3=Z.value;O.asyncJobCompletion=void 0;M=function(E){return function(){ntw(E.lifecycle$jscomp$3.name);var b=dqf(function(){return E.lifecycle$jscomp$3.callback.apply(E.lifecycle$jscomp$3,_.mY(e))});
$Wb(b)?E.asyncJobCompletion=_.R("web_lifecycle_error_handling_killswitch")?b.then(function(){C7(E.lifecycle$jscomp$3.name)}):b.then(function(){C7(E.lifecycle$jscomp$3.name)},function(w){HC4(w);
C7(E.lifecycle$jscomp$3.name)}):C7(E.lifecycle$jscomp$3.name)}}(O);
UY(M);return O.asyncJobCompletion?T.yield(O.asyncJobCompletion,3):T.jumpTo(3)}O={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};Z=r.next();return T.jumpTo(2)})};
p7.prototype.setJobSetWithScheduledJobs=function(G){var e=_.Bw.apply(1,arguments),r=this,Z=G.map(function(O){return{job:function(){ntw(O.name);dqf(function(){return O.callback.apply(O,_.mY(e))});
C7(O.name)},
priority:us3(r,O)}});
Z.length&&(this.jobSet=new IHS(Z))};
var us3=function(G,e){var r,Z;return(Z=(r=G.overridePriority)!=null?r:e.priority)!=null?Z:0},ntw=function(G){Is&&G&&fMq(G)},C7=function(G){Is&&G&&kai(G)},pS3=function(G,e,r){QI3&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+G.constructor.name+"] '"+G.state+"' to '"+e+"'"),console.log("with message: ",r),console.groupEnd())};
_.iY.Object.defineProperties(p7.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var mrv=function(G){p7.call(this,G===void 0?"none":G);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(){}}]},chS;
_.K(mrv,p7);mrv.prototype.runApplicationNavigationBegin=function(G,e){var r=this;this.navigationTimer=_.IQ(_.A0,function(){r.currentState==="application_navigating"&&r.transition("none")},5E3);
G(e==null?void 0:e.event)};
mrv.prototype.runApplicationNavigationEnd=function(G,e){this.navigationTimer&&(_.A0.cancelJob(this.navigationTimer),this.navigationTimer=null);G(e==null?void 0:e.event)};
_.KOA=function(){chS||(chS=new mrv);return chS};var X5N=[];_.Eu("yt.logging.transport.getScrapedGelPayloads",function(){return X5N});var gl=function(){var G=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return G.totalEntries}}};
gl.prototype.storePayload=function(G,e){G=ohS(G);this.store[G]?this.store[G].push(e):(this.memoizedKeySequences={},this.store[G]=[e]);this.totalEntries++;_.R("more_accurate_gel_parser")&&(e=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(e));return G};
gl.prototype.smartExtractMatchingEntries=function(G){if(!G.keys.length)return[];for(var e=Y6w(this,G.keys.splice(0,1)[0]),r=[],Z=0;Z<e.length;Z++)this.store[e[Z]]&&G.sizeLimit&&(this.store[e[Z]].length<=G.sizeLimit?(r.push.apply(r,_.mY(this.store[e[Z]])),delete this.store[e[Z]]):r.push.apply(r,_.mY(this.store[e[Z]].splice(0,G.sizeLimit))));this.totalEntries-=r.length;(G==null?0:G.sizeLimit)&&r.length<(G==null?void 0:G.sizeLimit)&&(G.sizeLimit-=r.length,r.push.apply(r,_.mY(this.smartExtractMatchingEntries(G))));
return r};
gl.prototype.extractMatchingEntries=function(G){G=Y6w(this,G);for(var e=[],r=0;r<G.length;r++)this.store[G[r]]&&(e.push.apply(e,_.mY(this.store[G[r]])),delete this.store[G[r]]);this.totalEntries-=e.length;return e};
gl.prototype.getSequenceCount=function(G){G=Y6w(this,G);for(var e=0,r=0;r<G.length;r++){var Z=void 0;e+=((Z=this.store[G[r]])==null?void 0:Z.length)||0}return e};
var Y6w=function(G,e){var r=ohS(e);if(G.memoizedKeySequences[r])return G.memoizedKeySequences[r];var Z=Object.keys(G.store)||[];if(Z.length<=1&&ohS(e)===Z[0])return Z;for(var O=[],M=0;M<Z.length;M++){var T=Z[M].split("/");if(yhS(e.auth,T[0])){var E=e.isJspb;yhS(E===void 0?"undefined":E?"true":"false",T[1])&&yhS(e.cttAuthInfo,T[2])&&(E=e.tier,E=E===void 0?"undefined":JSON.stringify(E),yhS(E,T[3])&&O.push(Z[M]))}}return G.memoizedKeySequences[r]=O},yhS=function(G,e){return G===void 0||G==="undefined"?
!0:G===e};
gl.prototype.getSequenceCount=gl.prototype.getSequenceCount;gl.prototype.extractMatchingEntries=gl.prototype.extractMatchingEntries;gl.prototype.smartExtractMatchingEntries=gl.prototype.smartExtractMatchingEntries;gl.prototype.storePayload=gl.prototype.storePayload;var Vvf,O1i,hPp,j4,Ahv,sVA,oOF,Z1p,reS,J_4,MvS,jVq,L2a;Vvf=_.qt("initial_gel_batch_timeout",2E3);O1i=_.qt("gel_queue_timeout_max_ms",6E4);hPp=_.qt("gel_min_batch_size",5);j4=void 0;Ahv=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
sVA=new Ahv;oOF=new Ahv;Z1p=new Ahv;reS=new Ahv;MvS=!0;jVq=1;_.RPi=new Map;L2a=_.O_.ytLoggingTransportTokensToCttTargetIds_||{};_.Eu("ytLoggingTransportTokensToCttTargetIds_",L2a);var N2S=_.O_.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.Eu("ytLoggingTransportTokensToJspbCttTargetIds_",N2S);var RQ={};var uj=_.O_.ytLoggingGelSequenceIdObj_||{};_.Eu("ytLoggingGelSequenceIdObj_",uj);var p5_=[];var xkf=new Set,ceS=0,zP$=0,Uks=0,yei=[],Yb4=[],WOa=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Eb4=function(){};
Eb4.prototype.getUrl=function(G,e){e=e===void 0?!1:e;return G.hasOwnProperty("shareEndpoint")?null:_.eLN(G,null,e)};
var KsS=function(G,e,r){G={endpoint:e,actions:[]};r=(r.path?r.path[0]:r.target).icon||"";e=r.indexOf(":");e>0&&(r=r.substr(e+1));r&&G.actions.push(r);return G};var hLA=/Command$/,VVN=/Endpoint$/,ZWS=new Map;var FGy,Jhj;FGy=1;_.e8=function(){this.actionRoutingMap=new Map};
_.e8.prototype.triggerAction=function(G){var e=new Z6p(G,!1,_.Bw.apply(1,arguments));this.handleAction(e);return e.returnValue};
_.e8.prototype.triggerOptionalAction=function(G){var e=new Z6p(G,!0,_.Bw.apply(1,arguments));this.handleAction(e);return e.returnValue};
_.ul=function(G,e,r){e.forEach(function(Z){var O=MVN(Z);O&&G.triggerOptionalAction(O,Z,r,void 0)})};
_.e8.prototype.handleAction=function(G){var e=this.actionRoutingMap.get(G.actionName);e&&Jhj(G,e);G.optionalAction||G.returnValue.length!==0||(G=new _.Cr("Unhandled action",G.actionName),_.GG(G))};
Jhj=function(G,e){e.forEach(function(r){var Z=null;r?Z=r.apply(null,G.args):(r=Error("kd"),r.params=G.actionName,_.WX(r));G.returnValue.push(Z)})};
_.re=function(G,e,r){r||(r=FGy++);for(var Z=_.h(Object.keys(e)),O=Z.next();!O.done;O=Z.next()){O=O.value;var M=G.actionRoutingMap.get(O);M||(M=new Map,G.actionRoutingMap.set(O,M));G.registerActionHandler(r,O,e[O],M)}return r};
_.e8.prototype.registerActionHandler=function(G,e,r,Z){Z.set(G,_.N0(r))};
_.Mx=function(G,e,r){e=_.h(Object.keys(e));for(var Z=e.next();!Z.done;Z=e.next())(Z=G.actionRoutingMap.get(Z.value))&&Z.delete(r)};
_.Fb(_.e8);var vbi=function(G,e){var r=_.e8.getInstance();_.yY(function(){var Z={},O=_.re(r,(Z[G]=e,Z));_.yD(function(){var M={};_.Mx(r,(M[G]="",M),O)})})};var HGf=Symbol("md");tCN=NEs;var obF=new Set(["For","If","Match","Watch"]),Bfw={},xrP=(Bfw[WO.default]=function(){return itF},Bfw.style=function(){return itF},Bfw),Pwy;
for(Pwy in xrP)bW.attributes[Pwy]=xrP[Pwy](bW.attributes[Pwy]);var bC=new _.Gz("VISIBILITY_OBSERVER");var Y2S={retrieve:function(G){return this.id.\u0275prov.token===G.\u0275prov.token?this.contextValue:this?_.D2(this,this.id):g2p}};var UPA=function(G,e,r){if(G!==tVa)return!1;G=Xep(document.createElement("div"),function(){var Z=S1(!1);try{r[0]()}finally{S1(Z)}});
G=Array.from(G.childNodes);G.length===1&&(G=G[0]);return G};var Url=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(G){}var zTv=typeof WeakRef==="function";var WGS=function(G){this.value=G};
WGS.prototype.deref=function(){return this.value};
var NfS=zTv?WeakRef:WGS,LGb=function(G){this.newKeyHandler=G;this.map=new WeakMap};
LGb.prototype.add=function(G,e){this.map.has(G)||(this.newKeyHandler(G),this.map.set(G,[]));this.map.get(G).push(new NfS(e))};
LGb.prototype.get=function(G){var e=this;return function Z(){var O,M,T,E,b,w,q,t,g,l,X;return _.N$(Z,function(H){switch(H.nextAddress){case 1:_.Km(H,2);O=e.map.get(G);if(!O)return H.return();M=0;T=_.h(O);E=T.next();case 4:if(E.done){H.jumpTo(6);break}b=E.value;w=b.deref();if(!w){H.jumpTo(5);break}M++;q=_.Lx;return H.yield(w,8);case 8:q(H.yieldResult);case 5:E=T.next();H.jumpTo(4);break;case 6:if(2*M<O.length){t=0;g=_.h(O);for(l=g.next();!l.done;l=g.next())X=l.value,X.deref()&&(O[t++]=X);O.length=
t}case 2:_.Xa(H),_.fm(H,0)}})}()};var G13=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},PtS=new LGb(function(G){G.addEventListener("abort",zLA,{once:!0})}),xoS=new WeakMap,eDC=function(G){G=G===void 0?n7:G;
this.signal=new G};
eDC.prototype.abort=function(G){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=G,G=new Event("abort"),this.signal.dispatchEvent(G))};
var n7=function(){this.target=G13();this.aborted=!1;this.onabort=null};
n7.prototype.throwIfAborted=function(){B8U.call(this)};
n7.prototype.addEventListener=function(G,e,r){this.target.addEventListener(G,e,r)};
n7.prototype.removeEventListener=function(G,e,r){this.target.removeEventListener(G,e,r)};
n7.prototype.dispatchEvent=function(G){if(this.onabort&&G.type==="abort")this.onabort(G);return this.target.dispatchEvent(G)};
n7.abort=JIS;n7.timeout=Wvs;n7.any=UoU;var FvF=Url?AbortController:eDC,m9=Url?AbortSignal:n7;typeof m9.abort!=="function"&&(m9.abort=JIS);typeof m9.prototype.throwIfAborted!=="function"&&(m9.prototype.throwIfAborted=B8U);typeof m9.any!=="function"&&(m9.any=UoU);typeof m9.timeout!=="function"&&(m9.timeout=Wvs);var we=null,Lva=new Map;var rXW=function(G){G=G.clone();j5W(G);RU(G,"dg",null);RU(G,"d","0");t8n(G,null);gs3(G,null);return G},Zaj=!0,OaP=function(G,e,r){var Z=r===void 0?{}:r;
r=Z.cssRowKey===void 0?void 0:Z.cssRowKey;var O=Z.combinedSignature===void 0?void 0:Z.combinedSignature;var M=Z.extraEdges===void 0?void 0:Z.extraEdges;Z=Z.callback===void 0?void 0:Z.callback;RU(G,"m",e.join(","));M&&Rsy(G,M);r&&(RU(G,"ck",r),O?RU(G,"rs",O):Zaj&&(Zaj=!1));if(Z){if(Z!=null&&!Kuv.test(Z))throw Error("Xa`"+Z);RU(G,"cb",Z)}G=G.toString();_.Vp(G,"/")&&(G=GXE(document.location.href)+G);return _.sk(G)};var VF3=function(G){return MFy(G).then(function(e){return JSON.parse(e.responseText)})},MFy=function(G){var e={},r=e.xmlHttpFactory?e.xmlHttpFactory.createInstance():cHv.createInstance();
return(new _.aQ(function(Z,O){var M;try{r.open("GET",G,!0)}catch(b){O(new cv("Error opening XHR: "+b.message,G,r))}r.onreadystatechange=function(){if(r.readyState==4){_.O_.clearTimeout(M);var b;!(b=m0E(r.status))&&(b=r.status===0)&&(b=Ldy(G),b=!(b=="http"||b=="https"||b==""));b?Z(r):O(new hDb(r.status,G,r))}};
r.onerror=function(){O(new cv("Network error",G,r))};
if(e.headers)for(var T in e.headers){var E=e.headers[T];E!=null&&r.setRequestHeader(T,E)}e.withCredentials&&(r.withCredentials=e.withCredentials);e.responseType&&(r.responseType=e.responseType);e.mimeType&&r.overrideMimeType(e.mimeType);e.timeoutMs>0&&(M=_.O_.setTimeout(function(){r.onreadystatechange=function(){};
r.abort();O(new T0E(G,r))},e.timeoutMs));
try{r.send(null)}catch(b){r.onreadystatechange=function(){},_.O_.clearTimeout(M),O(new cv("Error sending XHR: "+b.message,G,r))}})).thenCatch(function(Z){Z instanceof _.fx&&r.abort();
throw Z;})},cv=function(G,e,r){_.rs.call(this,G+", url="+e);
this.url=e;this.xhr=r};
_.Bz(cv,_.rs);cv.prototype.name="XhrError";var hDb=function(G,e,r){cv.call(this,"Request Failed, status="+G,e,r);this.status=G};
_.Bz(hDb,cv);hDb.prototype.name="XhrHttpError";var T0E=function(G,e){cv.call(this,"Request timed out",G,e)};
_.Bz(T0E,cv);T0E.prototype.name="XhrTimeoutError";AV=AV||{};var Yv=function(){_.pB.call(this)};
_.Bz(Yv,_.pB);Yv.prototype.initialize=function(){};var DvS=function(G,e){this.fn_=G;this.handler_=e};
DvS.prototype.execute=function(G){this.fn_&&(this.fn_.call(this.handler_||null,G),this.fn_=this.handler_=null)};
DvS.prototype.abort=function(){this.handler_=this.fn_=null};var yQ=function(G,e){_.pB.call(this);this.deps_=G;this.JSC$11050_id_=e;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.Bz(yQ,_.pB);yQ.prototype.moduleConstructor_=Yv;yQ.prototype.module_=null;yQ.prototype.getId=function(){return this.JSC$11050_id_};
yQ.prototype.registerCallback=function(G,e){return AQ(this.onloadCallbacks_,G,e)};
var ENy=function(G,e){AQ(G.onErrorCallbacks_,e)},AQ=function(G,e,r){e=new DvS(e,r);
G.push(e);return e};
yQ.prototype.isLoaded=function(){return!!this.module_};
yQ.prototype.onLoad=function(G){var e=new this.moduleConstructor_;e.initialize(G());this.module_=e;e=(e=iaj(this.earlyOnloadCallbacks_,G()))||iaj(this.onloadCallbacks_,G());e||(this.onErrorCallbacks_.length=0);return e};
yQ.prototype.onError=function(G){(G=iaj(this.onErrorCallbacks_,G))&&MU(Error("rd`"+G));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var iaj=function(G,e){for(var r=[],Z=0;Z<G.length;Z++)try{G[Z].execute(e)}catch(O){MU(O),r.push(O)}G.length=0;return r.length?r:null};
yQ.prototype.disposeInternal=function(){yQ.superClass_.disposeInternal.call(this);_.TX(this.module_)};var ba3,tFy,SOw,qOW,w13,$vb,aCv,RDv,jBS;
_.S8=function(G,e,r,Z,O){Z=Z===void 0?!1:Z;O=O===void 0?!1:O;var M=M===void 0?!0:M;this.scsReferenceUrl_=y0N(_.Qt(G).toString(),M);this.cssRowKey_=e;this.combinedSignature_=r;this.useNegativeLoading_=Z;this.requestedModuleMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(G=lm(this.scsReferenceUrl_,"excm"))?G.split(","):[];this.shouldScanForCss_=O;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=document.head||document.documentElement;
this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;A0p();_.FW(this,lmE(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
ba3=function(G,e){if(e.href||e.getAttribute("data-href"))if(e=e.href||e.getAttribute("data-href"),n2_(e)&&!y0N(e).urlPrefix_.endsWith("_/js/")){e=lmE(y0N(e));e=_.h(e);for(var r=e.next();!r.done;r=e.next())r=r.value,G.loadedCssModuleList_.includes(r)||G.loadedCssModuleList_.push(r)}};
_.S8.prototype.JSC$11055_loadModules=function(G,e,r){var Z=r===void 0?{}:r;e=Z.extraEdges;r=Z.onError;var O=Z.onSuccess;Z=Z.forceReload;if(!G)throw Error("sd");if(this.shouldScanForCss_){for(var M=_.h(document.getElementsByTagName("style")),T=M.next();!T.done;T=M.next())ba3(this,T.value);M=_.h(document.getElementsByTagName("link"));for(T=M.next();!T.done;T=M.next())ba3(this,T.value)}vNP(this,w13(this,G),e,r,O,Z)};
var vNP=function(G,e,r,Z,O,M){Z=Z===void 0?function(){}:Z;
O=O===void 0?function(){}:O;
M=M===void 0?!1:M;$vb(G,e,function(T,E,b){b=b===void 0?E:b;G.enableFallbackFetch&&M?G.loadWithFetch(T,E,Z,O,b):G.load(T,E,Z,O,b,r)},r)||Z(-1)};
_.S8.prototype.loadWithFetch=function(){_.D(function(){throw Error("td");})};
_.S8.prototype.maybeSetAdditionalFields=function(){};
tFy=function(G,e,r){if(G.useNegativeLoading_){var Z=G.scsReferenceUrl_;G={cssRowKey:G.cssRowKey_,combinedSignature:G.combinedSignature_,extraEdges:r,requestedModuleIds:SOw(G),requestedCssModuleIds:qOW(G)};var O=G===void 0?{}:G;G=O.requestedModuleIds===void 0?[]:O.requestedModuleIds;r=O.requestedCssModuleIds===void 0?[]:O.requestedCssModuleIds;var M=O.cssRowKey===void 0?void 0:O.cssRowKey;var T=O.combinedSignature===void 0?void 0:O.combinedSignature;var E=O.extraEdges===void 0?void 0:O.extraEdges;
O=O.callback===void 0?void 0:O.callback;Z=rXW(Z);RU(Z,"d","1");t8n(Z,G);gs3(Z,r);e=OaP(Z,e,{cssRowKey:M,combinedSignature:T,extraEdges:E,callback:O})}else Z=G.scsReferenceUrl_,G={cssRowKey:G.cssRowKey_,combinedSignature:G.combinedSignature_,requestedModuleIds:SOw(G),requestedCssModuleIds:qOW(G)},E=G===void 0?{}:G,G=E.requestedCssModuleIds===void 0?[]:E.requestedCssModuleIds,r=E.cssRowKey===void 0?void 0:E.cssRowKey,M=E.combinedSignature===void 0?void 0:E.combinedSignature,T=E.extraEdges===void 0?
void 0:E.extraEdges,E=E.callback===void 0?void 0:E.callback,Z=rXW(Z),gs3(Z,G),e=OaP(Z,e,{cssRowKey:r,combinedSignature:M,extraEdges:T,callback:E});return e};
_.FW=function(G,e){for(var r=!1,Z=[],O=0;O<e.length;++O){var M=e[O];G.requestedModuleMap_[M]||(G.requestedModuleMap_[M]=!0,G.requestedModuleList_.push(M),r=!0,Z.push(M))}r&&(G.requestedModuleListSorted_=!1)};
_.JQ=function(G,e){for(var r=[],Z=0;Z<e.length;++Z){var O=e[Z];G.requestedModuleMap_[O]&&(delete G.requestedModuleMap_[O],_.yp(G.requestedModuleList_,O),r.push(O))}};
_.S8.prototype.load=function(G,e,r,Z,O){O=O===void 0?e:O;_.Qt(G);var M=this.useCors_,T=this.corsMode_,E=this.fetchPriority,b=_.Hp("SCRIPT");_.h6(b,G);M&&(b.crossOrigin=T);b.async=!1;E&&b.setAttribute("fetchpriority",E);_.FW(this,e);_.gNj(this,G,b,e,r,Z,O)};
_.gNj=function(G,e,r,Z,O,M,T){T=T===void 0?Z:T;G.lastScript_=r;G.insertPos.insertBefore(r,G.insertPos.firstChild);_.lCE(r,Z,function(){r.parentElement.removeChild(r);G.lastScript_==r&&(G.lastScript_=null);M()},function(E){r.parentElement.removeChild(r);
G.lastScript_==r&&(G.lastScript_=null);_.JQ(G,E);G.pendingModuleGraphUpdate_?G.pendingModuleGraphUpdate_.then(function(){O(-1,e)}):O(-1,e)},T)};
_.lCE=function(G,e,r,Z,O){O=O===void 0?e:O;var M=e.length,T=function(){M=0;G.onload=null;G.onerror=null;E=function(){}},E=function(){T();
var w=O.filter(function(q){return!YW().getModuleInfo(q).isLoaded()});
w.length!==0?Z(w,"Response was successful but was missing module(s) "+w+"."):r()},b=function(){M--;
M==0&&E()};
e.forEach(function(w){w=YW().getModuleInfo(w);w.isLoaded()?b():(AQ(w.earlyOnloadCallbacks_,b),ENy(w,b))});
G.onload=function(){return E()};
G.onerror=function(){T();Z(e)}};
SOw=function(G){G.requestedModuleListSorted_||(G.requestedModuleListSorted_=!0,G.requestedModuleList_.sort());return G.requestedModuleList_};
qOW=function(G){G=G.loadedCssModuleList_;G.sort();return G};
w13=function(G,e){return e.filter(function(r){return!G.requestedModuleMap_[r]})};
$vb=function(G,e,r,Z){if(G.pendingModuleGraphUpdate_)return G.pendingModuleGraphUpdate_.then(function(){$vb(G,e,r,Z)}),!0;
if(!G.useNegativeLoading_){var O=[],M=Object.assign({},G.requestedModuleMap_);RDv(G,e,function(q){O.push(q.getId())},Z,function(q){return!q.isLoaded()},M);
e=O}for(M=0;M<e.length;){for(var T=e.length-M,E=M==0?e:e.slice(M,e.length),b=tFy(G,E,Z),w=_.Qt(b).toString();w.length>G.urlMaxLength;)if(T>1)T-=Math.ceil((w.length-G.urlMaxLength)/6),T=Math.max(T,1),E=e.slice(M,M+T),b=tFy(G,E,Z),w=_.Qt(b).toString();else return G.useNegativeLoading_?(G.useNegativeLoading_=!1,G.pendingModuleGraphUpdate_=jBS(G).then(function(q){aCv(G,q,Z)}),$vb(G,e.slice(M),r,Z)):!1;
M+=T;G.useNegativeLoading_?r(b,E):r(b,E,M===e.length?e:[])}return!0};
aCv=function(G,e,r){YW().setAllModuleInfoString((e||{}).moduleGraph);RDv(G,SOw(G),function(Z){_.FW(G,[Z.getId()])},r);
G.pendingModuleGraphUpdate_=null};
RDv=function(G,e,r,Z,O,M){M=M===void 0?{}:M;var T=YW();e=_.h(e);for(var E=e.next();!E.done;E=e.next()){E=E.value;var b=T.getModuleInfo(E);if(!(M[E]||O&&!O(b))){M[E]=!0;var w=b.deps_||[];if(Z){var q=[];Z[E]&&(q=Object.keys(Z[E]));w=w.concat(q)}RDv(G,w,r,Z,O,M);r(b)}}};
jBS=function(G){G=G.scsReferenceUrl_.clone();j5W(G);RU(G,"dg",null);RU(G,"md","1");return VF3(G.toString())};var edS=new Uint8Array(123);var X1W=[];var KkS=function(){this.JSC$10063_loader_=null};
_.V=KkS.prototype;_.V.setBatchModeEnabled=function(){};
_.V.setAllModuleInfoString=function(){};
_.V.addExtraEdge=function(){throw Error("ud");};
_.V.removeExtraEdge=function(){throw Error("vd");};
_.V.getModuleContext=function(){return null};
_.V.isActive=function(){return!1};
_.V.isUserActive=function(){return!1};
_.V.registerInitializationCallback=function(){};
_.V.registerCallback=function(){};var Bv=function(G,e,r,Z,O){var M=Error.call(this);this.message=M.message;"stack"in M&&(this.stack=M.stack);this.name="ModuleLoadFailure";this.type=G;this.status=e;this.requestedModuleIds=r;this.url=Z;this.cause=O;this.message=this.toString()};
_.K(Bv,Error);Bv.prototype.toString=function(){return fCl(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var fCl=function(G){switch(G.type){case Bv.Type.UNAUTHORIZED:return"Unauthorized";case Bv.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Bv.Type.TIMEOUT:return"Timed out";case Bv.Type.OLD_CODE_GONE:return"Out of date module id";case Bv.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+G.type}};
AV.ModuleLoadFailure=Bv;AV.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var xv=function(){this.moduleIds_=this.JSC$10063_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11068_extraEdges_={};this.JSC$11068_callbackMap_={};this.JSC$11068_currentlyLoadingModule_=this.baseModuleInfo_=new yQ([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new BK;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.Bz(xv,KkS);var k1S=function(G,e){_.rs.call(this,"Error loading "+G+": "+e)};
_.Bz(k1S,_.rs);xv.prototype.setBatchModeEnabled=function(G){this.batchModeEnabled_=G};
xv.prototype.setAllModuleInfoString=function(G,e){if(!(this instanceof xv))this.setAllModuleInfoString(G,e);else if(typeof G==="string"){if(G.startsWith("d$")){G=G.substring(2);for(var r=[],Z=0,O=G.indexOf("/"),M=0,T=!1,E=0;;){var b=T?G.substring(M):G.substring(M,O);if(b.length===0)Z++,M="sy"+Z.toString(36),b=[];else{var w=b.indexOf(":");if(w<0)M=b,b=[];else if(w===b.length-1)M=b.substring(0,w),b=Array(r[E-1]);else{M=b.substring(0,w);b=b.substring(w+1).split(",");w=E;for(var q=0;q<b.length;q++)w-=
b[q].length===0?1:Number(b[q]),b[q]=r[w]}w=0;if(M.length===0)w=1;else if(M.charAt(0)==="+"||M.charAt(0)==="-")w=Number(M);w!==0&&(Z+=w,M="sy"+Z.toString(36))}r.push(M);Hay(this,M,b);if(T)break;M=O+1;O=G.indexOf("/",M);O===-1&&(T=!0);E++}this.moduleIds_=r}else if(G.startsWith("p$"))dvW(this,G);else{G=G.split("/");r=[];for(Z=0;Z<G.length;Z++){E=G[Z].split(":");O=E[0];T=[];if(E[1])for(T=E[1].split(","),E=0;E<T.length;E++)T[E]=r[parseInt(T[E],36)];r.push(O);Hay(this,O,T)}this.moduleIds_=r}e&&e.length?
(_.Ji(this.loadingModuleIds_,e),this.lastInitialModuleId_=_.pf(e)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11068_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11068_currentlyLoadingModule_=null,(e=this.baseModuleInfo_.onLoad((0,_.CB)(this.getModuleContext,this)))&&e.length&&oNW(this,new AV.ModuleLoadFailure(AV.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,e[0])),Pv(this))}};
var dvW=function(G,e){var r=e.substring(2);for(e=0;e<64;e++)edS["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(e)]=e;var Z={buf:r,pos:0};$s(Z);var O=$s(Z),M=$s(Z)+1;e=Array(O);var T=Array(O),E=Array(O);M=Array(M);var b=0,w=0,q=Z.pos,t=Z.buf.indexOf("|",Z.pos);Z.pos=t+1;for(t=0;t<O;t++){var g=$s(Z),l=g&2,X=g&1;g>>>=2;X?(b+=g>>>1^-(g&1),g="sy"+b.toString(36)):(X=q,q+=g,g=r.substring(X,q));e[t]=g;l&&(M[w++]=g)}M[w]="";Z.pos++;w=O&-2;r=O&1;for(b=0;b<w;b+=2)q=rZN(Z),E[b]=
q&7,E[b+1]=q>>>3&7;r&&(r=rZN(Z),E[w]=r&7);Z.pos++;for(w=0;w<O;w++)E[w]===7&&(E[w]=$s(Z));Z.pos++;for(r=w=0;r<O;r++){b=E[r];q=b===0?X1W:Array(b);T[r]=q;t=w;for(l=0;l<b;l++)t-=$s(Z),q[l]=M[t];M[w]===e[r]&&w++}for(Z=0;Z<e.length;Z++)Hay(G,e[Z],T[Z]);G.moduleIds_=e};
_.V=xv.prototype;_.V.getModuleInfo=function(G){return this.moduleInfoMap[G]};
_.V.addExtraEdge=function(G,e){var r=this.getModuleInfo(G);r&&r.isLoaded()?this.load(e):(this.JSC$11068_extraEdges_[G]||(this.JSC$11068_extraEdges_[G]={}),this.JSC$11068_extraEdges_[G][e]=!0)};
_.V.removeExtraEdge=function(G,e){if(this.JSC$11068_extraEdges_[G]){delete this.JSC$11068_extraEdges_[G][e];for(var r in this.JSC$11068_extraEdges_[G])return;delete this.JSC$11068_extraEdges_[G]}};
_.V.isActive=function(){return this.loadingModuleIds_.length>0};
_.V.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var Pv=function(G){var e=G.lastActive_,r=G.isActive();r!=e&&(G.executeCallbacks_(r?"active":"idle"),G.lastActive_=r);e=G.isUserActive();e!=G.userLastActive_&&(G.executeCallbacks_(e?"userActive":"userIdle"),G.userLastActive_=e)},Hay=function(G,e,r){G.moduleInfoMap[e]?(G=G.moduleInfoMap[e].deps_,G!=r&&G.splice.apply(G,[0,
G.length].concat(_.mY(r)))):G.moduleInfoMap[e]=new yQ(r,e)},QBj=function(G,e,r){var Z=[];
pAf(e,Z);e=[];for(var O={},M=0;M<Z.length;M++){var T=Z[M],E=G.getModuleInfo(T);if(!E)throw Error("wd`"+T);var b=new BK;O[T]=b;E.isLoaded()?b.callback(null):(sBy(G,T,E,!!r,b),G.isModuleLoading(T)||e.push(T))}e.length>0&&(G.loadingModuleIds_.length===0?G.loadModules_(e):(G.requestedModuleIdsQueue_.push(e),Pv(G)));return O},sBy=function(G,e,r,Z,O){r.registerCallback(O.callback,O);
ENy(r,function(M){O.errback(new k1S(e,M))});
G.isModuleLoading(e)?Z&&(ICn(G,e),Pv(G)):Z&&ICn(G,e)};
xv.prototype.loadModules_=function(G,e,r){var Z=this;e||(this.consecutiveFailures_=0);var O=p1W(this,G);this.loadingModuleIds_=O;this.requestedLoadingModuleIds_=this.batchModeEnabled_?G:_.Ai(O);Pv(this);if(O.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,O);G=this.JSC$10063_loader_;if(!G)throw Error("xd");if(Object.keys(this.JSC$11068_extraEdges_).length>0&&!G.supportsExtraEdges)throw Error("yd");r=(0,_.CB)(G.JSC$11055_loadModules,G,_.Ai(O),this.moduleInfoMap,{extraEdges:this.JSC$11068_extraEdges_,
forceReload:!!r,onError:function(M,T){var E=Z.requestedLoadingModuleIds_;M=M!=null?M:void 0;Z.consecutiveFailures_++;var b=_.Ai(O);Z.requestedLoadingModuleIds_=E;O.forEach(_.VU(_.yp,Z.requestedModuleIds_),Z);M==401?(oNW(Z,new AV.ModuleLoadFailure(AV.ModuleLoadFailure.Type.UNAUTHORIZED,M)),Z.requestedModuleIdsQueue_.length=0):M==410?(Cfb(Z,new AV.ModuleLoadFailure(AV.ModuleLoadFailure.Type.OLD_CODE_GONE,M)),uqP(Z)):Z.consecutiveFailures_>=3?(Cfb(Z,new AV.ModuleLoadFailure(AV.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
M,b,T)),uqP(Z)):Z.loadModules_(Z.requestedLoadingModuleIds_,!0,M==8001||!1)},
onTimeout:(0,_.CB)(this.handleLoadTimeout_,this)});(G=Math.pow(this.consecutiveFailures_,2)*5E3)?_.O_.setTimeout(r,G):r()}};
var p1W=function(G,e){e=e.filter(function(O){return G.moduleInfoMap[O].isLoaded()?(_.O_.setTimeout(function(){return Error("zd`"+O)},0),!1):!0});
for(var r=[],Z=0;Z<e.length;Z++)r=r.concat(nNw(G,e[Z]));pAf(r);return!G.batchModeEnabled_&&r.length>1?(e=r.shift(),G.requestedModuleIdsQueue_=r.map(function(O){return[O]}).concat(G.requestedModuleIdsQueue_),[e]):r},nNw=function(G,e){var r=_.c2.createSet(G.requestedModuleIds_),Z=[];
r[e]||Z.push(e);e=[e];for(var O=0;O<e.length;O++)for(var M=G.getModuleInfo(e[O]).deps_,T=M.length-1;T>=0;T--){var E=M[T];G.getModuleInfo(E).isLoaded()||r[E]||(Z.push(E),e.push(E))}Z.reverse();pAf(Z);return Z};
xv.prototype.JSC$11063_setLoaded=function(){if(this.JSC$11068_currentlyLoadingModule_){var G=this.JSC$11068_currentlyLoadingModule_.getId(),e=[];if(this.JSC$11068_extraEdges_[G]){for(var r=_.h(Object.keys(this.JSC$11068_extraEdges_[G])),Z=r.next();!Z.done;Z=r.next()){Z=Z.value;var O=this.getModuleInfo(Z);O&&!O.isLoaded()&&(this.removeExtraEdge(G,Z),e.push(Z))}this.loadMultiple(e)}this.isDisposed()||((e=this.moduleInfoMap[G].onLoad((0,_.CB)(this.getModuleContext,this)))&&e.length&&oNW(this,new AV.ModuleLoadFailure(AV.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,e[0])),_.yp(this.userInitiatedLoadingModuleIds_,G),_.yp(this.loadingModuleIds_,G),this.loadingModuleIds_.length===0&&uqP(this),this.lastInitialModuleId_&&G==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),Pv(this),this.JSC$11068_currentlyLoadingModule_=null)}};
xv.prototype.isModuleLoading=function(G){if(_.Y4(this.loadingModuleIds_,G))return!0;for(var e=0;e<this.requestedModuleIdsQueue_.length;e++)if(_.Y4(this.requestedModuleIdsQueue_[e],G))return!0;return!1};
xv.prototype.load=function(G,e){return QBj(this,[G],e)[G]};
xv.prototype.loadMultiple=function(G){return QBj(this,G)};
var ICn=function(G,e){_.Y4(G.userInitiatedLoadingModuleIds_,e)||G.userInitiatedLoadingModuleIds_.push(e)};
xv.prototype.beforeLoadModuleCode=function(G){var e=this;this.JSC$11068_currentlyLoadingModule_&&this.JSC$11068_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11063_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[G]&&mvv(this,this.moduleInfoMap[G].deps_||[],function(r){r.module_=new Yv;_.yp(e.loadingModuleIds_,r.getId())},function(r){return!r.isLoaded()});
this.JSC$11068_currentlyLoadingModule_=this.getModuleInfo(G)};
xv.prototype.registerInitializationCallback=function(G){this.JSC$11068_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new yQ([],"synthetic_module_overhead"),this.JSC$11068_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);AQ(this.JSC$11068_currentlyLoadingModule_.earlyOnloadCallbacks_,G)};
xv.prototype.handleLoadTimeout_=function(){Cfb(this,new AV.ModuleLoadFailure(AV.ModuleLoadFailure.Type.TIMEOUT));uqP(this)};
var Cfb=function(G,e){G.requestedLoadingModuleIds_.length>1?G.requestedModuleIdsQueue_=G.requestedLoadingModuleIds_.map(function(r){return[r]}).concat(G.requestedModuleIdsQueue_):oNW(G,e)},oNW=function(G,e){var r=G.requestedLoadingModuleIds_;
G.loadingModuleIds_.length=0;for(var Z=[],O=0;O<G.requestedModuleIdsQueue_.length;O++){var M=G.requestedModuleIdsQueue_[O].filter(function(b){var w=nNw(this,b);return ZR(r,function(q){return _.Y4(w,q)})},G);
_.Ji(Z,M)}for(O=0;O<r.length;O++)_.o4S(Z,r[O]);for(O=0;O<Z.length;O++){for(M=0;M<G.requestedModuleIdsQueue_.length;M++)_.yp(G.requestedModuleIdsQueue_[M],Z[O]);_.yp(G.userInitiatedLoadingModuleIds_,Z[O])}if(O=G.JSC$11068_callbackMap_.error)for(M=0;M<O.length;M++)for(var T=O[M],E=0;E<Z.length;E++)T("error",Z[E],e);for(Z=0;Z<r.length;Z++)if(G.moduleInfoMap[r[Z]])G.moduleInfoMap[r[Z]].onError(e);G.requestedLoadingModuleIds_.length=0;Pv(G)},uqP=function(G){for(;G.requestedModuleIdsQueue_.length;){var e=
G.requestedModuleIdsQueue_.shift().filter(function(r){return!this.getModuleInfo(r).isLoaded()},G);
if(e.length>0){G.loadModules_(e);return}}Pv(G)};
xv.prototype.registerCallback=function(G,e){Array.isArray(G)||(G=[G]);for(var r=0;r<G.length;r++){var Z=G[r],O=e,M=this.JSC$11068_callbackMap_;M[Z]||(M[Z]=[]);M[Z].push(O)}};
xv.prototype.executeCallbacks_=function(G){for(var e=this.JSC$11068_callbackMap_[G],r=0;e&&r<e.length;r++)e[r](G)};
var mvv=function(G,e,r,Z,O){Z=Z===void 0?function(){return!0}:Z;
O=O===void 0?{}:O;e=_.h(e);for(var M=e.next();!M.done;M=e.next()){M=M.value;var T=G.getModuleInfo(M);!O[M]&&Z(T)&&(O[M]=!0,mvv(G,T.deps_||[],r,Z,O),r(T))}};
xv.prototype.dispose=function(){_.DD(_.c2.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11068_callbackMap_={};this.isDisposed_=!0};
xv.prototype.isDisposed=function(){return this.isDisposed_};
_.cp=function(){return new xv};var cXW=[5E3,2E4],odA=function(){this.JSC$10063_loader_=null;this.JSC$11076_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11076_queue_=[];this.JSC$11076_extraEdges_=Object.create(null);this.JSC$11076_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.K(odA,KkS);_.V=odA.prototype;_.V.setAllModuleInfoString=function(){this.JSC$11076_currentlyLoadingModule_&&this.JSC$11076_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11063_setLoaded()};
_.V.getModuleInfo=function(G){var e=this.JSC$11076_moduleInfoMap_[G];e||(e=new yQ([],G),this.JSC$11076_moduleInfoMap_[G]=e);return e};
_.V.addExtraEdge=function(G,e){this.getModuleInfo(G).isLoaded()?this.load(e):(this.JSC$11076_extraEdges_[G]||(this.JSC$11076_extraEdges_[G]={}),this.JSC$11076_extraEdges_[G][e]=!0)};
_.V.removeExtraEdge=function(G,e){if(this.JSC$11076_extraEdges_[G]){delete this.JSC$11076_extraEdges_[G][e];for(var r in this.JSC$11076_extraEdges_[G])return;delete this.JSC$11076_extraEdges_[G]}};
_.V.isModuleLoading=function(G){return!!this.loadingModules_[G]};
_.V.load=function(G){YOy(this,[G]);return yXE(this,G)};
_.V.loadMultiple=function(G){var e=this,r=Object.create(null),Z=[];G.forEach(function(O){r[O]||(r[O]=yXE(e,O),Z.push(O))});
YOy(this,Z);return r};
_.V.beforeLoadModuleCode=function(G){var e;((e=this.JSC$11076_currentlyLoadingModule_)==null?void 0:e.getId())==="synthetic_module_overhead"&&this.JSC$11063_setLoaded();var r,Z;AXy(this,(Z=(r=this.JSC$11076_moduleInfoMap_[G])==null?void 0:r.deps_)!=null?Z:[],function(O){O.module_=new Yv},function(O){return!O.isLoaded()});
this.JSC$11076_currentlyLoadingModule_=this.getModuleInfo(G)};
_.V.JSC$11063_setLoaded=function(){if(this.JSC$11076_currentlyLoadingModule_){var G=this.JSC$11076_currentlyLoadingModule_.getId(),e=[];if(this.JSC$11076_extraEdges_[G]){for(var r=_.h(Object.keys(this.JSC$11076_extraEdges_[G])),Z=r.next();!Z.done;Z=r.next())Z=Z.value,this.getModuleInfo(Z).isLoaded()||(this.removeExtraEdge(G,Z),e.push(Z));this.loadMultiple(e)}this.JSC$11076_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11076_currentlyLoadingModule_=null;(!this.isModuleLoading(G)&&/^sy[0-9a-z]{0,4}$/.test(G)||G==="synthetic_module_overhead")&&delete this.JSC$11076_moduleInfoMap_[G];this.unsetModulesAsLoading(G)}};
_.V.registerInitializationCallback=function(G){this.JSC$11076_currentlyLoadingModule_||(this.JSC$11076_moduleInfoMap_.synthetic_module_overhead=new yQ([],"synthetic_module_overhead"),this.JSC$11076_currentlyLoadingModule_=this.JSC$11076_moduleInfoMap_.synthetic_module_overhead);AQ(this.JSC$11076_currentlyLoadingModule_.earlyOnloadCallbacks_,G)};
_.V.setModulesAsLoading=function(){var G=this;_.Bw.apply(0,arguments).forEach(function(e){G.loadingModules_[e]=!0})};
_.V.unsetModulesAsLoading=function(){var G=this;_.Bw.apply(0,arguments).forEach(function(e){delete G.loadingModules_[e]})};
var yXE=function(G,e){return new _.aQ(function(r,Z){var O=G.getModuleInfo(e);O.isLoaded()?r(null):(O.registerCallback(function(){r(null)}),ENy(O,function(M){var T="Error loading "+e+": "+M;
M instanceof AV.ModuleLoadFailure&&M.url&&(T=T+", requested url: "+M.url.toString());Z(Error(T))}))})},YOy=function(G,e){e=e.filter(function(r){return!G.isModuleLoading(r)&&!G.getModuleInfo(r).isLoaded()});
e.length>0&&(G.setModulesAsLoading.apply(G,_.mY(e)),G.JSC$11076_queue_.push(e),Fkv(G))},Fkv=function(G){for(var e={};G.activeLoads_<Infinity&&G.JSC$11076_queue_.length>0;e={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})e.ids$jscomp$37=G.JSC$11076_queue_.shift().filter(function(r){return!G.getModuleInfo(r).isLoaded()}),e.ids$jscomp$37.length>0&&(G.activeLoads_++,e.finishLoad=function(r){return function(){G.activeLoads_--;
Fkv(G);r.finishLoad=function(){}}}(e),_.KY(e.ids$jscomp$37.map(function(r){return yXE(G,r)})).then(function(r){return function(){(0,r.finishLoad)()}}(e)),e.attempt$jscomp$6=0,e.load$jscomp$1=function(r){return function(){if(Object.keys(G.JSC$11076_extraEdges_).length>0&&!G.JSC$10063_loader_.supportsExtraEdges)throw Error("yd");
G.JSC$10063_loader_.JSC$11055_loadModules(r.ids$jscomp$37,G.JSC$11076_moduleInfoMap_,{extraEdges:G.JSC$11076_extraEdges_,onError:function(Z,O){var M=cXW[r.attempt$jscomp$6++];M!==void 0?setTimeout(function(){(0,r.load$jscomp$1)()},M):(G.unsetModulesAsLoading.apply(G,_.mY(r.ids$jscomp$37)),(0,r.finishLoad)(),r.ids$jscomp$37.forEach(function(T){T=G.getModuleInfo(T);
if(!T.isLoaded())T.onError(new AV.ModuleLoadFailure(AV.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,Z,r.ids$jscomp$37,O))}))}})}}(e),(0,e.load$jscomp$1)())},AXy=function(G,e,r,Z,O){Z=Z===void 0?function(){return!0}:Z;
O=O===void 0?{}:O;e=_.h(e);for(var M=e.next();!M.done;M=e.next()){M=M.value;var T=G.getModuleInfo(M);!O[M]&&Z(T)&&(O[M]=!0,AXy(G,T.deps_||[],r,Z,O),r(T))}};var JX3=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var VMF=Symbol("Bd");window.JSCompiler_renameProperty=function(G){return G};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var B0v=!JX3||HTMLElement.es5Shimmed||_.O_.Reflect===void 0||_.O_.customElements===void 0||_.O_.customElements.polyfillWrapFlushCallback||!1,xvE,Yvf=function(){var G=HTMLElement;if(B0v)return G;if(xvE!==void 0)return xvE;var e=_.O_.Reflect,r=function(){return e.construct(G,[],this.constructor)};
r.prototype=G.prototype;r.prototype.constructor=r;r.es5Shimmed=!0;Object.setPrototypeOf(r,G);return xvE=r},Pfw=!1;B0v||Pfw||(Pfw=!0,_.O_.HTMLElement=Yvf());/*

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 ixs=/(url\()([^)]*)(\))/g,D$s=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,EiA,qx;var Nx=!window.ShadyDOM||!window.ShadyDOM.inUse,Uvw=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),zDc=!window.customElements.polyfillWrapFlushCallback,WkP;if(WkP=Nx&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var N03=new CSSStyleSheet;N03.replaceSync("");var LkW=document.createElement("div");LkW.attachShadow({mode:"open"});LkW.shadowRoot.adoptedStyleSheets=[N03];WkP=LkW.shadowRoot.adoptedStyleSheets[0]===N03}catch(G){WkP=!1}
var GoE=WkP,ecv=window.Polymer&&window.Polymer.rootPath||vis(document.baseURI||window.location.href),sH=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Rp$=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,rE=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,rsl=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,WJ=window.Polymer&&window.Polymer.legacyOptimizations||!1,eC=window.Polymer&&window.Polymer.legacyWarnings||!1,ZRy=window.Polymer&&window.Polymer.syncInitialRender||
!1,I5=window.Polymer&&window.Polymer.legacyUndefined||!1,ORE=window.Polymer&&window.Polymer.orderedComputed||!1,UB=window.Polymer&&window.Polymer.removeNestedTemplates||!1,zz=window.Polymer&&window.Polymer.fastDomIf||!1,Wv=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,MDv=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,VDE=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var Np={},hcC={},CM=function(){return HTMLElement.apply(this,arguments)||this};
_.K(CM,HTMLElement);CM.import=function(G,e){return G?(G=Np[G]||hcC[G.toLowerCase()])&&e?G.querySelector(e):G:null};
CM.prototype.attributeChangedCallback=function(G,e,r){e!==r&&this.register()};
CM.prototype.register=function(G){if(G=G||this.id){if(rE&&(Np[G]||hcC[G.toLowerCase()])!==void 0)throw Np[G]=hcC[G.toLowerCase()]=null,Error("Cd`"+G);this.id=G;Np[G]=hcC[G.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.iY.Object.defineProperties(CM.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var G=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;G=_.tT(this.getAttribute("assetpath")||"",G.baseURI);this.__assetpath=vis(G)}return this.__assetpath}}});
_.iY.Object.defineProperties(CM,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
CM["import"]=CM.import;CM.prototype.modules=Np;customElements.define("dom-module",CM);var Tvy=0,$$4=0,ge=[],DeC=0,w4s=!1,EPW=document.createTextNode(""),iRc,xs;(new window.MutationObserver(Sza)).observe(EPW,{characterData:!0});_.L7={after:function(G){return{run:function(e){return window.setTimeout(e,G)},
cancel:function(e){window.clearTimeout(e)}}},
run:function(G,e){return window.setTimeout(G,e)},
cancel:function(G){window.clearTimeout(G)}};
_.$h={run:function(G){return window.requestAnimationFrame(G)},
cancel:function(G){window.cancelAnimationFrame(G)}};
iRc={run:function(G){return window.requestIdleCallback?window.requestIdleCallback(G):window.setTimeout(G,16)},
cancel:function(G){window.cancelIdleCallback?window.cancelIdleCallback(G):window.clearTimeout(G)}};
xs={run:function(G){w4s||(w4s=!0,EPW.textContent=DeC++);ge.push(G);return Tvy++},
cancel:function(G){var e=G-$$4;if(e>=0){if(!ge[e])throw Error("Dd`"+G);ge[e]=null}}};var bRl=0,GR=function(G){var e=G.__mixinApplications;e||(e=new WeakMap,G.__mixinApplications=e);var r=bRl++;return function(Z){var O=Z.__mixinSet;if(O&&O[r])return Z;var M=e,T=M.get(Z);T||(T=G(Z),M.set(Z,T),Z=Object.create(T.__mixinSet||O||null),Z[r]=!0,T.__mixinSet=Z);return T}};_.o5=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(G){return ShadyDOM.patch(G)}:function(G){return G};var vPv=GR(function(G){var e=function(){var r=G.call(this)||this;r.__dataEnabled=!1;r.__dataReady=!1;r.__dataInvalid=!1;r.__data={};r.__dataPending=null;r.__dataOld=null;r.__dataInstanceProps=null;r.__dataCounter=0;r.__serializing=!1;r._initializeProperties();return r};
_.K(e,G);e.createProperties=function(r){var Z=this.prototype,O;for(O in r)O in Z||Z._createPropertyAccessor(O)};
e.attributeNameForProperty=function(r){return r.toLowerCase()};
e.typeForProperty=function(){};
e.prototype._createPropertyAccessor=function(r,Z){this._addPropertyToAttributeMap(r);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[r]||(this.__dataHasAccessor[r]=!0,this._definePropertyAccessor(r,Z))};
e.prototype._addPropertyToAttributeMap=function(r){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var Z=this.__dataAttributes[r];Z||(Z=this.constructor.attributeNameForProperty(r),this.__dataAttributes[Z]=r);return Z};
e.prototype._definePropertyAccessor=function(r,Z){Object.defineProperty(this,r,{get:function(){return this.__data[r]},
set:Z?function(){}:function(O){this._setPendingProperty(r,O,!0)&&this._invalidateProperties()}})};
e.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
e.prototype._initializeProperties=function(){for(var r in this.__dataHasAccessor)this.hasOwnProperty(r)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[r]=this[r],delete this[r])};
e.prototype._initializeInstanceProperties=function(r){Object.assign(this,r)};
e.prototype._setProperty=function(r,Z){this._setPendingProperty(r,Z)&&this._invalidateProperties()};
e.prototype._getProperty=function(r){return this.__data[r]};
e.prototype._setPendingProperty=function(r,Z){var O=this.__data[r],M=this._shouldPropertyChange(r,Z,O);M&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||r in this.__dataOld||(this.__dataOld[r]=O),this.__data[r]=Z,this.__dataPending[r]=Z);return M};
e.prototype._isPropertyPending=function(r){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(r))};
e.prototype._invalidateProperties=function(){var r=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,xs.run(function(){r.__dataInvalid&&(r.__dataInvalid=!1,r._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 r=this.__data,Z=this.__dataPending,O=this.__dataOld;this._shouldPropertiesChange(r,Z,O)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(r,Z,O));this.__dataCounter--};
e.prototype._shouldPropertiesChange=function(r,Z){return!!Z};
e.prototype._propertiesChanged=function(){};
e.prototype._shouldPropertyChange=function(r,Z,O){return O!==Z&&(O===O||Z===Z)};
e.prototype.attributeChangedCallback=function(r,Z,O,M){Z!==O&&this._attributeToProperty(r,O);G.prototype.attributeChangedCallback&&G.prototype.attributeChangedCallback.call(this,r,Z,O,M)};
e.prototype._attributeToProperty=function(r,Z,O){if(!this.__serializing){var M=this.__dataAttributes;r=M&&M[r]||r;this[r]=this._deserializeValue(Z,O||this.constructor.typeForProperty(r))}};
e.prototype._propertyToAttribute=function(r,Z,O){this.__serializing=!0;O=arguments.length<3?this[r]:O;this._valueToNodeAttribute(this,O,Z||this.constructor.attributeNameForProperty(r));this.__serializing=!1};
e.prototype._valueToNodeAttribute=function(r,Z,O){Z=this._serializeValue(Z);if(O==="class"||O==="name"||O==="slot")r=(0,_.o5)(r);Z===void 0?r.removeAttribute(O):r.setAttribute(O,Z===""&&window.trustedTypes?window.trustedTypes.emptyScript:Z)};
e.prototype._serializeValue=function(r){switch(typeof r){case "boolean":return r?"":void 0;default:return r!=null?r.toString():void 0}};
e.prototype._deserializeValue=function(r,Z){switch(Z){case Boolean:return r!==null;case Number:return Number(r);default:return r}};
return e});var wxc=0,qzN=[];var $eE=GR(function(G){function e(M){M=Object.getPrototypeOf(M);return M.prototype instanceof O?M:null}
function r(M){if(!M.hasOwnProperty("__ownProperties")){var T=null;if(M.hasOwnProperty("properties")){var E=M.properties;if(E){T={};for(var b in E){var w=E[b];T[b]=typeof w==="function"?{type:w}:w}}}M.__ownProperties=T}return M.__ownProperties}
var Z=vPv(G),O=function(){return Z.apply(this,arguments)||this};
_.K(O,Z);O.finalize=function(){if(!this.hasOwnProperty("__finalized")){var M=e(this);M&&M.finalize();this.__finalized=!0;this._finalizeClass()}};
O._finalizeClass=function(){var M=r(this);M&&this.createProperties(M)};
O.typeForProperty=function(M){return(M=this._properties[M])&&M.type};
O.prototype._initializeProperties=function(){wxc++;this.constructor.finalize();Z.prototype._initializeProperties.call(this)};
O.prototype.connectedCallback=function(){Z.prototype.connectedCallback&&Z.prototype.connectedCallback.call(this);this._enableProperties()};
O.prototype.disconnectedCallback=function(){Z.prototype.disconnectedCallback&&Z.prototype.disconnectedCallback.call(this)};
_.iY.Object.defineProperties(O,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var M=this;if(!this.hasOwnProperty("__observedAttributes")){tMN(this.prototype);var T=this._properties;this.__observedAttributes=T?Object.keys(T).map(function(E){return M.prototype._addPropertyToAttributeMap(E)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var M=e(this);this.__properties=Object.assign({},M&&M._properties,r(this))}return this.__properties}}});
return O});var gif={},l9U=/-[a-z]/g,RdS=/([A-Z])/g;for(var SmE={},qmv=HTMLElement.prototype;qmv;){for(var tDE=Object.getOwnPropertyNames(qmv),gPy=0;gPy<tDE.length;gPy++)SmE[tDE[gPy]]=!0;qmv=Object.getPrototypeOf(qmv)}var lQn=window.trustedTypes?function(G){return trustedTypes.isHTML(G)||trustedTypes.isScript(G)||trustedTypes.isScriptURL(G)}:function(){return!1},RcS=GR(function(G){var e=vPv(G);
G=function(){return e.apply(this,arguments)||this};
_.K(G,e);G.createPropertiesForAttributes=function(){for(var r=this.observedAttributes,Z=0;Z<r.length;Z++)this.prototype._createPropertyAccessor(lC(r[Z]))};
G.attributeNameForProperty=function(r){return R5(r)};
G.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);e.prototype._initializeProperties.call(this)};
G.prototype._initializeProtoProperties=function(r){for(var Z in r)this._setProperty(Z,r[Z])};
G.prototype._ensureAttribute=function(r,Z){this.hasAttribute(r)||this._valueToNodeAttribute(this,Z,r)};
G.prototype._serializeValue=function(r){switch(typeof r){case "object":if(r instanceof Date)return r.toString();if(r){if(lQn(r))return r;try{return JSON.stringify(r)}catch(Z){return""}}default:return e.prototype._serializeValue.call(this,r)}};
G.prototype._deserializeValue=function(r,Z){switch(Z){case Object:try{var O=JSON.parse(r)}catch(M){O=r}break;case Array:try{O=JSON.parse(r)}catch(M){O=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+r)}break;case Date:O=isNaN(r)?String(r):Number(r);O=new Date(O);break;default:O=e.prototype._deserializeValue.call(this,r,Z)}return O};
G.prototype._definePropertyAccessor=function(r,Z){if(!SmE[r]){var O=this[r];O!==void 0&&(this.__data?this._setPendingProperty(r,O):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[r]=O))}e.prototype._definePropertyAccessor.call(this,r,Z)};
G.prototype._hasAccessor=function(r){return this.__dataHasAccessor&&this.__dataHasAccessor[r]};
G.prototype._isPropertyPending=function(r){return!!(this.__dataPending&&r in this.__dataPending)};
return G});var jRc={"dom-if":!0,"dom-repeat":!0},aQ3=!1,XxP=!1,KrC=function(){var G=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(e){return e}});
return function(e,r,Z){r=r.getAttribute(Z);G&&Z.startsWith("on-")?e.setAttribute(Z,G.createScript(r,Z)):e.setAttribute(Z,r)}}(),fQn=GR(function(G){var e=function(){return G.apply(this,arguments)||this};
_.K(e,G);e._parseTemplate=function(r,Z){if(!r._templateInfo){var O=r._templateInfo={};O.nodeInfoList=[];O.nestedTemplate=!!Z;O.stripWhiteSpace=Z&&Z.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace");this._parseTemplateContent(r,O,{parent:null})}return r._templateInfo};
e._parseTemplateContent=function(r,Z,O){return this._parseTemplateNode(r.content,Z,O)};
e._parseTemplateNode=function(r,Z,O){var M=!1;r.localName!="template"||r.hasAttribute("preserve-content")?r.localName==="slot"&&(Z.hasInsertionPoint=!0):M=this._parseTemplateNestedTemplate(r,Z,O)||M;if(!aQ3){aQ3=!0;var T=document.createElement("textarea");T.placeholder="a";XxP=T.placeholder===T.textContent}XxP&&r.localName==="textarea"&&r.placeholder&&r.placeholder===r.textContent&&(r.textContent=null);r.firstChild&&this._parseTemplateChildNodes(r,Z,O);r.hasAttributes&&r.hasAttributes()&&(M=this._parseTemplateNodeAttributes(r,
Z,O)||M);return M||O.noted};
e._parseTemplateChildNodes=function(r,Z,O){if(r.localName!=="script"&&r.localName!=="style")for(var M=r.firstChild,T=0,E;M;M=E){if(M.localName=="template"){var b=M.getAttribute("is");if(b&&jRc[b])for(E=M,E.removeAttribute("is"),M=E.ownerDocument.createElement(b),E.parentNode.replaceChild(M,E),M.appendChild(E);E.attributes.length;)b=E.attributes[0].name,KrC(M,E,b),E.removeAttribute(b)}E=M.nextSibling;if(M.nodeType===Node.TEXT_NODE){for(b=E;b&&b.nodeType===Node.TEXT_NODE;)M.textContent+=b.textContent,
E=b.nextSibling,r.removeChild(b),b=E;if(Z.stripWhiteSpace&&!M.textContent.trim()){r.removeChild(M);continue}}b={parentIndex:T,parentInfo:O};this._parseTemplateNode(M,Z,b)&&(b.infoIndex=Z.nodeInfoList.push(b)-1);M.parentNode&&T++}};
e._parseTemplateNestedTemplate=function(r,Z,O){Z=this._parseTemplate(r,Z);(Z.content=r.content.ownerDocument.createDocumentFragment()).appendChild(r.content);O.templateInfo=Z;return!0};
e._parseTemplateNodeAttributes=function(r,Z,O){for(var M=!1,T=Array.from(r.attributes),E=T.length-1,b;b=T[E];E--)M=this._parseTemplateNodeAttribute(r,Z,O,b.name,b.value)||M;return M};
e._parseTemplateNodeAttribute=function(r,Z,O,M,T){return M.slice(0,3)==="on-"?(r.removeAttribute(M),O.events=O.events||[],O.events.push({name:M.slice(3),value:T}),!0):M==="id"?(O.id=T,!0):!1};
e._contentForTemplate=function(r){var Z=r._templateInfo;return Z&&Z.content||r.content};
e.prototype._stampTemplate=function(r,Z){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r);Z=Z||this.constructor._parseTemplate(r);var O=Z.nodeInfoList;r=document.importNode(Z.content||r.content,!0);r.__noInsertionPoint=!Z.hasInsertionPoint;var M=r.nodeList=Array(O.length);r.$={};for(var T=0,E=O.length,b=void 0;T<E&&(b=O[T]);T++){var w=M[T]=jNp(r,b);b.id&&(r.$[b.id]=w);var q=w,t=b,g=Z;t.templateInfo&&(q._templateInfo=t.templateInfo,q._parentTemplateInfo=
g);if(b.events&&b.events.length)for(q=0,t=b.events,g=void 0;q<t.length&&(g=t[q]);q++)this._addMethodEventListenerToNode(w,g.name,g.value,this)}return r};
e.prototype._addMethodEventListenerToNode=function(r,Z,O,M){O=a9s(M||r,O);this._addEventListenerToNode(r,Z,O);return O};
e.prototype._addEventListenerToNode=function(r,Z,O){r.addEventListener(Z,O)};
e.prototype._removeEventListenerFromNode=function(r,Z,O){r.removeEventListener(Z,O)};
return e});var HJ=0,Qk=[],koj={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},HRj=/[A-Z]/,dey=function(G,e,r,Z,O){var M=O?a5(G):G;if(e=e[M])for(M=0;M<e.length;M++){var T=e[M];if(T.info.lastRun!==HJ&&(!O||d$S(G,T.trigger))){T.info.lastRun=HJ;T=T.info;for(var E=r,b=Z,w=0,q=E.length-1,t=-1;w<=q;){var g=w+q>>1,l=b.get(E[g].methodInfo)-b.get(T.methodInfo);if(l<0)w=g+1;else if(l>0)q=g-1;else{t=g;break}}t<
0&&(t=q+1);E.splice(t,0,T)}}},JZs=[],oPv=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"),r_=GR(function(G){var e=fQn(RcS(G));
G=function(){var r=e.call(this)||this;r.__isPropertyEffectsClient=!0;return r};
_.K(G,e);G.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};
G.prototype._registerHost=function(){if(ek.length){var r=ek[ek.length-1];r._enqueueClient(this);this.__dataHost=r}};
G.prototype._initializeProtoProperties=function(r){this.__data=Object.create(r);this.__dataPending=Object.create(r);this.__dataOld={}};
G.prototype._initializeInstanceProperties=function(r){var Z=this.__readOnly,O;for(O in r)Z&&Z[O]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[O]=this.__dataPending[O]=r[O])};
G.prototype._addPropertyEffect=function(r,Z,O){this._createPropertyAccessor(r,Z=="__readOnly");var M=Hxs(this,Z,!0)[r];M||(M=this[Z][r]=[]);M.push(O)};
G.prototype._removePropertyEffect=function(r,Z,O){r=Hxs(this,Z,!0)[r];O=r.indexOf(O);O>=0&&r.splice(O,1)};
G.prototype._hasPropertyEffect=function(r,Z){Z=this[Z];return!(!Z||!Z[r])};
G.prototype._hasReadOnlyEffect=function(r){return this._hasPropertyEffect(r,"__readOnly")};
G.prototype._hasNotifyEffect=function(r){return this._hasPropertyEffect(r,"__notifyEffects")};
G.prototype._hasReflectEffect=function(r){return this._hasPropertyEffect(r,"__reflectEffects")};
G.prototype._hasComputedEffect=function(r){return this._hasPropertyEffect(r,"__computeEffects")};
G.prototype._setPendingPropertyOrPath=function(r,Z,O,M){if(M||a5(Array.isArray(r)?r[0]:r)!==r){if(!M&&(M=ks(this,r),r=k44(this,r,Z),!r||!e.prototype._shouldPropertyChange.call(this,r,Z,M)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(r,Z,O)){if(O=this.__dataLinkedPaths)for(var T in O)M=O[T],X1(T,r)?(M=KM(T,M,r),this._setPendingPropertyOrPath(M,Z,!0,!0)):X1(M,r)&&(M=KM(M,T,r),this._setPendingPropertyOrPath(M,Z,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[r])return this._setPendingProperty(r,
Z,O);this[r]=Z}return!1};
G.prototype._setUnmanagedPropertyToNode=function(r,Z,O){if(O!==r[Z]||typeof O=="object")Z==="className"&&(r=(0,_.o5)(r)),r[Z]=O};
G.prototype._setPendingProperty=function(r,Z,O){var M=this.__dataHasPaths&&j8(r);if(this._shouldPropertyChange(r,Z,(M?this.__dataTemp:this.__data)[r])){this.__dataPending||(this.__dataPending={},this.__dataOld={});r in this.__dataOld||(this.__dataOld[r]=this.__data[r]);M?this.__dataTemp[r]=Z:this.__data[r]=Z;this.__dataPending[r]=Z;if(M||this.__notifyEffects&&this.__notifyEffects[r])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[r]=O;return!0}return!1};
G.prototype._setProperty=function(r,Z){this._setPendingProperty(r,Z,!0)&&this._invalidateProperties()};
G.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
G.prototype._enqueueClient=function(r){this.__dataPendingClients=this.__dataPendingClients||[];r!==this&&this.__dataPendingClients.push(r)};
G.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
G.prototype.__enableOrFlushClients=function(){var r=this.__dataPendingClients;if(r){this.__dataPendingClients=null;for(var Z=0;Z<r.length;Z++){var O=r[Z];O.__dataEnabled?O.__dataPending&&O._flushProperties():O._enableProperties()}}};
G.prototype._readyClients=function(){this.__enableOrFlushClients()};
G.prototype.setProperties=function(r,Z){for(var O in r)!Z&&this.__readOnly&&this.__readOnly[O]||this._setPendingPropertyOrPath(O,r[O],!0);this._invalidateProperties()};
G.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
G.prototype._propertiesChanged=function(r,Z,O){r=this.__dataHasPaths;this.__dataHasPaths=!1;var M;if(M=this.__computeEffects)if(ORE){HJ++;var T=CnU(this),E=[],b;for(b in Z)dey(b,M,E,T,r);for(;b=E.shift();)nif(this,"",Z,O,b)&&dey(b.methodInfo,M,E,T,r);Object.assign(O,this.__dataOld);Object.assign(Z,this.__dataPending);this.__dataPending=null}else for(T=Z;de(this,M,T,O,r);)Object.assign(O,this.__dataOld),Object.assign(Z,this.__dataPending),T=this.__dataPending,this.__dataPending=null;M=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(Z,O,r);this._flushClients();de(this,this.__reflectEffects,Z,O,r);de(this,this.__observeEffects,Z,O,r);if(M){T=this.__notifyEffects;E=HJ++;for(var w in M)if(M[w]){if(b=T){var q=T;b=E;var t=w,g=Z,l=O,X=r,H=!1,I=X?a5(t):t;if(q=q[I]){I=0;for(var C=q.length,u=void 0;I<C&&(u=q[I]);I++)u.info&&u.info.lastRun===b||X&&!d$S(t,u.trigger)||(u.info&&(u.info.lastRun=b),u.fn(this,t,g,l,u.info,X,void 0),H=!0)}b=H}if(b)var P=!0;else{if(b=r)b=w,t=Z,g=a5(b),g!==
b?(g=R5(g)+"-changed",sNA(this,g,t[b],b),b=!0):b=!1;b&&(P=!0)}}var F;P&&(F=this.__dataHost)&&F._invalidateProperties&&F._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
G.prototype._propagatePropertyChanges=function(r,Z,O){this.__propagateEffects&&de(this,this.__propagateEffects,r,Z,O);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,r,Z,O)};
G.prototype._runEffectsForTemplate=function(r,Z,O,M){var T=this,E=function(b,w){de(T,r.propertyEffects,b,O,w,r.nodeList);for(var q=r.firstChild;q;q=q.nextSibling)T._runEffectsForTemplate(q,b,O,w)};
r.runEffects?r.runEffects(E,Z,M):E(Z,M)};
G.prototype.linkPaths=function(r,Z){r=fM(r);Z=fM(Z);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[r]=Z};
G.prototype.unlinkPaths=function(r){r=fM(r);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[r]};
G.prototype.notifySplices=function(r,Z){var O={path:""};r=ks(this,r,O);U$$(this,r,O.path,Z)};
G.prototype.get=function(r,Z){return ks(Z||this,r)};
G.prototype.set=function(r,Z,O){O?k44(O,r,Z):this.__readOnly&&this.__readOnly[r]||this._setPendingPropertyOrPath(r,Z,!0)&&this._invalidateProperties()};
G.prototype.push=function(r){var Z=_.Bw.apply(1,arguments),O={path:""},M=ks(this,r,O),T=M.length,E=M.push.apply(M,_.mY(Z));Z.length&&pM(this,M,O.path,T,Z.length,[]);return E};
G.prototype.pop=function(r){var Z={path:""};r=ks(this,r,Z);var O=!!r.length,M=r.pop();O&&pM(this,r,Z.path,r.length,0,[M]);return M};
G.prototype.splice=function(r,Z,O){var M=_.Bw.apply(3,arguments),T={path:""},E=ks(this,r,T);Z<0?Z=E.length-Math.floor(-Z):Z&&(Z=Math.floor(Z));var b=arguments.length===2?E.splice(Z):E.splice.apply(E,[Z,O].concat(_.mY(M)));(M.length||b.length)&&pM(this,E,T.path,Z,M.length,b);return b};
G.prototype.shift=function(r){var Z={path:""};r=ks(this,r,Z);var O=!!r.length,M=r.shift();O&&pM(this,r,Z.path,0,0,[M]);return M};
G.prototype.unshift=function(r){var Z=_.Bw.apply(1,arguments),O={path:""},M=ks(this,r,O),T=M.unshift.apply(M,_.mY(Z));Z.length&&pM(this,M,O.path,0,Z.length,[]);return T};
G.prototype.notifyPath=function(r,Z){if(arguments.length==1){var O={path:""};Z=ks(this,r,O);O=O.path}else O=Array.isArray(r)?fM(r):r;this._setPendingPropertyOrPath(O,Z,!0,!0)&&this._invalidateProperties()};
G.prototype._createReadOnlyProperty=function(r,Z){this._addPropertyEffect(r,"__readOnly");Z&&(this["_set"+(r[0].toUpperCase()+r.substring(1))]=function(O){this._setProperty(r,O)})};
G.prototype._createPropertyObserver=function(r,Z,O){var M={property:r,method:Z,dynamicFn:!!O};this._addPropertyEffect(r,"__observeEffects",{fn:oiF,info:M,trigger:{name:r}});O&&this._addPropertyEffect(Z,"__observeEffects",{fn:oiF,info:M,trigger:{name:Z}})};
G.prototype._createMethodObserver=function(r,Z){var O=x$A(r);if(!O)throw Error("Ed`"+r);AZA(this,O,"__observeEffects",uTi,null,Z)};
G.prototype._createNotifyingProperty=function(r){this._addPropertyEffect(r,"__notifyEffects",{fn:QNy,info:{eventName:R5(r)+"-changed",property:r}})};
G.prototype._createReflectedProperty=function(r){var Z=this.constructor.attributeNameForProperty(r);Z[0]==="-"?console.warn("Property "+r+" 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(r,"__reflectEffects",{fn:I94,info:{attrName:Z}})};
G.prototype._createComputedProperty=function(r,Z,O){var M=x$A(Z);if(!M)throw Error("Fd`"+Z);Z=AZA(this,M,"__computeEffects",nif,r,O);Hxs(this,"__computeInfo")[r]=Z};
G.prototype._marshalArgs=function(r,Z,O){for(var M=this.__data,T=[],E=0,b=r.length;E<b;E++){var w=r[E],q=w.name,t=w.structured,g=w.wildcard,l=w.value;w.literal||(g?(w=X1(q,Z),t=Pnq(M,O,w?Z:q),l={path:w?Z:q,value:t,base:w?ks(M,q):t}):l=t?Pnq(M,O,q):M[q]);if(I5&&!this._overrideLegacyUndefined&&l===void 0&&r.length>1)return Qk;T[E]=l}return T};
G.addPropertyEffect=function(r,Z,O){this.prototype._addPropertyEffect(r,Z,O)};
G.createPropertyObserver=function(r,Z,O){this.prototype._createPropertyObserver(r,Z,O)};
G.createMethodObserver=function(r,Z){this.prototype._createMethodObserver(r,Z)};
G.createNotifyingProperty=function(r){this.prototype._createNotifyingProperty(r)};
G.createReadOnlyProperty=function(r,Z){this.prototype._createReadOnlyProperty(r,Z)};
G.createReflectedProperty=function(r){this.prototype._createReflectedProperty(r)};
G.createComputedProperty=function(r,Z,O){this.prototype._createComputedProperty(r,Z,O)};
G.bindTemplate=function(r){return this.prototype._bindTemplate(r)};
G.prototype._bindTemplate=function(r,Z){var O=this.constructor._parseTemplate(r),M=this.__preBoundTemplateInfo==O;if(!M)for(var T in O.propertyEffects)this._createPropertyAccessor(T);Z?(O=Object.create(O),O.wasPreBound=M,this.__templateInfo?(r=r._parentTemplateInfo||this.__templateInfo,Z=r.lastChild,O.parent=r,r.lastChild=O,(O.previousSibling=Z)?Z.nextSibling=O:r.firstChild=O):this.__templateInfo=O):this.__preBoundTemplateInfo=O;return O};
G._addTemplatePropertyEffect=function(r,Z,O){(r.hostProps=r.hostProps||{})[Z]=!0;r=r.propertyEffects=r.propertyEffects||{};(r[Z]=r[Z]||[]).push(O)};
G.prototype._stampTemplate=function(r,Z){Z=Z||this._bindTemplate(r,!0);ek.push(this);r=e.prototype._stampTemplate.call(this,r,Z);ek.pop();Z.nodeList=r.nodeList;if(!Z.wasPreBound)for(var O=Z.childNodes=[],M=r.firstChild;M;M=M.nextSibling)O.push(M);r.templateInfo=Z;O=Z.nodeList;M=Z.nodeInfoList;if(M.length)for(var T=0;T<M.length;T++){var E=O[T],b=M[T].bindings;if(b)for(var w=0;w<b.length;w++){var q=b[w],t=E,g=q;if(g.isCompound){for(var l=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),X=g.parts,
H=Array(X.length),I=0;I<X.length;I++)H[I]=X[I].literal;X=g.target;l[X]=H;g.literal&&g.kind=="property"&&(X==="className"&&(t=(0,_.o5)(t)),t[X]=g.literal)}yZN(E,this,q)}E.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(Z,this.__data,null,!1),this._flushClients());return r};
G.prototype._removeBoundDom=function(r){r=r.templateInfo;var Z=r.previousSibling,O=r.nextSibling,M=r.parent;Z?Z.nextSibling=O:M&&(M.firstChild=O);O?O.previousSibling=Z:M&&(M.lastChild=Z);r.nextSibling=r.previousSibling=null;r=r.childNodes;for(Z=0;Z<r.length;Z++)O=r[Z],(0,_.o5)((0,_.o5)(O).parentNode).removeChild(O)};
G._parseTemplateNode=function(r,Z,O){var M=e._parseTemplateNode.call(this,r,Z,O);if(r.nodeType===Node.TEXT_NODE){var T=this._parseBindings(r.textContent,Z);T&&(r.textContent=FL$(T)||" ",YzU(this,Z,O,"text","textContent",T),M=!0)}return M};
G._parseTemplateNodeAttribute=function(r,Z,O,M,T){var E=this._parseBindings(T,Z);if(E){T=M;var b="property";HRj.test(M)?b="attribute":M[M.length-1]=="$"&&(M=M.slice(0,-1),b="attribute");var w=FL$(E);w&&b=="attribute"&&(M=="class"&&r.hasAttribute("class")&&(w+=" "+r.getAttribute(M)),r.setAttribute(M,w));b=="attribute"&&T=="disable-upgrade$"&&r.setAttribute(M,"");r.localName==="input"&&T==="value"&&r.setAttribute(T,"");r.removeAttribute(T);b==="property"&&(M=lC(M));YzU(this,Z,O,b,M,E,w);return!0}return e._parseTemplateNodeAttribute.call(this,
r,Z,O,M,T)};
G._parseTemplateNestedTemplate=function(r,Z,O){var M=e._parseTemplateNestedTemplate.call(this,r,Z,O),T=r.parentNode,E=O.templateInfo,b=T.localName==="dom-if",w=T.localName==="dom-repeat";UB&&(b||w)&&(T.removeChild(r),O=O.parentInfo,O.templateInfo=E,O.noted=!0,M=!1);r=E.hostProps;if(zz&&b)r&&(Z.hostProps=Object.assign(Z.hostProps||{},r),UB||(O.parentInfo.noted=!0));else for(var q in r)YzU(this,Z,O,"property","_host_"+q,[{mode:"{",source:q,dependencies:[q],hostProp:!0}]);return M};
G._parseBindings=function(r,Z){for(var O=[],M=0,T;(T=oPv.exec(r))!==null;){T.index>M&&O.push({literal:r.slice(M,T.index)});M=T[1][0];var E=!!T[2];T=T[3].trim();var b=!1,w="",q=-1;M=="{"&&(q=T.indexOf("::"))>0&&(w=T.substring(q+2),T=T.substring(0,q),b=!0);q=x$A(T);var t=[];if(q){var g=q,l=g.args;g=g.methodName;for(var X=0;X<l.length;X++){var H=l[X];H.literal||t.push(H)}if((l=Z.dynamicFns)&&l[g]||q.static)t.push(g),q.dynamicFn=!0}else t.push(T);O.push({source:T,mode:M,negate:E,customEvent:b,signature:q,
dependencies:t,event:w});M=oPv.lastIndex}M&&M<r.length&&(r=r.substring(M))&&O.push({literal:r});return O.length?O:null};
G._evaluateBinding=function(r,Z,O,M,T,E){r=Z.signature?uTi(r,O,M,T,Z.signature):O!=Z.source?ks(r,Z.source):E&&j8(O)?ks(r,O):r.__data[O];Z.negate&&(r=!r);return r};
_.iY.Object.defineProperties(G.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return koj}}});
return G}),ek=[];var sRE=window.ShadyCSS&&window.ShadyCSS.cssBuild,Zi=GR(function(G){function e(Z,O,M,T){if(!sRE){for(var E=O.content.querySelectorAll("style"),b=LL4(O),w=Gxf(M),q=O.content.firstElementChild,t=0;t<w.length;t++){var g=w[t];g.textContent=Z._processStyleText(g.textContent,T);O.content.insertBefore(g,q)}for(q=w=0;q<b.length;q++)t=b[q],g=E[w],g!==t?(t=t.cloneNode(!0),g.parentNode.insertBefore(t,g)):w++,t.textContent=Z._processStyleText(t.textContent,T)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(O,
M);if(VDE&&sRE&&GoE&&(O=O.content.querySelectorAll("style"))){var l="";Array.from(O).forEach(function(X){l+=X.textContent;X.parentNode.removeChild(X)});
Z._styleSheet=new CSSStyleSheet;Z._styleSheet.replaceSync(l)}}
var r=$eE(r_(G));G=function(){return r.call(this)||this};
_.K(G,r);G._finalizeClass=function(){r._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()};
G._prepareTemplate=function(){var Z=this.template;Z&&(typeof Z==="string"?(console.error("template getter must return HTMLTemplateElement"),Z=null):WJ||(Z=Z.cloneNode(!0)));this.prototype._template=Z};
G.createProperties=function(Z){for(var O in Z){var M=this.prototype,T=O,E=Z[O],b=Z;E.computed&&(E.readOnly=!0);E.computed&&(M._hasReadOnlyEffect(T)?console.warn("Cannot redefine computed property '"+T+"'."):M._createComputedProperty(T,E.computed,b));E.readOnly&&!M._hasReadOnlyEffect(T)?M._createReadOnlyProperty(T,!E.computed):E.readOnly===!1&&M._hasReadOnlyEffect(T)&&console.warn("Cannot make readOnly property '"+T+"' non-readOnly.");E.reflectToAttribute&&!M._hasReflectEffect(T)?M._createReflectedProperty(T):
E.reflectToAttribute===!1&&M._hasReflectEffect(T)&&console.warn("Cannot make reflected property '"+T+"' non-reflected.");E.notify&&!M._hasNotifyEffect(T)?M._createNotifyingProperty(T):E.notify===!1&&M._hasNotifyEffect(T)&&console.warn("Cannot make notify property '"+T+"' non-notify.");E.observer&&M._createPropertyObserver(T,E.observer,b[E.observer]);M._addPropertyToAttributeMap(T)}};
G.createObservers=function(Z,O){for(var M=this.prototype,T=0;T<Z.length;T++)M._createMethodObserver(Z[T],O)};
G.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);r.prototype._initializeProperties.call(this);this.rootPath=ecv;this.importPath=this.constructor.importPath;var Z=this.constructor;if(!Z.hasOwnProperty("__propertyDefaults")){Z.__propertyDefaults=null;var O=Z._properties,M;for(M in O){var T=O[M];"value"in T&&(Z.__propertyDefaults=Z.__propertyDefaults||{},Z.__propertyDefaults[M]=T)}}if(Z=Z.__propertyDefaults)for(var E in Z)O=Z[E],
this._canApplyPropertyDefault(E)&&(O=typeof O.value=="function"?O.value.call(this):O.value,this._hasAccessor(E)?this._setPendingProperty(E,O,!0):this[E]=O)};
G.prototype._canApplyPropertyDefault=function(Z){return!this.hasOwnProperty(Z)};
G._processStyleText=function(Z,O){return bxS(Z,O)};
G._finalizeTemplate=function(Z){var O=this.prototype._template;if(O&&!O.__polymerFinalized){O.__polymerFinalized=!0;var M=this.importPath;M=M?_.tT(M):"";e(this,O,Z,M);this.prototype._bindTemplate(O)}};
G.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);r.prototype.connectedCallback.call(this)};
G.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);r.prototype.ready.call(this)};
G.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));r.prototype._readyClients.call(this)};
G.prototype._attachDom=function(Z){var O=(0,_.o5)(this);if(O.attachShadow)return Z?(O.shadowRoot||(O.attachShadow({mode:"open",shadyUpgradeFragment:Z}),O.shadowRoot.appendChild(Z),this.constructor._styleSheet&&(O.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),ZRy&&window.ShadyDOM&&window.ShadyDOM.flushInitial(O.shadowRoot),O.shadowRoot):null;throw Error("Hd");};
G.prototype.updateStyles=function(Z){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,Z)};
G.prototype.resolveUrl=function(Z,O){!O&&this.importPath&&(O=_.tT(this.importPath));return _.tT(Z,O)};
G._parseTemplateContent=function(Z,O,M){O.dynamicFns=O.dynamicFns||this._properties;return r._parseTemplateContent.call(this,Z,O,M)};
G._addTemplatePropertyEffect=function(Z,O,M){!eC||O in this._properties||M.info.part.signature&&M.info.part.signature.static||M.info.part.hostProp||Z.nestedTemplate||console.warn("Property '"+O+"' used in template but not declared in 'properties'; attribute will not be observed.");return r._addTemplatePropertyEffect.call(this,Z,O,M)};
_.iY.Object.defineProperties(G,{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 O=null;if(Z&&(!rE||rsl)&&(O=CM.import(Z,"template"),rE&&!O))throw Error("Gd`"+Z);Z=O}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=vis(Z.url):this._importPath=(Z=CM.import(this.is))&&Z.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return G});var QRE=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(G){return G}}),hpS=function(G,e){IQb(G,e);
this.value=e.reduce(function(r,Z,O){return r+TBF(Z)+G[O+1]},G[0]).toString()},IQb;
hpS.prototype.toString=function(){return this.value};
_.pxW=function(G){var e=_.Bw.apply(1,arguments);IQb(G,e);var r=document.createElement("template");e=e.reduce(function(Z,O,M){if(O instanceof HTMLTemplateElement)O=O.innerHTML;else if(O instanceof hpS)O=TBF(O);else throw Error("Jd`"+O);return Z+O+G[M+1]},G[0]);
QRE&&(e=QRE.createHTML(e));r.innerHTML=e;return r};
IQb=function(G,e){if(!Array.isArray(G)||!Array.isArray(G.raw)||e.length!==G.length-1)throw new TypeError("Kd");};var O3=Zi(HTMLElement);var CDj=GR(function(G){var e=Zi(G);G=function(){var r=e.call(this)||this;r.__lastItems=null;r.__lastMulti=null;r.__selectedMap=null;return r};
_.K(G,e);G.prototype.__updateSelection=function(r,Z){var O=Z.path;O=="items"?(Z=Z.base||[],O=this.__lastItems,r!==this.__lastMulti&&this.clearSelection(),O&&(O=V0$(Z,O),this.__applySplices(O)),this.__lastItems=Z,this.__lastMulti=r):Z.path=="items.splices"?this.__applySplices(Z.value.indexSplices):(r=O.slice(6),Z=parseInt(r,10),r.indexOf(".")<0&&r==Z&&this.__deselectChangedIdx(Z))};
G.prototype.__applySplices=function(r){for(var Z=this,O=this.__selectedMap,M={},T=0;T<r.length;M={s$jscomp$109:void 0},T++){M.s$jscomp$109=r[T];O.forEach(function(q){return function(t,g){t<q.s$jscomp$109.index||(t>=q.s$jscomp$109.index+q.s$jscomp$109.removed.length?O.set(g,t+q.s$jscomp$109.addedCount-q.s$jscomp$109.removed.length):O.set(g,-1))}}(M));
for(var E=0;E<M.s$jscomp$109.addedCount;E++){var b=M.s$jscomp$109.index+E;O.has(this.items[b])&&O.set(this.items[b],b)}}this.__updateLinks();var w=0;O.forEach(function(q,t){q<0?(Z.multi?Z.splice("selected",w,1):Z.selected=Z.selectedItem=null,O.delete(t)):w++})};
G.prototype.__updateLinks=function(){var r=this;this.__dataLinkedPaths={};if(this.multi){var Z=0;this.__selectedMap.forEach(function(O){O>=0&&r.linkPaths("items."+O,"selected."+Z++)})}else this.__selectedMap.forEach(function(O){r.linkPaths("selected","items."+O);
r.linkPaths("selectedItem","items."+O)})};
G.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
G.prototype.isSelected=function(r){return this.__selectedMap.has(r)};
G.prototype.isIndexSelected=function(r){return this.isSelected(this.items[r])};
G.prototype.__deselectChangedIdx=function(r){var Z=this,O=this.__selectedIndexForItemIndex(r);if(O>=0){var M=0;this.__selectedMap.forEach(function(T,E){O==M++&&Z.deselect(E)})}};
G.prototype.__selectedIndexForItemIndex=function(r){if(r=this.__dataLinkedPaths["items."+r])return parseInt(r.slice(9),10)};
G.prototype.deselect=function(r){var Z=this.__selectedMap.get(r);if(Z>=0){this.__selectedMap.delete(r);var O;this.multi&&(O=this.__selectedIndexForItemIndex(Z));this.__updateLinks();this.multi?this.splice("selected",O,1):this.selected=this.selectedItem=null}};
G.prototype.deselectIndex=function(r){this.deselect(this.items[r])};
G.prototype.select=function(r){this.selectIndex(this.items.indexOf(r))};
G.prototype.selectIndex=function(r){var Z=this.items[r];this.isSelected(Z)?this.toggle&&this.deselectIndex(r):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(Z,r),this.__updateLinks(),this.multi?this.push("selected",Z):this.selected=this.selectedItem=Z)};
_.iY.Object.defineProperties(G,{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 G}),u63=CDj(O3),M4=function(){return u63.apply(this,arguments)||this};
_.K(M4,u63);_.iY.Object.defineProperties(M4,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(M4.is,M4);var nPE=window.Polymer;window.Polymer=function(G){return window.Polymer._polymerFn(G)};
nPE&&Object.assign(Polymer,nPE);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:bxS,resolveUrl:_.tT,pathFromUrl:vis};Polymer.DomModule=CM;Polymer.Async={timeOut:_.L7,animationFrame:_.$h,idlePeriod:iRc,microTask:xs};Polymer.dedupingMixin=GR;Polymer.wrap=_.o5;Polymer.PropertiesChanged=vPv;Polymer.telemetry={instanceCount:wxc,incrementInstanceCount:function(){wxc++},
registrations:qzN,register:tMN,dumpRegistrations:function(){qzN.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=$eE;Polymer.CaseMap={dashToCamelCase:lC,camelToDashCase:R5};Polymer.PropertyAccessors=RcS;Polymer.TemplateStamp=fQn;Polymer.Path={isPath:j8,root:a5,isAncestor:X4A,isDescendant:X1,translate:KM,matches:KLA,normalize:fM,split:f9i,get:ks,set:k44,isDeep:j8};Polymer.Settings={useShadow:Nx,useNativeCSSProperties:Uvw,useNativeCustomElements:zDc,get rootPath(){return ecv},setRootPath:function(G){ecv=G},
get sanitizeDOMValue(){return sH},setSanitizeDOMValue:function(G){sH=G},
get passiveTouchGestures(){return Rp$},setPassiveTouchGestures:function(G){Rp$=G},
get strictTemplatePolicy(){return rE},setStrictTemplatePolicy:function(G){rE=G},
get allowTemplateFromDomModule(){return rsl},setAllowTemplateFromDomModule:function(G){rsl=G},
get legacyOptimizations(){return WJ},setLegacyOptimizations:function(G){WJ=G},
get syncInitialRender(){return ZRy},setSyncInitialRender:function(G){ZRy=G},
get legacyUndefined(){return I5},setLegacyUndefined:function(G){I5=G},
get legacyWarnings(){return eC},setLegacyWarnings:function(G){eC=G},
get orderedComputed(){return ORE},setOrderedComputed:function(G){ORE=G},
get fastDomIf(){return zz},setFastDomIf:function(G){zz=G},
get removeNestedTemplates(){return UB},setRemoveNestedTemplates:function(G){UB=G},
get suppressTemplateNotifications(){return Wv},setSuppressTemplateNotifications:Wv};Polymer.rootPath!==void 0&&(ecv=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(sH=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(Rp$=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(rE=Polymer.strictTemplatePolicy);rsl=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(WJ=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(ZRy=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(I5=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(eC=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(ORE=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(zz=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(UB=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Wv=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return sH},
set:function(G){sH=G}});Polymer.PropertyEffects=r_;Polymer.StyleGather={stylesFromModules:N7S,stylesFromModule:WLs,stylesFromTemplate:LL4,stylesFromModuleImports:Gxf,cssFromModules:rV_,cssFromModule:epA,cssFromTemplate:Zpf,cssFromModuleImports:function(G){return(G=CM.import(G))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(G):""}};Polymer.ElementMixin=Zi;Polymer.updateStyles=function(G){window.ShadyCSS&&window.ShadyCSS.styleDocument(G)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:V0$};Polymer.html=_.pxW;Polymer.htmlLiteral=function(G){return new hpS(G,_.Bw.apply(1,arguments))};Polymer.Element=O3;Polymer.ArraySelectorMixin=CDj;Polymer.ArraySelector=M4;var meE=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,csj=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,y3s=/@media\s(.*)/;var bpa=null,ips=window.HTMLImports&&window.HTMLImports.whenReady||null,vUq;var YmW=null,Vu=null,hY=function(){this.customStyles=[];this.enqueued=!1;wzs(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},ysy=function(G){!G.enqueued&&Vu&&(G.enqueued=!0,wzs(Vu))};
hY.prototype.addCustomStyle=function(G){G.__seenByShadyCSS||(G.__seenByShadyCSS=!0,this.customStyles.push(G),ysy(this))};
hY.prototype.getStyleForCustomStyle=function(G){if(G.__shadyCSSCachedStyle)return G.__shadyCSSCachedStyle;var e;G.getStyle?e=G.getStyle():e=G;return e};
hY.prototype.processStyles=function(){for(var G=this.customStyles,e=0;e<G.length;e++){var r=G[e];if(!r.__shadyCSSCachedStyle){var Z=this.getStyleForCustomStyle(r);Z&&(Z=Z.__appliedElement||Z,YmW&&YmW(Z),r.__shadyCSSCachedStyle=Z)}}return G};
hY.prototype.addCustomStyle=hY.prototype.addCustomStyle;hY.prototype.getStyleForCustomStyle=hY.prototype.getStyleForCustomStyle;hY.prototype.processStyles=hY.prototype.processStyles;Object.defineProperties(hY.prototype,{transformCallback:{get:function(){return YmW},
set:function(G){YmW=G}},
validateCallback:{get:function(){return Vu},
set:function(G){var e=!1;Vu||(e=!0);Vu=G;e&&ysy(this)}}});var Seq=!(window.ShadyDOM&&window.ShadyDOM.inUse),$Sy,E0;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(E0=window.ShadyCSS.cssBuild);var AsE=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?$Sy=window.ShadyCSS.nativeCss:window.ShadyCSS?(qeU(window.ShadyCSS),window.ShadyCSS=void 0):qeU(window.WebComponents&&window.WebComponents.flags);var m_i=$Sy;var FrE=new hY;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(G,e){FrE.processStyles();DSU(G,e)},
styleElement:function(){FrE.processStyles()},
styleDocument:function(G){FrE.processStyles();DSU(document.body,G)},
getComputedStyleValue:function(G,e){return EUS(G,e)},
flushCustomStyles:function(){},
nativeCss:m_i,nativeShadow:Seq,cssBuild:E0,disableRuntime:AsE});window.ShadyCSS.CustomStyleInterface=FrE;var Jsv=window.ShadyCSS.CustomStyleInterface,TR=function(){var G=HTMLElement.call(this)||this;G._style=null;Jsv.addCustomStyle(G);return G};
_.K(TR,HTMLElement);TR.prototype.getStyle=function(){if(this._style)return this._style;var G=this.querySelector("style");if(!G)return null;this._style=G;var e=G.getAttribute("include");e&&(G.removeAttribute("include"),G.textContent=rV_(e)+G.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
TR.prototype.getStyle=TR.prototype.getStyle;window.customElements.define("custom-style",TR);Polymer.CustomStyle=TR;var Di=function(){this._timer=this._callback=this._asyncModule=null},E3,xej;
Di.prototype.setConfig=function(G,e){var r=this;this._asyncModule=G;this._callback=e;this._timer=this._asyncModule.run(function(){r._timer=null;E3.delete(r);r._callback()})};
Di.prototype.cancel=function(){this.isActive()&&(BvP(this),E3.delete(this))};
var BvP=function(G){G.isActive()&&(G._asyncModule.cancel(G._timer),G._timer=null)};
Di.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
Di.prototype.isActive=function(){return this._timer!=null};
_.id=function(G,e,r){G instanceof Di?BvP(G):G=new Di;G.setConfig(e,r);return G};
E3=new Set;_.bd=function(G){E3.add(G)};
xej=function(){var G=!!E3.size;E3.forEach(function(e){try{e.flush()}catch(r){setTimeout(function(){throw r;})}});
return G};var gUs=typeof document.head.style.touchAction==="string",t0S=["mousedown","mousemove","mouseup","click"],Hpi=[0,1,4,2],PDW;try{PDW=(new MouseEvent("test",{buttons:1})).buttons===1}catch(G){PDW=!1}var kxN=PDW,lk4=!1;(function(){try{var G=Object.defineProperty({},"passive",{get:function(){lk4=!0}});
window.addEventListener("test",null,G);window.removeEventListener("test",null,G)}catch(e){}})();
var aks=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),XzN=[],Uev={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},Yei={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},K$p=function(G){var e=G.sourceCapabilities;if(!e||e.firesTouchEvents)if(G.__polymerGesturesHandled={skip:!0},G.type==="click"){e=!1;for(var r=QrN(G),Z=0;Z<r.length;Z++){if(r[Z].nodeType===Node.ELEMENT_NODE)if(r[Z].localName==="label")XzN.push(r[Z]);
else if(Uev[r[Z].localName]){var O=r[Z];var M=Array.prototype.slice.call(O.labels||[]);if(!M.length){M=[];try{var T=O.getRootNode();if(O.id){var E=T.querySelectorAll("label[for = '"+O.id+"']");for(O=0;O<E.length;O++)M.push(E[O])}}catch(b){}}for(O=0;O<M.length;O++)e=e||XzN.indexOf(M[O])>-1}if(r[Z]===zcE)return}e||(G.preventDefault(),G.stopPropagation())}},zcE=null,vu=null,pzN=0,CMF=0,Ik4=-1,ubi=!1;
document.addEventListener("touchend",function(G){vu||fk_(!0);zcE=QrN(G)[0];vu=_.id(vu,_.L7.after(2500),function(){fk_();vu=zcE=null})},lk4?{passive:!0}:!1);
var QrN=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(G){return G.composedPath&&G.composedPath()||[]},AT={},Ys=[];
nU_({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){mu(this.info)},
mousedown:function(G){if(nM(G)){var e=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G),r=this;oUp(this.info,function(Z){nM(Z)||(PJ("up",e,Z),mu(r.info))},function(Z){nM(Z)&&PJ("up",e,Z);
mu(r.info)});
PJ("down",e,G)}},
touchstart:function(G){PJ("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G),G.changedTouches[0],G)},
touchend:function(G){PJ("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G),G.changedTouches[0],G)}});
nU_({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(G){this.moves.length>2&&this.moves.shift();this.moves.push(G)},
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;mu(this.info)},
mousedown:function(G){if(nM(G)){var e=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G),r=this,Z=function(O){var M=O.clientX,T=O.clientY;mSU(r.info,M,T)&&(r.info.state=r.info.started?O.type==="mouseup"?"end":"track":"start",r.info.state==="start"&&yk("tap"),r.info.addMove({x:M,y:T}),nM(O)||(r.info.state="end",mu(r.info)),e&&cVs(r.info,e,O),r.info.started=!0)};
oUp(this.info,Z,function(O){r.info.started&&Z(O);mu(r.info)});
this.info.x=G.clientX;this.info.y=G.clientY}},
touchstart:function(G){G=G.changedTouches[0];this.info.x=G.clientX;this.info.y=G.clientY},
touchmove:function(G){var e=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G);G=G.changedTouches[0];var r=G.clientX,Z=G.clientY;mSU(this.info,r,Z)&&(this.info.state==="start"&&yk("tap"),this.info.addMove({x:r,y:Z}),cVs(this.info,e,G),this.info.state="track",this.info.started=!0)},
touchend:function(G){var e=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G);G=G.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:G.clientX,y:G.clientY}),cVs(this.info,e,G))}});
nU_({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(G){nM(G)&&(this.info.x=G.clientX,this.info.y=G.clientY)},
click:function(G){nM(G)&&yVf(this.info,G)},
touchstart:function(G){G=G.changedTouches[0];this.info.x=G.clientX;this.info.y=G.clientY},
touchend:function(G){yVf(this.info,G.changedTouches[0],G)}});var Wrn=GR(function(G){var e=function(){return G.apply(this,arguments)||this};
_.K(e,G);e.prototype._addEventListenerToNode=function(r,Z,O){F1(r,Z,O)||G.prototype._addEventListenerToNode.call(this,r,Z,O)};
e.prototype._removeEventListenerFromNode=function(r,Z,O){JT(r,Z,O)||G.prototype._removeEventListenerFromNode.call(this,r,Z,O)};
return e});var w_=GR(function(G){var e=function(){return G.apply(this,arguments)||this};
_.K(e,G);e.prototype._shouldPropertyChange=function(r,Z,O){return AVS(this,r,Z,O,!0)};
return e}),Nvb=GR(function(G){var e=function(){return G.apply(this,arguments)||this};
_.K(e,G);e.prototype._shouldPropertyChange=function(r,Z,O){return AVS(this,r,Z,O,this.mutableData)};
_.iY.Object.defineProperties(e,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return e});
w_._mutablePropertyChange=AVS;var F$F=!1;var Lrb=Wrn(Nvb(r_(HTMLElement))),$M=function(){var G=Lrb.call(this)||this;if(rE)throw Error("Md");G.root=null;G.$=null;G.__children=null;return G};
_.K($M,Lrb);_.V=$M.prototype;_.V.attributeChangedCallback=function(){this.mutableData=!0};
_.V.connectedCallback=function(){JV_()||(this.style.display="none");this.render()};
_.V.disconnectedCallback=function(){this.__removeChildren()};
_.V.__insertChildren=function(){(0,_.o5)((0,_.o5)(this).parentNode).insertBefore(this.root,this)};
_.V.__removeChildren=function(){if(this.__children)for(var G=0;G<this.__children.length;G++)this.root.appendChild(this.__children[G])};
_.V.render=function(){var G=this;if(!this.__children){var e=e||this.querySelector("template");if(!e){var r=new MutationObserver(function(){if(e=G.querySelector("template"))r.disconnect(),G.render();else throw Error("Nd");});
r.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}))};
_.iY.Object.defineProperties($M,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",$M);Polymer.Debouncer=Di;Polymer.Gestures={gestures:AT,recognizers:Ys,deepTargetFind:sr4,addListener:F1,removeListener:JT,register:nU_,setTouchAction:_.BJ,prevent:yk,resetMouseCanceller:function(){vu&&vu.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:F1,remove:JT};Polymer.GestureEventListeners=Wrn;Polymer.MutableData=w_;Polymer.OptionalMutableData=Nvb;Polymer.DomBind=$M;_.Sk=function(){do{var G=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var e=xej()}while(G||e)};var BBf=null;xS$.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:xS$,writable:!0}});var e5y=r_(xS$),GBS=w_(e5y),GaE=r_(function(){}),LM=function(G){var e=GaE.call(this)||this;
e._configureProperties(G);e.root=e._stampTemplate(e.__dataHost);var r=[];e.children=r;for(var Z=e.root.firstChild;Z;Z=Z.nextSibling)r.push(Z),Z.__templatizeInstance=e;e.__templatizeOwner&&e.__templatizeOwner.__hideTemplateChildren__&&e._showHideChildren(!0);r=e.__templatizeOptions;(G&&r.instanceProps||!r.instanceProps)&&e._enableProperties();return e};
_.K(LM,GaE);_.V=LM.prototype;_.V._configureProperties=function(G){if(this.__templatizeOptions.forwardHostProp)for(var e in this.__hostProps)this._setPendingProperty(e,this.__dataHost["_host_"+e]);for(var r in G)this._setPendingProperty(r,G[r])};
_.V.forwardHostProp=function(G,e){this._setPendingPropertyOrPath(G,e,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.V._addEventListenerToNode=function(G,e,r){var Z=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(G,e,function(M){M.model=Z;r(M)});
else{var O=this.__dataHost.__dataHost;O&&O._addEventListenerToNode(G,e,r)}};
_.V._showHideChildren=function(G){USN(G,this.children)};
_.V._setUnmanagedPropertyToNode=function(G,e,r){G.__hideTemplateChildren__&&G.nodeType==Node.TEXT_NODE&&e=="textContent"?G.__polymerTextContent__=r:GaE.prototype._setUnmanagedPropertyToNode.call(this,G,e,r)};
_.V.dispatchEvent=function(){return!0};
_.iY.Object.defineProperties(LM.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var G=this.__parentModel;if(!G){var e;G=this;do G=G.__dataHost.__dataHost;while((e=G.__templatizeOptions)&&!e.parentModel);this.__parentModel=G}return G}}});
var W$p=w_(LM);var q4=function(){var G=O3.call(this)||this;G.__renderDebouncer=null;G._lastIf=!1;G.__hideTemplateChildren__=!1;return G};
_.K(q4,O3);_.V=q4.prototype;_.V.__debounceRender=function(){var G=this;this.__renderDebouncer=_.id(this.__renderDebouncer,xs,function(){return G.__render()});
_.bd(this.__renderDebouncer)};
_.V.disconnectedCallback=function(){O3.prototype.disconnectedCallback.call(this);var G=(0,_.o5)(this).parentNode;G&&(G.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.o5)(G).host)||this.__teardownInstance()};
_.V.connectedCallback=function(){O3.prototype.connectedCallback.call(this);JV_()||(this.style.display="none");this.if&&this.__debounceRender()};
_.V.__ensureTemplate=function(){var G=this;if(!this.__template){var e=this._templateInfo?this:(0,_.o5)(this).querySelector("template");if(!e){var r=new MutationObserver(function(){if((0,_.o5)(G).querySelector("template"))r.disconnect(),G.__render();else throw Error("Qd");});
r.observe(this,{childList:!0});return!1}this.__template=e}return!0};
_.V.__ensureInstance=function(){var G=(0,_.o5)(this).parentNode;if(this.__hasInstance()){var e=this.__getInstanceNodes();if(e&&e.length&&(0,_.o5)(this).previousSibling!==e[e.length-1])for(var r=0,Z=void 0;r<e.length&&(Z=e[r]);r++)(0,_.o5)(G).insertBefore(Z,this)}else{if(!G||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(G)}return!0};
_.V.render=function(){_.Sk()};
_.V.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Wv&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.V.__hasInstance=function(){};
_.V.__getInstanceNodes=function(){};
_.V.__createAndInsertInstance=function(){};
_.V.__teardownInstance=function(){};
_.V._showHideChildren=function(){};
_.iY.Object.defineProperties(q4,{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:q4.prototype.__debounceRender},restamp:{type:Boolean,observer:q4.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var eIP=function(){var G=q4.call(this)||this;G.__instance=null;G.__syncInfo=null;return G};
_.K(eIP,q4);_.V=eIP.prototype;_.V.__hasInstance=function(){return!!this.__instance};
_.V.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.V.__createAndInsertInstance=function(G){var e=this,r=this.__dataHost||this;if(rE&&!this.__dataHost)throw Error("Od");var Z=r._bindTemplate(this.__template,!0);Z.runEffects=function(O,M,T){var E=e.__syncInfo;if(e.if)E&&(e.__syncInfo=null,e._showHideChildren(),M=Object.assign(E.changedProps,M)),O(M,T);else if(e.__instance)if(E||(E=e.__syncInfo={runEffects:O,changedProps:{}}),T)for(var b in M)O=a5(b),E.changedProps[O]=e.__dataHost[O];else Object.assign(E.changedProps,M)};
this.__instance=r._stampTemplate(this.__template,Z);(0,_.o5)(G).insertBefore(this.__instance,this)};
_.V.__syncHostProperties=function(){var G=this.__syncInfo;G&&(this.__syncInfo=null,G.runEffects(G.changedProps,!1))};
_.V.__teardownInstance=function(){var G=this.__dataHost||this;this.__instance&&(G._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.V._showHideChildren=function(){var G=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==G&&(this.__instance.__hidden=G,USN(G,this.__instance.templateInfo.childNodes));G||this.__syncHostProperties()};
var r_v=function(){var G=q4.call(this)||this;G.__ctor=null;G.__instance=null;G.__invalidProps=null;return G};
_.K(r_v,q4);_.V=r_v.prototype;_.V.__hasInstance=function(){return!!this.__instance};
_.V.__getInstanceNodes=function(){return this.__instance.children};
_.V.__createAndInsertInstance=function(G){this.__ctor||(this.__ctor=GU(this.__template,this,{mutableData:!0,forwardHostProp:function(e,r){this.__instance&&(this.if?this.__instance.forwardHostProp(e,r):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[a5(e)]=!0))}}));
this.__instance=new this.__ctor;(0,_.o5)(G).insertBefore(this.__instance.root,this)};
_.V.__teardownInstance=function(){if(this.__instance){var G=this.__instance.children;if(G&&G.length){var e=(0,_.o5)(G[0]).parentNode;if(e){e=(0,_.o5)(e);for(var r=0,Z=void 0;r<G.length&&(Z=G[r]);r++)e.removeChild(Z)}}this.__instance=this.__invalidProps=null}};
_.V.__syncHostProperties=function(){var G=this.__invalidProps;if(G){this.__invalidProps=null;for(var e in G)this.__instance._setPendingProperty(e,this.__dataHost[e]);this.__instance._flushProperties()}};
_.V._showHideChildren=function(){var G=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==G&&(this.__instance.__hidden=G,this.__instance._showHideChildren(G));G||this.__syncHostProperties()};
_.lD=zz?eIP:r_v;customElements.define(_.lD.is,_.lD);Polymer.enqueueDebouncer=_.bd;Polymer.flush=_.Sk;Polymer.Templatize={templatize:GU,modelForElement:h5p};Polymer.TemplateInstanceBase=LM;Polymer.DomIf=_.lD;var ZCl=Nvb(O3),gv=function(){var G=ZCl.call(this)||this;G.__instances=[];G.__renderDebouncer=null;G.__itemsIdxToInstIdx={};G.__chunkCount=null;G.__renderStartTime=null;G.__itemsArrayChanged=!1;G.__shouldMeasureChunk=!1;G.__shouldContinueChunking=!1;G.__chunkingId=0;G.__sortFn=null;G.__filterFn=null;G.__observePaths=null;G.__ctor=null;G.__isDetached=!0;G.template=null;return G};
_.K(gv,ZCl);_.V=gv.prototype;_.V.disconnectedCallback=function(){ZCl.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var G=0;G<this.__instances.length;G++)this.__detachInstance(G);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.V.connectedCallback=function(){ZCl.prototype.connectedCallback.call(this);JV_()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var G=(0,_.o5)((0,_.o5)(this).parentNode),e=0;e<this.__instances.length;e++)this.__attachInstance(e,G);this.__chunkingId&&this.__render()}};
_.V.__ensureTemplatized=function(){var G=this;if(!this.__ctor){var e=this.template=this._templateInfo?this:this.querySelector("template");if(!e){var r=new MutationObserver(function(){if(G.querySelector("template"))r.disconnect(),G.__render();else throw Error("Rd");});
r.observe(this,{childList:!0});return!1}var Z={};Z[this.as]=!0;Z[this.indexAs]=!0;Z[this.itemsIndexAs]=!0;this.__ctor=GU(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:Z,forwardHostProp:function(O,M){for(var T=this.__instances,E=0,b=void 0;E<T.length&&(b=T[E]);E++)b.forwardHostProp(O,M)},
notifyInstanceProp:function(O,M,T){KLA(this.as,M)&&(O=O[this.itemsIndexAs],M==this.as&&(this.items[O]=T),M=KM(this.as,"items."+O,M),this.notifyPath(M,T))}})}return!0};
_.V.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.V.__functionFromPropertyValue=function(G){if(typeof G==="string"){var e=this.__getMethodHost();return function(){return e[G].apply(e,arguments)}}return G};
_.V.__sortChanged=function(G){this.__sortFn=this.__functionFromPropertyValue(G);this.items&&this.__debounceRender(this.__render)};
_.V.__filterChanged=function(G){this.__filterFn=this.__functionFromPropertyValue(G);this.items&&this.__debounceRender(this.__render)};
_.V.__computeFrameTime=function(G){return Math.ceil(1E3/G)};
_.V.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.V.__handleObservedPaths=function(G){if(this.__sortFn||this.__filterFn)if(!G)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var e=this.__observePaths,r=0;r<e.length;r++)G.indexOf(e[r])===0&&this.__debounceRender(this.__render,this.delay)};
_.V.__itemsChanged=function(G){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(G.path,G.value)||(G.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.V.__debounceRender=function(G,e){e=e===void 0?0:e;this.__renderDebouncer=_.id(this.__renderDebouncer,e>0?_.L7.after(e):xs,G.bind(this));_.bd(this.__renderDebouncer)};
_.V.render=function(){this.__debounceRender(this.__render);_.Sk()};
_.V.__render=function(){var G=this;if(this.__ensureTemplatized()){var e=this.items||[],r=this.__sortAndFilterItems(e),Z=this.__calculateLimit(r.length);this.__updateInstances(e,Z,r);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){G.__chunkingId=null;G.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Wv&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.V.__sortAndFilterItems=function(G){for(var e=this,r=Array(G.length),Z=0;Z<G.length;Z++)r[Z]=Z;this.__filterFn&&(r=r.filter(function(O,M,T){return e.__filterFn(G[O],M,T)}));
this.__sortFn&&r.sort(function(O,M){return e.__sortFn(G[O],G[M])});
return r};
_.V.__calculateLimit=function(G){var e=G,r=this.__instances.length;if(this.initialCount){var Z;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(G,this.initialCount),this.__chunkCount=(Z=Math.max(e-r,0))||1):(Z=Math.min(Math.max(G-r,0),this.__chunkCount),e=Math.min(r+Z,G));this.__shouldMeasureChunk=Z===this.__chunkCount;this.__shouldContinueChunking=e<G;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return e};
_.V.__continueChunking=function(){if(this.__shouldMeasureChunk){var G=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/G*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.V.__updateInstances=function(G,e,r){var Z=this.__itemsIdxToInstIdx={},O;for(O=0;O<e;O++){var M=this.__instances[O],T=r[O],E=G[T];Z[T]=O;M?(M._setPendingProperty(this.as,E),M._setPendingProperty(this.indexAs,O),M._setPendingProperty(this.itemsIndexAs,T),M._flushProperties()):this.__insertInstance(E,O,T)}for(G=this.__instances.length-1;G>=O;G--)this.__detachAndRemoveInstance(G)};
_.V.__detachInstance=function(G){G=this.__instances[G];for(var e=(0,_.o5)(G.root),r=0;r<G.children.length;r++)e.appendChild(G.children[r]);return G};
_.V.__attachInstance=function(G,e){e.insertBefore(this.__instances[G].root,this)};
_.V.__detachAndRemoveInstance=function(G){this.__detachInstance(G);this.__instances.splice(G,1)};
_.V.__stampInstance=function(G,e,r){var Z={};Z[this.as]=G;Z[this.indexAs]=e;Z[this.itemsIndexAs]=r;return new this.__ctor(Z)};
_.V.__insertInstance=function(G,e,r){G=this.__stampInstance(G,e,r);r=(r=this.__instances[e+1])?r.children[0]:this;(0,_.o5)((0,_.o5)(this).parentNode).insertBefore(G.root,r);return this.__instances[e]=G};
_.V._showHideChildren=function(G){for(var e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(G)};
_.V.__handleItemPath=function(G,e){var r=G.slice(6),Z=r.indexOf(".");G=Z<0?r:r.substring(0,Z);if(G==parseInt(G,10)){r=Z<0?"":r.substring(Z+1);this.__handleObservedPaths(r);if(G=this.__instances[this.__itemsIdxToInstIdx[G]])G._setPendingPropertyOrPath(this.as+(r?"."+r:""),e,!1,!0),G._flushProperties();return!0}};
_.V.itemForElement=function(G){return(G=this.modelForElement(G))&&G[this.as]};
_.V.indexForElement=function(G){return(G=this.modelForElement(G))&&G[this.indexAs]};
_.V.modelForElement=function(G){return h5p(this.template,G)};
_.iY.Object.defineProperties(gv,{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:gv.prototype.__sortChanged},filter:{type:Function,observer:gv.prototype.__filterChanged},observe:{type:String,observer:gv.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Wv,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.*)"]}}});
gv.prototype._setRenderedItemCount=function(){};
customElements.define(gv.is,gv);Polymer.DomRepeat=gv;var OCE=function(G,e){var r=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=G;this.callback=e;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){r._schedule()};
this.connect();this._schedule()},MsW=function(G){var e=(0,_.o5)(G);
if(ZE(G))return e.assignedNodes({flatten:!0});G=[];for(var r=0;r<e.childNodes.length;r++){var Z=e.childNodes[r];ZE(Z)?G.push.apply(G,_.mY((0,_.o5)(Z).assignedNodes({flatten:!0}))):G.push(Z)}return G};
_.V=OCE.prototype;_.V.connect=function(){var G=this;ZE(this._target)?this._listenSlots([this._target]):(0,_.o5)(this._target).children&&(this._listenSlots((0,_.o5)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(e){G._processMutations(e)}):(this._nativeChildrenObserver=new MutationObserver(function(e){G._processMutations(e)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.V.disconnect=function(){ZE(this._target)?this._unlistenSlots([this._target]):(0,_.o5)(this._target).children&&(this._unlistenSlots((0,_.o5)(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};
_.V._schedule=function(){var G=this;this._scheduled||(this._scheduled=!0,xs.run(function(){return G.flush()}))};
_.V._processMutations=function(G){this._processSlotMutations(G);this.flush()};
_.V._processSlotMutations=function(G){if(G)for(var e=0;e<G.length;e++){var r=G[e];r.addedNodes&&this._listenSlots(r.addedNodes);r.removedNodes&&this._unlistenSlots(r.removedNodes)}};
_.V.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 G={target:this._target,addedNodes:[],removedNodes:[]},e=MsW(this._target),r=V0$(e,this._effectiveNodes),Z=0,O=void 0;Z<r.length&&(O=r[Z]);Z++)for(var M=0,T=void 0;M<O.removed.length&&(T=O.removed[M]);M++)G.removedNodes.push(T);
Z=0;for(O=void 0;Z<r.length&&(O=r[Z]);Z++)for(M=O.index;M<O.index+O.addedCount;M++)G.addedNodes.push(e[M]);this._effectiveNodes=e;e=!1;if(G.addedNodes.length||G.removedNodes.length)e=!0,this.callback.call(this._target,G);return e};
_.V._listenSlots=function(G){for(var e=0;e<G.length;e++){var r=G[e];ZE(r)&&r.addEventListener("slotchange",this._boundSchedule)}};
_.V._unlistenSlots=function(G){for(var e=0;e<G.length;e++){var r=G[e];ZE(r)&&r.removeEventListener("slotchange",this._boundSchedule)}};var tY=Element.prototype,VsW=tY.matches||tY.matchesSelector||tY.mozMatchesSelector||tY.msMatchesSelector||tY.oMatchesSelector||tY.webkitMatchesSelector,hIy=function(G,e){return VsW.call(G,e)},O0=function(G){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(G);
this.node=G},iCj;
_.V=O0.prototype;_.V.observeNodes=function(G){return new OCE(this.node,G)};
_.V.unobserveNodes=function(G){G.disconnect()};
_.V.notifyObserver=function(){};
_.V.deepContains=function(G){if((0,_.o5)(this.node).contains(G))return!0;var e=G;for(G=G.ownerDocument;e&&e!==G&&e!==this.node;)e=(0,_.o5)(e).parentNode||(0,_.o5)(e).host;return e===this.node};
_.V.getOwnerRoot=function(){return(0,_.o5)(this.node).getRootNode()};
_.V.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.o5)(this.node).assignedNodes({flatten:!0}):[]};
_.V.getDestinationInsertionPoints=function(){for(var G=[],e=(0,_.o5)(this.node).assignedSlot;e;)G.push(e),e=(0,_.o5)(e).assignedSlot;return G};
_.V.importNode=function(G,e){return(0,_.o5)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(G,e)};
_.V.getEffectiveChildNodes=function(){return MsW(this.node)};
_.V.queryDistributedElements=function(G){for(var e=this.getEffectiveChildNodes(),r=[],Z=0,O=e.length,M=void 0;Z<O&&(M=e[Z]);Z++)M.nodeType===Node.ELEMENT_NODE&&hIy(M,G)&&r.push(M);return r};
_.iY.Object.defineProperties(O0.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var G=this.node;return G._activeElement!==void 0?G._activeElement:G.activeElement}}});
var g_=function(G){this.event=G};
_.iY.Object.defineProperties(g_.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 T2j=O0;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var DqW=window.ShadyDOM.Wrapper,EhE=function(){return DqW.apply(this,arguments)||this};
_.K(EhE,DqW);Object.getOwnPropertyNames(O0.prototype).forEach(function(G){G!="activeElement"&&G!="constructor"&&(EhE.prototype[G]=O0.prototype[G])});
D__(EhE.prototype,["classList"]);T2j=EhE;Object.defineProperties(g_.prototype,{localTarget:{get:function(){var G=this.event.currentTarget;G=G&&_.i4(G).getOwnerRoot();for(var e=this.path,r=0;r<e.length;r++){var Z=e[r];if(_.i4(Z).getOwnerRoot()===G)return Z}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else TU$(),D__(O0.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),EjA();iCj=T2j;_.i4=function(G){G=G||document;if(G instanceof T2j)return G;if(G instanceof g_)return G;var e=G.__domApi;e||(G instanceof Event?e=new g_(G):e=new T2j(G),G.__domApi=e);return e};var bCW=/:host\(:dir\((ltr|rtl)\)\)/g,vhC=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,wQj=/:dir\((?:ltr|rtl)\)/,$qE=!(!window.ShadyDOM||!window.ShadyDOM.inUse),VH=[],ld=null,MN="",SYl=GR(function(G){$qE||ld||(MN=document.documentElement.getAttribute("dir"),ld=new MutationObserver(i2N),ld.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var e=RcS(G);G=function(){var r=e.call(this)||this;r.__autoDirOptOut=!1;return r};
_.K(G,e);G._processStyleText=function(r,Z){r=e._processStyleText.call(this,r,Z);!$qE&&wQj.test(r)&&(r=this._replaceDirInCssText(r),this.__activateDir=!0);return r};
G._replaceDirInCssText=function(r){r=r.replace(bCW,':host([dir="$1"])');return r=r.replace(vhC,':host([dir="$2"]) $1')};
G.prototype.ready=function(){e.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
G.prototype.connectedCallback=function(){e.prototype.connectedCallback&&e.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(ld&&ld.takeRecords().length&&i2N(),VH.push(this),this.__autoDirOptOut||this.setAttribute("dir",MN))};
G.prototype.disconnectedCallback=function(){e.prototype.disconnectedCallback&&e.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var r=VH.indexOf(this);r>-1&&VH.splice(r,1)}};
G.__activateDir=!1;return G});var qY3=function(G){for(;G;){var e=Object.getOwnPropertyDescriptor(G,"observedAttributes");if(e)return e.get;G=Object.getPrototypeOf(G.prototype).constructor}return function(){return[]}};
GR(function(G){var e=Zi(G),r=qY3(e);G=function(){return e.call(this)||this};
_.K(G,e);G.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:e.prototype._initializeProperties.call(this)};
G.prototype._enableProperties=function(){this.__isUpgradeDisabled||e.prototype._enableProperties.call(this)};
G.prototype._canApplyPropertyDefault=function(Z){return e.prototype._canApplyPropertyDefault.call(this,Z)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(Z))};
G.prototype.attributeChangedCallback=function(Z,O,M,T){Z=="disable-upgrade"?this.__isUpgradeDisabled&&M==null&&(e.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.o5)(this).isConnected&&e.prototype.connectedCallback.call(this)):e.prototype.attributeChangedCallback.call(this,Z,O,M,T)};
G.prototype.connectedCallback=function(){this.__isUpgradeDisabled||e.prototype.connectedCallback.call(this)};
G.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||e.prototype.disconnectedCallback.call(this)};
_.iY.Object.defineProperties(G,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return r.call(this).concat("disable-upgrade")}}});
return G});var hP=!1,vj_=[],TU=[];var qiF=window.ShadyDOM,tci=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",lgS):document.readyState==="interactive"||document.readyState==="complete"?lgS():window.addEventListener("DOMContentLoaded",lgS);var ag4=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=""},R5p=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,j$F=/@import[^;]*;/gim,d_a=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,oj_=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,s$4=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,Q$4=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,kBN=/^@[^\s]*keyframes/,
fgA=/\s+/g;var Igq={};var uCS=Promise.resolve();var tsE=new Set;var ghc=/;\s*/m,lME=/^\s*(initial)|(inherit)\s*$/,RIE=/\s*!important/,jgn=function(){this._map={}};
jgn.prototype.set=function(G,e){G=G.trim();this._map[G]={properties:e,dependants:{}}};
jgn.prototype.get=function(G){G=G.trim();return this._map[G]||null};
var aME=null,Re=function(){this._measureElement=this._currentElement=null;this._map=new jgn};
_.V=Re.prototype;_.V.detectMixin=function(G){G=csj.test(G)||meE.test(G);csj.lastIndex=0;meE.lastIndex=0;return G};
_.V.transformTemplate=function(G,e){if(G._gatheredStyle===void 0){var r=[];for(var Z=G.content.querySelectorAll("style"),O=0;O<Z.length;O++){var M=Z[O];if(M.hasAttribute("shady-unscoped")){if(!Seq){var T=M.textContent;if(!tsE.has(T)){tsE.add(T);var E=document.createElement("style");E.setAttribute("shady-unscoped","");E.textContent=T;document.head.appendChild(E)}M.parentNode.removeChild(M)}}else r.push(M.textContent),M.parentNode.removeChild(M)}(r=r.join("").trim())?(Z=document.createElement("style"),
Z.textContent=r,G.content.insertBefore(Z,G.content.firstChild),r=Z):r=null;G._gatheredStyle=r}return(G=G._gatheredStyle)?this.JSC$11276_transformStyle(G,e):null};
_.V.JSC$11276_transformStyle=function(G,e){e=e===void 0?"":e;var r=Yip(G);this.transformRules(r,e);G.textContent=c3N(r);return r};
_.V.transformCustomStyle=function(G){var e=this,r=Yip(G);A3p(r,function(Z){Z.selector===":root"&&(Z.selector="html");e.transformRule(Z)});
G.textContent=c3N(r);return r};
_.V.transformRules=function(G,e){var r=this;this._currentElement=e;A3p(G,function(Z){r.transformRule(Z)});
this._currentElement=null};
_.V.transformRule=function(G){G.cssText=XQy(this,G.parsedCssText,G);G.selector===":root"&&(G.selector=":host > *")};
var XQy=function(G,e,r){e=e.replace(meE,function(Z,O,M,T){return G._produceCssProperties(Z,O,M,T,r)});
return G._consumeCssProperties(e,r)};
_.V=Re.prototype;_.V._getInitialValueForProperty=function(G){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(G)};
_.V._fallbacksFromPreviousRules=function(G){for(var e=this,r=G;r.parent;)r=r.parent;var Z={},O=!1;A3p(r,function(M){(O=O||M===G)||M.selector===G.selector&&Object.assign(Z,e._cssTextToMap(M.parsedCssText))});
return Z};
_.V._consumeCssProperties=function(G,e){for(var r;r=csj.exec(G);){var Z=r[0],O=r[1];r=r.index;var M=r+Z.indexOf("@apply"),T=r+Z.length;Z=G.slice(0,M);G=G.slice(T);M=e?this._fallbacksFromPreviousRules(e):{};Object.assign(M,this._cssTextToMap(Z));O=this._atApplyToCssProperties(O,M);G=Z+O+G;csj.lastIndex=r+O.length}return G};
_.V._atApplyToCssProperties=function(G,e){G=G.replace(ghc,"");var r=[],Z=this._map.get(G);Z||(this._map.set(G,{}),Z=this._map.get(G));if(Z){this._currentElement&&(Z.dependants[this._currentElement]=!0);var O,M=Z.properties;for(O in M){var T=e&&e[O];Z=[O,": var(",G,"_-_",O];T&&Z.push(",",T.replace(RIE,""));Z.push(")");RIE.test(M[O])&&Z.push(" !important");r.push(Z.join(""))}}return r.join("; ")};
_.V._replaceInitialOrInherit=function(G,e){var r=lME.exec(e);r&&(e=r[1]?this._getInitialValueForProperty(G):"apply-shim-inherit");return e};
_.V._cssTextToMap=function(G,e){e=e===void 0?!1:e;G=G.split(";");for(var r,Z,O={},M=0;M<G.length;M++)if(r=G[M])Z=r.split(":"),Z.length>1&&(r=Z[0].trim(),Z=Z.slice(1).join(":"),e&&(Z=this._replaceInitialOrInherit(r,Z)),O[r]=Z);return O};
_.V._invalidateMixinEntry=function(G){if(aME)for(var e in G.dependants)e!==this._currentElement&&aME(e)};
_.V._produceCssProperties=function(G,e,r,Z,O){var M=this;r&&FKy(r,function(X,H){H&&M._map.get(H)&&(Z="@apply "+H+";")});
if(!Z)return G;var T=this._consumeCssProperties(""+Z,O);O=G.slice(0,G.indexOf("--"));var E=T=this._cssTextToMap(T,!0),b=this._map.get(e),w=b&&b.properties;w?E=Object.assign(Object.create(w),T):this._map.set(e,E);var q=[],t,g=!1;for(t in E){var l=T[t];l===void 0&&(l="initial");!w||t in w||(g=!0);q.push(e+"_-_"+t+": "+l)}g&&this._invalidateMixinEntry(b);b&&(b.properties=E);r&&(O=G+";"+O);return O+q.join("; ")+";"};
Re.prototype.detectMixin=Re.prototype.detectMixin;Re.prototype.transformStyle=Re.prototype.JSC$11276_transformStyle;Re.prototype.transformCustomStyle=Re.prototype.transformCustomStyle;Re.prototype.transformRules=Re.prototype.transformRules;Re.prototype.transformRule=Re.prototype.transformRule;Re.prototype.transformTemplate=Re.prototype.transformTemplate;Re.prototype._separator="_-_";Object.defineProperty(Re.prototype,"invalidCallback",{get:function(){return aME},
set:function(G){aME=G}});var jk=new Re,K2E=function(){this.customStyleInterface=null;jk.invalidCallback=pss},ae=function(G){!G.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(G.customStyleInterface=window.ShadyCSS.CustomStyleInterface,G.customStyleInterface.transformCallback=function(e){jk.transformCustomStyle(e)},G.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){G.customStyleInterface.enqueued&&G.flushCustomStyles()})})};
_.V=K2E.prototype;_.V.prepareTemplate=function(G,e){ae(this);J3i(G)===""&&(Igq[e]=G,e=jk.transformTemplate(G,e),G._styleAst=e)};
_.V.flushCustomStyles=function(){ae(this);if(this.customStyleInterface){var G=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var e=0;e<G.length;e++){var r=this.customStyleInterface.getStyleForCustomStyle(G[e]);r&&jk.transformCustomStyle(r)}this.customStyleInterface.enqueued=!1}}};
_.V.styleSubtree=function(G,e){ae(this);e&&DSU(G,e);if(G.shadowRoot)for(this.styleElement(G),G=G.shadowRoot.children||G.shadowRoot.childNodes,e=0;e<G.length;e++)this.styleSubtree(G[e]);else for(G=G.children||G.childNodes,e=0;e<G.length;e++)this.styleSubtree(G[e])};
_.V.styleElement=function(G){ae(this);var e=G.localName,r;e?e.indexOf("-")>-1?r=e:r=G.getAttribute&&G.getAttribute("is")||"":r=G.is;e=Igq[r];if(!(e&&J3i(e)!==""||!e||Cgf(e))){if(Cgf(e)||e._applyShimValidatingVersion!==e._applyShimNextVersion)this.prepareTemplate(e,r),njq(e);if(G=G.shadowRoot)if(G=G.querySelector("style"))G.__cssRules=e._styleAst,G.textContent=c3N(e._styleAst)}};
_.V.styleDocument=function(G){ae(this);this.styleSubtree(document.body,G)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var X5=new K2E,fMb=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(G,e){X5.flushCustomStyles();X5.prepareTemplate(G,e)},
prepareTemplateStyles:function(G,e,r){window.ShadyCSS.prepareTemplate(G,e,r)},
prepareTemplateDom:function(){},
styleSubtree:function(G,e){X5.flushCustomStyles();X5.styleSubtree(G,e)},
styleElement:function(G){X5.flushCustomStyles();X5.styleElement(G)},
styleDocument:function(G){X5.flushCustomStyles();X5.styleDocument(G)},
getComputedStyleValue:function(G,e){return EUS(G,e)},
flushCustomStyles:function(){X5.flushCustomStyles()},
nativeCss:m_i,nativeShadow:Seq,cssBuild:E0,disableRuntime:AsE};fMb&&(window.ShadyCSS.CustomStyleInterface=fMb)}window.ShadyCSS.ApplyShim=jk;var kaS;kaS=window.ShadyCSS;_.KV=GR(function(G){G=Wrn(Zi(G));var e=sRE?G:SYl(G),r=qY3(e),Z={x:"pan-x",y:"pan-y",none:"none",all:"auto"};G=function(){return e.call(this)||this};
_.K(G,e);G.prototype.created=function(){};
G.prototype.__attributeReaction=function(O,M,T){(this.__dataAttributes&&this.__dataAttributes[O]||O==="disable-upgrade")&&this.attributeChangedCallback(O,M,T,null)};
G.prototype.setAttribute=function(O,M){if(MDv&&!this._legacyForceObservedAttributes){var T=this.getAttribute(O);e.prototype.setAttribute.call(this,O,M);this.__attributeReaction(O,T,String(M))}else e.prototype.setAttribute.call(this,O,M)};
G.prototype.removeAttribute=function(O){if(MDv&&!this._legacyForceObservedAttributes){var M=this.getAttribute(O);e.prototype.removeAttribute.call(this,O);this.__attributeReaction(O,M,null)}else e.prototype.removeAttribute.call(this,O)};
G.prototype._enableProperties=function(){this.__isUpgradeDisabled||e.prototype._enableProperties.call(this)};
G.prototype._canApplyPropertyDefault=function(O){return e.prototype._canApplyPropertyDefault.call(this,O)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(O))};
G.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(e.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
G.prototype.attached=function(){};
G.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(e.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
G.prototype.detached=function(){};
G.prototype.attributeChangedCallback=function(O,M,T,E){M!==T&&(O=="disable-upgrade"?this.__isUpgradeDisabled&&T==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.o5)(this).isConnected&&this.connectedCallback()):(e.prototype.attributeChangedCallback.call(this,O,M,T,E),this.attributeChanged(O,M,T)))};
G.prototype.attributeChanged=function(){};
G.prototype._initializeProperties=function(){if(WJ&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var O=Object.getPrototypeOf(this);O.hasOwnProperty("__hasRegisterFinished")||(this._registered(),O.__hasRegisterFinished=!0);e.prototype._initializeProperties.call(this);this.root=this;this.created();MDv&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
G.prototype._takeAttributes=function(){for(var O=this.attributes,M=0,T=O.length;M<T;M++){var E=O[M];this.__attributeReaction(E.name,null,E.value)}};
G.prototype._registered=function(){};
G.prototype.ready=function(){this._ensureAttributes();e.prototype.ready.call(this)};
G.prototype._ensureAttributes=function(){};
G.prototype._applyListeners=function(){};
G.prototype.serialize=function(O){return this._serializeValue(O)};
G.prototype.deserialize=function(O,M){return this._deserializeValue(O,M)};
G.prototype.reflectPropertyToAttribute=function(O,M,T){this._propertyToAttribute(O,M,T)};
G.prototype.serializeValueToAttribute=function(O,M,T){this._valueToNodeAttribute(T||this,O,M)};
G.prototype.extend=function(O,M){if(!O||!M)return O||M;for(var T=Object.getOwnPropertyNames(M),E=0,b=void 0;E<T.length&&(b=T[E]);E++){var w=Object.getOwnPropertyDescriptor(M,b);w&&Object.defineProperty(O,b,w)}return O};
G.prototype.mixin=function(O,M){for(var T in M)O[T]=M[T];return O};
G.prototype.chainObject=function(O,M){O&&M&&O!==M&&(O.__proto__=M);return O};
G.prototype.instanceTemplate=function(O){O=this.constructor._contentForTemplate(O);return document.importNode(O,!0)};
G.prototype.fire=function(O,M,T){T=T||{};M=M===null||M===void 0?{}:M;O=new Event(O,{bubbles:T.bubbles===void 0?!0:T.bubbles,cancelable:!!T.cancelable,composed:T.composed===void 0?!0:T.composed});O.detail=M;(0,_.o5)(T.node||this).dispatchEvent(O);return O};
G.prototype.listen=function(O,M,T){O=O||this;var E=this.__boundListeners||(this.__boundListeners=new WeakMap),b=E.get(O);b||(b={},E.set(O,b));E=M+T;b[E]||(b[E]=this._addMethodEventListenerToNode(O,M,T,this))};
G.prototype.unlisten=function(O,M,T){O=O||this;var E=this.__boundListeners&&this.__boundListeners.get(O);T=M+T;var b=E&&E[T];b&&(this._removeEventListenerFromNode(O,M,b),E[T]=null)};
G.prototype.setScrollDirection=function(O,M){_.BJ(M||this,Z[O]||"auto")};
G.prototype.$$=function(O){return this.root.querySelector(O)};
G.prototype.distributeContent=function(){var O=_.i4(this);window.ShadyDOM&&O.shadowRoot&&ShadyDOM.flush()};
G.prototype.getEffectiveChildNodes=function(){return _.i4(this).getEffectiveChildNodes()};
G.prototype.queryDistributedElements=function(O){return _.i4(this).queryDistributedElements(O)};
G.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(O){return O.nodeType===Node.ELEMENT_NODE})};
G.prototype.getEffectiveTextContent=function(){for(var O=this.getEffectiveChildNodes(),M=[],T=0,E;E=O[T];T++)E.nodeType!==Node.COMMENT_NODE&&M.push(E.textContent);return M.join("")};
G.prototype.queryEffectiveChildren=function(O){return(O=this.queryDistributedElements(O))&&O[0]};
G.prototype.queryAllEffectiveChildren=function(O){return this.queryDistributedElements(O)};
G.prototype.getContentChildNodes=function(O){return(O=this.root.querySelector(O||"slot"))?_.i4(O).getDistributedNodes():[]};
G.prototype.getContentChildren=function(O){return this.getContentChildNodes(O).filter(function(M){return M.nodeType===Node.ELEMENT_NODE})};
G.prototype.isLightDescendant=function(O){return this!==O&&(0,_.o5)(this).contains(O)&&(0,_.o5)(this).getRootNode()===(0,_.o5)(O).getRootNode()};
G.prototype.isLocalDescendant=function(O){return this.root===(0,_.o5)(O).getRootNode()};
G.prototype.scopeSubtree=function(O,M){return gjq(O,M===void 0?!1:M)};
G.prototype.getComputedStyleValue=function(O){return kaS.getComputedStyleValue(this,O)};
G.prototype.debounce=function(O,M,T){this._debouncers=this._debouncers||{};return this._debouncers[O]=_.id(this._debouncers[O],T>0?_.L7.after(T):xs,M.bind(this))};
G.prototype.isDebouncerActive=function(O){this._debouncers=this._debouncers||{};O=this._debouncers[O];return!(!O||!O.isActive())};
G.prototype.flushDebouncer=function(O){this._debouncers=this._debouncers||{};(O=this._debouncers[O])&&O.flush()};
G.prototype.cancelDebouncer=function(O){this._debouncers=this._debouncers||{};(O=this._debouncers[O])&&O.cancel()};
G.prototype.async=function(O,M){return M>0?_.L7.run(O.bind(this),M):~xs.run(O.bind(this))};
G.prototype.cancelAsync=function(O){O<0?xs.cancel(~O):_.L7.cancel(O)};
G.prototype.create=function(O,M){O=document.createElement(O);if(M)if(O.setProperties)O.setProperties(M);else for(var T in M)O[T]=M[T];return O};
G.prototype.elementMatches=function(O,M){return hIy(M||this,O)};
G.prototype.toggleAttribute=function(O,M){var T=this;arguments.length===3&&(T=arguments[2]);arguments.length==1&&(M=!T.hasAttribute(O));if(M)return(0,_.o5)(T).setAttribute(O,""),!0;(0,_.o5)(T).removeAttribute(O);return!1};
G.prototype.toggleClass=function(O,M,T){T=T||this;arguments.length==1&&(M=!T.classList.contains(O));M?T.classList.add(O):T.classList.remove(O)};
G.prototype.transform=function(O,M){M=M||this;M.style.webkitTransform=O;M.style.transform=O};
G.prototype.translate3d=function(O,M,T,E){this.transform("translate3d("+O+","+M+","+T+")",E||this)};
G.prototype.arrayDelete=function(O,M){if(Array.isArray(O)){if(M=O.indexOf(M),M>=0)return O.splice(M,1)}else if(M=ks(this,O).indexOf(M),M>=0)return this.splice(O,M,1);return null};
G.prototype._logger=function(O,M){Array.isArray(M)&&M.length===1&&Array.isArray(M[0])&&(M=M[0]);switch(O){case "log":case "warn":case "error":console[O].apply(console,_.mY(M))}};
G.prototype._log=function(){this._logger("log",_.Bw.apply(0,arguments))};
G.prototype._warn=function(){this._logger("warn",_.Bw.apply(0,arguments))};
G.prototype._error=function(){this._logger("error",_.Bw.apply(0,arguments))};
G.prototype._logf=function(O){return["[%s::%s]",this.is,O].concat(_.mY(_.Bw.apply(1,arguments)))};
_.iY.Object.defineProperties(G.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var O=(0,_.o5)(this).getRootNode();return O instanceof DocumentFragment?O.host:O}}});
_.iY.Object.defineProperties(G,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return MDv&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],tMN(this.prototype)),this.__observedAttributes):r.call(this).concat("disable-upgrade")}}});
G.prototype.is="";return G});Polymer.FlattenedNodesObserver=OCE;Polymer.DomApi=iCj;Polymer.EventApi=g_;Polymer.dom=_.i4;Polymer.dom.matchesSelector=hIy;Polymer.dom.flush=_.Sk;Polymer.dom.addDebouncer=_.bd;Polymer.DirMixin=SYl;Polymer.RenderStatus={beforeNextRender:_.SiN,afterNextRender:_.DE,flush:function(){for(;vj_.length||TU.length;)b2i(vj_),b2i(TU);hP=!1}};Polymer.LegacyElementMixin=_.KV;var HCw;HCw=w_._mutablePropertyChange;var dqP={properties:{mutableData:Boolean},_shouldPropertyChange:function(G,e,r){return HCw(this,G,e,r,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(G,e,r){return HCw(this,G,e,r,!0)}};
Polymer.OptionalMutableDataBehavior=dqP;var BUs={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},WK_={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},z54=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},WK_),ohC=(0,_.KV)(HTMLElement),WxN=function(G,e){G||console.warn("Polymer.Class requires `info` argument");e=e?e(ohC):ohC;e=NU$(G,e,G.behaviors);e.is=e.prototype.is=
G.is;return e};Polymer.Class=WxN;Polymer.mixinBehaviors=function(G,e){return NU$({},(0,_.KV)(e),G)};
Polymer.GenerateClassFromInfo=NU$;_.ts=function(G){var e=typeof G==="function"?G:_.ts.Class(G);G._legacyForceObservedAttributes&&(e.prototype._legacyForceObservedAttributes=G._legacyForceObservedAttributes);customElements.define(e.is,e);return e};
_.ts.Class=WxN;Polymer._polymerFn=_.ts;var sgl=window.onLegacyPolymerFunctionDefinedCallback;sgl&&sgl();var LxU={templatize:function(G,e){this._templatizerTemplate=G;this.ctor=GU(G,this,{mutableData:!!e,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(G){return new this.ctor(G)},
modelForElement:function(G){return h5p(this._templatizerTemplate,G)}};Polymer.Templatizer=LxU;_.fV=(0,_.KV)(HTMLElement).prototype;Polymer.Base=_.fV;var GDS=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.bY=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.K(_.bY,PolymerFakeBaseClass);var vU=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.K(vU,PolymerFakeBaseClass);var e3s=Symbol("Sd"),DuN=[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 QgW=QgW||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},IMw;(function(G){function e(F,J,U){var e$=P.get(F);if(!e$){if(!U)return;e$=new C;P.set(F,e$)}F=e$.get(J);if(!F){if(!U)return;F=new C;e$.set(J,F)}return F}
function r(F,J,U){if(Z(F,J,U))return!0;J=g(J);return J!==null?r(F,J,U):!1}
function Z(F,J,U){J=e(J,U,!1);return J===void 0?!1:!!J.has(F)}
function O(F,J,U){if(Z(F,J,U))return M(F,J,U);J=g(J);if(J!==null)return O(F,J,U)}
function M(F,J,U){J=e(J,U,!1);if(J!==void 0)return J.get(F)}
function T(F,J){var U=E(F,J);F=g(F);if(F===null)return U;var e$=T(F,J);if(e$.length<=0)return U;if(U.length<=0)return e$;J=new u;F=[];U=_.h(U);for(var Dq=U.next();!Dq.done;Dq=U.next())Dq=Dq.value,J.has(Dq)||(J.add(Dq),F.push(Dq));U=_.h(e$);for(e$=U.next();!e$.done;e$=U.next())e$=e$.value,J.has(e$)||(J.add(e$),F.push(e$));return F}
function E(F,J){F=e(F,J,!1);var U=[];F&&F.forEach(function(e$,Dq){return U.push(Dq)});
return U}
function b(F){return F===void 0}
function w(F){return typeof F==="object"?F!==null:typeof F==="function"}
function q(F){return typeof F==="function"}
function t(F){return typeof F==="symbol"?F:String(F)}
function g(F){var J=Object.getPrototypeOf(F);if(typeof F!=="function"||F===I||J!==I)return J;var U=Object.getPrototypeOf(F.prototype);if(U==null||U===Object.prototype)return J;U=U.constructor;return typeof U!=="function"||U===F?J:U}
function l(){function F(){this._keys=[];this._values=[];this._cache=J}
var J={};F.prototype={get size(){return this._keys.length},has:function(U){return U===this._cache?!0:this._find(U)>=0?(this._cache=U,!0):!1},
get:function(U){var e$=this._find(U);if(e$>=0)return this._cache=U,this._values[e$]},
set:function(U,e$){this.delete(U);this._keys.push(U);this._values.push(e$);this._cache=U;return this},
delete:function(U){U=this._find(U);return U>=0?(this._keys.splice(U,1),this._values.splice(U,1),this._cache=J,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=J},
forEach:function(U){for(var e$=this.size,Dq=0;Dq<e$;++Dq){var bF=this._keys[Dq],Kf=this._values[Dq];this._cache=bF;U.call(this,Kf,bF,this)}},
_find:function(U){for(var e$=this._keys,Dq=e$.length,bF=0;bF<Dq;++bF)if(e$[bF]===U)return bF;return-1}};
return F}
function X(){function F(){this._map=new C}
F.prototype={get size(){return this._map.length},has:function(J){return this._map.has(J)},
add:function(J){this._map.set(J,J);return this},
delete:function(J){return this._map.delete(J)},
clear:function(){this._map.clear()},
forEach:function(J,U){this._map.forEach(J,U)}};
return F}
function H(){function F(){this._key=U()}
function J(Ry,nf){for(var k4=0;k4<nf;++k4)Ry[k4]=Math.random()*255|0}
function U(){do{if(Dq)var Ry=Dq.randomBytes(16);else typeof Uint8Array==="function"?(Ry=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(Ry):J(Ry,16)):(Ry=Array(16),J(Ry,16));Ry[6]=Ry[6]&79|64;Ry[8]=Ry[8]&191|128;for(var nf="",k4=0;k4<16;++k4){var SE=Ry[k4];if(k4===4||k4===6||k4===8)nf+="-";SE<16&&(nf+="0");nf+=SE.toString(16).toLowerCase()}Ry="@@WeakMap@@"+nf}while(bF.call(Kf,Ry));Kf[Ry]=!0;return Ry}
function e$(Ry,nf){if(!bF.call(Ry,ti)){if(!nf)return;Object.defineProperty(Ry,ti,{value:Object.create(null)})}return Ry[ti]}
var Dq=typeof global!=="undefined"&&typeof QgW==="object"&&typeof require==="function"&&require("crypto"),bF=Object.prototype.hasOwnProperty,Kf={},ti=U();F.prototype={has:function(Ry){return(Ry=e$(Ry,!1))?this._key in Ry:!1},
get:function(Ry){if(Ry=e$(Ry,!1))return Ry[this._key]},
set:function(Ry,nf){e$(Ry,!0)[this._key]=nf;return this},
delete:function(Ry){return(Ry=e$(Ry,!1))&&this._key in Ry?delete Ry[this._key]:!1},
clear:function(){this._key=U()}};
return F}
var I=Object.getPrototypeOf(Function),C=typeof Map==="function"?Map:l(),u=typeof Set==="function"?Set:X(),P=new (typeof WeakMap==="function"?WeakMap:H());G.decorate=function(F,J,U,e$){if(b(e$)){if(b(U)){if(!Array.isArray(F))throw new TypeError;if(!q(J))throw new TypeError;for(U=F.length-1;U>=0;--U)if(e$=(0,F[U])(J),!b(e$)){if(!q(e$))throw new TypeError;J=e$}return J}if(!Array.isArray(F))throw new TypeError;if(!w(J))throw new TypeError;U=t(U);for(e$=F.length-1;e$>=0;--e$)(0,F[e$])(J,U)}else{if(Array.isArray(F))if(w(J)){if(b(U))throw new TypeError;
if(!w(e$))throw new TypeError;}else throw new TypeError;else throw new TypeError;U=t(U);for(var Dq=F.length-1;Dq>=0;--Dq){var bF=(0,F[Dq])(J,U,e$);if(!b(bF)){if(!w(bF))throw new TypeError;e$=bF}}return e$}};
G.metadata=function(F,J){return function(U,e$){if(b(e$)){if(!q(U))throw new TypeError;e(U,void 0,!0).set(F,J)}else{if(!w(U))throw new TypeError;e$=t(e$);e(U,e$,!0).set(F,J)}}};
G.defineMetadata=function(F,J){var U;if(w(J))b(U)||(U=t(U));else throw new TypeError;e(J,U,!0).set("parameters",F)};
G.hasMetadata=function(F,J,U){if(w(J))b(U)||(U=t(U));else throw new TypeError;return r(F,J,U)};
G.hasOwnMetadata=function(F,J,U){if(w(J))b(U)||(U=t(U));else throw new TypeError;return Z(F,J,U)};
G.getMetadata=function(F,J,U){if(w(J))b(U)||(U=t(U));else throw new TypeError;return O(F,J,U)};
G.getOwnMetadata=function(F,J,U){if(w(J))b(U)||(U=t(U));else throw new TypeError;return M(F,J,U)};
G.getMetadataKeys=function(F,J){if(w(F))b(J)||(J=t(J));else throw new TypeError;return T(F,J)};
G.getOwnMetadataKeys=function(F,J){if(w(F))b(J)||(J=t(J));else throw new TypeError;return E(F,J)};
G.deleteMetadata=function(F,J,U){if(w(J))b(U)||(U=t(U));else throw new TypeError;var e$=e(J,U,!1);if(!b(e$)){if(!e$.delete(F))return!1;if(e$.size>0)return!0;F=P.get(J);F.delete(U);if(F.size>0)return!0;P.delete(J);return!0}};
(function(F){if(typeof F.Reflect!=="undefined"){if(F.Reflect!==G)for(var J in G)F.Reflect[J]=G[J]}else F.Reflect=G})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(IMw||(IMw={}));var fAf=self;var pQv=[0,_.n2,_.Yj,_.n2];var C1c=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(C1c,_.Tq);var u0P=_.tt(C1c,[0,_.xj,_.J3,pQv,_.Yj,_.Ui]);var mqw=[0,_.Ps,-3,_.Ui,_.xj,_.n2,_.bdv,_.Ps,wYc,DBW,I$,_.mK,_.n2,function(){return nhE},
_.Yj],nhE=[0,_.J3,function(){return mqw},
_.xj,14,_.Ps];_.Bz(_.wE,_.pB);_.V=_.wE.prototype;_.V.start=function(){this.stop();this.usingListeners_=!1;var G=c_c(this),e=YYj(this);G&&!e&&this.JSC$11319_win_.mozRequestAnimationFrame?(this.JSC$11319_id_=_.w2(this.JSC$11319_win_,"MozBeforePaint",this.callback_),this.JSC$11319_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11319_id_=G&&e?G.call(this.JSC$11319_win_,this.callback_):this.JSC$11319_win_.setTimeout(IfE(this.callback_),20)};
_.V.stop=function(){if(this.isActive()){var G=c_c(this),e=YYj(this);G&&!e&&this.JSC$11319_win_.mozRequestAnimationFrame?i1(this.JSC$11319_id_):G&&e?e.call(this.JSC$11319_win_,this.JSC$11319_id_):this.JSC$11319_win_.clearTimeout(this.JSC$11319_id_)}this.JSC$11319_id_=null};
_.V.fire=function(){this.stop();this.JSC$11321_doAction_()};
_.V.isActive=function(){return this.JSC$11319_id_!=null};
_.V.JSC$11321_doAction_=function(){this.usingListeners_&&this.JSC$11319_id_&&i1(this.JSC$11319_id_);this.JSC$11319_id_=null;this.JSC$11319_listener_.call(this.handler_,_.JV())};
_.V.disposeInternal=function(){this.stop();_.wE.superClass_.disposeInternal.call(this)};
var c_c=function(G){G=G.JSC$11319_win_;return G.requestAnimationFrame||G.webkitRequestAnimationFrame||G.mozRequestAnimationFrame||G.oRequestAnimationFrame||G.msRequestAnimationFrame||null},YYj=function(G){G=G.JSC$11319_win_;
return G.cancelAnimationFrame||G.cancelRequestAnimationFrame||G.webkitCancelRequestAnimationFrame||G.mozCancelRequestAnimationFrame||G.oCancelRequestAnimationFrame||G.msCancelRequestAnimationFrame||null};_.Zp=function(G,e,r){_.pB.call(this);this.JSC$11322_listener_=r!=null?G.bind(r):G;this.JSC$11322_interval_=e;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11322_timer_=null};
_.K(_.Zp,_.pB);_.V=_.Zp.prototype;_.V.fire=function(G){this.args_=arguments;this.JSC$11322_timer_||this.pauseCount_?this.shouldFire_=!0:y_j(this)};
_.V.stop=function(){this.JSC$11322_timer_&&(_.O_.clearTimeout(this.JSC$11322_timer_),this.JSC$11322_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.V.pause=function(){this.pauseCount_++};
_.V.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11322_timer_||(this.shouldFire_=!1,y_j(this))};
_.V.disposeInternal=function(){_.pB.prototype.disposeInternal.call(this);this.stop()};
var y_j=function(G){G.JSC$11322_timer_=kV(function(){G.JSC$11322_timer_=null;G.shouldFire_&&!G.pauseCount_&&(G.shouldFire_=!1,y_j(G))},G.JSC$11322_interval_);
var e=G.args_;G.args_=null;G.JSC$11322_listener_.apply(null,e)};var A_j=function(G,e){this.childIterator_=G[_.O_.Symbol.iterator]();this.mapFn_=e};
A_j.prototype[Symbol.iterator]=function(){return this};
A_j.prototype.next=function(){var G=this.childIterator_.next();return{value:G.done?void 0:this.mapFn_.call(void 0,G.value),done:G.done}};
var F2c=function(G,e){return new A_j(G,e)};var J_w={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 vxF=function(G){var e=B2v(G);if(!e)throw Error("Wd`"+G);return e},B2v=function(G){var e={};
G=String(G);var r=G.charAt(0)=="#"?G:"#"+G;if(xqS.test(r))return e.hex=Me$(r),e.type="hex",e;r=qTS(G);return r.length?(e.hex=Fjp(r[0],r[1],r[2]),e.type="rgb",e):J_w&&(G=J_w[G.toLowerCase()])?(e.hex=G,e.type="named",e):null},P1y=/#(.)(.)(.)/,Me$=function(G){if(!xqS.test(G))throw Error("Yd`"+G);
G.length==4&&(G=G.replace(P1y,"#$1$1$2$2$3$3"));return G.toLowerCase()},w0S=function(G){G=Me$(G);
G=parseInt(G.slice(1),16);return[G>>16,G>>8&255,G&255]},Fjp=function(G,e,r){G=Number(G);
e=Number(e);r=Number(r);if(G!=(G&255)||e!=(e&255)||r!=(r&255))throw Error("Zd`"+G+"`"+e+"`"+r);e=G<<16|e<<8|r;return G<16?"#"+(16777216|e).toString(16).slice(1):"#"+e.toString(16)},xqS=/^#(?:[0-9a-f]{3}){1,2}$/i,UqS=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,qTS=function(G){var e=G.match(UqS);
if(e){G=Number(e[1]);var r=Number(e[2]);e=Number(e[3]);if(G>=0&&G<=255&&r>=0&&r<=255&&e>=0&&e<=255)return[G,r,e]}return[]};var zIW={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},eM=zIW;eM=zIW;var V5N,W2l,N23;V5N=function(G,e){switch(e){case 1:return G%4!=0||G%100==0&&G%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
W2l=function(G,e,r,Z,O){G=new Date(G,e,r);O=O||0;return G.valueOf()+(((Z!==void 0?Z:3)-O+7)%7-((G.getDay()+6)%7-O+7)%7)*864E5};
_.kM=function(G,e,r){typeof G==="number"?(this.date=N23(G,e||0,r||1),L2E(this,r||1)):_.PA(G)?(this.date=N23(G.getFullYear(),G.getMonth(),G.getDate()),L2E(this,G.getDate())):(this.date=new Date(_.JV()),G=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),L2E(this,G))};
N23=function(G,e,r){e=new Date(G,e,r);G>=0&&G<100&&e.setFullYear(e.getFullYear()-1900);return e};
_.V=_.kM.prototype;_.V.firstDayOfWeek_=eM.FIRSTDAYOFWEEK;_.V.firstWeekCutOffDay_=eM.FIRSTWEEKCUTOFFDAY;_.V.clone=function(){var G=new _.kM(this.date);G.firstDayOfWeek_=this.firstDayOfWeek_;G.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return G};
_.V.getFullYear=function(){return this.date.getFullYear()};
_.V.getYear=function(){return this.getFullYear()};
_.V.getMonth=function(){return this.date.getMonth()};
_.V.getDate=function(){return this.date.getDate()};
_.V.getTime=function(){return this.date.getTime()};
_.V.getDay=function(){return this.date.getDay()};
_.V.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.V.getUTCMonth=function(){return this.date.getUTCMonth()};
_.V.getUTCDate=function(){return this.date.getUTCDate()};
_.V.getUTCDay=function(){return this.date.getDay()};
_.V.getUTCHours=function(){return this.date.getUTCHours()};
_.V.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.V.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.V.set=function(G){this.date=new Date(G.getFullYear(),G.getMonth(),G.getDate())};
_.V.setFullYear=function(G){this.date.setFullYear(G)};
_.V.setYear=function(G){this.setFullYear(G)};
_.V.setMonth=function(G){this.date.setMonth(G)};
_.V.setDate=function(G){this.date.setDate(G)};
_.V.setTime=function(G){this.date.setTime(G)};
_.V.setUTCFullYear=function(G){this.date.setUTCFullYear(G)};
_.V.setUTCMonth=function(G){this.date.setUTCMonth(G)};
_.V.setUTCDate=function(G){this.date.setUTCDate(G)};
_.V.add=function(G){if(G.years||G.months){var e=this.getMonth()+G.months+G.years*12,r=this.getYear()+Math.floor(e/12);e%=12;e<0&&(e+=12);var Z=Math.min(V5N(r,e),this.getDate());this.setDate(1);this.setFullYear(r);this.setMonth(e);this.setDate(Z)}G.days&&(r=this.getYear(),e=r>=0&&r<=99?-1900:0,G=new Date((new Date(r,this.getMonth(),this.getDate(),12)).getTime()+G.days*864E5),this.setDate(1),this.setFullYear(G.getFullYear()+e),this.setMonth(G.getMonth()),this.setDate(G.getDate()),L2E(this,G.getDate()))};
_.V.JSC$11335_toIsoString=function(G){var e=this.getFullYear(),r=e<0?"-":e>=1E4?"+":"";return[r+_.rc(Math.abs(e),r?6:4),_.rc(this.getMonth()+1,2),_.rc(this.getDate(),2)].join(G?"-":"")};
_.V.equals=function(G){return!(!G||this.getYear()!=G.getYear()||this.getMonth()!=G.getMonth()||this.getDate()!=G.getDate())};
_.V.toString=function(){return this.JSC$11335_toIsoString()};
var L2E=function(G,e){G.getDate()!=e&&G.date.setUTCHours(G.date.getUTCHours()+(G.getDate()<e?1:-1))};
_.kM.prototype.valueOf=function(){return this.date.valueOf()};var d_=function(G,e,r,Z,O){this.reversed=!!e;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!r;G&&Hu(this,G,Z);this.depth=O!=void 0?O:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.Bz(d_,VQ);var Hu=function(G,e,r,Z){if(G.node=e)G.tagType=typeof r==="number"?r:G.node.nodeType!=1?0:G.reversed?-1:1;typeof Z==="number"&&(G.depth=Z)};
_.V=d_.prototype;_.V.JSC$11350_copyFrom=function(G){this.node=G.node;this.tagType=G.tagType;this.depth=G.depth;this.reversed=G.reversed;this.constrained=G.constrained};
_.V.clone=function(){return new d_(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.V.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return hQ;var G=this.node;var e=this.reversed?-1:1;if(this.tagType==e){var r=this.reversed?G.lastChild:G.firstChild;r?Hu(this,r):Hu(this,G,e*-1)}else(r=this.reversed?G.previousSibling:G.nextSibling)?Hu(this,r):Hu(this,G.parentNode,e*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(G=this.node)?Tz(G):hQ};
_.V.equals=function(G){return G.node==this.node&&(!this.node||G.tagType==this.tagType)};
_.V.splice=function(G){var e=this.node,r=this.reversed?1:-1;this.tagType==r&&(this.tagType=r*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;d_.prototype.next.call(this);this.reversed=!this.reversed;r=_.FN(arguments[0])?arguments[0]:arguments;for(var Z=r.length-1;Z>=0;Z--)_.sg(r[Z],e);_.d1(e)};var GhW=function(){},oe=function(G){for(var e=[],r=G.getTextRangeCount(),Z=0;Z<r;Z++)e.push(G.getTextRange(Z));
return e};
GhW.prototype.isReversed=function(){return!1};
GhW.prototype.getWindow=function(){return Ax(_.F$(this.JSC$11352_getStartNode()))};
var ePW=function(G,e){d_.call(this,G,e,!0)};
_.Bz(ePW,d_);var s3=function(G,e,r,Z,O){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!O;if(G){this.startNode_=G;this.startOffset_=e;this.endNode_=r;this.endOffset_=Z;if(G.nodeType==1&&G.tagName!="BR")if(G=G.childNodes,e=G[e])this.startNode_=e,this.startOffset_=0;else{G.length&&(this.startNode_=_.pf(G));var M=!0}r.nodeType==1&&((this.endNode_=r.childNodes[Z])?this.endOffset_=0:this.endNode_=r)}d_.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);M&&this.next()};
_.Bz(s3,ePW);_.V=s3.prototype;_.V.JSC$11358_getStartNode=function(){return this.startNode_};
_.V.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)};
_.V.next=function(){return this.isLast()?hQ:s3.superClass_.next.call(this)};
_.V.JSC$11350_copyFrom=function(G){this.startNode_=G.startNode_;this.endNode_=G.endNode_;this.startOffset_=G.startOffset_;this.endOffset_=G.endOffset_;this.isReversed_=G.isReversed_;s3.superClass_.JSC$11350_copyFrom.call(this,G)};
_.V.clone=function(){var G=new s3(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);G.JSC$11350_copyFrom(this);return G};var re3=function(){};
re3.prototype.__iterator__=function(){return new s3(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Qu=function(G){this.range_=G};
_.Bz(Qu,re3);var Z1v=function(G){var e=_.F$(G).createRange();if(G.nodeType==3)e.setStart(G,0),e.setEnd(G,G.length);else if(Ho(G)||G.nodeType==3){for(var r,Z=G;(r=Z.firstChild)&&(Ho(r)||r.nodeType==3);)Z=r;e.setStart(Z,0);for(Z=G;(r=Z.lastChild)&&(Ho(r)||r.nodeType==3);)Z=r;e.setEnd(Z,Z.nodeType==1?Z.childNodes.length:Z.length)}else r=G.parentNode,G=Array.prototype.indexOf.call(r.childNodes,G),e.setStart(r,G),e.setEnd(r,G+1);return e},O1S=function(G,e,r,Z){var O=_.F$(G).createRange();
O.setStart(G,e);O.setEnd(r,Z);return O};
_.V=Qu.prototype;_.V.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.V.getContainer=function(){return this.range_.commonAncestorContainer};
_.V.compareBrowserRangeEndpoints=function(G,e,r){return this.range_.compareBoundaryPoints(r==1?e==1?_.O_.Range.START_TO_START:_.O_.Range.START_TO_END:e==1?_.O_.Range.END_TO_START:_.O_.Range.END_TO_END,G)};
_.V.isCollapsed=function(){return this.range_.collapsed};
_.V.select=function(G){this.selectInternal(Ax(_.F$(this.range_.startContainer)).getSelection(),G)};
_.V.selectInternal=function(G){G.removeAllRanges();G.addRange(this.range_)};
_.V.insertNode=function(G,e){var r=this.range_.cloneRange();r.collapse(e);r.insertNode(G);r.detach();return G};
_.V.collapse=function(G){this.range_.collapse(G)};_.Bz($u,Qu);$u.prototype.selectInternal=function(G,e){!e||this.isCollapsed()?$u.superClass_.selectInternal.call(this,G,e):(G.collapse(this.range_.endContainer,this.range_.endOffset),G.extend(this.range_.startContainer,this.range_.startOffset))};_.Bz(SC,Qu);SC.prototype.compareBrowserRangeEndpoints=function(G,e,r){return SC.superClass_.compareBrowserRangeEndpoints.call(this,G,e,r)};
SC.prototype.selectInternal=function(G,e){e?G.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):G.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Mv3=function(G){return _.NS?new SC(G):_.Wz?new $u(G):new Qu(G)};var Ie=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},VvP;
_.Bz(Ie,GhW);VvP=function(G,e){var r=new Ie;r.browserRangeWrapper_=G;r.isReversed_=!!e;return r};
_.hPv=function(G){G=_.NS?new SC(Z1v(G)):_.Wz?new $u(Z1v(G)):new Qu(Z1v(G));return VvP(G)};
_.pV=function(G,e,r,Z){var O=new Ie;O.isReversed_=TpC(G,e,r,Z);if(_.Vx(G)&&!Ho(G)){var M=G.parentNode;e=Array.prototype.indexOf.call(M.childNodes,G);G=M}_.Vx(r)&&!Ho(r)&&(M=r.parentNode,Z=Array.prototype.indexOf.call(M.childNodes,r),r=M);O.isReversed_?(O.startNode_=r,O.startOffset_=Z,O.endNode_=G,O.endOffset_=e):(O.startNode_=G,O.startOffset_=e,O.endNode_=r,O.endOffset_=Z);return O};
_.V=Ie.prototype;_.V.clone=function(){var G=new Ie;G.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();G.startNode_=this.startNode_;G.startOffset_=this.startOffset_;G.endNode_=this.endNode_;G.endOffset_=this.endOffset_;G.isReversed_=this.isReversed_;return G};
_.V.JSC$11352_getType=function(){return"text"};
_.V.getBrowserRangeObject=function(){return CV(this).range_};
_.V.getTextRangeCount=function(){return 1};
_.V.getTextRange=function(){return this};
var CV=function(G){var e;if(!(e=G.browserRangeWrapper_)){e=G.JSC$11352_getStartNode();var r=G.JSC$11352_getStartOffset(),Z=G.JSC$11352_getEndNode(),O=G.JSC$11352_getEndOffset();e=_.NS?new SC(O1S(e,r,Z,O)):_.Wz?new $u(O1S(e,r,Z,O)):new Qu(O1S(e,r,Z,O));e=G.browserRangeWrapper_=e}return e};
_.V=Ie.prototype;_.V.getContainer=function(){return CV(this).getContainer()};
_.V.JSC$11352_getStartNode=function(){return this.startNode_||(this.startNode_=CV(this).range_.startContainer)};
_.V.JSC$11352_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=CV(this).range_.startOffset};
_.V.JSC$11352_getEndNode=function(){return this.endNode_||(this.endNode_=CV(this).range_.endContainer)};
_.V.JSC$11352_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=CV(this).range_.endOffset};
_.V.isReversed=function(){return this.isReversed_};
_.V.JSC$11352_containsRange=function(G,e){if(G.JSC$11352_getType()=="text"){var r=CV(this);G=CV(G);e=e&&!G.isCollapsed();G=G.range_;r=e?r.compareBrowserRangeEndpoints(G,0,1)>=0&&r.compareBrowserRangeEndpoints(G,1,0)<=0:r.compareBrowserRangeEndpoints(G,0,0)>=0&&r.compareBrowserRangeEndpoints(G,1,1)<=0}else r=!1;return r};
_.V.isCollapsed=function(){return CV(this).isCollapsed()};
_.V.JSC$11352_getText=function(){return CV(this).range_.toString()};
_.V.__iterator__=function(){return new s3(this.JSC$11352_getStartNode(),this.JSC$11352_getStartOffset(),this.JSC$11352_getEndNode(),this.JSC$11352_getEndOffset())};
_.V.select=function(){CV(this).select(this.isReversed_)};
_.V.JSC$11352_removeContents=function(){var G=CV(this).range_;G.extractContents();if(G.startContainer.hasChildNodes()&&(G=G.startContainer.childNodes[G.startOffset])){var e=G.previousSibling;dKC(G)==""&&_.d1(G);e&&dKC(e)==""&&_.d1(e)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.V.insertNode=function(G,e){G=CV(this).insertNode(G,e);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return G};
_.V.collapse=function(G){G=this.isReversed()?!G:G;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(G);G?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var Dkc=function(){};
_.Bz(Dkc,GhW);Dkc.prototype.JSC$11352_containsRange=function(G,e){var r=oe(this);G=oe(G);return(e?ZR:_.JES)(G,function(Z){return ZR(r,function(O){return O.JSC$11352_containsRange(Z,e)})})};
Dkc.prototype.insertNode=function(G,e){e?_.oi(G,this.JSC$11352_getStartNode()):_.sg(G,this.JSC$11352_getEndNode());return G};var EOn,i1S=sw().JSC$9335_document_.documentElement;EOn=i1S.requestFullscreen?"fullscreenchange":i1S.webkitRequestFullscreen?"webkitfullscreenchange":i1S.mozRequestFullScreen?"mozfullscreenchange":i1S.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var b1C=function(){var G=sw().JSC$9335_document_;return!!(G.webkitIsFullScreen||G.mozFullScreen||G.msFullscreenElement||G.fullscreenElement)};var ud=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.Bz(ud,Dkc);_.V=ud.prototype;_.V.clone=function(){var G=new ud;G.browserRanges_=_.Ai(this.browserRanges_);return G};
_.V.JSC$11352_getType=function(){return"mutli"};
_.V.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.V.getTextRangeCount=function(){return this.browserRanges_.length};
_.V.getTextRange=function(G){this.ranges_[G]||(this.ranges_[G]=VvP(Mv3(this.browserRanges_[G])));return this.ranges_[G]};
_.V.getContainer=function(){if(!this.container_){for(var G=[],e=this.getTextRangeCount(),r=0;r<e;r++)G.push(this.getTextRange(r).getContainer());this.container_=jPW.apply(null,G)}return this.container_};
var nV=function(G){G.sortedRanges_||(G.sortedRanges_=oe(G),G.sortedRanges_.sort(function(e,r){var Z=e.JSC$11352_getStartNode();e=e.JSC$11352_getStartOffset();var O=r.JSC$11352_getStartNode();r=r.JSC$11352_getStartOffset();return Z==O&&e==r?0:TpC(Z,e,O,r)?1:-1}));
return G.sortedRanges_};
_.V=ud.prototype;_.V.JSC$11352_getStartNode=function(){return nV(this)[0].JSC$11352_getStartNode()};
_.V.JSC$11352_getStartOffset=function(){return nV(this)[0].JSC$11352_getStartOffset()};
_.V.JSC$11352_getEndNode=function(){return _.pf(nV(this)).JSC$11352_getEndNode()};
_.V.JSC$11352_getEndOffset=function(){return _.pf(nV(this)).JSC$11352_getEndOffset()};
_.V.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.V.JSC$11352_getText=function(){return oe(this).map(function(G){return G.JSC$11352_getText()}).join("")};
_.V.__iterator__=function(){return new my(this)};
_.V.select=function(){var G=this.getWindow().getSelection();G.removeAllRanges();for(var e=this.getTextRangeCount(),r=0;r<e;r++)G.addRange(this.getTextRange(r).getBrowserRangeObject())};
_.V.JSC$11352_removeContents=function(){oe(this).forEach(function(G){G.JSC$11352_removeContents()})};
_.V.collapse=function(G){if(!this.isCollapsed()){var e=G?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;e.collapse(G);this.ranges_=[e];this.sortedRanges_=[e];this.browserRanges_=[e.getBrowserRangeObject()]}};
var my=function(G){this.iterators_=null;this.currentIdx_=0;G&&(this.iterators_=nV(G).map(function(e){return _.XnW(e)}));
d_.call(this,G?this.JSC$11358_getStartNode():null,!1,!0)};
_.Bz(my,ePW);_.V=my.prototype;_.V.JSC$11358_getStartNode=function(){return this.iterators_[0].JSC$11358_getStartNode()};
_.V.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.V.next=function(){for(;this.currentIdx_<this.iterators_.length;){var G=this.iterators_[this.currentIdx_],e=G.next();if(e.done)this.currentIdx_++;else return Hu(this,G.node,G.tagType,G.depth),e}return hQ};
_.V.JSC$11350_copyFrom=function(G){this.iterators_=_.Ai(G.iterators_);my.superClass_.JSC$11350_copyFrom.call(this,G)};
_.V.clone=function(){var G=new my(null);G.JSC$11350_copyFrom(this);return G};var vOw,TpC;_.z_=function(){var G=window.getSelection();return G&&vOw(G)};
vOw=function(G){var e=!1;if(G.createRange)try{var r=G.createRange()}catch(O){return null}else if(G.rangeCount){if(G.rangeCount>1){r=new ud;e=G.rangeCount;for(var Z=0;Z<e;Z++)r.browserRanges_.push(G.getRangeAt(Z));return r}r=G.getRangeAt(0);e=TpC(G.anchorNode,G.anchorOffset,G.focusNode,G.focusOffset)}else return null;return VvP(Mv3(r),e)};
_.cu=function(G,e){return _.pV(G,e,G,e)};
_.YM=function(G,e,r,Z){return _.pV(G,e,r,Z)};
TpC=function(G,e,r,Z){if(G==r)return Z<e;var O;if(G.nodeType==1&&e)if(O=G.childNodes[e])G=O,e=0;else if(_.zX(G,r))return!0;if(r.nodeType==1&&Z)if(O=r.childNodes[Z])r=O,Z=0;else if(_.zX(r,G))return!1;return(RGE(G,r)||e-Z)>0};var yu=function(){_.j7.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.CB)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.CB)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.CB)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.CB)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.CB)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.CB)(this.dispatchProgressEvent_,this)};
_.Bz(yu,_.j7);yu.prototype.abort=function(){try{this.reader_.abort()}catch(G){throw new dzS(G,"aborting read");}};
yu.prototype.getError=function(){return this.reader_.error&&new dzS(this.reader_.error,"reading file")};
yu.prototype.dispatchProgressEvent_=function(G){this.dispatchEvent(new oyn(G,this))};
yu.prototype.disposeInternal=function(){yu.superClass_.disposeInternal.call(this);delete this.reader_};
var $kC=function(G){var e=new yu,r=w53(e);e.reader_.readAsArrayBuffer(G);return r},Sbb=function(G){var e=new yu,r=w53(e);
e.reader_.readAsDataURL(G);return r},w53=function(G){var e=new BK;
G.listen("loadend",_.VU(function(r,Z){var O=Z.reader_.result,M=Z.getError();O==null||M?r.errback(M):r.callback(O);Z.dispose()},e,G));
return e};var AY=function(){_.j7.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11392_eventHandler_=new _.tP(this);this.JSC$11392_isInitialized_=!1};
_.Bz(AY,_.j7);var qbW=new _.S7("d"),tvS=new _.S7("beforedragstart"),gOW=new _.S7("dragstart"),lpw=new _.S7("beforedragmove"),RPS=new _.S7("dragmove"),jVb=new _.S7("beforedragend"),apy=new _.S7("dragend"),X5n=new _.S7("e");AY.prototype.isDragging=function(){return!!this.JSC$11392_dragger_};
var KOc=function(G,e){e.dlgGrowthDirection_=0;e.dlgDragHoverClass_=void 0;e.dlgDragPermission=0;G.dragLists_.push(e)},fpS=function(G,e){G.getHandleForDragItem_=e};
AY.prototype.init=function(){if(!this.JSC$11392_isInitialized_){for(var G=this.dragLists_.length,e=0;e<G;e++)for(var r=_.QS(this.dragLists_[e]),Z=r.length,O=0;O<Z;++O){var M=r[O],T=this.getHandleForDragItem_(M),E=_.zS(T);this.dragItemForHandle_[E]=M;this.dragItemHoverClasses_&&(this.JSC$11392_eventHandler_.listen(M,"mouseover",this.handleDragItemMouseover_),this.JSC$11392_eventHandler_.listen(M,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11392_eventHandler_.listen(T,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11392_eventHandler_.listen(T,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(M);this.JSC$11392_eventHandler_.listen(T,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11392_isInitialized_=!0}};
AY.prototype.disposeInternal=function(){this.JSC$11392_eventHandler_.dispose();for(var G=this.dragLists_.length,e=0;e<G;e++){var r=this.dragLists_[e];r.dlgGrowthDirection_=void 0;r.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;kh3(this);AY.superClass_.disposeInternal.call(this)};
var H1W=function(G,e){for(var r=G.dragLists_.length,Z=0;Z<r;Z++){var O=G.dragLists_[Z];O.dlgBounds_=$uN(O)}r=G.dragItems_.length;for(Z=0;Z<r;Z++)O=G.dragItems_[Z],O!=e&&(O.dlgBounds_=$uN(O))};
_.V=AY.prototype;
_.V.handlePotentialDragStart_=function(G){var e=_.zS(G.currentTarget);e=this.dragItemForHandle_[e];if(e.parentElement.dlgDragPermission!=2){this.currDragItem_=e;a:{e=this.currDragItem_;for(var r=e.cloneNode(!0),Z=oF("TEXTAREA",e),O=oF("TEXTAREA",r),M=0;M<Z.length;M++)O[M].value=Z[M].value;switch(e.tagName){case "TR":e=_.fl("TABLE",null,_.fl("TBODY",null,r));break a;case "TD":case "TH":e=_.fl("TABLE",null,_.fl("TBODY",null,_.fl("TR",null,r)));break a;case "TEXTAREA":r.value=e.value;default:e=r;break a}e=
void 0}this.draggerEl_=e;this.draggerElClasses_&&A8(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.F$(this.currDragItem_).body.appendChild(this.draggerEl_);r=_.Jx(this.currDragItem_);e=this.draggerEl_;Z=_.Jx(e);if(r instanceof _.yB){var T=r.y;r=r.x}nl(e,e.offsetLeft+(r-Z.x),e.offsetTop+(Number(T)-Z.y));this.JSC$11392_dragger_=new _.um(this.draggerEl_);_.HtE(this.JSC$11392_dragger_,this.hysteresisDistance_);
_.w2(this.JSC$11392_dragger_,"start",this.handleDragStart_,!1,this);_.w2(this.JSC$11392_dragger_,"end",this.handleDragEnd_,!1,this);_.w2(this.JSC$11392_dragger_,"earlycancel",this.JSC$11394_cleanup_,!1,this);this.dispatchEvent(new F5(qbW,this,G,this.currDragItem_,this.draggerEl_,this.JSC$11392_dragger_));this.JSC$11392_dragger_.startDrag(G)}};
_.V.handleDragStart_=function(G){if(this.dispatchEvent(new F5(tvS,this,G.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.tzP(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?A8(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var e=CLW(this.draggerEl_);this.draggerEl_.halfWidth=e.width/2;this.draggerEl_.halfHeight=e.height/2;e=this.draggerEl_.getBoundingClientRect();
var r=G.clientY,Z=dNn(this.JSC$11392_dragger_,G.clientX);if(Z>e.right){var O=this.currDragItem_.getBoundingClientRect();this.JSC$11392_dragger_.deltaX=Z-(Z-O.left)/O.width*e.width}r=ouw(this.JSC$11392_dragger_,r);r>e.bottom&&(this.JSC$11392_dragger_.deltaY+=r-e.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";H1W(this,this.currDragItem_);this.currDragItem_.style.display="";_.w2(this.JSC$11392_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new F5(gOW,
this,G.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11392_dragger_))}else G.preventDefault(),this.JSC$11394_cleanup_()};
_.V.handleDragMove_=function(G){var e=_.Jx(this.draggerEl_);e=new _.yB(e.x+this.draggerEl_.halfWidth,e.y+this.draggerEl_.halfHeight);a:{var r=null;if(this.currDragItem_.style.display!="none"){r=this.currDragItem_.parentNode;var Z=$uN(r);if(dkP(e,Z))break a}Z=this.dragLists_.length;for(var O=0;O<Z;O++){var M=this.dragLists_[O];if(M!=r&&dkP(e,M.dlgBounds_)){r=M;break a}}r=null}if(r){if(r==null)throw Error("$d");Z=0;O=!1;M=void 0;switch(r.dlgGrowthDirection_){case 0:Z=e.y;var T=oOy;var E=sVc;break;case 4:O=
!0;case 2:Z=e.x;T=QVn;E=sVc;break;case 5:O=!0;case 3:Z=e.x,T=IpW,E=p5l}for(var b=null,w,q=_.QS(r),t=q.length,g=0;g<t;g++){var l=q[g];if(l!=this.currDragItem_){var X=T(l.dlgBounds_);if(O){var H=CZn(l,e);M===void 0&&(M=H);E(Z,X)&&(w==void 0||H<M||H==M&&(E(X,w)||X==w))&&(b=l,w=X);H<M&&(M=H)}else E(Z,X)&&(w==void 0||E(X,w))&&(b=l,w=X)}}T=b!==null&&CZn(b,e)>M?null:b}else T=null;if(!this.dispatchEvent(new F5(lpw,this,G,this.currDragItem_,this.draggerEl_,this.JSC$11392_dragger_,e,r,T)))return!1;if(r&&r.dlgDragPermission!=
1)this.currDragItem_.parentNode==r&&_.tzP(this.currDragItem_)==T||r.insertBefore(this.currDragItem_,T),this.currDragItem_.style.display="",r.dlgDragHoverClass_&&_.m2(r,r.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",E=this.dragLists_.length,w=0;w<E;w++)Z=this.dragLists_[w],Z.dlgDragHoverClass_&&_.u1(Z,Z.dlgDragHoverClass_);r!=this.currHoverList_&&(this.currHoverList_=r,H1W(this,this.currDragItem_));this.dispatchEvent(new F5(RPS,this,G,this.currDragItem_,this.draggerEl_,this.JSC$11392_dragger_,
e,r,T));return!1};
_.V.JSC$11394_cleanup_=function(){kh3(this);this.JSC$11392_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var G=this.dragLists_.length,e=0;e<G;e++)this.dragLists_[e].dlgBounds_=null;G=this.dragItems_.length;for(e=0;e<G;e++)this.dragItems_[e].dlgBounds_=null};
_.V.handleDragEnd_=function(G){if(!this.dispatchEvent(new F5(jVb,this,G,this.currDragItem_,this.draggerEl_,this.JSC$11392_dragger_)))return!1;kh3(this);this.dispatchEvent(new F5(apy,this,G,this.currDragItem_,this.draggerEl_,this.JSC$11392_dragger_));this.JSC$11394_cleanup_();return!0};
var kh3=function(G){_.TX(G.JSC$11392_dragger_);var e=G.draggerEl_&&G.draggerEl_.parentElement;G.draggerEl_&&_.d1(G.draggerEl_);G.currDragItem_&&G.currDragItem_.style.display=="none"&&(G.origList_.insertBefore(G.currDragItem_,G.origNextItem_),G.currDragItem_.style.display="");G.currDragItemClasses_&&G.currDragItem_?fG3(G.currDragItem_,G.currDragItemClasses_||[]):G.currDragItem_&&(G.currDragItem_.style.visibility="");for(var r=G.dragLists_.length,Z=0;Z<r;Z++){var O=G.dragLists_[Z];O.dlgDragHoverClass_&&
_.u1(O,O.dlgDragHoverClass_)}e&&G.dispatchEvent(new F5(X5n,G,null,G.currDragItem_,G.draggerEl_,G.JSC$11392_dragger_))};
_.V=AY.prototype;_.V.getHandleForDragItem_=function(G){return G};
_.V.handleDragItemMouseover_=function(G){A8(G.currentTarget,this.dragItemHoverClasses_||[])};
_.V.handleDragItemMouseout_=function(G){fG3(G.currentTarget,this.dragItemHoverClasses_||[])};
_.V.handleDragItemHandleMouseover_=function(G){A8(G.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.V.handleDragItemHandleMouseout_=function(G){fG3(G.currentTarget,this.dragItemHandleHoverClasses_||[])};
var dkP=function(G,e){return G.x>e.left&&G.x<e.left+e.width&&G.y>e.top&&G.y<e.top+e.height},CZn=function(G,e){G=G.dlgBounds_;
return Math.abs(e.y-(G.top+(G.height-1)/2))},oOy=function(G){return G.top+G.height-1},QVn=function(G){return G.left+G.width-1},IpW=function(G){return G.left||0},sVc=function(G,e){return G<e},p5l=function(G,e){return G>e},F5=function(G,e,r,Z,O,M){_.qQ.call(this,G);
this.event=r;this.currDragItem=Z;this.draggerEl=O;this.JSC$11396_dragger=M};
_.Bz(F5,_.qQ);_.Bz(gE,_.pB);var ufE=new _.yB(0,0);gE.prototype.JSC$11400_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
gE.prototype.JSC$11400_onMouseMove=function(G){var e=this.containerIsActuallyContent_?ufE:oP(sw(this.containerNode_)),r=this.horizontalScrolling_?this.calculateScrollDelta(G.clientX+e.x,this.scrollBounds_.left,this.scrollBounds_.width):0,Z=this.calculateScrollDelta(G.clientY+e.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=r;this.scrollDelta_.y=Z;!(r=!r&&!Z)&&(r=this.constrainScroll_)&&(r=G.clientX+e.x,G=G.clientY+e.y,e=this.containerBounds_,r=!(e.left<=r&&e.left+e.width>=
r&&e.top<=G&&e.top+e.height>=G));r?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
gE.prototype.calculateScrollDelta=function(G,e,r){var Z=0;G<e?Z=-8:G>e+r&&(Z=8);return Z};
gE.prototype.disposeInternal=function(){gE.superClass_.disposeInternal.call(this);this.JSC$11398_eventHandler_.dispose();this.scrollTimer_.dispose()};var nOE={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"}}},JY=nOE;JY=nOE;var Bu={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 mkn=function(){},CQ=function(G){if(typeof G=="number"){var e=new mkn;
e.standardOffset_=G;var r=G;if(r==0)r="Etc/GMT";else{var Z=["Etc/GMT",r<0?"-":"+"];r=Math.abs(r);Z.push(Math.floor(r/60)%100);r%=60;r!=0&&Z.push(":",_.rc(r,2));r=Z.join("")}e.timeZoneId_=r;r=G;r==0?r="UTC":(Z=["UTC",r<0?"+":"-"],r=Math.abs(r),Z.push(Math.floor(r/60)%100),r%=60,r!=0&&Z.push(":",r),r=Z.join(""));G=ceC(G);e.tzNames_=[r,r];e.tzNamesExt_={STD_LONG_NAME_GMT:G,STD_GENERIC_LOCATION:G};e.transitions_=[];return e}e=new mkn;e.timeZoneId_=G.id;e.standardOffset_=-G.std_offset;e.tzNames_=G.names;
e.tzNamesExt_=G.names_ext;e.transitions_=G.transitions;return e},ceC=function(G){var e=["GMT"];
e.push(G<=0?"+":"-");G=Math.abs(G);e.push(_.rc(Math.floor(G/60)%100,2),":",_.rc(G%60,2));return e.join("")},Ybw=function(G,e){e=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes())/36E5;
for(var r=0;r<G.transitions_.length&&e>=G.transitions_[r];)r+=2;return r==0?0:G.transitions_[r-1]},yeS=function(G,e){G=G.standardOffset_-Ybw(G,e);
return G===-1440?0:G};var uw=function(G,e){this.patternParts_=[];this.JSC$11411_dateTimeSymbols_=e||eM;typeof G=="number"?AeP(this,G):FOP(this,G)},Jeb=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],xM=function(G){return G.getHours?G.getHours():0},FOP=function(G,e){for(GJU&&(e=e.replace(/\u200f/g,""));e;){for(var r=e,Z=0;Z<Jeb.length;++Z){var O=e.match(Jeb[Z]);
if(O){var M=O[0];e=e.substring(M.length);Z==0&&(M=="''"?M="'":(M=M.substring(1,O[1]=="'"?M.length-1:M.length),M=M.replace(/''/g,"'")));G.patternParts_.push({text:M,type:Z});break}}if(r===e)throw Error("ae`"+e);}};
uw.prototype.format=function(G,e){if(!G)throw Error("be");var r=e?(G.getTimezoneOffset()-yeS(e,G))*6E4:0,Z=r?new Date(G.getTime()+r):G,O=Z;e&&Z.getTimezoneOffset()!=G.getTimezoneOffset()&&(Z=new Date(Z.getTime()+(Z.getTimezoneOffset()-G.getTimezoneOffset())*6E4),O=new Date(G.getTime()+(r+(r>0?-864E5:864E5))));r=[];for(var M=0;M<this.patternParts_.length;++M){var T=this.patternParts_[M].text;1==this.patternParts_[M].type?r.push(BpP(this,T,G,Z,O,e)):r.push(T)}return r.join("")};
var AeP=function(G,e){if(e<4)var r=G.JSC$11411_dateTimeSymbols_.DATEFORMATS[e];else if(e<8)r=G.JSC$11411_dateTimeSymbols_.TIMEFORMATS[e-4];else if(e<12)r=G.JSC$11411_dateTimeSymbols_.DATETIMEFORMATS[e-8],r=r.replace("{1}",G.JSC$11411_dateTimeSymbols_.DATEFORMATS[e-8]),r=r.replace("{0}",G.JSC$11411_dateTimeSymbols_.TIMEFORMATS[e-8]);else if(e===12)r=G.JSC$11411_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(e===13)r=G.JSC$11411_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{AeP(G,10);return}FOP(G,r)},Pu=function(G,e){e=String(e);
G=G.JSC$11411_dateTimeSymbols_||eM;if(G.ZERODIGIT!==void 0&&!LQ4){for(var r=[],Z=0;Z<e.length;Z++){var O=e.charCodeAt(Z);r.push(48<=O&&O<=57?String.fromCharCode(G.ZERODIGIT+O-48):e.charAt(Z))}e=r.join("")}return e},LQ4=!1,GJU=!1,PZn=function(G,e,r,Z){r=r.getFullYear();
r<=0&&Z&&(r=1-r);return Pu(G,xkP(r,e))},xkP=function(G,e){e==2&&(G%=100);
G<0&&e++;return _.rc(G,e)},U3=function(G){if(!(G.getHours&&G.getSeconds&&G.getMinutes))throw Error("ce");
},Ukj=function(G,e){U3(e);
e=xM(e);return G.JSC$11411_dateTimeSymbols_.AMPMS[e>=12&&e<24?1:0]},BpP=function(G,e,r,Z,O,M){var T=e.length;
switch(e.charAt(0)){case "G":return r=Z.getFullYear()>0?1:0,T>=4?G.JSC$11411_dateTimeSymbols_.ERANAMES[r]:G.JSC$11411_dateTimeSymbols_.ERAS[r];case "y":return PZn(G,T,Z,!0);case "Y":return r=(new Date(W2l(Z.getFullYear(),Z.getMonth(),Z.getDate(),G.JSC$11411_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,G.JSC$11411_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),T==2&&(r%=100),Pu(G,xkP(r,T));case "u":return PZn(G,T,Z,!1);case "M":a:switch(r=Z.getMonth(),T){case 5:T=G.JSC$11411_dateTimeSymbols_.NARROWMONTHS[r];
break a;case 4:T=G.JSC$11411_dateTimeSymbols_.MONTHS[r];break a;case 3:T=G.JSC$11411_dateTimeSymbols_.SHORTMONTHS[r];break a;default:T=Pu(G,_.rc(r+1,T))}return T;case "k":return U3(O),Pu(G,_.rc(xM(O)||24,T));case "S":return Pu(G,(O.getMilliseconds()/1E3).toFixed(Math.min(3,T)).slice(2)+(T>3?_.rc(0,T-3):""));case "E":return r=Z.getDay(),T>=4?G.JSC$11411_dateTimeSymbols_.WEEKDAYS[r]:G.JSC$11411_dateTimeSymbols_.SHORTWEEKDAYS[r];case "a":return Ukj(G,O);case "b":return Ukj(G,O);case "B":return Ukj(G,
O);case "h":return U3(O),Pu(G,_.rc(xM(O)%12||12,T));case "K":return U3(O),Pu(G,_.rc(xM(O)%12,T));case "H":return U3(O),Pu(G,_.rc(xM(O),T));case "c":a:switch(r=Z.getDay(),T){case 5:T=G.JSC$11411_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[r];break a;case 4:T=G.JSC$11411_dateTimeSymbols_.STANDALONEWEEKDAYS[r];break a;case 3:T=G.JSC$11411_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[r];break a;default:T=Pu(G,_.rc(r,1))}return T;case "L":a:switch(r=Z.getMonth(),T){case 5:T=G.JSC$11411_dateTimeSymbols_.STANDALONENARROWMONTHS[r];
break a;case 4:T=G.JSC$11411_dateTimeSymbols_.STANDALONEMONTHS[r];break a;case 3:T=G.JSC$11411_dateTimeSymbols_.STANDALONESHORTMONTHS[r];break a;default:T=Pu(G,_.rc(r+1,T))}return T;case "Q":return r=Math.floor(Z.getMonth()/3),T<4?G.JSC$11411_dateTimeSymbols_.SHORTQUARTERS[r]:G.JSC$11411_dateTimeSymbols_.QUARTERS[r];case "d":return Pu(G,_.rc(Z.getDate(),T));case "m":return U3(O),Pu(G,_.rc(O.getMinutes?O.getMinutes():0,T));case "s":return U3(O),Pu(G,_.rc(O.getSeconds(),T));case "v":return(M||CQ(r.getTimezoneOffset())).timeZoneId_;
case "V":return G=M||CQ(r.getTimezoneOffset()),T<=2?G.timeZoneId_:Ybw(G,r)>0?G.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?G.tzNamesExt_.DST_GENERIC_LOCATION:G.tzNamesExt_.DST_GENERIC_LOCATION:G.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?G.tzNamesExt_.STD_GENERIC_LOCATION:G.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return r=W2l(O.getFullYear(),O.getMonth(),O.getDate(),G.JSC$11411_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,G.JSC$11411_dateTimeSymbols_.FIRSTDAYOFWEEK),Pu(G,_.rc(Math.floor(Math.round((r-(new Date((new Date(r)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,T));case "z":return G=M||CQ(r.getTimezoneOffset()),T<4?G.tzNames_[Ybw(G,r)>0?2:0]:G.tzNames_[Ybw(G,r)>0?3:1];case "Z":return e=M||CQ(r.getTimezoneOffset()),T<4?(T=-yeS(e,r),G=[T<0?"-":"+"],T=Math.abs(T),G.push(_.rc(Math.floor(T/60)%100,2),_.rc(T%60,2)),T=G.join("")):T=Pu(G,ceC(yeS(e,r))),T;default:return""}};var zPE=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,WOE=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,sM4=function(G){this.patternParts_=[];this.JSC$11420_dateTimeSymbols_=eM;if(typeof G=="number"){G>11&&(G=10);if(G<4)var e=this.JSC$11420_dateTimeSymbols_.DATEFORMATS[G];else G<8?e=this.JSC$11420_dateTimeSymbols_.TIMEFORMATS[G-4]:(e=this.JSC$11420_dateTimeSymbols_.DATETIMEFORMATS[G-8],e=e.replace("{1}",this.JSC$11420_dateTimeSymbols_.DATEFORMATS[G-8]),e=e.replace("{0}",this.JSC$11420_dateTimeSymbols_.TIMEFORMATS[G-
8]));Npv(this,e)}else Npv(this,G)},Npv=function(G,e){for(var r=!1,Z="",O=0;O<e.length;O++){var M=e.charAt(O);
if(zPE.test(M))for(Z.length>0&&(G.patternParts_.push({text:Z,count:0,abutStart:!1,numeric:!1}),Z=""),G.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});O<e.length-1&&e.charAt(O+1)==" ";)O++;else if(r)M=="'"?O+1<e.length&&e.charAt(O+1)=="'"?(Z+="'",O++):r=!1:Z+=M;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(M)>=0){Z.length>0&&(G.patternParts_.push({text:Z,count:0,abutStart:!1,numeric:!1}),Z="");for(var T=e.charAt(O),E=O+1;E<e.length&&e.charAt(E)==T;)E++;T=E-O;T<=0?E=!1:(E="MydhHmsSDkK".indexOf(M),
E=E>0||E==0&&T<3);G.patternParts_.push({text:M,count:T,abutStart:!1,numeric:E});O+=T-1}else M=="'"?O+1<e.length&&e.charAt(O+1)=="'"?(Z+="'",O++):r=!0:Z+=M}Z.length>0&&G.patternParts_.push({text:Z,count:0,abutStart:!1,numeric:!1});e=!1;for(r=0;r<G.patternParts_.length;r++)G.patternParts_[r].numeric?!e&&r+1<G.patternParts_.length&&G.patternParts_[r+1].numeric&&(e=!0,G.patternParts_[r].abutStart=!0):e=!1};
sM4.prototype.parse=function(G,e,r){var Z=!1,O=!1;r&&(Z=r.predictive||!1,O=r.validate||!1);if(Z)for(r=0;r<this.patternParts_.length;r++){var M=this.patternParts_[r];if(M.count>0&&("abBhHkKm".indexOf(M.text.charAt(0))<0||M.count>2||M.abutStart))throw Error("de`"+M.text.charAt(0));}M=new LOE;r=[0];M.dayPeriodIndex=-1;for(var T=0;T<this.patternParts_.length&&!(Z&&r[0]>=G.length);T++){if(this.patternParts_[T].count==0){a:{var E=G;var b=r,w=this.patternParts_[T],q=Z;if(w.text.match(zPE)!=null){if(w=b[0],
G_j(E,b),b[0]>w){E=!0;break a}}else{if(E.indexOf(w.text,b[0])==b[0]){b[0]+=w.text.length;E=!0;break a}if(q&&w.text.indexOf(E.substring(b[0]))==0){b[0]+=E.length-b[0];E=!0;break a}}E=!1}if(E)continue;return 0}if(this.patternParts_[T].abutStart){a:{b=G;w=r;q=T;var t=w[0],g=0;for(E=q;E<this.patternParts_.length;E++){var l=this.patternParts_[E],X=l.count;if(X===0)break;if(E==q&&(X-=g,g++,X==0)){E=0;break a}var H=E>q&&l.numeric,I=w[0];if(!eLn(this,b,w,l,X,M,!1)||H&&w[0]-I<X)E=q-1,w[0]=t}E-=q}if(E<=0)return 0;
T+=E-1}else if(!eLn(this,G,r,this.patternParts_[T],0,M,Z))return 0}a:{G=O;if(e==null)throw Error("ee");M.era!=void 0&&M.year!=void 0&&M.era==0&&M.year>0&&(M.year=-(M.year-1));M.year!=void 0&&e.setFullYear(M.year);Z=e.getDate();e.setDate(1);M.month!=void 0&&e.setMonth(M.month);M.day!=void 0?e.setDate(M.day):(O=V5N(e.getFullYear(),e.getMonth()),e.setDate(Z>O?O:Z));typeof e.setHours==="function"&&(M.hours==void 0&&(M.hours=e.getHours()),M.hours<12&&(M.ampm!=void 0&&M.ampm>0?M.hours+=12:M.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(M.dayPeriodName)||["night1","night2"].includes(M.dayPeriodName)&&M.hours>=6)&&(M.hours+=12)),e.setHours(M.hours));typeof e.setMinutes==="function"&&M.minutes!=void 0&&e.setMinutes(M.minutes);typeof e.setSeconds==="function"&&M.seconds!=void 0&&e.setSeconds(M.seconds);typeof e.setMilliseconds==="function"&&M.milliseconds!=void 0&&e.setMilliseconds(M.milliseconds);if(G&&(M.year&&M.year!=e.getFullYear()||M.month&&M.month!=
e.getMonth()||M.day&&M.day!=e.getDate()||M.hours&&M.hours>=24||M.minutes&&M.minutes>=60||M.seconds&&M.seconds>=60||M.milliseconds&&M.milliseconds>=1E3))e=!1;else{M.tzOffset!=void 0&&e.setTime(e.getTime()+(M.tzOffset-e.getTimezoneOffset())*60*1E3);M.ambiguousYear&&(G=new Date,G.setFullYear(G.getFullYear()-80),e.getTime()<G.getTime()&&e.setFullYear(G.getFullYear()+100));if(M.dayOfWeek!=void 0)if(M.day==void 0)M=(7+M.dayOfWeek-e.getDay())%7,M>3&&(M-=7),G=e.getMonth(),e.setDate(e.getDate()+M),e.getMonth()!=
G&&e.setDate(e.getDate()+(M>0?-7:7));else if(M.dayOfWeek!=e.getDay()){e=!1;break a}e=!0}}return e?r[0]:0};
var eLn=function(G,e,r,Z,O,M,T){G_j(e,r);if(Z.numeric&&O>0&&r[0]+O>e.length)return!1;switch(Z.text.charAt(0)){case "G":return zR(e,r,[G.JSC$11420_dateTimeSymbols_.ERAS],function(E){return M.era=E}),!0;
case "M":case "L":return rIb(G,e,r,O,Z,M);case "E":return zR(e,r,[G.JSC$11420_dateTimeSymbols_.WEEKDAYS,G.JSC$11420_dateTimeSymbols_.SHORTWEEKDAYS],function(E){return M.dayOfWeek=E});
case "B":case "b":return O=[],G=[[].concat(G.JSC$11420_dateTimeSymbols_.AMPMS)],O.push("isAm"),O.push("isPm"),e=zR(e,r,G,function(E){return M.dayPeriodIndex=E},T),M.dayPeriodName=O[M.dayPeriodIndex],T?e:!0;
case "a":return e=zR(e,r,[G.JSC$11420_dateTimeSymbols_.AMPMS],function(E){return M.ampm=E},T),T?e:!0;
case "y":return ZW3(G,e,r,Z,O,M);case "Q":return zR(e,r,[G.JSC$11420_dateTimeSymbols_.QUARTERS,G.JSC$11420_dateTimeSymbols_.SHORTQUARTERS],function(E){M.month=E*3;M.day=1});
case "d":return Wu(G,e,r,Z,O,function(E){M.day=E}),!0;
case "S":return OWP(G,e,r,O,M);case "h":case "K":case "H":case "k":return e=Wu(G,e,r,Z,O,function(E){M.hours=Z.text.charAt(0)==="h"&&E===12?0:E},T),T?e:!0;
case "m":return e=Wu(G,e,r,Z,O,function(E){M.minutes=E},T),T?e:!0;
case "s":return Wu(G,e,r,Z,O,function(E){M.seconds=E}),!0;
case "z":case "Z":case "v":return MVn(G,e,r,M);default:return!1}},ZW3=function(G,e,r,Z,O,M){var T=r[0];
O=N4(G,e,r,O);O===null&&(O=N4(G,e,r,0,!0));if(O===null)return!1;O>=0&&r[0]-T==2&&Z.count==2?(G=O,e=(new Date).getFullYear()-80,r=e%100,M.ambiguousYear=G==r,G+=Math.floor(e/100)*100+(G<r?100:0),M.year=G):M.year=O;return!0},rIb=function(G,e,r,Z,O,M){return O.numeric&&Wu(G,e,r,O,Z,function(T){M.month=T-1})?!0:zR(e,r,[G.JSC$11420_dateTimeSymbols_.MONTHS,
G.JSC$11420_dateTimeSymbols_.STANDALONEMONTHS,G.JSC$11420_dateTimeSymbols_.SHORTMONTHS,G.JSC$11420_dateTimeSymbols_.STANDALONESHORTMONTHS],function(T){M.month=T})},OWP=function(G,e,r,Z,O){var M=r[0];
G=N4(G,e,r,Z);if(G===null)return!1;r=r[0]-M;O.milliseconds=r<3?G*Math.pow(10,3-r):Math.round(G/Math.pow(10,r-3));return!0},MVn=function(G,e,r,Z){e.indexOf("GMT",r[0])==r[0]&&(r[0]+=3);
if(r[0]>=e.length)return Z.tzOffset=0,!0;var O=r[0],M=N4(G,e,r,0,!0);if(M===null)return!1;if(r[0]<e.length&&e.charAt(r[0])==":"){var T=M*60;r[0]++;M=N4(G,e,r,0);if(M===null)return!1;T+=M}else T=M,T=T<24&&r[0]-O<=3?T*60:T%100+T/100*60;Z.tzOffset=-T;return!0},Wu=function(G,e,r,Z,O,M,T){T=T||!1;
var E=r[0];G=N4(G,e,r,O);if(G===null)return!1;if(T&&r[0]-E<Z.count){if(r[0]<e.length)return!1;G*=Math.pow(10,Z.count-(r[0]-E))}M(G);return!0},zR=function(G,e,r,Z,O){O=O||!1;
for(var M,T=0;T<r.length;T++){M=e;for(var E=r[T],b=O,w=0,q=null,t=G.substring(M[0]).toLowerCase(),g=0;g<E.length;g++){var l=E[g].toLowerCase();if(b&&l.indexOf(t)==0){w=t.length;q=g;break}E[g].length>w&&t.indexOf(l)==0&&(w=E[g].length,q=g)}q!==null&&(M[0]+=w);M=q;if(M!==null)return Z(M),!0}return!1},G_j=function(G,e){(G=G.substring(e[0]).match(WOE))&&(e[0]+=G[0].length)},N4=function(G,e,r,Z,O){e=Z>0?e.substring(0,r[0]+Z):e;
O=O||!1;if(G.JSC$11420_dateTimeSymbols_.ZERODIGIT){Z=[];for(var M=r[0];M<e.length;M++){var T=e.charCodeAt(M)-G.JSC$11420_dateTimeSymbols_.ZERODIGIT;Z.push(0<=T&&T<=9?String.fromCharCode(T+48):e.charAt(M))}e=Z.join("")}else e=e.substring(r[0]);G=e.match(new RegExp("^"+(O?"[+-]?":"")+"\\d+"));if(!G)return null;r[0]+=G[0].length;return parseInt(G[0],10)},LOE=function(){};
LOE.prototype.ambiguousYear=!1;var VVn;
VVn={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 hLc={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}"]};
hLc={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 T8n=function(){var G={type:"unit",style:"narrow"};this.listType_=G&&G.type?G.type:"conjunction";this.listStyle_=G&&G.style?G.style:"long";this.listSymbols_=hLc;G=0;switch(this.listStyle_){case "short":G=1;break;case "narrow":G=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[G];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[G];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[G];this.listEndPattern_=
this.listSymbols_.AND_END[G];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[G];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[G];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[G];this.listEndPattern_=this.listSymbols_.OR_END[G];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[G],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[G],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[G],this.listEndPattern_=this.listSymbols_.UNIT_END[G]}};
T8n.prototype.format=function(G){return Dow(this,G)};
var Dow=function(G,e){var r=e.length;switch(r){case 0:return"";case 1:return String(e[0]);case 2:return G.listTwoPattern_.replace("{0}",String(e[0])).replace("{1}",String(e[1]))}for(var Z=G.listStartPattern_.replace("{0}",String(e[0])).replace("{1}",String(e[1])),O=2;O<r-1;++O)Z=G.listMiddlePattern_.replace("{0}",Z).replace("{1}",String(e[O]));return G.listEndPattern_.replace("{0}",Z).replace("{1}",String(e[r-1]))};var Ebw={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"},iW3=Ebw,bWc=Ebw;bWc=iW3=Ebw;var weE,LV,ej,Muy,G8,vbS;
_.Q4=function(G,e,r,Z){var O;if(O=e){a:if(e&&e.length===3){for(O=0;O<3;O++){var M=e[O];if(M<"A"||M>"Z"&&M<"a"||M>"z"){O=!1;break a}}O=!0}else O=!1;O=!O}if(O)throw new TypeError("fe");this.intlCurrencyCode_=e?e.toUpperCase():null;this.currencyStyle_=r||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_=LV(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof G==="number")switch(G){case 1:G8(this,LV(this).DECIMAL_PATTERN);break;case 2:G8(this,LV(this).SCIENTIFIC_PATTERN);break;case 3:G8(this,LV(this).PERCENT_PATTERN);break;case 4:G=LV(this).CURRENCY_PATTERN;e=["0"];if(r=
Bu[ej(this)]){r=r[0]&7;if(r>0)for(e.push("."),Z=0;Z<r;Z++)e.push("0");G=G.replace(/0.00/g,e.join(""))}G8(this,G);break;case 5:vbS(this,1);break;case 6:vbS(this,2);break;default:throw Error("ie");}else G8(this,G)};
weE=!1;LV=function(G){return G.overrideNumberFormatSymbols_||(weE?bWc:iW3)};
ej=function(G){return G.intlCurrencyCode_||LV(G).DEF_CURRENCY_CODE};
Muy=function(G,e){if(e>308)throw Error("he`"+e);G.maximumFractionDigits_=e;return G};
G8=function(G,e){var r=[0];G.positivePrefix_=$oP(G,e,r);for(var Z=r[0],O=-1,M=0,T=0,E=0,b=-1,w=e.length,q=!0;r[0]<w&&q;r[0]++)switch(e.charAt(r[0])){case "#":T>0?E++:M++;b>=0&&O<0&&b++;break;case "0":if(E>0)throw Error("oe`"+e);T++;b>=0&&O<0&&b++;break;case ",":b>0&&G.groupingArray_.push(b);b=0;break;case ".":if(O>=0)throw Error("pe`"+e);O=M+T+E;break;case "E":if(G.useExponentialNotation_)throw Error("qe`"+e);G.useExponentialNotation_=!0;G.minExponentDigits_=0;r[0]+1<w&&e.charAt(r[0]+1)=="+"&&(r[0]++,
G.useSignForPositiveExponent_=!0);for(;r[0]+1<w&&e.charAt(r[0]+1)=="0";)r[0]++,G.minExponentDigits_++;if(M+T<1||G.minExponentDigits_<1)throw Error("re`"+e);q=!1;break;default:r[0]--,q=!1}T==0&&M>0&&O>=0&&(T=O,T==0&&T++,E=M-T,M=T-1,T=1);if(O<0&&E>0||O>=0&&(O<M||O>M+T)||b==0)throw Error("se`"+e);E=M+T+E;G.maximumFractionDigits_=O>=0?E-O:0;O>=0&&(G.minimumFractionDigits_=M+T-O,G.minimumFractionDigits_<0&&(G.minimumFractionDigits_=0));G.minimumIntegerDigits_=(O>=0?O:E)-M;G.useExponentialNotation_&&(G.maximumIntegerDigits_=
M+G.minimumIntegerDigits_,G.maximumFractionDigits_==0&&G.minimumIntegerDigits_==0&&(G.minimumIntegerDigits_=1));G.groupingArray_.push(Math.max(0,b));G.decimalSeparatorAlwaysShown_=O==0||O==E;Z=r[0]-Z;G.positiveSuffix_=$oP(G,e,r);r[0]<e.length&&e.charAt(r[0])==";"?(r[0]++,G.multiplier_!=1&&(G.negativePercentSignExpected_=!0),G.negativePrefix_=$oP(G,e,r),r[0]+=Z,G.negativeSuffix_=$oP(G,e,r)):(G.negativePrefix_+=G.positivePrefix_,G.negativeSuffix_+=G.positiveSuffix_)};
vbS=function(G,e){G.compactStyle_=e;G8(G,LV(G).DECIMAL_PATTERN);G.minimumFractionDigits_=0;Muy(G,2);if(G.minimumFractionDigits_>0)throw Error("ge");G.significantDigits_=2};
_.Q4.prototype.parse=function(G,e){e=e||[0];if(this.compactStyle_!==0)throw Error("je");G=G.replace(/ |\u202f/g,"\u00a0");var r=G.indexOf(this.positivePrefix_,e[0])==e[0],Z=G.indexOf(this.negativePrefix_,e[0])==e[0];r&&Z&&(this.positivePrefix_.length>this.negativePrefix_.length?Z=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(r=!1));r?e[0]+=this.positivePrefix_.length:Z&&(e[0]+=this.negativePrefix_.length);if(G.indexOf(LV(this).INFINITY,e[0])==e[0]){e[0]+=LV(this).INFINITY.length;var O=
Infinity}else{O=G;var M=!1,T=!1,E=!1,b=-1,w=1,q=LV(this).DECIMAL_SEP,t=LV(this).GROUP_SEP,g=LV(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ke");t=t.replace(/\u202f/g,"\u00a0");for(var l="";e[0]<O.length;e[0]++){var X=O.charAt(e[0]),H=S2C(this,X);if(H>=0&&H<=9)l+=H,E=!0;else if(X==q.charAt(0)){if(M||T)break;l+=".";M=!0}else if(X==t.charAt(0)&&("\u00a0"!=t.charAt(0)||e[0]+1<O.length&&S2C(this,O.charAt(e[0]+1))>=0)){if(M||T)break}else if(X==g.charAt(0)){if(T)break;l+="E";T=!0;b=e[0]}else if(X==
"+"||X=="-"){if(E&&b!=e[0]-1)break;l+=X}else if(this.multiplier_==1&&X==LV(this).PERCENT.charAt(0)){if(w!=1)break;w=100;if(E){e[0]++;break}}else if(this.multiplier_==1&&X==LV(this).PERMILL.charAt(0)){if(w!=1)break;w=1E3;if(E){e[0]++;break}}else break}this.multiplier_!=1&&(w=this.multiplier_);O=parseFloat(l)/w}if(r){if(G.indexOf(this.positiveSuffix_,e[0])!=e[0])return NaN;e[0]+=this.positiveSuffix_.length}else if(Z){if(G.indexOf(this.negativeSuffix_,e[0])!=e[0])return NaN;e[0]+=this.negativeSuffix_.length}return Z?
-O:O};
_.Q4.prototype.format=function(G){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("le");if(isNaN(G))return LV(this).NAN;var e=[];var r=G;if(this.compactStyle_==0)r=rh;else{r=Math.abs(r);var Z=q2W(this,r<=1?0:tVE(r)).divisorBase;r=q2W(this,Z+tVE(gbE(this,ZO(r,-Z)).intValue))}G=ZO(G,-r.divisorBase);(Z=G<0||G==0&&1/G<0)?r.negative_prefix?e.push(r.negative_prefix):(e.push(r.prefix),e.push(this.negativePrefix_)):(e.push(r.prefix),e.push(this.positivePrefix_));if(isFinite(G))if(G*=
Z?-1:1,G*=this.multiplier_,this.useExponentialNotation_){var O=G;if(O==0)lVl(this,O,this.minimumIntegerDigits_,e),RLP(this,0,e);else{var M=Math.floor(Math.log(O)/Math.log(10)+2E-15);O=ZO(O,-M);var T=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(T=M%this.maximumIntegerDigits_,T<0&&(T=this.maximumIntegerDigits_+T),O=ZO(O,T),M-=T,T=1):this.minimumIntegerDigits_<1?(M++,O=ZO(O,-1)):(M-=this.minimumIntegerDigits_-1,O=ZO(O,this.minimumIntegerDigits_-
1));lVl(this,O,T,e);RLP(this,M,e)}}else lVl(this,G,this.minimumIntegerDigits_,e);else e.push(LV(this).INFINITY);Z?r.negative_suffix?e.push(r.negative_suffix):(isFinite(G)&&e.push(r.suffix),e.push(this.negativeSuffix_)):(isFinite(G)&&e.push(r.suffix),e.push(this.positiveSuffix_));return e.join("")};
var gbE=function(G,e){var r=ZO(e,G.maximumFractionDigits_);G.significantDigits_>0&&(r=jHS(r,G.significantDigits_,G.maximumFractionDigits_));r=Math.round(r);if(isFinite(r)){var Z=Math.floor(ZO(r,-G.maximumFractionDigits_));r=Math.floor(r-ZO(Z,G.maximumFractionDigits_));if(r<0||r>=ZO(1,G.maximumFractionDigits_))Z=Math.round(e),r=0}else Z=e,r=0;return{intValue:Z,fracValue:r}},lVl=function(G,e,r,Z){if(G.minimumFractionDigits_>G.maximumFractionDigits_)throw Error("le");
Z||(Z=[]);e=gbE(G,e);var O=e.intValue,M=e.fracValue,T=G.minimumFractionDigits_>0||M>0||!1;e=G.minimumFractionDigits_;T&&(e=G.minimumFractionDigits_);for(var E="",b=O;b>1E20;)E="0"+E,b=Math.round(ZO(b,-1));E=b+E;var w=LV(G).DECIMAL_SEP;b=LV(G).ZERO_DIGIT.codePointAt(0);var q=E.length,t=0;if(O>0||r>0){for(O=q;O<r;O++)Z.push(String.fromCodePoint(b));if(G.groupingArray_.length>=2)for(r=1;r<G.groupingArray_.length;r++)t+=G.groupingArray_[r];r=q-t;if(r>0){O=G.groupingArray_;t=q=0;for(var g,l=LV(G).GROUP_SEP,
X=E.length,H=0;H<X;H++)if(Z.push(String.fromCodePoint(b+Number(E.charAt(H)))),X-H>1)if(g=O[t],H<r){var I=r-H;(g===1||g>0&&I%g===1)&&Z.push(l)}else t<O.length&&(H===r?t+=1:g===H-r-q+1&&(Z.push(l),q+=g,t+=1))}else{r=E;E=G.groupingArray_;O=LV(G).GROUP_SEP;g=r.length;l=[];for(q=E.length-1;q>=0&&g>0;q--){t=E[q];for(X=0;X<t&&g-X-1>=0;X++)l.push(String.fromCodePoint(b+Number(r.charAt(g-X-1))));g-=t;g>0&&l.push(O)}Z.push.apply(Z,l.reverse())}}else T||Z.push(String.fromCodePoint(b));(G.decimalSeparatorAlwaysShown_||
T)&&Z.push(w);M=String(M);T=M.split("e+");T.length==2&&(M=String(jHS(parseFloat(T[0]),G.significantDigits_,1)),M=M.replace(".",""),M+=(0,_.Zmn)("0",parseInt(T[1],10)-M.length+1));G.maximumFractionDigits_+1>M.length&&(M="1"+(0,_.Zmn)("0",G.maximumFractionDigits_-M.length)+M);for(G=M.length;M.charAt(G-1)=="0"&&G>e+1;)G--;for(e=1;e<G;e++)Z.push(String.fromCodePoint(b+Number(M.charAt(e))))},RLP=function(G,e,r){r.push(LV(G).EXP_SYMBOL);
e<0?(e=-e,r.push(LV(G).MINUS_SIGN)):G.useSignForPositiveExponent_&&r.push(LV(G).PLUS_SIGN);e=""+e;for(var Z=LV(G).ZERO_DIGIT,O=e.length;O<G.minExponentDigits_;O++)r.push(Z);G=Z.codePointAt(0)-aVE;for(Z=0;Z<e.length;Z++)r.push(String.fromCodePoint(G+e.codePointAt(Z)))},S2C=function(G,e){e=e.codePointAt(0);
if(48<=e&&e<58)return e-48;G=LV(G).ZERO_DIGIT.codePointAt(0);return G<=e&&e<G+10?e-G:-1},aVE="0".codePointAt(0),$oP=function(G,e,r){for(var Z="",O=!1,M=e.length;r[0]<M;r[0]++){var T=e.charAt(r[0]);
if(T=="'")r[0]+1<M&&e.charAt(r[0]+1)=="'"?(r[0]++,Z+="'"):O=!O;else if(O)Z+=T;else switch(T){case "#":case "0":case ",":case ".":case ";":return Z;case "\u00a4":if(r[0]+1<M&&e.charAt(r[0]+1)=="\u00a4")r[0]++,Z+=ej(G);else switch(G.currencyStyle_){case 0:T=ej(G);Z+=T in Bu?Bu[T][1]:T;break;case 2:T=ej(G);var E=Bu[T];Z+=E?T==E[1]?T:T+" "+E[1]:T;break;case 1:T=ej(G),Z+=T in Bu?Bu[T][2]:T}break;case "%":if(!G.negativePercentSignExpected_&&G.multiplier_!=1)throw Error("me");if(G.negativePercentSignExpected_&&
G.multiplier_!=100)throw Error("ne");G.multiplier_=100;G.negativePercentSignExpected_=!1;Z+=LV(G).PERCENT;break;case "\u2030":if(!G.negativePercentSignExpected_&&G.multiplier_!=1)throw Error("me");if(G.negativePercentSignExpected_&&G.multiplier_!=1E3)throw Error("ne");G.multiplier_=1E3;G.negativePercentSignExpected_=!1;Z+=LV(G).PERMILL;break;default:Z+=T}}return Z},rh={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},q2W=function(G,e){G=G.compactStyle_==1?JY.COMPACT_DECIMAL_SHORT_PATTERN:JY.COMPACT_DECIMAL_LONG_PATTERN;G==null&&(G=JY.COMPACT_DECIMAL_SHORT_PATTERN);if(e<3)return rh;e=Math.min(14,e);var r=G[ZO(1,e)];for(--e;!r&&e>=3;)r=G[ZO(1,e)],e--;if(!r)return rh;r=r.other;var Z=G="",O=r.indexOf(";");O>=0&&(r=r.substring(0,O),O=r.substring(O+1))&&(Z=/([^0]*)(0+)(.*)/.exec(O),G=Z[1],Z=Z[3]);return r&&r!="0"?(r=/([^0]*)(0+)(.*)/.exec(r))?{divisorBase:e+
1-(r[2].length-1),negative_prefix:G,negative_suffix:Z,prefix:r[1],suffix:r[3]}:rh:rh},tVE=function(G){if(!isFinite(G))return G>0?G:0;
for(var e=0;(G/=10)>=1;)e++;return e},ZO=function(G,e){if(!G||!isFinite(G)||e==0)return G;
G=String(G).split("e");return parseFloat(G[0]+"e"+(parseInt(G[1]||0,10)+e))},Xev=function(G,e){return G&&isFinite(G)?ZO(Math.round(ZO(G,e)),-e):G},jHS=function(G,e,r){if(!G)return G;
e=e-tVE(G)-1;return e<-r?Xev(G,-r):Xev(G,e)};var Kvy=function(G){return G%10==1&&G%100!=11?"one":G%10==2&&G%100!=12?"two":G%10==3&&G%100!=13?"few":"other"},fVE=Kvy;
fVE=Kvy;var k_S=function(G,e){var r=G|0;if(void 0===e){e=Math;var Z=e.min,O=G+"",M=O.indexOf(".");e=Z.call(e,M===-1?0:O.length-M-1,3)}Z=Math.pow(10,e);G={v:e,f:(G*Z|0)%Z};return r==1&&G.v==0?"one":"other"},s6=k_S;
s6=k_S;var sHn=function(G){this.JSC$11463_pattern_=G;this.parsedPattern_=this.literals_=this.initialLiterals_=null;G=iW3;var e=JY;if(HWP!==G||doC!==e)HWP=G,doC=e,oby=new _.Q4(1);this.numberFormatter_=oby},HWP=null,doC=null,oby=null,QHn=RegExp("'([{}#].*?)'","g"),IVl=RegExp("''","g");
sHn.prototype.format=function(G){if(this.JSC$11463_pattern_){this.initialLiterals_=[];var e=peE(this,this.JSC$11463_pattern_);this.parsedPattern_=Ctv(this,e);this.JSC$11463_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Ai(this.initialLiterals_),e=[],uKS(this,this.parsedPattern_,G,!1,e),G=e.join("");this.literals_.length>0;)G=G.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else G="";return G};
var uKS=function(G,e,r,Z,O){for(var M=0;M<e.length;M++)switch(e[M].type){case 4:O.push(e[M].value);break;case 3:var T=e[M].value;var E=G,b=O,w=r[T];w===void 0?b.push("Undefined parameter - "+T):(E.literals_.push(w),b.push(E.buildPlaceholder_(E.literals_)));break;case 2:T=e[M].value;E=G;b=r;w=Z;var q=O,t=T.argumentIndex;b[t]===void 0?q.push("Undefined parameter - "+t):(t=T[b[t]],t===void 0&&(t=T.other),uKS(E,t,b,w,q));break;case 0:T=e[M].value;nby(G,T,r,s6,Z,O);break;case 1:T=e[M].value,nby(G,T,r,
fVE,Z,O)}},nby=function(G,e,r,Z,O,M){var T=e.argumentIndex,E=e.argumentOffset,b=+r[T];
isNaN(b)?M.push("Undefined or invalid parameter - "+T):(E=b-E,T=e[r[T]],T===void 0&&(Z=Z(Math.abs(E)),T=e[Z],T===void 0&&(T=e.other)),e=[],uKS(G,T,r,O,e),r=e.join(""),O?M.push(r):(G=G.numberFormatter_.format(E),M.push(r.replace(/#/g,G))))},peE=function(G,e){var r=G.initialLiterals_,Z=G.buildPlaceholder_.bind(G);
e=e.replace(IVl,function(){r.push("'");return Z(r)});
return e=e.replace(QHn,function(O,M){r.push(M);return Z(r)})},moW=function(G){var e=0,r=[],Z=[],O=/[{}]/g;
O.lastIndex=0;for(var M;M=O.exec(G);){var T=M.index;M[0]=="}"?(r.pop(),r.length==0&&(M={type:1},M.value=G.substring(e,T),Z.push(M),e=T+1)):(r.length==0&&(e=G.substring(e,T),e!=""&&Z.push({type:0,value:e}),e=T+1),r.push("{"))}G=G.substring(e);G!=""&&Z.push({type:0,value:G});return Z},cIv=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,Y23=/^\s*(\w+)\s*,\s*selectordinal\s*,/,yIj=/^\s*(\w+)\s*,\s*select\s*,/,Ctv=function(G,e){var r=[];
e=moW(e);for(var Z=0;Z<e.length;Z++){var O={};if(0==e[Z].type)O.type=4,O.value=e[Z].value;else if(1==e[Z].type){var M=e[Z].value;switch(cIv.test(M)?0:Y23.test(M)?1:yIj.test(M)?2:/^\s*\w+\s*/.test(M)?3:5){case 2:O.type=2;O.value=AIE(G,e[Z].value);break;case 0:O.type=0;O.value=Fvy(G,e[Z].value);break;case 1:O.type=1;O.value=JIC(G,e[Z].value);break;case 3:O.type=3,O.value=e[Z].value}}r.push(O)}return r},AIE=function(G,e){var r="";
e=e.replace(yIj,function(E,b){r=b;return""});
var Z={};Z.argumentIndex=r;e=moW(e);for(var O=0;O<e.length;){var M=e[O].value;O++;var T=void 0;1==e[O].type&&(T=Ctv(G,e[O].value));Z[M.replace(/\s/g,"")]=T;O++}return Z},Fvy=function(G,e){var r="",Z=0;
e=e.replace(cIv,function(b,w,q){r=w;q&&(Z=parseInt(q,10));return""});
var O={};O.argumentIndex=r;O.argumentOffset=Z;e=moW(e);for(var M=0;M<e.length;){var T=e[M].value;M++;var E=void 0;1==e[M].type&&(E=Ctv(G,e[M].value));O[T.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=E;M++}return O},JIC=function(G,e){var r="";
e=e.replace(Y23,function(E,b){r=b;return""});
var Z={};Z.argumentIndex=r;Z.argumentOffset=0;e=moW(e);for(var O=0;O<e.length;){var M=e[O].value;O++;var T=void 0;1==e[O].type&&(T=Ctv(G,e[O].value));Z[M.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=T;O++}return Z};
sHn.prototype.buildPlaceholder_=function(G){return"\ufddf_"+(G.length-1).toString(10)+"_"};var E9S=function(){var G={style:1},e=B8W;this.style_=(G==null?void 0:G.style)||0;this.durationSymbols_=e||VVn},xo3=function(G,e){switch(e){default:case "years":return G.durationSymbols_.YEAR;
case "months":return G.durationSymbols_.MONTH;case "weeks":return G.durationSymbols_.WEEK;case "days":return G.durationSymbols_.DAY;case "hours":return G.durationSymbols_.HOUR;case "minutes":return G.durationSymbols_.MINUTE;case "seconds":return G.durationSymbols_.SECOND}},O4=function(G,e,r){a:{r=xo3(G,r);
switch(G.style_){case 1:if(r.LONG!=void 0){G=r.LONG;break a}case 2:if(r.NARROW!=void 0){G=r.NARROW;break a}default:G=r.SHORT;break a}G=void 0}return G?(new sHn("{DURATION_VALUE,plural,"+G+"}")).format({DURATION_VALUE:e}):""};
E9S.prototype.format=function(G){var e=[],r=G.years,Z=G.months,O=G.weeks,M=G.days,T=G.hours,E=G.minutes;G=G.seconds;r!=null&&e.push(O4(this,r,"years"));Z!=null&&e.push(O4(this,Z,"months"));O!=null&&e.push(O4(this,O,"weeks"));M!=null&&e.push(O4(this,M,"days"));T!=null&&e.push(O4(this,T,"hours"));E!=null&&e.push(O4(this,E,"minutes"));G!=null&&e.push(O4(this,G,"seconds"));return(new T8n).format(e)};var Pt3;
Pt3={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 rvN=function(){this.rdtfSymbols_=UoW||Pt3;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
rvN.prototype.format=function(G,e){a:{e=zLc(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[""+G])G=e.R[""+G];else if(e){var r=Math.abs(G);G=(new sHn("{N,plural,"+(G>0||G==0&&1/G==Infinity?e.F:e.P)+"}")).format({N:r})}else G="";return G};
var zLc=function(G,e){switch(e){default:case 0:return G.rdtfSymbols_.YEAR;case 1:return G.rdtfSymbols_.QUARTER;case 2:return G.rdtfSymbols_.MONTH;case 3:return G.rdtfSymbols_.WEEK;case 4:return G.rdtfSymbols_.DAY;case 5:return G.rdtfSymbols_.HOUR;case 6:return G.rdtfSymbols_.MINUTE;case 7:return G.rdtfSymbols_.SECOND}};var Wvj=function(G,e,r,Z,O,M,T,E){this.x0=G;this.y0=e;this.x1=r;this.y1=Z;this.x2=O;this.y2=M;this.x3=T;this.y3=E};
Wvj.prototype.clone=function(){return new Wvj(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
Wvj.prototype.equals=function(G){return this.x0==G.x0&&this.y0==G.y0&&this.x1==G.x1&&this.y1==G.y1&&this.x2==G.x2&&this.y2==G.y2&&this.x3==G.x3&&this.y3==G.y3};
var N8c=function(G,e){if(e==0)return G.x0;if(e==1)return G.x3;var r=j_(G.x0,G.x1,e),Z=j_(G.x1,G.x2,e);G=j_(G.x2,G.x3,e);r=j_(r,Z,e);Z=j_(Z,G,e);return j_(r,Z,e)},LvE=function(G,e){var r=(e-G.x0)/(G.x3-G.x0);
if(r<=0)return 0;if(r>=1)return 1;for(var Z=0,O=1,M=0,T=0;T<8;T++){M=N8c(G,r);var E=(N8c(G,r+1E-6)-M)/1E-6;if(Math.abs(M-e)<1E-6)return r;if(Math.abs(E)<1E-6)break;else M<e?Z=r:O=r,r-=(M-e)/E}for(T=0;Math.abs(M-e)>1E-6&&T<8;T++)M<e?(Z=r,r=(r+O)/2):(O=r,r=(r+Z)/2),M=N8c(G,r);return r};var Mw=function(){_.j7.call(this);this.JSC$11484_name_="closure_frame"+G43++;this.iframesForDisposal_=[];ed3[this.JSC$11484_name_]=this},VR;
_.Bz(Mw,_.j7);var ed3={},G43=0,rZn=function(G,e){var r=sw(G);hrw(e,function(Z,O){Array.isArray(Z)||(Z=[Z]);_.rR(Z,function(M){M=r.JSC$9337_createDom("INPUT",{type:"hidden",name:O,value:M});G.appendChild(M)})})};
_.V=Mw.prototype;_.V.JSC$11486_form_=null;_.V.JSC$11486_iframe_=null;_.V.iframeName_=null;_.V.nextIframeId_=0;_.V.JSC$11486_active_=!1;_.V.complete_=!1;_.V.success_=!1;_.V.lastContent_=null;_.V.JSC$11486_lastErrorCode_=0;_.V.iframeDisposalTimer_=null;
_.V.send=function(G,e,r,Z){if(this.JSC$11486_active_)throw Error("te");G=new _.nO(G);e=e?e.toUpperCase():"GET";r&&_.Tj(G);VR||(VR=_.fl("FORM"),VR.acceptCharset="utf-8",r=VR.style,r.position="absolute",r.visibility="hidden",r.top=r.left="-10px",r.width=r.height="10px",r.overflow="hidden",document.body.appendChild(VR));this.JSC$11486_form_=VR;e=="GET"&&rZn(this.JSC$11486_form_,G.JSC$10041_queryData_);Z&&rZn(this.JSC$11486_form_,Z);r=G.toString();r=Faa(r);Z=this.JSC$11486_form_;r=_.x$(Cj(r));r!==void 0&&
(Z.action=r);this.JSC$11486_form_.method=e;Zxv(this);OxC(this)};
_.V.abort=function(G){if(this.JSC$11486_active_){var e=h9(this);if(e)if(gT(e))e.removeAllListeners(void 0);else if(e=lG(e)){var r=0,Z;for(Z in e.listeners)for(var O=e.listeners[Z].concat(),M=0;M<O.length;++M)i1(O[M])&&++r}this.success_=this.JSC$11486_active_=this.complete_=!1;this.JSC$11486_lastErrorCode_=G||7;this.dispatchEvent("abort");MMj(this)}};
_.V.disposeInternal=function(){this.JSC$11486_active_&&this.abort();Mw.superClass_.disposeInternal.call(this);this.JSC$11486_iframe_&&VMy(this);OxC(this);this.JSC$11486_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11486_form_=null;this.JSC$11486_lastErrorCode_=0;delete ed3[this.JSC$11484_name_]};
_.V.isComplete=function(){return this.complete_};
_.V.isSuccess=function(){return this.success_};
_.V.isActive=function(){return this.JSC$11486_active_};
_.V.getResponseText=function(){return this.lastContent_};
_.V.getLastError=function(){return _.nZn(this.JSC$11486_lastErrorCode_)};
var Zxv=function(G){G.JSC$11486_active_=!0;G.complete_=!1;G.JSC$11486_lastErrorCode_=0;G.iframeName_=G.JSC$11484_name_+"_"+(G.nextIframeId_++).toString(36);G.JSC$11486_iframe_=sw(G.JSC$11486_form_).JSC$9337_createDom("IFRAME",{name:G.iframeName_,id:G.iframeName_});var e=G.JSC$11486_iframe_.style;e.visibility="hidden";e.width=e.height="10px";e.display="none";_.NS?e.marginTop=e.marginLeft="-10px":(e.position="absolute",e.top=e.left="-10px");sw(G.JSC$11486_form_).JSC$9335_document_.body.appendChild(G.JSC$11486_iframe_);
e=G.iframeName_+"_inner";var r=adb(G.JSC$11486_iframe_);if(document.baseURI){var Z=Nk(e);Z='<head><base href="'+Nk(document.baseURI)+'"></head><body><iframe id="'+Z+'" name="'+Z+'"></iframe>';Z=zq(Z)}else Z=Nk(e),Z=zq('<body><iframe id="'+Z+'" name="'+Z+'"></iframe>');r.write(Lj(Z));_.w2(r.getElementById(e),"load",G.onIframeLoaded_,!1,G);Z=oF("TEXTAREA",G.JSC$11486_form_);for(var O=0,M=Z.length;O<M;O++){var T=Z[O].value;dKC(Z[O])!=T&&(_.Ii(Z[O],T),Z[O].value=T)}Z=r.importNode(G.JSC$11486_form_,!0);
Z.target=e;Z.action=G.JSC$11486_form_.action;r.body.appendChild(Z);O=oF("SELECT",G.JSC$11486_form_);M=oF("SELECT",Z);T=0;for(var E=O.length;T<E;T++)for(var b=oF("OPTION",O[T]),w=oF("OPTION",M[T]),q=0,t=b.length;q<t;q++)w[q].selected=b[q].selected;O=oF("INPUT",G.JSC$11486_form_);M=oF("INPUT",Z);T=0;for(E=O.length;T<E;T++)if(O[T].type=="file"&&O[T].value!=M[T].value){G.JSC$11486_form_.target=e;Z=G.JSC$11486_form_;break}try{G.errorHandled_=!1,Z.submit(),r.close(),_.Wz&&setTimeout(G.testForFirefoxSilentError_.bind(G),
250)}catch(g){_.Rb(r.getElementById(e),"load",G.onIframeLoaded_,!1,G),r.close(),T8(G,2)}};
Mw.prototype.onIframeLoaded_=function(){_.Rb(h9(this),"load",this.onIframeLoaded_,!1,this);try{var G=this.JSC$11486_iframe_?adb(h9(this)):null;this.complete_=!0;this.JSC$11486_active_=!1;try{var e=G.body;this.lastContent_=e.textContent||e.innerText}catch(O){var r=1}var Z;r||typeof this.errorChecker_!="function"||(Z=this.errorChecker_(G))&&(r=4);r?T8(this,r):(this.success_=!0,this.JSC$11486_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),MMj(this))}catch(O){T8(this,1)}};
var T8=function(G,e){G.errorHandled_||(G.success_=!1,G.JSC$11486_active_=!1,G.complete_=!0,G.JSC$11486_lastErrorCode_=e,G.dispatchEvent("complete"),G.dispatchEvent("error"),MMj(G),G.errorHandled_=!0)},MMj=function(G){VMy(G);
OxC(G);G.JSC$11486_form_=null;G.dispatchEvent("ready")},VMy=function(G){var e=G.JSC$11486_iframe_;
e&&(e.onreadystatechange=null,e.onload=null,e.onerror=null,G.iframesForDisposal_.push(e));G.iframeDisposalTimer_&&(clearTimeout(G.iframeDisposalTimer_),G.iframeDisposalTimer_=null);_.Wz?G.iframeDisposalTimer_=setTimeout(G.disposeIframes_.bind(G),2E3):G.disposeIframes_();G.JSC$11486_iframe_=null;G.iframeName_=null};
Mw.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var G=this.iframesForDisposal_.pop();_.d1(G)}};
var OxC=function(G){G.JSC$11486_form_&&G.JSC$11486_form_==VR&&_.dc(G.JSC$11486_form_)},h9=function(G){return G.JSC$11486_iframe_?adb(G.JSC$11486_iframe_).getElementById(G.iframeName_+"_inner"):null};
Mw.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11486_active_){var G=this.JSC$11486_iframe_?adb(h9(this)):null;G&&!u$s(G,"documentUri")?(_.Rb(h9(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?T8(this,3):T8(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.DO=function(G){return G=="\r"||G=="\n"||G==" "||G=="\t"};var hdb;_.E4=function(G){this.errorMessage_=null;this.result_=[];this.JSC$11488_buffer_="";this.stack_=[];this.JSC$11488_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!G||!G.deliverMessageAsRawString)};
hdb={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};_.E4.prototype.isInputValid=function(){return this.streamState_!=3};
_.E4.prototype.done=function(){return this.streamState_===2};
var i_=function(G,e,r){G.streamState_=3;G.errorMessage_="The stream is broken @"+G.JSC$11488_pos_+"/"+r+". With input:\n"+e;throw Error(G.errorMessage_);};
_.E4.prototype.acceptsBinaryInput=function(){return!1};
_.E4.prototype.parse=function(G){function e(){for(;g<G.length;)if(_.DO(G[g]))g++,M.JSC$11488_pos_++;else break;return g<w}
function r(){for(var X;;){X=G[g++];if(!X)break;M.JSC$11488_pos_++;switch(M.state_){case b.INIT:X==="{"?M.state_=b.OBJECT_OPEN:X==="["?M.state_=b.ARRAY_OPEN:_.DO(X)||i_(M,G,g);continue;case b.KEY_START:case b.OBJECT_OPEN:if(_.DO(X))continue;if(M.state_===b.KEY_START)T.push(b.KEY_END);else if(X==="}"){O("{}");M.state_=Z();continue}else T.push(b.OBJECT_END);X==='"'?M.state_=b.STRING:i_(M,G,g);continue;case b.KEY_END:case b.OBJECT_END:if(_.DO(X))continue;X===":"?(M.state_===b.OBJECT_END&&(T.push(b.OBJECT_END),
M.depth_++),M.state_=b.VALUE):X==="}"?(M.depth_--,O(),M.state_=Z()):X===","?(M.state_===b.OBJECT_END&&T.push(b.OBJECT_END),M.state_=b.KEY_START):i_(M,G,g);continue;case b.ARRAY_OPEN:case b.VALUE:if(_.DO(X))continue;if(M.state_===b.ARRAY_OPEN)if(M.depth_++,M.state_=b.VALUE,X==="]"){M.depth_--;if(M.depth_===0){M.state_=b.ARRAY_END;return}O("[]");M.state_=Z();continue}else T.push(b.ARRAY_END);X==='"'?M.state_=b.STRING:X==="{"?M.state_=b.OBJECT_OPEN:X==="["?M.state_=b.ARRAY_OPEN:X==="t"?M.state_=b.TRUE1:
X==="f"?M.state_=b.FALSE1:X==="n"?M.state_=b.NULL1:X!=="-"&&("0123456789".indexOf(X)!==-1?M.state_=b.NUM_DIGIT:i_(M,G,g));continue;case b.ARRAY_END:if(X===",")T.push(b.ARRAY_END),M.state_=b.VALUE,M.depth_===1&&(t=g);else if(X==="]"){M.depth_--;if(M.depth_===0)return;O();M.state_=Z()}else if(_.DO(X))continue;else i_(M,G,g);continue;case b.STRING:var H=g;a:for(;;){for(;M.unicodeCount_>0;)if(X=G[g++],M.unicodeCount_===4?M.unicodeCount_=0:M.unicodeCount_++,!X)break a;if(X==='"'&&!M.slashed_){M.state_=
Z();break}if(X==="\\"&&!M.slashed_&&(M.slashed_=!0,X=G[g++],!X))break;if(M.slashed_)if(M.slashed_=!1,X==="u"&&(M.unicodeCount_=1),X=G[g++])continue;else break;E.lastIndex=g;X=E.exec(G);if(!X){g=G.length+1;break}g=X.index+1;X=G[X.index];if(!X)break}M.JSC$11488_pos_+=g-H;continue;case b.TRUE1:if(!X)continue;X==="r"?M.state_=b.TRUE2:i_(M,G,g);continue;case b.TRUE2:if(!X)continue;X==="u"?M.state_=b.TRUE3:i_(M,G,g);continue;case b.TRUE3:if(!X)continue;X==="e"?M.state_=Z():i_(M,G,g);continue;case b.FALSE1:if(!X)continue;
X==="a"?M.state_=b.FALSE2:i_(M,G,g);continue;case b.FALSE2:if(!X)continue;X==="l"?M.state_=b.FALSE3:i_(M,G,g);continue;case b.FALSE3:if(!X)continue;X==="s"?M.state_=b.FALSE4:i_(M,G,g);continue;case b.FALSE4:if(!X)continue;X==="e"?M.state_=Z():i_(M,G,g);continue;case b.NULL1:if(!X)continue;X==="u"?M.state_=b.NULL2:i_(M,G,g);continue;case b.NULL2:if(!X)continue;X==="l"?M.state_=b.NULL3:i_(M,G,g);continue;case b.NULL3:if(!X)continue;X==="l"?M.state_=Z():i_(M,G,g);continue;case b.NUM_DECIMAL_POINT:X===
"."?M.state_=b.NUM_DIGIT:i_(M,G,g);continue;case b.NUM_DIGIT:if("0123456789.eE+-".indexOf(X)!==-1)continue;else g--,M.JSC$11488_pos_--,M.state_=Z();continue;default:i_(M,G,g)}}}
function Z(){var X=T.pop();return X!=null?X:b.VALUE}
function O(X){M.depth_>1||(X||(X=t===-1?M.JSC$11488_buffer_+G.substring(q,g):G.substring(t,g)),M.deliverMessageAsRawString_?M.result_.push(X):M.result_.push(JSON.parse(X)),t=g)}
for(var M=this,T=M.stack_,E=M.stringInputPattern_,b=hdb,w=G.length,q=0,t=-1,g=0;g<w;)switch(M.streamState_){case 3:return i_(M,G,g),null;case 2:return e()&&i_(M,G,g),null;case 0:if(e()){var l=G[g++];M.JSC$11488_pos_++;if(l==="["){M.streamState_=1;q=g;M.state_=b.ARRAY_OPEN;continue}else i_(M,G,g)}return null;case 1:return r(),M.depth_===0&&M.state_==b.ARRAY_END?(M.streamState_=2,M.JSC$11488_buffer_=G.substring(g)):M.JSC$11488_buffer_=t===-1?M.JSC$11488_buffer_+G.substring(q):G.substring(t),M.result_.length>
0?(l=M.result_,M.result_=[],l):null}return null};_.Bz(_.lY,nr);Rd.prototype.getValue=function(){return this.JSC$11496_value_};
Rd.prototype.clone=function(){return new Rd(this.JSC$11496_key_,this.JSC$11496_value_)};var b_=function(G){this.nodes_=[];if(G)a:{if(G instanceof b_){var e=G.getKeys();G=G.getValues();if(this.getCount()<=0){for(var r=this.nodes_,Z=0;Z<e.length;Z++)r.push(new Rd(e[Z],G[Z]));break a}}else e=_.c2.getKeys(G),G=_.c2.getValues(G);for(r=0;r<e.length;r++)this.insert(e[r],G[r])}};
_.V=b_.prototype;_.V.insert=function(G,e){var r=this.nodes_;r.push(new Rd(G,e));G=r.length-1;e=this.nodes_;for(r=e[G];G>0;){var Z=G-1>>1;if(e[Z].JSC$11496_key_>r.JSC$11496_key_)e[G]=e[Z],G=Z;else break}e[G]=r};
_.V.remove=function(){var G=this.nodes_,e=G.length,r=G[0];if(!(e<=0)){if(e==1)G.length=0;else{G[0]=G.pop();G=0;e=this.nodes_;for(var Z=e.length,O=e[G];G<Z>>1;){var M=G*2+1,T=G*2+2;M=T<Z&&e[T].JSC$11496_key_<e[M].JSC$11496_key_?T:M;if(e[M].JSC$11496_key_>O.JSC$11496_key_)break;e[G]=e[M];G=M}e[G]=O}return r.getValue()}};
_.V.peek=function(){var G=this.nodes_;if(G.length!=0)return G[0].getValue()};
_.V.getValues=function(){for(var G=this.nodes_,e=[],r=G.length,Z=0;Z<r;Z++)e.push(G[Z].getValue());return e};
_.V.getKeys=function(){for(var G=this.nodes_,e=[],r=G.length,Z=0;Z<r;Z++)e.push(G[Z].JSC$11496_key_);return e};
_.V.containsValue=function(G){return this.nodes_.some(function(e){return e.getValue()==G})};
_.V.containsKey=function(G){return this.nodes_.some(function(e){return e.JSC$11496_key_==G})};
_.V.clone=function(){return new b_(this)};
_.V.getCount=function(){return this.nodes_.length};
_.V.isEmpty=function(){return this.nodes_.length===0};
_.V.clear=function(){this.nodes_.length=0};_.v9=function(G,e){this.JSC$11502_map_={};this.JSC$11502_keys_=[];this.version_=this.size=0;var r=arguments.length;if(r>1){if(r%2)throw Error("ma");for(var Z=0;Z<r;Z+=2)this.set(arguments[Z],arguments[Z+1])}else G&&this.addAll(G)};
_.V=_.v9.prototype;_.V.getCount=function(){return this.size};
_.V.getValues=function(){wh(this);for(var G=[],e=0;e<this.JSC$11502_keys_.length;e++)G.push(this.JSC$11502_map_[this.JSC$11502_keys_[e]]);return G};
_.V.getKeys=function(){wh(this);return this.JSC$11502_keys_.concat()};
_.V.containsKey=function(G){return this.has(G)};
_.V.has=function(G){return $6(this.JSC$11502_map_,G)};
_.V.containsValue=function(G){for(var e=0;e<this.JSC$11502_keys_.length;e++){var r=this.JSC$11502_keys_[e];if($6(this.JSC$11502_map_,r)&&this.JSC$11502_map_[r]==G)return!0}return!1};
_.V.equals=function(G,e){if(this===G)return!0;if(this.size!=G.getCount())return!1;e=e||T7C;wh(this);for(var r,Z=0;r=this.JSC$11502_keys_[Z];Z++)if(!e(this.get(r),G.get(r)))return!1;return!0};
var T7C=function(G,e){return G===e};
_.v9.prototype.isEmpty=function(){return this.size==0};
_.v9.prototype.clear=function(){this.JSC$11502_map_={};this.version_=this.size=this.JSC$11502_keys_.length=0};
_.v9.prototype.remove=function(G){return this.delete(G)};
_.v9.prototype.delete=function(G){return $6(this.JSC$11502_map_,G)?(delete this.JSC$11502_map_[G],--this.size,this.version_++,this.JSC$11502_keys_.length>2*this.size&&wh(this),!0):!1};
var wh=function(G){if(G.size!=G.JSC$11502_keys_.length){for(var e=0,r=0;e<G.JSC$11502_keys_.length;){var Z=G.JSC$11502_keys_[e];$6(G.JSC$11502_map_,Z)&&(G.JSC$11502_keys_[r++]=Z);e++}G.JSC$11502_keys_.length=r}if(G.size!=G.JSC$11502_keys_.length){e={};for(Z=r=0;r<G.JSC$11502_keys_.length;){var O=G.JSC$11502_keys_[r];$6(e,O)||(G.JSC$11502_keys_[Z++]=O,e[O]=1);r++}G.JSC$11502_keys_.length=Z}};
_.V=_.v9.prototype;_.V.get=function(G,e){return $6(this.JSC$11502_map_,G)?this.JSC$11502_map_[G]:e};
_.V.set=function(G,e){$6(this.JSC$11502_map_,G)||(this.size+=1,this.JSC$11502_keys_.push(G),this.version_++);this.JSC$11502_map_[G]=e};
_.V.addAll=function(G){if(G instanceof _.v9)for(var e=G.getKeys(),r=0;r<e.length;r++)this.set(e[r],G.get(e[r]));else for(e in G)this.set(e,G[e])};
_.V.forEach=function(G,e){for(var r=this.getKeys(),Z=0;Z<r.length;Z++){var O=r[Z],M=this.get(O);G.call(e,M,O,this)}};
_.V.clone=function(){return new _.v9(this)};
_.V.transpose=function(){for(var G=new _.v9,e=0;e<this.JSC$11502_keys_.length;e++){var r=this.JSC$11502_keys_[e];G.set(this.JSC$11502_map_[r],r)}return G};
_.V.keys=function(){return KCb(this.__iterator__(!0)).toEs6()};
_.V.values=function(){return KCb(this.__iterator__(!1)).toEs6()};
_.V.entries=function(){var G=this;return F2c(this.keys(),function(e){return[e,G.get(e)]})};
_.V.__iterator__=function(G){wh(this);var e=0,r=this.version_,Z=this,O=new VQ;O.next=function(){if(r!=Z.version_)throw Error("ue");if(e>=Z.JSC$11502_keys_.length)return hQ;var M=Z.JSC$11502_keys_[e++];return Tz(G?M:Z.JSC$11502_map_[M])};
return O};
var $6=function(G,e){return Object.prototype.hasOwnProperty.call(G,e)};var Eic=function(){this.JSC$11505_map_=new _.v9;this.JSC$11505_head_=new D$j("");this.JSC$11505_head_.next=this.JSC$11505_head_.prev=this.JSC$11505_head_},ixj=function(G,e){if(e=G.JSC$11505_map_.get(e))e.remove(),G.insert_(e);
return e};
_.V=Eic.prototype;_.V.get=function(G,e){return(G=ixj(this,G))?G.value:e};
_.V.set=function(G,e){var r=ixj(this,G);r?r.value=e:(r=new D$j(G,e),this.JSC$11505_map_.set(G,r),this.insert_(r))};
_.V.peek=function(){return this.JSC$11505_head_.next.value};
_.V.shift=function(){return bx3(this,this.JSC$11505_head_.next)};
_.V.pop=function(){return bx3(this,this.JSC$11505_head_.prev)};
_.V.remove=function(G){return(G=this.JSC$11505_map_.get(G))?(this.removeNode(G),!0):!1};
_.V.removeNode=function(G){G.remove();this.JSC$11505_map_.remove(G.key)};
_.V.getCount=function(){return this.JSC$11505_map_.getCount()};
_.V.isEmpty=function(){return this.JSC$11505_map_.isEmpty()};
_.V.getKeys=function(){return this.map(function(G,e){return e})};
_.V.getValues=function(){return this.map(function(G){return G})};
_.V.contains=function(G){return this.some(function(e){return e==G})};
_.V.containsKey=function(G){return this.JSC$11505_map_.containsKey(G)};
_.V.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11505_head_.prev)};
_.V.forEach=function(G,e){for(var r=this.JSC$11505_head_.next;r!=this.JSC$11505_head_;r=r.next)G.call(e,r.value,r.key,this)};
_.V.map=function(G,e){for(var r=[],Z=this.JSC$11505_head_.next;Z!=this.JSC$11505_head_;Z=Z.next)r.push(G.call(e,Z.value,Z.key,this));return r};
_.V.some=function(G,e){for(var r=this.JSC$11505_head_.next;r!=this.JSC$11505_head_;r=r.next)if(G.call(e,r.value,r.key,this))return!0;return!1};
_.V.every=function(G,e){for(var r=this.JSC$11505_head_.next;r!=this.JSC$11505_head_;r=r.next)if(!G.call(e,r.value,r.key,this))return!1;return!0};
_.V.insert_=function(G){G.next=this.JSC$11505_head_.next;G.prev=this.JSC$11505_head_;this.JSC$11505_head_.next=G;for(G.next.prev=G;this.getCount()>100;)this.removeNode(this.JSC$11505_head_.prev)};
var bx3=function(G,e){G.JSC$11505_head_!=e&&G.removeNode(e);return e.value},D$j=function(G,e){this.key=G;
this.value=e};
D$j.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var vij=function(){b_.apply(this,arguments)};
_.K(vij,b_);vij.prototype.enqueue=function(G,e){this.insert(G,e)};var w4j=function(){var G=Error();G.name="SecurityError";throw G;},dE4=function(){return{get opener(){return null},
get closed(){return!0},get location(){w4j()},get document(){w4j()},postMessage:function(){},
close:function(){},
focus:function(){}}};var Sg4={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 gS_={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 $$w={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(gS_).join("|");var SzE=function(){function G(E){E.substr(-1)!==";"&&(E+=";");return T(E)}
for(var e=Object.keys($$w).sort(t_N),r=Object.keys(gS_).sort(t_N),Z=0,O=0;Z<r.length;Z++)e[O]===r[Z]?(r[Z]+=";?",O++):r[Z]+=";";var M=new RegExp("&(?:"+r.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),T=lwA();return function(E){return String(E).replace(M,G)}}();/*

 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 qzn={};var tMn=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"),giP=/[\\&]/,l9W=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),RdC=RegExp('[&<>"]',"g"),jNv=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),a9j=function(G){return G.charCodeAt(0)===92?G.charAt(1):SzE(G)},X4c=function(G){return giP.test(G)?G.replace(l9W,a9j):G},KLc=function(G){try{var e,r="";
if(typeof O!=="string"){var Z=O;var O=";/?:@&=+$,-_.!~*'()#"}typeof Z==="undefined"&&(Z=!0);var M,T=qzn[O];if(T)var E=T;else{T=qzn[O]=[];for(M=0;M<128;M++){var b=String.fromCharCode(M);/^[0-9a-z]$/i.test(b)?T.push(b):T.push("%"+("0"+M.toString(16).toUpperCase()).slice(-2))}for(M=0;M<O.length;M++)T[O.charCodeAt(M)]=O[M];E=T}var w=0;for(e=G.length;w<e;w++){var q=G.charCodeAt(w);if(Z&&q===37&&w+2<e&&/^[0-9a-f]{2}$/i.test(G.slice(w+1,w+3)))r+=G.slice(w,w+3),w+=2;else if(q<128)r+=E[q];else if(q>=55296&&
q<=57343){if(q>=55296&&q<=56319&&w+1<e){var t=G.charCodeAt(w+1);if(t>=56320&&t<=57343){r+=encodeURIComponent(G[w]+G[w+1]);w++;continue}}r+="%EF%BF%BD"}else r+=encodeURIComponent(G[w])}return r}catch(g){return G}},f9S=function(G){switch(G){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return G}},Sj=function(G,e){return RdC.test(G)?e?G.replace(jNv,f9S):G.replace(RdC,f9S):G};/*

 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 qw;if(String.fromCodePoint)qw=function(G){try{return String.fromCodePoint(G)}catch(e){if(e instanceof RangeError)return String.fromCharCode(65533);throw e;}};
else{var k4w=String.fromCharCode,Hxj=Math.floor;qw=function(){var G=[],e=-1,r=arguments.length;if(!r)return"";for(var Z="";++e<r;){var O=Number(arguments[e]);if(!isFinite(O)||O<0||O>1114111||Hxj(O)!==O)return String.fromCharCode(65533);if(O<=65535)G.push(O);else{O-=65536;var M=(O>>10)+55296;O=O%1024+56320;G.push(M,O)}if(e+1===r||G.length>16384)Z+=k4w.apply(null,G),G.length=0}return Z}};var d$3=function(G){this.root=this.current=G;this.entering=!0};
d$3.prototype.next=function(){var G=this.current,e=this.entering;if(G===null)return null;a:switch(G._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 r=!0;break a;default:r=!1}e&&r?G._firstChild?(this.current=G._firstChild,this.entering=!0):this.entering=!1:G===this.root?this.current=null:G._next===null?(this.current=
G._parent,this.entering=!1):(this.current=G._next,this.entering=!0);return{entering:e,node:G}};
var Kt=function(G,e){this._type=G;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};
Kt.prototype.appendChild=function(G){G.unlink();G._parent=this;this._lastChild?(this._lastChild._next=G,G._prev=this._lastChild):this._firstChild=G;this._lastChild=G};
Kt.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 oiy=function(G,e){e.unlink();e._next=G._next;e._next&&(e._next._prev=e);e._prev=G;G._next=e;e._parent=G._parent;e._next||(e._parent._lastChild=e)};
Kt.prototype.insertBefore=function(G){G.unlink();G._prev=this._prev;G._prev&&(G._prev._next=G);G._next=this;this._prev=G;G._parent=this._parent;G._prev||(G._parent._firstChild=G)};
_.iY.Object.defineProperties(Kt.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(G){this._literal=G}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(G){this._destination=G}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(G){this._title=G}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(G){this._info=G}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(G){this._level=G}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(G){this._listData.type=G}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(G){this._listData.tight=G}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(G){this._listData.start=G}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(G){this._onEnter=G}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(G){this._onExit=G}}});var R3S=/[ \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,
ji$={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 sNc=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]/),
QNW=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),I9w=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),p4S=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),CnW=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),uTS=/`+/,niP=/^`+/,m$3=/\.\.\./g,cZ3=/--+/g,YzW=/^<([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])?)*)>/,
yZn=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,AZc=/^ *(?:\n *)?/,FLE=/^[ \t\n\x0b\x0c\x0d]/,JZj=/[ \t\n\x0b\x0c\x0d]+/g,B7C=/^\s/,x$c=/ *$/,Pnb=/^ */,U$E=/^ *(?:\n|$)/,zdE=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),WLj=/^[^\n`\[\]\\!<&*_'"]+/m,t9=function(G){var e=new Kt("text");e._literal=G;return e},gh=function(G){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=G||{}};
gh.prototype.match=function(G){G=G.exec(this.subject.slice(this.pos));if(G===null)return null;this.pos+=G.index+G[0].length;return G[0]};
gh.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var l_=function(G){G.match(AZc);return!0},N73=function(G,e,r){var Z=0;
var O=G.pos;if(e===39||e===34)Z++,G.pos++;else for(;G.peek()===e;)Z++,G.pos++;if(Z===0)Z=null;else{var M=O===0?"\n":G.subject.charAt(O-1);var T=G.peek();T=T===-1?"\n":qw(T);var E=B7C.test(T);T=sNc.test(T);var b=B7C.test(M);var w=sNc.test(M);M=!E&&!(T&&!b&&!w);E=!b&&!(w&&!E&&!T);e===95?(b=M&&(!E||w),T=E&&(!M||T)):(b=e===39||e===34?M&&!E:M,T=E);G.pos=O;Z={numdelims:Z,can_open:b,can_close:T}}if(!Z)return!1;O=Z.numdelims;T=G.pos;G.pos+=O;T=e===39?"\u2019":e===34?"\u201c":G.subject.slice(T,G.pos);T=t9(T);
r.appendChild(T);G.delimiters={cc:e,numdelims:O,origdelims:O,node:T,previous:G.delimiters,next:null,can_open:Z.can_open,can_close:Z.can_close};G.delimiters.previous!==null&&(G.delimiters.previous.next=G.delimiters);return!0},LLw=function(G,e){e.previous!==null&&(e.previous.next=e.next);
e.next===null?G.delimiters=e.previous:e.next.previous=e.previous},GxP=function(G,e){var r,Z,O=[],M=!1;
O[95]=e;O[42]=e;O[39]=e;O[34]=e;for(r=G.delimiters;r!==null&&r.previous!==e;)r=r.previous;for(;r!==null;){var T=r.cc;if(r.can_close){var E=r.previous;for(Z=!1;E!==null&&E!==e&&E!==O[T];){M=(r.can_open||E.can_close)&&(E.origdelims+r.origdelims)%3===0;if(E.cc===r.cc&&E.can_open&&!M){Z=!0;break}E=E.previous}var b=r;if(T===42||T===95)if(Z){var w=r.numdelims>=2&&E.numdelims>=2?2:1;var q=E.node;var t=r.node;E.numdelims-=w;r.numdelims-=w;q._literal=q._literal.slice(0,q._literal.length-w);t._literal=t._literal.slice(0,
t._literal.length-w);var g=new Kt(w===1?"emph":"strong");for(w=q._next;w&&w!==t;){var l=w._next;w.unlink();g.appendChild(w);w=l}oiy(q,g);w=E;l=r;w.next!==l&&(w.next=l,l.previous=w);E.numdelims===0&&(q.unlink(),LLw(G,E));r.numdelims===0&&(t.unlink(),E=r.next,LLw(G,r),r=E)}else r=r.next;else T===39?(r.node._literal="\u2019",Z&&(E.node._literal="\u2018"),r=r.next):T===34&&(r.node._literal="\u201d",Z&&(E.node.literal="\u201c"),r=r.next);Z||M||(O[T]=b.previous,b.can_open||LLw(G,b))}else r=r.next}for(;G.delimiters!==
null&&G.delimiters!==e;)LLw(G,G.delimiters)},epc=function(G){G=G.match(QNW);
return G===null?null:X4c(G.substr(1,G.length-2))},rVl=function(G){var e=G.match(I9w);
if(e===null){e=G.pos;for(var r=0,Z;(Z=G.peek())!==-1;)if(Z===92)G.pos+=1,G.peek()!==-1&&(G.pos+=1);else if(Z===40)G.pos+=1,r+=1;else if(Z===41)if(r<1)break;else G.pos+=1,--r;else if(FLE.exec(qw(Z))!==null)break;else G.pos+=1;e=G.subject.substr(e,G.pos-e);return KLc(X4c(e))}return KLc(X4c(e.substr(1,e.length-2)))},ZpP=function(G){G=G.match(zdE);
return G===null||G.length>1001?0:G.length},OpW=function(G,e,r,Z){G.brackets!==null&&(G.brackets.bracketAfter=!0);
G.brackets={node:e,previous:G.brackets,previousDelimiter:G.delimiters,index:r,image:Z,active:!0}},M0b=function(G,e){var r;
return(r=G.match(WLj))?(G.options.smart?e.appendChild(t9(r.replace(m$3,"\u2026").replace(cZ3,function(Z){var O=0,M=0;Z.length%3===0?M=Z.length/3:Z.length%2===0?O=Z.length/2:Z.length%3===2?(O=1,M=(Z.length-2)/3):(O=2,M=(Z.length-4)/3);Z="";var T;for(T=0;T<M;T++)Z+="\u2014";for(T=0;T<O;T++)Z+="\u2013";return Z}))):e.appendChild(t9(r)),!0):!1},V0E=function(G,e,r){G.subject=e;
G.pos=0;e=G.pos;var Z=ZpP(G);if(Z===0)return 0;var O=G.subject.substr(0,Z);if(G.peek()===58)G.pos++;else return G.pos=e,0;l_(G);Z=rVl(G);if(Z===null||Z.length===0)return G.pos=e,0;var M=G.pos;l_(G);var T=epc(G);T===null&&(T="",G.pos=M);var E=!0;G.match(U$E)===null&&(T===""?E=!1:(T="",G.pos=M,E=G.match(U$E)!==null));if(!E)return G.pos=e,0;O=awS(O);if(O==="")return G.pos=e,0;r[O]||(r[O]={destination:Z,title:T});return G.pos-e},hp3=function(G,e){var r,Z=G.peek();
if(Z===-1)return!1;switch(Z){case 10:G.pos+=1;if((r=e._lastChild)&&r.type==="text"&&r._literal[r._literal.length-1]===" "){var O=r._literal[r._literal.length-2]===" ";r._literal=r._literal.replace(x$c,"");e.appendChild(new Kt(O?"linebreak":"softbreak"))}else e.appendChild(new Kt("softbreak"));G.match(Pnb);r=!0;break;case 92:r=G.subject;G.pos+=1;G.peek()===10?(G.pos+=1,r=new Kt("linebreak"),e.appendChild(r)):p4S.test(r.charAt(G.pos))?(e.appendChild(t9(r.charAt(G.pos))),G.pos+=1):e.appendChild(t9("\\"));
r=!0;break;case 96:a:if(r=G.match(niP),r===null)r=!1;else{O=G.pos;for(var M;(M=G.match(uTS))!==null;)if(M===r){M=new Kt("code");M._literal=G.subject.slice(O,G.pos-r.length).trim().replace(JZj," ");e.appendChild(M);r=!0;break a}G.pos=O;e.appendChild(t9(r));r=!0}break;case 42:case 95:r=N73(G,Z,e);break;case 39:case 34:r=G.options.smart&&N73(G,Z,e);break;case 91:r=G.pos;G.pos+=1;O=t9("[");e.appendChild(O);OpW(G,O,r,!1);r=!0;break;case 33:r=G.pos;G.pos+=1;G.peek()===91?(G.pos+=1,O=t9("!["),e.appendChild(O),
OpW(G,O,r+1,!0)):e.appendChild(t9("!"));r=!0;break;case 93:var T,E=!1,b;G.pos+=1;var w=G.pos;O=G.brackets;if(O===null)e.appendChild(t9("]"));else if(O.active){r=O.image;var q=G.pos;G.peek()===40&&(G.pos++,l_(G)&&(M=rVl(G))!==null&&l_(G)&&(FLE.test(G.subject.charAt(G.pos-1))&&(T=epc(G)),1)&&l_(G)&&G.peek()===41?(G.pos+=1,E=!0):G.pos=q);if(!E){var t=G.pos,g=ZpP(G);g>2?b=G.subject.slice(t,t+g):O.bracketAfter||(b=G.subject.slice(O.index,w));g===0&&(G.pos=q);b&&(b=G.refmap[awS(b)])&&(M=b.destination,T=
b.title,E=!0)}if(E){w=new Kt(r?"image":"link");w._destination=M;w._title=T||"";for(M=O.node._next;M;)T=M._next,M.unlink(),w.appendChild(M),M=T;e.appendChild(w);GxP(G,O.previousDelimiter);G.brackets=G.brackets.previous;O.node.unlink();if(!r)for(O=G.brackets;O!==null;)O.image||(O.active=!1),O=O.previous}else G.brackets=G.brackets.previous,G.pos=w,e.appendChild(t9("]"))}else e.appendChild(t9("]")),G.brackets=G.brackets.previous;r=!0;break;case 60:(r=G.match(YzW))?(r=r.slice(1,r.length-1),O=new Kt("link"),
O._destination=KLc("mailto:"+r),O._title="",O.appendChild(t9(r)),e.appendChild(O),r=!0):(r=G.match(yZn))?(r=r.slice(1,r.length-1),O=new Kt("link"),O._destination=KLc(r),O._title="",O.appendChild(t9(r)),e.appendChild(O),r=!0):r=!1;r||(r=G.match(tMn),r===null?r=!1:(O=new Kt("html_inline"),O._literal=r,e.appendChild(O),r=!0));break;case 38:(r=G.match(CnW))?(e.appendChild(t9(SzE(r))),r=!0):r=!1;break;default:r=M0b(G,e)}r||(G.pos+=1,e.appendChild(t9(qw(Z))));return!0};
gh.prototype.parseInlines=function(G){this.subject=G._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;hp3(this,G););G._string_content=null;GxP(this,null)};
gh.prototype.parse=gh.prototype.parseInlines;var TBy=[/./,/^<(?: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")],DSW=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],EU3=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,ipj=/^[#`~*+_=<>0-9-\|]|\|/,bpE=/[^ \t\f\v\r\n]/,vUb=/^[*+-]/,wzj=/^(\d{1,9})([.)])/,$SW=/^#{1,6}(?:[ \t]+|$)/,Seb=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,qeW=/^(?:`{3,}|~{3,})(?= *$)/,t03=/^(?:=+|-+)[ \t]*$/,gUj=/\r\n|\n|\r/,KZ_=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,fwp=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,lkw={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(G){return G!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(G,e){for(G=e._firstChild;G;){if(XoS(G)&&G._next){e._listData.tight=!1;break}for(var r=G._firstChild;r;){if(XoS(r)&&(G._next||r._next)){e._listData.tight=!1;break}r=r._next}G=G._next}},
canContain:function(G){return G==="item"},
acceptsLines:!1},block_quote:{continue:function(G){var e=G.currentLine;if(G.indented||ad(e,G.nextNonspace)!==62)return 1;jj(G);a4(G,1,!1);jC(ad(e,G.offset))&&a4(G,1,!0);return 0},
finalize:function(){},
canContain:function(G){return G!=="item"},
acceptsLines:!1},item:{continue:function(G,e){if(G.blank){if(e._firstChild==null)return 1;jj(G)}else if(G.indent>=e._listData.markerOffset+e._listData.padding)a4(G,e._listData.markerOffset+e._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(G){return G!=="item"&&!kDU(G)},
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(G,e){var r=G.currentLine,Z=G.indent;if(e._isFenced){if((Z=Z<=3&&r.charAt(G.nextNonspace)===e._fenceChar&&r.slice(G.nextNonspace).match(qeW))&&Z[0].length>=e._fenceLength)return G.finalize(e,G.lineNumber),2;for(e=e._fenceOffset;e>0&&jC(ad(r,G.offset));)a4(G,1,!0),e--}else if(Z>=4)a4(G,4,!0);else if(G.blank)jj(G);else return 1;return 0},
finalize:function(G,e){if(e._isFenced){var r=e._string_content,Z=r.indexOf("\n");G=r.slice(0,Z);r=r.slice(Z+1);e.info=X4c(G.trim());e._literal=r}else e._literal=e._string_content.replace(/(\n *)+$/,"\n");e._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(G,e){return!G.blank||e._htmlBlockType!==6&&e._htmlBlockType!==7?0:1},
finalize:function(G,e){e._literal=e._string_content.replace(/(\n *)+$/,"");e._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(G){return G.blank?1:0},
finalize:function(G,e){for(var r,Z=!1;ad(e._string_content,0)===91&&(r=V0E(G.inlineParser,e._string_content,G.refmap));)e._string_content=e._string_content.slice(r),Z=!0;Z&&!bpE.test(e._string_content)&&e.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(G){return Xp(G.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(G){return G=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(G,e){if(!e._rowIsDelimiter){G=e._isHeader?"th":"td";for(var r=e._parent._tableColumns,Z=e._string_content,O=0,M="",T,E=e._sourcepos[0][0];O<Z.length;){switch(Z[O]){case "|":T&&(T._string_content=M.trim(),M="",T=null,r--,r<=0&&(O=Z.length));break;default:if(!T){T=new Kt(G,[[E,O],[E,O]]);var b=e._parent._columnAlignment,w=e._parent._tableColumns-r;b&&w<=b.length&&w>=0&&(T._alignment=b[w]);e.appendChild(T)}M+=Z[O];T._sourcepos[1][1]=O}O++}T&&(T._string_content=M.trim());e._string_content=
""}},
canContain:function(G){return G!=="row"},
acceptsLines:!1}},RpE=[function(G){if(G.indented||ad(G.currentLine,G.nextNonspace)!==62)return 0;jj(G);a4(G,1,!1);jC(ad(G.currentLine,G.offset))&&a4(G,1,!0);Xg(G);G.addChild("block_quote",G.nextNonspace);return 1},
function(G){var e;if(!G.indented&&(e=G.currentLine.slice(G.nextNonspace).match($SW))){jj(G);a4(G,e[0].length,!1);Xg(G);var r=G.addChild("heading",G.nextNonspace);r.level=e[0].trim().length;r._string_content=G.currentLine.slice(G.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");a4(G,G.currentLine.length-G.offset);return 2}return 0},
function(G){var e;if(!G.indented&&(e=G.currentLine.slice(G.nextNonspace).match(Seb))){var r=e[0].length;Xg(G);var Z=G.addChild("code_block",G.nextNonspace);Z._isFenced=!0;Z._fenceLength=r;Z._fenceChar=e[0][0];Z._fenceOffset=G.indent;jj(G);a4(G,r,!1);return 2}return 0},
function(G,e){if(!G.indented&&ad(G.currentLine,G.nextNonspace)===60){var r=G.currentLine.slice(G.nextNonspace),Z;for(Z=1;Z<=7;Z++)if(TBy[Z].test(r)&&(Z<7||e.type!=="paragraph"))return Xg(G),G.addChild("html_block",G.offset)._htmlBlockType=Z,2}return 0},
function(G,e){var r;if(!G.indented&&e.type==="paragraph"&&(r=G.currentLine.slice(G.nextNonspace).match(t03))){Xg(G);var Z=new Kt("heading",e.sourcepos);Z.level=r[0][0]==="="?1:2;Z._string_content=e._string_content;oiy(e,Z);e.unlink();G.tip=Z;a4(G,G.currentLine.length-G.offset,!1);return 2}return 0},
function(G){return!G.indented&&EU3.test(G.currentLine.slice(G.nextNonspace))?(Xg(G),G.addChild("thematic_break",G.nextNonspace),a4(G,G.currentLine.length-G.offset,!1),2):0},
function(G,e){var r,Z;if(!(Z=G.indented&&e.type!=="list")){a:{var O=e,M=G.currentLine.slice(G.nextNonspace);Z={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:G.indent};if(r=M.match(vUb))Z.type="bullet",Z.bulletChar=r[0][0];else{if(!(r=M.match(wzj))||O.type==="paragraph"&&r[1]!=="1"){r=null;break a}Z.type="ordered";Z.start=parseInt(r[1],10);Z.delimiter=r[2]}var T=ad(G.currentLine,G.nextNonspace+r[0].length);if(T!==-1&&T!==9&&T!==32||O.type==="paragraph"&&!G.currentLine.slice(G.nextNonspace+
r[0].length).match(bpE))r=null;else{jj(G);a4(G,r[0].length,!0);O=G.column;M=G.offset;do a4(G,1,!0),T=ad(G.currentLine,G.offset);while(G.column-O<5&&jC(T));T=ad(G.currentLine,G.offset)===-1;var E=G.column-O;E>=5||E<1||T?(Z.padding=r[0].length+1,G.column=O,G.offset=M,jC(ad(G.currentLine,G.offset))&&a4(G,1,!0)):Z.padding=r[0].length+E;r=Z}}Z=!r}if(Z)return 0;Xg(G);(Z=G.tip.type!=="list")||(e=e._listData,Z=!(e.type===r.type&&e.delimiter===r.delimiter&&e.bulletChar===r.bulletChar));Z&&(e=G.addChild("list",
G.nextNonspace),e._listData=r);e=G.addChild("item",G.nextNonspace);e._listData=r;return 1},
function(G){var e;return((e=G.options.shouldParseIndentAsCodeBlock)!=null?e:1)&&G.indented&&G.tip.type!=="paragraph"&&!G.blank?(a4(G,4,!0),Xg(G),G.addChild("code_block",G.offset),2):0},
function(G,e){var r=Xp(G.currentLine),Z=Xp(G.lookahead);if(r!==0&&Z<0&&Math.abs(r)==Math.abs(Z)&&!kDU(e.type)){Xg(G);e=G.addChild("table",G.nextNonspace);e._tableRows=1;e._tableColumns=Math.abs(r);r=G.lookahead;if(fwp.test(r)){Z=[];for(var O=0,M=!1,T=0,E=void 0;O<r.length;){var b=T>=3;switch(r[O]){case "-":T++;break;case "|":M&&(Z.push(E),E=void 0,T=0);M=!0;break;case ":":E||b||(E="left"),!E&&b&&(E="right"),E==="left"&&b&&(E="center")}O++}r=Z}else r=void 0;e._columnAlignment=r;e=G.addChild("row",
G.nextNonspace);e._isHeader=!0;a4(G,G.currentLine.length-G.offset,!1);e._string_content=G.currentLine;return 1}return 0},
function(G,e){if(e.type=="table"&&Xp(G.currentLine)!==0){Xg(G);var r=e;e=G.addChild("row",G.nextNonspace);Xp(G.currentLine)<0?e._rowIsDelimiter=!0:r._tableRows+=1;a4(G,G.currentLine.length-G.offset,!1);e._string_content=G.currentLine;return 2}return 0}],RVS=function(){var G={shouldParseIndentAsCodeBlock:!1};
G=G===void 0?{}:G;this.lastMatchedContainer=this.doc=Hly();this.refmap={};this.lastLineLength=0;this.inlineParser=new gh(G);this.options=G;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=lkw;this.blockStarts=RpE},jrw=function(G){G.partiallyConsumedTab&&(G.offset+=1,G.tip._string_content+=" ".repeat(4-G.column%
4));
G.tip._string_content+=G.currentLine.slice(G.offset)+"\n"};
RVS.prototype.addChild=function(G,e){for(;!this.blocks[this.tip.type].canContain(G);)this.finalize(this.tip,this.lineNumber-1);G=new Kt(G,[[this.lineNumber,e+1],[0,0]]);G._string_content="";this.tip.appendChild(G);return this.tip=G};
var Xg=function(G){if(!G.allClosed){for(;G.oldtip!==G.lastMatchedContainer;){var e=G.oldtip._parent;G.finalize(G.oldtip,G.lineNumber-1);G.oldtip=e}G.allClosed=!0}},a4=function(G,e,r){for(var Z=G.currentLine,O,M;e>0&&(M=Z[G.offset]);)M==="\t"?(O=4-G.column%4,r?(G.partiallyConsumedTab=O>e,O=O>e?e:O,G.column+=O,G.offset+=G.partiallyConsumedTab?0:1,e-=O):(G.partiallyConsumedTab=!1,G.column+=O,G.offset+=1,--e)):(G.partiallyConsumedTab=!1,G.offset+=1,G.column+=1,--e)},jj=function(G){G.offset=G.nextNonspace;
G.column=G.nextNonspaceColumn;G.partiallyConsumedTab=!1},akj=function(G){for(var e=G.currentLine,r=G.offset,Z=G.column,O;(O=e.charAt(r))!=="";)if(O===" ")r++,Z++;
else if(O==="\t")r++,Z+=4-Z%4;else break;G.blank=O==="\n"||O==="\r"||O==="";G.nextNonspace=r;G.nextNonspaceColumn=Z;G.indent=G.nextNonspaceColumn-G.column;G.indented=G.indent>=4};
RVS.prototype.finalize=function(G,e){var r=G._parent;G._open=!1;G.sourcepos[1]=[e,this.lastLineLength];this.blocks[G.type].finalize(this,G);this.tip=r};
RVS.prototype.parse=function(G){this.tip=this.doc=Hly();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!G)return this.doc;this.options.time&&console.time("preparing input");var e=G.split(gUj),r=e.length;G.charCodeAt(G.length-1)===10&&--r;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(G=0;G<r;G++)a:{var Z=void 0,O=e[G],M=e[G+1],T=!0,E=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;O.indexOf("\x00")!==-1&&(O=O.replace(/\0/g,"\ufffd"));this.currentLine=O;for(this.lookahead=M;(Z=E._lastChild)&&Z._open;){E=Z;akj(this);switch(this.blocks[E.type].continue(this,E)){case 0:break;case 1:T=!1;break;case 2:this.lastLineLength=O.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!T){E=E._parent;break}}this.allClosed=E===this.oldtip;this.lastMatchedContainer=
E;Z=E.type!=="paragraph"&&lkw[E.type].acceptsLines;M=this.blockStarts;for(T=M.length;!Z;){akj(this);if(!this.indented&&!ipj.test(O.slice(this.nextNonspace))){jj(this);break}for(var b=0;b<T;){var w=M[b](this,E);if(w===1){E=this.tip;break}else if(w===2){E=this.tip;Z=!0;break}else b++}if(b===T){jj(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){Xg(this);this.blank&&E.lastChild&&(E.lastChild._lastLineBlank=!0);Z=E.type;M=this.blank&&!(Z==="block_quote"||Z==="code_block"&&E._isFenced||
Z==="item"&&!E._firstChild&&E.sourcepos[0][0]===this.lineNumber);for(T=E;T;)T._lastLineBlank=M,T=T._parent;this.blocks[Z].acceptsLines?(jrw(this),Z==="html_block"&&E._htmlBlockType>=1&&E._htmlBlockType<=5&&DSW[E._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(E,this.lineNumber)):this.offset<O.length&&!this.blank&&(this.addChild("paragraph",this.offset),jj(this),jrw(this))}else jrw(this);this.lastLineLength=O.length}for(;this.tip;)this.finalize(this.tip,r);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");O=new d$3(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;r=O.next();)e=r.node,G=e.type,r.entering||G!=="paragraph"&&G!=="heading"&&G!=="th"&&G!="td"||this.inlineParser.parse(e);this.options.time&&console.timeEnd("inline parsing");return this.doc};duF.prototype.render=function(G){G=new d$3(G);var e;this.buffer="";for(this.lastOut="\n";e=G.next();){var r=e.node.type;if(this[r])this[r](e.node,e.entering)}return this.buffer};
duF.prototype.out=function(G){KS(this,G)};
var KS=function(G,e){G.buffer+=e;G.lastOut=e};
duF.prototype.cr=function(){this.lastOut!=="\n"&&KS(this,"\n")};var Xzn=/^javascript:|vbscript:|file:|data:/i,K$v=/^data:image\/(?:png|gif|jpeg|webp)/i,fkl=function(G){return Xzn.test(G)&&!K$v.test(G)};
ft.prototype=Object.create(duF.prototype);_.V=ft.prototype;_.V.text=function(G){this.out(G.literal)};
_.V.html_inline=function(G){this.options.safe?KS(this,"\x3c!-- raw HTML omitted --\x3e"):KS(this,G.literal)};
_.V.html_block=function(G){this.cr();this.options.safe?KS(this,"\x3c!-- raw HTML omitted --\x3e"):KS(this,G.literal);this.cr()};
_.V.softbreak=function(){KS(this,this.options.softbreak)};
_.V.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.V.link=function(G,e){var r=this.attrs(G);e?(this.options.safe&&fkl(G.destination)||r.push(["href",Sj(G.destination,!0)]),G.title&&r.push(["title",Sj(G.title,!0)]),this.tag("a",r)):this.tag("/a")};
_.V.image=function(G,e){e?(this.disableTags===0&&(this.options.safe&&fkl(G.destination)?KS(this,'<img src="" alt="'):KS(this,'<img src="'+Sj(G.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(G.title&&KS(this,'" title="'+Sj(G.title,!0)),KS(this,'" />')))};
_.V.emph=function(G,e){this.tag(e?"em":"/em")};
_.V.strong=function(G,e){this.tag(e?"strong":"/strong")};
_.V.paragraph=function(G,e){var r=G.parent.parent;G=this.attrs(G);r!==null&&r.type==="list"&&r.listTight||(e?(this.cr(),this.tag("p",G)):(this.tag("/p"),this.cr()))};
_.V.heading=function(G,e){var r="h"+G.level;G=this.attrs(G);e?(this.cr(),this.tag(r,G)):(this.tag("/"+r),this.cr())};
_.V.code=function(G){this.tag("code");this.out(G.literal);this.tag("/code")};
_.V.code_block=function(G){var e=G.info?G.info.split(/\s+/):[],r=this.attrs(G);e.length>0&&e[0].length>0&&r.push(["class","language-"+Sj(e[0],!0)]);this.cr();this.tag("pre");this.tag("code",r);this.out(G.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.V.thematic_break=function(G){G=this.attrs(G);this.cr();this.tag("hr",G,!0);this.cr()};
_.V.block_quote=function(G,e){G=this.attrs(G);e?(this.cr(),this.tag("blockquote",G)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.V.list=function(G,e){var r=G.listType==="bullet"?"ul":"ol",Z=this.attrs(G);e?(G=G.listStart,G!==null&&G!==1&&Z.push(["start",G.toString()]),this.cr(),this.tag(r,Z)):(this.cr(),this.tag("/"+r));this.cr()};
_.V.item=function(G,e){G=this.attrs(G);e?this.tag("li",G):(this.tag("/li"),this.cr())};
_.V.custom_inline=function(G,e){e&&G.onEnter?KS(this,G.onEnter):!e&&G.onExit&&KS(this,G.onExit)};
_.V.custom_block=function(G,e){this.cr();e&&G.onEnter?KS(this,G.onEnter):!e&&G.onExit&&KS(this,G.onExit);this.cr()};
_.V.table=function(G,e){G=this.attrs(G);e?(this.cr(),this.tag("table",G)):(this.tag("/table"),this.cr())};
_.V.row=function(G,e){G._rowIsDelimiter||(G=this.attrs(G),e?this.tag("tr",G):this.tag("/tr"))};
_.V.td=function(G,e){var r=this.attrs(G);G._alignment&&r.push(["align",G._alignment]);e?this.tag("td",r):this.tag("/td")};
_.V.th=function(G,e){var r=this.attrs(G);G._alignment&&r.push(["align",G._alignment]);e?this.tag("th",r):this.tag("/th")};
_.V.out=function(G){KS(this,Sj(G,!1))};
_.V.tag=function(G,e,r){if(!(this.disableTags>0)){this.buffer+="<"+G;if(e&&e.length>0){G=0;for(var Z;(Z=e[G])!==void 0;)this.buffer+=" "+Z[0]+'="'+Z[1]+'"',G++}r&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.V.attrs=function(G){var e=[];this.options.sourcepos&&(G=G.sourcepos)&&e.push(["data-sourcepos",String(G[0][0])+":"+String(G[0][1])+"-"+String(G[1][0])+":"+String(G[1][1])]);return e};
ft.prototype.text=ft.prototype.text;ft.prototype.html_inline=ft.prototype.html_inline;ft.prototype.html_block=ft.prototype.html_block;ft.prototype.softbreak=ft.prototype.softbreak;ft.prototype.linebreak=ft.prototype.linebreak;ft.prototype.link=ft.prototype.link;ft.prototype.image=ft.prototype.image;ft.prototype.emph=ft.prototype.emph;ft.prototype.strong=ft.prototype.strong;ft.prototype.paragraph=ft.prototype.paragraph;ft.prototype.heading=ft.prototype.heading;ft.prototype.code=ft.prototype.code;
ft.prototype.code_block=ft.prototype.code_block;ft.prototype.thematic_break=ft.prototype.thematic_break;ft.prototype.block_quote=ft.prototype.block_quote;ft.prototype.list=ft.prototype.list;ft.prototype.item=ft.prototype.item;ft.prototype.custom_inline=ft.prototype.custom_inline;ft.prototype.custom_block=ft.prototype.custom_block;ft.prototype.table=ft.prototype.table;ft.prototype.row=ft.prototype.row;ft.prototype.td=ft.prototype.td;ft.prototype.th=ft.prototype.th;ft.prototype.out=ft.prototype.out;
ft.prototype.tag=ft.prototype.tag;ft.prototype.attrs=ft.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 kxn,HpS,STs;(function(){function G(p,Q){return p<Q?-1:p>Q?1:p>=Q?0:NaN}
function e(p){return function(Q,Y){return G(p(Q),Y)}}
function r(){for(var p=0,Q=arguments.length,Y={},GS;p<Q;++p){if(!(GS=arguments[p]+"")||GS in Y)throw Error("we`"+GS);Y[GS]=[]}return new Z(Y)}
function Z(p){this._=p}
function O(p,Q){return p.trim().split(/^|\s+/).map(function(Y){var GS="",E_=Y.indexOf(".");E_>=0&&(GS=Y.slice(E_+1),Y=Y.slice(0,E_));if(Y&&!Q.hasOwnProperty(Y))throw Error("xe`"+Y);return{type:Y,name:GS}})}
function M(p,Q,Y){for(var GS=0,E_=p.length;GS<E_;++GS)if(p[GS].name===Q){p[GS]=qNY;p=p.slice(0,GS).concat(p.slice(GS+1));break}Y!=null&&p.push({name:Q,value:Y});return p}
function T(p){var Q=p,Y=Q.indexOf(":");Y>=0&&(Q=p.slice(0,Y))!=="xmlns"&&(p=p.slice(Y+1));return xi.hasOwnProperty(Q)?{space:xi[Q],local:p}:p}
function E(p){return function(){var Q=this.ownerDocument,Y=this.namespaceURI;return Y==="http://www.w3.org/1999/xhtml"&&Q.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?Q.createElement(p):Q.createElementNS(Y,p)}}
function b(p){return function(){return this.ownerDocument.createElementNS(p.space,p.local)}}
function w(p){p=T(p);return(p.local?b:E)(p)}
function q(){}
function t(p){return p==null?q:function(){return this.querySelector(p)}}
function g(p){return Array(p.length)}
function l(p,Q){this.ownerDocument=p.ownerDocument;this.namespaceURI=p.namespaceURI;this._next=null;this._parent=p;this.__data__=Q}
function X(p){return function(){return p}}
function H(p,Q,Y,GS,E_,qU){for(var XN=0,Iy,Vv=Q.length,GC=qU.length;XN<GC;++XN)(Iy=Q[XN])?(Iy.__data__=qU[XN],GS[XN]=Iy):Y[XN]=new l(p,qU[XN]);for(;XN<Vv;++XN)if(Iy=Q[XN])E_[XN]=Iy}
function I(p,Q,Y,GS,E_,qU,XN){var Iy,Vv,GC={},TC=Q.length,$w=qU.length,Pc=Array(TC),QW;for(Iy=0;Iy<TC;++Iy)if(Vv=Q[Iy])Pc[Iy]=QW="$"+XN.call(Vv,Vv.__data__,Iy,Q),QW in GC?E_[Iy]=Vv:GC[QW]=Vv;for(Iy=0;Iy<$w;++Iy)QW="$"+XN.call(p,qU[Iy],Iy,qU),(Vv=GC[QW])?(GS[Iy]=Vv,Vv.__data__=qU[Iy],GC[QW]=null):Y[Iy]=new l(p,qU[Iy]);for(Iy=0;Iy<TC;++Iy)(Vv=Q[Iy])&&GC[Pc[Iy]]===Vv&&(E_[Iy]=Vv)}
function C(p,Q){return p<Q?-1:p>Q?1:p>=Q?0:NaN}
function u(p){return function(){this.removeAttribute(p)}}
function P(p){return function(){this.removeAttributeNS(p.space,p.local)}}
function F(p,Q){return function(){this.setAttribute(p,Q)}}
function J(p,Q){return function(){this.setAttributeNS(p.space,p.local,Q)}}
function U(p,Q){return function(){var Y=Q.apply(this,arguments);Y==null?this.removeAttribute(p):this.setAttribute(p,Y)}}
function e$(p,Q){return function(){var Y=Q.apply(this,arguments);Y==null?this.removeAttributeNS(p.space,p.local):this.setAttributeNS(p.space,p.local,Y)}}
function Dq(p){return function(){this.style.removeProperty(p)}}
function bF(p,Q,Y){return function(){this.style.setProperty(p,Q,Y)}}
function Kf(p,Q,Y){return function(){var GS=Q.apply(this,arguments);GS==null?this.style.removeProperty(p):this.style.setProperty(p,GS,Y)}}
function ti(p,Q){return p.style.getPropertyValue(Q)||(p.ownerDocument&&p.ownerDocument.defaultView||p.document&&p||p.defaultView).getComputedStyle(p,null).getPropertyValue(Q)}
function Ry(p){return function(){delete this[p]}}
function nf(p,Q){return function(){this[p]=Q}}
function k4(p,Q){return function(){var Y=Q.apply(this,arguments);Y==null?delete this[p]:this[p]=Y}}
function SE(){this.textContent=""}
function Fn(p){return function(){this.textContent=p}}
function kw(p){return function(){var Q=p.apply(this,arguments);this.textContent=Q==null?"":Q}}
function Lf(){this.innerHTML=""}
function vc(p){return function(){this.innerHTML=p}}
function IW(p){return function(){var Q=p.apply(this,arguments);this.innerHTML=Q==null?"":Q}}
function Hc(){return null}
function a8(){var p=this.parentNode;p&&p.removeChild(this)}
function t2(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function hi(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function rj(p,Q,Y){p=tS(p,Q,Y);return function(GS){var E_=GS.relatedTarget;E_&&(E_===this||E_.compareDocumentPosition(this)&8)||p.call(this,GS)}}
function tS(p,Q,Y){return function(){p.call(this,this.__data__,Q,Y)}}
function OV(p){return p.trim().split(/^|\s+/).map(function(Q){var Y="",GS=Q.indexOf(".");GS>=0&&(Y=Q.slice(GS+1),Q=Q.slice(0,GS));return{type:Q,name:Y}})}
function RW(p){return function(){var Q=this.__on;if(Q){for(var Y=0,GS=-1,E_=Q.length,qU;Y<E_;++Y)(qU=Q[Y],p.type&&qU.type!==p.type||qU.name!==p.name)?Q[++GS]=qU:this.removeEventListener(qU.type,qU.listener,qU.capture);++GS?Q.length=GS:delete this.__on}}}
function Zl(p,Q,Y){var GS=mCW.hasOwnProperty(p.type)?rj:tS;return function(E_,qU,XN){E_=this.__on;var Iy;qU=GS(Q,qU,XN);if(E_){XN=0;for(var Vv=E_.length;XN<Vv;++XN)if((Iy=E_[XN]).type===p.type&&Iy.name===p.name){this.removeEventListener(Iy.type,Iy.listener,Iy.capture);this.addEventListener(Iy.type,Iy.listener=qU,Iy.capture=Y);Iy.value=Q;return}}this.addEventListener(p.type,qU,Y);Iy={type:p.type,name:p.name,value:Q,listener:qU,capture:Y};E_?E_.push(Iy):this.__on=[Iy]}}
function pm(p,Q,Y){var GS=p.ownerDocument&&p.ownerDocument.defaultView||p.document&&p||p.defaultView,E_=GS.CustomEvent;typeof E_==="function"?E_=new E_(Q,Y):(E_=GS.document.createEvent("Event"),Y?(E_.initEvent(Q,Y.bubbles,Y.cancelable),E_.detail=Y.detail):E_.initEvent(Q,!1,!1));p.dispatchEvent(E_)}
function Bc(p,Q){return function(){return pm(this,p,Q)}}
function wj(p,Q){return function(){return pm(this,p,Q.apply(this,arguments))}}
function by(p,Q){this._groups=p;this._parents=Q}
function ea(){return new by([[document.documentElement]],tGd)}
function U_(){this._="@"+(++g92).toString(36)}
function ly(p,Q,Y){p.prototype=Q.prototype=Y;Y.constructor=p}
function gW(p,Q){p=Object.create(p.prototype);for(var Y in Q)p[Y]=Q[Y];return p}
function Ww(){}
function o8(p){var Q;p=(p+"").trim().toLowerCase();return(Q=ltA.exec(p))?(Q=parseInt(Q[1],16),new fd(Q>>8&15|Q>>4&240,Q>>4&15|Q&240,(Q&15)<<4|Q&15,1)):(Q=Ria.exec(p))?Y5(parseInt(Q[1],16)):(Q=j_a.exec(p))?new fd(Q[1],Q[2],Q[3],1):(Q=atd.exec(p))?new fd(Q[1]*255/100,Q[2]*255/100,Q[3]*255/100,1):(Q=Xbo.exec(p))?Wg(Q[1],Q[2],Q[3],Q[4]):(Q=KQC.exec(p))?Wg(Q[1]*255/100,Q[2]*255/100,Q[3]*255/100,Q[4]):(Q=ftY.exec(p))?Uw(Q[1],Q[2]/100,Q[3]/100,1):(Q=ksB.exec(p))?Uw(Q[1],Q[2]/100,Q[3]/100,Q[4]):c5c.hasOwnProperty(p)?
Y5(c5c[p]):p==="transparent"?new fd(NaN,NaN,NaN,0):null}
function Y5(p){return new fd(p>>16&255,p>>8&255,p&255,1)}
function Wg(p,Q,Y,GS){GS<=0&&(p=Q=Y=NaN);return new fd(p,Q,Y,GS)}
function TV(p){p instanceof Ww||(p=o8(p));if(!p)return new fd;p=p.rgb();return new fd(p.r,p.g,p.b,p.opacity)}
function Ul(p,Q,Y,GS){return arguments.length===1?TV(p):new fd(p,Q,Y,GS==null?1:GS)}
function fd(p,Q,Y,GS){this.r=+p;this.g=+Q;this.b=+Y;this.opacity=+GS}
function h2(p){p=Math.max(0,Math.min(255,Math.round(p)||0));return(p<16?"0":"")+p.toString(16)}
function Uw(p,Q,Y,GS){GS<=0?p=Q=Y=NaN:Y<=0||Y>=1?p=Q=NaN:Q<=0&&(p=NaN);return new rw(p,Q,Y,GS)}
function lx(p){if(p instanceof rw)return new rw(p.h,p.s,p.l,p.opacity);p instanceof Ww||(p=o8(p));if(!p)return new rw;if(p instanceof rw)return p;p=p.rgb();var Q=p.r/255,Y=p.g/255,GS=p.b/255,E_=Math.min(Q,Y,GS),qU=Math.max(Q,Y,GS),XN=NaN,Iy=qU-E_,Vv=(qU+E_)/2;Iy?(XN=Q===qU?(Y-GS)/Iy+(Y<GS)*6:Y===qU?(GS-Q)/Iy+2:(Q-Y)/Iy+4,Iy/=Vv<.5?qU+E_:2-qU-E_,XN*=60):Iy=Vv>0&&Vv<1?0:XN;return new rw(XN,Iy,Vv,p.opacity)}
function RF(p,Q,Y,GS){return arguments.length===1?lx(p):new rw(p,Q,Y,GS==null?1:GS)}
function rw(p,Q,Y,GS){this.h=+p;this.s=+Q;this.l=+Y;this.opacity=+GS}
function lL(p,Q,Y){return(p<60?Q+(Y-Q)*p/60:p<180?Y:p<240?Q+(Y-Q)*(240-p)/60:Q)*255}
function cJ(p){if(p instanceof ds)return new ds(p.l,p.a,p.b,p.opacity);if(p instanceof KP){if(isNaN(p.h))return new ds(p.l,0,0,p.opacity);var Q=p.h*YNc;return new ds(p.l,Math.cos(Q)*p.c,Math.sin(Q)*p.c,p.opacity)}p instanceof fd||(p=TV(p));var Y=lH(p.r),GS=lH(p.g),E_=lH(p.b);Q=mS(.2225045*Y+.7168786*GS+.0606169*E_);if(Y===GS&&GS===E_)var qU=Y=Q;else qU=mS((.4360747*Y+.3850649*GS+.1430804*E_)/.96422),Y=mS((.0139322*Y+.0971045*GS+.7141733*E_)/.82521);return new ds(116*Q-16,500*(qU-Q),200*(Q-Y),p.opacity)}
function ds(p,Q,Y,GS){this.l=+p;this.a=+Q;this.b=+Y;this.opacity=+GS}
function mS(p){return p>HK2?Math.pow(p,1/3):p/y5P+A5y}
function BA(p){return p>GN?p*p*p:y5P*(p-A5y)}
function aW(p){return 255*(p<=.0031308?12.92*p:1.055*Math.pow(p,1/2.4)-.055)}
function lH(p){return(p/=255)<=.04045?p/12.92:Math.pow((p+.055)/1.055,2.4)}
function o2(p){if(p instanceof KP)return new KP(p.h,p.c,p.l,p.opacity);p instanceof ds||(p=cJ(p));if(p.a===0&&p.b===0)return new KP(NaN,0,p.l,p.opacity);var Q=Math.atan2(p.b,p.a)*FQC;return new KP(Q<0?Q+360:Q,Math.sqrt(p.a*p.a+p.b*p.b),p.l,p.opacity)}
function sV(p,Q,Y,GS){return arguments.length===1?o2(p):new KP(p,Q,Y,GS==null?1:GS)}
function KP(p,Q,Y,GS){this.h=+p;this.c=+Q;this.l=+Y;this.opacity=+GS}
function Xn(p,Q,Y,GS){if(arguments.length===1){var E_=p;if(E_ instanceof m8)E_=new m8(E_.h,E_.s,E_.l,E_.opacity);else{E_ instanceof fd||(E_=TV(E_));var qU=E_.g/255,XN=E_.b/255,Iy=(J5C*XN+E_.r/255*-1.7884503806-3.5172982438*qU)/(J5C+-1.7884503806-3.5172982438);XN-=Iy;var Vv=(1.97294*(qU-Iy)- -.29227*XN)/-.90649;XN=(qU=Math.sqrt(Vv*Vv+XN*XN)/(1.97294*Iy*(1-Iy)))?Math.atan2(Vv,XN)*FQC-120:NaN;E_=new m8(XN<0?XN+360:XN,qU,Iy,E_.opacity)}}else E_=new m8(p,Q,Y,GS==null?1:GS);return E_}
function m8(p,Q,Y,GS){this.h=+p;this.s=+Q;this.l=+Y;this.opacity=+GS}
function gz(p,Q,Y,GS,E_){var qU=p*p,XN=qU*p;return((1-3*p+3*qU-XN)*Q+(4-6*qU+3*XN)*Y+(1+3*p+3*qU-3*XN)*GS+XN*E_)/6}
function gj(p){return function(){return p}}
function H2(p,Q){return function(Y){return p+Y*Q}}
function qI(p,Q,Y){return p=Math.pow(p,Y),Q=Math.pow(Q,Y)-p,Y=1/Y,function(GS){return Math.pow(p+GS*Q,Y)}}
function cw(p,Q){var Y=Q-p;return Y?H2(p,Y>180||Y<-180?Y-360*Math.round(Y/360):Y):gj(isNaN(p)?Q:p)}
function UM(p){return(p=+p)===1?Nh:function(Q,Y){return Y-Q?qI(Q,Y,p):gj(isNaN(Q)?Y:Q)}}
function Nh(p,Q){var Y=Q-p;return Y?H2(p,Y):gj(isNaN(p)?Q:p)}
function Mq(p){return function(Q){var Y=Q.length,GS=Array(Y),E_=Array(Y),qU=Array(Y),XN;for(XN=0;XN<Y;++XN){var Iy=Ul(Q[XN]);GS[XN]=Iy.r||0;E_[XN]=Iy.g||0;qU[XN]=Iy.b||0}GS=p(GS);E_=p(E_);qU=p(qU);Iy.opacity=1;return function(Vv){Iy.r=GS(Vv);Iy.g=E_(Vv);Iy.b=qU(Vv);return Iy+""}}}
function IP(p,Q){return p=+p,Q-=p,function(Y){return p+Q*Y}}
function vn(p){return function(){return p}}
function Z$(p){return function(Q){return p(Q)+""}}
function x4(p,Q){var Y=SNF.lastIndex=qNA.lastIndex=0,GS,E_,qU,XN=-1,Iy=[],Vv=[];p+="";for(Q+="";(GS=SNF.exec(p))&&(E_=qNA.exec(Q));)(qU=E_.index)>Y&&(qU=Q.slice(Y,qU),Iy[XN]?Iy[XN]+=qU:Iy[++XN]=qU),(GS=GS[0])===(E_=E_[0])?Iy[XN]?Iy[XN]+=E_:Iy[++XN]=E_:(Iy[++XN]=null,Vv.push({i:XN,x:IP(GS,E_)})),Y=qNA.lastIndex;Y<Q.length&&(qU=Q.slice(Y),Iy[XN]?Iy[XN]+=qU:Iy[++XN]=qU);return Iy.length<2?Vv[0]?Z$(Vv[0].x):vn(Q):(Q=Vv.length,function(GC){for(var TC=0,$w;TC<Q;++TC)Iy[($w=Vv[TC]).i]=$w.x(GC);return Iy.join("")})}
function kC(p,Q,Y,GS,E_,qU){var XN,Iy,Vv;if(XN=Math.sqrt(p*p+Q*Q))p/=XN,Q/=XN;if(Vv=p*Y+Q*GS)Y-=p*Vv,GS-=Q*Vv;if(Iy=Math.sqrt(Y*Y+GS*GS))Y/=Iy,GS/=Iy,Vv/=Iy;p*GS<Q*Y&&(p=-p,Q=-Q,Vv=-Vv,XN=-XN);return{translateX:E_,translateY:qU,rotate:Math.atan2(Q,p)*BDv,skewX:Math.atan(Vv)*BDv,scaleX:XN,scaleY:Iy}}
function yW(p,Q,Y,GS){function E_(GC){return GC.length?GC.pop()+" ":""}
function qU(GC,TC,$w,Pc,QW,jZ){GC!==$w||TC!==Pc?(QW=QW.push("translate(",null,Q,null,Y),jZ.push({i:QW-4,x:IP(GC,$w)},{i:QW-2,x:IP(TC,Pc)})):($w||Pc)&&QW.push("translate("+$w+Q+Pc+Y)}
function XN(GC,TC,$w,Pc){GC!==TC?(GC-TC>180?TC+=360:TC-GC>180&&(GC+=360),Pc.push({i:$w.push(E_($w)+"rotate(",null,GS)-2,x:IP(GC,TC)})):TC&&$w.push(E_($w)+"rotate("+TC+GS)}
function Iy(GC,TC,$w,Pc){GC!==TC?Pc.push({i:$w.push(E_($w)+"skewX(",null,GS)-2,x:IP(GC,TC)}):TC&&$w.push(E_($w)+"skewX("+TC+GS)}
function Vv(GC,TC,$w,Pc,QW,jZ){GC!==$w||TC!==Pc?(QW=QW.push(E_(QW)+"scale(",null,",",null,")"),jZ.push({i:QW-4,x:IP(GC,$w)},{i:QW-2,x:IP(TC,Pc)})):$w===1&&Pc===1||QW.push(E_(QW)+"scale("+$w+","+Pc+")")}
return function(GC,TC){var $w=[],Pc=[];GC=p(GC);TC=p(TC);qU(GC.translateX,GC.translateY,TC.translateX,TC.translateY,$w,Pc);XN(GC.rotate,TC.rotate,$w,Pc);Iy(GC.skewX,TC.skewX,$w,Pc);Vv(GC.scaleX,GC.scaleY,TC.scaleX,TC.scaleY,$w,Pc);GC=TC=null;return function(QW){for(var jZ=-1,J6=Pc.length,dP;++jZ<J6;)$w[(dP=Pc[jZ]).i]=dP.x(QW);return $w.join("")}}}
function bH(p){return function(Q,Y){var GS=p((Q=RF(Q)).h,(Y=RF(Y)).h),E_=Nh(Q.s,Y.s),qU=Nh(Q.l,Y.l),XN=Nh(Q.opacity,Y.opacity);return function(Iy){Q.h=GS(Iy);Q.s=E_(Iy);Q.l=qU(Iy);Q.opacity=XN(Iy);return Q+""}}}
function v2(p){return function(Q,Y){var GS=p((Q=sV(Q)).h,(Y=sV(Y)).h),E_=Nh(Q.c,Y.c),qU=Nh(Q.l,Y.l),XN=Nh(Q.opacity,Y.opacity);return function(Iy){Q.h=GS(Iy);Q.c=E_(Iy);Q.l=qU(Iy);Q.opacity=XN(Iy);return Q+""}}}
function zV(p){return function GS(Y){function E_(qU,XN){var Iy=p((qU=Xn(qU)).h,(XN=Xn(XN)).h),Vv=Nh(qU.s,XN.s),GC=Nh(qU.l,XN.l),TC=Nh(qU.opacity,XN.opacity);return function($w){qU.h=Iy($w);qU.s=Vv($w);qU.l=GC(Math.pow($w,Y));qU.opacity=TC($w);return qU+""}}
Y=+Y;E_.gamma=GS;return E_}(1)}
function Bp(){return kE||(xCy(Vb),kE=Ap.now()+sQa)}
function Vb(){kE=0}
function YO(){this._call=this._time=this._next=null}
function u5(p,Q,Y){var GS=new YO;GS.restart(p,Q,Y);return GS}
function nc(){kE=(QQi=Ap.now())+sQa;eY=F8=0;try{Bp();++eY;for(var p=IRq,Q;p;)(Q=kE-p._time)>=0&&p._call.call(null,Q),p=p._next;--eY}finally{eY=0;p=IRq;for(var Y=Infinity;p;)if(p._call){Y>p._time&&(Y=p._time);var GS=p;p=p._next}else Q=p._next,p._next=null,p=GS?GS._next=Q:IRq=Q;Jp=GS;mz(Y);kE=0}}
function Epa(){var p=Ap.now(),Q=p-QQi;Q>1E3&&(sQa-=Q,QQi=p)}
function mz(p){eY||(F8&&(F8=clearTimeout(F8)),p-kE>24?(p<Infinity&&(F8=setTimeout(nc,p-Ap.now()-sQa)),BM&&(BM=clearInterval(BM))):(BM||(QQi=Ap.now(),BM=setInterval(Epa,1E3)),eY=1,xCy(nc)))}
function Pib(p,Q,Y){var GS=new YO;Q=Q==null?0:+Q;GS.restart(function(E_){GS.stop();p(E_+Q)},Q,Y);
return GS}
function tGf(p,Q,Y,GS,E_,qU){var XN=p.__transition;if(!XN)p.__transition={};else if(Y in XN)return;dC8(p,Y,{name:Q,index:GS,group:E_,on:o9W,tween:s_C,time:qU.time,delay:qU.delay,duration:qU.duration,ease:qU.ease,timer:null,state:0})}
function g9i(p,Q){p=J8(p,Q);if(p.state>0)throw Error("ye");return p}
function HF(p,Q){p=J8(p,Q);if(p.state>2)throw Error("ze");return p}
function J8(p,Q){p=p.__transition;if(!p||!(p=p[Q]))throw Error("Ae");return p}
function dC8(p,Q,Y){function GS(Vv){var GC,TC;if(Y.state!==1)return qU();for(Pc in XN){var $w=XN[Pc];if($w.name===Y.name){if($w.state===3)return Pib(GS);$w.state===4?($w.state=6,$w.timer.stop(),$w.on.call("interrupt",p,p.__data__,$w.index,$w.group),delete XN[Pc]):+Pc<Q&&($w.state=6,$w.timer.stop(),delete XN[Pc])}}Pib(function(){Y.state===3&&(Y.state=4,Y.timer.restart(E_,Y.delay,Y.time),E_(Vv))});
Y.state=2;Y.on.call("start",p,p.__data__,Y.index,Y.group);if(Y.state===2){Y.state=3;Iy=Array(TC=Y.tween.length);var Pc=0;for(GC=-1;Pc<TC;++Pc)if($w=Y.tween[Pc].value.call(p,p.__data__,Y.index,Y.group))Iy[++GC]=$w;Iy.length=GC+1}}
function E_(Vv){Vv=Vv<Y.duration?Y.ease.call(null,Vv/Y.duration):(Y.timer.restart(qU),Y.state=5,1);for(var GC=-1,TC=Iy.length;++GC<TC;)Iy[GC].call(null,Vv);Y.state===5&&(Y.on.call("end",p,p.__data__,Y.index,Y.group),qU())}
function qU(){Y.state=6;Y.timer.stop();delete XN[Q];for(var Vv in XN)return;delete p.__transition}
var XN=p.__transition,Iy;XN[Q]=Y;Y.timer=u5(function(Vv){Y.state=1;Y.timer.restart(GS,Y.delay,Y.time);Y.delay<=Vv&&GS(Vv-Y.delay)},0,Y.time)}
function Q_l(p,Q){var Y,GS;return function(){var E_=HF(this,p),qU=E_.tween;if(qU!==Y){GS=Y=qU;qU=0;for(var XN=GS.length;qU<XN;++qU)if(GS[qU].name===Q){GS=GS.slice();GS.splice(qU,1);break}}E_.tween=GS}}
function ItB(p,Q,Y){var GS,E_;if(typeof Y!=="function")throw Error();return function(){var qU=HF(this,p),XN=qU.tween;if(XN!==GS){E_=(GS=XN).slice();XN={name:Q,value:Y};for(var Iy=0,Vv=E_.length;Iy<Vv;++Iy)if(E_[Iy].name===Q){E_[Iy]=XN;break}Iy===Vv&&E_.push(XN)}qU.tween=E_}}
function ltS(p,Q,Y){var GS=p._id;p.each(function(){var E_=HF(this,GS);(E_.value||(E_.value={}))[Q]=Y.apply(this,arguments)});
return function(E_){return J8(E_,GS).value[Q]}}
function UCP(p,Q){var Y;return(typeof Q==="number"?IP:Q instanceof o8?ziW:(Y=o8(Q))?(Q=Y,ziW):x4)(p,Q)}
function pbm(p){return function(){this.removeAttribute(p)}}
function CiA(p){return function(){this.removeAttributeNS(p.space,p.local)}}
function uwm(p,Q,Y){var GS,E_;return function(){var qU=this.getAttribute(p);return qU===Y?null:qU===GS?E_:E_=Q(GS=qU,Y)}}
function n9V(p,Q,Y){var GS,E_;return function(){var qU=this.getAttributeNS(p.space,p.local);return qU===Y?null:qU===GS?E_:E_=Q(GS=qU,Y)}}
function mCB(p,Q,Y){var GS,E_,qU;return function(){var XN=Y(this);if(XN==null)return void this.removeAttribute(p);var Iy=this.getAttribute(p);return Iy===XN?null:Iy===GS&&XN===E_?qU:qU=Q(GS=Iy,E_=XN)}}
function c5Y(p,Q,Y){var GS,E_,qU;return function(){var XN=Y(this);if(XN==null)return void this.removeAttributeNS(p.space,p.local);var Iy=this.getAttributeNS(p.space,p.local);return Iy===XN?null:Iy===GS&&XN===E_?qU:qU=Q(GS=Iy,E_=XN)}}
function YNY(p,Q){function Y(){var GS=this,E_=Q.apply(GS,arguments);return E_&&function(qU){GS.setAttributeNS(p.space,p.local,E_(qU))}}
Y._value=Q;return Y}
function y5d(p,Q){function Y(){var GS=this,E_=Q.apply(GS,arguments);return E_&&function(qU){GS.setAttribute(p,E_(qU))}}
Y._value=Q;return Y}
function A5H(p,Q){return function(){g9i(this,p).delay=+Q.apply(this,arguments)}}
function FQA(p,Q){return Q=+Q,function(){g9i(this,p).delay=Q}}
function J5A(p,Q){return function(){HF(this,p).duration=+Q.apply(this,arguments)}}
function BDW(p,Q){return Q=+Q,function(){HF(this,p).duration=Q}}
function xCH(p,Q){if(typeof Q!=="function")throw Error();return function(){HF(this,p).ease=Q}}
function Pil(p){return(p+"").trim().split(/^|\s+/).every(function(Q){var Y=Q.indexOf(".");Y>=0&&(Q=Q.slice(0,Y));return!Q||Q==="start"})}
function UCd(p,Q,Y){var GS,E_,qU=Pil(Q)?g9i:HF;return function(){var XN=qU(this,p),Iy=XN.on;if(Iy!==GS)(E_=(GS=Iy).copy()).on(Q,Y);XN.on=E_}}
function zi8(p){return function(){var Q=this.parentNode,Y;for(Y in this.__transition)if(+Y!==p)return;Q&&Q.removeChild(this)}}
function WQl(p,Q){var Y,GS,E_;return function(){var qU=ti(this,p),XN=(this.style.removeProperty(p),ti(this,p));return qU===XN?null:qU===Y&&XN===GS?E_:E_=Q(Y=qU,GS=XN)}}
function ND8(p){return function(){this.style.removeProperty(p)}}
function LQC(p,Q,Y){var GS,E_;return function(){var qU=ti(this,p);return qU===Y?null:qU===GS?E_:E_=Q(GS=qU,Y)}}
function GJB(p,Q,Y){var GS,E_,qU;return function(){var XN=ti(this,p),Iy=Y(this);Iy==null&&(Iy=(this.style.removeProperty(p),ti(this,p)));return XN===Iy?null:XN===GS&&Iy===E_?qU:qU=Q(GS=XN,E_=Iy)}}
function eKm(p,Q,Y){function GS(){var E_=this,qU=Q.apply(E_,arguments);return qU&&function(XN){E_.style.setProperty(p,qU(XN),Y)}}
GS._value=Q;return GS}
function rvo(p){return function(){this.textContent=p}}
function ZJB(p){return function(){var Q=p(this);this.textContent=Q==null?"":Q}}
function Rq(p,Q,Y,GS){this._groups=p;this._parents=Q;this._name=Y;this._id=GS}
function Ri$(p){return{type:p}}
function j_$(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function pgy(){}
function WQb(p,Q){var Y=new pgy;if(p instanceof pgy)p.each(function(XN,Iy){Y.set(Iy,XN)});
else if(Array.isArray(p)){var GS=-1,E_=p.length,qU;if(Q==null)for(;++GS<E_;)Y.set(GS,p[GS]);else for(;++GS<E_;)Y.set(Q(qU=p[GS],GS,p),qU)}else if(p)for(GS in p)Y.set(GS,p[GS]);return Y}
function Cj4(){}
function ND3(p){return function(Q){for(var Y={},GS=0;GS<p.length;GS++)Y[p[GS]]=Q[GS]||"";return Y}}
function OJC(p,Q){var Y=ND3(p);return function(GS,E_){return Q(Y(GS),E_,p)}}
function Mwo(p){var Q=Object.create(null),Y=[];p.forEach(function(GS){for(var E_ in GS)E_ in Q||Y.push(Q[E_]=E_)});
return Y}
function LQw(p){function Q(XN,Iy){function Vv(){if(jZ)return atf;if(J6)return J6=!1,GJW;var Zm,NI=$w,al;if(XN.charCodeAt(NI)===34){for(;$w++<TC&&XN.charCodeAt($w)!==34||XN.charCodeAt(++$w)===34;);(Zm=$w)>=TC?jZ=!0:(al=XN.charCodeAt($w++))===10?J6=!0:al===13&&(J6=!0,XN.charCodeAt($w)===10&&++$w);return XN.slice(NI+1,Zm-1).replace(/""/g,'"')}for(;$w<TC;){if((al=XN.charCodeAt(Zm=$w++))===10)J6=!0;else if(al===13)J6=!0,XN.charCodeAt($w)===10&&++$w;else if(al!==qU)continue;return XN.slice(NI,Zm)}return jZ=
!0,XN.slice(NI,TC)}
var GC=[],TC=XN.length,$w=0,Pc=0,QW,jZ=TC<=0,J6=!1;XN.charCodeAt(TC-1)===10&&--TC;for(XN.charCodeAt(TC-1)===13&&--TC;(QW=Vv())!==atf;){for(var dP=[];QW!==GJW&&QW!==atf;)dP.push(QW),QW=Vv();Iy&&(dP=Iy(dP,Pc++))==null||GC.push(dP)}return GC}
function Y(XN){return XN.map(GS).join(p)}
function GS(XN){return XN==null?"":E_.test(XN)?'"'+XN.replace(/"/g,'""')+'"':XN}
var E_=new RegExp('["'+p+"\n\r]"),qU=p.charCodeAt(0);return{parse:function(XN,Iy){var Vv,GC;XN=Q(XN,function(TC,$w){if(Vv)return Vv(TC,$w-1);GC=TC;Vv=Iy?OJC(TC,Iy):ND3(TC)});
XN.columns=GC||[];return XN},
parseRows:Q,format:function(XN,Iy){Iy==null&&(Iy=Mwo(XN));return[Iy.map(GS).join(p)].concat(XN.map(function(Vv){return Iy.map(function(GC){return GS(Vv[GC])}).join(p)})).join("\n")},
formatRows:function(XN){return XN.map(Y).join("\n")}}}
function Vwm(p){if(!p.ok)throw Error("Be`"+p.status+"`"+p.statusText);return p.text()}
function eKE(p){return function(Q,Y,GS){arguments.length===2&&typeof Y==="function"&&(GS=Y,Y=void 0);return fetch(Q,Y).then(Vwm).then(function(E_){return p(E_,GS)})}}
function rvn(p,Q,Y,GS){if(isNaN(Q)||isNaN(Y))return p;var E_,qU=p._root;GS={data:GS};var XN=p._x0,Iy=p._y0,Vv=p._x1,GC=p._y1,TC,$w,Pc,QW,jZ;if(!qU)return p._root=GS,p;for(;qU.length;)if((Pc=Q>=(TC=(XN+Vv)/2))?XN=TC:Vv=TC,(QW=Y>=($w=(Iy+GC)/2))?Iy=$w:GC=$w,E_=qU,!(qU=qU[jZ=QW<<1|Pc]))return E_[jZ]=GS,p;var J6=+p._x.call(null,qU.data);var dP=+p._y.call(null,qU.data);if(Q===J6&&Y===dP)return GS.next=qU,E_?E_[jZ]=GS:p._root=GS,p;do E_=E_?E_[jZ]=Array(4):p._root=Array(4),(Pc=Q>=(TC=(XN+Vv)/2))?XN=TC:Vv=
TC,(QW=Y>=($w=(Iy+GC)/2))?Iy=$w:GC=$w;while((jZ=QW<<1|Pc)===(Pc=(dP>=$w)<<1|J6>=TC));return E_[Pc]=qU,E_[jZ]=GS,p}
function xN(p,Q,Y,GS,E_){this.node=p;this.x0=Q;this.y0=Y;this.x1=GS;this.y1=E_}
function hKW(p){return p[0]}
function T9V(p){return p[1]}
function XbN(p,Q,Y,GS,E_,qU){this._x=p;this._y=Q;this._x0=Y;this._y0=GS;this._x1=E_;this._y1=qU;this._root=void 0}
function ZJW(p){for(var Q={data:p.data},Y=Q;p=p.next;)Y=Y.next={data:p.data};return Q}
function uHa(p,Q){if((Q=(p=Q?p.toExponential(Q-1):p.toExponential()).indexOf("e"))<0)return null;var Y=p.slice(0,Q);return[Y.length>1?Y[0]+Y.slice(2):Y,+p.slice(Q+1)]}
function D9V(p){return p=uHa(Math.abs(p)),p?p[1]:NaN}
function E_a(p,Q){return function(Y,GS){for(var E_=Y.length,qU=[],XN=0,Iy=p[0],Vv=0;E_>0&&Iy>0;){Vv+Iy+1>GS&&(Iy=Math.max(1,GS-Vv));qU.push(Y.substring(E_-=Iy,E_+Iy));if((Vv+=Iy+1)>GS)break;Iy=p[XN=(XN+1)%p.length]}return qU.reverse().join(Q)}}
function iJ8(p){return function(Q){return Q.replace(/[0-9]/g,function(Y){return p[+Y]})}}
function KQ4(p){return new ftA(p)}
function ftA(p){if(!(Q=bJW.exec(p)))throw Error("Ce`"+p);var Q;this.fill=Q[1]||" ";this.align=Q[2]||">";this.sign=Q[3]||"-";this.symbol=Q[4]||"";this.zero=!!Q[5];this.width=Q[6]&&+Q[6];this.comma=!!Q[7];this.precision=Q[8]&&+Q[8].slice(1);this.trim=!!Q[9];this.type=Q[10]||""}
function OJw(p,Q){Q=uHa(p,Q);if(!Q)return p+"";p=Q[0];Q=Q[1];return Q<0?"0."+Array(-Q).join("0")+p:p.length>Q+1?p.slice(0,Q+1)+"."+p.slice(Q+1):p+Array(Q-p.length+2).join("0")}
function Mwn(p){return p}
function v_l(p){function Q(Iy){function Vv(NZ){var tG=al,xC=VO,R2,Ek;if(NI==="c")xC=Lo(NZ)+xC,NZ="";else{NZ=+NZ;var Cd=NZ<0;NZ=Lo(Math.abs(NZ),dP);if(Zm){var U9=NZ.length,UH=1,OH=-1;a:for(;UH<U9;++UH)switch(NZ[UH]){case ".":OH=R2=UH;break;case "0":OH===0&&(OH=UH);R2=UH;break;default:if(!+NZ[UH])break a;OH>0&&(OH=0)}NZ=OH>0?NZ.slice(0,OH)+NZ.slice(R2+1):NZ}Cd&&+NZ===0&&(Cd=!1);tG=(Cd?$w==="("?$w:"-":$w==="-"||$w==="("?"":$w)+tG;xC=(NI==="s"?VwE[8+hKj/3]:"")+xC+(Cd&&$w==="("?")":"");if(aF)for(Cd=-1,
R2=NZ.length;++Cd<R2;)if(Ek=NZ.charCodeAt(Cd),48>Ek||Ek>57){xC=(Ek===46?E_+NZ.slice(Cd+1):NZ.slice(Cd))+xC;NZ=NZ.slice(0,Cd);break}}J6&&!QW&&(NZ=Y(NZ,Infinity));Ek=tG.length+NZ.length+xC.length;Cd=Ek<jZ?Array(jZ-Ek+1).join(GC):"";J6&&QW&&(NZ=Y(Cd+NZ,Cd.length?jZ-xC.length:Infinity),Cd="");switch(TC){case "<":NZ=tG+NZ+xC+Cd;break;case "=":NZ=tG+Cd+NZ+xC;break;case "^":NZ=Cd.slice(0,Ek=Cd.length>>1)+tG+NZ+xC+Cd.slice(Ek);break;default:NZ=Cd+tG+NZ+xC}return qU(NZ)}
Iy=KQ4(Iy);var GC=Iy.fill,TC=Iy.align,$w=Iy.sign,Pc=Iy.symbol,QW=Iy.zero,jZ=Iy.width,J6=Iy.comma,dP=Iy.precision,Zm=Iy.trim,NI=Iy.type;NI==="n"?(J6=!0,NI="g"):T9l[NI]||(dP==null&&(dP=12),Zm=!0,NI="g");if(QW||GC==="0"&&TC==="=")QW=!0,GC="0",TC="=";var al=Pc==="$"?GS[0]:Pc==="#"&&/[boxX]/.test(NI)?"0"+NI.toLowerCase():"",VO=Pc==="$"?GS[1]:/[%p]/.test(NI)?XN:"",Lo=T9l[NI],aF=/[defgprs%]/.test(NI);dP=dP==null?6:/[gprs]/.test(NI)?Math.max(1,Math.min(21,dP)):Math.max(0,Math.min(20,dP));Vv.toString=function(){return Iy+
""};
return Vv}
var Y=p.grouping&&p.thousands?E_a(p.grouping,p.thousands):Mwn,GS=p.currency,E_=p.decimal,qU=p.numerals?iJ8(p.numerals):Mwn,XN=p.percent||"%";return{format:Q,formatPrefix:function(Iy,Vv){var GC=Q((Iy=KQ4(Iy),Iy.type="f",Iy));Iy=Math.max(-8,Math.min(8,Math.floor(D9V(Vv)/3)))*3;var TC=Math.pow(10,-Iy),$w=VwE[8+Iy/3];return function(Pc){return GC(TC*Pc)+$w}}}}
function A3(){this.reset()}
function D9l(p,Q,Y){var GS=p.s=Q+Y,E_=GS-Q;p.t=Q-(GS-E_)+(Y-E_)}
function ncp(p){return p>1?P4:p<-1?-P4:Math.asin(p)}
function wZ8(){}
function E_E(p){var Q=p[0];p=p[1];var Y=Uz(p);return[Y*Uz(Q),Y*df(Q),df(p)]}
function iJW(p,Q){return[p[1]*Q[2]-p[2]*Q[1],p[2]*Q[0]-p[0]*Q[2],p[0]*Q[1]-p[1]*Q[0]]}
function bJv(p){var Q=mh_(p[0]*p[0]+p[1]*p[1]+p[2]*p[2]);p[0]/=Q;p[1]/=Q;p[2]/=Q}
function $9W(){var p=[],Q;return{point:function(Y,GS){Q.push([Y,GS])},
lineStart:function(){p.push(Q=[])},
lineEnd:wZ8,rejoin:function(){p.length>1&&p.push(p.pop().concat(p.shift()))},
result:function(){var Y=p;p=[];Q=null;return Y}}}
function cGa(p,Q,Y,GS){this.x=p;this.z=Q;this.o=Y;this.e=GS;this.v=!1;this.n=this.p=null}
function S1m(p,Q,Y,GS,E_){var qU=[],XN=[];p.forEach(function($w){if(!((Pc=$w.length-1)<=0)){var Pc,QW=$w[0],jZ=$w[Pc],J6=QW;if(jU(J6[0]-jZ[0])<1E-6&&jU(J6[1]-jZ[1])<1E-6){E_.lineStart();for(Iy=0;Iy<Pc;++Iy)E_.point((QW=$w[Iy])[0],QW[1]);E_.lineEnd()}else qU.push(Pc=new cGa(QW,$w,null,!0)),XN.push(Pc.o=new cGa(QW,null,Pc,!1)),qU.push(Pc=new cGa(jZ,$w,null,!1)),XN.push(Pc.o=new cGa(jZ,null,Pc,!0))}});
if(qU.length){XN.sort(Q);v_b(qU);v_b(XN);var Iy=0;for(p=XN.length;Iy<p;++Iy)XN[Iy].e=Y=!Y;Y=qU[0];for(var Vv;;){for(var GC=Y,TC=!0;GC.v;)if((GC=GC.n)===Y)return;Q=GC.z;E_.lineStart();do{GC.v=GC.o.v=!0;if(GC.e){if(TC)for(Iy=0,p=Q.length;Iy<p;++Iy)E_.point((Vv=Q[Iy])[0],Vv[1]);else GS(GC.x,GC.n.x,1,E_);GC=GC.n}else{if(TC)for(Q=GC.p.z,Iy=Q.length-1;Iy>=0;--Iy)E_.point((Vv=Q[Iy])[0],Vv[1]);else GS(GC.x,GC.p.x,-1,E_);GC=GC.p}GC=GC.o;Q=GC.z;TC=!TC}while(!GC.v);E_.lineEnd()}}}
function v_b(p){if(Q=p.length){for(var Q,Y=0,GS=p[0],E_;++Y<Q;)GS.n=E_=p[Y],E_.p=GS,GS=E_;GS.n=E_=p[0];E_.p=GS}}
function q1a(p){return p.length>1}
function twm(p,Q){return((p=p.x)[0]<0?p[1]-P4-1E-6:P4-p[1])-((Q=Q.x)[0]<0?Q[1]-P4-1E-6:P4-Q[1])}
function ksU(){}
function wZW(p){return function(Q,Y){var GS=Uz(Q),E_=Uz(Y);GS=p(GS*E_);return[GS*E_*df(Q),GS*df(Y)]}}
function xH(p){return function(Q,Y){var GS=mh_(Q*Q+Y*Y),E_=p(GS),qU=df(E_);E_=Uz(E_);return[$9v(Q*qU,GS*E_),ncp(GS&&Y*qU/GS)]}}
function g_o(p){var Q=0,Y=p.children,GS=Y&&Y.length;if(GS)for(;--GS>=0;)Q+=Y[GS].value;else Q=1;p.value=Q}
function S1E(p,Q){var Y=new PM(p);p=+p.value&&(Y.value=p.value);var GS,E_=[Y],qU,XN,Iy,Vv;for(Q==null&&(Q=lrC);GS=E_.pop();)if(p&&(GS.value=+GS.data.value),(XN=Q(GS.data))&&(Vv=XN.length))for(GS.children=Array(Vv),Iy=Vv-1;Iy>=0;--Iy)E_.push(qU=GS.children[Iy]=new PM(XN[Iy])),qU.parent=GS,qU.depth=GS.depth+1;return Y.eachBefore(RKV)}
function lrC(p){return p.children}
function jA8(p){p.data=p.data.data}
function RKV(p){var Q=0;do p.height=Q;while((p=p.parent)&&p.height<++Q)}
function PM(p){this.data=p;this.depth=this.height=0;this.parent=null}
function qz(p,Q,Y,GS){function E_(qU){return p(qU=new Date(+qU)),qU}
E_.floor=E_;E_.ceil=function(qU){return p(qU=new Date(qU-1)),Q(qU,1),p(qU),qU};
E_.round=function(qU){var XN=E_(qU),Iy=E_.ceil(qU);return qU-XN<Iy-qU?XN:Iy};
E_.offset=function(qU,XN){return Q(qU=new Date(+qU),XN==null?1:Math.floor(XN)),qU};
E_.range=function(qU,XN,Iy){var Vv=[],GC;qU=E_.ceil(qU);Iy=Iy==null?1:Math.floor(Iy);if(!(qU<XN&&Iy>0))return Vv;do Vv.push(GC=new Date(+qU)),Q(qU,Iy),p(qU);while(GC<qU&&qU<XN);return Vv};
E_.filter=function(qU){return qz(function(XN){if(XN>=XN)for(;p(XN),!qU(XN);)XN.setTime(XN-1)},function(XN,Iy){if(XN>=XN)if(Iy<0)for(;++Iy<=0;)for(;Q(XN,-1),!qU(XN););
else for(;--Iy>=0;)for(;Q(XN,1),!qU(XN););})};
Y&&(E_.count=function(qU,XN){HKi.setTime(+qU);dCy.setTime(+XN);p(HKi);p(dCy);return Math.floor(Y(HKi,dCy))},E_.every=function(qU){qU=Math.floor(qU);
return isFinite(qU)&&qU>0?qU>1?E_.filter(GS?function(XN){return GS(XN)%qU===0}:function(XN){return E_.count(0,XN)%qU===0}):E_:null});
return E_}
function d5(p){return qz(function(Q){Q.setDate(Q.getDate()-(Q.getDay()+7-p)%7);Q.setHours(0,0,0,0)},function(Q,Y){Q.setDate(Q.getDate()+Y*7)},function(Q,Y){return(Y-Q-(Y.getTimezoneOffset()-Q.getTimezoneOffset())*6E4)/6048E5})}
function ou(p){return qz(function(Q){Q.setUTCDate(Q.getUTCDate()-(Q.getUTCDay()+7-p)%7);Q.setUTCHours(0,0,0,0)},function(Q,Y){Q.setUTCDate(Q.getUTCDate()+Y*7)},function(Q,Y){return(Y-Q)/6048E5})}
function arH(p){if(0<=p.y&&p.y<100){var Q=new Date(-1,p.m,p.d,p.H,p.M,p.S,p.L);Q.setFullYear(p.y);return Q}return new Date(p.y,p.m,p.d,p.H,p.M,p.S,p.L)}
function Ysa(p){if(0<=p.y&&p.y<100){var Q=new Date(Date.UTC(-1,p.m,p.d,p.H,p.M,p.S,p.L));Q.setUTCFullYear(p.y);return Q}return new Date(Date.UTC(p.y,p.m,p.d,p.H,p.M,p.S,p.L))}
function Uj(p){return{y:p,m:0,d:1,H:0,M:0,S:0,L:0}}
function XZH(p){function Q(xC,R2){return function(Ek){var Cd=[],U9=-1,UH=0,OH=xC.length,RZ,R4;for(Ek instanceof Date||(Ek=new Date(+Ek));++U9<OH;)if(xC.charCodeAt(U9)===37){Cd.push(xC.slice(UH,U9));(UH=q1E[RZ=xC.charAt(++U9)])!=null?RZ=xC.charAt(++U9):UH=RZ==="e"?" ":"0";if(R4=R2[RZ])RZ=R4(Ek,UH);Cd.push(RZ);UH=U9+1}Cd.push(xC.slice(UH,U9));return Cd.join("")}}
function Y(xC,R2){return function(Ek){var Cd=Uj(1900);if(GS(Cd,xC,Ek,0)!=Ek.length)return null;if("Q"in Cd)return new Date(Cd.Q);"p"in Cd&&(Cd.H=Cd.H%12+Cd.p*12);if("V"in Cd){if(Cd.V<1||Cd.V>53)return null;"w"in Cd||(Cd.w=1);if("Z"in Cd){Ek=Ysa(Uj(Cd.y));var U9=Ek.getUTCDay();Ek=U9>4||U9===0?o9p.ceil(Ek):o9p(Ek);Ek=twE.offset(Ek,(Cd.V-1)*7);Cd.y=Ek.getUTCFullYear();Cd.m=Ek.getUTCMonth();Cd.d=Ek.getUTCDate()+(Cd.w+6)%7}else Ek=R2(Uj(Cd.y)),U9=Ek.getDay(),Ek=U9>4||U9===0?s_4.ceil(Ek):s_4(Ek),Ek=g_n.offset(Ek,
(Cd.V-1)*7),Cd.y=Ek.getFullYear(),Cd.m=Ek.getMonth(),Cd.d=Ek.getDate()+(Cd.w+6)%7}else if("W"in Cd||"U"in Cd)"w"in Cd||(Cd.w="u"in Cd?Cd.u%7:"W"in Cd?1:0),U9="Z"in Cd?Ysa(Uj(Cd.y)).getUTCDay():R2(Uj(Cd.y)).getDay(),Cd.m=0,Cd.d="W"in Cd?(Cd.w+6)%7+Cd.W*7-(U9+5)%7:Cd.w+Cd.U*7-(U9+6)%7;return"Z"in Cd?(Cd.H+=Cd.Z/100|0,Cd.M+=Cd.Z%100,Ysa(Cd)):R2(Cd)}}
function GS(xC,R2,Ek,Cd){for(var U9=0,UH=R2.length,OH=Ek.length,RZ;U9<UH;){if(Cd>=OH)return-1;RZ=R2.charCodeAt(U9++);if(RZ===37){if(RZ=R2.charAt(U9++),RZ=tG[RZ in q1E?R2.charAt(U9++):RZ],!RZ||(Cd=RZ(xC,Ek,Cd))<0)return-1}else if(RZ!=Ek.charCodeAt(Cd++))return-1}return Cd}
var E_=p.dateTime,qU=p.date,XN=p.time,Iy=p.periods,Vv=p.days,GC=p.shortDays,TC=p.months,$w=p.shortMonths,Pc=zk(Iy),QW=WM(Iy),jZ=zk(Vv),J6=WM(Vv),dP=zk(GC),Zm=WM(GC),NI=zk(TC),al=WM(TC),VO=zk($w),Lo=WM($w),aF={a:function(xC){return GC[xC.getDay()]},
A:function(xC){return Vv[xC.getDay()]},
b:function(xC){return $w[xC.getMonth()]},
B:function(xC){return TC[xC.getMonth()]},
c:null,d:lrw,e:lrw,f:K6o,H:fr8,I:kJB,j:HJY,L:RKl,m:d9d,M:o_o,p:function(xC){return Iy[+(xC.getHours()>=12)]},
Q:jA3,s:ary,S:sAl,u:QAa,U:IrA,V:pZV,w:CB8,W:uLC,x:null,X:null,y:n_W,Y:m9H,Z:cvo,"%":XZy},NZ={a:function(xC){return GC[xC.getUTCDay()]},
A:function(xC){return Vv[xC.getUTCDay()]},
b:function(xC){return $w[xC.getUTCMonth()]},
B:function(xC){return TC[xC.getUTCMonth()]},
c:null,d:K6n,e:K6n,f:Y1a,H:yv8,I:AvW,j:F6o,L:frW,m:JvY,M:B9A,p:function(xC){return Iy[+(xC.getUTCHours()>=12)]},
Q:jA3,s:ary,S:x9W,u:PB8,U:U98,V:zKA,w:W6d,W:N98,x:null,X:null,y:L6m,Y:G38,Z:evd,"%":XZy},tG={a:function(xC,R2,Ek){return(R2=dP.exec(R2.slice(Ek)))?(xC.w=Zm[R2[0].toLowerCase()],Ek+R2[0].length):-1},
A:function(xC,R2,Ek){return(R2=jZ.exec(R2.slice(Ek)))?(xC.w=J6[R2[0].toLowerCase()],Ek+R2[0].length):-1},
b:function(xC,R2,Ek){return(R2=VO.exec(R2.slice(Ek)))?(xC.m=Lo[R2[0].toLowerCase()],Ek+R2[0].length):-1},
B:function(xC,R2,Ek){return(R2=NI.exec(R2.slice(Ek)))?(xC.m=al[R2[0].toLowerCase()],Ek+R2[0].length):-1},
c:function(xC,R2,Ek){return GS(xC,E_,R2,Ek)},
d:kJW,e:kJW,f:rqY,H:HJc,I:HJc,j:Z0V,L:O02,m:MTH,M:VT8,p:function(xC,R2,Ek){return(R2=Pc.exec(R2.slice(Ek)))?(xC.p=QW[R2[0].toLowerCase()],Ek+R2[0].length):-1},
Q:hvW,s:THl,S:Dm8,u:EmH,U:i0A,V:b0H,w:vm2,W:wyo,x:function(xC,R2,Ek){return GS(xC,qU,R2,Ek)},
X:function(xC,R2,Ek){return GS(xC,XN,R2,Ek)},
y:$ml,Y:SEV,Z:qEH,"%":tTV};aF.x=Q(qU,aF);aF.X=Q(XN,aF);aF.c=Q(E_,aF);NZ.x=Q(qU,NZ);NZ.X=Q(XN,NZ);NZ.c=Q(E_,NZ);return{format:function(xC){var R2=Q(xC,aF);R2.toString=function(){return xC};
return R2},
parse:function(xC){var R2=Y(xC,arH);R2.toString=function(){return xC};
return R2},
utcFormat:function(xC){var R2=Q(xC,NZ);R2.toString=function(){return xC};
return R2},
utcParse:function(xC){var R2=Y(xC,Ysa);R2.toString=function(){return xC};
return R2}}}
function l6(p,Q,Y){var GS=p<0?"-":"";p=(GS?-p:p)+"";var E_=p.length;return GS+(E_<Y?Array(Y-E_+1).join(Q)+p:p)}
function gmC(p){return p.replace(loW,"\\$&")}
function zk(p){return new RegExp("^(?:"+p.map(gmC).join("|")+")","i")}
function WM(p){for(var Q={},Y=-1,GS=p.length;++Y<GS;)Q[p[Y].toLowerCase()]=Y;return Q}
function vm2(p,Q,Y){return(Q=XJ.exec(Q.slice(Y,Y+1)))?(p.w=+Q[0],Y+Q[0].length):-1}
function EmH(p,Q,Y){return(Q=XJ.exec(Q.slice(Y,Y+1)))?(p.u=+Q[0],Y+Q[0].length):-1}
function i0A(p,Q,Y){return(Q=XJ.exec(Q.slice(Y,Y+2)))?(p.U=+Q[0],Y+Q[0].length):-1}
function b0H(p,Q,Y){return(Q=XJ.exec(Q.slice(Y,Y+2)))?(p.V=+Q[0],Y+Q[0].length):-1}
function wyo(p,Q,Y){return(Q=XJ.exec(Q.slice(Y,Y+2)))?(p.W=+Q[0],Y+Q[0].length):-1}
function SEV(p,Q,Y){return(Q=XJ.exec(Q.slice(Y,Y+4)))?(p.y=+Q[0],Y+Q[0].length):-1}
function $ml(p,Q,Y){return(Q=XJ.exec(Q.slice(Y,Y+2)))?(p.y=+Q[0]+(+Q[0]>68?1900:2E3),Y+Q[0].length):-1}
function qEH(p,Q,Y){return(Q=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Q.slice(Y,Y+6)))?(p.Z=Q[1]?0:-(Q[2]+(Q[3]||"00")),Y+Q[0].length):-1}
function MTH(p,Q,Y){return(Q=XJ.exec(Q.slice(Y,Y+2)))?(p.m=Q[0]-1,Y+Q[0].length):-1}
function kJW(p,Q,Y){return(Q=XJ.exec(Q.slice(Y,Y+2)))?(p.d=+Q[0],Y+Q[0].length):-1}
function Z0V(p,Q,Y){return(Q=XJ.exec(Q.slice(Y,Y+3)))?(p.m=0,p.d=+Q[0],Y+Q[0].length):-1}
function HJc(p,Q,Y){return(Q=XJ.exec(Q.slice(Y,Y+2)))?(p.H=+Q[0],Y+Q[0].length):-1}
function VT8(p,Q,Y){return(Q=XJ.exec(Q.slice(Y,Y+2)))?(p.M=+Q[0],Y+Q[0].length):-1}
function Dm8(p,Q,Y){return(Q=XJ.exec(Q.slice(Y,Y+2)))?(p.S=+Q[0],Y+Q[0].length):-1}
function O02(p,Q,Y){return(Q=XJ.exec(Q.slice(Y,Y+3)))?(p.L=+Q[0],Y+Q[0].length):-1}
function rqY(p,Q,Y){return(Q=XJ.exec(Q.slice(Y,Y+6)))?(p.L=Math.floor(Q[0]/1E3),Y+Q[0].length):-1}
function tTV(p,Q,Y){return(p=RvY.exec(Q.slice(Y,Y+1)))?Y+p[0].length:-1}
function hvW(p,Q,Y){return(Q=XJ.exec(Q.slice(Y)))?(p.Q=+Q[0],Y+Q[0].length):-1}
function THl(p,Q,Y){return(Q=XJ.exec(Q.slice(Y)))?(p.Q=+Q[0]*1E3,Y+Q[0].length):-1}
function lrw(p,Q){return l6(p.getDate(),Q,2)}
function fr8(p,Q){return l6(p.getHours(),Q,2)}
function kJB(p,Q){return l6(p.getHours()%12||12,Q,2)}
function HJY(p,Q){return l6(1+g_n.count(r3(p),p),Q,3)}
function RKl(p,Q){return l6(p.getMilliseconds(),Q,3)}
function K6o(p,Q){return RKl(p,Q)+"000"}
function d9d(p,Q){return l6(p.getMonth()+1,Q,2)}
function o_o(p,Q){return l6(p.getMinutes(),Q,2)}
function sAl(p,Q){return l6(p.getSeconds(),Q,2)}
function QAa(p){p=p.getDay();return p===0?7:p}
function IrA(p,Q){return l6(jGY.count(r3(p),p),Q,2)}
function pZV(p,Q){var Y=p.getDay();p=Y>=4||Y===0?Q_q(p):Q_q.ceil(p);return l6(Q_q.count(r3(p),p)+(r3(p).getDay()===4),Q,2)}
function CB8(p){return p.getDay()}
function uLC(p,Q){return l6(s_4.count(r3(p),p),Q,2)}
function n_W(p,Q){return l6(p.getFullYear()%100,Q,2)}
function m9H(p,Q){return l6(p.getFullYear()%1E4,Q,4)}
function cvo(p){p=p.getTimezoneOffset();return(p>0?"-":(p*=-1,"+"))+l6(p/60|0,"0",2)+l6(p%60,"0",2)}
function K6n(p,Q){return l6(p.getUTCDate(),Q,2)}
function yv8(p,Q){return l6(p.getUTCHours(),Q,2)}
function AvW(p,Q){return l6(p.getUTCHours()%12||12,Q,2)}
function F6o(p,Q){return l6(1+twE.count(Ze(p),p),Q,3)}
function frW(p,Q){return l6(p.getUTCMilliseconds(),Q,3)}
function Y1a(p,Q){return frW(p,Q)+"000"}
function JvY(p,Q){return l6(p.getUTCMonth()+1,Q,2)}
function B9A(p,Q){return l6(p.getUTCMinutes(),Q,2)}
function x9W(p,Q){return l6(p.getUTCSeconds(),Q,2)}
function PB8(p){p=p.getUTCDay();return p===0?7:p}
function U98(p,Q){return l6(aoa.count(Ze(p),p),Q,2)}
function zKA(p,Q){var Y=p.getUTCDay();p=Y>=4||Y===0?ItU(p):ItU.ceil(p);return l6(ItU.count(Ze(p),p)+(Ze(p).getUTCDay()===4),Q,2)}
function W6d(p){return p.getUTCDay()}
function N98(p,Q){return l6(o9p.count(Ze(p),p),Q,2)}
function L6m(p,Q){return l6(p.getUTCFullYear()%100,Q,2)}
function G38(p,Q){return l6(p.getUTCFullYear()%1E4,Q,4)}
function evd(){return"+0000"}
function XZy(){return"%"}
function jA3(p){return+p}
function ary(p){return Math.floor(+p/1E3)}
function $f(p){for(var Q=p.length/6|0,Y=Array(Q),GS=0;GS<Q;)Y[GS]="#"+p.slice(GS*6,++GS*6);return Y}
function zb(p){return Xya(p[p.length-1])}
function yGy(p){var Q=p.length;return function(Y){return p[Math.max(0,Math.min(Q-1,Math.floor(Y*Q)))]}}
function d9P(p){this._context=p}
function o_n(p){this._curve=p}
function sAb(p,Q,Y){var GS=p._x1-p._x0;Q-=p._x1;var E_=(p._y1-p._y0)/(GS||Q<0&&-0);p=(Y-p._y1)/(Q||GS<0&&-0);return((E_<0?-1:1)+(p<0?-1:1))*Math.min(Math.abs(E_),Math.abs(p),.5*Math.abs((E_*Q+p*GS)/(GS+Q)))||0}
function QAE(p,Q){var Y=p._x1-p._x0;return Y?(3*(p._y1-p._y0)/Y-Q)/2:Q}
function pba(p,Q,Y){var GS=p._x0,E_=p._x1,qU=p._y1,XN=(E_-GS)/3;p._context.bezierCurveTo(GS+XN,p._y0+XN*Q,E_-XN,qU-XN*Y,E_,qU)}
function CiS(p){this._context=p}
function IrC(p){this._context=p}
function N5(p,Q,Y){this.k=p;this.x=Q;this.y=Y}
(function(p){p.length===1&&(p=e(p));return{left:function(Q,Y,GS,E_){GS==null&&(GS=0);E_==null&&(E_=Q.length);for(;GS<E_;){var qU=GS+E_>>>1;p(Q[qU],Y)<0?GS=qU+1:E_=qU}return GS},
right:function(Q,Y,GS,E_){GS==null&&(GS=0);E_==null&&(E_=Q.length);for(;GS<E_;){var qU=GS+E_>>>1;p(Q[qU],Y)>0?E_=qU:GS=qU+1}return GS}}})(G);
var qNY={value:function(){}};
Z.prototype=r.prototype={constructor:Z,on:function(p,Q){var Y=this._,GS=O(p+"",Y),E_,qU=-1,XN=GS.length;if(arguments.length<2)for(;++qU<XN;){var Iy;if(Iy=E_=(p=GS[qU]).type){a:{Iy=Y[E_];for(var Vv=0,GC=Iy.length;Vv<GC;++Vv)if((E_=Iy[Vv]).name===p.name){E_=E_.value;break a}E_=void 0}Iy=E_}if(Iy)return E_}else{if(Q!=null&&typeof Q!=="function")throw Error("De`"+Q);for(;++qU<XN;)if(E_=(p=GS[qU]).type)Y[E_]=M(Y[E_],p.name,Q);else if(Q==null)for(E_ in Y)Y[E_]=M(Y[E_],p.name,null);return this}},
copy:function(){var p={},Q=this._,Y;for(Y in Q)p[Y]=Q[Y].slice();return new Z(p)},
call:function(p,Q){if((E_=arguments.length-2)>0)for(var Y=Array(E_),GS=0,E_,qU;GS<E_;++GS)Y[GS]=arguments[GS+2];if(!this._.hasOwnProperty(p))throw Error("xe`"+p);qU=this._[p];GS=0;for(E_=qU.length;GS<E_;++GS)qU[GS].value.apply(Q,Y)},
apply:function(p,Q,Y){if(!this._.hasOwnProperty(p))throw Error("xe`"+p);p=this._[p];for(var GS=0,E_=p.length;GS<E_;++GS)p[GS].value.apply(Q,Y)}};
var xi={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/"},pZl=function(p){return function(){return this.matches(p)}};
if(typeof document!=="undefined"){var L$=document.documentElement;if(!L$.matches){var KNd=L$.webkitMatchesSelector||L$.msMatchesSelector||L$.mozMatchesSelector||L$.oMatchesSelector;pZl=function(p){return function(){return KNd.call(this,p)}}}}var CB3=pZl;
l.prototype={constructor:l,appendChild:function(p){return this._parent.insertBefore(p,this._next)},
insertBefore:function(p,Q){return this._parent.insertBefore(p,Q)},
querySelector:function(p){return this._parent.querySelector(p)},
querySelectorAll:function(p){return this._parent.querySelectorAll(p)}};
var mCW={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(mCW={mouseenter:"mouseover",mouseleave:"mouseout"}));var tGd=[null];by.prototype=ea.prototype={constructor:by,select:function(p){typeof p!=="function"&&(p=t(p));for(var Q=this._groups,Y=Q.length,GS=Array(Y),E_=0;E_<Y;++E_)for(var qU=Q[E_],XN=qU.length,Iy=GS[E_]=Array(XN),Vv,GC,TC=0;TC<XN;++TC)(Vv=qU[TC])&&(GC=p.call(Vv,Vv.__data__,TC,qU))&&("__data__"in Vv&&(GC.__data__=Vv.__data__),Iy[TC]=GC);return new by(GS,
this._parents)},
filter:function(p){typeof p!=="function"&&(p=CB3(p));for(var Q=this._groups,Y=Q.length,GS=Array(Y),E_=0;E_<Y;++E_)for(var qU=Q[E_],XN=qU.length,Iy=GS[E_]=[],Vv,GC=0;GC<XN;++GC)(Vv=qU[GC])&&p.call(Vv,Vv.__data__,GC,qU)&&Iy.push(Vv);return new by(GS,this._parents)},
data:function(p,Q){if(!p)return QW=Array(this.size()),GC=-1,this.each(function(NI){QW[++GC]=NI}),QW;
var Y=Q?I:H,GS=this._parents,E_=this._groups;typeof p!=="function"&&(p=X(p));for(var qU=E_.length,XN=Array(qU),Iy=Array(qU),Vv=Array(qU),GC=0;GC<qU;++GC){var TC=GS[GC],$w=E_[GC],Pc=$w.length,QW=p.call(TC,TC&&TC.__data__,GC,GS),jZ=QW.length,J6=Iy[GC]=Array(jZ),dP=XN[GC]=Array(jZ);Pc=Vv[GC]=Array(Pc);Y(TC,$w,J6,dP,Pc,QW,Q);$w=TC=0;for(var Zm;TC<jZ;++TC)if(Pc=J6[TC]){for(TC>=$w&&($w=TC+1);!(Zm=dP[$w])&&++$w<jZ;);Pc._next=Zm||null}}XN=new by(XN,GS);XN._enter=Iy;XN._exit=Vv;return XN},
enter:function(){return new by(this._enter||this._groups.map(g),this._parents)},
exit:function(){return new by(this._exit||this._groups.map(g),this._parents)},
merge:function(p){var Q=this._groups;p=p._groups;for(var Y=Q.length,GS=Math.min(Y,p.length),E_=Array(Y),qU=0;qU<GS;++qU)for(var XN=Q[qU],Iy=p[qU],Vv=XN.length,GC=E_[qU]=Array(Vv),TC,$w=0;$w<Vv;++$w)if(TC=XN[$w]||Iy[$w])GC[$w]=TC;for(;qU<Y;++qU)E_[qU]=Q[qU];return new by(E_,this._parents)},
order:function(){for(var p=this._groups,Q=-1,Y=p.length;++Q<Y;)for(var GS=p[Q],E_=GS.length-1,qU=GS[E_],XN;--E_>=0;)if(XN=GS[E_])qU&&qU!==XN.nextSibling&&qU.parentNode.insertBefore(XN,qU),qU=XN;return this},
sort:function(p){function Q($w,Pc){return $w&&Pc?p($w.__data__,Pc.__data__):!$w-!Pc}
p||(p=C);for(var Y=this._groups,GS=Y.length,E_=Array(GS),qU=0;qU<GS;++qU){for(var XN=Y[qU],Iy=XN.length,Vv=E_[qU]=Array(Iy),GC,TC=0;TC<Iy;++TC)if(GC=XN[TC])Vv[TC]=GC;Vv.sort(Q)}return(new by(E_,this._parents)).order()},
call:function(){var p=arguments[0];arguments[0]=this;p.apply(null,arguments);return this},
nodes:function(){var p=Array(this.size()),Q=-1;this.each(function(){p[++Q]=this});
return p},
node:function(){for(var p=this._groups,Q=0,Y=p.length;Q<Y;++Q)for(var GS=p[Q],E_=0,qU=GS.length;E_<qU;++E_){var XN=GS[E_];if(XN)return XN}return null},
size:function(){var p=0;this.each(function(){++p});
return p},
empty:function(){return!this.node()},
each:function(p){for(var Q=this._groups,Y=0,GS=Q.length;Y<GS;++Y)for(var E_=Q[Y],qU=0,XN=E_.length,Iy;qU<XN;++qU)(Iy=E_[qU])&&p.call(Iy,Iy.__data__,qU,E_);return this},
attr:function(p,Q){var Y=T(p);if(arguments.length<2){var GS=this.node();return Y.local?GS.getAttributeNS(Y.space,Y.local):GS.getAttribute(Y)}return this.each((Q==null?Y.local?P:u:typeof Q==="function"?Y.local?e$:U:Y.local?J:F)(Y,Q))},
style:function(p,Q,Y){return arguments.length>1?this.each((Q==null?Dq:typeof Q==="function"?Kf:bF)(p,Q,Y==null?"":Y)):ti(this.node(),p)},
property:function(p,Q){return arguments.length>1?this.each((Q==null?Ry:typeof Q==="function"?k4:nf)(p,Q)):this.node()[p]},
text:function(p){return arguments.length?this.each(p==null?SE:(typeof p==="function"?kw:Fn)(p)):this.node().textContent},
html:function(p){return arguments.length?this.each(p==null?Lf:(typeof p==="function"?IW:vc)(p)):this.node().innerHTML},
append:function(p){var Q=typeof p==="function"?p:w(p);return this.select(function(){return this.appendChild(Q.apply(this,arguments))})},
insert:function(p,Q){var Y=typeof p==="function"?p:w(p),GS=Q==null?Hc:typeof Q==="function"?Q:t(Q);return this.select(function(){return this.insertBefore(Y.apply(this,arguments),GS.apply(this,arguments)||null)})},
remove:function(){return this.each(a8)},
clone:function(p){return this.select(p?hi:t2)},
datum:function(p){return arguments.length?this.property("__data__",p):this.node().__data__},
on:function(p,Q,Y){var GS=OV(p+""),E_=GS.length,qU;if(arguments.length<2){var XN=this.node().__on;if(XN)for(var Iy=0,Vv=XN.length,GC;Iy<Vv;++Iy){var TC=0;for(GC=XN[Iy];TC<E_;++TC)if((qU=GS[TC]).type===GC.type&&qU.name===GC.name)return GC.value}}else{XN=Q?Zl:RW;Y==null&&(Y=!1);for(TC=0;TC<E_;++TC)this.each(XN(GS[TC],Q,Y));return this}},
dispatch:function(p,Q){return this.each((typeof Q==="function"?wj:Bc)(p,Q))}};
var g92=0;U_.prototype=function(){return new U_}.prototype={constructor:U_,
get:function(p){for(var Q=this._;!(Q in p);)if(!(p=p.parentNode))return;return p[Q]},
set:function(p,Q){return p[this._]=Q},
remove:function(p){return this._ in p&&delete p[this._]},
toString:function(){return this._}};
var Od=1/.7,ltA=/^#([0-9a-f]{3})$/,Ria=/^#([0-9a-f]{6})$/,j_a=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),atd=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Xbo=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),KQC=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*\\)$"),
ftY=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),ksB=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*\\)$"),c5c={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};
ly(Ww,o8,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
ly(fd,Ul,gW(Ww,{brighter:function(p){p=p==null?Od:Math.pow(Od,p);return new fd(this.r*p,this.g*p,this.b*p,this.opacity)},
darker:function(p){p=p==null?.7:Math.pow(.7,p);return new fd(this.r*p,this.g*p,this.b*p,this.opacity)},
rgb:function(){return this},
displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},
hex:function(){return"#"+h2(this.r)+h2(this.g)+h2(this.b)},
toString:function(){var p=this.opacity;p=isNaN(p)?1:Math.max(0,Math.min(1,p));return(p===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(p===1?")":", "+p+")")}}));
ly(rw,RF,gW(Ww,{brighter:function(p){p=p==null?Od:Math.pow(Od,p);return new rw(this.h,this.s,this.l*p,this.opacity)},
darker:function(p){p=p==null?.7:Math.pow(.7,p);return new rw(this.h,this.s,this.l*p,this.opacity)},
rgb:function(){var p=this.h%360+(this.h<0)*360,Q=this.l,Y=Q+(Q<.5?Q:1-Q)*(isNaN(p)||isNaN(this.s)?0:this.s);Q=2*Q-Y;return new fd(lL(p>=240?p-240:p+120,Q,Y),lL(p,Q,Y),lL(p<120?p+240:p-120,Q,Y),this.opacity)},
displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));
var YNc=Math.PI/180,FQC=180/Math.PI,A5y=4/29,GN=6/29,y5P=3*GN*GN,HK2=GN*GN*GN;ly(ds,function(p,Q,Y,GS){return arguments.length===1?cJ(p):new ds(p,Q,Y,GS==null?1:GS)},gW(Ww,{brighter:function(p){return new ds(this.l+18*(p==null?1:p),this.a,this.b,this.opacity)},
darker:function(p){return new ds(this.l-18*(p==null?1:p),this.a,this.b,this.opacity)},
rgb:function(){var p=(this.l+16)/116,Q=isNaN(this.a)?p:p+this.a/500,Y=isNaN(this.b)?p:p-this.b/200;Q=.96422*BA(Q);p=1*BA(p);Y=.82521*BA(Y);return new fd(aW(3.1338561*Q-1.6168667*p-.4906146*Y),aW(-.9787684*Q+1.9161415*p+.033454*Y),aW(.0719453*Q-.2289914*p+1.4052427*Y),this.opacity)}}));
ly(KP,sV,gW(Ww,{brighter:function(p){return new KP(this.h,this.c,this.l+18*(p==null?1:p),this.opacity)},
darker:function(p){return new KP(this.h,this.c,this.l-18*(p==null?1:p),this.opacity)},
rgb:function(){return cJ(this).rgb()}}));
var J5C=1.78277*-.29227-.1347134789;ly(m8,Xn,gW(Ww,{brighter:function(p){p=p==null?Od:Math.pow(Od,p);return new m8(this.h,this.s,this.l*p,this.opacity)},
darker:function(p){p=p==null?.7:Math.pow(.7,p);return new m8(this.h,this.s,this.l*p,this.opacity)},
rgb:function(){var p=isNaN(this.h)?0:(this.h+120)*YNc,Q=+this.l,Y=isNaN(this.s)?0:this.s*Q*(1-Q),GS=Math.cos(p);p=Math.sin(p);return new fd(255*(Q+Y*(-.14861*GS+1.78277*p)),255*(Q+Y*(-.29227*GS+-.90649*p)),255*(Q+1.97294*GS*Y),this.opacity)}}));
var ziW=function Y(Q){function GS(qU,XN){var Iy=E_((qU=Ul(qU)).r,(XN=Ul(XN)).r),Vv=E_(qU.g,XN.g),GC=E_(qU.b,XN.b),TC=Nh(qU.opacity,XN.opacity);return function($w){qU.r=Iy($w);qU.g=Vv($w);qU.b=GC($w);qU.opacity=TC($w);return qU+""}}
var E_=UM(Q);GS.gamma=Y;return GS}(1),Xya=Mq(function(Q){var Y=Q.length-1;
return function(GS){var E_=GS<=0?GS=0:GS>=1?(GS=1,Y-1):Math.floor(GS*Y),qU=Q[E_],XN=Q[E_+1];return gz((GS-E_/Y)*Y,E_>0?Q[E_-1]:2*qU-XN,qU,XN,E_<Y-1?Q[E_+2]:2*XN-qU)}});
Mq(function(Q){var Y=Q.length;return function(GS){var E_=Math.floor(((GS%=1)<0?++GS:GS)*Y);return gz((GS-E_/Y)*Y,Q[(E_+Y-1)%Y],Q[E_%Y],Q[(E_+1)%Y],Q[(E_+2)%Y])}});
var SNF=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qNA=new RegExp(SNF.source,"g"),BDv=180/Math.PI,uwa={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Gv,n9_,uLw,AGN,fo2=yW(function(Q){if(Q==="none")return uwa;Gv||(Gv=document.createElement("DIV"),n9_=document.documentElement,uLw=document.defaultView);Gv.style.transform=Q;Q=uLw.getComputedStyle(n9_.appendChild(Gv),null).getPropertyValue("transform");n9_.removeChild(Gv);Q=Q.slice(7,-1).split(",");return kC(+Q[0],+Q[1],+Q[2],+Q[3],
+Q[4],+Q[5])},"px, ","px)","deg)"),k3W=yW(function(Q){if(Q==null)return uwa;
AGN||(AGN=document.createElementNS("http://www.w3.org/2000/svg","g"));AGN.setAttribute("transform",Q);if(!(Q=AGN.transform.baseVal.consolidate()))return uwa;Q=Q.matrix;return kC(Q.a,Q.b,Q.c,Q.d,Q.e,Q.f)},", ",")",")");
bH(cw);bH(Nh);v2(cw);v2(Nh);zV(cw);var mCU=zV(Nh),eY=0,F8=0,BM=0,IRq,Jp,QQi=0,kE=0,sQa=0,Ap=typeof performance==="object"&&performance.now?performance:Date,xCy=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Q){setTimeout(Q,17)};
YO.prototype=u5.prototype={constructor:YO,restart:function(Q,Y,GS){if(typeof Q!=="function")throw new TypeError("Ee");GS=(GS==null?Bp():+GS)+(Y==null?0:+Y);this._next||Jp===this||(Jp?Jp._next=this:IRq=this,Jp=this);this._call=Q;this._time=GS;mz()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,mz())}};
var o9W=r("start","end","interrupt"),s_C=[],H02=ea.prototype.constructor,n_v=0,MF=ea.prototype;Rq.prototype=function(Q){return ea().transition(Q)}.prototype={constructor:Rq,
select:function(Q){var Y=this._name,GS=this._id;typeof Q!=="function"&&(Q=t(Q));for(var E_=this._groups,qU=E_.length,XN=Array(qU),Iy=0;Iy<qU;++Iy)for(var Vv=E_[Iy],GC=Vv.length,TC=XN[Iy]=Array(GC),$w,Pc,QW=0;QW<GC;++QW)($w=Vv[QW])&&(Pc=Q.call($w,$w.__data__,QW,Vv))&&("__data__"in $w&&(Pc.__data__=$w.__data__),TC[QW]=Pc,tGf(TC[QW],Y,GS,QW,TC,J8($w,GS)));return new Rq(XN,this._parents,Y,GS)},
filter:function(Q){typeof Q!=="function"&&(Q=CB3(Q));for(var Y=this._groups,GS=Y.length,E_=Array(GS),qU=0;qU<GS;++qU)for(var XN=Y[qU],Iy=XN.length,Vv=E_[qU]=[],GC,TC=0;TC<Iy;++TC)(GC=XN[TC])&&Q.call(GC,GC.__data__,TC,XN)&&Vv.push(GC);return new Rq(E_,this._parents,this._name,this._id)},
merge:function(Q){if(Q._id!==this._id)throw Error();var Y=this._groups;Q=Q._groups;for(var GS=Y.length,E_=Math.min(GS,Q.length),qU=Array(GS),XN=0;XN<E_;++XN)for(var Iy=Y[XN],Vv=Q[XN],GC=Iy.length,TC=qU[XN]=Array(GC),$w,Pc=0;Pc<GC;++Pc)if($w=Iy[Pc]||Vv[Pc])TC[Pc]=$w;for(;XN<GS;++XN)qU[XN]=Y[XN];return new Rq(qU,this._parents,this._name,this._id)},
selection:function(){return new H02(this._groups,this._parents)},
transition:function(){for(var Q=this._name,Y=this._id,GS=++n_v,E_=this._groups,qU=E_.length,XN=0;XN<qU;++XN)for(var Iy=E_[XN],Vv=Iy.length,GC,TC=0;TC<Vv;++TC)if(GC=Iy[TC]){var $w=J8(GC,Y);tGf(GC,Q,GS,TC,Iy,{time:$w.time+$w.delay+$w.duration,delay:0,duration:$w.duration,ease:$w.ease})}return new Rq(E_,this._parents,Q,GS)},
call:MF.call,nodes:MF.nodes,node:MF.node,size:MF.size,empty:MF.empty,each:MF.each,on:function(Q,Y){var GS=this._id;return arguments.length<2?J8(this.node(),GS).on.on(Q):this.each(UCd(GS,Q,Y))},
attr:function(Q,Y){var GS=T(Q),E_=GS==="transform"?k3W:UCP;return this.attrTween(Q,typeof Y==="function"?(GS.local?c5Y:mCB)(GS,E_,ltS(this,"attr."+Q,Y)):Y==null?(GS.local?CiA:pbm)(GS):(GS.local?n9V:uwm)(GS,E_,Y+""))},
attrTween:function(Q,Y){var GS="attr."+Q;if(arguments.length<2)return(GS=this.tween(GS))&&GS._value;if(Y==null)return this.tween(GS,null);if(typeof Y!=="function")throw Error();var E_=T(Q);return this.tween(GS,(E_.local?YNY:y5d)(E_,Y))},
style:function(Q,Y,GS){var E_=Q==="transform"?fo2:UCP;return Y==null?this.styleTween(Q,WQl(Q,E_)).on("end.style."+Q,ND8(Q)):this.styleTween(Q,typeof Y==="function"?GJB(Q,E_,ltS(this,"style."+Q,Y)):LQC(Q,E_,Y+""),GS)},
styleTween:function(Q,Y,GS){var E_="style."+Q;if(arguments.length<2)return(E_=this.tween(E_))&&E_._value;if(Y==null)return this.tween(E_,null);if(typeof Y!=="function")throw Error();return this.tween(E_,eKm(Q,Y,GS==null?"":GS))},
text:function(Q){return this.tween("text",typeof Q==="function"?ZJB(ltS(this,"text",Q)):rvo(Q==null?"":Q+""))},
remove:function(){return this.on("end.remove",zi8(this._id))},
tween:function(Q,Y){var GS=this._id;if(arguments.length<2){GS=J8(this.node(),GS).tween;for(var E_=0,qU=GS.length,XN;E_<qU;++E_)if((XN=GS[E_]).name===Q)return XN.value;return null}return this.each((Y==null?Q_l:ItB)(GS,Q,Y))},
delay:function(Q){var Y=this._id;return arguments.length?this.each((typeof Q==="function"?A5H:FQA)(Y,Q)):J8(this.node(),Y).delay},
duration:function(Q){var Y=this._id;return arguments.length?this.each((typeof Q==="function"?J5A:BDW)(Y,Q)):J8(this.node(),Y).duration},
ease:function(Q){var Y=this._id;return arguments.length?this.each(xCH(Y,Q)):J8(this.node(),Y).ease}};
var c5A={time:null,delay:0,duration:250,ease:function(Q){return((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2}};
ea.prototype.transition=function(Q){var Y;if(Q instanceof Rq){var GS=Q._id;Q=Q._name}else GS=++n_v,(Y=c5A).time=Bp(),Q=Q==null?null:Q+"";for(var E_=this._groups,qU=E_.length,XN=0;XN<qU;++XN)for(var Iy=E_[XN],Vv=Iy.length,GC,TC=0;TC<Vv;++TC)if(GC=Iy[TC]){var $w=GC,Pc=Q,QW=GS,jZ=TC,J6=Iy,dP;if(!(dP=Y))a:{dP=void 0;for(var Zm=GS;!(dP=GC.__transition)||!(dP=dP[Zm]);)if(!(GC=GC.parentNode)){dP=(c5A.time=Bp(),c5A);break a}}tGf($w,Pc,QW,jZ,J6,dP)}return new Rq(E_,this._parents,Q,GS)};
["e","w"].map(Ri$);["n","s"].map(Ri$);"n e s w nw ne se sw".split(" ").map(Ri$);j_$.prototype=function(){return new j_$}.prototype={constructor:j_$,
moveTo:function(Q,Y){this._+="M"+(this._x0=this._x1=+Q)+","+(this._y0=this._y1=+Y)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(Q,Y){this._+="L"+(this._x1=+Q)+","+(this._y1=+Y)},
bezierCurveTo:function(Q,Y,GS,E_,qU,XN){this._+="C"+ +Q+","+ +Y+","+ +GS+","+ +E_+","+(this._x1=+qU)+","+(this._y1=+XN)},
rect:function(Q,Y,GS,E_){this._+="M"+(this._x0=this._x1=+Q)+","+(this._y0=this._y1=+Y)+"h"+ +GS+"v"+ +E_+"h"+-GS+"Z"},
toString:function(){return this._}};
pgy.prototype=WQb.prototype={constructor:pgy,has:function(Q){return" "+Q in this},
get:function(Q){return this[" "+Q]},
set:function(Q,Y){this[" "+Q]=Y;return this},
remove:function(Q){Q=" "+Q;return Q in this&&delete this[Q]},
clear:function(){for(var Q in this)Q[0]===" "&&delete this[Q]},
keys:function(){var Q=[],Y;for(Y in this)Y[0]===" "&&Q.push(Y.slice(1));return Q},
values:function(){var Q=[],Y;for(Y in this)Y[0]===" "&&Q.push(this[Y]);return Q},
entries:function(){var Q=[],Y;for(Y in this)Y[0]===" "&&Q.push({key:Y.slice(1),value:this[Y]});return Q},
size:function(){var Q=0,Y;for(Y in this)Y[0]===" "&&++Q;return Q},
empty:function(){for(var Q in this)if(Q[0]===" ")return!1;return!0},
each:function(Q){for(var Y in this)Y[0]===" "&&Q(this[Y],Y.slice(1),this)}};
var sU=WQb.prototype;Cj4.prototype=function(Q,Y){var GS=new Cj4;if(Q instanceof Cj4)Q.each(function(XN){GS.add(XN)});
else if(Q){var E_=-1,qU=Q.length;if(Y==null)for(;++E_<qU;)GS.add(Q[E_]);else for(;++E_<qU;)GS.add(Y(Q[E_],E_,Q))}return GS}.prototype={constructor:Cj4,
has:sU.has,add:function(Q){this[" "+Q]=Q;return this},
remove:sU.remove,clear:sU.clear,values:sU.keys,size:sU.size,empty:sU.empty,each:sU.each};var GJW={},atf={},dmo=LQw(",").parse,omm=LQw("\t").parse;eKE(dmo);eKE(omm);var P1=function(Q,Y,GS){Y=new XbN(Y==null?hKW:Y,GS==null?T9V:GS,NaN,NaN,NaN,NaN);return Q==null?Y:Y.addAll(Q)}.prototype=XbN.prototype;
P1.copy=function(){var Q=new XbN(this._x,this._y,this._x0,this._y0,this._x1,this._y1),Y=this._root,GS,E_;if(!Y)return Q;if(!Y.length)return Q._root=ZJW(Y),Q;for(GS=[{source:Y,target:Q._root=Array(4)}];Y=GS.pop();)for(var qU=0;qU<4;++qU)if(E_=Y.source[qU])E_.length?GS.push({source:E_,target:Y.target[qU]=Array(4)}):Y.target[qU]=ZJW(E_);return Q};
P1.add=function(Q){var Y=+this._x.call(null,Q),GS=+this._y.call(null,Q);return rvn(this.cover(Y,GS),Y,GS,Q)};
P1.addAll=function(Q){var Y,GS,E_=Q.length,qU,XN,Iy=Array(E_),Vv=Array(E_),GC=Infinity,TC=Infinity,$w=-Infinity,Pc=-Infinity;for(GS=0;GS<E_;++GS)isNaN(qU=+this._x.call(null,Y=Q[GS]))||isNaN(XN=+this._y.call(null,Y))||(Iy[GS]=qU,Vv[GS]=XN,qU<GC&&(GC=qU),qU>$w&&($w=qU),XN<TC&&(TC=XN),XN>Pc&&(Pc=XN));$w<GC&&(GC=this._x0,$w=this._x1);Pc<TC&&(TC=this._y0,Pc=this._y1);this.cover(GC,TC).cover($w,Pc);for(GS=0;GS<E_;++GS)rvn(this,Iy[GS],Vv[GS],Q[GS]);return this};
P1.cover=function(Q,Y){if(isNaN(Q=+Q)||isNaN(Y=+Y))return this;var GS=this._x0,E_=this._y0,qU=this._x1,XN=this._y1;if(isNaN(GS))qU=(GS=Math.floor(Q))+1,XN=(E_=Math.floor(Y))+1;else if(GS>Q||Q>qU||E_>Y||Y>XN){var Iy=qU-GS,Vv=this._root,GC;switch(GC=(Y<(E_+XN)/2)<<1|Q<(GS+qU)/2){case 0:do{var TC=Array(4);TC[GC]=Vv;Vv=TC}while(Iy*=2,qU=GS+Iy,XN=E_+Iy,Q>qU||Y>XN);break;case 1:do TC=Array(4),TC[GC]=Vv,Vv=TC;while(Iy*=2,GS=qU-Iy,XN=E_+Iy,GS>Q||Y>XN);break;case 2:do TC=Array(4),TC[GC]=Vv,Vv=TC;while(Iy*=
2,qU=GS+Iy,E_=XN-Iy,Q>qU||E_>Y);break;case 3:do TC=Array(4),TC[GC]=Vv,Vv=TC;while(Iy*=2,GS=qU-Iy,E_=XN-Iy,GS>Q||E_>Y)}this._root&&this._root.length&&(this._root=Vv)}else return this;this._x0=GS;this._y0=E_;this._x1=qU;this._y1=XN;return this};
P1.data=function(){var Q=[];this.visit(function(Y){if(!Y.length){do Q.push(Y.data);while(Y=Y.next)}});
return Q};
P1.extent=function(Q){return arguments.length?this.cover(+Q[0][0],+Q[0][1]).cover(+Q[1][0],+Q[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
P1.find=function(Q,Y,GS){var E_=this._x0,qU=this._y0,XN,Iy,Vv,GC,TC=this._x1,$w=this._y1,Pc=[],QW=this._root,jZ;QW&&Pc.push(new xN(QW,E_,qU,TC,$w));GS==null?GS=Infinity:(E_=Q-GS,qU=Y-GS,TC=Q+GS,$w=Y+GS,GS*=GS);for(;jZ=Pc.pop();)if(!(!(QW=jZ.node)||(XN=jZ.x0)>TC||(Iy=jZ.y0)>$w||(Vv=jZ.x1)<E_||(GC=jZ.y1)<qU))if(QW.length){jZ=(XN+Vv)/2;var J6=(Iy+GC)/2;Pc.push(new xN(QW[3],jZ,J6,Vv,GC),new xN(QW[2],XN,J6,jZ,GC),new xN(QW[1],jZ,Iy,Vv,J6),new xN(QW[0],XN,Iy,jZ,J6));if(QW=(Y>=J6)<<1|Q>=jZ)jZ=Pc[Pc.length-
1],Pc[Pc.length-1]=Pc[Pc.length-1-QW],Pc[Pc.length-1-QW]=jZ}else if(jZ=Q-+this._x.call(null,QW.data),J6=Y-+this._y.call(null,QW.data),jZ=jZ*jZ+J6*J6,jZ<GS){var dP=Math.sqrt(GS=jZ);E_=Q-dP;qU=Y-dP;TC=Q+dP;$w=Y+dP;dP=QW.data}return dP};
P1.remove=function(Q){if(isNaN(GC=+this._x.call(null,Q))||isNaN(TC=+this._y.call(null,Q)))return this;var Y,GS=this._root,E_,qU=this._x0,XN=this._y0,Iy=this._x1,Vv=this._y1,GC,TC,$w,Pc,QW,jZ,J6;if(!GS)return this;if(GS.length)for(;;){(QW=GC>=($w=(qU+Iy)/2))?qU=$w:Iy=$w;(jZ=TC>=(Pc=(XN+Vv)/2))?XN=Pc:Vv=Pc;if(!(Y=GS,GS=GS[J6=jZ<<1|QW]))return this;if(!GS.length)break;if(Y[J6+1&3]||Y[J6+2&3]||Y[J6+3&3]){var dP=Y;var Zm=J6}}for(;GS.data!==Q;)if(!(E_=GS,GS=GS.next))return this;(Q=GS.next)&&delete GS.next;
if(E_)return Q?E_.next=Q:delete E_.next,this;if(!Y)return this._root=Q,this;Q?Y[J6]=Q:delete Y[J6];(GS=Y[0]||Y[1]||Y[2]||Y[3])&&GS===(Y[3]||Y[2]||Y[1]||Y[0])&&!GS.length&&(dP?dP[Zm]=GS:this._root=GS);return this};
P1.removeAll=function(Q){for(var Y=0,GS=Q.length;Y<GS;++Y)this.remove(Q[Y]);return this};
P1.root=function(){return this._root};
P1.size=function(){var Q=0;this.visit(function(Y){if(!Y.length){do++Q;while(Y=Y.next)}});
return Q};
P1.visit=function(Q){var Y=[],GS,E_=this._root,qU,XN,Iy,Vv,GC;for(E_&&Y.push(new xN(E_,this._x0,this._y0,this._x1,this._y1));GS=Y.pop();)if(!Q(E_=GS.node,XN=GS.x0,Iy=GS.y0,Vv=GS.x1,GC=GS.y1)&&E_.length){GS=(XN+Vv)/2;var TC=(Iy+GC)/2;(qU=E_[3])&&Y.push(new xN(qU,GS,TC,Vv,GC));(qU=E_[2])&&Y.push(new xN(qU,XN,TC,GS,GC));(qU=E_[1])&&Y.push(new xN(qU,GS,Iy,Vv,TC));(qU=E_[0])&&Y.push(new xN(qU,XN,Iy,GS,TC))}};
P1.visitAfter=function(Q){var Y=[],GS=[],E_;for(this._root&&Y.push(new xN(this._root,this._x0,this._y0,this._x1,this._y1));E_=Y.pop();){var qU=E_.node;if(qU.length){var XN,Iy=E_.x0,Vv=E_.y0,GC=E_.x1,TC=E_.y1,$w=(Iy+GC)/2,Pc=(Vv+TC)/2;(XN=qU[0])&&Y.push(new xN(XN,Iy,Vv,$w,Pc));(XN=qU[1])&&Y.push(new xN(XN,$w,Vv,GC,Pc));(XN=qU[2])&&Y.push(new xN(XN,Iy,Pc,$w,TC));(XN=qU[3])&&Y.push(new xN(XN,$w,Pc,GC,TC))}GS.push(E_)}for(;E_=GS.pop();)Q(E_.node,E_.x0,E_.y0,E_.x1,E_.y1);return this};
P1.x=function(Q){return arguments.length?(this._x=Q,this):this._x};
P1.y=function(Q){return arguments.length?(this._y=Q,this):this._y};
var bJW=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;KQ4.prototype=ftA.prototype;ftA.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 hKj,T9l={"%":function(Q,Y){return(Q*100).toFixed(Y)},
b:function(Q){return Math.round(Q).toString(2)},
c:function(Q){return Q+""},
d:function(Q){return Math.round(Q).toString(10)},
e:function(Q,Y){return Q.toExponential(Y)},
f:function(Q,Y){return Q.toFixed(Y)},
g:function(Q,Y){return Q.toPrecision(Y)},
o:function(Q){return Math.round(Q).toString(8)},
p:function(Q,Y){return OJw(Q*100,Y)},
r:OJw,s:function(Q,Y){var GS=uHa(Q,Y);if(!GS)return Q+"";var E_=GS[0];GS=GS[1];GS=GS-(hKj=Math.max(-8,Math.min(8,Math.floor(GS/3)))*3)+1;var qU=E_.length;return GS===qU?E_:GS>qU?E_+Array(GS-qU+1).join("0"):GS>0?E_.slice(0,GS)+"."+E_.slice(GS):"0."+Array(1-GS).join("0")+uHa(Q,Math.max(0,Y+GS-1))[0]},
X:function(Q){return Math.round(Q).toString(16).toUpperCase()},
x:function(Q){return Math.round(Q).toString(16)}},VwE="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),sG2;
(function(Q){return sG2=v_l(Q)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});A3.prototype={constructor:A3,reset:function(){this.s=this.t=0},
add:function(Q){D9l(Ffy,Q,this.t);D9l(this,Ffy.s,this.s);this.s?this.t+=Ffy.t:this.s=Ffy.t},
valueOf:function(){return this.s}};
var Ffy=new A3,z2=Math.PI,P4=z2/2,m9y=z2/4,QGY=z2*2,YNA=z2/180,jU=Math.abs,y5f=Math.atan,$9v=Math.atan2,Uz=Math.cos,df=Math.sin,mh_=Math.sqrt;new A3;new A3;new A3;var A5F=new A3;(function(Q,Y,GS,E_){return function(qU){function XN(Lo,aF){Q(Lo,aF)&&qU.point(Lo,aF)}
function Iy(Lo,aF){QW.point(Lo,aF)}
function Vv(){VO.point=Iy;QW.lineStart()}
function GC(){VO.point=XN;QW.lineEnd()}
function TC(Lo,aF){al.push([Lo,aF]);J6.point(Lo,aF)}
function $w(){J6.lineStart();al=[]}
function Pc(){TC(al[0][0],al[0][1]);J6.lineEnd();var Lo=J6.clean(),aF=jZ.result(),NZ=aF.length,tG;al.pop();Zm.push(al);al=null;if(NZ)if(Lo&1){if(NZ=aF[0],(aF=NZ.length-1)>0){dP||(qU.polygonStart(),dP=!0);qU.lineStart();for(Lo=0;Lo<aF;++Lo)qU.point((tG=NZ[Lo])[0],tG[1]);qU.lineEnd()}}else NZ>1&&Lo&2&&aF.push(aF.pop().concat(aF.shift())),NI.push(aF.filter(q1a))}
var QW=Y(qU),jZ=$9W(),J6=Y(jZ),dP=!1,Zm,NI,al,VO={point:XN,lineStart:Vv,lineEnd:GC,polygonStart:function(){VO.point=TC;VO.lineStart=$w;VO.lineEnd=Pc;NI=[];Zm=[]},
polygonEnd:function(){VO.point=XN;VO.lineStart=Vv;VO.lineEnd=GC;var Lo=NI,aF=Lo.length;var NZ=-1;for(var tG=0,xC,R2;++NZ<aF;)tG+=Lo[NZ].length;for(xC=Array(tG);--aF>=0;)for(R2=Lo[aF],NZ=R2.length;--NZ>=0;)xC[--tG]=R2[NZ];NI=xC;Lo=Zm;aF=E_[0];tG=E_[1];var Ek=df(tG);NZ=[df(aF),-Uz(aF),0];R2=xC=0;A5F.reset();Ek===1?tG=P4+1E-6:Ek===-1&&(tG=-P4-1E-6);Ek=0;for(var Cd=Lo.length;Ek<Cd;++Ek)if(UH=(U9=Lo[Ek]).length){var U9,UH,OH=U9[UH-1],RZ=OH[0],R4=OH[1]/2+m9y,JGF=df(R4),cvn=Uz(R4);for(R4=0;R4<UH;++R4,RZ=
FQS,JGF=Y1E,cvn=eQ,OH=Blq){var Blq=U9[R4],FQS=Blq[0];eQ=Blq[1]/2+m9y;var Y1E=df(eQ),eQ=Uz(eQ),V7=FQS-RZ,J5S=V7>=0?1:-1,BDp=J5S*V7,xhS=BDp>z2;JGF*=Y1E;A5F.add($9v(JGF*J5S*df(BDp),cvn*eQ+JGF*Uz(BDp)));xC+=xhS?V7+J5S*QGY:V7;xhS^RZ>=aF^FQS>=aF&&(OH=iJW(E_E(OH),E_E(Blq)),bJv(OH),RZ=iJW(NZ,OH),bJv(RZ),RZ=(xhS^V7>=0?-1:1)*ncp(RZ[2]),tG>RZ||tG===RZ&&(OH[0]||OH[1]))&&(R2+=xhS^V7>=0?1:-1)}}Lo=(xC<-1E-6||xC<1E-6&&A5F<-1E-6)^R2&1;NI.length?(dP||(qU.polygonStart(),dP=!0),S1m(NI,twm,Lo,GS,qU)):Lo&&(dP||(qU.polygonStart(),
dP=!0),qU.lineStart(),GS(null,null,1,qU),qU.lineEnd());dP&&(qU.polygonEnd(),dP=!1);NI=Zm=null},
sphere:function(){qU.polygonStart();qU.lineStart();GS(null,null,1,qU);qU.lineEnd();qU.polygonEnd()}};
return VO}})(function(){return!0},function(Q){var Y=NaN,GS=NaN,E_=NaN,qU;
return{lineStart:function(){Q.lineStart();qU=1},
point:function(XN,Iy){var Vv=XN>0?z2:-z2,GC=jU(XN-Y);if(jU(GC-z2)<1E-6)Q.point(Y,GS=(GS+Iy)/2>0?P4:-P4),Q.point(E_,GS),Q.lineEnd(),Q.lineStart(),Q.point(Vv,GS),Q.point(XN,GS),qU=0;else if(E_!==Vv&&GC>=z2){jU(Y-E_)<1E-6&&(Y-=E_*1E-6);jU(XN-Vv)<1E-6&&(XN-=Vv*1E-6);GC=Y;var TC=GS,$w=XN,Pc,QW,jZ=df(GC-$w);GS=jU(jZ)>1E-6?y5f((df(TC)*(QW=Uz(Iy))*df($w)-df(Iy)*(Pc=Uz(TC))*df(GC))/(Pc*QW*jZ)):(TC+Iy)/2;Q.point(E_,GS);Q.lineEnd();Q.lineStart();Q.point(Vv,GS);qU=0}Q.point(Y=XN,GS=Iy);E_=Vv},
lineEnd:function(){Q.lineEnd();Y=GS=NaN},
clean:function(){return 2-qU}}},function(Q,Y,GS,E_){Q==null?(GS*=P4,E_.point(-z2,GS),E_.point(0,GS),E_.point(z2,GS),E_.point(z2,0),E_.point(z2,-GS),E_.point(0,-GS),E_.point(-z2,-GS),E_.point(-z2,0),E_.point(-z2,GS)):jU(Q[0]-Y[0])>1E-6?(Q=Q[0]<Y[0]?z2:-z2,GS=GS*Q/2,E_.point(-Q,GS),E_.point(0,GS),E_.point(Q,GS)):E_.point(Y[0],Y[1])},[-z2,
-P4]);new A3;new A3;new A3;new A3;ksU.prototype={constructor:ksU,point:function(Q,Y){this.stream.point(Q,Y)},
sphere:function(){this.stream.sphere()},
lineStart:function(){this.stream.lineStart()},
lineEnd:function(){this.stream.lineEnd()},
polygonStart:function(){this.stream.polygonStart()},
polygonEnd:function(){this.stream.polygonEnd()}};
Uz(30*YNA);(function(Q){return function(Y){var GS=new ksU,E_;for(E_ in Q)GS[E_]=Q[E_];GS.stream=Y;return GS}})({point:function(Q,Y){this.stream.point(Q*YNA,Y*YNA)}});
wZW(function(Q){return mh_(2/(1+Q))}).invert=xH(function(Q){return 2*ncp(Q/2)});
wZW(function(Q){return(Q=Q>1?0:Q<-1?z2:Math.acos(Q))&&Q/df(Q)}).invert=xH(function(Q){return Q});
mh_(3);xH(y5f);xH(ncp);xH(function(Q){return 2*y5f(Q)});
PM.prototype=S1E.prototype={constructor:PM,count:function(){return this.eachAfter(g_o)},
each:function(Q){var Y,GS=[this],E_;do{var qU=GS.reverse();for(GS=[];Y=qU.pop();)if(Q(Y),Y=Y.children){var XN=0;for(E_=Y.length;XN<E_;++XN)GS.push(Y[XN])}}while(GS.length);return this},
eachAfter:function(Q){for(var Y,GS=[this],E_=[],qU,XN;Y=GS.pop();)if(E_.push(Y),Y=Y.children)for(qU=0,XN=Y.length;qU<XN;++qU)GS.push(Y[qU]);for(;Y=E_.pop();)Q(Y);return this},
eachBefore:function(Q){for(var Y,GS=[this],E_;Y=GS.pop();)if(Q(Y),Y=Y.children)for(E_=Y.length-1;E_>=0;--E_)GS.push(Y[E_]);return this},
sum:function(Q){return this.eachAfter(function(Y){for(var GS=+Q(Y.data)||0,E_=Y.children,qU=E_&&E_.length;--qU>=0;)GS+=E_[qU].value;Y.value=GS})},
sort:function(Q){return this.eachBefore(function(Y){Y.children&&Y.children.sort(Q)})},
path:function(Q){var Y=this;var GS=Y;var E_=Q;if(GS!==E_){var qU=GS.ancestors(),XN=E_.ancestors(),Iy=null;GS=qU.pop();for(E_=XN.pop();GS===E_;)Iy=GS,GS=qU.pop(),E_=XN.pop();GS=Iy}for(E_=[Y];Y!==GS;)Y=Y.parent,E_.push(Y);for(Y=E_.length;Q!==GS;)E_.splice(Y,0,Q),Q=Q.parent;return E_},
ancestors:function(){for(var Q=this,Y=[Q];Q=Q.parent;)Y.push(Q);return Y},
links:function(){var Q=this,Y=[];Q.each(function(GS){GS!==Q&&Y.push({source:GS.parent,target:GS})});
return Y},
copy:function(){return S1E(this).eachBefore(jA8)}};
(function(Q,Y){this._=Q;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=Y}).prototype=Object.create(PM.prototype);
var HKi=new Date,dCy=new Date,yv3=qz(function(){},function(Q,Y){Q.setTime(+Q+Y)},function(Q,Y){return Y-Q});
yv3.every=function(Q){Q=Math.floor(Q);return isFinite(Q)&&Q>0?Q>1?qz(function(Y){Y.setTime(Math.floor(Y/Q)*Q)},function(Y,GS){Y.setTime(+Y+GS*Q)},function(Y,GS){return(GS-Y)/Q}):yv3:null};
qz(function(Q){Q.setTime(Math.floor(Q/1E3)*1E3)},function(Q,Y){Q.setTime(+Q+Y*1E3)},function(Q,Y){return(Y-Q)/1E3},function(Q){return Q.getUTCSeconds()});
qz(function(Q){Q.setTime(Math.floor(Q/6E4)*6E4)},function(Q,Y){Q.setTime(+Q+Y*6E4)},function(Q,Y){return(Y-Q)/6E4},function(Q){return Q.getMinutes()});
qz(function(Q){var Y=Q.getTimezoneOffset()*6E4%36E5;Y<0&&(Y+=36E5);Q.setTime(Math.floor((+Q-Y)/36E5)*36E5+Y)},function(Q,Y){Q.setTime(+Q+Y*36E5)},function(Q,Y){return(Y-Q)/36E5},function(Q){return Q.getHours()});
var g_n=qz(function(Q){Q.setHours(0,0,0,0)},function(Q,Y){Q.setDate(Q.getDate()+Y)},function(Q,Y){return(Y-Q-(Y.getTimezoneOffset()-Q.getTimezoneOffset())*6E4)/864E5},function(Q){return Q.getDate()-1}),jGY=d5(0),s_4=d5(1);
d5(2);d5(3);var Q_q=d5(4);d5(5);d5(6);qz(function(Q){Q.setDate(1);Q.setHours(0,0,0,0)},function(Q,Y){Q.setMonth(Q.getMonth()+Y)},function(Q,Y){return Y.getMonth()-Q.getMonth()+(Y.getFullYear()-Q.getFullYear())*12},function(Q){return Q.getMonth()});
var r3=qz(function(Q){Q.setMonth(0,1);Q.setHours(0,0,0,0)},function(Q,Y){Q.setFullYear(Q.getFullYear()+Y)},function(Q,Y){return Y.getFullYear()-Q.getFullYear()},function(Q){return Q.getFullYear()});
r3.every=function(Q){return isFinite(Q=Math.floor(Q))&&Q>0?qz(function(Y){Y.setFullYear(Math.floor(Y.getFullYear()/Q)*Q);Y.setMonth(0,1);Y.setHours(0,0,0,0)},function(Y,GS){Y.setFullYear(Y.getFullYear()+GS*Q)}):null};
qz(function(Q){Q.setUTCSeconds(0,0)},function(Q,Y){Q.setTime(+Q+Y*6E4)},function(Q,Y){return(Y-Q)/6E4},function(Q){return Q.getUTCMinutes()});
qz(function(Q){Q.setUTCMinutes(0,0,0)},function(Q,Y){Q.setTime(+Q+Y*36E5)},function(Q,Y){return(Y-Q)/36E5},function(Q){return Q.getUTCHours()});
var twE=qz(function(Q){Q.setUTCHours(0,0,0,0)},function(Q,Y){Q.setUTCDate(Q.getUTCDate()+Y)},function(Q,Y){return(Y-Q)/864E5},function(Q){return Q.getUTCDate()-1}),aoa=ou(0),o9p=ou(1);
ou(2);ou(3);var ItU=ou(4);ou(5);ou(6);qz(function(Q){Q.setUTCDate(1);Q.setUTCHours(0,0,0,0)},function(Q,Y){Q.setUTCMonth(Q.getUTCMonth()+Y)},function(Q,Y){return Y.getUTCMonth()-Q.getUTCMonth()+(Y.getUTCFullYear()-Q.getUTCFullYear())*12},function(Q){return Q.getUTCMonth()});
var Ze=qz(function(Q){Q.setUTCMonth(0,1);Q.setUTCHours(0,0,0,0)},function(Q,Y){Q.setUTCFullYear(Q.getUTCFullYear()+Y)},function(Q,Y){return Y.getUTCFullYear()-Q.getUTCFullYear()},function(Q){return Q.getUTCFullYear()});
Ze.every=function(Q){return isFinite(Q=Math.floor(Q))&&Q>0?qz(function(Y){Y.setUTCFullYear(Math.floor(Y.getUTCFullYear()/Q)*Q);Y.setUTCMonth(0,1);Y.setUTCHours(0,0,0,0)},function(Y,GS){Y.setUTCFullYear(Y.getUTCFullYear()+GS*Q)}):null};
var q1E={"-":"",_:" ",0:"0"},XJ=/^\s*\d+/,RvY=/^%/,loW=/[\\^$*+?|[\]().{}]/g,Pj$;(function(Q){Pj$=XZH(Q);kxn=Pj$.utcFormat;HpS=Pj$.utcParse;return Pj$})({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||kxn("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||HpS("%Y-%m-%dT%H:%M:%S.%LZ");$f("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
$f("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");$f("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");$f("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");$f("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");$f("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");$f("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
$f("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");$f("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");$f("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");$f("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");$f("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var IoA=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map($f);zb(IoA);var pyd=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map($f);zb(pyd);var Co2=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map($f);zb(Co2);var uMY=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map($f);
zb(uMY);var nmo=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map($f);zb(nmo);var mma=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map($f);zb(mma);var cqH=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map($f);zb(cqH);var YEW=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map($f);zb(YEW);var yql=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map($f);zb(yql);var Aql=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map($f);zb(Aql);var FNH=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map($f);zb(FNH);var JqY=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map($f);zb(JqY);var BHo=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map($f);zb(BHo);var xmC=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map($f);zb(xmC);var Poo=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map($f);zb(Poo);var UmH=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map($f);zb(UmH);var zvC=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map($f);zb(zvC);var WNa=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map($f);zb(WNa);var NH8=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map($f);zb(NH8);var LN8=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map($f);zb(LN8);var GZH=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map($f);zb(GZH);var eUa=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map($f);zb(eUa);var rE8=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map($f);zb(rE8);var ZXo=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map($f);zb(ZXo);var OXC=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map($f);zb(OXC);var MIH=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map($f);zb(MIH);var VIW=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map($f);zb(VIW);mCU(Xn(300,.5,0),Xn(-240,.5,1));mCU(Xn(-100,.75,.35),Xn(80,1.5,.8));mCU(Xn(260,.75,.35),Xn(80,1.5,.8));Xn();Ul();yGy($f("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
yGy($f("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
yGy($f("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
yGy($f("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
d9P.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(Q,Y){Q=+Q;Y=+Y;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(Q,Y):this._context.moveTo(Q,Y);break;case 1:this._point=2;default:this._context.lineTo(Q,Y)}}};
(function(Q){function Y(GS){return new o_n(Q(GS))}
Y._curve=Q;return Y})(function(Q){return new d9P(Q)});
o_n.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(Q,Y){this._curve.point(Y*Math.sin(Q),Y*-Math.cos(Q))}};
CiS.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:pba(this,this._t0,QAE(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(Q,Y){var GS=NaN;Q=+Q;Y=+Y;if(Q!==this._x1||Y!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(Q,Y):this._context.moveTo(Q,Y);break;case 1:this._point=2;break;case 2:this._point=3;pba(this,QAE(this,GS=sAb(this,Q,Y)),GS);break;default:pba(this,this._t0,GS=sAb(this,Q,Y))}this._x0=this._x1;this._x1=Q;this._y0=this._y1;this._y1=Y;this._t0=GS}}};
(function(Q){this._context=new IrC(Q)}.prototype=Object.create(CiS.prototype)).point=function(Q,Y){CiS.prototype.point.call(this,Y,Q)};
IrC.prototype={moveTo:function(Q,Y){this._context.moveTo(Y,Q)},
closePath:function(){this._context.closePath()},
lineTo:function(Q,Y){this._context.lineTo(Y,Q)},
bezierCurveTo:function(Q,Y,GS,E_,qU,XN){this._context.bezierCurveTo(Y,Q,E_,GS,XN,qU)}};
N5.prototype={constructor:N5,scale:function(Q){return Q===1?this:new N5(this.k*Q,this.x,this.y)},
translate:function(Q,Y){return Q===0&Y===0?this:new N5(this.k,this.x+this.k*Q,this.y+this.k*Y)},
apply:function(Q){return[Q[0]*this.k+this.x,Q[1]*this.k+this.y]},
invert:function(Q){return[(Q[0]-this.x)/this.k,(Q[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new N5(1,0,0);STs=o8;xi.svg=xi.svg;xi.xhtml=xi.xhtml;xi.xlink=xi.xlink;xi.xml=xi.xml;xi.xmlns=xi.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 dSP="hammer_"+(Math.random()*1E6|0),oUv=function(){var G=document||document;if(!G[dSP]){var e=function(){(function(r,Z,O,M){function T(ds,mS,BA){return setTimeout(g(ds,BA),mS)}
function E(ds,mS,BA){return Array.isArray(ds)?(b(ds,BA[mS],BA),!0):!1}
function b(ds,mS,BA){var aW;if(ds)if(ds.forEach)ds.forEach(mS,BA);else if(ds.length!==M){var lH=0;for(aW=ds.length;lH<aW;lH++)mS.call(BA,ds[lH],lH,ds)}else for(lH in ds)ds.hasOwnProperty(lH)&&mS.call(BA,ds[lH],lH,ds)}
function w(ds,mS,BA){for(var aW=Object.keys(mS),lH=0,o2=aW.length;lH<o2;lH++)if(!BA||BA&&ds[aW[lH]]===M)ds[aW[lH]]=mS[aW[lH]];return ds}
function q(ds,mS){return w(ds,mS,!0)}
function t(ds,mS,BA){mS=mS.prototype;var aW=ds.prototype=Object.create(mS);aW.constructor=ds;aW._super=mS;BA&&w(aW,BA)}
function g(ds,mS){return function(){return ds.apply(mS,arguments)}}
function l(ds,mS){return typeof ds=="function"?ds.apply(mS?mS[0]||M:M,mS):ds}
function X(ds,mS,BA){b(I(mS),function(aW){ds.addEventListener(aW,BA,!1)})}
function H(ds,mS,BA){b(I(mS),function(aW){ds.removeEventListener(aW,BA,!1)})}
function I(ds){return ds.trim().split(/\s+/g)}
function C(ds,mS,BA){if(ds.indexOf&&!BA)return ds.indexOf(mS);for(var aW=0,lH=ds.length;aW<lH;aW++)if(BA&&ds[aW][BA]==mS||!BA&&ds[aW]===mS)return aW;return-1}
function u(ds,mS,BA){for(var aW=[],lH=[],o2=0,sV=ds.length;o2<sV;o2++){var KP=mS?ds[o2][mS]:ds[o2];C(lH,KP)<0&&aW.push(ds[o2]);lH[o2]=KP}BA&&(aW=mS?aW.sort(function(Xn,m8){return Xn[mS]>m8[mS]}):aW.sort());
return aW}
function P(ds,mS){for(var BA,aW=mS[0].toUpperCase()+mS.slice(1),lH=0,o2=wj.length;lH<o2;lH++)if(BA=(BA=wj[lH])?BA+aW:mS,BA in ds)return BA;return M}
function F(ds,mS){var BA=this;this.manager=ds;this.callback=mS;this.element=ds.element;this.target=ds.options.inputTarget;this.domHandler=function(aW){l(ds.options.enable,[ds])&&BA.handler(aW)};
this.evEl&&X(this.element,this.evEl,this.domHandler);this.evTarget&&X(this.target,this.evTarget,this.domHandler);this.evWin&&X(r,this.evWin,this.domHandler)}
function J(ds){var mS;Y5?mS=nf:Wg?mS=k4:o8?mS=SE:mS=Ry;return new mS(ds,U)}
function U(ds,mS,BA){var aW=BA.pointers.length,lH=BA.changedPointers.length,o2=mS&1&&aW-lH===0;BA.isFirst=!!o2;BA.isFinal=!!(mS&12&&aW-lH===0);o2&&(ds.session={});BA.eventType=mS;mS=ds.session;aW=BA.pointers;lH=aW.length;mS.firstInput||(mS.firstInput=e$(BA));lH>1&&!mS.firstMultiple?mS.firstMultiple=e$(BA):lH===1&&(mS.firstMultiple=!1);o2=mS.firstInput;var sV=(lH=mS.firstMultiple)?lH.center:o2.center,KP=BA.center=Dq(aW);BA.timeStamp=ly();BA.deltaTime=BA.timeStamp-o2.timeStamp;BA.angle=ti(sV,KP);BA.distance=
Kf(sV,KP);o2=BA.center;sV=mS.offsetDelta||{};KP=mS.prevDelta||{};var Xn=mS.prevInput||{};if(BA.eventType===1||Xn.eventType===4)KP=mS.prevDelta={x:Xn.deltaX||0,y:Xn.deltaY||0},sV=mS.offsetDelta={x:o2.x,y:o2.y};BA.deltaX=KP.x+(o2.x-sV.x);BA.deltaY=KP.y+(o2.y-sV.y);BA.offsetDirection=bF(BA.deltaX,BA.deltaY);lH?(o2=lH.pointers,o2=Kf(aW[0],aW[1],Ul)/Kf(o2[0],o2[1],Ul)):o2=1;BA.scale=o2;lH?(lH=lH.pointers,aW=ti(aW[1],aW[0],Ul)-ti(lH[1],lH[0],Ul)):aW=0;BA.rotation=aW;sV=mS.lastInterval||BA;aW=BA.timeStamp-
sV.timeStamp;BA.eventType!=8&&(aW>25||sV.velocity===M)?(o2=sV.deltaX-BA.deltaX,sV=sV.deltaY-BA.deltaY,KP=o2/aW||0,Xn=sV/aW||0,aW=KP,lH=Xn,KP=U_(KP)>U_(Xn)?KP:Xn,o2=bF(o2,sV),mS.lastInterval=BA):(KP=sV.velocity,aW=sV.velocityX,lH=sV.velocityY,o2=sV.direction);BA.velocity=KP;BA.velocityX=aW;BA.velocityY=lH;BA.direction=o2;mS=ds.element;a:{for(aW=BA.srcEvent.target;aW;){if(aW==mS){aW=!0;break a}aW=aW.parentNode}aW=!1}aW&&(mS=BA.srcEvent.target);BA.target=mS;ds.emit("hammer.input",BA);ds.recognize(BA);
ds.session.prevInput=BA}
function e$(ds){for(var mS=[],BA=0;BA<ds.pointers.length;BA++)mS[BA]={clientX:ea(ds.pointers[BA].clientX),clientY:ea(ds.pointers[BA].clientY)};return{timeStamp:ly(),pointers:mS,center:Dq(mS),deltaX:ds.deltaX,deltaY:ds.deltaY}}
function Dq(ds){var mS=ds.length;if(mS===1)return{x:ea(ds[0].clientX),y:ea(ds[0].clientY)};for(var BA=0,aW=0,lH=0;lH<mS;lH++)BA+=ds[lH].clientX,aW+=ds[lH].clientY;return{x:ea(BA/mS),y:ea(aW/mS)}}
function bF(ds,mS){return ds===mS?1:U_(ds)>=U_(mS)?ds>0?2:4:mS>0?8:16}
function Kf(ds,mS,BA){BA||(BA=TV);var aW=mS[BA[0]]-ds[BA[0]];ds=mS[BA[1]]-ds[BA[1]];return Math.sqrt(aW*aW+ds*ds)}
function ti(ds,mS,BA){BA||(BA=TV);return Math.atan2(mS[BA[1]]-ds[BA[1]],mS[BA[0]]-ds[BA[0]])*180/Math.PI}
function Ry(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;F.apply(this,arguments)}
function nf(){this.evEl=lx;this.evWin=RF;F.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function k4(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};F.apply(this,arguments)}
function SE(){F.apply(this,arguments);var ds=g(this.handler,this);this.touch=new k4(this.manager,ds);this.mouse=new Ry(this.manager,ds)}
function Fn(ds,mS){this.manager=ds;this.set(mS)}
function kw(ds){if(ds.indexOf("none")>-1)return"none";var mS=ds.indexOf("pan-x")>-1,BA=ds.indexOf("pan-y")>-1;return mS&&BA?"pan-x pan-y":mS||BA?mS?"pan-x":"pan-y":ds.indexOf("manipulation")>-1?"manipulation":"auto"}
function Lf(ds){this.id=gW++;this.manager=null;this.options=q(ds||{},this.defaults);ds=this.options.enable;this.options.enable=ds===M?!0:ds;this.state=1;this.simultaneous={};this.requireFail=[]}
function vc(ds){return ds==16?"down":ds==8?"up":ds==2?"left":ds==4?"right":""}
function IW(ds,mS){return(mS=mS.manager)?mS.get(ds):ds}
function Hc(){Lf.apply(this,arguments)}
function a8(){Hc.apply(this,arguments);this.pY=this.pX=null}
function t2(){Hc.apply(this,arguments)}
function hi(){Lf.apply(this,arguments);this._input=this._timer=null}
function rj(){Hc.apply(this,arguments)}
function tS(){Hc.apply(this,arguments)}
function OV(){Lf.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function RW(ds,mS){mS=mS||{};var BA=mS.recognizers;mS.recognizers=BA===M?RW.defaults.preset:BA;return new Zl(ds,mS)}
function Zl(ds,mS){mS=mS||{};this.options=q(mS,RW.defaults);this.options.inputTarget=this.options.inputTarget||ds;this.handlers={};this.session={};this.recognizers=[];this.element=ds;this.input=J(this);this.touchAction=new Fn(this,this.options.touchAction);pm(this,!0);b(mS.recognizers,function(BA){var aW=this.add(new BA[0](BA[1]));BA[2]&&aW.recognizeWith(BA[2]);BA[3]&&aW.requireFailure(BA[2])},this)}
function pm(ds,mS){var BA=ds.element;b(ds.options.cssProps,function(aW,lH){BA.style[P(BA.style,lH)]=mS?aW:""})}
function Bc(ds,mS){var BA=Z.createEvent("Event");BA.initEvent(ds,!0,!0);BA.gesture=mS;mS.target.dispatchEvent(BA)}
var wj=" webkit moz MS ms o".split(" "),by=Z.createElement("div"),ea=Math.round,U_=Math.abs,ly=Date.now,gW=1,Ww=/mobile|tablet|ip(ad|hone|od)|android/i,o8="ontouchstart"in r,Y5=P(r,"PointerEvent")!==M,Wg=o8&&Ww.test(navigator.userAgent),TV=["x","y"],Ul=["clientX","clientY"];F.prototype={handler:function(){},
destroy:function(){this.evEl&&H(this.element,this.evEl,this.domHandler);this.evTarget&&H(this.target,this.evTarget,this.domHandler);this.evWin&&H(r,this.evWin,this.domHandler)}};
var fd={mousedown:1,mousemove:2,mouseup:4};t(Ry,F,{handler:function(ds){var mS=fd[ds.type];mS&1&&ds.button===0&&(this.pressed=!0);mS&2&&ds.which!==1&&(mS=4);this.pressed&&this.allow&&(mS&4&&(this.pressed=!1),this.callback(this.manager,mS,{pointers:[ds],changedPointers:[ds],pointerType:"mouse",srcEvent:ds}))}});
var h2={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Uw={2:"touch",3:"pen",4:"mouse",5:"kinect"},lx="pointerdown",RF="pointermove pointerup pointercancel";r.MSPointerEvent&&(lx="MSPointerDown",RF="MSPointerMove MSPointerUp MSPointerCancel");t(nf,F,{handler:function(ds){var mS=this.store,BA=!1,aW=ds.type.toLowerCase().replace("ms","");aW=h2[aW];var lH=Uw[ds.pointerType]||ds.pointerType;aW&1&&(ds.button===0||lH=="touch")?mS.push(ds):aW&12&&(BA=!0);var o2=C(mS,ds.pointerId,"pointerId");
o2<0||(mS[o2]=ds,this.callback(this.manager,aW,{pointers:mS,changedPointers:[ds],pointerType:lH,srcEvent:ds}),BA&&mS.splice(o2,1))}});
var rw={touchstart:1,touchmove:2,touchend:4,touchcancel:8};t(k4,F,{handler:function(ds){var mS=rw[ds.type];var BA=Array.prototype.slice.call(ds.touches,0);var aW=this.targetIds;if(mS&3&&BA.length===1)aW[BA[0].identifier]=!0,aW=[BA,BA];else{var lH,o2=Array.prototype.slice.call(ds.targetTouches,0),sV=Array.prototype.slice.call(ds.changedTouches,0),KP=[];if(mS===1)for(BA=0,lH=o2.length;BA<lH;BA++)aW[o2[BA].identifier]=!0;BA=0;for(lH=sV.length;BA<lH;BA++)aW[sV[BA].identifier]&&KP.push(sV[BA]),mS&12&&
delete aW[sV[BA].identifier];aW=KP.length?[u(o2.concat(KP),"identifier",!0),KP]:void 0}aW&&this.callback(this.manager,mS,{pointers:aW[0],changedPointers:aW[1],pointerType:"touch",srcEvent:ds})}});
t(SE,F,{handler:function(ds,mS,BA){var aW=BA.pointerType=="mouse";if(BA.pointerType=="touch")this.mouse.allow=!1;else if(aW&&!this.mouse.allow)return;mS&12&&(this.mouse.allow=!0);this.callback(ds,mS,BA)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var lL=P(by.style,"touchAction"),cJ=lL!==M;Fn.prototype={set:function(ds){ds=="compute"&&(ds=this.compute());cJ&&(this.manager.element.style[lL]=ds);this.actions=ds.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var ds=[];b(this.manager.recognizers,function(mS){l(mS.options.enable,[mS])&&(ds=ds.concat(mS.getTouchAction()))});
return kw(ds.join(" "))},
preventDefaults:function(ds){if(!cJ){var mS=ds.srcEvent;ds=ds.offsetDirection;if(this.manager.session.prevented)mS.preventDefault();else{var BA=this.actions,aW=BA.indexOf("none")>-1,lH=BA.indexOf("pan-y")>-1;BA=BA.indexOf("pan-x")>-1;if(aW||lH&&BA||lH&&ds&6||BA&&ds&24)return this.preventSrc(mS)}}},
preventSrc:function(ds){this.manager.session.prevented=!0;ds.preventDefault()}};
Lf.prototype={defaults:{},set:function(ds){w(this.options,ds);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(ds){if(E(ds,"recognizeWith",this))return this;var mS=this.simultaneous;ds=IW(ds,this);mS[ds.id]||(mS[ds.id]=ds,ds.recognizeWith(this));return this},
dropRecognizeWith:function(ds){if(E(ds,"dropRecognizeWith",this))return this;ds=IW(ds,this);delete this.simultaneous[ds.id];return this},
requireFailure:function(ds){if(E(ds,"requireFailure",this))return this;var mS=this.requireFail;ds=IW(ds,this);C(mS,ds)===-1&&(mS.push(ds),ds.requireFailure(this));return this},
dropRequireFailure:function(ds){if(E(ds,"dropRequireFailure",this))return this;ds=IW(ds,this);ds=C(this.requireFail,ds);ds>-1&&this.requireFail.splice(ds,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(ds){return!!this.simultaneous[ds.id]},
emit:function(ds){function mS(lH){BA.manager.emit(BA.options.event+(lH?aW&16?"cancel":aW&8?"end":aW&4?"move":aW&2?"start":"":""),ds)}
var BA=this,aW=this.state;aW<8&&mS(!0);mS();aW>=8&&mS(!0)},
tryEmit:function(ds){if(this.canEmit())return this.emit(ds);this.state=32},
canEmit:function(){for(var ds=0;ds<this.requireFail.length;ds++)if(!(this.requireFail[ds].state&33))return!1;return!0},
recognize:function(ds){ds=w({},ds);l(this.options.enable,[this,ds])?(this.state&56&&(this.state=1),this.state=this.process(ds),this.state&30&&this.tryEmit(ds)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
t(Hc,Lf,{defaults:{pointers:1},attrTest:function(ds){var mS=this.options.pointers;return mS===0||ds.pointers.length===mS},
process:function(ds){var mS=this.state,BA=ds.eventType,aW=mS&6;ds=this.attrTest(ds);return aW&&(BA&8||!ds)?mS|16:aW||ds?BA&4?mS|8:mS&2?mS|4:2:32}});
t(a8,Hc,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var ds=this.options.direction;if(ds===30)return["none"];var mS=[];ds&6&&mS.push("pan-y");ds&24&&mS.push("pan-x");return mS},
directionTest:function(ds){var mS=this.options,BA=!0,aW=ds.distance,lH=ds.direction,o2=ds.deltaX,sV=ds.deltaY;lH&mS.direction||(mS.direction&6?(lH=o2===0?1:o2<0?2:4,BA=o2!=this.pX,aW=Math.abs(ds.deltaX)):(lH=sV===0?1:sV<0?8:16,BA=sV!=this.pY,aW=Math.abs(ds.deltaY)));ds.direction=lH;return BA&&aW>mS.threshold&&lH&mS.direction},
attrTest:function(ds){return Hc.prototype.attrTest.call(this,ds)&&(this.state&2||!(this.state&2)&&this.directionTest(ds))},
emit:function(ds){this.pX=ds.deltaX;this.pY=ds.deltaY;var mS=vc(ds.direction);mS&&this.manager.emit(this.options.event+mS,ds);this._super.emit.call(this,ds)}});
t(t2,Hc,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(ds){return this._super.attrTest.call(this,ds)&&(Math.abs(ds.scale-1)>this.options.threshold||this.state&2)},
emit:function(ds){this._super.emit.call(this,ds);ds.scale!==1&&this.manager.emit(this.options.event+(ds.scale<1?"in":"out"),ds)}});
t(hi,Lf,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(ds){var mS=this.options,BA=ds.pointers.length===mS.pointers,aW=ds.distance<mS.threshold,lH=ds.deltaTime>mS.time;this._input=ds;if(!aW||!BA||ds.eventType&12&&!lH)this.reset();else if(ds.eventType&1)this.reset(),this._timer=T(function(){this.state=8;this.tryEmit()},mS.time,this);
else if(ds.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(ds){this.state===8&&(ds&&ds.eventType&4?this.manager.emit(this.options.event+"up",ds):(this._input.timeStamp=ly(),this.manager.emit(this.options.event,this._input)))}});
t(rj,Hc,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(ds){return this._super.attrTest.call(this,ds)&&(Math.abs(ds.rotation)>this.options.threshold||this.state&2)}});
t(tS,Hc,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return a8.prototype.getTouchAction.call(this)},
attrTest:function(ds){var mS=this.options.direction;if(mS&30)var BA=ds.velocity;else mS&6?BA=ds.velocityX:mS&24&&(BA=ds.velocityY);return this._super.attrTest.call(this,ds)&&mS&ds.direction&&U_(BA)>this.options.velocity&&ds.eventType&4},
emit:function(ds){var mS=vc(ds.direction);mS&&this.manager.emit(this.options.event+mS,ds);this.manager.emit(this.options.event,ds)}});
t(OV,Lf,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(ds){var mS=this.options,BA=ds.pointers.length===mS.pointers,aW=ds.distance<mS.threshold,lH=ds.deltaTime<mS.time;this.reset();if(ds.eventType&1&&this.count===0)return this.failTimeout();if(aW&&lH&&BA){if(ds.eventType!=4)return this.failTimeout();BA=this.pTime?ds.timeStamp-this.pTime<mS.interval:!0;aW=!this.pCenter||Kf(this.pCenter,ds.center)<mS.posThreshold;this.pTime=ds.timeStamp;this.pCenter=ds.center;aW&&BA?this.count+=1:this.count=1;this._input=ds;if(this.count%mS.taps===0)return this.hasRequireFailures()?
(this._timer=T(function(){this.state=8;this.tryEmit()},mS.interval,this),2):8}return 32},
failTimeout:function(){this._timer=T(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))}});
RW.VERSION="2.0.2";RW.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[rj,{enable:!1}],[t2,{enable:!1},["rotate"]],[tS,{direction:6}],[a8,{direction:6},["swipe"]],[OV],[OV,{event:"doubletap",taps:2},["tap"]],[hi]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Zl.prototype={set:function(ds){w(this.options,ds);return this},
stop:function(ds){this.session.stopped=ds?2:1},
recognize:function(ds){var mS=this.session;if(!mS.stopped){this.touchAction.preventDefaults(ds);var BA=this.recognizers,aW=mS.curRecognizer;if(!aW||aW&&aW.state&8)aW=mS.curRecognizer=null;for(var lH=0,o2=BA.length;lH<o2;lH++){var sV=BA[lH];mS.stopped===2||aW&&sV!=aW&&!sV.canRecognizeWith(aW)?sV.reset():sV.recognize(ds);!aW&&sV.state&14&&(aW=mS.curRecognizer=sV)}}},
get:function(ds){if(ds instanceof Lf)return ds;for(var mS=this.recognizers,BA=0;BA<mS.length;BA++)if(mS[BA].options.event==ds)return mS[BA];return null},
add:function(ds){if(E(ds,"add",this))return this;var mS=this.get(ds.options.event);mS&&this.remove(mS);this.recognizers.push(ds);ds.manager=this;this.touchAction.update();return ds},
remove:function(ds){if(E(ds,"remove",this))return this;var mS=this.recognizers;ds=this.get(ds);mS.splice(C(mS,ds),1);this.touchAction.update();return this},
on:function(ds,mS){var BA=this.handlers;b(I(ds),function(aW){BA[aW]=BA[aW]||[];BA[aW].push(mS)});
return this},
off:function(ds,mS){var BA=this.handlers;b(I(ds),function(aW){mS?BA[aW].splice(C(BA[aW],mS),1):delete BA[aW]});
return this},
emit:function(ds,mS){this.options.domEvents&&Bc(ds,mS);var BA=this.handlers[ds]&&this.handlers[ds].slice();if(BA&&BA.length){mS.type=ds;mS.preventDefault=function(){mS.srcEvent.preventDefault()};
ds=0;for(var aW=BA.length;ds<aW;ds++)BA[ds](mS)}},
destroy:function(){this.element&&pm(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
w(RW,{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:Zl,Input:F,TouchAction:Fn,Recognizer:Lf,AttrRecognizer:Hc,Tap:OV,Pan:a8,Swipe:tS,Pinch:t2,Rotate:rj,Press:hi,on:X,off:H,each:b,merge:q,extend:w,inherit:t,bindFn:g,prefixed:P});
r[O]=RW})(window,document,"Hammer");
return window.Hammer}.call({});
e.DOCUMENT=G;G[dSP]=e}return G[dSP]};/*

 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 srw=function(G,e){if(G.length!==e.length)return!1;for(var r=0;r<G.length;++r)if(G[r]!==e[r])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var Qrn=_.h(["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"]),Ikw=Qrn.next();!Ikw.done;Ikw=Qrn.next()){var pzn=Ikw.value,CMy=document.createElement("link");CMy.rel="stylesheet";CMy.href=pzn;document.head.appendChild(CMy)};var CEa,nSs,cD_,Qi4,ukN,IwF,oSN,sis;CEa={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};nSs={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:"*"};cD_={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};Qi4=/[a-z0-9*]/;ukN=/U\+/;IwF=/^arrow/;oSN=/^space(bar)?/;sis=/^escape$/;_.fS={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(G,e){this._imperativeKeyBindings[G]=e;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(G,e){e=yDf(e);for(var r=0;r<e.length;++r)if(muy(e[r],G))return!0;return!1},
_collectKeyBindings:function(){var G=this.behaviors.map(function(e){return e.keyBindings});
G.indexOf(this.keyBindings)===-1&&G.push(this.keyBindings);return G},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(r){for(var Z in r)this._addKeyBinding(Z,r[Z])},this);
for(var G in this._imperativeKeyBindings)this._addKeyBinding(G,this._imperativeKeyBindings[G]);for(var e in this._keyBindings)this._keyBindings[e].sort(function(r,Z){r=r[0].hasModifiers;return r===Z[0].hasModifiers?0:r?-1:1})},
_addKeyBinding:function(G,e){yDf(G).forEach(function(r){this._keyBindings[r.event]=this._keyBindings[r.event]||[];this._keyBindings[r.event].push([r,e])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(G){var e=this._onKeyBindingEvent.bind(this,this._keyBindings[G]);this._boundKeyHandlers.push([this.keyEventTarget,G,e]);this.keyEventTarget.addEventListener(G,e)},this)},
_unlistenKeyEventListeners:function(){for(var G,e,r;this._boundKeyHandlers.length;)G=this._boundKeyHandlers.pop(),e=G[0],r=G[1],G=G[2],e.removeEventListener(r,G)},
_onKeyBindingEvent:function(G,e){this.stopKeyboardEventPropagation&&e.stopPropagation();if(!e.defaultPrevented)for(var r=0;r<G.length;r++){var Z=G[r][0],O=G[r][1];if(muy(Z,e)&&(this._triggerKeyHandler(Z,O,e),e.defaultPrevented))break}},
_triggerKeyHandler:function(G,e,r){var Z=Object.create(G);Z.keyboardEvent=r;G=new CustomEvent(G.event,{detail:Z,cancelable:!0});this[e].call(this,G);G.defaultPrevented&&r.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
*/
_.ts({is:"iron-a11y-keys",_template:null,behaviors:[_.fS],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(G){this.keyEventTarget=G},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(G){this.fire("keys-pressed",G.detail,{})}});_.k6={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(G){this._setFocused(G.type==="focus")},
_disabledChanged:function(G){this.setAttribute("aria-disabled",G?"true":"false");this.style.pointerEvents=G?"none":"";G?(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 H9={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(G){this._detectKeyboardFocus(G);G||this._setPressed(!1)},
_detectKeyboardFocus:function(G){this._setReceivedFocusFromKeyboard(!this.pointerDown&&G)},
_userActivate:function(G){this.active!==G&&(this.active=G,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(G){G=G.detail.keyboardEvent;var e=_.i4(G).localTarget;this.isLightDescendant(e)||(G.preventDefault(),G.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(G){G=_.i4(G.detail.keyboardEvent).localTarget;this.isLightDescendant(G)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(G,e){e&&e!=G&&this.hasAttribute(e)&&this.removeAttribute(e)},
_activeChanged:function(G){this.toggles?this.setAttribute(this.ariaActiveAttribute,G?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},ubS=[_.fS,
H9];_.dh={IronButtonState:ubS,IronButtonStateImpl:H9};_.o4={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.s4=function(G){_.s4[" "](G);this.type=G&&G.type||"default";this.key=G&&G.key;G&&"value"in G&&(this.value=G.value)};
_.s4.prototype.byKey=function(G){this.key=G;return this.value};
_.iY.Object.defineProperties(_.s4.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var G=this.type,e=this.key;if(G&&e)return QR[G]&&QR[G][e]},
set:function(G){var e=this.type,r=this.key;e&&r&&(e=QR[e]=QR[e]||{},G==null?delete e[r]:e[r]=G)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var G=QR[this.type];return G?Object.keys(G).map(function(e){return QR[this.type][e]},this):[]}}});
_.s4[" "]=function(){};
var QR={};_.ts({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(G,e,r){G=new _.s4({type:G,key:e});r!==void 0&&r!==G.value?G.value=r:this.value!==G.value&&(this.value=G.value);return G},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(G){G&&(this.value=this)},
byKey:function(G){return(new _.s4({type:this.type,key:G})).value}});var nUl;nUl=null;_.I4={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){nUl=new _.s4({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return nUl&&nUl.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(G){this.invalid=G===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(G);return!this.invalid},
_getValidity:function(G){return this.hasValidator()?this._validator.validate(G):!0}};var mSW={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"}},cVj=[_.o4,
_.I4,mSW];_.ts({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 _.s4({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(G){return this.name+":"+G},this)},
applyIcon:function(G,e){this.removeIcon(G);if(e=this._cloneIcon(e,this.rtlMirroring&&this._targetIsRTL(G))){var r=_.i4(G.root||G);r.insertBefore(e,r.childNodes[0]);return G._svgIcon=e}return null},
removeIcon:function(G){G._svgIcon&&(_.i4(G.root||G).removeChild(G._svgIcon),G._svgIcon=null)},
_targetIsRTL:function(G){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(G&&G.nodeType!==Node.ELEMENT_NODE&&(G=G.host),this.__targetIsRTL=G&&window.getComputedStyle(G).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 G=Object.create(null);_.i4(this).querySelectorAll("[id]").forEach(function(e){G[e.id]=e});
return G},
_cloneIcon:function(G,e){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[G],this.size,e)},
_prepareSvgClone:function(G,e,r){if(G){G=G.cloneNode(!0);var Z=document.createElementNS("http://www.w3.org/2000/svg","svg");e=G.getAttribute("viewBox")||"0 0 "+e+" "+e;var O="pointer-events: none; display: block; width: 100%; height: 100%;";r&&G.hasAttribute("mirror-in-rtl")&&(O+="-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=
O);Z.appendChild(G).removeAttribute("id");return Z}return null}});var YeS=function(G){this.multi=!1;this.selection=[];this.selectCallback=G};
_.V=YeS.prototype;_.V.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.V.clear=function(G){this.selection.slice().forEach(function(e){(!G||G.indexOf(e)<0)&&this.setItemSelected(e,!1)},this)};
_.V.isSelected=function(G){return this.selection.indexOf(G)>=0};
_.V.setItemSelected=function(G,e){if(G!=null&&e!==this.isSelected(G)){if(e)this.selection.push(G);else{var r=this.selection.indexOf(G);r>=0&&this.selection.splice(r,1)}this.selectCallback&&this.selectCallback(G,e)}};
_.V.select=function(G){this.multi?this.toggle(G):this.get()!==G&&(this.setItemSelected(this.get(),!1),this.setItemSelected(G,!0))};
_.V.toggle=function(G){this.setItemSelected(G,!this.isSelected(G))};_.IR={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 YeS(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.i4(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(G){return this.items?this.items.indexOf(G):-1},
select:function(G){this.selected=G},
selectPrevious:function(){var G=this.items.length,e=G-1;this.selected!==void 0&&(e=(Number(this._valueToIndex(this.selected))-1+G)%G);this.selected=this._indexToValue(e)},
selectNext:function(){var G=0;this.selected!==void 0&&(G=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(G)},
selectIndex:function(G){this.select(this._indexToValue(G))},
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(G){this.listen(this,G,"_activateHandler")},
_removeListener:function(G){this.unlisten(this,G,"_activateHandler")},
_activateEventChanged:function(G,e){this._removeListener(e);this._addListener(G)},
_updateItems:function(){var G=_.i4(this).queryDistributedElements(this.selectable||"*");G=Array.prototype.filter.call(G,this._bindFilterItem);this._setItems(G)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var G=this._valueToItem(this.selected);G?this._selection.select(G):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(G){return!this._excludedLocalNames[G.localName]},
_valueToItem:function(G){return G==null?null:this.items[this._valueToIndex(G)]},
_valueToIndex:function(G){if(this.attrForSelected)for(var e=0,r;r=this.items[e];e++){if(this._valueForItem(r)==G)return e}else return Number(G)},
_indexToValue:function(G){if(this.attrForSelected){if(G=this.items[G])return this._valueForItem(G)}else return G},
_valueForItem:function(G){if(!G)return null;if(!this.attrForSelected)return G=this.indexOf(G),G===-1?null:G;var e=G[lC(this.attrForSelected)];return e!=void 0?e:G.getAttribute(this.attrForSelected)},
_applySelection:function(G,e){this.selectedClass&&this.toggleClass(this.selectedClass,e,G);this.selectedAttribute&&this.toggleAttribute.call(G,this.selectedAttribute,e);this._selectionChange();this.fire("iron-"+(e?"select":"deselect"),{item:G})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(G){return _.i4(G).observeNodes(function(e){this._updateItems();this._updateSelected();this.fire("iron-items-changed",e,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(G){G=G.target;for(var e=this.items;G&&G!=this;){var r=e.indexOf(G);if(r>=0){e=this._indexToValue(r);this._itemActivate(e,G);break}G=G.parentNode}},
_itemActivate:function(G,e){this.fire("iron-activate",{selected:G,item:e},{cancelable:!0}).defaultPrevented||this.select(G)}};var yVP={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(G){this.multi?this._toggleSelected(G):this.selected=G},
multiChanged:function(G){this._selection.multi=G;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(G){return this._indexToValue(this.indexOf(G))},this).filter(function(G){return G!=null},this)):_.IR._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(G){G=G||[];G=(this._valuesToItems(G)||[]).filter(function(r){return r!==null&&r!==void 0});
this._selection.clear(G);for(var e=0;e<G.length;e++)this._selection.setItemSelected(G[e],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var G=this._selection.get();this.multi?(this._setSelectedItems(G),this._setSelectedItem(G.length?G[0]:null)):G!==null&&G!==void 0?(this._setSelectedItems([G]),this._setSelectedItem(G)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(G){var e=this.selectedValues.indexOf(G);e<0?this.push("selectedValues",G):this.splice("selectedValues",e,1)},
_valuesToItems:function(G){return G==null?null:G.map(function(e){return this._valueToItem(e)},this)}},AVC=[_.IR,
yVP];var F$y;
_.pS={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(G){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var e=this._valueToItem(G);e&&e.hasAttribute("disabled")||(this._setFocusedItem(e),yVP.select.apply(this,arguments))},
_resetTabindices:function(){var G=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(e){e.setAttribute("tabindex",e===G?"0":"-1");e.setAttribute("aria-selected",this._selection.isSelected(e))},this)},
_updateMultiselectable:function(G){G?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(G){if(this._MODIFIER_KEYS.indexOf(G.key)===-1){this.cancelDebouncer("_clearSearchText");var e=this._searchText||"";e+=(G.key&&G.key.length==1?G.key:String.fromCharCode(G.keyCode)).toLocaleLowerCase();G=e.length;for(var r=0,Z;Z=this.items[r];r++)if(!Z.hasAttribute("disabled")){var O=this.attrForItemTitle||"textContent";O=(Z[O]||Z.getAttribute(O)||"").trim();if(!(O.length<G)&&O.slice(0,G).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 G=this.items.length,e=Number(this.indexOf(this.focusedItem)),r=1;r<G+1;r++){var Z=this.items[(e-r+G)%G];if(!Z.hasAttribute("disabled")){var O=_.i4(Z).getOwnerRoot()||document;this._setFocusedItem(Z);if(_.i4(O).activeElement==Z)break}}},
_focusNext:function(){for(var G=this.items.length,e=Number(this.indexOf(this.focusedItem)),r=1;r<G+1;r++){var Z=this.items[(e+r)%G];if(!Z.hasAttribute("disabled")){var O=_.i4(Z).getOwnerRoot()||document;this._setFocusedItem(Z);if(_.i4(O).activeElement==Z)break}}},
_applySelection:function(G,e){e?G.setAttribute("aria-selected","true"):G.setAttribute("aria-selected","false");_.IR._applySelection.apply(this,arguments)},
_focusedItemChanged:function(G,e){e&&e.setAttribute("tabindex","-1");!G||G.hasAttribute("disabled")||this.disabled||(G.setAttribute("tabindex","0"),G.focus())},
_onIronItemsChanged:function(G){G.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var G=this.getAttribute("tabindex");_.pS._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",G);_.pS._shiftTabPressed=!1},1)},
_onFocus:function(G){!_.pS._shiftTabPressed&&(G=_.i4(G).rootTarget,G===this||typeof G.tabIndex==="undefined"||this.isLightDescendant(G))&&(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(G){this._focusPrevious();G.detail.keyboardEvent.preventDefault()},
_onDownKey:function(G){this._focusNext();G.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var G=this.focusedItem;G&&G.blur()},
_onKeydown:function(G){this.keyboardEventMatchesKeys(G,"up down esc")||this._focusWithKeyboardEvent(G);G.stopPropagation()},
_activateHandler:function(G){_.IR._activateHandler.call(this,G);G.stopPropagation()},
_disabledChanged:function(G){G?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};F$y=[AVC,_.fS,_.pS];_.JVl={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(G){this.focusedItem&&(this.focusedItem.click(),G.detail.keyboardEvent.preventDefault())},
_onDownKey:function(G){this.focusedItem&&(this.focusedItem.click(),G.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(G){return G.ctrlKey||G.shiftKey||G.altKey||G.metaKey},
_onLeftKey:function(G){this._isSpecialKey(G.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),G.detail.keyboardEvent.preventDefault())},
_onRightKey:function(G){this._isSpecialKey(G.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),G.detail.keyboardEvent.preventDefault())},
_onKeydown:function(G){this.keyboardEventMatchesKeys(G,"up down left right esc")||this._focusWithKeyboardEvent(G)}};
_.BBP=[F$y,_.JVl];var xSE;xSE=new Set;_.CS={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):(xSE.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(G){this.resizerShouldNotify(G)&&this._notifyDescendant(G)},this),this._fireResize())},
assignParentResizable:function(G){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=G)&&G._interestedResizables.indexOf(this)===-1&&(G._interestedResizables.push(this),G._subscribeIronResize(this))},
stopResizeNotificationsFor:function(G){var e=this._interestedResizables.indexOf(G);e>-1&&(this._interestedResizables.splice(e,1),this._unsubscribeIronResize(G))},
_subscribeIronResize:function(G){G.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(G){G.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(G){this._notifyingDescendant?G.stopPropagation():Nx||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(G){var e=_.i4(G).rootTarget;e!==this&&(e.assignParentResizable(this),this._notifyDescendant(e),G.stopPropagation())},
_parentResizableChanged:function(G){G&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(G){this.isAttached&&(this._notifyingDescendant=!0,G.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var G=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function r(){document.removeEventListener("readystatechange",r);G()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(e){e!==this&&e._findParent()},this):(xSE.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?xSE.delete(this):xSE.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
*/
_.PMv={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(G,e){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);e&&(G==="document"?this.scrollTarget=this._doc:typeof G==="string"?this.scrollTarget=(e=this.domHost)&&e.$?e.$[G]:_.i4(this.ownerDocument).querySelector("#"+G):this._isValidScrollTarget()&&(this._oldScrollTarget=G,this._toggleScrollListener(this._shouldHaveListener,G)))},
_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(G){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,G):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
G)},set _scrollLeft(G){this.scrollTarget===this._doc?window.scrollTo(G,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=G)},scroll:function(G,e){if(typeof G==="object"){var r=G.left;e=G.top}else r=G;r=r||0;e=e||0;this.scrollTarget===this._doc?window.scrollTo(r,e):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=r,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(G,e){e=e===this._doc?window:e;G?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(G){this._shouldHaveListener=G;this._toggleScrollListener(G,this.scrollTarget)}};_.ts({is:"iron-selector",_template:null,behaviors:[AVC]});var u_={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(G){if(G.timing)for(var e in G.timing)this.animationTiming[e]=G.timing[e];return this.animationTiming},
setPrefixedProperty:function(G,e,r){for(var Z={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[e],O,M=0;O=Z[M];M++)G.style[O]=r;G.style[e]=r},
complete:function(){}};_.ts({is:"fade-in-animation",_template:null,behaviors:[u_],configure:function(G){return this._effect=new KeyframeEffect(G.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(G))}});_.ts({is:"fade-out-animation",_template:null,behaviors:[u_],configure:function(G){return this._effect=new KeyframeEffect(G.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(G))}});var USn=[{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(G,e){for(var r in e)G[r]=e[r]},
_cloneConfig:function(G){var e={isClone:!0};this._copyProperties(e,G);return e},
_getAnimationConfigRecursive:function(G,e,r){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=G?this.animationConfig[G]:this.animationConfig;Array.isArray(Z)||(Z=[Z]);if(Z)for(var O,M=0;O=Z[M];M++)if(O.animatable)O.animatable._getAnimationConfigRecursive(O.type||G,e,r);else if(O.id){var T=e[O.id];
T?(T.isClone||(e[O.id]=this._cloneConfig(T),T=e[O.id]),this._copyProperties(T,O)):e[O.id]=O}else r.push(O)}},
getAnimationConfig:function(G){var e={},r=[];this._getAnimationConfigRecursive(G,e,r);for(var Z in e)r.push(e[Z]);return r}},
{_configureAnimations:function(G){var e=[],r=[];if(G.length>0)for(var Z,O=0;Z=G[O];O++){var M=document.createElement(Z.name);if(M.isNeonAnimation){var T=null;M.configure||(M.configure=function(){return null});
T=M.configure(Z);r.push({result:T,config:Z})}else console.warn(this.is+":",Z.name,"not found!")}for(G=0;G<r.length;G++){T=r[G].result;Z=r[G].config;try{typeof T.cancel!="function"&&(T=document.timeline.play(T))}catch(E){T=null,console.warn("Couldnt play","(",Z.name,").",E)}T&&e.push({neonAnimation:M,config:Z,animation:T})}return e},
_shouldComplete:function(G){for(var e=!0,r=0;r<G.length;r++)if(G[r].animation.playState!="finished"){e=!1;break}return e},
_complete:function(G){for(var e=0;e<G.length;e++)G[e].neonAnimation.complete(G[e].config);for(e=0;e<G.length;e++)G[e].animation.cancel()},
playAnimation:function(G,e){var r=this.getAnimationConfig(G);if(r){this._active=this._active||{};this._active[G]&&(this._complete(this._active[G]),delete this._active[G]);var Z=this._configureAnimations(r);if(Z.length==0)this.fire("neon-animation-finish",e,{bubbles:!1});else for(this._active[G]=Z,r=0;r<Z.length;r++)Z[r].animation.onfinish=function(){this._shouldComplete(Z)&&(this._complete(Z),delete this._active[G],this.fire("neon-animation-finish",e,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var G in this._active){var e=this._active[G],r;for(r in e)e[r].animation&&e[r].animation.cancel&&e[r].animation.cancel()}this._active={}}}];var ku=function(G,e){G=Error.call(this,G);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.arg=e;this.name=this.constructor.name;this.constructor=ku;this.__proto__=ku.prototype};
_.K(ku,Error);var zpS=GR(function(G){var e=function(){return G.apply(this,arguments)||this};
_.K(e,G);e.prototype._marshalArgs=function(r,Z,O){Z=G.prototype._marshalArgs.call(this,r,Z,O);if(this._legacyUndefinedCheck&&Z.length>1)for(O=0;O<Z.length;O++)if(Z[O]===void 0||r[O].wildcard&&Z[O].base===void 0)throw r=r[O].name,new ku("Argument '"+r+"' is undefined.",r);return Z};
e.prototype._addPropertyEffect=function(r,Z,O){return G.prototype._addPropertyEffect.call(this,r,Z,ADy(O,O&&O.info&&O.info.methodName))};
e._addTemplatePropertyEffect=function(r,Z,O){return G._addTemplatePropertyEffect.call(this,r,Z,ADy(O))};
return e}),W$v=_.ts.Class;
_.ts.Class=function(G,e){return W$v(G,function(r){return e?e(zpS(r)):zpS(r)})};
var NBn=GR(function(G){var e=zpS(G);G=function(){return e.apply(this,arguments)||this};
_.K(G,e);_.iY.Object.defineProperties(G.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return G}),L$w=GU.mixin;
GU.mixin=L$w?function(G){return NBn(L$w(G))}:NBn;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.nS=_.dh.IronButtonState;var NA4=WJ;_.FZq="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");var UuN=function(){return Math.random().toString(36).substring(7).split("").join(".")},PEf="@@redux/INIT"+UuN(),Nca="@@redux/REPLACE"+UuN();var LZS=typeof Symbol==="function"&&Symbol.observable||"@@observable";var GBC=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var e5W="top right bottom left width height size weight".split(" "),r3c=typeof MutationObserver!=="undefined",Z2l=GBC&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,O2P=function(){this.mutationEventsAdded_=this.JSC$11761_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=Gia(this.refresh.bind(this))},McW=function(G,
e){var r=G.observers_;
e=r.indexOf(e);~e&&r.splice(e,1);!r.length&&G.JSC$11761_connected_&&GBC&&G.JSC$11761_connected_&&(document.removeEventListener("transitionend",G.onTransitionEnd_),window.removeEventListener("resize",G.refresh),G.mutationsObserver_&&(G.mutationsObserver_.disconnect(),Z2l&&(HTMLElement.prototype.attachShadow=Z2l)),G.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",G.refresh),G.mutationsObserver_=null,G.mutationEventsAdded_=!1,G.JSC$11761_connected_=!1)};
O2P.prototype.refresh=function(){Vcb(this)&&this.refresh()};
var Vcb=function(G){G=G.observers_.filter(function(e){return h5v(e),e.activeObservations_.length>0});
G.forEach(function(e){return TUE(e)});
return G.length>0},D_l=function(G){if(GBC&&!G.JSC$11761_connected_){document.addEventListener("transitionend",G.onTransitionEnd_);
window.addEventListener("resize",G.refresh);if(r3c){G.mutationsObserver_=new MutationObserver(G.refresh);var e={attributes:!0,childList:!0,characterData:!0,subtree:!0};G.mutationsObserver_.observe(document,e);Z2l&&(function O(Z){var M=Z.shadowRoot;M&&(G.mutationsObserver_.observe(M,e),O(M));for(Z=Z.firstElementChild;Z;)O(Z),Z=Z.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var Z=Z2l.apply(this,_.Bw.apply(0,arguments));
G.mutationsObserver_.observe(Z,e);return Z})}else document.addEventListener("DOMSubtreeModified",G.refresh),G.mutationEventsAdded_=!0;
G.JSC$11761_connected_=!0}};
O2P.prototype.onTransitionEnd_=function(G){var e=G.propertyName===void 0?"":G.propertyName;e5W.some(function(r){return!!~e.indexOf(r)})&&this.refresh()};
var Ejc=null;var i2n=function(G,e){for(var r=_.h(Object.keys(e)),Z=r.next();!Z.done;Z=r.next())Z=Z.value,Object.defineProperty(G,Z,{value:e[Z],enumerable:!1,writable:!1,configurable:!0})};var mi=function(G){var e;return(G==null?void 0:(e=G.ownerDocument)==null?void 0:e.defaultView)||globalThis};var b2S={x:0,y:0,width:0,height:0},vjl=typeof SVGGraphicsElement!=="undefined"?function(G){return G instanceof mi(G).SVGGraphicsElement}:function(G){return G instanceof mi(G).SVGElement&&typeof G.getBBox==="function"};var wsS=function(G){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=G};
wsS.prototype.isActive=function(){var G=this.target;if(GBC)if(vjl(G)){var e=G.getBBox();e={x:0,y:0,width:e.width,height:e.height}}else{var r=G.clientWidth,Z=G.clientHeight;if(r||Z){var O=mi(G).getComputedStyle(G);e=dE(O["padding-top"]);var M=dE(O["padding-left"]),T=M+dE(O["padding-right"]),E=e+dE(O["padding-bottom"]),b=dE(O.width),w=dE(O.height);O.boxSizing==="border-box"&&(Math.round(b+T)!==r&&(b-=eF$(O,"left","right")+T),Math.round(w+E)!==Z&&(w-=eF$(O,"top","bottom")+E));G!==mi(G).document.documentElement&&
(G=Math.round(b+T)-r,Z=Math.round(w+E)-Z,Math.abs(G)!==1&&(b-=G),Math.abs(Z)!==1&&(w-=Z));e={x:M,y:e,width:b,height:w}}else e=b2S}else e=b2S;this.contentRect_=e;return e.width!==this.broadcastWidth||e.height!==this.broadcastHeight};var $_E=function(G,e){var r=e.x;var Z=e.y;var O=e.width;e=e.height;var M=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);i2n(M,{x:r,y:Z,width:O,height:e,top:Z,right:r+O,bottom:e+Z,left:r});i2n(this,{target:G,contentRect:M})};var Sin=function(G,e){var r=Ejc;this.activeObservations_=[];this.observations_=new Map;if(typeof G!=="function")throw new TypeError("Ve");this.callback_=G;this.controller_=r;this.callbackCtx_=e};
Sin.prototype.observe=function(G){if(G===void 0)throw new TypeError("We");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(G instanceof mi(G).Element))throw new TypeError("Xe");var e=this.observations_;e.has(G)||(e.set(G,new wsS(G)),G=this.controller_,~G.observers_.indexOf(this)||G.observers_.push(this),G.JSC$11761_connected_||D_l(G),this.controller_.refresh())}};
Sin.prototype.unobserve=function(G){if(G===void 0)throw new TypeError("We");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(G instanceof mi(G).Element))throw new TypeError("Xe");var e=this.observations_;e.has(G)&&(e.delete(G),e.size||McW(this.controller_,this))}};
Sin.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();McW(this.controller_,this)};
var h5v=function(G){G.activeObservations_.splice(0);G.observations_.forEach(function(e){e.isActive()&&G.activeObservations_.push(e)})},TUE=function(G){if(G.activeObservations_.length>0){var e=G.callbackCtx_,r=G.activeObservations_.map(function(Z){var O=Z.target,M=Z.contentRect_;
Z.broadcastWidth=M.width;Z.broadcastHeight=M.height;return new $_E(O,M)});
G.callback_.call(e,r,e);G.activeObservations_.splice(0)}};var c9=function(G){if(!(this instanceof c9))throw new TypeError("Ye");if(!arguments.length)throw new TypeError("We");Ejc||(Ejc=new O2P);this.observer_=new Sin(G,this)};
c9.prototype.observe=function(G){this.observer_.observe(G)};
c9.prototype.unobserve=function(G){this.observer_.unobserve(G)};
c9.prototype.disconnect=function(){this.observer_.disconnect()};var szS=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:c9;var zU={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchMove_Departed:8,TouchEnd:9,TouchCancel:10,0:"MouseUp",1:"MouseDown",2:"Click",3:"ContextMenu",4:"DblClick",5:"Focus",6:"Blur",7:"TouchStart",8:"TouchMove_Departed",9:"TouchEnd",10:"TouchCancel"},Lt={"2D":0,WebGL:1,WebGL2:2};Lt[Lt["2D"]]="2D";Lt[1]="WebGL";Lt[2]="WebGL2";var ZYy={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},OYp={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},r8f={},V7S={},hFp={},nt=function(G){return od("Node",G,"childNodes")},uY=function(G){return od("Node",G,"parentNode")},mM=function(G){return od("Node",G,"parentElement")},y8_=function(G){return od("Node",G,
"textContent")},rKs=function(G){return TTs(G,"getRootNode")()},QH=function(G){return G&&"host"in G?od("ShadowRoot",G,"host"):null},Id=function(G){return G&&"shadowRoot"in G?od("Element",G,"shadowRoot"):null};var AP=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
AP.prototype.getId=function(G){if(!G)return-1;var e,r;return(r=(e=this.nodeMetaMap.get(G)||null)==null?void 0:e.id)!=null?r:-1};
AP.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())};
var qiy=function(G,e){var r=G.getId(e);G.idNodeMap.delete(r);e.childNodes&&e.childNodes.forEach(function(Z){return qiy(G,Z)})};
AP.prototype.has=function(G){return this.idNodeMap.has(G)};
AP.prototype.add=function(G,e){this.idNodeMap.set(e.id,G);this.nodeMetaMap.set(G,e)};
AP.prototype.replace=function(G,e){var r=this.idNodeMap.get(G)||null;r&&(r=this.nodeMetaMap.get(r))&&this.nodeMetaMap.set(e,r);this.idNodeMap.set(G,e)};
AP.prototype.reset=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
var qS_=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,t7S=/^(?:[a-z+]+:)?\/\//i,gVN=/^www\..*/i,lSi=/^(data:)([^,]*),(.*)/i;var aSa=1,KTU=RegExp("[^a-z0-9-_:]"),cU,FTf,HYF=/^[^ \t\n\r\u000c]+/,ki_=/^[, \t\n\r\u000c]+/,Qb_=new WeakMap;var Gw,U0=function(G){return Gw?function(){var e=_.Bw.apply(0,arguments);try{return G.apply(null,_.mY(e))}catch(r){if(!Gw||Gw(r)!==!0)throw r;}}:G};var Y6=function(G){this.generateIdFn=G;this.iframeIdToRemoteIdMap=new WeakMap;this.iframeRemoteIdToIdMap=new WeakMap};
Y6.prototype.getId=function(G,e,r,Z){r=r||tcS(this,G);G=Z||gjb(this,G);Z=r.get(e);Z||(Z=this.generateIdFn(),r.set(e,Z),G.set(Z,e));return Z};
Y6.prototype.getIds=function(G,e){var r=this,Z=tcS(this,G),O=gjb(this,G);return e.map(function(M){return r.getId(G,M,Z,O)})};
Y6.prototype.reset=function(G){G?(this.iframeIdToRemoteIdMap.delete(G),this.iframeRemoteIdToIdMap.delete(G)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)};
var tcS=function(G,e){var r=G.iframeIdToRemoteIdMap.get(e);r||(r=new Map,G.iframeIdToRemoteIdMap.set(e,r));return r},gjb=function(G,e){var r=G.iframeRemoteIdToIdMap.get(e);
r||(r=new Map,G.iframeRemoteIdToIdMap.set(e,r));return r};var Bdf=function(G){this.iframes=new WeakMap;this.crossOriginIframeMap=new WeakMap;this.crossOriginIframeMirror=new Y6(XK4);this.crossOriginIframeRootIdMap=new WeakMap;this.mutationCb=G.mutationCb;this.wrappedEmit=G.wrappedEmit;this.stylesheetManager=G.stylesheetManager;this.recordCrossOriginIframes=G.recordCrossOriginIframes;this.crossOriginIframeStyleMirror=new Y6(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror));this.mirror=G.mirror;this.recordCrossOriginIframes&&
window.addEventListener("message",this.JSC$11825_handleMessage.bind(this))},WIa=function(G,e){G.iframes.set(e,!0);
e.contentWindow&&G.crossOriginIframeMap.set(e.contentWindow,e)},Z7$=function(G,e){G.loadListener=e},GzN=function(G,e,r){G.mutationCb({adds:[{parentId:G.mirror.getId(e),
nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0});if(G.recordCrossOriginIframes){var Z;(Z=e.contentWindow)==null||Z.addEventListener("message",G.JSC$11825_handleMessage.bind(G))}var O;(O=G.loadListener)==null||O.call(G,e);e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&KIq(G.stylesheetManager,e.contentDocument.adoptedStyleSheets,G.mirror.getId(e.contentDocument))};
Bdf.prototype.JSC$11825_handleMessage=function(G){if(G.data.type==="rrweb"&&G.origin===G.data.origin&&G.source){var e=this.crossOriginIframeMap.get(G.source);e&&(e=lgC(this,e,G.data.event))&&this.wrappedEmit(e,G.data.isCheckout)}};
var lgC=function(G,e,r){switch(r.type){case 2:G.crossOriginIframeMirror.reset(e);G.crossOriginIframeStyleMirror.reset(e);R5v(G,r.data.node,e);var Z=r.data.node.id;G.crossOriginIframeRootIdMap.set(e,Z);j$y(G,r.data.node,Z);return{timestamp:r.timestamp,type:3,data:{source:0,adds:[{parentId:G.mirror.getId(e),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case 6:return r;case 5:return yR(G,r.data.payload,e,["id","parentId","previousId","nextId"]),r;case 3:switch(r.data.source){case 0:return r.data.adds.forEach(function(O){yR(G,
O,e,["parentId","nextId","previousId"]);R5v(G,O.node,e);var M=G.crossOriginIframeRootIdMap.get(e);M&&j$y(G,O.node,M)}),r.data.removes.forEach(function(O){yR(G,O,e,["parentId",
"id"])}),r.data.attributes.forEach(function(O){yR(G,O,e,["id"])}),r.data.texts.forEach(function(O){yR(G,O,e,["id"])}),r;
case 12:case 6:case 1:return r.data.positions.forEach(function(O){yR(G,O,e,["id"])}),r;
case 7:case 2:case 3:case 9:case 5:return yR(G,r.data,e,["id"]),r;case 8:case 13:return yR(G,r.data,e,["id"]),agw(G,r.data,e,["styleId"]),r;case 10:return r;case 14:return r.data.ranges.forEach(function(O){yR(G,O,e,["start","end"])}),r;
case 15:return yR(G,r.data,e,["id"]),agw(G,r.data,e,["styleIds"]),(Z=r.data.styles)==null||Z.forEach(function(O){agw(G,O,e,["styleId"])}),r}}return!1};
Bdf.prototype.replace=function(G,e,r,Z){Z=_.h(Z);for(var O=Z.next();!O.done;O=Z.next())if(O=O.value,Array.isArray(e[O])||typeof e[O]==="number")Array.isArray(e[O])?e[O]=G.getIds(r,e[O]):e[O]=G.getId(r,e[O]);return e};
var yR=function(G,e,r,Z){G.replace(G.crossOriginIframeMirror,e,r,Z)},agw=function(G,e,r,Z){G.replace(G.crossOriginIframeStyleMirror,e,r,Z)},R5v=function(G,e,r){yR(G,e,r,["id",
"rootId"]);"childNodes"in e&&e.childNodes.forEach(function(Z){R5v(G,Z,r)})},j$y=function(G,e,r){e.type===0||e.rootId||(e.rootId=r);
"childNodes"in e&&e.childNodes.forEach(function(Z){j$y(G,Z,r)})};var vpp=/[1-9][0-9]{12}/.test(Date.now().toString())?Date.now:function(){return(new Date).getTime()},XsW=function(){this.id=1;
this.styleIDMap=new WeakMap;this.idStyleMap=new Map};
_.V=XsW.prototype;_.V.getId=function(G){var e;return(e=this.styleIDMap.get(G))!=null?e:-1};
_.V.has=function(G){return this.styleIDMap.has(G)};
_.V.add=function(G,e){if(this.has(G))return this.getId(G);e=e===void 0?this.id++:e;this.styleIDMap.set(G,e);this.idStyleMap.set(e,G);return e};
_.V.getStyle=function(G){return this.idStyleMap.get(G)||null};
_.V.reset=function(){this.styleIDMap=new WeakMap;this.idStyleMap=new Map;this.id=1};
_.V.generateId=function(){return this.id++};var KKP=function(){this.length=0;this.tail=this.head=null};
KKP.prototype.get=function(G){if(G>=this.length)throw Error("Ze");for(var e=this.head,r=0;r<G;r++){var Z=void 0;e=((Z=e)==null?void 0:Z.next)||null}return e};
var fgc=function(G,e){var r={value:e,previous:null,next:null};e.__ln=r;if(e.previousSibling&&"__ln"in e.previousSibling){var Z=e.previousSibling.__ln.next;r.next=Z;r.previous=e.previousSibling.__ln;e.previousSibling.__ln.next=r;Z&&(Z.previous=r)}else e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous?(Z=e.nextSibling.__ln.previous,r.previous=Z,r.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=r,Z&&(Z.next=r)):(G.head&&(G.head.previous=r),r.next=G.head,G.head=r);r.next===null&&
(G.tail=r);G.length++};
KKP.prototype.removeNode=function(G){var e=G.__ln;this.head&&(e.previous?(e.previous.next=e.next)?e.next.previous=e.previous:this.tail=e.previous:(this.head=e.next)?this.head.previous=null:this.tail=null,G.__ln&&delete G.__ln,this.length--)};
var kBn=function(G,e){return G+"@"+e},i9F=function(){var G=this;
this.locked=this.JSC$11856_frozen=!1;this.texts=[];this.attributes=[];this.attributeMap=new WeakMap;this.removes=[];this.mapRemoves=[];this.movedMap={};this.addedSet=new Set;this.movedSet=new Set;this.droppedSet=new Set;this.removesSubTreeCache=new Set;this.processMutations=function(e){e.forEach(G.JSC$11856_processMutation);G.emit()};
this.emit=function(){if(!G.JSC$11856_frozen&&!G.locked){for(var e=[],r=new Set,Z=new KKP,O=function(t){for(var g=-2;g===-2;)g=(t=t&&t.nextSibling)&&G.mirror.getId(t);return g},M=function(t){var g=uY(t);
if(g&&O9p(t)){var l=!1;if(t.nodeType===Node.TEXT_NODE){var X=g.tagName;if(X==="TEXTAREA")return;X==="STYLE"&&G.addedSet.has(g)&&(l=!0)}g=pt(g)?G.mirror.getId(Z9S(t)):G.mirror.getId(g);X=O(t);if(g===-1||X===-1)return fgc(Z,t);if(l=yH(t,{doc:G.doc,mirror:G.mirror,blockClass:G.blockClass,blockSelector:G.blockSelector,maskTextClass:G.maskTextClass,maskTextSelector:G.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:G.inlineStylesheet,maskInputOptions:G.maskInputOptions,maskTextFn:G.maskTextFn,
maskInputFn:G.maskInputFn,slimDOMOptions:G.slimDOMOptions,dataURLOptions:G.dataURLOptions,recordCanvas:G.recordCanvas,inlineImages:G.inlineImages,onSerialize:function(H){H.nodeName==="IFRAME"&&G.mirror.nodeMetaMap.get(H)&&WIa(G.iframeManager,H);ekf(H,G.mirror)&&NdS(G.stylesheetManager,H);t&&Id(t)&&LIy(G.shadowDomManager,Id(t),G.doc)},
onIframeLoad:function(H,I){GzN(G.iframeManager,H,I);H.contentWindow&&H.contentDocument&&e9f(G.shadowDomManager,H.contentWindow.Element,H.contentDocument)},
onStylesheetLoad:function(H,I){rQ$(G.stylesheetManager,H,I)},
cssCaptured:l}))e.push({parentId:g,nextId:X,node:l}),r.add(l.id)}};G.mapRemoves.length;)qiy(G.mirror,G.mapRemoves.shift());
for(var T=_.h(G.movedSet),E=T.next();!E.done;E=T.next())E=E.value,hk4(G.removesSubTreeCache,E)&&!G.movedSet.has(uY(E))||M(E);T=_.h(G.addedSet);for(E=T.next();!E.done;E=T.next())E=E.value,D1f(G.droppedSet,E)||hk4(G.removesSubTreeCache,E)?D1f(G.movedSet,E)?M(E):G.droppedSet.add(E):M(E);for(E=null;Z.length;){T=null;if(E){var b=G.mirror.getId(uY(E.value)),w=O(E.value);b!==-1&&w!==-1&&(T=E)}if(!T)for(E=Z.tail;E;){var q=E;E=E.previous;if(q&&(b=G.mirror.getId(uY(q.value)),O(q.value)!==-1))if(b!==-1){T=q;
break}else if((b=uY(q.value))&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(b=QH(b),G.mirror.getId(b)!==-1)){T=q;break}}if(!T){for(;Z.head;)Z.removeNode(Z.head.value);break}E=T.previous;Z.removeNode(T.value);M(T.value)}M={texts:G.texts.map(function(t){var g=t.node,l=uY(g);l&&l.tagName==="TEXTAREA"&&G.genTextAreaValueMutation(l);return{id:G.mirror.getId(g),value:t.value}}).filter(function(t){return!r.has(t.id)}).filter(function(t){return G.mirror.has(t.id)}),
attributes:G.attributes.map(function(t){var g=t.attributes;if(typeof g.style==="string"){var l=JSON.stringify(t.styleDiff),X=JSON.stringify(t._unchangedStyles);l.length<g.style.length&&(l+X).split("var(").length===g.style.split("var(").length&&(g.style=t.styleDiff)}return{id:G.mirror.getId(t.node),attributes:g}}).filter(function(t){return!r.has(t.id)}).filter(function(t){return G.mirror.has(t.id)}),
removes:G.removes,adds:e};if(M.texts.length||M.attributes.length||M.removes.length||M.adds.length)G.texts=[],G.attributes=[],G.attributeMap=new WeakMap,G.removes=[],G.addedSet=new Set,G.movedSet=new Set,G.droppedSet=new Set,G.removesSubTreeCache=new Set,G.movedMap={},G.mutationCb(M)}};
this.genTextAreaValueMutation=function(e){var r=G.attributeMap.get(e);r||(r={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},G.attributes.push(r),G.attributeMap.set(e,r));var Z=Array.from(nt(e),function(O){return y8_(O)||""}).join("");
r.attributes.value=vV4({element:e,maskInputOptions:G.maskInputOptions,tagName:e.tagName,type:$QF(e),value:Z,maskInputFn:G.maskInputFn})};
this.JSC$11856_processMutation=function(e){if(!NTf(e.target,G.mirror,G.slimDOMOptions))switch(e.type){case "characterData":var r=y8_(e.target);BU(e.target,G.blockClass,G.blockSelector,!1)||r===e.oldValue||G.texts.push({value:nVs(e.target,G.maskTextClass,G.maskTextSelector,!0)&&r?G.maskTextFn?G.maskTextFn(r,WTN(e.target)):r.replace(/[\S]/g,"*"):r,node:e.target});break;case "attributes":r=e.target;var Z=e.attributeName,O=e.target.getAttribute(Z);if(Z==="value"){var M=$QF(r);O=vV4({element:r,maskInputOptions:G.maskInputOptions,
tagName:r.tagName,type:M,value:O,maskInputFn:G.maskInputFn})}if(BU(e.target,G.blockClass,G.blockSelector,!1)||O===e.oldValue)break;M=G.attributeMap.get(e.target);if(r.tagName==="IFRAME"&&Z==="src"&&!G.keepIframeSrcFn(O))if(r.contentDocument)break;else Z="rr_src";M||(M={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},G.attributes.push(M),G.attributeMap.set(e.target,M));Z==="type"&&r.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true");
if(!pKs(r.tagName,Z))if(M.attributes[Z]=IS4(G.doc,r.tagName.toLowerCase(),Z.toLowerCase(),O),Z==="style"){if(!G.unattachedDoc)try{G.unattachedDoc=document.implementation.createHTMLDocument()}catch(w){G.unattachedDoc=G.doc}Z=G.unattachedDoc.createElement("span");e.oldValue&&Z.setAttribute("style",e.oldValue);O=_.h(Array.from(r.style));for(var T=O.next();!T.done;T=O.next()){T=T.value;var E=r.style.getPropertyValue(T),b=r.style.getPropertyPriority(T);E!==Z.style.getPropertyValue(T)||b!==Z.style.getPropertyPriority(T)?
M.styleDiff[T]=b===""?E:[E,b]:M._unchangedStyles[T]=[E,b]}Z=_.h(Array.from(Z.style));for(O=Z.next();!O.done;O=Z.next())O=O.value,r.style.getPropertyValue(O)===""&&(M.styleDiff[O]=!1)}else Z==="open"&&r.tagName==="DIALOG"&&(r.matches("dialog:modal")?M.attributes.rr_open_mode="modal":M.attributes.rr_open_mode="non-modal");break;case "childList":BU(e.target,G.blockClass,G.blockSelector,!0)||(e.target.tagName==="TEXTAREA"?G.genTextAreaValueMutation(e.target):(e.addedNodes.forEach(function(w){return G.genAdds(w,
e.target)}),e.removedNodes.forEach(function(w){var q=G.mirror.getId(w),t=pt(e.target)?G.mirror.getId(QH(e.target)):G.mirror.getId(e.target);
BU(e.target,G.blockClass,G.blockSelector,!1)||NTf(w,G.mirror,G.slimDOMOptions)||G.mirror.getId(w)===-1||(G.addedSet.has(w)?(Mga(G.addedSet,w),G.droppedSet.add(w)):G.addedSet.has(e.target)&&q===-1||LTS(e.target,G.mirror)||(G.movedSet.has(w)&&G.movedMap[q+"@"+t]?Mga(G.movedSet,w):(G.removes.push({parentId:t,id:q,isShadow:pt(e.target)&&Ct(e.target)?!0:void 0}),VgU(w,G.removesSubTreeCache))),G.mapRemoves.push(w))})))}};
this.genAdds=function(e,r){if(!H2j(G.processedNodeManager,e,G)&&!G.addedSet.has(e)&&!G.movedSet.has(e)){if(G.mirror.nodeMetaMap.has(e)){if(NTf(e,G.mirror,G.slimDOMOptions))return;G.movedSet.add(e);var Z=null;r&&G.mirror.nodeMetaMap.has(r)&&(Z=G.mirror.getId(r));Z&&Z!==-1&&(G.movedMap[kBn(G.mirror.getId(e),Z)]=!0)}else G.addedSet.add(e),G.droppedSet.delete(e);BU(e,G.blockClass,G.blockSelector,!1)||(nt(e).forEach(function(O){return G.genAdds(O)}),e&&Id(e)&&nt(Id(e)).forEach(function(O){G.processedNodeManager.add(O,
G);
G.genAdds(O,e)}))}}};
_.V=i9F.prototype;_.V.init=function(G){var e=this;"mutationCb blockClass blockSelector maskTextClass maskTextSelector inlineStylesheet maskInputOptions maskTextFn maskInputFn keepIframeSrcFn recordCanvas inlineImages slimDOMOptions dataURLOptions doc mirror iframeManager stylesheetManager shadowDomManager canvasManager processedNodeManager".split(" ").forEach(function(r){e[r]=G[r]})};
_.V.freeze=function(){this.JSC$11856_frozen=!0;this.canvasManager.freeze()};
_.V.unfreeze=function(){this.JSC$11856_frozen=!1;this.canvasManager.unfreeze();this.emit()};
_.V.isFrozen=function(){return this.JSC$11856_frozen};
_.V.lock=function(){this.locked=!0;this.canvasManager.lock()};
_.V.unlock=function(){this.locked=!1;this.canvasManager.unlock();this.emit()};
_.V.reset=function(){this.shadowDomManager.reset();this.canvasManager.reset()};var PU=[],NN=window.Proxy,tgN=["INPUT","TEXTAREA","SELECT"],gp_=new WeakMap;var d_E=new Map,np4=function(G,e,r){if(G&&(uly(G,e)||typeof G==="object")){e=G.constructor.name;var Z=d_E.get(r);Z||(Z=new Map,d_E.set(r,Z));Z.has(e)||Z.set(e,[]);r=Z.get(e);e=r.indexOf(G);e===-1&&(e=r.length,r.push(G));return e}},m1$=function(G,e,r){return G.map(function(Z){return CmU(Z,e,r)})},uly=function(G,e){return!!"WebGLActiveInfo WebGLBuffer WebGLFramebuffer WebGLProgram WebGLRenderbuffer WebGLShader WebGLShaderPrecisionFormat WebGLTexture WebGLUniformLocation WebGLVertexArrayObject WebGLVertexArrayObjectOES".split(" ").filter(function(r){return typeof e[r]===
"function"}).find(function(r){return G instanceof e[r]})};var ojl=pp(["\nfunction encode(buffer: ArrayBuffer) {\n  const bytes = new Uint8Array(buffer);\n  \n  let binary = '';\n  for (let i = 0; i < bytes.byteLength; i++) {\n      binary += String.fromCharCode(bytes[i]);\n  }\n  \n  return btoa(binary);\n}\n\nconst lastBlobMap: Map<number, string> = new Map();\nconst transparentBlobMap: Map<string, string> = new Map();\n\ninterface ImageBitmapDataURLResponseWorker {\n  onmessage:\n    | null\n    | ((message: MessageEvent<ImageBitmapDataURLWorkerParams>) => void);\n  postMessage(e: ImageBitmapDataURLWorkerResponse): void;\n}\n\nasync function getTransparentBlobFor(\n  width: number,\n  height: number,\n  dataURLOptions: any,\n): Promise<string> {\n  const id = `${width}-${height}`;\n  if ('OffscreenCanvas' in globalThis) {\n    if (transparentBlobMap.has(id)) return transparentBlobMap.get(id)!;\n    const offscreen = new OffscreenCanvas(width, height);\n    offscreen.getContext('2d'); // creates rendering context for `converToBlobs`\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n    transparentBlobMap.set(id, base64);\n    return base64;\n  } else {\n    return '';\n  }\n}\n\n// `as any` because: https://github.com/Microsoft/TypeScript/issues/20595\nconst worker: ImageBitmapDataURLResponseWorker = self;\n\n// eslint-disable-next-line @typescript-eslint/no-misused-promises\nworker.onmessage = async function (e) {\n  if ('OffscreenCanvas' in globalThis) {\n    const { id, bitmap, width, height, dataURLOptions } = e.data;\n\n    const transparentBase64 = getTransparentBlobFor(\n      width,\n      height,\n      dataURLOptions,\n    );\n\n    const offscreen = new OffscreenCanvas(width, height);\n    const ctx = offscreen.getContext('2d')!;\n\n    ctx.drawImage(bitmap, 0, 0);\n    bitmap.close();\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const type = blob.type;\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n\n    // on first try we should check if canvas is transparent,\n    // no need to save it's contents in that case\n    if (!lastBlobMap.has(id) && (await transparentBase64) === base64) {\n      lastBlobMap.set(id, base64);\n      return worker.postMessage({ id });\n    }\n\n    if (lastBlobMap.get(id) === base64) return worker.postMessage({ id }); // unchanged\n    worker.postMessage({\n      id,\n      type,\n      base64,\n      width,\n      height,\n    });\n    lastBlobMap.set(id, base64);\n  } else {\n    return worker.postMessage({ id: e.data.id });\n  }\n};\n"],
["\nfunction encode(buffer: ArrayBuffer) {\n  const bytes = new Uint8Array(buffer);\n  \n  let binary = '';\n  for (let i = 0; i < bytes.byteLength; i++) {\n      binary += String.fromCharCode(bytes[i]);\n  }\n  \n  return btoa(binary);\n}\n\nconst lastBlobMap: Map<number, string> = new Map();\nconst transparentBlobMap: Map<string, string> = new Map();\n\ninterface ImageBitmapDataURLResponseWorker {\n  onmessage:\n    | null\n    | ((message: MessageEvent<ImageBitmapDataURLWorkerParams>) => void);\n  postMessage(e: ImageBitmapDataURLWorkerResponse): void;\n}\n\nasync function getTransparentBlobFor(\n  width: number,\n  height: number,\n  dataURLOptions: any,\n): Promise<string> {\n  const id = \\`\\${width}-\\${height}\\`;\n  if ('OffscreenCanvas' in globalThis) {\n    if (transparentBlobMap.has(id)) return transparentBlobMap.get(id)!;\n    const offscreen = new OffscreenCanvas(width, height);\n    offscreen.getContext('2d'); // creates rendering context for \\`converToBlobs\\`\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n    transparentBlobMap.set(id, base64);\n    return base64;\n  } else {\n    return '';\n  }\n}\n\n// \\`as any\\` because: https://github.com/Microsoft/TypeScript/issues/20595\nconst worker: ImageBitmapDataURLResponseWorker = self;\n\n// eslint-disable-next-line @typescript-eslint/no-misused-promises\nworker.onmessage = async function (e) {\n  if ('OffscreenCanvas' in globalThis) {\n    const { id, bitmap, width, height, dataURLOptions } = e.data;\n\n    const transparentBase64 = getTransparentBlobFor(\n      width,\n      height,\n      dataURLOptions,\n    );\n\n    const offscreen = new OffscreenCanvas(width, height);\n    const ctx = offscreen.getContext('2d')!;\n\n    ctx.drawImage(bitmap, 0, 0);\n    bitmap.close();\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const type = blob.type;\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n\n    // on first try we should check if canvas is transparent,\n    // no need to save it's contents in that case\n    if (!lastBlobMap.has(id) && (await transparentBase64) === base64) {\n      lastBlobMap.set(id, base64);\n      return worker.postMessage({ id });\n    }\n\n    if (lastBlobMap.get(id) === base64) return worker.postMessage({ id }); // unchanged\n    worker.postMessage({\n      id,\n      type,\n      base64,\n      width,\n      height,\n    });\n    lastBlobMap.set(id, base64);\n  } else {\n    return worker.postMessage({ id: e.data.id });\n  }\n};\n"]),
BSq=_.Of(ojl.join(""));var U1U=function(G){var e=this;this.pendingCanvasMutations=new Map;this.rafStamps={latestId:0,invokeId:null};this.locked=this.JSC$11898_frozen=!1;this.JSC$11898_processMutation=function(b,w){if(e.rafStamps.invokeId&&e.rafStamps.latestId!==e.rafStamps.invokeId||!e.rafStamps.invokeId)e.rafStamps.invokeId=e.rafStamps.latestId;e.pendingCanvasMutations.has(b)||e.pendingCanvasMutations.set(b,[]);e.pendingCanvasMutations.get(b).push(w)};
var r=G.sampling===void 0?"all":G.sampling,Z=G.win,O=G.blockClass,M=G.blockSelector,T=G.recordCanvas,E=G.dataURLOptions;this.mutationCb=G.mutationCb;this.mirror=G.mirror;T&&r==="all"&&s$w(this,Z,O,M);T&&typeof r==="number"&&Q$w(this,r,Z,O,M,{dataURLOptions:E})};
_.V=U1U.prototype;_.V.reset=function(){this.pendingCanvasMutations.clear();this.resetObservers&&this.resetObservers()};
_.V.freeze=function(){this.JSC$11898_frozen=!0};
_.V.unfreeze=function(){this.JSC$11898_frozen=!1};
_.V.lock=function(){this.locked=!0};
_.V.unlock=function(){this.locked=!1};
var Q$w=function(G,e,r,Z,O,M){var T=YAq(r,Z,O,!0),E=new Map,b=lf4(xKq());b.onmessage=function(X){var H=X.data.id;E.set(H,!1);"base64"in X.data&&(X=X.data,G.mutationCb({id:H,type:Lt["2D"],commands:[{property:"clearRect",args:[0,0,X.width,X.height]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:X.base64}],type:X.type}]},0,0]}]}))};
var w=1E3/e,q=0,t=function(){var X=[];r.document.querySelectorAll("canvas").forEach(function(H){BU(H,Z,O,!0)||X.push(H)});
return X},g=function(X){q&&X-q<w||(q=X,t().forEach(function(H){var I,C,u,P,F;
return _.D(function(J){if(J.nextAddress==1){I=G.mirror.getId(H);if(E.get(I)||H.width===0||H.height===0)return J.return();E.set(I,!0);["webgl","webgl2"].includes(H.__context)&&(C=H.getContext(H.__context),((u=C)==null?void 0:(P=u.getContextAttributes())==null?void 0:P.preserveDrawingBuffer)===!1&&C.clear(C.COLOR_BUFFER_BIT));return J.yield(createImageBitmap(H),2)}F=J.yieldResult;b.postMessage({id:I,bitmap:F,width:H.width,height:H.height,dataURLOptions:M.dataURLOptions},[F]);_.HL(J)})}));
l=requestAnimationFrame(g)};
var l=requestAnimationFrame(g);G.resetObservers=function(){T();cancelAnimationFrame(l)}},s$w=function(G,e,r,Z){Igb(G);
psj(G);var O=YAq(e,r,Z,!1),M=cKa(G.JSC$11898_processMutation.bind(G),e,r,Z),T=AKs(G.JSC$11898_processMutation.bind(G),e,r,Z);G.resetObservers=function(){O();M();T()}},psj=function(G){requestAnimationFrame(function(){return CgP(G)})},Igb=function(G){var e=function(r){G.rafStamps.latestId=r;
requestAnimationFrame(e)};
requestAnimationFrame(e)},CgP=function(G){G.pendingCanvasMutations.forEach(function(e,r){var Z=G.mirror.getId(r);
uC3(G,r,Z)});
requestAnimationFrame(function(){return CgP(G)})},uC3=function(G,e,r){if(!G.JSC$11898_frozen&&!G.locked){var Z=G.pendingCanvasMutations.get(e);
if(Z&&r!==-1){var O=Z.map(function(M){M=Object.assign({},M);return delete M.type,M});
G.mutationCb({id:r,type:Z[0].type,commands:O});G.pendingCanvasMutations.delete(e)}}};var x1$=function(){this.nodeMap=new WeakMap;this.active=!1},H2j=function(G,e,r){return(G=G.nodeMap.get(e))&&Array.from(G).some(function(Z){return Z!==r})};
x1$.prototype.add=function(G,e){var r=this;this.active||(this.active=!0,requestAnimationFrame(function(){r.nodeMap=new WeakMap;r.active=!1}));
this.nodeMap.set(G,(this.nodeMap.get(G)||new Set).add(e))};
x1$.prototype.destroy=function(){};var zk$=function(G){this.shadowDoms=new WeakSet;this.restoreHandlers=[];this.mutationCb=G.mutationCb;this.scrollCb=G.scrollCb;this.bypassOptions=G.bypassOptions;this.mirror=G.mirror;this.init()};
zk$.prototype.init=function(){this.reset();e9f(this,Element,document)};
var LIy=function(G,e,r){if(Ct(e)&&!G.shadowDoms.has(e)){G.shadowDoms.add(e);var Z=b94(Object.assign({},G.bypassOptions,{doc:r,mutationCb:G.mutationCb,mirror:G.mirror,shadowDomManager:G}),e);G.restoreHandlers.push(function(){return Z.disconnect()});
G.restoreHandlers.push(SAq(Object.assign({},G.bypassOptions,{scrollCb:G.scrollCb,doc:e,mirror:G.mirror})));setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&KIq(G.bypassOptions.stylesheetManager,e.adoptedStyleSheets,G.mirror.getId(QH(e)));G.restoreHandlers.push(fX4({mirror:G.mirror,stylesheetManager:G.bypassOptions.stylesheetManager},e))},0)}},e9f=function(G,e,r){G.restoreHandlers.push(s0(e.prototype,"attachShadow",function(Z){return function(O){O=Z.call(this,O);
var M=Id(this);M&&O9p(this)&&LIy(G,M,r);return O}}))};
zk$.prototype.reset=function(){this.restoreHandlers.forEach(function(G){try{G()}catch(e){}});
this.restoreHandlers=[];this.shadowDoms=new WeakSet};var JKp=function(G){this.trackedLinkElements=new WeakSet;this.styleMirror=new XsW;this.mutationCb=G.mutationCb;this.adoptedStyleSheetCb=G.adoptedStyleSheetCb},rQ$=function(G,e,r){"_cssText"in r.attributes&&G.mutationCb({adds:[],
removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]});NdS(G,e)},NdS=function(G,e){G.trackedLinkElements.has(e)||G.trackedLinkElements.add(e)},KIq=function(G,e,r){if(e.length!==0){r={id:r,
styleIds:[]};var Z=[];e=_.h(e);for(var O=e.next(),M={};!O.done;M={sheet$jscomp$3:void 0},O=e.next())M.sheet$jscomp$3=O.value,O=void 0,G.styleMirror.has(M.sheet$jscomp$3)?O=G.styleMirror.getId(M.sheet$jscomp$3):(O=G.styleMirror.add(M.sheet$jscomp$3),Z.push({styleId:O,rules:Array.from(M.sheet$jscomp$3.rules||CSSRule,function(T){return function(E,b){return{rule:EVS(E,T.sheet$jscomp$3.href),index:b}}}(M))})),r.styleIds.push(O);
Z.length>0&&(r.styles=Z);G.adoptedStyleSheetCb(r)}};
JKp.prototype.reset=function(){this.styleMirror.reset();this.trackedLinkElements=new WeakSet};var ro,FIq,Pm$;try{if(Array.from([1],function(G){return G*2})[0]!==2){var njb=document.createElement("iframe");
document.body.appendChild(njb);var m_S;Array.from=((m_S=njb.contentWindow)==null?void 0:m_S.Array.from)||Array.from;document.body.removeChild(njb)}}catch(G){console.debug("Unable to override Array.from",G)}var eW=new AP;var b7U="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(" "),i7y={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},Evy=null,MfU=null;var vvi={},wvN=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 R9f={text:1},qBi={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var c3n=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Yiv={CONSTANT:{isUnwrappable:function(G){return G instanceof Bg},
unwrap:MzS},JAVASCRIPT:{isUnwrappable:function(G){return G instanceof _.Zf},
unwrap:Mg},HTML:{isUnwrappable:function(G){return G instanceof Uk},
unwrap:function(G){return Lj(G)}},
RESOURCE_URL:{isUnwrappable:function(G){return G instanceof dz},
unwrap:_.Qt},STRING:{isUnwrappable:function(G){return G instanceof Object},
unwrap:function(G){return String(G)}},
STYLE:{isUnwrappable:function(G){return typeof G==="string"},
unwrap:function(G){return G}},
URL:{isUnwrappable:function(G){return uz(G)},
unwrap:_.nj}},y3j={CONSTANT:jsA,JAVASCRIPT:jsA,HTML:function(G){G=G instanceof Uk?G:zq(String(G).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return Lj(G)},
RESOURCE_URL:jsA,STRING:String,STYLE:jsA,URL:function(G,e){G=c3n.test(G)?G:void 0;return G===void 0?e:G}};var IF_=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,aFS=/[\t\n\f\r ]+/,K9s=/[\t\n\f\r ,]+/g,kzi=function(G,e,r){return r},V5={},A3v=function(){var G=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=G.createHTML(""),r=G.createScript("");
G=G.createScriptURL("");return{INNOCUOUS_STRING:e,INNOCUOUS_SCRIPT:r,INNOCUOUS_URL:G}}(),Mz=A3v.INNOCUOUS_STRING,QsS=A3v.INNOCUOUS_SCRIPT,ssy=A3v.INNOCUOUS_URL;var FKW=function(G){var e=pvU(G);return function(r,Z,O,M){return M?e(M,Z,O,r):Mz}}({reportHandler:function(G,e){if(G)try{throw Error(e);
}catch(r){_.yx(r)}},
safeTypesBridge:function(G,e,r){var Z=Yiv[e];return Z.isUnwrappable(G)&&(Z=Z.unwrap(G,r),Z!==r)?Z:(0,y3j[e])(String(G),r)},
allowedIdentifierPrefixes:[""]});if(sH!==void 0)throw Error("af");sH=FKW;if(sH!==FKW)throw Error("bf");hb("Injectable",[]);var h74=hb("Inject",[["token",void 0]]),D4i=hb("Optional",[]);hb("Injectable",[]);var EMa=hb("Self",[]),iV4=hb("SkipSelf",[]);hb("Host",[]);var J3S={},BUj=function(){};
BUj.prototype.resolve=function(){throw Error("df");};
BUj.prototype.addProvider=function(){throw Error("df");};var Mka=Function;var x_W=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,Pgy=function(){this._reflect=window.Reflect};
_.V=Pgy.prototype;_.V.factory=function(G){return function(){return new (Function.prototype.bind.apply(G,[null].concat(_.mY(_.Bw.apply(0,arguments)))))}};
_.V._zipTypesAndAnnotations=function(G,e){var r=typeof G==="undefined"?Array(e.length):Array(G.length);for(var Z=0;Z<r.length;Z++)r[Z]=typeof G==="undefined"?[]:G[Z]!=Object?[G[Z]]:[],e&&uWs(e[Z])&&(r[Z]=r[Z].concat(e[Z]));return r};
_.V._ownParameters=function(G,e){if(x_W.exec(G.toString()))return null;if(G.parameters&&G.parameters!==e.parameters)return G.parameters;var r=G.ctorParameters;return r&&r!==e.ctorParameters?(e=typeof r==="function"?r():r,G=e.map(function(Z){return Z&&Z.type}),e=e.map(function(Z){return Z&&mpp(Z.decorators)}),this._zipTypesAndAnnotations(G,e)):uWs(this._reflect)&&uWs(this._reflect.getOwnMetadata)&&(e=this._reflect.getOwnMetadata("parameters",G),(r=this._reflect.getOwnMetadata("design:paramtypes",G))||
e)?this._zipTypesAndAnnotations(r,e):Array(G.length).fill(void 0)};
_.V.parameters=function(G){if(!G.prototype)return[];var e=Object.getPrototypeOf(G.prototype).constructor;(G=this._ownParameters(G,e))||e===Object||(G=this.parameters(e));return G||[]};
_.V._ownAnnotations=function(G,e){if(G.annotations&&G.annotations!==e.annotations)return G=G.annotations,typeof G==="function"&&G.annotations&&(G=G.annotations),G;if(G.decorators&&G.decorators!==e.decorators)return mpp(G.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",G)};
_.V.annotations=function(G){var e=Object.getPrototypeOf(G.prototype).constructor;G=this._ownAnnotations(G,e)||[];return(e!==Object?this.annotations(e):[]).concat(G)};
_.V._ownPropMetadata=function(G,e){if(G.propMetadata&&G.propMetadata!==e.propMetadata)return G=G.propMetadata,typeof G==="function"&&G.propMetadata&&(G=G.propMetadata),G;if(G.propDecorators&&G.propDecorators!==e.propDecorators){var r=G.propDecorators,Z={};Object.keys(r).forEach(function(O){Z[O]=mpp(r[O])});
return Z}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",G)};
_.V.propMetadata=function(G){var e=Object.getPrototypeOf(G.prototype).constructor,r={};if(e!==Object){var Z=this.propMetadata(e);Object.keys(Z).forEach(function(M){r[M]=Z[M]})}var O=this._ownPropMetadata(G,e);
O&&Object.keys(O).forEach(function(M){var T=[];r.hasOwnProperty(M)&&T.push.apply(T,_.mY(r[M]));T.push.apply(T,_.mY(O[M]));r[M]=T});
return r};
_.V.getter=function(G){return function(e){return e[G]}};
_.V.setter=function(G){return function(e,r){return e[G]=r}};
_.V.method=function(G){return function(e,r){if(!e[G])throw Error("ef`"+G);return e[G].apply(e,r)}};var U_y=function(){};var z5w=function(G){this.reflectionCapabilities=G};
_.K(z5w,U_y);_.V=z5w.prototype;_.V.factory=function(G){return this.reflectionCapabilities.factory(G)};
_.V.parameters=function(G){return this.reflectionCapabilities.parameters(G)};
_.V.annotations=function(G){return this.reflectionCapabilities.annotations(G)};
_.V.propMetadata=function(G){return this.reflectionCapabilities.propMetadata(G)};
_.V.getter=function(G){return this.reflectionCapabilities.getter(G)};
_.V.setter=function(G){return this.reflectionCapabilities.setter(G)};
_.V.method=function(G){return this.reflectionCapabilities.method(G)};var PlS=new z5w(new Pgy);var A9=function(G,e){this.token=G;this.id=e;if(G===void 0||G===null)throw Error("kf");};
_.iY.Object.defineProperties(A9.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return Tw(this.token)}}});
_.iY.Object.defineProperties(A9,{JSC$11954_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return EW.JSC$11958_numberOfKeys}}});
var WKl=function(){this._allKeys=new Map};
WKl.prototype.get=function(G){if(G instanceof A9)return G;if(this._allKeys.has(G))return this._allKeys.get(G);var e=new A9(G,A9.JSC$11954_numberOfKeys);this._allKeys.set(G,e);return e};
_.iY.Object.defineProperties(WKl.prototype,{JSC$11958_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var EW=new WKl;var bVU=function(G,e,r){this.key=G;this.optional=e;this.visibility=r},z9N=function(G){return new bVU(G,!1,null)},Ng_=[],e7S=function(G,e,r){this.key=G;
this.resolvedFactories=e;this.multiProvider=r},L9F=function(G,e,r,Z){this.factory=G;
this.dependencies=e;this.providerClass=r;this.providerValue=Z};var Fg={},J9=function(G,e){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=e===void 0?null:e;G=_.h(G);for(e=G.next();!e.done;e=G.next())this.addProvider(e.value)};
_.V=J9.prototype;_.V.addProvider=function(G){this.keyIdToIndex.set(G.key.id,this.keyIds.length);this.providers.push(G);this.keyIds.push(G.key.id);this.objs.push(Fg)};
_.V.resolve=function(G,e){e=e===void 0?J3S:e;return this._getByKey(EW.get(Dz(G)),null,e)};
_.V._new=function(G){if(this.constructedKeyIds[G.key.id])throw JQq(this,G.key);this.constructedKeyIds[G.key.id]=!0;return this._instantiateProvider(G)};
_.V._instantiateProvider=function(G){if(G.multiProvider){for(var e=Array(G.resolvedFactories.length),r=0;r<G.resolvedFactories.length;++r)e[r]=this._instantiate(G,G.resolvedFactories[r]);return e}return this._instantiate(G,G.resolvedFactories[0])};
_.V._instantiate=function(G,e){var r=this,Z=e.factory;try{var O=e.dependencies.map(function(T){return r._getByReflectiveDependency(T)})}catch(T){throw T.addKey&&T.addKey(this,G.key),T;
}try{var M=Z.apply(null,_.mY(O))}catch(T){throw Bgs(this,T,G.key);}return M};
_.V._getByReflectiveDependency=function(G){return this._getByKey(G.key,G.visibility,G.optional?null:J3S)};
_.V._getByKey=function(G,e,r){return G===NUE?this:e instanceof EMa?this._getByKeySelf(G,r):this._getByKeyDefault(G,r,e)};
_.V._getObjByKeyId=function(G){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===G)return this.objs[e]===Fg&&(this.objs[e]=this._new(this.providers[e])),this.objs[e];return Fg};
_.V._throwOrNull=function(G,e){if(e!==J3S)return e;throw F9$(this,G);};
_.V._getByKeySelf=function(G,e){var r=this._getObjByKeyId(G.id);return r!==Fg?r:this._throwOrNull(G,e)};
_.V._getByKeyDefault=function(G,e,r){for(var Z=r=r instanceof iV4?this.parent:this;r instanceof J9;){var O=r._getObjByKeyId(G.id);if(O!==Fg)return O;r=r.parent}O=void 0;if(r!==null)try{var M=r.resolve(G.token,e);if(M!==Fg)return M}catch(T){O=T}if(!(Z instanceof J9&&wuF(G.token))){if(O)throw O;return this._throwOrNull(G,e)}for(M=Z;M.parent instanceof J9;)M=M.parent;M.addProvider(rYs({provide:G.token,useClass:G.token}));return M.resolve(G.token,e)};
_.V.toString=function(){return this.displayName};
_.iY.Object.defineProperties(J9.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+vMS(this,function(G){return' "'+G.key.displayName+'" '}).join(", ")+"])"}}});
var NUE=EW.get(Dz(BUj));(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,m,n){if(e==Array.prototype||e==Object.prototype)return e;e[m]=n.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 m=0;m<e.length;++m){var n=e[m];if(n&&n.Math==Math)return n}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$";var JSCompiler_inline_result$jscomp$0,classes$jscomp$inline_5="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");$jscomp.global.BigInt64Array&&(classes$jscomp$inline_5.push("BigInt64"),
classes$jscomp$inline_5.push("BigUint64"));JSCompiler_inline_result$jscomp$0=classes$jscomp$inline_5;$jscomp.TYPED_ARRAY_CLASSES=JSCompiler_inline_result$jscomp$0;$jscomp.polyfillTypedArrayMethod=function(e,m,n,b){if(m)for(var q=0;q<$jscomp.TYPED_ARRAY_CLASSES.length;q++){var t=$jscomp.TYPED_ARRAY_CLASSES[q]+"Array.prototype."+e;$jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(t,m,n,b):$jscomp.polyfillUnisolated(t,m,n,b)}};
$jscomp.polyfill=function(e,m,n,b){m&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(e,m,n,b):$jscomp.polyfillUnisolated(e,m,n,b))};
$jscomp.polyfillUnisolated=function(e,m){var n=$jscomp.global;e=e.split(".");for(var b=0;b<e.length-1;b++){var q=e[b];if(!(q in n))return;n=n[q]}e=e[e.length-1];b=n[e];m=m(b);m!=b&&m!=null&&$jscomp.defineProperty(n,e,{configurable:!0,writable:!0,value:m})};
$jscomp.polyfillIsolated=function(e,m,n){var b=e.split("."),q=b.length===1;e=b[0];e=!q&&e in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var t=0;t<b.length-1;t++){var u=b[t];if(!(u in e))return;e=e[u]}b=b[b.length-1];n=$jscomp.IS_SYMBOL_NATIVE&&n==="es6"?e[b]:null;m=m(n);m!=null&&(q?$jscomp.defineProperty($jscomp.polyfills,b,{configurable:!0,writable:!0,value:m}):m!==n&&($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:m})))};
$jscomp.checkEs6ConformanceViaProxy=function(){try{var e={},m=Object.create(new $jscomp.global.Proxy(e,{get:function(n,b,q){return n==e&&b=="q"&&q==m}}));
return m.q===!0}catch(n){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 m=0;return function(){return m<e.length?{done:!1,value:e[m++]}:{done:!0}}};
$jscomp.arrayIterator=function(e){return{next:$jscomp.arrayIteratorImpl(e)}};
$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(e){if(e)return e;var m=function(t,u){this.$jscomp$symbol$id_=t;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:u})};
m.prototype.toString=function(){return this.$jscomp$symbol$id_};
e=Math.random()*1E9>>>0;var n="jscomp_symbol_"+e+"_",b=0,q=function(t){if(this instanceof q)throw new TypeError("Symbol is not a constructor");return new m(n+(t||"")+"_"+b++,t)};
return q},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");$jscomp.defineProperty(Array.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 m=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];if(m)return m.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,m){return Object.prototype.hasOwnProperty.call(e,m)};
$jscomp.polyfill("WeakMap",function(e){function m(){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 n(){}
function b(f){var h=typeof f;return h==="object"&&f!==null||h==="function"}
function q(f){if(!$jscomp.owns(f,u)){var h=new n;$jscomp.defineProperty(f,u,{value:h})}}
function t(f){if(!$jscomp.ISOLATE_POLYFILLS){var h=Object[f];h&&(Object[f]=function(k){if(k instanceof n)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(m())return e;var u="$jscomp_hidden_"+Math.random();t("freeze");t("preventExtensions");t("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,u))throw Error("WeakMap key fail: "+f);f[u][this.id_]=h;return this};
d.prototype.get=function(f){return b(f)&&$jscomp.owns(f,u)?f[u][this.id_]:void 0};
d.prototype.has=function(f){return b(f)&&$jscomp.owns(f,u)&&$jscomp.owns(f[u],this.id_)};
d.prototype.delete=function(f){return b(f)&&$jscomp.owns(f,u)&&$jscomp.owns(f[u],this.id_)?delete f[u][this.id_]:!1};
return d},"es6","es3");
$jscomp.MapEntry=function(){};
$jscomp.polyfill("Map",function(e){function m(){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(m())return e;var n=new WeakMap,b=function(d){this[0]={};this[1]=u();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=u();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 t(this,function(d){return[d.key,d.value]})};
b.prototype.keys=function(){return t(this,function(d){return d.key})};
b.prototype.values=function(){return t(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"?n.has(h)?h=n.get(h):(k=""+ ++A,n.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}},t=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}})},u=function(){var d={};
return d.previous=d.next=d.head=d},A=0;
return b},"es6","es3");
$jscomp.polyfill("Set",function(e){function m(){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 t=q.entries(),u=t.next();if(u.done||u.value[0]!=b||u.value[1]!=b)return!1;u=t.next();return u.done||u.value[0]==b||u.value[0].x!=4||u.value[1]!=u.value[0]?!1:t.next().done}catch(A){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(m())return e;var n=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};
n.prototype.add=function(b){b=b===0?0:b;this.map_.set(b,b);this.size=this.map_.size;return this};
n.prototype.delete=function(b){b=this.map_.delete(b);this.size=this.map_.size;return b};
n.prototype.clear=function(){this.map_.clear();this.size=0};
n.prototype.has=function(b){return this.map_.has(b)};
n.prototype.entries=function(){return this.map_.entries()};
n.prototype.values=function(){return this.map_.values()};
n.prototype.keys=n.prototype.values;n.prototype[Symbol.iterator]=n.prototype.values;n.prototype.forEach=function(b,q){var t=this;this.map_.forEach(function(u){return b.call(q,u,u,t)})};
return n},"es6","es3");
$jscomp.polyfill("Set.prototype.union",function(e){function m(n){$jscomp.checkIsSetInstance(this);$jscomp.checkIsSetLike(n);var b=new Set(this);n=$jscomp.checkIsValidIterator(n.keys());for(var q=n.next();!q.done;)b.add(q.value),q=n.next();return b}
return e?e:m},"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,m){return e.size<=m.size?{smallerSetIterator:e.keys(),largerSet:m}:{smallerSetIterator:$jscomp.checkIsValidIterator(m.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 m=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:this;m.XRegExp=e()}})(function(){return function q(m,n,b){function t(d,f){if(!n[d]){if(!m[d]){var h=typeof require=="function"&&require;
if(!f&&h)return h(d,!0);if(u)return u(d,!0);f=Error("Cannot find module '"+d+"'");throw f.code="MODULE_NOT_FOUND",f;}f=n[d]={exports:{}};m[d][0].call(f.exports,function(k){var r=m[d][1][k];return t(r?r:k)},f,f.exports,q,m,n,b)}return n[d].exports}
for(var u=typeof require=="function"&&require,A=0;A<b.length;A++)t(b[A]);return t}({1:[function(m,n){n.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 t(d,f){f=f?"x":"";return b.isRegExp(d)?d.xregexp&&d.xregexp.captureNames?d:b(d.source,f):b(d,f)}
var u=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,A=b.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,u],"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 v={},B;for(B in f)f.hasOwnProperty(B)&&(r=t(f[B],k),v[B]={pattern:q(r.source),names:r.xregexp.captureNames||[]});d=t(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(!v.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+v[L].pattern.replace(u,function(T,U,O){if(U){if(M=v[L].names[C-D],++C,M)return"(?<"+M+">"}else if(O)return P=+O-1,v[L].names[P]?"\\k<"+v[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(m,n){n.exports=function(b){function q(t,u,A,d){return{name:t,value:u,start:A,end:d}}
b.matchRecursive=function(t,u,A,d,f){d=d||"";f=f||{};var h=d.indexOf("g")>-1,k=d.indexOf("y")>-1,r=d.replace(/y/g,""),v=f.escapeChar;f=f.valueNames;var B=[],C=0,D=0,p=0,I=0;u=b(u,r);A=b(A,r);if(v){if(v.length>1)throw Error("Cannot use more than one escape character");v=b.escape(v);var E=new RegExp("(?:"+v+"[\\S\\s]|(?:(?!"+b.union([u,A],"",{conjunction:"or"}).source+")[^"+v+"])+)+",d.replace(/[^imu]+/g,""))}for(;;){v&&(p+=(b.exec(t,E,p,"sticky")||[""])[0].length);d=b.exec(t,u,p);r=b.exec(t,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],t.slice(I,F),I,F)),f[1]&&B.push(q(f[1],t.slice(F,J),F,J)),f[2]&&B.push(q(f[2],t.slice(J,D),J,D)),f[3]&&B.push(q(f[3],t.slice(D,p),D,p))):B.push(t.slice(J,D)),I=p,!h))break}else throw Error("Unbalanced delimiter found in string");D===p&&++p}h&&!k&&f&&f[0]&&t.length>I&&B.push(q(f[0],t.slice(I),I,t.length));
return B}}},
{}],3:[function(m,n){n.exports=function(b){function q(k){return k.replace(/[- _]+/g,"").toLowerCase()}
function t(k){var r=/^\\[xu](.+)/.exec(k);return r?d(r[1]):k.charCodeAt(k.charAt(0)==="\\"?1:0)}
function u(k){var r="",v=-1;b.forEach(k,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(B){var C=t(B[1]);C>v+1&&(r+="\\u"+h(f(v+1)),C>v+2&&(r+="-\\u"+h(f(C-1))));v=t(B[2]||B[1])});
v<65535&&(r+="\\u"+h(f(v+1)),v<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,v){var B=k[1]==="P"||!!k[2],C=v.indexOf("A")>-1;v=q(k[4]||k[3]);var D=A[v];if(k[1]==="P"&&k[2])throw new SyntaxError("Invalid double negation "+k[0]);if(!A.hasOwnProperty(v))throw new SyntaxError("Unknown Unicode token "+k[0]);if(D.inverseOf){v=q(D.inverseOf);if(!A.hasOwnProperty(v))throw new ReferenceError("Unicode token missing data "+k[0]+" -> "+D.inverseOf);D=A[v];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[v][k])||(r=A[v],v=A[v],C="",v.bmp&&!v.isBmpLast&&(C="["+v.bmp+"]"+(v.astral?"|":"")),v.astral&&(C+=v.astral),v.isBmpLast&&v.bmp&&(C+=(v.astral?"|":"")+"["+v.bmp+"]"),B=B?"(?:(?!"+C+")(?:[\ud800-\udbff][\udc00-\udfff]|[\x00-\uffff]))":"(?:"+C+")",r=r[k]=B);return B=r}return B=r==="class"?B?A[v]["b!"]||(A[v]["b!"]=u(A[v].bmp)):D.bmp:(B?"[^":"[")+D.bmp+"]"},{scope:"all",
optionalFlags:"A",leadChar:"\\"});b.addUnicodeData=function(k){for(var r,v=0;v<k.length;++v){r=k[v];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(m,n){n.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(m,n){n.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(m,n){n.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(m,n){n.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(m,n){var b=m("./xregexp");m("./addons/build")(b);m("./addons/matchrecursive")(b);m("./addons/unicode-base")(b);m("./addons/unicode-blocks")(b);m("./addons/unicode-categories")(b);m("./addons/unicode-properties")(b);m("./addons/unicode-scripts")(b);n.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(m,n){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 t(a){return E.replace.call(a,/([\s\S])(?=[\s\S]*\1)/g,"")}
function u(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=t(l+x));c.isInternalOnly||(g.source!==void 0&&(w=g.source),g.flags!=null&&(y=x?t(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 v(a,c){var g;if(t(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=t(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 u(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=v(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=t;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:u(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]=u(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]=u(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]=u(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=u(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:"("});n.exports=p},
{}]},{},[8])(8)})}).call(globalThis);var LKE=window.XRegExp;var GDC=-1,e3j=function(G){addEventListener("pageshow",function(e){e.persisted&&(GDC=e.timeStamp,G(e))},!0)};var ZlS=function(G,e,r){var Z=rDc,O,M;return function(T){if(e.value>=0&&(T||r)){var E;if((M=e.value-((E=O)!=null?E:0))||O===void 0)O=e.value,e.delta=M,T=e.value,e.rating=T>Z[1]?"poor":T>Z[0]?"needs-improvement":"good",G(e)}}};var OlE=function(G){requestAnimationFrame(function(){return requestAnimationFrame(function(){return G()})})};var M_l=function(){var G=performance.getEntriesByType("navigation")[0];if(G&&G.responseStart>0&&G.responseStart<performance.now())return G};var V_w=function(){var G,e;return(e=(G=M_l())==null?void 0:G.activationStart)!=null?e:0};var B9=-1,h3v=new Set,TcS=function(G){if(document.visibilityState==="hidden"){if(G.type==="visibilitychange")for(var e=_.h(h3v),r=e.next();!r.done;r=e.next())r=r.value,r();isFinite(B9)||(B9=G.type==="visibilitychange"?G.timeStamp:0,removeEventListener("prerenderingchange",TcS,!0))}},Dun=function(){if(B9<0){var G=V_w(),e,r;
B9=(r=document.prerendering?void 0:(e=globalThis.performance.getEntriesByType("visibility-state").filter(function(Z){return Z.name==="hidden"&&Z.startTime>G})[0])==null?void 0:e.startTime)!=null?r:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
addEventListener("visibilitychange",TcS,!0);addEventListener("prerenderingchange",TcS,!0);e3j(function(){setTimeout(function(){B9=document.visibilityState!=="hidden"||document.prerendering?Infinity:0})})}return{get firstHiddenTime(){return B9},
onHidden:function(Z){h3v.add(Z)}}};var ESv=function(){var G=G===void 0?-1:G;var e=M_l(),r="navigate";GDC>=0?r="back-forward-cache":e&&(document.prerendering||V_w()>0?r="prerender":document.wasDiscarded?r="restore":e.type&&(r=e.type.replace(/_/g,"-")));return{name:"LCP",value:G,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:r}};var S3q=new WeakMap;var ilS=function(G){var e=e===void 0?{}:e;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var r=new PerformanceObserver(function(Z){Promise.resolve().then(function(){G(Z.getEntries())})});
r.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},e));return r}}catch(Z){}};var blc=function(G){var e=!1;return function(){e||(G(),e=!0)}};var vSP=function(G){document.prerendering?addEventListener("prerenderingchange",function(){return G()},!0):G()};var woj=function(G){var e=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?G():(G=blc(G),addEventListener("visibilitychange",G,{once:!0,capture:!0}),e(function(){G();removeEventListener("visibilitychange",G,{capture:!0})}))};var $4U=function(){};
$4U.prototype._processEntry=function(G){var e;(e=this._onBeforeProcessingEntry)==null||e.call(this,G)};var rDc=[2500,4E3],hYA=function(G){var e=e===void 0?{}:e;vSP(function(){var r=Dun(),Z=ESv(),O=q3A(e),M=function(g){e.reportAllChanges||(g=g.slice(-1));g=_.h(g);for(var l=g.next();!l.done;l=g.next())l=l.value,O._processEntry(l),l.startTime<r.firstHiddenTime&&(Z.value=Math.max(l.startTime-V_w(),0),Z.entries=[l],E())},T=ilS(M);
if(T){var E=ZlS(G,Z,e.reportAllChanges);for(var b=blc(function(){M(T.takeRecords());T.disconnect();E(!0)}),w=function(g){g.isTrusted&&(woj(b),removeEventListener(g.type,w,{capture:!0}))},q=_.h(["keydown",
"click","visibilitychange"]),t=q.next();!t.done;t=q.next())addEventListener(t.value,w,{capture:!0});e3j(function(g){Z=ESv();E=ZlS(G,Z,e.reportAllChanges);OlE(function(){Z.value=performance.now()-g.timeStamp;E(!0)})})}})};var $un;var Sgw;_.z=function(){return Sgw!==void 0?Sgw:Sgw=document.createElement("template")};
document.head.appendChild(_.z().content);var qgl;_.ts({_template:function(){if(qgl!==void 0)return qgl;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);
var e=G.content,r=e.insertBefore;$un===void 0&&($un=document.createElement("template"));var Z=$un;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return qgl=G},
is:"tp-yt-app-toolbar"});var t_n;var gSl;_.x6=function(){};
_.x6=_.ts({_template:function(){if(gSl!==void 0)return gSl;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;t_n===void 0&&(t_n=document.createElement("template"));var Z=t_n;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return gSl=G},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.x6.instance||(_.x6.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(G){this._text===G&&(G+="\u00a0");this._text="";this.async(function(){this._text=G},this.timeout)},
_onIronAnnounce:function(G){G.detail&&G.detail.text&&this.announce(G.detail.text)}});
_.x6.instance=null;_.x6.requestAvailability=function(){_.x6.instance||(_.x6.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.x6.instance):document.addEventListener("load",function(){document.body.appendChild(_.x6.instance)})};var lwc;var R3C;/*

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
*/
_.ts({_template:function(){if(R3C!==void 0)return R3C;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;lwc===void 0&&(lwc=document.createElement("template"));var Z=lwc;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return R3C=G},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.I4,_.k6],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(G){this.$.textarea.selectionStart=G},set selectionEnd(G){this.$.textarea.selectionEnd=G},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var G=this.$.textarea.validity.valid;G&&(this.required&&this.value===""?G=!1:this.hasValidator()&&(G=_.I4.validate.call(this,this.value)));this.invalid=!G;this.fire("iron-input-validate");return G},
_bindValueChanged:function(G){this.value=G},
_valueChanged:function(G){var e=this.textarea;e&&(e.value!==G&&(e.value=G||G===0?G:""),this.bindValue=G,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(G){var e=_.i4(G).path;this.value=e?e[0].value:G.target.value},
_constrain:function(G){var e;G=G||[""];for(e=this.maxRows>0&&G.length>this.maxRows?G.slice(0,this.maxRows):G.slice(0);this.rows>0&&e.length<this.rows;)e.push("");return e.join("\n")+"\u00a0"},
_valueForMirror:function(){var G=this.textarea;if(G)return this.tokens=G&&G.value?G.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var jiE;var aw3;_.ts({_template:function(){if(aw3!==void 0)return aw3;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);
var e=G.content,r=e.insertBefore;jiE===void 0&&(jiE=document.createElement("template"));var Z=jiE;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return aw3=G},
is:"tp-yt-iron-collapse",behaviors:[_.CS],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(G,e){G=G==="auto"?"":G;e=e&&!this.noAnimation&&this.isAttached&&this._desiredSize!==G;this._desiredSize=G;this._updateTransition(!1);e&&(e=this._calcSize(),G===""&&(this.style[this._dimensionMax]="",G=this._calcSize()),this.style[this._dimensionMax]=e,this.scrollTop=this.scrollTop,this._updateTransition(!0),e=G!==e);this.style[this._dimensionMax]=G;e||this._transitionEnd()},
enableTransition:function(G){_.fV._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!G},
_updateTransition:function(G){this.style.transitionDuration=G&&!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(G){_.i4(G).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var XoC;var KZl;var fwv=void 0,kDW={properties:{sizingTarget:{type:Object,value:function(){var G;return(G=this.hostElement)!=null?G: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 G,e=_.i4((G=this.hostElement)!=null?G:
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 G;this._memoizedIsRTL=window.getComputedStyle((G=this.hostElement)!=null?G:this).direction=="rtl"}return this._memoizedIsRTL},
attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var G;window.getComputedStyle((G=this.hostElement)!=null?G: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 G,e=window.getComputedStyle((G=this.hostElement)!=null?G:this);G=window.getComputedStyle(this.sizingTarget);var r,Z,O;this._fitInfo={inlineStyle:{top:((r=this.hostElement)!=null?r:this).style.top||"",left:((Z=this.hostElement)!=null?Z:this).style.left||"",position:((O=this.hostElement)!=null?O: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:G.maxHeight!=="none",width:G.maxWidth!=="none",minWidth:parseInt(G.minWidth,10)||0,minHeight:parseInt(G.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 G=this._fitInfo||{},e;for(e in G.sizerInlineStyle)this.sizingTarget.style[e]=G.sizerInlineStyle[e];for(e in G.inlineStyle){var r=void 0;((r=this.hostElement)!=null?r:this).style[e]=G.inlineStyle[e]}this._fitInfo=null},
refit:function(){var G=this.sizingTarget.scrollLeft,e=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=G;this.sizingTarget.scrollTop=e},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var G;((G=this.hostElement)!=null?G:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var e;((e=this.hostElement)!=null?e:this).style.left="0px";var r;((r=this.hostElement)!=null?r:this).style.top="0px";var Z,O=((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 M=this.sizingTarget.offsetWidth;var T=this.sizingTarget.offsetHeight;var E=this.sizingTarget.clientWidth;var b=this.sizingTarget.clientHeight}G=this._fitInfo.margin;e=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,{width:O.width+G.left+G.right,height:O.height+G.top+G.bottom},O,e,Z);var w=e.left+G.left,q=e.top+G.top;r=Math.min(Z.right-G.right,w+O.width);var t=Math.min(Z.bottom-
G.bottom,q+O.height);w=Math.max(Z.left+G.left,Math.min(w,r-this._fitInfo.sizedBy.minWidth));q=Math.max(Z.top+G.top,Math.min(q,t-this._fitInfo.sizedBy.minHeight));r=Math.max(r-w,this._fitInfo.sizedBy.minWidth);t=Math.max(t-q,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=r+"px";this.sizingTarget.style.maxHeight=t+"px";w-=O.left;O=q-O.top;var g;((g=this.hostElement)!=null?g:this).style.left=w+"px";var l;((l=this.hostElement)!=null?l:this).style.top=O+"px";if(this.expandSizingTargetForScrollbars){g=
this.sizingTarget.offsetHeight;T=g-this.sizingTarget.clientHeight-(T-b);if(T>0){this.sizingTarget.style.maxHeight=Math.min(Z.height-G.top-G.bottom,t+T)+"px";T=this.sizingTarget.offsetHeight;b=T-g;var X;e.verticalAlign==="top"?X=O:e.verticalAlign==="middle"?X=O-b/2:e.verticalAlign==="bottom"&&(X=O-b);X=Math.max(Z.top+G.top,Math.min(X,Z.bottom-G.bottom-T));var H;((H=this.hostElement)!=null?H:this).style.top=X+"px"}X=this.sizingTarget.offsetWidth;M=X-this.sizingTarget.clientWidth-(M-E);if(M>0){fwv!==
void 0?E=fwv:(E=document.createElement("div"),Object.assign(E.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),H=document.createElement("div"),H.style.width="200px",H.style.height="200px",E.appendChild(H),document.body.appendChild(E),fwv=Math.abs(E.offsetWidth-100)>1?E.offsetWidth-E.clientWidth:0,document.body.removeChild(E),E=fwv);this.sizingTarget.style.maxWidth=Math.min(Z.width-G.left-G.right,r+M-E)+"px";M=this.sizingTarget.offsetWidth+E;E=M-X;var I;
e.horizontalAlign==="left"?I=w:e.horizontalAlign==="center"?I=w-E/2:e.horizontalAlign==="right"&&(I=w-E);I=Math.max(Z.left+G.left,Math.min(I,Z.right-G.right-M));var C;((C=this.hostElement)!=null?C:this).style.left=I+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var G=this._fitInfo;if(!G.positionedBy.vertically){var e;((e=this.hostElement)!=null?e:this).style.position="fixed";var r;((r=this.hostElement)!=null?r:this).style.top="0px"}if(!G.positionedBy.horizontally){var Z;((Z=this.hostElement)!=null?Z:this).style.position="fixed";var O;((O=this.hostElement)!=null?O:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var M;e=((M=this.hostElement)!=null?M:this).getBoundingClientRect();
G.sizedBy.height||this.__sizeDimension(e,G.positionedBy.vertically,"top","bottom","Height");G.sizedBy.width||this.__sizeDimension(e,G.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(G,e,r,Z,O){this.__sizeDimension(G,e,r,Z,O)},
__sizeDimension:function(G,e,r,Z,O){var M=this._fitInfo,T=this.__getNormalizedRect(this.fitInto);T=O==="Width"?T.width:T.height;G=(e=e===Z)?T-G[Z]:G[r];r=M.margin[e?r:Z];Z="offset"+O;var E;M=((E=this.hostElement)!=null?E:this)[Z]-this.sizingTarget[Z];this.sizingTarget.style["max"+O]=T-r-G-M+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var G=this._fitInfo.positionedBy;if(!G.vertically||!G.horizontally){var e;((e=this.hostElement)!=null?e:this).style.position="fixed";if(!G.vertically){var r;((r=this.hostElement)!=null?r:this).style.top="0px"}if(!G.horizontally){var Z;((Z=this.hostElement)!=null?Z:this).style.left="0px"}var O;e=((O=this.hostElement)!=null?O:this).getBoundingClientRect();O=this.__getNormalizedRect(this.fitInto);if(!G.vertically){r=O.top-e.top+(O.height-
e.height)/2;var M;((M=this.hostElement)!=null?M:this).style.top=r+"px"}if(!G.horizontally){G=O.left-e.left+(O.width-e.width)/2;var T;((T=this.hostElement)!=null?T:this).style.left=G+"px"}}}},
__getNormalizedRect:function(G){return G===document.documentElement||G===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:G.getBoundingClientRect()},
__getOffscreenArea:function(G,e,r){return Math.abs(Math.min(0,G.top)+Math.min(0,r.bottom-(G.top+e.height)))*e.width+Math.abs(Math.min(0,G.left)+Math.min(0,r.right-(G.left+e.width)))*e.height},
__getPosition:function(G,e,r,Z,O,M){var T=[{verticalAlign:"top",horizontalAlign:"left",top:O.top+this.verticalOffset,left:O.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:O.top+this.verticalOffset,left:O.right-r.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:O.bottom-r.height-this.verticalOffset,left:O.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:O.bottom-r.height-this.verticalOffset,left:O.right-r.width-
this.horizontalOffset}];if(this.noOverlap){for(var E=0,b=T.length;E<b;E++){var w={},q;for(q in T[E])w[q]=T[E][q];T.push(w)}T[0].top=T[1].top+=O.height;T[2].top=T[3].top-=O.height;T[4].left=T[6].left+=O.width;T[5].left=T[7].left-=O.width}e=e==="auto"?null:e;G=G==="auto"?null:G;G&&G!=="center"||(T.push({verticalAlign:"top",horizontalAlign:"center",top:O.top+this.verticalOffset+(this.noOverlap?O.height:0),left:O.left-Z.width/2+O.width/2+this.horizontalOffset}),T.push({verticalAlign:"bottom",horizontalAlign:"center",
top:O.bottom-r.height-this.verticalOffset-(this.noOverlap?O.height:0),left:O.left-Z.width/2+O.width/2+this.horizontalOffset}));e&&e!=="middle"||(T.push({verticalAlign:"middle",horizontalAlign:"left",top:O.top-Z.height/2+O.height/2+this.verticalOffset,left:O.left+this.horizontalOffset+(this.noOverlap?O.width:0)}),T.push({verticalAlign:"middle",horizontalAlign:"right",top:O.top-Z.height/2+O.height/2+this.verticalOffset,left:O.right-r.width-this.horizontalOffset-(this.noOverlap?O.width:0)}));e==="middle"&&
G==="center"&&T.push({verticalAlign:"middle",horizontalAlign:"center",top:O.top-Z.height/2+O.height/2+this.verticalOffset,left:O.left-Z.width/2+O.width/2+this.horizontalOffset});for(E=0;E<T.length;E++){Z=T[E];O=Z.verticalAlign===e;b=Z.horizontalAlign===G;if(!this.dynamicAlign&&!this.noOverlap&&O&&b){var t=Z;break}w=(!e||O)&&(!G||b);if(this.dynamicAlign||w){Z.offscreenArea=this.__getOffscreenArea(Z,r,M);if(Z.offscreenArea===0&&w){t=Z;break}Z.alignsOk=O+b;t=t||Z;O=Z.offscreenArea-t.offscreenArea;if(O<
0||O===0&&Z.alignsOk>t.alignsOk)t=Z}}return t}};/*

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
var P9,HlW,duy;P9=Element.prototype;HlW=P9.matches||P9.matchesSelector||P9.mozMatchesSelector||P9.msMatchesSelector||P9.oMatchesSelector||P9.webkitMatchesSelector;duy=function(){};
_.sij=function(G){var e=oSn,r=[];return e._collectTabbableNodes(G,r)?e._sortByTabIndex(r):r};
_.V=duy.prototype;_.V.isFocusable=function(G){return HlW.call(G,"input, select, textarea, button, object")?HlW.call(G,":not([disabled])"):HlW.call(G,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.V._normalizedTabIndex=function(G){return this.isFocusable(G)?(G=G.getAttribute("tabindex")||0,Number(G)):-1};
_.V._collectTabbableNodes=function(G,e){if(G.nodeType!==Node.ELEMENT_NODE||!this._isVisible(G))return!1;var r=this._normalizedTabIndex(G),Z=r>0;r>=0&&e.push(G);if(G.localName==="content"||G.localName==="slot")r=_.i4(G).getDistributedNodes();else{var O;r=((O=_.i4(G).shadowRoot)!=null?O:_.i4(G.root||G)).children}for(G=0;G<r.length;G++)Z=this._collectTabbableNodes(r[G],e)||Z;return Z};
_.V._isVisible=function(G){var e=G.style;return e.visibility!=="hidden"&&e.display!=="none"?(e=window.getComputedStyle(G),e.visibility!=="hidden"&&e.display!=="none"):!1};
_.V._sortByTabIndex=function(G){var e=G.length;if(e<2)return G;var r=Math.ceil(e/2);e=this._sortByTabIndex(G.slice(0,r));G=this._sortByTabIndex(G.slice(r));return this._mergeSortByTabIndex(e,G)};
_.V._mergeSortByTabIndex=function(G,e){for(var r=[];G.length>0&&e.length>0;)this._hasLowerTabOrder(G[0],e[0])?r.push(e.shift()):r.push(G.shift());return r.concat(G,e)};
_.V._hasLowerTabOrder=function(G,e){G=Math.max(G.tabIndex,0);e=Math.max(e.tabIndex,0);return G===0||e===0?e>G:G>e};
var oSn=new duy;var Qiw;var Iwy;_.ts({_template:function(){if(Iwy!==void 0)return Iwy;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;Qiw===void 0&&(Qiw=document.createElement("template"));var Z=Qiw;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return Iwy=G},
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&&_.i4(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.i4(this.parentNode).removeChild(this)},
_onTransitionend:function(G){G&&G.target===this&&this.complete()},
_openedChanged:function(G){G?this.prepare():(G=window.getComputedStyle(this),G.transitionDuration!=="0s"&&G.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 U4=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;F1(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)};
U4.prototype._bringOverlayAtIndexToFront=function(G){var e=this._overlays[G];if(e){var r=this._overlays.length-1,Z=this._overlays[r];Z&&this._shouldBeBehindOverlay(e,Z)&&r--;if(!(G>=r)){Z=Math.max(this._getZ(_.poW(this)),this._minimumZ);for(this._getZ(e)<=Z&&this._applyOverlayZ(e,Z);G<r;)this._overlays[G]=this._overlays[G+1],G++;this._overlays[r]=e}}};
U4.prototype.addOverlay=function(G){var e=this._overlays.indexOf(G);if(e>=0)this._bringOverlayAtIndexToFront(e);else{e=this._overlays.length;var r=this._overlays[e-1],Z=Math.max(this._getZ(r),this._minimumZ),O=this._getZ(G);r&&this._shouldBeBehindOverlay(G,r)&&(this._applyOverlayZ(r,Z),e--,Z=Math.max(this._getZ(this._overlays[e-1]),this._minimumZ));O<=Z&&this._applyOverlayZ(G,Z);this._overlays.splice(e,0,G)}this.trackBackdrop()};
U4.prototype.removeOverlay=function(G){G=this._overlays.indexOf(G);G!==-1&&(this._overlays.splice(G,1),this.trackBackdrop())};
_.poW=function(G){return G._overlays[G._overlays.length-1]};
_.V=U4.prototype;_.V.trackBackdrop=function(){var G=this._overlayWithBackdrop();if(G||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(G)-1,this.backdropElement.opened=!!G,this.backdropElement.prepare()};
_.V._overlayWithBackdrop=function(){for(var G=this._overlays.length-1;G>=0;G--)if(this._overlays[G].withBackdrop)return this._overlays[G]};
_.V._getZ=function(G){var e=this._minimumZ;if(G){var r,Z,O=Number(((r=G.hostElement)!=null?r:G).style.zIndex||window.getComputedStyle((Z=G.hostElement)!=null?Z:G).zIndex);O===O&&(e=O)}return e};
_.V._setZ=function(G,e){var r;((r=G.hostElement)!=null?r:G).style.zIndex=e};
_.V._applyOverlayZ=function(G,e){this._setZ(G,e+2)};
_.V._overlayInPath=function(G){G=G||[];for(var e=0;e<G.length;e++){var r=void 0;if(((r=G[e].polymerController)!=null?r:G[e])._manager===this)return G[e]}};
_.V._onCaptureClick=function(G){var e=this._overlays.length-1;if(e!==-1)for(var r=_.i4(G).path,Z,O;(Z=this._overlays[e])&&this._overlayInPath(r)!==((O=Z.hostElement)!=null?O:Z);)if(Z._onCaptureClick(G),Z.allowClickThrough)e--;else break};
_.V._onCaptureFocus=function(G){var e=_.poW(this);e&&e._onCaptureFocus(G)};
_.V._onCaptureKeyDown=function(G){var e=_.poW(this);e&&(_.fS.keyboardEventMatchesKeys(G,"esc")?e._onCaptureEsc(G):_.fS.keyboardEventMatchesKeys(G,"tab")&&e._onCaptureTab(G))};
_.V._shouldBeBehindOverlay=function(G,e){return!G.alwaysOnTop&&e.alwaysOnTop&&!e.contains(G)};
_.iY.Object.defineProperties(U4.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 G=document.activeElement;G&&G instanceof Element!==!1||(G=document.body);for(;G.root&&_.i4(G.root).activeElement;)G=_.i4(G.root).activeElement;return G}}});
_.z8=new U4;var tkq=0,gMF=0,liA=null,R7$=[],b4=["wheel","mousewheel","DOMMouseScroll"],jeF;_.R("web_no_lock_on_touchstart_killswitch")&&(b4.push("touchstart"),b4.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;_.W9={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:_.z8},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var G;return this._focusedChild||_.i4((G=this.hostElement)!=null?G:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var G;return _.sij((G=this.hostElement)!=null?G: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 G;this._observer=_.i4((G=this.hostElement)!=null?G:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var G;_.i4((G=this.hostElement)!=null?G: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(G){this.fire("iron-overlay-canceled",G,{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 G;((G=this.hostElement)!=null?G:this).style.outline="none";var e;((e=this.hostElement)!=null?e:this).style.display="none"}},
_openedChanged:function(G){if(G){var e;((e=this.hostElement)!=null?e:this).removeAttribute("aria-hidden")}else{var r;((r=this.hostElement)!=null?r: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 G;if(this.withBackdrop&&!((G=this.hostElement)!=null?G:this).hasAttribute("tabindex")){var e;((e=this.hostElement)!=null?e:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var r;((r=this.hostElement)!=null?r: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 G;((G=this.hostElement)!=null?G: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 G,e;((G=this.hostElement)!=null?G:this).style.transition=((e=this.hostElement)!=null?e:this).style.webkitTransition="none";var r,Z;((r=this.hostElement)!=null?r:this).style.transform=((Z=this.hostElement)!=null?Z:this).style.webkitTransform="none";var O;((O=this.hostElement)!=null?O:this).style.display=""},
_finishPositioning:function(){var G;((G=this.hostElement)!=null?G:this).style.display="none";this.scrollTop=this.scrollTop;var e,r;((e=this.hostElement)!=null?e:this).style.transition=((r=this.hostElement)!=null?r:this).style.webkitTransition="";var Z,O;((Z=this.hostElement)!=null?Z:this).style.transform=((O=this.hostElement)!=null?O:this).style.webkitTransform="";var M;((M=this.hostElement)!=null?M:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var G=this._manager.deepActiveElement,e;if(!(e=G===document.body))a:{for(;G;G=G.assignedSlot||G.parentNode||G.host)if(G===this){e=!0;break a}e=!1}e&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(G){this.noCancelOnOutsideClick||this.cancel(G)},
_onCaptureFocus:function(G){if(this.withBackdrop){var e=_.i4(G).path;e.indexOf(this)===-1?(G.stopPropagation(),this._applyFocus()):this._focusedChild=e[0]}},
_onCaptureEsc:function(G){this.noCancelOnEscKey||this.cancel(G)},
_onCaptureTab:function(G){if(this.withBackdrop){this.__ensureFirstLastFocusables();var e=G.shiftKey,r=e?this.__firstFocusableNode:this.__lastFocusableNode;e=e?this.__lastFocusableNode:this.__firstFocusableNode;if(r===e)r=!0;else{var Z=this._manager.deepActiveElement;r=Z===r||Z===this}r&&(G.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 G=this._focusableNodes;this.__firstFocusableNode=G[0];this.__lastFocusableNode=G[G.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(G,e){var r=this.__rafs;r[G]!==null&&cancelAnimationFrame(r[G]);r[G]=requestAnimationFrame(function(){r[G]=null;e.call(this)}.bind(this))},
__updateScrollObservers:function(G,e,r){G&&e&&this.__isValidScrollAction(r)?(r==="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),jeF=_._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()):(G=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),G!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(G,1),jeF=_._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(Nx)for(var G=this;G;)G.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&G.host&&this.__rootNodes.push(G),G=G.host||G.assignedSlot||G.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(G){G.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(G){return G==="lock"||G==="refit"||G==="cancel"},
__onCaptureScroll:function(G){if(!(this.__isAnimating||_.i4(G).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(G)}},
__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)}};
_.Nw=[kDW,_.CS,_.W9];_.ts({_template:function(){if(KZl!==void 0)return KZl;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;XoC===void 0&&(XoC=document.createElement("template"));var Z=XoC;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return KZl=G},
is:"tp-yt-iron-dropdown",behaviors:[_.k6,_.fS,_.Nw,USn],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 G=_.i4(this.$.content).getDistributedNodes(),e=0,r=G.length;e<r;e++)if(G[e].nodeType===Node.ELEMENT_NODE)return G[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(),_.W9._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.W9._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.W9._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var G=this.containedElement,e=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),r=0;r<e.length;r++)e[r].node=G;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(G){this._readied&&(G?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var G=this.focusTarget||this.containedElement;G&&this.opened&&!this.noAutoFocus?G.focus():_.W9._applyFocus.apply(this,arguments)}});var CEE;var ukn;/*

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 nSj=new _.s4({type:"iconset"});
_.ts({_template:function(){if(ukn!==void 0)return ukn;var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;CEE===void 0&&(CEE=document.createElement("template"));
var Z=CEE;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return ukn=G},
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(G){G=(G||"").split(":");this._iconName=G.pop();this._iconsetName=G.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&&_.i4(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=nSj.byKey(this._iconsetName)){var G=this._iconset.applyIcon(this,this._iconName,this.theme);G&&G.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,_.i4(this.root).appendChild(this._img)}});var muW;var cDl;_.ts({_template:function(){if(cDl!==void 0)return cDl;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);
var e=G.content,r=e.insertBefore;muW===void 0&&(muW=document.createElement("template"));var Z=muW;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return cDl=G},
is:"tp-yt-iron-input",behaviors:[_.I4],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(){_.x6.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.i4(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.i4(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 G=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":G=/[0-9.,e-]/}return G},_bindValueChanged:function(G,e){e&&(G===void 0?e.value=null:G!==e.value&&(this.inputElement.value=G),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:G}))},
_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(G){var e=G.keyCode==19||G.keyCode==20||G.keyCode==45||G.keyCode==46||G.keyCode==144||G.keyCode==145||G.keyCode>32&&G.keyCode<41||G.keyCode>111&&G.keyCode<124;return!(G.keyCode==8||G.keyCode==9||G.keyCode==13||G.keyCode==27)&&!(G.charCode==0&&e)},
_onKeypress:function(G){if(this.allowedPattern||this.inputElement.type==="number"){var e=this._patternRegExp;if(e&&!(G.metaKey||G.ctrlKey||G.altKey)){this._patternAlreadyChecked=!0;var r=String.fromCharCode(G.charCode);this._isPrintable(G)&&!e.test(r)&&(G.preventDefault(),this._announceInvalidCharacter("Invalid character "+r+" not entered."))}}},
_checkPatternValidity:function(){var G=this._patternRegExp;if(!G)return!0;for(var e=0;e<this.inputElement.value.length;e++)if(!G.test(this.inputElement.value[e]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var G=this.inputElement.checkValidity();G&&(this.required&&this.bindValue===""?G=!1:this.hasValidator()&&(G=_.I4.validate.call(this,this.bindValue)));this.invalid=!G;this.fire("iron-input-validate");return G},
_announceInvalidCharacter:function(G){this.fire("iron-announce",{text:G})},
_computeValue:function(G){return G}});var Ygv;var yDP;var ADW=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),FZb=ADW&&ADW[1]>=8;
_.ts({_template:function(){if(yDP!==void 0)return yDP;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;Ygv===void 0&&(Ygv=document.createElement("template"));var Z=Ygv;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return yDP=G},
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:[LxU,_.CS,_.PMv,dqP],_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 _.i4(_.i4(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var G=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,G-this._physicalCount)},set _virtualStart(G){G=this._clamp(G,0,this._maxVirtualStart);this.grid&&(G-=G%this._itemsPerRow);this._virtualStartVal=G},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(G){G%=this._physicalCount;G<0&&(G=this._physicalCount+G);this.grid&&(G-=G%this._itemsPerRow);this._physicalStartVal=G},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(G){this._physicalCountVal=G},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 G=this._firstVisibleIndexVal;if(G==null){var e=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
G=this._iterateItems(function(r,Z){e+=this._getPhysicalSizeIncrement(r);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 G},
get lastVisibleIndex(){var G=this._lastVisibleIndexVal;if(G==null){if(this.grid)G=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var e=this._physicalTop+this._scrollOffset;this._iterateItems(function(r,Z){e<this._scrollBottom&&(G=Z);e+=this._getPhysicalSizeIncrement(r)})}this._lastVisibleIndexVal=G}return G},
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,_.$h);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(G){this.style.webkitOverflowScrolling=G===this?"touch":"";this.style.overflowY=G===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.$h)},
updateViewportBoundaries:function(){var G=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(G["padding-top"],10);this._isRTL=G.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var G=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),e=G-this._scrollPosition,r=e>=0;this._scrollPosition=G;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(e)>this._physicalSize&&this._physicalSize>0?(e-=this._scrollOffset,r=Math.round(e/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=r,this._physicalStart+=r,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(G=this._getReusables(r),r?(this._physicalTop=G.physicalTop,this._virtualStart+=G.indexes.length,this._physicalStart+=G.indexes.length):(this._virtualStart=this._virtualStart-G.indexes.length,this._physicalStart=this._physicalStart-G.indexes.length),this._update(G.indexes,r?null:G.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),xs))},
_getReusables:function(G){var e=[],r=this._hiddenContentSize*this._ratio,Z=this._virtualStart,O=this._virtualEnd,M=this._physicalCount,T=this._physicalTop+this._scrollOffset;var E=this._physicalBottom+this._scrollOffset;var b=this._scrollPosition,w=this._scrollBottom;if(G){var q=this._physicalStart;E=b-T}else q=this._physicalEnd,E-=w;for(;;){var t=this._getPhysicalSizeIncrement(q);E-=t;if(e.length>=M||E<=r)break;if(G){if(O+e.length+1>=this._virtualCount)break;if(T+t>=b-this._scrollOffset)break;e.push(q);
T+=t;q=(q+1)%M}else{if(Z-e.length<=0)break;if(T+this._physicalSize-t<=w)break;e.push(q);T-=t;q=q===0?M-1:q-1}}return{indexes:e,physicalTop:T-this._scrollOffset}},
_update:function(G,e){if(!(G&&G.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(G);this._updateMetrics(G);if(e)for(;e.length;)G=e.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(G);this._positionItems();this._updateScrollerSize()}},
_createPool:function(G){this._ensureTemplatized();var e,r=Array(G);for(e=0;e<G;e++){var Z=this.stamp(null);r[e]=Z.root.querySelector("*");this._itemsParent.appendChild(Z.root)}return r},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(G){G=this._clamp(this._physicalCount+G,3,this._virtualCount-this._virtualStart);G=this._convertIndexToCompleteRow(G);if(this.grid){var e=G%this._itemsPerRow;e&&G-e<=this._physicalCount&&(G+=this._itemsPerRow);G-=e}G-=this._physicalCount;e=Math.round(this._physicalCount*.5);if(!(G<0)){if(G>0){e=window.performance.now();[].push.apply(this._physicalItems,this._createPool(G));for(var r=0;r<G;r++)this._physicalSizes.push(0);this._physicalCount+=G;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=G);this._update();this._templateCost=(window.performance.now()-e)/G;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)),iRc):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,e),xs))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var G=this._getReusables(!0);this._physicalTop=G.physicalTop;this._virtualStart+=G.indexes.length;this._physicalStart+=G.indexes.length;this._update(G.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 G={__key__:!0};G[this.as]=!0;G[this.indexAs]=!0;G[this.selectedAs]=!0;G.tabIndex=!0;this._instanceProps=G;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(G,e){typeof e!=="undefined"&&(this.notifyResize(),_.Sk(),G&&this._updateGridMetrics())},
_itemsChanged:function(G){if(G.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,
_.$h);else if(G.path==="items.splices"){this._adjustVirtualIndex(G.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(G.value.indexSplices.some(function(r){return r.addedCount>0||r.removed.length>0})){var e=this._getActiveElement();
this.contains(e)&&e.blur()}G=G.value.indexSplices.some(function(r){return r.index+r.addedCount>=this._virtualStart&&r.index<=this._virtualEnd},this);
this._isClientFull()&&!G||this._debounce("_render",this._render,_.$h)}else G.path!=="items.length"&&this._forwardItemPath(G.path,G.value)},
_forwardItemPath:function(G,e){G=G.slice(6);var r=G.indexOf(".");r===-1&&(r=G.length);var Z,O=this.modelForElement(this._offscreenFocusedItem),M=parseInt(G.substring(0,r),10);if(Z=this._isIndexRendered(M)){var T=this._getPhysicalIndex(M);var E=this.modelForElement(this._physicalItems[T])}else O&&(E=O);E&&E[this.indexAs]===M&&(G=G.substring(r+1),G=this.as+(G?"."+G:""),E._setPendingPropertyOrPath(G,e,!1,!0),E._flushProperties&&E._flushProperties(),Z&&(this._updateMetrics([T]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(G){G.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(G){this.$.selector.deselect(G);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===G&&this._removeFocusedItem()},
_iterateItems:function(G,e){var r,Z;if(arguments.length===2&&e)for(Z=0;Z<e.length;Z++){var O=e[Z];var M=this._computeVidx(O);if((r=G.call(this,O,M))!=null)return r}else{O=this._physicalStart;for(M=this._virtualStart;O<this._physicalCount;O++,M++)if((r=G.call(this,O,M))!=null)return r;for(O=0;O<this._physicalStart;O++,M++)if((r=G.call(this,O,M))!=null)return r}},
_computeVidx:function(G){return G>=this._physicalStart?this._virtualStart+(G-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+G},
_assignModels:function(G){this._iterateItems(function(e,r){var Z=this._physicalItems[e],O=this.items&&this.items[r];if(O!=null){var M=this.modelForElement(Z);M.__key__=null;this._forwardProperty(M,this.as,O);this._forwardProperty(M,this.selectedAs,this.$.selector.isSelected(O));this._forwardProperty(M,this.indexAs,r);this._forwardProperty(M,"tabIndex",this._focusedVirtualIndex===r?0:-1);this._physicalIndexForKey[M.__key__]=e;M._flushProperties&&M._flushProperties(!0);Z.removeAttribute("hidden")}else Z.setAttribute("hidden",
"")},G)},
_updateMetrics:function(G){_.Sk();var e=0,r=0,Z=this._physicalAverageCount,O=this._physicalAverage;this._iterateItems(function(M){r+=this._physicalSizes[M];this._physicalSizes[M]=this._physicalItems[M].offsetHeight;e+=this._physicalSizes[M];this._physicalAverageCount+=this._physicalSizes[M]?1:0},G);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(r=this._itemsPerRow===1?r:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+e-r,this._itemsPerRow=1);this._physicalAverageCount!==Z&&(this._physicalAverage=Math.round((O*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 G=this._physicalTop;if(this.grid){var e=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(r,Z){var O=Math.floor(Z%this._itemsPerRow*this._itemWidth+e);this._isRTL&&(O*=-1);this.translate3d(O+"px",G+"px",0,this._physicalItems[r]);this._shouldRenderNextRow(Z)&&(G+=this._rowHeight)})}else this._iterateItems(function(r){this.translate3d(0,G+"px",0,this._physicalItems[r]);
G+=this._physicalSizes[r]})},
_getPhysicalSizeIncrement:function(G){return this.grid?this._computeVidx(G)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[G]},
_shouldRenderNextRow:function(G){return G%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var G=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(G!==0){this._physicalTop=this._physicalTop-G;var e=this._scrollPosition;!FZb&&e>0&&this._resetScrollPosition(e-G)}},
_resetScrollPosition:function(G){this.scrollTarget&&G>=0&&(this._scrollPosition=this._scrollTop=G)},
_updateScrollerSize:function(G){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((G=(G=(G=G||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(G){return this.scrollToIndex(this.items.indexOf(G))},
scrollToIndex:function(G){if(!(typeof G!=="number"||G<0||G>this.items.length-1)&&(_.Sk(),this._physicalCount!==0)){G=this._clamp(G,0,this._virtualCount-1);if(!this._isIndexRendered(G)||G>=this._maxVirtualStart)this._virtualStart=this.grid?G-this._itemsPerRow*2:G-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var e=this._physicalStart,r=this._virtualStart,Z=0,O=this._hiddenContentSize;r<G&&
Z<=O;)Z+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,r++;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)},_.$h)},
selectItem:function(G){return this.selectIndex(this.items.indexOf(G))},
selectIndex:function(G){if(!(G<0||G>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(G)){var e=this.modelForElement(this._physicalItems[this._getPhysicalIndex(G)]);e&&(e[this.selectedAs]=!0);this.updateSizeForIndex(G)}this.$.selector.selectIndex(G)}},
deselectItem:function(G){return this.deselectIndex(this.items.indexOf(G))},
deselectIndex:function(G){G<0||G>=this._virtualCount||(this._isIndexRendered(G)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(G)])[this.selectedAs]=!1,this.updateSizeForIndex(G)),this.$.selector.deselectIndex(G))},
toggleSelectionForItem:function(G){return this.toggleSelectionForIndex(this.items.indexOf(G))},
toggleSelectionForIndex:function(G){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(G):this.$.selector.isSelected(this.items[G]))?this.deselectIndex(G):this.selectIndex(G)},
clearSelection:function(){this._iterateItems(function(G){this.modelForElement(this._physicalItems[G])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(G){(G?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(G){var e=this.modelForElement(G.target);if(e){var r=_.i4(G).path[0];G=this._getActiveElement();var Z=this._physicalItems[this._getPhysicalIndex(e[this.indexAs])];if(r.localName!=="input"&&r.localName!=="button"&&r.localName!=="select"){r=e.tabIndex;e.tabIndex=-100;var O=G?G.tabIndex:-1;e.tabIndex=r;G&&Z!==G&&Z.contains(G)&&O!==-100||this.toggleSelectionForItem(e[this.as])}}},
_multiSelectionChanged:function(G){this.clearSelection();this.$.selector.multi=G},
updateSizeForItem:function(G){return this.updateSizeForIndex(this.items.indexOf(G))},
updateSizeForIndex:function(G){if(!this._isIndexRendered(G))return null;this._updateMetrics([this._getPhysicalIndex(G)]);this._positionItems();return null},
_manageFocus:function(){var G=this._focusedVirtualIndex;G>=0&&G<this._virtualCount?this._isIndexRendered(G)?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(G){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(G/this._itemsPerRow)*this._itemsPerRow:G},
_isIndexRendered:function(G){return G>=this._virtualStart&&G<=this._virtualEnd},
_isIndexVisible:function(G){return G>=this.firstVisibleIndex&&G<=this.lastVisibleIndex},
_getPhysicalIndex:function(G){return(this._physicalStart+(G-this._virtualStart))%this._physicalCount},
focusItem:function(G){this._focusPhysicalItem(G)},
_focusPhysicalItem:function(G){if(!(G<0||G>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(G)||this.scrollToIndex(G);var e=this._physicalItems[this._getPhysicalIndex(G)],r=this.modelForElement(e),Z;r.tabIndex=-100;e.tabIndex===-100&&(Z=e);Z||(Z=_.i4(e).querySelector('[tabindex="-100"]'));r.tabIndex=0;this._focusedVirtualIndex=G;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 G=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[G];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[G]=this._focusBackfillItem;this._focusedPhysicalIndex=G;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var G=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),e=this._physicalItems[G];if(e){var r=this.modelForElement(e),Z=this.modelForElement(this._offscreenFocusedItem);r[this.as]===Z[this.as]?(this._focusBackfillItem=e,r.tabIndex=-1,this._physicalItems[G]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(G){G=this.modelForElement(G.target);var e=this.modelForElement(this._focusedItem),r=this._offscreenFocusedItem!==null,Z=this._focusedVirtualIndex;G&&(e===G?this._isIndexVisible(Z)||this.scrollToIndex(Z):(this._restoreFocusedItem(),e&&(e.tabIndex=-1),G.tabIndex=0,this._focusedVirtualIndex=Z=G[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(Z),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],r&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(G){switch(G.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&G.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&&G.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(G)}},
_clamp:function(G,e,r){return Math.min(r,Math.max(e,G))},
_debounce:function(G,e,r){this._debouncers=this._debouncers||{};this._debouncers[G]=_.id(this._debouncers[G],r,e.bind(this));_.bd(this._debouncers[G])},
_forwardProperty:function(G,e,r){G._setPendingProperty(e,r)},
_forwardHostPropV2:function(G,e){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(r){r&&this.modelForElement(r).forwardHostProp(G,e)},this)},
_notifyInstancePropV2:function(G,e,r){KLA(this.as,e)&&(G=G[this.indexAs],e==this.as&&(this.items[G]=r),this.notifyPath(KM(this.as,"items."+G,e),r))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(G,e,r){e.indexOf(this.as+".")===0&&this.notifyPath("items."+G.__key__+"."+e.slice(this.as.length+1),r)},
_forwardParentPath:function(G,e){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(r){r&&this.modelForElement(r).notifyPath(G,e)},this)},
_forwardParentProp:function(G,e){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(r){r&&(this.modelForElement(r)[G]=e)},this)},
_getActiveElement:function(){var G=this._itemsParent.node.domHost;return _.i4(G?G.root:document).activeElement},
_scrollTargetChanged:function(G,e){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(e)if(G==="document")this.scrollTarget=this._doc;else if(typeof G==="string"){var r,Z;this.scrollTarget=(e=(Z=(r=this.domHost)==null?void 0:r.polymerController)!=null?Z:this.domHost)&&e.$?e.$[G]:_.i4(this.ownerDocument).querySelector("#"+G)}else this._isValidScrollTarget()&&(this._oldScrollTarget=G,this._toggleScrollListener(this._shouldHaveListener,G))}});var JDE;var Bcb;var xuW=function(G,e,r,Z){G-=r;e-=Z;return Math.sqrt(G*G+e*e)},PEP=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
aia.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var Xup=function(G){G.maxRadius=0;G.mouseDownStart=0;G.mouseUpStart=0;G.xStart=0;G.yStart=0;G.xEnd=0;G.yEnd=0;G.containerMetrics=new aia(G.element)};
Kys.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var G=PEP()-this.mouseDownStart;this.mouseUpStart&&(G-=this.mouseUpElapsed);return G},get mouseUpElapsed(){return this.mouseUpStart?PEP()-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 G=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(G*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-G/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 G=this.radius/(this.containerMetrics.size/2);var e=this.xNow-this.containerMetrics.width/2;var r=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+e+"px, "+r+"px)";this.waveContainer.style.transform="translate3d("+e+"px, "+r+"px, 0)";this.wave.style.webkitTransform="scale("+G+","+G+")";this.wave.style.transform="scale3d("+G+","+G+",1)"},
downAction:function(G){var e=this.containerMetrics.width/2,r=this.containerMetrics.height/2;Xup(this);this.mouseDownStart=PEP();this.center?(this.xStart=e,this.yStart=r):(this.xStart=G?G.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=G?G.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=e,this.yEnd=r);G=this.containerMetrics;e=this.xStart;r=this.yStart;this.maxRadius=Math.max(xuW(e,r,0,0),xuW(e,r,
G.width,0),xuW(e,r,0,G.height),xuW(e,r,G.width,G.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=PEP())},
remove:function(){_.i4(_.i4(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.ts({_template:function(){if(Bcb!==void 0)return Bcb;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;JDE===void 0&&(JDE=document.createElement("template"));var Z=JDE;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return Bcb=G},
is:"tp-yt-paper-ripple",behaviors:[_.fS],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(){_.i4(this).parentNode.nodeType==11?this.keyEventTarget=_.i4(this).getOwnerRoot().host:this.keyEventTarget=_.i4(this).parentNode;var G=this.keyEventTarget;this.listen(G,"up","uiUpAction");this.listen(G,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(G){G.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var G=0;G<this.ripples.length;++G)if(!this.ripples[G].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(G){this.noink||this.downAction(G)},
downAction:function(G){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(G),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(G){this.noink||this.upAction(G)},
upAction:function(G){this.holdDown||(this.ripples.forEach(function(e){e.upAction(G)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var G=0;G<this.ripples.length;++G){var e=this.ripples[G];e.isOpacityFullyDecayed&&!e.isRestingAtMaxRadius&&this.removeRipple(e)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var G=new Kys(this);_.i4(this.$.waves).appendChild(G.waveContainer);this.$.background.style.backgroundColor=G.color;this.ripples.push(G);this._setAnimating(!0);return G},
removeRipple:function(G){var e=this.ripples.indexOf(G);e<0||(this.ripples.splice(e,1),G.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var G;for(G=0;G<this.ripples.length;++G){var e=this.ripples[G];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(G,e){e!==void 0&&(G?this.downAction():this.upAction())}});var LS={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(G){H9._downHandler.call(this,G);this.pressed&&this.ensureRipple(G)},
ensureRipple:function(G){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var e=this._rippleContainer||this.root;e&&_.i4(e).appendChild(this._ripple);if(G){e=_.i4(this._rippleContainer||this);var r=_.i4(G).rootTarget;e.deepContains(r)&&this._ripple.uiDownAction(G)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(G){this.hasRipple()&&(this._ripple.noink=G)}};var Uun={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 G=1;this.disabled?G=0:this.active||this.pressed?G=4:this.receivedFocusFromKeyboard&&(G=3);this._setElevation(G)},
_computeKeyboardClass:function(G){this.toggleClass("keyboard-focus",G)},
_spaceKeyDownHandler:function(G){H9._spaceKeyDownHandler.call(this,G);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(G){H9._spaceKeyUpHandler.call(this,G);this.hasRipple()&&this._ripple.uiUpAction()}},z3P=[ubS,
_.k6,LS,Uun];_.WZE={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(G){G&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=G)},
_createRipple:function(){var G=LS._createRipple();G.id="ink";G.setAttribute("center","");G.classList.add("circle");return G}};
_.NcE=[ubS,_.k6,LS,_.WZE];_.LZC=[_.NcE,cVj,{_checkedChanged:function(){mSW._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){LS._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var GiE;var eFE;var r8P=function(){};
_.V=r8P.prototype;_.V.registered=function(){};
_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V._tapHandler=function(){};
_.V._focusChanged=function(){};
_.V._detectKeyboardFocus=function(){};
_.V._userActivate=function(){};
_.V._upHandler=function(){};
_.V._asyncClick=function(){};
_.V._pressedChanged=function(){};
_.V._ariaActiveAttributeChanged=function(){};
_.V._activeChanged=function(){};
_.V._controlStateChanged=function(){};
_.V._changedButtonState=function(){};
_.V._focusBlurHandler=function(){};
_.V._disabledChanged=function(){};
_.V._changedControlState=function(){};
_.V._buttonStateChanged=function(){};
_.V._downHandler=function(){};
_.V.ensureRipple=function(){};
_.V.getRipple=function(){};
_.V.hasRipple=function(){};
_.V._createRipple=function(){};
_.V._noinkChanged=function(){};
_.V._computeKeyboardClass=function(){};
_.V._spaceKeyDownHandler=function(){};
_.V._spaceKeyUpHandler=function(){};
_.V._setPressed=function(){};
_.V._setPointerDown=function(){};
_.V._setReceivedFocusFromKeyboard=function(){};
_.V._setFocused=function(){};
_.V._setElevation=function(){};
r8P=_.ts({_template:function(){if(eFE!==void 0)return eFE;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);
var e=G.content,r=e.insertBefore;GiE===void 0&&(GiE=document.createElement("template"));var Z=GiE;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return eFE=G},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[z3P],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?Uun._calculateElevation.apply(this):this._setElevation(0)}});var ZYW;var OYv;var M7P={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(G){_.R("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(G)},
_onDialogClickWrapped:function(G){_.R("dialog_behavior_no_tap_killswitch")||this._onDialogClick(G)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(G,e){e&&(G?(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(G){if(G){var e;((e=this.hostElement)!=null?e:this).setAttribute("aria-modal","true")}else{var r;((r=this.hostElement)!=null?r:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(G){this.closingReason=this.closingReason||{};this.closingReason.confirmed=G},
_onDialogClick:function(G){for(var e=_.i4(G).path,r=0,Z,O=e.indexOf((Z=this.hostElement)!=null?Z:this);r<O;r++)if(Z=e[r],Z.hasAttribute&&(Z.hasAttribute("dialog-dismiss")||Z.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(Z.hasAttribute("dialog-confirm"));this.close();G.stopPropagation();break}}},V73=[_.Nw,
M7P];var hFv=document.createElement("template");_.f(hFv,'<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(hFv.content);var TTj=document.createElement("template");_.f(TTj,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(TTj.content);_.ts({_template:function(){if(OYv!==void 0)return OYv;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);
var e=G.content,r=e.insertBefore;ZYW===void 0&&(ZYW=document.createElement("template"));var Z=ZYW;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return OYv=G},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[V73,USn],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 DQE;var EVC;_.ts({_template:function(){if(EVC!==void 0)return EVC;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;DQE===void 0&&(DQE=document.createElement("template"));var Z=DQE;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return EVC=G},
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 G,e,r;if(((G=window.ShadyDOM)==null?void 0:G.noPatch)!==!0&&((e=window.ShadyDOM)==null?void 0:e.noPatch)!=="on-demand"||((r=this.__shady_parentNode)==null?void 0:r.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(M7P)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var iYc=_.Cp(['<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>']),bYj=_.pxW(iYc);bYj.setAttribute("style","display: none;");document.head.appendChild(bYj.content);var vVw;var wKv;var $Qy;var SSn;_.ts({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[u_],configure:function(G){var e=G.node,r=e.getBoundingClientRect().height;return this._effect=new KeyframeEffect(e,[{height:r/2+"px"},{height:r+"px"}],this.timingFromConfig(G))}});
_.ts({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[u_],configure:function(G){var e=G.node,r=e.getBoundingClientRect().width;return this._effect=new KeyframeEffect(e,[{width:r/2+"px"},{width:r+"px"}],this.timingFromConfig(G))}});
_.ts({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[u_],configure:function(G){var e=G.node,r=e.getBoundingClientRect().width;return this._effect=new KeyframeEffect(e,[{width:r+"px"},{width:r-r/20+"px"}],this.timingFromConfig(G))}});
_.ts({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[u_],configure:function(G){var e=G.node,r=e.getBoundingClientRect().height;this.setPrefixedProperty(e,"transformOrigin","0 0");return this._effect=new KeyframeEffect(e,[{height:r+"px",transform:"translateY(0)"},{height:r/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(G))}});var GM={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},qSl=function(){};
_.V=qSl.prototype;_.V.registered=function(){};
_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V._focusBlurHandler=function(){};
_.V._changedControlState=function(){};
_.V._setFocused=function(){};
qSl=_.ts({_template:function(){if(SSn!==void 0)return SSn;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;$Qy===void 0&&($Qy=document.createElement("template"));var Z=$Qy;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return SSn=G},
is:"tp-yt-paper-menu-button",behaviors:[_.fS,_.k6],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:GM.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:GM.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:GM.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 G=_.i4(this.$.content).getDistributedNodes(),e=0,r=G.length;e<r;e++)if(G[e].nodeType===Node.ELEMENT_NODE)return G[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(G,e){G?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):e!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(G){_.k6._disabledChanged.apply(this,arguments);G&&this.opened&&this.close()},
__onIronOverlayCanceled:function(G){var e=this.$.trigger;_.i4(G.detail).path.indexOf(e)>-1&&G.preventDefault()}});
Object.keys(GM).forEach(function(G){qSl[G]=GM[G]});var t73=_.dh.IronButtonState,gVn=(0,_.KV)(HTMLElement);
_.ts({_template:function(){if(wKv!==void 0)return wKv;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;vVw===void 0&&(vVw=document.createElement("template"));var Z=vVw;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return wKv=G},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[t73,_.k6,LS,_.o4,_.I4],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(G){var e=(0,_.o5)(this);e.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:G});e.shadowRoot.appendChild(G);return gVn.prototype._attachDom.call(this,G)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var G=this.contentElement;G&&G.selectedItem&&this._setSelectedItem(G.selectedItem)},
get contentElement(){for(var G=_.i4(this.$.content).getDistributedNodes(),e=0,r=G.length;e<r;e++)if(G[e].nodeType===Node.ELEMENT_NODE)return G[e]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(G){this._setSelectedItem(G.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(G){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G)===this&&this.open()},
_selectedItemChanged:function(G){var e="";G?e=G.label||G.getAttribute("label")||G.textContent.trim():e="";this.value=e;this._setSelectedItemLabel(e)},
_computeMenuVerticalOffset:function(G,e){return e?e:G?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var G=this.opened?"true":"false",e=this.contentElement;e&&e.setAttribute("aria-expanded",G)},
_computeLabelClass:function(G,e,r){var Z="label";if(G)r&&(Z+=" label-is-hidden");else if(r||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 lSS;var RFE;_.ts({is:"tp-yt-paper-icon-button",_template:function(){if(RFE!==void 0)return RFE;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;lSS===void 0&&(lSS=document.createElement("template"));var Z=lSS;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return RFE=G},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.NcE],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(G,e){var r=this.getAttribute("aria-label");r&&e!=r||this.setAttribute("aria-label",G)}});var jbw;var aSE;_.eJ=[ubS,_.k6,{hostAttributes:{role:"option",tabindex:"0"}}];_.ts({_template:function(){if(aSE!==void 0)return aSE;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;jbw===void 0&&(jbw=document.createElement("template"));var Z=jbw;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return aSE=G},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.eJ]});var XKw;var KTW;var fSb={attached:function(){this.fire("addon-attached")},
update:function(){}};var kil=1,HYy=1,dQc=1,oVw=[_.k6,_.fS,{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();!O3&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(G,e){G?G=G+" "+e:G=e;return G},
_onAddonAttached:function(G){G=_.i4(G).rootTarget;if(G.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,G.id);else{var e="paper-input-add-on-"+HYy++;G.id=e;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,e)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(G){_.k6._focusBlurHandler.call(this,G);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var G=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",G);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(G){try{var e=this.inputElement.selectionStart;this.value=G;this.inputElement.selectionStart=e;this.inputElement.selectionEnd=e}catch(r){this.value=G}},
_computeAlwaysFloatLabel:function(G,e){return e||G},
_updateAriaLabelledBy:function(){var G=_.i4(this.root).querySelector("label");if(G){if(G.id)var e=G.id;else e="paper-input-label-"+kil++,G.id=e;this._ariaLabelledBy=e}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+dQc++)},
_onChange:function(G){this.shadowRoot&&this.fire(G.type,{sourceEvent:G},{node:this,bubbles:G.bubbles,cancelable:G.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var G=document.activeElement;G instanceof HTMLElement&&G!==document.body&&G!==document.documentElement||this._focusableElement.focus()}}}];var sbj;var Qbl;_.ts({_template:function(){if(Qbl!==void 0)return Qbl;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;sbj===void 0&&(sbj=document.createElement("template"));var Z=sbj;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return Qbl=G},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[fSb],properties:{_charCounterStr:{type:String,value:"0"}},update:function(G){if(G.inputElement){G.value=G.value||"";var e=G.value.toString().length.toString();G.inputElement.hasAttribute("maxlength")&&(e+="/"+G.inputElement.getAttribute("maxlength"));this._charCounterStr=e}}});var ISw;var pKj;_.ts({_template:function(){if(pKj!==void 0)return pKj;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;ISw===void 0&&(ISw=document.createElement("template"));var Z=ISw;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return pKj=G},
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 lC(this.attrForValue)},get _inputElement(){return _.i4(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(G){this._addons||(this._addons=[]);G=G.target;this._addons.indexOf(G)===-1&&(this._addons.push(G),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(G){this._handleValueAndAutoValidate(G.target)},
_onValueChanged:function(G){var e=G.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,e.value===void 0||e.value===""))return;this._handleValueAndAutoValidate(G.target)},
_handleValue:function(G){var e=this._inputElementValue;e||e===0||G.type==="number"&&!G.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:G,value:e,invalid:this.invalid})},
_handleValueAndAutoValidate:function(G){this.autoValidate&&G&&(this.invalid=!(G.validate?G.validate(this._inputElementValue):G.checkValidity()));this._handleValue(G)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(G){if(this._addons)for(var e,r=0;e=this._addons[r];r++)e.update(G)},
_computeInputContentClass:function(G,e,r,Z,O){var M="input-content";G?(O&&(M+=" label-is-hidden"),Z&&!this.noUnfloatedLabelError&&(M+=" is-invalid")):(G=this.querySelector("label"),e||O?(M+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",Z?M+=" is-invalid":r&&(M+=" label-is-highlighted")):(G&&(this.$.labelAndInputContainer.style.position="relative"),Z&&!this.noUnfloatedLabelError&&(M+=" is-invalid")));r&&(M+=" focused");return M},
_computeUnderlineClass:function(G,e){var r="underline";e?r+=" is-invalid":G&&(r+=" is-highlighted");return r},
_computeAddOnContentClass:function(G,e){var r="add-on-content";e?r+=" is-invalid":G&&(r+=" is-highlighted");return r}});var CGC;var uXC;_.ts({_template:function(){if(uXC!==void 0)return uXC;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;CGC===void 0&&(CGC=document.createElement("template"));var Z=CGC;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return uXC=G},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[fSb],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(G){this._setInvalid(G.invalid)}});_.ts({is:"tp-yt-paper-input",_template:function(){if(KTW!==void 0)return KTW;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;XKw===void 0&&(XKw=document.createElement("template"));var Z=XKw;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return KTW=G},
behaviors:[oVw,_.o4],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 nVj;var mQ3;_.ts({_template:function(){if(mQ3!==void 0)return mQ3;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=
G.content,r=e.insertBefore;nVj===void 0&&(nVj=document.createElement("template"));var Z=nVj;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return mQ3=G},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.eJ]});var c83;var YSC;_.ts({_template:function(){if(YSC!==void 0)return YSC;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);
var e=G.content,r=e.insertBefore;c83===void 0&&(c83=document.createElement("template"));var Z=c83;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return YSC=G},
is:"tp-yt-paper-item-body"});var y8l;var A8E;var FTP=function(){};
_.V=FTP.prototype;_.V.indexOf=function(){};
_.V.selectPrevious=function(){};
_.V.selectNext=function(){};
_.V.selectIndex=function(){};
_.V.forceSynchronousItemUpdate=function(){};
_.V._checkFallback=function(){};
_.V._addListener=function(){};
_.V._removeListener=function(){};
_.V._activateEventChanged=function(){};
_.V._updateItems=function(){};
_.V._selectSelected=function(){};
_.V._filterItem=function(){};
_.V._valueToItem=function(){};
_.V._valueToIndex=function(){};
_.V._indexToValue=function(){};
_.V._valueForItem=function(){};
_.V._observeItems=function(){};
_.V._itemActivate=function(){};
_.V.multiChanged=function(){};
_.V._updateAttrForSelected=function(){};
_.V._updateSelected=function(){};
_.V._selectMulti=function(){};
_.V._selectionChange=function(){};
_.V._toggleSelected=function(){};
_.V._valuesToItems=function(){};
_.V.registered=function(){};
_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V.select=function(){};
_.V._resetTabindices=function(){};
_.V._updateMultiselectable=function(){};
_.V._focusWithKeyboardEvent=function(){};
_.V._clearSearchText=function(){};
_.V._focusPrevious=function(){};
_.V._focusNext=function(){};
_.V._applySelection=function(){};
_.V._focusedItemChanged=function(){};
_.V._onIronItemsChanged=function(){};
_.V._onShiftTabDown=function(){};
_.V._onFocus=function(){};
_.V._onUpKey=function(){};
_.V._onDownKey=function(){};
_.V._onEscKey=function(){};
_.V._onKeydown=function(){};
_.V._activateHandler=function(){};
_.V._disabledChanged=function(){};
_.V._setSelectedItem=function(){};
_.V._setItems=function(){};
_.V._setSelectedItems=function(){};
_.V._setFocusedItem=function(){};
FTP=_.ts({_template:function(){if(A8E!==void 0)return A8E;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);
var e=G.content,r=e.insertBefore;y8l===void 0&&(y8l=document.createElement("template"));var Z=y8l;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return A8E=G},
is:"tp-yt-paper-listbox",behaviors:[F$y],hostAttributes:{role:"listbox"}});var J8v;var BTP;var xQl={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(G,e){return[G||e?"active":"",e?"cooldown":""].join(" ")},
__activeChanged:function(G,e){this.__setAriaHidden(!G);this.__coolingDown=!G&&e},
__altChanged:function(G){this.setAttribute("aria-label",G||"loading")},
__setAriaHidden:function(G){G?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.ts({_template:function(){if(BTP!==void 0)return BTP;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;J8v===void 0&&(J8v=document.createElement("template"));var Z=J8v;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return BTP=G},
is:"tp-yt-paper-spinner",behaviors:[xQl]});var PGy;var UQW;_.ts({_template:function(){if(UQW!==void 0)return UQW;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;PGy===void 0&&(PGy=document.createElement("template"));var Z=PGy;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return UQW=G},
is:"tp-yt-paper-spinner-lite",behaviors:[xQl]});var zFS;var WTn;_.ts({_template:function(){if(WTn!==void 0)return WTn;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;zFS===void 0&&(zFS=document.createElement("template"));var Z=zFS;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return WTn=G},
is:"tp-yt-paper-tab",behaviors:[_.k6,_.dh.IronButtonState,LS],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 G=_.i4(this).parentNode;return!!G&&!!G.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(G){if(this.link){var e=this.queryEffectiveChildren("a");e&&G.target!==e&&e.click()}}});var NTP;var LTC;var Gjb=_.Cp(['<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>']),ekP=_.pxW(Gjb);document.head.appendChild(ekP.content);_.ts({_template:function(){if(LTC!==void 0)return LTC;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;NTP===void 0&&(NTP=document.createElement("template"));var Z=NTP;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return LTC=G},
is:"tp-yt-paper-tabs",behaviors:[_.CS,_.BBP],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(G){_.i4(this).querySelectorAll("tp-yt-paper-tab").forEach(G?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(G){G.setAttribute("noink","")},
_removeNoinkAttribute:function(G){G.removeAttribute("noink")},
_computeScrollButtonClass:function(G,e,r,Z){return!e||r?"hidden":G?Z?"hidden":"not-visible":""},
_computeTabsContentClass:function(G,e){var r="tabs-content";G&&(r+=" scrollable");if(!G||e)r+=" fit-container";return r},
_computeSelectionBarClass:function(G,e){var r="selection-bar";G?r+=" hidden":e&&(r+=" align-bottom");return r},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(G){return""+G},
_onIronSelect:function(G){this._tabChanged(G.detail.item,this._previousTab);this._previousTab=G.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();_.pS._activateHandler.apply(this,arguments)},
_scheduleActivation:function(G,e){this._pendingActivationItem=G;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,e)},
_delayedActivationHandler:function(){var G=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;G.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(G){G.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(G,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(G){this.$.tabsContainer.scrollLeft+=G;G=this.$.tabsContainer.scrollLeft;this._leftHidden=G===0||this.hideScrollButtons;this._rightHidden=G===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(G,e){if(G){var r=this.$.tabsContent.getBoundingClientRect(),Z=r.width,O=G.getBoundingClientRect();r=O.left-r.left;this._pos={width:this._calcPercent(O.width,Z),left:this._calcPercent(r,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 M=e.getBoundingClientRect();e=this.items.indexOf(e);G=this.items.indexOf(G);this.$.selectionBar.classList.add("expand");
G=e<G;this._isRTL&&(G=!G);G?this._positionBar(this._calcPercent(O.left+O.width-M.left,Z)-5,this._left):this._positionBar(this._calcPercent(M.left+M.width-O.left,Z)-5,this._calcPercent(r,Z)+5);this.scrollable&&this._scrollToSelectedIfNeeded(O.width,r)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(G,e){e-=this.$.tabsContainer.scrollLeft;e<0?this.$.tabsContainer.scrollLeft+=e:(e+=G-this.$.tabsContainer.offsetWidth,e>0&&(this.$.tabsContainer.scrollLeft+=e))},
_calcPercent:function(G,e){return 100*G/e},
_positionBar:function(G,e){G=G||0;e=e||0;this._width=G;this._left=e;this.transform("translateX("+e+"%) scaleX("+G/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var G=this.$.selectionBar.classList;G.contains("expand")?(G.remove("expand"),G.add("contract"),this._positionBar(this._pos.width,this._pos.left)):G.contains("contract")&&G.remove("contract")}});var rKj;var Z93;_.ts({_template:function(){if(Z93!==void 0)return Z93;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;rKj===void 0&&(rKj=document.createElement("template"));var Z=rKj;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return Z93=G},
is:"tp-yt-paper-textarea",behaviors:[oVw,_.o4],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(G){this.$.input.textarea.selectionStart=G},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(G){this.$.input.textarea.selectionEnd=G},_ariaLabelledByChanged:function(G){this._focusableElement.setAttribute("aria-labelledby",G)},
_ariaDescribedByChanged:function(G){this._focusableElement.setAttribute("aria-describedby",G)},
get _focusableElement(){return this.inputElement.textarea}});var O9v;var MgE;/*

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 VgW=function(){};
_.V=VgW.prototype;_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V._tapHandler=function(){};
_.V._focusChanged=function(){};
_.V._detectKeyboardFocus=function(){};
_.V._userActivate=function(){};
_.V._upHandler=function(){};
_.V._spaceKeyDownHandler=function(){};
_.V._spaceKeyUpHandler=function(){};
_.V._asyncClick=function(){};
_.V._pressedChanged=function(){};
_.V._ariaActiveAttributeChanged=function(){};
_.V._activeChanged=function(){};
_.V._controlStateChanged=function(){};
_.V._changedButtonState=function(){};
_.V._focusBlurHandler=function(){};
_.V._disabledChanged=function(){};
_.V._changedControlState=function(){};
_.V._downHandler=function(){};
_.V.ensureRipple=function(){};
_.V.getRipple=function(){};
_.V.hasRipple=function(){};
_.V._noinkChanged=function(){};
_.V._focusedChanged=function(){};
_.V.registered=function(){};
_.V._invalidChanged=function(){};
_.V.hasValidator=function(){};
_.V.validate=function(){};
_.V._getValidity=function(){};
_.V._requiredChanged=function(){};
_.V._valueChanged=function(){};
_.V._checkedChanged=function(){};
_.V._buttonStateChanged=function(){};
_.V._setPressed=function(){};
_.V._setPointerDown=function(){};
_.V._setReceivedFocusFromKeyboard=function(){};
_.V._setFocused=function(){};
VgW=_.ts({is:"tp-yt-paper-toggle-button",_template:function(){if(MgE!==void 0)return MgE;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;O9v===void 0&&(O9v=document.createElement("template"));var Z=O9v;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return MgE=G},
behaviors:[_.LZC],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");_.DE(this,function(){_.BJ(this,"pan-y")})},
_ontrack:function(G){G=G.detail;G.state==="start"?this._trackStart(G):G.state==="track"?this._trackMove(G):G.state==="end"&&this._trackEnd(G)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(G){G=G.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+G:G)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+G:G));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 G=LS._createRipple();G.id="ink";G.setAttribute("recenters","");G.classList.add("circle","toggle-ink");return G}});var hkw;var Tdv;_.ts({_template:function(){if(Tdv!==void 0)return Tdv;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;hkw===void 0&&(hkw=document.createElement("template"));var Z=hkw;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return Tdv=G},
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 G=_.i4(this).parentNode,e=_.i4(this).getOwnerRoot(),r;this.for?r=_.i4(e).querySelector("#"+this.for):r=G.nodeType==Node.DOCUMENT_FRAGMENT_NODE?e.host:G;return r},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(G){G==="entry"?this.show():G==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.i4(this).textContent.trim()===""){for(var G=!0,e=_.i4(this).getEffectiveChildNodes(),r=0;r<e.length;r++)if(e[r].textContent.trim()!==""){G=!1;break}if(G)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 G=this.offset;this.marginTop!=14&&this.offset==14&&(G=this.marginTop);var e=this.offsetParent.getBoundingClientRect(),r=this._target.getBoundingClientRect(),Z=this.getBoundingClientRect(),O=(r.width-Z.width)/2,M=(r.height-Z.height)/2,T=r.left-e.left,E=r.top-e.top;switch(this.position){case "top":var b=T+O;var w=E-Z.height-G;break;case "bottom":b=T+O;w=E+r.height+G;break;case "left":b=T-Z.width-G;w=E+M;break;case "right":b=T+r.width+
G,w=E+M}this.fitToVisibleBounds?(e.left+b+Z.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,b)+"px",this.style.right="auto"),e.top+w+Z.height>window.innerHeight?(this.style.bottom=e.height+"px",this.style.top="auto"):(this.style.top=Math.max(-e.top,w)+"px",this.style.bottom="auto")):(this.style.left=b+"px",this.style.top=w+"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(G){G!==500&&this.updateStyles({"--paper-tooltip-delay-in":G+"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(G){if(G==="entry"&&this.animationEntry!=="")return this.animationEntry;if(G==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[G]&&typeof this.animationConfig[G][0].name==="string"){if(this.animationConfig[G][0].timing&&this.animationConfig[G][0].timing.delay&&this.animationConfig[G][0].timing.delay!==0){var e=this.animationConfig[G][0].timing.delay;G==="entry"?this.updateStyles({"--paper-tooltip-delay-in":e+"ms"}):G==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":e+
"ms"})}return this.animationConfig[G][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 D1P=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(D1P,_.Tq);var EpE=_.tt(D1P,[0,_.Ui]);var rQ=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(rQ,_.Tq);var i9y=[3,4],b9w=[5,6];var vpv=[0,i9y,b9w,_.Ll,-1,_.Bs,_.Gi,-1,j8w,aly];var wfw=_.tt(rQ,vpv),$1W=_.lz(vpv);var SAb=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(SAb,_.Tq);var qAP=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(qAP,_.Tq);var tgn=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(tgn,_.Tq);var gpl=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(gpl,_.Tq);var lXj=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(lXj,_.Tq);var ZL=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(ZL,_.Tq);ZL.prototype.getSource=function(){return _.lg(this,1)};
ZL.prototype.getMessage=function(){return _.gU(this,4)};
ZL.prototype.getData=function(){return _.SS(this,lXj,8)};var Rkc=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(Rkc,_.Tq);var OP=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(OP,_.Tq);var M8=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(M8,_.Tq);var VJ=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(VJ,_.Tq);VJ.prototype.getUrl=function(){return _.gU(this,1)};
VJ.prototype.setUrl=function(G){return _.QB(this,1,G)};
VJ.prototype.hasUrl=function(){return _.Xo(_.Va(this,1))!=null};var jUE=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(jUE,_.Tq);var aXW=[3];var Xf3=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(Xf3,_.Tq);var hO=function(G){var e=new Xf3;return _.qa(e,2,G)};
Xf3.prototype.getLanguage=function(){return jc(this,4,TM)};
var KIb=function(G){var e=hO(1);return _.fj(e,6,TM,G)},TM=[3,
4,5,6];var fXw=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(fXw,_.Tq);var DL=function(G){var e=new fXw;return _.qa(e,1,G)},EP=function(G,e){return _.fj(G,2,kjE,e)},kjE=[2,
3,4,5];var H9W=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(H9W,_.Tq);var i9=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(i9,_.Tq);var d1w=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(d1w,_.Tq);var opE=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(opE,_.Tq);var sU3=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(sU3,_.Tq);var QUc=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(QUc,_.Tq);var IXb=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(IXb,_.Tq);var b9=function(G){return _.SS(G,M8,5)};var pfW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(pfW,_.Tq);pfW.prototype.getValue=function(){return q_(this,1)};var CmW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(CmW,_.Tq);var vV=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(vV,_.Tq);vV.prototype.getMetadata=function(){return _.a$(this,sU3,7,wQ)};
vV.prototype.hasMetadata=function(){return _.TB(this,sU3,7,wQ)};
var ulW=_.xZp(vV),wQ=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var $A=function(G){this.JSC$12178_name_=G;this.files_=[];this.directories_=[];this.directoryMap_={}};
$A.prototype.getName=function(){return this.JSC$12178_name_};var q8=function(G,e){this.callback_=e;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new $A("");npw(this,G,this.rootDirectory_);SJ(this)},npw=function(G,e,r){for(var Z=0;Z<e.length;Z++){var O=e[Z];
O.isFile?(G.fileOps_++,O.file((0,_.CB)(G.handleFileSuccess_,G,r),(0,_.CB)(G.handleFileError_,G))):G.unscannedDirectories_.push(new m1E(O,r))}},SJ=function(G){if(G.unscannedDirectories_.length>0&&G.directoryOps_<5&&!G.hasError_){G.directoryOps_++;
var e=G.unscannedDirectories_.shift(),r=e.entry,Z=new $A(r.name);e=e.parent;e.directoryMap_[Z.getName()]=Z;e.directories_.push(Z);r=r.createReader();r.readEntries((0,_.CB)(G.handleDirectorySuccess_,G,r,Z),(0,_.CB)(G.handleDirectoryError_,G))}G.directoryOps_!=0||G.fileOps_!=0||G.unscannedDirectories_.length!=0&&!G.hasError_||G.callback_(G.rootDirectory_.files_,G.rootDirectory_.directories_,G.hasError_)};
q8.prototype.handleDirectorySuccess_=function(G,e,r){npw(this,r,e);r.length==0?(this.directoryOps_--,SJ(this)):G.readEntries((0,_.CB)(this.handleDirectorySuccess_,this,G,e),(0,_.CB)(this.handleDirectoryError_,this))};
q8.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;SJ(this)};
q8.prototype.handleFileSuccess_=function(G,e){G.files_.push(e);this.fileOps_--;SJ(this)};
q8.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;SJ(this)};
var m1E=function(G,e){this.entry=G;this.parent=e};var tO=function(G){_.j7.call(this);_.w2(G,"drop",this.onObjectsDropped_,!1,this);_.w2(G,"dragenter",this.onFilesDragged_,!1,this);_.w2(G,"dragover",this.onFilesDragged_,!1,this);_.w2(G,"dragleave",this.onDragLeave_,!1,this);_.w2(G,"dragend",this.onDragLeave_,!1,this)};
_.Bz(tO,_.j7);var cKE=function(G,e){_.qQ.call(this,"f");this.files=G;this.directories=e};
_.Bz(cKE,_.qQ);var YAb=function(){_.qQ.call(this,"h")};
_.Bz(YAb,_.qQ);var yKW=function(){_.qQ.call(this,"i")};
_.Bz(yKW,_.qQ);var AKj=function(){_.qQ.call(this,"g")};
_.Bz(AKj,_.qQ);tO.prototype.onObjectsDropped_=function(G){var e=this;G.preventDefault();var r=G.event_.dataTransfer;if((G=r&&r.items)&&G.length>0&&G[0].webkitGetAsEntry){r=[];for(var Z=[],O=0;O<G.length;O++){var M=G[O].webkitGetAsEntry();M?r.push(M):Z.push(G[O])}new q8(r,function(T,E,b){b?e.dispatchEvent(new AKj("Error occurred while reading from the file system.")):e.dispatchEvent(new cKE(T,E,Z))})}else(G=r&&r.files)&&this.dispatchEvent(new cKE(Array.from(G),[]))};
tO.prototype.onFilesDragged_=function(G){G.type==="dragenter"&&this.dispatchEvent(new YAb);G.preventDefault()};
tO.prototype.onDragLeave_=function(){this.dispatchEvent(new yKW)};var FIb=function(G,e){this.JSC$12201_name_=G;this.inputElement_=e};
FIb.prototype.getName=function(){return this.JSC$12201_name_};
FIb.prototype.getInputElement=function(){return this.inputElement_};var gQ=function(G,e,r){e=e===void 0?"single_file":e;r=r===void 0?[]:r;_.j7.call(this);this.overlayTarget_=G;this.parentOverlay_=G!=null?G.parentNode:_.Hp("scotty-overlay-parent");this.selectorType_=e;this.acceptTypes_=r;this.overlay_=JKv(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.K(gQ,_.j7);
var JKv=function(G,e,r,Z){var O=document.createElement("input");O.setAttribute("type","file");O.setAttribute("name","Filedata");_.w2(O,"change",G.onFilesSelected_,!1,G);r==="multiple_file"&&(O.multiple="true");r==="single_directory"&&(O.webkitdirectory="true");Z.length>0&&O.setAttribute("accept",Z.join(","));O.style.position="absolute";O.style.overflow="hidden";O.style.height="0px";O.style.width="0px";O.style.opacity="0";O.setAttribute("aria-hidden","true");O.setAttribute("tabIndex",-1);if(G.overlayTarget_!=
null)return O.style.height=e.offsetHeight+"px",O.style.width=e.offsetWidth+"px",G.parentOverlay_&&(G.parentOverlay_.style.position="relative"),_.sg(O,e),nl(O,new _.yB(e.offsetLeft,e.offsetTop)),O;G.parentOverlay_.appendChild(O);return O};
gQ.prototype.click=function(){this.overlay_.click()};
gQ.prototype.onFilesSelected_=function(G){a:{try{var e=(new XMLHttpRequest).upload!==void 0;break a}catch(w){}e=!1}if(e){var r;G=Array.from((r=G.target.files)!=null?r:[]);r=[];if(this.selectorType_==="single_directory"&&(_.NS||Tc||_.Wz)){r=new $A("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(e=0;e<G.length;e++)for(var Z=G[e],O=Z.webkitRelativePath.split("/"),M=r,T=0;T<O.length;T++){var E=O[T];if(T==O.length-1){E!="."&&M.files_.push(Z);break}var b=M.directoryMap_[E];b==void 0&&(E=
b=new $A(E),M.directoryMap_[E.getName()]=E,M.directories_.push(E));M=b}r=r.directories_}this.dispatchEvent(new BdP(G,r,null))}else G=G.target.value,G.match(/^c:\\fakepath\\/i)&&(G=G.substring(12)),this.dispatchEvent(new BdP([],[],new FIb(G,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=JKv(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var BdP=function(G,e){_.qQ.call(this,"j");this.files=G;this.directories=e};
_.K(BdP,_.qQ);var x1E=function(G){this.uploadUrl_=G};var PmE=function(){_.j7.call(this)};
_.Bz(PmE,_.j7);var l9=function(G){_.qQ.call(this,G)};
_.Bz(l9,_.qQ);var Ra=function(G){_.qQ.call(this,G)};
_.Bz(Ra,_.qQ);var U1W=function(G,e,r,Z,O){_.j7.call(this);r=document.createElement("form");r.setAttribute("method",e);r.setAttribute("enctype","multipart/form-data");r.setAttribute("encoding","multipart/form-data");e=document.createElement("input");e.setAttribute("type","hidden");e.setAttribute("name","metadata");e.setAttribute("value",O);r.appendChild(e);r.appendChild(Z);this.JSC$12218_form_=r;G=new _.nO(G);_.eO(G,"upload_protocol","multipart");this.JSC$12218_url_=G.toString();this.JSC$12218_request_=new Mw;this.state_=
"Ready";this.JSC$12218_errorDescription_=null;this.JSC$12218_eventHandler_=new _.tP(this);_.Xx(this,this.JSC$12218_eventHandler_);this.JSC$12218_eventHandler_.listen(this.JSC$12218_request_,"success",this.onTransferSuccess_);this.JSC$12218_eventHandler_.listen(this.JSC$12218_request_,"error",this.onTransferError_)};
_.K(U1W,PmE);_.V=U1W.prototype;_.V.run=function(){this.state_="Transferring";var G=this.JSC$12218_request_,e=this.JSC$12218_form_;if(G.JSC$11486_active_)throw Error("te");var r=new _.nO(this.JSC$12218_url_||e.action);G.JSC$11486_form_=e;e=G.JSC$11486_form_;r=_.x$(r.toString());r!==void 0&&(e.action=r);Zxv(G)};
_.V.getResponseCode=function(){return null};
_.V.getResponseText=function(){return this.JSC$12218_request_&&this.JSC$12218_request_.getResponseText()||null};
_.V.JSC$29791_getErrorDescription=function(){return this.JSC$12218_errorDescription_};
_.V.cancel=function(){this.JSC$12218_request_&&this.JSC$12218_request_.abort();this.state_="Cancelled";this.dispatchEvent(new l9("o"))};
_.V.pause=function(){};
_.V.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new l9("l"))};
_.V.onTransferError_=function(){this.JSC$12218_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new l9("n"))};var jJ=function(){_.ob.call(this)};
_.K(jJ,_.ob);jJ.prototype.createXhr=function(){var G=_.ob.prototype.createXhr.call(this);G.upload&&(G.upload.onprogress=(0,_.CB)(this.onProgress_,this));return G};
jJ.prototype.onProgress_=function(G){this.dispatchEvent(G)};var zkE=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},Nd3=function(G,e){var r=G.attempt_+1;
if(G.maxAttempts_>0&&r>G.maxAttempts_)return!1;r==0?e():G.delayCallId_=kV(function(){G.delayCallId_=null;e()},WIE(G),G);
G.attempt_=r;return!0};
zkE.prototype.reset=function(){this.delayCallId_&&_.O_.clearTimeout(this.delayCallId_);this.attempt_=-1};
var WIE=function(G){var e=250*Math.pow(2,G.attempt_);G.maxDelayMs_>=0&&(e=Math.min(e,G.maxDelayMs_));return e};var kRS=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var aa=function(){_.j7.call(this);this.JSC$12228_request_=this.state_=null;this.JSC$12228_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12228_bytesTransferred_=0;this.retryIterator_=new zkE;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12228_errorDescription_=null;this.JSC$12228_eventHandler_=new _.tP(this);_.Xx(this,this.JSC$12228_eventHandler_);this.JSC$12228_url_=this.blob_=null;this.JSC$12228_method_=void 0;this.chunkSize_=this.JSC$12228_metadata_=
this.JSC$12228_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12228_responseText_=this.JSC$12228_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.Bz(aa,PmE);_.V=aa.prototype;_.V.run=function(){XG(this)};
_.V.getResponseCode=function(){return this.JSC$12228_responseCode_};
_.V.getResponseText=function(){return this.JSC$12228_responseText_};
_.V.JSC$29791_getErrorDescription=function(){return this.JSC$12228_errorDescription_};
_.V.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12228_eventHandler_.removeAll();this.JSC$12228_request_&&this.JSC$12228_request_.abort();this.retryIterator_.reset();var G=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(G==="Upload"||G==="Query")G=new jJ,G.JSC$9805_withCredentials_=this.JSC$12228_withCredentials_,G.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12228_bytesTransferred_=
0;this.dispatchEvent(new l9("o"))}};
_.V.pause=function(){this.pauseRequested_=!0};
var XG=function(G){var e=G.state_;G.pauseRequested_?(G.pauseRequested_=!1,G.stateAfterUnpausing_=e,G.state_="Paused"):Nd3(G.retryIterator_,function(){switch(G.state_){case "Start":G.JSC$12228_request_=new jJ;var r=_.c2.clone(G.JSC$12228_headers_);G.blob_.size!=null&&(r["Content-Length"]=G.blob_.size);r=HVF(r);r["X-Goog-Upload-Protocol"]="resumable";r["X-Goog-Upload-Command"]="start";G.JSC$12228_eventHandler_.removeAll();G.JSC$12228_eventHandler_.listen(G.JSC$12228_request_,"complete",G.onStartComplete_);
G.JSC$12228_request_.JSC$9805_withCredentials_=G.JSC$12228_withCredentials_;G.JSC$12228_request_.send(G.JSC$12228_url_,G.JSC$12228_method_,G.JSC$12228_metadata_,r);G.lastCommandResponseCode_=null;G.dispatchEvent(new Ra("q"));break;case "Upload":r=G.transferHandle_.uploadUrl_;var Z=G.blob_.size;if(QpE()){var O=G.chunkSize_;var M=G.offset_+O>=Z;Z=spE(G.blob_,G.offset_,M?Z:G.offset_+O)}else G.offset_=0,Z=G.blob_,M=!0;G.JSC$12228_request_=new jJ;G.JSC$12228_request_.JSC$9805_withCredentials_=G.JSC$12228_withCredentials_;
G.JSC$12228_eventHandler_.removeAll();G.JSC$12228_eventHandler_.listen(G.JSC$12228_request_,"progress",G.onUploadProgress_);O=(0,_.CB)(G.JSC$12230_onUploadComplete_,G,G.offset_+Z.size,M);G.JSC$12228_eventHandler_.listen(G.JSC$12228_request_,"complete",O);G.lastCommandResponseCode_=null;G.dispatchEvent(new Ra("q"));M=Object.assign({},G.JSC$12228_headers_||{},{"X-Goog-Upload-Command":"upload"+(M?", finalize":""),"X-Goog-Upload-Offset":G.offset_});G.JSC$12228_request_.send(r,"POST",Z,M);break;case "Query":G.JSC$12228_request_=
new jJ;G.JSC$12228_eventHandler_.removeAll();G.JSC$12228_eventHandler_.listen(G.JSC$12228_request_,"complete",G.onQueryComplete_);r=Object.assign({},G.JSC$12228_headers_||{},{"X-Goog-Upload-Command":"query"});G.JSC$12228_request_.send(G.transferHandle_.uploadUrl_,"POST","",r);G.lastCommandResponseCode_=null;G.dispatchEvent(new Ra("q"));break;default:throw Error("lf");}})||K6(G,"Transfer encountered too many consecutive failures.")},K6=function(G,e){G.state_="Error";
G.JSC$12228_errorDescription_=e;G.dispatchEvent(new l9("n"))};
aa.prototype.onStartComplete_=function(G){var e=G.target;this.lastCommandResponseCode_=e.getStatus();this.dispatchEvent(new Ra("r"));if(LIW(e))Gzn(this,e);else if(e9P(e)){G=VD(G.target.getAllResponseHeaders());for(var r in G)_.Vp(r.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new l9("m"));r=vi(G,"X-Goog-Upload-URL");G=(G=vi(G,"X-Goog-Upload-Chunk-Granularity"))?parseInt(G,10):1;r===void 0||isNaN(G)||G<=0?K6(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
G)*G,this.transferHandle_=new x1E(r),this.dispatchEvent(new l9("p")),this.state_="Upload",this.retryIterator_.reset(),XG(this))}else XG(this)};
aa.prototype.onUploadProgress_=function(G){this.JSC$12228_bytesTransferred_=this.offset_+G.loaded;this.dispatchEvent(new l9("k"))};
aa.prototype.JSC$12230_onUploadComplete_=function(G,e,r){var Z=this,O,M;return _.D(function(T){switch(T.nextAddress){case 1:O=r.target;Z.lastCommandResponseCode_=O.getStatus();Z.dispatchEvent(new Ra("r"));if(rQE(O)||O.getStatus()==404)return Z.JSC$12228_bytesTransferred_=G,Gzn(Z,O),T.return();if(e9P(O)){T.jumpTo(2);break}if(!(M=Z.detectCorruptedBlobEnabled_)){T.jumpTo(3);break}return T.yield(Z7E(Z),4);case 4:M=T.yieldResult;case 3:if(M)return K6(Z,"Blob has been modified or corrupted."),T.return();
Z.requireUploadRequestModification_=O.getStatus()==400;Z.state_="Query";XG(Z);return T.return();case 2:if(e)return K6(Z,"Got a non-final success response after issuing a finalize command."),T.return();Z.JSC$12228_bytesTransferred_=G;Z.offset_=G;Z.retryIterator_.reset();XG(Z);return T.return()}})};
aa.prototype.onQueryComplete_=function(G){var e=G.target;this.lastCommandResponseCode_=e.getStatus();this.dispatchEvent(new Ra("r"));LIW(e)?(e.getStatus()===200&&(this.JSC$12228_bytesTransferred_=this.blob_.size),Gzn(this,e)):e9P(e)?(G=VD(G.target.getAllResponseHeaders()),G=parseInt(vi(G,"X-Goog-Upload-Size-Received"),10),isNaN(G)?K6(this,"Server did not respond with current offset."):G<this.offset_?K6(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
G+"."):this.requireUploadRequestModification_&&this.offset_===G?K6(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<G&&this.retryIterator_.reset(),this.offset_=this.JSC$12228_bytesTransferred_=G,this.state_="Upload",XG(this))):XG(this)};
var Gzn=function(G,e){G.JSC$12228_responseCode_=e.getStatus();var r=VD(e.getAllResponseHeaders());d4N(r);G.JSC$12228_responseText_=e.getResponseText();G.state_="Response received";G.dispatchEvent(new l9("l"))},e9P=function(G){var e=G.getStatus();
G=VD(G.getAllResponseHeaders());G=vi(G,"X-Goog-Upload-Status");return e===200&&G==="active"},rQE=function(G){G=VD(G.getAllResponseHeaders());
return vi(G,"X-Goog-Upload-Status")==="final"},LIW=function(G){if(rQE(G))return!0;
G=G.getStatus();return G>=400&&G<500},Z7E=function(G){var e;
return _.D(function(r){if(r.nextAddress==1){if(!G.blob_||G.originalBlobSize_<=0)return r.return(!1);if(G.blob_.size!==G.originalBlobSize_)return r.return(!0);_.jr(r,2);if(e=spE(G.blob_,0,1)){var Z=r.yield,O=new yu,M=w53(O);O.reader_.readAsBinaryString(e);r=Z.call(r,M,4)}else r=r.return(!0);return r}if(r.nextAddress!=2)return r.return(G.blob_.size!==G.originalBlobSize_);_.k5(r);return r.return(!0)})};var O7b=function(G,e,r,Z,O,M){_.j7.call(this);this.payload_=Z;this.JSC$12231_url_=G;this.JSC$12231_method_=e;this.JSC$12231_headers_=r;this.JSC$12231_metadata_=O;this.encoding_=M||"binary";G=new _.kM;this.boundary_="uploader-"+NM()+"-"+G.JSC$11335_toIsoString();this.JSC$12231_responseText_=this.JSC$12231_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12231_errorDescription_=null;this.JSC$12231_eventHandler_=new _.tP(this);_.Xx(this,this.JSC$12231_eventHandler_)};
_.K(O7b,PmE);_.V=O7b.prototype;
_.V.run=function(){var G=_.c2.clone(this.JSC$12231_headers_);this.payload_.length!=null&&(G["Content-Length"]=this.payload_.length);G=HVF(G);G["X-Goog-Upload-Protocol"]="multipart";G["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new jJ;this.JSC$12231_eventHandler_.removeAll();this.JSC$12231_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12231_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12231_url_,this.JSC$12231_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12231_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",G)};
_.V.getResponseCode=function(){return this.JSC$12231_responseCode_};
_.V.getResponseText=function(){return this.JSC$12231_responseText_};
_.V.JSC$29791_getErrorDescription=function(){return this.JSC$12231_errorDescription_};
_.V.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12231_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new l9("o")))};
_.V.pause=function(){};
_.V.onTransferProgress_=function(){this.dispatchEvent(new l9("k"))};
_.V.onTransferComplete_=function(G){var e=G.target.getStatus();e===void 0||e===-1?(this.JSC$12231_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new l9("n"))):(this.JSC$12231_responseCode_=e,G=G.target,e=VD(G.getAllResponseHeaders()),d4N(e),this.JSC$12231_responseText_=G.getResponseText(),this.state_="Complete",this.dispatchEvent(new l9("l")))};_.MfW=function(G,e,r,Z){Z=Z===void 0?!1:Z;if(r instanceof FIb)return new U1W(G,"POST",e,r.getInputElement(),"");if(typeof r==="string"||r instanceof String)return new O7b(G,"POST",e,r,"");var O=new aa(void 0);O.JSC$12228_url_=G;O.JSC$12228_method_="POST";O.JSC$12228_headers_=e;O.blob_=r;O.originalBlobSize_=r.size;O.JSC$12228_metadata_="";Z&&(O.JSC$12228_withCredentials_=Z);O.state_="Start";return O};var f6=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(f6,_.Tq);_.V=f6.prototype;_.V.getEnableSsEngine=function(){return _.Sc(this,2)};
_.V.getEnableAwr=function(){return _.Sc(this,3)};
_.V.getAlohaAutoGaRollout=function(){return _.Sc(this,5)};
_.V.getEnableConfigurator=function(){return _.Sc(this,6)};
_.V.getEnableMweb=function(){return _.Sc(this,7)};
var h9w=function(){var G=VfS();return _.$y(G,7,!0)};
f6.prototype.getEnableCtlConsentCheckbox=function(){return _.Sc(this,8)};
f6.prototype.getEnableIframe=function(){return _.Sc(this,9)};
var VfS=function(){var G=new f6;G=_.$y(G,5,!0);G=_.$y(G,2,!0);G=_.$y(G,4,!1);G=_.$y(G,8,!0);return _.$y(G,9,!0)};
f6.prototype.getEnableScreenshotNudge=function(){return _.Sc(this,10)};
var TgS=function(){var G=h9w();return _.$y(G,10,!0)};
f6.prototype.getEnableWebStartupConfigEndpoint=function(){return _.Sc(this,11)};
f6.prototype.getEnableJunkNudge=function(){return _.Sc(this,12)};
var U4F=function(){var G=TgS();return _.$y(G,12,!0)};
_.V=f6.prototype;_.V.getEnableConfiguratorLocale=function(){return _.Sc(this,13)};
_.V.getEnableTinyNoPointer=function(){return _.Sc(this,14)};
_.V.getEnableSupportSessionLogging=function(){return _.Sc(this,15)};
_.V.getEnableFileUploadForScreenshot=function(){return _.Sc(this,16)};
_.V.getEnableDirectDeflectionForSingleCategory=function(){return _.Sc(this,17)};
_.V.getEnableImageSanitization=function(){return _.Sc(this,18)};
_.V.getEnableAlohaBinarySplit=function(){return _.Sc(this,19)};
_.V.getEnableDbFeedbackIntents=function(){return _.Sc(this,20)};
_.V.getEnableMarkMandatoryFieldsWithRequired=function(){return _.Sc(this,21)};
_.V.getEnableFeedbackCategoryCustomUi=function(){return _.Sc(this,22)};
_.V.getEnableRealtimeCtl=function(){return _.Sc(this,23)};var PdA=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(PdA,_.Tq);var oMN=[/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 QeU="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 IiS=_.Cp(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),pup=_.Cp(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var u5f,cYU,nM_,Y3y;var DpC,EvW;
DpC=function(G,e,r){G.timeOfStartCall=(new Date).getTime();var Z=r||_.O_,O=Z.document,M=G.nonce||_.rP(Z.document);M&&!G.nonce&&(G.nonce=M);if(G.flow=="help"){var T=_.Lz("document.location.href",Z);!G.helpCenterContext&&T&&(G.helpCenterContext=T.substring(0,1200));T=!0;if(e&&JSON&&JSON.stringify){var E=JSON.stringify(e);(T=E.length<=1200)&&(G.psdJson=E)}T||(e={invalidPsd:!0})}e=[G,e,r];Z.GOOGLE_FEEDBACK_START_ARGUMENTS=e;r=G.feedbackServerUri||"//www.google.com/tools/feedback";if(T=Z.GOOGLE_FEEDBACK_START)T.apply(Z,e);
else{Z=r+"/load.js?";for(var b in G)e=G[b],e==null||_.PA(e)||(Z+=encodeURIComponent(b)+"="+encodeURIComponent(e)+"&");G=sw(O).createElement("SCRIPT");M&&G.setAttribute("nonce",M);_.h6(G,_.sk(Z));O.body.appendChild(G)}};
EvW=function(G,e,r,Z){var O,M;_.D(function(T){O=r||_.O_;var E=G.serverEnvironment==="DEV",b=r||_.O_;b=G.nonce||_.rP(b.document);E={integrationKeys:{productId:G.productId,feedbackBucket:G.bucket,triggerId:G.triggerId},callbacks:{onClose:G.callback,onLoad:G.onLoadCallback},formContent:{locale:G.locale,disableScreenshot:G.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:G.abuseLink,additionalDataConsent:G.additionalDataConsent},initializationData:{isLocalServer:E,nonce:b,useNightlyRelease:E,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:G.feedbackServerUri,colorScheme:G.colorScheme},extraData:{productVersion:G.productVersion,authUser:G.authuser,configuratorId:G.configuratorId,customZIndex:G.customZIndex,tinyNoPointer:G.tinyNoPointer,
allowNonLoggedInFeedback:G.allowNonLoggedInFeedback,enableAnonymousFeedback:G.enableAnonymousFeedback}};e&&(b=new Map(Object.entries(e)),E.extraData.productSpecificData=b);M=E;return T.yield(JYS(M,Z,O),0)})};
_.i7W=function(G,e,r){try{if(G.flow==="help"){var Z=G.helpCenterPath.replace(/^\//,"");_.er(r||window,"https://support.google.com/"+Z)}else G.flow==="submit"?DpC(G,e,r):z7$(G.productId,G.feedbackServerUri).then(function(O){O=_.SS(O,f6,1);var M=!ciE||(O==null?void 0:O.getEnableMweb()),T=!G.tinyNoPointer||(O==null?void 0:O.getEnableTinyNoPointer());!O||O.getAlohaAutoGaRollout()&&M&&T?EvW(G,e,r,O):DpC(G,e,r)},function(O){O&&O.name!=="DuplicateFormError"&&DpC(G,e,r)})}catch(O){EvW(G,e,r,null)}};
_.Eu("userfeedback.api.startFeedback",_.i7W);var Wyp=/https?:\/\/\S+\.\S+/,N_N=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],Lyi=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var pMF=function(G){var e=G.split(""),r=[-263237435,15,e,function(Z,O,M){var T=O.length;M.forEach(function(E,b,w){this.push(w[b]=O[(O.indexOf(E)-O.indexOf(this[b])+b+T--)%O.length])},Z.split(""))},
function(Z,O){Z=(Z%O.length+O.length)%O.length;O.splice(-Z).reverse().forEach(function(M){O.unshift(M)})},
"response",function(){for(var Z=64,O=[];++Z-O.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}O.push(String.fromCharCode(Z))}return O},
null,12,1540023973,65941107,null,e,function(Z,O){for(Z=(Z%O.length+O.length)%O.length;Z--;)O.unshift(O.pop())},
695603893,function(Z){for(var O=Z.length;O;)Z.push(Z.splice(--O,1)[0])},
"'[;'[(",function(Z,O){Z.push(O)},
null,function(Z,O,M,T,E){return O(M,T,E)},
"continuation",e,function(Z,O){if(Z.length!=0){O=(O%Z.length+Z.length)%Z.length;var M=Z[0];Z[0]=Z[O];Z[O]=M}},
function(){for(var Z=64,O=[];++Z-O.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}O.push(String.fromCharCode(Z))}return O},
'"),/]];'];r[7]=r;r[11]=r;r[18]=r;try{(((0,r[15])(r[21]),r[22])(r[11],r[9]),r[22])(r[new Date("1970-01-01T04:30:12.000+04:30")/1E3],r[1]),((0,r[22])(r[11],r[23]),r[4])(r[10],r[18]),(0,r[20])(r[21],r[14])<<(0,r[17])(r[18],r[1]),(0,r[4])(r[8],r[21]),(0,r[19])((0,r[19])((0,r[17])(r[7],r[9]),r[3],r[20],(0,r[6])(),r[2]),r[3],r[5],(0,r[15])(),r[2])}catch(Z){return"aTlOUOubTO4AP____8P_"+G}return e.join("")};_.b7W=new _.L9("runAttestationCommand");var vvS=new _.L9("verifyCommand");_.D9=new _.L9("accessibilityContext");var wvn=new _.L9("accessibilityData");var $py=new _.L9("profileCardCommand");var IP4=new _.L9("signInEndpoint");var Qxa=new _.L9("signOutEndpoint");var qBS;_.SBw=new _.L9("accountItemSectionRenderer");qBS=new _.L9("accountItemRenderer");_.tfW=new _.L9("saveCommandToSessionStorageAction");var gvl=new _.L9("crossAccountChannelTransferEndpoint");var Xq4=new _.L9("getAccountMenuEndpoint");_.KUy=new _.L9("getAccountSwitcherEndpoint");var aK$=new _.L9("getAccountsListEndpoint");var lFv=new _.L9("getAccountsListInnertubeEndpoint");_.R9P=new _.L9("addToToastAction");var jsc=new _.L9("hideEnclosingAction");_.kA=new _.L9("replaceEnclosingAction");var aFC=new _.L9("buttonRefreshAction");var XvE=new _.L9("adsControlFlowOpportunityReceivedCommand");var K9j=new _.L9("openAdAllowlistInstructionCommand");var fFW=new _.L9("videoMastheadAdPrimaryVideoRenderer");var kzS=new _.L9("displayAdRenderer");_.H7v=new _.L9("inFeedAdLayoutRenderer");var dpv=new _.L9("sequenceItemInPlayerAdLayoutRenderer");_.ovP=new _.L9("adSlotRenderer");var ssW=new _.L9("adAvatarViewModel");var Qs3=new _.L9("adBadgeViewModel");var IFl=new _.L9("adButtonViewModel");var pvW=new _.L9("adImageViewModel");var N6_=new _.L9("reelsAdCardButtonedViewModel");var Clb=new _.L9("reelsPlayerOverlayLayoutViewModel");var uWj=new _.L9("formDataDecoratorCommand");var nvw=new _.L9("updateConversationIdCommand");var mpv=new _.L9("showSchedulingPanelCommand");var cQn=new _.L9("backstageCommentsRenderer");var YBW=new _.L9("backstageImageRenderer");var yQb=new _.L9("backstagePostRenderer");var AQS=new _.L9("backstageZeroStateRenderer");var F9E=new _.L9("postRenderer");var JQb=new _.L9("sharedPostRenderer");var Bgj=new _.L9("createBackstagePostEndpoint");var xpl=new _.L9("getPostVideoPreviewEndpoint");var PlC=new _.L9("updateBackstagePostEndpoint");var Upc=new _.L9("filterChipTransformCommand");var z9n=new _.L9("insertRichSectionCommand");var isA=new _.L9("talkToRecsDeselectCommand");var W9c=new _.L9("talkToRecsNextCommand");var EI_=new _.L9("talkToRecsSelectCommand");var Ngl=new _.L9("talkToRecsUpdateTextCommand");_.Mv=new _.L9("browseEndpoint");_.L9y=new _.L9("confirmDialogEndpoint");var GRW=new _.L9("expandOnHoverCardRenderer");var e7C=new _.L9("lumiereShelfDetailsRenderer");var rYj=new _.L9("revealBusinessEmailCommand");var ZVS=new _.L9("validateChannelHandleCommand");var OVy=new _.L9("channelCreationFormEndpoint");var MkE=new _.L9("aboutChannelViewModel");var Vkl=new _.L9("channelThumbnailWithLinkRenderer");var h7w=new _.L9("channelCreationServiceEndpoint");var T_W=new _.L9("updateChannelPageSettingsEndpoint");var HV=function(G){this.delegate=G},dQ=function(){HV.apply(this,arguments)};
_.K(dQ,HV);_.iY.Object.defineProperties(dQ.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(G){this.delegate.entityMetadata=G}}});var D4S=function(){dQ.apply(this,arguments)};
_.K(D4S,dQ);D4S.prototype.getAssociations=function(){return[]};
D4S.prototype.getTypeName=function(){return"channelHandle"};var f0a=new _.L9("webThumbnailDetailsExtensionData");var ebs=new _.L9("commandContext");var EME=new _.L9("addVideoLinkAction");var iVw=new _.L9("banAuthorAction");var bVW=new _.L9("createCommentAction");var vM3=new _.L9("createCommentReplyAction");var wuy=new _.L9("createPollAction");var $4W=new _.L9("hideIdentityChipAction");var S3b=new _.L9("openUpdateCommentDialogAction");var q3c=new _.L9("pinCommentAction");var tkb=new _.L9("removeCommentAction");var gMy=new _.L9("unpinCommentAction");var oa=new _.L9("updateBackstagePollAction");var lic=new _.L9("updateCommentVoteAction");var R7E=new _.L9("commentThreadRenderer");var jey=function(){dQ.apply(this,arguments)};
_.K(jey,dQ);jey.prototype.getAssociations=function(){return[]};
jey.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var aiE=function(){dQ.apply(this,arguments)};
_.K(aiE,dQ);aiE.prototype.getAssociations=function(){return[]};
aiE.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.Xuv=new _.L9("commentDialogRenderer");var Kyj=new _.L9("reloadCommentsCommand");var fiy=new _.L9("updateCommentsSettingsEndpoint");var kR3=new _.L9("commentViewModel");var HVy=new _.L9("triStateButtonViewModel");var d4n=new _.L9("voiceReplyContainerViewModel");_.LO=new _.L9("commandExecutorCommand");var Rg=new _.L9("emoji");var oMn=new _.L9("updateCreatorChannelInnertubeCommand");_.seb=new _.L9("appendContinuationItemsAction");_.QeW=new _.L9("changeEngagementPanelVisibilityAction");_.f1=new _.L9("continuationCommand");var IiC=new _.L9("hideReportedCommentAction");var puv=new _.L9("listMutationCommand");_.sP=new _.L9("openPopupAction");var Cdv=new _.L9("persistSubscriptionsDisplayPreferencesCommand");var Fyn;_.u5P=new _.L9("playlistRemoveVideosAction");_.nMl=new _.L9("updatePlaylistAction");_.m4c=new _.L9("addToPlaylistCommand");_.cYW=new _.L9("endPlaylistCommand");_.Y3W=new _.L9("recoverPlaylistCommand");_.yYb=new _.L9("refreshPlaylistCommand");_.AYy=new _.L9("refreshFormCommand");Fyn=new _.L9("openOnePickAddVideoModalCommand");_.QJ_=new _.L9("reloadContinuationItemsCommand");_.JYC=new _.L9("scrollToEngagementPanelCommand");var B_W=new _.L9("selectCountryCommand");var x4v=new _.L9("showReloadUiCommand");var Pdc=new _.L9("undoFeedbackAction");var U4y=new _.L9("updateButtonAction");var z7E=new _.L9("updateSubscribeButtonAction");var Wyv=new _.L9("updateToggleAction");var N_n=new _.L9("webNativeShareCommand");_.rJ=new _.L9("webCommandMetadata");_.QJ=new _.L9("webHandleServiceEndpointExtension");var jwp=new _.L9("webNavigationEndpointData");var LyS=new _.L9("backgroundAudioPlaybackCommand");var G8n=new _.L9("copyLinkCommand");var e2y=new _.L9("playlistVotingRefreshPopupCommand");var r93=new _.L9("selectChipCommand");var ZSC=new _.L9("setCookieCommand");var OSl=new _.L9("setLocalStorageCommand");var Mjc=new _.L9("setPrefStorageEntryCommand");var DwE;_.VjP=new _.L9("settingsUpdateCheckboxCommand");_.h23=new _.L9("settingsUpdateTextCommand");_.ThS=new _.L9("settingsUpdateOptionsCommand");DwE=new _.L9("settingsUpdateSwitchCommand");_.E6S=new _.L9("settingsUpdateConnectedAppRendererCommand");var iSS=new _.L9("showCreatorChatbotEngagementPanelCommand");var bS3=new _.L9("updateTextInputFormFieldRendererCommand");var v63=new _.L9("updateToggleButtonStateCommand");var w9v=new _.L9("updateUrlParamCommand");var $wv=new _.L9("webSubmitFormCommand");var S4W=new _.L9("channelSwitcherPageRenderer"),q4j=new _.L9("updateChannelSwitcherPageAction");_.mL=new _.L9("continuationItemRenderer");_.Ia=new _.L9("richItemRenderer");var tjE=new _.L9("richSectionRenderer");_.g6E=new _.L9("richShelfRenderer");_.lOE=new _.L9("metadataBadgeRenderer");_.R2l=new _.L9("multiPageMenuNotificationSectionRenderer");_.j4c=new _.L9("playlistLoopButtonStateRenderer");var aOb=new _.L9("claimLegacyYoutubeChannelEndpoint");var X9E=new _.L9("getNotificationMenuEndpoint");var Kiv=new _.L9("getSearchInVideoCommand");_.fOw=new _.L9("getTranscriptEndpoint");_.eq=new _.L9("signalServiceEndpoint");var k8W=new _.L9("verifyAgeEndpoint");var nHF=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(nHF,_.Tq);nHF.prototype.getPath=function(){return _.gU(this,1)};
nHF.prototype.getValue=function(){return _.gU(this,2)};var HSW=[0,_.Yj,-1];var dwP=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(dwP,_.Tq);var u8S=_.tt(dwP,[0,_.J3,HSW]);var o6l=new _.L9("dismissalEndpoint");var s4P=new _.L9("elementsCommand");_.ag=new _.L9("innertubeCommand");var Q4j=new _.L9("multipleInlinePlaybackCommand");var Ve_=new _.L9("loggingDirectives");var IOl=new _.L9("acknowledgeChannelTouStrikeCommand");var p9y=function(){dQ.apply(this,arguments)};
_.K(p9y,dQ);p9y.prototype.getAssociations=function(){return[]};
p9y.prototype.getTypeName=function(){return"booleanEntity"};var C_b=function(){dQ.apply(this,arguments)};
_.K(C_b,dQ);C_b.prototype.getAssociations=function(){return[]};
C_b.prototype.getTypeName=function(){return"stringEntity"};var uZ=new _.L9("entityBatchUpdate");_.ugE=new _.L9("entityUpdateCommand");var n6n=function(){dQ.apply(this,arguments)};
_.K(n6n,dQ);n6n.prototype.getAssociations=function(){var G=[];this.delegate.alternateChannel&&G.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&G.push.apply(G,_.mY(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&G.push(this.delegate.oneofChannelEntity);return[].concat(_.mY(new Set(G)))};
n6n.prototype.getTypeName=function(){return"fakeChannel"};var mwj=function(){dQ.apply(this,arguments)};
_.K(mwj,dQ);mwj.prototype.getAssociations=function(){var G=[];this.delegate.entryCollection&&G.push(this.delegate.entryCollection);return[].concat(_.mY(new Set(G)))};
mwj.prototype.getTypeName=function(){return"fakePlaylist"};
var c9E=function(){dQ.apply(this,arguments)};
_.K(c9E,dQ);c9E.prototype.getAssociations=function(){var G=[];this.delegate.parentPlaylist&&G.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var e=_.h(this.delegate.entries),r=e.next();!r.done;r=e.next())G.push.apply(G,_.mY((new Y4W(r.value)).getAssociations()));return[].concat(_.mY(new Set(G)))};
c9E.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var Y4W=function(){HV.apply(this,arguments)};
_.K(Y4W,HV);Y4W.prototype.getAssociations=function(){var G=[];this.delegate.video&&G.push(this.delegate.video);return[].concat(_.mY(new Set(G)))};var y9P=function(){dQ.apply(this,arguments)};
_.K(y9P,dQ);y9P.prototype.getAssociations=function(){var G=[];this.delegate.descriptionEntity&&G.push(this.delegate.descriptionEntity);this.delegate.creators&&G.push.apply(G,_.mY(this.delegate.creators));this.delegate.theBiggestFan&&G.push(this.delegate.theBiggestFan);return[].concat(_.mY(new Set(G)))};
y9P.prototype.getTypeName=function(){return"fakeVideo"};
var A93=function(){dQ.apply(this,arguments)};
_.K(A93,dQ);A93.prototype.getAssociations=function(){return[]};
A93.prototype.getTypeName=function(){return"fakeVideoDescription"};var Fiv=new _.L9("fantasyRosterViewModel");var J9C=new _.L9("addFollowUpSurveyCommand");var Bhn=new _.L9("getSurveyCommand");var xww=new _.L9("ratingSurveyOptionRenderer");_.lM=new _.L9("feedbackEndpoint");var P_S=new _.L9("reportHistoryTableCellRenderer"),UwC=new _.L9("reportHistoryTableTextCellRenderer"),z2E=new _.L9("reportHistoryTableReasonCellRenderer");_.Wic=new _.L9("flagEndpoint");_.Nhb=new _.L9("flowNextStepCommand");_.LiE=new _.L9("flowPrevStepCommand");var GMP=new _.L9("getFlowCommand");var ejl=new _.L9("submitFormWithValidationFlowCommand");_.rOn=new _.L9("updateFlowCommand");var Z6v=function(){dQ.apply(this,arguments)};
_.K(Z6v,dQ);Z6v.prototype.getAssociations=function(){return[]};
Z6v.prototype.getTypeName=function(){return"flowStateEntity"};var O6y=new _.L9("flowFormState");_.p6=new _.L9("flowStepRenderer");var MJW=new _.L9("gameCardRenderer");var VJW=new _.L9("accountLinkingStateChangedCommand");var hjP=function(){dQ.apply(this,arguments)};
_.K(hjP,dQ);hjP.prototype.getAssociations=function(){return[]};
hjP.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var TQE=new _.L9("changeMiniAppPlayStateCommand");var D8w=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(D8w,_.Tq);var C6=[1,2,3];var EAW=[0,C6,gCS,_.FC,idP];var i6n=_.tt(D8w,EAW),b6c=_.lz(EAW);var vAv=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(vAv,_.Tq);var wVc=[0,_.p2,_.Yj];var $8y=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K($8y,_.Tq);var SPE=[0,_.Yj,_.p2,-1];var u9=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(u9,_.Tq);var qPW=_.lz([0,1,wVc,_.Ui,SPE]);var tJ3=new _.L9("miniAppScoreChallengeViewModel");var gAW=new _.L9("miniGameCardViewModel");var lLn=new _.L9("teaserCardViewModel");var RjE=function(){dQ.apply(this,arguments)};
_.K(RjE,dQ);RjE.prototype.getAssociations=function(){return[]};
RjE.prototype.getTypeName=function(){return"logoEntity"};var jab=new _.L9("feedbackItemRenderer");var aL3=function(){dQ.apply(this,arguments)};
_.K(aL3,dQ);aL3.prototype.getAssociations=function(){return[]};
aL3.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.XVb=new _.L9("playerInterstitialRenderer");var K5E=new _.L9("getKidsBlocklistPickerCommand");_.fLE=new _.L9("updateKidsBlacklistEndpoint");_.Kx=new _.L9("likeEndpoint");var kME,H6P,d8S;kME=new _.L9("addChatItemAction");H6P=new _.L9("removeChatItemAction");d8S=new _.L9("markChatItemAsDeletedAction");_.oAP=new _.L9("setLiveChatCollapsedStateAction");var saS=function(){dQ.apply(this,arguments)};
_.K(saS,dQ);saS.prototype.getAssociations=function(){return[]};
saS.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var Qay=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(Qay,_.Tq);Qay.prototype.getPayloadCase=function(){return _.ig(this,ILW)};
var ILW=[3,4];var pVE=[0,_.J3,[0,[1,2],_.FC,_.Bs,[0,_.ya,1,_.ya]]];var C9y=[0,_.Yj,-1];var uGC=[0,[1],_.FC];var n6=[0,[1,2],_.FC,_.Bs,[0,_.Ui]];var m5=[0,_.Yj];var nAy=[0,[0,_.mK,_.n2,[0,_.ya,_.zB,_.ya]],1,[0,_.mK]];var m8P=[0,C2];var cOl=[0,C2];var YPE=[0,cOl,m8P];var yOc=[0,_.J3,[0,[1,2],_.FC,-1],_.mK];var AOE=[0,[2],1,_.Bs,[0,_.ya,-1,yOc]];var F5S=[0,[1],_.Bs,[0,_.ya,_.Yj,_.zB,1,yOc]];var JOl=[0,_.n2,-1,ECy,_.Ui];var BQl=[0,[0,I$,-3],-4];var cV=[0,_.mK,-3,_.Yj,_.mK,_.Ll,_.mK,pVE,_.mK,-2];var YA=[0,_.J3,[0,[1,2],_.FC,-1],_.mK,_.Yj];var x8v=[0,[3],n6,[0,[2,3,4],XYn,_.FC,-2],_.Bs,[0,_.Yj],_.p2];var P9E=[0,[3,5],_.Yj,_.ug,_.Bs,[0,1,_.p2,_.Ui],_.Ui,_.Bs,[0,_.Ui,_.p2]];var U8c=[0,2,_.ug,_.Yj,-1];var zjb=[0,qVc];var W5b=[0,[3,4],2,vC3,_.FC,_.Yj];var NQS=[0,_.Ui,-2,1,_.Yj];var L53=[0,_.Yj,-1,_.Ui];var G$v=[0,m5,function(){return yJ},
m5,_.Yj],eeW=[0,_.Ui,m5,n6,function(){return yJ},
_.Yj],yJ=[-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],m5,_.ug,[0,_.mK,1,_.mK,1,_.mK,1,_.Ui,-1,m5],[0,1,_.mK,2,_.mK,_.Ui,_.mK],1,_.ug,-1,_.Yj,_.ug,2,I$,[0,I$,_.ug],_.Yj,1,nAy,1,n6,_.Ll,1,[0,[0,_.J3,[0,_.Yj,_.mK,_.Ui]]],[0,_.mK,[0,_.p2,[0,_.zB]],_.p2,1,[0,$BS,-1]],_.Yj,[0,1,_.Yj],76,_.Bs,[0,n6,YA,nAy,1,[0,_.J3,YA]],1,_.Bs,[0,n6,_.Yj,_.mK],
_.Bs,[0,n6,uGC],_.Bs,[0,n6,uGC,_.ug],_.Bs,[0,n6,uGC],_.Bs,[0,n6,_.J3,m5,n6,llj],_.Bs,[0,n6,m5,_.Yj],_.Bs,[0,n6,_.mK,cV,-1,_.mK],4,_.Bs,[0,n6,_.mK,_.ug,cV,_.mK],_.Bs,[0,[4,9],n6,_.Ui,_.ug,_.FC,YA,1,nAy,_.Yj,_.FC,NQS],_.Bs,[0,n6,m5,n6,_.Ui,_.Yj],_.Bs,[0,_.mK,n6,cV,_.mK,_.Yj],_.Bs,[0,n6,m5,n6,_.Ui,_.Yj],1,_.Bs,[0,n6,_.Ui,_.Yj,cV],_.Bs,[0,n6,_.Ui,[0,_.Yj,_.ug],_.Yj,_.ug,_.Yj,_.Ps,-2,3,L53,_.J3,L53,L53,NQS],_.Bs,[0,n6,_.Ui,F5S,_.J3,[0,cOl,AOE],m5,_.J3,YPE,_.Yj,1,_.Ui,JOl,BQl,DBW,-1],_.Bs,[0,n6,[0,_.zB,
-1,F5S,_.J3,[0,cOl,AOE,m8P],[0,_.Gi],1,_.ya],m5,_.Yj],_.Bs,[0,n6,YA,_.Yj,[0,_.n2]],_.Bs,function(){return eeW},
_.Bs,[0,n6,_.ug,_.Yj,-1,_.mK],_.Bs,[0,[6,7],n6,_.J3,U8c,_.Ui,YA,1,_.Bs,W5b,_.Bs,zjb],_.Bs,[0,_.J3,U8c,_.Ui,_.mK],_.Bs,[0,_.Yj,g2v,-1],_.Bs,[0,m5,_.J3,YPE,_.Yj],_.Bs,[0,n6,m5,_.Yj],_.Bs,[0,_.Ps,_.Yj],_.Bs,[0,C9y],_.Bs,[0,C9y],_.Bs,[0,YA],_.Bs,[0,m5,YA],_.Bs,function(){return G$v},
_.Bs,[0,m5,_.Yj],_.Bs,[0,m5,_.Yj],1,_.Bs,[0,_.mK,n6,cV,_.mK,cV],_.Bs,[0,_.Gi],1,_.Bs,[0],1,_.Bs,[0,m5,_.Ui,n6,_.Ui],_.Bs,[0,[1,2],_.Bs,W5b,_.Bs,zjb,_.ug],_.Bs,[0,_.Gi,YA,P9E,_.Yj,_.ug],_.Bs,[0,P9E,_.Yj,_.ug],_.Bs,[0,JOl,YA,_.mK,BQl],_.Bs,x8v,_.Bs,[0],_.Bs,[0,_.Yj,-1,_.p2],_.Bs,[0,m5,_.Yj],_.Bs,[0,x8v,_.p2,_.Yj],_.Bs,[0,n6,cV,_.mK],_.Bs,[0,n6,cV,_.mK],_.Bs,[0,JOl,BQl,YA,_.Ll,_.mK,DBW,-1],_.Bs,[0,n6,cV,_.mK]];var roj=[0,_.J3,yJ];var ZEb=_.tt(Qay,[0,ILW,1,_.p2,_.Bs,[0,[18,22,24],roj,3,[0,roj],1,_.p2,[0,_.J3,[0,_.ug,I$],_.ug],1,yJ,-1,[0,_.cs,-2,_.Ll,_.cs,-1,_.Ll,_.cs,pVE,_.cs,-2],hm3,[!0,_.Yj,[0,uGC,2,_.Yj,_.ug,_.mK,2,_.Yj,_.Ps]],[0,[1,2,3],[5,6],_.Bs,[0,_.ya],_.Bs,[0,_.ya,-1],_.Bs,[0,_.ya],1,_.Bs,C9y,_.Bs,[0,_.Yj]],[0,yJ,-1],_.Gi,yJ,_.Bs,yJ,[0,roj],_.p2,yJ,_.Bs,yJ,_.Yj,_.Bs,yJ],_.Bs,nhE,_.p2]);var OEj=new _.L9("liveChatEndpoint");var MRP=new _.L9("liveChatItemContextMenuEndpoint");var VRv=new _.L9("liveChatReplayEndpoint");_.heW=new _.L9("emojiPickerRenderer");var Tqc=new _.L9("liveChatAuthorBadgeViewModel");var DlE=new _.L9("deleteLiveChatMessageCommand");var EeS=new _.L9("liveChatActionEndpoint");var iEW=new _.L9("createLiveChatPollEndpoint");var bEb=new _.L9("manageLiveChatUserEndpoint");var veW=new _.L9("moderateLiveChatEndpoint");_.wtC=new _.L9("sendLiveChatMessageEndpoint");var $lv=new _.L9("sendLiveChatVoteEndpoint");var SIc=new _.L9("clearLocationCommand");var qIl=new _.L9("resolveLocationCommand");var tRC=new _.L9("interactionLoggingCommandMetadata");var gen=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(gen,_.Tq);var lZS=function(G,e){return _.qM(G,1,e)};var Ren=[0,_.mK];var jCn=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(jCn,_.Tq);var aZy=function(G,e){return kc(G,1,gen,e)};jCn.prototype.JSC$12325_serializeBinary=Bzi([0,_.J3,Ren]);var R2_={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 XtE={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"},
KEn={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 eEU={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",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT"};_.x3S=new _.L9("logFlowLoggingEventCommand");_.Ta=new _.L9("loggingContext");var fZC=new _.L9("audioTrackSelectActionCommand");var k$C=new _.L9("captionLanguageSelectActionCommand");var HEv=new _.L9("showAudioTrackPickerActionCommand");var dlc=new _.L9("showCaptionLanguageSelectActionCommand");var oeP=new _.L9("dismissDialogEndpoint");var sCn=new _.L9("dismissPlayerOverlayCommand");var QCW=new _.L9("hideItemSectionVideosByIdCommand");var IZC=new _.L9("showMiniplayerCommand");var ptw=function(){dQ.apply(this,arguments)};
_.K(ptw,dQ);ptw.prototype.getAssociations=function(){return[]};
ptw.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var CJS=function(){dQ.apply(this,arguments)};
_.K(CJS,dQ);CJS.prototype.getAssociations=function(){return[]};
CJS.prototype.getTypeName=function(){return"downloadStatusEntity"};var urv=function(){dQ.apply(this,arguments)};
_.K(urv,dQ);urv.prototype.getAssociations=function(){return[]};
urv.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var ne3=function(){dQ.apply(this,arguments)};
_.K(ne3,dQ);ne3.prototype.getAssociations=function(){var G=[];this.delegate.downloadsList&&G.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&G.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&G.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&G.push(this.delegate.refresh);return[].concat(_.mY(new Set(G)))};
ne3.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var mlW=function(){dQ.apply(this,arguments)};
_.K(mlW,dQ);mlW.prototype.getAssociations=function(){var G=[];this.delegate.refresh&&G.push(this.delegate.refresh);if(this.delegate.downloads)for(var e=_.h(this.delegate.downloads),r=e.next();!r.done;r=e.next())G.push.apply(G,_.mY((new coc(r.value)).getAssociations()));return[].concat(_.mY(new Set(G)))};
mlW.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var coc=function(){HV.apply(this,arguments)};
_.K(coc,HV);coc.prototype.getAssociations=function(){var G=[];this.delegate.video&&G.push(this.delegate.video);this.delegate.playlist&&G.push(this.delegate.playlist);this.delegate.videoItem&&G.push(this.delegate.videoItem);this.delegate.playlistItem&&G.push(this.delegate.playlistItem);return[].concat(_.mY(new Set(G)))};var YIb=function(){dQ.apply(this,arguments)};
_.K(YIb,dQ);YIb.prototype.getAssociations=function(){var G=[];this.delegate.localImageEntities&&G.push.apply(G,_.mY(this.delegate.localImageEntities));return[].concat(_.mY(new Set(G)))};
YIb.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var yoP=function(){dQ.apply(this,arguments)};
_.K(yoP,dQ);yoP.prototype.getAssociations=function(){var G=[];this.delegate.playbackData&&G.push(this.delegate.playbackData);this.delegate.localImageEntities&&G.push.apply(G,_.mY(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&G.push(this.delegate.videoDownloadContextEntity);return[].concat(_.mY(new Set(G)))};
yoP.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var AoP=function(){dQ.apply(this,arguments)};
_.K(AoP,dQ);AoP.prototype.getAssociations=function(){return[]};
AoP.prototype.getTypeName=function(){return"offlineabilityEntity"};var FEc=function(){dQ.apply(this,arguments)};
_.K(FEc,dQ);FEc.prototype.getAssociations=function(){var G=[];this.delegate.fakeChildren&&G.push.apply(G,_.mY(this.delegate.fakeChildren));return[].concat(_.mY(new Set(G)))};
FEc.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var Job=function(){dQ.apply(this,arguments)};
_.K(Job,dQ);Job.prototype.getAssociations=function(){var G=[];this.delegate.video&&G.push(this.delegate.video);this.delegate.playbackData&&G.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&G.push(this.delegate.offlineVideoPolicy);return[].concat(_.mY(new Set(G)))};
Job.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var Bqj=function(){dQ.apply(this,arguments)};
_.K(Bqj,dQ);Bqj.prototype.getAssociations=function(){return[]};
Bqj.prototype.getTypeName=function(){return"continuationTokenEntity"};var xlE=function(){dQ.apply(this,arguments)};
_.K(xlE,dQ);xlE.prototype.getAssociations=function(){var G=[];this.delegate.channelOwner&&G.push(this.delegate.channelOwner);this.delegate.videos&&G.push.apply(G,_.mY(this.delegate.videos));this.delegate.collaboratorChannels&&G.push.apply(G,_.mY(this.delegate.collaboratorChannels));this.delegate.downloadState&&G.push(this.delegate.downloadState);this.delegate.refresh&&G.push(this.delegate.refresh);return[].concat(_.mY(new Set(G)))};
xlE.prototype.getTypeName=function(){return"mainPlaylistEntity"};var PJE=function(){dQ.apply(this,arguments)};
_.K(PJE,dQ);PJE.prototype.getAssociations=function(){var G=[];this.delegate.video&&G.push(this.delegate.video);this.delegate.channelContributor&&G.push(this.delegate.channelContributor);return[].concat(_.mY(new Set(G)))};
PJE.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var UlW=function(){HV.apply(this,arguments)};
_.K(UlW,HV);UlW.prototype.getAssociations=function(){var G=[];this.delegate.recommendedVideoMetadata&&G.push.apply(G,_.mY((new zey(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.mY(new Set(G)))};
var zey=function(){HV.apply(this,arguments)};
_.K(zey,HV);zey.prototype.getAssociations=function(){var G=[];this.delegate.localImageEntities&&G.push.apply(G,_.mY(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&G.push(this.delegate.videoDownloadContextEntity);return[].concat(_.mY(new Set(G)))};var WEW=function(){HV.apply(this,arguments)};
_.K(WEW,HV);WEW.prototype.getAssociations=function(){var G=[];this.delegate.playbackPosition&&G.push(this.delegate.playbackPosition);return[].concat(_.mY(new Set(G)))};var NqW=function(){dQ.apply(this,arguments)};
_.K(NqW,dQ);NqW.prototype.getAssociations=function(){var G=[];this.delegate.owner&&G.push(this.delegate.owner);this.delegate.downloadState&&G.push(this.delegate.downloadState);this.delegate.userState&&G.push.apply(G,_.mY((new WEW(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&G.push.apply(G,_.mY((new UlW(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.mY(new Set(G)))};
NqW.prototype.getTypeName=function(){return"mainVideoEntity"};var LEj=function(){dQ.apply(this,arguments)};
_.K(LEj,dQ);LEj.prototype.getAssociations=function(){var G=[];this.delegate.userChannelDetails&&G.push(this.delegate.userChannelDetails);return[].concat(_.mY(new Set(G)))};
LEj.prototype.getTypeName=function(){return"ytMainChannelEntity"};var GtW=function(){dQ.apply(this,arguments)};
_.K(GtW,dQ);GtW.prototype.getAssociations=function(){var G=[];this.delegate.channelOwner&&G.push(this.delegate.channelOwner);this.delegate.playbackPosition&&G.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&G.push.apply(G,_.mY(this.delegate.localImageEntities));this.delegate.downloadStatus&&G.push(this.delegate.downloadStatus);return[].concat(_.mY(new Set(G)))};
GtW.prototype.getTypeName=function(){return"ytMainVideoEntity"};var lsf=new _.L9("downloadsPageSmartDownloadsOptInBannerParams");var XkS=new _.L9("downloadsPageUpsellBannerParams");var eJn=function(){dQ.apply(this,arguments)};
_.K(eJn,dQ);eJn.prototype.getAssociations=function(){return[]};
eJn.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var rLl=function(){dQ.apply(this,arguments)};
_.K(rLl,dQ);rLl.prototype.getAssociations=function(){return[]};
rLl.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var ZhP=function(){dQ.apply(this,arguments)};
_.K(ZhP,dQ);ZhP.prototype.getAssociations=function(){return[]};
ZhP.prototype.getTypeName=function(){return"macroMarkerEntity"};var Ohj=function(){dQ.apply(this,arguments)};
_.K(Ohj,dQ);Ohj.prototype.getAssociations=function(){return[]};
Ohj.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var MX3=function(){dQ.apply(this,arguments)};
_.K(MX3,dQ);MX3.prototype.getAssociations=function(){return[]};
MX3.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var VXw=function(){dQ.apply(this,arguments)};
_.K(VXw,dQ);VXw.prototype.getAssociations=function(){return[]};
VXw.prototype.getTypeName=function(){return"playerStateEntity"};var hJP=function(){dQ.apply(this,arguments)};
_.K(hJP,dQ);hJP.prototype.getAssociations=function(){return[]};
hJP.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var Tkl=function(){dQ.apply(this,arguments)};
_.K(Tkl,dQ);Tkl.prototype.getAssociations=function(){return[]};
Tkl.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var D6y=function(){dQ.apply(this,arguments)};
_.K(D6y,dQ);D6y.prototype.getAssociations=function(){return[]};
D6y.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.AO=new _.L9("dislikeButtonViewModel");_.FG=new _.L9("likeButtonViewModel");var EBW=new _.L9("videoSummaryContentViewModel");var ihW=new _.L9("videoSummaryParagraphViewModel");var bhb=new _.L9("changeTimelyActionVisibilityCommand");var vBw=new _.L9("hideEngagementPanelEndpoint");var whE=new _.L9("refreshPanelEndpoint");var $6n=new _.L9("scrollToSectionEndpoint");var SZl=new _.L9("seekToVideoTimestampCommand");_.gB=new _.L9("showEngagementPanelEndpoint");var qZP=new _.L9("showTransientPlayerScrimOverlayCommand");var tXE=new _.L9("toggleEngagementPanelCommand");_.gBj=new _.L9("createBroadcastCommand");var l7j=new _.L9("metadataUpdateCommand");var RJW=function(){dQ.apply(this,arguments)};
_.K(RJW,dQ);RJW.prototype.getAssociations=function(){return[]};
RJW.prototype.getTypeName=function(){return"featuredProductsEntity"};var jT3=function(){dQ.apply(this,arguments)};
_.K(jT3,dQ);jT3.prototype.getAssociations=function(){return[]};
jT3.prototype.getTypeName=function(){return"pinnedProductEntity"};var a7P=function(){dQ.apply(this,arguments)};
_.K(a7P,dQ);a7P.prototype.getAssociations=function(){return[]};
a7P.prototype.getTypeName=function(){return"trendingOfferEntity"};_.Xh3=new _.L9("merchandiseShelfRenderer");var KFj=new _.L9("shoppingContentLineItemViewModel");var f7y=new _.L9("gridMovieRenderer");_.ktE=new _.L9("movieRenderer");var Hhl=function(){dQ.apply(this,arguments)};
_.K(Hhl,dQ);Hhl.prototype.getAssociations=function(){return[]};
Hhl.prototype.getTypeName=function(){return"compositeSourceEntity"};var d6j=function(){dQ.apply(this,arguments)};
_.K(d6j,dQ);d6j.prototype.getAssociations=function(){var G=[];this.delegate.compositeSourceKeys&&G.push.apply(G,_.mY(this.delegate.compositeSourceKeys));return[].concat(_.mY(new Set(G)))};
d6j.prototype.getTypeName=function(){return"multiviewStagingEntity"};var oBj=function(){dQ.apply(this,arguments)};
_.K(oBj,dQ);oBj.prototype.getAssociations=function(){var G=[];this.delegate.trackDownloadMetadatas&&G.push.apply(G,_.mY(this.delegate.trackDownloadMetadatas));return[].concat(_.mY(new Set(G)))};
oBj.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var sTC=function(){dQ.apply(this,arguments)};
_.K(sTC,dQ);
sTC.prototype.getAssociations=function(){var G=[];this.delegate.downloadedTracks&&G.push.apply(G,_.mY(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&G.push.apply(G,_.mY(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&G.push.apply(G,_.mY(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&G.push.apply(G,_.mY(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&G.push.apply(G,_.mY(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
G.push.apply(G,_.mY(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&G.push.apply(G,_.mY(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&G.push.apply(G,_.mY(this.delegate.metadataOnlyTracks));return[].concat(_.mY(new Set(G)))};
sTC.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var QTn=function(){dQ.apply(this,arguments)};
_.K(QTn,dQ);QTn.prototype.getAssociations=function(){var G=[];this.delegate.trackDownloadMetadatas&&G.push.apply(G,_.mY(this.delegate.trackDownloadMetadatas));return[].concat(_.mY(new Set(G)))};
QTn.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var I7w=function(){dQ.apply(this,arguments)};
_.K(I7w,dQ);I7w.prototype.getAssociations=function(){var G=[];this.delegate.playbackData&&G.push(this.delegate.playbackData);this.delegate.localImageEntities&&G.push.apply(G,_.mY(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&G.push(this.delegate.videoDownloadContextEntity);return[].concat(_.mY(new Set(G)))};
I7w.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var phP=function(){dQ.apply(this,arguments)};
_.K(phP,dQ);
phP.prototype.getAssociations=function(){var G=[];this.delegate.musicLibraryStatusEntity&&G.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&G.push.apply(G,_.mY(this.delegate.primaryArtists));this.delegate.details&&G.push(this.delegate.details);this.delegate.userDetails&&G.push(this.delegate.userDetails);this.delegate.tracks&&G.push.apply(G,_.mY(this.delegate.tracks));this.delegate.share&&G.push(this.delegate.share);this.delegate.downloadMetadata&&G.push(this.delegate.downloadMetadata);this.delegate.refresh&&
G.push(this.delegate.refresh);return[].concat(_.mY(new Set(G)))};
phP.prototype.getTypeName=function(){return"musicAlbumRelease"};
var CrC=function(){dQ.apply(this,arguments)};
_.K(CrC,dQ);CrC.prototype.getAssociations=function(){var G=[];this.delegate.albumRelease&&G.push(this.delegate.albumRelease);this.delegate.tracks&&G.push.apply(G,_.mY(this.delegate.tracks));return[].concat(_.mY(new Set(G)))};
CrC.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var u9E=function(){dQ.apply(this,arguments)};
_.K(u9E,dQ);u9E.prototype.getAssociations=function(){var G=[];this.delegate.albumRelease&&G.push(this.delegate.albumRelease);return[].concat(_.mY(new Set(G)))};
u9E.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var nBW=function(){dQ.apply(this,arguments)};
_.K(nBW,dQ);nBW.prototype.getAssociations=function(){var G=[];this.delegate.details&&G.push(this.delegate.details);this.delegate.userDetails&&G.push(this.delegate.userDetails);return[].concat(_.mY(new Set(G)))};
nBW.prototype.getTypeName=function(){return"musicArtist"};
var m6l=function(){dQ.apply(this,arguments)};
_.K(m6l,dQ);m6l.prototype.getAssociations=function(){var G=[];this.delegate.parentArtist&&G.push(this.delegate.parentArtist);return[].concat(_.mY(new Set(G)))};
m6l.prototype.getTypeName=function(){return"musicArtistDetail"};
var cLW=function(){dQ.apply(this,arguments)};
_.K(cLW,dQ);cLW.prototype.getAssociations=function(){var G=[];this.delegate.parentArtist&&G.push(this.delegate.parentArtist);return[].concat(_.mY(new Set(G)))};
cLW.prototype.getTypeName=function(){return"musicArtistUserDetail"};var YZb=function(){dQ.apply(this,arguments)};
_.K(YZb,dQ);YZb.prototype.getAssociations=function(){return[]};
YZb.prototype.getTypeName=function(){return"musicLibraryEdit"};var yLb=function(){dQ.apply(this,arguments)};
_.K(yLb,dQ);yLb.prototype.getAssociations=function(){return[]};
yLb.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var ALW=function(){dQ.apply(this,arguments)};
_.K(ALW,dQ);
ALW.prototype.getAssociations=function(){var G=[];this.delegate.tracks&&G.push.apply(G,_.mY(this.delegate.tracks));this.delegate.refresh&&G.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&G.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&G.push(this.delegate.details);this.delegate.downloadMetadata&&G.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&G.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&G.push(this.delegate.userDetails);this.delegate.entryCollection&&
G.push(this.delegate.entryCollection);this.delegate.share&&G.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&G.push.apply(G,_.mY((new FFW(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.mY(new Set(G)))};
ALW.prototype.getTypeName=function(){return"musicPlaylist"};
var FFW=function(){HV.apply(this,arguments)};
_.K(FFW,HV);FFW.prototype.getAssociations=function(){var G=[];this.delegate.creatorEntity&&G.push(this.delegate.creatorEntity);return[].concat(_.mY(new Set(G)))};var JLl=function(){dQ.apply(this,arguments)};
_.K(JLl,dQ);JLl.prototype.getAssociations=function(){return[]};
JLl.prototype.getTypeName=function(){return"musicShare"};var Bkl=function(){dQ.apply(this,arguments)};
_.K(Bkl,dQ);
Bkl.prototype.getAssociations=function(){var G=[];this.delegate.musicLibraryStatusEntity&&G.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&G.push.apply(G,_.mY(this.delegate.artists));this.delegate.audioModeVersion&&G.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&G.push(this.delegate.videoModeVersion);this.delegate.userDetails&&G.push(this.delegate.userDetails);this.delegate.details&&G.push(this.delegate.details);this.delegate.albumRelease&&G.push(this.delegate.albumRelease);this.delegate.share&&
G.push(this.delegate.share);this.delegate.libraryEdit&&G.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&G.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&G.push(this.delegate.playbackPosition);this.delegate.lyrics&&G.push(this.delegate.lyrics);return[].concat(_.mY(new Set(G)))};
Bkl.prototype.getTypeName=function(){return"musicTrack"};
var x6l=function(){dQ.apply(this,arguments)};
_.K(x6l,dQ);x6l.prototype.getAssociations=function(){var G=[];this.delegate.parentTrack&&G.push(this.delegate.parentTrack);return[].concat(_.mY(new Set(G)))};
x6l.prototype.getTypeName=function(){return"musicTrackDetail"};
var PrS=function(){dQ.apply(this,arguments)};
_.K(PrS,dQ);PrS.prototype.getAssociations=function(){var G=[];this.delegate.parentTrack&&G.push(this.delegate.parentTrack);return[].concat(_.mY(new Set(G)))};
PrS.prototype.getTypeName=function(){return"musicTrackUserDetail"};var Cx=new _.L9("musicResponsiveListItemRenderer");var uBi=new _.L9("addToPlaylistEndpoint");var U6W=new _.L9("captionPickerEndpoint");var zJC=new _.L9("suggestStats");var WF3=new _.L9("backstageImageUploadEndpoint");var Nk3=new _.L9("createBackstagePostDialogEndpoint");_.LFW=new _.L9("createCommentReplyDialogEndpoint");_.G6w=new _.L9("updateCommentDialogEndpoint");_.ehW=new _.L9("updateCommentReplyDialogEndpoint");var r4w=new _.L9("menuEndpoint");var ga4=new _.L9("modalEndpoint");var Zbn=new _.L9("playlistEditorEndpoint");var Obb=new _.L9("copyTextEndpoint");var MUW,VU3;MUW=new _.L9("shareEndpoint");VU3=new _.L9("shareEntityEndpoint");_.hhC=new _.L9("shareEntityServiceEndpoint");_.f1S=new _.L9("userFeedbackEndpoint");_.u4=new _.L9("watchEndpoint");var DRA=new _.L9("watchPlaylistEndpoint");var TFj=new _.L9("addUpcomingEventReminderEndpoint");_.JO=new _.L9("getCommentsFromInboxCommand");var DG3=new _.L9("notificationOptOutEndpoint");var E0n=new _.L9("recordNotificationInteractionsEndpoint");var ibE=new _.L9("removeUpcomingEventReminderEndpoint");var pqf=new _.L9("getDownloadActionCommand");_.bbc=new _.L9("offlineOrchestrationActionCommand");var v0b=function(){dQ.apply(this,arguments)};
_.K(v0b,dQ);v0b.prototype.getAssociations=function(){return[]};
v0b.prototype.getTypeName=function(){return"captionTrack"};var wkP=function(){dQ.apply(this,arguments)};
_.K(wkP,dQ);wkP.prototype.getAssociations=function(){return[]};
wkP.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var $Gb=function(){dQ.apply(this,arguments)};
_.K($Gb,dQ);$Gb.prototype.getAssociations=function(){return[]};
$Gb.prototype.getTypeName=function(){return"offlineVideoPolicy"};var SD3=function(){dQ.apply(this,arguments)};
_.K(SD3,dQ);SD3.prototype.getAssociations=function(){return[]};
SD3.prototype.getTypeName=function(){return"offlineVideoStreams"};var qD3=function(){dQ.apply(this,arguments)};
_.K(qD3,dQ);qD3.prototype.getAssociations=function(){var G=[];this.delegate.transfer&&G.push(this.delegate.transfer);this.delegate.adsPlaybackData&&G.push.apply(G,_.mY(this.delegate.adsPlaybackData));this.delegate.drmLicense&&G.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&G.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&G.push(this.delegate.videoDownloadContextEntity);return[].concat(_.mY(new Set(G)))};
qD3.prototype.getTypeName=function(){return"playbackData"};var tUn=function(){dQ.apply(this,arguments)};
_.K(tUn,dQ);tUn.prototype.getAssociations=function(){return[]};
tUn.prototype.getTypeName=function(){return"refresh"};var g0n=function(){dQ.apply(this,arguments)};
_.K(g0n,dQ);g0n.prototype.getAssociations=function(){var G=[];this.delegate.offlineVideoStreams&&G.push.apply(G,_.mY(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&G.push.apply(G,_.mY(this.delegate.captionTrack));return[].concat(_.mY(new Set(G)))};
g0n.prototype.getTypeName=function(){return"transfer"};var lsP=function(){dQ.apply(this,arguments)};
_.K(lsP,dQ);lsP.prototype.getAssociations=function(){return[]};
lsP.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var RhE=new _.L9("showMoreDrawerCommand");var jqc=new _.L9("updateEngagementPanelContentCommand");var asc=new _.L9("getPdgBuyFlowCommand");var XkC=new _.L9("liveChatPurchaseMessageEndpoint");var Kcn=new _.L9("openSuperStickerBuyFlowCommand");var fsl=new _.L9("updatePdgFeatureEnablementCommand");var k6l=function(){dQ.apply(this,arguments)};
_.K(k6l,dQ);k6l.prototype.getAssociations=function(){return[]};
k6l.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var Hb3=function(){dQ.apply(this,arguments)};
_.K(Hb3,dQ);Hb3.prototype.getAssociations=function(){return[]};
Hb3.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.dGP=new _.L9("pdgCommentChipRenderer");_.o0S=new _.L9("permissionRoleBottomBarRenderer");_.sqE=new _.L9("updatePermissionRoleCommand");var QqE=new _.L9("prefetchWatchCommand");var Isj=new _.L9("updatePlayerErrorMessageCommand");var fKU=new _.L9("toggleCaptionsVisibilityCommand");_.pkn=new _.L9("quickActionsViewModel");var COv=new _.L9("playerResponse");var u3y=new _.L9("playlistRenderer");_.n0y=new _.L9("playlistVideoListRenderer");_.BV=new _.L9("playlistEditEndpoint");var mGc=new _.L9("createImagePollCommand");var c4E=new _.L9("createQuizCommand");var YDc=new _.L9("quizRenderer");var y4w=new _.L9("uploadedVideoRenderer");var A4y=new _.L9("decorateMessageEndpoint");var FcC=new _.L9("lpOfferCardOptionViewModel");var J4j=new _.L9("sfvAudioItemPlaybackCommand");var BFP=function(){dQ.apply(this,arguments)};
_.K(BFP,dQ);BFP.prototype.getAssociations=function(){return[]};
BFP.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.xA=new _.L9("reelNonVideoContentEndpoint");_.DC=new _.L9("reelWatchEndpoint");_.PV=new _.L9("reelItemRenderer");var xGv=new _.L9("reelMetapanelViewModel");_.UP=new _.L9("reelNonVideoContentRenderer");_.POP=new _.L9("reelPlayerOverlayRenderer");var UGW=new _.L9("shortsLockupViewModel");var zhS=new _.L9("sponsorButtonViewModel");var Wcj=new _.L9("reelItemWatchResponse");var NFE=new _.L9("textBadgeRenderer");_.zM=new _.L9("buttonRenderer");_.WV=new _.L9("toggleButtonRenderer");var yN$=new _.L9("switchButtonViewModel");_.LcP=new _.L9("confirmDialogRenderer");var GsE;GsE=new _.L9("menuRenderer");_.eiP=new _.L9("menuFlexibleItemRenderer");var r5y=new _.L9("pollRenderer");_.ZKc=new _.L9("backgroundPromoRenderer");var MG3;_.OKP=new _.L9("chipCloudRenderer");MG3=new _.L9("chipCloudChipRenderer");var VGn=new _.L9("dropdownRenderer");var hij=new _.L9("gridVideoRenderer");_.TDb=new _.L9("itemSectionRenderer");_.DCn=new _.L9("messageRenderer");var E9C=new _.L9("sortFilterHeaderRenderer");_.N8=new _.L9("videoRenderer");var iKE=new _.L9("resolveUrlCommandMetadata");var bKc=function(){dQ.apply(this,arguments)};
_.K(bKc,dQ);bKc.prototype.getAssociations=function(){return[]};
bKc.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.v9w=new _.L9("getAnswerCommand");_.Vl=new _.L9("searchEndpoint");var wb3=new _.L9("genAiRichTextViewModel");var IK4=new _.L9("overviewAnswerViewModel");var $CS=new _.L9("videoOverviewViewModel");var SNy=new _.L9("addToPlaylistServiceEndpoint");var qNc=new _.L9("clearSearchHistoryEndpoint");var tGP=new _.L9("clearWatchHistoryEndpoint");var g9S=new _.L9("webSerializedServiceEndpointExtension");_.ltC=new _.L9("createCommentEndpoint");var RiE=new _.L9("createCommentReplyEndpoint");var j_E=new _.L9("performCommentActionEndpoint");var atP=new _.L9("updateCommentEndpoint");var Xbn=new _.L9("updateCommentReplyEndpoint");_.L6=new _.L9("createPlaylistServiceEndpoint");var KQw=new _.L9("deletePlaylistEndpoint");var ftc=new _.L9("deleteVideoEndpoint");var CIA=new _.L9("getReportFormEndpoint");var ksW=new _.L9("modifyChannelNotificationPreferenceEndpoint");var xE_;_.Mo=new _.L9("offlinePlaylistEndpoint");xE_={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 Pcs;_.O2=new _.L9("offlineVideoEndpoint");Pcs={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 HKS=new _.L9("pingingEndpoint");_.dCW=new _.L9("selectActiveIdentityEndpoint");var o9v=new _.L9("setSettingEndpoint");var bsf=new _.L9("undoFeedbackEndpoint");var s_w=new _.L9("unsubscribeEndpoint");_.Q_b=new _.L9("updatedMetadataEndpoint");var ItW=function(){dQ.apply(this,arguments)};
_.K(ItW,dQ);ItW.prototype.getAssociations=function(){return[]};
ItW.prototype.getTypeName=function(){return"settingEntity"};_.pbE=new _.L9("updateLocalAppSettingCommand");var CiC=new _.L9("saveImageToDeviceEndpoint");var uwE=new _.L9("shareImageCommand");var n9l=new _.L9("sharingProviderDataCommand");var Avv=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(Avv,_.Tq);var F6n=[0,_.Yj,-1];Avv.prototype.JSC$12532_serializeBinary=Bzi(F6n);var Jvc=_.lz(F6n);var B9C=new _.L9("userMentionSuggestionRenderer");var x9v=new _.L9("liveChatTunnelCommand");var PB3=new _.L9("showSponsorshipsGiftOfferDialogCommand");var U93=new _.L9("sponsorshipsScrollableShelfViewModel");var zKC=new _.L9("updateUpcomingEventReminderButtonStateCommand");var W6P=new _.L9("upcomingEventReminderButtonStateRenderer");var N9W=new _.L9("subscribeEndpoint");var L6E=new _.L9("registerTasksCommand");var G3W=new _.L9("hideSheetCommand");var evP=new _.L9("hideSnackbarCommand");var rqc=new _.L9("showDialogCommand");_.wBF=new _.L9("showSheetCommand");var Z0l=new _.L9("showSnackbarCommand");var O0S=function(){dQ.apply(this,arguments)};
_.K(O0S,dQ);O0S.prototype.getAssociations=function(){return[]};
O0S.prototype.getTypeName=function(){return"chipEntity"};var MTy=function(){dQ.apply(this,arguments)};
_.K(MTy,dQ);MTy.prototype.getAssociations=function(){return[]};
MTy.prototype.getTypeName=function(){return"dismissState"};_.aH=new _.L9("avatarViewModel");var VTW=new _.L9("badgeViewModel");_.G$=new _.L9("buttonViewModel");_.eR=new _.L9("chipViewModel");var VtU=new _.L9("collectionThumbnailViewModel");var hvj=new _.L9("contentPreviewImageViewModel");var THb=new _.L9("decoratedAvatarViewModel");_.LXs=new _.L9("engagementBarViewModel");_.DmW=new _.L9("imageBannerViewModel");var Emy=new _.L9("lockupContentMetadataRowExtension");_.i0C=new _.L9("lockupMetadataViewModel");_.b0y=new _.L9("lockupViewModel");var vmS=new _.L9("avatarStackViewModel");_.wyn=new _.L9("contentMetadataViewModel");var $mb=function(){dQ.apply(this,arguments)};
_.K($mb,dQ);$mb.prototype.getAssociations=function(){return[]};
$mb.prototype.getTypeName=function(){return"pageHeaderEntity"};_.SEl=new _.L9("pageHeaderViewModel");var qEy=new _.L9("snackbarViewModel");var tTl=new _.L9("thumbnailHoverOverlayToggleActionsViewModel");_.rq=new _.L9("toggleButtonViewModel");var gmw=function(){dQ.apply(this,arguments)};
_.K(gmw,dQ);gmw.prototype.getAssociations=function(){return[]};
gmw.prototype.getTypeName=function(){return"votingEntity"};_.Gv$=new _.L9("votingViewModel");var lov=new _.L9("sectionHeaderViewModel");var Rvc=new _.L9("notifyDropdownOptionSelectedCommand");var $fi=new _.L9("listViewModel");_.ve=new _.L9("listItemViewModel");var Mtq=new _.L9("toggleableListItemViewModel");var jGc=new _.L9("dialogHeaderViewModel");var aoE=function(){dQ.apply(this,arguments)};
_.K(aoE,dQ);aoE.prototype.getAssociations=function(){return[]};
aoE.prototype.getTypeName=function(){return"dataFreshnessEntity"};var f44=new _.L9("suspenseViewModel");var XyE=new _.L9("tooltipViewModel");var KNP=function(){dQ.apply(this,arguments)};
_.K(KNP,dQ);KNP.prototype.getAssociations=function(){return[]};
KNP.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var foS=function(){dQ.apply(this,arguments)};
_.K(foS,dQ);foS.prototype.getAssociations=function(){return[]};
foS.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var k3j=function(){dQ.apply(this,arguments)};
_.K(k3j,dQ);k3j.prototype.getAssociations=function(){return[]};
k3j.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.H0S=new _.L9("transcriptSubmitCaptionCorrectionCommand");var dmn=function(){dQ.apply(this,arguments)};
_.K(dmn,dQ);dmn.prototype.getAssociations=function(){return[]};
dmn.prototype.getTypeName=function(){return"buttonEntity"};var hfy=new _.L9("unpluggedStringRunImage");var omE=new _.L9("tabViewModel");var sGS=new _.L9("tabbedViewModel");var QGc=function(){dQ.apply(this,arguments)};
_.K(QGc,dQ);QGc.prototype.getAssociations=function(){return[]};
QGc.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.IoC=new _.L9("updateDescriptionAction");var pyP=new _.L9("updateToggleButtonTextAction");var CoS=new _.L9("showFullscreenPlayerControlsCommand");var uMc=new _.L9("updateVideoMetadataCommand");_.nmn=new _.L9("autoplaySwitchButtonRenderer");var ar;_.mmE=new _.L9("multiMarkersPlayerBarRenderer");ar=new _.L9("chapterRenderer");var cqy=new _.L9("heatMarkerRenderer");var ah4=new _.L9("heatmapRenderer");var YEv=new _.L9("smartSkipPlayerScrimOverlayRenderer");var yqb=new _.L9("timedMarkerDecorationRenderer");var cfy=new _.L9("postWebToNativeMessageCommand");var RN=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(RN,_.Tq);RN.prototype.getMethodName=function(){return _.gU(this,1)};var Aqb=[0,_.Yj,-2];RN.prototype.JSC$12554_serializeBinary=Bzi(Aqb);var FNy=_.tt(RN,Aqb);var Jqc=new _.L9("whitelistEditEndpoint");var BHn=new _.L9("clearUrlParamCommand");var xmw=new _.L9("commerceActionCommand");_.Pon=new _.L9("getPaymentInstrumentsParamsCommand");var Umy=new _.L9("getPaymentsClientTokenCommand");var zvw=new _.L9("googlePaymentBillingCommand");var WNE=new _.L9("googlePaymentPurchaseManagerCommand");_.NHW=new _.L9("logGtmCommand");var LNW=new _.L9("updateCardItemOnClickCommand");_.GZy=new _.L9("ypcPauseSubscriptionCommand");_.eUE=new _.L9("ypcResumeSubscriptionCommand");var rE3=function(){dQ.apply(this,arguments)};
_.K(rE3,dQ);rE3.prototype.getAssociations=function(){return[]};
rE3.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var ZXn=function(){dQ.apply(this,arguments)};
_.K(ZXn,dQ);ZXn.prototype.getAssociations=function(){return[]};
ZXn.prototype.getTypeName=function(){return"commerceCartListEntity"};var OXw=function(){dQ.apply(this,arguments)};
_.K(OXw,dQ);OXw.prototype.getAssociations=function(){return[]};
OXw.prototype.getTypeName=function(){return"iconBadgeEntity"};var MIy=function(){dQ.apply(this,arguments)};
_.K(MIy,dQ);MIy.prototype.getAssociations=function(){return[]};
MIy.prototype.getTypeName=function(){return"pdpStateEntity"};var VIv=function(){dQ.apply(this,arguments)};
_.K(VIv,dQ);VIv.prototype.getAssociations=function(){return[]};
VIv.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var XWp=new _.L9("ypcOffersEndpoint");var hUW=new _.L9("cardItemRenderer"),TZv=new _.L9("cardItemTextRenderer");var DRc=new _.L9("commerceCartItemQuantityPickerRenderer");var ErS=new _.L9("linkCardRenderer");var QSF=new _.L9("quantityIncrementerButtonViewModel");var iX3=new _.L9("quantityIncrementerViewModel");var bXP=new _.L9("themedImageViewModel");_.vr3=new _.L9("ypcCancelRecurrenceEndpoint");var wHW=new _.L9("ypcCompleteTransactionEndpoint");_.$RS=new _.L9("ypcGetCartEndpoint");_.CW=new _.L9("ypcGetOffersEndpoint");_.ZZ=new _.L9("ypcHandleTransactionEndpoint");var Spv=new _.L9("ypcLogWalletAnalyticDataEndpoint");_.qpW=new _.L9("ypcRedeemCodeEndpoint");var tIP=new _.L9("ypcUpdateFopEndpoint");EP(DL(1),hO(4));L8w((new MessageChannel).port2);var grW=function(){this.register=new Map},aOq=function(G,e,r){G=G+"_"+e;
OI.register.has(G)?r=OI.register.get(G):(r=r(),OI.register.set(G,r));return r},lAP=function(G){G=_.h(G.register.values());
for(var e=G.next();!e.done;e=G.next())_.e0(e.value,"ABORTED")};
grW.prototype.clear=function(){lAP(this);this.register.clear()};
var OI=new grW;var ZSS=Date.now().toString();var Vjf=MjA();var w9p={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 RUS,tb;RUS=1;tb=function(G){this.veData=G};
_.b1=function(G){return new tb({trackingParams:G})};
_.L1=function(G,e,r,Z,O,M){var T=RUS++;return new tb({veType:G,veCounter:T,elementIndex:r,dataElement:e,youtubeData:Z,jspbYoutubeData:O,loggingDirectives:M})};
_.V=tb.prototype;
_.V.getAsJson=function(){var G={};this.veData.trackingParams!==void 0?G.trackingParams=this.veData.trackingParams:(G.veType=this.veData.veType,this.veData.veCounter!==void 0&&(G.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(G.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(G.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(G.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(G.isCounterfactual=!0);
return G};
_.V.getAsJspb=function(){var G=new $nC;this.veData.trackingParams!==void 0?G.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.XC(G,2,this.veData.veType),this.veData.veCounter!==void 0&&_.XC(G,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.XC(G,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.qM(G,5,!0));if(this.veData.dataElement!==void 0){var e=this.veData.dataElement.getAsJspb();_.Kj(G,7,e)}this.veData.youtubeData!==void 0&&_.Kj(G,8,this.veData.jspbYoutubeData);
return G};
_.V.toString=function(){return JSON.stringify(this.getAsJson())};
_.V.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.V.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.Eu("yt_logging_screen.getRootVeType",iSi);_.Eu("yt_logging_screen.getCurrentCsn",_.l4);_.Eu("yt_logging_screen.getCttAuthInfo",Rp);_.Eu("yt_logging_screen.setCurrentScreen",_.jW);var jkn=function(){this.events=new Map},aAl=function(G){var e=[];
G=_.h(G.events.values());for(var r=G.next();!r.done;r=G.next())e.push(r.value);return e};
jkn.prototype.clear=function(){this.events.clear()};var KjW=function(){this.logTransport=new XHl;this.loggedEventRegister=new jkn;this.unloggedEventRegister=new jkn;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12591_flushTimer=new _.qN(this.flushInterval);this.JSC$12591_flushTimer.listen("tick",this.flush,!1,this)};
KjW.prototype.flush=function(){if(this.eventsCount){var G={loggedEvents:aAl(this.loggedEventRegister),unloggedEvents:aAl(this.unloggedEventRegister)};if(_.R("export_player_version_to_ytconfig")){var e;(e=_.xZ("PLAYER_CLIENT_VERSION"))?(e=e.split("-")[0].replace(/\./g,""),e=isNaN(Number(e))?"0":e):e="";var r=_.xZ("PLAYER_CLIENT_VERSION");if(r){r=r.split("-");var Z="";r.length>1&&(Z=r[r.length-1]);r=r9S(Z.startsWith("canary_experiment")?"canary":Z.startsWith("canary_control")?"control":"none")}else r=
"CLIENT_CANARY_STATE_UNKNOWN";G.dimensions={playerClientVersion:e,playerCanaryState:r}}this.logTransport.flush(G);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12591_flushTimer.enabled&&this.JSC$12591_flushTimer.stop()}};
var fAP=function(G){Ml==null&&(Ml=new KjW);var e=Ml;var r=e.loggedEventRegister;G.dimensions=G.dimensions||{};G.dimensions.csn=_.l4()||"";var Z=q4s(G.dimensions).join(";");if(G.records!=null)if(r.events.has(Z)){var O;(O=r.events.get(Z).records)==null||O.push.apply(O,_.mY(G.records))}else r.events.set(Z,G);e.JSC$12591_flushTimer.enabled||e.JSC$12591_flushTimer.start();e.eventsCount++;e.eventsCount>=100&&e.flush()};var XHl=function(){};
XHl.prototype.flush=function(G,e){_.R("enable_client_sli_logging")&&_.cg("sliEventBatch",G,{sendIsolatedPayload:!!e})};var Ml;var HXw;HXw=function(G){var e=kZv;G=G===void 0?{}:G;e=e.name;var r=j4A("SUCCESS");fAP({dimensions:G,records:[{name:e,state:"SLI_STATE_END",status:r}]})};
_.X9$=function(G,e,r,Z){this.name=G;this.sliId=e;this.timeoutMs=r;this.statusOnTimeout=Z;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.X9$.prototype.getId=function(){return this.sliId};
_.Gx=function(G,e){e=e===void 0?{}:e;G.ongoing||(G.ongoing=!0,G.dimensions=e,G.logSliId=JD$(),fAP({dimensions:G.dimensions,records:[{name:G.name,state:"SLI_STATE_START",sliId:G.logSliId}]}),G.timeoutMs>0&&(G.timeoutHandle=setTimeout(function(){_.e0(G,G.statusOnTimeout)},G.timeoutMs)))};
_.e0=function(G,e){G.ongoing&&(G.timeoutMs>0&&clearTimeout(G.timeoutHandle),G.ongoing=!1,e={dimensions:G.dimensions,records:[{name:G.name,status:j4A(e),state:"SLI_STATE_END",sliId:G.logSliId}]},OI.register.delete(G.name+"_"+G.sliId),fAP(e))};var kZv=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var dRv=function(){dQ.apply(this,arguments)};
_.K(dRv,dQ);dRv.prototype.getAssociations=function(){return[]};
dRv.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var FnA=new _.L9("highlightTextDecoratorColorMapExtension");var y1N=new _.L9("styleRunColorMapExtension");var s4f=_.Cp(["data-"]),p9F={};var uga={};var V_=function(G){this.wrappedPromise_=G===void 0?null:G;this.state_=0;this.JSC$12622_value_=null};
V_.prototype.then=function(G,e,r){return this.wrappedPromise_?this.wrappedPromise_.then(G,e,r):this.state_===1&&G?(G=G.call(r,this.JSC$12622_value_))&&typeof G.then==="function"?G:_.ho(G):this.state_===2&&e?(G=e.call(r,this.JSC$12622_value_))&&typeof G.then==="function"?G:_.orj(G):this};
V_.prototype.getValue=function(){return this.JSC$12622_value_};
V_.prototype.isRejected=function(){return this.state_==2};
bzP(V_);_.orj=function(G){var e=new V_;G=G===void 0?null:G;e.state_=2;e.JSC$12622_value_=G===void 0?null:G;return e};
_.ho=function(G){var e=new V_;G=G===void 0?null:G;e.state_=1;e.JSC$12622_value_=G===void 0?null:G;return e};var Nhq="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var skl=["load","abort","error"],T$=function(G,e,r){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12642_maxAspectRatio_=G;this.disableAnimation_=e===void 0?!1:e;this.disableExifRotation_=r===void 0?!1:r;this.JSC$12642_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12642_reject_=this.resolve_=null};
T$.prototype.transform=function(G){var e=this;this.mime_=G.type;PK(Sbb(G),this.dataUrlRead_,this.readError_,this);PK($kC(G.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(r,Z){e.resolve_=r;e.JSC$12642_reject_=Z})};
T$.prototype.dataUrlRead_=function(G){this.dataUrl_=G;this.angle_!=null&&QkC(this)};
T$.prototype.exifRead_=function(G){if(this.disableExifRotation_)this.angle_=0;else{a:if(G=new DataView(G),G.byteLength<2||G.getUint16(0)!==65496)G=-2;else{for(var e=2,r=G.byteLength;e<r;){var Z=G.getUint16(e),O=G.getUint16(e+2);if(Z===65505){e+=4;Z=G.getUint32(e);O=G.getUint16(e+4);if(Z!==1165519206||O!==0)break;e+=6;Z=G.getUint16(e)===18761;e+=G.getUint32(e+4,Z);O=G.getUint16(e,Z);e+=2;for(var M=0;M<O;M++){if(G.getUint16(e,Z)===274){e+=8;G=G.getUint16(e,Z);break a}e+=12}}else if(Z>>8!==255)break;
else e+=O+2}G=-1}switch(G){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&&QkC(this)};
T$.prototype.readError_=function(){this.JSC$12642_reject_()};
var QkC=function(G){EY(G.JSC$12642_image_,skl,G.completeTransform_,!1,G);G.JSC$12642_image_.src=_.Fy(G.dataUrl_).toString();G.JSC$12642_image_.src!=At.toString()&&G.JSC$12642_image_.src.substr(0,11)==="data:image/"||G.JSC$12642_reject_()};
T$.prototype.completeTransform_=function(){if(this.JSC$12642_image_.src!=At.toString()){var G=_.Fy(this.dataUrl_),e=this.JSC$12642_image_.naturalHeight?this.JSC$12642_image_.naturalWidth/this.JSC$12642_image_.naturalHeight:null;this.invalidAspectRatio=e>this.JSC$12642_maxAspectRatio_||e<1/this.JSC$12642_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var r=this.JSC$12642_image_.naturalWidth,Z=this.JSC$12642_image_.naturalHeight,O=e=0,M=this.JSC$12642_image_.naturalHeight?this.JSC$12642_image_.naturalWidth/
this.JSC$12642_image_.naturalHeight:null;M>this.JSC$12642_maxAspectRatio_?(r=this.JSC$12642_maxAspectRatio_*Z,e=(r-this.JSC$12642_image_.naturalWidth)/2,this.cropped=!0):M<1/this.JSC$12642_maxAspectRatio_?(Z=this.JSC$12642_maxAspectRatio_*r,O=(Z-this.JSC$12642_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)M=r,r=Z,Z=M,M=e,e=O,O=M;switch(this.angle_){case 90:O-=r;break;case 180:e-=r;O-=Z;break;case 270:e-=
Z}this.cropped||this.angle_%360!==0?(G=document.createElement("canvas"),G.width=r||1,G.height=Z||1,this.JSC$12642_image_.naturalWidth&&this.JSC$12642_image_.naturalHeight&&(r=G.getContext("2d"),r.rotate(Math.PI/180*this.angle_),r.drawImage(this.JSC$12642_image_,e,O,this.JSC$12642_image_.naturalWidth,this.JSC$12642_image_.naturalHeight)),this.transformedData=_.Fy(G.toDataURL(this.mime_))):this.transformedData=G}else this.transformedData=G;this.resolve_(this)}};var DZ=function(G,e){_.qQ.call(this,G);this.value=e};
_.K(DZ,_.qQ);
var EI=function(G,e,r,Z,O,M,T){T=T===void 0?!1:T;_.j7.call(this);var E=this;this.JSC$12647_url_=G;this.channelId_=e;this.maxFileSizeMb_=r;this.JSC$12647_maxAspectRatio_=Z;this.dropZoneEl_=O;this.rejectInvalidAspectRatio_=T;this.selectButtonEl_=M;this.JSC$12647_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new tO(this.dropZoneEl_);this.selectOverlay_=new gQ(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12647_image_=this.transfer_=null;this.handler_=new _.tP(this);_.Xx(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(M,"click",function(){E.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.K(EI,_.j7);EI.prototype.disposeInternal=function(){for(var G=this.selectButtonEl_.nextSibling;G&&G.parentNode&&G.tagName=="INPUT";)G.parentNode.removeChild(G),G=this.selectButtonEl_.nextSibling;this.cancel();_.j7.prototype.disposeInternal.call(this)};
EI.prototype.uploadPromise=function(){if(this.JSC$12647_image_==null)return null;this.uploadPromise_||IAn(this);return this.uploadPromise_};
EI.prototype.cancel=function(){pHj(this);this.JSC$12647_image_=null};
var pHj=function(G){G.transfer_&&G.transfer_.cancel();G.transfer_=null;G.uploadPromise_=null;G.resolve_=null;G.JSC$12647_reject_=null},IAn=function(G){pHj(G);
G.transfer_=_.MfW(G.JSC$12647_url_,{"X-YouTube-ChannelId":G.channelId_},G.JSC$12647_image_);G.handler_.listenOnce(G.transfer_,"l",G.JSC$12649_onUploadComplete_);G.handler_.listenOnce(G.transfer_,"n",G.onUploadError_);G.transfer_.run();G.uploadPromise_=new Promise(function(e,r){G.resolve_=e;G.JSC$12647_reject_=r})};
_.V=EI.prototype;_.V.onChange_=function(G){G.files.length&&(this.JSC$12647_image_=G.files[0],this.JSC$12647_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12647_image_=null,this.dispatchEvent(new DZ("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(IAn(this),(new T$(this.JSC$12647_maxAspectRatio_)).transform(this.JSC$12647_image_).then((0,_.CB)(this.onPreview_,this),(0,_.CB)(this.onPreviewError_,this))))};
_.V.onPreview_=function(G){if(G.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12647_image_=null),this.dispatchEvent(new DZ("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;G.cropped&&this.dispatchEvent(new DZ("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new DZ("yt.comments.ImageUploadOverlay.CHANGE_EVENT",G.transformedData))};
_.V.onPreviewError_=function(){this.JSC$12647_image_=null;this.dispatchEvent(new DZ("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.V.onHover_=function(G){G.stopPropagation();G.preventDefault();if(G.type==="dragover")G=!0;else if(G.type==="dragleave")G=!1;else return;this.dispatchEvent(new DZ("yt.comments.ImageUploadOverlay.HOVER_EVENT",G))};
_.V.JSC$12649_onUploadComplete_=function(){var G=(0,_.utw)(this.transfer_.getResponseText());this.resolve_(G.encryptedBlobId)};
_.V.onUploadError_=function(){this.JSC$12647_reject_();pHj(this)};var CKE=function(G){G=G||{};var e={},r={};this.url=G.url||"";this.args=G.args||_.c2.clone(e);this.assets=G.assets||{};this.attrs=G.attrs||_.c2.clone(r);this.fallback=G.fallback||null;this.fallbackMessage=G.fallbackMessage||null;this.html5=!!G.html5;this.disable=G.disable||{};this.loaded=!!G.loaded;this.messages=G.messages||{}};
CKE.prototype.clone=function(){var G=new CKE,e;for(e in this)if(this.hasOwnProperty(e)){var r=this[e];_.LP(r)=="object"?G[e]=_.c2.clone(r):G[e]=r}return G};var uSP,nrW,mRj,px,Ypl,yEw,AEW,Fjv,JEC,BZn,xR3,PKw,URc,zUn,Wjc,NZS,LjE,G5n,eqb,rJC,ZwC,Owj,MPl,VPE,hqn,T5v,D2c,EEc,iw3,U5A,bwW,vEn,wFc,$2S,SUW,qUy,tPE,gEl,l5E,Rqw,Pea,ju3,a5j,XFP,K7W,f5y,k5c,HwC,d2n,oES,suW,Quv,I5w,pFS,CXn,uzy,iJ,nEl,m2W,cJc,YUv,yJ3,AJS,F7W,JJb,B53,x2l,PXl,U2W,zql,W7E,N5W,L7S,G7E,enS,rMb,BXf,ZHC,OHl,MbE,Vbn,hnE,TAb,Dcb,EXn,iHS,bHS,vXv,wr3,$cy,S8W,q8W,tbc,gXE,lnP,RnS,jmn,anW,XrW,KxE,fnv,k7j;uSP=["account/accounts_list"];nrW=["acknowledge_channel_tou_strike"];mRj=["notification/add_upcoming_event_reminder"];
_.cEj=["att/get"];px=["browse","music/browse","unplugged/browse"];Ypl=["channel/claim_legacy_youtube_channel"];yEw=["history/clear_search_history"];AEW=["history/clear_watch_history"];Fjv=["comment/perform_comment_action"];JEC=["comment/get_comment_replies"];BZn=["ypc/commerce_action"];xR3=["backstage/create_post"];PKw=["live/create_broadcast"];URc=["channel/create_channel"];zUn=["comment/create_comment_reply"];Wjc=["comment/create_comment"];NZS=["live_chat/create_poll"];LjE=["playlist/create"];
G5n=["decorate_message"];eqb=["live_chat/delete_message"];rJC=["playlist/delete"];ZwC=["video/delete"];Owj=["like/dislike"];MPl=["dismissal/dismiss"];VPE=["flag/flag"];hqn=["flow"];T5v=["account/account_menu"];D2c=["playlist/get_add_to_playlist"];EEc=["get_answer"];iw3=["channel/get_channel_creation_form"];U5A=["offline/get_download_action"];bwW=["kids/get_kids_blocklist_picker"];vEn=["live_chat/get_item_context_menu"];wFc=["live_chat/get_live_chat_message_buy_flow"];$2S=["live_chat/get_live_chat_replay"];
SUW=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];qUy=["live_chat/get_live_chat_super_sticker_buy_flow"];tPE=["notification/get_notification_menu"];gEl=["playlist/get_settings_editor"];l5E=["backstage/get_post_video_preview"];Rqw=["account/get_profile_card"];Pea=["share/get_share_panel"];ju3=["share/get_sharing_provider_data"];a5j=["get_survey"];XFP=["notification/get_unseen_count"];K7W=["get_user_mention_suggestions"];f5y=["get_watch"];k5c=["guide"];
HwC=["feedback"];d2n=["kids/update_blacklist"];oES=["like/like"];suW=["live_chat/live_chat_action"];Quv=["live_chat/manage_user"];I5w=["video_manager/metadata_update"];pFS=["live_chat/moderate"];CXn=["notification/modify_channel_preference"];uzy=["notification/opt_out"];iJ=["get_panel","get_posts_by_host_panel"];nEl=["player"];m2W=["browse/edit_playlist"];cJc=["notification/record_interactions"];YUv=["reel/reel_item_watch"];yJ3=["reel/reel_watch_sequence"];AJS=["like/removelike"];F7W=["notification/remove_upcoming_event_reminder"];
JJb=["flag/get_form"];B53=["miniapp/report_value"];x2l=["navigation/resolve_url"];PXl=["channel/reveal_business_email"];U2W=["in_video/search"];zql=["search","sfv/search","unplugged/search"];W7E=["live_chat/send_message"];N5W=["live_chat/send_live_chat_vote"];L7S=["account/set_setting"];G7E=["submit_caption_correction"];enS=["submit_form"];rMb=["subscription/subscribe"];BXf=["get_transcript"];ZHC=["resolve_location","unplugged/resolve_location"];OHl=["subscription/unsubscribe"];MbE=["backstage/update_post"];
Vbn=["channel_edit/update_channel_page_settings"];hnE=["comment/update_comment_reply"];TAb=["comment/update_comment"];Dcb=["comment/update_comments_settings"];EXn=["creator/update_creator_channel"];iHS=["pdg/update_enablement"];bHS=["updated_metadata"];vXv=["channel_edit/validate_channel_handle"];wr3=["verify_age"];$cy=["next","unplugged/watch_next"];S8W=["whitelist/edit"];q8W=["ypc/cancel_recurrence"];tbc=["ypc/complete_transaction"];gXE=["ypc/get_cart"];lnP=["ypc/get_fix_instrument_params"];
RnS=["ypc/get_offers"];jmn=["ypc/get_payment_instruments_params"];anW=["ypc/handle_transaction"];XrW=["ypc/log_payment_server_analytics"];KxE=["ypc/pause_subscription"];fnv=["ypc/redeem_code"];k7j=["ypc/resume_subscription"];var HHC=[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,276243,93911,274188,276651,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,276200,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,279119,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,278926,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,279531,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,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,278306,277848,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,273960,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,279755,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var Z_=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.Eu("yt.msgs_",Z_);var bJ=new _.Gz("ACTION_ROUTER_TOKEN");_.vt=function(){this.autonavState_=_.R("kevlar_is_pupi_enabled")?2:EAy()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.vt.prototype.getState=function(){return this.autonavState_};
_.vt.prototype.pause=function(G){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=G):this.autonavState_==1&&(this.disabledAutonavPauseReason_=G)};
_.vt.prototype.setState=function(G,e,r){e&&(this.autoplayChangedByUser=!0);e=this.autonavState_===3||G===3;this.autonavState_!=G&&(this.autonavState_=G,G!=3&&_.i6N(G==2),G=_.R("kevlar_is_pupi_enabled")?r||e:!0,_.e8.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,G,r))};
_.vt.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.Fb(_.vt);var wq=function(){this.hasRun=!1};var $e={},jaq=($e.auto_search="LATENCY_ACTION_AUTO_SEARCH",$e.ad_to_ad="LATENCY_ACTION_AD_TO_AD",$e.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",$e.app_startup="LATENCY_ACTION_APP_STARTUP",$e.browse="LATENCY_ACTION_BROWSE",$e.cast_splash="LATENCY_ACTION_CAST_SPLASH",$e.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",$e.channels="LATENCY_ACTION_CHANNELS",$e.chips="LATENCY_ACTION_CHIPS",$e.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",$e.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
$e.editor="LATENCY_ACTION_EDITOR",$e.embed="LATENCY_ACTION_EMBED",$e.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",$e.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",$e.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",$e.explore="LATENCY_ACTION_EXPLORE",$e.favorites="LATENCY_ACTION_FAVORITES",$e.home="LATENCY_ACTION_HOME",$e.inboarding="LATENCY_ACTION_INBOARDING",$e.landing="LATENCY_ACTION_LANDING",$e.learning="LATENCY_ACTION_LEARNING",
$e.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",$e.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",$e.library="LATENCY_ACTION_LIBRARY",$e.live="LATENCY_ACTION_LIVE",$e.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",$e.management="LATENCY_ACTION_MANAGEMENT",$e.mini_app="LATENCY_ACTION_MINI_APP_PLAY",$e.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",$e.onboarding="LATENCY_ACTION_ONBOARDING",$e.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
$e.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",$e.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",$e.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",$e.prebuffer="LATENCY_ACTION_PREBUFFER",$e.prefetch="LATENCY_ACTION_PREFETCH",$e.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",$e.profile_switcher="LATENCY_ACTION_LOGIN",$e.projects="LATENCY_ACTION_PROJECTS",$e.reel_watch="LATENCY_ACTION_REEL_WATCH",$e.results="LATENCY_ACTION_RESULTS",$e.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
$e.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",$e.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",$e.review="LATENCY_ACTION_REVIEW",$e.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",$e.search_ui="LATENCY_ACTION_SEARCH_UI",$e.search_suggest="LATENCY_ACTION_SUGGEST",$e.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",$e.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",$e.seek="LATENCY_ACTION_PLAYER_SEEK",$e.settings="LATENCY_ACTION_SETTINGS",$e.store="LATENCY_ACTION_STORE",
$e.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",$e.tenx="LATENCY_ACTION_TENX",$e.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",$e.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",$e.watch="LATENCY_ACTION_WATCH",$e.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",$e["watch,watch7"]="LATENCY_ACTION_WATCH",$e["watch,watch7_html5"]="LATENCY_ACTION_WATCH",$e["watch,watch7ad"]="LATENCY_ACTION_WATCH",$e["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",$e.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
$e.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",$e.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",$e.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",$e.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",$e.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",$e.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",$e.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",$e),nAF=0;var F5i=function(G,e){K7.call(this,1,arguments);this.timer=e};
_.K(F5i,K7);var AOa=new uqf("aft-recorded",F5i);var fLa=_.O_.ytLoggingGelSequenceIdObj_||{};_.Eu("ytLoggingGelSequenceIdObj_",fLa);var SR=_.O_.ytLoggingLatencyUsageStats_||{};_.Eu("ytLoggingLatencyUsageStats_",SR);var ql=function(){this.cleanupJob=0},d8i=function(){ql.instance||(ql.instance=new ql);
return ql.instance};
_.V=ql.prototype;_.V.baseline=function(G,e,r){to(this,"baseline_"+G)||_.cg("latencyActionBaselined",{clientActionNonce:G},{timestamp:e,cttAuthInfo:r})};
_.V.tick=function(G,e,r,Z){to(this,"tick_"+G+"_"+e)||_.cg("latencyActionTicked",{tickName:G,clientActionNonce:e},{timestamp:r,cttAuthInfo:Z})};
_.V.info=function(G,e,r){var Z=Object.keys(G).join("");to(this,"info_"+Z+"_"+e)||(G=Object.assign({},G),G.clientActionNonce=e,_.cg("latencyActionInfo",G,{cttAuthInfo:r}))};
_.V.jspbInfo=function(G,e,r){for(var Z="",O=0;O<nd(G).length;O++)nd(G)[O]!==void 0&&(Z=O===0?Z.concat(""+O):Z.concat("_"+O));to(this,"info_"+Z+"_"+e)||(_.QB(G,2,e),e={cttAuthInfo:r},r=_.R("jspb_sparse_encoded_pivot")?new Qx([{}]):new Qx,_.fj(r,7,otP,G),kMa("latencyActionInfo",r,e))};
_.V.span=function(G,e,r){var Z=Object.keys(G).join("");to(this,"span_"+Z+"_"+e)||(G.clientActionNonce=e,_.cg("latencyActionSpan",G,{cttAuthInfo:r}))};
var to=function(G,e){SR[e]=SR[e]||{count:0};var r=SR[e];r.count++;r.time=(0,_.vG)();G.cleanupJob||(G.cleanupJob=_.IQ(_.A0,function(){var Z=(0,_.vG)(),O;for(O in SR)SR[O]&&Z-SR[O].time>6E4&&delete SR[O];G&&(G.cleanupJob=0)},5E3));
return r.count>5?(r.count===6&&Math.random()*1E5<1&&(r=new _.Cr("CSI data exceeded logging limit with key",e.split("_")),e.indexOf("plev")>=0||_.FH(r)),!0):!1};var dcP,oXn;dcP=window;oXn=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.bp=dcP.performance||dcP.mozPerformance||dcP.msPerformance||dcP.webkitPerformance||new oXn;var yOA=!1,sai=!1,JO_=(0,_.CB)(_.bp.clearResourceTimings||_.bp.webkitClearResourceTimings||_.bp.mozClearResourceTimings||_.bp.msClearResourceTimings||_.bp.oClearResourceTimings||_.qu,_.bp);var smy=window;smy.ytcsi&&(smy.ytcsi.infoGel=_.gJ,smy.ytcsi.tick=_.jq);var ros=function(G){K7.call(this,1,arguments);this.csn=G};
_.K(ros,K7);var yXa=new uqf("screen-created",ros),tRS=[],eey=qI_,geN=0,dJ=new Map,ZEq=new Map,OEs=new Map;var FWA=Symbol("Df"),YJ=new WeakMap;var gq=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},DM=function(){gq.instance||(gq.instance=new gq);
return gq.instance};
_.V=gq.prototype;_.V.setClient=function(G){this.client=G};
_.V.JSC$12728_newScreen=function(){this.clear();this.csn=_.l4()};
_.V.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.V.reportShown=function(G,e,r){var Z=this.JSC$12728_getTrackingParams(G),O=G.visualElement?G.visualElement:Z;e=this.shownElements.has(O);var M=this.visibleState.get(O);this.shownElements.add(O);this.visibleState.set(O,!0);G.impressionLog&&!e&&G.impressionLog();if(Z||G.visualElement)if(r=QmE(this,G,r))if(O=InW(this,G),lJ(this,G)||O){Z=G.visualElement?G.visualElement:_.b1(Z);var T=G.interactionLoggingClientData;O||e?lJ(this,G)&4?M||bEq(this.client,r,Z,T):lJ(this,G)&1&&!e&&Dl$(this.client,r,Z,T):Dl$(this.client,
r,Z,T)}};
_.V.reportHidden=function(G,e,r){var Z=this.JSC$12728_getTrackingParams(G),O=G.visualElement?G.visualElement:Z;e=this.hiddenElements.has(O);var M=this.visibleState.get(O);this.hiddenElements.add(O);this.visibleState.set(O,!1);if(M===!1)return!0;if(!Z&&!G.visualElement)return!1;r=QmE(this,G,r);if(!r||!lJ(this,G)&&InW(this,G))return!1;Z=G.visualElement?G.visualElement:_.b1(Z);lJ(this,G)&8?veU(this.client,r,Z):lJ(this,G)&2&&!e&&(G=this.client,e=Hn({cttAuthInfo:Rp(r)||void 0},r),Z={csn:r,ve:Z.getAsJson(),
eventType:2},r==="UNDEFINED_CSN"?sK("visualElementHidden",e,Z):G?nL("visualElementHidden",Z,G,e):_.cg("visualElementHidden",Z,e));return!0};
_.V.JSC$12728_getTrackingParams=function(G){var e=this.getData(G),r,Z;if(_.R("il_use_view_model_logging_context")&&(e==null?0:(r=e.context)==null?0:(Z=r.loggingContext)==null?0:Z.loggingDirectives))return e.context.loggingContext.loggingDirectives.trackingParams||"";var O,M;if(e==null?0:(O=e.rendererContext)==null?0:(M=O.loggingContext)==null?0:M.loggingDirectives)return e.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(e==null?0:e.loggingDirectives)return e.loggingDirectives.trackingParams||
"";var T;return((T=G.veContainer)==null?0:T.trackingParams)?G.veContainer.trackingParams:(e==null?void 0:e.trackingParams)||""};
_.V.JSC$12728_elementShouldLogGesture=function(G,e){G=this.getData(G);return!!((Math.floor(Number(G&&G.loggingDirectives&&G.loggingDirectives.gestures&&G.loggingDirectives.gestures.types||""))||0)&e)};
_.V.JSC$12728_getNearestParentVe=function(G){var e=this.JSC$12728_getTrackingParams(G);return G.visualElement?G.visualElement:e?_.b1(e):G.parentElement?this.JSC$12728_getNearestParentVe(G.parentElement):null};
var QmE=function(G,e,r){var Z=_.l4(r);return G.csn===null||Z===G.csn||r?Z:(G=new _.Cr("VisibilityLogger called before newScreen",{caller:e.tagName,previous_csn:G.csn,current_csn:Z}),_.FH(G),null)};
gq.prototype.getData=function(G){var e,r=G.data||((e=G.props)==null?void 0:e.data);if(!r||G.isWebComponentWrapper){var Z;r=(Z=YJ.get(G))==null?void 0:Z[FWA]}return r};
var InW=function(G,e){var r;return!((r=G.getData(e))==null||!r.loggingDirectives)},lJ=function(G,e){G=G.getData(e);
return Math.floor(Number(G&&G.loggingDirectives&&G.loggingDirectives.visibility&&G.loggingDirectives.visibility.types||""))||1};var RC;RC=function(){};
_.ZM=function(){RC.instance||(RC.instance=new RC);return RC.instance};
RC.prototype.setClient=function(G){_.N0(DM().setClient).bind(DM())(G)};
_.prE=function(){_.ZM();_.N0(DM().JSC$12728_newScreen).bind(DM())()};
RC.prototype.clear=function(){_.N0(DM().clear).bind(DM())()};
RC.prototype.reportShown=function(G,e,r){_.N0(DM().reportShown).bind(DM())(G,e,r)};
RC.prototype.reportHidden=function(G,e,r){return _.N0(DM().reportHidden).bind(DM())(G,e,r)};
var AcA=function(G,e){return _.N0(DM().JSC$12728_getTrackingParams).bind(DM())(e)},J7U=function(G,e){return _.N0(DM().JSC$12728_getNearestParentVe).bind(DM())(e)};var jR,CQW;jR=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};
_.h_=function(){jR.instance||(jR.instance=new jR);return jR.instance};
jR.prototype.setClient=function(G){this.client=G};
CQW=function(G,e,r){r=r===void 0?{}:r;_.N0(function(){var Z,O,M,T=((Z=_.a(e==null?void 0:e.commandMetadata,_.rJ))==null?void 0:Z.rootVe)||((O=_.a(e==null?void 0:e.commandMetadata,tRC))==null?void 0:(M=O.screenVisualElement)==null?void 0:M.uiType);if(T){Z=_.a(e==null?void 0:e.commandMetadata,iKE);if(Z==null?0:Z.parentTrackingParams){var E=_.b1(Z.parentTrackingParams);if(Z.parentCsn)var b=Z.parentCsn}else r.clickedVisualElement?E=r.clickedVisualElement:e.clickTrackingParams&&(E=_.b1(e.clickTrackingParams));
a:{Z=_.a(e,_.u4);O=_.a(e,DRA);if(Z){if(O=b6A(Z,"VIDEO")){Z={token:O,videoId:Z.videoId};break a}}else if(O&&(Z=b6A(O,"PLAYLIST"))){Z={token:Z,playlistId:O.playlistId};break a}Z=void 0}r=Object.assign({},{cttAuthInfo:Z,parentCsn:b},r);if(_.R("expectation_logging")){var w;r.loggingExpectations=((w=_.a(e==null?void 0:e.commandMetadata,tRC))==null?void 0:w.loggingExpectations)||void 0}_.aC(G,T,E,r)}else _.FH(new _.Cr("Error: Trying to create a new screen without a rootVeType",e))})()};
_.aC=function(G,e,r,Z){Z=Z===void 0?{}:Z;_.N0(function(){HHC.includes(e)||(_.FH(new _.Cr("createClientScreen() called with a non-page VE",e)),e=83769);Z.isHistoryNavigation||(G.forwardHistoryStack=[],G.backHistoryStack.push({rootVe:e,key:Z.key||""}));G.graftQueue=[];G.stateChangedQueue=[];Z.dataPromises?u2c(G,e,r,Z):nXW(G,e,r,Z)})()};
_.mcj=function(G,e,r){r=r===void 0?0:r;_.N0(function(){e.then(function(Z){G.pendingScreenCreation.has(r)&&G.pendingScreenFn&&G.pendingScreenFn();var O=_.l4(r),M=_.go(r);if(O&&M){var T={automatedLogEventSource:3},E;(Z==null?0:(E=Z.response)==null?0:E.trackingParams)&&ol(G.client,O,M,_.b1(Z.response.trackingParams),!1,T);var b;(Z==null?0:(b=Z.playerResponse)==null?0:b.trackingParams)&&ol(G.client,O,M,_.b1(Z.playerResponse.trackingParams),!1,T)}})})()};
jR.prototype.graftServerVe=function(G,e,r){var Z=this;return _.N0(function(){var O=_.b1(G);_.Xr(Z,O,e,r);return O})()};
_.Bn4=function(G,e,r,Z){return _.R("enable_client_ve_spec")&&e.clientVeSpec?(e=_.L1(e.clientVeSpec.uiType,void 0,e.clientVeSpec.elementIndex,e.clientVeSpec.clientYoutubeData,void 0,e),_.Xr(G,e,r,Z)?e:null):e.trackingParams?G.graftServerVe(e.trackingParams,r,Z):null};
_.OY=function(G,e,r,Z){return _.N0(function(){if(!e.veType)return _.AG(new _.Cr("Error: Trying to graft a client VE without a veType.")),null;if(e.visibilityTypes){var O=e.visibilityTypes.reduce(function(M,T){return M|T});
O={visibility:{types:String(O)}}}O=_.L1(e.veType,e.visualElement,e.elementIndex,e.clientYouTubeData,void 0,O);return _.Xr(G,O,r,Z)?O:null})()};
_.Xr=function(G,e,r,Z){Z=Z===void 0?0:Z;return _.N0(function(){if(G.pendingScreenCreation.has(Z))return G.graftQueue.push([e,r]),!0;var O=_.l4(Z),M=r||_.go(Z);if(O&&M){if(_.R("combine_ve_grafts")){var T=G.cachedVisualElements.get(M.toString());T?T.push(e):(G.cachedRootVisualElements.set(M.toString(),M),G.cachedVisualElements.set(M.toString(),[e]));G.attachTimeout||(G.attachTimeout=_.IQ(_.A0,function(){cMb(G,O)},1200))}else ol(G.client,O,M,e);
return!0}return!1})()};
_.KE=function(G,e,r){r=r===void 0?0:r;var Z=G.recurringGrafts.get(r)||new Map;if(_.R("smarter_ve_dedupping"))for(var O=Array.from(Z.keys()),M=0;M<O.length;M++){var T=void 0,E=void 0;var b=e;var w=O[M];w.isClientVe()&&b.isClientVe()?(T=b.getAsJson(),E=w.getAsJson(),b=T.veType!==E.veType||T.elementIndex!==E.elementIndex||T.dataElement!==E.dataElement||b.getLoggingDirectives()!==w.getLoggingDirectives()?!1:!0):b=w.veData.trackingParams!==void 0&&b.veData.trackingParams!==void 0?((E=b.veData)==null?void 0:
E.trackingParams)===((T=w.veData)==null?void 0:T.trackingParams):!1;if(b)return}else if(Z.has(e))return;Z.set(e,void 0);G.recurringGrafts.set(r,Z);_.l4(r)==="UNDEFINED_CSN"||G.pendingScreenCreation.has(r)||_.Xr(G,e,void 0,r)};
_.fE=function(G,e,r,Z){Z=_.l4(Z===void 0?0:Z);if(!Z)return!1;$lp(G.client,Z,e,r);return!0};
_.ke=function(G,e,r,Z){if(!e)return!1;Z=_.l4(Z===void 0?0:Z);if(!Z)return!1;$lp(G.client,Z,_.b1(e),r);return!0};
_.sb=function(G,e){var r=e.getScreenLayer&&e.getScreenLayer();if(e.visualElement)return _.fE(G,e.visualElement,void 0,r);e=AcA(_.ZM(),e);return _.ke(G,e,void 0,r)};
jR.prototype.clickCommand=function(G,e,r){return _.ke(this,G.clickTrackingParams,e,r===void 0?0:r)};
jR.prototype.stateChanged=function(G,e,r){this.visualElementStateChanged(_.b1(G),e,r===void 0?0:r)};
jR.prototype.visualElementStateChanged=function(G,e,r){r=r===void 0?0:r;r===0&&this.pendingScreenCreation.has(r)?this.stateChangedQueue.push([G,e]):this.logStateChanged(G,e,r)};
jR.prototype.logStateChanged=function(G,e,r){r=r===void 0?0:r;var Z=_.l4(r);G=G||_.go(r);return Z&&G?(SIA(this.client,Z,G,e),!0):!1};
var u2c=function(G,e,r,Z){Z=Z===void 0?{}:Z;G.pendingScreenCreation.add(Z.layer||0);G.pendingScreenFn=function(){nXW(G,e,r,Z);var T=_.go(Z.layer);if(T){for(var E=_.h(G.graftQueue),b=E.next();!b.done;b=E.next())b=b.value,_.Xr(G,b[0],b[1]||T,Z.layer);T=_.h(G.stateChangedQueue);for(E=T.next();!E.done;E=T.next())E=E.value,G.logStateChanged(E[0],E[1])}};
r||_.l4(Z.layer)||G.pendingScreenFn();if(Z.dataPromises)for(var O=_.h(Z.dataPromises),M=O.next();!M.done;M=O.next())_.mcj(G,M.value,Z.layer);else _.yx(Error("Ef"))},nXW=function(G,e,r,Z){Z=Z===void 0?{}:Z;
var O=void 0;Z.layer||(Z.layer=0);O=Z.parentLayer!==void 0?Z.parentLayer:Z.layer;var M=_.l4(O);O=_.go(O);var T=r||O,E;T&&(Z.parentCsn!==void 0?E={clientScreenNonce:Z.parentCsn,visualElement:T}:M&&M!=="UNDEFINED_CSN"&&(E={clientScreenNonce:M,visualElement:T}));var b,w=_.xZ("EVENT_ID");M==="UNDEFINED_CSN"&&w&&(b={servletData:{serializedServletEventId:w}});_.R("combine_ve_grafts")&&M&&cMb(G,M);_.R("no_client_ve_attach_unless_shown")&&T&&M&&TqA(T,M);try{var q=_.MRf(G.client,e,E,Z.csnToClone,Z.cttAuthInfo,
b,Z.implicitGestureType,void 0,Z.loggingExpectations)}catch(l){_.JG(l,{rootVeType:e,rootVe:O,parentVisualElement:r,currentCsn:M,parentEl:E,csnToClone:Z.csnToClone});_.yx(l);return}_.jW(q,e,Z.layer,Z.cttAuthInfo);M&&M!=="UNDEFINED_CSN"&&O&&!$wp(M)&&veU(G.client,M,O,!0);G.backHistoryStack[G.backHistoryStack.length-1]&&!G.backHistoryStack[G.backHistoryStack.length-1].csn&&(G.backHistoryStack[G.backHistoryStack.length-1].csn=q||"");_.gJ({clientScreenNonce:q});_.prE();var t=_.go(Z.layer);M&&M!=="UNDEFINED_CSN"&&
t&&(_.R("web_mark_root_visible")||_.R("music_web_mark_root_visible"))&&_.p_(q,t);G.pendingScreenCreation.delete(Z.layer||0);G.pendingScreenFn=void 0;var g;(g=G.recurringGrafts.get(Z.layer))==null||g.forEach(function(l,X){l?_.Xr(G,X,l,Z.layer):t&&_.Xr(G,X,t,Z.layer)});
Y8w(G)},Y8w=function(G){for(var e=0;e<G.afterNewScreenOneOffJobs.length;e++){var r=G.afterNewScreenOneOffJobs[e];
try{r()}catch(Z){_.yx(Z)}}for(e=G.afterNewScreenOneOffJobs.length=0;e<G.afterNewScreenRecurringJobs.length;e++){r=G.afterNewScreenRecurringJobs[e];try{r()}catch(Z){_.yx(Z)}}},cMb=function(G,e){if(e===void 0)for(var r=v6S(),Z=0;Z<r.length;Z++)r[Z]!==void 0&&cMb(G,r[Z]);
else G.cachedVisualElements.forEach(function(O,M){(M=G.cachedRootVisualElements.get(M))&&VRp(G.client,e,M,O)}),G.cachedVisualElements.clear(),G.cachedRootVisualElements.clear(),G.attachTimeout=void 0};var Ht=function(G){G=G===void 0?{layer:0}:G;this.hasRun=!1;this.createScreenConfig=G;G={};this.frO=(G.response=!1,G.playerResponse=!1,G)};
_.K(Ht,wq);Ht.prototype.validate=function(G){return!(!G.data||!G.data.response&&!G.data.playerResponse)};
Ht.prototype.handle=function(G){var e=_.h_(),r=this.createScreenConfig.layer;G.data.response&&G.data.response.trackingParams&&!this.frO.response&&(e.graftServerVe(G.data.response.trackingParams,void 0,r),this.frO.response=!0);G.data.playerResponse&&G.data.playerResponse.trackingParams&&!this.frO.playerResponse&&(e.graftServerVe(G.data.playerResponse.trackingParams,void 0,r),this.frO.playerResponse=!0)};var dq=function(){this.wI=_.C1();this.cH=[];this.yt3=0};
dq.prototype.processChunk=function(G){if(G){for(var e=_.h(this.cH),r=e.next();!r.done;r=e.next())r=r.value,r.validate(G)&&(r.handle(G),r.hasRun=!0);_.jq("np"+this.yt3);this.yt3++}};var KEN=function(G,e,r){this.name=G;this.options=r;this.startTime=(0,_.vG)();this.id=yU.nextSpanId++;this.sessionId=yU.sessionId;this.attributes=e;this.status=0;if(G=yU.stack[yU.stack.length-1])this.parentId=G.id,G.children||(G.children=[]),G.children.push(this);G=_.h(yU.processors);for(e=G.next();!e.done;e=G.next()){e=e.value;try{var Z=r=void 0;(Z=(r=e).onSpanStart)==null||Z.call(r,this)}catch(O){_.FH(O)}}};
KEN.prototype.end=function(G){G=G===void 0?1:G;this.endTime=(0,_.vG)();this.duration=this.endTime-this.startTime;this.status||this.setStatus(G);var e;((e=this.options)==null?void 0:e.active)!==!1&&(yU.stack[yU.stack.length-1]===this?yU.stack.pop():_.FH(Error("Ff`"+String(this.name))));G=_.h(yU.processors);for(e=G.next();!e.done;e=G.next()){e=e.value;try{var r=void 0,Z=void 0;(Z=(r=e).onSpanEnd)==null||Z.call(r,this)}catch(O){_.FH(O)}}};
KEN.prototype.addAttributes=function(G){Object.assign(this.attributes,G)};
KEN.prototype.setStatus=function(G){this.status=G};
var fZS={end:function(){},
addAttributes:function(){},
setStatus:function(){}},yU={initialized:!1,
nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},Xt$={rootSpan:function(){return yU.stack[0]}};var HEp={};var G9_=function(G){this.observers=[];this.value=G};
_.V=G9_.prototype;_.V.subscribe=function(G){var e=this;if(G.idx!=null)throw Error("Gf");G.idx=this.observers.length;this.observers.push(G);return function(){var r=e.observers[e.observers.length-1];e.observers[G.idx]=r;r.idx=G.idx;e.observers.pop()}};
_.V.update=function(G){this.value=G(this.value);this.notify()};
_.V.mutate=function(G){G(this.value);this.notify()};
_.V.set=function(G){this.value=G;this.notify()};
_.V.notify=function(){for(var G=_.h(this.observers),e=G.next();!e.done;e=G.next()){e=e.value;try{e(this.value)}catch(r){}}};var vIS,yM3,JMw;_.Ga=function(G,e,r,Z,O,M,T,E){T=T===void 0?[]:T;E=E===void 0?[]:E;this.buildCommandPayload=G;this.navigate=e;this.handleServiceRequest=r;this.sendAction=Z;this.JSC$12777_screenManager=O;this.commandResolverMap=M;this.autoLogResolverAllowlist=T;this.metaCommandClickLoggingDenylist=E;this.pendingCommands=new Set;this.isTracingEnabled=!1;yM3(this)};
vIS=function(G,e,r){var Z=[_.ugE,W9c],O=LW4,M=GLf,T=_.h_(),E=AMy;r=r===void 0?[]:r;Z=Z===void 0?[]:Z;_.Ga.instance=new _.Ga(G,e,O,M,T,E,r,Z)};
yM3=function(G){if(!G.isTracingEnabled&&aZF("command")){var e=G.resolveCommand;G.resolveCommand=function(r,Z){a:{for(O in r)if(Object.prototype.hasOwnProperty.call(r,O)){var O={commandType:O};break a}O={}}return k$S("command",O,e.bind(this,r,Z))};
G.isTracingEnabled=!0}};
JMw=function(G,e,r){if(!G.commandResolverMap)return!1;var Z=pt4(e,G.commandResolverMap);return Z?((G.autoLogResolverAllowlist.some(function(O){return!!_.a(e,O)})||(r==null?0:r.forceClickLogging))&&Fxb(G,e,r),Z instanceof Promise?Z.then(function(O){O.resolve(e,r)}):Z.resolve(e,r),!0):!1};
_.Ga.prototype.resolveCommand=function(G,e){var r=this,Z=BAE(G);if(JMw(this,G,e))return!0;if(Z)return xcC(this,G,e);if(!this.buildCommandPayload)return sCN(G,"Unhandled command by buildCommandPayload"),!1;var O=this.buildCommandPayload(G,e);if(e==null?0:e.commandController)O.commandController=e.commandController;if(O.type===0){if(!this.navigate)return QCU(G,"navigate"),!1;if(!PQj(O.command))return sCN(G,"Page requests need to specify a url"),!1;_.R("logging_avoid_blocking_during_navigation")&&_.KOA().transition("application_navigating");
G=this.navigate(O)||[];gZj(G).then(function(){r.pendingCommands.delete(O.command)});
return!0}if(O.type===1){if(!this.handleServiceRequest)return QCU(G,"handleServiceRequest"),!1;(e==null?0:e.forceClickLogging)&&Fxb(this,O.command,e);G=this.handleServiceRequest(O);gZj(G).then(function(){r.pendingCommands.delete(O.command)});
return!0}if(O.type===2){if(!this.sendAction)return QCU(G,"sendAction"),!1;Fxb(this,O.command,e);this.sendAction(O);return!0}return!1};
var Fxb=function(G,e,r){if((r==null||!r.disableClickTracking)&&G.JSC$12777_screenManager)if(e.clickTrackingParams&&_.R("log_click_with_layer_from_element_in_command_handler")){var Z;r=r==null?void 0:(Z=r.form)==null?void 0:Z.element;G.JSC$12777_screenManager.clickCommand(e,null,r&&r.getScreenLayer&&r.getScreenLayer())}else e.clickTrackingParams?G.JSC$12777_screenManager.clickCommand(e):!_.R("disable_clicked_visual_element_in_command_handler")&&(r==null?0:r.clickedVisualElement)&&_.fE(G.JSC$12777_screenManager,
r.clickedVisualElement)},BAE=function(G){var e=!!_.a(G,_.LO),r;
G=((r=_.a(G,_.eq))==null?void 0:r.signal)==="CLIENT_SIGNAL";return e||G},xcC=function(G,e,r){var Z=_.a(e,_.LO);
if(Z)var O=(Z==null?void 0:Z.commands)||[];else{var M;if(((M=_.a(e,_.eq))==null?void 0:M.signal)==="CLIENT_SIGNAL"){var T;O=((T=_.a(e,_.eq))==null?void 0:T.actions)||[]}}if(O){(Z=UcS(G,O))&&Fxb(G,e,r);e=_.h(O);for(O=e.next();!O.done;O=e.next()){O=O.value;try{var E=Object.assign({},r);Z&&(E.disableClickTracking=!0);G.resolveCommand(O,E)}catch(b){b instanceof Error&&_.yx(b)}}return!0}sCN(e,"Could not handle the meta command");return!1},UcS=function(G,e){return e.every(function(r){return G.metaCommandClickLoggingDenylist.some(function(Z){return!!_.a(r,
Z)})})},PQj=function(G){var e;
return!((e=_.a(G==null?void 0:G.commandMetadata,_.rJ))==null||!e.url)};var oC=function(){wq.apply(this,arguments)};
_.K(oC,wq);oC.prototype.validate=function(G){var e,r;return!this.hasRun&&!!((e=G.data.response)==null?0:(r=e.onResponseReceivedEndpoints)==null?0:r.length)};
oC.prototype.handle=function(G){var e=_.Ga.instance;G=_.h(G.data.response.onResponseReceivedEndpoints);for(var r=G.next();!r.done;r=G.next())e.resolveCommand(r.value)};var znP,Wxn,NAw;
znP=function(){this.companionCanvasActivation=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=_.Nz();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.sI=function(){Wxn||(Wxn=new znP);return Wxn};
NAw=function(){var G=_.sI();G.miniplayerButtonActivation=!1;G.userActivation=!1;G.playlistWatchPageActivation=!1;G.productDetailsPageActivation=!1;G.miniAppPageActivation=!1;G.playablesDestPageActivation=!1;G.lockupActivation=!1;G.showMiniplayerCommandActivation=!1;G.playlistSuggestionsShelfActivation=!1;G.mediaSessionPipActivation=!1;G.watchPipActivation=!1;G.watchWhileActivation=!1;G.shortsPipActivation=!1;G.companionCanvasActivation=!1};
_.LxW=function(){var G=_.sI(),e=G.mediaSessionPipActivation,r=G.watchPipActivation,Z=G.watchWhileActivation,O=G.playlistWatchPageActivation,M=G.lockupActivation,T=G.showMiniplayerCommandActivation,E=G.navigatingAwayFromWatchDeletedVideo,b=G.shortsPipActivation,w=G.playlistSuggestionsShelfActivation,q=G.productDetailsPageActivation,t=G.miniAppPageActivation,g=G.playablesDestPageActivation,l=G.companionCanvasActivation;return!G.miniplayerButtonActivation&&!O&&!w&&!q&&!t&&!g&&!M&&!T&&!e&&!r&&!Z&&!b&&
!l||E};var WzS;_.Q_=_.FJ("FEwhat_to_watch","/",3854);_.NbS=_.FJ("FEdownloads","/feed/downloads",42352);WzS=_.FJ("FEmusic_offline","browse/FEmusic_offline",42352);var cS=function(G,e){e=e===void 0?[]:e;var r=r===void 0?[]:r;e=Bcq.apply(null,[xuU.apply(null,_.mY(e))].concat(_.mY(r)));this.store=WZa(G,void 0,e)};
cS.prototype.getState=function(){return this.store.getState()};
cS.prototype.dispatch=function(G){return this.store.dispatch(G)};
cS.prototype.subscribe=function(G){return this.store.subscribe(G)};
cS.prototype.replaceReducer=function(G){return this.store.replaceReducer(G)};
cS.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.IC=function(G,e,r){var Z=e(G.getState());return G.subscribe(function(){var O=e(G.getState());if(O!==Z){var M=Z;Z=O;r(O,M)}})};var KFs;_.bt=function(G,e,r){return _.UK({type:"REPLACE_ENTITY",payload:{entityPayload:r,entityType:G,key:e}})};
KFs=function(G){return _.UK({type:"REPLACE_ENTITIES",payload:G})};
_.g7=function(G,e,r,Z){return _.UK({type:"UPDATE_ENTITY",payload:{entityPayload:r,entityType:G,key:e,mergeOption:Z}})};var PJa=function(G){var e=this;G=G===void 0?[]:G;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;G.forEach(function(r){e.append(r)})};
_.V=PJa.prototype;_.V.getLength=function(){return this.totalLength};
_.V.append=function(G){var e=this.arrays.length===0?!1:(e=this.arrays[this.arrays.length-1])&&e.buffer===G.buffer&&e.byteOffset+e.length===G.byteOffset;e?(e=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(e.buffer,e.byteOffset,e.length+G.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(G);this.totalLength+=G.length};
_.V.split=function(G){for(var e=new PJa,r=new PJa,Z=_.h(this.arrays),O=Z.next();!O.done;O=Z.next())O=O.value,G>=O.length?(e.append(O),G-=O.length):G?(e.append(new Uint8Array(O.buffer,O.byteOffset,G)),r.append(new Uint8Array(O.buffer,O.byteOffset+G,O.length-G)),G=0):r.append(O);return{headView:e,tailView:r}};
_.V.isFocused=function(G){return G>=this.arrayPos&&G<this.arrayPos+this.arrays[this.arrayIdx].length};
_.V.focus=function(G){if(!this.isFocused(G))for(G<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=G&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var GEw=function(G,e){G.focus(e);return G.arrays[G.arrayIdx][e-G.arrayPos]};(function(){var G=function(Z){return new Uint8Array(Z)},e=function(Z){for(var O=new Uint8Array(Z.length),M=0;M<Z.length;M++)O[M]=Z[M];
return O},r=new Uint8Array([1]);
return r.length===1&&r[0]===1?G:e})();
var yof=Array(1024),YIq=window.TextDecoder?new TextDecoder:void 0,FEA=window.TextEncoder?new TextEncoder:void 0;var xla=function(G){this.arrayView=G;this.pos=0;this.pendingTagAndType=-1},zn=function(G){var e=GEw(G.arrayView,G.pos);
++G.pos;if(e<128)return e;for(var r=e&127,Z=1;e>=128;)e=GEw(G.arrayView,G.pos),++G.pos,Z*=128,r+=(e&127)*Z;return r},Uly=function(G,e){var r=G.pendingTagAndType;
for(G.pendingTagAndType=-1;G.pos+1<=G.arrayView.totalLength;){r<0&&(r=zn(G));var Z=r>>3,O=r&7;if(Z===e)return!0;if(Z>e){G.pendingTagAndType=r;break}r=-1;switch(O){case 0:zn(G);break;case 1:G.pos+=8;break;case 2:Z=zn(G);G.pos+=Z;break;case 5:G.pos+=4}}return!1};var WEU=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=Bqs(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},L_=function(G,e){e=G.pos+e;
if(!(G.buf.length>=e)){for(var r=G.buf.length*2;r<e;)r*=2;G.buf=Bqs(r,G.wasm,G.buf.subarray(0,G.pos));G.view=new DataView(G.buf.buffer,G.buf.byteOffset,G.buf.byteLength)}},Nn=function(G,e){if(e>268435455){L_(G,4);
for(var r=e&1073741823,Z=0;Z<4;Z++)G.view.setUint8(G.pos,r&127|128),r>>=7,G.pos+=1;e=Math.floor(e/268435456)}for(L_(G,4);e>127;)G.view.setUint8(G.pos,e&127|128),e>>=7,G.pos+=1;G.view.setUint8(G.pos,e);G.pos+=1};for(var Nqy={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},zeF={},eQv=_.h(Object.entries(Nqy)),r$y=eQv.next();!r$y.done;r$y=eQv.next()){var Z5W=_.h(r$y.value),O5P=Z5W.next().value,MHc=Z5W.next().value,VHy=O5P,hQy=MHc;hQy&&(zeF[hQy]=VHy)};var GtU=function(G,e){G=G===void 0?{}:G;switch(e.type){case "ENTITY_LOADED":return e.payload.reduce(function(Z,O){var M,T=(M=O.options)==null?void 0:M.persistenceOption;if(T&&T!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&T!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return Z;if(!O.entityKey)return _.yx(Error("If")),Z;if(O.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!O.payload)return O=new _.Cr("REPLACE entity mutation is missing a payload",{entityKey:O.entityKey}),_.yx(O),Z;var E=(0,_.c2.getAnyKey)(O.payload);
return rL_(Z,E,O.entityKey,O.payload[E])}if(O.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{O=O.entityKey;try{var b=_.Wn(O).entityType;E=rL_(Z,b,O);break a}catch(t){if(t instanceof Error){O=new _.Cr("Failed to deserialize entity key",{entityKey:O,originalMessage:t.message});_.yx(O);E=Z;break a}throw t;}E=void 0}return E}if(O.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!O.payload)return O=new _.Cr("UPDATE entity mutation is missing a payload",{entityKey:O.entityKey}),_.yx(O),Z;E=(0,_.c2.getAnyKey)(O.payload);
var w,q;return Zhf(Z,E,O.entityKey,O.payload[E],(w=O.fieldMask)==null?void 0:(q=w.mergeOptions)==null?void 0:q.repeatedFieldsMergeOption)}return Z},G);
case "REPLACE_ENTITY":var r=e.payload;return rL_(G,r.entityType,r.key,r.entityPayload);case "REPLACE_ENTITIES":return Object.keys(e.payload).reduce(function(Z,O){var M=e.payload[O];return Object.keys(M).reduce(function(T,E){return rL_(T,O,E,M[E])},Z)},G);
case "UPDATE_ENTITY":return r=e.payload,Zhf(G,r.entityType,r.key,r.entityPayload,r.mergeOption);default:return G}};var Ohs;var TGn=!1,pE,CE,uJ,nE,mE,DYj=function(G){_.pB.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!TGn){var e,r=new Uint8Array(256),Z=new Uint8Array(256);var O=1;for(e=0;e<256;e++)r[O]=e,Z[e]=O,O^=O<<1^(O>>7&&283);pE=new Uint8Array(256);CE=rf(256);uJ=rf(256);nE=rf(256);mE=rf(256);for(var M=0;M<256;M++){O=M?Z[255^r[M]]:0;O^=O<<1^O<<2^O<<3^O<<4;O=O&255^O>>>8^99;pE[M]=O;e=O<<1^(O>>7&&283);var T=e^O;CE[M]=e<<24|O<<16|O<<8|T;uJ[M]=T<<24|CE[M]>>>8;nE[M]=O<<24|uJ[M]>>>
8;mE[M]=O<<24|nE[M]>>>8}TGn=!0}O=rf(44);for(r=0;r<4;r++)O[r]=G[4*r]<<24|G[4*r+1]<<16|G[4*r+2]<<8|G[4*r+3];for(Z=1;r<44;r++)G=O[r-1],r%4||(G=(pE[G>>16&255]^Z)<<24|pE[G>>8&255]<<16|pE[G&255]<<8|pE[G>>>24],Z=Z<<1^(Z>>7&&283)),O[r]=O[r-4]^G;this.key=O};
_.K(DYj,_.pB);
DYj.prototype.encrypt=function(G){var e=G.length;G=new Uint8Array(G.buffer.slice(G.byteOffset,G.byteOffset+e));for(var r=this.cipherBlock,Z=0;Z<e&&this.blockOffset<16;)G[Z++]^=r[this.blockOffset++];for(var O=e-(e-Z)%16;Z<O;)EzS(this),G[Z++]^=r[0],G[Z++]^=r[1],G[Z++]^=r[2],G[Z++]^=r[3],G[Z++]^=r[4],G[Z++]^=r[5],G[Z++]^=r[6],G[Z++]^=r[7],G[Z++]^=r[8],G[Z++]^=r[9],G[Z++]^=r[10],G[Z++]^=r[11],G[Z++]^=r[12],G[Z++]^=r[13],G[Z++]^=r[14],G[Z++]^=r[15];if(Z<e)for(EzS(this),this.blockOffset=0;Z<e;)G[Z++]^=
r[this.blockOffset++];return G};
var EzS=function(G){for(var e=G.key,r=G.counter[0]^e[0],Z=G.counter[1]^e[1],O=G.counter[2]^e[2],M=G.counter[3]^e[3],T=3;T>=0&&!(G.counter[T]=-~G.counter[T]);T--);for(var E,b,w=4;w<40;)T=CE[r>>>24]^uJ[Z>>16&255]^nE[O>>8&255]^mE[M&255]^e[w++],E=CE[Z>>>24]^uJ[O>>16&255]^nE[M>>8&255]^mE[r&255]^e[w++],b=CE[O>>>24]^uJ[M>>16&255]^nE[r>>8&255]^mE[Z&255]^e[w++],M=CE[M>>>24]^uJ[r>>16&255]^nE[Z>>8&255]^mE[O&255]^e[w++],r=T,Z=E,O=b;G=G.cipherBlock;T=e[40];G[0]=pE[r>>>24]^T>>>24;G[1]=pE[Z>>16&255]^T>>16&255;G[2]=
pE[O>>8&255]^T>>8&255;G[3]=pE[M&255]^T&255;T=e[41];G[4]=pE[Z>>>24]^T>>>24;G[5]=pE[O>>16&255]^T>>16&255;G[6]=pE[M>>8&255]^T>>8&255;G[7]=pE[r&255]^T&255;T=e[42];G[8]=pE[O>>>24]^T>>>24;G[9]=pE[M>>16&255]^T>>16&255;G[10]=pE[r>>8&255]^T>>8&255;G[11]=pE[Z&255]^T&255;T=e[43];G[12]=pE[M>>>24]^T>>>24;G[13]=pE[r>>16&255]^T>>16&255;G[14]=pE[Z>>8&255]^T>>8&255;G[15]=pE[O&255]^T&255};var i5n=!1;(function(){var G=function(Z){return new Uint8Array(Z)},e=function(Z){for(var O=new Uint8Array(Z.length),M=0;M<Z.length;M++)O[M]=Z[M];
return O},r=new Uint8Array([1]);
return r.length===1&&r[0]===1?G:e})();
var ct;var wdb=function(G){a:{if(!i5n&&!Tc){if(ct){var e=ct;break a}ct=(e=window.crypto)==null?void 0:e.subtle;var r,Z,O;if(((r=ct)==null?0:r.importKey)&&((Z=ct)==null?0:Z.sign)&&((O=ct)==null?0:O.encrypt)){e=ct;break a}ct=void 0}e=void 0}e&&(this.nativeEncryptor=new b5P(G,e));this.encryptorPolyfill=new vzy(G)};
wdb.prototype.encrypt=function(G,e){var r=this,Z;return _.D(function(O){switch(O.nextAddress){case 1:if(!r.nativeEncryptor){O.jumpTo(2);break}_.jr(O,3);return O.yield(r.nativeEncryptor.encrypt(G,e),5);case 5:return O.return(O.yieldResult);case 3:Z=_.k5(O),_.FH(Z),i5n=!0,r.nativeEncryptor=void 0;case 2:return O.return(r.encryptorPolyfill.encrypt(G,e))}})};
wdb.prototype.decrypt=function(G,e){return this.encrypt(G,e)};
var b5P=function(G,e){this.JSC$12850_aesKey=G;this.subtleCrypto=e};
b5P.prototype.encrypt=function(G,e){var r=this,Z;return _.D(function(O){if(O.nextAddress==1)return _.jr(O,2),O.yield($Yv(r,G,e),4);if(O.nextAddress!=2)return O.return(O.yieldResult);Z=_.k5(O);_.FH(Z);i5n=!0;throw Z;})};
var $Yv=function(G,e,r){var Z,O;return _.D(function(M){switch(M.nextAddress){case 1:if(G.cryptoKey){M.jumpTo(2);break}return M.yield(G.subtleCrypto.importKey("raw",G.JSC$12850_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:G.cryptoKey=M.yieldResult;case 2:return Z={name:"AES-CTR",counter:r,length:128},M.yield(G.subtleCrypto.encrypt(Z,G.cryptoKey,e),4);case 4:return O=M.yieldResult,M.return(new Uint8Array(O))}})},vzy=function(G){this.JSC$12853_aesKey=G};
vzy.prototype.encrypt=function(G,e){this.encryptor||(this.encryptor=new DYj(this.JSC$12853_aesKey));for(var r=this.encryptor,Z=0;Z<4;Z++)r.counter[Z]=e[Z*4]<<24|e[Z*4+1]<<16|e[Z*4+2]<<8|e[Z*4+3];r.blockOffset=16;return this.encryptor.encrypt(G)};
vzy.prototype.decrypt=function(G,e){return this.encrypt(G,e)};var SaE={},hJf=bA("yt-idb-pref-storage",{objectStores:(SaE.prefs={addedAtVersion:1},SaE),shared:!1,upgrade:function(G,e){e(1)&&WG(zc(G,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.Ye=function(G){this.token=G};
_.Ye.getInstance=function(){return _.D(function(G){return G.return(new Promise(function(e){_.iA().then(function(r){r?(_.Ye.instance||(_.Ye.instance=new _.Ye(r)),e(_.Ye.instance)):e(void 0)})}))})};
_.Ye.prototype.get=function(G){var e=this,r,Z,O;return _.D(function(M){if(M.nextAddress==1)return M.yield(Tk_(e.token),2);if(M.nextAddress!=3)return r=M.yieldResult,M.yield(r.get("prefs",G),3);Z=M.yieldResult;if(!Z)return M.return();O=(0,_.vG)();return Z.expirationTimestampMs<=O?M.return():M.return(Z.value)})};
_.Ye.prototype.set=function(G,e,r){r=r===void 0?31536E3:r;var Z=this,O,M,T;return _.D(function(E){if(E.nextAddress==1)return O=(0,_.vG)(),M={key:G,value:e,expirationTimestampMs:O+r*1E3},E.yield(Tk_(Z.token),2);T=E.yieldResult;return E.yield(T.put("prefs",M),0)})};
_.Ye.prototype.remove=function(G){var e=this,r;return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(Tk_(e.token),2);r=Z.yieldResult;return Z.yield(r.delete("prefs",G),0)})};var y_={},qaE=(y_.INVALID_ENCODER_VERSION="Invalid encoder version",y_.KEY_CREATION_FAILED="Failed to create encoder key",y_.UNKNOWN_DECODE_ERROR="Failed to decode PES data",y_.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",y_.WRONG_DATA_TYPE="Encoder cannot process the data type",y_),ZH=function(G,e){e=e===void 0?{}:e;_.Cr.call(this,qaE[G],Object.assign({},{name:"PESEncoderError",type:G},e));this.type=G;this.level="WARNING";Object.setPrototypeOf(this,ZH.prototype)};
_.K(ZH,_.Cr);var Ao=function(){};
Ao.prototype.encode=function(G,e){try{return this.encodeImpl(G,e)}catch(r){bhq(r,EBy)}};
Ao.prototype.decode=function(G,e){try{return this.decodeImpl(G,e)}catch(r){bhq(r,ihy)}};
var tHn=function(G,e,r){var Z;return _.D(function(O){if(O.nextAddress==1)return _.jr(O,2),O.yield(G.decodeAsyncImpl(e,r),4);if(O.nextAddress!=2)return O.return(O.yieldResult);Z=_.k5(O);bhq(Z,ihy);_.HL(O)})};
Ao.prototype.decodeAsyncImpl=function(G,e){return Promise.resolve(this.decodeImpl(G,e))};var Fr=function(G,e){this.aesEncryptor=G;this.aesEncryptorAsync=e};
_.K(Fr,Ao);Fr.prototype.encodeImpl=function(G,e){e=vB4(e);G=(new TextEncoder).encode(JSON.stringify(G));return this.aesEncryptor.encrypt(G,e)};
Fr.prototype.decodeImpl=function(G,e){if(!(G instanceof Uint8Array))throw D6F(1);var r=new TextDecoder;e=vB4(e);G=this.aesEncryptor.decrypt(G,e);return JSON.parse(r.decode(G))};
Fr.prototype.decodeAsyncImpl=function(G,e){var r=this,Z,O,M;return _.D(function(T){if(T.nextAddress==1){if(!(G instanceof Uint8Array))throw D6F(1);Z=new TextDecoder;O=vB4(e);return T.yield(r.aesEncryptorAsync.decrypt(G,O),2)}M=T.yieldResult;return T.return(JSON.parse(Z.decode(M)))})};var wh$={accountLinkStatusEntity:hjP,booleanEntity:p9y,buttonEntity:dmn,captionTrack:v0b,channelHandle:D4S,chipEntity:O0S,commerceAcquisitionClientPayloadEntity:rE3,commerceCartListEntity:ZXn,compositeSourceEntity:Hhl,multiviewStagingEntity:d6j,contextNoteFeedEntityPayload:jey,contextNoteUserRatingEntityPayload:aiE,continuationTokenEntity:Bqj,downloadQualityPickerEntity:ptw,downloadsPageRefreshTokenEntity:urv,downloadsPageViewConfigurationEntity:eJn,downloadStatusEntity:CJS,dismissState:MTy,sfvAudioItemCurrentlyPlayingEntity:BFP,
emojiFountainDataEntity:foS,emojiCustomizationSetEntity:KNP,fakeChannel:n6n,fakePlaylist:mwj,fakePlaylistEntryCollection:c9E,fakeVideo:y9P,fakeVideoDescription:A93,featuredProductsEntity:RJW,flowStateEntity:Z6v,iconBadgeEntity:OXw,interstitialInteractionStateEntity:aL3,likeButtonAnimationEntity:rLl,liveChatPollStateEntity:saS,dataFreshnessEntity:aoE,liveViewerLeaderboardChatEntryPointStateEntity:k6l,liveViewerLeaderboardPointsEntity:Hb3,liveReactionsDataEntity:k3j,logoEntity:RjE,macroMarkerEntity:ZhP,
mainDownloadsLibraryEntity:ne3,mainDownloadsListEntity:mlW,mainPlaylistDownloadStateEntity:YIb,mainPlaylistEntity:xlE,mainPlaylistVideoEntity:PJE,mainVideoDownloadStateEntity:yoP,mainVideoEntity:NqW,markersEngagementPanelSyncEntity:Ohj,markersVisibilityOverrideEntity:MX3,musicAlbumReleaseDetail:CrC,musicAlbumReleaseDownloadMetadataEntity:oBj,musicAlbumRelease:phP,musicAlbumReleaseUserDetail:u9E,musicArtistDetail:m6l,musicArtist:nBW,musicArtistUserDetail:cLW,musicDownloadsLibraryEntity:sTC,musicLibraryEdit:YZb,
musicLibraryStatusEntity:yLb,musicPlaylist:ALW,musicPlaylistDownloadMetadataEntity:QTn,musicShare:JLl,musicTrackDetail:x6l,musicTrackDownloadMetadataEntity:I7w,musicTrack:Bkl,musicTrackUserDetail:PrS,offlineOrchestrationActionWrapperEntity:wkP,offlineVideoPolicy:$Gb,offlineVideoStreams:SD3,offlineabilityEntity:AoP,orchestrationWebSamplingEntity:FEc,pageHeaderEntity:$mb,pdpStateEntity:MIy,pinnedProductEntity:jT3,playbackData:qD3,playerStateEntity:VXw,quantityIncrementerEntity:VIv,refresh:tUn,saveToPlaylistListEntity:bKc,
selectedChipIndexEntityPayload:hJP,settingEntity:ItW,stringEntity:C_b,suggestedFeedbackChipStateEntity:Tkl,transfer:g0n,trendingOfferEntity:a7P,videoDownloadContextEntity:lsP,videoOverviewAsyncDataEntity:dRv,videoPlaybackPositionEntity:QGc,votingEntity:gmw,ytMainChannelEntity:LEj,youchatPendingResponseEntity:D6y,ytMainDownloadedVideoEntity:Job,ytMainVideoEntity:GtW};var gzE,RQE,TF,jTS,a7f,Xdw,f8W,Kgy,a8w;gzE=function(G,e){this.JSC$12872_wrapped=G;this.JSC$12872_encoderRegistry=e;this.changedKeys={}};
RQE=function(G,e){return l8P(G.JSC$12872_encoderRegistry,e.version).decode(e.data,e.key)};
_.jYb=function(G,e,r){return G.JSC$12872_wrapped.objectStore("EntityStore").get(e).then(function(Z){if(Z){if(r&&Z.entityType!==r)throw Error("Jf");return RQE(G,Z)}})};
TF=function(G,e,r){return r?(r=r.map(function(Z){return _.jYb(G,Z,e)}),W_.all(r)):G.JSC$12872_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(e)).then(function(Z){return Z.map(function(O){return RQE(G,O)})})};
_.RJy=function(G,e,r){var Z=LEs(e),O=l8P(G.JSC$12872_encoderRegistry,1),M=Object.assign({},e);return G.JSC$12872_wrapped.objectStore("EntityStore").get(Z).then(function(T){if(T){if(T.entityType!==r)throw Error("Jf");M.entityMetadata||(T=RQE(G,T),M.entityMetadata=T.entityMetadata)}}).then(function(){var T={key:Z,
entityType:r,data:O.encode(M,Z),version:1};return W_.all([G.JSC$12872_wrapped.objectStore("EntityStore").put(T),a8w(G,M,r)])}).then(function(){Xdw(G,Z,r);
return Z})};
jTS=function(G,e){var r=_.Wn(e).entityType;return W_.all([G.JSC$12872_wrapped.objectStore("EntityStore").delete(e),Kgy(G,e)]).then(function(){Xdw(G,e,r)})};
a7f=function(G,e,r,Z){var O=l8P(G.JSC$12872_encoderRegistry,1);return _.jYb(G,e,Z).then(function(M){if(M){M=coA(M,r);var T={key:e,entityType:Z,data:O.encode(M,e),version:1};return W_.all([G.JSC$12872_wrapped.objectStore("EntityStore").put(T),a8w(G,M,Z)])}}).then(function(){Xdw(G,e,Z);
return e})};
Xdw=function(G,e,r){var Z=G.changedKeys[r];Z||(Z=new Set,G.changedKeys[r]=Z);Z.add(e)};
f8W=function(G,e,r){var Z=LEs(e);r=$6N(r);if(!r)return W_.resolve([]);r=new r(e);G=G.JSC$12872_wrapped.objectStore("EntityAssociationStore");e=[];r=_.h(r.getAssociations());for(var O=r.next();!O.done;O=r.next())e.push(G.put({parentEntityKey:Z,childEntityKey:O.value}));return W_.all(e).then(function(M){return M.map(function(T){return T[1]})})};
Kgy=function(G,e){return G.JSC$12872_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(e))};
a8w=function(G,e,r){var Z=LEs(e);return Kgy(G,Z).then(function(){return f8W(G,e,r)})};var kES=function(){};
_.K(kES,Ao);kES.prototype.encodeImpl=function(G){return G};
kES.prototype.decodeImpl=function(G){if(G instanceof Uint8Array)throw D6F(0);return G};var tX$=function(){this.cacheMap={};this.cacheMap[0]=new kES;if(!_.R("aes_pes_encoder_killswitch")){var G=this.cacheMap;try{var e=_.IZ();var r=vB4(e);var Z=new Fr(new vzy(r),new wdb(r))}catch(O){throw G=O instanceof Error?new ZH("KEY_CREATION_FAILED",{originalMessage:O.message}):new ZH("KEY_CREATION_FAILED"),_.yx(G),G;}G[1]=Z}},l8P=function(G,e){e=e===void 0?0:e;
G=G.cacheMap[e];if(!G)throw e=new ZH("INVALID_ENCODER_VERSION",{encoderVersion:e}),_.yx(e),e;return G};var Mr=function(G,e){_.pB.call(this);this.token=G;this.JSC$12886_encoderRegistry=e;this.observers=[];G=new _.O_.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.IZ());G.onmessage=this.JSC$12886_handleMessage.bind(this);this.channel=G};
_.K(Mr,_.pB);_.hh=function(G,e,r){var Z,O,M,T;return _.D(function(E){if(E.nextAddress==1)return E.yield(VX4(G.token),2);if(E.nextAddress!=3)return Z=E.yieldResult,E.yield(_.Ma(Z,["EntityStore","EntityAssociationStore"],e,function(b){O=new gzE(b,G.JSC$12886_encoderRegistry);return r(O)}),3);
M=E.yieldResult;O&&(T=O.changedKeys,Object.keys(T).length>0&&(G.channel.postMessage(T),H5y(G,T)));return E.return(M)})};
Mr.prototype.observe=function(G){var e=this;this.observers.push(G);return function(){var r=e.observers.indexOf(G);r>=0&&e.observers.splice(r,1)}};
var wIq=function(G){var e;return _.D(function(r){if(r.nextAddress==1)return r.yield(_.hh(G,{mode:"readonly",enableRetries:!0},function(Z){return Z.JSC$12872_wrapped.objectStore("EntityStore").getAll()}),2);
e=r.yieldResult;return r.return(Promise.all(e.filter(function(Z){return!!Z}).map(function(Z){var O,M;
return _.D(function(T){if(T.nextAddress==1){O=Z.key;M=Z.entityType;var E=T.yield;var b=tHn(l8P(G.JSC$12886_encoderRegistry,Z.version),Z.data,Z.key);return E.call(T,b,2)}return T.return({key:O,entityType:M,data:T.yieldResult})})})))})};
Mr.prototype.JSC$12886_handleMessage=function(G){H5y(this,G.data)};
var H5y=function(G,e){G=_.h(G.observers);for(var r=G.next();!r.done;r=G.next())r=r.value,r(e)};
Mr.prototype.disposeInternal=function(){this.channel.close()};
var SZ_;var Jo,ozE,ALy;Jo={};_.dYE=(Jo.mainVideoEntity="mainVideoEntityActionMetadata",Jo.mainPlaylistEntity="mainPlaylistEntityActionMetadata",Jo.musicTrack="musicTrackEntityActionMetadata",Jo.musicPlaylist="musicPlaylistEntityActionMetadata",Jo);ozE=new _.Gz("DOWNLOADS_ENTITY_TYPE_MAP");_.S6=_.GF("","downloadsPageViewConfigurationEntity");ALy=_.GF("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.jqA=_.GF("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.GF("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.GF("SMART_DOWNLOADS_ENABLED","settingEntity");_.GF("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var Hh_=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var CrS=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var sYE={isLeaderTab:!0};var E0N={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var Bt=window,oI=Bt.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",DCN=Bt.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||s6,wbS=Bt.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||eM,UoW=Bt.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||Pt3,B8W=Bt.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||VVn,VuS=Bt.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||bWc;var TDq;CQ({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 OJ4=$Ci(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(G){return G}}}),pBF=$Ci(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(G){return G}}}),ziy=new Map;var Vwa=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],eKa;var QYE=function(G){return _.UK({type:"SET_EPHEMERAL_ACTION",payload:G})};var I8v={ephemeralAction:null};var pdl=HU({ephemeralAction:function(G,e){G=G===void 0?I8v.ephemeralAction:G;switch(e.type){case "SET_EPHEMERAL_ACTION":return e.payload;default:return G}}});var CNy=function(G){return _.UK({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:G})};var uuC={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var nzC={sharedUi:uuC,a11y:I8v,entities:{}},sAq={sharedUi:function(G,e){G=G===void 0?uuC:G;switch(e.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},G,{animatedThumbnailEnabled:e.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},G,{inlinePreviewEnabled:e.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},G,{currentPageType:e.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},G,{currentPageSubType:e.payload});
case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},G,{persistentPanelVisible:e.payload});default:return G}},
a11y:pdl,entities:eJN};var bJp={playlistId:"",inviteLinkURL:""};var mYl={continuationCommand:{}};var arF=HU({continuationCommand:function(G,e){G=G===void 0?mYl.continuationCommand:G;switch(e.type){case "SET_CONTINUATION_COMMAND":return e.payload.continuationCommand;default:return G}}});var wZy={currentFormId:"",commandsMap:{}};var XZF=HU({isLeaderTab:function(G,e){G=G===void 0?sYE.isLeaderTab:G;switch(e.type){case "SET_IS_LEADER_TAB":var r,Z;return(Z=e==null?void 0:(r=e.payload)==null?void 0:r.isLeaderTab)!=null?Z:G;default:return G}}});var YaE;_.c$P=function(G){return _.UK({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:G}})};
YaE=function(G){return _.UK({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:G}})};var xe={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var o_N=HU({isDesktopSmallWidth:function(G,e){G=G===void 0?xe.isDesktopSmallWidth:G;switch(e.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return e.payload.isDesktopSmallWidth;default:return G}},
isShortsActive:function(G,e){G=G===void 0?xe.isShortsActive:G;switch(e.type){case "SET_IS_SHORTS_ACTIVE":return e.payload.isShortsActive;default:return G}},
isWatchWhileMode:function(G,e){G=G===void 0?xe.isWatchWhileMode:G;switch(e.type){case "SET_IS_WATCH_WHILE_MODE":return e.payload.isWatchWhileMode;default:return G}},
playerState:function(G,e){G=G===void 0?xe.playerState:G;switch(e.type){case "SET_PLAYER_STATE":return e.payload.playerState;default:return G}},
isFullscreen:function(G,e){G=G===void 0?xe.isFullscreen:G;switch(e.type){case "SET_IS_FULLSCREEN":return e.payload.isFullscreen;default:return G}},
isSmallScreenSqueezeback:function(G,e){G=G===void 0?xe.isSmallScreenSqueezeback:G;switch(e.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return e.payload.isSmallScreenSqueezeback;default:return G}},
isShortsPipActive:function(G,e){G=G===void 0?xe.isShortsPipActive:G;switch(e.type){case "SET_IS_SHORTS_PIP_ACTIVE":return e.payload.isShortsPipActive;default:return G}},
isPlaybackStarted:function(G,e){G=G===void 0?xe.isPlaybackStarted:G;switch(e.type){case "SET_IS_PLAYBACK_STARTED":return e.payload.isPlaybackStarted;default:return G}}});var S1a={currentMode:"canvas-hidden"};var IrS=function(){return function(G){return function(e){var r=G(e);_.Pi(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[e],!0);return r}}};var y$v,mE_;y$v=new _.G1;_.Ub=new _.Gz("WATCH_PLAYER_PROMISE_TOKEN");_.A$W=new _.G1;_.FgC=new _.Gz("SHORTS_PLAYER_PROMISE_TOKEN");mE_=new _.Gz("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var pZ_=function(){return function(G){return function(e){e.type==="ENTITY_LOADED"&&_.v_().resolve(_.Ub).then(function(r){var Z;(Z=r.dispatchReduxAction)==null||Z.call(r,e)});
return G(e)}}};var J$E={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var K6N=HU({additionalContext:function(G,e){G=G===void 0?J$E.additionalContext:G;switch(e.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var r;return(r=e.payload)!=null?r:"";default:return G}},
impersonatedChannelUrl:function(G,e){G=G===void 0?J$E.impersonatedChannelUrl:G;switch(e.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var r;return(r=e.payload)!=null?r:"";default:return G}},
selectedVideoIds:function(G,e){G=G===void 0?J$E.selectedVideoIds:G;switch(e.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var r={};return Object.assign({},G,(r[e.payload]=!0,r));case "VIDEO_UNSELECTED":return e=e.payload,G=Object.assign({},G),delete G[e],G;default:return G}}});var BGE={parentClickTrackingParams:""};var fry=HU({parentClickTrackingParams:function(G,e){G=G===void 0?BGE.parentClickTrackingParams:G;switch(e.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return e.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return G}}});var xYC=function(G){return _.UK({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:G})};var PNE={stepStates:{}};var kJU=HU({stepStates:function(G,e){G=G===void 0?PNE.stepStates:G;switch(e.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var r=G,Z=e.payload,O,M,T;G={};e={selectionStates:Object.assign({},(T=(O=r[Z.stepId])==null?void 0:O.selectionStates)!=null?T:{},(G[Z.token]={isSelected:Z.isSelected},G)),userQuery:(M=r[Z.stepId])==null?void 0:M.userQuery};O={};return Object.assign({},r,(O[Z.stepId]=e,O));case "TALK_TO_RECS_UPDATE_USER_QUERY":return O=G,M=e.payload,T=
{selectionStates:Object.assign({},(Z=(r=O[M.stepId])==null?void 0:r.selectionStates)!=null?Z:{}),userQuery:{userQuery:M.userQuery,token:M.userQueryToken}},r={},Object.assign({},O,(r[M.stepId]=T,r));default:return G}}});var UYn,zQ3,NGl;UYn=function(G){return _.UK({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:G})};
zQ3=function(G){return _.UK({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:G})};
_.qS=function(G){return _.UK({type:"SET_CURRENT_PAGE_TYPE",payload:G})};
_.Wgw=function(G){return _.UK({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:G})};
NGl=function(G){return _.UK({type:"SET_CHIP_BAR_IS_STICKY",payload:G})};var twa={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"};_.Lgl=function(G){return _.UK({type:"SET_PLAYER_STATE",payload:{playerState:G}})};var Pt={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:lr4(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var HJA=HU({isTheaterMode:function(G,e){G=G===void 0?lr4():G;switch(e.type){case "SET_IS_THEATER_MODE":return e.payload.isTheaterMode;default:return G}},
isWatchActive:function(G,e){G=G===void 0?Pt.isWatchActive:G;switch(e.type){case "SET_IS_WATCH_ACTIVE":return e.payload.isWatchActive;default:return G}},
isLearningJourneyActive:function(G,e){G=G===void 0?Pt.isLearningJourneyActive:G;switch(e.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return e.payload.isLearningJourneyActive;default:return G}},
isWatchFullscreen:function(G,e){G=G===void 0?Pt.isWatchFullscreen:G;switch(e.type){case "SET_IS_WATCH_FULLSCREEN":return e.payload.isWatchFullscreen;default:return G}},
isWatchNarrowWidth:function(G,e){G=G===void 0?Pt.isWatchNarrowWidth:G;switch(e.type){case "SET_IS_WATCH_NARROW_WIDTH":return e.payload.isWatchNarrowWidth;default:return G}},
isSwatcherooActive:function(G,e){G=G===void 0?Pt.isSwatcherooActive:G;switch(e.type){case "SET_IS_SWATCHEROO_ACTIVE":return e.payload.isSwatcherooActive;default:return G}},
isWatchRetroMode:function(G,e){G=G===void 0?Pt.isWatchRetroMode:G;switch(e.type){case "SET_IS_WATCH_RETRO_MODE":return e.payload.isWatchRetroMode;default:return G}},
isLiveChatCollapsed:function(G,e){G=G===void 0?Pt.isLiveChatCollapsed:G;switch(e.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return e.payload.isLiveChatCollapsed;default:return G}},
openEngagementPanels:function(G,e){G=G===void 0?Pt.openEngagementPanels:G;var r=[].concat(_.mY(G));switch(e.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return r.push(e.payload.panelToAdd),r;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return r.splice(r.indexOf(e.payload.panelToRemove),1),r;default:return G}},
playerState:function(G,e){G=G===void 0?Pt.playerState:G;switch(e.type){case "SET_PLAYER_STATE":return e.payload.playerState;default:return G}},
watchScrollTop:function(G,e){G=G===void 0?Pt.watchScrollTop:G;switch(e.type){case "SET_WATCH_SCROLL_TOP":return e.payload.watchScrollTop;default:return G}},
watchWindowSize:function(G,e){G=G===void 0?Pt.watchWindowSize:G;switch(e.type){case "SET_WATCH_WINDOW_SIZE":return e.payload.watchWindowSize;default:return G}}});var GPE={surveyFeedbackData:{feedbackTokens:[]}};var d9f=HU({surveyFeedbackData:function(G,e){G=G===void 0?GPE.surveyFeedbackData:G;switch(e.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return e.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},G,e.payload);default:return G}}});var RK_={};var uL4=void 0;_.R("web_enable_redux_store_on_demand")||(uL4=CBS());var eHn=function(G,e,r){var Z=this;this.listId=G;this.JSC$13030_updateCallback=e;this.isOfflineVideoCallback=r;_.Yt().subscribe(function(){Z.handleUpdate()})};
eHn.prototype.getPlaylistData=function(){var G=_.Yt().getState().entities;if(this.listId&&this.listId!=="PPSV"){var e=LFU(G,this.listId,!0),r=_.GF(this.listId,"mainPlaylistEntity"),Z,O;G=G==null?void 0:(Z=G.mainPlaylistEntity)==null?void 0:(O=Z[r])==null?void 0:O.title;return n_p(e,G,this.listId)}e=_.u9$(HbS(G));G=_.u9$(_.qr(G));G=e.concat(G);return n_p(G)};
eHn.prototype.getPlaylistId=function(){return this.listId};
eHn.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13030_updateCallback(this.listId,this.getPlaylistData(),{})};var UI=function(G,e,r,Z){Z=Z===void 0?[]:Z;this.JSC$13033_playlistNetworkManager=G;this.listId=e;this.JSC$13033_updateCallback=r;this.videoIds=Z;this.pendingUpdates=[];this.currentIndex=0};
UI.prototype.JSC$13033_setCurrentIndex=function(G){this.currentIndex=G};
UI.prototype.setListId=function(G){this.listId=G};
var rmE=function(G,e){G.currentCreateRequest&&G.currentCreateRequest.cancel(e);G.currentUpdateRequest&&G.currentUpdateRequest.cancel(e);G.currentRefreshRequest&&G.currentRefreshRequest.cancel(e)};
UI.prototype.delete=function(){rmE(this,"PROXY DELETED")};
UI.prototype.addVideos=function(G,e,r){var Z=this;r!==void 0?this.videoIds.splice.apply(this.videoIds,[r,0].concat(_.mY(G))):this.videoIds.push.apply(this.videoIds,_.mY(G));this.listId||this.currentCreateRequest?(G.forEach(function(O,M){O={addedVideoId:O,action:"ACTION_ADD_VIDEO"};r&&(O.addedVideoPosition=r+M);Z.pendingUpdates.push(O)}),z$(this)):ZIc(this,e.onCreateListCommand)};
var OIv=function(G,e,r,Z,O){mU_(G.videoIds,e,r);e>G.currentIndex&&r<=G.currentIndex?G.JSC$13033_setCurrentIndex(G.currentIndex+1):e===G.currentIndex?G.JSC$13033_setCurrentIndex(r):e<G.currentIndex&&r>=G.currentIndex&&G.JSC$13033_setCurrentIndex(G.currentIndex-1);G.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:Z,movedSetVideoIdPredecessor:O});z$(G)},ZIc=function(G,e){rmE(G,"OBSOLETE");
G.currentCreateRequest=MLC(G.JSC$13033_playlistNetworkManager,e,G.videoIds);_.fY(G.currentCreateRequest,function(){G.currentCreateRequest=void 0}).then(function(r){G.setListId(r.playlistId);
G.pendingUpdates.length>0?z$(G):VLE(G)})},z$=function(G){if(G.pendingUpdates.length!==0&&(G.currentRefreshRequest&&G.currentRefreshRequest.cancel("OBSOLETE"),!G.currentUpdateRequest&&!G.currentCreateRequest)){var e=G.pendingUpdates.splice(0,G.pendingUpdates.length);
G.currentUpdateRequest=G.JSC$13033_playlistNetworkManager.updatePlaylist(G.listId,e);_.fY(G.currentUpdateRequest,function(){G.currentUpdateRequest=void 0}).then(function(){G.pendingUpdates.length>0?z$(G):VLE(G)}).thenCatch(function(){G.pendingUpdates.unshift.apply(G.pendingUpdates,_.mY(e))})}},VLE=function(G){G.currentRefreshRequest=_.hH3(G.JSC$13033_playlistNetworkManager,G.listId,G.currentIndex,G.videoIds[G.currentIndex]);
_.fY(G.currentRefreshRequest,function(){G.currentRefreshRequest=void 0}).then(function(e){G.JSC$13033_updateCallback(e.playlistId,e.playlistPanelRenderer,e.autoplayRenderer)})};
UI.prototype.size=function(){return this.videoIds.length};var Tiw=function(G,e,r,Z){Z=Z===void 0?[]:Z;UI.call(this,G,e,r,Z);this.JSC$13033_playlistNetworkManager=G;this.listId=e;this.JSC$13033_updateCallback=r;this.videoIds=Z};
_.K(Tiw,UI);_.Wt=function(G,e,r,Z,O,M,T){O=O===void 0?[]:O;T=T===void 0?VE:T;UI.call(this,G,e,r,O);this.JSC$13033_playlistNetworkManager=G;this.listId=e;this.JSC$13033_updateCallback=r;this.onAuthChange=Z;this.videoIds=O;this.storage=M;this.cookieReader=T;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.za(_.A0,this.checkLoggedInStatusChange.bind(this),1E3)};
_.K(_.Wt,UI);_.V=_.Wt.prototype;_.V.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.za(_.A0,this.checkLoggedInStatusChange.bind(this),1E3)};
_.V.JSC$13033_setCurrentIndex=function(G){UI.prototype.JSC$13033_setCurrentIndex.call(this,G);this.store()};
_.V.delete=function(){_.A0.cancelJob(this.queueSapisIdJob);UI.prototype.delete.call(this)};
_.V.setListId=function(G){UI.prototype.setListId.call(this,G);this.store()};
_.V.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var DDc=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],Eqn=["playerResponse","videoDetails"],iIP=["response","currentVideoEndpoint","watchEndpoint","videoId"],bIE=["response","currentVideoEndpoint","watchEndpoint","playlistId"],vqP=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],wPb=["response","contents","twoColumnWatchNextResults","playlist","playlist"],$Db=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
SLv=["response","contents","twoColumnWatchNextResults"];var Nl={},Avp=(Nl.WEB_UNPLUGGED="^unplugged/",Nl.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Nl.WEB_UNPLUGGED_OPS="^unplugged/",Nl.WEB_UNPLUGGED_PUBLIC="^unplugged/",Nl.WEB_CREATOR="^creator/",Nl.WEB_KIDS="^kids/",Nl.WEB_EXPERIMENTS="^experiments/",Nl.WEB_MUSIC="^music/",Nl.WEB_REMIX="^music/",Nl.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Nl.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Nl);var wHy,MLC;wHy=function(G,e){this.networkManager=G;this.innertubeTransportService=e};
MLC=function(G,e,r){if(!_.a(e,_.L6))return _.Ss(Error("Nf"));_.a(e,_.L6).videoIds=r;r={create_playlist_title:_.OK("QUEUE",void 0,"Queue")};return Y1$(_.p1(G.innertubeTransportService,e,r),m9F)};
_.hH3=function(G,e,r,Z){e={videoId:Z,playlistId:e,playlistIndex:r};r=_.y4($cy);return Y1$(_.LE(G.innertubeTransportService,e,r),yvS)};
wHy.prototype.updatePlaylist=function(G,e){return Y1$(_.p1(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:G,actions:e}}),cvN)};var qLl=function(G){this.storage=G},tLy;
qLl.prototype.store=function(G,e){e=e===void 0?0:e;if(this.storage&&G.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",G),this.storage.set("TLPQindex",String(e)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(r){}};
qLl.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
qLl.prototype.getPlaylistId=function(){if(!this.storage)return null;var G=null;try{G=this.storage.get("TLPQplaylist")}catch(e){}return G};var x9p=["navigationEndpoint","watchEndpoint","videoId"],B9S=["nextButtonVideo","watchEndpoint","videoId"];_.bf=new _.Gz("NETWORK_TOKEN");_.y$=new _.Gz("PAGE_TOKEN");_.Gt=new _.Gz("PLAYLIST_TOKEN");var gqc;gqc=new _.Gz("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.v1=new _.Gz("INNERTUBE_TRANSPORT_TOKEN");var lUj,eX,jDw,aUE,KAW,fUC;lUj=new Set(["ci","cr","carml"]);eX=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13080_parkedJobs=new Map;this.parkedProcessors=new Map};
_.rk=function(){eX.instance||(eX.instance=new eX);return eX.instance};
eX.prototype.onAny=function(G){return _.RHS(this,G,2)};
eX.prototype.parkOrScheduleJob=function(G,e,r,Z,O){_.Z7(this,r)?_.S0().addJob(G,e,Z):(O&&(G=jDw(G),aUE(this,G,e,r,O)),O=this.JSC$13080_parkedJobs.get(r),O||(this.JSC$13080_parkedJobs.set(r,[]),O=this.JSC$13080_parkedJobs.get(r)),O.push({job:G,priority:e,delay:Z}))};
eX.prototype.addListener=function(G,e,r){r&&(e=jDw(e),aUE(this,e,0,G,r));r=this.parkedProcessors.get(G);r||(this.parkedProcessors.set(G,[]),r=this.parkedProcessors.get(G));r.push(e)};
eX.prototype.processSignal=function(G){if(!_.Z7(this,G)){this.inProgressSignals.add(G);var e=this.JSC$13080_parkedJobs.get(G);if(e){e=_.h(e);for(var r=e.next();!r.done;r=e.next())r=r.value,_.S0().addJob(r.job,r.priority,r.delay);this.JSC$13080_parkedJobs.delete(G)}if(e=this.parkedProcessors.get(G)){e=_.h(e);for(r=e.next();!r.done;r=e.next())r=r.value,r();this.parkedProcessors.delete(G)}this.signals.push(G);this.inProgressSignals.delete(G)}};
_.Z7=function(G,e){return lUj.has(e)||_.PX("IS_HOMEPAGE_COLD")||_.PX("IS_RESULTS_PAGE_COLD")||_.PX("IS_WATCH_PAGE_COLD")?G.signals.indexOf(e)>=0:!0};
jDw=function(G){var e=!1;return function(){e||(e=!0,G())}};
aUE=function(G,e,r,Z,O){if(XPS.has(Z))_.S0().addJob(e,r,O);else{var M=G.compoundSignals.get(Z);M&&_.S0().addJob(function(){_.Z7(G,Z)||(M.isTimeoutConditionSatisfied?_.S0().addJob(e,r):M.timeoutConditionObservers.push(function(){_.S0().addJob(e,r)}))},r,O)}};
_.RHS=function(G,e,r){if(e.length>1){var Z=[],O=Object.create(null);e=_.h(e);for(var M=e.next();!M.done;M=e.next())M=M.value,O[M]||(Z.push(M),O[M]=!0);e=Z}if(e.length===1)return e[0];M=e;Z="";O=r===2?"|":"&";M.sort();M=_.h(M);for(var T=M.next();!T.done;T=M.next())Z+=T.value+O;if(!G.compoundSignals.get(Z)){O=0;M=[];T=_.h(e);for(var E=T.next();!E.done;E=T.next())E=E.value,O++,_.Z7(G,E)||M.push(E);(r=r===2)&&O>M.length||!r&&!M.length?G.signals.push(Z):KAW(G,Z,r,e,M)}return Z};
KAW=function(G,e,r,Z,O){var M=O.length,T=function(){r||--M===0?G.processSignal(e):fUC(G,e)};
O=_.h(O);for(var E=O.next();!E.done;E=O.next())G.addListener(E.value,T);G.compoundSignals.set(e,{signals:Z,isOnAny:r,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});fUC(G,e)};
fUC=function(G,e){if(!_.Z7(G,e)){var r=G.compoundSignals.get(e);if(r&&!r.isTimeoutConditionSatisfied){for(var Z=!1,O=0,M=0,T=_.h(r.signals),E=T.next();!E.done;E=T.next()){var b=E.value;E=!_.Z7(G,b);XPS.has(b)?Z=!0:(b=G.compoundSignals.get(b))?E&&!b.isTimeoutConditionSatisfied&&(M++,r.isInitialized||b.timeoutConditionObservers.push(function(){fUC(G,e)})):E&&O++}r.isInitialized=!0;
r.isOnAny?Z&&(r.isTimeoutConditionSatisfied=!0):O===0&&M===0&&(r.isTimeoutConditionSatisfied=!0);if(r.isTimeoutConditionSatisfied)for(r=_.h(r.timeoutConditionObservers),Z=r.next();!Z.done;Z=r.next())Z=Z.value,Z()}}};
eX.prototype.processSignal=eX.prototype.processSignal;eX.prototype.parkOrScheduleJob=eX.prototype.parkOrScheduleJob;eX.prototype.onAny=eX.prototype.onAny;_.Eu("ytsignals.getInstance",_.rk);eX.prototype.onAny=eX.prototype.onAny;eX.prototype.parkOrScheduleJob=eX.prototype.parkOrScheduleJob;eX.prototype.processSignal=eX.prototype.processSignal;var XPS=new Set(["eop","eocs","dl","pcl"]);_.fp=new _.Gz("MINIPLAYER_SERVICE");var OZ,kPj,HI3;OZ=function(G,e,r){var Z=_.e8.getInstance();if(!tLy){var O=new yyF;var M=void 0,T=_.xZ("ID_TOKEN");T&&O.isAvailable()&&(M=new c_(O,"yt-queue"+T));tLy=new qLl(M)}O=tLy;M=_.rk();this.JSC$13087_actionRouter=Z;this.JSC$13087_pageManager=G;this.playlistManager=e;this.JSC$13087_playlistNetworkManager=r;this.storage=O;this.signals=M;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.M6=function(){if(!kPj){var G=_.v_(),e=G.resolve(_.bq(_.y$)),r=G.resolve(_.bq(_.bf)),Z=G.resolve(_.bq(_.Gt));G=G.resolve(_.v1);kPj=new OZ(e,Z,new wHy(r,G))}return kPj};
HI3=function(G,e,r){if(r){var Z;if(((Z=G.responsePlaylistData)==null?void 0:Z.playlistId)!==r)return}G.responsePlaylistData&&(r=L6a(e,G.responsePlaylistData),G.responsePlaylistData=(0,_.c2.unsafeClone)(G.responsePlaylistData),evf(G.responsePlaylistData,r));r=G.temporaryItems.findIndex(function(O){return O.videoId===e});
r>-1&&G.temporaryItems.splice(r,1);_.V9(G,_.hL(G,G.response?G.response.autoplayRenderer:void 0))};
_.dDC=function(G,e){if(G.responsePlaylistData){var r=G3y(e,G.responsePlaylistData);evf(G.responsePlaylistData,r);if(G.queueProxy){var Z=G.queueProxy;r<0||(Z.videoIds.splice(r,1),r<Z.currentIndex&&Z.JSC$13033_setCurrentIndex(Z.currentIndex-1),Z.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:e}),z$(Z))}}_.V9(G,_.hL(G,G.response?G.response.autoplayRenderer:void 0))};
OZ.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.V9(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
OZ.prototype.setPlaylistData=function(G,e,r){this.temporaryItems=[];this.listId=G;this.responsePlaylistData=e;_.V9(this,_.hL(this,r))};
var oqb=function(G){return(G==null?0:G.playlistId)?G.playlistId:"PPSV"},sDS=function(G){return G&&G.playlistId?G.playlistId==="PPSV"?!0:WFS(_.Yt().getState().entities,G.playlistId):!1};
OZ.prototype.isPlayingOfflineVideo=function(){return this.response?sDS(this.response):!1};
OZ.prototype.closeMiniplayer=function(G){var e=this.queueProxy&&this.queueProxy.size()<=1,r=_.v_().resolve(_.fp);if(!this.queueProxy||e)this.queueProxy&&this.clearQueue(),r.close(!0);else{r.pipController.getWindow()&&window.focus();e=this.responsePlaylistData;var Z=this.temporaryItems.length+(e&&e.contents?e.contents.length:0);e=_.OK("QUEUE_CLEARED_UNPLURALIZED")||_.Mn("QUEUE_CLEARED",Z);e=_.Fs(e);r=_.OK("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");Z=_.OK("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.Mn("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",Z);var O=_.OK("MINIPLAYER_CLOSE",void 0,"Close"),M=_.OK("CANCEL",void 0,"Cancel");_.ul(this.JSC$13087_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.nQ(r),dialogMessages:[_.nQ(Z)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.nQ(O),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:_.nQ(M)}}}}}}],G)}};
_.hL=function(G,e){var r={},Z=G.response;r.autoplayRenderer=e;if(!G.responsePlaylistData&&!G.temporaryItems.length)return!Z||!Z.hasRelatedVideoData&&_.R("kevlar_prefetch_data_augments_network_data")||(r.playerData={rvs:Z.relatedVideoArgs,endScreenRenderer:Z.endScreenRenderer}),r;r.playerData={};if(G.index===void 0)return _.yx(Error("Pf")),r;r.panel=G.responsePlaylistData?(0,_.c2.unsafeClone)(G.responsePlaylistData):{titleText:_.nQ(_.OK("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
e=r.panel;if(e.contents)for(var O=_.h(G.temporaryItems),M=O.next();!M.done;M=O.next())e.contents.push({playlistPanelVideoRenderer:M.value});G.queueProxy&&Z&&Z.playingVideo&&Z.playingVideoId&&!N9y(Z.playingVideoId,r.panel)&&(e=Z.playingVideo,O=r.panel,M=G.index,O.contents&&O.contents.splice(M===void 0?0:M,0,{playlistPanelVideoRenderer:e}));Z&&Z.playingVideoId&&(e=G.index,O=r.panel,e=!O.contents||e>=O.contents.length?void 0:O.contents[e].playlistPanelVideoRenderer,e&&e.videoId===Z.playingVideoId||(e=
L6a(Z.playingVideoId,r.panel),G.index=e!==-1?e:G.index?G.index-1:0));e=W6f(G.index+1,r.panel);O=void 0;G.index>0&&(O=W6f(G.index-1,r.panel));if(O||e)r.autoplayRenderer=PBS(e,O,r.autoplayRenderer);!e&&(Z==null?0:Z.relatedVideoArgs)&&(r.playerData.rvs=Z.relatedVideoArgs);Z=Z?Z.playlistIndexOffset:0;G.queueProxy?O0i(r.panel,G.index,Z,zKS,!0,!0,!0):O0i(r.panel,G.index,Z);r.playerData.playlistPanelRenderer=r.panel;return r};
OZ.prototype.openToast=function(G){_.v_().resolve(_.fp).openToast(G,_.OK("ADDED_TO_QUEUE",void 0,"Added to queue"))};
OZ.prototype.isMiniplayerActive=function(){return _.v_().resolve(_.fp).isMiniplayerActive()};
_.V9=function(G,e){G.playlistManager.setAutoplayRenderer(e.autoplayRenderer||null);G.playlistManager.setPlaylistData(e.panel||null);e.playerData&&G.playlistManager.setPlayerPlaybackControlData(e.playerData)};var VTy="#";var QD3={},IUl={},pPv={},C8C={},uAP={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:(QD3.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",QD3),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:(IUl.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",IUl),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:(pPv.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",pPv),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:(C8C.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",C8C),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 Aqq=[{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:uAP},{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:uAP}}];var QGA;_.LQ=[[["eWE5YWoxdXpncm9ya2luZCM=","amJ4djJucnZhbHVlI2xvOGht"],"VF9LSU5EX1NUQVJUIzc0cDJldWkxOXJkMUFEX1BMQUNFTUVO"]];
QGA=[[["bWFyeSNpbXVxamM4bTNyOWJwcmk=",null,null],[null,["d28tY29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyIzk3dXQxMXFiZWU3OHl0ZC10","NXN0eWxlLXNjb3BlIzdwcmVwejEwMDNl"],null],["YW1hc3RoZWFkLWFkI3d5ZjlsZWU4bjBo",["LWdyaWQtcmVuZGVyZXIjam52MHF4ZDQ2cWwxeXRkLXJpY2g="],null],[null,["LWdyaWQtcmVuZGVyZXIjanViMGVyY294ZnpneXRkLXJpY2g=","bnN0eWxlLXNjb3BlI3M5ZzQ5Y3IyZjli"],null],[null,["cmVuZGVyZXIjczB4NmJ4eW13cTR5eXRkLWJhbm5lci1wcm9tby0=","ZnN0eWxlLXNjb3BlIzd0ZHgxZ2FhNzJu"],null],[null,["ZC1hZC1zbG90LXJlbmRlcmVyI3o4N3QzNGc0M3Nybnl0"],
null]],[["cm8wNjFwbGF5ZXItYWRzI2hpZjZhdHk=",null,null]]];_.Nr=["I20xd3Y3cmo5ejhzdmdsb2JhbENhbGxiYWNrcw==","b3JtYWxpdHlEZXRlY3RlZCNzM2V0NzUxZDZkMHJvbkFibg==","I2pjYnRtdnRianhibm9uQWRTa2lw","MXJhd19wbGF5ZXJfcmVzcG9uc2UjNndteXVlZWwzdG0=","bG90cyNyYnRyY2RpeDU2ZnphZFM="];_.Tt="I20xd3Y3cmo5ejhzdmdsb2JhbENhbGxiYWNrcw== b3JtYWxpdHlEZXRlY3RlZCNzM2V0NzUxZDZkMHJvbkFibg== I2pjYnRtdnRianhibm9uQWRTa2lw MXJhd19wbGF5ZXJfcmVzcG9uc2UjNndteXVlZWwzdG0= ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcHNfa3MjdDgwams1N24zN2hzdw== I2M2dGEybG9vdzgzN2FiX3NhX2Vm bG90cyNyYnRyY2RpeDU2ZnphZFM=".split(" ");var D7;D7=function(G,e,r){this.zH3=G;this.mrB=e;this.oX3=r};
_.eU$=[new D7("b.f_",!1,0),new D7("j.s_",!1,2),new D7("r.s_",!1,4),new D7("e.h_",!1,6),new D7("i.s_",!0,8),new D7("s.t_",!1,10),new D7("p.h_",!1,12),new D7("s.i_",!1,14),new D7("f.i_",!1,16),new D7("a.b_",!1,18),new D7("a.o_",!1),new D7("g.o_",!1,22),new D7("p.i_",!1,24),new D7("p.m_",!1),new D7("n.k_",!0,20),new D7("i.f_",!1),new D7("a.s_",!0),new D7("m.c_",!1),new D7("n.h_",!1,26),new D7("o.p_",!1),new D7("m.p_",!0,28),new D7("o.a_",!1),new D7("d.p_",!1),new D7("e.i_",!1)].reduce(function(G,e){G[e.zH3]=
e;return G},{});var nqE=function(){};
nqE.prototype.flush=function(G,e){G=G===void 0?[]:G;e=e===void 0?!1:e;if(_.R("enable_client_streamz_web")){G=_.h(G);for(var r=G.next();!r.done;r=G.next())r=DIb(r.value),this.rootSpec&&_.Kj(r,2,this.rootSpec),r={serializedIncrementBatch:_.uH(r.JSC$9616_serializeBinary())},_.cg("streamzIncremented",r,{sendIsolatedPayload:e})}};
var i0S=function(){};
_.K(i0S,nqE);var mDn=function(G){var e=new rBj;var r=new Llw;r=_.QB(r,1,"botguard");G=_.QB(r,2,G);this.rootSpec=_.fj(e,1,Zon,G)};
_.K(mDn,nqE);var U6,cmC=new Map;var uMA,vmi,jGA,SE_,gm4,oma,mm$,H0i;uMA=2;vmi=2;jGA=2;SE_=2;gm4=2;oma=2;mm$=2;H0i=new ZFP;var ymW,AmP;ymW=function(){this.ongoingFlowNonces=new Map};
_.r0=function(){AmP||(AmP=new ymW);return AmP};
_.eF=function(G,e,r){return{eventType:{flowEventNamespace:G,flowEventType:e},metadata:r,statusCode:void 0,csn:void 0,can:void 0}};
_.ZXN=function(G,e){var r=_.r0(),Z=FAl(r,e,!0);r.logFlowEvent(G,e,Z,void 0)};
ymW.prototype.logFlowEvent=function(G,e,r,Z){e={flowNonce:r||FAl(this,e),flowType:e,flowEventType:G.eventType};G.metadata&&(e.flowMetadata=G.metadata);G.statusCode!==void 0&&(e.flowEventStatus=G.statusCode);G.csn&&(e.csn=G.csn);G.can&&(e.can=G.can);_.cg("flowEvent",e,Z)};
var FAl=function(G,e,r){r=r===void 0?!1:r;var Z=G.ongoingFlowNonces.get(e);if(!Z||r)Z=SW(16),G.ongoingFlowNonces.set(e,Z);return Z};_.Jmy=new r0w;var TZp={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 EZ=function(G,e,r,Z,O,M,T){r=r===void 0?!1:r;Z=Z===void 0?!1:Z;M=M===void 0?_.M6():M;this.hasRun=!1;this.fJr=G;this.nIy=e;this.zle=r;this.fromHistory=Z;this.previousVideoId=O;this.u6J=M;this.tempData=T;this.gY2=new _.OFW};
_.K(EZ,wq);EZ.prototype.validate=function(G){return!(!G.data.playerResponse||G.data.page!=="watch"&&G.data.page!=="learning_journey_watch"&&G.data.page!=="shorts"||this.hasRun)};
EZ.prototype.handle=function(G){var e=this,r=_.a(G.endpoint,_.u4),Z=_.a(G.endpoint,_.DC);if(_.R("kevlar_continue_playback_without_player_response")&&(r==null?0:r.videoId)&&this.previousVideoId&&(r==null?void 0:r.videoId)===this.previousVideoId&&(r==null?0:r.continuePlayback)&&!this.fromHistory)this.fJr.resolve();else{var O={};r?O.watch_endpoint=r:Z&&(O.watch_endpoint=Z,Z.endTimeSeconds&&(O.end=Z.endTimeSeconds));G.data.page==="watch"?(G.data.filler||this.zle||(_.K_("cfg"),_.e8.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(O,Bij(this,G.endpoint)),_.R("enable_masthead_quartile_ping_fix")&&Object.assign(O,xDc(this)),Object.assign(O,void 0),G.data.forceExternalPlaylist&&(O.external_list=!0)):G.data.page==="shorts"?_.e8.getInstance().triggerAction("yt-start-loading-shorts"):G.data.page==="learning_journey_watch"&&_.e8.getInstance().triggerAction("yt-start-loading-learning-journey");if(r=this.nIy()){try{r.loadVideoWithPlayerResponse(G.data.playerResponse,O),r.getPlayerPromise().then(this.fJr.resolve)}catch(M){_.yx(M),
this.fJr.resolve()}this.hasRun=!0;r.getPlayerPromise().then(function(M){M.addEventListener("onAbnormalityDetected",function(){var T=G.data.playerResponse,E=M.getVideoData().cpn;mm$=0;_.YLv=E;if(E=GZF(T))e.gY2.increment("IN_PLAYER"),_.ZC(5),_.R("ab_st_vid_ks")?M.pauseVideo(!0):M.stopVideo(),T.playabilityStatus=Object.assign({},T.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:E}}),T.videoDetails=void 0,_.e8.getInstance().triggerOptionalAction("yt-updated-playability-status",
T.playabilityStatus)})})}else _.FH(Error("Sf"))}};
var Bij=function(G,e){var r=_.a(e,_.u4);if(e&&r&&r.playlistId&&r.videoId&&(G=G.u6J,G.queueProxy?(G=G.queueProxy,r=G.listId===r.playlistId?G.attributionData.get(r.videoId):void 0):r=void 0,r))return{queue_info:r}},xDc=function(G){var e;
if((e=G.tempData)==null?0:e.adpings)return{adpings:G.tempData.adpings}};var ir=function(G,e,r){this.hasRun=!1;this.hlX=G;this.jlq=e;this.qtj=r};
_.K(ir,wq);ir.prototype.validate=function(G){return!!_.c2.getValueByKeys.apply(null,[G.data].concat(_.mY(SLv)))};
ir.prototype.handle=function(G){var e=this;this.hlX.promise.then(function(){var r=G.data;var Z=_.c2.getValueByKeys.apply(null,[r].concat(_.mY(DDc))),O=_.c2.getValueByKeys.apply(null,[r].concat(_.mY(wPb))),M=_.c2.getValueByKeys.apply(null,[r].concat(_.mY(iIP)));var T=(T=_.c2.getValueByKeys.apply(null,[r].concat(_.mY(Eqn))))?{videoId:T.videoId,thumbnail:T.thumbnail,title:T.title?_.nQ(T.title):void 0,shortBylineText:T.author?_.nQ(T.author):void 0}:void 0;var E=void 0;_.R("web_get_playlist_id_from_current_endpoint_ks")||
(E=_.c2.getValueByKeys.apply(null,[r].concat(_.mY(bIE))));var b=_.c2.getValueByKeys.apply(null,[r].concat(_.mY($Db))),w=_.c2.getValueByKeys.apply(null,[r].concat(_.mY(vqP))),q=!!b||!!w&&!!w.results&&w.results.length>0,t=0;O&&O.currentIndex&&O.localCurrentIndex&&(t=O.currentIndex-O.localCurrentIndex);O&&O.playlistId&&(E=O.playlistId);r={rawResponse:r,autoplayRenderer:Z,hasRelatedVideoData:q,playingVideo:T,playingVideoId:M,playlistPanelRenderer:O,playlistId:E,playlistIndex:O&&O.currentIndex,relatedVideoArgs:b,
endScreenRenderer:w,playlistIndexOffset:t};a:{Z=e.qtj;O=e.jlq;Z.response=r;if(sDS(r))Z.downloadPlaylistProxy&&Z.downloadPlaylistProxy.getPlaylistId()===oqb(r)||(Z.downloadPlaylistProxy=new eHn(oqb(r),Z.setPlaylistData.bind(Z),Z.isPlayingOfflineVideo.bind(Z))),Z.responsePlaylistData=Z.downloadPlaylistProxy.getPlaylistData(),Z.listId=oqb(r),Z.index=0;else if(r.playlistPanelRenderer&&r.playlistId&&r.autoplayRenderer)r.playlistId.startsWith("TLPQ")?Z.queueProxy?Z.listId===r.playlistId?(Z.index=r.playlistIndex,
Z.responsePlaylistData=r.playlistPanelRenderer,Z.queueProxy.JSC$13033_setCurrentIndex(Z.index)):r.playingVideoId&&Z.index!==void 0&&O.clientParams.autoSaveToQueue&&(Z.index+=1,Z.queueProxy.JSC$13033_setCurrentIndex(Z.index),Z.queueProxy.addVideos([r.playingVideoId],{},Z.index)):(Z.queueProxy=new _.Wt(Z.JSC$13087_playlistNetworkManager,r.playlistId,Z.setPlaylistData.bind(Z),Z.clearQueue.bind(Z),_.rqA(r.playlistPanelRenderer),Z.storage),Z.responsePlaylistData=r.playlistPanelRenderer,Z.listId=r.playlistId,
Z.index=r.playlistIndex):(Z.index=r.playlistIndex,Z.listId!==r.playlistId&&Z.clearQueue(),Z.responsePlaylistData=r.playlistPanelRenderer,Z.listId=r.playlistId,Z.playlistProxy=new Tiw(Z.JSC$13087_playlistNetworkManager,r.playlistId,Z.setPlaylistData.bind(Z),_.rqA(r.playlistPanelRenderer)));else if(!Z.queueProxy)Z.responsePlaylistData=void 0;else if(r.playingVideoId&&O.clientParams.autoSaveToQueue){if(Z.index===void 0){_.yx(Error("Of"));Z.clearQueue();break a}Z.queueProxy.videoIds.includes(r.playingVideoId)||
(Z.index+=1,Z.queueProxy.JSC$13033_setCurrentIndex(Z.index),Z.queueProxy.addVideos([r.playingVideoId],{},Z.index))}_.V9(Z,_.hL(Z,Z.response.autoplayRenderer))}})};var P8l=function(G,e){e=e===void 0?_.M6():e;dq.call(this);this.cH.push(new ir(this.wI,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},e));this.cH.push(new EZ(this.wI,G,!1,!1));_.R("web_response_commands_chunk_processor")&&this.cH.push(new oC)};
_.K(P8l,dq);P8l.prototype.processChunk=function(G){G&&G.data.player===void 0&&this.wI.resolve();dq.prototype.processChunk.call(this,G)};var br=function(G,e){G=G===void 0?{layer:0}:G;this.hasRun=!1;this.createScreenConfig=G;this.e7j=e};
_.K(br,wq);br.prototype.validate=function(G){return!(this.hasRun||!G.endpoint)};
br.prototype.handle=function(G){var e=_.h_(),r,Z,O=(Z=_.a((r=G.endpoint)==null?void 0:r.commandMetadata,_.rJ))==null?void 0:Z.rootVe;this.e7j&&O?_.aC(e,O,this.e7j,this.createScreenConfig):CQW(e,G.endpoint,this.createScreenConfig);this.hasRun=!0};var vh=function(G,e){this.hasRun=!1;this.yZV=G;this.previousVideoId=e};
_.K(vh,wq);vh.prototype.validate=function(G){return _.R("kevlar_continue_playback_without_player_response")&&(G=_.a(G.endpoint,_.u4),(G==null?0:G.videoId)&&this.previousVideoId&&(G==null?void 0:G.videoId)===this.previousVideoId&&(G==null?0:G.continuePlayback))?!1:this.yZV.yt3===0};
vh.prototype.handle=function(G){_.e8.getInstance().triggerAction("yt-stop-old-player",G.data,!0)};var UDw=function(G){G=G===void 0?{layer:0}:G;dq.call(this);this.cH.push(new vh(this));this.cH.push(new br(G));this.cH.push(new Ht(G))};
_.K(UDw,dq);var wk=function(){wq.apply(this,arguments)};
_.K(wk,wq);wk.prototype.validate=function(G){return!!G.data.preconnect};
wk.prototype.handle=function(G){_.jq("bc");G=_.h(G.data.preconnect);for(var e=G.next();!e.done;e=G.next())e=e.value,(new Image).src=e};var zHS=function(G,e,r,Z,O,M,T){r=r===void 0?{layer:0}:r;M=M===void 0?_.M6():M;dq.call(this);if(Z)if(O){O=M;this.cH.push(new ir(this.wI,e,O));this.cH.push(new wk);var E,b;this.cH.push(new EZ(this.wI,G,!1,!((E=e.clientParams)==null||!E.fromHistory),(b=e.clientParams)==null?void 0:b.previousVideoId,O,e.tempData));var w;this.cH.push(new vh(this,(w=e.clientParams)==null?void 0:w.previousVideoId));var q;(q=e.clientParams)!=null&&q.fromHistory||(r.layer||(r=Object.assign({},r,{layer:0})),this.cH.push(new br(r,
T)),this.cH.push(new Ht(r)))}else this.cH.push(new ir(this.wI,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},M)),this.cH.push(new EZ(this.wI,G,!1,!1));else this.cH.push(new vh(this)),this.cH.push(new br(r)),this.cH.push(new Ht(r));_.R("web_response_commands_chunk_processor")&&Z&&this.cH.push(new oC)};
_.K(zHS,dq);zHS.prototype.processChunk=function(G){G&&G.data.player===void 0&&this.wI.resolve();dq.prototype.processChunk.call(this,G)};var WAC=function(){this.hasRun=this.hasRun=!1};
_.K(WAC,wq);WAC.prototype.validate=function(G){return!this.hasRun&&!(!G.data.csn||!G.data.rootVe)};
WAC.prototype.handle=function(G){this.hasRun=!0;_.jW(G.data.csn,G.data.rootVe,3)};var Ni3=function(G,e,r){r=r===void 0?{layer:0}:r;dq.call(this);this.cH.push(new EZ(this.wI,G));this.cH.push(new br(r));this.cH.push(new Ht(r))};
_.K(Ni3,dq);var LAc=function(G,e,r,Z,O){r=r===void 0?{layer:0}:r;Z=Z===void 0?_.M6():Z;dq.call(this);var M=!!e&&!!e.clientParams&&!!e.clientParams.miniplayer;M&&this.cH.push(new WAC);this.cH.push(new ir(this.wI,e,Z));this.cH.push(new wk);var T,E;this.cH.push(new EZ(this.wI,G,M,!((T=e.clientParams)==null||!T.fromHistory),(E=e.clientParams)==null?void 0:E.previousVideoId,Z,e.tempData));var b;this.cH.push(new vh(this,(b=e.clientParams)==null?void 0:b.previousVideoId));var w;(w=e.clientParams)!=null&&w.fromHistory||
(r.layer||(r=Object.assign({},r,{layer:M?3:0})),this.cH.push(new br(r,O)),this.cH.push(new Ht(r)));_.R("web_response_commands_chunk_processor")&&this.cH.push(new oC)};
_.K(LAc,dq);var $B,rlw;$B={};
_.Guc=($B["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},$B["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},$B["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},$B["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},$B["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},$B["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},$B["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},$B);_.SX=new _.PG("yt-edu");_.euw=function(){this.JSC$13185_eduDisplayedThisLoad_={}};
rlw=function(G){var e=_.euw.getInstance();var r=_.qt("kevlar_tooltip_impression_cap");e=r&&parseInt(_.SX.get(G+"-impression")||0,10)>=r||_.SX.get(G+"-dismissed")?!1:(r=_.Guc[G])&&!e.JSC$13185_eduDisplayedThisLoad_[r.setKey||G]&&(r.titleText&&_.OK(r.titleText)||r.bodyText&&_.OK(r.bodyText))?!0:!1;if(!e)return null;e=_.Guc[G];if(!e)return null;r=e.bodyText?_.OK(e.bodyText):void 0;var Z=e.titleText?_.OK(e.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:e.position,popup:{bubbleHintRenderer:{text:Z?
_.nQ(Z):void 0,detailsText:r?_.nQ(r):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.nQ(_.OK("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:G}}]}}}}}}}},{eduImpressionAction:{key:G}}]};
_.Fb(_.euw);var OX4=!1;for(var ZUj="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),OUn=[],q6=6;q6>=1;q6--)OUn.push({columnCount:q6,query:q6==1?0:q6*2*107-4+32,className:"grid-"+q6+"-columns",width:q6*2*107+"px"});_.tL=function(G){this.actionRouter_=G=G===void 0?_.e8.getInstance():G;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.M23(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.M23=function(G){var e=G.documentWidth_-(G.miniGuideVisible_?72:0)-(G.guidePersistentAndVisible_?240:0)-(G.persistentPanelVisible_?400:0);return OUn.find(function(r){return e>r.query})};
_.Fb(_.tL);var V2y=function(){var G=this;this.JSC$13197_keyboardInUse=!1;document.addEventListener("keydown",function(){G.onKeydown()});
document.addEventListener("mousedown",function(){G.JSC$13197_keyboardInUse=!1})},hul;
V2y.prototype.isKeyBoardInUse=function(){return this.JSC$13197_keyboardInUse};
V2y.prototype.onKeydown=function(){this.JSC$13197_keyboardInUse=!0};var TMW,RT;_.gk=new _.PG("yt-mentions");_.lr=function(){};
TMW=function(G,e){return RT(e,"drag-to-reorder-edu-displayed")};
RT=function(G,e,r,Z,O,M){r=r===void 0?"OPEN_POPUP_POSITION_TOP":r;if(e){if(_.gk.get(e))return;_.gk.set(e,!0,Z)}if(O&&M!==void 0){e=Number(_.gk.get(O)||0);if(e>=M)return;_.gk.set(O,e+1)}return[{openPopupAction:{popupType:"HINT",position:r,popup:{bubbleHintRenderer:{detailsText:G,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.Fb(_.lr);var Djw,E3P,iUP;Djw=function(G,e,r,Z){this.JSC$13207_taskManager_=G;this.onFulfilled_=typeof e==="function"?e:null;this.onRejected_=typeof r==="function"?r:null;this.JSC$13207_context_=Z};
E3P=function(G,e){G.onFulfilled_&&_.w8(G.JSC$13207_taskManager_,function(){G.onFulfilled_.call(G.JSC$13207_context_,e)})};
iUP=function(G,e){G.onRejected_&&_.w8(G.JSC$13207_taskManager_,function(){G.onRejected_.call(G.JSC$13207_context_,e)})};
_.jX=function(G){this.JSC$13210_taskManager_=G;this.callbacks_=[]};
_.jX.prototype.then=function(G,e,r){this.callbacks_.push(new Djw(this.JSC$13210_taskManager_,G,e,r));return this};
_.jX.prototype.onSuccess=function(G){this.callbacks_.forEach(function(e){E3P(e,G)})};
_.jX.prototype.onFailure=function(G){this.callbacks_.forEach(function(e){iUP(e,G)})};
_.jX.prototype.cancel=function(){this.callbacks_.length=0};
bzP(_.jX);_.Eri=null;_.bZ=new _.Gz("ACTIVITY_TOKEN");var bUE;_.vz=new _.Gz("PAGE_REQUEST_TOKEN");bUE=new _.Gz("FETCH_PBJ_TOKEN");_.v3S=function(G){if(G.validatedFragments_.length==0)return null;if(!G.mergedPrefetchedData_){for(var e=[],r=_.h(G.validatedFragments_),Z=r.next();!Z.done;Z=r.next()){Z=_.h(G.fragmentConfiguration_[Z.value].graftedKeys);for(var O=Z.next();!O.done;O=Z.next())(O=G.prefetchedData_[O.value].trackingParams)&&e.push(O)}G.mergedPrefetchedData_={};Object.assign(G.mergedPrefetchedData_,G.prefetchedData_,{clientSideGrafts:e})}return G.mergedPrefetchedData_};var wEE;_.aT=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
wEE=function(G,e,r){if(_.iXS(e))return G.prefetchCache_.get(_.bXf(e,r))};_.X9=new _.Gz("NAVIGATION_TOKEN");var $jc=function(G){var e=this;var r=r===void 0?$Ri():r;var Z=Z===void 0?_.v_().resolve(_.X9):Z;this.onePickCommand=G;this.JSC$13282_playlistNetworkManager=r;this.navigationManager=Z;this.videoPickerBuilder=_.vrS("yt-addtoplaylist");_.Q5j(KH3(fzW(XiS(this.videoPickerBuilder.setTitle(G.modalTitle).setSize(1E3).addView(HMP()).addView(k2l())).addView("youtube"),G.selectButtonLabel)),function(O){e.handleAction(O)})};
$jc.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
$jc.prototype.handleAction=function(G){var e=this;if(G&&this.onePickCommand.listId&&G.action==="picked"&&G.docs){var r=[];G.docs.forEach(function(Z){r.push({addedVideoId:Z.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13282_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,r).then(function(){_.R("playlist_add_video_hard_reload_killswitch")?e.navigationManager.reload():SJc(e.navigationManager)})}};var qJw=function(){if(this.constructor===qJw)throw new TypeError("Uf");};
_.V=qJw.prototype;_.V.dispose=function(){};
_.V.disconnect=function(){};
_.V.reconnect=function(){};
_.V.observe=function(G,e,r){return{element:G,option:r}};
_.V.unobserveByKey=function(){};var Spp=function(G,e){e=e===void 0?0:e;qJw.call(this);this.viewroot=G;this.defaultPrescanHeight=e;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),G?{root:G,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.K(Spp,qJw);_.V=Spp.prototype;_.V.dispose=function(){this.disconnect();this.handlers.clear()};
_.V.disconnect=function(G){this.isConnected=!1;this.pauseObservingUntilReconnect=G===void 0?!1:G;this.observer.disconnect();G=_.h(this.prescanObservers.values());for(var e=G.next();!e.done;e=G.next())e.value.disconnect()};
_.V.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var G=_.h(this.handlers),e=G.next();!e.done;e=G.next()){var r=_.h(e.value);e=r.next().value;var Z=r.next().value;r=!1;Z=_.h(Z.keys());for(var O=Z.next();!O.done;O=Z.next())if((O=O.value)&&O.state==="prescan"){r=!0;break}r&&t2n(this,e).observe(e);this.observer.observe(e)}}};
_.V.handleObserveEvent=function(G){G=_.h(G);for(var e=G.next();!e.done;e=G.next()){e=e.value;var r=this.handlers.get(e.target);if(r){var Z=e.isIntersecting;r=_.h(r);for(var O=r.next();!O.done;O=r.next()){var M=_.h(O.value);O=M.next().value;M=M.next().value;O&&(O.state==="visible"&&Z||O.state==="hidden"&&!Z)&&(M(e.target,O.state),O.calledOnce&&this.unobserveByKey({element:e.target,option:O}))}}}};
_.V.handlePrescanEvent=function(G){G=_.h(G);for(var e=G.next();!e.done;e=G.next()){e=e.value;var r=this.handlers.get(e.target);if(r&&e.isIntersecting){r=_.h(r);for(var Z=r.next();!Z.done;Z=r.next()){var O=_.h(Z.value);Z=O.next().value;O=O.next().value;Z&&Z.state==="prescan"&&(O(e.target,Z.state),Z.calledOnce&&this.unobserveByKey({element:e.target,option:Z}))}}}};
_.V.observe=function(G,e,r){var Z=(Z=this.handlers.get(G))&&Z.has(r)?{element:G,option:r}:void 0;if(Z)return Z;Z={element:G,option:r};this.handlers.has(G)||this.handlers.set(G,new Map);var O=this.handlers.get(G);O&&!O.has(r)&&O.set(r,e);this.pauseObservingUntilReconnect||(r.state==="prescan"&&t2n(this,G).observe(G),this.observer.observe(G));return Z};
_.V.unobserveByKey=function(G){var e=this.handlers.get(G.element);if(e&&e.has(G.option)){e.delete(G.option);if(G&&G.option.state==="prescan")for(var r=_.h(this.prescanObservers.values()),Z=r.next();!Z.done;Z=r.next())Z.value.unobserve(G.element);e.size===0&&(this.handlers.delete(G.element),this.observer.unobserve(G.element))}};
var t2n=function(G,e){var r=G.defaultPrescanHeight;e.hasAttribute("prescan-height")&&(e=Number(e.getAttribute("prescan-height")),isNaN(e)||(r=e));if(G.prescanObservers.has(r))return G.prescanObservers.get(r);e="-0.1px -0.1px "+r+"px -0.1px";e=new IntersectionObserver(G.handlePrescanEvent.bind(G),G.viewroot?{root:G.viewroot,rootMargin:e}:{rootMargin:e});G.prescanObservers.set(r,e);return e};var g3E=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],lTv=function(){var G,e=this;this.JSC$13299_actionRouter=G=G===void 0?_.e8.getInstance():G;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}}},RuP,aTw,fTP;
lTv.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.R("kevlar_use_vimio_behavior")&&_.xZ("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=qpy())};
lTv.prototype.dispose=function(){this.visibilityMonitor&&_.Rb(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
lTv.prototype.handleVisibilityRefreshed=function(){for(var G=_.h(this.targetMap.entries()),e=G.next();!e.done;e=G.next()){var r=_.h(e.value);e=r.next().value;r=r.next().value;_.j6y(this,e,r)}};
_.Kty=function(G,e,r){aTw(G,r);var Z=_.XEC(G,e);Z.element=r;G.targetedElements.set(r,e);_.j6y(G,e,Z)};
aTw=function(G,e){var r=G.targetedElements.get(e);if(r){var Z=G.targetMap.get(r);Z&&(delete Z.element,G.targetMap.set(r,Z));G.targetedElements.delete(e);G.visibilityObserver&&G.visibilityObservedElementHandlerKeys&&(r=G.visibilityObservedElementHandlerKeys.get(e))&&(G.visibilityObserver.unobserveByKey(r),G.visibilityObservedElementHandlerKeys.delete(e))}};
_.j6y=function(G,e,r){var Z=r.action,O=r.element;O&&Z&&(g3E.includes(e)||_.xZ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||G.visibilityMonitor&&G.visibilityMonitor.isNodeVisible(O)?fTP(G,e,r):G.visibilityObserver&&(G.visibilityObservedElementHandlerKeys||(G.visibilityObservedElementHandlerKeys=new WeakMap),Z=G.visibilityObserver.observe(O,function(){fTP(G,e,r);G.visibilityObservedElementHandlerKeys.delete(O)},{calledOnce:!0,
state:"visible"}),G.visibilityObservedElementHandlerKeys.set(O,Z)))};
fTP=function(G,e,r){var Z=r.action;(r=r.element)&&Z&&(_.ul(G.JSC$13299_actionRouter,[Z],r),G.targetMap.delete(e),G.targetedElements.delete(r),G.triggeredTargets.add(e))};
_.XEC=function(G,e){var r=G.targetMap.get(e);r||(r={},G.targetMap.set(e,r));return r};
_.Kh=function(){RuP||(RuP=new lTv);return RuP};var kuy=document.createElement("div");kuy.style.touchAction="pan-down";var tIf=kuy.style.touchAction==="pan-down";var HUS,djj;HUS=function(){this.hammerFn=oUv();this.JSC$13307_screenManager=_.h_();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.L1(83615);_.KE(this.JSC$13307_screenManager,this.ve);gry()};
_.fh=function(){djj||(djj=new HUS);return djj};
HUS.prototype.registerTouchEvents=function(G,e,r){var Z=_.Bw.apply(3,arguments),O=this.hammerFn(G,{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}]]});r&&O.set({touchAction:r});this.nodeManagerMapping.set(G,O);var M=
lAf(e);Z=_.h(Z);for(var T=Z.next();!T.done;T=Z.next()){T=T.value;if(T.includes("swipe")||T.includes("pinch")||T.includes("pan"))T.includes("swipe")?O.get("swipe").set({enable:!0,direction:M,velocity:.2}):T.includes("pinch")?O.get("pinch").set({enable:!0}):T.includes("pan")&&(O.get("pan").set({enable:!0,direction:M}),O.get("swipe").set({enable:!0,direction:M,velocity:.2}),O.get("swipe").recognizeWith("pan"));o3C(this,G,O,T)}};
var o3C=function(G,e,r,Z){r.on(Z,function(O){if(Z.includes("pinch"))G.lastPinchTime=Date.now();else if(Z.includes("swipe")&&Date.now()-G.lastPinchTime<400)return;O.pointerType!=="mouse"&&(O=Z==="doubletap"?{coordinates:O.center}:Z.includes("pan")?O:Z.includes("swipe")?{target:O.target}:{},e.dispatchEvent(new CustomEvent(Z,{bubbles:!0,composed:!0,detail:O})))})};
HUS.prototype.unregisterTouchEvents=function(G){var e=_.Bw.apply(1,arguments),r=this.nodeManagerMapping.get(G);if(r){e=_.h(e);for(var Z=e.next();!Z.done;Z=e.next())r.off(Z.value);this.nodeManagerMapping.delete(G);G.style.touchAction="unset"}};var s6w=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var RUi=null;_.w0={getLocalStorage:_.tD(function(){try{var G=new YKp;var e=G.isAvailable()?G:null}catch(r){return null}return e?new _.lY(e):null}),
getSessionStorage:_.tD(function(){var G=new yyF;return G.isAvailable()?new _.lY(G):null})};var Q63=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},cEs=function(){Q63.instance||(Q63.instance=new Q63);
return Q63.instance},Yp_=function(G){var e=G.networkEvents;
G.networkEvents=[];return _.R("enable_network_monitoring")?e:[]};var ITP;ITP={};_.pEW=bA("yt-serviceworker-metadata",{objectStores:(ITP.auth={addedAtVersion:1},ITP["resource-manifest-assets"]={addedAtVersion:2},ITP),shared:!0,upgrade:function(G,e){e(1)&&zc(G,"resource-manifest-assets");e(2)&&zc(G,"auth")},
version:2});var kZp=self.location.origin+"/";HX4([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);HX4([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);HX4([/\.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\//]);HX4([/purge_shell=1/]);var C0y=void 0;C0y=C0y===void 0?[]:C0y;
for(var uYy=[],n3w=_.h(DnE),mjP=n3w.next();!mjP.done;mjP=n3w.next())uYy.push({key:mjP.value});for(var clv=_.h(C0y),YJC=clv.next();!YJC.done;YJC=clv.next())uYy.push(YJC.value);var ylS,tX=_.O_==null?void 0:(ylS=_.O_.performance)==null?void 0:ylS.memory,sk_=!1,yE4={},pHs={},g0={},lf=navigator;var kB=function(G){this.JSC$13352_expiringStorage=new nr(G)};
kB.prototype.set=function(G,e,r){r=r!==void 0?Date.now()+r:void 0;this.JSC$13352_expiringStorage.set(G,e,r)};
kB.prototype.get=function(G){return this.JSC$13352_expiringStorage.get(G)};
kB.prototype.remove=function(G){this.JSC$13352_expiringStorage.remove(G)};var zUN=_.Cp(["https://www.youtube.com/",""]),WjA=_.Cp(["https://studio.youtube.com/",""]),rJS="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",Lj$=null,hqN;var Alc=_.Cp(["https://www.youtube.com/iframe_api"]),Hh=function(){this.playerResolver_=_.C1();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.qu;this.playbackDurationSeconds_=0},Ftn=function(G){var e=function(){return window.YT&&typeof window.YT.ready==="function"};
if(e())return _.Nz(window.YT);var r=_.C1(),Z=_.Hp("SCRIPT");Z.onload=Z.onreadystatechange=function(){Z.readyState&&Z.readyState!="loaded"&&Z.readyState!="complete"||(Z.onload=_.qu,Z.onreadystatechange=_.qu,Z.onerror=_.qu,e()?r.resolve(window.YT):r.reject(new _.Cr("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(O){Z.onload=_.qu;Z.onreadystatechange=_.qu;Z.onerror=_.qu;r.reject(new _.Cr("Failed to load the iframe player library","script.onerror",O&&O.target&&O.target.src))};
_.h6(Z,_.qK(Alc));G.insertBefore(Z,G.firstChild);return r.promise},JlW=function(G,e,r){var Z,O;
_.D(function(M){switch(M.nextAddress){case 1:return G.playbackEndedCallback_=r,_.jr(M,2),M.yield(Ftn(e.parentElement||null),4);case 4:Z=M.yieldResult;_.rL(M,3);break;case 2:return O=_.k5(M),O instanceof _.Cr&&O.args&&O.args[0]=="script.onerror"?_.FH(O):_.yx(O),M.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:G.onPlayerReady_.bind(G),onStateChange:G.onPlayerStateChange_.bind(G),
onCueRangeExit:G.onCueRangeExit_.bind(G)}})}),_.HL(M)}})};
_.V=Hh.prototype;_.V.getPlayerPromise=function(){return this.playerPromise_};
_.V.onPlayerReady_=function(G){this.playerResolver_.resolve(G.target)};
_.V.onPlayerStateChange_=function(G){if(G.data==YT.PlayerState.PLAYING){G=G.target;var e=G.getCurrentTime();G.addCueRange("playback",e,e+this.playbackDurationSeconds_)}};
_.V.onCueRangeExit_=function(G){G.data=="playback"&&(G.target.stopVideo(),this.playbackEndedCallback_())};
_.V.stopVideo=function(){this.playerPromise_.then(function(G){G.stopVideo()})};
var BMc=function(G){G.playerVars_&&G.playerPromise_.then(function(e){typeof e.cueVideoByPlayerVars!="function"?_.FH(new _.Cr("vmh: player API not ready","cueVideoByPlayerVars",typeof e.cueVideoByPlayerVars)):e.cueVideoByPlayerVars(G.playerVars_)})};
Hh.prototype.playVideo=function(){var G=this;this.playerVars_&&this.playerPromise_.then(function(e){typeof e.loadVideoByPlayerVars!="function"?(e=new _.Cr("vmh: player API not ready","loadVideoByPlayerVars",typeof e.loadVideoByPlayerVars),_.yx(e)):e.loadVideoByPlayerVars(G.playerVars_)})};
var xjv=function(G,e,r,Z,O){e&&(r===void 0&&(r=0),Z===void 0&&(Z=0),G.playbackDurationSeconds_=Z/1E3,G.playerVars_={adformat:"17_8",videoId:e,suggestedQuality:"hd720",startSeconds:r/1E3,player_params:O})};
Hh.prototype.mute=function(){this.playerPromise_.then(function(G){G.mute()})};
Hh.prototype.unMute=function(){this.playerPromise_.then(function(G){G.unMute()})};var wFA=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var dk;dk=function(){this.tokenJars={};if(this.cookiesEnabled=_.Qi()){var G=_.oZ.get("CONSISTENCY",void 0);G&&P0P(this,{encryptedTokenJarContents:G})}};
_.SUy=function(){dk.instance||(dk.instance=new dk);return dk.instance};
dk.prototype.handleResponse=function(G,e){if(!e)throw Error("Zf");var r,Z;e=((r=e.innerTubeRequest.context)==null?void 0:(Z=r.request)==null?void 0:Z.consistencyTokenJars)||[];var O;(G=(O=G.responseContext)==null?void 0:O.consistencyTokenJar)&&this.replace(e,G)};
dk.prototype.replace=function(G,e){G=_.h(G);for(var r=G.next();!r.done;r=G.next())delete this.tokenJars[r.value.encryptedTokenJarContents];P0P(this,e)};
var P0P=function(G,e){if(e.encryptedTokenJarContents&&(G.tokenJars[e.encryptedTokenJarContents]=e,typeof e.expirationSeconds==="string")){var r=Number(e.expirationSeconds);setTimeout(function(){delete G.tokenJars[e.encryptedTokenJarContents]},r*1E3);
G.cookiesEnabled&&_.s5("CONSISTENCY",e.encryptedTokenJarContents,r,void 0,!0)}};var Ujl,oT;Ujl=window.location.hostname.split(".").slice(-2).join(".");_.Ql=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var G=_.xZ("LOCATION_PLAYABILITY_TOKEN");_.xZ("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=zuy(this))&&(G=this.localStorage.get("yt-location-playability-token"));G&&(this.locationPlayabilityToken=G,this.mostRecentPosition=void 0)};
_.Ql.getInstance=function(){oT=_.Lz("yt.clientLocationService.instance");oT||(oT=new _.Ql,_.Eu("yt.clientLocationService.instance",oT));return oT};
_.Ql.prototype.setLocationOnInnerTubeContext=function(G){G.client||(G.client={});if(this.mostRecentPosition)G.client.locationInfo||(G.client.locationInfo={}),G.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),G.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),G.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),G.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)G.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.Ql.prototype.handleResponse=function(G){var e;G=(e=G.responseContext)==null?void 0:e.locationPlayabilityToken;G!==void 0&&(this.locationPlayabilityToken=G,this.mostRecentPosition=void 0,_.xZ("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=zuy(this))&&this.localStorage.set("yt-location-playability-token",G,15552E3):_.s5("YT_CL",JSON.stringify({loctok:G}),15552E3,Ujl,!0))};
var zuy=function(G){return G.localStorage===void 0?new _.PG("yt-client-location"):G.localStorage};
_.Ql.prototype.clearLocationPlayabilityToken=function(G){G==="TVHTML5"?(this.localStorage=zuy(this))&&this.localStorage.remove("yt-location-playability-token"):_.I__("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.Ql.prototype.getCurrentPositionFromGeolocation=function(){var G=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("$f"));var e=!1,r=1E4;_.xZ("INNERTUBE_CLIENT_NAME")==="MWEB"&&(e=!0,r=15E3);return new Promise(function(Z,O){navigator.geolocation.getCurrentPosition(function(M){G.mostRecentPosition=M;Z(M)},function(M){O(M)},{enableHighAccuracy:e,
maximumAge:0,timeout:r})})};
_.Ql.prototype.createUnpluggedLocationInfo=function(G){var e={};G=G.coords;if(G==null?0:G.latitude)e.latitudeE7=Math.floor(G.latitude*1E7);if(G==null?0:G.longitude)e.longitudeE7=Math.floor(G.longitude*1E7);if(G==null?0:G.accuracy)e.locationRadiusMeters=Math.round(G.accuracy);return e};
_.Ql.prototype.createLocationInfo=function(G){var e={};G=G.coords;if(G==null?0:G.latitude)e.latitudeE7=Math.floor(G.latitude*1E7);if(G==null?0:G.longitude)e.longitudeE7=Math.floor(G.longitude*1E7);return e};var Wtj=function(G,e){var r=ky();G||(G="unknown");e||(e="unknown");G="MAIN_APP_WEB_PAGE_TYPE_"+G.toUpperCase();G in XtE||(G="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");e="MAIN_APP_WEB_REQUEST_TYPE_"+e.toUpperCase();e in KEn||(e="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.Gx(r,{mainAppWeb:{pageType:G,requestType:e,isShellLoad:_.PX("IS_SHELL_LOAD",!1)}})},NME={start:function(){_.Gx(fO4(),{mainAppWeb:_.IB()})},
success:function(){_.e0(fO4(),"SUCCESS")},
failure:function(){_.e0(fO4(),"FAILURE")},
cancelled:function(){_.e0(fO4(),"CANCELLED")}};var Ltl,Gmv,Rq4;Ltl=_.Cp(["/sw.js"]);Gmv=_.Cp(["/sw.js?0"]);_.eyv=_.qK(Ltl);Rq4=_.qK(Gmv);var rcw=function(){var G=Error.apply(this,arguments);this.message=G.message;"stack"in G&&(this.stack=G.stack)};
_.K(rcw,Error);_.uf.prototype.load=function(G){this.megabloxUrl_=_.xZ("YPC_MB_URL");_.Hi(this.megabloxUrl_,(0,_.CB)(function(){G&&G()},this))};
_.ngN=function(G,e,r,Z,O,M,T,E,b,w,q){_.a5s(b);G.load((0,_.CB)(function(){try{var t=M?M:_.xZ("HL"),g=_.xZ("SESSION_INDEX");_.MJU("client",function(){Suy("59",{helpCenterPath:"/youtube",locale:t,window:window}).JSC$9984_loadChatSupport({authuser:String(g)})})}catch(l){throw pa(10,q,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),O&&O(l),_.yx(l),l;
}Zy3(this,e,r,Z,O,M,T,E,b,w,q)},G))};
_.uf.prototype.openFixFlowDialog=function(G,e,r,Z){this.load((0,_.CB)(function(){try{Oyc(this,_.Lz("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(G).withIntegratorCallback(e).load(r,Z)}catch(O){throw _.yx(O),O;}},this))};
var Oyc=function(G,e,r,Z){var O=e.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.R("enable_window_constrained_buy_flow_dialog")&&(O=O.usingPopupStyle(_.Lz("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));Z&&(O=O.usingCloseCallback(Z));e.bootstrap.fromPaymentsUrl(G.megabloxUrl_);G=e.bootstrap.asMashupMode(O);r=r?r:_.xZ("HL");G.usingGaiaIndex(_.xZ("SESSION_INDEX")).usingLocale(r).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.R("enable_google_payments_buyflow_material2_style_web")?
G.usingStyle(":m2;pc=#444;ac=#065fd4"):G.usingStyle(":md;pc=#444;ac=#065fd4");return G},Zy3=function(G,e,r,Z,O,M,T,E,b,w,q){try{var t=_.Lz("payments.business.integration");
if(!t)throw new rcw("payments.business.integration is undefined");var g=t.standaloneContextAuthId.forUserId(),l=Oyc(G,t,M,function(){K7U(!1);E&&E()});
T&&l.usingServerAnalyticsEventHandler(T);var X=l.inStandaloneContext(g).buyFlow(function(H){if(H&&(!H.integratorData||H.integratorData===""||H.error))if(H.error!=null)if(String(H.error)==="-1")_.XFf(b);else{var I=String(H.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";pa(10,q,I,H.debugCode);_.Ca(I,b,H.debugCode);I=new _.Cr("PAYMENT_ERROR_MESSAGE::"+H.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+H.internalErrorDetails);
_.yx(I)}else pa(10,q,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.Ca("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",b,"EMPTY_INTEGRATOR_DATA"),_.yx(Error("bg"));r&&(K7U(!1),r(H))}).withEncryptedParameters(e);
w&&X.withClientParameters(t$C(_.Ce$(w)));X.load(function(){pa(24,q);_.f_("ttc",void 0,"commerce_transaction");lp("commerce_transaction");Z&&(Z(),K7U(!0))},function(H){if(H==null?0:H.debugCode)var I=H==null?void 0:H.debugCode;
else if(!H||(H==null?0:H.debugCode))I="EMPTY_LOAD_FAILURE_ERROR",_.yx(Error(I));else{I="EMPTY_LOAD_FAILURE_DEBUG_CODE";var C=new _.Cr("LOAD_FAILURE:"+H.message," DEBUG_CODE:"+I);_.yx(C)}pa(10,q,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",I);_.Ca("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",b,I);_.yx(H);O&&O(H)})}catch(H){throw H instanceof rcw&&(pa(10,q,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),O&&O(H)),_.yx(H),H;
}};var MBl;MBl=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.pjA=function(G,e){e=e===void 0?!1:e;G=MBl.test(G)?_.sk(G):null;!e&&window.payments||!G?(G=_.C1(),e=G.promise,G.resolve()):e=_.Ztc(G,{attributes:{"data-payments-main":"",id:"payment-lib"}});return e};var VBv;VBv=_.Cp(["//www.googletagmanager.com/gtm.js?id=",""]);_.sZ=function(G,e){_.B5(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:_.xZ("GL")}),e=_.Hp("SCRIPT"),e.async=!0,_.h6(e,_.qK(VBv,G)),e.id="gtm",G=document.getElementsByTagName("script"),G.length==0?document.head.appendChild(e):(G=G[0],G.parentNode.insertBefore(e,G)))};
_.Q9=function(G){if(G=JSON.parse(G))window.dataLayer=window.dataLayer||[],window.dataLayer.push(G)};var hyS,Tmj;hyS=_.Cp(["https://clients2.google.com/gr/gr_sync.js"]);_.Q1_=function(){};
_.Q1_.prototype.init=function(){if(Tmj()){var G=_.C1();G.resolve();return G.promise}return _.Ztc(_.qK(hyS)).then(function(){if(!Tmj())throw Error("cg");},function(){throw Error("dg");
})};
_.IBU=function(){if(!Tmj())return"";var G=window.google.gr;G.init({async:{schedule:"sync"},merchantId:"youtube"});G.start();G=G.finish();return G==null?"":G};
Tmj=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.m=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.K(_.m,PolymerFakeBaseClassWithoutHtml);_.DQ=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.K(_.DQ,PolymerFakeBaseClassWithoutHtml);var f5F=window.ShadyDOM;var EXN,TAq,bHi,vXp,$cF,S8U,IT,UO;EXN=_.R("enable_shadydom_free_scoped_query_methods");TAq=_.R("enable_shadydom_free_scoped_node_methods");bHi=_.R("enable_shadydom_free_scoped_readonly_properties_batch_one");vXp=_.R("enable_shadydom_free_parent_node");$cF=_.R("enable_shadydom_free_children");S8U=_.R("enable_shadydom_free_last_child");IT=window.ShadyDOM;_.Go=IT&&IT.noPatch&&IT.wrap?IT.wrap:IT?function(G){return IT.patch(G)}:function(G){return G};
UO=function(G){if(G instanceof ShadowRoot)this.host=(0,_.Go)(G.host),this.root=G;else if(G.$$){this.host=(0,_.Go)(G);var e;this.root=(e=G.root)!=null?e:this.host}else if(G.polymerController){this.host=(0,_.Go)(G);var r;this.root=(r=this.host.shadowRoot)!=null?r:this.host}else this.root=this.host=(0,_.Go)(G)};
Dcq();iHi();q8y();tbA();wrS();var D3b={querySelector:function(G,e){e=cJA(e,yl(G));return _.R("sunnydom_native_scoped_query_selectors")?HwS(G,e):HwS(_.AX(G),e)},
querySelectorAll:function(G,e){e=cJA(e,yl(G));return _.R("sunnydom_native_scoped_query_selectors")?Array.from(d2N(G,e)):d2N(_.AX(G),e)}},ExS={appendChild:function(G,e){var r=yl(G),Z=_.YN(e);
return _.VbN(_.AX(G),r?_.JX(e,r,Z):e)},
cloneNode:function(G,e){var r=_.YN(G);G=_.AX(G);e=c1(G).prototype.cloneNode.call(G,e);return r?B1(e,r):e},
contains:function(G,e){var r=yl(G),Z=_.YN(e);return r!==Z?!1:hn$(G,e)},
insertBefore:function(G,e,r){var Z=yl(G),O=_.YN(e);G=_.AX(G);e=Z?_.JX(e,Z,O):e;return c1(G).prototype.insertBefore.call(G,e,r)},
removeChild:function(G,e){var r=yl(G);G=_.AX(G);e=r?B1(e,r):e;return c1(G).prototype.removeChild.call(G,e)},
replaceChild:function(G,e,r){var Z=yl(G),O=_.YN(e);e=Z?_.JX(e,Z,O):O?B1(e,O):e;r=Z?B1(r,Z):r;G=_.AX(G);return c1(G).prototype.replaceChild.call(G,e,r)},
getRootNode:function(G,e){e=e===void 0?{composed:!0}:e;var r;if(((r=e)!=null?r:{}).composed)G=Mb$(G);else{e=G;for(G=suy(G);G;)e=G,G=yJS(G);G=e}return G}},lnf=bHi?{firstChild:L7i,
nextSibling:zq_,previousSibling:N5y,firstElementChild:G7$,lastElementChild:rMq,nextElementSibling:U2U,previousElementSibling:W7$,childNodes:ZHS}:{};vXp&&(lnf.parentNode=PX_);$cF&&(lnf.children=OH_);S8U&&(lnf.lastChild=eni);EXN&&gX$(D3b);TAq&&gX$(ExS);Rni();var jmN=function(G){this.node=G instanceof ShadowRoot?G.host:G};
anU();Xry();var k7s=new WeakMap;var dcf=Symbol("Bd");var pr$=new Set(["tap","track","down","up"]),CQy=_.R("pbcm_fi_query_decorators");var ph=function(){return _.DQ.apply(this,arguments)||this};
_.K(ph,_.DQ);_.V=ph.prototype;_.V.getState=function(){return this.store.getState()};
_.V.dispatch=function(G){this.store.dispatch(G)};
_.V.beforeRegister=function(){if(this&&typeof this==="object"){var G;var e=!!this.useSignals||!((G=this.polymerController)==null||!G.useSignals)}else e=!1;if(!e&&this.properties)for(e=_.h(Object.keys(this.properties)),G=e.next();!G.done;G=e.next()){var r=G.value;G=this.properties[r];if(G.selector){if(G.computed)throw Error("kg");r=["reduxPropertiesRecomputeTrigger",'"'+r+'"'].concat(_.mY(G.selectorArgs||[])).join(",");G.computed="recomputeReduxSelector("+r+")"}}};
_.V.attached=function(){var G=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){G.reduxPropertiesRecomputeTrigger++}));
_.R("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.V.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.V.recomputeReduxSelector=function(G,e){var r=_.Bw.apply(2,arguments),Z=this.properties[e].selector;if(!Z)throw Error("ig`"+e);return Z.apply(null,[this.store.getState()].concat(_.mY(r)))};
_.V.select=function(G){var e=_.Bw.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return G.apply(null,[this.store.getState()].concat(_.mY(e)))};
_.iY.Object.defineProperties(ph.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
ph.prototype.recomputeReduxSelector=ph.prototype.recomputeReduxSelector;_.B([_.n(),_.x("design:type",Number)],ph.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.B([_.Em()],ph);var Ch=[],cMq={},jD=function(){return vU.apply(this,arguments)||this};
_.K(jD,vU);jD.prototype._addPropertyEffect=function(G,e,r){if(e==="__observeEffects"&&r){var Z,O=(Z=r.info.method)!=null?Z:r.info.methodName;if(O){var M=this[O];this[O]=function(){Ch.push(O);try{M==null||M.apply(this,arguments)}finally{Ch.pop()}}}}_.fV._addPropertyEffect.apply(this,[G,
e,r])};
jD.prototype._setPendingProperty=function(G,e,r){if(Ch.length){var Z=Ch[Ch.length-1],O;(O=cMq[this.is])!=null&&O.has(Z)||(Y84(this.is,Z),_.cg("polymerPropertyChangedInObserver",{componentName:this.is,observerName:Z}))}return _.fV._setPendingProperty.apply(this,[G,e,r])};
_.B([Zli()],jD);var yMS=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),Fxq,vx={};_.R("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=vx);var SD=function(){return _.DQ.apply(this,arguments)||this};
_.K(SD,_.DQ);SD.prototype._setUnmanagedPropertyToNode=function(G,e,r){G.loggingStatus&&(G.loggingStatus.isDeclarativeExternal=!0);if(r!==G[e]||typeof r==="object")G[e]=r;G.is&&G.polymerController&&G.polymerController!==G&&wv(G.is,e,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");G.loggingStatus&&(G.loggingStatus.isDeclarativeExternal=!1)};
_.B([_.Em()],SD);AMF()&&(LM.prototype._setUnmanagedPropertyToNode=(new SD)._setUnmanagedPropertyToNode);_.O5f={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(G){},set polymerController(G){}}]};var RR=function(){var G=vU.apply(this,arguments)||this;G.json=function(){};
return G};
_.K(RR,vU);RR.prototype.equals=function(G,e){return G===e};
RR.prototype.isEmpty=function(G){var e;(e=!G)||(e=_.FN(G)&&G.length===0);return e};
_.B([Zli()],RR);var iyW=function(G){G=OVF(G);J9.call(this,G)};
_.K(iyW,J9);iyW.prototype.addProvider=function(G){G=G.key?G:OVF([G])[0];var e=this.keyIdToIndex.get(G.key.id);if(e){if(Uci(G,this.providers[e]))throw Error("lg`"+G.key.displayName);}else J9.prototype.addProvider.call(this,G)};
var byc=new iyW([]);var vxy=!1;var eQp={};vxy||(GE4(),vxy=!0);
eQp.InjectBehavior={initializeInjection:function(){var G=this.provide;try{if((G=G!=null?G:[])&&G.length>0)for(var e=OVF(G),r=_.h(e),Z=r.next();!Z.done;Z=r.next())byc.addProvider(Z.value);var O=new Set;znf(this.behaviors||[],O);e={};for(var M=_.h(O),T=M.next();!T.done;T=M.next()){var E=T.value;E.inject&&Object.assign(e,E.inject)}this.inject&&Object.assign(e,this.inject);for(var b=_.h(Object.keys(e)),w=b.next();!w.done;w=b.next()){var q=w.value,t=e[q];try{this[q]=byc.resolve(t)}catch(g){throw g;}}}catch(g){throw Error(g.message);
}}};var Z5y;var MHA=/\bclass\b/.test(function(){}.toString()),TGN=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var w0C=function(G){this.wasDefined=!0;Array.isArray(G)||G instanceof Array?(this.JSC$13510_getImpl=G[0],this.JSC$13510_setImpl=G[1]):this.JSC$13510_getImpl=G};
_.V=w0C.prototype;_.V.getWithPath=function(G){return i5N(this.JSC$13510_getImpl(),G)};
_.V.setWithPath=function(G,e){var r=this;if(G.length)throw Error("mg");if(!this.JSC$13510_setImpl)throw Error("ng");oh(function(){r.JSC$13510_setImpl(e)})};
_.V.notifyPath=function(){throw Error("og");};
_.V.notifySplices=function(){throw Error("pg");};
_.V.getChangeRecordSignal=function(G,e){var r=this;if(G.length)throw Error("qg");return function(){var Z=r.getWithPath(G);return{path:e!=null?e:"",base:Z,value:Z}}};
_.V.getSplicesSignal=function(){throw Error("rg");};
_.V.getPathMutationSignal=function(){throw Error("sg");};
_.V.pop=function(){throw Error("tg");};
_.V.push=function(){throw Error("ug");};
_.V.splice=function(){throw Error("vg");};
_.V.unshift=function(){throw Error("wg");};var ur=function(G){var e=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(G)||G instanceof Array?(this.JSC$13515_getImpl=G[0],this.JSC$13515_setImpl=G[1]):this.JSC$13515_getImpl=G;this.wasDefined=!1;_.ah(function(){e.wasDefined=e.JSC$13515_getImpl()!==void 0})};
ur.prototype.getWithPath=function(G){return i5N(this.JSC$13515_getImpl(),G)};
ur.prototype.setWithPath=function(G,e){var r=this;if(G[G.length-1]!=="*"&&G[G.length-1]!=="splices"){var Z=_.ah(function(){return r.getWithPath([])});
if(G.length===0){if(!this.JSC$13515_setImpl)throw Error("xg");if(Z===e)return;this.wasDefined||(this.wasDefined=e!==void 0);oh(function(){r.JSC$13515_setImpl(e)})}else{for(var O=0;O<G.length-1;O++){if(!Z)return;
Z=Z[G[O]]}O=G[G.length-1];Z&&(Z[O]=e);this.wasDefined||(this.wasDefined=G.length>1||e!==void 0)}$3y(this,G,{pathComponents:G,value:e})}};
ur.prototype.notifyPath=function(G,e){G.length===0?e&&this.setWithPath(G,e.value):$3y(this,G,{pathComponents:G,value:e==null?void 0:e.value,fallbackWhenUndefined:e==null?void 0:e.value})};
var $3y=function(G,e,r,Z){if(G.setMutationSignal){var O=++G.mutationIndex,M=[G.observedPath],T=G.observedPath,E;e.length===0&&(E=T);for(var b=0;b<e.length;b++){var w=T.subPaths[e[b]];if(!w)break;M.push(w);T=w;b===e.length-1&&(E=w)}for(e=!1;M.length;)T=M.shift(),T.data={index:O,mutation:r,spliceMutationIndex:Z},e||(e=T===E),e&&M.push.apply(M,_.mY(Object.values(T.subPaths)));oh(function(){G.setMutationSignal(O)})}};
ur.prototype.notifySplices=function(G,e){var r=this,Z=_.ah(function(){return r.getWithPath(G)}),O=[].concat(_.mY(G),["splices"]);
$3y(this,O,{pathComponents:O,value:{indexSplices:e}});if(Z==null?0:Z.length)e=this.mutationIndex,O=[].concat(_.mY(G),["length"]),$3y(this,O,{pathComponents:O,value:Z.length},e)};
var STj=function(G,e,r,Z,O,M){G.notifySplices(r,[{index:Z,addedCount:O,removed:M,object:e,type:"splice"}])},qT3=function(G,e){G=G.observedPath;
for(var r=0;r<e.length;r++){var Z=e[r],O=G.subPaths[Z];O||(O={pathComponents:e.slice(0,r+1),subPaths:{}},G.subPaths[Z]=O);G=O}},gxP=function(G,e,r){qT3(G,e);
if(!G.getMutationSignal){var Z=_.h(_.XQ(G.mutationIndex,void 0,"sNBMCd"));G.getMutationSignal=Z.next().value;G.setMutationSignal=Z.next().value}var O=G.getMutationSignal;return _.dw(function(){O();return r(tBj(G,e))},void 0,"zvsXEd")};
ur.prototype.getChangeRecordSignal=function(G,e){var r=this,Z=this.mutationIndex,O;return gxP(this,G,function(M){if(M&&M.index>Z){var T=M.mutation;Z=M.index;O=void 0}M=_.ah(function(){return r.getWithPath(G)});
if(T){var E=T.pathComponents[T.pathComponents.length-1],b=[].concat(_.mY(T.pathComponents));if(E==="splices"||E==="length")return{base:M,path:(e?[e].concat(_.mY(b)):b).join("."),value:T.value};var w=G.length>b.length?G:b,q;return{base:M!=null?M:T.fallbackWhenUndefined,path:(e?[e].concat(_.mY(w)):w).join("."),value:(q=_.ah(function(){return r.getWithPath(w)}))!=null?q:T.fallbackWhenUndefined}}O||(O={base:M,
path:(e?[e].concat(_.mY(G)):G).join("."),value:M});return O})};
ur.prototype.getSplicesSignal=function(G){var e=this.mutationIndex,r;return gxP(this,G,function(Z){if(Z&&Z.index>e&&Z.spliceMutationIndex!==e){var O=Z.mutation;e=Z.index;r=void 0}return O&&O.pathComponents[O.pathComponents.length-1]==="splices"?r=Z=O.value:r})};
ur.prototype.getPathMutationSignal=function(G){var e=this;qT3(this,G);if(!this.getMutationSignal){var r=_.h(_.XQ(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=r.next().value;this.setMutationSignal=r.next().value}var Z=this.getMutationSignal,O=this.mutationIndex,M;return _.dw(function(){Z();var T=tBj(e,G);if(T&&T.index>O&&T.mutation&&b5f(T.mutation.pathComponents,G)){var E=T.mutation;O=T.index}if(!M||O!==M.index){var b,w;T=(w=_.ah(function(){return e.getWithPath(G)}))!=null?w:(b=E)==null?
void 0:b.fallbackWhenUndefined;
M={index:O,value:T}}return M},void 0,"RXYC9b")};
var tBj=function(G,e){G=G.observedPath;e=_.h(e);for(var r=e.next();!r.done;r=e.next())G=G.subPaths[r.value];return G.data};
ur.prototype.pop=function(G){var e=this,r=_.ah(function(){return e.getWithPath(G)});
if(!(r instanceof Array))throw Error("yg");var Z=r.length>0,O=r.pop();Z&&STj(this,r,G,r.length,0,[O]);return O};
ur.prototype.push=function(G){var e=_.Bw.apply(1,arguments),r=this,Z=_.ah(function(){return r.getWithPath(G)});
if(!(Z instanceof Array))throw Error("zg");var O=Z.length,M=Z.push.apply(Z,_.mY(e));e.length&&STj(this,Z,G,O,e.length,[]);return M};
ur.prototype.splice=function(G,e,r){var Z=_.Bw.apply(3,arguments),O=this,M=_.ah(function(){return O.getWithPath(G)});
if(!(M instanceof Array))throw Error("Ag");e<0?e=M.length-Math.floor(-e):e&&(e=Math.floor(e));var T=M.splice.apply(M,[e,r].concat(_.mY(Z)));(Z.length||T.length)&&STj(this,M,G,e,Z.length,T);return T};
ur.prototype.unshift=function(G){var e=_.Bw.apply(1,arguments),r=this,Z=_.ah(function(){return r.getWithPath(G)});
if(!(Z instanceof Array))throw Error("Bg");var O=Z.unshift.apply(Z,_.mY(e));e.length&&STj(this,Z,G,0,e.length,[]);return O};var nh=function(G,e,r){this.model=G;this.unknownSignalResolver=e;this.options=r;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];e=_.h(RQ$());G=e.next().value;e=e.next().value;this.owner=G;this.disposeImpl=e};
nh.prototype.dispose=function(){if(!this.isDisposed){for(var G=_.h(this.childSignalProxies),e=G.next();!e.done;e=G.next())e.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var l6W=function(G,e){G=_.Ty(G.owner);try{e()}finally{_.Ty(G)}};
nh.prototype.effect=function(G){l6W(this,function(){_.JB(G,"g")})};
var RyS=function(G,e){G.options!=null||(G.options={});var r;(r=G.options).immutableProps!=null||(r.immutableProps=new Set);G.options.immutableProps.add(e)},xYS=function(G,e){e=""+e;
j7v(G,e);var r,Z;if((r=G.options)==null?0:(Z=r.immutableProps)==null?0:Z.has(e))return!0;var O;if((O=G.model.__signalCache)==null?0:O.has(e))r=G.model.__signalCache.get(e),Array.isArray(r)&&RyS(G,e);var M,T,E;return(E=(M=G.options)==null?void 0:(T=M.immutableProps)==null?void 0:T.has(e))!=null?E:!1},a6l=function(G,e){var r;
G.unknownSignalResolver&&(r=G.unknownSignalResolver(e));var Z,O;((Z=G.options)==null?0:(O=Z.immutableProps)==null?0:O.has(e))?r!=null||(r=new w0C(_.XQ(G.model[e],void 0,"By5iP"))):r!=null||(r=new ur(_.XQ(G.model[e],void 0,"CXghNc")));var M=G.model.hostElement;Object.defineProperty(G.model,e,{get:function(){BA$(M,e);return r.getWithPath([])},
set:function(T){$P(M,e);G.setWithPath([e],T)},
configurable:!0});return r},j7v=function(G,e){var r,Z,O;
((r=G.model.__signalCache)==null||!r.has(e))&&((Z=G.options)==null?0:(O=Z.externalSignalProps)==null?0:O.has(e))&&G.model[e]},fR=function(G,e){e=""+e;
var r=G.signalCache[e];if(r!==void 0)return r;r=!1;j7v(G,e);var Z;if((Z=G.model.__signalCache)==null?0:Z.has(e))if(r=G.model.__signalCache.get(e),Array.isArray(r))r=!0,RyS(G,e);else return G.signalCache[e]=G.model.__signalCache.get(e).signal,G.signalCache[e];var O,M;Z=(M=(O=G.options)==null?void 0:O.reactivityMode)!=null?M:0;var T,E;if(!((T=G.options)==null?0:(E=T.reactiveProps)==null?0:E.has(e))&&!r&&Z===1)throw Error("Cg`"+e);O=r?X0P(G,e):a6l(G,e);return G.signalCache[e]=O},X0P=function(G,e){var r=
Object.getOwnPropertyDescriptor(G.model.constructor.prototype,e),Z=function(){return G.model[e]};
return new w0C(r&&r.get&&!r.set?Z:[Z,function(O){G.model[e]=O}])};
nh.prototype.getWithPath=function(G){var e=_.h(G);G=e.next().value;e=MI(e);BA$(this.model.hostElement,""+G);return fR(this,G).getWithPath(e)};
nh.prototype.setWithPath=function(G,e){if(G.length){$P(this.model.hostElement,G.join("."));var r=_.h(G);G=r.next().value;r=MI(r);fR(this,G).setWithPath(r,e)}};
nh.prototype.getPathMutationSignal=function(G){var e=_.h(G);G=e.next().value;e=MI(e);return fR(this,G).getPathMutationSignal(e)};
nh.prototype.notifyPath=function(G,e){var r=_.h(G);G=r.next().value;r=MI(r);fR(this,G).notifyPath(r,e)};
var Kmb=function(G,e){if(e.type==="literal")return function(){return{rootWasDefined:!0,value:e.value}};
var r=X6(e.path),Z=_.h(r),O=Z.next().value;Z=MI(Z);var M,T;if(e.type==="path"&&(r.length===1||((M=G.options)==null?0:(T=M.immutableProps)==null?0:T.has(O))))return function(){var t=G.getWithPath(r.slice(0,1));t=i5N(t,r.slice(1));return{rootWasDefined:fR(G,r[0]).wasDefined,value:t}};
var E=fR(G,O);if(e.type==="path"){var b=E.getPathMutationSignal(Z);return function(){var t,g=(t=b())==null?void 0:t.value;return{rootWasDefined:E.wasDefined,value:g}}}if(e.type==="splices"){var w=E.getSplicesSignal(Z);
return function(){var t=w();return{rootWasDefined:E.wasDefined,value:t}}}var q=E.getChangeRecordSignal(Z,""+O);
return function(){var t=q();return{rootWasDefined:E.wasDefined,value:t}}},tHN=function(G,e,r){var Z=r.map(function(E){return Kmb(G,E)}),O=r.length===0,M=[],T=r.length!==1||r[0].type!=="path"?!1:!0;
G.effect(function(){for(var E=Z.length,b=[],w=!!M.length,q=0;q<E;q++){var t=Z[q](),g=t.rootWasDefined;t=t.value;O||(O=g);b[q]=t;T&&(b[q+E]=w?M[q]:b[q],M[q]=t)}O&&BO(G.owner,function(){return void e.apply(null,_.mY(b))})})},vzF=function(G,e,r,Z,O){var M=fR(G,e);
O!==void 0&&M.setWithPath([],O);tHN(G,function(){var T=_.Bw.apply(0,arguments);$P(G.model.hostElement,e,!0);M.setWithPath([],r.apply(null,_.mY(T)))},Z)};
nh.prototype.arrayPush=function(G){var e=_.Bw.apply(1,arguments),r=_.h(G),Z=r.next().value;r=MI(r);Z=fR(this,Z);return Z.push.apply(Z,[r].concat(_.mY(e)))};
nh.prototype.arraySplice=function(G,e,r){var Z=_.Bw.apply(3,arguments),O=_.h(G),M=O.next().value;O=MI(O);M=fR(this,M);return M.splice.apply(M,[O,e,r].concat(_.mY(Z)))};
nh.prototype.arrayUnshift=function(G){var e=_.Bw.apply(1,arguments),r=_.h(G),Z=r.next().value;r=MI(r);Z=fR(this,Z);return Z.unshift.apply(Z,[r].concat(_.mY(e)))};
nh.prototype.notifySplices=function(G,e){var r=_.h(G);G=r.next().value;r=MI(r);fR(this,G).notifySplices(r,e)};var f6n=!0,kmv=!1,P8_=!1,HyE=!1,d3v=0;HyE=!1;d3v=0;f6n=!0;kmv=P8_=!1;var kEi=/([^\s]+?)\(([\s\S]*)\)/,Xd4=/\.([^.]+)$/,dYa=/\\,/g,jYq=/&comma;/g,a84=/\\(.)/g,H5F=[],KgF={"*":"wildcard",splices:"splices"};var c$f=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"),CNF=/[A-Z]/,oxn=["class","hidden","id","on-dom-change"],y$p=new Set([].concat(_.mY(oxn),
["if","notify-dom-change","restamp"])),A$U=new Set([].concat(_.mY(oxn),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),FgS=new Set(["restamp"]);var yli=new Set(["className","id"]);var UYN=Symbol(),rma=window;var EqN=window;var qL_=0,vqf=0,kP=[],SLp=0,bI$=!1,$Dq=document.createTextNode("");(new window.MutationObserver(wPq)).observe($Dq,{characterData:!0});var dv=new Map,Hx=0,s7j=function(G){this.mappedHandleId=G},gqA=function(G,e,r,Z){this.mappedHandleId=G;
var O=this;this.mappedHandleId=G;this.callback=e;this.waitTime=r;this.schedulerPriority=Z;this.handleId=_.A0.addJob(function(){O.callback();dv.delete(O.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.K(gqA,s7j);gqA.prototype.cancel=function(){_.A0.cancelJob(this.handleId);dv.delete(this.mappedHandleId)};
var lUs=function(G,e){this.mappedHandleId=G;var r=this;this.mappedHandleId=G;this.callback=e;this.handleId=tLF(function(){r.callback();dv.delete(r.mappedHandleId)})};
_.K(lUs,s7j);lUs.prototype.cancel=function(){var G=this.handleId-vqf;G<0||kP.length<=G||(kP[G]=null);dv.delete(this.mappedHandleId)};var XPi=function(){};
XPi.prototype.cancel=function(){this.jobHandle!==void 0&&(RHi(this.jobHandle),this.jobHandle=void 0)};
XPi.prototype.run=function(G,e,r){var Z=this;this.cancel();this.callback=G;this.jobHandle=_.oR(function(){G();Z.callback=void 0},e,r)};
XPi.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var jD4=new WeakMap;var Q7w=GR(function(G){for(var e=G,r=0;r<3;r++)e=Object.getPrototypeOf(e);delete e.prototype.connectedCallback;var Z=function(){return G.apply(this,arguments)||this};
_.K(Z,G);Z.prototype._attachDom=function(O){if(!O)return null;var M=(0,_.Go)(this.hostElement);M.attachShadow({mode:"open",shadyUpgradeFragment:O});M.shadowRoot.appendChild(O);return M.shadowRoot};
Z.prototype._takeAttributes=function(){for(var O=this.hostElement.attributes,M=0;M<O.length;M++){var T=O[M],E=void 0,b=void 0;(b=(E=this).__attributeReaction)==null||b.call(E,T.name,null,T.value)}};
Z.prototype._readyClients=function(){G.prototype._readyClients.call(this);this.root=this};
Z.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);G.prototype.connectedCallback.call(this)};
_.iY.Object.defineProperties(Z,{template:{configurable:!0,enumerable:!0,get:function(){return Z.prototype._template}}});
return Z}),I6c=GR(function(G){var e=function(){return G.apply(this,arguments)||this};
_.K(e,G);e.prototype.created=function(){if(this.__notifyEffects)for(var r=_.h(Object.values(this.__notifyEffects)),Z=r.next();!Z.done;Z=r.next()){Z=_.h(Z.value);for(var O=Z.next();!O.done;O=Z.next())O.value.fn=HIS}if(this.__reflectEffects)for(r=_.h(Object.values(this.__reflectEffects)),Z=r.next();!Z.done;Z=r.next())for(Z=_.h(Z.value),O=Z.next();!O.done;O=Z.next())O.value.fn=dDS};
e.prototype._addEventListenerToNode=function(r,Z,O){r=QI(r);F1(r,Z,O)||G.prototype._addEventListenerToNode.call(this,r,Z,O)};
e.prototype._removeEventListenerFromNode=function(r,Z,O){r=QI(r);JT(r,Z,O)||G.prototype._removeEventListenerFromNode.call(this,r,Z,O)};
e.prototype._propertiesChanged=function(r,Z,O){if(this.__dataToNotify&&this.__notifyEffects)for(var M=_.h(Object.keys(this.__dataToNotify)),T=M.next();!T.done;T=M.next()){T=T.value;var E=kPs(T);this.__notifyEffects[E]||delete this.__dataToNotify[T]}else this.__dataToNotify=null;G.prototype._propertiesChanged.call(this,r,Z,O)};
e.prototype.fire=function(r,Z,O){Z=Z===void 0?{}:Z;var M;return _.xy(QI((M=O==null?void 0:O.node)!=null?M:this),r,Z,O)};
e.prototype._ensureAttribute=function(r,Z){var O=QI(this);O.hasAttribute(r)||KR(O,Z,r)};
e.prototype.isLightDescendant=function(r){var Z=QI(this);return QI(Z)!==r&&_.z1(Z).contains(r)&&_.z1(Z).getRootNode()===_.z1(r).getRootNode()};
return e});
_.k6.ready=function(){var G;((G=this.hostElement)!=null?G:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var e;((e=this.hostElement)!=null?e:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.CS._subscribeIronResize=function(G){var e;((e=G.hostElement)!=null?e:G).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.CS._unsubscribeIronResize=function(G){var e;((e=G.hostElement)!=null?e:G).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var QDS=[Array,Boolean,Date,Number,Object,String],pR=function(G,e,r,Z){this.polySiInfo=G;this.polySiParams=e;this.polySiContext=r;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;Z||this instanceof HTMLElement&&(Z=this);if(!Z)throw Error("Jg");this.allowedProps=e.allowedProps;this.hostElement=Z;this.is=G.is;this.upgradeDisabled=!!e.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");G=new Set(e.reactiveSchemas.filter(function(O){return O.type!==
"observe"}).map(function(O){return O.propertyKey}));
this.signalProxy=new nh(this,void 0,{reactiveProps:G,reactivityMode:e.reactivityMode});this.__dataHasAccessor={};e=_.h(e.reactiveSchemas);for(G=e.next();!G.done;G=e.next())G=G.value,G.type==="signal"&&(this.__dataHasAccessor[G.propertyKey]=!0);this.upgradeDisabled||p0C(this)};
pR.prototype.getExtraMethodsToForward=function(){return[]};
var p0C=function(G){G.polySiContext.didRegister||(G.registered(),G.polySiContext.didRegister=!0);G.polySiContext.finalizedTemplate||(G.polySiContext.finalizedTemplate={},G.polySiParams.templateGetter&&(G.polySiContext.finalizedTemplate.processedTemplate=iIf(G.polySiParams.templateGetter,G.polySiParams.is)));C2b(G);var e=G.hostElement;e.loggingStatus!=null||(e.loggingStatus={});e.loggingStatus.isInitializing=!0;_.ah(function(){return void G.created()});
e.loggingStatus.isInitializing=!1;G.isPolySiElementConnected&&uOw(G)},uOw=function(G){G.didCallReady||(_.ah(function(){return void G.ready()}),G.didCallReady=!0);
G.isAttached=!0;G.attached()};
_.V=pR.prototype;_.V.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||uOw(this)};
_.V.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.V.attributeChangedCallback=function(G,e,r){if(this.upgradeDisabled)G==="disable-upgrade"&&r===null&&(this.upgradeDisabled=!1,p0C(this));else if(e!==r){var Z=_.OW(G),O=this.polySiContext.typesForSignals[Z];if(O&&(!this.reflecting||_.R("polysi_attribute_changed_serializing_killswitch"))){switch(O){case Object:try{var M=JSON.parse(r)}catch(E){M=r}break;case Array:try{M=JSON.parse(r)}catch(E){M=null}break;case Date:M=isNaN(r)?String(r):Number(r);M=new Date(M);break;case Boolean:M=r!==null;break;case Number:M=
Number(r);break;default:M=r}this[Z]=M}Z=_.h(this.polySiParams.behaviors);for(O=Z.next();!O.done;O=Z.next())M=void 0,(M=O.value.attributeChanged)==null||M.call(this,G,e,r);var T;(T=this.attributeChanged)==null||T.call(this,G,e,r)}};
_.V.attributeChangedCallbackWrapper=function(G,e,r){this.attributeChangedCallback(G,e,r)};
_.V.setPropertiesFromInitialAttributeValues=function(){for(var G=0;G<this.hostElement.attributes.length;G++){var e=this.hostElement.attributes[G];(e.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(e.name))&&this.attributeChangedCallback(e.name,null,e.value)}};
_.V.created=function(){this.provide=this.polySiParams.provide;var G;(G=this.initializeInjection)==null||G.call(this);G=_.h(this.polySiParams.reactiveSchemas);for(var e=G.next();!e.done;e=G.next())e=e.value,e.type==="signal"&&(this.mutablePropNames.add(e.propertyKey),fR(this.signalProxy,e.propertyKey));sDi(this,this.polySiInfo,this.polySiParams.behaviors);G=_.h(this.polySiParams.reactiveSchemas);for(e=G.next();!e.done;e=G.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(G=_.h(this.polySiParams.signalProperties),e=G.next();!e.done;e=G.next()){e=e.value;var r=void 0;((r=this.__signalCache)==null?0:r.has(e))||(this.signalProxy.model[e]=void 0)}HyE||nxW(this);oqq(this);G=_.h(this.polySiParams.behaviors);for(e=G.next();!e.done;e=G.next())r=void 0,(r=e.value.created)==null||r.call(this);var Z;(Z=this.polySiInfo.created)==null||Z.call(this)};
_.V.registered=function(){var G=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var e=Object.getPrototypeOf(this);e.addReactiveSchema=function(E){G.polySiParams.reactiveSchemas.push(E)};
for(var r=_.h(this.polySiParams.behaviors),Z=r.next();!Z.done;Z=r.next()){var O=void 0;(O=Z.value.beforeRegister)==null||O.call(e)}var M;(M=this.polySiInfo.beforeRegister)==null||M.call(e);e.addReactiveSchema=pPp;r=_.h(this.polySiParams.behaviors);for(Z=r.next();!Z.done;Z=r.next())O=void 0,(O=Z.value.registered)==null||O.call(e);var T;(T=this.polySiInfo.registered)==null||T.call(e)};
_.V.ready=function(){var G;(G=this.beforeReady)==null||G.call(this);HyE&&nxW(this);var e;if(G=(e=this.polySiContext.finalizedTemplate)==null?void 0:e.processedTemplate){G=DDA(G.template,G.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:G.hasInsertionPoint,thisCtx:this});e=G.nodesById;G=G.root;var r=this.hostElement;var Z=Z===void 0?!1:Z;r=(0,_.Go)(r);if(!r.attachShadow)throw Error("Hd");if(!r.shadowRoot||Z)r.attachShadow({mode:"open",shadyUpgradeFragment:G}),r.shadowRoot.appendChild(G);
this.root=r.shadowRoot;this.$=e}m3l(this);Z=_.h(this.polySiParams.behaviors);for(e=Z.next();!e.done;e=Z.next())G=void 0,(G=e.value.ready)==null||G.call(this);var O;(O=this.polySiInfo.ready)==null||O.call(this)};
_.V.attached=function(){for(var G=_.h(this.polySiParams.behaviors),e=G.next();!e.done;e=G.next()){var r=void 0;(r=e.value.attached)==null||r.call(this)}var Z;(Z=this.polySiInfo.attached)==null||Z.call(this)};
_.V.detached=function(){for(var G=_.h(this.polySiParams.behaviors),e=G.next();!e.done;e=G.next()){var r=void 0;(r=e.value.detached)==null||r.call(this)}var Z;(Z=this.polySiInfo.detached)==null||Z.call(this)};
var C2b=function(G){for(var e=_.h(G.polySiParams.behaviors),r=e.next();!r.done;r=e.next())if(r=r.value,r.listeners)for(var Z in r.listeners)Ti4(G,G.hostElement,Z,r.listeners[Z]);if(G.polySiInfo.listeners)for(var O in G.polySiInfo.listeners)Ti4(G,G.hostElement,O,G.polySiInfo.listeners[O])},Ti4=function(G,e,r,Z,O){G=Ezi(G,Z,O);
F1(e,r,G)||e.addEventListener(r,G);return G},nxW=function(G){for(var e=_.h(G.polySiParams.reactiveSchemas),r=e.next();!r.done;r=e.next())r=r.value,r.type==="compute"||r.type==="computeWithMethod"?wdq(G.signalProxy,r,G):r.type==="redux"?qa$(G.signalProxy,r,G.store):r.type==="signal"&&r.readOnly&&Saa(G.signalProxy,r)},m3l=function(G){for(var e=_.h(G.polySiParams.reactiveSchemas),r=e.next(),Z={};!r.done;Z={schema$jscomp$12:void 0},r=e.next())Z.schema$jscomp$12=r.value,Z.schema$jscomp$12.type==="notify"?
gza(G.signalProxy,Z.schema$jscomp$12,G.hostElement):Z.schema$jscomp$12.type==="observe"?l8f(G.signalProxy,Z.schema$jscomp$12,G):Z.schema$jscomp$12.type==="reflect"&&G.signalProxy.effect(function(M){return function(){var T=G.signalProxy.getWithPath([M.schema$jscomp$12.propertyKey]);
G.reflecting=!0;sY$(G.hostElement,M.schema$jscomp$12.propertyKey,T,!0);G.reflecting=!1}}(Z));
if(G.reflectedAttributes)for(e=_.h(Object.entries(G.reflectedAttributes)),Z=e.next(),r={};!Z.done;r={key$jscomp$938:void 0,value$jscomp$10111:void 0},Z=e.next()){var O=_.h(Z.value);Z=O.next().value;O=O.next().value;r.key$jscomp$938=Z;r.value$jscomp$10111=O;G.signalProxy.effect(function(M){return function(){G.reflecting=!0;sY$(G.hostElement,M.key$jscomp$938,(0,M.value$jscomp$10111)(),!0);G.reflecting=!1}}(r))}};
_.V=pR.prototype;_.V._setPendingProperty=function(G,e){this.set(G,e);return!1};
_.V._enableProperties=function(){};
_.V._setPendingPropertyOrPath=function(G,e){this.notifyPath(G,e);return!1};
_.V._addPropertyEffect=function(){};
_.V._stampTemplate=function(){throw Error("Kg");};
_.V.fire=function(G,e,r){e=e===void 0?{}:e;r=r===void 0?{}:r;var Z,O,M={bubbles:(Z=r.bubbles)!=null?Z:!0,cancelable:!!r.cancelable,composed:(O=r.composed)!=null?O:!0},T;return _.xy(C8S((T=r.node)!=null?T:this.hostElement),G,e,M)};
_.V.get=function(G,e){var r=X6(G);return e?i5N(e,r):G==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(r)};
_.V.linkPaths=function(){};
_.V.listen=function(G,e,r){G=C8S(G);this.boundListeners!=null||(this.boundListeners=new WeakMap);var Z=this.boundListeners.get(G);Z||(Z={},this.boundListeners.set(G,Z));var O=e+r;Z[O]||(Z[O]=Ti4(this,G,e,r))};
_.V.notifyPath=function(G,e){this.signalProxy.notifyPath(X6(G),arguments.length===2?{value:e}:void 0)};
_.V.canNotifyPath=function(G){return this.mutablePropNames.has(G)&&!xYS(this.signalProxy,G)};
_.V.notifySplices=function(G,e){this.signalProxy.notifySplices(X6(G),e)};
_.V.pop=function(G){var e=this.signalProxy;G=X6(G);var r=_.h(G);G=r.next().value;r=MI(r);return fR(e,G).pop(r)};
_.V.push=function(G){var e=_.Bw.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[X6(G)].concat(_.mY(e)))};
_.V.set=function(G,e,r){if(r)throw Error("Lg");G==="hidden"?this.hostElement.hidden=!!e:this.signalProxy.setWithPath(X6(G),e)};
_.V.setProperties=function(G){G=_.h(Object.entries(G));for(var e=G.next();!e.done;e=G.next()){var r=_.h(e.value);e=r.next().value;r=r.next().value;this[e]=r}};
_.V.splice=function(G,e,r){var Z=_.Bw.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[X6(G),e,r].concat(_.mY(Z)))};
_.V.unlinkPaths=function(){};
_.V.unlisten=function(G,e,r){G=C8S(G);if(this.boundListeners){var Z=this.boundListeners.get(G);if(Z){r=e+r;var O=Z[r];O&&(JT(G,e,O)||G.removeEventListener(e,O),delete Z[r])}}};
_.V.unshift=function(G){var e=_.Bw.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[X6(G)].concat(_.mY(e)))};
_.iY.Object.defineProperties(pR.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 xDA=[Array,Boolean,Date,Number,Object,String];var zHi=!1;var mF=function(){var G=HTMLElement.apply(this,arguments)||this;G.restamp=!1;G.notifyDomChange=!1;G.JSC$13623_didCallConnected=!1;G.JSC$13623_renderDebouncer=null;G.disableTemplateUpdateSignalImpl=CR()?void 0:_.XQ(!1,void 0,"Ofhkwb");var e;G.getDisableTemplateUpdate=(e=G.disableTemplateUpdateSignalImpl)==null?void 0:e[0];var r;G.setDisableTemplateUpdate=(r=G.disableTemplateUpdateSignalImpl)==null?void 0:r[1];return G};
_.K(mF,HTMLElement);var ccc=function(G){G.conditionSignalImpl!=null||(G.conditionSignalImpl=new ur(_.XQ(!1,void 0,"gE52Fb")));return G.conditionSignalImpl};
_.V=mF.prototype;_.V.showHideChildren=function(G){YTE(this,G,this.if)};
_.V.attributeChangedCallback=function(G,e,r){if(this.JSC$13623_didCallConnected)throw Error("Pg`"+G);G==="notify-dom-change"?this.notifyDomChange=r!==null:G==="restamp"&&(this.restamp=r!==null)};
_.V.debounceRender=function(){this.JSC$13623_renderDebouncer=_.id(this.JSC$13623_renderDebouncer,xs,this.JSC$13623_renderImpl.bind(this));_.bd(this.JSC$13623_renderDebouncer)};
_.V.disconnectedCallback=function(){var G=(0,_.Go)(this).parentNode;(!G||G.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in G&&!G.host)&&ycw(this)};
_.V.connectedCallback=function(){var G=this;this.JSC$13623_didCallConnected=!0;f6n?WAS():this.style.display="none";this.parentSignalProxy.isDisposed&&!_.R("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){ccc(G).getWithPath([]);G.debounceRender()})};
_.V.render=function(){_.Sk()};
_.V.JSC$13623_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var G=this.if,e=!1;if(G){this.hasInstance()||(Acc(this),e=!0);a:{var r=(0,_.Go)(this).parentNode;if(this.hasInstance()){var Z=this.instance.children;if((Z==null?0:Z.length)&&(0,_.Go)(this).previousSibling!==Z[Z.length-1])for(var O=0;O<Z.length;O++)(0,_.Go)(r).insertBefore(Z[O],this)}else{if(!r){r=!1;break a}Fm3(this,r)}r=!0}if(!r)return}else this.restamp&&ycw(this);YTE(this,!1,G);G&&!e&&Acc(this);kmv&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.V.hasInstance=function(){return!!this.instance};
var Fm3=function(G,e){var r=G.parentSignalProxy;if(CR()){var Z=_.h(_.XQ(!0,void 0,"dkzufd"));var O=Z.next().value;Z=Z.next().value;r=G.parentSignalProxy}else{var M;var T=new nh((M=JcC(G))!=null?M:{},function(b){var w=fR(G.parentSignalProxy,b).getChangeRecordSignal([]);b=_.XQ(void 0,void 0,"iG8Uwe");var q=new ur(b);T.effect(function(){if(G.getDisableTemplateUpdate&&!G.getDisableTemplateUpdate()){var t=w();q.notifyPath(X6(t.path),{value:t.value})}});
return q});
G.parentSignalProxy.childSignalProxies.push(T);var E=r=T}r=DDA(G.templateInfo,G.templateInfo.nodeInfoList,r,{eventListenerHost:G.eventListenerHost,hasInsertionPoint:G.templateInfo.hasInsertionPoint,thisCtx:G.eventListenerHost,enabledSignal:CR()?O:void 0,getModel:function(){return JcC(G)}}).root;
G.instance={root:r,children:[],hidden:!1,signalProxy:E,getTemplateUpdatesEnabled:O,setTemplateUpdatesEnabled:Z};E=_.h(r.childNodes);for(O=E.next();!O.done;O=E.next())G.instance.children.push(O.value);(0,_.Go)(e).insertBefore(G.instance.root,G)},JcC=function(G){if((G=G.parentSignalProxy.model)&&!G.hostElement){var e={},r;
for(r in G)G.hasOwnProperty(r)&&(e[r]=G[r]);return e}},ycw=function(G){if(G.instance){var e=G.instance.children;
if(e.length){var r=(0,_.Go)(e[0]).parentNode;if(r){r=(0,_.Go)(r);for(var Z=0;Z<e.length;Z++)r.removeChild(e[Z])}}CR()?G.instance.setTemplateUpdatesEnabled(!1):G.instance.signalProxy.dispose();G.instance=void 0}},YTE=function(G,e,r){e=e||!r;
G.instance&&G.instance.hidden!==e&&(G.instance.hidden=e,UD4(e,G.instance.children))},Acc=function(G){if(CR()){var e=G.instance;
e&&BO(G.parentSignalProxy.owner,function(){return!e.getTemplateUpdatesEnabled()})&&e.setTemplateUpdatesEnabled(!0)}else G.setDisableTemplateUpdate(!1)};
_.iY.Object.defineProperties(mF.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var G=this;return BO(this.parentSignalProxy.owner,function(){return ccc(G).getWithPath([])})},
set:function(G){G||(CR()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));ccc(this).setWithPath([],!!G)}}});
_.iY.Object.defineProperties(mF,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",mF);var Bmv=[],ch=function(){var G=HTMLElement.apply(this,arguments)||this;G.as="item";G.indexAs="index";G.itemsIndexAs="itemsIndex";G.targetFramerate=20;G.notifyDomChange=!1;G.isDetached=!1;G.JSC$13630_renderDebouncer=null;G.instances=[];G.chunkingId=null;G.chunkCount=null;G.shouldMeasureChunk=!1;G.shouldContinueChunking=!1;G.renderStartTime=null;G.JSC$13630_didCallConnected=!1;return G};
_.K(ch,HTMLElement);var x3C=function(G){G.itemSignalImpl!=null||(G.itemSignalImpl=new ur(_.XQ(Bmv,void 0,"YBrqgf")));return G.itemSignalImpl},P2P=function(G,e){Array.isArray(e)||(e=Bmv);
x3C(G).setWithPath([],e)};
_.V=ch.prototype;_.V.showHideChildren=function(G){for(var e=_.h(this.instances),r=e.next();!r.done;r=e.next())UD4(G,r.value.children)};
_.V.notifyPath=function(G,e){G=X6(G);G[0]==="items"&&(G.length===1?P2P(this,e):x3C(this).setWithPath(G.slice(1),e))};
_.V.canNotifyPath=function(G){return G==="items"};
_.V.attributeChangedCallback=function(G,e,r){if(this.JSC$13630_didCallConnected)throw Error("Qg`"+G);G==="as"?this.as=r:G==="index-as"?this.indexAs=r:G==="items-index-as"?this.itemsIndexAs=r:G==="initial-count"?this.initialCount=Number(r):G==="notify-dom-change"?this.notifyDomChange=r!==null:G==="target-framerate"&&(this.targetFramerate=Number(r))};
_.V.disconnectedCallback=function(){this.isDetached=!0;for(var G=0;G<this.instances.length;G++)U3P(this,G);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.V.connectedCallback=function(){var G=this,e=x3C(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var O=e(),M=X6(O.path);if(M[0]===void 0||M[0]==="splices"||M[0]==="length")G.debounceRender();else{var T=M[0];if(T=G.instances[typeof T==="string"?Math.floor(Number(T)):T])M=[G.as].concat(_.mY(M.slice(1))),T.signalProxy.notifyPath(M,O)}});
this.JSC$13630_didCallConnected=!0;f6n?WAS():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var r=(0,_.Go)((0,_.Go)(this).parentNode),Z=0;Z<this.instances.length;Z++)r.insertBefore(this.instances[Z].root,this);this.chunkingId&&this.render()}};
_.V.debounceRender=function(){this.JSC$13630_renderDebouncer=_.id(this.JSC$13630_renderDebouncer,xs,this.JSC$13630_renderImpl.bind(this));_.bd(this.JSC$13630_renderDebouncer)};
_.V.render=function(){this.debounceRender();_.Sk()};
_.V.JSC$13630_renderImpl=function(){var G=this;if(!this.parentSignalProxy.isDisposed){var e=this.items,r=zyb(this,e.length);Wm3(this,e,r);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){G.chunkingId=null;if(G.shouldMeasureChunk){var Z=performance.now()-G.renderStartTime;G.chunkCount=Math.round(Math.ceil(1E3/G.targetFramerate)/Z*G.chunkCount)||1}G.shouldContinueChunking&&G.debounceRender()}));
kmv&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var zyb=function(G,e){var r=e,Z=G.instances.length;if(G.initialCount){if(G.chunkCount){var O=Math.min(Math.max(e-Z,0),G.chunkCount);r=Math.min(Z+O,e)}else r=Math.min(e,G.initialCount),O=Math.max(r-Z,0),G.chunkCount=O||1;G.shouldMeasureChunk=O===G.chunkCount;G.shouldContinueChunking=r<e;G.renderStartTime=performance.now()}return r},Wm3=function(G,e,r){for(var Z=0;Z<r;Z++){var O=G.instances[Z],M=e[Z];
O?(O.signalProxy.setWithPath([G.as],M),O.signalProxy.setWithPath([G.indexAs],Z)):NmP(G,M,Z)}for(e=G.instances.length-1;e>=Z;e--)r=G,O=e,U3P(r,O),_.h(r.instances.splice(O,1)).next().value.signalProxy.dispose()},U3P=function(G,e){G=G.instances[e];
e=(0,_.Go)(G.root);for(var r=0;r<G.children.length;r++)e.appendChild(G.children[r])},NmP=function(G,e,r){var Z={};
e=Object.assign({},LmE(G),(Z[G.as]=e,Z[G.indexAs]=r,Z[G.itemsIndexAs]=r,Z));var O=new nh(e,function(T){if(T!==G.as&&T!==G.indexAs){if(T===G.itemsIndexAs)return fR(O,G.indexAs);var E=fR(G.parentSignalProxy,T).getChangeRecordSignal([]);T=_.XQ(void 0,void 0,"T21Pqc");var b=new ur(T);O.effect(function(){var w=E();b.notifyPath(X6(w.path),{value:w.value})});
return b}});
G.parentSignalProxy.childSignalProxies.push(O);Z=DDA(G.templateInfo,G.templateInfo.nodeInfoList,O,{eventListenerHost:G.eventListenerHost,getModel:function(){var T={};return Object.assign({},LmE(G),(T[G.as]=O.model[G.as],T[G.indexAs]=O.model[G.indexAs],T[G.itemsIndexAs]=O.model[G.indexAs],T))},
hasInsertionPoint:G.templateInfo.hasInsertionPoint,thisCtx:G.eventListenerHost,methodInvocationRequirement:d3v,enabledSignal:G.stampingEnabled}).root;e={root:Z,children:[],signalProxy:O};Z=_.h(Z.childNodes);for(var M=Z.next();!M.done;M=Z.next())e.children.push(M.value);Z=(Z=G.instances[r+1])?Z.children[0]:G;(0,_.Go)((0,_.Go)(G).parentNode).insertBefore(e.root,Z);G.instances[r]=e},LmE=function(G){if((G=G.parentSignalProxy.model)&&!G.hostElement){var e={},r;
for(r in G)G.hasOwnProperty(r)&&(e[r]=G[r]);return e}};
ch.prototype.itemForElement=function(G){var e=this,r=this.instances.find(function(Z){return Z.children.includes(G)});
if(r)return BO(this.parentSignalProxy.owner,function(){return r.signalProxy.getWithPath([e.as])})};
ch.prototype.indexForElement=function(G){var e=this.instances.findIndex(function(r){return r.children.includes(G)});
return e>=0?e:void 0};
_.iY.Object.defineProperties(ch.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var G=this;return BO(this.parentSignalProxy.owner,function(){return x3C(G).getWithPath([])})},
set:function(G){P2P(this,G)}},
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}}});
_.iY.Object.defineProperties(ch,{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",ch);var GgE,efS;_.YB=new _.Gz("STATE_STORE_TOKEN");GgE=new _.Gz("SELECT_TOKEN");efS=new _.Gz("DISPATCH_TOKEN");var ZUs={getSelectFn:function(){var G;return(G=_.v_().resolve(_.bq(GgE)))!=null?G:NiS},
getDispatchFn:function(){var G;return(G=_.v_().resolve(_.bq(efS)))!=null?G:_.uD().dispatch.bind(_.uD())},
getAppStore:function(){return _.v_().resolve(_.YB)}},LAA,rl4=!1;var E3f=function(){};var hu_=void 0;var r1j=function(){};
r1j.prototype.hasAttribute=function(G){if(G==="dir")return!1;if(G==="disable-upgrade"){var e,r;return(r=(e=this.hostElement)==null?void 0:e.hasAttribute("disable-upgrade"))!=null?r:!1}throw Error("Rg`"+G);};
r1j.prototype.attributeChangedCallbackWrapper=function(G,e,r){if(G==="disable-upgrade"&&this.__isUpgradeDisabled&&r===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var Z;((Z=this.hostElement)!=null?Z:this).isConnected&&this.connectedCallback()}else e===r||this.__isReflecting||this.attributeChangedCallback(G,e,r)};
r1j.prototype.getExtraMethodsToForward=function(){for(var G=this,e=[],r=_.h(ZTE),Z=r.next(),O={};!Z.done;O={tagName$jscomp$67:void 0,name$jscomp$629:void 0},Z=r.next())O.name$jscomp$629=Z.value,Z=void 0,O.name$jscomp$629==="_setPendingProperty"?(O.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),Z=function(M){return function(T,E,b){wv(M.tagName$jscomp$67,T,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return G._setPendingProperty(T,E,b)}}(O)):Z=function(M){return function(){return G[M.name$jscomp$629].apply(G,
_.mY(_.Bw.apply(0,arguments)))}}(O),e.push([O.name$jscomp$629,
Z]);return e};
for(var v3i=I6c(Q7w((0,_.KV)(r1j))),qJ4=["disabled","disable-upgrade"],OTC=(0,_.KV)(function(){}),MeE=new Set(Object.getOwnPropertyNames(OTC.prototype)),j6F=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.mY(MeE))),g3$=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),ZTE=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),Vel=new Set([].concat(_.mY(g3$),_.mY(ZTE),_.mY(MeE))),hfW=_.h(Vel),Trl=hfW.next();!Trl.done;Trl=hfW.next())yMS.add(Trl.value);var Ruf={created:function(){oqq(this);this.initializeInjection()}};var s64=!1,F6=window.ShadyDOM,clp=["appendChild","insertBefore","removeChild","replaceChild"],mjf=[Node];F6&&mjf.push(F6.Wrapper);var xjp,P0f,Wts={};var Js,Bx=new WeakMap,Lt_=new Set;var VBp=new Set("context didCallReady is info params signalProxy".split(" ")),Tms="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),D3q="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var DOW=HU({entities:eJN}),EaP=new cS(DOW);var iTy=function(){return _.DQ.apply(this,arguments)||this};
_.K(iTy,_.DQ);_.iY.Object.defineProperties(iTy.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return EaP}}});
_.B([_.Em()],iTy);_.y9=[ph.prototype,iTy.prototype];_.AL={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var G=this,e={};setTimeout(function(){var r;return _.xy((r=G.hostElement)!=null?r:G,"yt-live-chat-add-tooltip-target",e)},0);
this.handler_=e.handler},
detached:function(){if(this.handler_){var G;this.handler_.removeElementFromSupportingTooltips((G=this.hostElement)!=null?G:this)}this.handler_=null}}};_.LR=new _.Gz("ICON_MANAGER_TOKEN");var bTl=[48,20,18,16,15,13,12],d3p=new Map,Kmq=new Set,j7p=new Set,X0f=new Set,Ryi=new Set,a6_=new Set,kmp=new Promise(function(G){var e=!1,r=!1,Z=!1,O=[],M=function(T){if("detail"in T)if(T=T.detail,T.name==="yt-icons")f6N(T),e=!0;else if(T.name==="yt-sys-icons")f6N(T),r=!0;else{var E;((E=T.name)==null?0:E.includes("yt-sys-icons"))&&T.size!==24&&(f6N(T,!0),O.push(T.size),O.length===bTl.length&&(Z=!0))}e&&r&&Z&&(window.removeEventListener("iron-iconset-added",M),G())};
window.addEventListener("iron-iconset-added",M)}),vaw=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"]]);_.F9={};_.F9.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.mG,computeHref_:function(G,e){e=e===void 0?!1:e;if(!G||G.commandExecutorCommand)return null;var r=iWS(G,e);return e||r!==null?r?_.R("enable_polymer_resin")?_.Fy(r).toString():r:null:(_.FH(new _.Cr("computeHref was null",this.is,G)),null)},
computeOptionalHref_:function(G){return this.computeHref_(G,!0)},
computeNofollow_:function(G){return G?rIq(G)?"nofollow":null:null},
computeIcon_:function(G){return G&&G.iconType?_.Ne(G.iconType):""},
resolveCommand:function(G,e,r){e=e===void 0?{}:e;return _.es(G,this.hostElement,e,r===void 0?!1:r)}};var $Oc,JL;_.wa3={};$Oc=null;
JL={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_=qpy(this.viewroot));_.oR(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var G=this;this.unobserve_();if(_.R("kevlar_vimio_use_shared_monitor"))p0S(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 G.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&e.push(this.visibilityObserver.observe(this.hostElement,function(){return G.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&e.push(this.visibilityObserver.observe(this.hostElement,function(){return G.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=e}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){oxN(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 G=_.B2(this.parentNode,function(r){var Z,O=(Z=r.polymerController)!=null?Z:r;return!!O.getVisibilityObserverForChild&&O.getVisibilityObserverForChild()},!0);
if(G){var e;this.localVisibilityObserver_=((e=G.polymerController)!=null?e:G).getVisibilityObserverForChild()}else $Oc||($Oc=qpy()),this.localVisibilityObserver_=$Oc;return this.localVisibilityObserver_},visibilityCallback:function(G){G?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.R("kevlar_use_vimio_behavior")||(JL={});JL&&!_.R("kevlar_use_vimio_behavior")&&(delete JL.attached,delete JL.detached);_.wa3.YtVisibilityObserverBehavior=[JL];var S7v={};S7v.YtVisualElementBehavior=[_.wa3.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.R("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.R("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var G=this.getScreenLayer&&this.getScreenLayer(),e=this.getVisibilityLogger();e&&e.reportShown(this,void 0,G)}},
onHidden:function(){if(_.R("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.R("kevlar_vimio_use_shared_monitor")){var G=this.getScreenLayer&&this.getScreenLayer(),e=this.getVisibilityLogger();e&&e.reportHidden(this,void 0,G)}},
getVisibilityLogger:function(){return _.R("kevlar_use_vimio_behavior")?_.ZM():null},
shouldSkipLogging:function(){if(_.xZ("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var G=this.getParentRenderer&&this.getParentRenderer();if(!G)return!1;var e,r=(e=G.polymerController)!=null?e:G;if(!r.data)return!1;G=this.data.trackingParams;G=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:G;var Z;e=(Z=r.data)==null?void 0:Z.trackingParams;var O,M;e=((O=r.data)==null?0:O.loggingDirectives)?(M=r.data)==null?void 0:M.loggingDirectives.trackingParams:e;return G&&e&&G===
e}}];var nxU=new Map,vQ;var A7F=function(G){this.layer=G},rB=function(G){return G.layer!==void 0?G.layer:G.parent?rB(G.parent):G.layer=0};var FmS;_.W={};FmS=0;_.W.YtRendererBehavior=[_.F9.YtComponentBehavior,S7v.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_:_.R("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var G,e;(e=(G=this.monitorScrollElement)!=null?G:this.hostElement)==null||e.removeEventListener("scroll",_.ZQ(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();C2q(this.hostElement);aTw(_.Kh(),this.hostElement);YJ.delete(this.hostElement)},
registerRenderer:function(G){var e;((e=G.polymerController)!=null?e:G).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(G),this.markDirty())},
unregisterRenderer_:function(G){this.useVimio_||(this.childCache_.delete(G),this.markDirty())},
attached:function(){var G=this,e=this.getParentRenderer();if(e){var r,Z,O;(Z=(r=(O=e.polymerController)!=null?O:e).registerRenderer)==null||Z.call(r,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var M,T;(T=(M=this.monitorScrollElement)!=null?M:this.hostElement)==null||T.addEventListener("scroll",_.ZQ(this,this.onScroll))}_.A0.addJob(function(){m3_(G.hostElement)},8);
r=new A7F(this.screenLayer||void 0);(e=YJ.get(e))&&e.layerNode&&(r.parent=e.layerNode);e={};lZi(this.hostElement,(e.isRenderer=!0,e.layerNode=r,e[FWA]=this.data,e))},
getParentRenderer:function(){for(var G=this.hostElement.parentNode,e,r;G&&((e=YJ.get(G))==null||!e.isRenderer)&&!((r=G.polymerController)!=null?r:G).isRenderer_;)G=G.parentNode||G.host;return G},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.R("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.PX("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.R("debug_web_ve_data")&&this.data.trackingParams){var G="";try{G=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(r){_.yx(r)}if(G){var e=dnS(G,1);e!==void 0&&(this.hostElement.dataset.veIndex=String(e));G=dnS(G,2);
G!==void 0&&(this.hostElement.dataset.ve=String(G))}}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,_.R("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.b1(this.data.loggingDirectives.trackingParams)),this.visualElement=_.OY(_.h_(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var G=this.data.targetId;_.Kty(_.Kh(),G,this.hostElement)}else aTw(_.Kh(),this.hostElement)},
onScroll:function(){var G=Date.now();G-this.lastHandledScroll_<50||(this.lastHandledScroll_=G,this.markDirty())},
markDirty:function(){_.R("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():JcS(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var G=this.getParentRenderer();if(G&&(G=YJ.get(G))&&G.layerNode)return rB(G.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.mY(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var G=0;G<this.data.impressionEndpoints.length;G++)this.sendImpression(this.data.impressionEndpoints[G]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(G){G.clickTrackingParams&&delete G.clickTrackingParams;var e,r;(G==null?0:(e=G.commandMetadata)==null?0:(r=e.webCommandMetadata)==null?0:r.sendPost)?_.zw(this.hostElement,[G,{impression:!0}]):_.Wi(this.hostElement,[G],this.hostElement)},
logExplicitClick:function(G){var e=_.l4(this.getScreenLayer());if(e){var r,Z=(r=G.polymerController)!=null?r:G;G=Z.visualElement;Z=Z.trackingParams||Z.clickTrackingParams;!G&&Z&&(G=_.b1(Z));G&&_.n_(e,G)}}}];var q7C={},Bh=function(){return _.DQ.apply(this,arguments)||this};
_.K(Bh,_.DQ);Bh.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Bh.prototype.onPdgItemBehaviorClick=Bh.prototype.onPdgItemBehaviorClick;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Bh.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Bh.prototype,"data",void 0);_.B([_.Om("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Bh.prototype,"onPdgItemBehaviorClick",null);_.B([_.Em()],Bh);q7C.YtPdgLiveChatItemBehavior=[Bh.prototype,_.W.YtRendererBehavior];var tec;var gaw;_.xB={};_.xB.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var Ph=function(){var G=vU.apply(this,arguments)||this;G.switchTemplateAtRegistration=!1;return G};
_.K(Ph,vU);Ph.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||U3f(this),_.KAU(this,"doRender"),this.doRender())};
Ph.prototype.debounceRender=function(){this.templatingFn&&_.sm(this,"doRender",this.doRender)};
Ph.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.yx(Error("ah"))};
Ph.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.B([Zli()],Ph);var l$E=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,UZ={},Lma=(UZ[1]={filterString:null,isUnwrappable:null,unwrap:null},UZ[2]={filterString:function(G,e,r){return Nk(r)},
isUnwrappable:function(G){return G instanceof Uk},
unwrap:function(G){return Lj(G)}},UZ[3]={filterString:function(G,e,r){return l$E.test(r)?r:At.toString()},
isUnwrappable:function(G){return uz(G)},
unwrap:function(G){return _.nj(G)}},UZ[4]={filterString:function(){return At.toString()},
isUnwrappable:function(G){return G instanceof dz},
unwrap:function(G){return _.Qt(G).toString()}},UZ[5]={filterString:function(G,e,r){return r},
isUnwrappable:function(G){return typeof G==="string"},
unwrap:function(G){return G.toString()}},UZ[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(G){return G instanceof _.Zf},
unwrap:function(G){return Mg(G)}},UZ[8]={filterString:function(G,e,r){r=String(r).toLowerCase();
return osi(G,e,r)?r:"zClosurez"},
isUnwrappable:null,unwrap:null},UZ[10]={filterString:null,isUnwrappable:null,unwrap:null},UZ);EH[WO["default"]]=efi;var r1s=[];(function(){var G=DY;DY=function(e){G==null||G(e);qq(function(){for(var r=0;r<e.length;r++)ZT$(e[r])})}})();var RfW=function(){var G=_.DQ.apply(this,arguments)||this;G.hasUnmounted=!1;return G};
_.K(RfW,_.DQ);_.V=RfW.prototype;_.V.beforeRegister=function(){var G=this.doIdomRender;this.templatingFn?_.yx(Error("$g")):(this.templatingFn=G,this.switchTemplateAtRegistration=!0,Nmf(this))};
_.V.attached=function(){};
_.V.detached=function(){ZT$(this.hostElement)};
_.V.renderIdom=function(){throw Error("ch");};
_.V.doIdomRender=function(){var G=this;Xep(this.hostElement,function(){G.renderIdom()})};
_.B([_.Em()],RfW);var jwv=[Ph.prototype,RfW.prototype];var a$W,Xa3=function(){return a$W!==void 0?a$W:a$W=document.createElement("template")};
document.head.appendChild(Xa3().content);var KnP;var f$j,kgC=function(){return f$j!==void 0?f$j:f$j=document.createElement("template")};
document.head.appendChild(kgC().content);var HTc;var dOv=document.head,oaP=dOv.appendChild,swW;if(HTc===void 0){var QwW=document.createElement("template");_.f(QwW,"\x3c!--css-build:shady--\x3e");QwW.content.insertBefore(kgC().content.cloneNode(!0),QwW.content.firstChild);HTc=QwW}swW=HTc;oaP.call(dOv,swW.content);var I$l,paE=function(){return I$l!==void 0?I$l:I$l=document.createElement("template")};
document.head.appendChild(paE().content);var CUw;var umP=document.head,nav=umP.appendChild,mOP;if(CUw===void 0){var c1W=document.createElement("template");_.f(c1W,"\x3c!--css-build:shady--\x3e");c1W.content.insertBefore(paE().content.cloneNode(!0),c1W.content.firstChild);CUw=c1W}mOP=CUw;nav.call(umP,mOP.content);var Y7W=document.head,y1n=Y7W.appendChild,A1b;if(KnP===void 0){var Fnc=document.createElement("template");_.f(Fnc,"\x3c!--css-build:shady--\x3e");Fnc.content.insertBefore(Xa3().content.cloneNode(!0),Fnc.content.firstChild);KnP=Fnc}A1b=KnP;y1n.call(Y7W,A1b.content);var J1c,Brn=function(){return J1c!==void 0?J1c:J1c=document.createElement("template")};
document.head.appendChild(Brn().content);var xOS;_.Ig=new _.Gz("DARK_THEME_TOKEN");var BrN=new _.L9("accessibilityProperties");var J1A=new _.L9("layoutProperties");var xOi=new _.L9("imageType");var PUS={};if("ytAttributedStringLinkHoverColor"in PUS)throw Error("fh`ytAttributedStringLinkHoverColor");(function(G,e){PUS[G]="value"in e&&"unit"in e?DOU(G,e):function(r){try{return e(r)}catch(Z){throw Error("dh`"+G+"`"+Z.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var UOS=function(G){var e=this;this.holdTime=G===void 0?500:G;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(r){var Z=new CustomEvent("LONG_PRESS"),O;(O=r.changedTouches[0].target)==null||O.dispatchEvent(Z)};
this.ontouchstart=function(r){e.longPressTimeout=_.Zk(_.A0,function(){e.onlongpress(r);e.longPressOccurred=!0},e.holdTime)};
this.ontouchmove=function(){_.A0.cancelJob(e.longPressTimeout);e.longPressTimeout=NaN;e.longPressOccurred=!1;e.moveOccurred=!0};
this.ontouchend=function(r){if(e.longPressTimeout&&!e.longPressOccurred&&!e.moveOccurred){var Z;(Z=r.changedTouches[0].target)==null||Z.dispatchEvent(new Event("click"))}_.A0.cancelJob(e.longPressTimeout);e.longPressTimeout=NaN;e.longPressOccurred=!1;e.moveOccurred=!1}};var kgS=function(G,e){UOS.call(this,e);var r=this;this.callback=G;this.onlongpress=function(Z){var O;(O=r.callback)==null||O.call(r,Z)}};
_.K(kgS,UOS);var HTA=function(G,e){var r=Object.assign({},e);G=_.h(new Map([["ontouchstart",G.ontouchstart],["ontouchend",G.ontouchend],["ontouchmove",G.ontouchmove]]));for(var Z=G.next(),O={};!Z.done;O={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},Z=G.next()){var M=_.h(Z.value);Z=M.next().value;M=M.next().value;O.eventName$jscomp$103=Z;O.eventHandler$jscomp$2=M;e[O.eventName$jscomp$103]=function(T){return function(E){var b;(b=r[T.eventName$jscomp$103])==null||b.call(r,E);(0,T.eventHandler$jscomp$2)(E)}}(O)}};_.$1=new _.Gz("COMMAND_HANDLER_TOKEN");var iTF=new _.L9("parallelCommand");var waS=new _.L9("performOnceCommand");var va4=new _.L9("serialCommand");var $OA=void 0;var zfS=function(){this.data=[];this.consumer=null};
zfS.prototype.push=function(G){this.consumer?this.consumer(G):this.data.push(G)};var pW={};_.XQ(pW,void 0,"sgPmTd");_.XQ(null,void 0,"jypsq");_.XQ(null,void 0,"mWiOof");var uE_=new zfS;var a$U=[ytn,AtE,F_E,BzS,Jtv,Yk3,xZv,Pz3];var A1q=new _.L9("bracketTextDecorator");var sY=new _.L9("highlightTextDecorator");_.CC=new _.Gz("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var nap=function(){},Wnl;
(Wnl=window.requestIdleCallback)==null||Wnl.bind(window);var c1y={calledOnce:!1,state:"visible"},mOf={calledOnce:!1,state:"hidden"};var Nrn=new _.Gz("ICON_WIZ_COMPONENT_TOKEN");_.V$=_.y(function(G){var e=G.icon;var r=G.active;var Z=G.className;var O=G.style;var M=G.dataSelected;var T=G.dataDisabled;var E=G.role;var b=G.animateIcon;var w=G.themeOverride;var q=G.ariaHidden;var t=G.ariaExpanded;var g=G.ariaLabel;var l=G.tabindex;var X=G.id;var H=G.size;var I=G.iconFilter;var C=G.gradientColor;var u=G.onKeydown;return _.v(_.S,{cond:e,then:function(){var P=_.v_().resolve(Nrn);return _.v(P,{icon:e,dataSelected:M,dataDisabled:T,animateIcon:b,themeOverride:w,ariaExpanded:t,tabindex:l,
id:X,active:r,size:H,role:E,className:Z,ariaHidden:q,ariaLabel:g,style:function(){return O!=null&&O()||H==null||!H()?O==null?void 0:O():"width: "+(H==null?void 0:H())+"px;height: "+((H==null?void 0:H())+"px;")},
iconFilter:I,gradientColor:C,onKeydown:u})}})},"k");
_.V$.idomCompat={callbacks:{onKeydown:!0}};var Dbp=window.devicePixelRatio||1;var vKS=new Map([["yt_outline_bag_black_24","bag"]]);var zt=function(G){var e=this;this.margin=.1;this.whenInViewportWithMargin=G;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){e.requestScan()});
window.addEventListener("touchend",function(){e.requestScan()});
window.addEventListener("updateui",function(){e.requestScan()});
var r=new _.Zp((0,_.CB)(this.requestScan,this),100);window.addEventListener("scroll",function(){r.fire()},!0);
window.addEventListener("resize",(0,_.CB)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){e.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.CB)(this.requestScan,this))};
zt.prototype.observe=function(G){this.observationTargets.includes(G)||this.observationTargets.push(G)};
zt.prototype.unobserve=function(G){this.observationTargets=this.observationTargets.filter(function(e){return e!==G})};
zt.prototype.requestScan=function(){var G=this;this.scanRequested||(qq(function(){LnW(G)}),this.scanRequested=!0)};
var LnW=function(G){var e=(1+G.margin)*(document.documentElement.clientHeight||window.innerHeight);G.observationTargets=G.observationTargets.filter(function(r){var Z=r.getBoundingClientRect();(Z=e>Z.top&&!!Z.height)&&G.whenInViewportWithMargin(r);return!Z&&r.parentNode});
G.scanRequested=!1};
zt.prototype.disconnect=function(){this.observationTargets=[]};var GQC,rwW;GQC=_.h(_.XQ(tpS(),void 0,"O3X2wd"));_.eSv=GQC.next().value;rwW=GQC.next().value;window.addEventListener("resize",function(){rwW(tpS())});var ZGc={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},OGy=void 0,MpW=window.innerWidth,VpW=window.innerHeight;window.addEventListener("resize",function(){OGy=void 0});var hSb;if("IntersectionObserver"in window)hSb=RSy();else{if(OGy===void 0){var Tub;Tub="matchMedia"in window?window.matchMedia(ZGc.landscape+","+ZGc.portrait).matches:void 0;OGy=Tub!==void 0?Tub:MpW>=930&&VpW>=550||MpW>=550&&VpW>=930}hSb=OGy?{observe:function(G){qq(function(){var e;(e=G.onViewportEntered)==null||e.call(G)})},
unobserve:function(){}}:new zt(function(G){qq(function(){var e;
(e=G.onViewportEntered)==null||e.call(G)})})}var gKf=hSb;var Dbv=_.y(function(G){var e=!1,r=_.hT("img",function(Z){_.yD(function(){e=!0;Z.onload=null})});
_.Y8(function(){var Z,O=(Z=G.data)==null?void 0:Z.call(G),M,T=(M=G.getSrc)==null?void 0:M.call(G).cb,E;Z=(E=G.config)==null?void 0:E.call(G);if(E=r.value)if(M=function(w,q){if(!e)return T?T(w,q):w},Xl_(E,Z),_.R("web_image_dont_reload_same_src")&&a0_(E,O,M))_.R("web_image_dont_reload_same_src_simulate_load")&&E.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var b;j0F(E,O||null,M,Z,(b=G.lazy)==null?void 0:b.call(G))}},"zS0jKb");
return _.v("img",{el:r})},"m");
Dbv.idomCompat=!0;_.nC=_.y(function(G){var e=function(){var r,Z=G.data(),O,M,T,E,b,w,q,t,g,l,X,H,I,C,u,P,F,J,U,e$,Dq,bF,Kf,ti,Ry,nf,k4,SE,Fn;var kw={contentMode:(O=G.contentMode)==null?void 0:O.call(G),loadedClass:(M=G.loadedClass)==null?void 0:M.call(G),isPreloaded:(T=G.isPreloaded)==null?void 0:T.call(G),notifyOnLoaded:(E=G.notifyOnLoaded)==null?void 0:E.call(G),notifyOnUnloaded:(b=G.notifyOnUnloaded)==null?void 0:b.call(G),preferredThumbnail:(w=G.preferredThumbnail)==null?void 0:w.call(G),preserveHeight:(q=G.preserveHeight)==
null?void 0:q.call(G),preserveWidth:(t=G.preserveWidth)==null?void 0:t.call(G),objectPosition:(g=G.objectPosition)==null?void 0:g.call(G),targetWidth:(l=G.targetWidth)==null?void 0:l.call(G),targetHeight:(X=G.targetHeight)==null?void 0:X.call(G),shouldShowPlaceholder:(H=G.shouldShowPlaceholder)==null?void 0:H.call(G),useWidth:(I=G.useWidth)==null?void 0:I.call(G),isToggled:(C=G.isToggled)==null?void 0:C.call(G),alt:(u=G.alt)==null?void 0:u.call(G),className:(P=G.className)==null?void 0:P.call(G),
onerror:G.onerror,onload:G.onload,style$:((F=G.style$)==null?void 0:F.call(G))||((J=G.style)==null?void 0:J.call(G)),color:(U=G.color)==null?void 0:U.call(G),width:(e$=G.width)==null?void 0:e$.call(G),height:(Dq=G.height)==null?void 0:Dq.call(G),"aria-hidden$":(SE=(bF=G["aria-hidden$"])==null?void 0:bF.call(G))!=null?SE:(Kf=G.ariaHidden)==null?void 0:Kf.call(G),draggable:(ti=G.draggable)==null?void 0:ti.call(G),"data-disabled$":(Fn=(Ry=G["data-disabled$"])==null?void 0:Ry.call(G))!=null?Fn:(nf=G.dataDisabled)==
null?void 0:nf.call(G),size:(k4=G.size)==null?void 0:k4.call(G)};return kQ_(Z,kw,(r=G.hideOn404)==null?void 0:r.call(G))};
return _.v(_.nz,null,_.v(_.pz,{when:function(){var r;return((r=e())==null?void 0:r.type)==="image"}},function(){return _.v(Dbv,{data:function(){return e().image},
getSrc:{cb:function(r,Z){var O=e().image.sources,M=e().config.isPreloaded,T=e().config.useWidth,E=e().config.targetWidth,b=e().config.targetHeight,w=e().config.preferredThumbnail;return _.EKy(Z,O,M,T,E,b,w)||""}},
config:function(){var r=e().config,Z;for(Z in r)r[Z]===void 0&&delete r[Z];return r},
lazy:G.renderLazy})}),_.v(_.pz,{when:function(){var r;
return((r=e())==null?void 0:r.type)==="icon"}},function(){return _.v(_.V$,{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}})}))},"n");
_.nC.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var EKW=function(G){return function(e){return _.v(yIs,null,function(){var r=e.data(),Z=_.FQ(e.config);return _.v(tVa,null,function(){return void G(r,Z)})})}}(Q0S),oKU=_.y(function(G){var e=function(O){var M,T=_.cQ(function(l){M=AB(function(){for(var X=_.h(t()),H=X.next();!H.done;H=X.next()){H=I0$(H.value);
H=typeof H==="string"?document.createTextNode(H):H;if(!(H instanceof Node)){X=new _.Cr("Part is not a node",H,typeof H);_.yx(X);break}l.appendChild(H)}})});
var E=_.R("web_wiz_attributed_string_skip_empty")?O:Yh(function(){return UOi(O())},{isEqual:dbS});
var b=_.mr(G.config),w=function(){var l,X=E();return!((l=b())==null||!l.ariaLabel)||!(X.commandRuns&&X.commandRuns.length!==0||X.paragraphStyleRuns&&X.paragraphStyleRuns.length!==0)},q=Yh(b,{isEqual:CRi}),t=function(){var l=PUi(E(),q());
Wn_(l,q());return E().content?ZGA(E().content,l).parts:[]},g=!0;
_.Y8(function(){E();q();if(g)g=!1;else{var l=t();Promise.resolve().then(function(){var X=T.value;if(X){X.innerText="";var H;(H=M)==null||H();M=_.cX(X,function(){return _.v(plU,{parts:l})},"o")}})}},"S2CIIe");
return _.v("span",{el:T,class:function(){return E()&&I$_(E(),b())},
dir:function(){var l;return((l=b())==null?0:l.userInput)?"auto":void 0},
"aria-label":function(){var l;return w()?(l=b())==null?void 0:l.ariaLabel:void 0},
role:function(){return w()?"text":void 0}})},r=_.R("web_wiz_attributed_string_skip_empty")?Yh(function(){var O,M=(O=G.text)==null?void 0:O.call(G);
if(M)return O=UOi(M),(O==null?0:O.content)?O:void 0},{isEqual:dbS}):G.text,Z;
return((Z=G.config)==null?0:Z.renderedFromFormattedString)?e(r):_.v(_.S,{cond:r,then:e})},"q");
oKU.idomCompat=!0;_.Wh=_.y(function(G){var e=_.mr(G.text),r=uPs(G);G.renderedFromFormattedString!==void 0&&(r.renderedFromFormattedString=!0);return _.R("attr_string_reactive")?_.v(oKU,{text:e,config:r}):_.v(_.S,{cond:function(){var Z;return e()&&((Z=UOi(e()))==null?void 0:Z.content)},
then:function(){return _.v(EKW,{data:G.text,config:r})},
debugInstance:"Apcuac"})},"r");
_.Wh.idomCompat=!0;var FbS="";FM_({beforeVisit:function(G){G.type.TAG_NAME&&(FbS=G.type.TAG_NAME)},
afterRender:function(G,e){var r;FbS=(r=e==null?void 0:e.type)!=null?r:""},
didPatch:function(){FbS=""}});var nKU=function(G,e,r){e=e===void 0?"unknown":e;r=r===void 0?{}:r;_.Cr.call(this,G+" ("+e+")",Object.assign({},{name:"YtWcwError",tagName:e},r));Object.setPrototypeOf(this,this.constructor.prototype)};
_.K(nKU,_.Cr);_.F0=new WeakMap;_.A_=!1;var Aw$,JwU,ywS;_.N6=Symbol("hh");_.yb=Symbol("ih");Aw$=Symbol("jh");JwU=new Set(Object.getOwnPropertyNames(Element.prototype));ywS=Symbol("kh");var iGv=_.y(function(G){return _.v("yt-attributed-string",{"aria-label":G.ariaLabel,hidden:G.hidden,id:G.id,class:G.className,"force-default-style":G.forceDefaultStyle},_.v(_.Wh,{text:G.data,ariaLabel:G.ariaLabel,ellipsisTruncate:G.ellipsisTruncate,isOverlay:G.isOverlay,linkInheritColor:G.linkInheritColor,noPreWrap:G.noPreWrap,noWrap:G.noWrap,userInput:G.userInput,noEndpoints:G.noEndpoints,headerRuns:G.headerRuns,isHeadline:G.isHeadline}))},"s");
_.R("web_wiz_attributed_string")&&_.J_(iGv,"yt-attributed-string",{props:{ariaHidden:_.N6,ariaLabel:_.N6,className:_.N6,ellipsisTruncate:_.N6,isOverlay:_.N6,linkInheritColor:_.N6,noEndpoints:_.N6,noStyleRuns:_.N6,noLinkColor:_.N6,noPreWrap:_.N6,noWrap:_.N6,skipOnClick:_.N6,userInput:_.N6,headerRuns:_.N6,isHeadline:_.N6,id:_.N6,data:_.N6,hidden:_.N6,forceDefaultStyle:_.N6,text:_.yb,disableUpgrade:_.yb,disable:_.yb,slot:_.yb}});var Lh=function(){return _.m.apply(this,arguments)||this};
_.K(Lh,_.m);Lh.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},Q0S(this.data,this.config))};
_.B([_.k(jwv),_.x("design:type",Object)],Lh.prototype,"ytIdomTemplatingBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Lh.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Lh.prototype,"ariaLabel",void 0);_.B([_.n(),_.x("design:type",Boolean)],Lh.prototype,"disable",void 0);_.B([_.n(),_.x("design:type",Boolean)],Lh.prototype,"ellipsisTruncate",void 0);_.B([_.n(),_.x("design:type",Boolean)],Lh.prototype,"isOverlay",void 0);
_.B([_.n(),_.x("design:type",Boolean)],Lh.prototype,"linkInheritColor",void 0);_.B([_.n(),_.x("design:type",Boolean)],Lh.prototype,"noPreWrap",void 0);_.B([_.n(),_.x("design:type",Boolean)],Lh.prototype,"noWrap",void 0);_.B([_.n(),_.x("design:type",Boolean)],Lh.prototype,"userInput",void 0);_.B([_.n(),_.x("design:type",Boolean)],Lh.prototype,"noEndpoints",void 0);_.B([_.n(),_.x("design:type",Array)],Lh.prototype,"headerRuns",void 0);
_.B([_.aR({is:"yt-attributed-string",disableElementRegistration:!0})],Lh);
_.R("web_wiz_attributed_string")||_.A(Lh,"yt-attributed-string",function(){if(xOS===void 0){var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);
G.content.insertBefore(Brn().content.cloneNode(!0),G.content.firstChild);xOS=G}G=xOS;return G},{mode:2});var bGW,vKC,Nuy;bGW=function(){this.firstThumbnailLoaded=!1};
_.wlE=function(){vKC||(vKC=new bGW);return vKC};
Nuy=function(G){var e=_.wlE();e.firstThumbnailLoaded||(e.firstThumbnailLoaded=!0,_.jq("ftl",G))};
bGW.prototype.reset=function(){this.firstThumbnailLoaded=!1};var xbp=0,Wba=new WeakMap,UbS=0,PQ=new Set;var $bc,Svc=function(){return $bc!==void 0?$bc:$bc=document.createElement("template")};
document.head.appendChild(Svc().content);var qvW;var rg$,OeU,G6;_.WQ=_.O_.caches;G6=function(){};
G6.prototype.open=function(G){return _.WQ.open(tpC(G))};
G6.prototype.has=function(G){return _.WQ.has(tpC(G))};
G6.prototype.delete=function(G){return _.WQ.delete(tpC(G))};
G6.prototype.match=function(G,e){var r=this,Z,O,M,T,E,b;return _.D(function(w){switch(w.nextAddress){case 1:return w.yield(r.keys(),2);case 2:Z=w.yieldResult,O=_.h(Z),M=O.next();case 3:if(M.done){w.jumpTo(5);break}T=M.value;return w.yield(r.open(T),6);case 6:return E=w.yieldResult,w.yield(E.match(G,e),7);case 7:if(b=w.yieldResult)return w.return(b);M=O.next();w.jumpTo(3);break;case 5:return w.return()}})};
var MYa=function(){};
_.K(MYa,G6);var tpC=function(G){if(G.includes(":"))throw Error("nh`"+G);return G+":"+_.IZ("CacheStorage get")};
MYa.prototype.keys=function(){var G,e,r,Z,O,M,T,E,b;return _.D(function(w){if(w.nextAddress==1)return G=[],e=_.IZ("CacheStorage keys"),w.yield(_.WQ.keys(),2);r=w.yieldResult;Z=_.h(r);for(O=Z.next();!O.done;O=Z.next())M=O.value,T=_.elp(M),E=T.originalName,b=T.datasyncId,b===e&&G.push(E);return w.return(G)})};var eU=function(){var G=_.m.apply(this,arguments)||this;G.objectURL=null;G.loadTime=Infinity;return G};
_.K(eU,_.m);_.V=eU.prototype;_.V.renderIdom=function(){GNN(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&Kb_(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.V.objectFitToContentMode=function(G){switch(G){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.V.logThumbnailFailureVe=function(){var G=_.L1(197497);_.Xr(_.h_(),G);var e=_.l4();e&&G&&e&&_.C_(e,[G])};
_.V.loadImageFromCacheIfExists=function(G){var e=this,r=G.target;(r==null?0:r.src)&&hli(r.src).then(function(Z){e.objectURL=_.Jt(Z).toString();e.setSrc(r,e.objectURL)}).catch(function(){})};
_.V.onError=function(G){var e=this;if(_.R("web_use_cache_for_image_fallback")){var r=G.target;r&&hli(r.src).then(function(Z){e.objectURL=_.Jt(Z).toString();e.setSrc(r,e.objectURL)}).catch(function(){_.R("kevlar_woffle_log_thumbnail_failure_ve")&&e.logThumbnailFailureVe();
_.R("kevlar_woffle_fallback_image")&&e.setSrc(r,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.V.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.V.setConfig=function(){var G=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){G.loadImageFromCacheIfExists(e);G.revokeObjectURL();Lb_(G.hostElement)},
onerror:function(e){G.onError(e)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.R("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.V.setSrc=function(G,e){e&&(G.src=e)};
_.B([_.k(jwv),_.x("design:type",Object)],eU.prototype,"ytIdomTemplatingBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],eU.prototype,"data",void 0);_.B([_.n(),_.x("design:type",String)],eU.prototype,"alt",void 0);_.B([_.n(),_.x("design:type",Boolean)],eU.prototype,"ftlEligible",void 0);_.B([_.n(),_.x("design:type",Number)],eU.prototype,"height",void 0);_.B([_.n(),_.x("design:type",Boolean)],eU.prototype,"notifyOnLoaded",void 0);
_.B([_.n(),_.x("design:type",Boolean)],eU.prototype,"notifyOnUnloaded",void 0);_.B([_.n(),_.x("design:type",String)],eU.prototype,"objectFit",void 0);_.B([_.n(),_.x("design:type",String)],eU.prototype,"objectPosition",void 0);_.B([_.n(),_.x("design:type",String)],eU.prototype,"preferredThumbnail",void 0);_.B([_.n(),_.x("design:type",Boolean)],eU.prototype,"preserveHeight",void 0);_.B([_.n(),_.x("design:type",Boolean)],eU.prototype,"preserveWidth",void 0);
_.B([_.n({value:!0}),_.x("design:type",Boolean)],eU.prototype,"useWidth",void 0);_.B([_.n({value:function(){return!_.PX("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.x("design:type",Boolean)],eU.prototype,"shouldRenderLazy",void 0);_.B([_.n(),_.x("design:type",Number)],eU.prototype,"width",void 0);_.B([_.aR({is:"yt-image",disableElementRegistration:!0})],eU);
_.A(eU,"yt-image",function(){if(qvW===void 0){var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);G.content.insertBefore(Svc().content.cloneNode(!0),G.content.firstChild);
qvW=G}G=qvW;return G},{mode:2});var rF=function(){return _.m.apply(this,arguments)||this};
_.K(rF,_.m);rF.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var G=_.X0(this.data.onVisibleCommand);G&&this.ytComponentBehavior.resolveCommand(G)}};
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],rF.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],rF.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.xB.YtVisibilityBehavior),_.x("design:type",Object)],rF.prototype,"ytVisibilityBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],rF.prototype,"data",void 0);_.B([_.aR({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],rF);
_.A(rF,"yt-bumper-user-edu-content-view-model",function(){if(gaw===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;tec===void 0&&(tec=document.createElement("template"));var Z=tec;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);gaw=G}G=gaw;return G},{mode:0});var gKP;var l0n,RSW=function(){if(l0n!==void 0)return l0n;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;gKP===void 0&&(gKP=document.createElement("template"));var Z=gKP;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return l0n=G};var j0y;_.Zs={};j0y=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"]);_.Zs.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var G=this.getContext_();return G?G.getTaskManager():_.A0},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var G=_.xy(this.hostElement,"yt-get-context-provider",{});G.detail&&G.detail.contextProvider?this.cachedProviderNode_=G.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return j0y.has(this.hostElement.localName)},
getNetworkManager:function(){var G=this.getContext_();if(G)return G.getNetworkManager()}};var vG$,a0l,Kbl,Xll;_.OD=function(G){var e=a0l.get(G);if(e&&(e=e.pop()))return Xll++,e;Kbl++;try{var r=document.createElement(G)}catch(Z){throw new _.Cr("ElementPool failed to create element",G,Z.message);}return r};
vG$=function(G){var e=G.is;if(e){var r=a0l.get(e);r||(r=[],a0l.set(e,r));var Z=_.xZ("ELEMENT_POOL_CONFIG")||{};r.length>=(Z[e]!==void 0?Z[e]:_.xZ("ELEMENT_POOL_DEFAULT_CAP",0))||r.push(G)}else _.FH(new _.Cr("Element pool should only handle custom elements:",G.nodeName))};
a0l=new Map;Kbl=0;Xll=0;var Nq=new WeakMap,bes=new WeakMap;var kQl;_.MG=function(G,e,r){r=r===void 0?_.S0():r;this.JSC$13895_defaultPriority=G;this.signal=e;this.scheduler=r;this.nextJobDescriptor=0;this.JSC$13895_parkedJobs=[];this.scheduledJobs=new Map};
_.Vf=function(G,e){if(e){var r=_.rk();G.signal&&!_.Z7(r,G.signal)?(r.addListener(G.signal,function(){G.processSignal()}),G.JSC$13895_parkedJobs.push({job:e,
priority:void 0})):f0E(G,e)}};
kQl=function(G,e){if(e!==G.JSC$13895_defaultPriority){G.JSC$13895_defaultPriority=e;for(var r=_.h(G.scheduledJobs.values()),Z=r.next();!Z.done;Z=r.next())Z=Z.value,G.scheduler.cancelJob(Z.jobId),Z.jobId=G.scheduler.addJob(Z.jobWrapper,e)}};
_.MG.prototype.flushJobs=function(){kQl(this,10);this.processSignal()};
_.MG.prototype.cancel=function(){for(var G=_.h(this.scheduledJobs),e=G.next();!e.done;e=G.next()){var r=_.h(e.value);e=r.next().value;r=r.next().value;this.scheduler.cancelJob(r.jobId);this.scheduledJobs.delete(e)}this.JSC$13895_parkedJobs=[]};
_.MG.prototype.processSignal=function(){for(var G=_.h(this.JSC$13895_parkedJobs),e=G.next();!e.done;e=G.next())e=e.value,f0E(this,e.job,e.priority);this.JSC$13895_parkedJobs=[]};
var f0E=function(G,e,r){r=r||G.JSC$13895_defaultPriority;if(r===10)UY(e);else{var Z=G.nextJobDescriptor++,O=function(){e();G.scheduledJobs.delete(Z)},M=G.scheduler.addJob(O,r);
G.scheduledJobs.set(Z,{jobWrapper:O,jobId:M,priority:r})}};var HGP;_.h4={};HGP={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.h4.YtRendererstamperBehavior=[_.Zs.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 G in this.stampDom){var e=this.stampDom[G];e&&e.id&&this.addReactiveSchema({type:"observe",method:{methodName:DFF(e.id),args:[{type:"wildcard",path:G}]}})}else{(G=(this.constructor.generatedFrom||this).observers)||(G=[]);for(e in this.stampDom){var r=this.stampDom[e];r&&r.id&&G.push(DFF(r.id)+"("+e+".*)")}this.constructor.generatedFrom.observers=G}},
addStampDomObserverFns_:function(){for(var G in this.stampDom){var e=this.stampDom[G];e.id?(this[DFF(e.id)]=this.rendererStamperObserver_.bind(this,G,e.id),this.hasDataPath_[G]=!1):(e=new _.Cr("Bad rendererstamper config",this.is+":"+G),_.yx(e))}},
rendererStamperObserver_:function(G,e,r){if(r.path==G){if(r.value===void 0&&!this.hasDataPath_[G])return;this.hasDataPath_[G]=r.value!==void 0}this.rendererStamperApplyChangeRecord_(G,e,r)},
rendererStamperApplyChangeRecord_:function(G,e,r){var Z=this.renderJobsMap_[e],O=null;G==r.path?(r=r.value,_.FN(r)||(r=r===void 0||r===null?[]:[r]),G=this.stampDom[G],G.mapping&&(O=this.stampDomArray_.bind(this,r,e,G.mapping,G.reuseComponents,G.events,G.stamperStableList)),Z&&Z.cancel(),r=G.usePageScheduler?this.getTaskManager():void 0,Z||G.initialRenderPriority==void 0)?G.renderPriority==void 0||Z||(Z=new _.MG(G.renderPriority,G.waitForSignal,r),this.renderJobsMap_[e]=Z):(Z=new _.MG(G.initialRenderPriority,
G.waitForSignal,r),this.renderJobsMap_[e]=Z,O=function(M,T){M();kQl(T,10)}.bind(this,O,Z)):O=G+".splices"==r.path?this.stampDomArraySplices_.bind(this,G,e,r.value):this.forwardRendererStamperChanges_.bind(this,G,e,r);
Z?_.Vf(Z,O):O()},
forwardRendererStamperChanges_:function(G,e,r){var Z=r.path.slice(G.length+1),O=this.getStampContainer_(e),M=Z.indexOf("."),T=Z.substring(0,M),E=!1,b=0,w=parseInt(T,0);if(T[0]=="#"){E=parseInt(T.substring(1),0);w=this.get(G);var q=this.get([G,T]);w[E]==q?b=E:b=w.indexOf(q);E=!0}else isNaN(w)||(b=w,E=!0);E&&(Z=Z.substring(T.length+1),M=Z.indexOf("."));T=this.polymerDom(O).children[b];var t;if(O=(t=T==null?void 0:T.polymerController)!=null?t:T)Z="data"+Z.slice(M),typeof O.notifyPath!=="function"?_.FH(new _.Cr("notifyPath missing",
this.is+": "+G+", "+e)):r.value?O.notifyPath(Z,r.value):O.notifyPath(Z)},
stampDomArraySplices_:function(G,e,r){if(r&&r.indexSplices){var Z=this.getStampContainer_(e);if(Z){for(var O=this.polymerDom(Z),M=ieU(this.stampDom[G].reuseComponents),T=r.indexSplices.length,E=0;E<T;E++){for(var b=r.indexSplices[E],w=O.children[b.index],q=b.removed.length;q>0;q--)w&&w.parentElement&&(this.polymerDom(w.parentElement).removeChild(w),M&&vG$(w),w=O.children[b.index]);q=this.stampDom[G].mapping;for(var t=b.index+b.addedCount,g=document.createDocumentFragment(),l=M,X=b.index;X<t;X++){var H=
b.object[X],I=T3N(q,H);if(I){var C=q[I];H=H[I];I=this.getComponentName_(C,H);var u=w?Nq.has(w):!1;l&&w&&w.is==I&&u?(I=w,this.telemetry_.reuse++,w=w.nextElementSibling):l&&w&&u?(I=this.createComponent_(C,H,M),u=this.polymerDom(w).nextElementSibling,O.insertBefore(I,u),$F4(this.is,O,w,M),w=u):(l=!1,I=this.createComponent_(C,H,M),g.appendChild(I));this.deferRenderStamperBinding_(I,C,H)}else C=new _.Cr("Unimplemented type",G,e,Z.tagName,Object.keys(H)[0]),_.yx(C)}O.insertBefore(g,w)}this.flushRenderStamperComponentBindings_();
this.stampDom[G].events&&_.xy(this.hostElement,"yt-rendererstamper-finished",{container:Z})}else G=new _.Cr("Container object not found",e,this.hostElement?this.hostElement.is:""),_.yx(G)}},
stampDomArray_:function(G,e,r,Z,O,M){var T=this.getStampContainer_(e);if(T)if(e=this.polymerDom(T),Z=ieU(Z),G){var E=0,b=0,w;if(M=M===void 0?_.PX("STAMPER_STABLE_LIST",!1):M||!1)for(w=e.firstElementChild;w&&!Nq.has(w)&&G.length>b;){M=G[b];var q=T3N(r,M);if(q){if(this.getComponentName_(r[q],M[q])!=w.is){var t=this.createComponent_(r[q],M[q],Z),g=_.i4(w).nextElementSibling;g?e.insertBefore(t,g):e.appendChild(t);$F4(this.is,e,w,Z);w=t}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(w,r[q],
M[q]);E++;b++;w=this.polymerDom(w).nextElementSibling}else b++}Sds(this.is,e,E,Z);E=w;if(G.length>b){M=document.createDocumentFragment();for(q=G.length;b<q;b++)if(t=G[b],g=T3N(r,t))w=this.createComponent_(r[g],t[g],Z),this.deferRenderStamperBinding_(w,r[g],t[g]),M.appendChild(w);if(E&&this.polymerDom(E).parentNode&&w&&!Nq.has(w))e.insertBefore(M,E);else try{e.appendChild(M)}catch(l){_.FH(new _.Cr("Error in RendererStamperBehavior: appendChild failed.",{componentName:this.hostElement.is}))}}this.flushRenderStamperComponentBindings_();
this.markDirty&&this.markDirty();O&&_.xy(this.hostElement,"yt-rendererstamper-finished",{container:T})}else Sds(this.is,e,0,Z);else G=new _.Cr("Container object not found",e,this.hostElement?this.hostElement.is:""),_.yx(G)},
polymerDom:function(G){return this.minimizePipBreakages?G:_.i4(G)},
getStampContainer_:function(G){return this.$&&this.$[G]||_.z1(this.hostElement).querySelector("#"+G)},
getComponentName_:function(G,e){return typeof G==="string"?G:G.matcher?G.matcher.call(this,e):G.component},
createComponent_:function(G,e,r){G=this.getComponentName_(G,e);try{var Z=Lt_.has(G);if(r&&!Z){var O=_.OD(G);try{_.eD(O)}catch(M){r="Failed to clear styles for "+G+".",M.message&&(r+=" Original error: "+M.message),_.FH(new _.Cr(r))}}else O=document.createElement(G)}catch(M){return O="YtRendererStamperBehavior failed to create "+G+".",M.message&&(O+=" Original description: "+M.message),M.message="YtRendererStamperBehavior failed to create element",_.JG(M,O),HGP.hasOwnProperty(G)?_.FH(M):_.yx(M),document.createElement("SPAN")}this.telemetry_.create++;
return O},
deferRenderStamperBinding_:function(G,e,r){this.deferredBindingTasks_.push({component:G,typeOrConfig:e,data:r})},
flushRenderStamperComponentBindings_:function(){for(var G=0,e=this.deferredBindingTasks_.length;G<e;G++){var r=this.deferredBindingTasks_[G];if(!r)break;var Z=void 0,O=void 0,M=void 0,T=void 0,E=r.component,b=r.typeOrConfig;r=r.data;var w=(T=E.polymerController)!=null?T:E;T=E.loggingStatus;try{T&&(T.isRendererStamper=!0);if(typeof b!=="string"){for(M in b.attributes)b.attributes[M]===!0?E.setAttribute(M,""):b.attributes[M]===!1?E.removeAttribute(M):E.setAttribute(M,b.attributes[M]);for(O in b.params)w[O]=
b.params[O],E!==w&&wv(E.localName,O,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(Z in b.properties){var q=b.properties[Z];if(q){var t=EGy(q);w[Z]=this.get(t);E!==w&&wv(E.localName,Z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(Z==="on-tap"||Z==="on-click"){var g=this.get(t);E.addEventListener("click",g);bes.set(E,{property:Z,listener:{type:"element",eventName:"click",handler:g}})}}else{var l=new _.Cr("Undefined property binding",Z);_.yx(l)}}}if(b.classListBinding){var X=EGy(b.classListBinding),
H=X?this[X]:null;if(H)for(Z=0;Z<H.length;Z++)_.Nv(E,H[Z],!0)}w.data=r}finally{T&&(T.isRendererStamper=!1)}if(Z=Nq.get(E))E.hidden=!1,Nq.delete(E),_.A0.cancelJob(Z)}this.deferredBindingTasks_.length=0}}];_.J_(_.y(function(G){function e(){r().seconds&&M(MGS({seconds:Number(r().seconds)-Date.now()/1E3}))}
var r=G.targetTimestamp;G=G.className;var Z=_.h(_.XQ("",void 0,"U1Q8Ae")),O=Z.next().value,M=Z.next().value;_.YZ(function(){e();var T=setInterval(function(){e()},1E3);
_.yD(function(){clearInterval(T)})});
return _.v("yt-countdown",{class:_.LC("ytCountDownHost",G)},_.v("div",null,O))},"u"),"yt-countdown",{props:{targetTimestamp:_.N6,
className:_.yb}});_.T6=new _.Gz("KEY_MANAGER_TOKEN");var XNi={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"};_.Ds=_.y(function(G){var e=_.hT("a",G.ref),r=G.aTagConfig?G.aTagConfig:_.dw(function(){var Z,O,M,T,E;var b=(E=_.X0((M=G.command)==null?void 0:M.call(G)))!=null?E:(T=G.command)==null?void 0:T.call(G);return _.fC({innertubeCommand:b,skipOnClick:(Z=G.skipOnClick)==null?void 0:Z.call(G),defaultTarget:(O=G.target)==null?void 0:O.call(G)})||{}},void 0,"TAvz0");
_.Y8(function(){_.R("mweb_get_endpoint_from_atag_command")||(e.value._data=r()._data,e.value.params=r().params)},"dcjvAe");
return _.v("a",{el:e,href:function(){return r().href$},
rel:function(){return r().rel$},
class:function(){var Z,O;return(O=r().className)!=null?O:(Z=G.className)==null?void 0:Z.call(G)},
style:function(){var Z;if((Z=G.style)==null?0:Z.call(G))return G.style();var O;return((O=G.disabled)==null?0:O.call(G))?"pointer-events:none":""},
"aria-haspopup":function(){return!!r()["aria-haspopup$"]},
"force-new-state":rp(function(){return r()["force-new-state$"]}),
title:rp(function(){var Z,O;return(O=r().title$)!=null?O:(Z=G.title)==null?void 0:Z.call(G)}),
role:rp(function(){var Z;return((Z=G.role)==null?void 0:Z.call(G))||r().role$}),
target:rp(function(){return r().target$}),
dir:rp(function(){var Z;return((Z=G.dir)==null?void 0:Z.call(G))||r().dir}),
tabindex:function(){var Z;return r().tabindex$?Number(r().tabindex$):(Z=G.tabIndex)==null?void 0:Z.call(G)},
"aria-hidden":function(){var Z,O;return(O=r()["aria-hidden$"])!=null?O:(Z=G.ariaHidden)==null?void 0:Z.call(G)},
"aria-label":function(){var Z,O;return(O=r()["aria-label$"])!=null?O:(Z=G.ariaLabel)==null?void 0:Z.call(G)},
"aria-current":G.ariaCurrent,"aria-disabled":G.disabled,"aria-labelledby":G.ariaLabelledby,"aria-describedby":G.ariaDescribedby,"aria-selected":G.ariaSelected,"tab-identifier":G.tabIdentifier,"on:pointerdown":_.ev(function(Z){var O,M;return void((M=(O=r()).onpointerdown)==null?void 0:M.call(O,Z))}),
"on:click":_.ev(function(Z){var O,M;(M=(O=r()).onclick)==null||M.call(O,Z);var T;(T=G.onClick)==null||T.call(G,Z)}),
"on:focusin":_.ev(function(Z){var O;(O=G.onFocusin)==null||O.call(G,Z)}),
"on:focusout":_.ev(function(Z){var O;(O=G.onFocusout)==null||O.call(G,Z)})},G.children)},"w");var Qfq={duration:1E3,easing:"ease",fill:"forwards"};sf4.componentType=uW;var CvF={duration:1E3,easing:"ease",fill:"forwards"},s0j=_.y(function(G){var e=_.hT("animated-rolling-character"),r=void 0,Z=function(){var E,b;return mH((E=G.character)==null?void 0:E.call(G))||mH((b=G.previousCharacter)==null?void 0:b.call(G))},O=_.h(_.XQ(0,void 0,"CYT8Ob")),M=O.next().value,T=O.next().value;
_.YZ(function(){if(window.ResizeObserver&&_.R("web_fix_rolling_numbers_zoom_safari")){var E=new _.Zp(function(){var w,q,t=Math.round(((q=(w=e.value.querySelector("div"))==null?void 0:w.getBoundingClientRect().height)!=null?q:0)*100)/100;t&&T(t)},500),b=new ResizeObserver(function(){E.fire()});
b.observe(e.value);_.yD(function(){b.disconnect();E.dispose()})}});
_.Y8(function(){var E=_.R("web_fix_rolling_numbers_zoom_safari")?M:G.marginMultiplier;if(E()){var b;(b=r)==null||b.cancel();if(Z()){var w;b=((w=G.previousCharacter)==null?0:w.call(G))?Number(G.previousCharacter())+10:G.rollUp()?0:30;var q;if((q=G.shouldAnimate)==null||!q.call(G)){var t,g;b-=pNf((t=G.character)==null?void 0:t.call(G),(g=G.previousCharacter)==null?void 0:g.call(G),G.rollUp(),b)}}else{b=G.rollUp()?0:2;var l;(l=G.shouldAnimate)!=null&&l.call(G)||(w=b,q=G.rollUp()?-1:1,b=w-q)}e.value.style.marginTop=
"-"+b*E()+"px";var X;if((X=G.shouldAnimate)==null?0:X.call(G)){var H,I;r=ucy(e.value,(H=G.character)==null?void 0:H.call(G),(I=G.previousCharacter)==null?void 0:I.call(G),G.rollUp(),b,Z(),E())}else{var C;e.value.style.display=((C=G.character)==null?0:C.call(G))?"":"none"}}},"CA6Pmf");
return _.v("animated-rolling-character",{el:e,class:"animatedRollingCharacterHost"},_.v(_.S,{cond:Z,then:function(){return _.v(db3,null)},
else:function(){return _.v(oKW,{character:G.character})}}))},"z");
s0j.idomCompat=!0;var nGS=_.R("web_enable_sink_animated_rolling_character_and_number")?s0j:sf4,Q03=_.R("web_enable_sink_animated_rolling_character_and_number")?s0j:Ie_(sf4),db3=_.y(function(){for(var G=[],e=1;e<30;e++)G.push(_.v("div",null,e%10));return _.v(_.$Z,null,_.v("div",null,"\u00a0"),G,_.v("div",null,"\u00a0"))},"A"),oKW=_.y(function(G){var e=G.character;
return _.v(_.$Z,null,_.v("div",null,"\u00a0"),_.v(_.S,{cond:function(){return!(e==null?0:e())||_.iF(e==null?void 0:e())},
then:function(){return _.v("div",null,"\u00a0")},
else:function(){return _.v("div",null,e)}}),_.v("div",null,"\u00a0"))},"B");mFs.componentType=uW;var I0E=_.y(function(G){var e=void 0,r=void 0,Z=function(){var M;return((M=G.fontSizeMultiplier)==null?0:M.call(G))?G.heightPx()*G.fontSizeMultiplier():G.heightPx()},O=_.dw(function(){if(!G.numberText())return[];
var M,T,E=((M=G.forceRollUp)==null?void 0:M.call(G))||!r||!((T=G.numberValue)==null?0:T.call(G))||r<G.numberValue(),b,w=G.numberText();M=Z();T=!((b=G.shouldAnimate)==null||!b.call(G));b=[];var q=0,t=0,g=(e?e.replace(/\D/g,"").length:0)-(w?w.replace(/\D/g,"").length:0),l=e?e.split(/(\d)/).filter(Boolean):[];for(w=w.split(/(\d)/).filter(Boolean);g<0;){var X=w[t];b.push({character:X,rollUp:E,marginMultiplier:M,shouldAnimate:T});t++;mH(X)&&g++}for(;q<g;)X=l[q],b.push({previousCharacter:X,rollUp:E,marginMultiplier:M,
shouldAnimate:T}),q++,mH(X)||g++;for(;t<w.length;)g=w[t],X=l[q],mH(g)===mH(X)?(t++,q++):mH(g)?(q++,g=void 0):mH(X)&&(t++,X=void 0),b.push({character:g,previousCharacter:X,rollUp:E,marginMultiplier:M,shouldAnimate:T});e=G.numberText();var H;r=(H=G.numberValue)==null?void 0:H.call(G);return b},void 0,"kWiBv");
return _.v("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return G.numberText()?["height: "+Z()+"px;","line-height: "+G.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.v(_.u6,{each:O,keyBy:"INDEX"},function(M){return _.v(Q03,{character:function(){return M().character},
previousCharacter:function(){return M().previousCharacter},
marginMultiplier:function(){return M().marginMultiplier},
rollUp:function(){return M().rollUp},
shouldAnimate:function(){return M().shouldAnimate}})}))},"C");
I0E.idomCompat=!0;_.plW=_.R("web_enable_sink_animated_rolling_character_and_number")?I0E:Ie_(mFs);var CRS=function(G,e){this.fillAnimation=new Animation(Agy(G),document.timeline);this.strokeAnimation=new Animation(Fw$(e),document.timeline)};
CRS.prototype.play=function(){var G,e;(e=(G=this.fillAnimation).play)==null||e.call(G);var r,Z;(Z=(r=this.strokeAnimation).play)==null||Z.call(r)};
CRS.prototype.cancel=function(){var G,e;(e=(G=this.fillAnimation).cancel)==null||e.call(G);var r,Z;(Z=(r=this.strokeAnimation).cancel)==null||Z.call(r)};_.ED=_.y(function(G){var e=G.model;var r=G.pointerDownEvent;var Z=G.pointerUpEvent;var O=G.pointerLeaveEvent;var M=G.hovered;G=_.hT("yt-touch-feedback-shape");var T=_.hT("div"),E=_.hT("div"),b=_.h(_.Ob(function(){return(Z==null?0:Z())||(O==null?0:O())?!1:!(r==null||!r())||!1})),w=b.next().value,q=b.next().value,t=void 0,g=function(){!t&&E.value&&T.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(t=new CRS(E.value,T.value));
var u;(u=t)==null||u.play()},l=function(){var u;
(u=t)==null||u.cancel()},X=function(){var u;
(u=t)==null||u.cancel()};
_.Y8(function(){(Z==null?0:Z())&&g()},"bg756c");
_.Y8(function(){(r==null?0:r())&&l()},"QAes8c");
_.Y8(function(){(O==null?0:O())&&X()},"YaFbrc");
b=_.ev(function(){g();q(!1)});
var H=_.ev(function(){l();q(!0)}),I=_.ev(function(){X();
q(!1)});
_.yD(function(){if(t){var u;(u=t)==null||u.cancel();t=void 0}});
var C={};w=_.LC("yt-spec-touch-feedback-shape",function(){return Jg_(e().color)},function(){return B3F(e().thumbnailSize,!!e().isExtended)},(C["yt-spec-touch-feedback-shape--focused"]=function(){return!!e().focused&&!e().disabled},C["yt-spec-touch-feedback-shape--circular"]=function(){return!!e().circular},C["yt-spec-touch-feedback-shape--down"]=w,C["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!e().triggerEvents},C["yt-spec-touch-feedback-shape--hovered"]=function(){return M==
null?void 0:M()},C));
return _.v("yt-touch-feedback-shape",{el:G,class:w,style:_.Mk({"margin-top":function(){return e().customTopExtend?"-"+e().customTopExtend+"px":void 0}}),
"on:mousedown":H,"on:mouseup":b,"on:pointerleave":I,"on:touchstart":H,"on:touchend":b,"aria-hidden":!0},_.v(_.S,{cond:function(){return!!e().hoverEffect},
then:function(){return _.v("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.Mk({"border-radius":function(){return e().borderRadius},
background:function(){var u;if(u=e().hoverEffect){for(var P=[],F=_.h((u==null?void 0:u.lightingTechniques)||[]),J=F.next();!J.done;J=F.next())switch(J.value){case 2:var U=J=void 0,e$=void 0,Dq=void 0;P.push("linear-gradient(180deg, "+((J=u)==null?void 0:(U=J.palette)==null?void 0:U.keyLight)+", "+((e$=u)==null?void 0:(Dq=e$.palette)==null?void 0:Dq.background)+")")}var bF,Kf;P.push((bF=e().hoverEffect)==null?void 0:(Kf=bF.palette)==null?void 0:Kf.background);u=P.join(", ")}else u=void 0;return u}})})}}),
_.v("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.Mk({"border-radius":function(){return e().borderRadius},
"border-color":function(){var u,P;return(u=e().touchEffect)==null?void 0:(P=u.palette)==null?void 0:P.background}}),
el:T}),_.v("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.Mk({"border-radius":function(){return e().borderRadius},
"background-color":function(){var u,P;return(u=e().touchEffect)==null?void 0:(P=u.palette)==null?void 0:P.background}}),
el:E}))},"I");
_.ED.idomCompat=!0;var uPj={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 iO=_.gs();iO=iO.toLowerCase();if(_.vA(iO,"android")){var nKW=iO.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);nKW&&parseFloat(nKW[1])<100||iO.match("("+Object.keys(uPj).join("|")+")")};var mbE=_.y(function(G){return _.v(_.S,{cond:G.aTagConfig,then:function(e){return _.v(_.Ds,{aTagConfig:e,disabled:G.disabled,className:G.className,style:G.style,title:G.title,ariaLabel:G.ariaLabel,ariaCurrent:function(){var r,Z;return((r=G.toggleable)==null?void 0:r.call(G))&&((Z=G.toggled)==null?void 0:Z.call(G))},
ref:G.ref},G.children)},
else:function(){return _.v("button",{el:_.cQ(G.ref),"on:click":_.ev(function(e){var r;return(r=G.onClick)==null?void 0:r.call(G,e)}),
class:G.className,title:G.title,style:G.style,disabled:G.disabled,"aria-pressed":function(){var e,r;return((e=G.toggleable)==null?0:e.call(G))?!((r=G.toggled)==null||!r.call(G)):void 0},
"aria-label":G.ariaLabel,"aria-disabled":G.visiblyDisabled,"aria-hidden":G.ariaHidden,tabindex:G.tabIndex},G.children)}})},"J"),YvP=_.y(function(G){var e=G.data;
var r=G.hasIconLeading;var Z=G.hasIconLeadingTrailing;var O=G.hasIconTrailing;var M=G.iconButton;var T=G.iconClassName;var E=G.secondaryIconClassName;var b=G.icon;var w=G.secondaryIcon;var q=G.textContentClassName;return _.v(bO,{className:"",style:"display: inherit; justify-content: center"},_.v(_.S,{debugInstance:"V4z1Uc",cond:function(){return b&&(r()||Z()||(M==null?void 0:M()))},
then:function(){return _.v(bO,null,_.v("div",{class:T,"aria-hidden":"true"},b==null?void 0:b()))}}),_.v(_.S,{debugInstance:"ok3btb",
cond:function(){return(e().buttonText||e().animatedTextProps||e().formattedButtonText)&&!(M==null?0:M())},
then:function(){return _.v(bO,null,_.v(cwc,{className:q,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}}))}}),_.v(_.S,{debugInstance:"DO5Rz",
cond:O,then:function(){return _.v(bO,null,_.v("div",{class:T},b==null?void 0:b()))}}),_.v(_.S,{debugInstance:"bnojSc",
cond:Z,then:function(){return _.v(bO,null,_.v("div",{class:E},w==null?void 0:w()))}}),_.v(_.S,{debugInstance:"HN3kad",
cond:function(){return!e().disabled&&!0},
then:function(){return _.v(_.ED,{model:function(){var t=e();return{color:t.style==="overlay-dark"?4:t.style==="overlay"?t.type==="filled"?4:3:t.type==="filled"||t.style==="call-to-action-inverse"||t.style==="mono-inverse"?2:1}}})}}))},"K"),cwc=_.y(function(G){var e=function(){var r,Z;
return((r=G.iconPosition)==null?void 0:r.call(G))==="icon-with-label"||((Z=G.oneOffCustomTextWrap)==null?void 0:Z.call(G))};
return _.v("div",{class:G.className,"aria-hidden":function(){var r,Z,O;return((r=G.ariaHidden)==null?void 0:r.call(G))&&(!((Z=G.animatedTextProps)==null||!Z.call(G))||!((O=G.formattedButtonText)==null||!O.call(G)))}},_.v(_.nz,null,_.v(_.pz,{when:function(){var r;
return(r=G.animatedTextProps)==null?void 0:r.call(G)}},function(){return _.v(_.plW,{numberText:function(){return G.animatedTextProps().numberText},
numberValue:function(){return G.animatedTextProps().numberValue},
heightPx:function(){return G.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return G.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return G.animatedTextProps().shouldAnimate},
forceRollUp:function(){return G.animatedTextProps().forceRollUp}})}),_.v(_.pz,{when:function(){var r;
return(r=G.formattedButtonText)==null?void 0:r.call(G)}},function(){return _.v(_.Wh,{text:function(){return Object.assign({},G.formattedButtonText(),{lineBreakMode:e()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":G.formattedButtonText().lineBreakMode,
alignment:e()?"TEXT_ALIGNMENT_CENTER":G.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!e()}})}),_.v(_.pz,{when:function(){var r,Z;
return((r=G.iconPosition)==null?void 0:r.call(G))==="icon-with-label"&&((Z=G.text)==null?void 0:Z.call(G))}},function(){return _.v(_.Wh,{text:function(){return{content:G.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.v(_.Cz,null,function(){return G.text})))},"L"),yw3=_.y(function(G){return _.v(_.S,{debugInstance:"kM7Sgc",
cond:G.hasLabel,then:function(){var e;return _.v("label",{class:G.className},G.children,(e=G.textContent)==null?void 0:e.call(G))},
else:function(){return G.children}})},"M"),bO=_.y(function(G){return G.children},"N");var AwE=_.y(function(G){function e(){M(void 0);E(void 0);w(void 0)}
var r=_.cQ(),Z=_.h(_.XQ(void 0,void 0,"Ug77pc")),O=Z.next().value,M=Z.next().value;Z=_.h(_.XQ(void 0,void 0,"XGf7Zb"));var T=Z.next().value,E=Z.next().value,b=_.h(_.XQ(void 0,void 0,"w55oqd"));Z=b.next().value;var w=b.next().value;b=_.h(_.XQ(0,void 0,"rBgpzc"));var q=b.next().value,t=b.next().value;b=_.ev(function(){switch(q()){case 1:t(2);break;case 3:var l,X;(X=(l=r.value).hidePopover)==null||X.call(l);t(0);e()}});
_.Y8(function(){if(G.show()){var l;M((l=G.children)==null?void 0:l.call(G));var X;E((X=G.location)==null?void 0:X.call(G));var H;w((H=G.classNames)==null?void 0:H.call(G));switch(q()){case 0:var I,C;(C=(I=r.value).showPopover)==null||C.call(I);t(1);break;case 3:t(1);var u,P;(P=(u=r.value).hidePopover)==null||P.call(u);var F,J;(J=(F=r.value).showPopover)==null||J.call(F)}}else switch(q()){case 2:t(3);break;case 1:var U,e$;(e$=(U=r.value).hidePopover)==null||e$.call(U);e();t(0)}},"Z8V4Qb");
_.yY(function(){});
var g={};return _.v("yt-popover",{popover:"manual",el:r,style:_.Mk({left:function(){var l;return(l=T())==null?void 0:l.left},
top:function(){var l;return(l=T())==null?void 0:l.top},
bottom:function(){var l;return(l=T())==null?void 0:l.bottom},
right:function(){var l;return(l=T())==null?void 0:l.right}}),
class:_.LC("ytPopoverComponentHost",Z,(g.ytPopoverComponentHostClosing=function(){return q()===3},g.ytPopoverComponentHostSeeThrough=function(){var l;
return((l=G.seeThrough)==null?void 0:l.call(G))===!0},g)),
"on:animationend":b},O)},"P");var FbC={left:"0px",right:"auto",top:"0px",bottom:"auto"},JwW=function(){var G=this;this.registerTooltipElement=function(r){var Z;G.tooltipElement=(Z=r.querySelector("yt-popover"))!=null?Z:void 0};
var e=_.h(_.XQ(void 0,void 0,"EIh5sc"));this.state=e.next().value;this.setState=e.next().value;e=_.h(_.XQ(void 0,void 0,"PC1M0b"));this.schedulerJobID=e.next().value;this.setSchedulerJobID=e.next().value},e4_=function(G,e){var r=Th,Z=_.A0.addJob(function(){var O=Buv(r,G,e);
r.currentConfig=e;r.setState({text:e.text,location:_.R("web_tooltip_location_fix")?void 0:O,anchor:G,offset:e.offset,style:e.style})},4,e.delay);
r.setSchedulerJobID(Z)},ruU=function(){var G=Th,e=G.schedulerJobID();
e&&(_.A0.cancelJob(e),G.setSchedulerJobID(void 0));G.setState(void 0);G.currentConfig=void 0};
JwW.prototype.notify=function(G,e){var r;((r=this.state())==null?void 0:r.anchor)===G&&(r=Buv(this,G,e),this.currentConfig=e,this.setState({text:e.text,location:_.R("web_tooltip_location_fix")?void 0:r,anchor:G,offset:e.offset,style:e.style}))};
var Buv=function(G,e,r){var Z=e.getBoundingClientRect();e=window.innerWidth;var O=window.innerHeight,M=r.location,T=r.offset;r=r.text;if(G=G.tooltipElement){var E=getComputedStyle(G);G=E.font;var b=he(E.lineHeight),w=he(E.paddingLeft),q=he(E.paddingRight),t=he(E.paddingTop);E=he(E.paddingBottom);var g=document.createElement("canvas").getContext("2d");g.font=G;r={width:g.measureText(r).width+w+q,height:b+t+E}}else r=void 0;G=r;if(!G)return FbC;r=G.width;G=G.height;w=T+G;t=T+r;b=Z.top>=w;w=O-Z.bottom>=
w;q=Z.left>=t;t=e-Z.right>=t;E=M;switch(M){case "top":!b&&w&&(E="bottom");break;case "bottom":!w&&b&&(E="top");break;case "left":!q&&t&&(E="right");break;case "right":!t&&q&&(E="left")}switch(E){case "top":M=Z.left+Z.width/2-r/2;Z=Z.top-G-T;break;case "bottom":M=Z.left+Z.width/2-r/2;Z=Z.bottom+T;break;case "left":M=Z.left-r-T;Z=Z.top+Z.height/2-G/2;break;case "right":M=Z.right+T;Z=Z.top+Z.height/2-G/2;break;default:M=Z.left+Z.width/2-r/2,Z=Z.bottom+T}T=Object.assign({},FbC);M+r>e?(T.right="0px",T.left=
"auto"):(T.left=Math.round(Math.max(0,M)+window.scrollX)+"px",T.right="auto");Z+G>O?(T.bottom="0px",T.top="auto"):(T.top=Math.round(Math.max(0,Z)+window.scrollY)+"px",T.bottom="auto");return T};var Th;Th=new JwW;_.xbv=_.y(function(){var G=_.dw(function(){var O;return(O=Th.state())==null?void 0:O.anchor},void 0,"tiGUn"),e=_.dw(function(){var O;
return(O=Th.state())==null?void 0:O.text},void 0,"TA2GQe"),r=_.dw(function(){var O;
return(O=Th.state())==null?void 0:O.style},void 0,"ucvFsf"),Z=_.R("web_tooltip_location_fix")?_.dw(function(){var O=G();
var M=Th.currentConfig;if(O&&M)return Buv(Th,O,M)},void 0,"EpDz6"):_.dw(function(){var O;
return(O=Th.state())==null?void 0:O.location},void 0,"aRJtfd");
return _.v("yt-tooltip",{class:"ytTooltipContainerHost",el:_.cQ(Th.registerTooltipElement),"aria-hidden":"true"},_.v(AwE,{classNames:function(){switch(r()){case "TOOLTIP_VIEW_MODEL_STYLE_PLAYER":return"ytTooltipContainerPlayerTooltipContent";default:return"ytTooltipContainerDefaultTooltipContent"}},
location:Z,show:function(){return!!e()&&!!Z()},
seeThrough:!0},e))},"Q");var uKi=EM("stamper-context");_.vk=_.y(function(G){var e=G.data;var r=G.icon;var Z=G.iconName;var O=G.animateIcon;var M=G.secondaryIcon;var T=G.secondaryIconName;var E=G.focusedOverride;var b=G.clientOnlyWizTooltipsEnabled;O8a();var w=xFF(e),q=w.size,t=w.style;G=w.disabled;var g=w.onTap,l=w.alignByText,X=w.aTagConfig,H=w.customColors,I=w.segmentedPosition,C=w.toggled,u=w.toggleable,P=w.accessibilityLabel,F=w.onToggle,J=w.iconPosition,U=w.oneOffCustomTextWrap,e$=w.disableTextEllipsis,Dq=w.disableBackdropFilter,bF=w.tooltipText,
Kf=w.ariaHidden,ti=w.tabIndex,Ry=w.buttonText,nf=w.formattedButtonText,k4=w.animatedTextProps,SE=w.onClickRateLimitMs,Fn=Wwq(e,r,M,Z,T,E,O),kw=Fn.type;r=Fn.shouldFocus;Z=Fn.hasIconLeading;O=Fn.hasIconTrailing;var Lf=Fn.hasIconLeadingTrailing,vc=Fn.hasIconOnly;M=Fn.hasIconOnly40;var IW=Fn.hasIconWithLabel;T=Fn.iconButton;var Hc=Fn.visiblyDisabled;E=Fn.overrideSmallSizeIcon;var a8=Fn.iconToRender;Fn=Fn.secondaryIconToRender;var t2=_.h(Z8q(bF,w.tooltipShape)).next().value,hi=function(RW){g==null||g(RW);
u()&&(F==null||F(RW))},rj=_.dw(function(){return SE==null?void 0:SE()},void 0,"siKywb"),tS=_.dw(function(){return rj()?pLv(hi,rj()):hi},void 0,"wDTcN");
w={};var OV={};return _.v(yw3,{className:_.LC("yt-spec-button-shape-with-label",(w["yt-spec-button-shape-with-label--is-overlay"]=function(){return t()==="overlay"||t()==="overlay-dark"},w)),
hasLabel:IW,textContent:function(){return _.v(cwc,{text:Ry,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:U,iconPosition:J,formattedButtonText:nf,animatedTextProps:k4})}},_.v(mbE,{aTagConfig:X,
className:_.LC("yt-spec-button-shape-next",function(){return N3y(kw())},function(){return Hc()?void 0:LwA(t())},function(){return GOS(q())},(OV["yt-spec-button-shape-next--disabled"]=Hc,OV["yt-spec-button-shape-next--focused"]=r,OV["yt-spec-button-shape-next--icon-trailing"]=O,OV["yt-spec-button-shape-next--icon-leading"]=Z,OV["yt-spec-button-shape-next--icon-leading-trailing"]=Lf,OV["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return Lf()&&!(Ry()||nf())},OV["yt-spec-button-shape-next--icon-button"]=
function(){return vc()||IW()},OV["yt-spec-button-shape-next--icon-only-default"]=M,OV["yt-spec-button-shape-next--align-by-text"]=l,OV["yt-spec-button-shape-next--segmented-start"]=function(){return I()==="start"},OV["yt-spec-button-shape-next--segmented-end"]=function(){return I()==="end"},OV["yt-spec-button-shape-next--override-small-size-icon"]=E,OV["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=U,OV["yt-spec-button-shape-next--disable-text-ellipsis"]=e$,OV["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!Dq()&&!_.R("web_disable_backdrop_filter")},OV)),
style:function(){var RW=H();if(RW){var Zl=RW.color;var pm=RW.backgroundColor;RW=RW.borderColor;var Bc="";Zl&&(Bc+="color: "+Zl+";");pm&&(Bc+="background-color: "+pm+";");RW&&(Bc+="border-color: "+RW+";");Zl={style:Bc}}else Zl={};return Zl.style},
onClick:function(RW){tS()(RW)},
disabled:G,ariaLabel:P,toggleable:u,toggled:C,title:function(){return(b==null?0:b())||!bF()?"":bF()},
visiblyDisabled:Hc,ariaHidden:Kf,tabIndex:ti,ref:function(RW){(b==null?0:b())&&t2(RW)}},_.v(YvP,{data:e,
hasIconLeading:Z,hasIconLeadingTrailing:Lf,hasIconTrailing:O,iconButton:T,icon:a8,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:Fn})))},"S");
_.vk.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.wF=_.y(function(G){var e=G.data;var r=G.className;var Z=G.style;var O=G.useOutlinedIcon;var M=G.buttonOverrides;var T=G.animatedTextProps;var E=G.onClick;var b=G.target;var w=_.hT("button-view-model",function(F){F.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var J=e().targetId;J&&_.Kty(_.Kh(),J,F);return function(){aTw(_.Kh(),F)}}),q=function(){return e().iconName},t=_.Eb(function(F){a:{var J=e().entityKey,U=e().buttonEntitySelectorType;
if(U&&J)switch(U){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":F=(F=_.Gh(F,J))?{isHidden:F.adsState==="ADS_STATE_NONE"||F.adsState==="ADS_STATE_UNKNOWN"}:void 0;break a;default:F={isHidden:!1};break a}F=void 0}return F}),g,l=(g=_.v_().resolve(_.bq(_.Ig)))==null?void 0:g(),X=function(){var F=e();
var J=M==null?void 0:M(),U=T==null?void 0:T(),e$=b==null?void 0:b();if(F){var Dq=b8S(F.type);var bF=!!F.title||!!F.titleFormatted;var Kf=!(!F.iconName&&!F.iconImage);bF=Kf&&!bF?"icon-only":Kf?F.iconTrailing||F.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;bF==="icon-only-40"&&(Dq="text");var ti;Kf=(ti=J==null?void 0:J.state)!=null?ti:vFa(F.state);var Ry,nf=(Ry=J==null?void 0:J.disabled)!=null?Ry:F.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||F.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.R("web_button_vm_refactor_disabled")){var k4;nf=(k4=J==null?void 0:J.disabled)!=null?k4:Kf==="disabled"}U=U&&U.numberText&&!isNaN(Number(U.numberValue))?U:void 0;Ry=Object;k4=Ry.assign;ti=F.title;var SE=F.titleFormatted,Fn=F.accessibilityText,kw=i8$(F.style),Lf=w$S(F.buttonSize);e$=EFS(F,w,nf,E,e$);nf=nf&&!F.onDisabledTap;var vc=Tti(F,w),IW=F.customFontColor,Hc=F.customBackgroundColor;var a8=F.customBorderColor;var t2=F.customDarkThemeFontColor,hi=F.customDarkThemeBackgroundColor,rj=F.customDarkThemeBorderColor;
IW=l&&t2?t2:IW;Hc=l&&hi?hi:Hc;a8=l&&rj?rj:a8;a8={color:IW?_.jF(IW):void 0,backgroundColor:Hc?_.jF(Hc):void 0,borderColor:a8?_.jF(a8):void 0};if(rj=_.a(F.tooltipData,XyE)){var tS;Hc={text:(tS=rj.tooltipText)!=null?tS:"",location:V9i(rj.placement),style:rj.style}}else Hc=void 0;F=k4.call(Ry,{},{buttonText:ti,formattedButtonText:SE,animatedTextProps:U,accessibilityLabel:Fn,style:kw,type:Dq,state:Kf,size:Lf,iconPosition:bF,onTap:e$,disabled:nf,aTagConfig:vc,customColors:a8,tooltipText:F.tooltip,tooltipShape:Hc},
J)}else F={style:"mono",type:"text",state:"active",size:"M"};F.focused=C();return F},H=function(){return UFN(X(),!!e().iconName)};
G=_.h(_.XQ(!1,void 0,"yZ8hab"));g=G.next().value;var I=G.next().value,C=g;G=_.ev(function(){var F=_.v_().resolve(_.bq(_.T6));F&&I(F.isKeyBoardInUse());return!1});
g=_.ev(function(){I(!1);return!1});
_.Y8(function(){var F,J=_.a(e==null?void 0:(F=e())==null?void 0:F.onVisible,_.ag);J&&_.KC(J,{disableClickTracking:!0})},"G9MlKd");
var u=function(){var F;return(e==null?0:(F=e())==null?0:F.iconImage)?{sources:[e().iconImage]}:void 0},P=_.R("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.v("button-view-model",{el:w,class:_.LC("ytSpecButtonViewModelHost",r),"on:focusin":G,"on:focusout":g},_.v(_.S,{cond:function(){var F,J;return!((J=e().entityKey&&e().buttonEntitySelectorType&&((F=t())==null?void 0:F.isHidden))!=null&&J)},
then:function(){return _.v(_.S,{cond:u,then:function(F){return _.v(_.vk,{data:X,icon:function(){return _.v(_.nC,{data:F,alt:"",targetWidth:H,targetHeight:H,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:P})},
else:function(){return _.v(_.vk,{data:X,icon:function(){return _.v(_.V$,{icon:q,active:function(){return(O==null?0:O())?!1:X().toggled},
animateIcon:function(){var F;return!!(Z==null?0:(F=Z())==null?0:F.animateIcon)},
size:H})},
clientOnlyWizTooltipsEnabled:P})}})}}))},"U");
_.wF.idomCompat={callbacks:{onClick:!0}};_.J_(_.y(function(G){return _.v("yt-button-view-model",{id:G.id,class:_.LC(G.scopingClassName,G.classes),icon:function(){var e;return(e=G.icon)==null?void 0:e.call(G)},
"dialog-dismiss":function(){var e;return((e=G.dialogDismiss)==null?0:e.call(G))?"":void 0}},_.v(_.wF,{data:function(){var e;
return(e=G.data)==null?void 0:e.call(G)},
className:function(){var e;return(e=G.className)==null?void 0:e.call(G)},
style:function(){var e;return(e=G.style)==null?void 0:e.call(G)},
useOutlinedIcon:function(){var e;return(e=G.useOutlinedIcon)==null?void 0:e.call(G)},
buttonOverrides:function(){var e;return(e=G.buttonOverrides)==null?void 0:e.call(G)},
animatedTextProps:function(){var e;return(e=G.animatedTextProps)==null?void 0:e.call(G)},
onClick:function(e){var r;return(r=G.onClick)==null?void 0:r.call(G,e)}}))},"V"),"yt-button-view-model",{props:{data:_.N6,
className:_.N6,style:_.N6,useOutlinedIcon:_.N6,buttonOverrides:_.N6,animatedTextProps:_.N6,onClick:_.yb,scopingClassName:_.N6,id:_.N6,icon:_.N6,dialogDismiss:_.N6,classes:_.N6,target:_.yb}});_.J_(_.y(function(G){var e=G.data;var r=G.id;var Z=G.className;var O=G.iconName;var M=G.animateIcon;var T=G.secondaryIconName;G=_.h(_.XQ(!1,void 0,"TtJl8"));var E=G.next().value,b=G.next().value,w=function(){var t=_.v_().resolve(_.bq(_.T6));t&&b(t.isKeyBoardInUse())},q=function(){b(!1)};
G=_.hT("yt-button-shape",function(t){if(_.v_().resolve(_.bq(_.T6)))return t.addEventListener("focusin",w),t.addEventListener("focusout",q),function(){t.removeEventListener("focusin",w);t.removeEventListener("focusout",q)}});
return _.v("yt-button-shape",{el:G,id:r,class:Z},_.v(_.S,{cond:e,then:function(){return _.v(_.vk,{data:e,iconName:O,secondaryIconName:T,focusedOverride:E,animateIcon:M})}}))},"W"),"yt-button-shape",{props:{data:_.N6,
id:_.N6,className:_.N6,iconName:_.N6,animateIcon:_.N6,secondaryIconName:_.N6,clientOnlyWizTooltipsEnabled:_.N6,disableUpgrade:_.N6},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var $0=function(){var G=_.m.apply(this,arguments)||this;G.isGoalActive=!0;return G};
_.K($0,_.m);$0.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
$0.prototype.progressBarChanged=function(){var G=_.z1(this.hostElement).querySelector("#progress-bar-progress"),e,r,Z,O=(Z=Number((e=this.creatorGoalState)==null?void 0:e.currentGoalCount)/Number((r=this.creatorGoalState)==null?void 0:r.totalGoalCount)*100)!=null?Z:0,M;G.style.width=((M=Math.min(O,100))!=null?M:0)+"%"};
$0.prototype.goalStateChanged=function(){var G;this.isGoalActive=((G=this.creatorGoalState)==null?void 0:G.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var e;G={"--yt-progress-bar-color":Bmp((e=this.creatorGoalState)==null?void 0:e.progressBarColor)};_.eD(this.hostElement,G)};
$0.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.iY.Object.defineProperties($0.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var G;return this.isGoalActive&&!((G=this.creatorGoalState)==null||!G.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.creatorGoalState)==null?0:G.endTimestampMs){var e;G=Number((e=this.creatorGoalState)==null?void 0:e.endTimestampMs)/1E3;return{seconds:String(G)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.creatorGoalState)==null?0:G.themedTargetImage){var e;G=_.a((e=this.creatorGoalState)==null?void 0:e.themedTargetImage,bXP);return this.isAppDarkTheme()?G==null?void 0:G.imageDark:G==null?void 0:G.imageLight}}}});
_.iY.Object.defineProperties($0,{template:{configurable:!0,enumerable:!0,get:function(){return RSW()}}});
$0.prototype.goalStateChanged=$0.prototype.goalStateChanged;$0.prototype.progressBarChanged=$0.prototype.progressBarChanged;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],$0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.y9),_.x("design:type",Object)],$0.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],$0.prototype,"ytRendererBehavior",void 0);
_.B([_.n({selectorArgs:["data.creatorGoalEntityKey"],selector:function(G,e){return _.e6(G.entities,"creatorGoalEntity",e)}}),
_.x("design:type",Object)],$0.prototype,"creatorGoalState",void 0);_.B([_.n(),_.x("design:type",Object)],$0.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],$0.prototype,"isGoalActive",void 0);_.B([_.d("creatorGoalState","isGoalActive"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],$0.prototype,"shouldShowCountdown",null);_.B([_.d("creatorGoalState"),_.x("design:type",Object),_.x("design:paramtypes",[])],$0.prototype,"endTimestamp",null);
_.B([_.d("creatorGoalState"),_.x("design:type",Object),_.x("design:paramtypes",[])],$0.prototype,"targetIconThemedImage",null);_.B([_.Me("creatorGoalState.currentGoalCount"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$0.prototype,"progressBarChanged",null);_.B([_.Me("creatorGoalState.creatorGoalState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$0.prototype,"goalStateChanged",null);
_.B([_.aR({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],$0);_.A($0,"yt-creator-goal-progress-flow-view-model",function(){return RSW()},{mode:0});var PRC;var Ub3;var SU=function(){return _.m.apply(this,arguments)||this};
_.K(SU,_.m);SU.prototype.attached=function(){var G,e,r;if(this==null?0:(G=this.data)==null?0:(e=G.pdgPurchasedBumperLoggingDirectives)==null?0:(r=e.loggingDirectives)==null?0:r.trackingParams){var Z,O,M;qr_(this==null?void 0:(Z=this.data)==null?void 0:(O=Z.pdgPurchasedBumperLoggingDirectives)==null?void 0:(M=O.loggingDirectives)==null?void 0:M.trackingParams)}};
SU.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],SU.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],SU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],SU.prototype,"data",void 0);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],SU);
_.A(SU,"yt-live-chat-item-bumper-view-model",function(){if(Ub3===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;PRC===void 0&&(PRC=document.createElement("template"));var Z=PRC;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Ub3=G}G=Ub3;return G},{mode:0});var zSw;var WbE;_.n1=function(G,e){this.data=G;this.actions=e;this.data=G;this.actions=e};
_.oV=function(){};_.qG={};_.qG.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(G,e){t9N(this.hostElement,G,e)},
getNavigationEndpointPopupAction:function(G){return gFq(G,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(G,e){l14(this.hostElement,G,e,this.openPopupConfig)}};var oFA=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.t4={};
_.t4.YtEndpointBehavior=[_.qG.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.xZ("openPopupConfig");(this.useClickHandler=_.PX("useClickHandler",!1))?this.hostElement.addEventListener("click",rv(this,this.onEndpointClick_)):(F1(this.hostElement,"tap",rv(this,this.onEndpointTap_)),F1(this.hostElement,"touchend",rv(this,this.onEndpointTouchEnd_)));F1(this.hostElement,"touchstart",rv(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
rv(this,this.onEndpointTapStart_))},
onEndpointClick_:function(G){a1$(this.hostElement,G,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(G){var e=this.hostElement,r=this.openPopupConfig,Z=this.disableCommandHandlerOverride;Z=Z===void 0?!1:Z;var O=R4U(G);if(O){O.href&&fa(O.href);var M=G.detail;var T=M.sourceEvent;M=M.preventer;T=T.button!==void 0?T.button===0&&!iZ(T):M?!iZ(M):!0;O.data&&T&&jKq(e,O,G,r,Z)}},
onEndpointTouchEnd_:function(G){iZ(G)||R4U(G)&&G.preventDefault()},
onEndpointTapStart_:function(G){H8s(G)}}];_.gF={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(G){for(var e=_.e8.getInstance(),r=_.h(Object.keys(G)),Z=r.next();!Z.done;Z=r.next()){var O=Z.value;Z=G[O];if(this&&this[Z]){var M=e.actionRoutingMap.get(O);M||(M=new Map,e.actionRoutingMap.set(O,M));e.registerActionHandler(this,O,this[Z].bind(this),M)}else O=Error("ld"),O.params=Z,_.WX(O)}},
unregisterActionMap:function(G){_.Mx(_.e8.getInstance(),G,this)}}]};var wp=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_"+(_.R("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.R("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.R("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:_.R("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:_.R("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:_.R("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var v5;var $O=new Map;var udA=window.matchMedia("(forced-colors: active)").matches;var NuW;var Lbl;var GNn=new _.Gz("LOTTIE_LOADER_TOKEN");_.lO=_.y(function(G){var e=G.data;var r=G.className;var Z=G.animationName;var O=G.animationRef;var M=G.elRefForInterop;var T=_.T2("lottie-component"),E;_.yD(function(){var w;return void((w=E)==null?void 0:w.destroy())});
var b;_.Y8(function(){var w=_.FQ(Z);if(w!==b){b=w;var q=Object.assign({},{animationName:w,animationRef:_.FQ(O)},_.FQ(e));try{_.v_().resolve(GNn)().then(function(l){var X;(X=E)==null||X.destroy();var H,I;X=(I=M==null?void 0:(H=M())==null?void 0:H.value)!=null?I:T.value;H=q.animationRef;I=q.listeners;l=l.loadAnimation(Object.assign({},{container:X},q.animationConfig));H&&(H.lottieEl=l);if(I)for(X=_.h(Object.entries(I)),H=X.next();!H.done;H=X.next())I=_.h(H.value),H=I.next().value,(I=I.next().value)&&
l.addEventListener(H,I);E=l})}catch(l){w=l;
var t="LottieComponent error.";w.message&&(t+=" Original description: "+w.message);_.JG(w,t);_.FH(w);var g;((g=q.listeners)==null?0:g.error)&&q.listeners.error(w)}}},"nrJISd");
return _.v(Ey4,{cond:function(){return!(M==null?0:M())},
then:function(){return _.v("lottie-component",{class:_.LC("ytLottieComponentHost",r),el:T})}})},"Y");_.J_(_.y(function(G){return _.v("ytd-lottie-player",{id:G.id,hidden:G.hidden,class:G.className,"aria-label":G.ariaLabel,style:"display: block;"},_.v(_.lO,{data:G.data,animationName:function(){var e;return((e=G.data().animationConfig)==null?void 0:e.name)||""},
animationRef:function(){return G.data().animationRef}}))},"Z"),"ytd-lottie-player",{props:{data:_.N6,
id:_.N6,hidden:_.N6,className:_.N6,ariaLabel:_.N6}});var aq=function(){var G=_.m.apply(this,arguments)||this;G.animationRef={};G.delhiIconsEnabled=_.R("enable_web_delhi_icons");return G};
_.K(aq,_.m);_.V=aq.prototype;
_.V.handlePropertyChange=function(){var G=this.animatedIcon,e=this.active,r=this.isDarkTheme;if(G){var Z=this.previousActive!==e;this.previousActive=e;this.animationRef.lottieEl?Z&&this.toggleAnimation(e,G.totalFrames):e?this.initializeAnimationAsToggled(G.lottiePlayerProps,G.totalFrames):this.initializeAnimationAsUntoggled(G.lottiePlayerProps);G.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=G.type;this.lottiePlayerProps=this.computeLottiePlayerProps(G,r)}};
_.V.computeLottiePlayerProps=function(G,e){var r=this.deepCloneLottiePlayerProps(G);e?(e=G.nameDarkTheme,G=G.pathDarkTheme):(e=G.name,G=G.path);r.animationConfig.name=e;(e=$O.get(G))?r.animationConfig.animationData=e:r.animationConfig.path=G;return r};
_.V.initializeAnimationAsToggled=function(G,e){G.animationConfig.initialSegment=[e-1,e]};
_.V.initializeAnimationAsUntoggled=function(G){G.animationConfig.initialSegment=void 0};
_.V.toggleAnimation=function(G,e){if(G){var r;(r=this.animationRef.lottieEl)==null||r.playSegments([0,e],!0)}else{var Z;(Z=this.animationRef.lottieEl)==null||Z.playSegments([0,1],!0)}};
_.V.deepCloneLottiePlayerProps=function(G){var e=Object.assign({},G.lottiePlayerProps.animationConfig);G=Object.assign({},G.lottiePlayerProps);G.animationConfig=e;return G};
aq.prototype.handlePropertyChange=aq.prototype.handlePropertyChange;_.B([_.n(),_.x("design:type",Object)],aq.prototype,"animatedIcon",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],aq.prototype,"active",void 0);_.B([_.n(),_.x("design:type",Boolean)],aq.prototype,"isDarkTheme",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],aq.prototype,"animatedIconType",void 0);_.B([_.n(),_.x("design:type",Boolean)],aq.prototype,"previousActive",void 0);
_.B([_.n(),_.x("design:type",Object)],aq.prototype,"lottiePlayerProps",void 0);_.B([_.n(),_.x("design:type",Object)],aq.prototype,"animationRef",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],aq.prototype,"delhiIconsEnabled",void 0);_.B([_.Me("animatedIcon","active","isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aq.prototype,"handlePropertyChange",null);_.B([_.aR({is:"yt-animated-icon",disableElementRegistration:!0})],aq);
_.A(aq,"yt-animated-icon",function(){if(Lbl===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;NuW===void 0&&(NuW=document.createElement("template"));var Z=NuW;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Lbl=G}G=Lbl;return G},{mode:2});var elv;var rgE;var AuS=_.y(function(G){var e=_.T2("span"),r=AH(function(){return{value:null,cancelled:!1}});
_.yD(function(){r.cancelled=!0});
var Z=_.dw(G.data,{equals:function(O,M){return O.iconName===M.iconName&&O.iconStyle===M.iconStyle&&O.iconSize===M.iconSize&&O.iconSetName===M.iconSetName&&O.iconSelected===M.iconSelected}},"AoOoyf");
_.Y8(function(){var O,M=(O=G.options)==null?void 0:O.call(G);yui(e,r,Z(),M)},"Tie9e");
return _.v("span",{class:"yt-icon-shape",el:e})},"aa");
AuS.idomCompat=!0;var ZDa=["youtube_fill","youtube_outline"];var Zel=new _.s4({type:"iconset",value:void 0}),X3=function(){var G=_.m.apply(this,arguments)||this;G.isDarkTheme=document.documentElement.hasAttribute("dark");G.iconName="";G.iconsetName="yt-icons";G.iconset=null;G.missingIconSet=!1;G.iconType=null;G.iconShapeDataSignal=_.XQ(void 0,void 0,"ZwOn2");G.renderingOptionsSignal=_.XQ({iconWidth:"100%",iconHeight:"100%",iconFilter:G.iconFilter,iconColor:G.gradientColor},void 0,"UgqF6d");G.wizHasRendered=!1;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return G};
_.K(X3,_.m);X3.prototype.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.isDarkTheme=G)};
X3.prototype.handlePropertyChange=function(){var G=this,e,r,Z,O,M,T,E,b,w,q,t,g,l,X,H,I,C;return _.D(function(u){switch(u.nextAddress){case 1:if(e=!G.icon&&!G.iconName||!G.isAttached)return u.return();r=G;Z=r.icon;O=r.size;M=r.defaultToFilled;T=r.active;E=r.targetContainer;G.toggleContainerClass(E);_.R("kevlar_use_wil_icons")&&Z&&(b=l6y(Z),G.iconType=b.length?b[1]:null);if(Z){u.jumpTo(2);break}G.iconsetName="";G.iconName="";return u.yield(G.renderIcon(E,Z),3);case 3:return u.return();case 2:w=OeW(Z);
q=l6y(w);q.length&&(G.iconsetName=q[0],G.iconName=q[1]);if(!_.R("kevlar_use_wil_icons")){u.jumpTo(4);break}t=X3;g=MYE;l=G.iconType;X=G.active;H=G.defaultToFilled;I=G.size;C=G.iconsetName;return u.yield(VYy(),6);case 6:return u.yield(g.call(t,l,X,H,I,C,u.yieldResult),5);case 5:G.iconShapeData=u.yieldResult;case 4:if(G.shouldRenderIconShape(E)){u.jumpTo(7);break}return u.yield(G.determineIconSet(w,T,M,O,E),7);case 7:return u.yield(G.renderIcon(E,Z),0)}})};
X3.prototype.toggleContainerClass=function(G){G?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var OeW=function(G){return!_.R("default_to_innertube_icon")||G.indexOf(":")>0?G:_.Ne(G)};
_.V=X3.prototype;_.V.determineIconSet=function(G,e,r,Z){var O=this;return _.D(function(M){return M.nextAddress==1?_.R("kevlar_system_icons")||_.xZ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.xZ("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?M.yield(O.switchToYtSysIconset(G,e,r,Z),3):M.jumpTo(2):M.nextAddress!=2?M.return():M.yield(O.useYtSysIconsetForMissingIcons(G,e,r,Z),0)})};
_.V.switchToYtSysIconset=function(G,e,r,Z){var O=this,M,T,E,b,w,q,t;return _.D(function(g){switch(g.nextAddress){case 1:if(!G||O.iconsetName!=="yt-icons"&&O.iconsetName!=="yt-sys-icons"){g.jumpTo(0);break}M=l6y(G);T=M[1];var l=T;if(Hy$(l))T=l;else{var X=l=l.toLowerCase();(l=vaw.get(l))&&(X=l);T=X}_.R("enable_polymer_icons_replace_underscores_dash")&&T.includes("_filled")&&(T=T.replace(/_filled/g,"-filled"));return g.yield(Wx(T,!0),3);case 3:return E=g.yieldResult,g.yield(Wx(T,!1),4);case 4:if((b=
g.yieldResult)||e&&E)O.iconsetName="yt-sys-icons";O.iconName=O.getIconName(T,e,r,b,E);if(Z===24){g.jumpTo(0);break}w="yt-sys-icons"+Z+":"+O.iconName;return g.yield(Wx(w,!1,!0),6);case 6:return q=g.yieldResult,g.yield(Wx(w,!0,!0),7);case 7:t=g.yieldResult;O.iconName=O.getIconName(T,e,r,q,t);if(!e&&q||e&&t)O.iconsetName="yt-sys-icons"+Z;_.HL(g)}})};
_.V.getIconName=function(G,e,r,Z,O){G.includes("-filled")&&(G=G.replace("-filled",""));return O&&(e||r)?G+"-filled":G};
_.V.useYtSysIconsetForMissingIcons=function(G,e,r,Z){var O=this,M,T;return _.D(function(E){if(E.nextAddress==1)return O.iconsetName!=="yt-icons"?E.jumpTo(0):E.yield(Wx(O.iconName,!1,!1,!0),3);if(E.nextAddress!=4)return M=E.yieldResult,E.yield(Wx(O.iconName,!1),4);T=E.yieldResult;if(M||!T)return E.jumpTo(0);O.iconsetName="yt-sys-icons";return E.yield(O.switchToYtSysIconset(G,e,r,Z),0)})};
_.V.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var VYy=function(){return _.D(function(G){try{return G.return(_.v_().resolve(_.LR))}catch(e){return G.return(new Promise(function(r){_.rk().parkOrScheduleJob(function(){r(_.v_().resolve(_.LR))},2,"ci")}))}})},MYE=function(G,e,r,Z,O,M){Z=Z===void 0?24:Z;
if(G){G=G.toLowerCase();var T=G.endsWith("_filled")||G.endsWith("-filled");e={iconName:G,iconStyle:(e===void 0?0:e)||(r===void 0?0:r)||T?"youtube_fill":"youtube_outline",iconSize:Z,iconSetName:O===void 0?"yt-icons":O};r=!!M.resolveIcon(e);r||(e.iconSize=void 0,r=!!M.resolveIcon(e));!r&&T&&(e.iconName=G.substring(0,G.length-7),e.iconSize=Z,r=!!M.resolveIcon(e),r||(e.iconSize=void 0,r=!!M.resolveIcon(e)));r||(e.iconStyle=void 0,r=!!M.resolveIcon(e));r||_.FH(new _.Cr("Icon not supported",{iconName:e.iconName,
iconStyle:e.iconStyle,iconSize:e.iconSize,iconType:G}));return r?e:void 0}};
_.V=X3.prototype;_.V.shouldRenderIconShape=function(G){if(!_.R("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;G=this.getContainer(G);return!nFS(G,this.icon)};
_.V.renderIcon=function(G,e){var r=this,Z,O,M,T,E,b,w,q;return _.D(function(t){switch(t.nextAddress){case 1:if(e&&r.icon!==e)return t.return();Z=r.getContainer(G);O=nFS(Z,r.icon);if(r.shouldRenderIconShape(G)&&r.iconType)return r.applyIconShape(O,Z),t.return();r.removeIconShape();if(!Z)return t.return();r.iconName===""&&r.iconset&&Z&&(r.removeStaticIcon(r.iconset,Z),O&&r.removeAnimatedIcon(Z));if(r.iconName===""&&r.iconset||!r.iconsetName||!Zel)return t.return();r.iconset=Zel.byKey(r.iconsetName);
if(!r.iconset)return r.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.ZQ(r,r.onIconsetAdded)),t.return();r.missingIconSet&&(r.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.ZQ(r,r.onIconsetAdded)));T=(M=O||r.isAnimatedIcon?p$$(r.icon):void 0)&&!M.lazyLoad;b=M&&((E=M)==null?void 0:E.lazyLoad)&&(M.lottiePlayerProps.animationConfig.animationData?!0:$O.get(r.isDarkTheme?M.pathDarkTheme:M.path)?!0:!1);if(T||b)return r.applyAnimatedIcon(Z,M,r.iconset),t.return();if(b||
(w=M)==null||!w.lazyLoad){t.jumpTo(2);break}q=cuF(M,r.isDarkTheme);r.applyStaticIcon(r.iconset,Z,r.iconName,G,O);return t.yield(q,3);case 3:return t.yield(r.renderIcon(r.targetContainer,r.icon),4);case 4:return t.return();case 2:r.applyStaticIcon(r.iconset,Z,r.iconName,G,O),_.HL(t)}})};
_.V.getContainer=function(G){var e,r=(e=Mb$(this.hostElement))==null?void 0:e.host;e=!!r&&!!r.polymerController;if(!G||e)return G?this.getTargetContainer(G,r):this.hostElement};
_.V.getTargetContainer=function(G,e){var r=_.z1(e).querySelector("#"+G);r||(G=new _.Cr("yt-icon container missing",e.is,G),_.yx(G));return r};
_.V.applyStaticIcon=function(G,e,r,Z,O){O&&this.removeAnimatedIcon(e);this.removeIconShape();O=O&&!!this.iconType&&!!this.iconShapeData&&_.R("kevlar_use_wil_icons");try{O?this.applyIconShape(!1,e):G.applyIcon(e,r)}catch(M){this.handleError(M,Z,e)}};
_.V.applyIconShape=function(G,e){this.iconset&&e&&(this.removeStaticIcon(this.iconset,e),G&&this.removeAnimatedIcon(e));G={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var r=_.h(this.iconShapeDataSignal);e=r.next().value;r=r.next().value;var Z=_.h(this.renderingOptionsSignal),O=Z.next().value;Z=Z.next().value;r(this.iconShapeData);Z(G);if(!this.wizHasRendered)for(this.wizHasRendered=!0,G=_.h(FsN(e,O)).next().value;G.firstChild;)_.z1(this.hostElement).appendChild(G.firstChild)};
_.V.removeIconShape=function(){if(_.R("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.V.removeStaticIcon=function(G,e){G.removeIcon(e)};
_.V.applyAnimatedIcon=function(G,e,r){this.removeStaticIcon(r,G);this.removeIconShape();var Z;r=this.animatedIconElement&&((Z=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:Z.type)===e.type;if(this.animatedIconElement&&r){this.animatedIconElement.polymerController.animatedIcon=e;var O;((O=this.animatedIconElement)==null?void 0:O.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(G),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=e,this.animatedIconElement.polymerController.active=this.active,_.R("delhi_modern_web_player_icons")?(e=CVA(G,this.icon)&&G.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,_.R("kevlar_use_wil_icons")?
G.insertBefore(this.animatedIconElement,G.childNodes[0]):(G=_.z1(G),G.insertBefore(this.animatedIconElement,G.childNodes[0]))};
_.V.removeAnimatedIcon=function(G){_.R("kevlar_use_wil_icons")?this.animatedIconElement&&G.contains(this.animatedIconElement)&&G.removeChild(this.animatedIconElement):(G=_.z1(G),this.animatedIconElement&&G.contains(this.animatedIconElement)&&G.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.V.handleError=function(G,e,r){_.JG(G,this.iconName,e,r);e=nFS(r,this.icon);var Z=!1;window.location.href.includes("JpymaW6Lh2w")?Z=!0:r._svgIcon&&(r=(r=r._svgIcon.parentNode)?r.tagName:"unknown",_.JG(G,r),r==="YT-ICON"&&G.name==="NotFoundError"?Z=!0:G.name==="NotFoundError"&&e&&(Z=!0));Z?_.FH(G):_.yx(G)};
_.iY.Object.defineProperties(X3,{template:{configurable:!0,enumerable:!0,get:function(){if(rgE===void 0){var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;
elv===void 0&&(elv=document.createElement("template"));var Z=elv;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);rgE=G}G=rgE;return G}}});
X3.prototype.handlePropertyChange=X3.prototype.handlePropertyChange;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],X3.prototype,"actionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",String)],X3.prototype,"icon",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],X3.prototype,"active",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],X3.prototype,"defaultToFilled",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],X3.prototype,"isAnimatedIcon",void 0);
_.B([_.n({value:24}),_.x("design:type",Number)],X3.prototype,"size",void 0);_.B([_.n({value:""}),_.x("design:type",String)],X3.prototype,"targetContainer",void 0);_.B([_.n(),_.x("design:type",Object)],X3.prototype,"animatedIconElement",void 0);_.B([_.n(),_.x("design:type",Object)],X3.prototype,"isDarkTheme",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],X3.prototype,"ariaHidden",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],X3.prototype,"ariaLabel",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],X3.prototype,"role",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],X3.prototype,"tabindex",void 0);_.B([_.n(),_.x("design:type",String)],X3.prototype,"style",void 0);_.B([_.n(),_.x("design:type",String)],X3.prototype,"iconFilter",void 0);_.B([_.n(),_.x("design:type",String)],X3.prototype,"gradientColor",void 0);
_.B([_.Me("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],X3.prototype,"handlePropertyChange",null);_.B([_.aR({is:"yt-icon",noInjection:!0})],X3);var JuF="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),xTs=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var hlS={};hlS.YtPlaintextBehavior=[_.fS,{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(G){G.preventDefault();G=G.clipboardData.getData("text/plain");document.execCommand("insertText",!1,G)},
preventRichTextFormatting_:function(G){_.ec&&(G=G.detail.keyboardEvent,G.stopImmediatePropagation(),G.preventDefault())}}];var T3n;var DFy;var Kb=function(){var G=_.m.apply(this,arguments)||this;G.ignoreShadyDom=!1;G.hasChange_=!1;G.hasSetTitle_=!1;G.useIOObserverForVisibilityLogging_=_.R("kevlar_use_vimio_behavior")&&_.xZ("INNERTUBE_CLIENT_NAME")==="WEB";G.ytFormattedStringObserverHandlerKeys_=void 0;return G};
_.K(Kb,_.m);_.V=Kb.prototype;_.V.created=function(){this.useIOObserverForVisibilityLogging_=_.R("kevlar_use_vimio_behavior")&&_.xZ("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.V.ready=function(){_.xZ("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_()};
_.V.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.V.detached=function(){this.unobserveIOObservers_()};
_.V.clearContents_=function(){for(var G=this.getRoot(),e=G.lastChild;e&&e.tagName!=="STYLE";){try{G.removeChild(e)}catch(r){break}e=G.lastChild}};
_.V.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var G=_.h(this.ytFormattedStringObserverHandlerKeys_),e=G.next();!e.done;e=G.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(e.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.V.resetForAttributedString=function(){var G=this.getRoot();!G.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),G.appendChild(this.ytAttributedStringElementRef))};
_.V.resetForFormattedString=function(){var G=this.getRoot(),e=G.querySelector("yt-attributed-string");e&&(this.ytAttributedStringElementRef=G.removeChild(e))};
_.V.textChanged=function(){this.textChanged_(this.text)};
_.V.textChanged_=function(G){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!G||!G.runs&&!G.simpleText;if(_.R("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 r=e;e=e.nextSibling;this.hostElement.removeChild(r)}e=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
r=G.simpleText;var Z;!r&&((Z=G.runs)==null?void 0:Z.length)===1&&this.isSimpleString_(G.runs[0])&&(r=G.runs[0].text);r!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.xZ("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(r!==void 0){try{e.textContent=r}catch(O){}e.textContent||(this.isEmpty=!0)}else G=G.runs,r!==void 0&&(G=[{text:r}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),G&&this.updateText_(G),
e.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.V.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)};
_.V.computeAriaLabel_=function(G){return G};
_.V.computeEllipsisTruncateStyling=function(G,e){return G&&!e};
_.V.computeUseAttributedString=function(G){return _.R("web_replace_formatted_with_attributed_string")&&Tr_(G)&&!this.disableAttributedString&&!this.enableContentEditable};
_.V.setNodeStyle_=function(G,e){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.R("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 r=null;this.noStyles||(G.bold&&(e.classList.add("bold"),r="bold"),G.deemphasize&&(e.classList.add("deemphasize"),r="deemphasize"),G.italics&&e.classList.add("italic"),
G.strikethrough&&e.classList.add("strikethrough"),G.errorUnderline&&(e.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),G.bracket&&e.classList.add("bracket"),G.textColor&&(e.style.color=_.RB(G.textColor)));r!==e.getAttribute("style-target")&&(r?e.setAttribute("style-target",r):e.removeAttribute("style-target"))};
_.V.setUpVisibilityLogging_=function(G,e){var r=this;this.setNodeTrackingParams_(G,e);var Z;((Z=e.data)==null?0:Z.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(G=this.ytRendererBehavior.visibilityObserver.observe(e,function(O){var M=r.ytRendererBehavior.getVisibilityLogger();M&&M.reportShown(O)},this.ytRendererBehavior.visibilityOptionVisible_),e=this.ytRendererBehavior.visibilityObserver.observe(e,function(O){var M=r.ytRendererBehavior.getVisibilityLogger();
M&&M.reportHidden(O)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(G),this.ytFormattedStringObserverHandlerKeys_.push(e))};
_.V.setNodeTrackingParams_=function(G,e){e.data||(e.data={});if((G=G.loggingDirectives?G.loggingDirectives.trackingParams:null)||e.data.trackingParams)e.data.trackingParams=G};
_.V.computeHasLinkOnly_=function(G){return!(!G||G.length!==1||this.noEndpoints||!G[0].navigationEndpoint)};
_.V.getRoot=function(){var G=this.buildScopeDomOptions();return this.enableContentEditable?_.z1(_.z1(this.hostElement,G).querySelector("[contenteditable]")):_.z1(this.hostElement,G)};
_.V.fixContenteditableScope=function(){var G=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(r){G(r)}))};
G(this.getRoot())};
_.V.updateText_=function(G){for(var e=G.length,r=this.getRoot(),Z=r.firstChild;Z&&Z.nodeName==="STYLE";)Z=Z.nextSibling;for(var O=0;O<e&&Z;){var M=G[O],T=_.R("remove_cr_char")&&M.text?M.text.replace("\r",""):M.text;if(this.isSimpleString_(M)&&!this.useMixedDirectionFormattedStrings)if(Z.nodeName==="#text"){Z.textContent!=T&&(Z.textContent=T);O++;Z=Z.nextSibling;continue}else break;if(_.a(M,Rg))break;else if(!this.noEndpoints&&M.navigationEndpoint){if(Z.nodeName!=="A")break;this.setDataOnAnchor_(Z,
M.navigationEndpoint)}else if(Z.nodeName!=="SPAN")break;this.setNodeStyle_(M,Z);this.setUpVisibilityLogging_(M,Z);Z.textContent!=T&&(Z.textContent=T);O++;Z=Z.nextSibling}if(Z)for(M=r.lastChild,Z=O?Z.previousSibling:null;M&&M!=Z;){try{r.removeChild(M)}catch(E){break}M=r.lastChild}O!==e&&this.addTextNodes_(G,O)};
_.V.addTextNodes_=function(G,e){for(var r=document.createDocumentFragment(),Z=G.length;e<Z;e++){var O=G[e],M=_.R("remove_cr_char")&&O.text?O.text.replace("\r",""):O.text;if(this.isSimpleString_(O)&&!this.useMixedDirectionFormattedStrings)r.appendChild(document.createTextNode(M));else{var T=_.a(O,Rg);if(T){if(T.image){var E=document.createElement("img");T.isCustomEmoji||E.classList.add("small-emoji");E.classList.add("emoji");T.isCustomEmoji&&(E.dataset.emojiId=T.emojiId);E.src=_.BQ(T.image.thumbnails,
this.emojiSize);(O=this.get("image.accessibility.accessibilityData.label",T))?E.alt=O:T.shortcuts&&T.shortcuts.length>0?E.alt=T.shortcuts[0]:T.emojiId&&(E.alt=T.emojiId);r.appendChild(E);this.hasEmoji=!0}}else!this.noEndpoints&&O.navigationEndpoint?(E=document.createElement("a"),E.classList.add("yt-simple-endpoint"),E.setAttribute("spellcheck","false"),this.setDataOnAnchor_(E,O.navigationEndpoint)):E=document.createElement("span"),this.setNodeStyle_(O,E),this.setUpVisibilityLogging_(O,E),E.appendChild(document.createTextNode(M)),
r.appendChild(E)}}this.getRoot().appendChild(r)};
_.V.isSimpleString_=function(G){return(this.noEndpoints||!G.navigationEndpoint)&&!_.a(G,Rg)&&(this.noStyles||!(G.bold||G.deemphasize||G.italics||G.strikethrough||G.errorUnderline||G.bracket||G.textColor))&&!G.loggingDirectives};
_.V.getRawText=function(){return _.mG(this.text)};
_.V.getFirstRunText=function(){var G;if(((G=this.text)==null?0:G.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.V.setFirstRunText=function(G){var e;((e=this.text)==null?0:e.runs)&&this.text.runs[0]&&(this.text.runs[0].text=G,this.textChanged_(this.text))};
_.V.setDataOnAnchor_=function(G,e){var r=this;!_.R("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(e)||this.isSignalServiceEndpoint_(e)?(G.onclick=this.serviceEndpointHandler_(e),Pw(G,"#")):G_s({text:this.text,command:e},function(){bWA(G,e,r.target)})};
_.V.isServiceEndpoint_=function(G){var e;return!((e=_.a(G==null?void 0:G.commandMetadata,_.rJ))==null||!e.sendPost)};
_.V.isSignalServiceEndpoint_=function(G){return!!_.a(G,_.eq)};
_.V.serviceEndpointHandler_=function(G){var e=this;return function(r){_.zw(e.hostElement,[G]);r.preventDefault()}};
_.V.overrideAriaLabelChanged_=function(){var G=this.getRoot();this.enableContentEditable&&G&&G.setAttribute("aria-label",this.overrideAriaLabel)};
_.V.enableContentEditableChanged_=function(){var G=this,e=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),e=_.z1(this.hostElement,e),!e.lastChild||e.lastChild instanceof HTMLElement&&e.lastChild.id!=="contenteditable-root"){var r=document.createElement("div");r.id="contenteditable-root";r.setAttribute("contenteditable","true");r.setAttribute("dir","auto");r.onfocus=function(){G.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
e.appendChild(r);this.overrideAriaLabel&&r.setAttribute("aria-label",this.overrideAriaLabel)}}else r=_.W1(this.hostElement).firstChild,r instanceof HTMLElement&&r.id==="contenteditable-root"&&_.z1(this.hostElement,e).removeChild(r)};
_.V.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.V.getNodesForVisibilityLogging_=function(){return _.Pz(this.getRoot().childNodes,function(G){var e;return!((e=G.data)==null||!e.trackingParams)})};
_.V.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.V.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var G=this.ytRendererBehavior.getVisibilityLogger();G&&this.getNodesForVisibilityLogging_().forEach(function(e){G.reportShown(e)})}};
_.V.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var G=this.ytRendererBehavior.getVisibilityLogger();G&&this.getNodesForVisibilityLogging_().forEach(function(e){G.reportHidden(e)})}};
_.iY.Object.defineProperties(Kb.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.R("enable_mixed_direction_formatted_strings")}}});
Kb.prototype.enableContentEditableChanged_=Kb.prototype.enableContentEditableChanged_;Kb.prototype.overrideAriaLabelChanged_=Kb.prototype.overrideAriaLabelChanged_;Kb.prototype.ellipsisTruncateChanged_=Kb.prototype.ellipsisTruncateChanged_;Kb.prototype.textChanged=Kb.prototype.textChanged;_.B([_.k(hlS.YtPlaintextBehavior),_.x("design:type",Object)],Kb.prototype,"ytPlaintextBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Kb.prototype,"ytComponentBehavior",void 0);
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Kb.prototype,"text",void 0);_.B([_.n(),_.x("design:type",Boolean)],Kb.prototype,"noEndpoints",void 0);_.B([_.n(),_.x("design:type",Boolean)],Kb.prototype,"noStyles",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Kb.prototype,"isDarkTheme",void 0);
_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Kb.prototype,"splitLines",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Kb.prototype,"forceDefaultStyle",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Kb.prototype,"ellipsisTruncate",void 0);_.B([_.n(),_.x("design:type",Object)],Kb.prototype,"ignoreShadyDom",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.x("design:type",Boolean)],Kb.prototype,"ellipsisTruncateStyling",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.x("design:type",String)],Kb.prototype,"ariaLabel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Kb.prototype,"isEmpty",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.x("design:type",Boolean)],Kb.prototype,"hasLinkOnly_",void 0);_.B([_.n(),_.x("design:type",Boolean)],Kb.prototype,"hasEmoji",void 0);_.B([_.n(),_.x("design:type",Boolean)],Kb.prototype,"disableAttributedString",void 0);_.B([_.n(),_.x("design:type",Boolean)],Kb.prototype,"isOverlay",void 0);_.B([_.n(),_.x("design:type",Boolean)],Kb.prototype,"linkInheritColor",void 0);
_.B([_.n(),_.x("design:type",Boolean)],Kb.prototype,"noPreWrap",void 0);_.B([_.n(),_.x("design:type",Boolean)],Kb.prototype,"userInput",void 0);_.B([_.n({value:16}),_.x("design:type",Number)],Kb.prototype,"emojiSize",void 0);_.B([_.n(),_.x("design:type",String)],Kb.prototype,"target",void 0);_.B([_.n(),_.x("design:type",Boolean)],Kb.prototype,"enableContentEditable",void 0);_.B([_.n(),_.x("design:type",String)],Kb.prototype,"overrideAriaLabel",void 0);
_.B([_.n(),_.x("design:type",Boolean)],Kb.prototype,"respectHtmlDir",void 0);_.B([_.n(),_.x("design:type",Boolean)],Kb.prototype,"respectLangDir",void 0);_.B([_.d("plaintextOnly"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Kb.prototype,"useMixedDirectionFormattedStrings",null);_.B([_.n({computed:"computeUseAttributedString(text)"}),_.x("design:type",Boolean)],Kb.prototype,"useYtAttributedString",void 0);
_.B([_.Me("text"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Kb.prototype,"textChanged",null);_.B([_.Me("ellipsisTruncate"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Kb.prototype,"ellipsisTruncateChanged_",null);_.B([_.Me("overrideAriaLabel"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Kb.prototype,"overrideAriaLabelChanged_",null);
_.B([_.Me("enableContentEditable"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Kb.prototype,"enableContentEditableChanged_",null);_.B([_.aR({is:"yt-formatted-string",disableElementRegistration:!0})],Kb);
_.A(Kb,"yt-formatted-string",function(){if(DFy===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;T3n===void 0&&(T3n=document.createElement("template"));var Z=T3n;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);DFy=G}G=DFy;return G});var EGW;var ieW;var bej;var vGE;var fb=function(){var G=_.m.apply(this,arguments)||this;G.focused=!1;G.disabled=!1;G.isOverlay=!1;return G};
_.K(fb,_.m);fb.prototype.triggerDown=function(){if(!this.disabled){_.Nv(this.hostElement,"down",!0);var G;(G=this.currentAnimation)==null||G.cancel()}};
fb.prototype.triggerUp=function(){if(!this.disabled){_.Nv(this.hostElement,"down",!1);var G=this.fillElement;var e=this.strokeElement;typeof GroupEffect==="function"?(G=new GroupEffect([Agy(G),Fw$(e)]),G=new Animation(G,document.timeline)):G=new CRS(G,e);this.currentAnimation=G;var r;(r=this.currentAnimation)==null||r.play()}};
_.B([_.hs(".stroke"),_.x("design:type",HTMLElement)],fb.prototype,"strokeElement",void 0);_.B([_.hs(".fill"),_.x("design:type",HTMLElement)],fb.prototype,"fillElement",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],fb.prototype,"focused",void 0);_.B([_.n(),_.x("design:type",Object)],fb.prototype,"disabled",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],fb.prototype,"isOverlay",void 0);_.B([_.aR({is:"yt-interaction",disableElementRegistration:!0})],fb);
_.A(fb,"yt-interaction",function(){if(vGE===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;bej===void 0&&(bej=document.createElement("template"));var Z=bej;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);vGE=G}G=vGE;return G},{mode:2});var k0=function(){return _.m.apply(this,arguments)||this};
_.K(k0,_.m);_.V=k0.prototype;_.V.ready=function(){var G=this,e=_.z1(this.hostElement).querySelector("#button");e.addEventListener("focus",function(){hul||(hul=new V2y);G.keyboardFocused=hul.isKeyBoardInUse()});
e.addEventListener("blur",function(){G.keyboardFocused=!1;G.rippleUp_()})};
_.V.computeTabIndex_=function(G){return G?-1:0};
_.V.computeButtonAriaPressed_=function(G){if(this.toggleable)return G?"true":"false"};
_.V.rippleDown_=function(){_.z1(this.hostElement).querySelector("#interaction").triggerDown()};
_.V.rippleUp_=function(){_.z1(this.hostElement).querySelector("#interaction").triggerUp()};
_.V.onPressedChanged_=function(){var G=_.W1(_.z1(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.W1(_.z1(this.hostElement).querySelector("#button")).children[0];G&&(G.active=this.pressed)};
k0.prototype.onPressedChanged_=k0.prototype.onPressedChanged_;k0.prototype.rippleUp_=k0.prototype.rippleUp_;k0.prototype.rippleDown_=k0.prototype.rippleDown_;_.B([_.n(),_.x("design:type",String)],k0.prototype,"label",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],k0.prototype,"disabled",void 0);_.B([_.n(),_.x("design:type",Boolean)],k0.prototype,"pressed",void 0);_.B([_.n(),_.x("design:type",Object)],k0.prototype,"toggleable",void 0);
_.B([_.n(),_.x("design:type",Boolean)],k0.prototype,"untabbable",void 0);_.B([_.n(),_.x("design:type",Boolean)],k0.prototype,"keyboardFocused",void 0);_.B([_.Om("down"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],k0.prototype,"rippleDown_",null);_.B([_.Om("up"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],k0.prototype,"rippleUp_",null);
_.B([_.Me("pressed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],k0.prototype,"onPressedChanged_",null);_.B([_.aR({is:"yt-icon-button",disableElementRegistration:!0})],k0);
_.A(k0,"yt-icon-button",function(){if(ieW===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;EGW===void 0&&(EGW=document.createElement("template"));var Z=EGW;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);ieW=G}G=ieW;return G},{mode:2});var wNw;var $Fw=function(){var G=document.body,e=G.appendChild;if(wNw===void 0){var r=document.createElement("template");_.f(r,'\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>');
wNw=r}r=wNw;e.call(G,r.content)};
document.body?$Fw():window.addEventListener("DOMContentLoaded",$Fw);var Sdj=_.Cp(["aria-"]),Hk={};Hk.YtRenderButtonBehavior=[_.W.YtRendererBehavior,_.t4.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!!_.v_().resolve(_.bq(_.T6))&&_.R("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 G=this.computeHref_(this.endpoint,!0);G?Pw(this.elements_.endpoint,G):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){G=this.buttonClass.split(" ");G=_.h(G);for(var e=G.next();!e.done;e=G.next())e=e.value,_.Nv(this.hostElement,e,!0),this.elements_.button&&_.Nv(this.elements_.button,e,!0),this.elements_.text&&_.Nv(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&&(G=null,this.buttonAccessibility&&(G=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=G:G?_.Df([_.wS(Sdj)],this.elements_.button,"aria-label",G):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var G=_.v_().resolve(_.bq(_.T6));G&&(this.keyboardFocused=G.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.OD("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,_.i4(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.i4(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(G,e){if(e)for(G=e.split(" "),G=_.h(G),e=G.next();!e.done;e=G.next())e=e.value,_.Nv(this.hostElement,e,!1),this.elements_.button&&_.Nv(this.elements_.button,e,!1),this.elements_.text&&_.Nv(this.elements_.text,e,!1)},
buttonIconChanged_:function(G){this.elements_.icon?G?(this.elements_.icon.icon=G,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.i4(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.La(this.hostElement,"is-paper-button-with-icon",!1)):G&&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"&&_.i4(this.elements_.button).appendChild(this.elements_.icon):_.i4(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.La(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(G){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,G){var e=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(G){case "yt_icon_button_with_label":e=!0;_.Nv(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();G=_.i4(this.elements_.button).firstElementChild;
this.elements_.icon=G;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.i4(this.elements_.endpoint).appendChild(this.elements_.button);_.i4(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.OD("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;_.i4(this.elements_.button).appendChild(this.elements_.text);_.i4(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":e=!0,this.elements_.button=this.getYtIconButton_(),G=_.i4(this.elements_.button).firstElementChild,this.elements_.icon=G,this.setIconActive_(this.elements_.icon),
_.i4(this.elements_.endpoint).appendChild(this.elements_.button)}_.La(this.hostElement,"is-icon-button",e);_.La(this.hostElement,"is-paper-button",!e);_.La(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 r;_.z1((r=this.container.hostElement)!=null?r:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.i4(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(G){if(G!=void 0||this.disabled)this.disabled=G,this.elements_.button&&(this.elements_.button.disabled=G)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(G){_.R("kevlar_system_icons")&&G&&this.data&&(this.data.isSelected!==void 0?G.active=this.data.isSelected:this.data.isToggled!==void 0&&(G.active=this.data.isToggled))},
observeBasicPalette_:function(G){_.Sv(this.hostElement,G)},
disabledChanged_:function(G){this.data&&this.set("data.isDisabled",G)},
onYtButtonTap_:function(G){if(this.disabled)G.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.zw(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(G=this.disableCommandHandlerOverride,!this.data||!this.data.command||G||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.R("handle_service_request_actions")||_.zw(this.hostElement,[this.serviceEndpoint]),
_.xy(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.R("handle_service_request_actions")?(G=[],this.serviceEndpoint&&G.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&G.push(this.data.command),G.length&&_.Wi(this.hostElement,G,this.hostElement)):this.data&&this.data.command&&(G=this.data.command,G.accountUnlinkCommand||G.accountLinkCommand||G.insertAdCommand||G.insertHighlightMarkerCommand||
G.createLivestreamHighlightClipCommand||G.getVideoUploadFeedbackCommand||G.musicDeletePrivatelyOwnedEntityCommand||G.ypcCancelRecurrenceEndpoint||G.getMultiSelectCommandEndpoint?_.zw(this.hostElement,[G]):_.Wi(this.hostElement,[G],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 G,e=_.z1((G=this.container.hostElement)!=null?G:this.container);e.lastChild&&e.lastChild.tagName!="STYLE";)try{e.removeChild(e.lastChild)}catch(r){break}},
getYtIconButton_:function(){var G=this.reuseEnabled_()?_.OD("yt-icon-button"):document.createElement("yt-icon-button"),e=_.i4(G).firstElementChild;if(e&&e.is!="yt-icon"){for(e=_.i4(G);e.lastChild;)e.removeChild(e.lastChild);e=null}e||(e=this.getIcon_(),this.setIconActive_(e),_.i4(G).appendChild(e));return G},
reuseEnabled_:function(){return _.R("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.OD("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.OD("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.qdW={};
_.qdW.YtButtonBehavior=[Hk.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var G=this.data;G&&(this._setEndpoint(this.computeEndpoint_(G)),this._setServiceEndpoint(this.computeServiceEndpoint_(G)),this._setCommand(this.computeCommand_(G)),this._setButtonIcon(this.computeButtonIcon_(G)),this._setButtonText(this.computeButtonText_(G,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(G)),this._setButtonTooltip(this.computeTooltip_(G)),this._setButtonClass(this.computeButtonClass_(G)),this._setIconPositionType(this.computeIconPositionType_(G)),this.updateRenderedElements())},
setPressedState:function(G){var e;if((e=this.elements_)==null?0:e.button)this.elements_.button.pressed=!!G},
computeIconPositionType_:function(G){return G&&G.iconPosition||null},
computeEndpoint_:function(G){var e=G&&G.navigationEndpoint,r=this.get("data.command.commandMetadata.webCommandMetadata.url"),Z=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return e?e:G&&G.command&&G.command.modalEndpoint?G.command:r&&!Z&&G.command?G.command:null},
computeServiceEndpoint_:function(G){var e=G&&G.serviceEndpoint,r=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return e?e:r&&G.command?G.command:null},
computeCommand_:function(G){return G&&G.command||null},
computeButtonIcon_:function(G){return G&&G.icon&&G.icon.iconType?_.Ne(G.icon.iconType):null},
computeButtonText_:function(G,e){return!e&&G&&G.text||null},
computeAccessibility_:function(G){return this.get("accessibilityData.accessibilityData",G)||G&&G.accessibility||(G&&G.text?{label:this.getSimpleString(G.text)}:null)},
computeTooltip_:function(G){return G?G.isDisabled&&G.disabledTooltip||G.tooltip||null:null},
computeButtonClass_:function(G){var e=G&&G.style?G.style.toLowerCase().replace(/_/g,"-")+" ":"";e+=G&&G.size?G.size.toLowerCase().replace(/_/g,"-")+" ":"";G.colorData&&G.colorData.basicColorPaletteData&&G.colorData.basicColorPaletteData.borderColor&&(e+="palette-with-border");return e.trim()}}];var qk={};var tYS;var gGj;var le3,RlS=function(){return le3!==void 0?le3:le3=document.createElement("template")};
document.head.appendChild(RlS().content);var jfl;var aen,XNS=function(){return aen!==void 0?aen:aen=document.createElement("template")};
document.head.appendChild(XNS().content);var Kwl;var feC,kNv=function(){return feC!==void 0?feC:feC=document.createElement("template")};
document.head.appendChild(kNv().content);var HeE;var dFv=document.head,oGl=dFv.appendChild,sfw;if(HeE===void 0){var Qfb=document.createElement("template");_.f(Qfb,"\x3c!--css-build:shady--\x3e");Qfb.content.insertBefore(kNv().content.cloneNode(!0),Qfb.content.firstChild);HeE=Qfb}sfw=HeE;oGl.call(dFv,sfw.content);var Iel=document.head,pNP=Iel.appendChild,Cvy;if(Kwl===void 0){var ucW=document.createElement("template");_.f(ucW,"\x3c!--css-build:shady--\x3e");ucW.content.insertBefore(XNS().content.cloneNode(!0),ucW.content.firstChild);Kwl=ucW}Cvy=Kwl;pNP.call(Iel,Cvy.content);var nG3=document.head,mFj=nG3.appendChild,cgn;if(jfl===void 0){var Ydl=document.createElement("template");_.f(Ydl,"\x3c!--css-build:shady--\x3e");Ydl.content.insertBefore(RlS().content.cloneNode(!0),Ydl.content.firstChild);jfl=Ydl}cgn=jfl;mFj.call(nG3,cgn.content);var ygl;_.te("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");ygl=_.R("web_button_rework")&&_.PX("BUTTON_REWORK")||_.R("web_button_rework_with_live");_.dF=function(){return _.m.apply(this,arguments)||this};
_.K(_.dF,_.m);_.dF.prototype.created=function(){this.openPopupConfig=_.xZ("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.dF.prototype.onYtNavigate_=function(G){var e=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(G.detail.endpoint);e&&(this.ytOpenPopupBehavior.openPopup(e),G.stopPropagation(),G.preventDefault())};
_.iY.Object.defineProperties(_.dF,{template:{configurable:!0,enumerable:!0,get:function(){if(gGj===void 0){var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);
var e=G.content,r=e.insertBefore;tYS===void 0&&(tYS=document.createElement("template"));var Z=tYS;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);gGj=G}G=gGj;return G}}});
_.dF.prototype.onYtNavigate_=_.dF.prototype.onYtNavigate_;_.B([_.k(_.qG.YtOpenPopupBehavior),_.x("design:type",Object)],_.dF.prototype,"ytOpenPopupBehavior",void 0);_.B([_.k(_.qdW.YtButtonBehavior),_.x("design:type",Object)],_.dF.prototype,"ytButtonBehavior",void 0);_.B([_.Om("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],_.dF.prototype,"onYtNavigate_",null);
_.B([_.aR({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:ygl})],_.dF);var AgW;var FwE=_.R("web_button_rework")&&_.PX("BUTTON_REWORK")||_.R("web_button_rework_with_live"),oq=function(){var G=_.m.apply(this,arguments)||this;G.isPressed=!1;G.forceIconButton=!1;G.forceIconOnly=!1;G.forceModernIconButton=!1;G.skipCommandHandling=!1;G.alignByText=!1;G.fitToVisibleBounds=!0;G.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};G.onTap=function(e){_.xy(G.hostElement,"yt-service-request-sent-button-renderer",e)};
return G};
_.K(oq,_.m);_.V=oq.prototype;_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.V.onClick=function(G){var e,r=this.disabled||((e=this.data)==null?void 0:e.isDisabled);e=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");r&&e&&G.stopPropagation()};
_.V.computeIcon=function(){var G,e,r=(G=this.data)==null?void 0:(e=G.icon)==null?void 0:e.iconType;if(r)return _.Ne(r)};
_.V.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.V.handleUpdateButtonAction=function(G){G=_.a(G,U4y);var e=_.a(G==null?void 0:G.updatedButton,_.zM);if(this.data&&G&&e){var r=this.data;r.targetId&&G.targetId&&r.targetId===G.targetId&&(this.data=e)}};
_.iY.Object.defineProperties(oq.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var G=this;if(this.data){var e=LsN({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.xy(G.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.xy(G.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}}}});
_.iY.Object.defineProperties(oq,{template:{configurable:!0,enumerable:!0,get:function(){if(AgW===void 0){var G=document.createElement("template");_.f(G,'\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>');AgW=G}G=AgW;return G}}});
oq.prototype.onClick=oq.prototype.onClick;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],oq.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],oq.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],oq.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],oq.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],oq.prototype,"isPressed",void 0);
_.B([_.n(),_.x("design:type",Object)],oq.prototype,"forceIconButton",void 0);_.B([_.n(),_.x("design:type",Object)],oq.prototype,"forceIconOnly",void 0);_.B([_.n(),_.x("design:type",Object)],oq.prototype,"forceModernIconButton",void 0);_.B([_.n(),_.x("design:type",Object)],oq.prototype,"skipCommandHandling",void 0);_.B([_.n(),_.x("design:type",Object)],oq.prototype,"alignByText",void 0);_.B([_.n(),_.x("design:type",Object)],oq.prototype,"buttonTooltipPosition",void 0);
_.B([_.n(),_.x("design:type",Object)],oq.prototype,"fitToVisibleBounds",void 0);_.B([_.n({computed:"computeTooltip(data)"}),_.x("design:type",Object)],oq.prototype,"tooltip",void 0);_.B([_.n(),_.x("design:type",Object)],oq.prototype,"overrides",void 0);_.B([_.n(),_.x("design:type",Boolean)],oq.prototype,"disabled",void 0);_.B([_.Om("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],oq.prototype,"onClick",null);
_.B([_.d("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.x("design:type",Object),_.x("design:paramtypes",[])],oq.prototype,"computedButtonShape",null);_.B([_.aR({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!FwE,cssBuildOptOut:!0}),_.aR({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!FwE,cssBuildOptOut:!0})],oq);var Jgl;var B3y;var sD=function(){var G=_.m.apply(this,arguments)||this;G.empty_=!0;G.loadTime=Infinity;G.pendingPaint=!1;G.hasChange_=!1;G.oldThumbnail_=null;G.oldDelayedSrc_="";G.objectURL_=null;return G};
_.K(sD,_.m);_.V=sD.prototype;_.V.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.V.ready=function(){var G=this.shouldShowPlaceholder_();_.Nv(this.hostElement,"no-transition",!0);G&&this.hostElement.classList.add("with-placeholder")};
_.V.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.V.isThumbPreloaded_=function(G){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",G)};
_.V.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||xFy};
_.V.computeThumbnailSrc_=function(G){return G&&G.thumbnails?_.BQ(G.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.V.computeAlt_=function(){var G=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&G||""};
_.V.thumbnailChanged_=function(){var G=_.h([this.thumbnail,this.oldThumbnail_]),e=G.next().value;G=G.next().value;this.oldThumbnail_=e;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(G=this.computeThumbnailSrc_(G),this.computeThumbnailSrc_(e)===G))return;_.R("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(e)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):e&&_.PX("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.DE(this,this.onReload_):_.DE(this,this.onShow_):this.resetImage_();e&&(this.hostElement.style.opacity=""+e.opacity)}};
_.V.delayedSrcChanged_=function(){var G=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===G||this.resetImage_()};
_.V.setSrc_=function(G){G?(_.z1(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.z1(this.hostElement).querySelector("#img").src=G):(_.z1(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.V.resetImage_=function(){GNN(this.hostElement);this.empty_=!0;this.setSrc_(xFy);this.ytRendererBehavior.invalidate(!1)};
_.V.observePlaceholderColor_=function(){var G=this.thumbnail&&this.thumbnail.placeholderColor;G?this.hostElement.style.backgroundColor=_.RB(G):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.V.onLoad_=function(){_.z1(this.hostElement).querySelector("#img").src&&_.z1(this.hostElement).querySelector("#img").src!==xFy&&(Lb_(this.hostElement),this.notifyOnLoaded&&_.xy(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.V.onError_=function(){var G=this;if(_.R("web_use_cache_for_image_fallback"))hli(_.z1(this.hostElement).querySelector("#img").src).then(function(e){G.objectURL_=_.Jt(e).toString();G.setSrc_(G.objectURL_)}).catch(function(){_.R("kevlar_woffle_fallback_image")&&G.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.V.onPrescanVisible=function(){this.onShow_()};
_.V.onVisible=function(){if(_.R("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.V.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var G=this.computeSrc_();G!==_.z1(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(G))}};
_.V.onReload_=function(){this.empty_=!1;var G=this.computeSrc_();G!==_.z1(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(G))};
_.V.shouldShowPlaceholder_=function(){return _.R("kevlar_thumbnail_bg")};
sD.prototype.observePlaceholderColor_=sD.prototype.observePlaceholderColor_;sD.prototype.delayedSrcChanged_=sD.prototype.delayedSrcChanged_;sD.prototype.thumbnailChanged_=sD.prototype.thumbnailChanged_;_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],sD.prototype,"alt",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],sD.prototype,"ariaHidden",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],sD.prototype,"ariaLabel",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],sD.prototype,"hidden",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],sD.prototype,"id",void 0);_.B([_.k(_.xB.YtVisibilityBehavior),_.x("design:type",Object)],sD.prototype,"ytVisibilityBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],sD.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",String)],sD.prototype,"delayedSrc",void 0);
_.B([_.n(),_.x("design:type",Object)],sD.prototype,"thumbnail",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],sD.prototype,"loaded",void 0);_.B([_.n(),_.x("design:type",Boolean)],sD.prototype,"notifyOnLoaded",void 0);_.B([_.n(),_.x("design:type",Number)],sD.prototype,"height",void 0);_.B([_.n(),_.x("design:type",Number)],sD.prototype,"width",void 0);_.B([_.n({value:function(){return"width"}}),
_.x("design:type",String)],sD.prototype,"dimension",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],sD.prototype,"fit",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],sD.prototype,"fitHeight",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],sD.prototype,"fitWidth",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],sD.prototype,"objectFit",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],sD.prototype,"objectPosition",void 0);_.B([_.n(),_.x("design:type",String)],sD.prototype,"preferredThumbnail",void 0);_.B([_.n({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.x("design:type",String)],sD.prototype,"alt_",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],sD.prototype,"sharedTooltipText",void 0);
_.B([_.n(),_.x("design:type",Boolean)],sD.prototype,"ftlEligible",void 0);_.B([_.n({value:void 0}),_.x("design:type",String)],sD.prototype,"observeHiddenOption",void 0);_.B([_.n({value:"observe_once"}),_.x("design:type",String)],sD.prototype,"observePrescanOption",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],sD.prototype,"roundedContainer",void 0);
_.B([_.iD("thumbnail"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sD.prototype,"thumbnailChanged_",null);_.B([_.iD("delayedSrc"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sD.prototype,"delayedSrcChanged_",null);_.B([_.Me("thumbnail.placeholderColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sD.prototype,"observePlaceholderColor_",null);
_.B([_.aR({is:"yt-img-shadow",disableElementRegistration:!0})],sD);var xFy=_.PX("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.xP()(sD,"yt-img-shadow",function(){if(B3y===void 0){var G=document.createElement("template");_.f(G,'\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">');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;Jgl===void 0&&(Jgl=document.createElement("template"));var Z=Jgl;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);B3y=G}G=B3y;return G},{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 MNU;_.Qf=new _.Gz("SCREEN_MANAGER_TOKEN");MNU=new _.Gz("LOG_INITIAL_SCREEN_TOKEN");var PvE=lZ({entities:{}});_.Iq=RV(PvE)(PvE.entities,{selectSfvAudioItemPlaybackState:function(G,e){var r,Z;G=(Z=_.e6(G,"sfvAudioItemCurrentlyPlayingEntity",e))!=null?Z:void 0;return(r=G==null?void 0:G.sfvAudioItemPlaybackState)!=null?r:void 0},
playlistLoopStateEntitySelector:rz_,toggleMenuServiceItemEntitySelector:ZqS});_.pb=_.y(function(G){function e(e$){return _.a(e$,_.G$)}
function r(){var e$=Z().isTogglingDisabled||H()&&Z().toggledIsTogglingDisabled,Dq=e$||g()?H():!H();I(Dq);u(!1);if(!e$){var bF;(bF=T)==null||bF(!!Dq)}var Kf;((Kf=M)==null?0:Kf())||_.ke(_.v_().resolve(_.Qf),Z().trackingParams);var ti;if(!Dq||!e(Z().defaultButtonViewModel)||(ti=M)!=null&&ti()){var Ry;!e(Z().toggledButtonViewModel)||((Ry=M)==null?0:Ry())||_.ke(_.v_().resolve(_.Qf),e(Z().toggledButtonViewModel).trackingParams)}else _.ke(_.v_().resolve(_.Qf),e(Z().defaultButtonViewModel).trackingParams)}
var Z=G.data,O=G.buttonShapeOverrides,M=G.disableExplicitClickLogging,T=G.onToggle,E=G.style,b=G.useOutlinedIcon,w=G.className,q=function(){var e$,Dq;return H()?(e$=G.animatedTextPropsToggled)==null?void 0:e$.call(G):(Dq=G.animatedTextPropsDefault)==null?void 0:Dq.call(G)},t=_.dw(function(){return q()?Object.assign({},q(),{shouldAnimate:C()}):void 0},void 0,"Zp4uoe"),g=function(){var e$;
return((e$=J())==null?void 0:e$.isToggled)!==void 0},l=_.h(_.Ob(function(){var e$,Dq,bF;
return g()?(e$=J())==null?void 0:e$.isToggled:(bF=O==null?void 0:(Dq=O())==null?void 0:Dq.toggled)!=null?bF:Z().isToggled})),X=l.next().value;
l=l.next().value;var H=X,I=l;l=_.h(_.Ob(function(){var e$,Dq;return(e$=G.animatedTextPropsToggled)==null?void 0:(Dq=e$.call(G))==null?void 0:Dq.shouldAnimate}));
X=l.next().value;l=l.next().value;var C=X,u=l;X=_.h(_.XQ(!1,void 0,"mq3Zfe"));var P=X.next().value,F=X.next().value,J=_.Eb(function(e$){a:{var Dq=Z().entityKey,bF=Z().toggledStateEntitySelectorType;if(bF)switch(bF){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!Dq)break;e$=_.Iq.selectSfvAudioItemPlaybackState(e$,Dq);if(e$==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){e$={isToggled:!0};break a}if(e$){e$={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":e$=
{isToggled:_.Vl$(e$).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":e$={isToggled:_.Vl$(e$).includes("engagement-panel-live-chat-item-section")};break a;default:_.FH(new _.Cr("Error: entitySelectorType defined but not matched in selector.",e$,bF))}e$=void 0}return e$}),U=function(){return Object.assign({},O==null?void 0:O(),{onToggle:r,
toggleable:!0,toggled:H(),focused:P()})};
return _.v("toggle-button-view-model",{"on:focusin":_.ev(function(){var e$=_.v_().resolve(_.bq(_.T6));e$&&F(e$.isKeyBoardInUse());return!1}),
"on:focusout":_.ev(function(){F(!1);return!1})},_.v(_.S,{cond:function(){return H()?e(Z().toggledButtonViewModel):e(Z().defaultButtonViewModel)},
then:function(e$){return _.v(_.wF,{data:e$,className:w,style:E,useOutlinedIcon:b,buttonOverrides:U,animatedTextProps:t})}}))},"ca");
_.pb.idomCompat={callbacks:{onToggle:!0}};_.J_(_.y(function(G){return _.v("yt-toggle-button-view-model",{class:function(){var e;return(e=G.scopingClassName)==null?void 0:e.call(G)}},_.v(_.pb,{data:function(){var e;
return(e=G.data)==null?void 0:e.call(G)},
buttonShapeOverrides:function(){var e;return(e=G.overrides)==null?void 0:e.call(G)},
animatedTextPropsDefault:function(){var e;return(e=G.animatedTextPropsDefault)==null?void 0:e.call(G)},
animatedTextPropsToggled:function(){var e;return(e=G.animatedTextPropsToggled)==null?void 0:e.call(G)},
disableExplicitClickLogging:function(){var e;return(e=G.disableExplicitClickLogging)==null?void 0:e.call(G)},
onToggle:function(e){var r;return(r=G.onToggle)==null?void 0:r.call(G,e)},
style:function(){var e;return(e=G.style)==null?void 0:e.call(G)},
useOutlinedIcon:function(){var e;return(e=G.useOutlinedIcon)==null?void 0:e.call(G)},
className:function(){var e;return(e=G.className)==null?void 0:e.call(G)}}))},"da"),"yt-toggle-button-view-model",{props:{data:_.N6,
buttonShapeOverrides:_.N6,overrides:_.N6,animatedTextPropsDefault:_.N6,animatedTextPropsToggled:_.N6,disableExplicitClickLogging:_.N6,onToggle:_.yb,style:_.N6,useOutlinedIcon:_.N6,className:_.N6,scopingClassName:_.N6}});var Cb=function(){return _.m.apply(this,arguments)||this};
_.K(Cb,_.m);Cb.prototype.onTap=function(G){G.stopPropagation();G=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.g7("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:G})):this.ytLiveChatReduxBehavior.dispatch(_.bt("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:G}))};
_.iY.Object.defineProperties(Cb.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.engagementState)==null?void 0:G.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var G=_.a(this.data.toggleButton,_.rq),e;if(Number(((e=this.likeCountState)==null?void 0:e.likeCountIfIndifferentNumber)||"0")===0){var r;e=((r=this.data.likeCountPlaceholder)==null?void 0:r.content)||""}else{var Z,O,M;e=((Z=this.likeCountState)==null?void 0:(O=Z.likeCountIfIndifferent)==null?void 0:O.content)||((M=this.data.likeCountPlaceholder)==null?void 0:M.content)||""}var T,E;r=((T=this.likeCountState)==null?void 0:(E=
T.likeCountIfLiked)==null?void 0:E.content)||"1";T=_.a(G.toggledButtonViewModel,_.G$);return Object.assign({},G,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.a(G.defaultButtonViewModel,_.G$),{title:e})},toggledButtonViewModel:{buttonViewModel:Object.assign({},T,{title:r})}})}}}});
Cb.prototype.onTap=Cb.prototype.onTap;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Cb.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Cb.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.y9),_.x("design:type",Object)],Cb.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Cb.prototype,"data",void 0);
_.B([_.n({selectorArgs:["data.likeCountEntityKey"],selector:hWS}),_.x("design:type",Object)],Cb.prototype,"likeCountState",void 0);_.B([_.n({selectorArgs:["data.engagementStateKey"],selector:$TS}),_.x("design:type",Object)],Cb.prototype,"engagementState",void 0);_.B([_.d("data","engagementState"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Cb.prototype,"isLiked",null);
_.B([_.d("data","likeCountState","isLiked"),_.x("design:type",Object),_.x("design:paramtypes",[])],Cb.prototype,"toggleButton",null);_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Cb.prototype,"onTap",null);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],Cb);
_.A(Cb,"yt-live-chat-like-button-view-model",function(){if(WbE===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;zSw===void 0&&(zSw=document.createElement("template"));var Z=zSw;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);WbE=G}G=WbE;return G},{mode:0});var UFn;var zlj;var uO=function(){return _.m.apply(this,arguments)||this};
_.K(uO,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],uO.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],uO.prototype,"data",void 0);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],uO);
_.A(uO,"yt-live-chat-paid-message-footer-renderer",function(){if(zlj===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;UFn===void 0&&(UFn=document.createElement("template"));var Z=UFn;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);zlj=G}G=zlj;return G},{mode:0});var Wwb;var N3W;var Lwc;var GOC,e4l=function(){if(GOC!==void 0)return GOC;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;Lwc===void 0&&(Lwc=document.createElement("template"));var Z=Lwc;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return GOC=G};var nb=function(){return _.m.apply(this,arguments)||this};
_.K(nb,_.m);nb.prototype.onTap=function(G){G.stopPropagation()};
_.iY.Object.defineProperties(nb.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var G=_.a(this.data.replyButton,_.G$),e,r,Z,O,M,T,E,b=Number(((e=this.replyCountState)==null?void 0:e.replyCountNumber)||"0")===0?(r=this.data)==null?void 0:(Z=r.replyCountPlaceholder)==null?void 0:Z.content:((O=this.replyCountState)==null?void 0:(M=O.replyCount)==null?void 0:M.content)||((T=this.data)==null?void 0:(E=T.replyCountPlaceholder)==null?void 0:E.content)||"",w;return Object.assign({},
G,{title:b,accessibilityText:(w=this.replyCountState)==null?void 0:w.replyButtonAccessibilityText})}}}});
_.iY.Object.defineProperties(nb,{template:{configurable:!0,enumerable:!0,get:function(){return e4l()}}});
nb.prototype.onTap=nb.prototype.onTap;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],nb.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],nb.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.y9),_.x("design:type",Object)],nb.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],nb.prototype,"data",void 0);
_.B([_.n({selectorArgs:["data.replyCountEntityKey"],selector:function(G,e){return _.e6(G.entities,"replyCountEntity",e)}}),
_.x("design:type",Object)],nb.prototype,"replyCountState",void 0);_.B([_.d("data","replyCountState"),_.x("design:type",Object),_.x("design:paramtypes",[])],nb.prototype,"buttonViewModel",null);_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],nb.prototype,"onTap",null);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],nb);_.A(nb,"yt-live-chat-reply-button-view-model",function(){return e4l()},{mode:0});var ruW;var Z8b;var mc=function(){var G=_.m.apply(this,arguments)||this;G.ariaLabel="";return G};
_.K(mc,_.m);
mc.prototype.dataChanged=function(){for(var G=(0,_.Go)(_.z1(this.hostElement).querySelector("#image"));G.firstChild;)G.removeChild(G.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();G.appendChild(e)}else if(this.data.customThumbnail){e=document.createElement("img");
var r=_.Bup(this.data.customThumbnail.thumbnails,16);r?(e.src=r,G.appendChild(e),e.setAttribute("alt",this.hostElement.ariaLabel||"")):_.FH(new _.Cr("Could not compute URL for thumbnail",this.data.customThumbnail))}};
mc.prototype.identity=function(G){return G};
mc.prototype.computeType=function(G){return Um(G||void 0)};
mc.prototype.dataChanged=mc.prototype.dataChanged;_.B([_.n(),_.x("design:type",Object)],mc.prototype,"data",void 0);_.B([_.n({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.x("design:type",Object)],mc.prototype,"ariaLabel",void 0);_.B([_.n({computed:"computeType(data)",reflectToAttribute:!0}),_.x("design:type",String)],mc.prototype,"type",void 0);
_.B([_.n({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.x("design:type",String)],mc.prototype,"sharedTooltipText",void 0);_.B([_.n({reflectToAttribute:!0,value:function(){return _.R("live_chat_enable_new_moderator_badge")}}),
_.x("design:type",Boolean)],mc.prototype,"enableNewModeratorBadge",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mc.prototype,"dataChanged",null);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],mc);
_.A(mc,"yt-live-chat-author-badge-renderer",function(){if(Z8b===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;ruW===void 0&&(ruW=document.createElement("template"));var Z=ruW;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Z8b=G}G=Z8b;return G},{mode:0});var O8E;var M9C;var ck=function(){return _.m.apply(this,arguments)||this};
_.K(ck,_.m);_.V=ck.prototype;_.V.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"}}}}};
_.V.computeBadgesInsideChip=function(G){return G?G.filter(function(e){return Um(e.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.V.computeBadgesOutsideChip=function(G){return this.prependChatBadges||!G?[]:G.filter(function(e){e=Um(e.liveChatAuthorBadgeRenderer);return e!=="verified"&&e!=="owner"})};
_.V.computeBadgesBeforeChip=function(G){return this.prependChatBadges&&G?G.filter(function(e){e=Um(e.liveChatAuthorBadgeRenderer);return e!=="verified"&&e!=="owner"}):[]};
_.V.computeIsHighlighted=function(G,e){var r=!!byA(G,"owner"),Z=!!byA(G,"verified");G=!!byA(G,"moderator");return(r||Z&&!G)&&!e};
_.V.computeAuthorType=function(G){return iyU(G)};
_.V.computeAuthorClass=function(G,e){return e?(G?G+" ":"")+"single-line":G};
_.V.onSeedColorChanged=function(){_.R("live_chat_author_name_color_usernames")||_.R("live_chat_seed_color_usernames")||_.R("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):_.R("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
ck.prototype.onSeedColorChanged=ck.prototype.onSeedColorChanged;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],ck.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],ck.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ck.prototype,"authorName",void 0);_.B([_.n(),_.x("design:type",Array)],ck.prototype,"authorBadges",void 0);
_.B([_.n({computed:"computeAuthorType(authorBadges)"}),_.x("design:type",String)],ck.prototype,"authorType",void 0);_.B([_.n({computed:"computeAuthorClass(authorType, singleLine)"}),_.x("design:type",String)],ck.prototype,"authorClass",void 0);_.B([_.n({computed:"computeBadgesInsideChip(authorBadges)"}),_.x("design:type",Array)],ck.prototype,"badgesInsideChip",void 0);_.B([_.n({computed:"computeBadgesOutsideChip(authorBadges)"}),_.x("design:type",Array)],ck.prototype,"badgesOutsideChip",void 0);
_.B([_.n({computed:"computeBadgesBeforeChip(authorBadges)"}),_.x("design:type",Array)],ck.prototype,"badgesBeforeChip",void 0);_.B([_.n({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.x("design:type",Boolean)],ck.prototype,"isHighlighted",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],ck.prototype,"singleLine",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],ck.prototype,"disableHighlighting",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],ck.prototype,"dashboardMoneyFeed",void 0);_.B([_.n({value:_.R("live_chat_prepend_badges"),reflectToAttribute:!0}),_.x("design:type",Boolean)],ck.prototype,"prependChatBadges",void 0);_.B([_.n(),_.x("design:type",String)],ck.prototype,"authorNameColor",void 0);_.B([_.hs("#author-name"),_.x("design:type",HTMLDivElement)],ck.prototype,"username",void 0);
_.B([_.Me("authorNameColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ck.prototype,"onSeedColorChanged",null);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],ck);
_.A(ck,"yt-live-chat-author-chip",function(){if(M9C===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;O8E===void 0&&(O8E=document.createElement("template"));var Z=O8E;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);M9C=G}G=M9C;return G},{mode:0});var V9S;var h4v;var Y0=function(){var G=_.m.apply(this,arguments)||this;G.debounceCommand=_.lE(function(e){G.ytComponentBehavior.resolveCommand(e)},1500);
return G};
_.K(Y0,_.m);Y0.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var G=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",e,r,Z=this.isHearted?(e=this.data)==null?void 0:e.unheartCommand:(r=this.data)==null?void 0:r.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.g7("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:G}));(G=_.X0(Z))&&this.debounceCommand(G)}};
_.iY.Object.defineProperties(Y0.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var G,e;if(!((G=this.data)==null?0:(e=G.creatorThumbnail)==null?0:e.sources))return{};G={thumbnails:[]};e={};e.url=this.data.creatorThumbnail.sources[0].url;G.thumbnails.push(e);return G}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var G,e;return((G=this.engagementState)==null?void 0:G.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 G,e;return((G=this.engagementState)==null?void 0:G.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 G;return((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((e=this.engagementState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((r=this.engagementState)==null?void 0:r.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}}});
Y0.prototype.onTap=Y0.prototype.onTap;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Y0.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Y0.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.y9),_.x("design:type",Object)],Y0.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Y0.prototype,"data",void 0);
_.B([_.n({selectorArgs:["data.engagementStateKey"],selector:$TS}),_.x("design:type",Object)],Y0.prototype,"engagementState",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Y0.prototype,"thumbnailDetails",null);_.B([_.d("data","engagementState"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Y0.prototype,"isHearted",null);_.B([_.d("data","engagementState"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Y0.prototype,"isEditable",null);
_.B([_.d("data","engagementState"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Y0.prototype,"showCreatorView",null);_.B([_.d("data","engagementState"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Y0.prototype,"showButton",null);_.B([_.d("data","isHearted"),_.x("design:type",String),_.x("design:paramtypes",[])],Y0.prototype,"label",null);_.B([_.d("data","isHearted"),_.x("design:type",Object),_.x("design:paramtypes",[])],Y0.prototype,"heartHoverText",null);
_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Y0.prototype,"onTap",null);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],Y0);
_.A(Y0,"yt-live-chat-creator-heart-view-model",function(){if(h4v===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;V9S===void 0&&(V9S=document.createElement("template"));var Z=V9S;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);h4v=G}G=h4v;return G},{mode:0});var yf=function(G,e){this.serviceId=new bMj(G,e)};
yf.prototype.toString=function(){return this.serviceId.toString()};var TtS=function(){this.internalMap={}};
_.V=TtS.prototype;_.V.contains=function(G){return Object.prototype.hasOwnProperty.call(this.internalMap,G)};
_.V.get=function(G){if(this.contains(G))return this.internalMap[G]};
_.V.set=function(G,e){this.internalMap[G]=e};
_.V.getKeys=function(){return Object.keys(this.internalMap)};
_.V.remove=function(G){delete this.internalMap[G]};var A4=function(){this.mappings=new TtS;this.errorCallbacks=new Set};
A4.prototype.getModuleId=function(G){return G.serviceId.getModuleId()};
A4.prototype.get=function(G){var e=this.mappings.get(G.toString());return DTw(this,e,G)};
A4.prototype.getMultipleAsync=function(){var G=_.Bw.apply(0,arguments),e=this,r=G.map(function(b){return e.getModuleId(b)}),Z=G.map(function(b){return e.mappings.get(b.toString())}).filter(function(b){return b});
if(Z.length===G.length)return _.Nz(Z.map(function(b,w){return DTw(e,b,G[w])}));
var O=YW().loadMultiple(r);Z=_.KY(r.map(function(b){return O[b]}));
var M=document.hidden,T=-1,E=_.qt("get_async_timeout_ms",-1);E>-1&&(T=setTimeout(function(){_.FH(new _.Cr("Module timeout.",r,M,document.hidden))},E));
return _.fY(Z.then(function(){return G.map(function(b){return DTw(e,e.mappings.get(b.toString()),b)})}).thenCatch(function(b){for(var w=_.h(e.errorCallbacks),q=w.next();!q.done;q=w.next())q=q.value,q(b);
throw b;}),function(){clearTimeout(T)})};
A4.prototype.registerService=function(G,e){this.mappings.set(G.toString(),{type:"mapping",value:e});return G};
var DTw=function(G,e,r){switch(e.type){case "mapping":return e.value;case "factory":return e=e.value(),G.mappings.set(r.toString(),{type:"mapping",value:e}),e;default:return _.zC(e)}};
A4.prototype.onLoadError=function(G){var e=this;this.errorCallbacks.add(G);return function(){e.errorCallbacks.delete(G)}};
_.F3=new A4;var EFC=function(){};
_.V=EFC.prototype;
_.V.JSC$14171_getRequest=function(G,e,r){e=e===void 0?{}:e;r=r===void 0?SKW:r;var Z=e;if(this.isNavigationCommand()){var O,M=(O=_.a(G==null?void 0:G.commandMetadata,_.rJ))==null?void 0:O.url;Z=_.qUF(G.clickTrackingParams,!0,!1,M,this.JSC$14171_getClientScreen(Z))}else Z=_.qUF(G.clickTrackingParams,!1,this.includeCsn);Z={context:Z};if(O=this.getExtension(G))return this.JSC$14171_buildRequest(Z,O,e),O=this.getApiUrl(G),M=Object.assign({},{command:G},this.getRequestConfig(G,e)),Z={input:O,requestShell:pO(O),
innerTubeRequest:Z,config:M},Z.config.authStrategy?Z.config.authStrategy.identity=r:Z.config.authStrategy={identity:r},(G=this.JSC$14171_getRequestKey(G,e))&&!Z.config.requestKey&&(Z.config.requestKey=G),Z;G=new _.Cr("Error: Failed to create Request from Command.",G);_.yx(G)};
_.V.getApiUrl=function(G){var e=_.y4(this.getApiPaths(G)),r;(G=(r=_.a(G.commandMetadata,_.rJ))==null?void 0:r.apiUrl)&&(e=G);return y9f(Y4y(e))};
_.V.isNavigationCommand=function(){return!1};
_.V.JSC$14171_getClientScreen=function(){};
_.V.JSC$14171_getRequestKey=function(){};
_.V.getRequestConfig=function(){};
_.iY.Object.defineProperties(EFC.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var J4=function(){};
_.K(J4,EFC);J4.prototype.JSC$14178_getStoreKey=function(){};
J4.prototype.JSC$14171_getRequestKey=function(G,e){e=e===void 0?{}:e;return this.JSC$14178_getStoreKey(G,e)};var Bk=function(){};
_.K(Bk,J4);Bk.prototype.JSC$14171_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:pO("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
Bk.prototype.getApiPaths=function(){return[]};
Bk.prototype.getExtension=function(){};
Bk.prototype.JSC$14171_buildRequest=function(){};var i8E={},b8C=(i8E.GET_DATASYNC_IDS=kO(Bk),i8E);var vFE,w$C,$TC,R4W,x0,gFb,Sr3,t9n,qrl;vFE="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");w$C=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.Q$=function(G,e,r,Z,O,M,T,E,b){this.endpointMap=G;this.networkManager=e;this.authService=r;this.responseProcessorMap=Z;this.innertubeResponseStore=O;this.contextProcessors=M;this.asyncContextProcessors=T;this.localInnertubeRouter=E;this.requestSequencer=b;this.inflightRequests=new Map;G.signalEndpointMap||(G.signalEndpointMap={});G.signalEndpointMap=Object.assign({},b8C,G.signalEndpointMap)};
$TC=function(G,e,r,Z,O,M,T,E,b){if(_.Q$.instance!==void 0){if(Z=_.Q$.instance,G=[G!==Z.endpointMap,e!==Z.networkManager,r!==Z.authService,O!==Z.innertubeResponseStore,M!==Z.contextProcessors,T!==Z.asyncContextProcessors,E!==Z.localInnertubeRouter],G.some(function(w){return w}))throw new _.Cr("InnerTubeTransportService is already initialized",G);
}else _.Q$.instance=new _.Q$(G,e,r,Z,O,M,T,E,b)};
_.p1=function(G,e,r){var Z=Z===void 0?SKW:Z;var O=Sr3(G,e);return O?new _.aQ(function(M,T){var E,b,w,q,t;return _.D(function(g){switch(g.nextAddress){case 1:return g.yield(O,2);case 2:E=g.yieldResult;b=E.JSC$14171_getRequest(e,r,Z);if(!b){T(new _.Cr("Error: Failed to build request for command.",e));g.jumpTo(0);break}fa(b.input);q=((w=b.requestShell)==null?void 0:w.mode)==="cors"?"cors":void 0;if(G.authService.syncHeaders){t=qrl(b.config,q);g.jumpTo(4);break}return g.yield(t9n(b.config,q),5);case 5:t=
g.yieldResult;case 4:M(gFb(G,b,t)),_.HL(g)}})}):_.Ss(new _.Cr("Error: No request builder found for command.",e))};
R4W=function(G,e,r,Z){var O=O===void 0?SKW:O;var M,T,E,b,w,q,t,g,l,X,H,I,C,u,P,F,J,U;return _.D(function(e$){switch(e$.nextAddress){case 1:M=iqf(e,G.endpointMap);if(!M)throw new _.Cr("Error: No streaming request builder found for command",e);T=M.JSC$14171_getRequest(e,r,O);if(!T)throw new _.Cr("Failed to build YtRequest for streaming Command",e);if((E=G.localInnertubeRouter)==null||!E.shouldPreferLocalResponse(T.input,T.innerTubeRequest)){e$.jumpTo(2);break}return e$.yield(G.localInnertubeRouter.localInnertubeResponse(T.input,
T.innerTubeRequest),3);case 3:return b=e$.yieldResult,w={},b.playerResponse&&(x0(G,b.playerResponse,T),w.player=b.playerResponse,(q=Z)==null||q(w,b)),b.watchNextResponse&&(x0(G,b.watchNextResponse,T),w.content=b.watchNextResponse,(t=Z)==null||t(w,b)),e$.return(w);case 2:l=((g=T.requestShell)==null?void 0:g.mode)==="cors"?"cors":void 0;if(G.authService.syncHeaders){X=qrl(T.config,l);e$.jumpTo(4);break}return e$.yield(t9n(T.config,l),5);case 5:X=e$.yieldResult;case 4:return C=(I=(H=T.requestShell)==
null?void 0:H.headers)!=null?I:{},T.requestShell=Object.assign({},T.requestShell,{headers:Object.assign({},C,X)}),u=Object.assign({},T.requestShell),P=JSON.stringify(T.innerTubeRequest),T.requestShell.method==="POST"&&(u=Object.assign({},u,{body:P})),F=function(Dq,bF){x0(G,bF.playerResponse||bF.watchNextResponse||bF.reelItemWatchResponse||bF.reelWatchSequenceResponse,T);Z==null||Z(Dq,bF)},J={},e$.yield(l1w(G.networkManager,T.input,u,F),6);
case 6:return J=e$.yieldResult,((U=T.config)==null?0:U.responseTick)&&_.jq(T.config.responseTick),e$.return(J)}})};
_.LE=function(G,e,r,Z,O){O=O===void 0?{authStrategy:{identity:SKW}}:O;var M=M===void 0?!0:M;var T=function(){};
T=G$p(NQi(r));e.context||(e.context=_.qUF(Z,M));return new _.aQ(function(E){var b,w,q,t,g;return _.D(function(l){if(l.nextAddress==1)return b=Y4y(r),w=_.Ip(b),G.authService.syncHeaders?(q=qrl(O,w),l.jumpTo(2)):l.yield(t9n(O,w),3);l.nextAddress!=2&&(q=l.yieldResult);t=y9f(Y4y(r));g={input:t,requestShell:pO(t),innerTubeRequest:e,config:O};E(gFb(G,g,q,T));_.HL(l)})})};
x0=function(G,e,r){var Z;if(e&&!(e==null?0:(Z=e.sequenceMetaData)==null?0:Z.skipProcessing)&&G.responseProcessorMap){Z=_.h(vFE);for(var O=Z.next();!O.done;O=Z.next())O=O.value,G.responseProcessorMap[O]&&G.responseProcessorMap[O].handleResponse(e,r)}};
gFb=function(G,e,r,Z){Z=Z===void 0?function(){}:Z;
var O,M,T,E,b,w,q,t,g,l,X,H,I,C,u,P,F,J,U,e$,Dq,bF,Kf,ti,Ry,nf,k4,SE,Fn,kw,Lf,vc,IW,Hc,a8,t2,hi,rj,tS,OV;return _.D(function(RW){switch(RW.nextAddress){case 1:T=(O=e.config)==null?void 0:(M=O.storeStrategy)==null?void 0:M.storeKey;if(!(T&&G.innertubeResponseStore&&G.innertubeResponseStore.has(T))||((E=e.config)==null?0:(b=E.storeStrategy)==null?0:b.disableCache)){RW.jumpTo(2);break}return RW.yield(G.innertubeResponseStore.get(T),3);case 3:if((w=RW.yieldResult)&&!w.isExpired())return RW.return(Promise.resolve(_.AZ(w)));
case 2:if(!((q=e)==null?0:(t=q.innerTubeRequest)==null?0:t.context)){RW.jumpTo(4);break}g=e.innerTubeRequest.context;if(!(G.asyncContextProcessors&&G.asyncContextProcessors.length>0)){RW.jumpTo(5);break}l=[];X=_.h(G.asyncContextProcessors);for(H=X.next();!H.done;H=X.next())I=H.value,C=I.processContext(e),C.wrappedPromise_&&l.push(C.wrappedPromise_);if(!(l.length>0)){RW.jumpTo(5);break}return RW.yield(Promise.all(l),5);case 5:u=_.h(G.contextProcessors||[]),P=u.next();case 8:if(P.done){RW.jumpTo(4);
break}F=P.value;return RW.yield(F.processContext(g),9);case 9:P=u.next();RW.jumpTo(8);break;case 4:if((J=G.localInnertubeRouter)==null||!J.shouldPreferLocalResponse(e.input,e.innerTubeRequest)){RW.jumpTo(12);break}return RW.yield(G.localInnertubeRouter.localInnertubeResponse(e.input,e.innerTubeRequest),13);case 13:return U=RW.yieldResult,x0(G,U,e),RW.return(U);case 12:return(bF=(Dq=e.config)==null?void 0:Dq.requestKey)&&G.inflightRequests.has(bF)?e$=G.inflightRequests.get(bF):(Kf=JSON.stringify(e.innerTubeRequest),
nf=(Ry=(ti=e.requestShell)==null?void 0:ti.headers)!=null?Ry:{},e.requestShell=Object.assign({},e.requestShell,{headers:Object.assign({},nf,r)}),k4=Object.assign({},e.requestShell),e.requestShell.method==="POST"&&(k4=Object.assign({},k4,{body:Kf})),((SE=e.config)==null?0:SE.requestTick)&&_.jq(e.config.requestTick),Fn=function(){return G.networkManager.fetch(e.input,k4,e.config)},e$=G.requestSequencer?jKb(G.requestSequencer,e,Fn):Fn(),bF&&G.inflightRequests.set(bF,e$)),RW.yield(e$,14);
case 14:(kw=RW.yieldResult)&&_.R("web_streaming_player")&&Array.isArray(kw)&&(kw=kw[0].playerResponse);if(kw&&"error"in kw&&((Lf=kw)==null?0:(vc=Lf.error)==null?0:vc.details))for(IW=kw.error.details,Hc=_.h(IW),a8=Hc.next();!a8.done;a8=Hc.next())t2=a8.value,(hi=t2["@type"])&&w$C.indexOf(hi)>-1&&(delete t2["@type"],kw=t2);bF&&G.inflightRequests.has(bF)&&G.inflightRequests.delete(bF);((rj=e.config)==null?0:rj.responseTick)&&_.jq(e.config.responseTick);if(kw||(tS=G.localInnertubeRouter)==null||!tS.canProvideFallbackResponse(e.input,
e.innerTubeRequest)){RW.jumpTo(15);break}return RW.yield(G.localInnertubeRouter.localFallbackInnertubeResponse(e.input,e.innerTubeRequest),16);case 16:kw=RW.yieldResult;case 15:return x0(G,kw,e),((OV=e.config)==null?0:OV.processorTick)&&_.jq(e.config.processorTick),Z(),RW.return(kw||void 0)}})};
_.IV=function(G,e){return EoU(e,G.endpointMap)};
Sr3=function(G,e){G=bq$(e,G.endpointMap);if(G!==void 0)return Promise.resolve(G)};
t9n=function(G,e){var r,Z,O,M;return _.D(function(T){if(T.nextAddress==1){O=(r=G)==null?void 0:(Z=r.authStrategy)==null?void 0:Z.sessionIndex;var E=T.yield;var b=_.Nz(PwF({sessionIndex:O}));return E.call(T,b,2)}M=T.yieldResult;return T.return(Promise.resolve(Object.assign({},vop(e),M)))})};
qrl=function(G,e){var r;G=G==null?void 0:(r=G.authStrategy)==null?void 0:r.sessionIndex;r=PwF({sessionIndex:G});return Object.assign({},vop(e),r)};var a1E,X$w,KsC,f13,kOW,H8j,sKS,QKy,z6,I1S,p$E,oFc,CVc;a1E=0;X$w=/tone[1-5]/;KsC=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");f13="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
kOW=Number.MAX_SAFE_INTEGER;H8j=RegExp("\ufe0f","g");_.Pk=function(G){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;G&&_.dTy(this,G)};
_.dTy=function(G,e){try{_.fr(e,{context:G,onSuccess:function(Z,O){Array.isArray(O)?G.load(O):(Z=new _.Cr("Emoji manager JSON response was not an array!",{response:O}),_.yx(Z))},
onError:function(Z){Z=new _.Cr("Failed to retrieve emoji manager initial JSON data!",{url:e,statusCode:_.lq(Z).toString()});_.FH(Z)}})}catch(Z){var r=new _.Cr("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:e});
_.FH(r)}};
_.Pk.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.Pk.prototype.load=function(G,e){if(e)if(G.length)G=G.concat(e.emojis);else{this.emojis=e.emojis;this.emojiMap=e.emojiMap;this.emojiShortcutMap=e.emojiShortcutMap;this.emojiShortcutCharMap=oFc(e);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=e.emojiRegex;return}this.emojis=[].concat(_.mY(new Set(this.emojis.concat(G))));this.hasInitializedShortcutCharMap=!1;G=Array(this.emojis.length);for(e=0;e<this.emojis.length;e++){var r=this.emojis[e];if(r.emojiId){this.emojiMap[r.emojiId]=r;this.emojiMap[r.emojiId].index=
e;for(var Z=0;r.shortcuts&&Z<r.shortcuts.length;Z++)this.emojiShortcutMap[r.shortcuts[Z].toLocaleLowerCase()]=r;G[e]=r.isCustomEmoji&&r.shortcuts?r.shortcuts[0]:r.emojiId}}G.sort(function(O,M){return M.length-O.length});
if(G.length)try{this.emojiRegex=new RegExp(G.join("|").replace("*","\\*"),"gi")}catch(O){this.emojiRegex=/$./}else this.emojiRegex=/$./};
sKS=function(G,e){e=_.h(e);for(var r=e.next();!r.done;r=e.next()){var Z=r.value;if(Z.emojiId&&G.emojiMap[Z.emojiId]){r=Object.assign({},G.emojiMap[Z.emojiId],Z);G.emojiMap[Z.emojiId]=r;var O=void 0;r.index&&((O=G.emojis[r.index])==null?void 0:O.emojiId)===Z.emojiId&&(G.emojis[r.index]=r);Z=void 0;if((Z=r.shortcuts)==null?0:Z.length)for(G.hasInitializedShortcutCharMap=!1,Z=_.h(r.shortcuts),O=Z.next();!O.done;O=Z.next())G.emojiShortcutMap[O.value.toLocaleLowerCase()]=r}}};
QKy=function(G){var e,r;_.D(function(Z){if(Z.nextAddress==1)return Z.yield(_.Ye.getInstance(),2);if(Z.nextAddress!=3)return(e=Z.yieldResult)?Z.yield(e.get("ytlc-emoji-pref"),3):Z.return();(r=Z.yieldResult)&&sKS(G,Object.keys(r).map(function(O){return{emojiId:O,stickyPrefId:r[O]}}).filter(function(O){return!!O.emojiId&&!!O.stickyPrefId}));
_.HL(Z)})};
_.UD=function(G,e,r){return(G=G.emojiMap[e])&&(!G.isLocked||r!==void 0&&r)?G:void 0};
z6=function(G,e,r){r=_.UD(G,e,r===void 0?!1:r);var Z=e.match("\u200d");r&&G.skinTone!==0&&(G=(Z==null?void 0:Z.length)===1?_.UD(G,e.replace("\u200d",KsC[G.skinTone]+"\u200d")):_.UD(G,e+KsC[G.skinTone]))&&(r=G);return r};
I1S=function(G,e){var r=G.emojiMap[e];return(r==null?0:r.stickyPrefId)?G.emojiMap[r.stickyPrefId]:z6(G,e)};
_.Pe=function(G,e){G=G.emojiShortcutMap[e.toLocaleLowerCase()];return!G||G.isLocked?null:G};
p$E=function(G,e,r){return oFc(G,r===void 0?!1:r)[e]||{}};
oFc=function(G,e){e=e===void 0?!1:e;if(!G.hasInitializedShortcutCharMap){G.hasInitializedShortcutCharMap=!0;for(var r=0;r<G.emojis.length;r++){var Z=G.emojis[r];if(!(Z.isLocked||e&&Z.isCustomEmoji&&Z.emojiId&&!G.pickerCustomEmojiIds.includes(Z.emojiId)))for(var O=0;Z.shortcuts&&O<Z.shortcuts.length;O++){var M=Z.shortcuts[O];M.startsWith(":_")&&Z.isCustomEmoji&&(G.emojiShortcutCharMap[":_"]==null&&(G.emojiShortcutCharMap[":_"]=Object.create(null)),G.emojiShortcutCharMap[":_"][M]=Z);if(!(M.length<3||
!Z.isCustomEmoji&&X$w.test(M))){var T=M.substr(0,3).toLocaleLowerCase();G.emojiShortcutCharMap[T]==null&&(G.emojiShortcutCharMap[T]=Object.create(null));G.emojiShortcutCharMap[T][M]=Z}}}}return G.emojiShortcutCharMap};
_.Pk.prototype.createEmoji=function(G,e){e=e===void 0?!0:e;var r=document.createElement("img");G.isCustomEmoji||r.classList.add("small-emoji");r.classList.add("emoji");r.classList.add("yt-formatted-string");r.src=G.image?_.BQ(G.image.thumbnails,this.emojiSize)||"":"";var Z=void 0;G.image&&G.image.accessibility&&G.image.accessibility.accessibilityData&&(Z=G.image.accessibility.accessibilityData.label);r.alt=Z?Z:(G.isCustomEmoji&&G.shortcuts?G.shortcuts[0]:G.emojiId)||"";G.isCustomEmoji&&(r.dataset.emojiId=
G.emojiId);_.zx&&(r.setAttribute("contenteditable","false"),r.setAttribute("unselectable","on"));e&&(G.shortcuts&&G.shortcuts.length&&r.setAttribute("shared-tooltip-text",G.shortcuts[0]),r.id="emoji-"+a1E++);return r};
_.Pk.prototype.createDocumentFragment=function(G,e,r,Z){e=e===void 0?!1:e;r=r===void 0?!0:r;Z=Z===void 0?!1:Z;G=G.replace(H8j,"");for(var O=document.createDocumentFragment(),M=0,T,E=0;(T=this.emojiRegex.exec(G))!=null;){var b=_.UD(this,T[0])||_.Pe(this,T[0]);!b||b.isCustomEmoji&&!e||(b=this.createEmoji(b,r),M!==T.index&&O.appendChild(document.createTextNode(G.substring(M,T.index))),O.appendChild(b),M=T.index+T[0].length,E++)}if(!Z||E)return O.appendChild(document.createTextNode(G.substr(M))),O};
CVc=function(G,e,r){var Z,O,M,T,E,b,w,q,t;return _.D(function(g){if(g.nextAddress==1){if(!e.emojiId||!G.emojiMap[e.emojiId])return g.return();Z=Object.assign({},G.emojiMap[e.emojiId],{stickyPrefId:r});G.emojiMap[e.emojiId]=Z;e.index&&((O=G.emojis[e.index])==null?void 0:O.emojiId)===e.emojiId&&(G.emojis[e.index]=Z);if((M=e.shortcuts)==null?0:M.length)for(G.hasInitializedShortcutCharMap=!1,T=_.h(e.shortcuts),E=T.next();!E.done;E=T.next())b=E.value,G.emojiShortcutMap[b.toLocaleLowerCase()]=Z;return g.yield(_.Ye.getInstance(),
2)}if(g.nextAddress!=4)return(w=g.yieldResult)?g.yield(w.get("ytlc-emoji-pref"),4):g.jumpTo(0);t=(q=g.yieldResult)!=null?q:{};t[e.emojiId]=r;return g.yield(w.set("ytlc-emoji-pref",t,kOW),0)})};
_.Wk=new _.Pk;var mTW;_.NG={};
mTW={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.R("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:_.R("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 uw(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 G=_.z1(this.hostElement||this).querySelector("#inline-action-button-container");G&&G.setAttribute("aria-hidden","true");this.menuButton=_.z1(this.hostElement).querySelector("#menu-button")},
attached:function(){var G=this.menuButton;G&&(G.addEventListener("focusin",_.ZQ(this,this.onMenuButtonFocus_)),G.addEventListener("focusout",_.ZQ(this,this.onMenuButtonBlur_)))},
detached:function(){var G=this.menuButton;G&&(G.removeEventListener("focusin",_.ZQ(this,this.onMenuButtonFocus_)),G.removeEventListener("focusout",_.ZQ(this,this.onMenuButtonBlur_)))},
identity:_.uF,truthy:function(G){return!!G},
computeTimestampString:function(G){return G?G.timestampText?this.getSimpleString(G.timestampText):this.TIME_FORMATTER.format(new Date(G.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(G){return G},
computeMenuVisible_:function(G,e){return G||e},
computeHasInlineActionButtons:function(G){if(!G)return!1;var e,r;return!((e=G.inlineActionButtons)==null||!e.length)||!((r=G.additionalInlineActionButtons)==null||!r.length)},
createDocumentFragmentFromString:function(G){var e=_.Wk.createDocumentFragment.bind(_.Wk),r;if((r=this.participantsManager)==null||!r.viewerRegex)return e(G);r=document.createDocumentFragment();for(var Z=0,O;(O=this.participantsManager.viewerRegex.exec(G))!=null;){if(O.index>0){var M=":"+O[0]+":";if((_.UD(_.Wk,M)||_.Pe(_.Wk,M))&&G.indexOf(M)===O.index-1)continue}r.appendChild(e(G.substring(Z,O.index)));Z=document.createElement("span");Z.appendChild(e(O[0]));Z.classList.add("mention");r.appendChild(Z);
Z=O.index+O[0].length}r.appendChild(e(G.substring(Z)));return r},
createDocumentFragment:function(G){var e=document.createDocumentFragment();if(G.simpleText)return e.appendChild(this.createDocumentFragmentFromString(G.simpleText)),e;if(!G.runs)return e;for(var r=0;r<G.runs.length;r++){var Z=G.runs[r];if(Z.emoji)e.appendChild(_.Wk.createEmoji(Z.emoji));else if(Z.text)if(Z.navigationEndpoint){var O=document.createElement("a");O.classList.add("yt-simple-endpoint");bWA(O,Z.navigationEndpoint);_.z1(O).appendChild(this.createDocumentFragmentFromString(Z.text));e.appendChild(O)}else e.appendChild(this.createDocumentFragmentFromString(Z.text))}return e},
hasModerationOverlayVisible:function(){var G;return((G=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:G.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(G){G.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()&&!_.R("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(G)},
colorFromDecimal:function(G){return Bmp(G)},
markAsDeleted:function(G,e){this.set("data.deletedStateMessage",G);this.set("data.showOriginalContentMessage",e)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(G){if(this.data.contextMenuEndpoint){var e=_.v_().resolve(_.bf),r=this.data.contextMenuEndpoint,Z;(Z=_.Q$.instance)&&_.IV(Z,r)?(e=udc(e,r),Z=_.LE(Z,{},e)):Z=_.nF3(e,r);Z.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);G&&G.stopPropagation()}},
handleGetContextMenuResponse_:function(G){var e=_.Q$.instance;e&&_.IV(e,{liveChatEndpoint:{}})||(G=G.response);G.liveChatItemContextMenuSupportedRenderers&&G.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(G.liveChatItemContextMenuSupportedRenderers.menuRenderer);G.actions&&_.Pi(this.hostElement,"yt-live-chat-actions",[G.actions])},
handleGetContextMenuError:function(G){if(G instanceof Error||G instanceof Object||G instanceof String)var e=G;_.yx(new _.Cr("Error encountered calling GetLiveChatItemContextMenu",e))},
showContextMenu_:function(G){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:G}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.xy(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.xy(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.NG.YtLiveChatItemBehavior=[mTW,_.F9.YtComponentBehavior,_.qG.YtOpenPopupBehavior];_.Lb=function(){};var cuy;var Yrj;var yuS;var Au3;var Gs=function(){var G=_.m.apply(this,arguments)||this;G.active=!1;G.identity=_.uF;return G};
_.K(Gs,_.m);Gs.prototype.dataChanged=function(){this.active=!1};
Gs.prototype.onClick=function(){_.xy(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
Gs.prototype.dataChanged=Gs.prototype.dataChanged;_.B([_.n(),_.x("design:type",Object)],Gs.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Gs.prototype,"active",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gs.prototype,"dataChanged",null);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],Gs);
_.A(Gs,"yt-live-chat-text-input-field-suggestion",function(){if(Au3===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;yuS===void 0&&(yuS=document.createElement("template"));var Z=yuS;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Au3=G}G=Au3;return G},{mode:0});_.eG=function(G,e,r){return CustomEvent.call(this,G,{detail:{value:e,path:r}})||this};
_.K(_.eG,CustomEvent);_.rD=function(){var G=_.m.apply(this,arguments)||this;G.viewerName=null;G.actionMap={"yt-live-chat-actions":"onChatMessage_"};G.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];G.PARTICIPANT_TIME_USEC_=3E8;return G};
_.K(_.rD,_.m);_.V=_.rD.prototype;_.V.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.V.addParticipant=function(G){var e=_.uNS(this.participants,G,function(Z,O){Z=Z[Object.keys(Z)[0]];O=O[Object.keys(O)[0]];Z=String(_.mG(Z.authorName)).toLowerCase();O=String(_.mG(O.authorName)).toLowerCase();return Z<O?-1:Z==O?0:1}.bind(this));
if(e>=0){var r=this.participants[e];r[Object.keys(r)[0]].timestampUsec&&this.splice("participants",e,1,G)}else this.splice("participants",-e-1,0,G);G=G[Object.keys(G)[0]];e=_.mG(G.authorName).toLocaleLowerCase();r=e.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(r)||(this.allParticipantsCharMap_[r]={});this.allParticipantsCharMap_[r][e]=G};
_.V.getAuthorsFromPrefix=function(G){return this.allParticipantsCharMap_.hasOwnProperty(G)?this.allParticipantsCharMap_[G]:null};
_.V.computeViewerRegex_=function(G){if(!G)return null;G=G.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var e=G.indexOf("@")===0&&_.R("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(e+G.replace(/ /g,"\\s*")+"|^"+G.replace(/ /g,"\\s*")+"$|^"+G.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+G.replace(/ /g,"\\s*")+"$|(?<=\\s)"+G.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.V.checkForStaleParticipants_=function(){var G=this;this.trimOldParticipants_();this.asyncHandle_&&RHi(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.oR(function(){G.checkForStaleParticipants_()},3E4))};
_.V.onChatMessage_=function(G){var e=this,r=Date.now()*1E3;G.forEach(function(Z){if(Z=_.a(Z,kME)){Z=Z.item;var O=Object.keys(Z)[0];e.SUPPORTED_ITEM_TYPES_.indexOf(O)!=-1&&Z[O].timestampUsec>=r-e.PARTICIPANT_TIME_USEC_&&e.addParticipant(Z)}},this);
this.checkForStaleParticipants_()};
_.V.trimOldParticipants_=function(){for(var G=Date.now()*1E3,e=this.participants.length-1;e>=0;e--){var r=this.participants[e];r=r[Object.keys(r)[0]];r.timestampUsec&&r.timestampUsec<G-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",e,1)}};
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],_.rD.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],_.rD.prototype,"viewerName",void 0);_.B([_.n({computed:"computeViewerRegex_(viewerName)"}),_.x("design:type",Object)],_.rD.prototype,"viewerRegex",void 0);_.B([_.n({value:function(){return[]},
notify:!0}),_.x("design:type",Array)],_.rD.prototype,"participants",void 0);_.B([_.aR({is:"yt-live-chat-participants-manager",noInjection:!0})],_.rD);var Fsn=/.*([:@#].*?)$/,Zt=/\u00a0/g,Juy=String.fromCharCode(160),BtW={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"},ON=function(){var G=_.m.apply(this,arguments)||this;G.disabled=!1;G.liveChatRichMessageInput=null;G.messageInput=null;G.isValidWithNoInputText=!1;G.suggestions=[];G.emojiManager=_.Wk;G.inputMethodEditorActive=
!1;G.suggestionIndex=-1;G.JSC$14229_lastSuggestionRange=null;return G};
_.K(ON,_.m);_.V=ON.prototype;_.V.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.V.attached=function(){_.Wz&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.V.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.V.dataChanged=function(){if(!this.ignoreColorMapping){var G=!1,e={},r;for(r in BtW)this.data&&this.data.hasOwnProperty(r)&&(e[BtW[r]]=this.colorFromDecimal(this.data[r]),G=!0);G&&_.eD(this.hostElement,e)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.V.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.V.colorFromDecimal=function(G){G=Math.floor(Number(G));return"rgba("+[G>>16&255,G>>8&255,G&255,(G>>24&255)/255].join()+")"};
_.V.preventDrag=function(G){G.dataTransfer&&(G.dataTransfer.dropEffect="none");G.preventDefault()};
_.V.preventResize=function(G){G.returnValue=!1};
_.V.onInputChange=function(){var G=this.characterCount,e=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&e&&e.remove();if(!e&&this.characterCount>this.maxCharacterLimit){var r=window.getSelection();if(r){var Z=r.getRangeAt(0);r.removeAllRanges();r.addRange(Z)}}if(r=this.getCurrentRange())Z=this.calculateTextBeforeRange(r),this.completeEmojisInRange(r,Z,!0)||this.updateSuggestions(r,Z);Z=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(Z);
_.xy(this.hostElement,"yt-live-chat-message-input-change",Z);e&&this.characterCount===0&&e.remove();r&&r.commonAncestorContainer.parentElement.id==="input"&&r.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>G):r&&!r.collapsed&&r.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(G=this.input.childNodes.length-1;G>=0;G--)this.input.childNodes[G].nodeName==="BR"&&this.input.childNodes[G].remove()};
_.V.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.V.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var G=this.getCurrentRange();G&&G.commonAncestorContainer.parentElement.id==="input"&&G.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.V.mergeOverflowText=function(G){if(G){var e=document.createRange();e.selectNodeContents(G);e=e.extractContents();this.input.insertBefore(e,G)}};
_.V.checkRangeAtEndOfInput=function(){var G=this.getCurrentRange();if(G){var e=_.z1(this.hostElement).querySelector("#overflow-text"),r=document.createRange();e&&e.previousSibling?e.previousSibling instanceof HTMLImageElement?r.selectNode(e.previousSibling):r.selectNodeContents(e.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?r.selectNode(this.input.lastChild):r.selectNodeContents(this.input.lastChild));r.collapse(!1);return r.isPointInRange(G.startContainer,
G.startOffset)}return!1};
_.V.handleOverflowText=function(G){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var e=_.z1(this.hostElement).querySelector("#overflow-text"),r=this.getCurrentRange();this.input.normalize();G=this.checkRangeAtEndOfInput()&&G;this.mergeOverflowText(e);for(var Z,O=0,M=0,T,E=this.input.childNodes,b=0;b<E.length;b++){var w=E[b];w instanceof Text?(M+=w.textContent.length,M>this.maxCharacterLimit&&(Z=w,O=this.maxCharacterLimit+w.textContent.length-M)):w instanceof HTMLImageElement&&
(Z=void 0,M=w.dataset.emojiId&&((Z=this.data)==null?0:Z.emojiCharacterCount)?M+this.data.emojiCharacterCount:M+w.alt.length,Z=this.input,O=b);if(M>this.maxCharacterLimit&&Z){T=document.createRange();T.collapse(!1);e?(M=this.input.lastChild.previousSibling,M instanceof Text?T.setEnd(this.input.lastChild.previousSibling,M.textContent.length):M instanceof HTMLImageElement&&T.setEnd(this.input,this.input.childNodes.length-1)):T.selectNodeContents(this.input);T.setStart(Z,O);break}}T&&(Z=!1,r&&(G=T.isPointInRange(r.startContainer,
r.startOffset-1)),e||(e=document.createElement("span"),e.id="overflow-text",e.textContent="",e.setAttribute("contenteditable","true"),_.z1(_.z1(this.hostElement).querySelector("#input")).appendChild(e),Z=!0),e&&(r=T.extractContents(),e.insertBefore(r,e.firstChild),G&&e.firstChild&&(r=document.createRange(),Z?r.setStartAfter(e.lastChild):r.setStartAfter(e.firstChild),r.collapse(!0),e=window.getSelection(),e.removeAllRanges(),e.addRange(r))))}};
_.V.checkForDuplicateSpans=function(){for(var G=0;G<this.input.childNodes.length;G++){var e=this.input.childNodes[G];if(e.nodeName==="SPAN"){var r=document.createRange();r.selectNodeContents(e);r=r.extractContents();this.input.insertBefore(r,e);e.remove()}}this.handleOverflowText(!0)};
_.V.getCurrentRange=function(){var G=window.getSelection();return G&&G.rangeCount?G.getRangeAt(0).cloneRange():null};
_.V.getInputRange=function(){var G=this.getCurrentRange();if(G){for(var e=G.commonAncestorContainer,r=!1,Z=_.z1(this.hostElement).querySelector("#input");e;){if(e===Z){r=!0;break}e=e.parentNode}r||(G=null)}G||(G=this.getRangeAtEnd());return G};
_.V.getRangeAtEnd=function(){var G=document.createRange(),e=_.z1(this.hostElement).querySelector("#input").lastChild;!e||e.nodeName!=="#text"&&e.nodeName!=="SPAN"?(G.selectNodeContents(_.z1(this.hostElement).querySelector("#input")),G.collapse(!1)):e.nodeName==="#text"?G.setStart(e,e.textContent.length):G.setStart(e,e.childNodes.length);return G};
_.V.getChatParticipantSuggestions=function(G,e,r,Z){var O=_.R("live_chat_enable_handles_web_text_input_update");if(e)for(var M in e)if(M.indexOf(G)===0||O&&M.indexOf(r+G)===0){var T=e[M],E=_.mG(T.authorName);Z.push({suggestion:{author:!0,authorType:r,image:T.authorPhoto,alt:E,text:E}});if(Z.length>=64)break}};
_.V.getSuggestions=function(G){var e=[],r=G.substring(0,3),Z=p$E(_.Wk,r,!0);if(Z)for(var O in Z)if(O.toLocaleLowerCase().indexOf(G)===0){var M=Z[O];if(M&&M.emojiId){if(M=I1S(_.Wk,M.emojiId)){var T=void 0,E=void 0,b=void 0,w=void 0,q=((T=M.image)==null?0:(E=T.accessibility)==null?0:(b=E.accessibilityData)==null?0:b.label)||M.isCustomEmoji?(w=M.shortcuts)==null?void 0:w[0]:M.emojiId;e.push({suggestion:{emoji:!0,image:M.image,alt:q,text:O,textToInsertWhenSelected:M.isCustomEmoji?O:q}})}if(e.length>=
64)break}}if(!this.participantsManager)return null;if(r.indexOf("@")===0||r.indexOf("#")===0)Z=r.charAt(0),G=G.substring(1),O=_.R("live_chat_enable_handles_web_text_input_update"),r.indexOf("@")===0&&O&&(O=this.participantsManager.getAuthorsFromPrefix(r.substring(0,2)),this.getChatParticipantSuggestions(G,O,Z,e)),r=r.substring(1),r=this.participantsManager.getAuthorsFromPrefix(r),this.getChatParticipantSuggestions(G,r,Z,e);return e?e.sort(function(t,g){return g.suggestion.text<t.suggestion.text?-1:
g.suggestion.text===t.suggestion.text?0:1}):null};
_.V.insertSuggestion=function(G){var e=_.R("live_chat_enable_handles_web_text_input_update"),r=G.authorType;e=G.text.indexOf(r)===0&&e?G.text+Juy:r+G.text+Juy;G.emoji?this.insertTextAtRange(this.JSC$14229_lastSuggestionRange,G.textToInsertWhenSelected||""):G.author&&this.insertTextAtRange(this.JSC$14229_lastSuggestionRange,e)};
_.V.updateSuggestionsAtCaret=function(){var G=this.getCurrentRange();G&&this.updateSuggestions(G,this.calculateTextBeforeRange(G))};
_.V.offsetStartOfRangeBy=function(G,e){for(;e>0;)if(G.startOffset-e>=0){G.setStart(G.startContainer,G.startOffset-e);break}else{e=G.startContainer instanceof HTMLImageElement?e-G.startContainer.alt.length:e-G.startOffset;var r=G.startContainer.previousSibling;if(!r){G.setStart(G.startContainer,0);break}if(_.R("live_chat_require_space_for_autocomplete_emoji")){var Z=void 0,O=void 0;G.setStart(r,((Z=r)==null?void 0:(O=Z.textContent)==null?void 0:O.length)||0)}else G.setStart(r,r.childNodes.length||
0)}};
_.V.updateSuggestions=function(G,e){var r=this;this.JSC$14229_lastSuggestionRange&&(this.JSC$14229_lastSuggestionRange.detach(),this.JSC$14229_lastSuggestionRange=null);if((e=Fsn.exec(e))&&e.length&&(e=e[e.length-1].toLocaleLowerCase(),e.length>2&&(this.offsetStartOfRangeBy(G,e.length),this.JSC$14229_lastSuggestionRange=G,(G=this.getSuggestions(e))&&G.length))){this.suggestions=G;_.DE(this,function(){_.z1(r.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(G.length-1);return}this.dropdown.opened=!1};
_.V.completeEmojisInRange=function(G,e,r){var Z=e.replace(/[\s\xa0]+$/,"");e=e.length-Z.length;Z=Z.split(" ");Z=Z[Z.length-1].trim().toLocaleLowerCase();var O=Z.lastIndexOf(":");if(r&&!e&&O!==Z.length-1)return!1;O!==-1&&(r=Z.lastIndexOf(":",O-1),r!==-1&&(Z=Z.substring(r)));if((r=_.Pe(_.Wk,Z))&&r.emojiId){r=I1S(_.Wk,r.emojiId)||null;this.offsetStartOfRangeBy(G,Z.length+e);var M,T,E,b;Z=(((M=r)==null?0:M.isCustomEmoji)?(T=r)==null?void 0:(E=T.shortcuts)==null?void 0:E[0]:(b=r)==null?void 0:b.emojiId)||
"";e&&(Z+=Juy);this.insertTextAtRange(G,Z);this.dropdown.opened=!1;return!0}return!1};
_.V.onSuggestion=function(G){this.insertSuggestion(G.detail);this.dropdown.opened=!1};
_.V.onKeyPress=function(G){G.keyCode===13&&(G.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.xy(this.hostElement,"yt-live-chat-send-message"))};
_.V.completeEmojis=function(){var G=document.createRange(),e=_.z1(this.hostElement).querySelector("#input").lastChild;e?G.setStart(e,e.childNodes.length):(G.selectNodeContents(_.z1(this.hostElement).querySelector("#input")),G.collapse(!1));this.completeEmojisInRange(G,this.calculateTextBeforeRange(G),_.R("live_chat_require_space_for_autocomplete_emoji"))};
_.V.maybePreventTextFormatting=function(G){!_.ec||!G.ctrlKey&&!G.metaKey||G.keyCode!==66&&G.keyCode!==73||(G.stopImmediatePropagation(),G.preventDefault())};
_.V.onKeyDown=function(G){this.maybePreventTextFormatting(G);if(this.dropdown.opened)switch(G.keyCode){case 27:this.dropdown.opened=!1;G.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;G.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);G.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),G.preventDefault()}};
_.V.onKeyUp=function(G){switch(G.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.zx)this.onInputChange()};
_.V.changeSuggestionIndex=function(G){if(this.dropdown.opened){var e=_.z1(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<e.children.length&&(e.children[this.suggestionIndex].active=!1);var r=this.suggestions.length;this.suggestionIndex=(G+r)%r;G=e.children[this.suggestionIndex];G.active=!0;e.scrollTop=G.offsetTop}};
_.V.onInputPaste=function(G){G.preventDefault();(G=G.clipboardData)&&G.types&&(G=G.getData("text/plain")||"",G=G.replace(/\n/g,""),this.insertText(G));(G=this.getCurrentRange())&&G.commonAncestorContainer.parentElement.id==="input"&&G.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.V.onFocus=function(){this._setFocused(!0)};
_.V.onBlur=function(){this._setFocused(!1)};
_.V.insertText=function(G){this.insertTextAtRange(this.getInputRange(),G)};
_.V.insertTextAtRange=function(G,e){if(G&&(G.collapsed||G.deleteContents(),e=_.Wk.createDocumentFragment(e,!0,!1))){for(var r=_.h((e==null?void 0:e.childNodes)||[]),Z=r.next();!Z.done;Z=r.next()){Z=Z.value;var O=void 0,M=void 0,T=void 0,E=void 0,b=void 0;(T=(O=window)==null?void 0:(M=O.ShadyCSS)==null?void 0:M.ScopingShim)==null||(b=(E=T).scopeNode)==null||b.call(E,Z,this.hostElement.localName)}r=e.lastChild;G.insertNode(e);this.focused||this.input.focus();if(this.focused){G=G.cloneRange();G.selectNodeContents(r);
G.collapse(!1);if(e=window.getSelection())e.removeAllRanges(),e.addRange(G);G.commonAncestorContainer.parentElement.id==="input"&&G.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}G=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(G);_.xy(this.hostElement,"yt-live-chat-message-input-change",G)}};
_.V.setLiveChatRichMessageInput=function(G){_.z1(_.z1(this.hostElement).querySelector("#input")).textContent="";if(G&&G.textSegments){for(var e=0;e<G.textSegments.length;e++){var r=G.textSegments[e];r.text?_.z1(_.z1(this.hostElement).querySelector("#input")).appendChild(_.Wk.createDocumentFragment(r.text,!0,!1)):r.emojiId&&(r=_.UD(_.Wk,r.emojiId))&&_.z1(_.z1(this.hostElement).querySelector("#input")).appendChild(_.Wk.createEmoji(r,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.V.setText=function(G){this.setLiveChatRichMessageInput(G?{textSegments:[{text:G}]}:null)};
_.V.calculateTextBeforeRange=function(G){var e="",r=G.startContainer;if(r&&r instanceof Text){var Z;e=((Z=r.textContent)==null?void 0:Z.substring(0,G.startOffset))||"";r=r.previousSibling}for(;r&&r instanceof Text;)e=r.textContent+e,r=r.previousSibling;return e.replace(Zt," ")};
_.V.calculateLiveChatRichMessageInput=function(){for(var G=[],e="",r=_.z1(_.z1(this.hostElement).querySelector("#input")).childNodes,Z=0;Z<r.length;Z++){var O=r[Z];O instanceof Text?e+=O.textContent:O instanceof HTMLImageElement&&(O.dataset.emojiId?(e&&(G.push({text:e.replace(Zt," ")}),e=""),G.push({emojiId:O.dataset.emojiId})):e+=O.alt)}e&&G.push({text:e.replace(Zt," ")});if(r=_.z1(this.hostElement).querySelector("#overflow-text")){e="";r=r.childNodes;for(Z=0;Z<r.length;Z++)O=r[Z],O instanceof Text?
e+=O.textContent:O instanceof HTMLImageElement&&(O.dataset.emojiId?(e&&(G.push({text:e.replace(Zt," ")}),e=""),G.push({emojiId:O.dataset.emojiId})):e+=O.alt);e&&G.push({text:e.replace(Zt," ")})}return{textSegments:G}};
_.V.computeCharacterCount=function(G){if(!G||!G.textSegments)return 0;for(var e=0,r=0;r<G.textSegments.length;r++){var Z=G.textSegments[r];if(Z.text)e+=Z.text.length;else if(Z.emojiId){var O=void 0;if((O=this.data)==null?0:O.emojiCharacterCount)e+=this.data.emojiCharacterCount;else{var M=O=void 0,T=void 0;e+=((M=_.UD(_.Wk,(O=Z)==null?void 0:O.emojiId))==null?void 0:(T=M.shortcuts)==null?void 0:T[0].length)||0}}}return e};
_.V.characterCountChanged=function(){_.xy(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.V.focusedChanged=function(){this.hostElement.dispatchEvent(new _.eG("focused-changed",this.focused))};
_.V.focus=function(){this.setFocus(!1)};
_.V.focusAtEnd=function(){this.setFocus(!0)};
_.V.setFocus=function(G){G=G?this.getRangeAtEnd():this.getInputRange();_.z1(this.hostElement).querySelector("#input").focus();var e=window.getSelection();e&&(e.removeAllRanges(),e.addRange(G))};
_.V.insertEmoji=function(G){var e,r=((G==null?0:G.isCustomEmoji)?(e=G.shortcuts)==null?void 0:e[0]:G==null?void 0:G.emojiId)||"";this.insertText(r)};
_.V.computeText=function(G){if(!G||!G.textSegments)return"";for(var e="",r=0;r<G.textSegments.length;r++){var Z=G.textSegments[r];if(Z.text)e+=Z.text;else if(Z.emojiId){var O=void 0,M=void 0,T=void 0;e+=((M=_.UD(_.Wk,(O=Z)==null?void 0:O.emojiId))==null?void 0:(T=M.shortcuts)==null?void 0:T[0])||""}}return e};
_.V.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.iY.Object.defineProperties(ON.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.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}}});
ON.prototype.focusedChanged=ON.prototype.focusedChanged;ON.prototype.characterCountChanged=ON.prototype.characterCountChanged;ON.prototype.onSuggestion=ON.prototype.onSuggestion;ON.prototype.onMessageSet=ON.prototype.onMessageSet;ON.prototype.dataChanged=ON.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ON.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],ON.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],ON.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],ON.prototype,"disabled",void 0);_.B([_.d("disabled"),_.x("design:type",Number),_.x("design:paramtypes",[])],ON.prototype,"inputTabIndex",null);_.B([_.d("data.maxCharacterLimit"),_.n({readOnly:!0,notify:!0}),_.x("design:type",Number),_.x("design:paramtypes",[])],ON.prototype,"maxCharacterLimit",null);
_.B([_.d("liveChatRichMessageInput"),_.n({readOnly:!0,notify:!0}),_.x("design:type",Number),_.x("design:paramtypes",[])],ON.prototype,"characterCount",null);_.B([_.d("maxCharacterLimit, characterCount"),_.n({readOnly:!0,notify:!0}),_.x("design:type",Number),_.x("design:paramtypes",[])],ON.prototype,"remainingCharacterCount",null);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],ON.prototype,"isChatMessageInput",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],ON.prototype,"inputExpanded",void 0);_.B([_.n({readOnly:!0,notify:!0}),_.x("design:type",Object)],ON.prototype,"liveChatRichMessageInput",void 0);_.B([_.n(),_.x("design:type",Object)],ON.prototype,"messageInput",void 0);_.B([_.n(),_.x("design:type",Boolean)],ON.prototype,"ignoreColorMapping",void 0);_.B([_.d("characterCount"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ON.prototype,"hasText",null);
_.B([_.n(),_.x("design:type",Object)],ON.prototype,"isValidWithNoInputText",void 0);_.B([_.d("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.n(),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ON.prototype,"isInputValid",null);_.B([_.n({readOnly:!0,value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],ON.prototype,"focused",void 0);_.B([_.n(),_.x("design:type",Array)],ON.prototype,"suggestions",void 0);
_.B([_.n(),_.x("design:type",_.Pk)],ON.prototype,"emojiManager",void 0);_.B([_.n(),_.x("design:type",_.rD)],ON.prototype,"participantsManager",void 0);_.B([_.n(),_.x("design:type",Boolean)],ON.prototype,"noUnderline",void 0);_.B([_.n(),_.x("design:type",Object)],ON.prototype,"inputMethodEditorActive",void 0);_.B([_.hs("#dropdown"),_.x("design:type",Object)],ON.prototype,"dropdown",void 0);_.B([_.hs("#input"),_.x("design:type",HTMLElement)],ON.prototype,"input",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ON.prototype,"dataChanged",null);_.B([_.Me("messageInput"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ON.prototype,"onMessageSet",null);_.B([_.Om("yt-live-chat-select-suggestion"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ON.prototype,"onSuggestion",null);
_.B([_.Me("characterCount"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ON.prototype,"characterCountChanged",null);_.B([_.Me("focused"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ON.prototype,"focusedChanged",null);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],ON);
_.xTj=_.A(ON,"yt-live-chat-text-input-field-renderer",function(){if(Yrj===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;cuy===void 0&&(cuy=document.createElement("template"));var Z=cuy;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Yrj=G}G=Yrj;return G},{mode:0});var MC=function(){var G=_.m.apply(this,arguments)||this;G.buttonOverrides={style:"overlay",type:"filled"};G.allowAnimations=!1;G.modern=_.R("web_button_rework_with_live");G.noPadding=!1;return G};
_.K(MC,_.m);_.V=MC.prototype;_.V.shouldSupportInlineActionButtons=function(){return!0};
_.V.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"}}}}};
_.V.ready=function(){var G=document.querySelector("yt-live-chat-app");G&&G.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.V.attached=function(){this.allowAnimations=!1};
_.V.dataChanged=function(){if(this.data){var G={"--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)};_.eD(this.hostElement,G);this.allowAnimations=!0}};
_.V.messageChanged=function(){var G,e=(G=this.data)==null?void 0:G.message;G=_.z1(_.z1(this.hostElement).querySelector("#message"));G.textContent="";e&&G.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(e))};
_.V.computeShowOnlyHeader=function(G,e){return!G||G.pdgLikeButton||G.replyButton||G.buyFlowButton?!1:this.isEmpty(G,e)&&!G.footer};
_.V.computeShowFooterDivider=function(G,e,r){return G?!!G.footer&&!this.isEmpty(G,e)&&!r:!1};
_.V.computeIsUserEditable=function(G){return!!G.inputField};
_.V.computeHasHeartButton=function(G){return(G==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(G==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(G==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.V.computeNoveltyImage=function(G){if(G.headerOverlayImage&&G.headerOverlayImage.thumbnails.length){var e=G.headerOverlayImage.thumbnails[0],r,Z;if((r=G.pdgPurchasedNoveltyLoggingDirectives)==null?0:(Z=r.loggingDirectives)==null?0:Z.trackingParams){var O,M;qr_((O=G.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(M=O.loggingDirectives)==null?void 0:M.trackingParams)}return e.width||0}return 0};
_.V.computeAuthorPhotoSize=function(G){return(G==null?0:G.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.V.inputFocus=function(){var G=_.z1(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");G&&G.focus()};
_.V.inputInsertEmoji=function(G){var e=_.z1(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");e&&e.insertEmoji(G)};
_.V.inputMessage=function(){var G=_.z1(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),e;return G&&((e=this.data)==null?0:e.inputField)?(G.completeEmojis(),_.dp(G.liveChatRichMessageInput)):null};
_.V.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.V.isEmpty=function(G,e){return G?G.empty||!(G.message||G.inputField||e):!0};
_.V.onLowerBuyButtonClick=function(){var G,e=_.a((G=this.data)==null?void 0:G.buyButton,_.zM);e&&e.trackingParams&&!P2f(e.command)&&(G=_.b1(e.trackingParams))&&(e=_.l4())&&_.n_(e,G)};
_.V.shouldSupportWholeItemClick=function(){return!0};
_.iY.Object.defineProperties(MC.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
MC.prototype.isDeletedChanged=MC.prototype.isDeletedChanged;MC.prototype.messageChanged=MC.prototype.messageChanged;MC.prototype.dataChanged=MC.prototype.dataChanged;_.B([_.k(q7C.YtPdgLiveChatItemBehavior),_.x("design:type",Object)],MC.prototype,"ytPdgLiveChatItemBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],MC.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.y9),_.x("design:type",Object)],MC.prototype,"ytLiveChatReduxBehavior",void 0);
_.B([_.k(_.NG.YtLiveChatItemBehavior),_.x("design:type",_.Lb)],MC.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],MC.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],MC.prototype,"data",void 0);_.B([_.n({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:$TS}),_.x("design:type",Object)],MC.prototype,"engagementState",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.x("design:type",Boolean)],MC.prototype,"isUserEditable",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.x("design:type",Boolean)],MC.prototype,"hasHeartButton",void 0);_.B([_.n({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.x("design:type",Boolean)],MC.prototype,"showOnlyHeader",void 0);
_.B([_.n({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.x("design:type",Boolean)],MC.prototype,"showFooterDivider",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Object)],MC.prototype,"allowAnimations",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],MC.prototype,"dashboardMoneyFeed",void 0);_.B([_.n({computed:"computeNoveltyImage(data)"}),_.x("design:type",Number)],MC.prototype,"noveltyWidth",void 0);
_.B([_.n({computed:"computeAuthorPhotoSize(data)"}),_.x("design:type",Number)],MC.prototype,"authorPhotoSize",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],MC.prototype,"modern",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],MC.prototype,"noPadding",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],MC.prototype,"dataChanged",null);
_.B([_.Me("data.message"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],MC.prototype,"messageChanged",null);_.B([_.d("data","dashboardMoneyFeed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],MC.prototype,"hideLowerBumper",null);_.B([_.Me("isDeleted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],MC.prototype,"isDeletedChanged",null);
_.B([_.c({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],MC);
_.A(MC,"yt-live-chat-paid-message-renderer",function(){if(N3W===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;Wwb===void 0&&(Wwb=document.createElement("template"));var Z=Wwb;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);N3W=G}G=N3W;return G},{mode:0});var PVl;var UTl;var V1=function(){var G=_.DQ.apply(this,arguments)||this;G._noAccessors=!0;return G};
_.K(V1,_.DQ);V1.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.xZ("openPopupConfig")};
_.B([_.k(_.qG.YtOpenPopupBehavior),_.x("design:type",Object)],V1.prototype,"ytOpenPopupBehavior",void 0);_.B([_.Em()],V1);_.h5=[_.qG.YtOpenPopupBehavior,V1.prototype];var z4l;var ooF=[_.Mv,OVy,_.BV,_.Vl,_.u4,_.fOw,_.DC,_.v9w,_.lM,pqf,_.Q_b];_.R("web_continuation_response_processing")&&ooF.push(_.f1);var kHs=new _.Gz("RESPONSE_RECEIVED_COMMANDS"),ddS=new _.Gz("RESPONSE_RECEIVED_COMMANDS");var jJA="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),RWs=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],lKs=["GET_UNSEEN_NOTIFICATION_COUNT"];var Ts=function(){var G=_.DQ.apply(this,arguments)||this;G._noAccessors=!0;G.serviceEndpointHandlers=[];return G};
_.K(Ts,_.DQ);Ts.prototype.created=function(){var G=this;this.endpointHandlerActionMap={"yt-service-request":function(e,r,Z,O){var M;return goN(G.hostElement,e,r,Z,O,G.serviceEndpointHandlers,(M=G.onEntitiesUpdated)==null?void 0:M.bind(G))}}};
Ts.prototype.attached=function(){_.re(_.e8.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
Ts.prototype.detached=function(){_.Mx(_.e8.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.B([_.Em()],Ts);_.Ws3=[Ts.prototype];var NtE,Lsn=function(){return NtE!==void 0?NtE:NtE=document.createElement("template")};
document.head.appendChild(Lsn().content);var GlP;var eWl=document.head,rzl=eWl.appendChild,Zq3;if(GlP===void 0){var Oqy=document.createElement("template");_.f(Oqy,"\x3c!--css-build:shady--\x3e");Oqy.content.insertBefore(Lsn().content.cloneNode(!0),Oqy.content.firstChild);GlP=Oqy}Zq3=GlP;rzl.call(eWl,Zq3.content);var Mln,VlE=function(){return Mln!==void 0?Mln:Mln=document.createElement("template")};
document.head.appendChild(VlE().content);var hWC;var TCj=document.head,Dd3=TCj.appendChild,EoW;if(hWC===void 0){var iqP=document.createElement("template");_.f(iqP,"\x3c!--css-build:shady--\x3e");iqP.content.insertBefore(VlE().content.cloneNode(!0),iqP.content.firstChild);hWC=iqP}EoW=hWC;Dd3.call(TCj,EoW.content);var bqE;_.te("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.te("sharingRendererButtons","buttonRenderer","ytd-button-renderer");bqE=_.R("web_button_rework")&&_.PX("BUTTON_REWORK")||_.R("web_button_rework_with_live");_.Dt=function(){var G=_.m.apply(this,arguments)||this;G.isPressed=!1;G.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return G};
_.K(_.Dt,_.m);_.V=_.Dt.prototype;_.V.created=function(){this.showTooltips=!0};
_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.onHintIdChanged=function(){var G=this,e,r,Z=(e=this.ytButtonBehavior.data)==null?void 0:(r=e.hint)==null?void 0:r.hintRenderer;if(Z&&Z.hintId){e=_.UW(this.hostElement,"yt-get-opened-popups-action");e=(e&&e.length===1?e[0]:[]).length>0;var O=null;Z.hintId!=="sponsor-pre-purchase"||e?Z.hintId.startsWith("sponsor-post-purchase")&&!e?O=rlw("membership-manage"):Z.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!e&&(O=rlw("membership-freebie-join")):O=rlw("membership-join");O&&_.A0.addLowPriorityJob(function(){for(var M=
_.h(O),T=M.next();!T.done;T=M.next())G.ytComponentBehavior.resolveCommand(T.value)})}};
_.V.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.V.onYtNavigate=function(G){var e=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(G.detail.endpoint);e&&(G.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(e))};
_.V.onYtServiceRequestSent=function(G,e){this.handleServiceRequestActions(e);_.xy(this.hostElement,"yt-service-request-sent-button-renderer")};
_.V.onServiceRequestCompleted=function(G,e){this.handleServiceRequestActions(e);_.xy(this.hostElement,"yt-service-request-completed-button-renderer")};
_.V.updateButton=function(G){var e;if(G=(e=_.a(G,U4y))==null?void 0:e.updatedButton)this.ytButtonBehavior.data=_.a(G,_.zM)};
_.V.handleUpdateButtonAction=function(G){var e=this.ytButtonBehavior.data;e.targetId&&G.updateButtonAction.targetId&&e.targetId===G.updateButtonAction.targetId&&this.updateButton(G)};
_.V.handleServiceRequestActions=function(G){if(G=G.actions)for(var e=0;e<G.length;e++)this.updateButton(G[e])};
_.iY.Object.defineProperties(_.Dt,{template:{configurable:!0,enumerable:!0,get:function(){if(z4l===void 0){var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);z4l=G}G=z4l;return G}}});
_.Dt.prototype.onServiceRequestCompleted=_.Dt.prototype.onServiceRequestCompleted;_.Dt.prototype.onYtServiceRequestSent=_.Dt.prototype.onYtServiceRequestSent;_.Dt.prototype.onYtNavigate=_.Dt.prototype.onYtNavigate;_.Dt.prototype.onPressedStateChanged=_.Dt.prototype.onPressedStateChanged;_.Dt.prototype.onHintIdChanged=_.Dt.prototype.onHintIdChanged;_.B([_.n(),_.x("design:type",Object)],_.Dt.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],_.Dt.prototype,"isPressed",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],_.Dt.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.qdW.YtButtonBehavior),_.x("design:type",Object)],_.Dt.prototype,"ytButtonBehavior",void 0);_.B([_.k(_.h5),_.x("design:type",Object)],_.Dt.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],_.Dt.prototype,"ytComponentBehavior",void 0);
_.B([_.k(Hk.YtRenderButtonBehavior),_.x("design:type",Object)],_.Dt.prototype,"ytRenderButtonBehavior",void 0);_.B([_.Me("data.hint.hintRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],_.Dt.prototype,"onHintIdChanged",null);_.B([_.Me("isPressed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],_.Dt.prototype,"onPressedStateChanged",null);
_.B([_.Om("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],_.Dt.prototype,"onYtNavigate",null);_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.oV]),_.x("design:returntype")],_.Dt.prototype,"onYtServiceRequestSent",null);
_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.n1]),_.x("design:returntype")],_.Dt.prototype,"onServiceRequestCompleted",null);_.B([_.c({is:"ytd-button-renderer",disableElementRegistration:bqE})],_.Dt);var EN=function(){var G=_.m.apply(this,arguments)||this;G.modern=_.R("web_button_rework_with_live");G.buttonOverrides={style:"overlay",type:"filled"};return G};
_.K(EN,_.m);_.V=EN.prototype;_.V.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"}}}}};
_.V.ready=function(){var G=document.querySelector("yt-live-chat-app");G&&G.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.V.dataChanged=function(){if(this.data&&this.data.sticker){var G=_.BQ(this.data.sticker.thumbnails,this.stickerWidth);G||_.nos(G).thenCatch(function(){_.FH(new _.Cr("Failed to load Super Sticker with url",G))})}};
_.V.computeAuthorPhotoSize=function(G){return(G==null?0:G.isV2Style)?32:40};
_.V.computeIsV2Style=function(G){return(G==null?0:G.isV2Style)?!0:!1};
_.V.onStickerLoaded=function(G){var e,r,Z;(e=_.mk(G))==null||(r=e.parentNode)==null||(Z=r.classList)==null||Z.add("sticker-loaded")};
_.V.computeNoveltyImageWidth=function(G){var e,r;if(G==null?0:(e=G.headerOverlayImage)==null?0:(r=e.thumbnails)==null?0:r.length){e=G.headerOverlayImage.thumbnails[0];var Z,O;if((Z=G.pdgPurchasedNoveltyLoggingDirectives)==null?0:(O=Z.loggingDirectives)==null?0:O.trackingParams){var M,T;qr_((M=G.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(T=M.loggingDirectives)==null?void 0:T.trackingParams)}return e.width||0}return 0};
_.V.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.V.updateStickerStyles=function(){var G=this.data;G&&(G={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(G.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(G.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(G.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(G.authorNameTextColor)},
_.eD(this.hostElement,G))};
_.V.onBuyButtonClick=function(){var G,e=_.a((G=this.data)==null?void 0:G.buyButton,_.zM);e&&!P2f(e.command)&&this.ytRendererBehavior.logExplicitClick(e)};
_.V.shouldSupportWholeItemClick=function(){return!0};
_.iY.Object.defineProperties(EN.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 G;return((G=this.data)==null?0:G.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
EN.prototype.updateStickerStyles=EN.prototype.updateStickerStyles;EN.prototype.isDeletedChanged=EN.prototype.isDeletedChanged;EN.prototype.onStickerLoaded=EN.prototype.onStickerLoaded;EN.prototype.dataChanged=EN.prototype.dataChanged;_.B([_.k(q7C.YtPdgLiveChatItemBehavior),_.x("design:type",Object)],EN.prototype,"ytPdgLiveChatItemBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],EN.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],EN.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.NG.YtLiveChatItemBehavior),_.x("design:type",_.Lb)],EN.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],EN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],EN.prototype,"data",void 0);
_.B([_.n({computed:"computeAuthorPhotoSize(data)"}),_.x("design:type",Number)],EN.prototype,"authorPhotoSize",void 0);_.B([_.n(),_.x("design:type",Boolean)],EN.prototype,"isDeleted",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],EN.prototype,"dashboardMoneyFeed",void 0);_.B([_.n({computed:"computeNoveltyImageWidth(data)"}),_.x("design:type",Number)],EN.prototype,"noveltyWidth",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],EN.prototype,"modern",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.x("design:type",Boolean)],EN.prototype,"isV2Style",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EN.prototype,"dataChanged",null);_.B([_.Om("yt-img-shadow-loaded"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],EN.prototype,"onStickerLoaded",null);
_.B([_.d("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],EN.prototype,"stickerWidth",null);_.B([_.d("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],EN.prototype,"stickerHeight",null);_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],EN.prototype,"hasHeartButton",null);_.B([_.d("data","dashboardMoneyFeed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],EN.prototype,"hideLowerBumper",null);
_.B([_.Me("isDeleted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EN.prototype,"isDeletedChanged",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EN.prototype,"updateStickerStyles",null);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],EN);
_.A(EN,"yt-live-chat-paid-sticker-renderer",function(){if(UTl===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;PVl===void 0&&(PVl=document.createElement("template"));var Z=PVl;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);UTl=G}G=UTl;return G},{mode:0});var vov;var wqy;var $dw,ScP=function(){return $dw!==void 0?$dw:$dw=document.createElement("template")};
document.head.appendChild(ScP().content);var qcE,tlb=function(){return qcE!==void 0?qcE:qcE=document.createElement("template")};
document.head.appendChild(tlb().content);var gon;var lKj,RWj=function(){return lKj!==void 0?lKj:lKj=document.createElement("template")};
document.head.appendChild(RWj().content);var jJc;var aKE=document.head,Xqw=aKE.appendChild,KUW;if(jJc===void 0){var fKW=document.createElement("template");_.f(fKW,"\x3c!--css-build:shady--\x3e");fKW.content.insertBefore(RWj().content.cloneNode(!0),fKW.content.firstChild);jJc=fKW}KUW=jJc;Xqw.call(aKE,KUW.content);var klC=document.head,Hqn=klC.appendChild,dd3;if(gon===void 0){var ii=document.createElement("template");_.f(ii,"\x3c!--css-build:shady--\x3e");ii.content.insertBefore(tlb().content.cloneNode(!0),ii.content.firstChild);ii.content.insertBefore(ScP().content.cloneNode(!0),ii.content.firstChild);gon=ii}dd3=gon;Hqn.call(klC,dd3.content);var bi=function(){var G=_.DQ.apply(this,arguments)||this;G.focusedIndex=0;G.verticalOffset=0;G.verticalAlign="top";G.dynamicAlign=!0;return G};
_.K(bi,_.DQ);bi.prototype.emojiUrl=function(G){G=_.UD(this.emojiManager,G);if(!G)return"";var e;G=(e=G.image)==null?void 0:e.thumbnails;return _.BQ(G,24)||""};
var ooy=function(G){var e;G.emojiVariants&&(e=G.data)!=null&&e.target&&_.DE(G,function(){G.set("verticalOffset",-1*G.hostElement.clientHeight);var r=_.z1(G.hostElement).querySelector("img");r&&r.focus()})};
_.V=bi.prototype;_.V.onKeyboardEnter=function(){};
_.V.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.V.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.V.onKeyDown=function(G){switch(G.keyCode){case 13:this.onKeyboardEnter();G.preventDefault();break;case 40:this.changeFocus(1);G.preventDefault();break;case 38:this.changeFocus(-1);G.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.V.onYtEmojiSelect=function(G){var e=this,r,Z,O,M,T,E,b,w;return _.D(function(q){if(q.nextAddress==1)return Z=(r=e.data)==null?void 0:r.emoji,T=((O=Z)==null?void 0:O.stickyPrefId)||((M=Z)==null?void 0:M.emojiId),b=(E=G.detail)==null?void 0:E.emojiId,T&&b&&T!==b?q.yield((w=e.emojiManager)==null?void 0:CVc(w,Z,b),2):q.return();_.Pi(e.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[Z,b]);_.HL(q)})};
_.V.changeFocus=function(G){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+G+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(G=_.z1(this.hostElement).querySelector("#variants"))&&G.children[this.focusedIndex].focus())};
_.iY.Object.defineProperties(bi.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
bi.prototype.onYtEmojiSelect=bi.prototype.onYtEmojiSelect;bi.prototype.onKeyDown=bi.prototype.onKeyDown;bi.prototype.onEmojiVariantsChanged=bi.prototype.onEmojiVariantsChanged;bi.prototype.onVerticalOffsetOrPositionTargetChanged=bi.prototype.onVerticalOffsetOrPositionTargetChanged;_.B([_.k(_.Nw),_.x("design:type",Object)],bi.prototype,"ironOverlayBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],bi.prototype,"data",void 0);_.B([_.n(),_.x("design:type",_.Pk)],bi.prototype,"emojiManager",void 0);
_.B([_.n(),_.x("design:type",Object)],bi.prototype,"emojiVariants",void 0);_.B([_.n(),_.x("design:type",Object)],bi.prototype,"focusedIndex",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bi.prototype,"positionTarget",null);_.B([_.n({reflectToAttribute:!0}),_.d("verticalOffset","data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],bi.prototype,"isPositioned",null);_.B([_.n(),_.x("design:type",Object)],bi.prototype,"verticalOffset",void 0);
_.B([_.n(),_.x("design:type",Object)],bi.prototype,"verticalAlign",void 0);_.B([_.n(),_.x("design:type",Object)],bi.prototype,"dynamicAlign",void 0);_.B([_.Me("verticalOffset","positionTarget"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bi.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.B([_.Me("emojiVariants"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bi.prototype,"onEmojiVariantsChanged",null);
_.B([_.Om("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],bi.prototype,"onKeyDown",null);_.B([_.Om("yt-emoji-select"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype",Promise)],bi.prototype,"onYtEmojiSelect",null);_.B([_.Em()],bi);var sJn=[bi.prototype];var QJl;var IKw;var pqP=/medium-light|medium-dark|light|medium|dark/,CIc=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,uBS=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),vb=function(){var G=_.m.apply(this,arguments)||this;G.userSelection={left:null,right:null};G.scrollAction="lock";G.isEmojiDraftInProgress=!1;return G};
_.K(vb,_.m);_.V=vb.prototype;_.V.onClick=function(G){G=_.mk(G);G instanceof HTMLImageElement&&this.selectOrUpdateEmoji(G)};
_.V.selectOrUpdateEmoji=function(G){var e=G.getAttribute("selection");e&&(e==="default"?_.xy(this.hostElement,"yt-emoji-select",_.UD(this.emojiManager,G.id)):e==="left"?this.userSelection=Object.assign({},this.userSelection,{left:G.src}):e==="right"?this.userSelection=Object.assign({},this.userSelection,{right:G.src}):e==="user"&&this.userSelection.left&&this.userSelection.right&&_.xy(this.hostElement,"yt-emoji-select",_.UD(this.emojiManager,G.id)))};
_.V.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.V.onMultiSelectorThumbnailRowChanged=function(){var G,e,r;((G=this.data)==null?0:(e=G.emoji)==null?0:(r=e.multiSelectorThumbnailRow)==null?0:r.length)&&this.openSelector()};
_.V.getThumbnailFromEmojiRow=function(G){var e,r;return(G==null?void 0:(e=G.thumbnails)==null?void 0:(r=e[0])==null?void 0:r.url)||""};
_.V.getEmojiAltTextForPartialSelector=function(G){var e;return((e=this.getThumbnailFromEmojiRow(G).match(CIc))==null?void 0:e[0])||""};
_.V.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.V.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.V.getRowSelection=function(G){return["left","right"][G]};
_.V.getIdFromComposedEmoji=function(G){return(G==null?void 0:G.emojiId)||""};
_.V.getEmojiFromPartialSelections=function(G,e){if(!G&&!e)return null;var r,Z,O=(r=this.data)==null?void 0:(Z=r.emoji)==null?void 0:Z.variantIds;if(!O||!O.length)return null;var M;G=(M=G.match(pqP))==null?void 0:M[0];var T;e=(T=e.match(pqP))==null?void 0:T[0];if(!G||!e)return null;var E=uBS.get(G);T=uBS.get(e);if(E===T){T=Array.from(uBS.values()).filter(function(w){return w!==E}).join("|");
var b=new RegExp("^((?!("+T+")).)*"+E+"$")}else b=new RegExp(E+".*"+T);return(O=O.find(function(w){return b.test(w)}))&&_.UD(this.emojiManager,O)||null};
_.V.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var G,e=this.ytEmojiSelectorBehavior.emojiUrl(((G=this.data.emoji)==null?void 0:G.emojiId)||"");_.z1(this.hostElement).querySelector('[selection="user"]').src.includes(e)||(this.isEmojiDraftInProgress=!0)}};
_.V.onDomChange=function(){ooy(this.ytEmojiSelectorBehavior)};
_.V.getFocusableElements=function(){return _.z1(this.hostElement).querySelectorAll("img").filter(function(G){return G.getAttribute("role")==="option"})};
_.V.changeFocus=function(G){var e=this.getFocusableElements();e!=null&&e.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+G+e.length)%e.length,this.ytEmojiSelectorBehavior.focusedIndex<e.length&&(G=e[this.ytEmojiSelectorBehavior.focusedIndex])&&G.focus())};
_.V.onKeyboardEnter=function(){var G=this.getFocusableElements();G!=null&&G.length&&(G=G[this.ytEmojiSelectorBehavior.focusedIndex])&&G instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(G),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.iY.Object.defineProperties(vb.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var G=this,e,r,Z;return this.emojiManager&&((e=this.data)==null?0:(r=e.emoji)==null?0:(Z=r.variantIds)==null?0:Z.length)?this.data.emoji.variantIds.map(function(O){return!!O&&_.UD(G.emojiManager,O)}).filter(function(O){return!!O}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var G,e=(G=this.userSelection)==null?void 0:G.left,r;G=(r=this.userSelection)==null?void 0:r.right;return e&&G?this.getEmojiFromPartialSelections(e,G):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.composedEmojiSelection)==null?0:G.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var e;G=(e=this.userSelection)==null?void 0:e.left;var r;e=(r=this.userSelection)==null?void 0:r.right;if(!G&&!e){var Z;return this.ytEmojiSelectorBehavior.emojiUrl(((Z=this.data.emoji)==null?void 0:Z.emojiId)||"")}return G&&!e?G:!G&&e?e:""}}});
vb.prototype.onMultiSelectorThumbnailRowChanged=vb.prototype.onMultiSelectorThumbnailRowChanged;vb.prototype.onClick=vb.prototype.onClick;_.B([_.k(_.Nw),_.x("design:type",Object)],vb.prototype,"ironOverlayBehavior",void 0);_.B([_.k(sJn),_.x("design:type",Object)],vb.prototype,"ytEmojiSelectorBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],vb.prototype,"data",void 0);_.B([_.n(),_.x("design:type",_.Pk)],vb.prototype,"emojiManager",void 0);
_.B([_.n(),_.x("design:type",Object)],vb.prototype,"userSelection",void 0);_.B([_.n(),_.x("design:type",Object)],vb.prototype,"scrollAction",void 0);_.B([_.n(),_.x("design:type",Object)],vb.prototype,"isEmojiDraftInProgress",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],vb.prototype,"emojiVariants",null);_.B([_.d("data","userSelection"),_.x("design:type",Object),_.x("design:paramtypes",[])],vb.prototype,"composedEmojiSelection",null);
_.B([_.Om("click"),_.x("design:type",Function),_.x("design:paramtypes",[MouseEvent]),_.x("design:returntype")],vb.prototype,"onClick",null);_.B([_.Me("data.emoji.multiSelectorThumbnailRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vb.prototype,"onMultiSelectorThumbnailRowChanged",null);_.B([_.d("data","userSelection","composedEmojiSelection"),_.x("design:type",String),_.x("design:paramtypes",[])],vb.prototype,"draftEmojiUrl",null);
_.B([_.aR({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],vb);
_.A(vb,"yt-emoji-multi-person-selector",function(){if(IKw===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;QJl===void 0&&(QJl=document.createElement("template"));var Z=QJl;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);IKw=G}G=IKw;return G},{mode:2});var noj;var mdl;var wD=function(){var G=_.m.apply(this,arguments)||this;G.tooltip_=null;return G};
_.K(wD,_.m);_.V=wD.prototype;_.V.dataChanged_=function(){var G;if((G=this.data)==null?0:G.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.z1(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.Go)(this.tooltip_).textContent=this.data.tooltip};
_.V.computeTargetId=function(){var G;return((G=this.data)==null?void 0:G.targetId)||""};
_.V.computeId_=function(G){return G};
_.V.computeIcon_=function(G){return _.Ne(G)};
_.V.onTap_=function(){this.active=!this.active;_.xy(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.V.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eG("active-changed",this.active))};
_.iY.Object.defineProperties(wD.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var G,e;if((G=this.data)==null?0:(e=G.icon)==null?0:e.iconType)return this.data.icon.iconType==="SUPER_STICKER";var r,Z;return((r=this.data)==null?void 0:(Z=r.icon)==null?void 0:Z.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
wD.prototype.activeChangedForBinding=wD.prototype.activeChangedForBinding;wD.prototype.dataChanged_=wD.prototype.dataChanged_;_.B([_.k(_.AL.YtLiveChatTooltipTargetingBehavior),_.x("design:type",Object)],wD.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],wD.prototype,"data",void 0);_.B([_.n({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.x("design:type",String)],wD.prototype,"id",void 0);
_.B([_.n({computed:"computeTargetId(data.targetId)"}),_.x("design:type",String)],wD.prototype,"targetId",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],wD.prototype,"active",void 0);_.B([_.n({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.x("design:type",String)],wD.prototype,"icon",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wD.prototype,"dataChanged_",null);
_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],wD.prototype,"iconFilled",null);_.B([_.Me("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wD.prototype,"activeChangedForBinding",null);_.B([_.aR({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],wD);
_.A(wD,"yt-emoji-picker-category-button-renderer",function(){if(mdl===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;noj===void 0&&(noj=document.createElement("template"));var Z=noj;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);mdl=G}G=mdl;return G},{mode:2});var czy;var Ycb;var $9=function(){var G=_.m.apply(this,arguments)||this;G.ariaLabel=null;G.ariaActivedescendant=null;G.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};G.JSC$14294_ignoreNextFocus_=!1;G.longPressTimeoutId=-1;return G};
_.K($9,_.m);_.V=$9.prototype;_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.V.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.V.emojiChanged_=function(){this.changeFocus_(0,!1);for(var G=_.h_(),e=0;e<this.emoji.length;e++){var r={veType:88013,elementIndex:e},Z=this.emoji[e];Z.isCustomEmoji&&(Z=document.querySelector(("#"+Z.emojiId).replace("/","\\/")))&&(r=_.OY(G,r))&&(Z.visualElement=r)}};
_.V.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.V.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.V.emojiSkinToneChanged_=function(G){this.skinTone=G};
_.V.dataChanged=function(){this.data&&this.data.emojiData&&sKS(this.emojiManager,this.data.emojiData)};
_.V.emojiUrl=function(G){G=this.getEmoji(G);if(!G)return"";var e;G=(e=G.image)==null?void 0:e.thumbnails;return _.BQ(G,24)||""};
_.V.emojiAlt=function(G){var e=this.get("image.accessibility.accessibilityData.label",G);return e?e:G.isCustomEmoji?G.shortcuts[0]:G.emojiId};
_.V.emojiAriaLabel=function(G){return G.shortcuts?G.shortcuts[0]:""};
_.V.emojiAriaSelected=function(G,e,r){return G&&r==e?"true":"false"};
_.V.getEmoji=function(G){if(this.emojiManager)return this.shouldUseStickyPreferences?I1S(this.emojiManager,G):z6(this.emojiManager,G)};
_.V.computeId_=function(G){return G.categoryId||""};
_.V.computeEmoji=function(G){var e=this;return this.emojiManager?G.emojiIds?G.emojiIds.map(function(r){return r?_.UD(e.emojiManager,r):null}).filter(md_):G.emojiData?G.emojiData.map(function(r){var Z=!!r.emojiId&&_.UD(e.emojiManager,r.emojiId);
return Z?Object.assign({},Z,r):null}).filter(md_):[]:[]};
_.V.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.V.computeAriaLabel_=function(G){return _.mG(G)};
_.V.computeAriaActivedescendant_=function(G,e){return G&&G[e]?G[e].emojiId||"":""};
_.V.handleLongPressEmojiWithVariants=function(G,e){this.changeFocusToEmoji(G.emojiId,!1);this.openVariantSelector(G,e)};
_.V.onMouseDown=function(G){var e=this;this.hostElement!==document.activeElement&&(this.JSC$14294_ignoreNextFocus_=!0);if(G.button===0){var r=_.mk(G);if(r instanceof HTMLImageElement){var Z=_.z1(this.hostElement).querySelector("#repeat").itemForElement(r);this.emojiContainsVariants(Z)&&(this.longPressTimeoutId=setTimeout(function(){e.handleLongPressEmojiWithVariants(Z,r)},500))}}};
_.V.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.V.onFocus=function(){this.JSC$14294_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14294_ignoreNextFocus_=!1};
_.V.onBlur_=function(){this.showFocus=!1};
_.V.emojiContainsVariants=function(G){return!!(G&&G.variantIds&&G.variantIds.length)};
_.V.onClick=function(G){clearTimeout(this.longPressTimeoutId);G=_.mk(G);if(G instanceof HTMLImageElement){var e=G.id;this.changeFocusToEmoji(e,!1);var r=this.getEmoji(e),Z;if(Z=this.shouldUseStickyPreferences&&this.emojiContainsVariants(r)){var O;Z=!((O=this.emojiManager.emojiMap[e])!=null&&O.stickyPrefId)}Z?(O=_.z1(this.hostElement).querySelector("#repeat").itemForElement(G),this.openVariantSelector(O,G)):_.xy(this.hostElement,"yt-emoji-select",r)}};
_.V.isActiveEmojiWithVariants=function(G,e){return G&&e?e.stickyPrefId?G===e.stickyPrefId:G===e.emojiId:!1};
_.V.onCloseEmojiVariantSelector=function(G){this.activeEmojiWithVariantsId===G&&(this.activeEmojiWithVariantsId="")};
_.V.onMouseOver_=function(G){G=_.mk(G);G instanceof HTMLImageElement&&_.xy(this.hostElement,"yt-emoji-hover",_.UD(this.emojiManager,G.id))};
_.V.changeFocus_=function(G,e){this.focusedIndex=(this.focusedIndex+G+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(G=this.emoji[this.focusedIndex],e&&(this.showFocus=!0,_.z1(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.xy(this.hostElement,"yt-emoji-hover",G)))};
_.V.changeFocusToEmoji=function(G,e){if(G){var r=this.emoji.findIndex(function(Z){return Z.emojiId===G});
r!==-1&&this.changeFocus_(r-this.focusedIndex,e)}};
_.V.onKeyDown_=function(G){switch(G.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var e=this.emoji[this.focusedIndex];if(e&&e.emojiId){if(this.emojiContainsVariants(e)){var r=_.z1(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(e,r)}else _.xy(this.hostElement,"yt-emoji-select",z6(this.emojiManager,e.emojiId)),this.hostElement.focus();G.preventDefault()}}break;case 40:this.changeFocus_(1,!0);G.preventDefault();break;case 38:this.changeFocus_(-1,!0),
G.preventDefault()}};
_.V.onEmojiStickyPreferenceChanged=function(G,e){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&G.emojiId&&G.variantIds&&G.variantIds.includes(e)&&this.activeEmojiWithVariantsId!==e&&this.setStickyEmojiPreference(G.emojiId,e)};
_.V.openVariantSelector=function(G,e){this.activeEmojiWithVariantsId=G.stickyPrefId||G.emojiId||"";_.xy(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:G,target:e})};
_.V.setStickyEmojiPreference=function(G,e){if(this.data){var r=this.emoji.findIndex(function(O){return O.emojiId===G});
if(r!==-1){var Z=this.emoji[r];Z.stickyPrefId=e;this.set("emoji."+r,Object.assign({},Z));this.activeEmojiWithVariantsId=e}}};
$9.prototype.onKeyDown_=$9.prototype.onKeyDown_;$9.prototype.onMouseOver_=$9.prototype.onMouseOver_;$9.prototype.onClick=$9.prototype.onClick;$9.prototype.onBlur_=$9.prototype.onBlur_;$9.prototype.onFocus=$9.prototype.onFocus;$9.prototype.onMouseUp=$9.prototype.onMouseUp;$9.prototype.onMouseDown=$9.prototype.onMouseDown;$9.prototype.dataChanged=$9.prototype.dataChanged;$9.prototype.disableIncrementalLoadingChanged_=$9.prototype.disableIncrementalLoadingChanged_;$9.prototype.emojiManagerChanged_=$9.prototype.emojiManagerChanged_;
$9.prototype.emojiChanged_=$9.prototype.emojiChanged_;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],$9.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],$9.prototype,"data",void 0);_.B([_.n({computed:"computeId_(data)"}),_.x("design:type",String)],$9.prototype,"id",void 0);_.B([_.n({computed:"computeEmoji(data)"}),_.x("design:type",Array)],$9.prototype,"emoji",void 0);_.B([_.n(),_.x("design:type",Number)],$9.prototype,"skinTone",void 0);
_.B([_.n(),_.x("design:type",_.Pk)],$9.prototype,"emojiManager",void 0);_.B([_.n(),_.x("design:type",Boolean)],$9.prototype,"disableIncrementalLoading",void 0);_.B([_.n({value:0}),_.x("design:type",Number)],$9.prototype,"focusedIndex",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],$9.prototype,"showFocus",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.x("design:type",Object)],$9.prototype,"ariaLabel",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.x("design:type",Object)],$9.prototype,"ariaActivedescendant",void 0);_.B([_.n({value:60}),_.x("design:type",Number)],$9.prototype,"domRepeatTargetFramerate",void 0);_.B([_.n({value:1}),_.x("design:type",Number)],$9.prototype,"domRepeatInitialCount",void 0);_.B([_.n({value:""}),_.x("design:type",String)],$9.prototype,"activeEmojiWithVariantsId",void 0);
_.B([_.n({value:!1}),_.x("design:type",Boolean)],$9.prototype,"shouldUseStickyPreferences",void 0);_.B([_.Me("emoji"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$9.prototype,"emojiChanged_",null);_.B([_.Me("emojiManager"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$9.prototype,"emojiManagerChanged_",null);
_.B([_.Me("disableIncrementalLoading"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$9.prototype,"disableIncrementalLoadingChanged_",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$9.prototype,"dataChanged",null);_.B([_.Om("mousedown"),_.x("design:type",Function),_.x("design:paramtypes",[Object]),_.x("design:returntype")],$9.prototype,"onMouseDown",null);
_.B([_.Om("mouseup"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$9.prototype,"onMouseUp",null);_.B([_.Om("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$9.prototype,"onFocus",null);_.B([_.Om("blur"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$9.prototype,"onBlur_",null);
_.B([_.Om("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],$9.prototype,"onClick",null);_.B([_.Om("mouseover"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],$9.prototype,"onMouseOver_",null);_.B([_.Om("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],$9.prototype,"onKeyDown_",null);
_.B([_.aR({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],$9);
_.A($9,"yt-emoji-picker-category-renderer",function(){if(Ycb===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;czy===void 0&&(czy=document.createElement("template"));var Z=czy;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Ycb=G}G=Ycb;return G},{mode:2});var yzC;var Az3;var FUv;var JzW;var SG=function(){var G=_.m.apply(this,arguments)||this;G.ariaLabel=null;G.ariaActivedescendant=null;G.getFormattedStringRawText=_.mG;G.JSC$14300_ignoreNextFocus_=!1;return G};
_.K(SG,_.m);_.V=SG.prototype;_.V.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")};
_.V.emojiUrl=function(G){var e,r;G=(e=z6(this.emojiManager,G,!0))==null?void 0:(r=e.image)==null?void 0:r.thumbnails;return _.BQ(G,24)||""};
_.V.emojiAlt=function(G){var e=this.get("image.accessibility.accessibilityData.label",G);return e?e:G.isCustomEmoji?G.shortcuts[0]:G.emojiId};
_.V.emojiId=function(G){return"emoji"+G};
_.V.computeId_=function(G){return G.categoryId||""};
_.V.computeAriaActivedescendant_=function(G){return this.emoji&&G<this.emoji.length?this.emojiId(G):""};
_.V.emojiChanged_=function(){this.changeFocus_(0,!1);for(var G=_.h_(),e=0;e<this.emoji.length;e++){var r={veType:88013,elementIndex:e},Z=this.emoji[e];Z.isCustomEmoji&&(Z=document.querySelector(("#"+Z.emojiId).replace("/","\\/")))&&(r=_.OY(G,r))&&(Z.visualElement=r)}};
_.V.computeEmoji_=function(G){var e=this;return this.emojiManager?G.emojiIds.map(function(r){return _.UD(e.emojiManager,r,!0)}).filter(czF):[]};
_.V.titleOffsetChanged_=function(){var G=this.hostElement.getBoundingClientRect(),e=_.z1(this.hostElement).querySelector("#title").getBoundingClientRect();G=Math.max(0,Math.min(this.titleOffset,G.height-e.height));_.z1(this.hostElement).querySelector("#title").style.top=G+"px"};
_.V.onEmojiMouseOver_=function(G){_.xy(this.hostElement,"yt-emoji-hover",G.model.item)};
_.V.onEmojiTap_=function(G){this.data.command&&(G=KsS(_.v_().resolve(_.bq(LL)),this.data.command,G),_.xy(this.hostElement,"yt-navigate",G))};
_.V.emojiAriaLabel=function(G){return G.shortcuts[0]};
_.V.emojiAriaSelected=function(G,e,r){return G&&r==e?"true":"false"};
_.V.changeFocus_=function(G,e){var r=this.emoji.length;this.focusedIndex=(this.focusedIndex+G+r)%r;G=this.emoji[this.focusedIndex];if(e){var Z;(Z=_.z1(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||Z.scrollIntoView(!1);_.xy(this.hostElement,"yt-emoji-hover",G)}};
_.V.onMouseDown_=function(){this.JSC$14300_ignoreNextFocus_=!0};
_.V.onFocus_=function(){this.JSC$14300_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14300_ignoreNextFocus_=!1};
_.V.onBlur_=function(){this.showFocus=!1};
_.V.onKeyDown_=function(G){switch(G.keyCode){case 13:this.onEmojiTap_(G);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);G.preventDefault();break;case 38:this.changeFocus_(-1,!0),G.preventDefault()}};
SG.prototype.onKeyDown_=SG.prototype.onKeyDown_;SG.prototype.onBlur_=SG.prototype.onBlur_;SG.prototype.onFocus_=SG.prototype.onFocus_;SG.prototype.onMouseDown_=SG.prototype.onMouseDown_;SG.prototype.onEmojiTap_=SG.prototype.onEmojiTap_;SG.prototype.titleOffsetChanged_=SG.prototype.titleOffsetChanged_;SG.prototype.emojiChanged_=SG.prototype.emojiChanged_;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],SG.prototype,"ytComponentBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],SG.prototype,"data",void 0);_.B([_.n({computed:"computeId_(data)"}),_.x("design:type",String)],SG.prototype,"id",void 0);_.B([_.n({computed:"computeEmoji_(data)"}),_.x("design:type",Array)],SG.prototype,"emoji",void 0);_.B([_.n({value:0}),_.x("design:type",Number)],SG.prototype,"titleOffset",void 0);_.B([_.n({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.x("design:type",Object)],SG.prototype,"ariaLabel",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.x("design:type",Object)],SG.prototype,"ariaActivedescendant",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],SG.prototype,"showFocus",void 0);_.B([_.n({value:0}),_.x("design:type",Number)],SG.prototype,"focusedIndex",void 0);_.B([_.n(),_.x("design:type",_.Pk)],SG.prototype,"emojiManager",void 0);
_.B([_.Me("emoji"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SG.prototype,"emojiChanged_",null);_.B([_.Me("titleOffset"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SG.prototype,"titleOffsetChanged_",null);_.B([_.Om("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],SG.prototype,"onEmojiTap_",null);
_.B([_.Om("mousedown"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SG.prototype,"onMouseDown_",null);_.B([_.Om("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SG.prototype,"onFocus_",null);_.B([_.Om("blur"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SG.prototype,"onBlur_",null);
_.B([_.Om("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],SG.prototype,"onKeyDown_",null);_.B([_.aR({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],SG);
_.A(SG,"yt-emoji-picker-upsell-category-renderer",function(){if(JzW===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;FUv===void 0&&(FUv=document.createElement("template"));var Z=FUv;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);JzW=G}G=JzW;return G},{mode:2});var BCb;var xdn;var qC=function(){var G=_.m.apply(this,arguments)||this;G.scrollAction="lock";G.verticalAlign="top";return G};
_.K(qC,_.m);_.V=qC.prototype;_.V.onClick=function(G){G=_.mk(G);G instanceof HTMLImageElement&&_.xy(this.hostElement,"yt-emoji-select",_.UD(this.emojiManager,G.id))};
_.V.openSelector=function(){this.ironOverlayBehavior.open()};
_.V.onDomChange=function(){ooy(this.ytEmojiSelectorBehavior)};
_.V.computeIsFamilySelector=function(G){var e;return(G==null?void 0:(e=G.emoji)==null?void 0:e.emojiId)==="\ud83d\udc6a"};
_.V.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var G=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];G&&G.emojiId&&(_.xy(this.hostElement,"yt-emoji-select",_.UD(this.emojiManager,G.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.iY.Object.defineProperties(qC.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var G=this,e,r,Z;return this.emojiManager&&((e=this.data)==null?0:(r=e.emoji)==null?0:(Z=r.variantIds)==null?0:Z.length)?this.data.emoji.variantIds.map(function(O){return!!O&&_.UD(G.emojiManager,O)}).filter(function(O){return!!O}):[]}}});
qC.prototype.onClick=qC.prototype.onClick;_.B([_.k(_.Nw),_.x("design:type",Object)],qC.prototype,"ironOverlayBehavior",void 0);_.B([_.k(sJn),_.x("design:type",Object)],qC.prototype,"ytEmojiSelectorBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],qC.prototype,"data",void 0);_.B([_.n(),_.x("design:type",_.Pk)],qC.prototype,"emojiManager",void 0);_.B([_.n(),_.x("design:type",Object)],qC.prototype,"scrollAction",void 0);_.B([_.n(),_.x("design:type",Object)],qC.prototype,"verticalAlign",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.x("design:type",Boolean)],qC.prototype,"isFamilySelector",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],qC.prototype,"emojiVariants",null);_.B([_.Om("click"),_.x("design:type",Function),_.x("design:paramtypes",[MouseEvent]),_.x("design:returntype")],qC.prototype,"onClick",null);_.B([_.aR({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],qC);
_.A(qC,"yt-emoji-variant-selector",function(){if(xdn===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;BCb===void 0&&(BCb=document.createElement("template"));var Z=BCb;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);xdn=G}G=xdn;return G},{mode:2});var PIW=/:/g,UdW=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],t5=function(){var G=_.m.apply(this,arguments)||this;G.emojiVariantSelector=null;G.emojiMultiPersonSelector=null;G.identity=_.uF;G.lastAnimationTime_=0;G.animationStart_=null;G.animationEnd_=null;return G};
_.K(t5,_.m);_.V=t5.prototype;
_.V.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}}};
_.V.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.Wk)};
_.V.attached=function(){_.zx&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&QKy(this.emojiManager)};
_.V.dataChanged=function(){var G;if((G=this.data)==null?0:G.categories){G=this.emojiManager;var e=this.getCustomEmojiIds();G.pickerCustomEmojiIds=[].concat(_.mY(f13),_.mY(e))}};
_.V.getCustomEmojiIds=function(){var G,e=(G=this.data.categories)==null?void 0:G.find(function(M){var T;return((T=M.emojiPickerCategoryRenderer)==null?void 0:T.categoryId)&&UdW.includes(M.emojiPickerCategoryRenderer.categoryId)}),r;
G=(r=this.data.categories)==null?void 0:r.find(function(M){return M.emojiPickerUpsellCategoryRenderer});
var Z,O;return[e==null?void 0:(Z=e.emojiPickerCategoryRenderer)==null?void 0:Z.emojiIds,G==null?void 0:(O=G.emojiPickerUpsellCategoryRenderer)==null?void 0:O.emojiIds].flat().filter(function(M){return!!M})};
_.V.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.V.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.V.updateCategoriesAndPlaceholderInternal=function(G,e){var r=this;G&&e&&(this.categories=G.categories||[],this.categoryButtons=G.categoryButtons||[],this.resetPlaceholder(),this.search="",_.oR(function(){r.updateButtons_()}))};
_.V.computeId_=function(G){return G.id||""};
_.V.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(G){return G.emojiPickerCategoryRenderer&&G.emojiPickerCategoryRenderer.emojiData}):!1};
_.V.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.V.onShowEmojiVariantSelector=function(G){var e=G.detail.emojiData;e.variantIds&&e.variantIds.length&&(e.multiSelectorThumbnailRow&&e.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:e,target:G.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:e,target:G.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.V.onIronOverlayClosed=function(G){var e=I1S(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");e&&G.composedPath&&(G.composedPath().includes(_.z1(this.hostElement).querySelector("#emoji-variant-selector"))||G.composedPath().includes(_.z1(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.Pi(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))};
_.V.onEmojiVariantSelectorMouseup=function(G){var e=G.target.firstChild;this.variantSelectorOpened&&e&&_.oR(function(){e.noCancelOnOutsideClick=!1},100)};
_.V.onEmojiVariantSelectorMousedown=function(G){G=G.target.firstChild;this.variantSelectorOpened&&G&&(G.noCancelOnOutsideClick=!1)};
_.V.onSelectCategory_=function(G){var e=this.search!="";this.search="";for(var r=_.z1(this.hostElement).querySelector("#categories").children,Z=0;Z<r.length;Z++){var O=r[Z];if(O.id==G.detail.categoryId){e?(_.z1(this.hostElement).querySelector("#categories").scrollTop=O.offsetTop,this.updateButtons_()):(this.animationStart_=_.z1(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=O.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.V.onEmojiHover_=function(G){this.placeholder=G.detail.shortcuts?G.detail.shortcuts[0]:""};
_.V.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.V.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.V.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.V.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.V.computeSearchCategory_=function(G){G=G.replace(PIW,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();G=G.split(" ");for(var e=[],r=this.emojiManager.emojis,Z=0;Z<r.length;Z++){var O=r[Z];if(O.searchTerms)for(var M=0;M<O.searchTerms.length;M++){for(var T=O.searchTerms[M].toLocaleLowerCase(),E=!1,b=0;b<G.length;b++)if(T.indexOf(G[b])!=-1){E=!0;break}if(E&&(!O.isCustomEmoji||!O.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(O.emojiId))){e.push(O.emojiId);
break}}}return{categoryId:-1,emojiIds:e}};
_.V.computeSearchEmptyMessage_=function(G,e){return G&&e&&e.emojiIds&&e.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.V.computeSearching_=function(G){return this.emojiManager&&G.replace(PIW,"").length>1};
_.V.computeSkinToneHidden=function(){var G;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((G=this.data)==null||!G.hideSkinTonePicker)};
_.V.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.V.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.V.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.V.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.V.selectSkinTone_=function(G){G=Number(G.target.getAttribute("tone"));this.set("emojiManager.skinTone",G);_.Pi(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[G]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.V.skinToneChanged_=function(){_.z1(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var G=_.z1(this.hostElement).querySelector("#dropdown-content").children,e=0;e<G.length;e++)e===this.skinTone?G[e].setAttribute("selected",""):G[e].removeAttribute("selected")};
_.V.animateScroll_=function(G){this.lastAnimationTime_||(this.lastAnimationTime_=G);G-=this.lastAnimationTime_;G<200?(_.z1(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*G/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.z1(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.V.searchChanged_=function(){this.updateButtons_()};
_.V.updateButtons_=function(){var G=null;if(!this.search)for(var e=_.z1(this.hostElement).querySelector("#categories").scrollTop,r=_.z1(this.hostElement).querySelector("#categories").children,Z=0;Z<r.length;Z++){var O=r[Z];O.offsetTop<=e&&(G=O.id)}e=_.z1(this.hostElement).querySelector("#category-buttons").children;for(r=0;r<e.length;r++)Z=e[r],Z.active=Z.id===G};
t5.prototype.searchChanged_=t5.prototype.searchChanged_;t5.prototype.skinToneChanged_=t5.prototype.skinToneChanged_;t5.prototype.onEmojiHover_=t5.prototype.onEmojiHover_;t5.prototype.onSelectCategory_=t5.prototype.onSelectCategory_;t5.prototype.onShowEmojiVariantSelector=t5.prototype.onShowEmojiVariantSelector;t5.prototype.updateCategoriesAndPlaceholder_=t5.prototype.updateCategoriesAndPlaceholder_;t5.prototype.dataChanged=t5.prototype.dataChanged;
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],t5.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],t5.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],t5.prototype,"data",void 0);_.B([_.n({value:function(){return[]}}),
_.x("design:type",Array)],t5.prototype,"categories",void 0);_.B([_.n({value:function(){return[]}}),
_.x("design:type",Array)],t5.prototype,"categoryButtons",void 0);_.B([_.n({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.x("design:type",Boolean)],t5.prototype,"disableScroll",void 0);_.B([_.n({computed:"computeId_(data)",reflectToAttribute:!0}),_.x("design:type",String)],t5.prototype,"id",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],t5.prototype,"selected",void 0);
_.B([_.n({value:!1}),_.x("design:type",Boolean)],t5.prototype,"disableIncrementalLoading",void 0);_.B([_.n(),_.x("design:type",String)],t5.prototype,"placeholder",void 0);_.B([_.n({value:""}),_.x("design:type",String)],t5.prototype,"search",void 0);_.B([_.n({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.x("design:type",Boolean)],t5.prototype,"searching",void 0);_.B([_.n({computed:"computeSearchCategory_(search)"}),_.x("design:type",Object)],t5.prototype,"searchCategory",void 0);
_.B([_.n({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.x("design:type",Object)],t5.prototype,"searchEmptyMessage",void 0);_.B([_.n({computed:"identity(emojiManager.skinTone)"}),_.x("design:type",Number)],t5.prototype,"skinTone",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],t5.prototype,"skinToneOpened",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],t5.prototype,"variantSelectorOpened",void 0);
_.B([_.n({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.x("design:type",Boolean)],t5.prototype,"skinToneHidden",void 0);_.B([_.n(),_.x("design:type",_.Pk)],t5.prototype,"emojiManager",void 0);_.B([_.n(),_.x("design:type",Object)],t5.prototype,"emojiVariantSelector",void 0);_.B([_.n(),_.x("design:type",Object)],t5.prototype,"emojiMultiPersonSelector",void 0);
_.B([_.n({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.x("design:type",Boolean)],t5.prototype,"shouldUseStickyPreferences",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],t5.prototype,"dataChanged",null);_.B([_.Me("data","selected"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],t5.prototype,"updateCategoriesAndPlaceholder_",null);
_.B([_.Om("yt-show-emoji-variant-selector"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],t5.prototype,"onShowEmojiVariantSelector",null);_.B([_.Om("yt-emoji-picker-select-category"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],t5.prototype,"onSelectCategory_",null);_.B([_.Om("yt-emoji-hover"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],t5.prototype,"onEmojiHover_",null);
_.B([_.Me("skinTone"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],t5.prototype,"skinToneChanged_",null);_.B([_.Me("search"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],t5.prototype,"searchChanged_",null);_.B([_.aR({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],t5);
_.A(t5,"yt-emoji-picker-renderer",function(){if(Az3===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;yzC===void 0&&(yzC=document.createElement("template"));var Z=yzC;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Az3=G}G=Az3;return G},{mode:2});var gD=function(){var G=_.m.apply(this,arguments)||this;G.emojiManager=_.Wk;G.isDarkTheme=document.documentElement.hasAttribute("dark");G.selectedIndex=1;G.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return G};
_.K(gD,_.m);_.V=gD.prototype;_.V.handleEmojiCustomizationVisible=function(G){this.emojiPickerRenderer.selected=G;this.selectedIndex=1;G?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.V.emojiCustomizationSetChanged=function(){var G;(G=this.data)!=null&&G.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.WA(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.V.updateSaveButtonState=function(G){var e;(e=this.data)!=null&&e.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.bt("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:G}))};
_.V.emojiUrl=function(G){G=_.UD(this.emojiManager,G);if(!G)return"";var e;G=(e=G.image)==null?void 0:e.thumbnails;return _.BQ(G,24)||""};
_.V.emojiAlt=function(G){var e=_.UD(this.emojiManager,G);if(!e)return G;var r,Z,O,M=(e==null?void 0:(r=e.image)==null?void 0:(Z=r.accessibility)==null?void 0:(O=Z.accessibilityData)==null?void 0:O.label)||"";return M?M:e.isCustomEmoji?e.shortcuts[0]:e.emojiId||G};
_.V.emojiAriaLabel=function(G){var e,r;return((e=_.UD(this.emojiManager,G))==null?void 0:(r=e.shortcuts)==null?void 0:r[0])||G};
_.V.onEmojiClick=function(G){G.model.index!==0&&(this.selectedIndex=G.model.index)};
_.V.onEmojiSelect=function(G){G=G.detail;var e,r;((e=this.data)==null?0:e.emojiCustomizationSetEntityKey)&&((r=this.emojiCustomizationSet)==null?0:r.emojiId)&&G.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,G.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.bt("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,G.emojiId,this.selectedIndex)}))};
_.V.canEditEmoji=function(G,e,r){G=G.indexOf(e);return G===r||G===0||r===0?!1:!0};
_.V.getUpdatedEmojiIdList=function(G,e,r){var Z=G.indexOf(e);G=[].concat(_.mY(G));Z>=0&&(G[Z]=G[r]);G[r]=e;return G};
_.iY.Object.defineProperties(gD,{template:{configurable:!0,enumerable:!0,get:function(){if(wqy===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;vov===void 0&&(vov=document.createElement("template"));var Z=vov;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);wqy=G}G=wqy;return G}}});
gD.prototype.onEmojiSelect=gD.prototype.onEmojiSelect;_.B([_.k(_.y9),_.x("design:type",Object)],gD.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],gD.prototype,"ytActionHandlerBehavior",void 0);_.B([_.hs("yt-emoji-picker-renderer"),_.x("design:type",Object)],gD.prototype,"emojiPickerRenderer",void 0);
_.B([_.n({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(G,e){return _.e6(G.entities,"emojiCustomizationSetEntity",e)},
observer:"emojiCustomizationSetChanged"}),_.x("design:type",Object)],gD.prototype,"emojiCustomizationSet",void 0);_.B([_.n(),_.x("design:type",Object)],gD.prototype,"originalEmojiSet",void 0);_.B([_.n(),_.x("design:type",_.Pk)],gD.prototype,"emojiManager",void 0);_.B([_.n(),_.x("design:type",Object)],gD.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],gD.prototype,"isDarkTheme",void 0);_.B([_.n(),_.x("design:type",Object)],gD.prototype,"selectedIndex",void 0);
_.B([_.Om("yt-emoji-select"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],gD.prototype,"onEmojiSelect",null);_.B([_.aR({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],gD);var zWb;var WUc;var NCP;var LUj;var li=function(){var G=_.m.apply(this,arguments)||this;G.authorBadges=[];return G};
_.K(li,_.m);_.V=li.prototype;_.V.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.V.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]]"}}}}}};
_.V.dataChanged=function(){var G=iyU(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",G)};
_.V.updateMessage=function(){var G=this.data.message,e=_.z1(_.z1(this.hostElement).querySelector("#message"));e.textContent="";G&&e.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(G))};
_.V.shouldSupportWholeItemClick=function(){return!0};
_.V.onShowOriginalClick=function(G){G.preventDefault();this.showOriginal=!0};
_.V.computeShowBar=function(G,e,r){return G&&e||r};
_.V.computeAuthorBadges=function(G){return G.authorBadges||[]};
_.V.computeAuthorIsOwner=function(G){return!!byA(G.authorBadges,"owner")};
_.V.computeAuthorNameColor=function(G){var e;if(_.R("live_chat_author_name_color_usernames")&&(G==null?0:(e=G.authorName)==null?0:e.simpleText))return _.tBs(_.gxf(G.authorName.simpleText));if(_.R("live_chat_seed_color_usernames")&&(G==null?0:G.authorSeedColorArgb))return _.tBs(_.zo(G.authorSeedColorArgb));if(_.R("live_chat_colored_usernames"))return"#cc0000";var r;return _.R("live_chat_simple_color_usernames")&&(G==null?0:(r=G.authorName)==null?0:r.simpleText)&&(G==null?0:G.authorUsernameColorLight)&&
(G==null?0:G.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.zo(G.authorUsernameColorDark):_.zo(G.authorUsernameColorLight):""};
li.prototype.updateMessage=li.prototype.updateMessage;li.prototype.dataChanged=li.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],li.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.NG.YtLiveChatItemBehavior),_.x("design:type",_.Lb)],li.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],li.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],li.prototype,"data",void 0);
_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],li.prototype,"showOriginal",void 0);_.B([_.n({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.x("design:type",Boolean)],li.prototype,"isDimmed",void 0);_.B([_.n({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.x("design:type",Boolean)],li.prototype,"showBar",void 0);
_.B([_.n({computed:"computeAuthorBadges(data)"}),_.x("design:type",Array)],li.prototype,"authorBadges",void 0);_.B([_.n({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],li.prototype,"authorIsOwner",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],li.prototype,"inCollapsedBanner",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],li.prototype,"inBanner",void 0);
_.B([_.n({value:_.R("live_chat_hide_avatars"),reflectToAttribute:!0}),_.x("design:type",Boolean)],li.prototype,"avatarHidden",void 0);_.B([_.n({computed:"computeAuthorNameColor(data)"}),_.x("design:type",String)],li.prototype,"authorNameColor",void 0);_.B([_.n(),_.x("design:type",_.rD)],li.prototype,"participantsManager",void 0);_.B([_.n({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.x("design:type",Object)],li.prototype,"filledButtonOverrides",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],li.prototype,"dataChanged",null);_.B([_.Me("data.message"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],li.prototype,"updateMessage",null);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],li);
_.A(li,"yt-live-chat-text-message-renderer",function(){if(LUj===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;NCP===void 0&&(NCP=document.createElement("template"));var Z=NCP;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);LUj=G}G=LUj;return G},{mode:0});var R_=function(){var G=_.m.apply(this,arguments)||this;G.tonalButtonOverrides={type:"tonal",style:"overlay"};return G};
_.K(R_,_.m);
R_.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]]"}}}}}};
R_.prototype.shouldSupportInlineActionButtons=function(){return!0};
R_.prototype.shouldSupportWholeItemClick=function(){return!0};
_.iY.Object.defineProperties(R_.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],R_.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.NG.YtLiveChatItemBehavior),_.x("design:type",_.Lb)],R_.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],R_.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],R_.prototype,"data",void 0);_.B([_.n(),_.x("design:type",_.rD)],R_.prototype,"participantsManager",void 0);
_.B([_.n(),_.x("design:type",Object)],R_.prototype,"tonalButtonOverrides",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("data.infoDialogButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],R_.prototype,"hasInfoDialogButton",null);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],R_);
_.A(R_,"yt-live-chat-auto-mod-message-renderer",function(){if(WUc===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;zWb===void 0&&(zWb=document.createElement("template"));var Z=zWb;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);WUc=G}G=WUc;return G},{mode:0});var G0v;var e6W;var rrc;var Zvn=function(){return _.m.apply(this,arguments)||this};
_.K(Zvn,_.m);_.B([_.n(),_.x("design:type",Object)],Zvn.prototype,"data",void 0);_.B([_.c({is:"ytd-factoid-renderer",disableElementRegistration:!0})],Zvn);
_.A(Zvn,"ytd-factoid-renderer",function(){if(rrc!==void 0)return rrc;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return rrc=G},{mode:1});var jG=function(){return _.m.apply(this,arguments)||this};
_.K(jG,_.m);jG.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.B([_.n(),_.x("design:type",Object)],jG.prototype,"data",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],jG.prototype,"ytRendererstamperBehavior",void 0);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],jG);
_.A(jG,"yt-live-chat-channel-activity-reputation-renderer",function(){if(e6W===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;G0v===void 0&&(G0v=document.createElement("template"));var Z=G0v;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);e6W=G}G=e6W;return G},{mode:0});var Ovv;var MoE;var a_=function(){return _.m.apply(this,arguments)||this};
_.K(a_,_.m);a_.prototype.ready=function(){var G=document.querySelector("yt-live-chat-app");G&&G.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],a_.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Boolean)],a_.prototype,"menuFocused",void 0);_.B([_.n(),_.x("design:type",Object)],a_.prototype,"data",void 0);_.B([_.k(_.NG.YtLiveChatItemBehavior),_.x("design:type",_.Lb)],a_.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],a_);
_.A(a_,"yt-live-chat-donation-announcement-renderer",function(){if(MoE===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;Ovv===void 0&&(Ovv=document.createElement("template"));var Z=Ovv;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);MoE=G}G=MoE;return G},{mode:0});var Vo3;var h6y,TIn=function(){if(h6y!==void 0)return h6y;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;Vo3===void 0&&(Vo3=document.createElement("template"));var Z=Vo3;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return h6y=G};var Xw=function(){return _.m.apply(this,arguments)||this};
_.K(Xw,_.m);_.iY.Object.defineProperties(Xw,{template:{configurable:!0,enumerable:!0,get:function(){return TIn()}}});
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Xw.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Xw.prototype,"data",void 0);_.B([_.aR({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],Xw);_.A(Xw,"yt-live-chat-empty-feed-view-model",function(){return TIn()},{mode:0});var DEy;var ElS;var KK=function(){return _.m.apply(this,arguments)||this};
_.K(KK,_.m);KK.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"}}}}}};
_.iY.Object.defineProperties(KK.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var G,e;return{runs:[{text:(G=this.data)==null?void 0:(e=G.channelName)==null?void 0:e.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var G=[],e;if((e=this.data)==null||!e.channelBadges)return G;var r;e=_.h((r=this.data)==null?void 0:r.channelBadges);for(r=e.next();!r.done;r=e.next()){r=_.a(r.value,Tqc);var Z=void 0,O=void 0;if((Z=r)==null?0:(O=Z.badgeImage)==null?0:O.sources)Z=void 0,O={liveChatAuthorBadgeRenderer:{tooltip:r.tooltip,accessibility:{accessibilityData:{label:(Z=_.a(r.rendererContext,_.D9))==null?void 0:Z.label}}}},r.badgeImage.sources[0].clientResource?O.liveChatAuthorBadgeRenderer.icon=
{iconType:r.badgeImage.sources[0].clientResource.imageName}:O.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:r.badgeImage.sources},G.push(O)}return G}}});
_.B([_.n(),_.x("design:type",Object)],KK.prototype,"data",void 0);_.B([_.d("data.channelName"),_.x("design:type",Object),_.x("design:paramtypes",[])],KK.prototype,"channelName",null);_.B([_.d("data.channelBadges"),_.x("design:type",Array),_.x("design:paramtypes",[])],KK.prototype,"channelBadges",null);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],KK.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],KK);
_.A(KK,"yt-live-chat-identity-view-model",function(){if(ElS===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;DEy===void 0&&(DEy=document.createElement("template"));var Z=DEy;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);ElS=G}G=ElS;return G},{mode:0});var ivb;var bvv;var vlj;var w7j;var fK=function(){var G=_.m.apply(this,arguments)||this;G.hidden=!1;G.supportsInlineActionButtons=!0;return G};
_.K(fK,_.m);fK.prototype.ready=function(){var G;((G=document.querySelector("yt-live-chat-app"))==null?0:G.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
fK.prototype.dataChanged=function(G){var e=(0,_.Go)(_.z1(this.hostElement).querySelector("#detail-text"));e.textContent="";(G==null?0:G.detailText)&&e.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(G.detailText))};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.NG.YtLiveChatItemBehavior),_.x("design:type",_.Lb)],fK.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],fK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n({observer:"dataChanged"}),_.x("design:type",Object)],fK.prototype,"data",void 0);
_.B([_.n({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.x("design:type",Object)],fK.prototype,"hidden",void 0);_.B([_.c({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],fK);
_.A(fK,"yt-live-chat-legacy-paid-message-renderer",function(){if(w7j===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;vlj===void 0&&(vlj=document.createElement("template"));var Z=vlj;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);w7j=G}G=w7j;return G},{mode:0});var $EP;var S$n;var q$w={},k9=function(){return _.DQ.apply(this,arguments)||this};
_.K(k9,_.DQ);k9.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
k9.prototype.onLiveChatMembershipItemBehaviorClick=k9.prototype.onLiveChatMembershipItemBehaviorClick;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],k9.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],k9.prototype,"data",void 0);_.B([_.Om("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],k9.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.B([_.Em()],k9);
q$w.YtLiveChatMembershipItemBehavior=[k9.prototype,_.W.YtRendererBehavior];var Hb=function(){var G=_.m.apply(this,arguments)||this;G.supportsInlineActionButtons=!0;G.hasPrimaryHeaderText=!1;G.showOnlyHeader=!1;G.authorBadges=[];G.modern=_.R("web_button_rework_with_live");G.buttonOverrides={style:"overlay",type:"filled"};return G};
_.K(Hb,_.m);_.V=Hb.prototype;_.V.shouldSupportInlineActionButtons=function(){return!0};
_.V.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.V.ready=function(){var G=document.querySelector("yt-live-chat-app");G&&G.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.V.messageChanged=function(){var G=this.data.message,e=(0,_.Go)(_.z1(this.hostElement).querySelector("#message"));e.textContent="";G&&e.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(G))};
_.V.computeHasPrimaryHeaderText=function(G){return!(!G||!G.headerPrimaryText)};
_.V.computeShowOnlyHeader=function(G,e){return this.isMessageEmpty(G,e)};
_.V.computeAuthorBadges=function(G){return G.authorBadges||[]};
_.V.isMessageEmpty=function(G,e){return!G||G.empty?!0:!G.message&&!G.inputField&&!e};
_.V.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.V.getInputElement=function(){return _.z1(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.V.inputFocus=function(){var G=this.getInputElement();G&&G.focus()};
_.V.inputInsertEmoji=function(G){var e=this.getInputElement();e&&e.insertEmoji(G)};
_.V.inputMessage=function(){var G=this.getInputElement();return G&&this.data.inputField?(G.completeEmojis(),_.dp(G.liveChatRichMessageInput)):null};
_.V.onFooterButtonClick=function(){this.data.footerButton&&_.xy(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.V.shouldSupportWholeItemClick=function(){return!0};
Hb.prototype.isDeletedChanged=Hb.prototype.isDeletedChanged;Hb.prototype.messageChanged=Hb.prototype.messageChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Hb.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.NG.YtLiveChatItemBehavior),_.x("design:type",_.Lb)],Hb.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.k(q$w.YtLiveChatMembershipItemBehavior),_.x("design:type",Object)],Hb.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Hb.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Hb.prototype,"data",void 0);_.B([_.n({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.x("design:type",Object)],Hb.prototype,"hasPrimaryHeaderText",void 0);_.B([_.n({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.x("design:type",Object)],Hb.prototype,"showOnlyHeader",void 0);
_.B([_.n({computed:"computeAuthorBadges(data)"}),_.x("design:type",Array)],Hb.prototype,"authorBadges",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Hb.prototype,"modern",void 0);_.B([_.Me("data.message"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hb.prototype,"messageChanged",null);_.B([_.Me("isDeleted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hb.prototype,"isDeletedChanged",null);
_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],Hb);
_.A(Hb,"yt-live-chat-membership-item-renderer",function(){if(S$n===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;$EP===void 0&&($EP=document.createElement("template"));var Z=$EP;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);S$n=G}G=S$n;return G},{mode:0});var toc;var gln;var dD=function(){return _.m.apply(this,arguments)||this};
_.K(dD,_.m);dD.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],dD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],dD.prototype,"data",void 0);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],dD);
_.A(dD,"yt-live-chat-mode-change-message-renderer",function(){if(gln===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;toc===void 0&&(toc=document.createElement("template"));var Z=toc;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);gln=G}G=gln;return G},{mode:0});var lPW;var R6y;var o_=function(){return _.m.apply(this,arguments)||this};
_.K(o_,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.NG.YtLiveChatItemBehavior),_.x("design:type",_.Lb)],o_.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],o_.prototype,"data",void 0);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],o_);
_.A(o_,"yt-live-chat-moderation-message-renderer",function(){if(R6y===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;lPW===void 0&&(lPW=document.createElement("template"));var Z=lPW;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);R6y=G}G=R6y;return G},{mode:0});var jx3;var aPS;var sN=function(){return _.m.apply(this,arguments)||this};
_.K(sN,_.m);sN.prototype.onClick=function(){var G;if((G=this.data)!=null&&G.onClickCommand){var e;_.Ga.instance.resolveCommand((e=this.data)==null?void 0:e.onClickCommand)}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],sN.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.y9),_.x("design:type",Object)],sN.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.k(_.NG.YtLiveChatItemBehavior),_.x("design:type",_.Lb)],sN.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],sN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],sN.prototype,"data",void 0);
_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],sN);
_.A(sN,"yt-live-chat-offer-click-count-message-renderer",function(){if(aPS===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;jx3===void 0&&(jx3=document.createElement("template"));var Z=jx3;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);aPS=G}G=aPS;return G},{mode:0});var X73;var K4S=function(){return _.m.apply(this,arguments)||this};
_.K(K4S,_.m);_.B([_.n(),_.x("design:type",Object)],K4S.prototype,"data",void 0);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],K4S);
_.A(K4S,"yt-live-chat-placeholder-item-renderer",function(){if(X73===void 0){var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);X73=G}G=X73;return G},{mode:0});var fPE;var k0v;var Hvb=new uw(7),Q1=function(){var G=_.m.apply(this,arguments)||this;G.data={};return G};
_.K(Q1,_.m);Q1.prototype.dataChanged=function(){var G;((G=this.data)==null?0:G.class)&&_.Nv(this.hostElement,this.data.class,!0);var e;((e=this.oldData)==null?0:e.class)&&_.Nv(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
Q1.prototype.computeTimestampString=function(G){return Hvb.format(new Date(G/1E3))};
Q1.prototype.dataChanged=Q1.prototype.dataChanged;_.B([_.n(),_.x("design:type",Object)],Q1.prototype,"data",void 0);_.B([_.n({computed:"computeTimestampString(data.timestampUsec)"}),_.x("design:type",String)],Q1.prototype,"timestampString",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Q1.prototype,"dataChanged",null);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],Q1);
_.A(Q1,"yt-live-chat-server-error-message",function(){if(k0v===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;fPE===void 0&&(fPE=document.createElement("template"));var Z=fPE;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);k0v=G}G=k0v;return G},{mode:0});var dEw;var oll;var I_=function(){var G=_.m.apply(this,arguments)||this;G.defaultToFilledIcon=!1;return G};
_.K(I_,_.m);I_.prototype.computeHasPrimaryColorIcon=function(G){return G==="SPARK"||G==="SPONSORSHIP_STAR"};
I_.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],I_.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.NG.YtLiveChatItemBehavior),_.x("design:type",_.Lb)],I_.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],I_.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],I_.prototype,"defaultToFilledIcon",void 0);_.B([_.n(),_.x("design:type",Object)],I_.prototype,"data",void 0);
_.B([_.n({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.x("design:type",Boolean)],I_.prototype,"hasPrimaryColorIcon",void 0);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],I_);
_.A(I_,"yt-live-chat-viewer-engagement-message-renderer",function(){if(oll===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;dEw===void 0&&(dEw=document.createElement("template"));var Z=dEw;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);oll=G}G=oll;return G},{mode:0});var sxj;var pK=function(){var G=_.m.apply(this,arguments)||this;G.modernUpdate=!1;G.buttonStyle="overlay";G.buttonType="filled";return G};
_.K(pK,_.m);pK.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
pK.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],pK.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],pK.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],pK.prototype,"modernUpdate",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],pK.prototype,"buttonStyle",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],pK.prototype,"buttonType",void 0);
_.B([_.c({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],pK);
_.A(pK,"ytd-ad-hover-text-button-renderer",function(){if(sxj!==void 0)return sxj;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return sxj=G},{mode:1});var QxE;var CK=function(){var G=_.m.apply(this,arguments)||this;G.buttonOverrides={size:"XS"};return G};
_.K(CK,_.m);CK.prototype.onHelpTap=function(G){this.data&&this.data.informationDialog&&(_.xy(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),G.preventDefault(),G.stopPropagation())};
_.B([_.n(),_.x("design:type",Object)],CK.prototype,"buttonOverrides",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],CK.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],CK.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],CK);
_.A(CK,"ytd-live-chat-purchased-product-message-renderer",function(){if(QxE!==void 0)return QxE;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return QxE=G},{mode:1});var IPw;var p7w;var ui=function(){var G=_.m.apply(this,arguments)||this;G.isContainerDeleted=!1;return G};
_.K(ui,_.m);ui.prototype.onContextMenuClick=function(G){this.ytLiveChatItemBehavior.showContextMenu(G)};
ui.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))};
ui.prototype.isContainerDeletedChanged=ui.prototype.isContainerDeletedChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ui.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.NG.YtLiveChatItemBehavior),_.x("design:type",_.Lb)],ui.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ui.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],ui.prototype,"isContainerDeleted",void 0);
_.B([_.n(),_.x("design:type",String)],ui.prototype,"deletedStateMessage",void 0);_.B([_.Me("isContainerDeleted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ui.prototype,"isContainerDeletedChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],ui);
_.A(ui,"ytd-sponsorships-live-chat-header-renderer",function(){if(p7w!==void 0)return p7w;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return p7w=G},{mode:1});var nK=function(){var G=_.m.apply(this,arguments)||this;G.modern=_.R("web_button_rework_with_live");G.buttonOverrides={style:"overlay",type:"filled"};return G};
_.K(nK,_.m);nK.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]]"}}}}}};
nK.prototype.onCtaButtonClick=function(){var G,e=_.a((G=this.data)==null?void 0:G.optInPrompt,_.zM);if(G=this.maybeGetButtonCommand(e)){var r;(r=_.h_())==null||r.clickCommand(G)}};
nK.prototype.maybeGetButtonCommand=function(G){return!G||!G.command||_.a(G.command,PB3)===void 0&&_.a(G.command,x9v)===void 0?null:G.command};
nK.prototype.shouldHideOptinPrompt=function(G,e){return!G||e};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],nK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.NG.YtLiveChatItemBehavior),_.x("design:type",_.Lb)],nK.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],nK.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],nK.prototype,"modern",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],nK);
_.A(nK,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(IPw!==void 0)return IPw;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return IPw=G},{mode:1});var Ccn;var mQ=function(){return _.m.apply(this,arguments)||this};
_.K(mQ,_.m);mQ.prototype.onContextMenuClick=function(G){this.ytLiveChatItemBehavior.showContextMenu(G)};
mQ.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))};
mQ.prototype.isDeletedChanged=mQ.prototype.isDeletedChanged;_.B([_.k(_.NG.YtLiveChatItemBehavior),_.x("design:type",_.Lb)],mQ.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],mQ.prototype,"data",void 0);_.B([_.Me("isDeleted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mQ.prototype,"isDeletedChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],mQ);
_.A(mQ,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(Ccn!==void 0)return Ccn;var G=document.createElement("template");_.f(G,'\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="star_circle_ribbon" 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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Ccn=G},{mode:1});var cb=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return G};
_.K(cb,_.m);_.V=cb.prototype;
_.V.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"}}}};
_.V.handleLiveChatAction=function(G){_.a(G,d8S)?this.handleMarkChatItemAsDeletedAction(_.a(G,d8S)):_.a(G,H6P)&&this.handleRemoveChatItemAction(_.a(G,H6P))};
_.V.handleLiveChatActions=function(G){G.forEach(this.handleLiveChatAction,this)};
_.V.handleMarkChatItemAsDeletedAction=function(G){var e=this,r;((r=this.data)==null?0:r.items)&&this.data.items.forEach(function(Z,O){var M=Object.keys(Z)[0];Object.values(Z)[0].id===G.targetItemId&&e.markAsDeleted("data.items",O,M,G.deletedStateMessage,G.showOriginalContentMessage)})};
_.V.handleRemoveChatItemAction=function(G){var e=this,r;((r=this.data)==null?0:r.items)&&this.data.items.forEach(function(Z,O){Object.values(Z)[0].id===G.targetItemId&&e.splice("data.items",O,1)})};
_.V.markAsDeleted=function(G,e,r,Z,O){G=[G,e,r].join(".");this.set(G+".deletedStateMessage",Z);this.set(G+".showOriginalContentMessage",O)};
_.B([_.n(),_.x("design:type",Object)],cb.prototype,"data",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],cb.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],cb.prototype,"ytActionHandlerBehavior",void 0);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],cb);
_.A(cb,"yt-live-chat-item-display-list-renderer",function(){if(bvv===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;ivb===void 0&&(ivb=document.createElement("template"));var Z=ivb;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);bvv=G}G=bvv;return G},{mode:0});var uDy;var nlb,mEl=function(){if(nlb!==void 0)return nlb;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;uDy===void 0&&(uDy=document.createElement("template"));var Z=uDy;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return nlb=G};var Y9=function(){var G=_.m.apply(this,arguments)||this;G.isHeader=!1;return G};
_.K(Y9,_.m);Y9.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.iY.Object.defineProperties(Y9,{template:{configurable:!0,enumerable:!0,get:function(){return mEl()}}});
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Y9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Y9.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Y9.prototype,"isHeader",void 0);_.B([_.aR({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],Y9);_.A(Y9,"yt-live-chat-item-display-renderer",function(){return mEl()},{mode:0});var crn,Y$W,BIv,Jrl;
crn={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}};Y$W={home:"eohps",search:"eosps",watch:"eowps"};_.yrn=["watch","search","home"];
_.y1=function(){this.JSC$14411_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14411_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.xZ("PRECONSTRUCTION_DELAY",0);this.signals_=_.rk();this.targetPage_=""};
_.y1.prototype.init=function(G,e){G=G===void 0?"":G;e=e===void 0?null:e;if(this.JSC$14411_isInitialized_)this.abort();else if(this.JSC$14411_isInitialized_=!0,G&&_.ArC(this,G),e){var r=_.Z7(this.signals_,"pcl")?0:10,Z=function(){for(var O=0,M;M=_.yrn[O++];)M!=G&&M!=e&&this.pendingPages_.push(M);_.F4C(this)}.bind(this);
this.signals_.parkOrScheduleJob(Z,r,"pcl")}};
_.y1.prototype.abort=function(){this.fragmentJobId_&&(_.A0.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);Jrl(this)};
_.ArC=function(G,e){G.JSC$14411_isInitialized_&&!G.targetPage_&&(G.targetPage_=e,BIv(G,e),G.isInitialPass_=!1,BIv(G,e),G.signals_.processSignal(Y$W[G.targetPage_]),Jrl(G),_.F4C(G))};
_.F4C=function(G){G.pendingPages_.length&&!G.pagePreparerJobId_&&(G.pagePreparerJobId_=_.IQ(_.A0,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.ArC(this,this.pendingPages_.shift())}.bind(G),G.DEFAULT_DELAY_))};
BIv=function(G,e){if(e=crn[e])for(var r in e){var Z=!1,O=r;r.charAt(0)=="~"&&(Z=!0,O=r.substring(1));var M=e[r];M=typeof M=="object"?M:{count:M};e[r]=M;M.componentName=O;M.count>0&&(G.isInitialPass_?Z||G.isSeenDuringInitialPass_[O]||(G.JSC$14411_queue_.push({componentName:O,count:1,signals:M.signals}),G.isSeenDuringInitialPass_[O]=!0,M.count--):G.JSC$14411_queue_.push(M))}};
Jrl=function(G){G.JSC$14411_queue_.length=0;G.targetPage_="";G.isInitialPass_=!0;G.signals_.processSignal("eop")};
_.y1.getInstance=function(){return _.Yi(_.y1)};var xEl=function(){this.signals=_.rk();this.init()};
xEl.prototype.startPreconstruction=function(){_.y1.getInstance().init(_.PX("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
xEl.prototype.init=function(){Pcj(this);window.Polymer&&eBP&&MIF();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var G=_.O_.ytcsi;if(G&&G.gt&&(G=G.gt())&&G.tick&&(G.tick.aft>0||G.tick.pbs>0)&&(_.PX("IS_HOMEPAGE_COLD")||_.PX("IS_RESULTS_PAGE_COLD")||_.PX("IS_WATCH_PAGE_COLD"))){UEl(this);break a}cXy(AOa,this.onNotifications,this)}};
var Pcj=function(G){var e=function(){G.signals.processSignal("dl")};
document.readyState==="complete"?(_.GG(Error("th"),"WARNING"),e()):_.$q$(window,"load",e)};
xEl.prototype.onNotifications=function(G){G.timer||(_.PX("IS_HOMEPAGE_COLD")||_.PX("IS_RESULTS_PAGE_COLD")||_.PX("IS_WATCH_PAGE_COLD"))&&UEl(this)};
var UEl=function(G){G.signals.parkOrScheduleJob(function(){G.signals.processSignal("eocs")},10,"eor")};
new xEl;var z6l=function(){return _.DQ.apply(this,arguments)||this};
_.K(z6l,_.DQ);_.iY.Object.defineProperties(z6l.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.R("enable_entity_store_from_dependency_injection")?_.uD():_.Yt()}}});
_.B([_.Em()],z6l);_.A5=[ph.prototype,z6l.prototype];var W4E=["ytd-rich-shelf-renderer"],Fw=function(){var G=_.DQ.apply(this,arguments)||this;G._noAccessors=!0;G.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";G.followUpDialogPromise=null;G.followUpDialogPromiseResolve=null;G.followUpDialogPromiseReject=null;return G};
_.K(Fw,_.DQ);_.V=Fw.prototype;_.V.dismissibleItemIsDismissedChanged_=function(G){_.R("kevlar_fluid_dismiss")&&(G?_.xy(this.hostElement,"yt-dismissible-item-dismissed"):_.xy(this.hostElement,"yt-dismissible-item-undismissed"))};
_.V.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.V.dismissibleItemReset_=function(){var G=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 _.aQ(function(e,r){G.followUpDialogPromiseResolve=e;G.followUpDialogPromiseReject=r});
_.xy(this.hostElement,"yt-enable-lockup-interaction")};
_.V.dismissibleItemOnYtServiceRequestSent_=function(G,e){e.actions&&this.dismissibleItemProcessActions(e.actions,G)};
_.V.dismissibleItemOnRequestSent=function(G){for(var e=_.h(G.detail),r=e.next();!r.done;r=e.next()){var Z=void 0;(r=(Z=_.a(r.value,_.eq))==null?void 0:Z.actions)&&this.dismissibleItemProcessActions(r,G)}};
_.V.dismissibleItemOnCommandSent=function(G,e){e&&this.dismissibleItemProcessActions(e,G)};
_.V.setAndGetDismissedContentId=function(G){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+G};
_.V.replayDismissAction=function(G){this.dismissibleItemProcessActions([G])};
_.V.dismissibleItemProcessActions=function(G,e){for(var r=0;r<G.length;r++){var Z=G[r],O=void 0;((O=_.a(Z,_.LO))==null?0:O.commands)&&this.dismissibleItemProcessActions(_.a(Z,_.LO).commands,e);if(_.a(Z,_.kA)){if(O=_.a(Z,_.kA),!O.replaceParentSection||W4E.includes(this.hostElement.nodeName.toLowerCase()))O.groupDismissal&&Ycq(this,O.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(O),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.bt("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:Z})),Z=void 0,(Z=e)==null||Z.stopPropagation()}else if(_.a(Z,jsc))this.dismissibleItemHandleHideEnclosingAction_(),Z=void 0,(Z=e)==null||Z.stopPropagation();else if(_.a(Z,Pdc))Z=_.a(Z,Pdc),O=void 0,((O=Z)==null?0:O.targetGroupId)&&Ycq(this,{targetGroupId:Z.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.bt("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
Z=void 0,(Z=e)==null||Z.stopPropagation();else if(_.a(Z,_.eq))(Z=_.a(Z,_.eq).actions)&&_.Wi(this.hostElement,Z,this.hostElement),Z=void 0,(Z=e)==null||Z.stopPropagation();else{var M=O=void 0;((O=_.a(Z,_.zr))==null?void 0:O.signal)!=="TELL_US_WHY"||((M=_.a(Z,_.zr))==null?0:M.targetId)&&_.R("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),Z=void 0,(Z=e)==null||Z.stopPropagation())}}};
_.V.dismissibleItemOnYtServiceRequestCompleted_=function(G,e){var r=this.get("feedbackResponses.0.followUpDialog",e.data);r?this.followUpDialogPromiseResolve(r):e.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(e.actions,G)};
_.V.dismissibleItemHandleReplaceEnclosingAction_=function(G){this.dismissedRenderer=G.item;this.isDismissed=!0;var e=null;(e=_.z1(this.hostElement).querySelector("#dismissed"))&&_.DE(this,function(){_.Mh(e)});
_.xy(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.V.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.V.dismissibleItemHandleUndoFeedbackAction_=function(){_.xy(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.V.dismissibleItemHandleTellUsWhySignalAction_=function(){var G=this;this.followUpDialogPromise.then(function(e){G.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:e}})})};
Fw.prototype.dismissibleItemOnYtServiceRequestCompleted_=Fw.prototype.dismissibleItemOnYtServiceRequestCompleted_;Fw.prototype.dismissibleItemOnCommandSent=Fw.prototype.dismissibleItemOnCommandSent;Fw.prototype.dismissibleItemOnRequestSent=Fw.prototype.dismissibleItemOnRequestSent;Fw.prototype.dismissibleItemOnYtServiceRequestSent_=Fw.prototype.dismissibleItemOnYtServiceRequestSent_;Fw.prototype.dismissibleItemDataChanged_=Fw.prototype.dismissibleItemDataChanged_;
Fw.prototype.dismissibleItemIsDismissedChanged_=Fw.prototype.dismissibleItemIsDismissedChanged_;_.B([_.k(_.h5),_.x("design:type",Object)],Fw.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],Fw.prototype,"ytdReduxBehavior",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Fw.prototype,"isDismissed",void 0);_.B([_.n(),_.x("design:type",Object)],Fw.prototype,"dismissedRenderer",void 0);
_.B([_.Me("isDismissed"),_.x("design:type",Function),_.x("design:paramtypes",[Boolean]),_.x("design:returntype")],Fw.prototype,"dismissibleItemIsDismissedChanged_",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Fw.prototype,"dismissibleItemDataChanged_",null);
_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.oV]),_.x("design:returntype")],Fw.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.B([_.Om("yt-service-request-sent-button-renderer"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Fw.prototype,"dismissibleItemOnRequestSent",null);
_.B([_.Om("yt-dismissible-item-action"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Array]),_.x("design:returntype")],Fw.prototype,"dismissibleItemOnCommandSent",null);_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.n1]),_.x("design:returntype")],Fw.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.B([_.Em()],Fw);_.J5=[_.h5,_.A5,Fw.prototype];var Bb=function(){var G=_.DQ.apply(this,arguments)||this;G.disableGridStateAware=!1;G.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};G.currentGridClass="";return G};
_.K(Bb,_.DQ);Bb.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.DE(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var G=this.gridStateAwareGetElement();_.Nv(G,"grid",!0)}};
Bb.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
Bb.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.z1(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
Bb.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var G="grid-disabled";else{G=_.tL.getInstance();var e=this.get("pageSubtype");G=e&&ZUj.includes(e)?"grid-disabled":G.currentSnapState_?G.currentSnapState_.className:null}(e=this.gridStateAwareGetElement())&&G!==this.currentGridClass&&(G&&_.Nv(e,G,!0),this.currentGridClass&&_.Nv(e,this.currentGridClass,!1),this.currentGridClass=G)};
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Bb.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",String)],Bb.prototype,"gridStateAwareSizingElementSelector",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Bb.prototype,"disableGridStateAware",void 0);_.B([_.Em()],Bb);_.x9=[Bb.prototype,_.gF.YtActionHandlerBehavior];_.Pb=new _.Gz("GUIDE_TOKEN");var zs;_.UN={};zs=function(){var G=_.DQ.apply(this,arguments)||this;G.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 G};
_.K(zs,_.DQ);_.V=zs.prototype;_.V.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.V.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var G=_.v_().resolve(_.bq(_.Pb));G&&(this.guidePersistentAndVisible=G.getGuidePersistentAndVisible(),this.activeEndpoint=G.getActiveEndpoint(),this.guideOpened=G.getGuideOpened(),this.miniGuideVisible=G.getMiniGuideVisible())};
_.V.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.V.handleGuideStateAction=function(G){this.guidePersistentAndVisible=G};
_.V.handleMiniGuideStateAction=function(G){this.miniGuideVisible=G};
_.V.handleGuideOpenedAction=function(G){this.guideOpened=G};
_.V.handleActiveEndpointAction=function(G){this.activeEndpoint=G};
zs.prototype.onActiveEndpointChange=zs.prototype.onActiveEndpointChange;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],zs.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],zs.prototype,"guidePersistentAndVisible",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],zs.prototype,"miniGuideVisible",void 0);_.B([_.n(),_.x("design:type",Object)],zs.prototype,"activeEndpoint",void 0);
_.B([_.Me("activeEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zs.prototype,"onActiveEndpointChange",null);_.B([_.n(),_.x("design:type",Boolean)],zs.prototype,"guideOpened",void 0);_.B([_.Em()],zs);_.UN.YtdGuideStateAwareBehavior=[];_.UN.YtdGuideStateAwareBehavior.push(zs.prototype,_.gF.YtActionHandlerBehavior);var NIv=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],Wb=function(){var G=_.DQ.apply(this,arguments)||this;G.hoverJobId=0;G.JSC$14438_touched=!1;return G};
_.K(Wb,_.DQ);_.V=Wb.prototype;_.V.created=function(){this.useExpandableTooltip=!NIv.includes(this.is)};
_.V.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.V.detached=function(){this.useExpandableTooltip=!1};
_.V.lockupOnDown=function(G){this.interactionElement&&!_.mO(_.na(G),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.V.lockupOnUp=function(G){this.interactionElement&&!_.mO(_.na(G),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.V.onTouchStart=function(){this.JSC$14438_touched=!0};
_.V.lockupOnMouseEnter=function(){var G=this,e=_.qt("kevlar_lockup_hover_delay",-1);this.JSC$14438_touched&&e>=0?(_.A0.cancelJob(this.hoverJobId),this.hoverJobId=_.A0.addJob(function(){G.lockupIsHovered=!0},8,e),this.JSC$14438_touched=!1):this.lockupIsHovered=!0};
_.V.lockupOnMouseLeave=function(){this.hoverJobId&&(_.A0.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.V.lockupOnPopupClosed=function(G,e){var r;((r=e.popupRenderer)==null?void 0:r.is)==="ytd-menu-popup-renderer"&&(G=e.popupRenderer.veData,e=_.l4(),G&&e&&_.up(e,[G]))};
_.V.lockupOnLockupRequested=function(G){var e=G.detail.videoIds[0],r;G.detail&&e===((r=this.data)==null?void 0:r.videoId)&&(G.detail.returnValue=[this.data])};
_.V.lockupOnYtServiceRequestSent=function(G,e){if(G=e.actions)for(var r=0;r<G.length;r++){var Z=G[r];if(Z.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&e.ajaxPromise){var O=void 0,M=(O=_.a(e.endpoint,_.BV))==null?void 0:O.playlistId;O=void 0;Z=(O=Z.removedVideoId)!=null?O:"";HI3(_.M6(),Z,M)}else Z.action==="ACTION_REMOVE_VIDEO"&&e.ajaxPromise&&(M=void 0,Z=(M=Z.setVideoId)!=null?M:"",_.dDC(_.M6(),Z))}};
_.V.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.V.lockupOnLockupEnabled=function(){if(!this.$){var G=_.v_().resolve(_.y$).getCurrentPage(),e=this.getParentRenderer?this.getParentRenderer():void 0;_.FH(new _.Cr("component not ready",this.is,this.isAttached,G==null?void 0:G.is,e==null?void 0:e.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
Wb.prototype.lockupOnLockupEnabled=Wb.prototype.lockupOnLockupEnabled;Wb.prototype.lockupOnLockupDisabled=Wb.prototype.lockupOnLockupDisabled;Wb.prototype.lockupOnYtServiceRequestSent=Wb.prototype.lockupOnYtServiceRequestSent;Wb.prototype.lockupOnLockupRequested=Wb.prototype.lockupOnLockupRequested;Wb.prototype.lockupOnPopupClosed=Wb.prototype.lockupOnPopupClosed;Wb.prototype.lockupOnMouseLeave=Wb.prototype.lockupOnMouseLeave;Wb.prototype.lockupOnMouseEnter=Wb.prototype.lockupOnMouseEnter;
Wb.prototype.onTouchStart=Wb.prototype.onTouchStart;Wb.prototype.lockupOnUp=Wb.prototype.lockupOnUp;Wb.prototype.lockupOnDown=Wb.prototype.lockupOnDown;_.B([_.n(),_.x("design:type",Object)],Wb.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Boolean)],Wb.prototype,"lockupIsHovered",void 0);_.B([_.n(),_.x("design:type",Boolean)],Wb.prototype,"lockupTouchTriggered",void 0);_.B([_.n(),_.x("design:type",Boolean)],Wb.prototype,"useExpandableTooltip",void 0);
_.B([_.hs("#interaction"),_.x("design:type",Object)],Wb.prototype,"interactionElement",void 0);_.B([_.Om("down"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Wb.prototype,"lockupOnDown",null);_.B([_.Om("up"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Wb.prototype,"lockupOnUp",null);
_.B([_.Om("touchstart"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wb.prototype,"onTouchStart",null);_.B([_.Om("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wb.prototype,"lockupOnMouseEnter",null);_.B([_.Om("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wb.prototype,"lockupOnMouseLeave",null);
_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],Wb.prototype,"lockupOnPopupClosed",null);_.B([_.Om("yt-lockup-requested"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Wb.prototype,"lockupOnLockupRequested",null);
_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.oV]),_.x("design:returntype")],Wb.prototype,"lockupOnYtServiceRequestSent",null);_.B([_.Om("yt-disable-lockup-interaction"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wb.prototype,"lockupOnLockupDisabled",null);
_.B([_.Om("yt-enable-lockup-interaction"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wb.prototype,"lockupOnLockupEnabled",null);_.B([_.Em()],Wb);_.NC=[Wb.prototype];_.L4c={YtdReduxBehavior:[]};_.L4c.YtdReduxBehavior.push.apply(_.L4c.YtdReduxBehavior,_.A5);var LK=function(){var G=_.DQ.apply(this,arguments)||this;G._noAccessors=!0;G.disableNowPlaying=!1;G.disableTooltips=!1;G.useHoveredProperty=!1;G.hovered=!1;G.isThumbnailHovered_=!1;G.addBackground=_.R("kevlar_thumbnail_bg");G.nowPlaying=!1;G.disableRounding=!1;G.size="small";return G};
_.K(LK,_.DQ);_.V=LK.prototype;_.V.computeThumbnailOverlaySidePanelWidth_=function(G,e){return G-e};
_.V.computeSize=function(G,e){if(!this.disableRounding){if(!G&&!e)return"small";G=Math.max(G||0,e||0);return G>=256?"large":G>=96?"medium":"small"}};
_.V.computeFinalHoveredState_=function(G,e,r){return this.nowPlaying?!1:_.R("kevlar_thumbnail_fluid")&&G?e:r};
_.V.computeHoverOverlays_=function(G,e){return G&&e?e:void 0};
_.V.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.V.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.V.checkMiniplayer_=function(){var G;if(((G=this.data)==null?0:G.playlistSetVideoId)&&_.R("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{G=_.sI();var e=G.currentEndpoint;!this.disableNowPlaying&&e&&_.a(e,_.u4)&&this.data?(e=_.a(e,_.u4),this.nowPlaying=this.data.playlistId?e.playlistId===this.data.playlistId:e.videoId===this.data.videoId,this.isVideoPlaying=G==null?void 0:G.isVideoPlaying):this.nowPlaying=!1}};
LK.prototype.checkMiniplayer_=LK.prototype.checkMiniplayer_;LK.prototype.onMouseLeave_=LK.prototype.onMouseLeave_;LK.prototype.onMouseEnter_=LK.prototype.onMouseEnter_;LK.prototype.computeHoverOverlays_=LK.prototype.computeHoverOverlays_;LK.prototype.computeFinalHoveredState_=LK.prototype.computeFinalHoveredState_;LK.prototype.computeSize=LK.prototype.computeSize;LK.prototype.computeThumbnailOverlaySidePanelWidth_=LK.prototype.computeThumbnailOverlaySidePanelWidth_;
_.B([_.k(_.A5),_.x("design:type",Object)],LK.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],LK.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Number)],LK.prototype,"height",void 0);_.B([_.n(),_.x("design:type",Boolean)],LK.prototype,"bottomSidePanel",void 0);_.B([_.n(),_.x("design:type",Number)],LK.prototype,"width",void 0);_.B([_.n(),_.x("design:type",Object)],LK.prototype,"disableNowPlaying",void 0);
_.B([_.n({selector:_.j6}),_.x("design:type",Boolean)],LK.prototype,"miniplayerIsActive",void 0);_.B([_.n(),_.x("design:type",Object)],LK.prototype,"disableTooltips",void 0);_.B([_.n(),_.x("design:type",Object)],LK.prototype,"useHoveredProperty",void 0);_.B([_.n(),_.x("design:type",Object)],LK.prototype,"hovered",void 0);_.B([_.n(),_.x("design:type",Object)],LK.prototype,"isThumbnailHovered_",void 0);
_.B([_.n({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.x("design:type",Boolean)],LK.prototype,"finalHoveredState_",void 0);_.B([_.n({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.x("design:type",Number)],LK.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],LK.prototype,"addBackground",void 0);
_.B([_.n({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.x("design:type",Object)],LK.prototype,"hoverOverlays_",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],LK.prototype,"nowPlaying",void 0);_.B([_.n(),_.x("design:type",Boolean)],LK.prototype,"isVideoPlaying",void 0);_.B([_.n(),_.x("design:type",Object)],LK.prototype,"disableRounding",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.x("design:type",Object)],LK.prototype,"size",void 0);_.B([_.Om("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],LK.prototype,"onMouseEnter_",null);_.B([_.Om("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],LK.prototype,"onMouseLeave_",null);
_.B([_.Me("data","disableNowPlaying","miniplayerIsActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],LK.prototype,"checkMiniplayer_",null);_.B([_.Em()],LK);var GpC=[LK.prototype];_.GJ={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(G,e){return G+":"+_.zS(e)},
getPlayerListener_:function(G,e,r){G=this.getPlayerListenerKey_(G,e);e=this.playerListeners_.get(G);r&&this.playerListeners_.delete(G);return e},
savePlayerListener_:function(G,e){var r=e.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(G,e),r);return r},
listenToPlayerEvent:function(G,e,r){r=this.savePlayerListener_(e,r);G.addEventListener(e,r)},
listenToPlayerEvents:function(G,e){e.forEach(function(r,Z){this.listenToPlayerEvent(G,Z,r)}.bind(this))},
unlistenFromPlayerEvent:function(G,e,r){r=this.getPlayerListener_(e,r,!0);G.removeEventListener(e,r)},
unlistenFromPlayerEvents:function(G,e){e.forEach(function(r,Z){this.unlistenFromPlayerEvent(G,Z,r)}.bind(this))}}};
_.ew=function(){};_.eCE=new _.Gz("PLAYER_API_TOKEN");var Jzy=!1,Udy,xdN=!1,WUA;var xO=function(G,e,r,Z,O){_.pB.call(this);var M=this;this.playerId=e;this.webPlayerContextConfig=Z;this.ay2=O;this.orG=!1;this.api={};this.oQg=this.l1g=null;this.cMO=new _.H_;this.gV={};this.jLw=this.kiA=this.elementId=this.sQI=this.config=null;this.gkM=!1;this.bD=this.fLM=null;this.bxA={};this.pmV=["onReady"];this.lastError=null;this.oq1=NaN;this.lGA={};this.g9f=0;this.kK=this.targetElement=G;_.Xx(this,this.cMO);rnl(this);r?this.g9f=setTimeout(function(){M.loadNewVideoConfig(r)},0):Z&&(Ziy(this),
Oiy(this))};
_.K(xO,_.pB);xO.prototype.getId=function(){return this.playerId};
xO.prototype.loadNewVideoConfig=function(G){if(!this.isDisposed()){this.g9f&&(clearTimeout(this.g9f),this.g9f=0);var e=G||{};e instanceof CKE||(e=new CKE(e));this.config=e;this.setConfig(G);Oiy(this);this.isReady()&&Mx3(this)}};
var Ziy=function(G){var e;G.webPlayerContextConfig?e=G.webPlayerContextConfig.rootElementId:e=G.config.attrs.id;G.elementId=e||G.elementId;G.elementId==="video-player"&&(G.elementId=G.playerId,G.webPlayerContextConfig?G.webPlayerContextConfig.rootElementId=G.playerId:G.config.attrs.id=G.playerId);var r;((r=G.kK)==null?void 0:r.id)===G.elementId&&(G.elementId+="-player",G.webPlayerContextConfig?G.webPlayerContextConfig.rootElementId=G.elementId:G.config.attrs.id=G.elementId)};
xO.prototype.setConfig=function(G){this.sQI=G;this.config=VxC(G);Ziy(this);if(!this.kiA){var e;this.kiA=hCy(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 r;if((r=this.config)==null?0:r.attrs)G=this.config.attrs,(e=G.width)&&this.kK&&(this.kK.style.width=uE(Number(e)||e,!0)),(G=G.height)&&this.kK&&(this.kK.style.height=uE(Number(G)||G,!0))};
xO.prototype.getConfig=function(){return this.sQI};
var Mx3=function(G){if(G.config&&G.config.loaded!==!0)if(G.config.loaded=!0,!G.config.args||G.config.args.autoplay!=="0"&&G.config.args.autoplay!==0&&G.config.args.autoplay!==!1){var e;G.api.loadVideoByPlayerVars((e=G.config.args)!=null?e:null)}else G.api.cueVideoByPlayerVars(G.config.args)},DXw=function(G){var e=!0,r=G.getPlayerElement();
r&&G.config&&(e=r.dataset.version===Tyl(G));return e&&!!_.Lz("yt.player.Application.create")},Oiy=function(G){if(!G.isDisposed()&&!G.gkM){var e=DXw(G);
if(e&&(G.getPlayerElement()?"html5":null)==="html5")G.jLw="html5",G.isReady()||ELn(G);else if(iiy(G),G.jLw="html5",e&&G.bD&&G.targetElement)G.targetElement.appendChild(G.bD),ELn(G);else{G.config&&(G.config.loaded=!0);var r=!1;G.fLM=function(){r=!0;var Z=biE(G,"player_bootstrap_method")?_.Lz("yt.player.Application.createAlternate")||_.Lz("yt.player.Application.create"):_.Lz("yt.player.Application.create");var O=G.config?VxC(G.config):void 0;Z&&Z(G.targetElement,O,G.webPlayerContextConfig,G.ay2);ELn(G)};
G.gkM=!0;e?G.fLM():(_.Hi(Tyl(G),G.fLM),(e=vL3(G))&&D84(e||""),wRE(G)&&!r&&_.Eu("yt.player.Application.create",null))}}};
xO.prototype.getPlayerElement=function(){var G=_.B5(document,this.elementId);!G&&this.kK&&this.kK.querySelector&&(G=this.kK.querySelector("#"+this.elementId));return G};
var ELn=function(G){if(!G.isDisposed()){var e=G.getPlayerElement(),r=!1;e&&e.getApiInterface&&e.getApiInterface()&&(r=!0);if(r){G.gkM=!1;if(!biE(G,"html5_remove_not_servable_check_killswitch")){var Z;if((e==null?0:e.isNotServable)&&G.config&&(e==null?0:e.isNotServable((Z=G.config.args)==null?void 0:Z.video_id)))return}$Xb(G)}else G.oq1=setTimeout(function(){ELn(G)},50)}},$Xb=function(G){rnl(G);
G.orG=!0;var e=G.getPlayerElement();if(e){G.l1g=ShE(G,e,"addEventListener");G.oQg=ShE(G,e,"removeEventListener");var r=e.getApiInterface();r=r.concat(e.getInternalApiInterface());for(var Z=G.api,O=0;O<r.length;O++){var M=r[O];Z[M]||(Z[M]=ShE(G,e,M))}}for(var T in G.gV)G.gV.hasOwnProperty(T)&&G.l1g&&G.l1g(T,G.gV[T]);Mx3(G);G.kiA&&G.kiA(G.api);G.cMO.publish("onReady",G.api)},ShE=function(G,e,r){var Z=e[r];
return function(){var O=_.Bw.apply(0,arguments);try{return G.lastError=null,Z.apply(e,O)}catch(M){if(r!=="sendAbandonmentPing")throw M.params=r,G.lastError=M,O=new _.Cr("PlayerProxy error in method call",{error:M,method:r,playerId:G.playerId}),O.level="WARNING",O;}}},rnl=function(G){G.orG=!1;
if(G.oQg)for(var e in G.gV)G.gV.hasOwnProperty(e)&&G.oQg(e,G.gV[e]);for(var r in G.lGA)G.lGA.hasOwnProperty(r)&&clearTimeout(Number(r));G.lGA={};G.l1g=null;G.oQg=null;e=G.api;for(var Z in e)e.hasOwnProperty(Z)&&(e[Z]=null);e.addEventListener=function(O,M){G.addEventListener(O,M)};
e.removeEventListener=function(O,M){G.removeEventListener(O,M)};
e.destroy=function(){G.dispose()};
e.getLastError=function(){return G.getLastError()};
e.getPlayerType=function(){return G.getPlayerType()};
e.getCurrentVideoConfig=function(){return G.getConfig()};
e.loadNewVideoConfig=function(O){G.loadNewVideoConfig(O)};
e.isReady=function(){return G.isReady()}};
xO.prototype.isReady=function(){return this.orG};
xO.prototype.addEventListener=function(G,e){var r=this;this.isDisposed();var Z=hCy(this,e);Z&&(_.Y4(this.pmV,G)||this.gV[G]||(e=qh3(this,G),this.l1g&&this.l1g(G,e)),this.cMO.subscribe(G,Z),G==="onReady"&&this.isReady()&&setTimeout(function(){Z(r.api)},0))};
xO.prototype.removeEventListener=function(G,e){this.isDisposed()||(e=hCy(this,e))&&this.cMO.unsubscribe(G,e)};
var hCy=function(G,e){var r=e;if(typeof e==="string"){if(G.bxA[e])return G.bxA[e];r=function(){var Z=_.Bw.apply(0,arguments),O=_.Lz(e);if(O)try{O.apply(_.O_,Z)}catch(M){throw Z=new _.Cr("PlayerProxy error when executing callback",{error:M}),Z.level="ERROR",Z;}};
G.bxA[e]=r}return r?r:null},qh3=function(G,e){var r=function(Z){var O=function(){G.isDisposed();
if(!G.isDisposed())try{G.cMO.publish(e,Z!=null?Z:void 0)}catch(E){var T=new _.Cr("PlayerProxy error when creating global callback",{error:E.message,event:e,playerId:G.playerId,data:Z,originalStack:E.stack,componentStack:E.componentStack});T.level="WARNING";throw T;}};
if(biE(G,"web_player_publish_events_immediately"))O();else{var M=setTimeout(function(){O();_.c2.remove(G.lGA,String(M))},0);
_.c2.add(G.lGA,String(M),!0)}};
return G.gV[e]=r};
xO.prototype.getPlayerType=function(){return this.jLw||(this.getPlayerElement()?"html5":null)};
xO.prototype.getLastError=function(){return this.lastError};
var iiy=function(G){G.cancel();rnl(G);G.jLw=null;G.config&&(G.config.loaded=!1);var e=G.getPlayerElement();e&&(DXw(G)||!wRE(G)?G.bD=e:(e&&e.destroy&&e.destroy(),G.bD=null));G.targetElement&&_.dc(G.targetElement)};
xO.prototype.cancel=function(){this.fLM&&_.n6N(Tyl(this),this.fLM);clearTimeout(this.oq1);this.gkM=!1};
xO.prototype.disposeInternal=function(){iiy(this);if(this.bD&&this.config&&this.bD.destroy)try{this.bD.destroy()}catch(e){var G=new _.Cr("PlayerProxy error during disposal",{error:e});G.level="ERROR";throw G;}this.bxA=null;for(G in this.gV)this.gV.hasOwnProperty(G)&&delete this.gV[G];this.sQI=this.config=this.api=null;delete this.targetElement;delete this.kK;_.pB.prototype.disposeInternal.call(this)};
var wRE=function(G){var e,r;G=(e=G.config)==null?void 0:(r=e.args)==null?void 0:r.fflags;return!!G&&G.indexOf("player_destroy_old_version=true")!==-1},Tyl=function(G){return G.webPlayerContextConfig?G.webPlayerContextConfig.jsUrl:(G=G.config.assets)?G.js:""},vL3=function(G){return G.webPlayerContextConfig?G.webPlayerContextConfig.cssUrl:(G=G.config.assets)?G.css:""},biE=function(G,e){if(G.webPlayerContextConfig)var r=G.webPlayerContextConfig.serializedExperimentFlags;
else{var Z;if((Z=G.config)==null?0:Z.args)r=G.config.args.fflags}return(r||"").split("&").includes(e+"=true")},VxC=function(G){for(var e={},r=_.h(Object.keys(G)),Z=r.next();!Z.done;Z=r.next()){Z=Z.value;
var O=G[Z];e[Z]=typeof O==="object"?_.c2.clone(O):O}return e};var rrA={},e6U="player_uid_"+(Math.random()*1E9>>>0);var r9=function(G,e,r,Z,O,M){e=e===void 0?document.createElement("div"):e;this.webPlayerContextConfig=G;this.container=e;this.commandResolver=r;this.apiResolver=Moa();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.G1;Z||M?txv(this):gLc(this);this.pendingPlayerResponse=Z;this.pendingWatchNextResponse=O;this.pendingPlayerVars=M;lxv(this)};
r9.prototype.loadVideoWithPlayerResponse=function(G,e,r){this.loadVideo(G,e,r)};
r9.prototype.loadVideoWithPlayerVars=function(G){return this.loadVideo(void 0,void 0,G)};
r9.prototype.destroy=function(G){if(G=_.B5(document,G))G=e6U+"_"+_.zS(G),(G=rrA[G])&&G.dispose()};
var jXW=function(G,e){var r;_.D(function(Z){if(Z.nextAddress==1)return G.pendingWatchNextResponse=e,G.synchronousApi?(r=G.synchronousApi,Z.jumpTo(2)):Z.yield(G.api,3);Z.nextAddress!=2&&(r=Z.yieldResult);if(!RCE(G,r))return Z.return();G.pendingWatchNextResponse&&(r.updateVideoData({raw_watch_next_response:G.pendingWatchNextResponse}),G.pendingWatchNextResponse=void 0);_.HL(Z)})},RCE=function(G,e){var r;
if(!(e==null?0:(r=e.isReady)==null?0:r.call(e))){var Z;_.FH(new _.Cr("playerApi is falsey",{synchronousApi:G.synchronousApi,apiResolved:G.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},axv=function(G,e){if(typeof G[e]==="function")return G[e]()},XR3=function(G){var e=window,r,Z=(r=e.ytplayer)==null?void 0:r.bootstrapPlayerContainer;
if((r=Z==null?void 0:Z.firstElementChild)&&_.yE(r,"html5-video-player")){var O,M,T=(O=e.ytplayer)==null?void 0:(M=O.bootstrapWebPlayerContextConfig)==null?void 0:M.contextId;O=G.webPlayerContextConfig.contextId;if(T&&T===O){Z!==G.container&&(Z=!1,axv(r,"getPlayerState")===2&&(Z=!0),G.container.appendChild(r),Z||axv(r,"playVideo"));var E;if((E=e.ytplayer)==null?0:E.bootstrapPlayerResponse)G.bootstrapPlayerResponse=e.ytplayer.bootstrapPlayerResponse}}},lxv=function(G){var e,r,Z,O,M;
_.D(function(T){if(T.nextAddress==1)return G.pageReadyOrDataAvailable?T.jumpTo(2):T.yield(G.pageReadyOrDataAvailableResolver.promise,2);if(T.nextAddress!=4)return!_.R("kevlar_player_unified_player_loading")||BCq()&&PIy()?T.jumpTo(4):T.yield(LUs(),4);XR3(G);if(G.pendingPlayerResponse||G.pendingPlayerVars)e=G0p(G.pendingPlayerResponse,G.pendingWatchNextResponse,G.pendingPlayerVars),G.pendingPlayerResponse&&G.pendingPlayerResponse===G.bootstrapPlayerResponse&&(e.loaded=!0),G.bootstrapPlayerResponse=
void 0;r=Ovp(G.container,e,G.webPlayerContextConfig);((Z=e)==null?0:Z.loaded)&&G.pendingWatchNextResponse?(jXW(G,G.pendingWatchNextResponse),G.pendingPlayerResponse=void 0,G.pendingPlayerVars=void 0):KpS(G);O=function(E){r.removeEventListener("onReady",O);G.synchronousApi=E;G.apiResolver.resolve(E)};
r.addEventListener("onReady",O);G.commandResolver!==void 0&&(M=G.commandResolver,r.addEventListener("innertubeCommand",function(E){M(E)}));
_.HL(T)})};
r9.prototype.loadVideo=function(G,e,r){var Z=this,O,M,T,E,b,w,q,t,g;return _.D(function(l){if(l.nextAddress==1)return Z.pendingPlayerResponse=G,Z.pendingWatchNextResponse=e,Z.pendingPlayerVars=r,txv(Z),Z.synchronousApi?(O=Z.synchronousApi,l.jumpTo(2)):l.yield(Z.api,3);l.nextAddress!=2&&(O=l.yieldResult);if(!RCE(Z,O))return l.return(new Promise(function(){}));
T=new Promise(function(X){M=X});
E=function(){var X=O.getPlayerResponse();X&&(O.removeEventListener("onVideoDataChange",E),M(X))};
O.addEventListener("onVideoDataChange",E);if(Z.pendingPlayerResponse||Z.pendingPlayerVars)Z.pendingPlayerResponse&&Z.pendingPlayerResponse===Z.bootstrapPlayerResponse?(M(Z.pendingPlayerResponse),Z.pendingWatchNextResponse&&jXW(Z,Z.pendingWatchNextResponse)):(b=G0p(Z.pendingPlayerResponse,Z.pendingWatchNextResponse,Z.pendingPlayerVars),(g=(w=Z.pendingPlayerResponse)==null?void 0:(q=w.playerConfig)==null?void 0:(t=q.playbackStartConfig)==null?void 0:t.startPaused)?O.cueVideoByPlayerVars(b.args):O.loadVideoByPlayerVars(b.args)),
KpS(Z),Z.bootstrapPlayerResponse=void 0;return l.return(T)})};
var gLc=function(G){if(document.readyState==="complete"||document.readyState==="interactive")txv(G);else{var e=function(){document.removeEventListener("DOMContentLoaded",e);txv(G)};
document.addEventListener("DOMContentLoaded",e)}},txv=function(G){G.pageReadyOrDataAvailable=!0;
G.pageReadyOrDataAvailableResolver.resolve()},KpS=function(G){G.pendingPlayerResponse=void 0;
G.pendingWatchNextResponse=void 0;G.pendingPlayerVars=void 0};
_.iY.Object.defineProperties(r9.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var Zr=function(G){p7.call(this,G===void 0?"document_active":G);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(r){e.transition("document_disposed",{event:r})});
window.addEventListener("beforeunload",function(r){e.transition("document_disposed_preventable",{event:r})});
window.addEventListener("unload",function(r){e.transition("document_disposed",{event:r});e.hasRun=new Map})};
_.K(Zr,p7);
Zr.prototype.runPreventableDispose=function(G,e){if(!this.hasRun.get("document_disposed_preventable")){G(e==null?void 0:e.event);var r,Z;if((e==null?0:(r=e.event)==null?0:r.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")};
Zr.prototype.runDispose=function(G,e){this.hasRun.get("document_disposed")?this.transition("document_active"):(G(e==null?void 0:e.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
Zr.prototype.runFlush=function(G,e){G(e==null?void 0:e.event);this.transition("document_active")};
Zr.prototype.runActive=function(){};var O1=function(G){p7.call(this,G===void 0?"document_visibility_unknown":G);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(r){document.visibilityState==="visible"?e.transition("document_visible",{event:r}):e.transition("document_hidden",
{event:r})});
_.R("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(r){e.transition("document_backgrounded",{event:r})}),window.addEventListener("focus",function(r){e.transition("document_foregrounded",{event:r})}))};
_.K(O1,p7);O1.prototype.runVisible=function(G,e){G(e==null?void 0:e.event);_.R("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
O1.prototype.runHidden=function(G,e){G(e==null?void 0:e.event);_.R("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
O1.prototype.runBackgrounded=function(G,e){G(e==null?void 0:e.event)};
O1.prototype.runForegrounded=function(G,e){G(e==null?void 0:e.event)};var M9=function(){this.teardownLifecycle=new Zr;this.visibilityLifecycle=new O1};
M9.prototype.install=function(){var G=_.Bw.apply(0,arguments),e=this;G.forEach(function(r){e.teardownLifecycle.install(r)});
G.forEach(function(r){e.visibilityLifecycle.install(r)})};var Vm=function(){M9.call(this);var G={};this.install((G.document_disposed={callback:this.abortSlisAndFlush},G));_.R("combine_ve_grafts")&&(G={},this.install((G.document_disposed={callback:this.flushInteractionLoggingAttachVes},G)));G={};this.install((G.flush_logs={callback:this.logFinalPayload},G));_.R("web_log_cfg_cee_ks")||_.IQ(_.A0,fxn)};
_.K(Vm,M9);var VoS=function(){Vm.loggingInstance||(Vm.loggingInstance=new Vm);return Vm.loggingInstance};
Vm.prototype.logFinalPayload=function(){if(_.R("web_fp_via_jspb")){var G=new drE,e=_.l4();e&&_.QB(G,1,e);e=_.R("jspb_sparse_encoded_pivot")?new Qx([{}]):new Qx;_.fj(e,380,otP,G);kMa("finalPayload",e);_.R("web_fp_via_jspb_and_json")&&_.cg("finalPayload",{csn:_.l4()})}else _.cg("finalPayload",{csn:_.l4()})};
Vm.prototype.abortSlisAndFlush=function(){lAP(OI);Ml!=null&&Ml.flush()};
Vm.prototype.flushInteractionLoggingAttachVes=function(){cMb(_.h_())};
var fxn=function(){var G=_.xZ("CLIENT_EXPERIMENT_EVENTS");if(G){var e=rSN();G=_.h(G);for(var r=G.next();!r.done;r=G.next())r=r.value,e(r)&&_.cg("genericClientExperimentEvent",{eventType:r});delete _.JH.CLIENT_EXPERIMENT_EVENTS}};var kpW={};
kpW.YtPlayerBehavior=[_.GJ.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 G=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.G1;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;h6F(function(){G.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.BJ(this,"pan-down"),_.R("kevlar_pinch_fullscreen")&&_.fh().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.R("kevlar_pinch_fullscreen")&&_.fh().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(G,e,r){var Z=this;P5(this.useUnifiedPlayer_());if(this.mainAppPlayer_)P5(!1,"MainAppPlayer already created.");else{var O=_.R("kevlar_player_container_query_killswitch")?this.$.container:_.z1(this.hostElement).querySelector("#container");this.mainAppPlayer_=new r9(this.getWebPlayerContextConfig_(),O,function(M){return _.es(M,Z.hostElement)},G,e,r);
this.mainAppPlayer_.api.then(function(M){Z.player_=M;Z.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&y$v.resolve(M)})}},
loadVideoWithPlayerResponse:function(G,e){var r=this;if(this.useUnifiedPlayer_()){var Z=this.watchNextData,O,M=(O=G.videoDetails)==null?void 0:O.videoId,T,E,b;(O=(T=this.watchNextData)==null?void 0:(E=T.currentVideoEndpoint)==null?void 0:(b=E.watchEndpoint)==null?void 0:b.videoId)&&M!=O&&(Z=void 0,_.R("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(G,Z,e):this.createMainAppPlayer_(G,Z,e);this.mainAppPlayer_.api.then(function(){_.xy(r.hostElement,
"yt-player-updated")})}else this.update(yzS(G,e))},
loadVideoWithPlayerVars:function(G){var e=this;this.useUnifiedPlayer_()?(_.R("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(G):this.createMainAppPlayer_(void 0,void 0,G),this.mainAppPlayer_.api.then(function(){_.xy(e.hostElement,"yt-player-updated")})):this.update({args:G})},
update:function(G){var e=this;if(this.useUnifiedPlayer_())P5(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(G);var r=xw4(G.args);r&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==r&&Object.assign(G.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(G).then(function(Z){_.xy(e.hostElement,"yt-player-updated",_.R("kevlar_player_updated_obsolete_player_killswitch")?
Z:void 0)})}_.AG(new _.Cr("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(G){var e=this,r;return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(e.getPlayerPromise(),2);r=Z.yieldResult;if(!r)throw Error("vh");G&&e.updatePlayerPlaylist_(G);_.HL(Z)})},
acquireApi_:function(G){var e=this;if(this.useUnifiedPlayer_())P5(!1,"Invalid method call in kevlar_unified_player.");else return _.A0.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(P5(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(r){e.shouldAutoplay_(G)?r.loadVideoByPlayerVars(G.args):r.cueVideoByPlayerVars(G.args)})):this.initPlayerPromise_=this.initPlayerContainer_(G),this.initPlayerPromise_},
initPlayerContainer_:function(G){var e=this;if(this.useUnifiedPlayer_())P5(!1,"Invalid method call in kevlar_unified_player.");else return P5(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.FH(Error("wh")),P5(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.R("kevlar_player_container_query_killswitch")?this.$.container:_.z1(this.hostElement).querySelector("#container"),LUs().then(function(){var r=e.initPlayer_(G);e.playerResolver_.resolve(r);
return r})},
onPlayerReady_:function(G,e){this.useUnifiedPlayer_()?P5(!1,"Invalid method call in kevlar_unified_player."):(G.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&y$v.resolve(G),e(G))},
maybeCallApiMethodOnElement_:function(G,e){if(typeof G[e]==="function")return G[e]()},
maybeAdoptBootstrapPlayer_:function(){var G=window,e,r=(e=G.ytplayer)==null?void 0:e.bootstrapPlayerContainer;if((e=r==null?void 0:r.firstElementChild)&&e.classList.contains("html5-video-player")){var Z,O,M=(Z=G.ytplayer)==null?void 0:(O=Z.bootstrapWebPlayerContextConfig)==null?void 0:O.contextId;Z=this.getWebPlayerContextConfig_().contextId;if(M&&M===Z){r!==this.playerContainer_&&(r=!1,this.maybeCallApiMethodOnElement_(e,"getPlayerState")===2&&(r=!0),this.playerContainer_.appendChild(e),r||this.maybeCallApiMethodOnElement_(e,
"playVideo"));var T;if((T=G.ytplayer)==null?0:T.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=G.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(G){var e=this;if(this.useUnifiedPlayer_())P5(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(r){e.maybeAdoptBootstrapPlayer_();var Z=G?AzS(G):void 0;Z&&Z==e.bootstrapPlayerResponse_&&(G.loaded=!0);Z=e.playerContainer_;var O=e.getWebPlayerContextConfig_();Z=Ovp(Z,G,O);e.player_=Z;e.onPlayerReadyEvent_=e.onPlayerReady_.bind(e,e.player_,r);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(G){G.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(G){G.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var G=_.v_().resolve(_.y$).getCurrentPage();G&&G.getScrollTop()<=0?_.BJ(this,"pan-down"):_.BJ(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(G){G.isFullscreen()||G.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(G){G.isFullscreen()&&G.toggleFullscreen()})},
updatePlayerPlaylist_:function(G){var e=this,r,Z,O;return _.D(function(M){if(M.nextAddress==1)return r=_.v_().resolve(_.bq(_.Gt)),Z=!!(r&&r.playlistComponent&&r.playlistComponent.loopOn),M.yield(e.getPlayerPromise(),2);var T=O=M.yieldResult,E=T.updatePlaylist,b=[];if(_.R("kevlar_player_playlist_use_local_index")){var w,q;var t=(q=(w=G.localCurrentIndex)!=null?w:G.currentIndex)!=null?q:0}else{var g;t=(g=G.currentIndex)!=null?g:0}if(G.contents)for(w=0;w<G.contents.length;w++)if((q=G.contents[w])&&q.playlistPanelVideoRenderer)if(U9S(q)){q=
q.playlistPanelVideoRenderer;g="";q.shortBylineText&&(g=_.mG(q.shortBylineText));var l="";q.title?l=_.mG(q.title):q.unplayableText&&(l=_.mG(q.unplayableText));b.push({author:g,title:l,encrypted_id:q.videoId})}else w<t&&--t;E.call(T,{index:t,list:G.playlistId?G.playlistId:"",loop:Z,playlist_title:G.title,playlist_length:b.length,video:b,fetch:0,external_list:"1",title:G.title?G.title:"",playlist_author:G.ownerName?_.mG(G.ownerName):void 0});_.HL(M)})},
focusOnPlayer:function(){_.DE(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var G=this.playerContainer_.querySelector(".html5-video-player");G&&(_.hv(_.v_().resolve(_.bZ)),G.focus())}})},
preparePlayer:function(){var G=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 r=function(){document.removeEventListener("DOMContentLoaded",r);e()};
document.addEventListener("DOMContentLoaded",r)}})).then(function(){return LUs()}).then(function(){G.initPlayerPromise_||G.preparePlayerJobId_||(G.preparePlayerJobId_=_.IQ(_.A0,function(){G.initPlayerPromise_||(G.initPlayerPromise_=G.initPlayerContainer_())}))}):_.AG(new _.Cr("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(G){this.useUnifiedPlayer_()?P5(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(G)||(G.args.autoplay="0")},
shouldAutoplay_:function(G){if(this.useUnifiedPlayer_())P5(!1,"Invalid method call in kevlar_unified_player.");else{var e=this.get("args.el",G);return e&&e!="detailpage"&&this.isMiniplayerActive_()||e&&(e=="sponsorshipsoffer"||e=="handlesclaiming")&&this.get("args.autoplay",G)=="0"?!1:(G=AzS(G))&&this.get("playerConfig.playbackStartConfig.startPaused",G)?!1:!0}},
isMiniplayerActive_:function(){return _.v_().resolve(_.fp).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var G=this.getPlayer();if(G){var e=G.getPlayerState();_.R("kevlar_player_check_ad_state_on_stop")&&(e=G.getPlayerState(G.getPresentingPlayerType()));e!=5&&G.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(G,e,r){r=r===void 0?!1:r;var Z=this,O,M,T,E;return _.D(function(b){if(b.nextAddress==1)return e||(e=Z.hostElement),O=Z.useUnifiedPlayer_()?!!Z.mainAppPlayer_:!!Z.initPlayerPromise_,O?b.yield(Z.getPlayerPromise(),2):(r?G.insertBefore(e,G.firstChild):G.appendChild(e),b.return());M=b.yieldResult;T=M.getPlayerState(M.getPresentingPlayerType());E=!1;if(T==-1||T==1||T==3)E=!0;r?G.insertBefore(e,G.firstChild):G.appendChild(e);E&&M.playVideo();M.setSize(NaN,NaN);_.HL(b)})},
watchNextDataChanged_:function(G){var e=this;G&&(this.useUnifiedPlayer_()&&_.R("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&jXW(this.mainAppPlayer_,G):this.getPlayerPromise().then(function(r){r.updateVideoData(e.computeWatchNextPlayerVars_(G))}))},
computeWatchNextPlayerVars_:function(G){if(this.useUnifiedPlayer_()&&_.R("kevlar_unified_player_update_watch_next_killswitch"))P5(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:G}},
maybeSendAbandonmentPing_:function(){var G=this.getPlayer();G&&G.getPlayerState()!=5&&G.getPlayerState()!=0&&G.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var G=_.xZ("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(G=Object.assign({},G),G.rootElementId=this.playerId);G.serializedExperimentIds&&G.serializedExperimentFlags||_.FH(Error("xh"));return G},
hasWebPlayerContextConfig_:function(){return!!_.xZ("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(G){this.useUnifiedPlayer_()?P5(!1,"Invalid method call in kevlar_unified_player."):_.es(G,this.hostElement)},
useUnifiedPlayer_:function(){var G=_.R("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.R("kevlar_unified_player")||G}}];var Hil={};Hil.YtPlaylistPanelBehavior=[_.W.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(G){G=G.detail;if(G.actions.loop!=void 0||G.actions["yt-icons:loop"]!=void 0)this.loopOn=G.actions.loop||G.actions["yt-icons:loop"];if(G.actions.shuffle!=void 0||G.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=G.actions.shuffle||G.actions["yt-icons:shuffle"]},
setMenuData_:function(G){if(!G||!G.playlistButtons||G.isInfinite)return null;for(var e=G.playlistButtons.menuRenderer.topLevelButtons,r=e.length,Z=0;Z<r;Z++)if(e[Z].toggleButtonRenderer){var O=e[Z].toggleButtonRenderer;O.defaultIcon.iconType=="LOOP"&&this.loopOn?O.isToggled=this.loopOn:O.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(O.isToggled=this.shuffleOn)}return G.playlistButtons}}];_.TJ={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(G,e,r){var Z=this.getClickTarget_(e);if(Z&&this.isClickAllowed_(Z)){e.preventDefault();G=(0,_.c2.unsafeClone)(G);var O=this.getContainerBoundingRect();e=this.getRelativeClickXy_(e,O);this.expandEndpointUrlMacros_(G,{NX:e[0],NY:e[1],NB:Z.code});r&&this.truncateWebCommendMetadataUrl_(G);_.xy(this.hostElement,"yt-navigate",{endpoint:G})}},
getClickTarget_:function(G){if(!this.clickTargetMap)return null;G=_.na(G)||[];G=_.h(G);for(var e=G.next();!e.done;e=G.next()){e=e.value;if(e===_.z1(this.hostElement).querySelector("#menu"))break;if(e=this.clickTargetMap.get(e.id))return e}return null},
getRelativeClickXy_:function(G,e){var r=Math.round(G.detail.x-e.left);G=Math.round(G.detail.y-e.top);return r<0||G<0?[null,null]:[r,G]},
getContainerBoundingRect:function(){return _.z1(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(G,e){for(var r=_.h(G.loggingUrls||[]),Z=r.next();!Z.done;Z=r.next())Z=Z.value,Z.baseUrl&&(Z.baseUrl=v8A(Z.baseUrl,e));G.urlEndpoint&&G.urlEndpoint.url&&(G.urlEndpoint.url=v8A(G.urlEndpoint.url,e));G.commandMetadata&&G.commandMetadata.webCommandMetadata&&G.commandMetadata.webCommandMetadata.url&&(G.commandMetadata.webCommandMetadata.url=v8A(G.commandMetadata.webCommandMetadata.url,e))},
truncateWebCommendMetadataUrl_:function(G){if(G.commandMetadata&&G.commandMetadata.webCommandMetadata&&G.commandMetadata.webCommandMetadata.url){var e=G.commandMetadata.webCommandMetadata.url,r=e.indexOf("&pp=");if(r>0){var Z=e.indexOf("&",r+1);G.commandMetadata.webCommandMetadata.url=Z>r&&Z<e.length?e.slice(0,r)+e.slice(Z):e.slice(0,r)}}},
configureClickTargets:function(G,e,r){this.containerId=G;this.clickTargetMap=new Map;G=_.h(e);for(e=G.next();!e.done;e=G.next())if(e=e.value,e.location){var Z=r.get(e.location);Z&&(_.Nv(_.z1(this.hostElement).querySelector("#"+Z),"yt-simple-endpoint",this.isClickAllowed_(e)),this.clickTargetMap.set(Z,e))}},
isClickAllowed_:function(G){return G.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||G.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||G.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||G.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.Dr={};
_.Dr.YtLazyListBehavior=[_.Zs.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 G=(this.constructor.generatedFrom||this).observers;G||(G=[]);G.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
G}},
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 G=this.renderElementsOutsideVisibleArea_;G&&(kQl(G,4),G.processSignal())},
deepLazyListObserver_:function(G){var e=this;if(G){var r=G.value||[];if(this.itemsPath==G.path){var Z=this.nonDeferredItemCount;G=0;Z>-1&&r.length>Z&&(G=_.xZ("REMAINING_DOVA_DEFERRED_CHUNKS",-1));G>0?(Z>0&&(Z=r.slice(0,Z),this.setInitialItemsOnDataChanged(Z)),(Z=this.renderElementsOutsideVisibleArea_)?Z.cancel():(Z=this.renderElementsOutsideVisibleArea_=new _.MG(2,"eocs"),_.$q$(window,"scroll",function(){return e.renderDeferredElements()})),_.Vf(Z,function(){e.setInitialItemsOnDataChanged(r)}),_.BX("REMAINING_DOVA_DEFERRED_CHUNKS",
G-1)):this.setInitialItemsOnDataChanged(r)}else if(this.itemsPath+".splices"==G.path)this.onItemsUpdated_(r);
else Z="shownItems"+G.path.substr(this.itemsPath.length),this.useSignals&&Z==="shownItems.length"||this.notifyPath(Z,G.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(G){G&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(G),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(G){G=G.indexSplices;for(var e=0,r=G.length;e<r;e++){var Z=G[e];if(Z.index<this.shownCount&&(Z.removed&&this.splice("shownItems",Z.index,Z.removed.length),Z.addedCount)){var O=Z.object.slice(Z.index,Z.index+Z.addedCount);Z=["shownItems",Z.index,0];Z.push.apply(Z,O);this.splice.apply(this,Z)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(G){this.cancelPendingTasks_();G||(G=[]);this.items_=G;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&&(_.PX("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.DE(this,this.tryRenderChunk_)))},
fillRange_:function(G,e){this.canShowMore&&this.items_&&(G=this.items_.slice(G,e),G.unshift("shownItems"),this.push.apply(this,G),this.shownCount=e,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var G=this;this.canShowMore&&_.sm(this,"renderChunk",function(){G.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.PX("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.w8(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var G=this.renderElementsOutsideVisibleArea_;G&&(G.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var G=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(G-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=G;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(G){return Math.ceil(1E3/G)},
onCanShowMoreUpdated_:function(G){this.data&&this.items_!==null&&(G?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(G){!this.shouldUseTaskManager()&&this.data&&(!G&&this.canShowMore?(_.KAU(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):G&&this.partiallyRenderedItems_.has(this.items_)&&(_.R("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var bB;_.E1={};
bB=function(){var G=_.DQ.apply(this,arguments)||this;G.atStart=!0;G.atEnd=!0;G.startIndex=0;G.endIndex=0;G.scrollCount=0;G.initialStartIndex=0;G.disableScrollEventListener=!1;G.useFloorScrolling=!1;G.isSearch=!1;G.dragging=!1;G.dragMouseStart=0;G.dragOffsetStart=0;G.disableWheelScroll=!1;G.centerListItems=!1;G.offset=0;G.minComponentWidth=0;G.marginWidthRight=0;G.marginWidthLeft=0;G.setButtonsStateRequested=!1;G.itemsVisibilityObserver=null;G.fullyVisibleItemsIndices=[];G.JSC$14500_onWheelScroll=function(e){if(G.isSearch&&
!G.disableWheelScroll&&_.R("desktop_enable_dmpanel_wheel_scroll")){var r=e.shiftKey?Math.abs(e.deltaY)>Math.abs(e.deltaX)?e.deltaY:e.deltaX:e.deltaX;r!==0&&(e.preventDefault(),G.ytLazyListBehavior.fillRemainingListItems(),G.offset+=r,iB(G),G.reposition_())}};
G.onPointerDown=function(e){dXE(G)&&(G.dragMouseStart=e.clientX,G.dragOffsetStart=G.offset,G.dragging=!0)};
G.onPointerMove=function(e){dXE(G)&&G.dragging&&(G.ytLazyListBehavior.fillRemainingListItems(),G.offset=G.dragOffsetStart-(e.clientX-G.dragMouseStart),iB(G),G.reposition_())};
G.onPointerUp=function(){dXE(G)&&(G.dragging=!1)};
return G};
_.K(bB,_.DQ);var oLW=function(G){var e=_.z1(G.hostElement).querySelector("#items").children;if(!e)return 0;var r=0;G=_.h(G.fullyVisibleItemsIndices);for(var Z=G.next();!Z.done;Z=G.next())r+=e[Z.value].clientWidth;return r},dXE=function(G){return G.isSearch&&_.R("desktop_enable_dmpanel_click_drag_scroll")};
bB.prototype.created=function(){this.cachedViewportWidth=_.xZ("initialInnerWidth")||window.innerWidth;this.JSC$14500_cachedViewportHeight=_.xZ("initialInnerHeight")||window.innerHeight;_.xZ("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.BX("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
bB.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.R("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();sXl(this)};
bB.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.R("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var G;(G=this.itemsVisibilityObserver)==null||G.disconnect();this.itemsVisibilityObserver=null;var e;(e=this.itemsObserver)==null||e.disconnect()};
var sXl=function(G){var e=_.z1(G.hostElement).querySelector("#scroll-container");if(e){if(!G.itemsVisibilityObserver){var r=window.getComputedStyle(e).marginRight;G.itemsVisibilityObserver=new IntersectionObserver(function(Z){QX3(G,Z)},{root:e,
rootMargin:r,threshold:.98})}if(e=_.z1(G.hostElement).querySelector("#items"))G.itemsObserver=new OCE(e,function(Z){Ixw(G,Z)})}},Ixw=function(G,e){pRP(G)&&(Array.from(e.addedNodes).filter(function(r){return r.nodeType===Node.ELEMENT_NODE}).forEach(function(r){G.itemsVisibilityObserver&&G.itemsVisibilityObserver.observe(r)}),Array.from(e.removedNodes).filter(function(r){return r.nodeType===Node.ELEMENT_NODE}).forEach(function(r){G.itemsVisibilityObserver&&G.itemsVisibilityObserver.unobserve(r)}))},
QX3=function(G,e){var r=new Set(G.fullyVisibleItemsIndices);
e=_.h(e);for(var Z=e.next();!Z.done;Z=e.next()){Z=Z.value;var O=Z.target.parentElement;O?(O=Array.from(O.children).indexOf(Z.target),Z.isIntersecting?r.add(O):r.has(O)&&r.delete(O)):_.FH(new _.Cr("Parent element not found",Z.target.nodeName))}G.fullyVisibleItemsIndices=Array.from(r).sort(function(M,T){return M-T});
r.size===0?_.FH(new _.Cr("No visible entries in horizontal list")):(G.startIndex=G.fullyVisibleItemsIndices[0],G.endIndex=G.fullyVisibleItemsIndices[G.fullyVisibleItemsIndices.length-1])},pRP=function(G){G.data?G=(G=G.data)&&G.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===G.itemSizeConstraint:!1:G=!1;
return G};
_.V=bB.prototype;_.V.addScrollEventListeners=function(){var G=_.z1(this.hostElement).querySelector("#scroll-container");G.style.touchAction="pan-y";G.addEventListener("wheel",this.JSC$14500_onWheelScroll);G.addEventListener("pointerdown",this.onPointerDown);G.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.V.removeScrollEventListeners=function(){var G=_.z1(this.hostElement).querySelector("#scroll-container");G.removeEventListener("wheel",this.JSC$14500_onWheelScroll);G.removeEventListener("pointerdown",this.onPointerDown);G.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.V.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.DE(this,this.setStartIndex,[this.initialStartIndex])};
_.V.reposition_=function(){var G=_.xZ("HTML_DIR")=="rtl"?"":"-",e=_.z1(this.hostElement).querySelector("#items");e&&(e.style.transform="translateX("+G+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.V.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.DE(this,this.setButtonsState_))};
_.V.setButtonsState_=function(){this.setButtonsStateRequested=!1;var G=_.z1(this.hostElement).querySelector("#items").firstElementChild;if(G){this.minComponentWidth||(this.minComponentWidth=CSv(this,G));G=_.z1(this.hostElement).querySelector("#scroll-container").clientWidth;var e=_.z1(this.hostElement).querySelector("#items");e=_.R("kevlar_horizontal_list_scroll_width_killswitch")?e.clientWidth:e.scrollWidth;var r=this.get(this.ytLazyListBehavior.itemsPath,this);if(r){var Z=Math.round(G/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+Z,r.length)-1)}this.ytLazyListBehavior.canShowMore?e+this.minComponentWidth>=this.offset+G&&(this.atEnd=!1):this.atEnd=this.offset+G>=e-20?!0:!1;this.atStart=this.offset<=20}};
_.V.setStartIndex=function(G){if(!this.minComponentWidth){var e=_.z1(this.hostElement).querySelector("#items").firstElementChild;if(!e)return;this.minComponentWidth=CSv(this,e)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*G;iB(this);this.reposition_()};
_.V.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Sk();var G=_.z1(this.hostElement).querySelector("#scroll-container").clientWidth;_.R("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=CSv(this,_.z1(this.hostElement).querySelector("#items").firstElementChild));G=this.useFloorScrolling?Math.floor(G/this.minComponentWidth)||1:Math.round(G/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&uZC(this);this.offset+=pRP(this)?
oLW(this):G*this.minComponentWidth;iB(this);this.reposition_();this.scrollCount++};
_.V.prevClick_=function(){var G=_.z1(this.hostElement).querySelector("#scroll-container").clientWidth;G=this.useFloorScrolling?Math.floor(G/this.minComponentWidth)||1:Math.round(G/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=pRP(this)?oLW(this):this.minComponentWidth*this.scrollCount-1):this.offset-=pRP(this)?oLW(this):G*this.minComponentWidth;this.centerListItems&&uZC(this);iB(this);this.reposition_()};
_.V.onIronResize_=function(){this.resizeSupportEnabled&&_.DE(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.V.onItemsTransitionEnd_=function(G){_.mk(G)===_.z1(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.V.onChildElementFocus_=function(G){G=G.target.closest("#items > *");var e=_.z1(this.hostElement).querySelector("#scroll-container");if(e.contains(G)){if(_.R("web_horizontal_list_behavior_focus_killswitch"))if(G.offsetLeft<this.offset)this.offset=Math.abs(G.offsetLeft)<G.clientWidth?0:G.offsetLeft;else if(G.offsetLeft+G.clientWidth>this.offset+e.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Sk(),this.offset=G.offsetLeft+G.clientWidth-e.clientWidth;else return;else{var r=_.z1(this.hostElement).querySelector("#items"),
Z=_.xZ("HTML_DIR")==="rtl",O=Z?r.clientWidth-G.offsetLeft:G.offsetLeft;r=Z?r.clientWidth-(G.offsetLeft+G.clientWidth):G.offsetLeft+G.clientWidth;var M=Z?O>this.offset+e.clientWidth:O<this.offset,T=Z?r<this.offset:r>this.offset+e.clientWidth,E=Z?M:T;if(Z?T:M)e=Z?r:O,this.offset=Math.abs(e)<G.clientWidth?0:e;else if(E)this.ytLazyListBehavior.fillRemainingListItems(),_.Sk(),this.offset=(Z?O:r)-e.clientWidth;else return}iB(this);this.reposition_()}};
_.V.observeShownItems_=function(){this.reset()};
_.V.checkComponentWidthResize=function(){var G=_.z1(this.hostElement).querySelector("#items").firstElementChild;G&&(G=CSv(this,G),this.centerListItems||G!==this.minComponentWidth)&&(this.minComponentWidth=G,this.offset=G*this.scrollCount,this.centerListItems&&uZC(this),iB(this),this.reposition_())};
var CSv=function(G,e){var r=window.getComputedStyle(e).marginRight;r=Math.floor(Number(r.replace("px","")));var Z=window.getComputedStyle(e).marginLeft;Z=Math.floor(Number(Z.replace("px","")));G.centerListItems&&!G.marginWidthRight&&(G.marginWidthRight=r,G.marginWidthLeft=Z);return G.resizeSupportEnabled?e.getBoundingClientRect().width+r:e.offsetWidth+r},iB=function(G){var e=_.z1(G.hostElement).querySelector("#scroll-container").clientWidth,r=_.z1(G.hostElement).querySelector("#items").clientWidth;
G.offset<0?G.offset=0:G.offset+e>=r&&(G.offset=r-e)},uZC=function(G){G.offset-=(_.z1(G.hostElement).querySelector("#scroll-container").clientWidth+G.marginWidthRight-G.minComponentWidth)/2-G.marginWidthLeft};
_.iY.Object.defineProperties(bB.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var G=_.xZ("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(G==-1)G=this.JSC$14500_cachedViewportHeight,G=G>1320?5:G>1020?4:G>730?3:G>430?2:1;else if(G==0)return 0;_.BX("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",G-1);G=_.xZ("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(G>-1)return G;G=this.cachedViewportWidth;G=G>1600?6:G>1400?5:G>1300?4:G>1090?5:G>870?4:G>660?3:2;_.BX("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
G);return G},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.R("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
bB.prototype.observeShownItems_=bB.prototype.observeShownItems_;bB.prototype.onChildElementFocus_=bB.prototype.onChildElementFocus_;bB.prototype.onItemsTransitionEnd_=bB.prototype.onItemsTransitionEnd_;bB.prototype.onIronResize_=bB.prototype.onIronResize_;bB.prototype.prevClick_=bB.prototype.prevClick_;bB.prototype.nextClick_=bB.prototype.nextClick_;bB.prototype.setButtonsState_=bB.prototype.setButtonsState_;bB.prototype.requestButtonsStateUpdate_=bB.prototype.requestButtonsStateUpdate_;
bB.prototype.reposition_=bB.prototype.reposition_;bB.prototype.reset=bB.prototype.reset;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],bB.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.Dr.YtLazyListBehavior),_.x("design:type",Object)],bB.prototype,"ytLazyListBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],bB.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],bB.prototype,"atStart",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],bB.prototype,"atEnd",void 0);_.B([_.n(),_.x("design:type",Object)],bB.prototype,"startIndex",void 0);_.B([_.n(),_.x("design:type",Object)],bB.prototype,"endIndex",void 0);_.B([_.n({value:6}),_.x("design:type",Number)],bB.prototype,"initialCount",void 0);_.B([_.n(),_.x("design:type",Object)],bB.prototype,"scrollCount",void 0);_.B([_.n(),_.x("design:type",Object)],bB.prototype,"initialStartIndex",void 0);
_.B([_.n(),_.x("design:type",Object)],bB.prototype,"disableScrollEventListener",void 0);_.B([_.n(),_.x("design:type",Object)],bB.prototype,"supportComponentResize",void 0);_.B([_.n({value:function(){var G=this;return function(){return G.prevClick_()}}}),
_.x("design:type",Function)],bB.prototype,"boundPrevClick",void 0);_.B([_.n({value:function(){var G=this;return function(){return G.nextClick_()}}}),
_.x("design:type",Function)],bB.prototype,"boundNextClick",void 0);_.B([_.n(),_.x("design:type",Object)],bB.prototype,"useFloorScrolling",void 0);_.B([_.n(),_.x("design:type",Object)],bB.prototype,"isSearch",void 0);_.B([_.n(),_.x("design:type",Object)],bB.prototype,"dragging",void 0);_.B([_.n(),_.x("design:type",Object)],bB.prototype,"dragMouseStart",void 0);_.B([_.n(),_.x("design:type",Object)],bB.prototype,"dragOffsetStart",void 0);
_.B([_.n(),_.x("design:type",Object)],bB.prototype,"disableWheelScroll",void 0);_.B([_.n(),_.x("design:type",Object)],bB.prototype,"centerListItems",void 0);_.B([_.Om("iron-resize"),_.Me("guideOpened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bB.prototype,"onIronResize_",null);_.B([_.Om("transitionend"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],bB.prototype,"onItemsTransitionEnd_",null);
_.B([_.Om("focusin"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],bB.prototype,"onChildElementFocus_",null);_.B([_.Me("shownItems"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bB.prototype,"observeShownItems_",null);_.B([_.Em()],bB);_.E1.YtdHorizontalListBehavior=[];_.E1.YtdHorizontalListBehavior.push(_.CS,_.W.YtRendererBehavior,_.Dr.YtLazyListBehavior,_.UN.YtdGuideStateAwareBehavior,bB.prototype);var DEF=["APP_STATE","PI"];var vZ,w9=function(G){this.hostElement=G},$_=function(G,e){if(e&&(vls(e.viewableCommands)||vls(e.endOfSessionCommands))){var r=$Ef(e.viewableCommands);
e=$Ef(e.endOfSessionCommands);if(!vZ){var Z=_.qt("custom_active_view_tos_timeout_ms");vZ=Z>0&&Z!==36E5?new yRq(w7s(),Z):new yRq(w7s())}Fqa(vZ,G.hostElement);JRq(vZ,G.hostElement,r,e)}},Sw=function(G){vZ&&Fqa(vZ,G.hostElement)};var nLS=_.Cp(["about:blank"]),mXC={pushState:window.history.pushState,replaceState:window.history.replaceState};var q9=function(G){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=G;this.internalPushState=G.pushState.bind(G);this.internalReplaceState=G.replaceState.bind(G)};
q9.prototype.init=function(){this.initialized=!0};
q9.prototype.pushState=function(G,e){this.initialized||this.init();this.internalPushState&&this.internalPushState(G,"",e)};
q9.prototype.replaceState=function(G,e){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(G,"",e)};
q9.prototype.getState=function(){return this.history&&this.history.state};var cnw=function(G){var e=function(){var r=G.apply(this,arguments)||this;r.boundHistoryPushState=!1;r.boundHistoryReplaceState=!1;r.debugInfo={};return r};
_.K(e,G);e.prototype.init=function(){var r=_.Hp("IFRAME");_.Ge(r,_.qK(nLS));r.sandbox="allow-same-origin";r.style.display="none";this.iframe=r;document.body.appendChild(r);this.bindHistoryStateFunctions();G.prototype.init.call(this)};
e.prototype.bindHistoryStateFunctions=function(){var r=this,Z=[],O;this.iframe&&((O=this.iframe.contentWindow)==null?0:O.history)&&(O=this.iframe.contentWindow.history)&&(Z.push(O),Object.getPrototypeOf(O)&&Z.push(Object.getPrototypeOf(O)));window.history&&Z.push(window.history);O=window.history;Object.getPrototypeOf(O)&&Z.push(Object.getPrototypeOf(O));Z.push(mXC);O=function(T){for(var E=null,b=0;b<Z.length;b++){var w=Z[b][T];if(typeof w==="function"){E=w.bind(window.history);r.debugInfo[T]=b;break}}return E};
if(!this.boundHistoryReplaceState){var M=O("replaceState");M&&(this.internalReplaceState=M,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(O=O("pushState"))&&(this.internalPushState=O,this.boundHistoryPushState=!0)};
return e}(q9),YhW=function(){return cnw.call(this,window.history)||this};
_.K(YhW,cnw);YhW.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var tv=function(G){this.browserHistory=G;this.initialized=!1};
tv.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
tv.prototype.pushState=function(G,e){this.initialized||this.init();this.browserHistory.pushState(G,e)};
tv.prototype.replaceState=function(G,e){this.initialized||this.init();this.browserHistory.replaceState(G,e)};
tv.prototype.handlePopstate=function(G){return G.state};_.ynj=function(G,e,r,Z,O){this.endpoint=G;this.forward=e;this.historyEntry=r;this.JSC$30483_savedComponentState=Z;this.legacyBorder=O===void 0?!1:O};var Anv=function(G,e){this.rootData=G;this.scrollTop=e};_.g9=new _.Gz("EPHEMERAL_STORE_TOKEN");_.lB=function(G){this.data=Object.assign({},G);var e;(e=this.data.innertubeResponse)==null||delete e.frameworkUpdates};
_.lB.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.vG)()};
_.AZ=function(G){return Object.assign({},G.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var Fpn=function(){this.maxSize=100;this.timeToDataCache=new Map};
Fpn.prototype.get=function(G){var e=this.timeToDataCache.get(G);e&&(this.timeToDataCache.delete(G),this.timeToDataCache.set(G,e));if(e&&e.rootData&&(_.R("web_use_response_store_for_history_cache")||_.R("mweb_use_new_history_manager"))){var r=_.v_().resolve(_.g9),Z=Jn3(e),O=!!Z;if(Z){if(Z.content){var M=RA(r,Z.content);O&&M?e.rootData.response=_.AZ(M):O=!1}Z.player&&(M=RA(r,Z.player),O&&M?e.rootData.playerResponse=_.AZ(M):O=!1);Z.reelSequence&&(r=RA(r,Z.reelSequence),O&&r?e.rootData.reelWatchSequenceResponse=
_.AZ(r):O=!1)}O||(this.timeToDataCache.delete(G),e=void 0)}return e};
Fpn.prototype.set=function(G,e){if(e.rootData&&(_.R("web_use_response_store_for_history_cache")||_.R("mweb_use_new_history_manager"))){var r=Jn3(e),Z=Object.assign({},e.rootData);r&&(r.content&&e.rootData.response&&(ByS(this,r.content,e.rootData.response),Z.response=null),r.player&&e.rootData.playerResponse&&(ByS(this,r.player,e.rootData.playerResponse),Z.playerResponse=null),r.reelSequence&&e.rootData.reelWatchSequenceResponse&&(ByS(this,r.reelSequence,e.rootData.reelWatchSequenceResponse),Z.reelWatchSequenceResponse=
null));e=new Anv(Z,e.scrollTop)}this.timeToDataCache.has(G)?this.timeToDataCache.delete(G):this.timeToDataCache.size>=this.maxSize&&(r=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(r.value));this.maxSize!==0&&this.timeToDataCache.set(G,e)};
Fpn.prototype.clear=function(){this.timeToDataCache.clear()};
var Jn3=function(G){var e=_.v_().resolve(_.bq(_.vz)),r;if((r=G.rootData)==null?0:r.endpoint)return e==null?void 0:RAS(e,G.rootData.endpoint);var Z;_.FH(new _.Cr("History snapshot response data does not contain endpoint",(Z=G.rootData)==null?void 0:Z.url));return null},ByS=function(G,e,r){if(G.maxSize>0){var Z;
(G=(Z=r.responseContext)==null?void 0:Z.maxAgeSeconds)&&Number(G)>0&&(Z=_.v_().resolve(_.g9),r=W5(r,G),Z.put(e,new _.lB(r)))}};var xXW=function(G,e,r){this.endpoint=e;this.JSC$30489_savedComponentState=r===void 0?null:r;this.entryTime=G};var toA=1;var jw=function(G){var e=function(){var r=G.apply(this,[].concat(_.mY(_.Bw.apply(0,arguments))))||this;r.historyEntryTime=0;r.historySnapshotCache=r.createHistoryCache();return r};
_.K(e,G);e.prototype.createHistoryCache=function(){return new Fpn};
e.prototype.saveAndReplace=function(r,Z,O){var M=window.location.href;var T=T===void 0?{}:T;var E=(E=this.browserHistory.getState())&&E.entryTime?E.entryTime:glN();r=this.createNewHistoryEntry(r,T,E);this.saveSnapshot(E,Z,O);this.replaceState(r,M||window.location.href)};
e.prototype.saveAndPush=function(r,Z,O,M,T){T=T===void 0?{}:T;this.saveSnapshot(this.historyEntryTime,O,M);O=this.historySnapshotCache;M=this.historyEntryTime;var E=O.timeToDataCache.keys();E=_.h(E);for(var b=E.next();!b.done;b=E.next())b=b.value,b>M&&O.timeToDataCache.delete(b);Z=this.createNewHistoryEntry(Z,T);this.pushState(Z,r)};
e.prototype.saveSnapshot=function(r,Z,O){this.historySnapshotCache.set(r,new Anv(Z,O))};
e.prototype.createNewHistoryEntry=function(r,Z,O){O=O===void 0?glN():O;return new xXW(O,r,Z)};
e.prototype.handlePopstate=function(r){var Z=G.prototype.handlePopstate.call(this,r),O=null,M=null,T=!1,E=null;Z&&Z.entryTime&&(E=this.historySnapshotCache.get(Z.entryTime)||null,T=Z.entryTime>this.historyEntryTime,this.historyEntryTime=Z.entryTime,O=Z.endpoint,M=Z.JSC$30489_savedComponentState);this.handleHistoryCacheLoad(new _.ynj(O,T,E,M),r);return Z};
e.prototype.pushState=function(r,Z){Number(r==null?void 0:r.entryTime)>=0&&(this.historyEntryTime=r.entryTime);G.prototype.pushState.call(this,r,Z)};
e.prototype.replaceState=function(r,Z){Number(r==null?void 0:r.entryTime)>=0&&(this.historyEntryTime=r.entryTime);G.prototype.replaceState.call(this,r,Z)};
e.prototype.handleHistoryCacheLoad=function(){};
return e}(tv),PSw=function(){var G=jw.call(this,new YhW)||this;
G.dispatchElement=null;G.entryIndex=0;return G};
_.K(PSw,jw);_.V=PSw.prototype;_.V.init=function(G){G=G===void 0?!0:G;jw.prototype.init.call(this);this.initialized||(G||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.V.handlePopstate=function(G){var e=null;G.state||(e="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return jw.prototype.handlePopstate.call(this,G);var r=new CustomEvent("yt-history-pop",{cancelable:!0});_.Pi(this.dispatchElement,"yt-history-pop",[r,{errorMsg:e}]);_.UW(this.dispatchElement,"yt-close-all-popups-action");if(!r.defaultPrevented){r=_.v_().resolve(_.y$);e=r.getCurrentData();var Z=r.getCurrentPage();r=0;Z?(Z=_.Pi(this.dispatchElement,"yt-get-page-offset",
[Z]),Z.length>0&&(r=Z[0])):_.FH(new _.Cr("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:e?e.page:"undefined"}));e&&(e.csn=_.l4());this.saveSnapshot(this.historyEntryTime,e,r)}return jw.prototype.handlePopstate.call(this,G)};
_.V.handleHistoryCacheLoad=function(G,e){G.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.h(_.UW(this.dispatchElement,"yt-history-will-navigate",[e])).next().value||_.Pi(this.dispatchElement,"yt-history-load",[e,G]))};
_.V.pushState=function(G,e){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var r=new _.Cr("history.pushState is not a function",this.getDebugString());_.yx(r)}jw.prototype.pushState.call(this,G,e)};
_.V.replaceState=function(G,e){if(!this.browserHistory.boundHistoryReplaceState){var r=new _.Cr("history.replaceState is not a function",this.getDebugString());_.yx(r)}jw.prototype.replaceState.call(this,G,e)};
_.V.saveAndPush=function(G,e,r,Z,O){O=O===void 0?{}:O;r&&(r.csn=_.l4());jw.prototype.saveAndPush.call(this,G,e,r,Z,O)};
_.V.getDebugString=function(){var G=[];this.initialized&&G.push("i");this.browserHistory.boundHistoryReplaceState&&G.push("bhr");this.browserHistory.boundHistoryPushState&&G.push("bhs");"replaceState"in this.browserHistory.debugInfo&&G.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&G.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&G.push("ei:"+String(this.entryIndex));return G.join(",")};
_.aA=function(G,e){G.init(!0);var r=G.browserHistory.getState();G.replaceState(r,zh(e))};
PSw.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.XL=new _.Gz("DESKTOP_HISTORY_MANAGER_TOKEN");var UXc=[10,20,30,40,50,60],KJ=function(){this.currentPartitionIndex=0},zCl=function(G){HXw({mainAppWeb:_.IB(),
survivalSli:{partitionMinute:G,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},Wpy=function(G){HXw({mainAppWeb:_.IB(),
survivalSli:{partitionMinute:G,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},Nyb=function(G){return G.currentPartitionIndex>=0&&G.currentPartitionIndex<UXc.length?UXc[G.currentPartitionIndex]:-1},Lpv=function(G){return G.currentPartitionIndex>0&&G.currentPartitionIndex-1<UXc.length?UXc[G.currentPartitionIndex-1]:-1};
KJ.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var G=Lpv(this);G>0&&Wpy(G);G=Nyb(this);G>0&&zCl(G);GfE(this)}};
var GfE=function(G){var e=Nyb(G);if(e>0){var r=Lpv(G);r<0&&(r=0);G.intervalId=_.A0.addJob(function(){var Z=Lpv(G);Z>0&&Wpy(Z);Z=Nyb(G);Z>0&&zCl(Z);GfE(G)},3,(e-r)*6E4);
G.currentPartitionIndex+=1}else G.currentPartitionIndex=-1};var exy=function(G){gE.call(this,G,132);this.isDocument=G===document.documentElement};
_.K(exy,gE);exy.prototype.calculateScrollDelta=function(G,e,r){var Z=0;G<e?Z=G<e-100?-48:-8:G>e+r&&(Z=G>e+r+100?48:8);return Z};
exy.prototype.JSC$11400_onMouseMove=function(G){this.isDocument||(G.clientX=G.event_.pageX,G.clientY=G.event_.pageY);gE.prototype.JSC$11400_onMouseMove.call(this,G)};_.rjv=function(G,e){var r=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14554_dragListGroup=null;this.onDraggerCreated=function(Z){var O=Z.JSC$11396_dragger;O.scrollTarget_=r.scrollElement;Z=Z.draggerEl;O&&Z.menuOpened&&O.setEnabled(!1)};
this.onDragStart=function(Z){var O=Z.draggerEl;Z=Z.currDragItem;var M=Object.assign({},Z==null?void 0:Z.data);M.trackingParams=void 0;O.data=M;O.style.position="absolute";O.style.width=(Z==null?void 0:Z.clientWidth)+"px";O.style.zIndex="2030";O.onDrag&&O.onDrag();Z=_.F$(O);(M=Z.querySelector("ytd-app"))?_.z1(M).appendChild(O):Z.body.appendChild(O);r.dragScrollSupport=new exy(r.scrollElement);r.dragScrollSupport.horizontalScrolling_=!1;O=r.dragScrollSupport;O.constrainScroll_=!!O.margin_&&!1};
this.onDrop=function(Z){r.handleDrop(Z);r.dragScrollSupport&&(_.TX(r.dragScrollSupport),r.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(r.JSC$14554_dragListGroup){var Z=r.JSC$14554_dragListGroup;H1W(Z,Z.currDragItem_)}};
this.handleDrop=e};
_.fJ=function(G){G.JSC$14554_dragListGroup&&(_.Rb(G.JSC$14554_dragListGroup,gOW,G.onDragStart),_.Rb(G.JSC$14554_dragListGroup,apy,G.onDragStart),G.JSC$14554_dragListGroup.dispose(),G.JSC$14554_dragListGroup=null);G.dragScrollSupport&&(_.TX(G.dragScrollSupport),G.dragScrollSupport=null);G.scrollElement.removeEventListener("scroll",G.onReorderableScroll)};
_.ZAn=function(G,e,r,Z){Z=Z===void 0?"":Z;_.fJ(G);r&&(G.scrollElement=r);G.JSC$14554_dragListGroup=new AY;G.JSC$14554_dragListGroup.hysteresisDistance_=2;KOc(G.JSC$14554_dragListGroup,e);G.JSC$14554_dragListGroup.draggerElClasses_=$4("dragging").split(" ");Z&&fpS(G.JSC$14554_dragListGroup,function(O){var M=O||document,T=null;M.getElementsByClassName?T=M.getElementsByClassName(Z)[0]:T=Vz3("*",Z,O);return T||O});
_.w2(G.JSC$14554_dragListGroup,qbW,G.onDraggerCreated);_.w2(G.JSC$14554_dragListGroup,gOW,G.onDragStart);_.w2(G.JSC$14554_dragListGroup,apy,G.onDrop);G.JSC$14554_dragListGroup.init();G.scrollElement.addEventListener("scroll",G.onReorderableScroll,{passive:!0})};
_.iY.Object.defineProperties(_.rjv.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var OAv=function(){this.skipNextNavigation=!1},MAE=function(G,e,r){if(!e)return!1;
if(G.skipNextNavigation)return G.skipNextNavigation=!1;if(_.a(r,_.G2))return!1;var Z,O,M;if((Z=_.a(r,_.Mv))==null?0:(O=Z.browseEndpointContextSupportedConfigs)==null?0:(M=O.browseEndpointContextMainConfig)==null?0:M.skipConfirmation)return!1;var T;return((T=_.a(e.commandMetadata,_.rJ))==null?void 0:T.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
OAv.prototype.showConfirmationDialog=function(G,e){this.navigateParams=e;this.customConfirmationCommand?_.v_().resolve(_.$1).resolveCommand(this.customConfirmationCommand):(e={openPopupAction:{popup:{confirmDialogRenderer:{title:_.nQ(_.OK("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.nQ(_.OK("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.nQ(_.OK("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.nQ(_.OK("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.e8.getInstance().triggerAction("yt-open-popup-action",e,G))};
OAv.prototype.cancelPendingNavigation=function(){var G;((G=this.navigateParams)==null?void 0:G.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var VA3=function(){},Tay=function(G,e,r,Z,O,M,T){r=r===void 0?{}:r;
T=T===void 0?{}:T;var E=_.v_().resolve(_.vz),b,w=(b=_.a(e,_.G2))==null?void 0:b.url;return w?Zss(E,w,r,window.location.href,function(q,t){hxl(G,q,t,!1,!0,r,M,Z)},function(){return!1}):dB(E,e,r,window.location.href,hX(e),function(q,t){hxl(G,q,t,!1,!0,r,M,Z)},O,T)},hxl=function(G,e,r,Z,O,M,T,E){if(!G.JSC$14569_chunkHandler)if(r.page==="learning_journey_watch"&&_.R("web_enable_canvas_on_learning_journey")){var b=!_.a(E,_.Mv);
O=O||Z;if(b)if(O){if(_.R("kevlar_continue_playback_without_player_response")){var w;var q=(w=_.a(E,_.u4))==null?void 0:w.videoId}Z={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:Z,previousVideoId:q},tempData:M}}else Z={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else Z={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};G.JSC$14569_chunkHandler=new zHS(_.Ff,Z,T,b,O)}else if(r.page==="watch"||r.page==="learning_journey_watch")if(O||Z){if(_.R("kevlar_continue_playback_without_player_response")){var t;
b=(t=_.a(E,_.u4))==null?void 0:t.videoId}G.JSC$14569_chunkHandler=new LAc(_.Ff,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:Z,previousVideoId:b},tempData:M},T)}else G.JSC$14569_chunkHandler=new P8l(_.Ff);else r.page==="shorts"&&O&&!Z?G.JSC$14569_chunkHandler=new Ni3(_.Ff,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:M},T):G.JSC$14569_chunkHandler=new UDw(T);G.JSC$14569_chunkHandler.processChunk({endpoint:e,data:r});return G.JSC$14569_chunkHandler.wI.promise},
Df3=function(G,e,r,Z,O){(r=_.v3S(r))&&hxl(G,e,r,!1,!0,Z,void 0,O)};_.ETv=new _.Gz("NAVIGATION_SERVICE_TOKEN");var iAl=function(){this.pendingNavigationPromise=null};
_.V=iAl.prototype;_.V.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.V.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.V.addEventListener=function(){throw Error("yh");};
_.V.dispatchEvent=function(){throw Error("yh");};
_.V.removeEventListener=function(){throw Error("yh");};var bAW=new _.Gz("APP_ROOT");var R6F=null;var vTc=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],k_=function(){_.j7.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];wBy(this)};
_.K(k_,_.j7);k_.prototype.verifyUser=function(){var G=wBy(this),e=G.logout;if(!G.sessionChange)return!0;this.dispatchEvent("ytsessionchange");e&&this.dispatchEvent("ytuserinvalid");return!1};
var wBy=function(G){var e=vTc.map(function(O){var M;return(M=_.oZ.get(O))!=null?M:""}),r=e.some(function(O,M){return G.sessionCookies&&G.sessionCookies[M]!==""&&O===""}),Z=e.some(function(O,M){return G.sessionCookies&&G.sessionCookies[M]!==O});
G.sessionCookies=e;return{logout:r,sessionChange:Z}};
k_.prototype.clearTimeout=function(){this.scheduledJobId&&(_.A0.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var k0p=new _.Gz("POSTMESSAGE_TUNNEL_TOKEN");var X7S=["/parent_tools","/file_download","/artist_roster"],ol_=[ytn,AtE,F_E,BzS,Jtv,Yk3,xZv,Pz3];var HZ=new _.Gz("NAVIGATION_CONFIRMATION_SERVICE");var $fS="/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(" "),SCE=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],d9=function(G,e){this.pendingNavigationPromise=null;this.JSC$14592_clientRoot=G;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 VA3;this.debugString=G.is;G={"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};_.re(_.e8.getInstance(),G,this.JSC$14592_clientRoot)},Rxv,jnj,aJl,XBl,lJw;
_.K(d9,iAl);d9.prototype.reload=function(){_.kN(window.location.href)};
var SJc=function(G){G.currentEndpoint&&_.a(G.currentEndpoint,_.DC)?G.reload():G.currentEndpoint&&G.navigate(G.currentEndpoint,!0,void 0,{disableCache:!0})};
d9.prototype.navigate=function(G,e,r,Z,O,M,T,E){e=e===void 0?!1:e;r=r===void 0?{}:r;Z=Z===void 0?{}:Z;var b=_.v_().resolve(HZ),w;if(!T&&MAE(b,(w=this.currentEndpoint)!=null?w:void 0,G))return b.showConfirmationDialog(this.JSC$14592_clientRoot.parentElement,{endpoint:G,reload:e,params:r,tempData:Z,requestType:O,createScreenConfig:M}),!1;var q=_.rk();_.Z7(q,"eocs")||q.parkOrScheduleJob(function(){q.processSignal("eocs")},10,"eor");
jxS();T=hX(G);b=Z.autonav==="1";w=_.l4();k_.instance||(k_.instance=new k_);var t=k_.instance.verifyUser(),g;if(_.R("enable_dark_theme_only_on_shorts")){var l=document.documentElement.hasAttribute("dark"),X=_.d0(!0)==="USER_INTERFACE_THEME_DARK";if(T==="shorts"){if(!l)if(_.R("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var H;_.kN((H=_.a(G==null?void 0:G.commandMetadata,_.rJ))==null?void 0:H.url,void 0,void 0,window.top)}}else{var I;_.kN(_.Mt((I=_.a(G==
null?void 0:G.commandMetadata,_.rJ))==null?void 0:I.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.R("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!l){var C;_.kN(_.Mt((C=_.a(G==null?void 0:G.commandMetadata,_.rJ))==null?void 0:C.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(X!==l){var u;_.kN(_.Mt((u=_.a(G==null?void 0:G.commandMetadata,_.rJ))==null?void 0:u.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(T==="watch"){if(qCj(_.v_().resolve(_.fp),
G)&&(t||_.R("fix_miniplayer_navigation_killswitch")))return!1;_.R("block_all_player_prefetch_requests")||(g=wEE(_.Yi(_.aT),G,b))}else{var P,F=(P=_.a(this.currentEndpoint,_.u4))==null?void 0:P.videoId;F&&_.Ye.getInstance().then(function(nf){nf&&nf.set("yt-miniplayer-shown-video-id",F)})}g&&(r.frags=g.missingFragments_.join(","));
H=null;var J;I=(J=_.a(G==null?void 0:G.commandMetadata,_.rJ))==null?void 0:J.ignoreNavigation;if(!I)if(_.R("kevlar_command_url")){var U;H=(U=_.a(G==null?void 0:G.commandMetadata,_.rJ))==null?void 0:U.url}else H=_.eLN(G,r);if(H&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&H==this.lastNavigationUrl)return _.gJ({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.e0(ky(),"CANCELLED")}H&&(this.lastNavigationUrl=H);rES();_.BX("IS_HOMEPAGE_COLD",
!1);_.BX("IS_RESULTS_PAGE_COLD",!1);_.BX("IS_WATCH_PAGE_COLD",!1);G.loggingUrls&&G.loggingUrls.forEach(function(nf){nf.baseUrl&&_.LF(nf.baseUrl)});
_.p74(G,M?M.layer:0)&&_.R("kevlar_flush_logs_on_away_navigation")&&_.Yc();if(sxs(G))return!1;Wtj(T,O);if(!H)return I||_.FH(new _.Cr("Can't construct url for endpoint",G)),_.e0(ky(),"FAILURE"),!1;_.aPi();J=G&&_.a(G,_.Mv)&&_.a(G,_.Mv).browseId.startsWith("UC");r=(U=_.R("enable_dark_theme_only_on_shorts")&&T==="shorts"?!1:_.oB()&&document.documentElement.hasAttribute("dark")!==_.H1())?{themeRefresh:1}:{};U&&!_.Qi()&&_.d0()==="USER_INTERFACE_THEME_DARK"&&(r.theme="dark");J=U||tAW(H)&&!J&&!_.R("kevlar_disable_url_allowlist");
t||(J=!0);if(J||_.xZ("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var e$;var Dq=(e$=window.top)==null?void 0:e$.location.href}catch(nf){var bF;Dq=(bF=nf)==null?void 0:bF.message}_.FH(new _.Cr("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:Dq}))}G=_.R("kevlar_redirect_on_window_killswitch")?window.top:window;fa(H);_.kN(_.Mt(H,r),void 0,void 0,G);_.e0(ky(),"ABORTED");return!1}_.R("kevlar_early_popup_close")&&_.Pi(this.JSC$14592_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14569_chunkHandler=void 0;var Kf;Dq=hX((Kf=this.currentEndpoint)!=null?Kf:void 0);(Kf=T==="shorts"&&Dq==="shorts")||_.x8p();_.N0(QaF)("nr",void 0);b&&_.gJ({webInfo:{navigationReason:"an"}});G.clickTrackingParams&&(Z.itct=G.clickTrackingParams,Z.csn=w);eqq(Z);Z.endpoint=JSON.stringify(G);_.R("enable_unknown_lact_fix_on_html5")&&(_.v_().resolve(_.bZ),Z.lact=_.bj());_.c2.isEmpty(Z)||_.Yy(H,Z);!_.R("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(M=Object.assign({},{layer:0},M,{parentLayer:3}));this.pendingNavigationPromise=M=Tay(this.pageFetcher,G,Z,this.currentEndpoint,this.JSC$14592_isNetworkPromiseStale.bind(this),M,E);M=M.then(this.handleNavigateSuccess.bind(this,M,G,g,Z),this.handleNavigateFail.bind(this,M,G));_.sI().navigationFinishPromise=M;e={endpoint:G,pageType:T,url:zh(H),reload:!!e,noProgressBar:Kf};O&&(e.type=O);var ti;O=_.OO((ti=this.currentEndpoint)!=null?ti:null);ti=_.OO(G!=null?G:null);this.fireEvent("yt-navigate-start",
e);var Ry;(Ry=_.v_().resolve(_.bq(_.ETv)))==null||Ry.publish("navigation-start",{sourcePageSubtype:O,destinationPageSubtype:ti});g&&Df3(this.pageFetcher,G,g,Z,this.currentEndpoint);return!0};
d9.prototype.JSC$14592_isNetworkPromiseStale=function(G){return G!=this.pendingNavigationPromise};
var gTW=function(G,e,r,Z,O){var M=hX(e);e={endpoint:e,pageType:M};O&&(e.errorMessage=O);_.FH(r);e.navigationDoneMs=_.jq("nd");e.navigationErrorReason=Z;G.fireEvent("yt-navigate-error",e)};
d9.prototype.handleNavigateFail=function(G,e,r){var Z=void 0;r instanceof _.fx&&(Z=r,LO$(r));if(this.JSC$14592_isNetworkPromiseStale(G))return _.Ss(Z);_.e0(ky(),"FAILURE");gTW(this,e,r,"101");return _.Ss(r)};
d9.prototype.handleNavigateSuccess=function(G,e,r,Z,O){if(this.JSC$14592_isNetworkPromiseStale(G))return _.Nz();this.pendingNavigationPromise=null;if(!O)return e=new _.Cr("Missing data in response for navigation endpoint",e),_.Ss(e);if(O.reload)return window.location.reload(!0),_.Nz();r&&(G={},_.c2.extend(G,_.v3S(r),O),O=G);var M,T;r=(M=O)==null?void 0:(T=M.timing)==null?void 0:T.responseStart;r!=null&&_.jq("srt",r);_.jq("pdc");var E,b;M=(E=O)==null?void 0:(b=E.timing)==null?void 0:b.info;M!=null&&
(E=_.N0(_.uGS)(M),_.gJ(E));_.e0(ky(),"SUCCESS");lJw(this,e,O,1,Z);return _.Nz()};
var tAW=function(G){var e=G;_.R("kevlar_no_redirect_to_classic_2_ks")||(e=(new _.nO(G)).getPath());if(e==="/"||e==="/red")return!1;var r=!0;$fS.forEach(function(Z){G.indexOf(Z)===0&&(r=!1)});
SCE.forEach(function(Z){var O=Z.url;_.R(Z.expFlag)&&G.indexOf(O)===0&&(r=!1)});
return r};
d9.prototype.publishPageData=function(G){this.fireEvent("yt-page-data-fetched",{pageData:G})};
Rxv=function(G,e,r,Z,O,M){var T=null;e.page!=="watch"&&e.page!=="learning_journey_watch"||Z?e.filler||_.Pi(G.JSC$14592_clientRoot,"yt-stop-old-player",[e]):T=hxl(G.pageFetcher,O,e,r,!1,M,void 0,G.currentEndpoint);if(T)return T.then(G.publishPageData.bind(G,e));G.publishPageData(e);return _.Nz()};
jnj=function(G,e,r){var Z=null;if(!r)return Z=new _.Cr("Empty data",G.debugString,e);var O=r.response;if(!O)return Z;var M={endpointType:hX(e)||"unknown"};O.responseContext?(O=O.responseContext.errors)&&(Z=new _.Cr("Errors in response context",G.debugString,e,O,M)):Z=O.error||O.errorMetadata?new _.Cr("Errors in response",G.debugString,e,O.error,O.errorMetadata,M):new _.Cr("responseContext missing",G.debugString,e,Object.keys(O).sort().join(","),M);var T,E,b,w;if(G=r==null?void 0:(T=r.response)==null?
void 0:(E=T.responseContext)==null?void 0:(b=E.webResponseContextExtensionData)==null?void 0:(w=b.webResponseContextDebugData)==null?void 0:w.debugErrorMessages)for(T=0;T<G.length;T++);return Z};
aJl=function(G){var e,r,Z,O;return G==null?void 0:(e=G.response)==null?void 0:(r=e.responseContext)==null?void 0:(Z=r.errors)==null?void 0:(O=Z.error)==null?void 0:O["0"]};
XBl=function(G,e){var r;if(r=e.url&&!e.url.startsWith("/clip"))r=e.url,r=!_.R("webfe_parse_debug_param_in_resolveurl_service")&&G.searchDebugUrlMatcher.test(r)||TJS(r)?!0:!1;if(r)TJS(e.url)&&_.O5(window.location.href).themeRefresh?(e=_.y5(e.url,"themeRefresh"),_.aA(G.historyManager,e)):e.url&&!S$N(e.url)&&_.aA(G.historyManager,e.url);else if(e.endpoint){var Z,O,M;(r=(Z=e.endpoint)==null?void 0:(O=Z.commandMetadata)==null?void 0:(M=O.webCommandMetadata)==null?void 0:M.url)&&!S$N(r)&&_.aA(G.historyManager,
r);r&&e.url&&r!=e.url&&!e.url.match("playnext=1")&&new _.Cr("Response url mismatch in response data",G.debugString,r,e.url)}};
_.KRW=function(G,e,r,Z,O,M,T,E){M=M===void 0?!1:M;var b=_.v_().resolve(HZ),w;if(!E&&MAE(b,(w=G.currentEndpoint)!=null?w:void 0,e))return b.showConfirmationDialog(G.JSC$14592_clientRoot.parentElement,{endpoint:e,data:r,navigationType:Z,tempData:O,isMiniplayer:M,isForwardHistoryNavigation:T==null?void 0:T.forward}),_.Nz();G.pageFetcher.JSC$14569_chunkHandler=void 0;return lJw(G,e,r,Z,O,M)};
lJw=function(G,e,r,Z,O,M){M=M===void 0?!1:M;G.isMiniplayerExpansion=M;var T=Z===2;G.currentEndpoint=e;G.numNavigations++;G.numNavigations&&(yE4.navigationCount=G.numNavigations);_.BX("NUM_NAV",G.numNavigations);var E=jnj(G,e,r);if(E)return gTW(G,e,E,"102",aJl(r)),_.Ss(E);var b,w,q,t;E=r.rootVe||(r==null?void 0:(b=r.response)==null?void 0:(w=b.responseContext)==null?void 0:(q=w.webResponseContextExtensionData)==null?void 0:(t=q.ytConfigData)==null?void 0:t.rootVisualElementType);!T&&r&&XBl(G,r);var g,
l;b=r==null?void 0:(g=r.response)==null?void 0:(l=g.responseContext)==null?void 0:l.maxAgeSeconds;if(!T&&!isNaN(b)){var X;_.R("kevlar_use_response_ttl_to_invalidate_cache")?X=(0,_.vG)()+1E3*b:_.R("kevlar_always_invalidate_cache")&&(X=0);isNaN(X)||(r.expirationTime=X)}_.Yi(_.aT).prefetchCache_.clear();T||r.page!=="watch"||r.type!=="reduced"&&Z!==1?Z=Rxv(G,r,T,!!M,e,O):(G.publishPageData(r),Z=_.Nz());O=Z.then(function(){var H=hX(e);H={endpoint:e,pageType:H,fromHistory:T,response:r};H.navigationDoneMs=
_.jq("nd");G.fireEvent("yt-navigate-finish",H);var I;(I=_.v_().resolve(_.bq(_.ETv)))==null||I.publish("navigation-end")});
r.csn&&E&&r.clientSideGrafts&&Z.then(G.attachClientSideGrafts.bind(G,r,_.go()));return O};
_.V=d9.prototype;_.V.attachClientSideGrafts=function(G,e){G.clientSideGrafts&&e&&G.clientSideGrafts.forEach(function(r){if(e&&r){var Z=_.b1(r);_.R("combine_ve_grafts")?_.h_().graftServerVe(r,e):_.QU(G.csn,e,Z)}})};
_.V.handleSignalActionHistoryBack=function(){window.history.back()};
_.V.handleSignalActionCloseWindow=function(){window.close()};
_.V.handleSignalActionReloadPage=function(){this.reload()};
_.V.handleSignalActionSoftReloadPage=function(){SJc(this)};
_.V.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.V.fireEvent=function(G,e){G=new CustomEvent(G,{bubbles:!0,cancelable:!1,composed:!0,detail:e});this.dispatchEvent(G)};
_.V.addEventListener=function(G,e){this.JSC$14592_clientRoot.addEventListener(G,e)};
_.V.dispatchEvent=function(G){return this.JSC$14592_clientRoot.dispatchEvent(G)};
_.V.removeEventListener=function(G,e){this.JSC$14592_clientRoot.removeEventListener(G,e)};
d9[wR]=[bAW,_.XL];_.ViS=new yf("browse","h8y2qb");_.hAU=new yf("search","JzFVk");_.TVN=new yf("shorts","xwEKAe");_.D7U=new yf("watchFixie","nmfa2d");_.Edi=new yf("watchFlexy","CF909");_.i3A=new yf("watchGrid","Tm0L3c");_.b3a=new yf("watchLearningJourney","L3n37");var fJE;var kfl=function(){return _.m.apply(this,arguments)||this};
_.K(kfl,_.m);_.iY.Object.defineProperties(kfl,{template:{configurable:!0,enumerable:!0,get:function(){if(fJE===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);fJE=G}G=fJE;return G}}});
_.B([_.k(kpW.YtPlayerBehavior),_.x("design:type",Object)],kfl.prototype,"ytPlayerBehavior",void 0);_.B([_.c({is:"ytd-player"})],kfl);var HAP;var dfw;var oTv;var oA=function(){var G=_.m.apply(this,arguments)||this;G.forceModernIconButton=!1;G.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return G};
_.K(oA,_.m);oA.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]]"}}}}}};
oA.prototype.handleAccountLinkingStateChangedCommand=function(G){if(G=_.a(G,VJW)){var e,r=(e=this.data)==null?void 0:e.providerKey;e=G.providerKey;r&&e&&r.id===e.id&&r.subject===e.subject&&(G=G.linked,G!==void 0&&(this.set("data.linked",G),this.notifyPath("data.linked"),_.R("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(G)))}};
oA.prototype.setPlayerAccountLinkState=function(G){var e=new jCn;aZy(e,lZS(new gen,G));var r=_.Ff();r&&r.getPlayerPromise().then(function(Z){Z.setAccountLinkState(_.uH(e.JSC$12325_serializeBinary(),4));Z.updateAccountLinkingConfig(G)})};
oA.prototype.handleShowAccountLinkDialog=function(){var G=this.get("button.buttonRenderer.command");G&&_.Gn([G],this.hostElement)};
_.iY.Object.defineProperties(oA.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}}}});
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],oA.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],oA.prototype,"ytRendererBehavior",void 0);_.B([_.k([_.gF.YtActionHandlerBehavior]),_.x("design:type",Object)],oA.prototype,"actionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],oA.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],oA.prototype,"overrides",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],oA.prototype,"forceModernIconButton",void 0);_.B([_.n({value:"bottom"}),_.x("design:type",String)],oA.prototype,"buttonTooltipPosition",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],oA.prototype,"forceIconButton",void 0);_.B([_.n(),_.x("design:type",Boolean)],oA.prototype,"disableTextTransform",void 0);
_.B([_.d("data","data.linked","data.isWarning"),_.x("design:type",Object),_.x("design:paramtypes",[])],oA.prototype,"button",null);_.B([_.c({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],oA);
_.A(oA,"ytd-account-link-button-renderer",function(){if(oTv!==void 0)return oTv;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return oTv=G},{mode:1});var snW;var Qnn=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],s1=function(){return _.m.apply(this,arguments)||this};
_.K(s1,_.m);s1.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
s1.prototype.updateButtonActiveState=function(){var G=this,e=!!Qnn.find(function(r){return G.currentState===r});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.R("enable_web_delhi_icons")&&(e=!1);this.button&&(this.button.isPressed=e)};
_.iY.Object.defineProperties(s1.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var G,e;return((G=this.playlistLoopStateEntity)==null?void 0:G.state)||((e=this.data)==null?void 0:e.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var G=void 0,e;if(this.currentState&&((e=this.data)==null?0:e.states)){e=_.h(this.data.states);for(var r=e.next();!r.done;r=e.next()){r=_.a(r.value,_.j4c);var Z=void 0;if(((Z=r)==null?void 0:Z.state)===this.currentState){G=r;break}}}return G}}});
s1.prototype.updateButtonActiveState=s1.prototype.updateButtonActiveState;_.B([_.k(_.A5),_.x("design:type",Object)],s1.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],s1.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],s1.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.n({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.Iq.playlistLoopStateEntitySelector}),_.x("design:type",Object)],s1.prototype,"playlistLoopStateEntity",void 0);_.B([_.n(),_.x("design:type",Object)],s1.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Boolean)],s1.prototype,"forceIconOnly",void 0);_.B([_.hs("ytd-button-renderer"),_.x("design:type",_.Dt)],s1.prototype,"button",void 0);
_.B([_.d("data","playlistLoopStateEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],s1.prototype,"currentState",null);_.B([_.Me("currentButtonStateRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],s1.prototype,"updateButtonActiveState",null);_.B([_.d("currentState"),_.x("design:type",Object),_.x("design:paramtypes",[])],s1.prototype,"currentButtonStateRenderer",null);
_.B([_.c({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],s1);
_.A(s1,"ytd-playlist-loop-button-renderer",function(){if(snW!==void 0)return snW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return snW=G},
{mode:1});var IJE;var pBy=_.OK("DOWNLOAD",{},"Download"),Cul=_.OK("DOWNLOADING",{},"Downloading"),uiv=_.OK("DOWNLOADED",{},"Downloaded"),nTl=_.OK("RETRY",{},"Retry"),Qm=function(){var G=_.m.apply(this,arguments)||this;G.forceIconButton=!1;G.forceIconOnly=!1;G.overrides=!1;G.buttonTooltipPosition=!1;G.styleActionButton=!1;G.disableTextTransform=!1;G.downloadProgress=0;G.isDownloadComplete=!1;G.isHidden=!0;G.transferState="TRANSFER_STATE_UNKNOWN";G.isVideoDeletedByUser=!1;G.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return G};
_.K(Qm,_.m);_.V=Qm.prototype;_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.dataChanged=function(){var G;(G=this.data)!=null&&G.text||(G=_.KQ(_.Yt().getState(),this.videoId),this.updateButtonState(G))};
_.V.computeVideoId=function(G){return G};
_.V.computePlayerStateEntityKey=function(G){return G};
_.V.showHideButton=function(){this.updateButtonVisibility()};
_.V.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var G;((G=this.playerStateEntity)==null?void 0:G.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};
_.V.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.V.updateButtonState=function(G){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==Cul||!_.E6(G))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(G){case "TRANSFER_STATE_UNKNOWN":G=pBy;var e="OFFLINE_DOWNLOAD";var r="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":G=nTl;e="OFFLINE_DOWNLOAD";r="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":G=uiv;e="OFFLINE_PIN";r="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":G=
Cul;e="OFFLINE_DOWNLOADING_ZERO";r="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":G=nTl;e="OFFLINE_DOWNLOAD";r="ACTION_RETRY";break;default:G=pBy,e="OFFLINE_DOWNLOAD",r="ACTION_ADD"}this.isVideoDeletedByUser&&(G=pBy,e="OFFLINE_DOWNLOAD",r="ACTION_ADD");var Z=Object.assign({},this.data);Z.text=_.nQ(G);Z.tooltip=G;Z.icon={iconType:e};Z.size="SIZE_DEFAULT";Z.style="STYLE_DEFAULT";_.a(Z.command,_.O2)&&(_.a(Z.command,_.O2).action=r);this.set("data",Z)}};
_.V.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var G="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?G="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?G="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?G="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?G="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?G="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(G="OFFLINE_PIN",this.isDownloadComplete=!0);var e;G!==((e=this.data.icon)==null?void 0:e.iconType)&&(e=Object.assign({},this.data),e.text=_.nQ(Cul),e.tooltip=Cul,e.icon={iconType:G},_.a(e.command,_.O2)&&(_.a(e.command,_.O2).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",e))}};
Qm.prototype.updateProgress=Qm.prototype.updateProgress;Qm.prototype.onTransferStateChanged=Qm.prototype.onTransferStateChanged;Qm.prototype.showHideButton=Qm.prototype.showHideButton;Qm.prototype.dataChanged=Qm.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Qm.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],Qm.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Qm.prototype,"forceIconButton",void 0);
_.B([_.n(),_.x("design:type",Object)],Qm.prototype,"forceIconOnly",void 0);_.B([_.n(),_.x("design:type",Object)],Qm.prototype,"overrides",void 0);_.B([_.n(),_.x("design:type",Object)],Qm.prototype,"buttonTooltipPosition",void 0);_.B([_.n(),_.x("design:type",Object)],Qm.prototype,"styleActionButton",void 0);_.B([_.n(),_.x("design:type",Object)],Qm.prototype,"disableTextTransform",void 0);
_.B([_.n({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.x("design:type",String)],Qm.prototype,"videoId",void 0);_.B([_.n({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.x("design:type",String)],Qm.prototype,"playerStateEntityKey",void 0);_.B([_.n(),_.x("design:type",Object)],Qm.prototype,"data",void 0);_.B([_.n({selector:kt,selectorArgs:["videoId"]}),_.x("design:type",Object)],Qm.prototype,"downloadProgress",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Qm.prototype,"isDownloadComplete",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Qm.prototype,"isHidden",void 0);_.B([_.n({selector:_.KQ,selectorArgs:["videoId"]}),_.x("design:type",String)],Qm.prototype,"transferState",void 0);_.B([_.n({selector:_.Gs$,selectorArgs:["videoId"]}),_.x("design:type",Object)],Qm.prototype,"isVideoDeletedByUser",void 0);
_.B([_.n({selector:POf,selectorArgs:["videoId"]}),_.x("design:type",Object)],Qm.prototype,"offlineabilityState",void 0);_.B([_.n({selector:_.Gh,selectorArgs:["playerStateEntityKey"]}),_.x("design:type",Object)],Qm.prototype,"playerStateEntity",void 0);_.B([_.n({value:!0}),_.x("design:type",Boolean)],Qm.prototype,"showTooltips",void 0);_.B([_.n({value:!0}),_.x("design:type",Boolean)],Qm.prototype,"sendCommandWhenDisabled",void 0);
_.B([_.n({value:!1}),_.x("design:type",Boolean)],Qm.prototype,"disabled",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qm.prototype,"dataChanged",null);_.B([_.iD("offlineabilityState","playerStateEntity"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qm.prototype,"showHideButton",null);
_.B([_.iD("transferState","isVideoDeletedByUser"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qm.prototype,"onTransferStateChanged",null);_.B([_.iD("downloadProgress"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qm.prototype,"updateProgress",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],Qm);
_.A(Qm,"ytd-download-button-renderer",function(){if(IJE!==void 0)return IJE;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return IJE=G},{mode:2});var mf3;var cjy,YCl=function(){if(cjy!==void 0)return cjy;var G=document.createElement("template");_.f(G,'\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 cjy=G};var yjv=_.R("web_button_rework")&&_.PX("BUTTON_REWORK")||_.R("web_button_rework_with_live"),AjE=_.qt("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,IA=function(){var G=_.m.apply(this,arguments)||this;G.isPressed=!1;G.forceIconButton=!1;G.forceIconOnly=!1;G.forceModernIconButton=!1;G.alignByText=!1;G.isShorts=!1;G.animatedText=!1;G.shouldAnimate=!1;G.JSC$14630_browserSupportsAnimation=_.R("web_supports_animations_api");G.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};G.onTap=function(){var e;if((e=G.data)==null||!e.defaultNavigationEndpoint){var r;e=!((r=G.data)==null?0:r.isToggled);var Z;if((Z=G.data)==null||!Z.preventAutoToggle){G.shouldAnimate=!1;G.disableTextUpdateJobId&&_.A0.cancelJob(G.disableTextUpdateJobId);G.disableTextUpdateJobId=_.A0.addLowPriorityJob(function(){G.disableTextUpdateJobId=void 0},AjE);
var O;G.set("data.isToggled",!((O=G.data)==null?0:O.isToggled));r=G.getInnertubeIcon();Z={toggled:e,actions:{}};r&&(Z.actions[r.toLowerCase()]=e);_.xy(G.hostElement,"yt-toggle-button",Z)}}};
return G};
_.K(IA,_.m);_.V=IA.prototype;_.V.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.A0.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.toggle=function(G){var e;this.set("data.isToggled",G!==void 0?G:!((e=this.data)==null?0:e.isToggled))};
_.V.handleUpdateToggleButtonStateCommand=function(G){if(this.data){G=_.a(G,v63);var e,r,Z,O=(e=this.data)==null?void 0:(r=e.toggleButtonSupportedData)==null?void 0:(Z=r.toggleButtonIdData)==null?void 0:Z.id;O&&G&&O===(G==null?void 0:G.buttonId)&&this.set("data.isToggled",G.toggled)}};
_.V.handleUpdateToggleButtonTextAction=function(G){if(this.data){G=_.a(G,pyP);var e,r,Z,O=(e=this.data)==null?void 0:(r=e.toggleButtonSupportedData)==null?void 0:(Z=r.toggleButtonIdData)==null?void 0:Z.id;O&&G&&O===(G==null?void 0:G.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=G.defaultNumericalValue,this.set("data.defaultText",G.defaultText),this.set("data.toggledText",G.toggledText),this.shouldAnimate=!1)}};
_.V.getInnertubeIcon=function(){var G=this.data;if(G){var e,r,Z=((e=G.defaultIcon)==null?0:e.iconType)?(r=G.defaultIcon)==null?void 0:r.iconType:null,O,M;e=((O=G.toggledIcon)==null?0:O.iconType)?(M=G.toggledIcon)==null?void 0:M.iconType:Z;return G.isToggled?e:Z}};
_.V.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.iY.Object.defineProperties(IA.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var G={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$14630_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var e=G.renderer;var r=G.element;var Z=G.toggled;var O=G.onTapCallback;var M=G.commandClientArgs;var T=G.overrides;var E=G.forceIcon;var b=G.forceModernIconButton;var w=G.forceDisabled;var q=G.useAnimatedText;var t=G.animatedTextProps;G=nlq(e,Z);E=!e.defaultIcon||!E&&e.defaultText?e.defaultIcon?"leading":void 0:b?"icon-only":"icon-only-40";E==="icon-only-40"&&(G.type="text");var g;b=Object;var l=b.assign,X;a:switch((X=
e.style)==null?void 0:X.styleType){case "STYLE_COMPACT_GRAY":X={size:"S"};break a;default:X={size:"M"}}var H=!!Z;var I=(I=Z&&e.toggledText||e.defaultText)?_.l1(I):void 0;q?(q=_.mG(Z&&e.toggledText||e.defaultText))&&t&&!isNaN(Number(t.numberValue))?(t.numberText=q,Z&&(t.numberValue+=1),q=t):q=void 0:q=void 0;var C,u,P,F;var J=(t=((u=Z?e.toggledAccessibilityData||((J=e.toggledText)==null?void 0:J.accessibility):e.accessibilityData||((C=e.defaultText)==null?void 0:C.accessibility))==null?void 0:(P=u.accessibilityData)==
null?void 0:P.label)||((F=e.accessibility)==null?void 0:F.label))?t:_.mG(Z&&e.toggledText||e.defaultText);w=w===void 0?e.isDisabled:w;r=uDF(e,Z,O,r,M);Z=CcN(e,Z);Z!=null&&Z.length?(Z=_.fC({innertubeCommand:Rfy(Z),forceNewState:!0}),Z=kh(Z)?Z:void 0):Z=void 0;e=l.call(b,{},G,X,{iconPosition:E},T,{focused:!1,toggled:H,toggleable:!0,formattedButtonText:I,animatedTextProps:q,accessibilityLabel:J,disabled:w,onTap:r,aTagConfig:Z},PV_((g=e.colorData)==null?void 0:g.basicColorPaletteData));e.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(e.type="filled");return e}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var G=this.getInnertubeIcon();if(G)return _.Ne(G)}}});
IA.prototype.resetAnimation=IA.prototype.resetAnimation;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],IA.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],IA.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],IA.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],IA.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",Object)],IA.prototype,"isPressed",void 0);_.B([_.n(),_.x("design:type",Object)],IA.prototype,"forceIconButton",void 0);_.B([_.n(),_.x("design:type",Object)],IA.prototype,"forceIconOnly",void 0);_.B([_.n(),_.x("design:type",Object)],IA.prototype,"forceModernIconButton",void 0);_.B([_.n(),_.x("design:type",Object)],IA.prototype,"alignByText",void 0);_.B([_.n(),_.x("design:type",Object)],IA.prototype,"overrides",void 0);
_.B([_.n(),_.x("design:type",Boolean)],IA.prototype,"disabled",void 0);_.B([_.n(),_.x("design:type",Object)],IA.prototype,"isShorts",void 0);_.B([_.n(),_.x("design:type",Object)],IA.prototype,"buttonTooltipPosition",void 0);_.B([_.n(),_.x("design:type",Object)],IA.prototype,"animatedText",void 0);_.B([_.n(),_.x("design:type",String)],IA.prototype,"textNumberValue",void 0);_.B([_.n({computed:"computeTooltip(data, data.isToggled)"}),_.x("design:type",Object)],IA.prototype,"tooltip",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],IA.prototype,"resetAnimation",null);_.B([_.d("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.x("design:type",Object),_.x("design:paramtypes",[])],IA.prototype,"computedButtonShape",null);_.B([_.d("data.*"),_.x("design:type",Object),_.x("design:paramtypes",[])],IA.prototype,"computedIcon",null);
_.B([_.c({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],IA);yjv&&_.A(IA,"ytd-toggle-button-renderer",YCl,{mode:_.Px("kevlar_poly_si_batch_j081")?1:2});var FRW=_.y(function(G){function e(w){var q;return _.D(function(t){if(t.nextAddress==1)return(q=!crN(w,E())||!E().enabled)?t.jumpTo(2):t.yield(Jr_(),3);t.nextAddress!=2&&(q=t.yieldResult);if(q)return t.return();r();setTimeout(function(){T(!1)},1500);
_.HL(t)})}
function r(){setTimeout(function(){T(!0);var w;(w=Z.lottieEl)==null||w.goToAndPlay(0)},150)}
var Z=_.r8(),O=_.h(_.XQ(!1,void 0,"UfUosc")),M=O.next().value,T=O.next().value,E=_.mr(G.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.yY(function(){var w,q;((w=G.settings)==null?void 0:(q=w.call(G))==null?void 0:q.uniqueId)==="this is not intended behavior"&&_.FH(new _.Cr("Smartimation Settings is undefined"))});
_.Y8(function(){E().experimentEnabled&&(E().enabled?Y$y(e):(T(!1),yrN(e)),_.yD(function(){yrN(e)}))},"IHhVmc");
_.Y8(function(){E().timings.join("");E().experimentEnabled&&(ArS(E()),_.yD(function(){F4S(E())}))},"fsfhOe");
var b=_.dw(function(){var w=Z,q=E().uniqueId+"-border",t,g;var l="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((g=(t=_.v_().resolve(_.bq(_.Ig)))==null?void 0:t())!=null&&g?"dark":"light")+"_v2.json";return{animationRef:w,animationConfig:{name:q,autoplay:!1,loop:!1,path:l}}},void 0,"UWvUGe");
O={};return _.v("yt-smartimation",{class:_.LC(G.className,"smartimation",(O["smartimation--experiment-enabled"]=function(){return E().experimentEnabled},O["smartimation--active-border"]=M,O["smartimation--enable-masking"]=BIp(),O))},_.v(_.S,{cond:function(){return E().experimentEnabled},
then:function(){return _.v("div",{class:"smartimation__border"},_.v(_.lO,{className:"smartimation__border-gradient",data:b,animationName:function(){return b().animationConfig.name}}))}}),_.v("div",{class:"smartimation__content"},G.children))},"ga");
FRW.idomCompat=!0;_.J_(FRW,"yt-smartimation",{props:{className:_.N6,settings:_.N6}});var pJ=function(){var G=_.m.apply(this,arguments)||this;G.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};G.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};G.shouldEnableSmartimation=!1;return G};
_.K(pJ,_.m);pJ.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
pJ.prototype.onDataChanged=function(){var G,e;this.shouldEnableSmartimation=(((G=this.data)==null?void 0:(e=G.timedAnimationData)==null?void 0:e.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
pJ.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var G=_.a(this.data.likeButton,_.WV),e=_.a(this.data.dislikeButton,_.WV);return!!((G==null?0:G.isToggled)||(e==null?0:e.isToggled))};
pJ.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]]"}}}}}};
_.iY.Object.defineProperties(pJ.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var G,e,r=((G=this.data)==null?void 0:(e=G.timedAnimationData)==null?void 0:e.animationTiming)||[];return{uniqueId:"like-dislike",timings:r,enabled:this.shouldEnableSmartimation,experimentEnabled:r.length>0}}}});
pJ.prototype.onDataChanged=pJ.prototype.onDataChanged;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],pJ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],pJ.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],pJ.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],pJ.prototype,"likeButtonOverride",void 0);_.B([_.n(),_.x("design:type",Object)],pJ.prototype,"dislikeButtonOverride",void 0);
_.B([_.d("shouldEnableSmartimation"),_.x("design:type",Object),_.x("design:paramtypes",[])],pJ.prototype,"smartimationSettings",null);_.B([_.Me("data"),_.Om("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pJ.prototype,"onDataChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],pJ);
_.A(pJ,"ytd-segmented-like-dislike-button-renderer",function(){if(mf3!==void 0)return mf3;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return mf3=G},{mode:1});var Jjw;var BaW;(BaW=document.body)==null||BaW.setAttribute("rounded-container","");var xf3={};xf3.YtToggleButtonBehavior=[_.gF.YtActionHandlerBehavior,Hk.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 G=this.data.isToggled;if(!this.isModal_(G)){if(!this.data.preventAutoToggle){this.toggle();var e={toggled:this.data.isToggled,actions:{}};e.actions[this.buttonIcon]=this.data.isToggled;_.xy(this.hostElement,"yt-toggle-button",e)}e=this.data.defaultServiceEndpoint||null;var r=this.data.toggledServiceEndpoint||null;if(e&&r||e&&this.data.preventAutoToggle)G=G?r:e,e=this.disableCommandHandlerOverride,_.R("killswitch_toggle_button_behavior_resolve_command")||e?_.zw(this.hostElement,
[G]):_.es(G,this.hostElement),_.xy(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:G})}},
stateChanged_:function(){var G=this.data;if(G){var e=G.isToggled;this._setEndpoint(this.computeEndpoint_(G));this._setServiceEndpoint(this.computeServiceEndpoint_(G));this._setButtonIcon(this.computeButtonIcon_(G,e));this._setButtonText(this.computeButtonText_(G,e));this._setButtonAccessibility(this.computeAccessibility_(G,e));this._setButtonTooltip(this.computeTooltip_(G,e));this._setButtonClass(this.computeButtonClass_(G,e));this._setIconPositionType(this.computeIconPositionType_(G));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 _.R("kevlar_system_icons")},
toggle:function(G){this.set("data.isToggled",G!==void 0?G:!this.data.isToggled);_.R("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(G){if(G){var e,r;return!!((e=this.data)==null?0:(r=e.toggledServiceEndpoint)==null?0:r.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(G){return G&&G.defaultNavigationEndpoint||null},
computeButtonIcon_:function(G,e){var r=G&&G.defaultIcon?_.Ne(G.defaultIcon.iconType):null;G=G&&G.toggledIcon?_.Ne(G.toggledIcon.iconType):r;return e?G:r},
handleUpdateToggleButtonStateCommand_:function(G){G=G.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==G.buttonId&&this.toggle(G.toggled)},
computeButtonText_:function(G,e){return G?e&&G.toggledText||G.defaultText||null:null},
computeAccessibility_:function(G,e){return G?(e?this.get("toggledAccessibilityData.accessibilityData",G):this.get("accessibilityData.accessibilityData",G))||G.accessibility||null:null},
computeTooltip_:function(G,e){return G?e&&G.toggledTooltip||G.defaultTooltip||null:null},
computeButtonClass_:function(G,e){if(!G)return"";var r="",Z=G.toggledStyle||G.style;if(e=e?Z:G.style){e.styleType&&(e=e.styleType);try{r+=e.toLowerCase().replace(/_/g,"-")+" "}catch(O){_.JG(O,e,typeof e),_.FH(O)}}if(G=G.size){G.sizeType&&(G=G.sizeType);try{r+=G.toLowerCase().replace(/_/g,"-")+" "}catch(O){_.JG(O,G,typeof G),_.FH(O)}}return r.trim()},
computeIconPositionType_:function(G){return G&&G.iconPosition||null},
computeServiceEndpoint_:function(G){var e=G&&G.serviceEndpoint,r=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return e?e:r&&G.command?G.command:null},
handleUpdateToggleButtonTextAction_:function(G){G=G.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==G.buttonId&&(this.set("data.defaultText",G.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",G.toggledText),this.notifyPath("data.toggledText"))}}];_.te("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var PuW=_.R("web_button_rework")&&_.PX("BUTTON_REWORK")||_.R("web_button_rework_with_live"),CJ=function(){var G=_.m.apply(this,arguments)||this;G.systemIcons=_.R("kevlar_system_icons");G.roundedContainer=!0;return G};
_.K(CJ,_.m);CJ.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
CJ.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var G=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 r,Z;e.actions.playlistId=(r=this.data.defaultServiceEndpoint)==null?void 0:(Z=r.playlistEditEndpoint)==null?void 0:Z.playlistId;_.xy(this.hostElement,"yt-toggle-button",e)}(G=G?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(G)}};
CJ.prototype.onYtNavigate=function(G){var e=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(G.detail.endpoint);e&&(G.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(e))};
_.iY.Object.defineProperties(CJ,{template:{configurable:!0,enumerable:!0,get:function(){if(Jjw===void 0){var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);Jjw=G}G=Jjw;return G}}});
CJ.prototype.onYtNavigate=CJ.prototype.onYtNavigate;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],CJ.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],CJ.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h5),_.x("design:type",Object)],CJ.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.k(xf3.YtToggleButtonBehavior),_.x("design:type",Object)],CJ.prototype,"ytToggleButtonBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],CJ.prototype,"data",void 0);_.B([_.n({value:!0}),_.x("design:type",Boolean)],CJ.prototype,"showTooltips",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],CJ.prototype,"systemIcons",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],CJ.prototype,"roundedContainer",void 0);_.B([_.Om("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],CJ.prototype,"onYtNavigate",null);
_.B([_.c({is:"ytd-toggle-button-renderer",disableElementRegistration:PuW})],CJ);var Ufc,zx3;_.uB=new _.Gz("PANEL_CONTROLLER_TOKEN");_.nJ=new _.Gz("SHEET_CONTROLLER_TOKEN");_.m6=new _.Gz("DIALOG_CONTROLLER_TOKEN");Ufc=new _.Gz("DIALOG_CONTAINER_TOKEN");zx3=new _.Gz("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.cZ=new _.Gz("PERSISTENT_PANEL_CONTROLLER_TOKEN");var eC$=_.OK("DOWNLOAD",{},"Download"),rn_=_.OK("DOWNLOADING",{},"Downloading"),ZiF=_.OK("DOWNLOADED",{},"Downloaded"),OiF=_.OK("RETRY",{},"Retry");var WRy=_.y(function(G){var e=DX4,r=function(){return""},Z=MxS(G.data),O=VxS(G.data),M=hCF(G.data),T=Ty_(G.data);
e=function(){var E=G.data(),b=L4A(E,Z(),O(),M(),T()),w=!!E.videoId,q=b.text;return{title:w?q:void 0,tooltip:w?void 0:q,accessibilityText:q,onTap:b.onTap,iconName:b.iconType,style:E.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:b.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:E.buttonSize}};
r={};r=_.LC("ytDownloadButtonViewModelHost",(r.ytDownloadButtonViewModelIsHidden=function(){var E=G.data(),b=T();return E.playlistId||b()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||b()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},r));
return _.v("download-button-view-model",{class:r},_.v(_.wF,{data:e}))},"ha");
WRy.idomCompat=!0;var txp=new _.Gz("SUBMIT_API_SERVICE_TOKEN");var $Xq,Sh$,gLA={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var uZS=new _.Gz("RENDERER_LOGGER_TOKEN");var QXS=new _.Gz("RENDERER_STAMPER_OPTIONS_TOKEN");var RC$;_.DV=new Eic;RC$=new Map;var Ix4="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),CSp=["notificationTextRenderer","notificationMultiActionRenderer"],
pRf="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),sX_=jXy(function(G){return _.FQ(G==null?void 0:G.targetId)}).useUpdatableData;var oLy=0;_.E2.debugName="EjJbCe";var NaC=_.y(function(G){var e=G.data;G=G.className;_.YZ(function(){e().formId||_.yx(Error("Ch"))});
var r=_.wRa(function(){return e().formId},function(){return e().beforeSubmitCommand},function(){return e().afterSubmitCommand}),Z=r.submitForm,O=r.isValid,M=r.isSubmitting,T=function(){return{state:e().isDisabled||!O()||M()?"disabled":"active"}};
return _.v("yt-submit-button-view-model",{class:_.LC("ytSubmitButtonViewModelHost",G)},_.v(_.E2,{data:function(){return e().button}},{buttonViewModel:function(E){return _.v(_.wF,{data:E.data,
buttonOverrides:T,onClick:Z})}}))},"ka");var GYb=_.y(function(G){var e=G.backgroundLottieRef;var r=G.foregroundLottieRef;var Z=G.children;var O=G.wrapperClass;var M=G.disableAnimation;G=function(){return(_.R("web_animated_actions")||_.R("web_animated_actions_v2"))&&!(M==null?0:M())};
return _.v("yt-animated-action",{class:_.LC("ytAnimatedActionHost",O)},_.v("div",{class:"ytAnimatedActionContentWithBackground"},_.v(_.S,{cond:G,then:function(){return _.v(LRw,{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_"+
(nLi()?"dark":"light")+"_v5.json"}}}})}}),Z),_.v(_.S,{cond:G,
then:function(){return _.v(LRw,{lottiePlayerProps:function(){return{animationRef:r==null?void 0:r(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(nLi()?"dark":"light")+"_v4.json"}}}})}}))},"la");
GYb.idomCompat=!0;var LRw=_.y(function(G){var e=G.wrapperClass;var r=G.lottieClass;var Z=G.lottiePlayerProps;return _.v("div",{class:_.LC("ytAnimatedActionLottie",e),"aria-hidden":"true"},_.v(_.lO,{className:r,data:Z,animationName:function(){return Z().animationConfig.name}}))},"ma");var mXS={isOpen:!1};var YhU={isAllowed:!1};var Anp={errorMessage:"",title:"",privacy:"",isDisabled:!0};var JnS={isOpen:!1};var xXy={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var ebj={response:void 0};var UXA=function(G,e){G=G===void 0?ebj:G;switch(e.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},G,{response:e.payload});default:return G}};var rC3={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var zC_=function(G,e){G=G===void 0?rC3:G;switch(e.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},G,{nextDisabled:e.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},G,{nextCommand:e.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},G,{footerSubmissionData:e.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},G,{isImpersonationValid:e.payload});default:return G}};var ZZj={reportFormData:void 0,reportDetailsFormData:void 0};var WpF=function(G,e){G=G===void 0?ZZj:G;switch(e.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},G,{reportFormData:e.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},G,{reportDetailsFormData:e.payload});default:return G}};var OZv=void 0;_.R("mweb_enable_redux_store_on_demand")||(OZv=new cS(Nyq()));var Y_=_.R("enable_web_delhi_icons");var Myy=_.y(function(G){G=_.cx(G,{themeOverride:void 0,animationRef:{}});var e=G.animatedIconType,r=G.active,Z=G.themeOverride,O=G.animationRef;G=G.staticIconFn;var M=_.h(_.XQ(void 0,void 0,"l48agc")),T=M.next().value,E=M.next().value,b=function(){a:{var I=e();var C=Z==null?void 0:Z();var u;C=(C==null?void 0:C.useDarkTheme)||((u=_.v_().resolve(_.bq(_.Ig)))==null?void 0:u());switch(I){case "LIKE":OZv||(OZv=new cS(Nyq()));I=(I=aeN(OZv.getState()))&&I.animationLightUrl&&I.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:C?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:C?I.animationDarkUrl:I.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(I){C=I;break a}C="animated_like_icon_"+(C?"dark":"light")+"_"+(Y_?"v5":"v4");C={lottiePlayerProps:{animationConfig:{name:C,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+C+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(Y_?" animated-like-icon-delhi":"")}}},totalFrames:Y_?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":C={lottiePlayerProps:{animationConfig:{name:C?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(C?"dark":"light")+(Y_?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(Y_?" animated-subscribe-icon-delhi":"")}}},totalFrames:Y_?120:79,lazyLoad:!1};break a}C=
void 0}return C},w=function(){var I,C;
return(C=(I=b())==null?void 0:I.lottiePlayerProps.animationConfig.name)!=null?C:""},q=function(){if(b()){var I=b().lottiePlayerProps.animationConfig.path;
return $O.get(I)||T()}};
M=_.h(_.XQ(!1,void 0,"sDrGId"));var t=M.next().value;M=M.next().value;var g=Gf$(M),l=function(){var I=b(),C,u,P;return(P=I==null?void 0:(C=I.lottiePlayerProps.animationConfig)==null?void 0:(u=C.rendererSettings)==null?void 0:u.className)!=null?P:""},X=void 0,H=void 0;
_.Y8(function(){var I=b(),C=w(),u=q(),P=t(),F=r();if(I&&(H!==C&&(H=C,X=F,C=O(),g.animationConfig=I.lottiePlayerProps.animationConfig,g.animationRef=C,u&&(g.animationConfig.animationData=u,g.animationConfig.path=void 0),C=I.lottiePlayerProps.animationConfig.path,!$O.get(C)&&I.lazyLoad&&C&&Lpp(C,E)),!(P||I.lazyLoad&&!u))){if(u=!O().lottieEl)F?(P=I.totalFrames,g.animationConfig.initialSegment=[P-1,P]):g.animationConfig.initialSegment=void 0;if(X!==F&&!u)if(u=O(),F){var J;(J=u.lottieEl)==null||J.playSegments([0,
I.totalFrames],!0)}else{var U;(U=u.lottieEl)==null||U.playSegments([0,1],!0)}X=F}},"RQVZ1d");
return _.v("animated-icon",{class:"ytAnimatedIconHost"},_.v(_.S,{cond:function(){var I,C;return!((I=b())==null||!I.lottiePlayerProps.animationConfig.path||((C=b())==null?0:C.lazyLoad)&&!q()||t())},
then:function(){return _.v(_.lO,{data:g,animationName:w,className:l,animationRef:O})},
else:G}))},"oa");_.ym=_.y(function(G){var e=_.hT("yt-subscribe-button-view-model"),r=_.hT("div"),Z=_.hT("div"),O=_.r8(),M=_.r8(),T=_.r8(),E=_.hI(OAp,function(){return G.data().stateEntityStoreKey}),b=_.hI(MAa,function(){var Lf,vc;
return(vc=(Lf=G.data().notificationStateEntityStoreKeys)==null?void 0:Lf.subsNotificationStateKey)!=null?vc:""}),w=function(){return!G.data().enableSubscribeButtonPostClickAnimation},q=_.h(_.XQ(0,void 0,"YtsSKb")),t=q.next().value,g=q.next().value;
q=_.h(_.XQ(0,void 0,"V6JxRe"));var l=q.next().value,X=q.next().value;q=_.h(_.XQ(!1,void 0,"JUCSZ"));var H=q.next().value,I=q.next().value;q=_.h(_.XQ(!1,void 0,"oV6jwf"));var C=q.next().value,u=q.next().value;q=_.h(_.XQ(!1,void 0,"hK1Whe"));var P=q.next().value,F=q.next().value,J;q=_.h(_.XQ(!1,void 0,"Asaolf"));var U=q.next().value,e$=q.next().value,Dq=function(){u(!0);_.w8(_.A0,function(){u(!1)},1500)};
_.Y8(function(){var Lf=C();_.ah(function(){Lf&&!w()&&E()&&gTy(O,M,T)})},"Qq6Hsf");
_.Y8(function(){var Lf=E();_.ah(function(){if(!w()&&Lf){var vc;((vc=G.animateWidth)==null?0:vc.call(G))&&tAy(e.value,!!Lf.subscribed,t(),l());var IW,Hc;((IW=J)==null?0:IW.subscribed)||!Lf.subscribed||Lf.key!==((Hc=J)==null?void 0:Hc.key)||Dq();J=Lf}})},"hog8te");
q=_.dw(function(){var Lf,vc,IW,Hc=G.data(),a8=!((Lf=E())==null||!Lf.subscribed);Lf=!((vc=G.isOverlay)==null||!vc.call(G));vc=H()?e:void 0;var t2=(IW=b())==null?void 0:IW.state;IW=U();qCs(Hc,t2);return ZAN({model:Hc,subscribed:a8,isOverlay:Lf,element:vc,notificationState:t2,disableTextEllipsis:!0,focused:IW})},void 0,"hc1PRd");
var bF=function(){var Lf;if(!w()&&((Lf=G.animateWidth)==null?0:Lf.call(G))&&(r==null?0:r.value)&&(Z==null?0:Z.value)&&!P()){Lf=E();var vc=_.h((Lf==null?0:Lf.subscribed)?[r,Z]:[Z,r]),IW=vc.next().value;vc=vc.next().value;IW=Math.ceil(IW.value.getBoundingClientRect().width);vc=Math.ceil(vc.value.getBoundingClientRect().width);g(IW);X(vc);tAy(e.value,!(Lf==null||!Lf.subscribed),IW,vc);F(!0)}},Kf=_.ev(function(Lf){bF();
var vc=E();vc&&(Lf.detail.endpoint.subscribeEndpoint||Lf.detail.endpoint.unsubscribeEndpoint)&&vTA(e.value,!vc.subscribed,vc)}),ti=function(){var Lf=_.v_().resolve(_.bq(_.T6));
Lf&&e$(Lf.isKeyBoardInUse())},Ry=function(){e$(!1)};
_.Vk("yt-player-subscribe",function(Lf){var vc=E();vc&&Lf===G.data().channelId&&vTA(e.value,!0,vc)});
_.Vk("yt-player-unsubscribe",function(Lf){var vc=E();vc&&Lf===G.data().channelId&&vTA(e.value,!1,vc)});
_.Vk("yt-update-subscribe-button-action",function(Lf){Lf=_.a(Lf,z7E);var vc=E();vc&&Lf&&Lf.channelId===G.data().channelId&&vTA(e.value,!!Lf.subscribed,vc)});
_.yY(function(){e.value&&(e.value.addEventListener("focusin",ti),e.value.addEventListener("focusout",Ry));var Lf=_.IQ(_.A0,function(){bF()});
I(!0);_.yD(function(){_.A0.cancelJob(Lf);e.value&&(e.value.removeEventListener("focusin",ti),e.value.removeEventListener("focusout",Ry))})});
var nf=function(){var Lf,vc,IW;if(IW=!((Lf=E())==null||!Lf.subscribed))Lf=!!G.data().disableNotificationBell,IW=(vc=b())==null?void 0:vc.state,IW=!Lf&&!!IW;return IW},k4=function(){var Lf;
return!((Lf=E())==null?0:Lf.subscribed)},SE=function(){var Lf,vc;
if(vc=k4()){vc=!!G.data().disableNotificationBell;var IW=(Lf=b())==null?void 0:Lf.state;vc=!vc&&!!IW}return vc},Fn={},kw={};
return _.v("yt-subscribe-button-view-model",{class:_.LC(G.className,"ytSubscribeButtonViewModelHost",(Fn.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var Lf,vc;return!((Lf=E())==null||!Lf.subscribed)&&((vc=G.animateWidth)==null?void 0:vc.call(G))&&C()},Fn.ytSubscribeButtonViewModelHostHidden=function(){var Lf;
return!((Lf=E())==null?0:Lf.subscribed)&&G.data().hideWhenUnsubscribed},Fn)),
el:e,"on:yt-service-request-sent":Kf},_.v(GYb,{backgroundLottieRef:O,foregroundLottieRef:M,wrapperClass:_.LC("ytSubscribeButtonViewModelAnimatedActionWrapper",(kw.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var Lf;return((Lf=G.animateWidth)==null?void 0:Lf.call(G))&&C()},kw.ytSubscribeButtonViewModelStaticWidth=function(){var Lf;
return!((Lf=G.animateWidth)==null?0:Lf.call(G))},kw)),
disableAnimation:w},_.v("div",{el:r,class:"ytSubscribeButtonViewModelContainer"},_.v(_.vk,{data:q,icon:function(){return _.v(_.S,{cond:nf,then:function(){var Lf=function(){var vc;return bAy((vc=b())==null?void 0:vc.state)};
return _.v(_.S,{cond:function(){return w()||Lf()!=="NOTIFICATIONS_NONE"},
then:function(){return _.v(_.V$,{icon:Lf})},
else:function(){return _.v(Myy,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:T})}})}})},
secondaryIconName:function(){return nf()?"EXPAND":void 0}}))),_.v("div",{el:Z,
class:"ytSubscribeButtonViewModelInvisible"},_.v(_.S,{cond:function(){var Lf;return((Lf=G.animateWidth)==null?void 0:Lf.call(G))&&!w()&&!P()},
then:function(){return _.v(_.vk,{data:_.dw(function(){var Lf;return ZAN({model:G.data(),subscribed:k4(),isOverlay:!((Lf=G.isOverlay)==null||!Lf.call(G)),element:e,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var Lf;return SE()?bAy((Lf=b())==null?void 0:Lf.state):void 0},
secondaryIconName:function(){return SE()?"EXPAND":void 0}})}})))},"ra");
_.ym.idomCompat=!0;var VyE=_.y(function(G){var e=G.data;var r=_.hI(OAp,function(){return e().subscriptionStateEntityKey});
return _.v(_.S,{cond:function(){var Z=e(),O=r();return!Z.hideWhenUnsubscribed||(O==null?0:O.subscribed)?_.a(e().button,_.G$):void 0},
then:function(Z){return _.v("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.v(_.wF,{data:Z,buttonOverrides:function(){return{toggled:!0}}}))}})},"sa");
VyE.idomCompat=!0;var hbv,Av;hbv=_.y(function(G){return _.v(_.E2,{data:function(){return G.actionRow().actions}},{buttonViewModel:function(e){var r=e.data;
return _.v(Av,{isRow:G.isRow,isIconOnlyButton:function(){return lJ4(r())},
useIntrinsicWidth:G.useIntrinsicWidth},_.v(_.wF,{data:r}))},
subscribeButtonViewModel:function(e){return _.v(Av,{isRow:G.isRow},_.v(_.ym,{data:e.data,isOverlay:!1,animateWidth:function(){return!G.isRow()}}))},
downloadButtonViewModel:function(e){var r=e.data;return _.v(Av,{isRow:G.isRow,isIconOnlyButton:function(){return!!r().playlistId}},_.v(WRy,{data:r}))},
submitButtonViewModel:function(e){var r=e.data;return _.v(Av,{isRow:G.isRow,isIconOnlyButton:function(){var Z=r();return lJ4(_.a(Z==null?void 0:Z.button,_.G$))}},_.v(NaC,{data:r}))},
toggleButtonViewModel:function(e){var r=e.data;return _.v(Av,{isRow:G.isRow,isIconOnlyButton:function(){var Z=r();return lJ4(_.a(Z.isToggled?Z.toggledButtonViewModel:Z.defaultButtonViewModel,_.G$))}},_.v(_.pb,{data:r}))},
subscribePlusButtonViewModel:function(e){return _.v(Av,{isRow:G.isRow},_.v(VyE,{data:e.data}))}})},"ta");
Av=_.y(function(G){var e={};return _.v("div",{class:_.LC("ytFlexibleActionsViewModelAction",(e.ytFlexibleActionsViewModelActionRowAction=G.isRow,e.ytFlexibleActionsViewModelActionIntrinsicWidth=G.useIntrinsicWidth,e.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,e.ytFlexibleActionsViewModelActionIconOnlyButton=G.isIconOnlyButton,e))},G.children)},"ua");
_.FL=_.y(function(G){var e=function(){var Z;return((Z=G.layout)==null?void 0:Z.call(G))===1},r={};
return _.v("yt-flexible-actions-view-model",{class:_.LC("ytFlexibleActionsViewModelHost",G.className,(r.ytFlexibleActionsViewModelInline=function(){return!e()},r.ytFlexibleActionsViewModelScrollable=function(){return G.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},r))},_.v(_.u6,{each:function(){return G.data().actionsRows||[]}},function(Z){return _.v(_.S,{cond:e,
then:function(){return _.v("div",{class:"ytFlexibleActionsViewModelActionRow"},_.v(hbv,{actionRow:Z,isRow:e,useIntrinsicWidth:function(){return!!G.data().respectActionIntrinsicWidth}}))},
else:function(){return _.v(hbv,{actionRow:Z,isRow:e})}})}))},"va");_.J_(_.FL,"yt-flexible-actions-view-model",{props:{data:_.N6,layout:_.N6,justifyContentOverride:_.N6,className:_.N6}});_.Jv=_.y(function(G){var e=_.hI(K1,function(){var O;return(O=G.data().dislikeEntityKey)!=null?O:""}),r=_.dw(function(){var O=e();
return O?O.likeStatus==="DISLIKE":_.a(G.data().toggleButtonViewModel,_.rq).isToggled},void 0,"fNr9he"),Z=_.dw(function(){return Object.assign({},_.a(G.data().toggleButtonViewModel,_.rq),{isToggled:r()})},void 0,"AezoCc");
return _.v("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.v(_.pb,{data:Z,buttonShapeOverrides:G.buttonShapeOverrideables,onToggle:function(O){var M=e();M&&O!==(M.likeStatus==="DISLIKE")&&M.key&&_.nR(_.g7("likeStatusEntity",M.key,{likeStatus:O?"DISLIKE":"INDIFFERENT",hadUserInteraction:O}))}}))},"wa");
_.Jv.idomCompat=!0;_.BZ=_.y(function(G){var e=_.R("web_supports_animations_api"),r=Yh(function(g){var l=w();if(!g){var X,H;return{numberText:(H=l==null?void 0:(X=l.likeCountIfIndifferent)==null?void 0:X.content)!=null?H:"",numberValue:Number(l==null?void 0:l.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var I;X=(l==null?void 0:(I=l.likeCountIfIndifferent)==null?void 0:I.content)!==g.numberText;if(E()||!X)return g;var C;return{numberText:(l==null?void 0:(C=l.likeCountIfIndifferent)==null?void 0:C.content)||
"",numberValue:Number(l==null?void 0:l.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!l}}),Z=Yh(function(g){var l=w();
if(!g){var X,H;return{numberText:(H=l==null?void 0:(X=l.likeCountIfLiked)==null?void 0:X.content)!=null?H:"",numberValue:Number(l==null?void 0:l.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var I;X=(l==null?void 0:(I=l.likeCountIfIndifferent)==null?void 0:I.content)!==g.numberText;if(E()||!X)return g;var C;return{numberText:(l==null?void 0:(C=l.likeCountIfLiked)==null?void 0:C.content)||"",numberValue:Number(l==null?void 0:l.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!l}}),O=_.h(_.XQ(void 0,
void 0,"xldjge")),M=O.next().value,T=O.next().value,E=M,b=_.hI(K1,function(){var g,l;
return(l=(g=G.data())==null?void 0:g.likeStatusEntityKey)!=null?l:""}),w=_.hI(hWS,function(){var g,l;
return((g=G.likeCountEntity)==null?void 0:(l=g.call(G))==null?void 0:l.key)||""}),q=_.dw(function(){var g;
return((g=b())==null?void 0:g.likeStatus)==="LIKE"},void 0,"B3od5e"),t=function(){var g;
return e&&!((g=G.likeCountEntity)==null||!g.call(G))};
return _.v("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.v(_.pb,{data:function(){var g=Object,l=g.assign,X;var H=_.a((X=G.data())==null?void 0:X.toggleButtonViewModel,_.rq);return l.call(g,{},H||{},{isToggled:q()})},
buttonShapeOverrides:G.buttonShapeOverrideables,animatedTextPropsDefault:function(){return t()?r():void 0},
animatedTextPropsToggled:function(){return t()?Z():void 0},
onToggle:function(g){Rxp(g,b(),E(),T)},
style:function(){var g;return((g=G.disableIconAnimation)==null?0:g.call(G))?void 0:{animateIcon:"true"}}}))},"xa");
_.BZ.idomCompat=!0;var TOl=_.y(function(G){var e=function(){return _.a(G.data().likeButtonViewModel,_.FG)},r=function(){var O;
return((O=e())==null?void 0:O.likeStatusEntityKey)||""},Z=_.dw(function(){var O,M;
var T=(M=_.hI(K1,r)())!=null?M:(O=e())==null?void 0:O.likeStatusEntity;O=G.data();var E;O=(O==null?void 0:(E=O.timedAnimationData)==null?void 0:E.animationTiming)||[];return{uniqueId:"like-dislike",timings:O,enabled:(T==null?void 0:T.likeStatus)==="INDIFFERENT"&&O.length>0,experimentEnabled:O.length>0}},void 0,"zZ3GQb");
return _.v("segmented-like-dislike-button-view-model",{class:_.LC("ytSegmentedLikeDislikeButtonViewModelHost",G.className),"button-renderer":!0},_.v(FRW,{settings:Z},_.v("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.v(_.S,{cond:e,then:function(O){return _.v(_.BZ,{data:O,likeCountEntity:function(){return G.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.R("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.v(_.S,{cond:function(){return _.a(G.data().dislikeButtonViewModel,_.AO)},
then:function(O){return _.v(_.Jv,{data:O,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"ya");
TOl.idomCompat=!0;_.J_(TOl,"segmented-like-dislike-button-view-model",{props:{data:_.N6,className:_.N6}});var DLC=_.y(function(G){var e=G.data;var r=G.className;var Z=G.setMinWidth;var O=G.forceIconOnly;var M=_.hT("account-link-button-view-model"),T=_.hI(_.jns,function(){var g;return(g=e().accountLinkStatusEntityKey)!=null?g:""}),E=_.hI(_.jns,function(){var g;
return(g=e().accountLinkStatusSecondaryEntityKey)!=null?g:""}),b=function(){if(!_.R("web_account_link_secondary_killswitch")){var g,l;
return((g=T())==null?void 0:g.linked)||((l=E())==null?void 0:l.linked)}var X;return(X=T())==null?void 0:X.linked};
_.Y8(function(){var g=T();if(g){var l=aZy(new jCn,lZS(new gen,!!g.linked));_.G_().then(function(X){X&&(X.setAccountLinkState(_.uH(l.JSC$12325_serializeBinary(),4)),X.updateAccountLinkingConfig(!!g.linked))})}},"IvZF7");
var w=function(){return _.a(e().toggleButtonViewModel,_.rq)};
_.Vk("yt-signal-action-show-account-link-dialog",function(){if(w()){var g=b()?w().toggledButtonViewModel:w().defaultButtonViewModel;g=_.a(g,_.G$);var l;if((l=T())==null?0:l.isWarning){l=_.a(e().warningButtonViewModel,_.G$);if(!l){_.GG(Error("Dh"));return}g=l}var X;(l=_.X0((X=g)==null?void 0:X.onTap))&&_.Gn([l],M.value)}else _.GG(Error("Eh"))});
var q=function(){var g=w();return Object.assign({},g,{isToggled:b()})},t=function(){return(O==null?0:O())?{iconPosition:"icon-only"}:{}};
return _.v("account-link-button-view-model",{class:_.LC("ytwAccountLinkButtonViewModelHost",r,function(){return(Z==null?0:Z())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:M,"button-renderer":!0},_.v("div",null,_.v(_.S,{cond:function(){var g;if((g=T())==null?0:g.isWarning)return(g=_.a(e().warningButtonViewModel,_.G$))||_.GG(Error("Dh")),g},
then:function(g){return _.v(_.wF,{data:g,buttonOverrides:t})},
else:function(){return _.v(_.pb,{data:q,buttonShapeOverrides:t})}})))},"Aa");_.J_(DLC,"account-link-button-view-model",{props:{data:_.N6,className:_.yb,setMinWidth:_.yb,forceIconOnly:_.yb}});_.te("menuRenderer","menuRenderer","ytd-menu-renderer");
var EDv={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"}},
iZy=_.R("web_fix_missing_action_buttons")?100:200,x_=function(){var G=_.m.apply(this,arguments)||this;G.safeArea=!_.R("kevlar_flex_menu_safe_area_killswitch");G.tonalOverride=!1;G.threeDotSize="M";G.isOverlay=!1;G.useOverlayDark=!1;G.topLevelIconsOnly=!1;G.JSC$14763_lastWidth=0;G.maybeUpdateFlexibleMenu=function(){_.R("web_fix_missing_action_buttons")?requestAnimationFrame(G.maybeUpdateFlexibleMenuImpl):G.maybeUpdateFlexibleMenuImpl()};
G.maybeUpdateFlexibleMenuImpl=function(){var e;if((e=G.data)!=null&&e.flexibleItems){G.maybeFlushDebouncer();e=G.hostElement.clientWidth;var r=e>G.JSC$14763_lastWidth,Z,O=((Z=G.topLevelButtonsContainer)==null?void 0:Z.scrollHeight)||0,M;Z=((M=G.flexibleItemButtonsContainer)==null?void 0:M.scrollHeight)||0;M=G.hostElement.scrollHeight>Math.max(O,Z)+8;r?(G.resetFlexibleItems(),G.JSC$14763_lastWidth=G.hostElement.clientWidth,G.maybeUpdateFlexibleMenu()):M&&(G.shrinkFlexibleMenu(),G.JSC$14763_lastWidth=
e)}};
G.computeThreeDotButtonShape=function(){if(G.tonalOverride)return Object.assign({},{onTap:function(){G.onOverflowTap()},
iconPosition:"icon-only",style:G.isOverlay?G.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:G.threeDotSize,state:"active",accessibilityLabel:G.computeAccessibilityLabel(G.data)},G.threeDotButtonOverride)};
G.onOverflowTap=function(){if(G.data.fetchMenuCommand)_.v_().resolve(_.$1).resolveCommand(G.data.fetchMenuCommand,{form:{element:G.hostElement}});else if(G.data.isDisabled&&G.data.disabledCommand)_.es(G.data.disabledCommand,G.hostElement);else{var e=G.createMenuRendererVe(),r={items:G.items};G.data.menuPopupAccessibility&&(r.menuPopupAccessibility=G.data.menuPopupAccessibility);G.data.footer&&(r.footer=G.data.footer);e={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:r},veData:e}};
_.v_().resolve(_.nJ).openSheet({openPopupActionCommand:e},G.hostElement)}};
return G};
_.K(x_,_.m);_.V=x_.prototype;_.V.updateButtonOverrides=function(){if(!_.R("menu_renderer_label_update_upkillswitch")){var G=_.z1(this.hostElement).querySelector("yt-button-view-model");G&&(G.buttonOverrides=this.buttonOverrides)}};
_.V.computeHasItems=function(){var G;return((G=this.topLevelButtonData)==null?void 0:G.length)||this.hasFlexibleItems};
_.V.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.V.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.eD(this.hostElement,{"--ytd-menu-renderer-button-color":_.RB(this.data.iconColor)}))};
_.V.onStamperFinished=function(){this.JSC$14763_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.V.setupFlexibleMenu=function(){var G=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 _.Zp(this.maybeUpdateFlexibleMenu,iZy,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){G.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))};
_.V.maybeFlushDebouncer=function(){if(_.R("web_replace_formatted_with_attributed_string")){var G;(G=this.topLevelButtons)==null||G.forEach(function(r){var Z;(r=(Z=r.getElementsByTagName("yt-attributed-string"))==null?void 0:Z[0])&&fUS(r)});
var e;(e=this.flexibleItemButtons)==null||e.forEach(function(r){var Z;(r=(Z=r.getElementsByTagName("yt-attributed-string"))==null?void 0:Z[0])&&fUS(r)})}};
_.V.resetFlexibleItems=function(){var G;if((G=this.data)!=null&&G.flexibleItems){_.R("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(r){return _.a(r,_.eiP).topLevelButton});
_.R("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.V.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.V.shrinkFlexibleMenu=function(){var G;(G=this.flexAsTopLevelButtons)!=null&&G.length&&(this.flexAsTopLevelButtons=[].concat(_.mY(this.flexAsTopLevelButtons.slice(0,-1))))};
_.V.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:EDv,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:EDv,events:!0}}};
_.V.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.V.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.V.detached=function(){this.icon="MORE_VERT"};
_.V.computeTopLevelButtonData=function(G){if(!G)return[];var e;G=(e=G==null?void 0:G.topLevelButtons)!=null?e:[];return _.c2.unsafeClone([].concat(_.mY(G)))};
_.V.computeItems=function(G,e){if(!G)return[];var r=[];if(e){var Z=(G.flexibleItems||[]).map(function(T){return _.a(T,_.eiP)});
Z=_.h(Z);for(var O=Z.next();!O.done;O=Z.next())O=O.value,e.includes(O.topLevelButton)||(O=O.menuItem)&&r.push(O)}var M;G=(M=G==null?void 0:G.items)!=null?M:[];return[].concat(_.mY(r),_.mY(G))};
_.V.computeMenuActive=function(G,e){return G||e};
_.V.onPopupOpened=function(){this.overlayOpen=!0;_.xy(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.V.onPopupClosed=function(){this.overlayOpen=!1;_.xy(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.V.onPopupCanceled=function(){this.overlayOpen=!1;_.xy(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.V.computeAccessibilityLabel=function(G){return this.get("accessibility.accessibilityData.label",G)};
_.V.isHidden=function(G,e){return this.tonalOverride||!G?!0:G.fetchMenuCommand||G.isDisabled&&G.disabledCommand?!1:!(e==null?0:e.length)};
_.V.isModernOverflowHidden=function(G,e){return this.tonalOverride&&G?G.fetchMenuCommand?!1:!(e==null?0:e.length):!0};
_.V.createMenuRendererVe=function(){var G=this.data.trackingParams,e=_.l4(),r=_.go();return G&&e&&r?(G=_.b1(G),r=_.L1(7591),_.R("combine_ve_grafts")?_.Xr(_.h_(),r,G):_.QU(e,G,r),r):null};
_.iY.Object.defineProperties(x_.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.flexAsTopLevelButtons)==null||!G.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
x_.prototype.onPopupCanceled=x_.prototype.onPopupCanceled;x_.prototype.onPopupClosed=x_.prototype.onPopupClosed;x_.prototype.onPopupOpened=x_.prototype.onPopupOpened;x_.prototype.tonalOverrideChanged=x_.prototype.tonalOverrideChanged;x_.prototype.resetFlexibleItems=x_.prototype.resetFlexibleItems;x_.prototype.setupFlexibleMenu=x_.prototype.setupFlexibleMenu;x_.prototype.iconButtonColorChanged=x_.prototype.iconButtonColorChanged;x_.prototype.updateButtonOverrides=x_.prototype.updateButtonOverrides;
_.B([_.k(_.h5),_.x("design:type",Object)],x_.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],x_.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],x_.prototype,"ytRendererstamperBehavior",void 0);_.B([_.hs("#button-shape"),_.x("design:type",HTMLElement)],x_.prototype,"buttonShape",void 0);_.B([_.hs("#button"),_.x("design:type",Object)],x_.prototype,"button",void 0);
_.B([_.n(),_.x("design:type",Object)],x_.prototype,"data",void 0);_.B([_.n({computed:"computeTopLevelButtonData(data)"}),_.x("design:type",Array)],x_.prototype,"topLevelButtonData",void 0);_.B([_.n(),_.x("design:type",Array)],x_.prototype,"flexAsTopLevelButtons",void 0);_.B([_.n({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.x("design:type",Array)],x_.prototype,"items",void 0);_.B([_.n({value:"MORE_VERT"}),_.x("design:type",String)],x_.prototype,"icon",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],x_.prototype,"safeArea",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.x("design:type",Boolean)],x_.prototype,"menuActive",void 0);_.B([_.n(),_.x("design:type",Boolean)],x_.prototype,"menuFocused",void 0);_.B([_.n({value:"bottom"}),_.x("design:type",String)],x_.prototype,"buttonTooltipPosition",void 0);_.B([_.n(),_.x("design:type",Boolean)],x_.prototype,"overlayOpen",void 0);
_.B([_.n({value:!0}),_.x("design:type",Boolean)],x_.prototype,"forceIconButton",void 0);_.B([_.n(),_.x("design:type",Boolean)],x_.prototype,"styleActionButton",void 0);_.B([_.n(),_.x("design:type",Boolean)],x_.prototype,"disableTextTransformOnButtons",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],x_.prototype,"tonalOverride",void 0);_.B([_.n(),_.x("design:type",Object)],x_.prototype,"threeDotSize",void 0);
_.B([_.n(),_.x("design:type",Object)],x_.prototype,"threeDotButtonOverride",void 0);_.B([_.n(),_.x("design:type",Object)],x_.prototype,"isOverlay",void 0);_.B([_.n(),_.x("design:type",Object)],x_.prototype,"useOverlayDark",void 0);_.B([_.n({computed:"computeButtonOverride(tonalOverride)"}),_.x("design:type",Object)],x_.prototype,"buttonOverride",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],x_.prototype,"hasCustomIconColor",void 0);
_.B([_.n({reflectToAttribute:!0}),_.d("flexAsTopLevelButtons"),_.x("design:type",Object),_.x("design:paramtypes",[])],x_.prototype,"hasFlexibleItems",null);_.B([_.n({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.x("design:type",Boolean)],x_.prototype,"hasItems",void 0);_.B([_.n(),_.x("design:type",Object)],x_.prototype,"topLevelIconsOnly",void 0);
_.B([_.Me("topLevelIconsOnly"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],x_.prototype,"updateButtonOverrides",null);_.B([_.d("topLevelIconsOnly"),_.x("design:type",Object),_.x("design:paramtypes",[])],x_.prototype,"buttonOverrides",null);_.B([_.hs("#top-level-buttons-computed"),_.x("design:type",HTMLElement)],x_.prototype,"topLevelButtonsContainer",void 0);_.B([_.To(".top-level-buttons > *"),_.x("design:type",Array)],x_.prototype,"topLevelButtons",void 0);
_.B([_.hs("#flexible-item-buttons"),_.x("design:type",HTMLElement)],x_.prototype,"flexibleItemButtonsContainer",void 0);_.B([_.To("#flexible-item-buttons > *"),_.x("design:type",Array)],x_.prototype,"flexibleItemButtons",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],x_.prototype,"iconButtonColorChanged",null);
_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],x_.prototype,"setupFlexibleMenu",null);_.B([_.iD("topLevelIconsOnly"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],x_.prototype,"resetFlexibleItems",null);_.B([_.Me("tonalOverride"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],x_.prototype,"tonalOverrideChanged",null);
_.B([_.Om("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],x_.prototype,"onPopupOpened",null);_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],x_.prototype,"onPopupClosed",null);_.B([_.Om("yt-popup-canceled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],x_.prototype,"onPopupCanceled",null);
_.A(x_,"ytd-menu-renderer",function(){if(dfw===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);dfw=G}G=dfw;return G},{mode:2});var bZl;var vDb;_.PZ=_.y(function(G){var e=G.data;var r=function(){if(e().icon)a:{var O={iconName:e().icon};for(var M=_.v_().resolve(_.LR),T=_.h([12,24]),E=T.next();!E.done;E=T.next()){var b=E.value;E=Object.assign({},O,{iconStyle:"youtube_fill",iconSize:b});b=Object.assign({},O,{iconStyle:"youtube_outline",iconSize:b});if(M.resolveIcon(E)){O=E;break a}if(M.resolveIcon(b)){O=b;break a}}O=void 0}else O=void 0;return O};
G={};var Z={};return _.v("badge-shape",{class:_.LC("yt-badge-shape",function(){return HAf(e().type)},(G["yt-badge-shape--overlay"]=function(){return e().isOverlay},G["yt-badge-shape--ads-include-dot"]=function(){return e().adsIncludeDot},G["yt-badge-shape--thumbnail-badge"]=function(){a:switch(e().type){case 17:case 18:case 19:var O=!0;
break a;default:O=!1}return O},G["yt-badge-shape--status-badge"]=function(){a:switch(e().type){case 12:case 13:case 14:case 15:case 16:var O=!0;
break a;default:O=!1}return O},G["yt-badge-shape--no-text"]=function(){return!e().text},G["yt-badge-shape--modern"]=function(){return e().modern||_.R("web_modern_badge_shape")},G)),
style:_.Mk({"background-color":function(){var O;return(O=e().customColors)==null?void 0:O.backgroundColor}}),
role:function(){return e().accessibilityText?"img":void 0},
"aria-label":function(){return e().accessibilityText}},_.v(_.S,{cond:function(){return e().animation},
then:function(O){return _.v(_.lO,{className:"yt-badge-shape__icon",data:O,animationName:function(){return O().animationConfig.name||""}})}}),_.v(_.S,{cond:function(){var O;
return r()&&!((O=e())==null?0:O.animation)},
then:function(){return _.v("div",{class:"yt-badge-shape__icon"},_.v(AuS,{data:function(){return r()}}))}}),_.v("div",{class:_.LC("yt-badge-shape__text",(Z["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(e().numBadgesInRow||0)>1},Z))},function(){var O;
return(O=e())==null?void 0:O.text}))},"Ba");
_.PZ.idomCompat=!0;_.J_(_.PZ,"badge-shape",{props:{data:_.N6}});var U1=function(){var G=_.m.apply(this,arguments)||this;G.systemIcons=_.R("kevlar_system_icons");G.animated=_.R("animated_live_badge_icon");G.useBadgeShape=_.R("web_badge_shape_defrag");return G};
_.K(U1,_.m);_.V=U1.prototype;_.V.addTooltips=function(){for(var G=_.z1(this.hostElement).querySelectorAll(".badge"),e=0,r;r=G[e++];){var Z=this.repeatElement.itemForElement(r);r=_.z1(r);r.lastChild&&r.lastChild.is==="tp-yt-paper-tooltip"&&r.removeChild(r.lastChild);if(Z=Z.metadataBadgeRenderer&&Z.metadataBadgeRenderer.tooltip){var O=_.OD("tp-yt-paper-tooltip");(0,_.Go)(O).textContent=Z;O.setAttribute("position","top");O.setAttribute("aria-hidden","true");r.appendChild(O)}}};
_.V.badgesChanged=function(){var G=this;_.rk().parkOrScheduleJob(function(){G.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.V.standaloneRoundedBadgeChanged=function(){var G=this.useRoundedBadge?this.useRoundedBadge:void 0;G&&(this.useRoundedBadge=G)};
_.V.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.V.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.V.computeStyle=function(G){_.R("enable_html5_teal_ad_badge")&&G==="BADGE_STYLE_TYPE_AD"&&(G="badge-style-type-ad-alternate");_.R("kevlar_ytb_live_badges")&&G==="BADGE_STYLE_TYPE_LIVE_NOW"&&(G="badge-style-type-live-now-alternate");return G?G.toLowerCase().replace(/_/g,"-"):""};
_.V.computeRole=function(G){return this.computeAriaLabel(G)?"img":"status"};
_.V.computeAriaLabel=function(G){var e;return(G==null?void 0:(e=G.accessibilityData)==null?void 0:e.label)||(G==null?void 0:G.label)};
_.V.computeBadgeShape=function(G){if(G){var e,r;var Z=fJ$(G.style);var O=kf_(G.style),M=G.label,T=((e=G.accessibilityData)==null?void 0:e.label)||G.label;a:switch(G.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 E=(r=G.icon)==null?void 0:r.iconType;a:switch(G.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":G=!0;break a;default:G=!1}Z={type:Z,brNzRatingBadgeType:O,text:M,accessibilityText:T,
isOverlay:e,icon:E!=="PREMIUM"?E:void 0,modern:_.R("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:G}}else Z={};return Z};
_.V.updateComputedBadges=function(G,e,r){var Z=this;(e=e?[e]:r?[r]:void 0)?this.computedBadges=e:this.computedBadges=G==null?void 0:G.filter(function(O){var M;if((M=O.metadataBadgeRenderer)==null?0:M.groups){M=!1;O=_.h(O.metadataBadgeRenderer.groups);for(var T=O.next();!T.done;T=O.next()){T=T.value;var E=void 0;M=M||((E=Z.hiddenBadgeGroups)==null?void 0:E.includes(T))}return!M}return!0})};
_.V.useFilledIcons=function(G){return _.R("kevlar_system_icons")&&(G==="AUDIO_BADGE"||G==="CHECK_CIRCLE_THICK"||G==="OFFICIAL_ARTIST_BADGE"||G==="SPONSORSHIP_STAR"||G==="PERSON_RADAR_FILLED"||G==="PERSON_RADAR")};
_.V.computeBadgeShapeStyle=function(G){return this.useBadgeShape?G==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||G==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":G==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.V.computeIcon=function(G){var e,r;G=G==null?void 0:(e=G.metadataBadgeRenderer)==null?void 0:(r=e.icon)==null?void 0:r.iconType;if(G!=="PREMIUM"&&G)return _.Ne(G)};
_.V.computeStandaloneBadge=function(G){var e;G=G==null?void 0:(e=G.icon)==null?void 0:e.iconType;return G==="PREMIUM_STANDALONE"||G==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
U1.prototype.hiddenBadgeGroupsChanged=U1.prototype.hiddenBadgeGroupsChanged;U1.prototype.standaloneBadgeChanged=U1.prototype.standaloneBadgeChanged;U1.prototype.standaloneRoundedBadgeChanged=U1.prototype.standaloneRoundedBadgeChanged;U1.prototype.badgesChanged=U1.prototype.badgesChanged;_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],U1.prototype,"hidden",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],U1.prototype,"componentBehavior",void 0);
_.B([_.n(),_.x("design:type",Array)],U1.prototype,"badges",void 0);_.B([_.n(),_.x("design:type",Object)],U1.prototype,"topStandaloneBadge",void 0);_.B([_.n(),_.x("design:type",Object)],U1.prototype,"bottomStandaloneBadge",void 0);_.B([_.n(),_.x("design:type",Object)],U1.prototype,"computedBadges",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],U1.prototype,"mediumFontAdBadge",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],U1.prototype,"useRoundedBadge",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],U1.prototype,"largeFontAdBadge",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],U1.prototype,"overlayAd",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],U1.prototype,"overlayPremium",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],U1.prototype,"noDotAdBadge",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],U1.prototype,"collectionTruncate",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],U1.prototype,"isThumbnailBadge",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],U1.prototype,"wrapBadges",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Number)],U1.prototype,"numBadgesInRow",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],U1.prototype,"systemIcons",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],U1.prototype,"animated",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],U1.prototype,"useBadgeShape",void 0);_.B([_.n({value:[]}),_.x("design:type",Array)],U1.prototype,"hiddenBadgeGroups",void 0);_.B([_.hs("#repeat"),_.x("design:type",gv)],U1.prototype,"repeatElement",void 0);_.B([_.iD("badges"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],U1.prototype,"badgesChanged",null);
_.B([_.iD("useRoundedBadge"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],U1.prototype,"standaloneRoundedBadgeChanged",null);_.B([_.iD("topStandaloneBadge","bottomStandaloneBadge"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],U1.prototype,"standaloneBadgeChanged",null);_.B([_.iD("hiddenBadgeGroups"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],U1.prototype,"hiddenBadgeGroupsChanged",null);
_.B([_.c({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],U1);
var wTy=_.xP()(U1,"ytd-badge-supported-renderer",function(){if(vDb===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);vDb=G}G=vDb;return G},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.Px("kevlar_poly_si_batch_j053")?1:2});var zJ=function(){var G=_.m.apply(this,arguments)||this;G.iconType="STAR";G.standardizeIconSize=_.R("kevlar_system_icons");G.mediaHoverOverlayInitialVisibility=_.R("enable_top_landscape_image_button_command_web");G.noBottomMargin=!1;G.thumbnailObjectFit="CONTAIN";G.thumbnailFitHeight=!0;G.actionMap={"yt-mute-ad-action":"handleMuteAd"};return G};
_.K(zJ,_.m);_.V=zJ.prototype;_.V.created=function(){this.activeView=new w9(this.hostElement)};
_.V.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"}}}};
_.V.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",zJ.JSC$14775_DEFAULT_CLICK_LOCATION_BEHAVIOR,zJ.JSC$14775_CLICK_LOCATION_ID_MAP))};
_.V.onTap=function(G){this.onTapOrClick(G)};
_.V.onTapOrClick=function(G){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,G,!1)};
_.V.updateMediaBackgroundImage=function(){var G=this.get("data.image.thumbnail.thumbnails");G&&(G=_.BQ(G,0))&&_.eD(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+G+")"})};
_.V.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var G=0;G<this.data.impressionEndpoints.length;G++){var e=this.data.impressionEndpoints[G];e.clickTrackingParams&&delete e.clickTrackingParams;_.v_().resolve(_.$1).resolveCommand(e,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var r;((r=this.data)==null?0:r.activeView)&&$_(this.activeView,this.data.activeView)}};
_.V.handleMuteAd=function(){};
_.V.attached=function(){var G=this;_.R("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Sw(G.activeView)})};
_.V.detached=function(){_.R("stop_av_measurement_on_detach")&&Sw(this.activeView)};
_.iY.Object.defineProperties(zJ.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.titleText)return"";var e;return _.OK("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((e=this.data)==null?void 0:e.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.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 G;return!((G=this.data)==null||!G.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"}}});
zJ.prototype.onTap=zJ.prototype.onTap;zJ.prototype.dataChanged=zJ.prototype.dataChanged;
zJ.JSC$14775_CLICK_LOCATION_ID_MAP=_.R("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"]]);
zJ.JSC$14775_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.R("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"}];_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],zJ.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],zJ.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.J5),_.x("design:type",Object)],zJ.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],zJ.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.TJ.YtSparklesClickLocationBehavior),_.x("design:type",Object)],zJ.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.k([_.gF.YtActionHandlerBehavior]),_.x("design:type",Object)],zJ.prototype,"actionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],zJ.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",Object)],zJ.prototype,"clickCommand",void 0);_.B([_.n({reflectToAttribute:!0,selector:_.lw}),_.x("design:type",Boolean)],zJ.prototype,"miniMode",void 0);_.B([_.n(),_.x("design:type",String)],zJ.prototype,"iconType",void 0);_.B([_.d("data.titleText"),_.x("design:type",String),_.x("design:paramtypes",[])],zJ.prototype,"titleAriaLabel",null);_.B([_.d("data.rating"),_.x("design:type",Object),_.x("design:paramtypes",[])],zJ.prototype,"getRating",null);
_.B([_.d("data.price"),_.x("design:type",Object),_.x("design:paramtypes",[])],zJ.prototype,"getPrice",null);_.B([_.d("data.thirdLine"),_.x("design:type",Object),_.x("design:paramtypes",[])],zJ.prototype,"getThirdLine",null);_.B([_.d("data.fourthLine"),_.x("design:type",Object),_.x("design:paramtypes",[])],zJ.prototype,"getFourthLine",null);_.B([_.d("data.fifthLine"),_.x("design:type",Object),_.x("design:paramtypes",[])],zJ.prototype,"getFifthLine",null);
_.B([_.d("getRating"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],zJ.prototype,"computeRatingHidden",null);_.B([_.d("getPrice"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],zJ.prototype,"computePriceHidden",null);_.B([_.d("getThirdLine"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],zJ.prototype,"computeThirdLineHidden",null);_.B([_.d("getFourthLine"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],zJ.prototype,"computeFourthLineHidden",null);
_.B([_.d("getFifthLine"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],zJ.prototype,"computeFifthLineHidden",null);_.B([_.n({reflectToAttribute:!0}),_.d("data.energyIcon"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],zJ.prototype,"hasEnergyIcon",null);_.B([_.d("computePriceHidden","computeRatingHidden"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],zJ.prototype,"computeSecondaryTextHidden",null);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],zJ.prototype,"standardizeIconSize",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],zJ.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],zJ.prototype,"noBottomMargin",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("data.layout"),_.x("design:type",String),_.x("design:paramtypes",[])],zJ.prototype,"layout",null);
_.B([_.d("data.layout"),_.x("design:type",Object),_.x("design:paramtypes",[])],zJ.prototype,"mediaThumbnailWidth",null);_.B([_.d("layout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],zJ.prototype,"useRoundedBadge",null);_.B([_.n(),_.x("design:type",String)],zJ.prototype,"thumbnailObjectFit",void 0);_.B([_.n(),_.x("design:type",Object)],zJ.prototype,"thumbnailFitHeight",void 0);
_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zJ.prototype,"dataChanged",null);_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],zJ.prototype,"onTap",null);_.B([_.c({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],zJ);
_.A(zJ,"ytd-display-ad-renderer",function(){if(bZl!==void 0)return bZl;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return bZl=G},{mode:1});var $LW;var SGb;var qGE;var df4=new Map;var tyw=!1;var WZ=function(){var G=_.m.apply(this,arguments)||this;G.DEFAULT_TOOLTIP_OFFSET="10";G.TOOLTIP_OFFSET_NO_BANNER="-8";G.badges=null;G.noEndpoints=!1;G.wrapText=!1;G.forceVerified=!1;G.tooltipPosition="top";G.compactStyle=!1;G.height=0;G.lineHeight=0;return G};
_.K(WZ,_.m);_.V=WZ.prototype;_.V.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.V.attached=function(){var G=this;this.observer=new MutationObserver(function(e,r){G.handleResized();r.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.V.detached=function(){this.observer&&this.observer.disconnect()};
_.V.logTooltipEvent=function(){_.R("kevlar_wiz_tooltip_event_killswitch")||tyw||(_.oTp("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),tyw=!0)};
_.V.handleWindowResized=function(){this.handleResized()};
_.V.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")))};
_.V.onHeightChanged=function(){if(this.verified){var G=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.xZ("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=G:this.textContainerEl.style.marginRight=G}};
_.V.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.xZ("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.V.handleResized=function(){var G=this;this.verified&&_.A0.addLowPriorityJob(function(){G.fitBackgroundToText();var e=getComputedStyle(G.hostElement).lineHeight;e&&(e=e.match(/\d+/))&&e.length&&(G.lineHeight=Number(e[0]));G.height=G.lineHeight&&!G.wrapText?G.lineHeight:G.textEl.offsetHeight})};
_.V.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var G=document.createRange(),e=_.z1(this.textEl).children;e.length>0?G.selectNodeContents(e[0]):G.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(G.getBoundingClientRect().width)+"px"}};
_.V.computeChannelBadgeStyle=function(G){var e;if((G==null?0:(e=G.runs)==null?0:e.length)&&G.runs[0].textColor)return"--ytd-badge-icon-color:"+_.RB(G.runs[0].textColor)+";"};
_.iY.Object.defineProperties(WZ.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"?_.nQ(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var G=this.get("badges.0.metadataBadgeRenderer.tooltip");if(G)return G}return _.mG(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
WZ.prototype.onLineHeightChanged=WZ.prototype.onLineHeightChanged;WZ.prototype.onHeightChanged=WZ.prototype.onHeightChanged;WZ.prototype.onChannelNameChanged=WZ.prototype.onChannelNameChanged;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],WZ.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],WZ.prototype,"badges",void 0);_.B([_.n(),_.x("design:type",Object)],WZ.prototype,"channelName",void 0);
_.B([_.n(),_.x("design:type",Object)],WZ.prototype,"noEndpoints",void 0);_.B([_.n(),_.x("design:type",Object)],WZ.prototype,"wrapText",void 0);_.B([_.n(),_.x("design:type",Object)],WZ.prototype,"forceVerified",void 0);_.B([_.n(),_.x("design:type",Object)],WZ.prototype,"tooltipPosition",void 0);_.B([_.n(),_.x("design:type",String)],WZ.prototype,"tooltip",void 0);_.B([_.n(),_.x("design:type",Boolean)],WZ.prototype,"hasChannelArt",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],WZ.prototype,"compactStyle",void 0);_.B([_.hs("#text-container"),_.x("design:type",HTMLElement)],WZ.prototype,"textContainerEl",void 0);_.B([_.hs("#text"),_.x("design:type",Object)],WZ.prototype,"textEl",void 0);_.B([_.hs("#verified-tooltip"),_.x("design:type",HTMLElement)],WZ.prototype,"verifiedTooltip",void 0);_.B([_.n(),_.x("design:type",Object)],WZ.prototype,"height",void 0);
_.B([_.n(),_.x("design:type",Object)],WZ.prototype,"lineHeight",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("badges","forceVerified"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],WZ.prototype,"verified",null);_.B([_.d("badges","verified"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],WZ.prototype,"hideBadges",null);_.B([_.d("channelName"),_.x("design:type",Object),_.x("design:paramtypes",[])],WZ.prototype,"formattedName",null);
_.B([_.d("badges","verified","formattedName"),_.x("design:type",String),_.x("design:paramtypes",[])],WZ.prototype,"tooltipText",null);_.B([_.d("hasChannelArt"),_.x("design:type",String),_.x("design:paramtypes",[])],WZ.prototype,"tooltipOffset",null);_.B([_.Me("channelName"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WZ.prototype,"onChannelNameChanged",null);
_.B([_.Me("height"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WZ.prototype,"onHeightChanged",null);_.B([_.Me("lineHeight","height"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WZ.prototype,"onLineHeightChanged",null);_.B([_.c({is:"ytd-channel-name",disableElementRegistration:!0})],WZ);
_.A(WZ,"ytd-channel-name",function(){if(qGE!==void 0)return qGE;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return qGE=G},{mode:_.Px("kevlar_poly_si_batch_j036")?1:2});var N9=function(){var G=_.m.apply(this,arguments)||this;G.standardizeIconSize=_.R("kevlar_system_icons");return G};
_.K(N9,_.m);N9.prototype.basicPaletteChanged=function(){var G;(G=this.data.color)!=null&&G.basicColorPaletteData&&_.Sv(this.hostElement,this.data.color.basicColorPaletteData)};
N9.prototype.useFilledIcons=function(G){return _.R("kevlar_system_icons")&&(G==="CHECK_CIRCLE_THICK"||G==="OFFICIAL_ARTIST_BADGE")};
_.iY.Object.defineProperties(N9.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return this.data.authorCreator||((G=this.data)==null?void 0:(e=G.color)==null?void 0:(r=e.basicColorPaletteData)==null?void 0:r.backgroundColor)}}});
N9.prototype.basicPaletteChanged=N9.prototype.basicPaletteChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],N9.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],N9.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],N9.prototype,"standardizeIconSize",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("data.authorUnifiedVerified"),_.x("design:type",Object),_.x("design:paramtypes",[])],N9.prototype,"verified",null);
_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],N9.prototype,"creator",null);_.B([_.Me("data.color.basicColorPaletteData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],N9.prototype,"basicPaletteChanged",null);_.B([_.c({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],N9);
_.A(N9,"ytd-author-comment-badge-renderer",function(){if(SGb!==void 0)return SGb;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return SGb=G},{mode:1});var gDy;var LJ=function(){return _.m.apply(this,arguments)||this};
_.K(LJ,_.m);LJ.prototype.computeThumbnailWidth=function(G){if(G==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],LJ.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],LJ.prototype,"data",void 0);_.B([_.n({computed:"computeIcon_(data.icon)"}),_.x("design:type",String)],LJ.prototype,"icon",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],LJ.prototype,"surface",void 0);
_.B([_.n({reflectToAttribute:!0,value:_.R("enable_shrink_image_size_on_web_posts_singleton")}),_.x("design:type",Boolean)],LJ.prototype,"searchSxsUx",void 0);_.B([_.n({reflectToAttribute:!0,value:_.R("enable_community_page_on_desktop")}),_.x("design:type",Boolean)],LJ.prototype,"useSmallerPostImageAttachments",void 0);_.B([_.c({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],LJ);
_.A(LJ,"ytd-backstage-image-renderer",function(){if(gDy!==void 0)return gDy;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return gDy=G},{mode:1});var lNy;var G3=function(){var G=_.m.apply(this,arguments)||this;G.isLoading=!1;G.selectedItemIndex=-1;return G};
_.K(G3,_.m);_.V=G3.prototype;_.V.computeIsChannelOwner=function(G){if(!G)return!0;G=G[0];return!(G&&(G.signinEndpoint||G.selectServiceEndpoint))};
_.V.computeIsImagePoll=function(G){return(G==null?void 0:G.type)==="POLL_TYPE_IMAGE"};
_.V.computeIsTotalVotesDisabled=function(G){return!(G==null?0:G.totalVotes)};
_.V.thumbnailSrc=function(G){var e,r,Z,O;return(G==null?0:(e=G.thumbnails)==null?0:(r=e[0])==null?0:r.url)?_.Fy((Z=G.thumbnails)==null?void 0:(O=Z[0])==null?void 0:O.url):void 0};
_.V.progressWidth=function(G){return"width:"+(G?G*100:0)+"%;"};
_.V.textAreaWidth=function(G){return this.isImagePoll?null:"width:"+(G?G*100:0)+"%;"};
_.V.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.V.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var G=this.data.choices,e=0;e<G.length;e++)if(G[e].selected){this.selectedItemIndex=e;break}};
_.V.onPopupClosed=function(G,e){G=Number(this.pollVotes.selected);e.confirmed&&(this.selectChoice(G,!1),_.Pi(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.V.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.V.onYtCommentPollRevert=function(G,e){e&&(this.selectChoice(e.selectedChoiceIndex,!0),this.set("data.totalVotes",e.totalVotes))};
_.V.onYtServiceRequestSent=function(G,e){if(e.actions)for(G=0;G<e.actions.length;G++){var r=e.actions[G];_.a(r,oa)&&this.set("data.totalVotes",_.a(r,oa).totalVotes)}};
_.V.onYtServiceRequestCompleted=function(G){var e=this.get("detail.data.actionResults.0.feedback",G);G=this.get("detail.data.actionResults.0.status",G);if(e==="FEEDBACK_DESELECT"||e==="FEEDBACK_SELECT")this.isLoading=!1,G==="STATUS_FAILED"?_.xy(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.V.getEndpoint=function(G,e){return e===G?this.data.choices[e].deselectServiceEndpoint||null:this.data.choices[G].selectServiceEndpoint||null};
_.V.selectChoice=function(G,e){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var r=0;r<this.data.choices.length;r++){var Z;if(G===this.selectedItemIndex){var O=!1;var M=Z=null}else Z=(O=r===G)?this.data.choices[r].voteRatioIfSelected:this.data.choices[r].voteRatioIfNotSelected,M=O?this.data.choices[r].votePercentageIfSelected:this.data.choices[r].votePercentageIfNotSelected;this.set("data.choices."+r+".voteRatio",Z);
this.set("data.choices."+r+".votePercentage",M);this.set("data.choices."+r+".selected",O)}e||(this.isLoading=!0,(e=this.getEndpoint(G,this.selectedItemIndex))&&_.v_().resolve(_.$1).resolveCommand(e,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===G?-1:G};
_.iY.Object.defineProperties(G3.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
G3.prototype.onYtServiceRequestCompleted=G3.prototype.onYtServiceRequestCompleted;G3.prototype.onYtServiceRequestSent=G3.prototype.onYtServiceRequestSent;G3.prototype.onYtCommentPollRevert=G3.prototype.onYtCommentPollRevert;G3.prototype.onPopupClosed=G3.prototype.onPopupClosed;G3.prototype.dataChanged=G3.prototype.dataChanged;_.B([_.k(_.eJ),_.x("design:type",Object)],G3.prototype,"paperItemBehavior",void 0);
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],G3.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h5),_.x("design:type",Object)],G3.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],G3.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],G3.prototype,"isLoading",void 0);_.B([_.n({computed:"computeIsChannelOwner(data.choices)"}),_.x("design:type",Boolean)],G3.prototype,"isChannelOwner",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.x("design:type",Boolean)],G3.prototype,"isImagePoll",void 0);_.B([_.n({computed:"computeIsTotalVotesDisabled(data)"}),_.x("design:type",Boolean)],G3.prototype,"isTotalVotesDisabled",void 0);_.B([_.n(),_.x("design:type",Object)],G3.prototype,"previousPollInfo",void 0);_.B([_.n(),_.x("design:type",Object)],G3.prototype,"selectedItemIndex",void 0);_.B([_.hs("#poll-votes"),_.x("design:type",Object)],G3.prototype,"pollVotes",void 0);
_.B([_.d("isChannelOwner"),_.x("design:type",Object),_.x("design:paramtypes",[])],G3.prototype,"endpointStyle",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],G3.prototype,"dataChanged",null);_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],G3.prototype,"onPopupClosed",null);
_.B([_.Om("yt-comment-poll-revert"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],G3.prototype,"onYtCommentPollRevert",null);_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.oV]),_.x("design:returntype")],G3.prototype,"onYtServiceRequestSent",null);
_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],G3.prototype,"onYtServiceRequestCompleted",null);_.B([_.c({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],G3);
_.A(G3,"ytd-backstage-poll-renderer",function(){if(lNy!==void 0)return lNy;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return lNy=G},{mode:2});var Rby;var jOS={autoplay:!1,loop:!1},aNc={simpleText:""},eT=function(){var G=_.m.apply(this,arguments)||this;G.isLoading=!1;G.usesPanelLockup=!1;G.selectedItemIndex=-1;G.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},jOS,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});G.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},jOS,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});G.correctnessAnimationProps=[];G.correctnessAnimationRefs=[];return G};
_.K(eT,_.m);_.V=eT.prototype;_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.V.computeIsChannelOwner=function(G){if(!G)return!0;G=G[0];return!(G&&(G.signinEndpoint||G.selectServiceEndpoint))};
_.V.computeIsTotalVotesDisabled=function(G){return!(G==null?0:G.totalVotes)};
_.V.computeIsImageQuiz=function(G){return(G==null?void 0:G.type)==="POLL_TYPE_IMAGE"};
_.V.onExplanationChanged=function(){this.expander.reset()};
_.V.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var G=this.data.choices;if(G){this.maybeInitializeQuizLotties(G);for(var e=0;e<G.length;e++)if(G[e].isSelected||this.isChannelOwner&&G[e].isCorrect){this.selectedItemIndex=e;return}this.selectedItemIndex=-1}}};
_.V.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var G=this.selectedItemIndex,e=Number(this.quizVotes.selected);this.selectChoice(e);this.sendVoteAction(e,G);this.quizVotes.selected=-1;var r;G=!((r=this.data)==null?0:r.enableAnimation);this.maybePlayAnswerAnimations(G)}};
_.V.onYtCommentPollRevert=function(G,e){e&&(this.selectChoice(e.selectedChoiceIndex),this.set("data.totalVotes",e.totalVotes))};
_.V.onYtServiceRequestSent=function(G,e){if(e.actions)for(G=_.h(e.actions),e=G.next();!e.done;e=G.next())(e=_.a(e.value,oa))&&this.set("data.totalVotes",e.totalVotes)};
_.V.onYtServiceRequestCompleted=function(G){var e=this.get("detail.data.actionResults.0.feedback",G);G=this.get("detail.data.actionResults.0.status",G);if(e==="FEEDBACK_DESELECT"||e==="FEEDBACK_SELECT")this.isLoading=!1,G==="STATUS_FAILED"?_.xy(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.V.getAnimationPropsForChoiceIndex=function(G,e){return e[G]};
_.V.maybePlayAnswerAnimations=function(G){G=G===void 0?!1:G;var e;if((e=this.data)!=null&&e.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){e=_.h(this.correctnessAnimationRefs);for(var r=e.next();!r.done;r=e.next()){var Z=void 0,O=void 0;(Z=r.value)==null||(O=Z.lottieEl)==null||O.stop()}if(!(this.selectedItemIndex<0)){e=0;G&&(e=this.isCorrect?37:25);var M,T;(M=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(T=M.lottieEl)==null||T.goToAndPlay(G?e:0,!0);if(!(this.isCorrect||
(M=this.data.choices.findIndex(function(q){return q.isCorrect}),M<0))){var E,b;
(b=(E=this.correctnessAnimationRefs[M])==null?void 0:E.lottieEl)==null||b.goToAndPlay(37,!0);var w;E=(w=this.fadeContainers)==null?void 0:w.item(M);!G&&E&&this.fadeIn(E)}}}};
_.V.thumbnailSrc=function(G){var e,r,Z,O;return(G==null?0:(e=G.thumbnails)==null?0:(r=e[0])==null?0:r.url)?_.Fy((Z=G.thumbnails)==null?void 0:(O=Z[0])==null?void 0:O.url):void 0};
_.V.a11yVotedText=function(G,e){var r,Z,O=((r=this.data)==null?void 0:(Z=r.correctVotedText)==null?void 0:Z.simpleText)||"",M,T;r=((M=this.data)==null?void 0:(T=M.votedText)==null?void 0:T.simpleText)||"";if(!e)return"";var E,b;if((E=this.data)==null?0:(b=E.choices)==null?0:b[G].isCorrect)return O;var w,q;return((w=this.data)==null?0:(q=w.choices)==null?0:q[G].isSelected)?r:""};
_.V.getEndpoint=function(G,e){return e===G?this.data.choices[G].deselectServiceEndpoint||null:this.data.choices[G].selectServiceEndpoint||null};
_.V.sendVoteAction=function(G,e){if(G=this.getEndpoint(G,e))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(G)};
_.V.selectChoice=function(G){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",G===this.selectedItemIndex?!1:e===G);this.selectedItemIndex=this.selectedItemIndex===G?-1:G};
_.V.maybeInitializeQuizLotties=function(G){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=G.map(function(r){return{animationConfig:r.isCorrect?e.baseCorrectLottiePlayerAnimationConfig:e.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){e.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(r){return r.animationRef||{}})};
_.V.fadeIn=function(G){G.classList.add("fade-in");_.za(_.A0,function(){G.classList.remove("fade-in")},900)};
_.iY.Object.defineProperties(eT.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.R("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.mG(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 G,e;return((G=this.data)==null?void 0:(e=G.choices)==null?void 0:e.some(function(r){return r.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null||!G.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?aNc:this.data.choices[this.selectedItemIndex].explanation||aNc}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null||!G.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
eT.prototype.onYtServiceRequestCompleted=eT.prototype.onYtServiceRequestCompleted;eT.prototype.onYtServiceRequestSent=eT.prototype.onYtServiceRequestSent;eT.prototype.onYtCommentPollRevert=eT.prototype.onYtCommentPollRevert;eT.prototype.dataChanged=eT.prototype.dataChanged;eT.prototype.onExplanationChanged=eT.prototype.onExplanationChanged;_.B([_.k(_.eJ),_.x("design:type",Object)],eT.prototype,"paperItemBehavior",void 0);
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],eT.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],eT.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.Zs.YtTaskEmitterBehavior),_.x("design:type",Object)],eT.prototype,"ytTaskEmitterBehavior",void 0);_.B([_.k(_.h5),_.x("design:type",Object)],eT.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],eT.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",Object)],eT.prototype,"isLoading",void 0);_.B([_.n(),_.x("design:type",Object)],eT.prototype,"usesPanelLockup",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.x("design:type",Boolean)],eT.prototype,"isChannelOwner",void 0);_.B([_.n({computed:"computeIsTotalVotesDisabled(data)"}),_.x("design:type",Boolean)],eT.prototype,"isTotalVotesDisabled",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.x("design:type",Boolean)],eT.prototype,"isImageQuiz",void 0);_.B([_.n(),_.x("design:type",Object)],eT.prototype,"previousQuizInfo",void 0);_.B([_.n(),_.x("design:type",Object)],eT.prototype,"selectedItemIndex",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("data","usesPanelLockup"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],eT.prototype,"shouldUseModernUi",null);
_.B([_.To(".fade-container"),_.x("design:type",Object)],eT.prototype,"fadeContainers",void 0);_.B([_.n(),_.x("design:type",Array)],eT.prototype,"correctnessAnimationProps",void 0);_.B([_.d("explanation","showCorrectAnswer"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],eT.prototype,"showExplanation",null);_.B([_.d("isChannelOwner","isAttempted"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],eT.prototype,"showCorrectAnswer",null);
_.B([_.d("isChannelOwner","isAttempted","data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],eT.prototype,"isQuizAnsweringDisabled",null);_.B([_.d("isQuizAnsweringDisabled"),_.x("design:type",Object),_.x("design:paramtypes",[])],eT.prototype,"endpointStyle",null);_.B([_.d("data","selectedItemIndex"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],eT.prototype,"isAttempted",null);
_.B([_.d("data","selectedItemIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],eT.prototype,"explanation",null);_.B([_.d("data","selectedItemIndex"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],eT.prototype,"isCorrect",null);_.B([_.hs("ytd-expander"),_.x("design:type",Object)],eT.prototype,"expander",void 0);_.B([_.hs("#quiz-votes"),_.x("design:type",Object)],eT.prototype,"quizVotes",void 0);
_.B([_.Me("explanation"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],eT.prototype,"onExplanationChanged",null);_.B([_.Me("data","isChannelOwner"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],eT.prototype,"dataChanged",null);_.B([_.Om("yt-comment-quiz-revert"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],eT.prototype,"onYtCommentPollRevert",null);
_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.oV]),_.x("design:returntype")],eT.prototype,"onYtServiceRequestSent",null);_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],eT.prototype,"onYtServiceRequestCompleted",null);_.B([_.c({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],eT);
_.A(eT,"ytd-backstage-quiz-renderer",function(){if(Rby!==void 0)return Rby;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Rby=G},{mode:1});var XTw;var rH=function(){return _.m.apply(this,arguments)||this};
_.K(rH,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],rH.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],rH.prototype,"data",void 0);_.B([_.c({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],rH);
_.A(rH,"ytd-post-uploaded-video-renderer",function(){if(XTw!==void 0)return XTw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return XTw=G},{mode:1});var KPl;var Zo=function(){return _.m.apply(this,arguments)||this};
_.K(Zo,_.m);Zo.prototype.useFilledIcons=function(G){return G==="SPONSORSHIP_STAR"};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Zo.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Zo.prototype,"data",void 0);_.B([_.c({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],Zo);
var fNw=_.xP()(Zo,"ytd-sponsors-only-badge-renderer",function(){if(KPl===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);KPl=G}G=KPl;return G},{allowedProps:["data"],
mode:1});var kYv;var OE=function(){return _.m.apply(this,arguments)||this};
_.K(OE,_.m);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],OE.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],OE.prototype,"data",void 0);_.B([_.c({is:"ytd-child-video-renderer",disableElementRegistration:!0})],OE);
_.A(OE,"ytd-child-video-renderer",function(){if(kYv!==void 0)return kYv;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return kYv=G},{mode:1});var HZn;var dLS;var Mm=function(){var G=_.m.apply(this,arguments)||this;G.size=0;G.fallbackImageSize={height:void 0,width:9999};G.webModernCollections=!1;return G};
_.K(Mm,_.m);_.V=Mm.prototype;_.V.computeBlurredImageSize=function(G){return G?{height:G*2,width:G*2}:this.fallbackImageSize};
_.V.computeImageSize=function(G){return G?{height:G,width:G}:this.fallbackImageSize};
_.V.computeObjectFit=function(G){return G?"FILL":"CONTAIN"};
_.V.computePreserve=function(G){return G?!0:!1};
_.V.setBackground=function(){var G,e;if((G=this.data)==null?0:(e=G.thumbnail)==null?0:e.sampledThumbnailColor)G=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+G.red+","+G.green+","+G.blue+",1)"};
Mm.prototype.setBackground=Mm.prototype.setBackground;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Mm.prototype,"ytRendererBehavior",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Mm.prototype,"watchFeedThumbnail",void 0);_.B([_.n(),_.x("design:type",Object)],Mm.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],Mm.prototype,"size",void 0);
_.B([_.n({computed:"computeBlurredImageSize(size)"}),_.x("design:type",Object)],Mm.prototype,"blurredImageSize",void 0);_.B([_.n({computed:"computeImageSize(size)"}),_.x("design:type",Object)],Mm.prototype,"imageSize",void 0);_.B([_.n({computed:"computePreserve(size)"}),_.x("design:type",String)],Mm.prototype,"preserve",void 0);_.B([_.n({computed:"computeObjectFit(size)"}),_.x("design:type",String)],Mm.prototype,"objectFit",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Mm.prototype,"webModernCollections",void 0);_.B([_.Me("data.thumbnail.sampledThumbnailColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Mm.prototype,"setBackground",null);_.B([_.c({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],Mm);
_.A(Mm,"ytd-playlist-custom-thumbnail-renderer",function(){if(dLS!==void 0)return dLS;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return dLS=G},{mode:1});var oDC;var Vy=function(){return _.m.apply(this,arguments)||this};
_.K(Vy,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Vy.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Vy.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Number)],Vy.prototype,"width",void 0);_.B([_.c({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],Vy);
_.A(Vy,"ytd-playlist-video-thumbnail-renderer",function(){if(oDC!==void 0)return oDC;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return oDC=G},{mode:1});var sOE;var hq=function(){return _.m.apply(this,arguments)||this};
_.K(hq,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],hq.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],hq.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Number)],hq.prototype,"width",void 0);_.B([_.c({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],hq);
_.A(hq,"ytd-show-custom-thumbnail-renderer",function(){if(sOE!==void 0)return sOE;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return sOE=G},{mode:1});var QOy;var T3=function(){return _.m.apply(this,arguments)||this};
_.K(T3,_.m);T3.prototype.useFilledIcons=function(G){return G==="MUSIC"||G==="COURSE"};
T3.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=aB(this.overlayColor,"0.8");else if(this.overlayColor){var G=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+G.red+","+G.green+","+G.blue+",0.8)"}};
_.iY.Object.defineProperties(T3.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)}}});
T3.prototype.overlayColorChanged=T3.prototype.overlayColorChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],T3.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],T3.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],T3.prototype,"overlayColor",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("data.icon","data.text"),_.x("design:type",Object),_.x("design:paramtypes",[])],T3.prototype,"overlayStyle",null);
_.B([_.n({reflectToAttribute:!0}),_.d("data.icon","data.text"),_.x("design:type",Object),_.x("design:paramtypes",[])],T3.prototype,"overlayTextStyle",null);_.B([_.Me("overlayColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],T3.prototype,"overlayColorChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],T3);
_.A(T3,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(QOy!==void 0)return QOy;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return QOy=G},{mode:1});var IN3;var Do=function(){var G=_.m.apply(this,arguments)||this;G.active=!1;return G};
_.K(Do,_.m);Do.prototype.computeIsSpinnerHidden=function(G){return(G==null?void 0:G.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
Do.prototype.computeOverlayIcon=function(G){return(G==null?void 0:G.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(G==null?void 0:G.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Do.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Do.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],Do.prototype,"active",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],Do);
_.A(Do,"ytd-thumbnail-overlay-downloading-renderer",function(){if(IN3!==void 0)return IN3;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return IN3=G},{mode:1});var pTn;var EE=function(){return _.m.apply(this,arguments)||this};
_.K(EE,_.m);_.iY.Object.defineProperties(EE.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],EE.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],EE.prototype,"data",void 0);_.B([_.d("data.text"),_.x("design:type",Object),_.x("design:paramtypes",[])],EE.prototype,"text",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],EE);
_.A(EE,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(pTn!==void 0)return pTn;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return pTn=G},{mode:1});var CTl,uIn=function(){if(CTl!==void 0)return CTl;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return CTl=G};var io=function(){return _.m.apply(this,arguments)||this};
_.K(io,_.m);_.iY.Object.defineProperties(io,{template:{configurable:!0,enumerable:!0,get:function(){return uIn()}}});
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],io.prototype,"animateEqualizer",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],io);_.xP()(io,"ytd-thumbnail-overlay-equalizer",function(){return uIn()},{allowedProps:["animateEqualizer"],
mode:1});var nDv;var bo=function(){var G=_.m.apply(this,arguments)||this;G.nowPlayingBadge=_.R("web_now_playing_badge");G.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return G};
_.K(bo,_.m);bo.prototype.activeChanged=function(){var G=this;_.R("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.DE(this,function(){_.xy(G.hostElement,"yt-playlist-lockup-now-playing-active",G)})};
bo.prototype.onMiniplayerPlayStateChanged=function(G){var e,r=(e=_.a(_.sI().currentEndpoint,_.u4))==null?void 0:e.videoId;this.isVideoPlaying=G&&(_.R("web_limit_now_playing_animation_killswitch")||this.videoId===r)};
bo.prototype.activeChanged=bo.prototype.activeChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],bo.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],bo.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],bo.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Boolean)],bo.prototype,"isVideoPlaying",void 0);_.B([_.n(),_.x("design:type",String)],bo.prototype,"videoId",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],bo.prototype,"equalizerOnly",void 0);_.B([_.n(),_.x("design:type",Boolean)],bo.prototype,"isActive",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],bo.prototype,"nowPlayingBadge",void 0);_.B([_.Me("isActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bo.prototype,"activeChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],bo);
_.A(bo,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(nDv!==void 0)return nDv;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return nDv=G},{mode:1});var mLw;var vy=function(){return _.m.apply(this,arguments)||this};
_.K(vy,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],vy.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],vy.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],vy);
_.A(vy,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(mLw!==void 0)return mLw;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return mLw=G},{mode:_.Px("kevlar_poly_si_batch_j025")?1:2});var cC3;var wH=function(){return _.m.apply(this,arguments)||this};
_.K(wH,_.m);wH.prototype.onDurationChanged=function(){var G,e;_.z1(this.hostElement).querySelector("#progress").style.width=((e=(G=this.data)==null?void 0:G.percentDurationWatched)!=null?e:0)+"%"};
wH.prototype.onDurationChanged=wH.prototype.onDurationChanged;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],wH.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],wH.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],wH.prototype,"isLive",void 0);_.B([_.Me("data.percentDurationWatched"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wH.prototype,"onDurationChanged",null);
_.B([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],wH);
_.A(wH,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(cC3!==void 0)return cC3;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return cC3=G},{mode:1});var YGw;var $m=function(){var G=_.m.apply(this,arguments)||this;G.bottomPanel=!1;G.richGridOverlay=!1;G.watchFeedOverlay=!1;G.isCompact=!1;return G};
_.K($m,_.m);$m.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.iY.Object.defineProperties($m.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var G,e;return((G=this.data)==null?void 0:(e=G.icon)==null?void 0:e.iconType)==="PLAY_ALL"&&_.R("kevlar_system_icons")}}});
$m.prototype.widthChanged=$m.prototype.widthChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],$m.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],$m.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Number)],$m.prototype,"width",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],$m.prototype,"bottomPanel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],$m.prototype,"richGridOverlay",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],$m.prototype,"watchFeedOverlay",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],$m.prototype,"isCompact",void 0);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],$m.prototype,"isIconFilled",null);_.B([_.Me("width","watchFeedOverlay"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$m.prototype,"widthChanged",null);
_.B([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],$m);
_.A($m,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(YGw!==void 0)return YGw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return YGw=G},{mode:1});var yCn;var ACE=["CLIP","SHORTS"],ST=function(){var G=_.m.apply(this,arguments)||this;G.animated=_.R("animated_live_badge_icon");G.hasIcon=!1;G.updateTimerIntervalId=0;G.timeSinceLive=0;return G};
_.K(ST,_.m);_.V=ST.prototype;_.V.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.V.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.V.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.V.hasIconOrText=function(){var G,e;return!!(((G=this.data)==null?0:G.icon)||((e=this.data)==null?0:e.text))};
_.V.initializeLiveBadgeTimer=function(){var G=this,e,r=(e=this.liveBadgeData)==null?void 0:e.startTimestampSec;if(r&&this.canShowLiveBadgeTimer()){var Z;e=Number((Z=this.liveBadgeData)==null?void 0:Z.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(r);this.updateTimerIntervalId=_.aZ(function(){G.canShowLiveBadgeTimer()?G.timeSinceLive++:(G.timeSinceLive=0,window.clearInterval(G.updateTimerIntervalId))},e)}else this.timeSinceLive=0};
_.V.canShowLiveBadgeTimer=function(){var G=Date.now(),e,r;return G<(Number((e=this.liveBadgeData)==null?void 0:e.endTimestampSec)-1)*1E3&&G>Number((r=this.liveBadgeData)==null?void 0:r.startTimestampSec)*1E3};
_.iY.Object.defineProperties(ST.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.sny(this.data,this.timeSinceLive):{}}},
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 G;return(G=this.data)==null?void 0:G.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 ACE.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
ST.prototype.initializeLiveBadgeTimer=ST.prototype.initializeLiveBadgeTimer;ST.prototype.dataChanged=ST.prototype.dataChanged;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],ST.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ST.prototype,"data",void 0);_.B([_.n({computed:"computeIcon_(data.icon)"}),_.x("design:type",String)],ST.prototype,"icon",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],ST.prototype,"animated",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.x("design:type",Boolean)],ST.prototype,"hideTimeStatus",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],ST.prototype,"hasIcon",void 0);_.B([_.n(),_.x("design:type",Object)],ST.prototype,"timeSinceLive",void 0);_.B([_.d("data","timeSinceLive"),_.x("design:type",Object),_.x("design:paramtypes",[])],ST.prototype,"badgeShapeData",null);
_.B([_.d("data","overlayType"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ST.prototype,"hideBadgeShape",null);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ST.prototype,"dataChanged",null);_.B([_.n({reflectToAttribute:!0}),_.d("data.style"),_.x("design:type",Object),_.x("design:paramtypes",[])],ST.prototype,"overlayStyle",null);
_.B([_.d("data.liveBadgeData"),_.x("design:type",Object),_.x("design:paramtypes",[])],ST.prototype,"liveBadgeData",null);_.B([_.n({reflectToAttribute:!0}),_.d("data.type"),_.x("design:type",Object),_.x("design:paramtypes",[])],ST.prototype,"overlayType",null);_.B([_.d("overlayType","overlayStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ST.prototype,"useFilledIcon",null);
_.B([_.iD("liveBadgeData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ST.prototype,"initializeLiveBadgeTimer",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],ST);
_.A(ST,"ytd-thumbnail-overlay-time-status-renderer",function(){if(yCn!==void 0)return yCn;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return yCn=G},{mode:_.Px("kevlar_poly_si_batch_j035")?1:2});var FPc;var qm=function(){return _.m.apply(this,arguments)||this};
_.K(qm,_.m);qm.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"}}}}};
qm.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(G){if(this.hasPlaybackProgressBar)return{percentDurationWatched:G.percentDurationWatched}};
qm.prototype.computeHasPlaybackProgressBar=function(G){return!!G.percentDurationWatched&&G.percentDurationWatched>0};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],qm.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],qm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],qm.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.x("design:type",Boolean)],qm.prototype,"hasPlaybackProgressBar",void 0);
_.B([_.c({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],qm);
_.A(qm,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(FPc!==void 0)return FPc;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return FPc=G},{mode:1});var JCn;var BOj=_.y(function(G){var e=G.data;var r=G.children;var Z=function(){return!!e().doubleStack},O=function(){return!!e().includeStackHeight};
return _.v("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!e().experimentEnabled}},_.v(_.S,{cond:e,
then:function(){var M={};return _.v(_.$Z,null,_.v(_.S,{cond:O,then:function(){var T={};return _.v("div",{class:_.LC("ytCollectionsStackSpacer",(T.ytCollectionsStackSpacerDoubleStack=Z,T))})}}),_.v("div",{class:_.LC((M.ytCollectionsStackRelativeStack=O,M))},_.v(_.S,{cond:Z,
then:function(){var T={};return _.v("div",{class:_.LC("ytCollectionsStackCollectionStack2",function(){return e().customClassName2ndStack},(T.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return e().enableResponsiveMode},T)),
style:_.Mk({"background-color":function(){return IJ$(e())}})})}}),_.v("div",{class:_.LC("ytCollectionsStackCollectionStack1",function(){return e().customClassName1stStack},function(){return QnN(e().thumbnailSize?e().thumbnailSize:"medium")}),
style:_.Mk({"background-color":function(){return IJ$(e())}})}),r))}}))},"Ca");_.J_(BOj,"yt-collections-stack",{props:{data:_.N6}});var tq=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};G.webModernCollections=!1;G.isSearch=!1;G.isDoubleStack=!1;G.thumbnailSize="medium";return G};
_.K(tq,_.m);_.V=tq.prototype;
_.V.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]]"}}}}}};
_.V.getThumbnailDetails=function(G){if(G!=null&&G.thumbnailRenderer){var e=G.thumbnailRenderer,r;if((r=e.playlistVideoThumbnailRenderer)==null?0:r.thumbnail)return e.playlistVideoThumbnailRenderer.thumbnail;var Z;if((Z=e.playlistCustomThumbnailRenderer)==null?0:Z.thumbnail)return e.playlistCustomThumbnailRenderer.thumbnail;G=G.thumbnailRenderer;var O;if((O=G.showCustomThumbnailRenderer)==null?0:O.thumbnail)return G.showCustomThumbnailRenderer.thumbnail}};
_.V.computeOverlayColor=function(G){var e,r;if((e=this.getThumbnailDetails(G))==null?0:(r=e.darkColorPalette)==null?0:r.section2Color)return this.getThumbnailDetails(G).darkColorPalette.section2Color;var Z;return(Z=this.getThumbnailDetails(G))==null?void 0:Z.sampledThumbnailColor};
_.V.computeWebModernCollections=function(G){if(G==null||!G.thumbnailOverlays)return!1;G=_.h(G.thumbnailOverlays);for(var e=G.next();!e.done;e=G.next()){var r=void 0;if((r=e.value)==null?0:r.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.V.computeNavigationEndpoint=function(G){return neS(G==null?void 0:G.navigationEndpoint)};
_.iY.Object.defineProperties(tq.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var G=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:G==null?void 0:G.sampledThumbnailColor,vibrantColorPalette:G==null?void 0:G.vibrantColorPalette,darkColorPalette:G==null?void 0:G.darkColorPalette,experimentEnabled:!0}}}});
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],tq.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],tq.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(GpC),_.x("design:type",Object)],tq.prototype,"ytdThumbnailBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],tq.prototype,"componentBehavior",void 0);
_.B([_.n({value:!1}),_.x("design:type",Boolean)],tq.prototype,"watchFeedThumbnail",void 0);_.B([_.n(),_.x("design:type",Number)],tq.prototype,"customThumbnailSize",void 0);_.B([_.n({value:!0}),_.x("design:type",Boolean)],tq.prototype,"hideAria",void 0);_.B([_.n(),_.x("design:type",Object)],tq.prototype,"data",void 0);_.B([_.n({computed:"computeOverlayColor(data)"}),_.x("design:type",Object)],tq.prototype,"overlayColor",void 0);
_.B([_.n({computed:"computeWebModernCollections(data)"}),_.x("design:type",Object)],tq.prototype,"webModernCollections",void 0);_.B([_.n({computed:"computeNavigationEndpoint(data)"}),_.x("design:type",Object)],tq.prototype,"computedNavigationEndpoint",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],tq.prototype,"isSearch",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],tq.prototype,"isDoubleStack",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],tq.prototype,"thumbnailSize",void 0);_.B([_.d("data","isDoubleStack","thumbnailSize"),_.x("design:type",Object),_.x("design:paramtypes",[])],tq.prototype,"collectionStack",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],tq);
_.A(tq,"ytd-playlist-thumbnail",function(){if(JCn!==void 0)return JCn;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return JCn=G},{mode:_.Px("kevlar_poly_si_batch_j025")?1:2});var xLP;_.J_(_.y(function(G){return _.v("yt-text-view-model",{class:_.LC("ytTextViewModelHost")},_.v(_.Wh,{text:function(){return G.data().text}}))},"Da"),"yt-text-view-model",{props:{data:_.N6}});var gH=function(){var G=_.m.apply(this,arguments)||this;G.noEndpoints=!1;G.amsterdamPostMvp=_.R("web_amsterdam_post_mvp_playlists");G.badges=[];G.transferState="TRANSFER_STATE_UNKNOWN";return G};
_.K(gH,_.m);_.V=gH.prototype;_.V.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.V.getMetadata=function(G){if(!G)return[];var e=[],r=G.shortViewCountText||G.viewCountText;r&&e.push(_.mG(r));G.publishedTimeText&&e.push(_.mG(G.publishedTimeText));G.upcomingEventData&&G.upcomingEventData.upcomingEventText&&e.push(_.$b(_.mG(G.upcomingEventData.upcomingEventText),Number(G.upcomingEventData.startTime)));return e};
_.V.observeDataForBylineSeparator=function(){this.data&&_.Nv(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.V.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.RB(this.metadataColor)};
_.V.getSimpleString=function(G){return _.mG(G)};
_.V.isBylineHidden=function(G){return this.noByline||!((G==null?0:G.longBylineText)||(G==null?0:G.shortBylineText))};
_.V.isMetadataHidden=function(G){var e;return((e=this.getMetadata(G))==null?void 0:e.length)===0};
_.V.isBylineMetadataSeparatorHidden=function(G){return this.isMetadataHidden(G)||!this.shouldShowVideoInfo};
_.V.isLongByline=function(G,e){return e&&!(G==null||!G.longBylineText)};
_.iY.Object.defineProperties(gH.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var G;return this.amsterdamPostMvp&&!((G=this.data)==null||!G.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}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.R("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
gH.prototype.metadataColorChanged=gH.prototype.metadataColorChanged;gH.prototype.observeDataForBylineSeparator=gH.prototype.observeDataForBylineSeparator;_.B([_.k(_.A5),_.x("design:type",Object)],gH.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],gH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],gH.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],gH.prototype,"noEndpoints",void 0);
_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],gH.prototype,"isSlimShort",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],gH.prototype,"radioMeta",void 0);_.B([_.n({selector:_.Xf}),_.x("design:type",Object)],gH.prototype,"isGridViewEnabled",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],gH.prototype,"richMeta",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],gH.prototype,"amsterdamPostMvp",void 0);
_.B([_.n(),_.x("design:type",Boolean)],gH.prototype,"noByline",void 0);_.B([_.n({computed:"isLongByline(data, radioMeta)"}),_.x("design:type",Boolean)],gH.prototype,"longByline",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],gH.prototype,"truncateMetadataLine",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],gH.prototype,"miniMode",void 0);_.B([_.n(),_.x("design:type",Number)],gH.prototype,"metadataColor",void 0);
_.B([_.n(),_.x("design:type",Array)],gH.prototype,"badges",void 0);_.B([_.n({selector:_.KQ,selectorArgs:["data.videoId"]}),_.x("design:type",String)],gH.prototype,"transferState",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],gH.prototype,"isDownloading",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],gH.prototype,"typographyBump",void 0);_.B([_.hs("#metadata-line"),_.x("design:type",HTMLElement)],gH.prototype,"metadataLine",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gH.prototype,"observeDataForBylineSeparator",null);_.B([_.Me("metadataColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gH.prototype,"metadataColorChanged",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],gH.prototype,"shouldShowVideoInfo",null);
_.B([_.d("badges"),_.x("design:type",String),_.x("design:paramtypes",[])],gH.prototype,"inlineBadgeClass",null);_.B([_.d("longByline"),_.x("design:type",String),_.x("design:paramtypes",[])],gH.prototype,"longBylineClass",null);_.B([_.d("data","longByline"),_.x("design:type",Object),_.x("design:paramtypes",[])],gH.prototype,"bylineText",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],gH.prototype,"hasAttributedBylineText",null);
_.B([_.d("isGridViewEnabled","data"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],gH.prototype,"watchFeedBigThumbs",null);_.B([_.c({is:"ytd-video-meta-block",disableElementRegistration:!0})],gH);
_.A(gH,"ytd-video-meta-block",function(){if(xLP!==void 0)return xLP;var G=document.createElement("template");_.f(G,'\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    <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-meta-block"></div>\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[hasAttributedBylineText]]" 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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return xLP=G},{mode:_.Px("kevlar_poly_si_batch_j080")?1:2});_.te("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var lo=function(){var G=_.m.apply(this,arguments)||this;G.displayItemCount=2;G.isBackstagePlaylist=!1;G.isPostCompactPlaylist=!1;G.shouldShowChannelThumbnail=!1;return G};
_.K(lo,_.m);_.V=lo.prototype;_.V.computeFirstVideos=function(G,e){return G===void 0||e===void 0?[]:G.slice(0,e)};
_.V.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var G=this.data.thumbnailRenderer;G.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",G.playlistVideoThumbnailRenderer.thumbnail);G.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",G.playlistCustomThumbnailRenderer.thumbnail)}};
_.V.computeThumbnailHeight=function(G,e,r,Z,O){return Z?O==="BIG"?280:O==="MASSIVE"?337:234:r?240:e?72:G?118:138};
_.V.computeThumbnailWidth=function(G,e,r,Z,O){return Z?O==="MEDIUM"?450:O==="BIG"?500:O==="MASSIVE"?600:420:r?360:e?128:G?210:246};
_.V.computeUseBiggerThumbs=function(G){return G&&_.R("enable_desktop_search_bigger_thumbs")};
_.V.computeShouldShowChannelThumbnail=function(G,e){return G&&!(e==null||!e.channelThumbnail)};
_.iY.Object.defineProperties(lo.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
lo.prototype.dataChanged=lo.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],lo.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.NC),_.x("design:type",Object)],lo.prototype,"ytdLockupBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],lo.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],lo.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],lo.prototype,"displayItemCount",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],lo.prototype,"isBackstagePlaylist",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],lo.prototype,"isPostCompactPlaylist",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],lo.prototype,"isSearch",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.x("design:type",Boolean)],lo.prototype,"useBiggerThumbs",void 0);_.B([_.n({reflectToAttribute:!0,value:function(){return _.td("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],lo.prototype,"biggerThumbsStyle",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],lo.prototype,"isDownloads",void 0);_.B([_.n({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.x("design:type",Object)],lo.prototype,"shouldShowChannelThumbnail",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lo.prototype,"dataChanged",null);
_.B([_.d("isSearch"),_.x("design:type",String),_.x("design:paramtypes",[])],lo.prototype,"stackThumbnailSize",null);_.B([_.c({is:"ytd-playlist-renderer",disableElementRegistration:!0})],lo);
_.A(lo,"ytd-playlist-renderer",function(){if(HZn===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);HZn=G}G=HZn;return G},{mode:1});var PTy;var ULw;var RG=function(){var G=_.m.apply(this,arguments)||this;G.startX=0;return G};
_.K(RG,_.m);RG.prototype.onEndpointMouseDown=function(G){this.startX=G.clientX};
RG.prototype.onEndpointClick=function(G){this.startX!==G.clientX&&(G.preventDefault(),G.stopPropagation())};
RG.prototype.computeObjectFit=function(G){return G==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||G==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||G==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
RG.prototype.computeCardStyle=function(G){return G?G.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.iY.Object.defineProperties(RG.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var G,e;return((G=this.data)==null?void 0:(e=G.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:!0,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],RG.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],RG.prototype,"data",void 0);_.B([_.n({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.x("design:type",Number)],RG.prototype,"objectFit",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.x("design:type",String)],RG.prototype,"cardStyle",void 0);
_.B([_.n({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],RG.prototype,"roundContainer",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],RG.prototype,"isAlbumCard",null);_.B([_.d("data","isAlbumCard"),_.x("design:type",Object),_.x("design:paramtypes",[])],RG.prototype,"collectionStack",null);_.B([_.c({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],RG);
_.A(RG,"ytd-search-refinement-card-renderer",function(){if(ULw!==void 0)return ULw;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return ULw=G},{mode:1});var zbj;var jT=function(){var G=_.m.apply(this,arguments)||this;G.isRichGrid=!1;return G};
_.K(jT,_.m);_.B([_.n(),_.x("design:type",Object)],jT.prototype,"data",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],jT.prototype,"componentBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],jT.prototype,"ytdReduxBehavior",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],jT.prototype,"isRichGrid",void 0);_.B([_.n({reflectToAttribute:!0,selector:_.lw}),_.x("design:type",Boolean)],jT.prototype,"miniMode",void 0);
_.B([_.c({is:"ytd-game-details-renderer",disableElementRegistration:!0})],jT);
_.A(jT,"ytd-game-details-renderer",function(){if(zbj!==void 0)return zbj;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return zbj=G},{mode:1});var WPW;var NOw;var aG=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return G};
_.K(aG,_.m);_.V=aG.prototype;_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.currentStateData=function(G){var e=G||this.data;return e&&e.states&&e.currentStateId!=null?e.states.find(function(r){return r.stateId===e.currentStateId})||null:null};
_.V.currentStateRendererData=function(G){return(G=this.currentStateData(G))&&G.state&&G.state.buttonRenderer?G.state.buttonRenderer:null};
_.V.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())};
_.V.computeButtonIcon=function(G){G=this.currentStateRendererData(G);var e;return(G==null?0:(e=G.icon)==null?0:e.iconType)?G.icon.iconType.toLowerCase():null};
_.V.computeAccessibility=function(G){return(G=this.currentStateRendererData(G))&&G.accessibilityData?G.accessibilityData.accessibilityData||null:null};
_.V.computeButtonClass=function(G){var e=this.currentStateRendererData(G);if(!e)return"";G="";var r=e.style;r&&(G+=r.toLowerCase().replace(/_/g,"-")+" ");(e=e.size)&&(G+=e.toLowerCase().replace(/_/g,"-")+" ");return G.trim()};
_.V.computeServiceEndpoint=function(G){if(!G)return null;var e=G&&G.serviceEndpoint,r=this.get("command.commandMetadata.webCommandMetadata.sendPost",G);return e?e:r&&G.command?G.command:null};
_.V.computeBellMenuItemParams=function(G){var e;G=(e=_.a(G==null?void 0:G.command,_.LO))==null?void 0:e.commands;if(!G||G.length===0)return null;e=_.a(G[0],_.sP);var r,Z;return(e==null?0:(r=e.popup)==null?0:(Z=r.menuPopupRenderer)==null?0:Z.items)?e.popup.menuPopupRenderer.items.map(function(O){return O.menuServiceItemRenderer.trackingParams}):null};
_.V.handleBellMenuOpenSelectedAction=function(G){var e=G.trackingParams,r=this.computeBellMenuItemParams(this.data);this.data&&e&&r&&r.includes(e)&&this.ytRenderButtonBehavior._setButtonIcon(G.icon.iconType.toLowerCase())};
_.V.onYtServiceRequestCompleted=function(G,e){(G=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",e))&&this.set("data",G)};
_.V.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.V.resetState=function(){this.set("data.currentStateId",3)};
_.V.onYtButtonTapHandler=function(){if(this.data){var G=this.currentStateRendererData(this.data);G&&this.ytRendererBehavior.logExplicitClick(G)}};
aG.prototype.onYtServiceRequestError=aG.prototype.onYtServiceRequestError;aG.prototype.onYtServiceRequestCompleted=aG.prototype.onYtServiceRequestCompleted;aG.prototype.stateChanged=aG.prototype.stateChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],aG.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],aG.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.k(Hk.YtRenderButtonBehavior),_.x("design:type",Object)],aG.prototype,"ytRenderButtonBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],aG.prototype,"data",void 0);_.B([_.iD("data","data.currentStateId"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aG.prototype,"stateChanged",null);
_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.n1]),_.x("design:returntype")],aG.prototype,"onYtServiceRequestCompleted",null);_.B([_.Om("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],aG.prototype,"onYtServiceRequestError",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],aG);
_.A(aG,"ytd-subscription-notification-toggle-button-renderer",function(){if(NOw!==void 0)return NOw;var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return NOw=G},{mode:1});var LPc;var XM=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};G.tapHandler=function(){if(G.data){var e=G.currentStateRendererData();e&&G.ytRendererBehavior.logExplicitClick(e)}};
return G};
_.K(XM,_.m);_.V=XM.prototype;_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.currentStateData=function(){var G=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(e){return e.stateId===G.data.currentStateId})||null:null};
_.V.currentStateRendererData=function(){var G=this.currentStateData();return G&&G.state&&G.state.buttonRenderer?G.state.buttonRenderer:null};
_.V.computeAccessibilityLabel=function(){var G,e,r;return(G=this.currentStateRendererData())==null?void 0:(e=G.accessibilityData)==null?void 0:(r=e.accessibilityData)==null?void 0:r.label};
_.V.computeBellMenuItemParams=function(){var G,e,r=(e=_.a((G=this.data)==null?void 0:G.command,_.LO))==null?void 0:e.commands;if(!r||r.length===0)return null;G=_.a(r[0],_.sP);var Z,O;return(G==null?0:(Z=G.popup)==null?0:(O=Z.menuPopupRenderer)==null?0:O.items)?G.popup.menuPopupRenderer.items.map(function(M){return M.menuServiceItemRenderer.trackingParams}):null};
_.V.handleBellMenuOpenSelectedAction=function(G){var e=G.trackingParams,r=this.computeBellMenuItemParams();if(this.data&&e&&r&&r.includes(e)&&(G==null||!G.isDisabled)){var Z;((Z=_.a(G.serviceEndpoint,_.eq))==null?void 0:Z.signal)!=="CLIENT_SIGNAL"&&(this.icon=G.icon.iconType)}};
_.V.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.V.onYtServiceRequestCompleted=function(G,e){if(G=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",e))this.icon=void 0,this.set("data",G)};
_.V.onYtServiceRequestError=function(){this.icon=void 0};
_.iY.Object.defineProperties(XM.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var G=this.data,e=this.textLabel,r=this.hostElement,Z=this.computeAccessibilityLabel(),O=this.tapHandler,M=this.isOverlay?"overlay":"mono",T=(G==null?0:G.disableButton)?"disabled":"active";e=e?_.l1(e):void 0;return{style:M,type:"tonal",state:T,size:"M",focused:!1,formattedButtonText:e,iconPosition:"leading-trailing",onTap:Cu_(G,O,r),accessibilityLabel:Z}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var G=this.currentStateRendererData(),e,r,Z=(r=this.icon)!=null?r:G==null?void 0:(e=G.icon)==null?void 0:e.iconType;if(Z)return _.Ne(Z)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var G,e,r=(G=this.data)==null?void 0:(e=G.secondaryIcon)==null?void 0:e.iconType;if(r)return _.Ne(r)}}});
XM.prototype.onYtServiceRequestError=XM.prototype.onYtServiceRequestError;XM.prototype.onYtServiceRequestCompleted=XM.prototype.onYtServiceRequestCompleted;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],XM.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],XM.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],XM.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],XM.prototype,"textLabel",void 0);
_.B([_.n(),_.x("design:type",String)],XM.prototype,"icon",void 0);_.B([_.n(),_.x("design:type",Boolean)],XM.prototype,"isOverlay",void 0);_.B([_.d("data.*","textLabel"),_.x("design:type",Object),_.x("design:paramtypes",[])],XM.prototype,"computedButtonShape",null);_.B([_.d("data.*","icon"),_.x("design:type",Object),_.x("design:paramtypes",[])],XM.prototype,"computedIcon",null);_.B([_.d("computedIcon"),_.x("design:type",Object),_.x("design:paramtypes",[])],XM.prototype,"computedAnimateIcon",null);
_.B([_.d("data.*"),_.x("design:type",Object),_.x("design:paramtypes",[])],XM.prototype,"computedSecondaryIcon",null);_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.n1]),_.x("design:returntype")],XM.prototype,"onYtServiceRequestCompleted",null);_.B([_.Om("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],XM.prototype,"onYtServiceRequestError",null);
_.B([_.c({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],XM);
_.A(XM,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(LPc!==void 0)return LPc;var G=document.createElement("template");_.f(G,'\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 LPc=G},{mode:_.Px("kevlar_poly_si_batch_j081")?1:2});var GIW;_.J_(GYb,"yt-animated-action",{props:{backgroundLottieRef:_.N6,foregroundLottieRef:_.N6,wrapperClass:_.N6,disableAnimation:_.N6},unsafeExternallySettableAttributes:new Set(["key"])});var K0=function(){var G=_.m.apply(this,arguments)||this;G.animatedActionEnabled=_.R("web_animated_actions");G.foregroundLottieRef={};G.backgroundLottieRef={};G.forceIconOnly=!1;G.showTextWhileAnimating=!1;G.keyboardFocused=!1;G.isAnimating=!1;G.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return G};
_.K(K0,_.m);_.V=K0.prototype;_.V.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.V.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]]"}}}}}};
_.V.attached=function(){this.keyboardFocused=!1};
_.V.onYtServiceRequestSent=function(G,e){(this.get("endpoint.subscribeEndpoint",e)||this.get("endpoint.unsubscribeEndpoint",e))&&this.updateSubscriptionState(!this.subscribed)};
_.V.onYtServiceRequestCompleted=function(G,e){(G=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",e.data))&&this.bellButton&&(this.bellButton.data=G)};
_.V.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.eD(this.hostElement)};
_.V.onPlayerSubscribe=function(G){this.isCompactRed()||G!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.V.onPlayerUnsubscribe=function(G){this.isCompactRed()||G!==this.data.channelId||this.updateSubscriptionState(!1)};
_.V.handleUpdateSubscribeButtonAction=function(G){G=_.a(G,z7E);var e;G&&G.channelId===((e=this.data)==null?void 0:e.channelId)&&this.updateSubscriptionState(!!G.subscribed)};
_.V.computeButtonStyle=function(G){return this.get("style.styleType",G)||null};
_.V.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.V.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.V.updateSubscriptionState=function(G){if(G!==this.subscribed){this.set("data.subscribed",G);var e,r=(e=this.data)==null?void 0:e.subscribedEntityKey;r&&this.ytdReduxBehavior.dispatch(_.bt("subscriptionStateEntity",r,{key:r,subscribed:G}));this.isCompactRed()||_.xy(this.hostElement,"yt-subscription-changed",G);G||(_.Pi(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!G),G&&this.hasBellButton&&this.startAnimation())}};
_.V.startAnimation=function(){var G=this;if(!this.isAnimating){var e=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var r;(r=this.backgroundLottieRef.lottieEl)==null||r.goToAndPlay(0);var Z;(Z=this.foregroundLottieRef.lottieEl)==null||Z.goToAndPlay(0);_.A0.addJob(function(){G.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.A0.addJob(function(){G.updateContainerToFitContent(!!G.subscribed,!0)},2,1500);
_.A0.addJob(function(){G.isAnimating=!1},2,e)}};
_.V.maybeAnimateBellIcon=function(){var G=_.W1(this.hostElement).querySelector("yt-animated-icon");if(G){var e;(e=G.animationRef.lottieEl)==null||e.goToAndPlay(0)}};
_.V.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.V.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.V.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var G;this.unsubscribedWidth=(G=this.subscribeButtonShape)==null?void 0:G.getBoundingClientRect().width}var e;this.subscribedWidth=(e=this.bellButton)==null?void 0:e.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.V.updateContainerToFitContent=function(G,e){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(G?(G=this.subscribedWidth,e=this.isAnimating&&!e,this.subscribedIconOnlyWidth===void 0||e||(G=this.subscribedIconOnlyWidth),this.hostElement.style.width=G+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.V.clearContainerSize=function(){this.hostElement.style.width=""};
_.V.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.V.maybeSetSubscribedButtonIconOnlyWidth=function(){var G=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;G.subscribedIconOnlyWidth=(e=G.bellButton)==null?void 0:e.getBoundingClientRect().width;requestAnimationFrame(function(){if(G.bellButton){var r;G.bellButton.textLabel=
(r=G.data)==null?void 0:r.subscribedButtonText}})})))};
_.iY.Object.defineProperties(K0.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 G;return(G=this.data)==null?void 0:G.subscribedButtonText}var e;return this.forceIconOnly?void 0:(e=this.data)==null?void 0:e.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var G,e,r=((G=this.data)==null?void 0:(e=G.timedAnimationData)==null?void 0:e.animationTiming)||[];return{uniqueId:"subscribe",timings:r,enabled:r.length>0&&!this.subscribed,experimentEnabled:r.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var G;return!this.subscribed&&((G=this.data)==null?void 0:G.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 G={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var e=G.renderer;var r=G.element;var Z=G.subscribed;var O=G.commandController;var M=G.isOverlay;G=G.stopPropagation;var T=cjF(e,Z);M&&(T.style="overlay");M=Object;var E=M.assign,b;a:switch((b=e.style)==null?void 0:b.styleType){case "COMPACT_GRAY":case "COMPACT_RED":b={size:"S"};break a;default:b={size:"M"}}var w=mfS(e,
Z);var q=(q=Z?e.subscribedButtonText:e.unsubscribedButtonText)?_.l1(q):void 0;return E.call(M,{},T,b,{focused:!1,toggled:Z,accessibilityLabel:w,formattedButtonText:q,onTap:nT_(e,Z,r,O,G)})}}}});
K0.prototype.onMouseDown=K0.prototype.onMouseDown;K0.prototype.onDataChanged=K0.prototype.onDataChanged;K0.prototype.observedSubscribed=K0.prototype.observedSubscribed;K0.prototype.onYtServiceRequestCompleted=K0.prototype.onYtServiceRequestCompleted;K0.prototype.onYtServiceRequestSent=K0.prototype.onYtServiceRequestSent;K0.prototype.maybeUpdateBellButtonText=K0.prototype.maybeUpdateBellButtonText;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],K0.prototype,"ytComponentBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],K0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],K0.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],K0.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],K0.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],K0.prototype,"data",void 0);
_.B([_.n({selectorArgs:["data.subscribedEntityKey"],selector:OAp}),_.x("design:type",Object)],K0.prototype,"subscriptionStateEntity",void 0);_.B([_.n({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.x("design:type",Boolean)],K0.prototype,"subscribed",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],K0.prototype,"branded",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],K0.prototype,"animatedActionEnabled",void 0);
_.B([_.n(),_.x("design:type",Object)],K0.prototype,"foregroundLottieRef",void 0);_.B([_.n(),_.x("design:type",Object)],K0.prototype,"backgroundLottieRef",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],K0.prototype,"overlayButton",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.x("design:type",Object)],K0.prototype,"buttonStyle",void 0);_.B([_.n(),_.x("design:type",Object)],K0.prototype,"forceIconOnly",void 0);
_.B([_.n(),_.x("design:type",Object)],K0.prototype,"showTextWhileAnimating",void 0);_.B([_.n({value:function(){return!!_.v_().resolve(_.bq(_.T6))&&_.R("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.x("design:type",Boolean)],K0.prototype,"useKeyboardFocused",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],K0.prototype,"keyboardFocused",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],K0.prototype,"isAnimating",void 0);_.B([_.d("data.notificationPreferenceButton.*"),_.x("design:type",Object),_.x("design:paramtypes",[])],K0.prototype,"hasBellButton",null);
_.B([_.Me("subscribedButtonText"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],K0.prototype,"maybeUpdateBellButtonText",null);_.B([_.d("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.x("design:type",Object),_.x("design:paramtypes",[])],K0.prototype,"subscribedButtonText",null);_.B([_.d("data.timedAnimationData.animationTiming","subscribed"),_.x("design:type",Object),_.x("design:paramtypes",[])],K0.prototype,"smartimationSettings",null);
_.B([_.n({reflectToAttribute:!0}),_.d("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.x("design:type",Object),_.x("design:paramtypes",[])],K0.prototype,"subscribeButtonHidden",null);_.B([_.n({reflectToAttribute:!0}),_.d("subscribed","hasBellButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],K0.prototype,"subscribeButtonInvisible",null);
_.B([_.n({reflectToAttribute:!0}),_.d("subscribed"),_.x("design:type",Object),_.x("design:paramtypes",[])],K0.prototype,"unsubscribeButtonHidden",null);_.B([_.hs("ytd-subscription-notification-toggle-button-renderer-next"),_.x("design:type",Object)],K0.prototype,"bellButton",void 0);_.B([_.hs("#subscribe-button-shape"),_.x("design:type",HTMLElement)],K0.prototype,"subscribeButtonShape",void 0);
_.B([_.d("overlayButton","subscribed","data"),_.x("design:type",Object),_.x("design:paramtypes",[])],K0.prototype,"buttonShape",null);_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.oV]),_.x("design:returntype")],K0.prototype,"onYtServiceRequestSent",null);_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.n1]),_.x("design:returntype")],K0.prototype,"onYtServiceRequestCompleted",null);
_.B([_.Me("subscribed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],K0.prototype,"observedSubscribed",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],K0.prototype,"onDataChanged",null);_.B([_.Om("mousedown"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],K0.prototype,"onMouseDown",null);
_.B([_.c({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],K0);
_.A(K0,"ytd-subscribe-button-renderer",function(){if(GIW!==void 0)return GIW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return GIW=G},{mode:1});var f0=function(){var G=_.m.apply(this,arguments)||this;G.isRichGrid=!1;return G};
_.K(f0,_.m);f0.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"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],f0.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],f0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],f0.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],f0.prototype,"isRichGrid",void 0);_.B([_.c({is:"ytd-game-card-renderer",disableElementRegistration:!0})],f0);
_.A(f0,"ytd-game-card-renderer",function(){if(WPW!==void 0)return WPW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return WPW=G},{mode:1});var km={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.R("defer_menus")&&!s6w?0:void 0,waitForSignal:"eocs"};var eOj;var rRS;var Hy=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return G};
_.K(Hy,_.m);_.V=Hy.prototype;_.V.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.V.onSeriesReminderStateEntityChange=function(){var G,e,r;((G=this.eventReminderStateEntity)==null?0:G.key)&&((e=this.seriesReminderStateEntity)==null?void 0:e.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((r=this.eventReminderStateEntity)==null?void 0:r.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.bt("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.V.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.V.onYtServiceRequestError=function(){var G;this.updateReminderStateEntitiesFromButtonState((G=this.data)==null?void 0:G.currentState)};
_.V.handleUpdateUpcomingEventReminderButtonStateCommand=function(G){if(G=_.a(G,zKC)){var e,r=(e=this.data)==null?void 0:e.targetId;r&&G.targetId===r&&_.oR(this.updateReminderStateEntitiesFromButtonState.bind(this,G.state))}};
_.V.getButtonStateFromReminderState=function(){var G;if(((G=this.seriesReminderStateEntity)==null?void 0:G.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 r,Z;if(((r=this.seriesReminderStateEntity)==null?void 0:r.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 O;return(O=this.data)==null?void 0:O.currentState};
_.V.updateReminderStateEntitiesFromButtonState=function(G){if(G){switch(G){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":G="UPCOMING_EVENT_REMINDER_STATE_NONE";var e="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":G="UPCOMING_EVENT_REMINDER_STATE_SINGLE";e="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":G="UPCOMING_EVENT_REMINDER_STATE_NONE";e="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var r;
((r=this.eventReminderStateEntity)==null?0:r.key)&&this.ytdReduxBehavior.dispatch(_.bt("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:G})));var Z;((Z=this.seriesReminderStateEntity)==null?0:Z.key)&&this.ytdReduxBehavior.dispatch(_.bt("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:e})))}};
_.iY.Object.defineProperties(Hy.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var G=this.getButtonStateFromReminderState(),e,r;if(G&&((e=this.data)==null?0:(r=e.states)==null?0:r.length))for(e=_.h(this.data.states),r=e.next();!r.done;r=e.next()){r=r.value;var Z=void 0;if(((Z=_.a(r,W6P))==null?void 0:Z.state)===G)return _.a(r,W6P)}}}});
Hy.prototype.onYtServiceRequestError=Hy.prototype.onYtServiceRequestError;Hy.prototype.onYtServiceRequestCompleted=Hy.prototype.onYtServiceRequestCompleted;Hy.prototype.onSeriesReminderStateEntityChange=Hy.prototype.onSeriesReminderStateEntityChange;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Hy.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Hy.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Hy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],Hy.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Hy.prototype,"data",void 0);_.B([_.n({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:VAS}),_.x("design:type",Object)],Hy.prototype,"eventReminderStateEntity",void 0);
_.B([_.n({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(G,e){return _.e6(G.entities,"sportsSeriesReminderStateEntity",e)}}),
_.x("design:type",Object)],Hy.prototype,"seriesReminderStateEntity",void 0);_.B([_.d("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],Hy.prototype,"currentButtonStateRenderer",null);_.B([_.Me("seriesReminderStateEntity"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hy.prototype,"onSeriesReminderStateEntityChange",null);
_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hy.prototype,"onYtServiceRequestCompleted",null);_.B([_.Om("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hy.prototype,"onYtServiceRequestError",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],Hy);
_.A(Hy,"ytd-upcoming-event-reminder-button-renderer",function(){if(rRS!==void 0)return rRS;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);
return rRS=G},{mode:1});var ZgE;var dH=function(){return _.m.apply(this,arguments)||this};
_.K(dH,_.m);dH.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.iY.Object.defineProperties(dH.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(_.R("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],dH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],dH.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],dH.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],dH.prototype,"shelfDismissal",void 0);_.B([_.d("data.responseText"),_.x("design:type",Object),_.x("design:paramtypes",[])],dH.prototype,"text",null);
_.B([_.d("data.responseText"),_.x("design:type",Object),_.x("design:paramtypes",[])],dH.prototype,"textAriaLabel",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],dH);
_.A(dH,"ytd-notification-multi-action-renderer",function(){if(ZgE!==void 0)return ZgE;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return ZgE=G},{mode:1});var Ogw;var oG=function(){return _.m.apply(this,arguments)||this};
_.K(oG,_.m);oG.prototype.ready=function(){var G=this;_.z1(this.hostElement).querySelector("#undo").addEventListener("tap",function(){G.onUndoTap()})};
oG.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.v_().resolve(_.$1).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],oG.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],oG.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],oG);
_.A(oG,"ytd-notification-text-renderer",function(){if(Ogw!==void 0)return Ogw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Ogw=G},{mode:1});var Mnn;var sE=function(){var G=_.m.apply(this,arguments)||this;G.mouseOverDelayJobId=0;G.fadeInImageDelayJobId=0;G.startTimeMs=-1;G.loadingStartTimeMs=-1;G.loadingEndTimeMs=-1;G.hasVideoPreview=!1;return G};
_.K(sE,_.m);_.V=sE.prototype;_.V.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.V.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.V.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.V.showThumbnail=function(){var G=this;this.csn=_.l4();_.K_("fmth");_.A0.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.za(_.A0,function(){G.loadingStartTimeMs=(0,_.vG)();var e=_.z1(G.hostElement).querySelector("#thumbnail");e.complete?G.displayMouseOverImage():e.addEventListener("load",_.ZQ(G,G.displayMouseOverImage))},150):_.Nv(_.z1(this.hostElement).querySelector("#play"),"show",!0)};
_.V.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.V.onTap=function(){this.removeVideoPreview()};
_.V.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var G=this.videoId,e=this.csn,r=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,Z=this.startTimeMs,O=this.hasVideoPreview,M=_.b1(this.trackingParams),T={isMovingThumbnail:O};O&&Z>0&&(r>0&&(T.movingThumbnailLoadingDurationMs=Math.round(r)),T.durationHoveredMs=Math.round((0,_.vG)()-Z));G&&(T.videoId=G);_.mC(e,M,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:T});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.V.removeVideoPreview=function(){_.A0.cancelJob(this.mouseOverDelayJobId);_.A0.cancelJob(this.fadeInImageDelayJobId);var G=_.z1(this.hostElement).querySelector("#thumbnail");_.Nv(G,"fade-in",!1);G.removeEventListener("load",_.ZQ(this,this.displayMouseOverImage));G=_.z1(this.hostElement).querySelector("#play");_.Nv(G,"fade-in",!1);_.Nv(G,"show",!1)};
_.V.displayMouseOverImage=function(){var G=_.z1(this.hostElement).querySelector("#thumbnail"),e=_.z1(this.hostElement).querySelector("#play");this.isImageAvailable(G)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.vG)(),this.startTimeMs=(0,_.vG)(),this.fadeInImageDelayJobId=_.za(_.A0,function(){_.Nv(G,"fade-in",!0)},50)):_.Nv(e,"fade-in",!0)};
_.V.computeThumbnail=function(G,e){var r;G&&G.movingThumbnailDetails&&G.movingThumbnailDetails.thumbnails&&e?r=_.BQ(G.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):r=e?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(r)return _.Fy(r)};
_.V.isImageAvailable=function(G){return!(!G.src||G.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||G.naturalWidth===120)};
sE.prototype.onTap=sE.prototype.onTap;sE.prototype.dataChanged=sE.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],sE.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],sE.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],sE.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],sE.prototype,"csn",void 0);_.B([_.n(),_.x("design:type",Object)],sE.prototype,"trackingParams",void 0);
_.B([_.n(),_.x("design:type",String)],sE.prototype,"videoId",void 0);_.B([_.n(),_.x("design:type",Boolean)],sE.prototype,"isAttachedAndDataSet",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sE.prototype,"dataChanged",null);_.B([_.Om("click"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sE.prototype,"onTap",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],sE);
_.A(sE,"ytd-moving-thumbnail-renderer",function(){if(Mnn!==void 0)return Mnn;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Mnn=G},{mode:1});var VnW;_.W4=function(G){this.hostElement=G;this.eventSink=null;this.eventList=[]};
_.W4.prototype.shouldForward=function(){var G,e;return(e=(G=this.eventSink)==null?void 0:G.isConnected)!=null?e:document.body.contains(this.eventSink)};
_.W4.prototype.start=function(G,e){this.eventSink&&this.stop();for(var r=0;r<G.length;r++)this.hostElement.addEventListener(G[r],_.ZQ(this,this.forwardEvent));var Z;this.eventSink=(Z=e.hostElement)!=null?Z:e;this.eventList=G};
_.W4.prototype.stop=function(){for(var G=0;G<this.eventList.length;G++)this.hostElement.removeEventListener(this.eventList[G],_.ZQ(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.W4.prototype.forwardEvent=function(G,e){this.shouldForward()&&(G.stopPropagation(),this.eventSink instanceof Element?_.xy(this.eventSink,G.type,e):_.FH(new _.Cr("eventSink is not an element")))};_.Qy={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.W4(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(G,e){this.forwarder_.start(G,e)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var IG=function(){return _.m.apply(this,arguments)||this};
_.K(IG,_.m);_.V=IG.prototype;_.V.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=_.xZ("HTML_DIR")==="rtl"?"right":"left"};
_.V.dataChanged=function(){this.popupOpen=!1};
_.V.computeAriaLabel=function(G){return _.a(G,wvn).label};
_.V.onTap=function(G){G.stopPropagation();G.preventDefault();this.data.command&&_.v_().resolve(_.$1).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.V.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.V.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
IG.prototype.onPopupClosed=IG.prototype.onPopupClosed;IG.prototype.onPopupOpened=IG.prototype.onPopupOpened;IG.prototype.onTap=IG.prototype.onTap;IG.prototype.dataChanged=IG.prototype.dataChanged;_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],IG.prototype,"eventForwardingBehavior",void 0);_.B([_.k(_.nS),_.x("design:type",Object)],IG.prototype,"ironButtonState",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],IG.prototype,"componentBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],IG.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,value:-1}),_.x("design:type",Number)],IG.prototype,"tabindex",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.x("design:type",Object)],IG.prototype,"ariaLabel",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],IG.prototype,"disableTooltips",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],IG.prototype,"popupOpen",void 0);
_.B([_.n(),_.x("design:type",Element)],IG.prototype,"eventSink",void 0);_.B([_.hs("#tooltip"),_.x("design:type",Object)],IG.prototype,"tooltip",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],IG.prototype,"dataChanged",null);_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],IG.prototype,"onTap",null);
_.B([_.Om("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],IG.prototype,"onPopupOpened",null);_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],IG.prototype,"onPopupClosed",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],IG);
_.A(IG,"ytd-thumbnail-overlay-button-renderer",function(){if(VnW!==void 0)return VnW;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return VnW=G},{mode:1});var hOP;var p0=function(){return _.m.apply(this,arguments)||this};
_.K(p0,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],p0.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],p0.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],p0.prototype,"disableAnimation",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],p0.prototype,"rounded",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],p0.prototype,"transparentBackground",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],p0.prototype,"noPadding",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],p0);
_.A(p0,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(hOP!==void 0)return hOP;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return hOP=G},{mode:1});var T6b;var C0=function(){return _.m.apply(this,arguments)||this};
_.K(C0,_.m);C0.prototype.computeIconPosition=function(G){return this.get("iconPosition",G)||null};
C0.prototype.computeIconStyle=function(G){return this.get("iconStyle",G)||null};
C0.prototype.computeIsIconStyleFilled=function(G){if(!G)return!1;var e;return G.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((e=G.icon)==null?void 0:e.iconType)==="ERROR_BLACK"};
_.B([_.n(),_.x("design:type",Object)],C0.prototype,"data",void 0);_.B([_.n({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.x("design:type",Object)],C0.prototype,"iconPosition",void 0);_.B([_.n({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.x("design:type",Object)],C0.prototype,"iconStyle",void 0);_.B([_.n({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],C0.prototype,"iconStyleFilled",void 0);
_.B([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],C0);
_.A(C0,"ytd-thumbnail-overlay-icon-renderer",function(){if(T6b!==void 0)return T6b;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return T6b=G},{mode:1});var DAb;var uo=function(){return _.m.apply(this,arguments)||this};
_.K(uo,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],uo.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],uo.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],uo);
_.A(uo,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(DAb!==void 0)return DAb;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return DAb=G},{mode:1});var EQE;var n0=function(){var G=_.m.apply(this,arguments)||this;G.isPreviewLoading=!1;return G};
_.K(n0,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],n0.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],n0.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],n0.prototype,"isPreviewLoading",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],n0);
_.A(n0,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(EQE!==void 0)return EQE;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return EQE=G},{mode:1});var igP;var mN=function(){return _.m.apply(this,arguments)||this};
_.K(mN,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],mN.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],mN.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],mN);
_.A(mN,"ytd-thumbnail-overlay-pinking-renderer",function(){if(igP!==void 0)return igP;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return igP=G},{mode:1});var bgW;var cy=function(){var G=_.m.apply(this,arguments)||this;G.disableTooltips=!1;G.isLoading=!1;G.useExpandableTooltip=!1;G.toggled=!1;G.hovered=!1;G.mouseoverDelayJobId=0;G.toggleDelayJobId=0;G.expandAnimationDelayJobId=0;return G};
_.K(cy,_.m);_.V=cy.prototype;_.V.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");_.z1(this.hostElement).querySelector("#tooltip").position=_.xZ("HTML_DIR")==="rtl"?"right":"left"};
_.V.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.A0.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.A0.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.A0.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.V.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.A0.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.A0.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.A0.cancelJob(this.expandAnimationDelayJobId)};
_.V.computeIcon=function(G,e,r){return(G=r?e:G)&&G.iconType?_.Ne(G.iconType):void 0};
_.V.computeAriaLabel=function(G,e,r){return _.a(r?e:G,wvn).label};
_.V.computeTooltip=function(G,e,r){return r?e:G};
_.V.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.V.computeIconOnHover=function(G,e){if((G==null?0:G.iconType)&&!e)return _.Ne(G.iconType)};
_.V.onTap=function(G){var e=this;G.stopPropagation();G.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(G=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(G),this.useExpandableTooltip&&(this.toggleDelayJobId=_.za(_.A0,function(){e.hovered=!1;e.data&&!e.data.toggledServiceEndpoint&&(e.expandAnimationDelayJobId=_.za(_.A0,function(){e.set("data.isToggled",
!1)},200))},2E3))};
_.V.onMouseenter=function(){var G=this;this.mouseoverDelayJobId=_.za(_.A0,function(){G.hovered=!0},300)};
_.V.onMouseleave=function(){_.A0.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.V.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.V.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.V.onServiceRequestCompleted=function(G,e){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(e)||this.set("data.isToggled",!this.data.isToggled)};
_.V.serviceRequestWasSuccessful=function(G){return _.a(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.BV)?G.data.status==="STATUS_SUCCEEDED":!0};
cy.prototype.onServiceRequestCompleted=cy.prototype.onServiceRequestCompleted;cy.prototype.onPopupClosed=cy.prototype.onPopupClosed;cy.prototype.onPopupOpened=cy.prototype.onPopupOpened;cy.prototype.onMouseleave=cy.prototype.onMouseleave;cy.prototype.dataChanged=cy.prototype.dataChanged;_.B([_.k(_.nS),_.x("design:type",Object)],cy.prototype,"ironButtonState",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],cy.prototype,"ytComponentBehavior",void 0);
_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],cy.prototype,"ytEventForwardingBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],cy.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.x("design:type",Object)],cy.prototype,"ariaLabel",void 0);_.B([_.n(),_.x("design:type",Object)],cy.prototype,"disableTooltips",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],cy.prototype,"popupOpen",void 0);_.B([_.n(),_.x("design:type",Object)],cy.prototype,"isLoading",void 0);_.B([_.n(),_.x("design:type",Element)],cy.prototype,"eventSink",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],cy.prototype,"useExpandableTooltip",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.x("design:type",Object)],cy.prototype,"toggled",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],cy.prototype,"hovered",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.x("design:type",Object)],cy.prototype,"iconOnHover",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cy.prototype,"dataChanged",null);
_.B([_.Om("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cy.prototype,"onMouseleave",null);_.B([_.Om("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cy.prototype,"onPopupOpened",null);_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cy.prototype,"onPopupClosed",null);
_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.n1]),_.x("design:returntype")],cy.prototype,"onServiceRequestCompleted",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],cy);
_.A(cy,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(bgW!==void 0)return bgW;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return bgW=G},{mode:_.Px("kevlar_poly_si_batch_j053")?1:2});var vQW;var wWv=_.y(function(G){var e=G.data;var r=G.thumbnailSize;var Z=function(){return e().enableSegmentView};
return _.v("yt-thumbnail-overlay-progress-bar-view-model",{class:_.LC("ytThumbnailOverlayProgressBarHost",function(){return YC_(r==null?void 0:r())})},_.v(_.S,{cond:Z,
then:function(){return _.v("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.v("div",{class:_.qo("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+e().startPercent+"%"}}),_.v("div",{class:_.qo("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+e().segmentDurationPercent+"%"}},_.v("div",{class:_.qo("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.v("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.v("div",null," ",function(){return e().segmentLabel})),_.v("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.v("div",{class:_.qo("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.v(_.S,{cond:function(){return!Z()&&e().startPercent},
then:function(){var O={};return _.v("div",{class:_.qo("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(O.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.R("web_enable_modern_progress_bar_overlay"),O))},_.v("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+e().startPercent+"%"}}))}}))},"Ea");
wWv.idomCompat=!0;var $AP=_.y(function(G){var e=_.r8(),r=_.Eb(function(O){var M,T,E;a:{var b=(M=G.data())==null?void 0:M.animationActivationTargetId;M=((T=G.data())==null?void 0:T.animationActivationEntityKey)||"";T=(E=G.data())==null?void 0:E.animationActivationEntitySelectorType;if(M&&b)switch(T){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":O=_.Gh(O,M);E=_.v_().resolve(_.bq(_.fp));b=!!(O&&O.videoId===b&&(E==null?0:E.isMiniplayerActive()));b={activated:b,playAnimation:b&&O.playerState==="PLAYER_STATE_PLAYING"};
break a}b=void 0}return b});
_.Y8(function(){var O;if((O=r())==null?0:O.activated){var M;if((M=r())==null?0:M.playAnimation){var T;(T=e.lottieEl)==null||T.goToAndPlay(0)}else{var E;(E=e.lottieEl)==null||E.goToAndStop(0)}}},"DbQiXd");
var Z=function(){var O,M=!((O=r())==null||!O.activated);if(G.data()){O=G.data();var T=void 0;O.icon&&(T=_.hSq(O.icon),T=wla(T));var E=void 0,b;if((b=O.backgroundColor)==null?0:b.lightTheme){var w;E={backgroundColor:aB((w=O.backgroundColor)==null?void 0:w.lightTheme,"0.8")}}if(O.text||T||M){if(M&&O.lottieData&&e){w=O.lottieData;var q,t,g;b={animationConfig:{name:w.url,path:w.url,autoplay:(q=w.settings)==null?void 0:q.autoplay,loop:(g=(t=w.settings)==null?void 0:t.loop)!=null?g:!0},animationRef:e}}else b=
void 0;if(M)q=17;else b:switch(O.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":q=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":q=19;break b;default:q=17}M={type:q,text:M&&O.animatedText?O.animatedText:O.text,icon:T,customColors:E,animation:b}}else M=void 0}else M=void 0;return M};
return _.v("yt-thumbnail-badge-view-model",{class:_.LC("ytThumbnailBadgeViewModelHost",G.class)},_.v(_.S,{cond:Z,then:function(){return _.v(_.PZ,{data:function(){return Z()}})}}))},"Ga");var SFb=_.y(function(G){var e={},r={};return _.v("yt-thumbnail-bottom-overlay-view-model",{class:_.LC("ytThumbnailBottomOverlayViewModelHost",(e.ytThumbnailBottomOverlayViewModelHostBackground=function(){return G.data().enableGradientBackground},e))},_.v(_.E2,{data:function(){return G.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(Z){return _.v(wWv,{data:Z.data,
thumbnailSize:G.thumbnailSize})}}),_.v("div",{class:_.LC("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var Z;
return yjp((Z=G.thumbnailSize)==null?void 0:Z.call(G))},(r.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var Z;
return(Z=G.isClip)==null?void 0:Z.call(G)},r.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var Z;
return!_.R("web_enable_modern_progress_bar_overlay")&&((Z=G.thumbnailSize)==null?void 0:Z.call(G))==="small"},r))},_.v(_.E2,{data:function(){return G.data().badge}},{thumbnailBadgeViewModel:function(Z){return _.v($AP,{data:Z.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.v(_.E2,{data:function(){return G.data().badges}},{thumbnailBadgeViewModel:function(Z){return _.v($AP,{data:Z.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ha");
SFb.idomCompat=!0;_.J_(SFb,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.yb,thumbnailSize:_.yb,isClip:_.yb}});var NaS={calledOnce:!1,state:"visible"},LR4={calledOnce:!1,state:"hidden"};var Ym=_.y(function(G){var e=G.data;var r=G.className;G=G.alwaysShow;var Z=_.Jj4(),O={};return _.v("thumbnail-hover-overlay-view-model",{el:_.cQ(_.jV(function(){return e().rendererContext})),
class:_.LC("ytThumbnailHoverOverlayViewModelHost",r,(O.ytThumbnailHoverOverlayViewModelHostForceHover=G,O)),"aria-label":function(){var M;return(M=_.a(e().rendererContext,_.D9))==null?void 0:M.label},
role:function(){return _.lt(e().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.lt(e().rendererContext)!==void 0?0:void 0},
"on:keypress":Z},_.v("div",{class:_.LC("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(e().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var M="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:M="ytThumbnailHoverOverlayViewModelStyleCover"}return M})},_.v(_.S,{cond:function(){return e().icon},
then:function(M){return _.v(_.nC,{data:M,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.v(_.S,{cond:function(){return e().text},
then:function(M){return _.v(_.Wh,{text:M,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ja");
Ym.idomCompat=!0;var qFW=_.y(function(G){var e=G.data;return _.v(_.E2,{data:function(){return e==null?void 0:e().overlays}},{thumbnailHoverOverlayViewModel:Ym})},"Ka");
qFW.idomCompat=!0;var tnj={};var gQl=_.y(function(G){var e=G.data;var r=G.image;var Z=G.state;var O=G.iconType;var M=G.overlays;var T=G.isOverlay;var E=_.T2("div");G=_.h(_.XQ(!0,void 0,"AA4e7b"));var b=G.next().value,w=G.next().value,q=function(){return!!e().onTap},t=_.mr(O,"LIVE");
_.Y8(function(){var l=e();requestAnimationFrame(function(){if(E.value===null)var X=!0;else{var H=E.value;X=l.badgeText;var I=rCS(l.size);X in tnj?H=tnj[X]:(H=H.clientWidth,tnj[X]=H);(X=H>I)?E.value.style.display="none":E.value.style.visibility="visible"}w(X)})},"vNdN8b");
var g=function(){var l={};return l["yt-spec-avatar-shape__image"]=!0,l["yt-spec-avatar-shape__image--ads-app"]=e().type===1,l["yt-spec-avatar-shape__image--inscribed-square"]=e().type===2,l};
return _.v("yt-avatar-shape",null,_.v("div",{el:_.cQ(OZp(q,{keydown:function(l){if(l.key==="Enter"){var X;(X=l.currentTarget)==null||X.click()}},
click:function(l){var X,H;return void((H=(X=e()).onTap)==null?void 0:H.call(X,l))}})),
class:function(){var l={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},X=e();l=(l[X.clusterLayoutConfig?hbp(X.clusterLayoutConfig):TO_(X.size)]=!0,l["yt-spec-avatar-shape__button--tappable"]=q(),l);(X=e().avatarButtonCustomClassName)&&(l[X]=!0);return _.qo(l)},
"aria-label":function(){return q()?e().accessibilityText:""},
role:function(){return q()?"button":void 0},
tabindex:function(){return q()?0:void 0}},_.v("div",{class:function(){var l,X=e(),H=Z==null?void 0:Z(),I=T==null?void 0:T(),C=!((l=X.decorations)==null||!l.includes(2)||X.size!=="medium"&&X.size!=="large"),u=X.size==="tiny"||X.size==="extra-small",P,F,J,U,e$={};
l=(e$["yt-spec-avatar-shape--live-ring"]=!!(((P=X.decorations)==null?0:P.includes(0))&&EDp(X.size)),e$["yt-spec-avatar-shape--stories-watched"]=C&&!(H==null||!H.storiesWatched),e$["yt-spec-avatar-shape--stories-unwatched"]=C&&!(H==null?0:H.storiesWatched),e$["yt-spec-avatar-shape--background-border"]=iZF(X.decorations)&&!u,e$["yt-spec-avatar-shape--background-border-thin"]=iZF(X.decorations)&&u,e$["yt-spec-avatar-shape__on-select-border"]=!((F=X.decorations)==null||!F.includes(4)),e$["yt-spec-avatar-shape__white-border"]=
!((J=X.decorations)==null||!J.includes(5)),e$["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((U=X.decorations)==null?0:U.includes(5))&&u),e$["yt-spec-avatar-shape--is-overlay"]=!!I,e$);return _.qo(l)},
style:function(){a:{var l=e().clusterLayoutConfig;if(l){b:{var X=l.numAvatarsInCluster;var H=l.avatarIndex;if(H!==X-1){switch(l.clusterSize){case "small":l="32";break;case "medium":l="36";break;case "40":l="40";break;default:X=void 0;break b}X="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+l+"x"+l+"_avatars_"+X+"_index_"+H+".svg"}else X=void 0}if(X){X=_.Mk({"-webkit-mask-image":"url("+X+")","mask-image":"url("+X+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}X=void 0}return X}},_.v("div",{class:function(){var l={};
var X=e();l=(l[X.clusterLayoutConfig?MyF(X.clusterLayoutConfig):Vy$(X.size)]=!0,l["yt-spec-avatar-shape--no-margin"]=iZF(e().decorations),l["yt-spec-avatar-shape--square"]=e().type===2,l);return _.qo(l)}},_.v(_.nC,{data:r,
alt:function(){return!q()&&e().accessibilityText?e().accessibilityText:""},
targetWidth:function(){return DLS(e().size)},
targetHeight:function(){return DLS(e().size)},
className:function(){return _.qo(g())}}),_.v(_.S,{cond:function(){var l;
return((l=e().decorations)==null?void 0:l.includes(0))&&EDp(e().size)},
then:function(){return _.v("div",{class:function(){var l={};l=(l["yt-spec-avatar-shape__live-badge"]=!0,l["yt-spec-avatar-shape__live-badge--badge-small"]=e().size==="small",l["yt-spec-avatar-shape__live-badge--badge-medium"]=e().size==="medium"||e().size==="48",l["yt-spec-avatar-shape__live-badge--badge-large"]=e().size==="large",l["yt-spec-avatar-shape__live-badge--badge-extra-large"]=e().size==="extra-large"||e().size==="extra-extra-large"||e().size==="giant",l);return _.qo(l)}},_.v(_.S,{cond:function(){return e().badgeText},
then:function(l){return _.v("div",{class:"yt-spec-avatar-shape__badge-text",el:E},l)}}),_.v(_.S,{cond:b,
then:function(){return _.v("div",{class:"yt-spec-avatar-shape__badge-icon"},_.v(_.V$,{icon:t,size:function(){a:switch(e().size){case "extra-large":var l=16;break a;default:l=13}return l}}))}}))}}),_.v(_.S,{cond:function(){var l,X;
return((l=e().decorations)==null?void 0:l.includes(1))||((X=e().decorations)==null?void 0:X.includes(0))&&!EDp(e().size)},
then:function(){return _.v("div",{class:function(){var l=e(),X,H,I={};var C=(I["yt-spec-avatar-shape__live-dot"]=!((X=l.decorations)==null||!X.includes(0)||EDp(l.size)),I["yt-spec-avatar-shape__new-content"]=!((H=l.decorations)==null||!H.includes(1)),I);return _.qo(C)}})}}),_.v(_.S,{cond:function(){return!!M},
then:function(){return _.v("div",{class:function(){var l={};l=Object.assign((l["yt-spec-avatar-shape__image-overlays"]=!0,l),g());return _.qo(l)}},M==null?void 0:M())}})))))},"Na");
gQl.idomCompat={callbacks:{overlays:!0}};_.yy=_.y(function(G){function e(){r().endpoint&&_.HQ(r().endpoint)}
var r=G.data;var Z=G.decorations;var O=G.avatarButtonCustomClassName;var M=G.isOverlay;var T=G.clusterLayoutConfig;return _.v("avatar-view-model",null,_.v(_.S,{cond:function(){return r().image},
then:function(E){return _.v(gQl,{data:function(){return vDq({data:r(),onTap:r().endpoint?e:void 0,decorations:Z==null?void 0:Z(),badgeText:void 0,accessibilityText:r().accessibilityText,avatarButtonCustomClassName:O==null?void 0:O(),clusterLayoutConfig:T==null?void 0:T()})},
image:E,iconType:"RADAR_LIVE",overlays:function(){return _.v(qFW,{data:r})},
isOverlay:M})}}))},"Oa");
_.yy.idomCompat=!0;_.Aq=_.y(function(G){var e=G.data;G=G.className;var r=_.T2("yt-decorated-avatar-view-model"),Z=function(){return _.a(e().avatar,_.aH)},O=_.dw(function(){var M,T=e(),E=Z(),b=_.lt(e().rendererContext),w=(M=r.value)!=null?M:void 0,q;
if(E){w={data:T,avatar:E,onTap:b,element:w};M=w.data;T=w.avatar;E=w.onTap;b=w.element;w=w.commandController;E=E?qG$(E,b,w):void 0;b=[];M.liveData&&b.push(0);var t;w=(t=M.liveData)==null?void 0:t.liveBadgeText;t=(q=_.a(M.rendererContext,_.D9))==null?void 0:q.label;q=vDq({data:T,onTap:E,decorations:b,badgeText:w,accessibilityText:t?t:M.a11yLabel})}else q={size:"medium"};return q},void 0,"c00kWd");
return _.v("yt-decorated-avatar-view-model",{class:_.LC("ytDecoratedAvatarViewModelHost",G),el:r},_.v(_.S,{cond:function(){var M;return(M=Z())==null?void 0:M.image},
then:function(M){return _.v(gQl,{data:O,image:M,iconType:"RADAR_LIVE",overlays:function(){return _.v(qFW,{data:Z})}})}}))},"Pa");
_.Aq.idomCompat=!0;_.FM=_.y(function(G){var e=function(){var E;return Object.assign({},G.data(),(E=G.overrides)==null?void 0:E.call(G))},r=function(){return _.RH(e().rendererContext)},Z=function(){var E=e().avatars,b,w;
return(w=(b=(E==null?0:E[0])?_.a(E[0],_.aH):void 0)==null?void 0:b.avatarImageSize)!=null?w:"AVATAR_SIZE_UNKNOWN"},O=function(){return SGq(e())},M=function(){if(e().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var E=void 0;
else if((E=G.decorations)==null?0:E.call(G))E=G.decorations();else{E=e();var b=0;E.avatars&&(b+=E.avatars.length);E.decoratedText&&(b+=1);E=b>1?[3]:[]}return E},T={};
return _.v("yt-avatar-stack-view-model",{el:_.cQ(_.jV(function(){return e().rendererContext})),
class:_.LC("yt-avatar-stack-view-model",G.className,(T["yt-avatar-stack-view-model--tappable"]=r,T["yt-avatar-stack-view-model--is-overlay"]=G.isOverlay,T["yt-avatar-stack-view-model--medium-text"]=G.useMediumText,T)),tabindex:function(){return r()?0:void 0},
role:function(){return r()?"link":void 0},
"aria-label":function(){var E,b;return(b=(E=_.a(e().rendererContext,_.D9))==null?void 0:E.label)!=null?b:""}},_.v(_.S,{cond:function(){var E;
return e().avatars&&!((E=G.hideAvatar)==null?0:E.call(G))},
then:function(){return _.v("div",{class:"yt-avatar-stack-view-model__avatars"},_.v(_.S,{cond:function(){return e().decoratedText},
then:function(E){var b={};return _.v("div",{class:_.LC("yt-avatar-stack-view-model__text-container",(b["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return Z()==="AVATAR_SIZE_XXS"||Z()==="AVATAR_SIZE_XS"},b["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var w;
return((w=G.isOverlay)==null?void 0:w.call(G))&&(Z()==="AVATAR_SIZE_XXS"||Z()==="AVATAR_SIZE_XS")},b)),
style:_.Mk({width:function(){return O().avatarSizeInPx+"px"},
height:function(){return O().avatarSizeInPx+"px"}})},_.v(_.Wh,{text:E,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.v("div",{style:function(){return _.Mk(O().avatarStackStyle)()},
class:function(){return O().avatarStackClass}},_.v(_.E2,{data:function(){return O().avatars.reverse()}},{avatarViewModel:function(E,b){return _.v("div",{style:function(){var w,q;
return _.Mk((q=(w=O()).avatarStyle)==null?void 0:q.call(w,b()))()},
class:function(){return O().avatarClass}},_.v(_.yy,{data:E.data,
decorations:M,avatarButtonCustomClassName:function(){return O().avatarButtonCustomClassName},
isOverlay:G.isOverlay,clusterLayoutConfig:function(){var w,q;return(q=(w=O()).clusterLayoutConfig)==null?void 0:q.call(w,b())}}))},
decoratedAvatarViewModel:function(E,b){return _.v("div",{style:function(){var w,q;return _.Mk((q=(w=O()).avatarStyle)==null?void 0:q.call(w,b()))()},
class:function(){return O().avatarClass}},_.v(_.Aq,{data:E.data}))}})))}}),_.v(_.S,{cond:function(){return e().text},
then:function(E){return _.v(_.Wh,{text:E,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Qa");
_.FM.idomCompat=!0;_.J_(_.y(function(G){var e=G.data;var r=G.thumbnailSize;return _.v("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.v("div",{class:_.LC("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return ty4(r==null?void 0:r())})},_.v(_.E2,{data:function(){return e().avatarStack}},{avatarStackViewModel:function(Z){return _.v(_.FM,{data:Z.data,
decorations:[5]})}})))},"Ra"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.N6,
thumbnailSize:_.N6}});var l4v=_.y(function(G){G=_.cx(G,{hidden:!1});var e=G.data;G=G.hidden;return _.v("yt-thumbnail-overlay-title-view-model",{class:_.LC("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(e().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var r="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:r="ytThumbnailOverlayTitleViewModelPositionTop"}return r}),
hidden:G},_.v(_.S,{cond:function(){return e().leadingContent},
then:function(r){return _.v("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.v(_.E2,{data:r},{decoratedAvatarViewModel:_.Aq}))}}),_.v("div",null,_.v(_.Wh,{text:function(){return e().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.v(_.S,{cond:function(){return e().subtitle},
then:function(){return _.v(_.Wh,{text:function(){return e().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Sa");
l4v.idomCompat=!0;_.J_(l4v,"yt-thumbnail-overlay-title-view-model",{props:{data:_.N6,hidden:_.N6}});_.ROb=_.y(function(G){G=_.cx(G,{isClip:!1});var e=G.data,r=G.thumbnailSize,Z={};return _.v("yt-thumbnail-overlay-badge-view-model",{class:_.LC("yt-thumbnail-overlay-badge-view-model",function(){a:switch(e().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var O="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:O="yt-thumbnail-overlay-badge-view-model--bottom-end"}return O},function(){return gDF(r==null?void 0:r())},(Z["yt-thumbnail-overlay-badge-view-model--clip"]=G.isClip,
Z))},_.v(_.E2,{data:function(){return e().thumbnailBadges}},{thumbnailBadgeViewModel:function(O){return _.v($AP,{data:O.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Ta");
_.ROb.idomCompat=!0;_.J_(_.ROb,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.N6,thumbnailSize:_.N6,isClip:_.N6}});var jvE=_.y(function(G){var e=G.data;G=G.hidden;var r=_.dw(function(){return e().indicatorCount||0},void 0,"AbKnMc"),Z={};
return _.v("yt-page-indicator-view-model",{class:_.LC("ytPageIndicatorViewModelHost",(Z.ytPageIndicatorViewModelIndicatorHidden=function(){return!e().indicatorCount},Z)),
hidden:G},_.v(_.u6,{each:function(){return Array(r())}},function(O,M){var T={};
return _.v("div",{class:_.LC("ytPageIndicatorViewModelIndicator",(T.ytPageIndicatorViewModelIndicatorSelected=function(){return e().selectedIndex===M()},T))})}))},"Ua");
jvE.idomCompat=!0;_.J_(jvE,"yt-page-indicator-view-model",{props:{data:_.N6,hidden:_.N6}});var Jq=function(){var G=_.m.apply(this,arguments)||this;G.eventSink=function(){return G};
G.disableInteraction=!1;G.noRoundedCorners=!1;G.isPreviewLoading=!1;G.isOriginalAspectRatio=!1;G.computedObjectFit=!1;G.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return G};
_.K(Jq,_.m);_.V=Jq.prototype;
_.V.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:_.R("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"}}};
_.V.onImageLoaded=function(){this.loaded=!0};
_.V.onImageUnloaded=function(){this.loaded=!1};
_.V.computeRichThumbnail=function(G,e,r,Z){if(G&&e&&!Z&&!_.R("disable_moving_thumbs_handling")&&!r)return e};
_.V.computeImageWidth=function(G,e){return e||9999};
_.V.computeIsOriginalAspectRatio=function(G){return G};
_.V.computeIsLive=function(G){if(G==null?0:G.badges)for(var e=0;e<G.badges.length;e++){var r=G.badges[e];if(r.metadataBadgeRenderer&&r.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(G==null?0:G.thumbnailOverlays)for(e=0;e<G.thumbnailOverlays.length;e++)if(r=G.thumbnailOverlays[e],r.thumbnailOverlayTimeStatusRenderer&&r.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.V.computeObjectFit=function(G,e){return e||(G?"CONTAIN":"")};
_.V.computeNavigationEndpoint=function(G,e,r){return G?e:r};
_.V.computeHasClip=function(G){G=_.h(G||[]);for(var e=G.next();!e.done;e=G.next())if(e.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.V.computeOverlayColor=function(G){var e;return(G==null?0:(e=G.darkColorPalette)==null?0:e.section2Color)?G.darkColorPalette.section2Color:G==null?void 0:G.sampledThumbnailColor};
_.iY.Object.defineProperties(Jq.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return Yd_(this.width)}}});
Jq.prototype.onImageUnloaded=Jq.prototype.onImageUnloaded;Jq.prototype.onImageLoaded=Jq.prototype.onImageLoaded;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Jq.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Jq.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(GpC),_.x("design:type",Object)],Jq.prototype,"ytdThumbnailBehavior",void 0);
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Jq.prototype,"componentBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],Jq.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Jq.prototype,"data",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],Jq.prototype,"circular",void 0);
_.B([_.n({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.x("design:type",Object)],Jq.prototype,"richThumbnail",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.x("design:type",Boolean)],Jq.prototype,"hasClip",void 0);_.B([_.n(),_.x("design:type",Object)],Jq.prototype,"eventSink",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Jq.prototype,"queued",void 0);
_.B([_.n({value:!1}),_.x("design:type",Boolean)],Jq.prototype,"richGridThumbnail",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],Jq.prototype,"useExpandableTooltip",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],Jq.prototype,"useUntranslatedNavigationEndpoint",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Jq.prototype,"disableInteraction",void 0);
_.B([_.n({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.x("design:type",Object)],Jq.prototype,"computedNavigationEndpoint",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Jq.prototype,"nowPlayingEqualizerOnly",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Jq.prototype,"hidePlaybackStatus",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],Jq.prototype,"objectFit",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Jq.prototype,"noRoundedCorners",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],Jq.prototype,"watchFeedThumbnail",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Jq.prototype,"isPreviewLoading",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.x("design:type",Object)],Jq.prototype,"isOriginalAspectRatio",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.x("design:type",Object)],Jq.prototype,"computedObjectFit",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.x("design:type",Boolean)],Jq.prototype,"isLiveVideo",void 0);
_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Jq.prototype,"loaded",void 0);_.B([_.n({computed:"computeOverlayColor(data.thumbnail)"}),_.x("design:type",Object)],Jq.prototype,"overlayColor",void 0);_.B([_.n({selector:_.u3F}),_.x("design:type",Boolean)],Jq.prototype,"inlinePreviewIsEnabled",void 0);_.B([_.n(),_.x("design:type",Number)],Jq.prototype,"width",void 0);
_.B([_.d("inlinePreviewIsEnabled"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Jq.prototype,"isPreviewDisabled",null);_.B([_.d("width"),_.x("design:type",String),_.x("design:paramtypes",[])],Jq.prototype,"thumbnailSize",null);_.B([_.Om("image-loaded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Jq.prototype,"onImageLoaded",null);
_.B([_.Om("image-unloaded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Jq.prototype,"onImageUnloaded",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-thumbnail"})],Jq);
var a4v=_.xP()(Jq,"ytd-thumbnail",function(){if(vQW===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);vQW=G}G=vQW;return G},{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 jOi=function(G){var e=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15035_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15035_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(r){XWv(e,r)};
this.onLockupMouseLeaveFn=function(r){r=r.relatedTarget;var Z,O;((Z=document.getElementsByTagName("ytd-video-preview"))==null?0:(O=Z.item(0))==null?0:O.contains(r))||(e.terminateVideoPreview(),By(e))};
this.onThumbnailMouseDownFn=function(){e.terminateVideoPreview();By(e)};
this.onTouchStart=function(){e.JSC$15035_touched=!0};
this.mediaRenderer=G.mediaRenderer;this.thumbnailElement=G.thumbnailElement;this.lockupElement=G.lockupElement;this.videoPreviewOptsInput=G.videoPreviewOpts;Kqj(this);xm(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)):
_.FH(Error("Fh")):_.FH(Error("Gh")):f4w(this)},nx=function(G){f4w(G);
var e;(e=G.lockupElement)==null||e.removeEventListener("mouseenter",G.onMouseMoveFn);var r;(r=G.lockupElement)==null||r.removeEventListener("mouseleave",G.onLockupMouseLeaveFn);var Z;(Z=G.lockupElement)==null||Z.removeEventListener("touchstart",G.onTouchStart);var O;(O=G.thumbnailElement)==null||O.removeEventListener("mousedown",G.onThumbnailMouseDownFn);By(G)},Kqj=function(G){G.inlinePreviewIsEnabledForUser=_.Yt().getState().ui.inlinePreviewIsEnabled;
G.unsubscribeFromInlinePreviewIsEnabled=_.IC(_.Yt(),_.u3F,function(e){(G.inlinePreviewIsEnabledForUser=e)||By(G)});
G.JSC$15035_unsubscribeFromInlinePreviewIsActive=_.IC(_.Yt(),_.COp,function(e){(G.inlinePreviewIsActive=e)||By(G)})},f4w=function(G){G.unsubscribeFromInlinePreviewIsEnabled();
G.unsubscribeFromInlinePreviewIsEnabled=function(){};
G.JSC$15035_unsubscribeFromInlinePreviewIsActive();G.JSC$15035_unsubscribeFromInlinePreviewIsActive=function(){}},XWv=function(G,e){e.buttons>0||(e=_.qt("kevlar_lockup_hover_delay",-1),G.JSC$15035_touched&&e>=0?(_.A0.cancelJob(G.videoPreviewJobId),G.videoPreviewJobId=_.za(_.A0,function(){kIP(G)},e),G.JSC$15035_touched=!1):kIP(G))},EgS=function(G){G.videoPreviewJobId=_.za(_.A0,function(){return _.D(function(e){return e.yield(Hgc(G,{isAutoplay:!0}),0)})})},kIP=function(G){!G.previewTriggered&&xm(G)&&
(G.inlinePreviewIsActive&&G.terminateVideoPreview(),G.previewTriggered=!0,G.mediaRenderer.isInlinePreviewTriggered=!0,_.A0.cancelJob(G.videoPreviewJobId),G.videoPreviewJobId=_.za(_.A0,function(){return _.D(function(e){return e.yield(Hgc(G),0)})}))},Hgc=function(G,e){e=e===void 0?{}:e;
var r=e.isAutoplay===void 0?!1:e.isAutoplay;var Z,O,M,T;return _.D(function(E){if(E.nextAddress==1){if(!xm(G))return E.return();Z=G.getVideoPreviewOpts();if(!Z)return E.return();r&&(Z.isAutoplay=!0);return(M=(O=_.UW(G.mediaRenderer.hostElement,"yt-open-video-preview-action",[Z]))&&O[0])?E.yield(O[0],3):E.jumpTo(2)}E.nextAddress!=2&&(M=E.yieldResult===1);if(M){var b=(T=G.mediaRenderer)==null?void 0:T.data;b&&(RbF(b)?delete b.inlinePlayerData:"inlinePlaybackEndpoint"in b&&delete b.inlinePlaybackEndpoint)}_.HL(E)})};
jOi.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var G,e;if((e=(G=this.videoPreviewOptsInput)==null?void 0:G.videoPreviewData)!=null)G=e;else if(G=this.mediaRenderer.data)if(RbF(G))G={inlinePlaybackEndpoint:_.X0(G.inlinePlayerData.onVisible),navigationEndpoint:_.X0(G.onTap),thumbnail:"image"in G?G.image:G.thumbnail,thumbnailOverlays:void 0,accessibilityText:lNF(G)};else if("multipleInlinePlaybackEndpoint"in G){var r=_.a(_.a(G.multipleInlinePlaybackEndpoint,s4P),Q4j);if(r!=
null&&r.playerDescriptors){e=[];r=_.h(r.playerDescriptors);for(var Z=r.next();!Z.done;Z=r.next())Z=Z.value,e.push({inlinePlaybackEndpoint:Z.inlinePlaybackEndpoint,navigationEndpoint:Z.navigationEndpoint,thumbnail:Z.thumbnail,thumbnailOverlays:Z.thumbnailOverlays,accessibilityText:lNF(G)});G=e}else G=void 0}else G={inlinePlaybackEndpoint:G.inlinePlaybackEndpoint,navigationEndpoint:G.navigationEndpoint,thumbnail:G.thumbnail,thumbnailOverlays:G.thumbnailOverlays,accessibilityText:lNF(G)};else G=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:G,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var xm=function(G){var e;if(e=G.inlinePreviewIsEnabledForUser)e=(G=G.mediaRenderer.data)?"inlinePlaybackEndpoint"in G&&G.inlinePlaybackEndpoint||RbF(G)&&G.inlinePlayerData||"multipleInlinePlaybackEndpoint"in G&&G.multipleInlinePlaybackEndpoint?!0:!1:!1;return e};
jOi.prototype.terminateVideoPreview=function(){_.Pi(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var By=function(G){_.A0.cancelJob(G.videoPreviewJobId);G.inlinePreviewIsActive=!1;G.previewTriggered=!1;G.mediaRenderer.isInlinePreviewTriggered=!1};var dAn=_.Cp(["#"]),Py=function(){var G=_.m.apply(this,arguments)||this;G.isDisabled=!1;return G};
_.K(Py,_.m);_.V=Py.prototype;
_.V.configureRendererStamper=function(){return{"data.menu":km,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.V.attached=function(){this.updateInlinePreviewHoverListeners()};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.getMetadata=function(G){var e=[];if(G.metadataText&&Object.keys(G.metadataText).length>0){var r=this.ytRendererBehavior.getSimpleString(G.metadataText);G.upcomingEventData&&G.upcomingEventData.upcomingEventText&&(r=_.$b(r,Number(G.upcomingEventData.startTime)));e.push(r)}else G.shortViewCountText&&e.push(this.ytRendererBehavior.getSimpleString(G.shortViewCountText)),G.publishedTimeText&&e.push(this.ytRendererBehavior.getSimpleString(G.publishedTimeText)),G.upcomingEventData&&G.upcomingEventData.upcomingEventText&&
(r=this.ytRendererBehavior.getSimpleString(G.upcomingEventData.upcomingEventText),e.push(_.$b(r,Number(G.upcomingEventData.startTime))));return e};
_.V.calculateBylineText=function(G){return G.shortBylineText?G.shortBylineText:G.bylineText?G.bylineText:null};
_.V.calculateIsDisabled=function(G){return!!G.isDisabled};
_.V.computeHrefWithDefault=function(G){return this.ytComponentBehavior.computeHref_(G)||_.h1F(dAn)};
_.V.onDetailsTap=function(G){var e=this.data&&this.data.navigationEndpoint;e&&!_.mO(_.na(G)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.R("kevlar_grid_video_renderer_killswitch")?_.xy(this.hostElement,"yt-navigate",{endpoint:e}):this.ytComponentBehavior.resolveCommand(e))};
_.V.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15042_inlinePreviewHoverListener=XK({mediaRenderer:this,lockupElement:_.z1(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.z1(this.hostElement).querySelector("ytd-thumbnail")})};
_.V.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$15042_inlinePreviewHoverListener)==null||nx(G)};
_.V.computeThumbnailWidth=function(G,e){return e&&e>0?e:G?360:210};
_.V.computeNumBadgesInRow=function(G){var e;return((e=G.badges)==null?void 0:e.length)||0};
_.V.computeShowChannelThumbnail=function(G,e){var r;return e&&!!(G==null?0:(r=G.channelThumbnailSupportedRenderers)==null?0:r.channelThumbnailWithLinkRenderer)};
_.iY.Object.defineProperties(Py.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$15042_inlinePreviewHoverListener)==null?0:xm(G))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
Py.prototype.dataChanged=Py.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Py.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Py.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Py.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],Py.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.k(_.NC),_.x("design:type",Object)],Py.prototype,"ytdLockupBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],Py.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Py.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Boolean)],Py.prototype,"noEndpoints",void 0);_.B([_.n({computed:"calculateBylineText(data)"}),_.x("design:type",Object)],Py.prototype,"bylineText",void 0);
_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Py.prototype,"isSearch",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Py.prototype,"isDownloading",void 0);_.B([_.n({reflectToAttribute:!0,value:0}),_.x("design:type",Number)],Py.prototype,"width",void 0);_.B([_.n({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.x("design:type",Object)],Py.prototype,"isDisabled",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Py.prototype,"dataChanged",null);_.B([_.d("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Py.prototype,"isHovered",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Py.prototype,"hasAttributedBylineText",null);
_.B([_.d("bylineText","hasAttributedBylineText"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Py.prototype,"showBylineText",null);_.B([_.c({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],Py);
_.A(Py,"ytd-grid-video-renderer",function(){if(eOj!==void 0)return eOj;var G=document.createElement("template");_.f(G,'\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" class="style-scope ytd-grid-video-renderer"><div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-grid-video-renderer"></div><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[!showBylineText]]" 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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return eOj=G},{mode:_.Px("kevlar_poly_si_batch_j047")?1:2});var oQw;var UE=function(){var G=_.m.apply(this,arguments)||this;G.roundedContainer=!0;G.skipRoundingTop=!1;G.disableTopPadding=!1;G.amsterdamEnabled=_.R("enable_desktop_amsterdam_info_panels");G.extractOverlay=!1;return G};
_.K(UE,_.m);UE.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
UE.prototype.onClick=function(G){var e,r=(e=this.data)==null?void 0:e.sourceEndpoint;!_.mO(_.na(G),this.hostElement,["A".toString()])&&r&&_.xy(this.hostElement,"yt-navigate",{endpoint:r})};
_.iY.Object.defineProperties(UE.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 G;return!((G=this.data)==null||!G.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var G,e;return(e=(G=this.data)==null?void 0:G.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_",""):""}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],UE.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],UE.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],UE.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],UE.prototype,"showVerticalDividers",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],UE.prototype,"roundedContainer",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],UE.prototype,"skipRoundingTop",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],UE.prototype,"disableTopPadding",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],UE.prototype,"amsterdamEnabled",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],UE.prototype,"extractOverlay",void 0);
_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],UE.prototype,"showMetadataAtTop",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],UE.prototype,"showMetadataBelowTitle",null);_.B([_.n({reflectToAttribute:!0}),_.d("data.menu"),_.x("design:type",Object),_.x("design:paramtypes",[])],UE.prototype,"hasMenu",null);
_.B([_.n({reflectToAttribute:!0}),_.d("data.truncateParagraphs"),_.x("design:type",Object),_.x("design:paramtypes",[])],UE.prototype,"truncateParagraphs",null);_.B([_.n({reflectToAttribute:!0}),_.d("data.paragraphMaxLines"),_.x("design:type",Number),_.x("design:paramtypes",[])],UE.prototype,"paragraphMaxLines",null);
_.B([_.n({type:_.R("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.d("data.background"),_.x("design:type",Object),_.x("design:paramtypes",[])],UE.prototype,"background",null);_.B([_.c({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],UE);
_.A(UE,"ytd-info-panel-content-renderer",function(){if(oQw!==void 0)return oQw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return oQw=G},{mode:_.Px("kevlar_poly_si_batch_j076")?1:2});var svw;var QvS;var I43;var pWE;var z3=function(){return _.m.apply(this,arguments)||this};
_.K(z3,_.m);z3.prototype.computeStyle=function(G){return G};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],z3.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],z3.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],z3.prototype,"style_",void 0);_.B([_.aR({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],z3);
_.A(z3,"yt-channel-thumbnail-with-link-renderer",function(){if(pWE===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;I43===void 0&&(I43=document.createElement("template"));var Z=I43;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);pWE=G}G=pWE;return G},{mode:2});var Wy=function(){return _.m.apply(this,arguments)||this};
_.K(Wy,_.m);Wy.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"}}}};
Wy.prototype.computeTitleStyle=function(G){return G||null};
Wy.prototype.computeAvatarStyle=function(G){return G||null};
Wy.prototype.computeShowNavigationButton=function(G,e){return!(G==null||!G.navigationButton||e)};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Wy.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Wy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Wy.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.x("design:type",String)],Wy.prototype,"titleStyle",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.x("design:type",String)],Wy.prototype,"avatarStyle",void 0);_.B([_.n(),_.x("design:type",Boolean)],Wy.prototype,"hideNavigationButton",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Wy.prototype,"isModernSd",void 0);_.B([_.c({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],Wy);
_.A(Wy,"ytd-rich-list-header-renderer",function(){if(QvS!==void 0)return QvS;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return QvS=G},{mode:_.Px("kevlar_poly_si_batch_j058")?1:2});var Nm=function(){return _.m.apply(this,arguments)||this};
_.K(Nm,_.m);Nm.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]]"}}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Nm.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Nm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Nm.prototype,"data",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],Nm.prototype,"isSearch",void 0);_.B([_.c({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],Nm);
_.A(Nm,"ytd-preview-card-renderer",function(){if(svw!==void 0)return svw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return svw=G},{mode:1});var CbP;var L0=function(){return _.m.apply(this,arguments)||this};
_.K(L0,_.m);L0.prototype.configureRendererStamper=function(){return{"data.menu":km}};
L0.prototype.dataChanged=function(){var G=this.get("colorExtractionPalette.section1Color",this.data);G=_.RB(G);_.eD(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":G})};
L0.prototype.computeCardStyle=function(G){return this.get("style.value",G)||null};
L0.prototype.dataChanged=L0.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],L0.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],L0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],L0.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],L0.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.x("design:type",String)],L0.prototype,"cardStyle",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],L0.prototype,"dataChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],L0);
_.A(L0,"ytd-compact-channel-recommendation-card-renderer",function(){if(CbP!==void 0)return CbP;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return CbP=G},{mode:1});var u4C;var nQl;var GZ=function(){var G=_.m.apply(this,arguments)||this;G.alignAuto=!1;G.collapsed=!0;G.isToggled=!1;G.alwaysCollapsed=!1;G.canToggle=!0;G.collapsedHeight=80;G.disableToggle=!1;G.alwaysToggleable=!1;G.reversed=!1;G.shouldUseNumberOfLines=!1;G.recomputeOnResize=!1;G.canToggleJobId=0;G.lastReversed=!1;return G};
_.K(GZ,_.m);_.V=GZ.prototype;_.V.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.V.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.V.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var G=_.z1(this.hostElement),e=G.childNodes,r=document.createDocumentFragment(),Z=G.childNodes.length-1;Z>=0;Z--)_.z1(r).appendChild(e[Z]);_.R("enable_shadydom_free_scoped_node_methods")?_.W1(this.hostElement).appendChild(r):G.appendChild(r)}};
_.V.ready=function(){var G=this;_.oR(function(){G.initChildrenObserver()},1)};
_.V.attached=function(){var G;(G=this.resizeObserver)==null||G.observe(this.content)};
_.V.detached=function(){this.detachObserver()};
_.V.toggle=function(G,e){this.canToggle&&(this.isToggled=e,_.xy(this.hostElement,"yt-refit"),G&&G.stopPropagation())};
_.V.reset=function(){this.childrenChanged()};
_.V.onIronResize=function(){this.recomputeOnResize&&!_.R("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.V.computeIsMoreVisible=function(G,e){return G&&!e};
_.V.computeShouldUseNumberOfLines=function(G){try{return!!G&&window.CSS.supports("-webkit-line-clamp","1")}catch(e){}return!1};
_.V.computeIsLessVisible=function(G,e){return G&&e};
_.V.observeCollapsedHeightAndMaxLines=function(){var G=this.collapsedHeight,e=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.eD(this.hostElement,{"--ytd-expander-max-lines":""+e,"--ytd-expander-collapsed-height":""}):_.eD(this.hostElement,{"--ytd-expander-collapsed-height":G+"px","--ytd-expander-max-lines":""})};
_.V.handleMoreTap=function(G){this.disableToggle||(_.xy(this.hostElement,"yt-expander-more-tapped"),this.toggle(G,!0))};
_.V.handleLessTap=function(G){_.xy(this.hostElement,"yt-expander-less-tapped");this.toggle(G,!1)};
_.V.initChildrenObserver=function(){var G=this;this.observer=new MutationObserver(function(){G.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.R("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.Zp(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var e;(e=G.resizeThrottle)==null||e.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.V.childrenChanged=function(){var G=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){UY(function(){G.canToggleJobId=0;G.calculateCanCollapse()})}))};
_.V.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};
_.V.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.V.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eG("collapsed-changed",this.collapsed))};
_.V.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eG("is-toggled-changed",this.isToggled))};
_.V.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eG("can-toggle-changed",this.canToggle))};
_.iY.Object.defineProperties(GZ.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
GZ.prototype.canToggleChangedForBinding=GZ.prototype.canToggleChangedForBinding;GZ.prototype.isToggledChangedForBinding=GZ.prototype.isToggledChangedForBinding;GZ.prototype.collapsedChangedForBinding=GZ.prototype.collapsedChangedForBinding;GZ.prototype.observeCollapsedHeightAndMaxLines=GZ.prototype.observeCollapsedHeightAndMaxLines;GZ.prototype.onIronResize=GZ.prototype.onIronResize;GZ.prototype.reversedChanged=GZ.prototype.reversedChanged;GZ.prototype.toggledChanged=GZ.prototype.toggledChanged;
GZ.prototype.alwaysToggleableChanged=GZ.prototype.alwaysToggleableChanged;_.B([_.k(_.CS),_.x("design:type",Object)],GZ.prototype,"ironResizableBehavior",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],GZ.prototype,"alignAuto",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],GZ.prototype,"collapsed",void 0);_.B([_.n(),_.x("design:type",Object)],GZ.prototype,"isToggled",void 0);_.B([_.n(),_.x("design:type",Object)],GZ.prototype,"alwaysCollapsed",void 0);
_.B([_.n(),_.x("design:type",Object)],GZ.prototype,"canToggle",void 0);_.B([_.n(),_.x("design:type",Object)],GZ.prototype,"collapsedHeight",void 0);_.B([_.n(),_.x("design:type",Object)],GZ.prototype,"disableToggle",void 0);_.B([_.n(),_.x("design:type",Object)],GZ.prototype,"alwaysToggleable",void 0);_.B([_.n(),_.x("design:type",Object)],GZ.prototype,"reversed",void 0);_.B([_.n(),_.x("design:type",Number)],GZ.prototype,"maxNumberOfLines",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.x("design:type",Object)],GZ.prototype,"shouldUseNumberOfLines",void 0);_.B([_.n(),_.x("design:type",Object)],GZ.prototype,"recomputeOnResize",void 0);_.B([_.hs("#content"),_.x("design:type",HTMLDivElement)],GZ.prototype,"content",void 0);_.B([_.iD("alwaysToggleable"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],GZ.prototype,"alwaysToggleableChanged",null);
_.B([_.iD("isToggled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],GZ.prototype,"toggledChanged",null);_.B([_.d("canToggleJobId"),_.x("design:type",Object),_.x("design:paramtypes",[])],GZ.prototype,"isResetting",null);_.B([_.Me("reversed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],GZ.prototype,"reversedChanged",null);
_.B([_.Om("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],GZ.prototype,"onIronResize",null);_.B([_.Me("maxNumberOfLines","collapsedHeight"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],GZ.prototype,"observeCollapsedHeightAndMaxLines",null);_.B([_.Me("collapsed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],GZ.prototype,"collapsedChangedForBinding",null);
_.B([_.Me("isToggled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],GZ.prototype,"isToggledChangedForBinding",null);_.B([_.Me("canToggle"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],GZ.prototype,"canToggleChangedForBinding",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-expander"})],GZ);
_.A(GZ,"ytd-expander",function(){if(nQl!==void 0)return nQl;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return nQl=G},{mode:1});var eI=function(){return _.m.apply(this,arguments)||this};
_.K(eI,_.m);eI.prototype.computeIsCarousel=function(G){return!!G.isCarousel};
eI.prototype.observeLightsourcePalette=function(){var G,e=(G=this.data)==null?void 0:G.vibrantsourceColorPaletteData;e&&_.Sv(this.hostElement,e)};
eI.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
eI.prototype.observeLightsourcePalette=eI.prototype.observeLightsourcePalette;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],eI.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],eI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],eI.prototype,"data",void 0);_.B([_.n({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],eI.prototype,"isCarousel",void 0);
_.B([_.Me("data.vibrantsourceColorPaletteData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],eI.prototype,"observeLightsourcePalette",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],eI);
_.A(eI,"ytd-media-upsell-renderer",function(){if(u4C!==void 0)return u4C;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return u4C=G},{mode:2});var mA3;var rZ=function(){var G=_.m.apply(this,arguments)||this;G.JSC$15069_playerEvents=new Map;G.listeningToPlayer=!1;G.startX=0;G.active=!1;G.shouldShowButtons=_.R("web_buttons_hidden_killswitch");G.isHighlighted=!1;G.useHighlightStyling=_.R("web_enable_deeper_metadata_highlight_styling");G.modern=_.R("kevlar_modern_sd");G.enableProblemWalkthrough=_.R("problem_walkthrough_sd");return G};
_.K(rZ,_.m);_.V=rZ.prototype;
_.V.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}}}}}};
_.V.created=function(){this.JSC$15069_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.V.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.ZQ(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.ZQ(this,this.onActiveUpdate))};
_.V.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.ZQ(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.ZQ(this,this.onActiveUpdate))};
_.V.onDataChanged=function(){this.removePlayerListeners()};
_.V.onColorPaletteChange=function(){var G={},e;if(_.d0()==="USER_INTERFACE_THEME_DARK"&&((e=this.data)==null?0:e.darkColorPalette)){var r=this.data.darkColorPalette;G["--ytd-macro-markers-list-item-background-color"]=_.jF(this.get("section2Color",r))}else{var Z;_.d0()==="USER_INTERFACE_THEME_LIGHT"&&((Z=this.data)==null?0:Z.lightColorPalette)&&(r=this.data.lightColorPalette,G["--ytd-macro-markers-list-item-background-color"]=_.jF(this.get("section3Color",r)))}r?(G["--ytd-macro-markers-list-item-title-color"]=
_.jF(this.get("primaryTitleColor",r)),G["--ytd-macro-markers-list-item-secondary-color"]=_.jF(this.get("secondaryTitleColor",r)),G["--ytd-macro-markers-list-item-timestamp-background-color"]=_.jF(this.get("section1Color",r)),this.customButtonProperties={customColors:{color:_.jF(this.get("primaryTitleColor",r))}},this.useColorSampling=!0):(G["--ytd-macro-markers-list-item-background-color"]="initial",G["--ytd-macro-markers-list-item-title-color"]="initial",G["--ytd-macro-markers-list-item-secondary-color"]=
"initial",G["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.eD(this.hostElement,G)};
_.V.onEndpointMouseDown=function(G){this.startX=G.clientX};
_.V.onEndpointClick=function(G){var e=this,r,Z,O;return _.D(function(M){if(M.nextAddress==1){if(e.startX!==G.clientX)return G.preventDefault(),M.return();e.data&&e.ytRendererBehavior.logExplicitClick(e.data);if(!e.seekWithAnimationOnClick)return M.jumpTo(0);if(G.button!==0||G.shiftKey||G.altKey||G.metaKey||G.ctrlKey||_.mO(_.na(G),e.hostElement,["BUTTON".toString()]))return M.return();G.stopPropagation();G.preventDefault();return e.data?M.yield(_.Je().getPlayerPromise(),3):M.return()}r=M.yieldResult;
O=(Z=_.a(e.data.onTap,_.u4))==null?void 0:Z.startTimeSeconds;O!==void 0&&r.seekToTimeWithAnimation(O*1E3,_.mG(e.data.title));_.HL(M)})};
_.V.computeLayout=function(G){return G};
_.V.computeIsHighlighted=function(G){return!!G};
_.V.computeCarouselType=function(G){return G};
_.V.hideModernCarousel=function(G){return this.modern&&this.hideThumbnail(G)};
_.V.hideThumbnail=function(G){return this.enableProblemWalkthrough&&G!==null&&G==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.V.onRepeatButtonToggle=function(G){var e=this;G.detail.toggled&&_.Je().getPlayerPromise().then(function(r){e.ytPlayerListenerBehavior.listenToPlayerEvents(r,e.JSC$15069_playerEvents);e.listeningToPlayer=!0})};
_.V.onLoopRangeChange=function(G){var e=_.z1(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(e){var r=e.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",e.polymerController.data);if(r){var Z=Number(r.endTimeMs);if(Number(r.startTimeMs)!==(G==null?void 0:G.startTimeMs)||Z!==(G==null?void 0:G.endTimeMs))e.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.V.removePlayerListeners=function(){var G=this;this.listeningToPlayer&&_.Je().getPlayerPromise().then(function(e){G.ytPlayerListenerBehavior.unlistenFromPlayerEvents(e,G.JSC$15069_playerEvents);G.listeningToPlayer=!1})};
_.V.onActiveUpdate=function(G){this.active=G.detail.active};
rZ.prototype.onColorPaletteChange=rZ.prototype.onColorPaletteChange;rZ.prototype.onDataChanged=rZ.prototype.onDataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],rZ.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],rZ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.GJ.YtPlayerListenerBehavior),_.x("design:type",_.ew)],rZ.prototype,"ytPlayerListenerBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],rZ.prototype,"data",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],rZ.prototype,"useCustomColors",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],rZ.prototype,"active",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],rZ.prototype,"shouldShowButtons",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.x("design:type",String)],rZ.prototype,"layout",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.x("design:type",Object)],rZ.prototype,"isHighlighted",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],rZ.prototype,"useHighlightStyling",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],rZ.prototype,"modern",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],rZ.prototype,"enableProblemWalkthrough",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.x("design:type",String)],rZ.prototype,"carouselType",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],rZ.prototype,"useColorSampling",void 0);_.B([_.n(),_.x("design:type",Boolean)],rZ.prototype,"seekWithAnimationOnClick",void 0);_.B([_.n(),_.x("design:type",Object)],rZ.prototype,"customButtonProperties",void 0);
_.B([_.hs("#repeat-button"),_.x("design:type",HTMLElement)],rZ.prototype,"repeatButton",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rZ.prototype,"onDataChanged",null);_.B([_.Me("data.lightColorPalette","data.darkColorPalette"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rZ.prototype,"onColorPaletteChange",null);_.B([_.c({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],rZ);
_.A(rZ,"ytd-macro-markers-list-item-renderer",function(){if(mA3!==void 0)return mA3;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return mA3=G},{mode:1});var cRC;var YFE;var ZA=function(){return _.m.apply(this,arguments)||this};
_.K(ZA,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ZA.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ZA.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],ZA);
_.A(ZA,"ytd-title-and-button-list-header-renderer",function(){if(YFE!==void 0)return YFE;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return YFE=G},{mode:1});var yRb;var ARE=new _.Gz("BUTTON_RENDERER_TOKEN");_.Op=_.y(function(G){var e=_.v_().resolve(ARE);return _.v(e,Object.assign({},G,{overrides:G.buttonOverrides}))},"Va");var FqE=_.y(function(G){var e=G.data,r=_.mr(G.useSquareAspectRatio,!1);return _.v("dismissed-mini-game-card-view-model",null,_.v(_.S,{cond:function(){var Z,O;return(Z=e().responseText)==null?void 0:(O=Z.runs)==null?void 0:O.length},
then:function(){var Z={};return _.v("div",{class:_.LC("yt-mini-game-card-view-model__dismissed-card",(Z["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!r()},Z["yt-mini-game-card-view-model--dismissed-square-card"]=r,Z))},_.v("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.v(_.S,{cond:function(){return e().responseText.runs[0].text},
then:function(O){return _.v("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:O},O)}}),_.v(_.E2,{data:function(){return e().buttons}},{buttonRenderer:_.Op,
buttonViewModel:_.wF})))}}))},"Wa");var Wqy=_.y(function(G){G=_.cx(G,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var e=G.data,r=G.useFullWidth,Z=G.isDesktopWeb,O=G.addSearchResultTopMargin,M=function(){return e().layout},T=function(){return e().title},E=function(){return e().metadataText?e().metadataText:e().genre},b=function(){return e().channelName},w=function(){return e().image},q=function(){return e().colorPalette},t=function(){return e().actionButton},g=function(){return e().overflowButton},
l=function(){return e().avatar},X=function(){var u={};
u=_.LC("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(u["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return Z()},u));
return _.v("div",{class:u},_.v(JRb,{imageData:w,colorPalette:q}),_.v(B6n,{onTap:function(){return e().onTap},
imageData:w,accessibilityText:function(){return e().accessibilityText},
overlayBadgeText:function(){return e().overlayBadgeText},
iconName:function(){return e().iconName},
unplayableInlinePlaybackIconName:function(){return e().unplayableInlinePlaybackIconName},
isDesktopWeb:Z}),_.v(_.S,{cond:function(){return!Z()},
then:function(){return _.v(_.$Z,null,_.v(xAS,{layout:M,colorPalette:q,isDesktopWeb:Z,overflowButton:g,avatar:l,onTap:function(){return e().onTap},
genre:E,title:T,channelName:b}),_.v(PbE,{actionButton:t}))}}))},H=function(){var u={};
u=_.LC((u["yt-mini-game-card-view-model--search-result-desktop"]=function(){return Z()},u["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!Z()},u["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return O()},u));
return _.v("div",{class:u},X(),_.v(UAn,{description:function(){return e().description},
isDesktopWeb:Z,title:T,genre:E,onTap:function(){return e().onTap},
actionButton:t,overflowButton:g,avatar:l,channelName:b}))},I=function(){var u={};
u=_.LC("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(u["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return Z()},u["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return Z()&&e().width===135},u["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return Z()},u["yt-mini-game-card-view-model--big-metadata-font"]=function(){return e().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},u["yt-mini-game-card-view-model--use-full-width"]=
function(){return r()},u["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!t()},u));
return _.v("div",{class:u},_.v(zOl,{colorPalette:q,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:t,imageData:w}),_.v(xAS,{layout:M,colorPalette:q,isDesktopWeb:Z,overflowButton:g,avatar:l,onTap:function(){return e().onTap},
genre:E,title:T,channelName:b}))},C=function(){var u={};
u=_.LC("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(u["yt-mini-game-card-view-model--square-card-desktop"]=function(){return Z()},u["yt-mini-game-card-view-model--use-full-width"]=function(){return r()},u));
return _.v("div",{class:u},_.v(B6n,{onTap:function(){return e().onTap},
imageData:w,accessibilityText:function(){return e().accessibilityText},
overlayBadgeText:function(){return e().overlayBadgeText},
iconName:function(){return e().iconName},
unplayableInlinePlaybackIconName:function(){return e().unplayableInlinePlaybackIconName},
isDesktopWeb:Z}),_.v(xAS,{layout:M,colorPalette:q,isDesktopWeb:Z,overflowButton:g,avatar:l,onTap:function(){return e().onTap},
genre:E,title:T,channelName:b}))};
return _.v("mini-game-card-view-model",{class:G.className},_.v(_.nz,null,_.v(_.pz,{when:function(){return M()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return I()}),_.v(_.pz,{when:function(){return M()==="MINI_APP_LAYOUT_SQUARE"}},function(){return C()}),_.v(_.pz,{when:function(){return M()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return H()})))},"Xa");
Wqy.idomCompat=!0;var PbE=_.y(function(G){var e=_.mr(G.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.v(_.E2,{data:G.actionButton},{buttonViewModel:function(r){return _.v("div",{class:e},_.v(_.wF,{data:r.data}))}})},"Ya"),B6n=_.y(function(G){var e=G.onTap;
var r=G.imageData;var Z=G.accessibilityText;var O=G.overlayBadgeText;var M=G.iconName;var T=G.unplayableInlinePlaybackIconName;G=G.isDesktopWeb;return _.v(_.Ds,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:e},_.v(_.nC,{data:r,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(Z==null?void 0:Z())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.v(N6l,{overlayBadgeText:O,iconName:M,unplayableInlinePlaybackIconName:T,isDesktopWeb:G}))},"Za"),N6l=_.y(function(G){var e=G.overlayBadgeText;
var r=G.iconName;var Z=G.unplayableInlinePlaybackIconName;var O=G.isDesktopWeb;return _.v("div",{class:"yt-mini-game-card-view-model__badge-container"},_.v(_.S,{cond:r,then:function(M){return _.v("div",{class:"yt-mini-game-card-view-model__badge"},_.v("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.v(_.V$,{icon:M,className:"yt-mini-game-card-view-model__icon",size:12}),_.v("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},e)))}}),_.v(_.S,{cond:function(){return!r()&&
e()},
then:function(){return _.v("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},e)}}),_.v(_.S,{cond:function(){return Z()&&O()},
then:function(){return _.v("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.v(_.V$,{icon:Z,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"$a"),JRb=_.y(function(G){var e=G.colorPalette;
var r=G.imageData;var Z=function(){return e().vibrantColorPalette?e().vibrantColorPalette.section2Color:e().sectionTwoColor};
return _.v(_.$Z,null,_.v("div",{class:"yt-mini-game-card-view-model__background-base",style:_.Mk({"background-color":function(){return aB(Z(),"1")}})}),_.v("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.Mk({"background-image":function(){return"url("+r().sources[0].url+")"}})}),_.v("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.Mk({background:function(){return"linear-gradient(180deg,\n    "+aB(Z(),".8")+" 0%,\n    "+aB(Z(),".4")+" 25%,\n    "+aB(e().vibrantColorPalette?e().vibrantColorPalette.section4Color:e().sectionFourColor,".8")+" 100%)"}})}))},"ab"),xAS=_.y(function(G){var e=G.layout;
var r=G.colorPalette;var Z=G.overflowButton;var O=G.avatar;var M=G.onTap;var T=G.title;var E=G.channelName;var b=G.genre;var w=function(){var q;return e()!=="MINI_APP_LAYOUT_SQUARE"&&((q=r())==null?0:q.textPrimaryColor)?"color: "+aB(r().textPrimaryColor,".7"):""};
return _.v("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.v(_.S,{cond:O,then:function(){return _.v("div",{class:"yt-mini-game-card-view-model__avatar"},_.v(_.E2,{data:O},{avatarViewModel:_.yy}))}}),_.v(_.Ds,{command:M,
className:"yt-mini-game-card-view-model__metadata-details"},_.v("h3",{class:"yt-mini-game-card-view-model__title",title:T},T),_.v(_.S,{cond:O,then:function(){return _.v("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.v("span",{class:"yt-mini-game-card-view-model__genre",title:E,style:w},E),_.v("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:w},b))},
else:function(){return _.v("span",{class:"yt-mini-game-card-view-model__genre",title:b},b)}})),_.v("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.v(_.E2,{data:Z},{buttonViewModel:function(q){var t=q.data;
return _.v(_.wF,{data:function(){return Object.assign({},t(),{customFontColor:e()==="MINI_APP_LAYOUT_SINGLETON"?t().customFontColor:void 0})}})}})))},"bb"),zOl=_.y(function(G){var e=G.colorPalette;
var r=G.isDesktopWeb;var Z=G.onTap;var O=G.accessibilityText;var M=G.overlayBadgeText;var T=G.iconName;var E=G.unplayableInlinePlaybackIconName;var b=G.actionButton;G=G.imageData;return _.v("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.v(JRb,{imageData:G,colorPalette:e}),_.v(B6n,{onTap:Z,imageData:G,accessibilityText:O,overlayBadgeText:M,iconName:T,unplayableInlinePlaybackIconName:E,isDesktopWeb:r}),_.v(_.S,{cond:function(){return b==null?void 0:b()},
then:function(){return _.v(PbE,{actionButton:b})}}))},"cb"),UAn=_.y(function(G){var e=G.description;
var r=G.isDesktopWeb;var Z=G.title;var O=G.genre;var M=G.onTap;var T=G.actionButton;var E=G.overflowButton;var b=G.avatar;G=G.channelName;var w={};w=_.LC("yt-mini-game-card-view-model--search-result-metadata-wrapper",(w["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=r,w["yt-mini-game-card-view-model--show-unplayable-on-hover"]=r,w["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!r()},w));
var q={};q=_.LC("yt-mini-game-card-view-model__search-result-info-row",(q["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!r()},q));
return _.v("div",{class:w},_.v("div",{class:q},_.v(_.Ds,{command:M,className:"yt-mini-game-card-view-model__metadata-details"},_.v("h3",{class:"yt-mini-game-card-view-model__title",title:Z},Z),_.v("span",{class:"yt-mini-game-card-view-model__genre",title:O},O)),_.v(PbE,{actionButton:T,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.v("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.v(_.E2,{data:E},{buttonViewModel:_.wF}))),_.v("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.v("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.v("div",{class:"yt-mini-game-card-view-model__avatar"},_.v(_.E2,{data:b},{avatarViewModel:function(t){var g=t.data;return _.v(_.yy,{data:function(){return Object.assign({},g(),{avatarImageSize:r()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.v(_.Ds,{command:M,
className:"yt-mini-game-card-view-model__description"},_.v("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},G)),_.v(_.Ds,{command:M,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.v("div",null)))),_.v(_.S,{cond:r,then:function(){return _.v(_.Ds,{command:M,className:"yt-mini-game-card-view-model__description"},e)}}))},"db");_.J_(Wqy,"mini-game-card-view-model",{props:{data:_.N6,className:_.N6,useFullWidth:_.N6,isDesktopWeb:_.N6,addSearchResultTopMargin:_.N6}});_.J_(FqE,"dismissed-mini-game-card-view-model",{props:{data:_.N6,useSquareAspectRatio:_.N6}});var MR=function(){var G=_.m.apply(this,arguments)||this;G.isSearch=!1;G.isRichGrid=!1;return G};
_.K(MR,_.m);_.V=MR.prototype;_.V.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.V.dismissibleItemOnYtServiceRequestSent=function(G,e){e.actions&&this.dismissibleItemProcessActions(G,e.actions)};
_.V.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.V.dataChanged=function(){this.dismissibleItemReset()};
_.V.dismissibleItemProcessActions=function(G,e){for(var r=0;r<e.length;r++){var Z=e[r];_.a(Z,_.kA)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.a(Z,_.kA)),G.stopPropagation())}};
_.V.dismissibleItemHandleReplaceEnclosingAction=function(G){this.dismissedRenderer=G.item;this.isDismissed=!0};
_.iY.Object.defineProperties(MR.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var G;return!!this.data&&!((G=this.dismissedRenderer)==null?0:G.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.dismissedRenderer)==null||!G.notificationMultiActionRenderer)}}});
MR.prototype.dataChanged=MR.prototype.dataChanged;MR.prototype.dismissibleItemOnRequestSent=MR.prototype.dismissibleItemOnRequestSent;MR.prototype.dismissibleItemOnYtServiceRequestSent=MR.prototype.dismissibleItemOnYtServiceRequestSent;_.B([_.n(),_.x("design:type",Object)],MR.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],MR.prototype,"isSearch",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],MR.prototype,"isDismissed",void 0);
_.B([_.n(),_.x("design:type",Object)],MR.prototype,"dismissedRenderer",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],MR.prototype,"isRichGrid",void 0);_.B([_.d("data.layout"),_.x("design:type",Object),_.x("design:paramtypes",[])],MR.prototype,"useSquareAspectRatio",null);_.B([_.d("data","dismissedRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],MR.prototype,"showCard",null);
_.B([_.d("data","dismissedRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],MR.prototype,"showDismissed",null);_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.oV]),_.x("design:returntype")],MR.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.B([_.Om("yt-service-request-sent-button-renderer"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],MR.prototype,"dismissibleItemOnRequestSent",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],MR.prototype,"dataChanged",null);_.B([_.aR({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],MR);
_.A(MR,"ytd-mini-game-card-view-model",function(){if(yRb!==void 0)return yRb;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return yRb=G},{mode:_.Px("kevlar_poly_si_batch_j081")?1:2});var LqW;var GKP;var Vs=function(){return _.bY.apply(this,arguments)||this};
_.K(Vs,_.bY);Vs.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
Vs.prototype.getContinuationUrl=function(G){var e={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(e.itct=this.data.clickTrackingParams);return _.Vi(G,e)};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Vs.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Vs.prototype,"data",void 0);_.B([_.aR({is:"yt-reload-continuation",noInjection:!0})],Vs);var e0W;var raE;var hE=function(){var G=_.m.apply(this,arguments)||this;G.notificationData={};return G};
_.K(hE,_.m);_.V=hE.prototype;_.V.isMenuExpanded=function(G){return G&&G.length<=1?"undefined":"false"};
_.V.dataChanged_=function(){this.selected=void 0;var G=this.computeSelectedIndex_(this.data);G>=0&&(this.selected=G);G=this.data&&this.data.length>1;_.Nv(this.hostElement,"has-items",G);_.z1(this.hostElement).querySelector("#label").tabIndex=G?0:-1};
_.V.onDropdownOpen=function(){var G=_.l4();if(this.parentTrackingParams&&this.data){var e=_.b1(this.parentTrackingParams);this.data.forEach(function(r){G&&e&&r.trackingParams&&(r=_.b1(r.trackingParams),_.QU(G,e,r),_.C_(G,[r]))})}else this.parentTrackingParams||_.FH(new _.Cr("No parent tracking params passed in for yt-dropdown-menu."))};
_.V.hasNotification=function(G){var e;if(G.targetId&&((e=this.notificationData)==null?0:e.targetId)){var r;return G.targetId===((r=this.notificationData)==null?void 0:r.targetId)}};
_.V.computeSelectedIndex_=function(G){if(G)for(var e=0,r=G.length;e<r;e++)if(G[e].selected)return e;return-1};
_.V.computeLabel_=function(G){return this.data&&G!=void 0?this.data[G].title:""};
_.V.computeShowIcon_=function(G,e){return!e&&!!G};
_.V.computeVerticalOffset_=function(G){return G?36:0};
_.V.computeEndpoint_=function(G){return G.endpoint||G.navigationEndpoint};
_.V.onLabelClick_=function(G){this.data&&this.data.length<=1?G.stopPropagation():this.menuExpanded="true"};
_.V.onIronActivate_=function(G){G=G.detail.item;var e=_.z1(this.hostElement).querySelector("#repeat").itemForElement(G);if(e&&e.trackingParams){var r=_.l4(),Z=_.b1(e.trackingParams);r&&_.n_(r,Z)}if(e&&e.serviceEndpoint)_.R("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(e.serviceEndpoint):_.zw(this.hostElement,[e.serviceEndpoint]),_.xy(this.hostElement,"yt-playlist-reloading");else a:{if((e=G.querySelector("yt-supported-renderers"))&&
(e=e.rendererElement)&&e.is=="yt-reload-continuation"){e.trigger();break a}(G=G.querySelector("yt-reload-continuation"))&&G.trigger()}};
_.V.onTap_=function(G){G.preventDefault()};
_.V.onItemTap_=function(G){this.ytEndpointBehavior.onEndpointTap_(G)};
_.V.onLinkFocus_=function(G){try{var e=G.target}catch(Z){}if(e){var r=e.querySelector("tp-yt-paper-item");r&&_.sm(this,"focus",function(){r.focus()})}};
_.V.onMenuClose_=function(){this.menuExpanded="false"};
_.V.isLabelIconActive_=function(G){return G==="true"};
_.V.computeHasSubtitle_=function(G){return!!G};
_.V.computeHrefForItem_=function(G){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(G))};
_.V.updateSelectedFromBinding=function(G){this.selected=G.detail.value};
_.iY.Object.defineProperties(hE.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
hE.prototype.onMenuClose_=hE.prototype.onMenuClose_;hE.prototype.onTap_=hE.prototype.onTap_;hE.prototype.onIronActivate_=hE.prototype.onIronActivate_;hE.prototype.onDropdownOpen=hE.prototype.onDropdownOpen;hE.prototype.dataChanged_=hE.prototype.dataChanged_;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],hE.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.t4.YtEndpointBehavior),_.x("design:type",Object)],hE.prototype,"ytEndpointBehavior",void 0);
_.B([_.n(),_.x("design:type",Array)],hE.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],hE.prototype,"parentTrackingParams",void 0);_.B([_.n(),_.x("design:type",Object)],hE.prototype,"selected",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],hE.prototype,"useLabel",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],hE.prototype,"useComputedAriaLabel",void 0);_.B([_.n(),_.x("design:type",String)],hE.prototype,"icon",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],hE.prototype,"iconLabel",void 0);_.B([_.n(),_.x("design:type",String)],hE.prototype,"ariaLabel",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],hE.prototype,"disabled",void 0);_.B([_.n({computed:"isMenuExpanded(data)"}),_.x("design:type",String)],hE.prototype,"menuExpanded",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],hE.prototype,"closeOnActivate",void 0);
_.B([_.n({reflectToAttribute:!0,value:_.R("web_modern_buttons")}),_.x("design:type",Boolean)],hE.prototype,"modernButtons",void 0);_.B([_.n(),_.x("design:type",Object)],hE.prototype,"notificationData",void 0);_.B([_.d("ariaLabel, selected"),_.n(),_.x("design:type",String),_.x("design:paramtypes",[])],hE.prototype,"computedAriaLabel",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hE.prototype,"dataChanged_",null);
_.B([_.Om("paper-dropdown-open"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],hE.prototype,"onDropdownOpen",null);_.B([_.Om("iron-activate"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],hE.prototype,"onIronActivate_",null);_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],hE.prototype,"onTap_",null);
_.B([_.Om("iron-overlay-closed"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],hE.prototype,"onMenuClose_",null);_.B([_.aR({is:"yt-dropdown-menu",disableElementRegistration:!0})],hE);
_.A(hE,"yt-dropdown-menu",function(){if(raE===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;e0W===void 0&&(e0W=document.createElement("template"));var Z=e0W;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);raE=G}G=raE;return G},{mode:2});var TZ=function(){var G=_.m.apply(this,arguments)||this;G.hasNotification=!1;return G};
_.K(TZ,_.m);TZ.prototype.computeId=function(G){return G};
TZ.prototype.computeHorizontalAlign=function(G){return G?"right":"left"};
TZ.prototype.computeAccessibilityLabel=function(G){var e,r;return((e=G.accessibility)==null?void 0:(r=e.accessibilityData)==null?void 0:r.label)||null};
TZ.prototype.notificationDataChanged=function(){var G;this.hasNotification=!!this.notificationData&&!((G=this.data)==null?0:G.icon)};
TZ.prototype.notificationDataChanged=TZ.prototype.notificationDataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],TZ.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.AL.YtLiveChatTooltipTargetingBehavior),_.x("design:type",Object)],TZ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],TZ.prototype,"data",void 0);_.B([_.n({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.x("design:type",String)],TZ.prototype,"id",void 0);
_.B([_.n({value:!1}),_.x("design:type",Boolean)],TZ.prototype,"isRightAligned",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],TZ.prototype,"disabled",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],TZ.prototype,"closeOnActivate",void 0);_.B([_.n(),_.x("design:type",Object)],TZ.prototype,"notificationData",void 0);_.B([_.n(),_.x("design:type",Object)],TZ.prototype,"hasNotification",void 0);
_.B([_.n({value:!1}),_.x("design:type",Boolean)],TZ.prototype,"useComputedAriaLabel",void 0);_.B([_.Me("notificationData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],TZ.prototype,"notificationDataChanged",null);_.B([_.aR({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],TZ);
_.A(TZ,"yt-sort-filter-sub-menu-renderer",function(){if(GKP===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;LqW===void 0&&(LqW=document.createElement("template"));var Z=LqW;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);GKP=G}G=GKP;return G},{mode:2});var Zcj=_.y(function(G){var e=G.data;var r=_.ev(function(){var M=e().onTap;(M=_.a(M,_.ag))&&_.v_().resolve(_.$1).resolveCommand(M);return!1}),Z=function(){return{sources:[{url:e().thumbnailUrl,
width:120,height:90}]}},O=function(){return e().rating&&e().ratingA11yLabel&&e().reviewsCount&&e().reviewsCountA11yLabel};
return _.v("place-data-view-model",null,_.v(_.S,{cond:function(){return e().placeName&&e().placeCategory},
then:function(){return _.v("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":r},_.v(_.nC,{data:Z,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.v(_.Ds,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return e().onTap}},_.v("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return e().placeName}},function(){return e().placeName})),_.v("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.v(_.S,{cond:O,
then:function(){return _.v("div",{class:_.LC("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.v("span",{class:"score",title:function(){return e().ratingA11yLabel}},function(){return e().rating}),_.v("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.v(_.V$,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.v("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return e().reviewsCountA11yLabel}},function(){return e().reviewsCount}))},
else:function(){return _.v("div",{class:_.LC("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.v("div",{class:_.LC("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.v("span",{class:"category",
title:function(){return e().placeCategory}},function(){return e().placeCategory}))))}}))},"eb");
Zcj.idomCompat=!0;_.J_(Zcj,"place-data-view-model",{props:{data:_.N6}});var OcC=new _.Gz("INLINE_PLAYBACK_HOOK_TOKEN");var M5W=lZ({sharedUi:uuC});_.oH=RV(M5W)(M5W.sharedUi,{animatedThumbnailEnabledSelector:function(G){return G.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(G){return G.inlinePreviewEnabled},
currentPageTypeSelector:function(G){return G.currentPageType},
currentPageSubTypeSelector:function(G){return G.currentPageSubType},
persistentPanelVisibleSelector:function(G){return G.persistentPanelVisible}});var V5n=function(G){this.setActiveSlideIndex=G;this.jobIds=[];this.isSlideshowPlaying=!1},DHP=function(G,e){G.isSlideshowPlaying||(G.isSlideshowPlaying=!0,h0c(G),TbW(G,e,0))},h0c=function(G){_.za(_.A0,function(){G.setActiveSlideIndex(0)},1)},TbW=function(G,e,r){G.jobIds.push(_.za(_.A0,function(){var Z=r<e-1?r+1:0;
G.setActiveSlideIndex(Z);TbW(G,e,Z)},1800))};var EkP=new _.Gz("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN"),icj=new _.Gz("AI_COMPANION_ATTACHMENT_VIEW_MODEL_TOKEN");var bc3=new _.Gz("IMAGE_ON_LOAD_HANDLER_TOKEN");var vkl=_.y(function(G){return _.v("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.v(_.S,{cond:function(){var e;return(e=G.data())==null?void 0:e.thumbnail},
then:function(e){return _.v(_.nC,{data:e,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"fb");_.w3W=_.y(function(G){var e=G.data;var r=G.lockupExperiments;G={};return _.v("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.v("div",{class:_.LC("ytThumbnailOverlayButtonViewModelButton",(G.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var Z;return r&&((Z=r())==null?void 0:Z.useLegacySizedIconButton)},G))},_.v(_.E2,{data:function(){return e().overlayButton}},{buttonViewModel:function(Z){return _.v(_.wF,{data:Z.data,
buttonOverrides:function(){var O;return r&&((O=r())==null?0:O.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"gb");
_.w3W.idomCompat=!0;var $HP=_.y(function(G){return _.v("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.ev(function(e){e.preventDefault();return!1})},_.v(_.E2,{data:function(){return G.data().buttons}},{toggleButtonViewModel:function(e){return _.v("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.v(_.pb,{data:e.data}))}}))},"hb");
$HP.idomCompat=!0;var SxW=_.y(function(G){var e=function(){var r;return((r=_.a(G.data().rendererContext,_.D9))==null?void 0:r.label)||""};
return _.v("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.v(_.S,{cond:function(){return G.data().image},
then:function(){return _.v("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.v(_.nC,{data:function(){return G.data().image},
alt:e}))}}),_.v(_.S,{cond:function(){return G.data().text},
then:function(){return _.v("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return G.data().text})}}))},"ib");var qxn;qxn=_.oH.animatedThumbnailEnabledSelector;_.DA=_.y(function(G){var e=[],r=function(){var g,l;return Yd_((g=G.width)==null?void 0:g.call(G),(l=G.height)==null?void 0:l.call(G))},Z=_.v_().resolve(_.bq(bc3)),O=_.hT("yt-thumbnail-view-model",function(){e.push("elRef.value set");
var g;(g=G.playbackRef)==null||g.call(G,{thumbnailElRef:O,thumbnail:G.data().image,thumbnailOverlays:G.data().overlays,thumbnailSize:r()})});
_.yY(function(){e.push("onInit");_.yD(function(){e.push("onCleanup")})});
var M=_.Eb(qxn),T=function(){var g,l;return(l=(g=G.aspectRatio)==null?void 0:g.call(G))!=null?l:0},E=function(){return(G.data().image?_.Vpy(G.data().image):T())<=1&&T()===0},b=function(){return E()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},w=function(){O.value||_.FH(new _.Cr("Thumbnail elRef.value is null",e.join("\n")));
Z&&O.value&&Z(O.value)},q=function(){var g,l;
return((g=G.hovered)==null?void 0:g.call(G))&&r()!=="large"&&((l=G.data().overlays)==null?void 0:l.some(function(X){return _.a(X,tTl)}))},t={};
return _.v("yt-thumbnail-view-model",{class:_.LC("ytThumbnailViewModelHost",G.className,function(){return XT4(T())},function(){var g,l;
a:{var X=r(),H=(g=G.disableRounding)==null?void 0:g.call(G);g=(l=G.isClip)==null?void 0:l.call(G);if(!H&&!g)switch(X){case "large":l="ytThumbnailViewModelLarge";break a;case "small":l="ytThumbnailViewModelSmall";break a;default:l="ytThumbnailViewModelMedium";break a}l=void 0}return l},(t.ytThumbnailViewModelCinematic=E,t)),
style:_.Mk({"background-color":function(){var g,l=E()?(g=G.data().backgroundColor)==null?void 0:g.lightTheme:void 0;return l?aB(l,"1"):void 0}}),
el:O},_.v(_.S,{cond:E,then:function(){return _.v("div",{class:"ytThumbnailViewModelBlurredImage"},_.v(_.nC,{data:function(){return G.data().image},
alt:"",contentMode:b,targetWidth:G.width,onload:w}))}}),_.v("div",{class:"ytThumbnailViewModelImage"},_.v(_.nC,{data:function(){return G.data().image},
alt:"",contentMode:b,targetWidth:G.width,onload:w}),null),_.v(_.E2,{data:function(){return q()?void 0:G.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:l4v,thumbnailOverlayBadgeViewModel:function(g){return _.v(_.ROb,{data:g.data,thumbnailSize:r,isClip:G.isClip})},
thumbnailBottomOverlayViewModel:function(g){return _.v(SFb,{data:g.data,thumbnailSize:r,isClip:G.isClip})},
thumbnailOverlayFullViewModel:SxW,thumbnailOverlayButtonViewModel:function(g){return _.v(_.w3W,{data:g.data,lockupExperiments:G.lockupExperiments})},
channelDisclosureViewModel:function(g){g=g.data;var l;return _.v("div",null,(l=_.v_().resolve(_.bq(EkP)))==null?void 0:l({data:g}))}}),_.v(_.E2,{data:function(){var g;
return((g=G.hovered)==null?0:g.call(G))?G.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(g){return _.v(Ym,{data:g.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:$HP}),_.v(_.E2,{data:function(){var g;return((g=G.hovered)==null?0:g.call(G))&&M()?G.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:vkl}),_.v(_.S,{cond:G.isClip,then:function(){return _.v("div",{class:"ytPinkingNsHost"},_.v("svg",{class:"ytPinkingNsPinkingLeft"},_.v("defs",null,_.v("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.v("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.v("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.v("svg",{class:"ytPinkingNsPinkingRight"},_.v("defs",null,_.v("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.v("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.v("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"jb");
_.DA.idomCompat={callbacks:{playbackRef:!0}};var t5W=_.y(function(G){var e=_.h(_.XQ(-1,void 0,"RW2Ole")),r=e.next().value,Z=e.next().value;_.yY(function(){var O=new V5n(Z);DHP(O,G.data().thumbnails.length);_.yD(function(){if(O.isSlideshowPlaying){O.isSlideshowPlaying=!1;for(var M=O.jobIds,T=0,E=M.length;T<E;T++)_.A0.cancelJob(M[T]);O.jobIds.length=0}})});
return _.v("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.v(_.E2,{data:function(){return G.data().thumbnails}},{thumbnailViewModel:function(O,M){return _.v("div",{class:function(){var T=!G.data().primaryThumbnail,E=M(),b=r(),w=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
T&&E===0&&w.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");E<=b&&w.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return w.join(" ")}},_.v(_.DA,{data:O.data,
disableRounding:G.disableRounding}))}}))},"kb");
t5W.idomCompat=!0;var KP_=new _.Gz("DWELL_DETECTOR_REGISTRY_TOKEN");var l3w=_.y(function(G){var e=fN4(G.triggeringElement),r=function(){return!!G.data().primaryThumbnail},Z=function(){var M,T=(M=G.data())==null?void 0:M.maxHeight,E;
M=(E=G.maxHeight)==null?void 0:E.call(G);return T!=null&&M!=null?Math.min(T,M):M!=null?M:T},O=function(){var M=Z();
if(M){var T;if(r()&&(T=G.includeStackHeight)!=null&&T.call(G)){var E;T=((E=G.doubleStack)==null?0:E.call(G))?8:4}else T=0;M=M-T-1;if(!(M<0)){E=Math;T=E.ceil;var b,w;var q=cgN((w=(b=G.aspectRatio)==null?void 0:b.call(G))!=null?w:0);return T.call(E,M*q)}}};
return _.v("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.Mk({height:function(){return Z()?Z()+"px":void 0},
width:function(){return O()?O()+"px":void 0}})},_.v(gkE,{stackEnabled:r,
thumbnailSize:function(){var M,T;return Yd_((M=G.width)==null?void 0:M.call(G),(T=G.height)==null?void 0:T.call(G))},
doubleStack:G.doubleStack,stackColor:function(){return G.data().stackColor},
includeStackHeight:G.includeStackHeight},_.v(_.E2,{data:function(){return G.data().primaryThumbnail}},{thumbnailViewModel:function(M){var T={};
return _.v(_.DA,{data:M.data,width:G.width,height:G.height,aspectRatio:G.aspectRatio,disableRounding:G.disableRounding,className:_.LC((T.ytCollectionThumbnailViewModelHostHasStacks=r,T)),hovered:G.hovered,playbackRef:G.playbackRef})}}),_.v(_.S,{cond:function(){var M;
return e()&&((M=G.data().thumbnails)==null?void 0:M.length)},
then:function(){return _.v("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.v(t5W,{data:G.data,disableRounding:function(){return!r()}}))}})))},"lb");
l3w.idomCompat={callbacks:{playbackRef:!0}};
var gkE=_.y(function(G){var e=G.children;var r=G.stackEnabled;var Z=G.thumbnailSize;var O=G.doubleStack;var M=G.stackColor;var T=G.includeStackHeight;var E,b=(E=_.v_().resolve(_.bq(_.Ig)))==null?void 0:E();return _.v(_.S,{cond:r,then:function(){return _.v(BOj,{data:function(){var w,q;return{experimentEnabled:!0,thumbnailSize:Z(),doubleStack:O==null?void 0:O(),color:b?M==null?void 0:(w=M())==null?void 0:w.darkTheme:M==null?void 0:(q=M())==null?void 0:q.lightTheme,enableResponsiveMode:!1,includeStackHeight:T==
null?void 0:T()}}},e)},
else:function(){return e}})},"mb");var R0W=new _.Gz("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var iK;_.Ep={calledOnce:!0,state:"visible"};iK={calledOnce:!0,state:"hidden"};_.bK=_.y(function(G){var e=G.data;var r=G.customCommandResolver;var Z=G.className;var O=G.delayedClassName;var M=G.animationEntityKey;var T=G.isCompactWidth;var E=G.isContentWidth;G=_.h(_.XQ(!1,void 0,"pC3tUb"));var b=G.next().value,w=G.next().value,q=_.mr(M,""),t=_.hI(Rli,q),g=function(){var ti,Ry;return(Ry=(ti=t())==null?void 0:ti.value)!=null?Ry:!1},l=function(){_.nR(_.bt("booleanEntity",q(),{key:q(),
value:!0}));J=void 0};
M=_.h(_.Ob(g));var X=M.next().value,H=M.next().value;M=_.h(_.Ob(g));var I=M.next().value,C=M.next().value;M=_.h(_.Ob(function(){var ti;return g()?(ti=e().styleTransitionConfig)==null?void 0:ti.destinationStyle:void 0}));
var u=M.next().value,P=M.next().value,F=function(){var ti=Object.assign({},e(),u()&&{style:u()});var Ry,nf,k4=ti.label,SE=(Ry=ti.interaction)==null?void 0:(nf=Ry.accessibility)==null?void 0:nf.label;Ry=ti.iconImage?ti.label&&ti.label.content?ti.iconLeading?"leading":"trailing":"icon-only":void 0;ti={formattedButtonText:k4,accessibilityLabel:SE,style:oDS(ti.style),type:sOa(ti.style),state:"active",size:dLi(ti.size),iconPosition:Ry,disabled:!1,aTagConfig:HZN(ti,r)};_.R("enable_desktop_vdcbg_components")&&
(ti.focused=b());return ti},J;
M=_.vJ({visibilityCallback:function(ti){var Ry,nf=(Ry=e().interaction)==null?void 0:Ry.onFirstVisible;ti&&nf&&_.HQ(nf)},
showOption:_.Ep});var U=function(){return UFN(F(),!!e().iconImage)};
G={};var e$={};Z=_.LC(function(){return"ytwAdButtonViewModelHost"},function(){return e().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var ti=!!e().delayedAppearanceConfig,Ry=X();
return ti?Ry?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var ti=!!e().delayedAppearanceConfig,Ry=I();
return ti?Ry?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!e().delayedAppearanceConfig||X()?O==null?void 0:O():""},(G.ytwAdButtonViewModelHostCompactWidth=function(){return T==null?void 0:T()},G),(e$.ytwAdButtonViewModelHostContentWidth=function(){return E==null?void 0:E()},e$),Z!=null?Z:"");
var Dq=function(){var ti,Ry=(ti=e().delayedAppearanceConfig)==null?void 0:ti.delayedInvisibleSeconds;Ry&&(J=_.w8(_.A0,function(){H(!0);bF()},Ry*1E3))},bF=function(){var ti,Ry=(ti=e().delayedAppearanceConfig)==null?void 0:ti.delayedVisibleSeconds;
Ry&&(J=_.w8(_.A0,function(){C(!0);Kf()},Ry*1E3))},Kf=function(){var ti,Ry=(ti=e().styleTransitionConfig)==null?void 0:ti.styleTransitionSeconds,nf,k4=(nf=e().styleTransitionConfig)==null?void 0:nf.destinationStyle;
Ry&&k4?J=_.w8(_.A0,function(){P(k4);l()},Ry*1E3):l()};
_.yY(function(){Dq()});
_.yD(function(){J&&_.A0.cancelJob(J)});
return _.v("ad-button-view-model",{"on:focusin":_.ev(_.R("enable_desktop_vdcbg_components")?function(){var ti=_.v_().resolve(_.bq(_.T6));ti&&w(ti.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.ev(_.R("enable_desktop_vdcbg_components")?function(){w(!1);return!1}:void 0),
class:Z,el:_.cQ(M),style:_.Mk({"transition-duration":"0.3s"})},_.v(_.S,{cond:F,then:function(){return _.v(_.vk,{data:F,icon:function(){return _.v(_.S,{cond:function(){return e().iconImage},
then:function(ti){return _.v(_.nC,{data:ti,alt:"",targetWidth:U,targetHeight:U,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"ob");var jMn=_.y(function(G){var e=G.data;G=function(){return e().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var r=_.vJ({visibilityCallback:function(M){var T,E=(T=e().interaction)==null?void 0:T.onFirstVisible;M&&E&&_.HQ(E)},
showOption:_.Ep}),Z={},O={};return _.v("ad-button-group-view-model",{class:_.LC("ytwAdButtonGroupViewModelHost",(Z.ytwAdButtonGroupViewModelHostCompactWidth=G,Z)),el:_.cQ(r)},_.v("div",{class:_.LC("ytwAdButtonGroupViewModelHostSecondaryButton",(O.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=G,O))},_.v(_.E2,{data:function(){return e().secondaryAdButton}},{adButtonViewModel:function(M){return _.v(_.bK,{data:M.data})}})),_.v("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.v(_.E2,
{data:function(){return e().primaryAdButton}},{adButtonViewModel:function(M){return _.v(_.bK,{data:M.data})}})))},"pb");var a3l=_.y(function(G){var e=function(){var r;return((r=G.data())==null?void 0:r.answers)||[]};
return _.v("yt-survey-icons",{class:"ytSurveyIconsHost"},_.v("div",{class:"ytSurveyIconsHeader"},_.v("div",{class:"ytSurveyIconsTitle"},function(){var r;return(r=G.data())==null?void 0:r.text}),_.v("div",null,_.v(_.vk,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var r;(r=G.onDismiss)==null||r.call(G)}}},
iconName:"DISMISSAL"}))),_.v("div",null,_.v("div",{class:"ytSurveyIconsAnswers"},_.v(_.u6,{each:function(){return e()},
keyBy:"INDEX"},function(r,Z){return _.v("div",null,_.v(_.vk,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var O;(O=G.onSelect)==null||O.call(G,r(),Z)}}},
icon:function(){return _.v(_.V$,{icon:function(){var O,M;return(O=r())==null?void 0:(M=O.icon)==null?void 0:M.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.v("div",{class:"ytSurveyIconsAnswersText"},_.v("div",null,function(){return e().length?e()[0].text:""}),_.v("div",null,function(){return e().length?e()[e().length-1].text:""}))))},"qb");var X33=_.y(function(G){var e=_.cQ(_.jV(function(){var b;return(b=G.data())==null?void 0:b.rendererContext},void 0,void 0,void 0,!0)),r=_.h(_.XQ(!1,void 0,"GW0yjf")),Z=r.next().value,O=r.next().value,M=_.hI(aJ_,function(){var b;
return(b=G.data().keys)==null?void 0:b.surveyEntityKey}),T=_.hI(XB_,function(){var b;
return(b=G.data().keys)==null?void 0:b.surveyStateEntityKey});
_.Vk("ytd-slimline-survey-show-action",function(){O(!1)});
var E=function(){var b,w;var q=(b=T())==null?void 0:(w=b.questionStack)==null?void 0:w[0];if(q!==void 0){var t,g;return(t=M())==null?void 0:(g=t.questions)==null?void 0:g[q]}};
r={};return _.v("yt-slimline-survey-view-model",{el:e,class:_.LC("ytSlimlineSurveyViewModelHost",(r.ytSlimlineSurveyViewModelCollapsed=function(){return Z()},r))},_.v("div",{class:"ytSlimlineSurveyViewModelContainer"},_.v(_.S,{cond:function(){var b;
return((b=E())==null?void 0:b.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.v(a3l,{data:function(){return E()},
onSelect:function(b,w){var q,t;return _.D(function(g){O(!0);if(t=(q=G.data())==null?void 0:q.onSelectRating)_.HQ(t),_.nR(UYn(w));_.HL(g)})},
onDismiss:function(){O(!0);var b;var w=(b=M())==null?void 0:b.dismissalFeedbackToken;b=w?{feedbackEndpoint:{feedbackToken:w}}:void 0;b&&_.KC(b,{form:{element:e.value}})}})}})))},"rb");var KzW=_.y(function(G){return _.v("yt-table-view-model",{class:_.LC("ytTableViewModelHost",G.className)},_.v(_.u6,{each:function(){return G.data().rows||[]}},function(e){var r={};
return _.v("div",{class:_.LC("ytTableViewModelRow",(r.ytTableViewModelRowBottomBorder=function(){return G.data().showSeparators},r))},_.v(_.u6,{each:function(){return(e==null?void 0:e.cells)||[]}},function(Z,O){var M,T={};
return _.v("span",{class:_.LC((T.ytTableViewModelRowLabel=function(){return O()===0&&G.data().showHorizontalHeaders},T.ytTableViewModelCell=function(){return!G.data().showHorizontalHeaders||O()>0},T))},(M=Z.text)==null?void 0:M.content)}))}))},"sb");var f3l=_.y(function(G){return _.v("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.v(_.E2,{data:function(){var e;return(e=G.data())==null?void 0:e.attachments}},{flexibleActionsViewModel:function(e){return _.v("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.v(_.FL,{data:e.data,
layout:function(){var r;return((r=G.lockupStyle())==null?void 0:r.arrangement)===1?0:1},
justifyContentOverride:function(){var r;return((r=G.lockupStyle())==null?void 0:r.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(e){return _.v("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.v(X33,{data:e.data}))},
expandableMetadataViewModel:function(e){e=e.data;var r;return _.v("div",{class:_.LC("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(r=_.v_().resolve(_.bq(R0W)))==null?void 0:r({data:e}))},
adButtonGroupViewModel:function(e){return _.v("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.v(jMn,{data:e.data}))},
adButtonViewModel:function(e){return _.v("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.v(_.bK,{data:e.data,isCompactWidth:!0}))},
tableViewModel:function(e){return _.v("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.v(KzW,{data:e.data}))},
aiCompanionAttachmentViewModel:function(e){e=e.data;var r;return _.v("div",{class:"ytLockupAttachmentsViewModelAttachment"},(r=_.v_().resolve(_.bq(icj)))==null?void 0:r({data:e}))}}))},"tb");var nDp=_.qt("rich_grid_min_item_width",310),CT_=_.qt("rich_grid_max_item_width",500);var kKy=_.y(function(G){var e=G.data;return _.v("br-nz-badge-shape",{class:_.LC(function(){return BOs(e().brNzRatingBadgeType)}),
role:function(){return e().accessibilityText?"img":void 0},
"aria-label":function(){return e().accessibilityText}},function(){var r;
return(r=e())==null?void 0:r.text})},"ub");_.vH=_.y(function(G){var e=function(){var r=G.data(),Z,O,M;if(r){var T=!((Z=G.workaroundShortsIsThumbnailBadge)==null||!Z.call(G));Z=(O=G.modern)==null?void 0:O.call(G);O=(M=G.numBadgesInRow)==null?void 0:M.call(G);var E;a:switch(r.badgeStyle){case "BADGE_OVERLAY":M=!0;break a;default:M=!1}r={type:T?17:xLf(r.badgeStyle),brNzRatingBadgeType:PTF(r.badgeStyle),text:r.badgeText,icon:r.iconName,isOverlay:M,modern:Z||_.R("web_modern_badge_view_model"),accessibilityText:r.accessibilityLabel||((E=_.a(r.rendererContext,
_.D9))==null?void 0:E.label),numBadgesInRow:O}}else r=void 0;return r};
return _.v("yt-badge-view-model",{class:_.LC("ytBadgeViewModelHost",G.class)},_.v(_.nz,null,_.v(_.pz,{when:function(){var r;return!((r=e())==null||!r.brNzRatingBadgeType)}},function(){return _.v(kKy,{data:function(){return e()}})}),_.v(_.pz,{when:function(){return!!e()&&!e().brNzRatingBadgeType}},function(){return _.v(_.PZ,{data:function(){return e()}})})))},"vb");
_.vH.idomCompat=!0;var zbs,UL4;zbs=16/9;UL4=2/3;_.wZ=_.y(function(G){var e=G.data;var r=G.className;var Z=G.imageSizeConfig;var O=G.notifyOnLoaded;var M=function(){return e().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},T=function(){var g;
return _.RH((g=e())==null?void 0:g.rendererContext)};
G={};G=(G.ytContentPreviewImageViewModelHost=!0,G.ytContentPreviewImageViewModelCircleImage=function(){return M()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},G.ytContentPreviewImageViewModelTappable=function(){return T()},G);
var E=function(){var g,l;return(l=(g=_.a(e().rendererContext,_.D9))==null?void 0:g.label)!=null?l:""},b=function(){return NO4(e())},w=function(){var g=WPy(M(),e().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",Z==null?void 0:Z(),LPA(b()),e().layoutWidth,e().layoutHeight),l=Object.assign({},g);
g.width&&(l.width=Math.round(g.width));g.height&&(l.height=Math.round(g.height));g.maxWidth&&(l.maxWidth=Math.round(g.maxWidth));g.maxHeight&&(l.maxHeight=Math.round(g.maxHeight));return l},q=_.dw(function(){return w().height},void 0,"CxFlJb"),t=_.dw(function(){return w().width},void 0,"lb8Jhd");
return _.v("yt-content-preview-image-view-model",{el:_.cQ(_.jV(function(){var g;return(g=e())==null?void 0:g.rendererContext})),
role:function(){return T()?"link":void 0},
tabindex:function(){return T()?0:void 0},
class:_.LC(r,G,function(){var g=M();var l=Z==null?void 0:Z();g=g==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||g==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||g==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||g==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(l==null?void 0:l.size)!=null&&l.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(l==null?void 0:l.size)!=null&&l.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return g}),
style:function(){var g=w(),l=[];g.width&&l.push("width: "+g.width+"px");g.height&&l.push("height: "+g.height+"px");g.maxWidth&&l.push("max-width: "+g.maxWidth+"px");g.maxHeight&&l.push("max-height: "+g.maxHeight+"px");g.fullWidth&&l.push("width: 100%");return l.join(";")}},_.v(_.S,{cond:b,
then:function(g){return _.v(_.nC,{data:g,alt:E,"data-disabled$":function(){return!E()},
notifyOnLoaded:O,targetWidth:t,targetHeight:q,preserveWidth:function(){return!!t()},
preserveHeight:function(){return!!q()}})}}),_.v(_.E2,{data:function(){var g;
return(g=e())==null?void 0:g.overlays}},{thumbnailHoverOverlayViewModel:Ym,
thumbnailOverlayButtonViewModel:_.w3W}))},"wb");
_.wZ.idomCompat=!0;var $r=_.y(function(G){var e=G.data;var r=G.className;var Z=G.useSmallLayout;var O=G.useMediumText;G=G.useHeavyText;var M={};return _.v("yt-attribution-view-model",{el:_.cQ(_.jV(function(){var T;return(T=e())==null?void 0:T.rendererContext})),
class:_.LC(r,(M.ytAttributionViewModelHost=!0,M.ytAttributionViewModelMediumText=O,M.ytAttributionViewModelHeavyText=G,M))},_.v(_.S,{cond:function(){return _.RH(e().rendererContext)},
then:function(){return _.v("button",{class:"ytAttributionViewModelTappable"},_.v(HcP,{data:e,useSmallLayout:Z}))},
else:function(){return _.v(HcP,{data:e,useSmallLayout:Z})}}))},"xb"),HcP=_.y(function(G){var e=G.data;
var r=G.useSmallLayout;var Z=function(){return{size:(r==null?0:r())?16:24}};
return _.v(_.$Z,null,_.v(_.E2,{data:function(){return e().contentPreviewImage}},{contentPreviewImageViewModel:function(O){return _.v(_.wZ,{data:O.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:Z})}}),_.v(_.E2,{data:function(){return e().badge}},{badgeViewModel:function(O){return _.v(_.vH,{data:O.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.v(_.S,{cond:function(){return e().text},
then:function(){return _.v(_.Wh,{text:function(){return e().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.v(_.S,{cond:function(){return e().suffix},
then:function(){return _.v(_.Wh,{text:function(){return e().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"yb");
$r.idomCompat=!0;var dHv,okw,sMw,QME,I3j;dHv=_.y(function(G){var e=G.delimiter;var r=G.max;var Z=G.index;var O=G.isStandalone;return _.v(_.S,{cond:function(){return r()-1>Z()},
then:function(){var M={};return _.v("span",{class:_.LC("yt-content-metadata-view-model__delimiter",(M["yt-content-metadata-view-model__delimiter--standalone"]=O,M)),"aria-hidden":!0},e)}})},"zb");
okw=_.y(function(G){var e=G.metadataPart;var r=G.maxLines;return _.v(_.Wh,{text:function(){return e().text},
linkInheritColor:!0,className:function(){return GIy(r())},
userInput:!0})},"Ab");
sMw=_.y(function(G){var e=G.metadataPart;var r=G.maxLines;return _.v(_.S,{cond:function(){return e().tooltip},
then:function(Z){return _.v("span",{title:Z,role:"tooltip"},_.v(okw,{metadataPart:e,maxLines:r}))},
else:function(){return _.v(okw,{metadataPart:e,maxLines:r})}})},"Bb");
QME=_.y(function(G){var e=G.metadataPart;var r=G.isOverlay;var Z=G.useMediumText;var O=G.hideAvatar;var M=function(){return e().maxLines!==void 0?e().maxLines:1};
return _.v(_.$Z,null,_.v(_.E2,{data:function(){return e().avatarStack}},{avatarStackViewModel:function(T){return _.v(_.FM,{data:T.data,
isOverlay:r,useMediumText:Z,hideAvatar:O})},
badgeViewModel:_.vH}),_.v(_.S,{cond:function(){return e().leadingIcon},
then:function(T){return _.v(_.V$,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return T().name},
size:function(){return T().width}})}}),_.v(_.S,{cond:function(){return e().text},
then:function(){return _.v(sMw,{metadataPart:e,maxLines:M})}}),_.v(_.S,{cond:function(){return e().icon},
then:function(T){return _.v(_.V$,{className:"yt-content-metadata-view-model__icon",icon:function(){return T().name},
size:function(){return T().width}})}}))},"Cb");
I3j=_.y(function(G){var e=G.metadataRow;var r=G.isInline;var Z=G.delimiter;var O=G.isOverlay;var M=G.useMediumText;var T=G.extensions;var E=function(){var w,q=T==null?void 0:(w=T())==null?void 0:w.lockupMetadata;w=e();var t,g;return!!((q==null?0:(t=q.byline)==null?0:t.hideAvatar)&&((g=_.a(w,Emy))==null?void 0:g.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},b=function(){return e().metadataParts||[]};
G={};return _.v("div",{class:_.LC("yt-content-metadata-view-model__metadata-row",(G["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=r,G["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var w,q=T==null?void 0:(w=T())==null?void 0:w.lockupMetadata;w=e();var t,g;return!!((q==null?0:(t=q.byline)==null?0:t.addPadding)&&((g=_.a(w,Emy))==null?void 0:g.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},G["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var w;
return!!(T==null?0:(w=T())==null?0:w.lockupMetadata)&&e().badges&&!e().metadataParts},G))},_.v(_.E2,{data:function(){return e().badges}},{badgeViewModel:function(w){return _.v("div",{class:"yt-content-metadata-view-model__badge"},_.v(_.vH,{data:w.data,
numBadgesInRow:function(){var q,t;return((q=e())==null?void 0:(t=q.badges)==null?void 0:t.length)||0}}))}}),_.v(_.u6,{each:b},function(w,q){return _.v(_.$Z,null,_.v(QME,{metadataPart:w,
isOverlay:O,useMediumText:M,hideAvatar:E}),_.v(dHv,{delimiter:Z,max:function(){return b().length},
index:q,isStandalone:!1}))}),_.v(_.S,{cond:function(){return e().isSpacerRow&&!r()},
then:function(){return _.v("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Db");
_.SI=_.y(function(G){G=_.cx(G,{layout:0,isOverlay:!1});var e=G.data,r=G.layout,Z=G.isOverlay,O=G.useMediumText,M=G.extensions,T=function(){return r()===0},E=function(){var w;
return((w=e().metadataRows)==null?void 0:w.filter(function(q){var t,g=M==null?void 0:(t=M())==null?void 0:t.lockupMetadata,l,X;t=!!((g==null?0:(l=g.description)==null?0:l.hideDescription)&&((X=_.a(q,Emy))==null?void 0:X.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var H,I;return!((g==null?0:(H=g.spacer)==null?0:H.hideSpacer)&&((I=_.a(q,Emy))==null?void 0:I.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||t)}))||[]},b={};
return _.v("yt-content-metadata-view-model",{class:_.LC(G.className,"yt-content-metadata-view-model",(b["yt-content-metadata-view-model--inline"]=T,b["yt-content-metadata-view-model--tappable"]=function(){return _.RH(e().rendererContext)},b["yt-content-metadata-view-model--medium-text"]=O,b)),
el:_.cQ(_.jV(function(){return e().rendererContext}))},_.v(_.u6,{each:E},function(w,q){return _.v(_.$Z,null,_.v(I3j,{metadataRow:w,
isInline:T,delimiter:function(){return e().delimiter},
isOverlay:Z,useMediumText:O,extensions:M}),_.v(_.S,{cond:function(){return T()&&!w.isSpacerRow},
then:function(){return _.v(dHv,{delimiter:function(){return e().delimiter},
max:function(){return E().length},
index:q,isStandalone:!0})}}))}))},"Eb");
_.SI.idomCompat=!0;var p3E=_.y(function(G){var e=_.v_().resolve(_.bq(_.Ig)),r={};return _.v("yt-lockup-metadata-view-model",{class:_.LC("yt-lockup-metadata-view-model",function(){a:{var Z=G.lockupStyle();if(Z==null?0:Z.isOverlay)Z="yt-lockup-metadata-view-model--overlay";else switch(Z==null?void 0:Z.arrangement){case 1:Z="yt-lockup-metadata-view-model--horizontal";break a;default:Z="yt-lockup-metadata-view-model--vertical"}}return Z},function(){a:{var Z=G.lockupStyle();
switch(Z==null?void 0:Z.titleMaxLines){case 1:Z="yt-lockup-metadata-view-model--title-max-lines-1";break a}Z=void 0}return Z},function(){a:{var Z=G.lockupStyle();
if(Z==null?0:Z.isTiny)Z="yt-lockup-metadata-view-model--tiny";else switch(Z==null?void 0:Z.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":Z="yt-lockup-metadata-view-model--compact";break a;default:Z="yt-lockup-metadata-view-model--standard"}}return Z},(r["yt-lockup-metadata-view-model--overlay"]=function(){var Z;
return(Z=G.lockupStyle())==null?void 0:Z.isOverlay},r["yt-lockup-metadata-view-model--card"]=function(){var Z;
return(Z=G.lockupStyle())==null?void 0:Z.isCard},r["yt-lockup-metadata-view-model--centered"]=function(){var Z;
return(Z=G.lockupStyle())==null?void 0:Z.isCentered},r["yt-lockup-metadata-view-model--typography-bump"]=function(){var Z;
return(Z=G.lockupStyle())==null?void 0:Z.typographyBump},r["yt-lockup-metadata-view-model--legacy-typography"]=function(){var Z;
return(Z=G.lockupStyle())==null?void 0:Z.useLegacyTypography},r["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var Z;
return(Z=G.lockupStyle())==null?void 0:Z.useRichGridLegacyTypography},r))},_.v(_.E2,{data:function(){return G.data().image}},{avatarStackViewModel:function(Z){return _.v("div",{class:"yt-lockup-metadata-view-model__avatar"},_.v(_.FM,{data:Z.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(Z){return _.v("div",{class:"yt-lockup-metadata-view-model__avatar"},_.v(_.yy,{data:Z.data}))},
decoratedAvatarViewModel:function(Z){return _.v("div",{class:"yt-lockup-metadata-view-model__avatar"},_.v(_.Aq,{data:Z.data}))}}),_.v("div",{class:"yt-lockup-metadata-view-model__text-container"},_.v("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var Z;return(Z=G.data().title)==null?void 0:Z.content}},_.v(_.S,{cond:function(){return G.data().title},
then:function(Z){return _.v(_.Ds,{command:G.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.Mk({color:function(){var O;a:{var M=G.lockupStyle();var T=(O=G.hovered)==null?void 0:O.call(G);O=!(e==null||!e());var E;if((M==null?0:(E=M.onFocusEffect)==null?0:E.textPrimaryColor)&&T&&(M=O?M.onFocusEffect.textPrimaryColor.darkTheme:M.onFocusEffect.textPrimaryColor.lightTheme)){M=Xq(M);break a}M=void 0}return M}}),
ariaLabel:G.lockupAccessibilityLabel},_.v(_.Wh,{text:Z,userInput:!0}))}})),_.v("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.Mk({color:function(){var Z;a:{var O=G.lockupStyle();var M=(Z=G.hovered)==null?void 0:Z.call(G);Z=!(e==null||!e());var T;if((O==null?0:(T=O.onFocusEffect)==null?0:T.textSecondaryColor)&&M&&(O=Z?O.onFocusEffect.textSecondaryColor.darkTheme:O.onFocusEffect.textSecondaryColor.lightTheme)){O=Xq(O);break a}O=void 0}return O}})},_.v(_.E2,{data:function(){return G.data().metadata}},{contentMetadataViewModel:function(Z){return _.v(_.SI,{data:Z.data,
layout:function(){var O,M;return(M=(O=G.layout)==null?void 0:O.call(G))!=null?M:1},
useMediumText:function(){var O,M;return((O=G.lockupStyle())==null?void 0:O.typographyBump)||((M=G.lockupStyle())==null?void 0:M.useRichGridLegacyTypography)},
extensions:function(){var O,M,T,E;return{lockupMetadata:{byline:{hideAvatar:((O=G.lockupStyle())==null?void 0:O.arrangement)===0,addPadding:((M=G.lockupStyle())==null?void 0:M.arrangement)===1},description:{hideDescription:!((T=G.lockupStyle())==null||!T.compactMetadata)},spacer:{hideSpacer:!((E=G.lockupStyle())==null||!E.compactMetadata)}}}}})}})),_.v(_.E2,{data:function(){return G.data().attribution}},{attributionViewModel:function(Z){return _.v("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.v($r,{data:Z.data,
useSmallLayout:!0}))}})),_.v("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.v(_.E2,{data:function(){return G.data().menuButton}},{buttonViewModel:function(Z){return _.v(_.wF,{data:Z.data,
buttonOverrides:function(){var O;return((O=G.lockupStyle())==null?0:O.isOverlay)?{style:"overlay"}:void 0}})}})))},"Fb");
p3E.idomCompat=!0;var C5j=_.y(function(G){var e=_.hT("notification-multi-action-renderer");_.YZ(function(){requestAnimationFrame(function(){_.Mh(e.value)})});
var r={},Z={},O={};return _.v("notification-multi-action-renderer",{class:_.LC("ytNotificationMultiActionRendererHost",(r.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var M;return(M=G.useLegacyShelfStyle)==null?void 0:M.call(G)},r)),
el:e},_.v("span",{"aria-live":"polite",class:_.LC("ytNotificationMultiActionRendererTextContainer",(Z.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var M;return(M=G.useLegacyShelfStyle)==null?void 0:M.call(G)},Z))},_.v(_.Wh,{text:function(){return G.data().responseText}})),_.v("div",{class:_.LC("ytNotificationMultiActionRendererButtonContainer",(O.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var M;
return(M=G.useLegacyShelfStyle)==null?void 0:M.call(G)},O))},_.v(_.E2,{data:function(){var M;
return(M=G.data().buttons)==null?void 0:M.map(function(T){if(T=T.buttonRenderer){var E,b=Object,w=b.assign,q=(E=T.icon)==null?void 0:E.iconType;E=(E=T.command||T.serviceEndpoint||T.navigationEndpoint)?{innertubeCommand:E}:void 0;T={buttonViewModel:w.call(b,{},{iconName:q,onTap:E,trackingParams:T.trackingParams,titleFormatted:T.text?_.l1(T.text):void 0},rRi(T))}}else T=void 0;return T}).filter(function(T){return!!T})}},{buttonViewModel:function(M,T){return _.v("div",null,_.v(_.wF,{data:M.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var E;return((E=G.useModernStyles)==null?0:E.call(G))?{type:T()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Hb");var uvE=_.y(function(G){var e=_.hT("notification-text-renderer");_.YZ(function(){requestAnimationFrame(function(){_.Mh(e.value)})});
return _.v("notification-text-renderer",{el:e,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.v(_.Wh,{text:function(){return G.data().successResponseText}}))},"Jb");_.qR=_.y(function(G){var e=_.hI(iA_,function(){var Z;return Zga((Z=G.contentId)==null?void 0:Z.call(G))}),r=function(){var Z;
return _.a((Z=e())==null?void 0:Z.command,_.kA)};
return _.v(_.S,{cond:function(){var Z;if(!(Z=r())){var O;Z=_.a((O=e())==null?void 0:O.command,jsc)}return Z},
then:function(){return _.v(_.S,{cond:r,then:function(){var Z={};return _.v("div",{class:_.LC("ytDismissibleItemReplacedContent",function(){var O;return Og4((O=G.aspectRatio)==null?void 0:O.call(G))})},_.v("div",{class:_.LC((Z.ytDismissibleItemAspectRatioContainer=function(){var O;
return((O=G.aspectRatio)==null?void 0:O.call(G))!==void 0},Z))},_.v(_.E2,{data:function(){var O;
return(O=r())==null?void 0:O.item}},{notificationMultiActionRenderer:function(O){return _.v(C5j,{data:O.data,
useModernStyles:G.useModernStyle,useLegacyShelfStyle:G.useLegacyShelfStyle})},
notificationTextRenderer:uvE})))}})},
else:G.children})},"Kb");_.nkj=_.y(function(G){var e=G.data;var r=G.customCommandResolver;G=_.cQ(_.vJ({visibilityCallback:function(M){var T,E=(T=e().interaction)==null?void 0:T.onFirstVisible;M&&E&&_.HQ(E)},
showOption:_.Ep}));var Z=function(){var M;return((M=e().interaction)==null?0:M.onTap)?function(T){var E;kYp(T,(E=e().interaction)==null?void 0:E.onTap,r)}:void 0},O=function(){var M,T=e(),E=Z(),b=(M=_.a(e().rendererContext,_.D9))==null?void 0:M.label;
a:switch(T.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":M=1;break a;default:M=0}return{size:hOf(T.size),type:M,onTap:E,accessibilityText:b}};
return _.v("ad-avatar-view-model",{class:function(){var M;return((M=e().interaction)==null?0:M.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:G},_.v(_.S,{cond:function(){return e().image},
then:function(M){return _.v(gQl,{data:O,image:M})}}))},"Lb");_.tE=_.y(function(G){var e=_.cx(G,{hasDot:!1,usedInMasthead:!1}),r=Object.assign({},e),Z=e.data,O=e.hasDot;G=e.customCommandResolver;var M=e.usedInMasthead,T=(delete r.data,delete r.hasDot,delete r.customCommandResolver,delete r.usedInMasthead,r);e=function(){return Z().style};
e!==void 0&&e!==null||_.GG(Error("Hh"));G=_.fW(function(){return Z().interaction},G);
return _.v("ad-badge-view-model",{class:_.LC(function(){var E;return((E=Z().interaction)==null?0:E.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var E=T.adRenderingContextType(),b=M();
Z();return E!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||b?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.cQ(G)},_.v(_.PZ,{data:function(){var E;Z();return{type:2,text:(E=Z().label)==null?void 0:E.content,adsIncludeDot:O(),isOverlay:Z().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Mb");var mHb;_.gZ=_.y(function(G){var e=G.data;var r=G.customCommandResolver;var Z=G.adRenderingContextType;return _.v("ad-details-line-view-model",{class:function(){var O;return((O=e().interaction)==null?0:O.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.cQ(_.vJ({visibilityCallback:function(O){var M,T=(M=e().interaction)==null?void 0:M.onFirstVisible;O&&T&&_.HQ(T)},
showOption:_.Ep}),_.fW(function(){return e().interaction},r))},_.v(_.S,{cond:function(){return e().style},
then:function(O){return _.v(_.u6,{each:function(){var M;return((M=e())==null?void 0:M.attributes)||[]},
keyBy:"INDEX"},function(M){return _.v(mHb,{attribute:M,style:O,adRenderingContextType:function(){return Z()}})})}}))},"Nb");
mHb=_.y(function(G){var e=G.attribute;var r=G.style;var Z=G.adRenderingContextType;return _.v(_.S,{cond:function(){return e().text},
then:function(O){return _.v(_.Wh,{text:O,className:function(){var M=Z();r();return M==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ob");var caP=_.y(function(G){var e=G.data;var r=G.typographyBump;var Z=function(){return e().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
G={};return _.v(_.$Z,null,_.v("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.v(_.Wh,{text:function(){return e().headline},
className:_.LC("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(G.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return Z==null?void 0:Z()},G.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(r==null?void 0:r())&&!(Z==null?0:Z())},G)),
linkInheritColor:!0}),_.v(_.S,{cond:function(){return e().description},
then:function(O){var M={};return _.v(_.Wh,{text:O,className:_.LC("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(M.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return Z==null?void 0:Z()},M.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(r==null?void 0:r())&&!(Z==null?0:Z())},M)),
linkInheritColor:!0})}}),_.v(_.S,{cond:function(){return e().secondaryDescription},
then:function(O){var M={};return _.v(_.Wh,{text:O,className:_.LC("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(M.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return r==null?void 0:r()},M)),
linkInheritColor:!0})}}),_.v("div",{class:function(){return Z()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.v(_.S,{cond:function(){return e().adAvatar},
then:function(){return _.v("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.v(_.E2,{data:function(){return e().adAvatar}},{adAvatarViewModel:_.nkj}))}}),_.v(_.E2,{data:function(){return e().adBadge}},{adBadgeViewModel:function(O){return _.v(_.tE,{data:O.data,
hasDot:function(){return!!e().adDetailsLine},
adRenderingContextType:function(){return e().adRenderingContextType}})}}),_.v(_.E2,{data:function(){return e().adDetailsLine}},{adDetailsLineViewModel:function(O){return _.v(_.gZ,{data:O.data,
adRenderingContextType:function(){return e().adRenderingContextType}})}}))),_.v("div",{class:function(){return Z()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.v(_.E2,{data:function(){return e().menu}},{buttonViewModel:function(O){return _.v(_.wF,{data:O.data,
buttonOverrides:function(){a:switch(e().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var M="S";break a;default:M="M"}return{size:M}}})}})))},"Pb"),Yxj=_.y(function(G){var e=G.data;
var r=G.noBottomMargin;var Z=G.useVideoLockupTopPadding;var O=G.typographyBump;G={};G=_.LC("ytwFeedAdMetadataViewModelHostMetadata",(G.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return r==null?void 0:r()},G.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return Z==null?void 0:Z()},G));
var M=function(){return e().adBadge};
M!==void 0&&M!==null||_.GG(Error("Ih"));M={};var T={};return _.v(_.$Z,null,_.v(_.S,{cond:function(){return e().adAvatar},
then:function(){return _.v("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.v(_.E2,{data:function(){return e().adAvatar}},{adAvatarViewModel:function(E){return _.v(_.nkj,{data:E.data})}}))}}),_.v("div",{class:G},_.v("div",{class:_.LC("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(M.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return O==null?void 0:O()},M.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(O==
null?void 0:O())&&_.R("web_enable_typography_bump_v2")},M))},_.v(_.Wh,{text:function(){return e().headline},
linkInheritColor:!0})),_.v(_.S,{cond:function(){return e().description},
then:function(E){return _.v(_.Wh,{text:E,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.v("div",{class:function(){return e().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.R("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.v(_.E2,{data:function(){return e().adBadge}},
{adBadgeViewModel:function(E){return _.v(_.tE,{data:E.data,
hasDot:function(){return!!e().adDetailsLine},
adRenderingContextType:function(){return e().adRenderingContextType}})}}),_.v(_.E2,{data:function(){return e().adDetailsLine}},{adDetailsLineViewModel:function(E){return _.v(_.gZ,{data:E.data,
adRenderingContextType:function(){return e().adRenderingContextType}})}})),_.v(_.S,{cond:function(){return e().secondaryDescription},
then:function(E){return _.v(_.Wh,{text:E,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.v("div",{class:_.LC("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(T.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return Z==null?void 0:Z()},T))},_.v(_.E2,{data:function(){return e().menu}},{buttonViewModel:_.wF})))},"Qb"),lK=_.y(function(G){var e=G.data;
var r=G.noBottomMargin;var Z=G.listenToTapEvent;var O=G.setTouchEndHandler;var M=G.useVideoLockupTopPadding;var T=G.typographyBump;G=_.vJ({visibilityCallback:function(t){var g,l=(g=e().interaction)==null?void 0:g.onFirstVisible;t&&l&&_.HQ(l)},
showOption:_.Ep});var E=_.fW(function(){return e().interaction},void 0,function(){return Z==null?void 0:Z()}),b=_.h(_.XQ(!1,void 0,"a2FSrb")),w=b.next().value,q=b.next().value;
b=_.ev(function(t){(O==null?0:O())&&!w()&&(t.currentTarget.click(),q(!0),setTimeout(function(){q(!1)},100));
return!1});
return _.v("feed-ad-metadata-view-model",{class:function(){var t;return((t=e().interaction)==null?0:t.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.cQ(G,E),"on:touchend":b},_.v(_.nz,null,_.v(_.pz,{when:function(){return e().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.v(caP,{data:e,
typographyBump:T})}),_.v(_.pz,{when:function(){return e().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.v(Yxj,{data:e,
noBottomMargin:r,useVideoLockupTopPadding:M,typographyBump:T})})))},"Rb");var yav,Aaw;yav=_.oH.inlinePreviewEnabledSelector;_.Rk=_.y(function(G){return _.v("yt-lockup-view-model",{class:_.LC(G.className,"yt-lockup-view-model--wrapper")},_.v(_.qR,{contentId:function(){return G.data().contentId},
useModernStyle:!0,aspectRatio:function(){var e,r;return((e=G.containerType)==null?void 0:e.call(G))!==3?FPA(G.data().contentType,(r=G.force16By9ThumbnailAspectRatio)==null?void 0:r.call(G)):void 0}},function(){return _.v(Aaw,Object.assign({},G))}))},"Sb");
Aaw=_.y(function(G){G=_.cx(G,{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=G.data,r=G.containerLayoutConfig,Z=G.containerType,O=G.sizing,M=G.protectBackground,T=G.typographyBump,E=G.force16By9ThumbnailAspectRatio,b=G.thumbnailFixedWidth,w=G.thumbnailTargetWidth,q=G.lockupExperiments,t=G.elementsPerRow,
g=_.v_().resolve(_.bq(_.Ig));G=_.cQ(_.jV(function(){var k4;return(k4=e())==null?void 0:k4.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 l=_.Eb(yav),X=_.v_().resolve(_.bq(OcC)),H=X?{}:void 0,I=function(){var k4,SE,Fn;return(Fn=(SE=_.a((k4=e())==null?void 0:k4.rendererContext,_.D9))==null?void 0:SE.label)!=null?Fn:void 0},C=function(){var k4;
return(k4=_.a(e().metadata,_.i0C))==null?void 0:k4.endorsement},u=function(){var k4=r==null?void 0:r(),SE;
if(k4==null?0:k4.containerType){var Fn=(SE=e())==null?void 0:SE.contentType;SE=q();var kw=T(),Lf=w(),vc=M();k4=Object.assign({},JCN(cCS(k4),He(k4.responsiveSize),kw,Fn,k4.force16By9ThumbnailAspectRatio,Lf,vc,SE),{thumbnailFixedWidth:k4.contentPreviewWidth})}else k4=JCN(Z(),O(),T(),(Fn=e())==null?void 0:Fn.contentType,E(),w(),M(),q());return k4};
X&&H&&X({enabled:function(){return l()},
itemPlaybackModel:function(){return e().itemPlayback},
thumbnailElRef:function(){return H.thumbnailElRef},
containerElRef:G,options:function(){var k4=H.thumbnailOverlays||[],SE=C(),Fn;!SE||((Fn=q())==null?0:Fn.onFocusEffect)||k4.push(SE);var kw,Lf;return{thumbnail:H.thumbnail,thumbnailOverlays:k4,accessibilityText:I(),thumbnailSize:H.thumbnailSize,enableRounding:u().isCollection,containPlayerWithinThumbnail:u().isCollection,mouseleaveCallback:function(){J(!1)},
trackingParams:(kw=_.a(e().rendererContext,_.Ta))==null?void 0:(Lf=kw.loggingDirectives)==null?void 0:Lf.trackingParams}}});
var P=0;X=_.h(_.XQ(!1,void 0,"SGv1Nb"));var F=X.next().value,J=X.next().value;X=_.h(_.XQ(!1,void 0,"uCGyk"));var U=X.next().value,e$=X.next().value;X=_.ev(function(){U()?(_.A0.cancelJob(P),P=_.A0.addJob(function(){J(!0)},8,32)):J(!0);
return!0});
var Dq=_.ev(function(k4){k4=k4.relatedTarget;var SE=document.querySelector("ytd-video-preview");k4&&SE&&SE.contains(k4)||(P&&(_.A0.cancelJob(P),P=0),J(!1))});
_.yD(function(){P&&(_.A0.cancelJob(P),P=0)});
var bF=VnU(function(){e$(!0)}),Kf=bF.touchFeedbackEvents,ti=bF.touchFeedbackOnPointerUp,Ry=bF.touchFeedbackOnPointerDown;
bF=bF.touchFeedbackOnPointerLeave;var nf={};return _.v(_.$Z,null,_.v("div",{el:G,class:_.LC("yt-lockup-view-model",function(){a:{var k4=u();if(k4.isOverlay)k4="yt-lockup-view-model--overlay";else switch(k4.arrangement){case 1:k4="yt-lockup-view-model--horizontal";break a;default:k4="yt-lockup-view-model--vertical"}}return k4},function(){a:{var k4=u();
if(k4.isOverlay)k4="yt-lockup-view-model--overlay";else{switch(k4.collectionStackNumber){case 1:k4="yt-lockup-view-model--collection-stack-1";break a;case 2:k4="yt-lockup-view-model--collection-stack-2";break a}k4=void 0}}return k4},function(){var k4;
return _.eOs((k4=e())==null?void 0:k4.contentId)},(nf["yt-lockup-view-model--card"]=function(){return u().isCard},nf["yt-lockup-view-model--compact"]=function(){return u().isTiny||u().sizing!=="STANDARD"},nf["yt-lockup-view-model--protect-background"]=M,nf["yt-lockup-view-model--add-margins"]=function(){return u().addMarginForFullbleed},nf["yt-lockup-view-model--centered"]=function(){return u().isCentered},nf["yt-lockup-view-model--fullbleed"]=function(){return u().fullbleed},nf["yt-lockup-view-model--single-column-grid"]=
function(){return t()===1&&Z()===2},nf["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var k4;
return(k4=q())==null?void 0:k4.useRichGridLegacyMargin},nf)),
"on:mousedown":Ry,"on:mouseleave":Dq,"on:mouseup":ti,"on:mouseover":X,"on:touchstart":Ry,"on:touchend":ti,"on:pointerleave":bF},_.v(_.ED,{model:function(){var k4,SE,Fn=Object,kw=Fn.assign,Lf=(H==null?void 0:H.thumbnailSize)||"small";a:{var vc=u();var IW=!!(C()&&((k4=q())==null?0:k4.onFocusEffect));switch((H==null?void 0:H.thumbnailSize)||"small"){case "small":k4=4;break;case "large":k4=12;break;default:k4=8}if(IW)vc=k4+24;else{switch(vc.collectionStackNumber){case 1:vc=k4+8;break a;case 2:vc=k4+12;
break a}vc=void 0}}Lf={thumbnailSize:Lf,triggerEvents:!0,customTopExtend:vc};var Hc;vc=(SE=q())==null?void 0:SE.onFocusEffect;IW=!(g==null||!g());if(vc){var a8,t2;SE=IW?(a8=vc.onFocusColor)==null?void 0:a8.darkTheme:(t2=vc.onFocusColor)==null?void 0:t2.lightTheme;var hi,rj;a8=IW?(hi=vc.keyLightColor)==null?void 0:hi.darkTheme:(rj=vc.keyLightColor)==null?void 0:rj.lightTheme;var tS;hi=IW?(Hc=vc.touchResponseColor)==null?void 0:Hc.darkTheme:(tS=vc.touchResponseColor)==null?void 0:tS.lightTheme;Hc={background:SE!==
void 0?Xq(SE):void 0,keyLight:a8!==void 0?Xq(a8):void 0};tS=[];rj=_.h(vc.lightingTechniques||[]);for(a8=rj.next();!a8.done;a8=rj.next())switch(a8.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":tS.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":tS.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":tS.push(3)}Hc={hoverEffect:{palette:Hc,lightingTechniques:tS},touchEffect:{palette:{background:hi!==void 0?Xq(hi):void 0}}}}else Hc={};return kw.call(Fn,{},Lf,Hc)},
hovered:function(){return F()},
pointerDownEvent:Kf.pointerDownEvent,pointerUpEvent:Kf.pointerUpEvent,pointerLeaveEvent:Kf.pointerLeaveEvent}),_.v(_.S,{cond:function(){var k4,SE;return C()&&F()&&((k4=q())==null?void 0:k4.onFocusEffect)&&!((SE=q())==null?0:SE.isFirstRow)},
then:function(){return _.v("div",{class:"yt-lockup-view-model__endorsement"},_.v(_.E2,{data:function(){return C()}},{attributionViewModel:function(k4){return _.v($r,{data:k4.data,
useHeavyText:!0})}}))}}),_.v(_.Ds,{command:function(){var k4;
return _.lt((k4=e())==null?void 0:k4.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return b()&&u().arrangement===1?"width: "+b():""}},_.v(_.E2,{data:function(){var k4;
return(k4=e())==null?void 0:k4.contentImage}},{thumbnailViewModel:function(k4){return _.v(_.DA,{data:k4.data,
aspectRatio:function(){return u().aspectRatio},
disableRounding:function(){return u().disableRounding},
width:w,hovered:function(){return F()&&!(l()&&e().itemPlayback)},
isClip:function(){var SE;return((SE=e())==null?void 0:SE.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:aNA(H),lockupExperiments:function(){return q()}})},
collectionThumbnailViewModel:function(k4){return _.v(l3w,{data:k4.data,aspectRatio:function(){return u().aspectRatio},
disableRounding:function(){return u().disableRounding},
width:w,doubleStack:function(){return u().collectionStackNumber===2},
hovered:function(){return F()&&!(l()&&e().itemPlayback)},
playbackRef:aNA(H)})},
decoratedAvatarViewModel:_.Aq})),_.v("div",{class:"yt-lockup-view-model__metadata"},_.v(_.E2,{data:function(){var k4;return(k4=e())==null?void 0:k4.metadata}},{lockupMetadataViewModel:function(k4){return _.v(p3E,{data:k4.data,
hovered:F,lockupStyle:u,lockupCommand:function(){var SE;return _.lt((SE=e())==null?void 0:SE.rendererContext)},
lockupAccessibilityLabel:function(){return I()},
layout:function(){var SE;return((SE=q())==null?0:SE.useInlineContentMetadata)?0:void 0}})},
feedAdMetadataViewModel:function(k4){return _.v(lK,{data:k4.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:T})}}),_.v(_.E2,{data:function(){var k4;
return(k4=e())==null?void 0:k4.attachmentSlot}},{lockupAttachmentsViewModel:function(k4){return _.v(f3l,{data:k4.data,
lockupStyle:u})}}))),_.v(_.E2,{data:function(){var k4;
return(k4=e())==null?void 0:k4.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(k4){return _.v(f3l,{data:k4.data,
lockupStyle:u})}}))},"Tb");
_.Rk.idomCompat=!0;_.J_(_.Rk,"yt-lockup-view-model",{props:{data:_.N6,containerLayoutConfig:_.N6,containerType:_.N6,sizing:_.N6,protectBackground:_.N6,typographyBump:_.N6,thumbnailFixedWidth:_.N6,thumbnailTargetWidth:_.N6,force16By9ThumbnailAspectRatio:_.N6,className:_.N6,lockupExperiments:_.N6,elementsPerRow:_.N6}});var igf,Fzj=_.y(function(G){var e=_.cx(G,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),r=e.text,Z=e.alwaysShowTruncationText;G=e.truncationText;var O=e.onTextClick,M=e.maxLines,T=e.disableTextMask,E=e.textStyle,b=e.accessibilityLabel,w=e.textSize,q=e.alwaysTruncateAtMaxLines,t=e.expandOnClick;e=_.h(_.XQ(!1,void 0,"EzA1q"));var g=e.next().value,l=e.next().value;e=_.ev(function(){t()&&l(!g());O==null||O()});
var X=function(){a:switch(w()){case "medium":var e$=2;break a;case "large":e$=2.2;break a;default:e$=1.8}return e$},H=wWp(r,function(){return g()?Infinity:M()},X,T,q,g),I=H.isTruncated;
r=H.displayText;q=H.contentRef;var C=H.hiddenRef,u=H.placeholderTruncationTextRef,P=H.hiddenTruncationTextRef;H=H.truncationTextRef;var F={},J={},U={};return _.v("truncated-text",{class:_.LC((F["yt-truncated-text"]=!0,F["yt-truncated-text--overlay"]=function(){return E()==="overlay"},F["yt-truncated-text--medium-text"]=function(){return w()==="medium"},F["yt-truncated-text--large-text"]=function(){return w()==="large"},F["yt-truncated-text--primary-text"]=function(){return E()==="primary-text"},F)),
"on:click":e,style:function(){return"line-height: "+X()+"rem;"}},_.v("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:q,style:function(){return g()?"":"max-height: "+M()*X()+"rem;"}},_.v(_.Wh,{text:r}),_.v("button",{"aria-disabled":!0,
disabled:!0,class:_.LC((J["yt-truncated-text__inline-button"]=!0,J["yt-truncated-text--hidden"]=function(){return!(!g()&&(Z!=null&&Z()||I()))},J)),
el:u,style:function(){return"line-height: "+X()+"rem;"}},_.v(_.Wh,{text:G}))),_.v("truncated-text-content",{class:_.LC("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:C,style:function(){return g()?"":"max-height: "+M()*X()+"rem;"},
"aria-hidden":"true"},_.v(_.Wh,{text:r}),_.v("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:P,style:function(){return"line-height: "+X()+"rem;"}},_.v(_.Wh,{text:G}))),_.v("button",{"aria-label":b,
class:_.LC((U["yt-truncated-text__absolute-button"]=function(){return!T()},U["yt-truncated-text__bottom-button"]=function(){return T()},U["yt-truncated-text--hidden"]=function(){return!(!g()&&(Z!=null&&Z()||I()))},U)),
el:H,style:function(){return"line-height: "+X()+"rem;"}},_.v(_.Wh,{text:G})))},"Vb");
Fzj.idomCompat={callbacks:{onTextClick:!0}};var xHE=_.y(function(G){var e=G.data;G=G.className;var r=_.dw(function(){return SFq(e())},void 0,"uDhDke"),Z=_.v(_.$Z,null,_.v(_.S,{cond:function(){return e().heroText||e().image},
then:function(){return _.v(JaS,{data:e})}}),_.v(Bbn,{data:e,
sizeSmall:function(){return e().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.v("yt-video-attribute-view-model",{class:G},_.v("div",{class:function(){var O=e();a:switch(O.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var M="yt-video-attribute-view-model--vertical";break a;default:M="yt-video-attribute-view-model--horizontal"}a:switch(O.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var T="yt-video-attribute-view-model--image-small";break a;default:T="yt-video-attribute-view-model--image-large"}a:switch(O.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var E=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":E="yt-video-attribute-view-model--image-avatar";break a;default:E=""}a:switch(O.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var b="yt-video-attribute-view-model--metadata-header";break a;default:b=""}a:switch(O.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var w="yt-video-attribute-view-model--container-card";break a;default:w=""}return["yt-video-attribute-view-model",M,T,
E,b,w,SFq(O)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.Mk({"background-color":function(){var O=e();if(O.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var M="";else{M=O.lightColorPalette;O=O.darkColorPalette;var T,E=((T=_.v_().resolve(_.bq(_.Ig)))==null?0:T())&&O?O:M;M=(M=E==null?void 0:E.section2Color)?_.jF(M):""}return M}})},_.v(_.S,{cond:r,
then:function(){return _.v(_.Ds,{className:"yt-video-attribute-view-model__content-container",command:r,role:"group",ariaLabel:function(){return e().title}},Z)},
else:function(){return _.v("div",{class:"yt-video-attribute-view-model__content-container"},Z)}})))},"Wb");
xHE.idomCompat=!0;var JaS=_.y(function(G){var e=G.data;var r,Z=(r=_.v_().resolve(_.bq(_.Ig)))==null?void 0:r(),O=function(){return Z&&e().darkThemeImage?e().darkThemeImage:e().image},M=_.dw(function(){return qFU(e())},void 0,"UDqj0b");
return _.v("div",{class:"yt-video-attribute-view-model__hero-section"},_.v(_.nz,null,_.v(_.pz,{when:O},function(){return _.v(_.nC,{data:function(){return O()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.v(_.pz,{when:function(){return e().heroText}},function(){return _.v("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.v("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return e().heroText}))})),_.v(_.S,{cond:function(){return e().overflowMenuOnTap},
then:function(){return _.v("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.v(_.vk,{data:M,iconName:"MORE_VERT"}))}}))},"Xb");
JaS.idomCompat=!0;var Bbn=_.y(function(G){var e=G.data;G=G.sizeSmall;var r=function(){return e().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},Z=_.dw(function(){return kh(_.fC({innertubeCommand:SFq(e())}))?"link":SFq(e())?"button":"group"},void 0,"e2MmYe"),O={};
return _.v("div",{class:_.LC("yt-video-attribute-view-model__metadata",(O["yt-video-attribute-view-model--small-font"]=G,O)),role:Z},_.v("h1",{class:"yt-video-attribute-view-model__title"},function(){return e().title}),_.v(_.S,{cond:function(){return e().subtitle},
then:function(){return _.v("h4",{class:"yt-video-attribute-view-model__subtitle"},_.v(_.S,{cond:r,then:function(){return _.v(Fzj,{text:function(){return $Af(e().subtitle)},
truncationText:function(){return $Af(e().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.v("span",null,function(){return e().subtitle})}}))}}),_.v(_.S,{cond:function(){return e().secondarySubtitle},
then:function(M){return _.v("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.v(_.Wh,{text:function(){var T=M();if(T!=null&&T.attachmentRuns){for(var E=[],b=_.h(T.attachmentRuns),w=b.next();!w.done;w=b.next())w=w.value,w.element&&E.push(Object.assign({},w,{element:Object.assign({},w.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));T=Object.assign({},T,{attachmentRuns:E})}return T}}))}}),_.v(_.E2,
{data:function(){return e().buttonViewModel}},{buttonViewModel:function(M){return _.v(_.wF,{data:M.data,
className:"yt-video-attribute-view-model__button"})}}))},"Yb");
Bbn.idomCompat=!0;_.J_(xHE,"yt-video-attribute-view-model",{props:{data:_.N6,className:_.N6}});var jI=function(){var G=_.m.apply(this,arguments)||this;G.useHighlightStyling=_.R("web_enable_deeper_metadata_highlight_styling");G.isSearch=!1;G.JSC$15279_lastScrollContainerWidth=NaN;G.pageLoadingFromNavigation=!1;G.currentIndex=0;G.supportComponentResize=!1;return G};
_.K(jI,_.m);_.V=jI.prototype;
_.V.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}}}}}};
_.V.attached=function(){document.addEventListener("yt-page-type-changed",_.ZQ(this,this.onPageChange))};
_.V.detached=function(){document.removeEventListener("yt-page-type-changed",_.ZQ(this,this.onPageChange))};
_.V.getItemsPath=function(){return"data.cards"};
_.V.onIronResize=function(){this.updateListStyles()};
_.V.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var G;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(G=this.data)==null?void 0:G.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.R("problem_walkthrough_sd")&&!!this.centerItems};
_.V.computeCardListStyle=function(G){return G||null};
_.V.computeEmpty=function(G){return!this.get("cards.length",G)};
_.V.computeThumbnailStyle=function(G){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",G)||null};
_.V.computeHasSubtitle=function(G){return!!this.get("header.richListHeaderRenderer.subtitle",G)};
_.V.computeInitialCountNumber=function(G){return this.hasSquareMiniApp&&G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.V.computeUseFloorScrolling=function(G){return G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.V.computeHasGameCard=function(G){return(G=this.get("cards",G))?G.some(function(e){return e.gameCardRenderer}):!1};
_.V.computeCenterHeaderTitle=function(G){return!(G==null||!G.centerHeaderTitle)};
_.V.computeHasPortraitMiniApp=function(G){return(G=G==null?void 0:G.cards)?G.some(function(e){return e.miniGameCardViewModel&&e.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.V.computeHasSquareMiniApp=function(G){return(G=G==null?void 0:G.cards)?G.some(function(e){return e.miniGameCardViewModel&&e.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.V.computeHasSkinnyWidthPortraitMiniApp=function(G){return(G=G==null?void 0:G.cards)?G.some(function(e){return e.miniGameCardViewModel&&e.miniGameCardViewModel.width===135}):!1};
_.V.computeCenterItems=function(G){return!!G};
_.V.computeHasInfoPanel=function(G){var e;return G==null?void 0:(e=G.cards)==null?void 0:e.some(function(r){return r.infoPanelContentRenderer})};
_.V.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.V.getItemByIndex=function(G){var e=this.items.children;return e&&e.length>G?e[G]:void 0};
_.V.onPageChange=function(){var G=this;this.pageLoadingFromNavigation=!0;_.A0.addJob(function(){G.pageLoadingFromNavigation=!1;_.UW(G.hostElement,"yt-terminate-video-preview-action")},8)};
_.V.updateListStyles=function(){if(_.R("problem_walkthrough_sd")&&this.JSC$15279_scrollContainer!==void 0){var G=this.JSC$15279_scrollContainer.clientWidth;G!==this.JSC$15279_lastScrollContainerWidth&&(this.JSC$15279_lastScrollContainerWidth=G,_.eD(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(G*.8,415)+"px"}),_.xy(this.hostElement,"iron-resize"))}};
_.iY.Object.defineProperties(jI.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.R("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return!!((G=this.data)==null?0:(e=G.cards)==null?0:(r=e[0])==null?0:r.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return!!((G=this.data)==null?0:(e=G.cards)==null?0:(r=e[0])==null?0:r.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return _.R("enable_desktop_amsterdam_info_panels")&&!!((G=this.data)==null?0:(e=G.cards)==null?0:(r=e[0])==null?0:r.infoPanelContentRenderer)}}});
jI.prototype.dataChanged=jI.prototype.dataChanged;jI.prototype.onIronResize=jI.prototype.onIronResize;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],jI.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],jI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.E1.YtdHorizontalListBehavior),_.x("design:type",Object)],jI.prototype,"ytdHorizontalListBehavior",void 0);
_.B([_.k(_.J5),_.x("design:type",Object)],jI.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],jI.prototype,"data",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],jI.prototype,"useCustomColors",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],jI.prototype,"useHighlightStyling",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.x("design:type",Object)],jI.prototype,"cardListStyle",void 0);_.B([_.n({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.x("design:type",Boolean)],jI.prototype,"empty",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.x("design:type",Boolean)],jI.prototype,"hasSubtitle",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.x("design:type",Boolean)],jI.prototype,"thumbnailStyle",void 0);_.B([_.n({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.x("design:type",Boolean)],jI.prototype,"hasGameCard",void 0);_.B([_.n({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.x("design:type",Boolean)],jI.prototype,"centerHeaderTitle",void 0);
_.B([_.n({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.x("design:type",Boolean)],jI.prototype,"hasPortraitMiniApp",void 0);_.B([_.n({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.x("design:type",Boolean)],jI.prototype,"hasSquareMiniApp",void 0);_.B([_.n({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.x("design:type",Boolean)],jI.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.B([_.n({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.x("design:type",Boolean)],jI.prototype,"hasInfoPanel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],jI.prototype,"isSearch",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],jI.prototype,"inlineStructuredDescription",void 0);_.B([_.hs("#scroll-container"),_.x("design:type",HTMLDivElement)],jI.prototype,"JSC$15279_scrollContainer",void 0);
_.B([_.n({computed:"computeInitialCountNumber(data.style.type)"}),_.x("design:type",Number)],jI.prototype,"initialCount",void 0);_.B([_.n({computed:"computeUseFloorScrolling(data.style.type)"}),_.x("design:type",Boolean)],jI.prototype,"useFloorScrolling",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.x("design:type",Boolean)],jI.prototype,"centerItems",void 0);_.B([_.n(),_.x("design:type",Object)],jI.prototype,"pageLoadingFromNavigation",void 0);
_.B([_.n(),_.x("design:type",Object)],jI.prototype,"currentIndex",void 0);_.B([_.n(),_.x("design:type",Number)],jI.prototype,"scrollCount",void 0);_.B([_.n(),_.x("design:type",Object)],jI.prototype,"supportComponentResize",void 0);_.B([_.hs("#items"),_.x("design:type",HTMLDivElement)],jI.prototype,"items",void 0);_.B([_.Om("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jI.prototype,"onIronResize",null);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jI.prototype,"dataChanged",null);_.B([_.n({reflectToAttribute:!0}),_.d("inlineStructuredDescription"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jI.prototype,"hideNavigationButton",null);_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jI.prototype,"modernChapters",null);
_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jI.prototype,"hasVideoAttributeViewModels",null);_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jI.prototype,"modernInfoPanels",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],jI);
_.A(jI,"ytd-horizontal-card-list-renderer",function(){if(cRC!==void 0)return cRC;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return cRC=G},{mode:_.Px("kevlar_poly_si_batch_j072")?1:2});var P5y=_.y(function(G){var e=G.data;var r={};return _.v("video-summary-content-view-model",{class:_.LC("videoSummaryContentViewModelHost",G.className,(r.videoSummaryContentViewModelHostIsSearch=G.isSearch,r))},_.v(_.u6,{each:function(){var Z=[],O=e().paragraphs;if(O==null||!O.length)return[];for(var M=0;M<O.length;M++){var T=_.a(O[M],ihW),E=void 0;M>0&&(E=_.a(O[M-1],ihW));E&&!!E.marker===!!T.marker?Z[Z.length-1].paragraphs.push(T):Z.push({isList:!!T.marker,paragraphs:[T]})}return Z},
keyBy:"INDEX"},function(Z){return _.v(_.S,{cond:function(){return Z().isList},
then:function(){return _.v("ul",{class:"videoSummaryContentViewModelList"},_.v(_.u6,{each:function(){return Z().paragraphs},
keyBy:"INDEX"},function(O){return _.v("li",{class:"videoSummaryContentViewModelListItem"},_.v(_.Wh,{text:function(){return O().text}}))}))},
else:function(){return _.v("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.v(_.u6,{each:function(){return Z().paragraphs},
keyBy:"INDEX"},function(O){return _.v("p",{class:"videoSummaryContentViewModelParagraph"},_.v(_.Wh,{text:function(){return O().text}}))}))}})}),_.v(_.S,{cond:function(){return!!_.a(e().likeButtonViewModel,_.FG)&&!!_.a(e().dislikeButtonViewModel,_.AO)},
then:function(){return _.v("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.v("div",{class:"videoSummaryContentViewModelLikeButton"},_.v(_.BZ,{data:function(){return _.a(e().likeButtonViewModel,_.FG)},
disableIconAnimation:!0})),_.v(_.Jv,{data:function(){return _.a(e().dislikeButtonViewModel,_.AO)}}))}}))},"Zb");
P5y.idomCompat=!0;_.J_(P5y,"video-summary-content-view-model",{props:{data:_.N6,isSearch:_.N6,className:_.N6}});var ak=function(){var G=_.m.apply(this,arguments)||this;var e,r;G.isExpanded=(r=(e=G.data)==null?void 0:e.isExpanded)!=null?r:!1;G.disableExpand=!1;G.showProminentLabel=!1;G.showRightSideLabel=!0;G.toggleExpandableContent=function(Z){G.disableExpand||(Z.stopPropagation(),_.c5(_.na(Z),G.hostElement,["info","expanded-subtitle"])||(G.isExpanded=!G.isExpanded,G.ytRendererBehavior.logExplicitClick(G.data),G.JSC$15290_cardList&&!_.R("expandable_metadata_a11y_fix_ks")&&_.DE(G,function(){_.Os(G.hostElement)})))};
G.useSquareThumbnail=!1;G.startX=0;return G};
_.K(ak,_.m);_.V=ak.prototype;_.V.computeUseSquareThumbnail=function(){var G;return(G=this.data)==null?void 0:G.useSquareThumbnail};
_.V.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"}}}}};
_.V.dataChanged=function(){if(this.data){var G,e;this.isExpanded=(e=(G=this.data)==null?void 0:G.isExpanded)!=null?e:!1;var r,Z,O,M;if(G=this.isDarkTheme()?(r=this.data)==null?void 0:(Z=r.colorData)==null?void 0:Z.darkColorPalette:(O=this.data)==null?void 0:(M=O.colorData)==null?void 0:M.lightColorPalette){var T,E;if((T=this.data)==null?0:(E=T.colorData)==null?0:E.vibrantColorPalette)G.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.Sv(this.hostElement,G)}}};
_.V.isExpandedChanged=function(){this.isExpanded&&this.JSC$15290_cardList&&_.xy(this.JSC$15290_cardList,"iron-resize")};
_.V.computeIsExpanded=function(G){return!!G.isExpanded};
_.V.computeShowProminentLabel=function(G,e){var r;return!!(G==null?0:(r=G.header)==null?0:r.showLeadingCollapsedLabel)&&!e};
_.V.computeShowRightSideLabel=function(G,e){var r;return!(G==null?0:(r=G.header)==null?0:r.showLeadingCollapsedLabel)&&!e};
_.V.captureContentClick=function(G){if(!this.disableExpand)if(_.R("expandable_metadata_fix_killswitch")){var e=G.target;_.of3(e,"ytd-macro-markers-list-item-renderer")||G.stopPropagation();(e==null?void 0:e.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.c5(_.na(G),this.hostElement,["items"])||_.mO(_.na(G),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.V.timestampClick=function(G){G.stopPropagation();var e,r;(G=(e=this.data)==null?void 0:(r=e.header)==null?void 0:r.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(G)};
_.V.onDown=function(G){G.stopPropagation();this.startX=G.detail?G.detail.x:0};
_.V.onUp=function(G){this.skipKeyInteraction(G)&&G.stopPropagation()};
_.V.skipKeyInteraction=function(G){var e=G.target;if((e==null?void 0:e.id)==="scroll-container"||(e==null?void 0:e.id)==="items"||G.detail&&G.detail.x!==this.startX)return!0;G=_.na(G);G=_.h(G);for(e=G.next();!e.done;e=G.next()){e=e.value;if(e===this.hostElement)break;if(e.hasAttribute&&e.hasAttribute("skip-key-interaction"))return!0}return!1};
_.V.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.iY.Object.defineProperties(ak.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var G;return!!_.a((G=this.data)==null?void 0:G.expandedContent,EBW)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var G;return!!_.a((G=this.data)==null?void 0:G.expandedContent,_.b0y)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var G,e;return!((G=this.data)==null||!G.useCustomColors)&&!((e=this.data)==null||!e.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var G,e;return!!((G=this.data)==null?0:(e=G.header)==null?0:e.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var G,e;return!!((G=this.data)==null?0:(e=G.header)==null?0:e.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var G,e;return!!((G=this.data)==null?0:(e=G.header)==null?0:e.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
ak.prototype.onUp=ak.prototype.onUp;ak.prototype.onDown=ak.prototype.onDown;ak.prototype.isExpandedChanged=ak.prototype.isExpandedChanged;ak.prototype.dataChanged=ak.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ak.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],ak.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],ak.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ak.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],ak.prototype,"isExpanded",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],ak.prototype,"disableExpand",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],ak.prototype,"isSearch",void 0);
_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],ak.prototype,"isWatch",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.x("design:type",Object)],ak.prototype,"showProminentLabel",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.x("design:type",Object)],ak.prototype,"showRightSideLabel",void 0);
_.B([_.n({value:!1,reflectToAttribute:!0}),_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ak.prototype,"hasVideoSummary",null);_.B([_.n({value:!1,reflectToAttribute:!0}),_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ak.prototype,"hasLockupViewModel",null);_.B([_.n({reflectToAttribute:!0}),_.d("data","isWatch"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ak.prototype,"useCustomColors",null);
_.B([_.n({reflectToAttribute:!0}),_.d("data","isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ak.prototype,"showInfoButton",null);_.B([_.d("data","isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ak.prototype,"showTimestamp",null);_.B([_.d("data","isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ak.prototype,"showExpandedSubtitle",null);
_.B([_.d("data","isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ak.prototype,"showThumbnail",null);_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ak.prototype,"useVppShoppingDestinationStyle",null);_.B([_.n(),_.x("design:type",Object)],ak.prototype,"toggleExpandableContent",void 0);_.B([_.hs("ytd-horizontal-card-list-renderer"),_.x("design:type",Object)],ak.prototype,"JSC$15290_cardList",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.x("design:type",Object)],ak.prototype,"useSquareThumbnail",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ak.prototype,"dataChanged",null);_.B([_.Me("isExpanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ak.prototype,"isExpandedChanged",null);
_.B([_.Om("down"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ak.prototype,"onDown",null);_.B([_.Om("up"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ak.prototype,"onUp",null);_.B([_.c({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],ak);
_.A(ak,"ytd-expandable-metadata-renderer",function(){if(PTy!==void 0)return PTy;var G=document.createElement("template");_.f(G,'\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="[[!isExpanded]]" 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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return PTy=G},{mode:1});var UHE,z0W=function(){if(UHE!==void 0)return UHE;var G=document.createElement("template");_.f(G,'\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      <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" 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]]" hidden="[[hasAttributedBylineText]]" 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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return UHE=G};_.J_(_.FM,"yt-avatar-stack-view-model",{props:{className:_.N6,data:_.N6,overrides:_.N6,isOverlay:_.N6,useMediumText:_.N6,decorations:_.N6,hideAvatar:_.N6}});_.te("itemSectionRenderer","videoRenderer","ytd-video-renderer");var XS=function(){var G=_.m.apply(this,arguments)||this;G.disableExpand=!1;G.shouldShowChannelInfo=!1;G.hasAttributedBylineText=!1;G.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return G};
_.K(XS,_.m);_.V=XS.prototype;_.V.computeUseSearchUi=function(){var G,e;return this.isSearch||((G=this.data)==null?void 0:(e=G.style)==null?void 0:e.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.V.computeUseThreeLineTitle=function(){var G;return((G=this.data)==null?void 0:G.maxTitleLines)===3};
_.V.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.R("polymer_video_renderer_defer_menu")&&!s6w?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"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.V.attached=function(){_.Nv(this.hostElement,"blue-links",_.R("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.La(_.z1(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var G=this.get("data.buttons.buttonRenderer.serviceEndpoint"),e;G&&((e=_.a(G.commandMetadata,_.QJ))==null?0:e.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(G);this.updateInlinePreviewHoverListeners()};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15295_inlinePreviewHoverListener=XK({mediaRenderer:this,lockupElement:this.JSC$15295_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.V.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$15295_inlinePreviewHoverListener)==null||nx(G)};
_.V.onTextWrapperClick=function(G){var e,r,Z=this.hideTranslation?(e=this.data)==null?void 0:e.untranslatedNavigationEndpoint:(r=this.data)==null?void 0:r.navigationEndpoint;e=_.c5(_.na(G),this.hostElement,["expandable-metadata"]);!Z||e&&!_.R("expandable_metadata_fix_killswitch")||_.mO(_.na(G),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.xy(this.hostElement,"yt-navigate",{endpoint:Z})};
_.V.computeThumbnailWidth=function(G,e,r,Z,O){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:Z?O==="MASSIVE"?600:O==="BIG"?500:O==="MEDIUM"?450:420:r?360:e?128:G?210:246};
_.V.computeUseBiggerThumbs=function(G){return G&&_.R("enable_desktop_search_bigger_thumbs")};
_.V.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.V.computeHasAttributedBylineText=function(){var G;return!((G=this.data)==null||!G.attributedBylineText)};
_.V.computeVideoStyle=function(){if(_.R("enable_video_style")){var G,e;return(G=this.data)==null?void 0:(e=G.style)==null?void 0:e.value}};
_.V.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.V.handleHideItemSectionVideosByIdCommand=function(G){var e;G=(e=_.a(G,QCW))==null?void 0:e.videoId;this.data&&this.data.videoId===G&&(this.isHidden=!0)};
_.V.getMetadataSnippetContainerClass=function(G){return G?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.V.computeTitleText=function(G,e,r){return G?r:e};
_.V.computeDescriptionSnippet=function(G,e,r){return G?r:e};
_.V.computeSnippetText=function(G,e,r){return G?r:e};
_.V.computeNavigationEndpoint=function(G,e){return G?e==null?void 0:e.untranslatedNavigationEndpoint:e==null?void 0:e.navigationEndpoint};
_.V.hideInlineTitleIcon=function(G,e){return G||!e};
_.iY.Object.defineProperties(XS.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 G;return(G=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?G:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return!!(this==null?0:(G=this.data)==null?0:(e=G.channelThumbnailSupportedRenderers)==null?0:(r=e.channelThumbnailWithLinkRenderer)==null?0:r.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var G;return!!_.a((G=this.data)==null?void 0:G.avatar,vmS)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$15295_inlinePreviewHoverListener)==null?0:xm(G))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.iY.Object.defineProperties(XS,{template:{configurable:!0,enumerable:!0,get:function(){return z0W()}}});
XS.prototype.dataChanged=XS.prototype.dataChanged;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],XS.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],XS.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],XS.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],XS.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.k(_.NC),_.x("design:type",Object)],XS.prototype,"ytdLockupBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],XS.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],XS.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],XS.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],XS.prototype,"isBackstageVideo",void 0);
_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],XS.prototype,"isPostCompactVideo",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],XS.prototype,"isHistory",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],XS.prototype,"isRichGridVideoPost",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],XS.prototype,"isHidden",void 0);
_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],XS.prototype,"isSearch",void 0);_.B([_.n({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.x("design:type",Boolean)],XS.prototype,"useSearchUi",void 0);_.B([_.n({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.x("design:type",Boolean)],XS.prototype,"useThreeLineTitle",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.x("design:type",Boolean)],XS.prototype,"useBiggerThumbs",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.x("design:type",Object)],XS.prototype,"videoStyle",void 0);_.B([_.n({computed:"computeDisableExpand(videoStyle)"}),_.x("design:type",Object)],XS.prototype,"disableExpand",void 0);
_.B([_.n({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.x("design:type",Object)],XS.prototype,"shouldShowChannelInfo",void 0);_.B([_.n({computed:"computeHasAttributedBylineText(data)"}),_.x("design:type",Object)],XS.prototype,"hasAttributedBylineText",void 0);_.B([_.n({reflectToAttribute:!0,value:function(){return _.td("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],XS.prototype,"biggerThumbsStyle",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.x("design:type",String)],XS.prototype,"inlineTitleIcon",void 0);_.B([_.n({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.x("design:type",Object)],XS.prototype,"computedNavigationEndpoint",void 0);_.B([_.n({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(G,e){return _.e6(G.entities,"searchVideoResultEntity",e)}}),
_.x("design:type",Object)],XS.prototype,"searchVideoResultEntity",void 0);_.B([_.hs("ytd-thumbnail"),_.x("design:type",HTMLElement)],XS.prototype,"thumbnail",void 0);_.B([_.hs("#dismissible"),_.x("design:type",HTMLElement)],XS.prototype,"JSC$15295_dismissibleMedia",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XS.prototype,"dataChanged",null);
_.B([_.d("searchVideoResultEntity"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],XS.prototype,"hideTranslation",null);_.B([_.d("searchVideoResultEntity"),_.x("design:type",Array),_.x("design:paramtypes",[])],XS.prototype,"hiddenBadgeGroups",null);_.B([_.d("data","useAvatar"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],XS.prototype,"shouldShowChannelThumbnail",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],XS.prototype,"useAvatar",null);
_.B([_.d("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],XS.prototype,"isHovered",null);_.B([_.c({is:"ytd-video-renderer",disableElementRegistration:!0})],XS);_.A(XS,"ytd-video-renderer",function(){return z0W()},{mode:_.Px("kevlar_poly_si_batch_j047")?1:2});var KX=function(){var G=_.m.apply(this,arguments)||this;G.editDialog=null;G.roundedContainer=!0;G.isLoading=!1;G.isRichGrid=!1;G.isRichGridRepost=!1;G.reduceSidePaddings=_.R("reduce_side_paddings_in_shelf");G.JSC$15302_spinnerEl=null;return G};
_.K(KX,_.m);_.V=KX.prototype;
_.V.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"}}}};
_.V.contentTextChanged=function(){this.expander.reset()};
_.V.dataChanged=function(){var G=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var e=0,r=this.data.actions&&this.data.actions.length;e<r;e++)this.openEditDialog(_.a(this.data.actions[e],S3b));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){_.lr.getInstance();var O=RT(_.nQ(_.OK("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.A0.addLowPriorityJob(function(){_.Wi(G.hostElement,O,Z)})}}}};
_.V.updatePoll=function(G){G>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.V.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15302_spinnerEl||(this.JSC$15302_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.z1(this.hostElement).appendChild(this.JSC$15302_spinnerEl));this.JSC$15302_spinnerEl&&(this.JSC$15302_spinnerEl.active=this.isLoading)};
_.V.onYtNavigate=function(G){var e=this.get("updateCommentDialogEndpoint",G.detail.endpoint);e&&(this.openEditDialog(e),G.stopPropagation())};
_.V.onYtCommentboxDismiss=function(){this.editDialog=null};
_.V.onYtCommentPollRevert=function(G,e){e&&this.updatePoll(e.selectedChoiceIndex)};
_.V.onYtServiceRequestSent=function(G,e){var r;e.endpoint&&(_.a(e.endpoint,atP)||_.a(e.endpoint,j_E)&&((r=_.a(e.endpoint,j_E))==null||!r.clientActions))&&(this.isLoading=!0);if(e.actions)for(G=0;G<e.actions.length;G++)r=e.actions[G],_.a(r,oa)&&(r=this.get("updateBackstagePollAction.selectedChoiceIndex",r),r==void 0&&(r=-1),this.updatePoll(r))};
_.V.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.V.openEditDialog=function(G){G&&G.dialog&&(this.editDialog=G.dialog,G=this.editDialogEl.firstElementChild)&&(G.focus(),G.openDialog&&G.openDialog())};
_.V.computeIsPostHidden=function(G,e){return!!G||e};
_.V.computeSurfaceType=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.V.computeUsesCompactLockup=function(G){return G==="BACKSTAGE_SURFACE_TYPE_HOME"||G==="BACKSTAGE_SURFACE_TYPE_SEARCH"||G==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||G==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||G==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||G==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.V.computeShowWithoutToolbar=function(G){return!G.actionButtons&&!G.actionMenu};
_.V.computePostAttachment=function(G){if(G.backstageAttachment){if(_.a(G.backstageAttachment,r5y))return"poll";if(_.a(G.backstageAttachment,YDc))return"quiz";if(_.a(G.backstageAttachment,_.N8))return"video";if(_.a(G.backstageAttachment,y4w))return"uploaded-videos";if(_.a(G.backstageAttachment,YBW))return G.contentText?"image":"image-only";if(_.a(G.backstageAttachment,u3y))return"playlist"}return"none"};
_.V.computePostTabIndex=function(G){return G?0:-1};
_.V.computeButtonTooltipPosition=function(G){return this.computeUsesCompactLockup(G)?"top":"bottom"};
_.V.computeHasText=function(G){return!(G==null||!G.contentText)};
_.V.onTap=function(G){var e,r;if(((e=this.data)==null?0:e.navigationEndpoint)&&((r=this.data)==null?void 0:r.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var Z;((Z=this.data)==null?0:Z.navigationEndpoint)&&!_.mO(_.na(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.xy(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.iY.Object.defineProperties(KX.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.voteCount)||_.nQ("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.a(this.data.backstageAttachment,r5y))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.a(this.data.backstageAttachment,y4w))}}});
KX.prototype.onYtServiceRequestCompleted=KX.prototype.onYtServiceRequestCompleted;KX.prototype.onYtServiceRequestSent=KX.prototype.onYtServiceRequestSent;KX.prototype.onYtCommentPollRevert=KX.prototype.onYtCommentPollRevert;KX.prototype.onYtCommentboxDismiss=KX.prototype.onYtCommentboxDismiss;KX.prototype.onYtNavigate=KX.prototype.onYtNavigate;KX.prototype.isLoadingChanged=KX.prototype.isLoadingChanged;KX.prototype.dataChanged=KX.prototype.dataChanged;KX.prototype.contentTextChanged=KX.prototype.contentTextChanged;
_.B([_.k(_.J5),_.x("design:type",Object)],KX.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],KX.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],KX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],KX.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],KX.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",Object)],KX.prototype,"editDialog",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],KX.prototype,"roundedContainer",void 0);_.B([_.n(),_.x("design:type",Object)],KX.prototype,"isLoading",void 0);_.B([_.n({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.x("design:type",String)],KX.prototype,"surface",void 0);
_.B([_.n({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.x("design:type",Boolean)],KX.prototype,"usesCompactLockup",void 0);_.B([_.n({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],KX.prototype,"showWithoutToolbar",void 0);_.B([_.n({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.x("design:type",String)],KX.prototype,"attachment",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],KX.prototype,"isRichGrid",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],KX.prototype,"isRichGridRepost",void 0);_.B([_.n({reflectToAttribute:!0,value:_.R("use_better_post_dismissals")}),_.x("design:type",Boolean)],KX.prototype,"useBetterPostDismissals",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],KX.prototype,"reduceSidePaddings",void 0);
_.B([_.n({computed:"computeHasText(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],KX.prototype,"hasText",void 0);_.B([_.hs("#expander"),_.x("design:type",Object)],KX.prototype,"expander",void 0);_.B([_.hs("#action-buttons"),_.x("design:type",Object)],KX.prototype,"actionButtons",void 0);_.B([_.hs("#edit-dialog"),_.x("design:type",HTMLElement)],KX.prototype,"editDialogEl",void 0);
_.B([_.Me("data.contentText"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],KX.prototype,"contentTextChanged",null);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],KX.prototype,"dataChanged",null);_.B([_.Me("isLoading"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],KX.prototype,"isLoadingChanged",null);
_.B([_.Om("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],KX.prototype,"onYtNavigate",null);_.B([_.Om("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],KX.prototype,"onYtCommentboxDismiss",null);_.B([_.Om("yt-comment-poll-revert"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],KX.prototype,"onYtCommentPollRevert",null);
_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.oV]),_.x("design:returntype")],KX.prototype,"onYtServiceRequestSent",null);_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.n1]),_.x("design:returntype")],KX.prototype,"onYtServiceRequestCompleted",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],KX.prototype,"voteCount",null);
_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],KX.prototype,"commentCount",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],KX.prototype,"hasPoll",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],KX.prototype,"hasUploadedVideo",null);_.B([_.c({is:"ytd-post-renderer",disableElementRegistration:!0})],KX);
_.A(KX,"ytd-post-renderer",function(){if($LW!==void 0)return $LW;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return $LW=G},{mode:1});var WzC;var NbC;var fX=function(){return _.m.apply(this,arguments)||this};
_.K(fX,_.m);fX.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],fX.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],fX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.E1.YtdHorizontalListBehavior),_.x("design:type",Object)],fX.prototype,"ytdHorizontalListBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],fX.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],fX.prototype,"data",void 0);
_.B([_.n({value:"$.items.children"}),_.x("design:type",String)],fX.prototype,"itemsPath",void 0);_.B([_.n({value:1}),_.x("design:type",Number)],fX.prototype,"initialCount",void 0);_.B([_.n({reflectToAttribute:!0,value:_.R("enable_community_page_on_desktop")}),_.x("design:type",Boolean)],fX.prototype,"useSmallerPostImageAttachments",void 0);_.B([_.n(),_.x("design:type",String)],fX.prototype,"surface",void 0);_.B([_.c({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],fX);
_.A(fX,"ytd-post-multi-image-renderer",function(){if(NbC!==void 0)return NbC;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return NbC=G},{mode:_.Px("kevlar_poly_si_batch_j079")?1:2});var LzW={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"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"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}},
kr=function(){var G=_.m.apply(this,arguments)||this;G.hasInlineCommentSection=!1;G.editDialog=null;G.isLoading=!1;G.shouldHideAuthor=!1;G.shouldShowVideoTime=!1;G.isInEngagementPanel=!1;G.hideBorder=!1;G.usesFullLockup=!1;G.shouldShowMenuInCompactView=!1;G.JSC$15317_spinnerEl=null;G.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return G};
_.K(kr,_.m);_.V=kr.prototype;_.V.configureRendererStamper=function(){return LzW};
_.V.computeIsPollHeaderEnabled=function(G){return(G==null?void 0:G.pollMetadataIcon)!=null};
_.V.getPublishTimeStampString=function(G,e){e=new Date((Number(e)-60*((new Date).getTimezoneOffset()-(new Date(Number(e)*1E3)).getTimezoneOffset()))*1E3);e=(new uw(10)).format(e);if(G&&G.runs&&G.runs.length)for(var r=0;r<G.runs.length;r++)G.runs[r].text&&(G.runs[r].text=G.runs[r].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",e));return G};
_.V.created=function(){this.JSC$15317_spinnerEl=null};
_.V.contentTextChanged=function(){this.expander.reset()};
_.V.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var G;if((G=this.data)==null?0:G.actions){G=_.h(this.data.actions);for(var e=G.next();!e.done;e=G.next())this.openEditDialog(_.a(e.value,S3b))}};
_.V.handleSignalActionOpenPostCommentDialogAction=function(){_.z1(this.hostElement).querySelector("#action-buttons").reply()};
_.V.updatePoll=function(G,e){e&&this.set("data.pollMetadataVoteCountText",e);this.hasInlineCommentSection&&(G=G>=0,e=_.z1(this.hostElement).querySelector("#action-buttons"),G?e.reply():e.hideReplyDialog())};
_.V.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15317_spinnerEl||(this.JSC$15317_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.z1(this.hostElement).appendChild(this.JSC$15317_spinnerEl));this.JSC$15317_spinnerEl&&(this.JSC$15317_spinnerEl.active=this.isLoading)};
_.V.onYtNavigate=function(G){var e=this.get("updateCommentDialogEndpoint",G.detail.endpoint);e&&(this.openEditDialog(e),G.stopPropagation())};
_.V.onYtCommentboxDismiss=function(){this.editDialog=null};
_.V.onYtCommentPollRevert=function(G,e){e&&this.updatePoll(e.selectedChoiceIndex,e.totalVotes)};
_.V.onYtServiceRequestSent=function(G,e){G.stopPropagation();G=_.a(e.endpoint,j_E);if(_.a(e.endpoint,atP)||G&&!G.clientActions)this.isLoading=!0;if(e.actions)for(G=0;G<e.actions.length;G++){var r=e.actions[G],Z=_.a(r,oa);Z&&(r=this.get("updateBackstagePollAction.selectedChoiceIndex",r),r===void 0&&(r=-1),this.updatePoll(r,Z.totalVotes))}};
_.V.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.V.openEditDialog=function(G){G&&G.dialog&&(this.editDialog=G.dialog,G=this.editDialogElement.firstElementChild)&&(G.focus(),G.openDialog&&G.openDialog())};
_.V.computeIsBodyHidden=function(G,e){return!!G||e};
_.iY.Object.defineProperties(kr.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var G=this.data,e=G.showPostAuthorBackgroundHighlight,r=G.postAuthorBadgeType,Z=G.authorEndpoint;if(!e&&r!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&r!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var O,M,T;G=_.nQ(((O=G.authorText)==null?void 0:(M=O.runs)==null?void 0:(T=M[0])==null?void 0:T.text)||"");O=void 0;switch(r){case "POST_AUTHOR_BADGE_TYPE_ARTIST":O={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":O={iconType:e?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:G,authorEndpoint:Z,authorCreator:e,icon:O}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var G,e;if((G=this.data)==null?0:(e=G.pollMetadataIcon)==null?0:e.iconType)return _.Ne(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.voteCount)||_.nQ("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.a(this.data.backstageAttachment,r5y))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.a(this.data.backstageAttachment,YDc))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.a(this.data.backstageAttachment,y4w))}}});
kr.prototype.onYtServiceRequestCompleted=kr.prototype.onYtServiceRequestCompleted;kr.prototype.onYtServiceRequestSent=kr.prototype.onYtServiceRequestSent;kr.prototype.onYtCommentPollRevert=kr.prototype.onYtCommentPollRevert;kr.prototype.onYtCommentboxDismiss=kr.prototype.onYtCommentboxDismiss;kr.prototype.onYtNavigate=kr.prototype.onYtNavigate;kr.prototype.isLoadingChanged=kr.prototype.isLoadingChanged;kr.prototype.dataChanged=kr.prototype.dataChanged;kr.prototype.contentTextChanged=kr.prototype.contentTextChanged;
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],kr.prototype,"actionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],kr.prototype,"rendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],kr.prototype,"rendererstamperBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],kr.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.hs("#contentTextExpander"),_.x("design:type",Object)],kr.prototype,"expander",void 0);_.B([_.hs("#edit-dialog"),_.x("design:type",Element)],kr.prototype,"editDialogElement",void 0);_.B([_.n(),_.x("design:type",Object)],kr.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],kr.prototype,"hasInlineCommentSection",void 0);_.B([_.n(),_.x("design:type",Object)],kr.prototype,"editDialog",void 0);_.B([_.n(),_.x("design:type",Object)],kr.prototype,"isLoading",void 0);
_.B([_.n({computed:"computeIsPollHeaderEnabled(data)"}),_.x("design:type",Boolean)],kr.prototype,"isPollHeaderEnabled",void 0);_.B([_.n(),_.x("design:type",Object)],kr.prototype,"shouldHideAuthor",void 0);_.B([_.n(),_.x("design:type",Object)],kr.prototype,"shouldShowVideoTime",void 0);_.B([_.n(),_.x("design:type",Object)],kr.prototype,"isInEngagementPanel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kr.prototype,"hideBorder",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kr.prototype,"usesFullLockup",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kr.prototype,"shouldShowMenuInCompactView",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],kr.prototype,"authorCommentBadge",null);_.B([_.d("isInEngagementPanel"),_.x("design:type",Number),_.x("design:paramtypes",[])],kr.prototype,"postTextMaxLines",null);
_.B([_.d("data.icon.iconType"),_.x("design:type",Object),_.x("design:paramtypes",[])],kr.prototype,"pollIcon",null);_.B([_.Me("data.contentText"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kr.prototype,"contentTextChanged",null);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kr.prototype,"dataChanged",null);
_.B([_.Me("isLoading"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kr.prototype,"isLoadingChanged",null);_.B([_.Om("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],kr.prototype,"onYtNavigate",null);_.B([_.Om("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kr.prototype,"onYtCommentboxDismiss",null);
_.B([_.Om("yt-comment-poll-revert"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],kr.prototype,"onYtCommentPollRevert",null);_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.oV]),_.x("design:returntype")],kr.prototype,"onYtServiceRequestSent",null);
_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],kr.prototype,"onYtServiceRequestCompleted",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],kr.prototype,"voteCount",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],kr.prototype,"commentCount",null);
_.B([_.d("data.backstageAttachment"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kr.prototype,"hasPoll",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kr.prototype,"hasQuiz",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kr.prototype,"hasUploadedVideo",null);_.B([_.c({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],kr);
_.A(kr,"ytd-backstage-post-renderer",function(){if(WzC!==void 0)return WzC;var G=document.createElement("template");_.f(G,'\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="[[authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!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="dismissed" class="style-scope ytd-backstage-post-renderer">\n  <div id="dismissed-content" 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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return WzC=G},{mode:1});var GT3;var HH=function(){var G=_.m.apply(this,arguments)||this;G.editDialog=null;G.showExpandButton=!1;G.isRichGrid=!1;G.usesFullLockup=!1;return G};
_.K(HH,_.m);_.V=HH.prototype;_.V.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"}}}};
_.V.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.V.computeShowExpandButton=function(G){return this.usesCompactLockup||G&&G.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.V.computeUsesCompactLockup=function(G){return!!G.condensedContent};
_.V.computeShowFullContentText=function(G){return!G};
_.V.onYtNavigate=function(G){G=this.get("updateCommentDialogEndpoint",G.detail.endpoint);this.openEditDialog(G)};
_.V.onYtCommentboxDismiss=function(){this.editDialog=null};
_.V.openEditDialog=function(G){G&&G.dialog&&(this.editDialog=G.dialog,G=this.repostEditDialogEl.firstElementChild)&&(G.focus(),G.openDialog&&G.openDialog())};
_.V.onTap=function(G){if(this.data){var e=null;this.usesCompactLockup&&!_.mO(_.na(G)||[],this.hostElement,["YT-IMG-SHADOW"])?e=this.get("navigationEndpoint",this.data):G.target===this.moreButtonEl&&(e=this.get("navigationEndpoint",G.target.data));e&&_.xy(this.hostElement,"yt-navigate",{endpoint:e})}};
HH.prototype.onYtCommentboxDismiss=HH.prototype.onYtCommentboxDismiss;HH.prototype.onYtNavigate=HH.prototype.onYtNavigate;HH.prototype.dataChanged=HH.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],HH.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],HH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],HH.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",Object)],HH.prototype,"editDialog",void 0);_.B([_.n({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],HH.prototype,"usesCompactLockup",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],HH.prototype,"showExpandButton",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],HH.prototype,"isRichGrid",void 0);
_.B([_.n({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.x("design:type",Boolean)],HH.prototype,"showFullContentText",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],HH.prototype,"usesFullLockup",void 0);_.B([_.hs("#more"),_.x("design:type",Object)],HH.prototype,"moreButtonEl",void 0);_.B([_.hs("#repost-content-text"),_.x("design:type",HTMLElement)],HH.prototype,"repostContentTextEl",void 0);
_.B([_.hs("#repost-edit-dialog"),_.x("design:type",HTMLElement)],HH.prototype,"repostEditDialogEl",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],HH.prototype,"dataChanged",null);_.B([_.Om("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],HH.prototype,"onYtNavigate",null);
_.B([_.Om("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],HH.prototype,"onYtCommentboxDismiss",null);_.B([_.c({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],HH);
_.A(HH,"ytd-shared-post-renderer",function(){if(GT3!==void 0)return GT3;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return GT3=G},{mode:1});var e_l;var rNy;var dZ=function(){return _.m.apply(this,arguments)||this};
_.K(dZ,_.m);dZ.prototype.attached=function(){var G=this;this.networkStatusManager||(this.networkStatusManager=new _.e4,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){G.onlineHandler()}))};
dZ.prototype.detached=function(){var G=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){G.onlineHandler()}),delete this.networkStatusManager)};
dZ.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],dZ.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],dZ.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],dZ);
_.A(dZ,"ytd-reload-page-button-renderer",function(){if(rNy!==void 0)return rNy;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);
return rNy=G},{mode:1});var ZuP={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"},ok=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.K(ok,_.m);_.V=ok.prototype;_.V.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.V.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.V.computeHasBodyText=function(G){return!!G.bodyText};
_.V.computeButtons=function(G){var e=[];G.ctaButton&&e.push(G.ctaButton);G.secondaryButton&&e.push(G.secondaryButton);return e};
_.V.computeRendererStyle=function(G){return G.style?G.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():G.icon?"":"no-icon"};
_.V.getIconName=function(G,e){e=e===void 0?!1:e;if(G===void 0)return"";G=this.get("icon.iconType",G);var r;_.R("enable_hlp_client_icon_pick")?r=this.getThemedIcon(G,e):r=G;(e=ZuP[r])||(e="yt-icons");return[e,r].join(":")};
_.V.getThemedIcon=function(G,e){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(G)?e?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(G)?e?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":G};
_.V.isThumbnail=function(G){return!!G.thumbnail};
_.V.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.V.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],ok.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ok.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],ok.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ok.prototype,"data",void 0);
_.B([_.n({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.x("design:type",String)],ok.prototype,"rendererStyle",void 0);_.B([_.n({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.x("design:type",String)],ok.prototype,"iconName",void 0);_.B([_.n({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],ok.prototype,"thumbnail",void 0);_.B([_.n({computed:"computeButtons(data)"}),_.x("design:type",Array)],ok.prototype,"buttons",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],ok.prototype,"isDarkTheme",void 0);_.B([_.n({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],ok.prototype,"hasBodyText",void 0);_.B([_.c({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],ok);
_.A(ok,"ytd-background-promo-renderer",function(){if(e_l!==void 0)return e_l;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return e_l=G},{mode:1});var Ouj;var sp=function(){return _.m.apply(this,arguments)||this};
_.K(sp,_.m);_.iY.Object.defineProperties(sp.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var G,e,r,Z,O,M;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(G=this.data)==null?void 0:(e=G.thumbnail)==null?void 0:e.sampledThumbnailColor,vibrantColorPalette:(r=this.data)==null?void 0:(Z=r.thumbnail)==null?void 0:Z.vibrantColorPalette,darkColorPalette:(O=this.data)==null?void 0:(M=O.thumbnail)==null?void 0:M.darkColorPalette,experimentEnabled:!0}}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],sp.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],sp.prototype,"data",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],sp.prototype,"collectionStack",null);_.B([_.c({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],sp);
_.A(sp,"ytd-compact-station-renderer",function(){if(Ouj!==void 0)return Ouj;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Ouj=G},{mode:1});var MhW;var Qs=function(){var G=_.m.apply(this,arguments)||this;G.isRichGrid=!1;return G};
_.K(Qs,_.m);Qs.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]]"}}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Qs.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Qs.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Qs.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Qs.prototype,"isRichGrid",void 0);_.B([_.c({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],Qs);
_.A(Qs,"ytd-grid-channel-renderer",function(){if(MhW!==void 0)return MhW;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return MhW=G},{mode:1});var VhE;var Ik=function(){return _.m.apply(this,arguments)||this};
_.K(Ik,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Ik.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Ik.prototype,"data",void 0);_.B([_.c({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],Ik);
_.A(Ik,"ytd-grid-movie-playlist-renderer",function(){if(VhE!==void 0)return VhE;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return VhE=G},{mode:1});var h_y;var pX=function(){var G=_.m.apply(this,arguments)||this;G.downloadProgress=0;G.transferState="TRANSFER_STATE_UNKNOWN";G.modernButtons=_.R("web_modern_buttons");return G};
_.K(pX,_.m);pX.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
pX.prototype.configureRendererStamper=function(){return{"data.menu":km}};
pX.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
pX.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.R("woffle_playlist_renderer_killswitch")){var G,e=E_$(this.entityInfo,this.transferState,this.downloadProgress,(G=this.data)==null?void 0:G.playlistId,this.isOnline);G=e.viewPlaylistText;var r=e.badges;e=e.thumbnailOverlays;this.isDownloads=!!G||!!r;this.set("data.viewPlaylistText",G);r&&r.length>0&&this.set("data.badges",r);e&&e.length>0&&this.set("data.thumbnailOverlays",
e)}};
_.iY.Object.defineProperties(pX.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 G;return!((G=this.data)==null?0:G.menu)}}});
pX.prototype.transferStateChanged=pX.prototype.transferStateChanged;pX.prototype.dataChanged=pX.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],pX.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.NC),_.x("design:type",Object)],pX.prototype,"ytdLockupBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],pX.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],pX.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.n({selector:_.J4s,selectorArgs:["data.playlistId"]}),_.x("design:type",Object)],pX.prototype,"downloadProgress",void 0);_.B([_.n({selector:_.fQ,selectorArgs:["data.playlistId"]}),_.x("design:type",Object)],pX.prototype,"transferState",void 0);_.B([_.n({selector:FcS,selectorArgs:["data.playlistId"]}),_.x("design:type",Object)],pX.prototype,"entityInfo",void 0);_.B([_.n({selector:_.Xs}),_.x("design:type",Boolean)],pX.prototype,"isOnline",void 0);
_.B([_.n(),_.x("design:type",Object)],pX.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],pX.prototype,"downloadRenderData",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],pX.prototype,"modernButtons",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],pX.prototype,"isDownloads",void 0);_.B([_.d("transferState"),_.n({reflectToAttribute:!0}),_.x("design:type",String),_.x("design:paramtypes",[])],pX.prototype,"downloadState",null);
_.B([_.d("data"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],pX.prototype,"menuHidden",null);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pX.prototype,"dataChanged",null);_.B([_.iD("transferState","downloadProgress","isOnline"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pX.prototype,"transferStateChanged",null);
_.B([_.c({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],pX);
_.A(pX,"ytd-grid-playlist-renderer",function(){if(h_y!==void 0)return h_y;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return h_y=G},{mode:1});var TYS;var CX=function(){return _.m.apply(this,arguments)||this};
_.K(CX,_.m);CX.prototype.configureRendererStamper=function(){return{"data.menu":km,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.iY.Object.defineProperties(CX.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var G,e,r,Z,O,M;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(G=this.data)==null?void 0:(e=G.thumbnail)==null?void 0:e.sampledThumbnailColor,vibrantColorPalette:(r=this.data)==null?void 0:(Z=r.thumbnail)==null?void 0:Z.vibrantColorPalette,darkColorPalette:(O=this.data)==null?void 0:(M=O.thumbnail)==null?void 0:M.darkColorPalette,experimentEnabled:!0}}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],CX.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],CX.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.k(_.NC),_.x("design:type",Object)],CX.prototype,"ytdLockupBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],CX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],CX.prototype,"data",void 0);
_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],CX.prototype,"collectionStack",null);_.B([_.c({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],CX);
_.A(CX,"ytd-grid-radio-renderer",function(){if(TYS!==void 0)return TYS;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return TYS=G},{mode:1});var Dsv;var uK=function(){return _.m.apply(this,arguments)||this};
_.K(uK,_.m);uK.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
uK.prototype.computeNavigationEndpoint=function(G){return neS(G==null?void 0:G.navigationEndpoint)};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],uK.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],uK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.NC),_.x("design:type",Object)],uK.prototype,"ytdLockupBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],uK.prototype,"data",void 0);_.B([_.n({computed:"computeNavigationEndpoint(data)"}),_.x("design:type",Object)],uK.prototype,"computedNavigationEndpoint",void 0);
_.B([_.c({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],uK);
_.A(uK,"ytd-grid-show-renderer",function(){if(Dsv!==void 0)return Dsv;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Dsv=G},{mode:1});var E7W;_.nX=function(G){this.playerClient=G};
_.iuC=function(G,e,r){r=r===void 0?{}:r;return G.playerClient.setOption("ad",e,r)};
_.nX.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.nX.prototype.executeCommand=function(G,e){this.getOptions().includes("executeCommand")?_.iuC(this,"executeCommand",{command:G,layoutId:e}):_.s2("Calling executeCommand when adModule is not loaded")};var mj=function(){return _.m.apply(this,arguments)||this};
_.K(mj,_.m);mj.prototype.getLayoutId=function(){var G=_.Lz("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.layoutId:null};
mj.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var G=_.Ff(),e=this.getLayoutId(),r=this.data.clickthroughEndpoint;G&&e&&_.R("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?G.getPlayerPromise().then(function(Z){(new _.nX(Z)).executeCommand(r,e)}):_.xy(this.hostElement,"yt-navigate",{endpoint:r})}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],mj.prototype,"data",void 0);_.B([_.c({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],mj);
_.A(mj,"ytd-shopping-companion-item-renderer",function(){if(E7W!==void 0)return E7W;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return E7W=G},{mode:1});var buv;var cH=function(){var G=_.m.apply(this,arguments)||this;G.isExpandableContent=!1;return G};
_.K(cH,_.m);_.iY.Object.defineProperties(cH.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return((G=this.data)==null?void 0:G.price)||((e=this.data)==null?void 0:(r=e.dealsData)==null?void 0:r.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var G,e;if((G=this.data)!=null&&G.dealsData&&((e=this.data)==null||!e.priceReplacementText)){G=this.data.dealsData;var r,Z,O;return((r=G.salesData)==null?void 0:r.originalPrice)||((Z=G.priceDropData)==null?void 0:Z.referencePrice)||((O=G.promotionData)==null?void 0:O.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var G,e;return(G=this.data)==null?void 0:(e=G.dealsData)==null?void 0:e.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],cH.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],cH.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],cH.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],cH.prototype,"isExpandableContent",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],cH.prototype,"showCta",null);
_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],cH.prototype,"ctaText",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],cH.prototype,"hasPriceTopPosition",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],cH.prototype,"hasPriceBottomPosition",null);_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],cH.prototype,"useNewStyle",null);
_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],cH.prototype,"showPriceReplacementText",null);_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],cH.prototype,"priceValue",null);_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],cH.prototype,"showDeal",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],cH.prototype,"showAffiliateDisclaimer",null);
_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],cH.prototype,"useSaleStyle",null);_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],cH.prototype,"useFromBrandCtaStyle",null);_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],cH.prototype,"useFromVendorCtaStyle",null);
_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],cH.prototype,"useShoppingCollectionCtaStyle",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],cH);
_.A(cH,"ytd-vertical-product-card-renderer",function(){if(buv!==void 0)return buv;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return buv=G},{mode:1});var v7E;var Yr=function(){return _.m.apply(this,arguments)||this};
_.K(Yr,_.m);Yr.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Yr.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Yr.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.NC),_.x("design:type",Object)],Yr.prototype,"ytdLockupBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Yr.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],Yr);
_.A(Yr,"ytd-grid-movie-renderer",function(){if(v7E!==void 0)return v7E;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return v7E=G},{mode:1});var wDW;var ys=function(){var G=_.m.apply(this,arguments)||this;G.roundedFix=_.R("web_enable_merch_item_rounding_fix");G.itemStyle="small-item";return G};
_.K(ys,_.m);ys.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var G,e,r,Z,O=(e=_.a((G=this.data)==null?void 0:G.buttonCommand,_.R9P))==null?void 0:(r=e.item)==null?void 0:(Z=r.notificationTextRenderer)==null?void 0:Z.successResponseText;O&&_.tns(this.hostElement,O)}};
_.iY.Object.defineProperties(ys.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var G,e;return((G=this.data)==null?void 0:G.isProductPlaceholder)!==void 0&&((e=this.data)==null?void 0:e.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.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}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ys.prototype,"ytRendererBehavior",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],ys.prototype,"roundedFix",void 0);_.B([_.n(),_.x("design:type",Object)],ys.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],ys.prototype,"itemStyle",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ys.prototype,"hasPrice",null);
_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ys.prototype,"hasPriceReplacementText",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ys.prototype,"hasAdditionalFeesText",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ys.prototype,"hasAffiliateDisclaimer",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ys.prototype,"isProductPlaceholder",null);
_.B([_.n(),_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ys.prototype,"hideOpenInNewIcon",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ys.prototype,"ariaLabel",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],ys);
_.A(ys,"ytd-merch-shelf-item-renderer",function(){if(wDW!==void 0)return wDW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return wDW=G},{mode:1});_.J_(_.y(function(G){return _.v("button-card-view-model",{el:_.cQ(_.jV(function(){return G.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return G.data().title},
role:"button"},_.v(_.ED,{model:{}}),_.v("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.v("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.v(_.S,{cond:function(){return G.data().image},
then:function(e){return _.v(_.nC,{data:e,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.v("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return G.data().title})))},"$b"),"button-card-view-model",{props:{data:_.N6}});_.J_(_.y(function(G){G=_.cx(G,{className:void 0});var e=G.data;G=G.className;var r=_.dw(function(){return e().onTapCommand},void 0,"SXkP9e");
return _.v("ytd-shopping-item-card",{class:_.LC("ytdShoppingItemCardHost",G)},_.v(_.Ds,{command:r,className:"ytdShoppingItemCardHostLink"},_.v("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.v(_.E2,{data:function(){return e().thumbnailViewModel}},{thumbnailViewModel:function(Z){return _.v(_.DA,{data:Z.data,
aspectRatio:3})}})),_.v("div",null,_.v("p",{class:"ytdShoppingItemCardHostItemTitle"},_.v(_.Wh,{text:function(){return e().itemTitle}})),_.v("p",{class:"ytdShoppingItemCardHostPrice"},_.v(_.Wh,{text:function(){return e().priceOrStatus}})))))},"ac"),"ytd-shopping-item-card",{props:{data:_.N6,
className:_.N6}});var $sW={isAdsVideo:!0},SRP={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},qRj={showPlayerControls:!1,videoPreviewDurationMs:15E3},thE={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0},g7y={showPlayerControls:!0,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0,hideTimeDisplay:!0,hideCaptionsToggleButton:!0,
hideScrubber:!0};var IH=null,gQ_={};var jva="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(" "),AE={},a4p=(AE.FEwhat_to_watch="home",AE.FEhashtag="hashtag",AE.FEtrending="trending",AE.FEhistory="history",AE.SPunlimited="premium",AE.FEmemberships_and_purchases="paid_memberships",AE.SPredeem_code="redeem",AE.SPverify_location="locate",AE.SPminor_moment="minor_moment",
AE.FEmini_app_container="mini_app",AE.FEnews_destination="news",AE.SPopen_in_app="open_in_app",AE.FEexplore="explore",AE.FEsubscriptions="subscriptions",AE.FEsfv_audio_pivot="sfv_audio_pivot",AE.FEplaylist_aggregation="playlist_aggregation",AE);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");_.Nz("init");var lyw=function(){},XDW=_.y(function(G){var e=G.data;
var r=G.inlineMetadata;var Z=G.aspectRatio;var O=G.scrimStyle;var M=G.className;var T=G.useDefaultStyle;var E=G.titleStyle;var b=new lyw,w=_.R("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",q=_.dw(function(){return(T==null?0:T())?w==="SHORTS_LOCKUP_STYLE_SLIM":e().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"CIGaAf"),t=_.dw(function(){return _.FQ(r)||q()||!1},void 0,"SEL6Qd"),g=function(){return(O==null?void 0:O())!==void 0?O==null?void 0:O():1},
l=_.dw(function(){return e().belowThumbnailMetadata||!t()},void 0,"KAqk1b");
G=_.vJ({visibilityCallback:function(Dq){var bF=e().onFirstVisible;Dq&&bF&&_.HQ(bF)},
showOption:{calledOnce:!0,state:"visible"}});var X=_.cQ(),H={},I=_.LC(function(){return q(),"shortsLockupViewModelHostThumbnailContainer"},(H.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.FQ(Z)===1},H.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.FQ(Z)===2},H.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.R("web_shorts_2_by_3_lockups_study")&&!_.R("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
H)),C=_.dw(function(){if(_.FQ(Z)===1)return 1;
_.FQ(Z);return 2},void 0,"Bg5Es"),u,P=function(){if(b){var Dq;
(Dq=u)==null||nx(Dq);var bF;if(b.hostElement&&((bF=b.data)==null?0:bF.inlinePlayerData)){var Kf,ti;Dq=((Kf=b.data)==null?0:(ti=Kf.inlinePlayerData)==null?0:ti.enableAudioControl)?Object.assign({},g7y):Object.assign({},thE);var Ry,nf;((Ry=b.data)==null?void 0:(nf=Ry.inlinePlayerData)==null?void 0:nf.maxPlaybackLengthSec)!==void 0&&(Dq.videoPreviewDurationMs=b.data.inlinePlayerData.maxPlaybackLengthSec*1E3);u=XK({mediaRenderer:b,lockupElement:b.hostElement,thumbnailElement:X.value,videoPreviewOpts:Dq})}}};
_.Y8(function(){b&&(b.data=e(),P())},"wo9C7e");
var F=_.dw(function(){return e().thumbnail},void 0,"haijYd");
H=_.dw(function(){return e().badge},void 0,"RpDeSe");
var J=_.dw(function(){return e().onTap},void 0,"hOfuOb"),U={},e$={};
return _.v("ytm-shorts-lockup-view-model",{el:_.cQ(function(Dq){b&&(b.hostElement=Dq)},P,G),
class:_.LC("shortsLockupViewModelHost",M)},_.v(_.$Z,null,_.v(_.Ds,{command:J,className:_.LC("shortsLockupViewModelHostEndpoint",(U.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!l()},U),"reel-item-endpoint",""),
ariaHidden:function(){return!t()},
tabIndex:function(){return t()?0:-1}},_.v("div",{el:X,
class:_.LC("shortsLockupViewModelHostThumbnailParentContainer",(e$.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!q()},e$))},_.v(_.S,{cond:F,
then:function(){return _.v("div",{class:I},_.v(_.nC,{data:function(){var Dq;return(Dq=F==null?void 0:F())!=null?Dq:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.v(_.E2,{data:function(){return e().thumbnailViewModel}},{thumbnailViewModel:function(Dq){return _.v(_.DA,{data:Dq.data,
aspectRatio:function(){return C()},
disableRounding:function(){return q()}})}}),null),_.v(_.S,{cond:t,
then:function(){return _.v(R_E,{data:e,scrimStyle:g,useDefaultStyle:T,titleStyle:E})}}),_.v(_.E2,{data:H},{badgeViewModel:function(Dq){return _.v(_.vH,{data:Dq.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.v(_.S,{cond:function(){return t()&&e().menuOnTap},
then:function(){return _.v(jzc,{data:e,inlineMetadata:!0})}}),_.v(_.S,{cond:l,
then:function(){return _.v(ayc,{data:e,useDefaultStyle:T,inlineMetadata:t})}})))},"cc"),R_E=_.y(function(G){var e=G.data;
var r=G.scrimStyle;var Z=G.useDefaultStyle;var O=G.titleStyle;var M=_.R("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",T=Z&&_.R("web_hide_primary_text_for_pivot_panel"),E=_.dw(function(){return(Z==null?0:Z())?M==="SHORTS_LOCKUP_STYLE_SLIM":e().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"c5smEd");
G={};G=_.LC("shortsLockupViewModelHostInlineMetadata",(G.shortsLockupViewModelHostMetadataRounded=function(){return!E()},G.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(r==null?void 0:r())===3&&!_.R("enable_shorts_lockup_new_scrim")},G.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(r==null?void 0:r())===3&&_.R("enable_shorts_lockup_new_scrim")},G.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(r==null?void 0:r())===2||(r==null?void 0:
r())===4},G.shortsLockupViewModelHostShowOverPlayer=function(){return!0},G),"image-overlay-text");
var b={};return _.v("div",{class:G},_.v("h3",{class:_.LC("shortsLockupViewModelHostMetadataTitle",(b.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(r==null?void 0:r())===4},b.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return e().belowThumbnailMetadata},b.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(O==null?void 0:O())===1},b.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(O==null?void 0:O())===2},b)),
"aria-label":function(){return e().accessibilityText}},_.v(_.S,{cond:function(){var w;
return!((w=e().overlayMetadata)==null||!w.primaryText)&&!T},
then:function(){return _.v(_.Wh,{text:function(){var w;return(w=e().overlayMetadata)==null?void 0:w.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.v(_.S,{cond:function(){var w;
return(w=e().overlayMetadata)==null?void 0:w.secondaryText},
then:function(){return _.v(Khw,{data:e,scrimStyle:r,className:void 0})}}))},"dc"),ayc=_.y(function(G){var e=G.data;
var r=G.useDefaultStyle;var Z=G.inlineMetadata;var O=_.R("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",M=_.dw(function(){return(r==null?0:r())?O==="SHORTS_LOCKUP_STYLE_SLIM":e().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"hn3pLe"),T=_.cQ(),E;
G=_.ev(function(l){if(_.g8(_.tI(l),T.value,["AVATAR-VIEW-MODEL"]))return!1;var X;(X=E)==null||X.click();return!1});
var b=_.dw(function(){return e().belowThumbnailMetadata||e().overlayMetadata},void 0,"GwezKf"),w=function(){return e().menuOnTap&&!Z()},q=function(){var l;
return(l=b())==null?void 0:l.avatar},t={},g={};
return _.v("div",{class:_.LC(function(){return M()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(t.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!q()},t.shortsLockupViewModelHostOutsideMetadataHasMenu=w,t)),
"on:click":G,el:T,role:"presentation"},_.v(_.E2,{data:q},{avatarViewModel:function(l){return _.v("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.v(_.yy,{data:l.data}))}}),_.v("div",null,_.v("h3",{class:_.LC("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(g.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var l,X;
return!((l=b())==null?0:(X=l.primaryText)==null?0:X.content)},g.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=Z,g)),
role:"presentation"},_.v(_.Ds,{ref:function(l){return void(E=l)},
command:function(){return e().onTap},
className:_.LC("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var l,X;return(l=b())==null?void 0:(X=l.primaryText)==null?void 0:X.content},
"aria-label":function(){return e().accessibilityText}},_.v(_.S,{cond:function(){var l;
return(l=b())==null?void 0:l.primaryText},
then:function(l){return _.v(_.Wh,{text:l,noEndpoints:!0,noStyleRuns:!0})}}))),_.v(_.S,{cond:function(){var l;
return(l=b())==null?void 0:l.secondaryText},
then:function(l){return _.v("div",{class:_.LC("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.v(_.Wh,{text:l,noStyleRuns:!0}))}})),_.v(_.S,{cond:w,
then:function(){return _.v(jzc,{data:e,inlineMetadata:!1})}}))},"ec"),Khw=_.y(function(G){var e=G.data;
var r=G.scrimStyle;G=G.className;var Z={};return _.v("div",{class:_.LC((Z.shortsLockupViewModelHostMetadataSubhead=function(){return(r==null?void 0:r())!==4},Z.shortsLockupViewModelHostMetadataSubheadNew=_.R("enable_shorts_lockup_new_scrim"),Z.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(r==null?void 0:r())===4},Z),G),
"aria-hidden":"true"},_.v(_.Wh,{text:function(){var O;return(O=e().overlayMetadata)==null?void 0:O.secondaryText},
noStyleRuns:!0}))},"fc"),jzc=_.y(function(G){var e=G.data;
var r=G.inlineMetadata;G={};G=_.LC((G.shortsLockupViewModelHostInlineMetadataMenu=function(){return r()},G.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!r()},G.shortsLockupViewModelHostShowOverPlayer=function(){return!0},G),"image-overlay-text");
return _.v("div",{class:G},_.v(_.vk,{data:function(){return{style:r()?"overlay":"mono",accessibilityLabel:e().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(Z){Z.preventDefault();Z.stopPropagation();var O=_.fC({elementsCommand:e().menuOnTap,forceNewState:!0});if(O==null?0:O.onclick)O.onclick(Z)}}},
iconName:"MORE_VERT"}))},"gc");var fyE=_.y(function(G){var e=G.data;var r=G.inlineMetadata;var Z=G.aspectRatio;var O=G.scrimStyle;var M=G.className;var T=G.useDefaultStyle;G=_.dw(function(){var E=e().entityId;return E?E.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.v("ytm-shorts-lockup-view-model-v2",{class:_.LC("shortsLockupViewModelHost",M)},_.v(_.qR,{contentId:G,aspectRatio:function(){return(Z==null?void 0:Z())===1?1:(Z==null?void 0:Z())===2?2:4}},function(){return _.v(XDW,{data:e,
inlineMetadata:r,aspectRatio:Z,scrimStyle:O,className:M,useDefaultStyle:T})}))},"hc");_.J_(fyE,"ytm-shorts-lockup-view-model-v2",{props:{data:_.yb,inlineMetadata:_.yb,aspectRatio:_.yb,scrimStyle:_.yb,className:_.yb,useDefaultStyle:_.yb,titleStyle:_.yb}});var kTC=16/9*210,FS=function(){var G=_.m.apply(this,arguments)||this;G.isExpandableContent=!1;G.hideShelfHeader=!1;G.engagementPanel=!1;G.buttonClasses=["arrow"];G.isSearch=!1;G.disableScrollEventListener=!1;G.containsLockup=!1;G.overrideArrowPositionForProductCard=!1;G.overrideArrowPositionForShoppingItemCard=!1;G.overrideArrowPositionForReelItems=!1;G.overrideArrowPositionForGridMovie=!1;G.overrideArrowPositionToCenter=!1;G.isSearchPostShelf=!1;G.overrideArrowPositionForMixedShelf=!1;G.overrideArrowPositionForMixedShelfShortsOnly=
!1;G.hasBigThumbsReelItems=!1;G.shouldUseMixedListHeight=!1;G.shouldUseShortsListHeight=!1;G.gridVideoWidth=0;G.isSearchVodShelf=!1;G.disableWheelScroll=!1;G.sizing="COMPACT";G.shortsLockupAspectRatio=0;return G};
_.K(FS,_.m);_.V=FS.prototype;
_.V.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]]"}}}}};
_.V.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.R("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.V.computeInitialCountNumber=function(G){if(!G)return 6;var e=G.items.some(function(M){return!!M.topicRecommendationsChipRenderer}),r=G.items.some(function(M){return!!M.displayAdRenderer}),Z=this.computeShouldListItemsHaveEqualHeight(G),O=G.items.some(function(M){return!!M.gridPlaylistRenderer});
G=G.items.some(function(M){return!!M.shoppingItemCardViewModel});
return e?9:r?8:O||Z?10:G?7:6};
_.V.computeContainsPost=function(G){return!!G&&!!G.items&&G.items.some(function(e){return!!e.postRenderer})};
_.V.computeContainsLockup=function(){if(_.R("web_horizontal_list_lockup_arrow_killswitch"))return!1;var G,e;return(G=this.data)==null?void 0:(e=G.items)==null?void 0:e.some(function(r){return!!r.lockupViewModel})};
_.V.maybeUpdateLockupAspectRatio=function(){var G,e;if(this.computeContainsLockup()&&((G=this.data)==null?0:(e=G.items)==null?0:e.length)){var r;G=FPA((r=this.data.items[0].lockupViewModel)==null?void 0:r.contentType,this.data.force16By9ThumbnailAspectRatio);r=yg_(G);r=this.computeLockupWidth()/r;_.eD(this.hostElement,{"--yt-horizontal-list-content-height":r+"px"})}};
_.V.computeOverrideArrowPositionForProductCard=function(G){if(this.isExpandableContent)return!1;var e;return!!(G==null?0:(e=G.items)==null?0:e.some(function(r){return!!r.verticalProductCardRenderer}))};
_.V.computeOverrideArrowPositionForShoppingItemCard=function(G){var e;return!!(G==null?0:(e=G.items)==null?0:e.some(function(r){return!!r.shoppingItemCardViewModel}))};
_.V.computeOverrideArrowPositionForReelItemRenderer=function(G){return this.containsReelItemRenderer(G)};
_.V.computeHasBigThumbsReelItems=function(G,e){return G&&this.containsReelItemRenderer(e)};
_.V.computeShouldListItemsHaveEqualHeight=function(G){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(G==null?void 0:G.itemSizeConstraint)};
_.V.computeShouldListItemsHaveShortsHeight=function(G){return this.computeShouldListItemsHaveEqualHeight(G)&&!this.containsGridVideoRenderer(G)};
_.V.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.V.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.V.containsReelItemRenderer=function(G){var e;return!!(G==null?0:(e=G.items)==null?0:e.some(function(r){return!(!r.reelItemRenderer&&!r.shortsLockupViewModel)}))};
_.V.containsGridVideoRenderer=function(G){var e;return!!(G==null?0:(e=G.items)==null?0:e.some(function(r){return!!r.gridVideoRenderer||!!r.lockupViewModel}))};
_.V.computeContainsGridMovieRenderer=function(G){var e;return!!(G==null?0:(e=G.items)==null?0:e.some(function(r){return!!r.gridMovieRenderer}))};
_.V.computeOverrideArrowPositionToCenter=function(G){return this.computeIsSearchPostShelf(G)};
_.V.computeIsSearchPostShelf=function(G){var e;return!!(G==null?0:(e=G.items)==null?0:e.some(function(r){var Z,O;return((O=(Z=r.postRenderer)==null?void 0:Z.surface)!=null?O:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.V.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(G){var e;return!!(G==null?0:(e=G.items)==null?0:e.some(function(r){var Z,O,M;return((M=(Z=r.backgroundPromoRenderer)==null?void 0:(O=Z.style)==null?void 0:O.value)!=null?M:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.V.computeIsSearchVodShelf=function(G,e){return G&&this.containsGridVideoRenderer(e)};
_.V.computeDisableWheelScroll=function(G,e){return this.computeIsSearchVodShelf(G,e)};
_.V.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.V.computeShortsLockupAspectRatio=function(){return 1};
_.V.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.eD(this.hostElement,{"--ytd-reel-item-thumbnail-height":kTC+"px"})};
FS.prototype.dataChanged=FS.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],FS.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],FS.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.E1.YtdHorizontalListBehavior),_.x("design:type",Object)],FS.prototype,"ytdHorizontalListBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],FS.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",Object)],FS.prototype,"isExpandableContent",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],FS.prototype,"hideShelfHeader",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],FS.prototype,"engagementPanel",void 0);_.B([_.n(),_.x("design:type",Array)],FS.prototype,"buttonClasses",void 0);_.B([_.n(),_.x("design:type",Object)],FS.prototype,"isSearch",void 0);
_.B([_.n(),_.x("design:type",Object)],FS.prototype,"disableScrollEventListener",void 0);_.B([_.n({computed:"computeInitialCountNumber(data)"}),_.x("design:type",Number)],FS.prototype,"initialCount",void 0);_.B([_.n({computed:"computeContainsPost(data)"}),_.x("design:type",Boolean)],FS.prototype,"supportComponentResize",void 0);_.B([_.n({computed:"computeContainsPost(data)"}),_.x("design:type",Boolean)],FS.prototype,"containsPost",void 0);
_.B([_.n({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.x("design:type",Object)],FS.prototype,"containsLockup",void 0);_.B([_.n({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],FS.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.B([_.n({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.x("design:type",Object)],FS.prototype,"overrideArrowPositionForProductCard",void 0);_.B([_.n({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.x("design:type",Object)],FS.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.B([_.n({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.x("design:type",Object)],FS.prototype,"overrideArrowPositionForReelItems",void 0);_.B([_.n({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.x("design:type",Object)],FS.prototype,"overrideArrowPositionForGridMovie",void 0);
_.B([_.n({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.x("design:type",Object)],FS.prototype,"overrideArrowPositionToCenter",void 0);_.B([_.n({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.x("design:type",Object)],FS.prototype,"isSearchPostShelf",void 0);_.B([_.n({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.x("design:type",Object)],FS.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.B([_.n({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.x("design:type",Object)],FS.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.B([_.n({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.x("design:type",Object)],FS.prototype,"hasBigThumbsReelItems",void 0);
_.B([_.n({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.x("design:type",Object)],FS.prototype,"shouldUseMixedListHeight",void 0);_.B([_.n({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.x("design:type",Object)],FS.prototype,"shouldUseShortsListHeight",void 0);_.B([_.n({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.x("design:type",Object)],FS.prototype,"gridVideoWidth",void 0);
_.B([_.n({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.x("design:type",Object)],FS.prototype,"isSearchVodShelf",void 0);_.B([_.n({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.x("design:type",Object)],FS.prototype,"disableWheelScroll",void 0);_.B([_.n({computed:"computeSizing(isSearch)"}),_.x("design:type",Object)],FS.prototype,"sizing",void 0);
_.B([_.n({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.x("design:type",Object)],FS.prototype,"shortsLockupAspectRatio",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FS.prototype,"dataChanged",null);
_.A(FS,"yt-horizontal-list-renderer",function(){if(HAP===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);HAP=G}G=HAP;return G},{mode:1});var HuC=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
HuC.prototype.subscribe=function(G,e){var r=this.subscriptions.get(G);if(!r)return function(){};
r.add(e);return function(){r.delete(e)}};
HuC.prototype.unsubscribe=function(G,e){(G=this.subscriptions.get(G))&&G.delete(e)};
HuC.prototype.publish=function(G,e){e=e===void 0?{}:e;(G=this.subscriptions.get(G))&&G.forEach(function(r){r(e)})};var dsv;var o7n=[10,12,14,16,18,20,24,28,32,36],sz3=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],JE=function(){var G=_.m.apply(this,arguments)||this;G.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";G.hideOverflow=!1;G.useRoboto=!1;G.fontClass="";G.overflown=!1;G.actionMap={"yt-window-resized":"resize"};return G};
_.K(JE,_.m);_.V=JE.prototype;
_.V.attached=function(){var G=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();_.DE(this,function(){G.resize()});
if(!_.zx){var e,r,Z;(e=document)==null||(r=e.fonts)==null||(Z=r.ready)==null||Z.then(function(){G.resize()})}};
_.V.dataChanged=function(){this.resize()};
_.V.guideIsExpandedChanged=function(){this.resize()};
_.V.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 G=this.getMaxNumLines(),e=this.getMinFont(),r=this.getMaxFont(),Z=this.useRoboto?o7n:sz3;for(Z=Z.filter(function(M){return M<=r&&M>=e});Z.length>1;){var O=Math.floor(Z.length/2);
this.updateFontSize(Z[O]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=G)Z=Z.slice(O,Z.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>G)Z=Z.slice(0,O);else break}this.updateFontSize(Z[Z.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(G)}};
_.V.handleOverflow=function(G){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>G&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",G.toString()))};
_.V.updateFontSize=function(G){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+G;this.textNode.classList.add(this.fontClass)};
_.V.getMaxFont=function(){var G=this.useRoboto?o7n:sz3;G=G[G.length-1];return this.maxFontSize&&this.maxFontSize<=G?this.maxFontSize:G};
_.V.getMinFont=function(){var G=(this.useRoboto?o7n:sz3)[0];return this.minFontSize&&this.minFontSize>=G?this.minFontSize:G};
_.V.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.V.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.V.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.mG(this.text).split("\n").length-1:Infinity};
_.V.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("Jh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
JE.prototype.guideIsExpandedChanged=JE.prototype.guideIsExpandedChanged;JE.prototype.dataChanged=JE.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],JE.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],JE.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],JE.prototype,"actionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],JE.prototype,"text",void 0);
_.B([_.n(),_.x("design:type",String)],JE.prototype,"fontFamily",void 0);_.B([_.n(),_.x("design:type",Number)],JE.prototype,"maxWidth",void 0);_.B([_.n(),_.x("design:type",Number)],JE.prototype,"maxHeight",void 0);_.B([_.n(),_.x("design:type",Number)],JE.prototype,"maxFontSize",void 0);_.B([_.n(),_.x("design:type",Number)],JE.prototype,"minFontSize",void 0);_.B([_.n(),_.x("design:type",Number)],JE.prototype,"maxLines",void 0);_.B([_.n(),_.x("design:type",Object)],JE.prototype,"hideOverflow",void 0);
_.B([_.n({selector:_.sq$}),_.x("design:type",Boolean)],JE.prototype,"guideIsExpanded",void 0);_.B([_.hs("#container"),_.x("design:type",HTMLElement)],JE.prototype,"containerNode",void 0);_.B([_.hs("#text"),_.x("design:type",HTMLElement)],JE.prototype,"textNode",void 0);_.B([_.iD("text"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JE.prototype,"dataChanged",null);
_.B([_.iD("guideIsExpanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JE.prototype,"guideIsExpandedChanged",null);_.B([_.c({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],JE);
_.A(JE,"yt-dynamic-sizing-formatted-string",function(){if(dsv!==void 0)return dsv;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return dsv=G},{mode:1});var Qzb;_.Iyl=function(G){_.rs.call(this,G)};
_.K(_.Iyl,_.rs);var pDv=function(G){_.rs.call(this,G)};
_.K(pDv,_.Iyl);var BH=function(){return _.m.apply(this,arguments)||this};
_.K(BH,_.m);BH.prototype.onTapSuspendedChannel=function(){var G;if((G=this.data)!=null&&G.serviceEndpoint){var e,r;(G=(r=_.a((e=this.data)==null?void 0:e.serviceEndpoint,_.G2))==null?void 0:r.url)?_.kN(G,void 0,void 0,window.top):(e=new pDv("Did not handle suspended account tap. No appealUrl."),_.yx(e))}else e=new pDv("Did not handle suspended account tap. No serviceEndpoint."),_.yx(e)};
BH.prototype.onTap=function(){var G=this,e=_.h_(),r,Z=(r=_.OY(e,{veType:7116}))!=null?r:void 0;_.sb(e,{visualElement:Z});_.Ka();this.saveRoleText();var O;if((O=this.data)==null?0:O.youtubeSuspended)this.onTapSuspendedChannel();else{var M=!1,T,E;(e=(E=_.a((T=this.data)==null?void 0:T.serviceEndpoint,_.dCW))==null?void 0:E.supportedTokens)&&e.forEach(function(b){if(b.accountSigninToken)if(M=!0,G.onAccountItemTap)G.onAccountItemTap(b.accountSigninToken.signinUrl);else _.kN(b.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!M){if(T=this.get("serviceEndpoint",this.data))M=!0,this.ytComponentBehavior.resolveCommand(T);M||_.AG(new pDv("Did not handle account switch tap. No token."))}}};
BH.prototype.saveRoleText=function(){if(this.data){var G=this.data,e=G.channelDelegationRole;if(e){var r,Z=(r=_.a(G==null?void 0:G.serviceEndpoint,_.dCW))==null?void 0:r.supportedTokens;if(!Z){var O,M,T,E;Z=(O=_.a(G==null?void 0:G.serviceEndpoint,_.sP))==null?void 0:(M=O.popup)==null?void 0:(T=M.confirmDialogRenderer)==null?void 0:(E=T.confirmButton)==null?void 0:E.buttonRenderer;var b;Z=(b=_.a(Z==null?void 0:Z.command,_.LO))==null?void 0:b.commands;if(!Z)return;var w;Z=(w=_.a(Z[1],_.dCW))==null?
void 0:w.supportedTokens}if(Z){b=void 0;w=_.h(Z);for(Z=w.next();!Z.done;Z=w.next())if(Z=Z.value,Z.datasyncIdToken){b=Z.datasyncIdToken.datasyncIdToken;break}if(b){var q;a:{if(_.PK4()&&(w=_.AyA(b+"::pom"))){w=new kB(w);break a}w=void 0}(q=w)==null||q.set("role_text",e);if((hqN?hqN:window.location).href.indexOf("studio")!==-1&&(q=URA())){w=q.src?(new URL(q.src)).origin:"*";var t;(t=q.contentWindow)==null||t.postMessage({action:"save_pom_role",datasyncId:b,roleText:e},w)}}}}}};
_.iY.Object.defineProperties(BH.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var G,e,r=(G=this.data)==null?void 0:(e=G.accountPhoto)==null?void 0:e.thumbnails;return r&&r.length>0&&(r[0].height===36||r[0].height===48)?r[0].height:40}}});
BH.prototype.onTap=BH.prototype.onTap;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],BH.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],BH.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],BH.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!1}),_.x("design:type",Function)],BH.prototype,"onAccountItemTap",void 0);
_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],BH.prototype,"enableRingForActiveAccount",null);_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],BH.prototype,"thumbnailSize",null);_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],BH.prototype,"onTap",null);_.B([_.c({is:"ytd-account-item-renderer",disableElementRegistration:!0})],BH);
_.A(BH,"ytd-account-item-renderer",function(){if(Qzb!==void 0)return Qzb;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Qzb=G},{mode:1});var C$l;var xr=function(){return _.m.apply(this,arguments)||this};
_.K(xr,_.m);xr.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.v_().resolve(_.$1).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],xr.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],xr.prototype,"data",void 0);_.B([_.c({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],xr);
_.A(xr,"ytd-identity-chip-renderer",function(){if(C$l!==void 0)return C$l;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return C$l=G},{mode:1});var uVj;var n73;var msc;var cNC;var PH=function(){var G=_.m.apply(this,arguments)||this;G.richItemMinWidth=_.qt("wn_grid_min_item_width",310);G.isShorts=!1;G.isWatchNext=!1;G.isExploreHub=!1;return G};
_.K(PH,_.m);_.iY.Object.defineProperties(PH.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var G=[],e=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.eD(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var r;if(((r=this.data)==null?0:r.rows)&&e)for(e*=this.data.rows,r=0;r<e;r++)G.push({});return G}}});
_.B([_.k(_.A5),_.x("design:type",Object)],PH.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],PH.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],PH.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,selector:_.RI,value:3}),_.x("design:type",Number)],PH.prototype,"itemsPerRow",void 0);_.B([_.n({selector:_.o0i,value:6}),_.x("design:type",Number)],PH.prototype,"slimItemsPerRow",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Number)],PH.prototype,"richItemMinWidth",void 0);_.B([_.n({reflectToAttribute:!0,selector:_.lw}),_.x("design:type",Boolean)],PH.prototype,"miniMode",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],PH.prototype,"isShorts",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],PH.prototype,"isWatchNext",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],PH.prototype,"isExploreHub",void 0);
_.B([_.d("isExploreHub"),_.n({reflectToAttribute:!0}),_.x("design:type",Object),_.x("design:paramtypes",[])],PH.prototype,"shimmerAnimation",null);_.B([_.d("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.x("design:type",Array),_.x("design:paramtypes",[])],PH.prototype,"cardItems",null);_.B([_.c({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],PH);
_.YRl=_.xP()(PH,"ytd-ghost-grid-renderer",function(){if(cNC===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);cNC=G}G=cNC;return G},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.J_(_.y(function(G){var e=_.cx(G,{numberOfComments:3}).numberOfComments,r=_.cx(G,{isInitialLoad:!1}).isInitialLoad,Z=_.cx(G,{engagementPanel:!1}).engagementPanel,O=function(){return Math.min(Number(e==null?void 0:e())||20,20)};
return _.v("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.v(_.S,{cond:function(){return!(Z==null?0:Z())&&(r==null?void 0:r())},
then:function(){return _.v("div",{class:"ytGhostCommentsComments"},_.v("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.v("div",{class:_.LC("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.v("div",{class:_.LC("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.v("div",{class:"ytGhostCommentsGhostCard"},_.v("div",{class:"ytGhostCommentsAvatar"},_.v("div",{class:"ytGhostCommentsCircle"})),_.v("div",{class:"ytGhostCommentsComments"},_.v("div",{class:"ytGhostCommentsMeta"},
_.v("div",{class:_.LC("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.v("div",{class:_.LC("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.v("div",{class:"ytGhostCommentsComments"},_.v(_.u6,{each:function(){return Array((O==null?void 0:O())||3)}},function(){return _.v("div",{class:"ytGhostCommentsGhostCard"},_.v("div",{class:"ytGhostCommentsAvatar"},_.v("div",{class:"ytGhostCommentsCircle"})),_.v("div",{class:"ytGhostCommentsHost"},_.v("div",{class:"ytGhostCommentsMeta"},
_.v("div",{class:_.LC("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.v("div",{class:_.LC("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.v("div",{class:_.LC("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.v("div",{class:"ytGhostCommentsGhostLikeDislike"},_.v("div",{class:_.LC("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.v("div",{class:_.LC("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"ic"),"yt-ghost-comments",{props:{numberOfComments:_.N6,
isInitialLoad:_.N6,engagementPanel:_.N6},unsafeExternallySettableAttributes:new Set(["hidden"])});_.te("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var Up=function(){var G=_.m.apply(this,arguments)||this;G.isOverridable=!1;G.spinnerActive=!1;G.showButton=!1;G.isCommentsSection=!1;G.engagementPanel=!0;G.isShortsGrid=!1;G.isShortsPage=!1;G.isWatchPage=!1;G.originalShowButton=!1;G.endOfList=!1;return G};
_.K(Up,_.m);_.V=Up.prototype;_.V.resetIntersectionObserver=function(){var G;(G=this.observer)==null||G.disconnect();this.observer=void 0};
_.V.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var G,e;((G=this.data)==null?void 0:G.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((e=this.data)==null?0:e.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.V.initializeIntersectionObserver=function(){var G=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(e){e=_.h(e);for(var r=e.next();!r.done;r=e.next())r.value.isIntersecting&&(G.triggerContinuation(),G.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.V.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},showGhostCardComments:{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]]"}}}}}};
_.V.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var G;((G=this.data)==null?0:G.continuationEndpoint)&&(G=_.a(this.data.continuationEndpoint,_.f1))&&this.ytdReduxBehavior.dispatch(_.UK({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:G}}))};
_.V.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.V.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.V.onServiceRequestCompleted=function(G,e){if(!_.R("kevlar_hide_spinner_on_empty_continuation_killswitch")){var r;(r=e.actions)!=null&&r.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.V.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.V.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.V.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.V.numberOfGhostCommentsChanged=function(){var G=3;if(this.engagementPanel){var e,r,Z;G=Math.floor(((((e=this.hostElement)==null?void 0:(r=e.parentElement)==null?void 0:(Z=r.parentElement)==null?void 0:Z.scrollHeight)||108)-108)/108);G=this.isInitialLoad?Math.max(G,3):3}e=[].concat(_.mY(this.hostElement.querySelectorAll("yt-ghost-comments")));e=_.h(e);for(r=e.next();!r.done;r=e.next())r=r.value,r.numberOfComments=G,r.isInitialLoad=this.isInitialLoad,r.engagementPanel=this.engagementPanel};
_.V.detached=function(){this.resetIntersectionObserver()};
_.iY.Object.defineProperties(Up.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
Up.prototype.numberOfGhostCommentsChanged=Up.prototype.numberOfGhostCommentsChanged;Up.prototype.continuationTriggerOffsetChanged=Up.prototype.continuationTriggerOffsetChanged;Up.prototype.showButtonChanged=Up.prototype.showButtonChanged;Up.prototype.onYtServiceRequestCompletedForButtonRenderer=Up.prototype.onYtServiceRequestCompletedForButtonRenderer;Up.prototype.onServiceRequestCompleted=Up.prototype.onServiceRequestCompleted;Up.prototype.onYtServiceRequestSentForButtonRenderer=Up.prototype.onYtServiceRequestSentForButtonRenderer;
Up.prototype.observeData=Up.prototype.observeData;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Up.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Up.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.xB.YtVisibilityBehavior),_.x("design:type",Object)],Up.prototype,"ytVisibilityBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Up.prototype,"ytComponentBehavior",void 0);
_.B([_.k(_.A5),_.x("design:type",Object)],Up.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Up.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],Up.prototype,"isOverridable",void 0);_.B([_.n(),_.x("design:type",Object)],Up.prototype,"spinnerActive",void 0);_.B([_.n(),_.x("design:type",Object)],Up.prototype,"showButton",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Up.prototype,"isCommentsSection",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Up.prototype,"engagementPanel",void 0);_.B([_.n(),_.x("design:type",Object)],Up.prototype,"isShortsGrid",void 0);_.B([_.n({reflectToAttribute:!0,selector:_.pkN}),_.x("design:type",Object)],Up.prototype,"isShortsPage",void 0);_.B([_.n({reflectToAttribute:!0,selector:_.Iss}),_.x("design:type",Object)],Up.prototype,"isWatchPage",void 0);_.B([_.n(),_.x("design:type",Number)],Up.prototype,"continuationTriggerOffset",void 0);
_.B([_.n(),_.x("design:type",Object)],Up.prototype,"endOfList",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Up.prototype,"isInitialLoad",void 0);_.B([_.hs("ytd-button-renderer"),_.x("design:type",_.Dt)],Up.prototype,"buttonRenderer",void 0);_.B([_.n(),_.x("design:type",Object)],Up.prototype,"buttonOverrides",void 0);
_.B([_.n(),_.d("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.x("design:type",Object),_.x("design:paramtypes",[])],Up.prototype,"showGhostCardComments",null);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Up.prototype,"observeData",null);
_.B([_.Om("yt-service-request-sent-button-renderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Up.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.n1]),_.x("design:returntype")],Up.prototype,"onServiceRequestCompleted",null);
_.B([_.Om("yt-service-request-completed-button-renderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Up.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.B([_.iD("showButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Up.prototype,"showButtonChanged",null);
_.B([_.iD("continuationTriggerOffset"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Up.prototype,"continuationTriggerOffsetChanged",null);_.B([_.Me("isInitialLoad","engagementPanel"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Up.prototype,"numberOfGhostCommentsChanged",null);_.B([_.c({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],Up);
_.A(Up,"ytd-continuation-item-renderer",function(){if(msc!==void 0)return msc;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return msc=G},{mode:1});var yNE;var zZ=function(){var G=_.m.apply(this,arguments)||this;G.downloadProgress=0;G.transferState="TRANSFER_STATE_UNKNOWN";G.downloadState="DOWNLOAD_STATE_UNKNOWN";G.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";G.offlineVideoPolicyExpirationTimestamp=0;G.downloadedVideoPlaybackPosition=0;return G};
_.K(zZ,_.m);zZ.prototype.dataChanged=function(){var G;this.videoData=_.a((G=this.data)==null?void 0:G.renderer,hij);this.transferStateChanged()};
zZ.prototype.downloadProgressChanged=function(){if(this.entityInfo){var G=Object.assign({},this.videoData),e=iJy(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),r=e.publishedTimeText,Z=e.badges;G.shortViewCountText=e.shortViewCountText;G.publishedTimeText=r;G.badges=Z;this.set("videoData",G)}};
zZ.prototype.transferStateChanged=function(){if(this.entityInfo){var G=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",e=_.E6(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!DH(this.entityInfo.policyEntity),r=Object.assign({},this.videoData),Z=iJy(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),O=Z.publishedTimeText,M=Z.badges;r.shortViewCountText=
Z.shortViewCountText;r.publishedTimeText=O;r.badges=M;r.isDisabled=e;r.isWatched=this.downloadedVideoPlaybackPosition>0;r.navigationEndpoint=e?void 0:CJi(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var T;G&&((T=this.videoData)==null?0:T.videoId)&&!_.R("dl_resume_click_killswitch")&&(r.isDisabled=!1,r.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});r.thumbnailOverlays=D9_(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",r)}};
zZ.prototype.transferStateChanged=zZ.prototype.transferStateChanged;zZ.prototype.downloadProgressChanged=zZ.prototype.downloadProgressChanged;zZ.prototype.dataChanged=zZ.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],zZ.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],zZ.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],zZ.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",Object)],zZ.prototype,"videoData",void 0);_.B([_.n({selector:kt,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],zZ.prototype,"downloadProgress",void 0);_.B([_.n(),_.x("design:type",Number)],zZ.prototype,"relativeDateReference",void 0);_.B([_.n({selector:_.KQ,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],zZ.prototype,"transferState",void 0);
_.B([_.n({selector:eif,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],zZ.prototype,"downloadState",void 0);_.B([_.n({selector:c4$,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],zZ.prototype,"offlinePolicyAction",void 0);_.B([_.n({selector:YDA,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],zZ.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.B([_.n({selector:HS,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],zZ.prototype,"downloadedVideoPlaybackPosition",void 0);_.B([_.n({selector:A4F,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],zZ.prototype,"entityInfo",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],zZ.prototype,"isDownloading",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zZ.prototype,"dataChanged",null);
_.B([_.iD("downloadProgress"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zZ.prototype,"downloadProgressChanged",null);_.B([_.iD("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zZ.prototype,"transferStateChanged",null);
_.B([_.c({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],zZ);
_.A(zZ,"ytd-downloaded-video-grid-video-renderer",function(){if(yNE!==void 0)return yNE;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return yNE=G},{mode:_.Px("kevlar_poly_si_batch_j025")?1:2});var ANW;var WH=function(){};
WH.prototype.resolve=function(G,e){var r=this;return _.D(function(Z){return Z.yield(r.resolveCommand(G,e),0)})};var FhW,NR;FhW=jXy(function(G){return G.targetId},{shouldPersist:!1});
NR=FhW.updateData;_.JNy=FhW.useUpdatableData;var BYW,xsn;BYW=jXy(function(G){return G.targetId});
xsn=BYW.updateData;_.P$W=BYW.useUpdatableData;var Us3=kIf.bind(null,NR),z_P=kIf.bind(null,xsn);(function(G,e,r){var Z=_.a(r==null?void 0:r.updatedRenderer,_.n0y);return Z?G({targetId:e},function(){return Z}):!1}).bind(null,NR);var LX=function(){};
_.K(LX,WH);LX.prototype.resolveCommand=function(G){var e;return _.D(function(r){e=_.a(G,_.QJ_);if(!e)return r.return();Us3(e.targetId,e);_.HL(r)})};var G5=function(){var G=_.DQ.apply(this,arguments)||this;G.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return G};
_.K(G5,_.DQ);_.V=G5.prototype;_.V.configureContinuationPathMap=function(){return{}};
_.V.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.V.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.V.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.V.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.V.handleAppendContinuationItemsAction=function(G){var e=_.a(G,_.seb);if(this.data&&this.data.targetId&&e&&this.continuationPathMap&&e.targetId===this.data.targetId){var r=MVN(G),Z=r&&this.continuationPathMap[r];if(Z&&r)if(G=this.get(Z,this.data)){a:{for(r=0;r<G.length;r++){var O=G[r],M=void 0,T=!!_.a((M=_.a(O,tjE))==null?void 0:M.content,_.ZKc);if(_.a(O,_.mL)||T)break a}r=G.length}Z="data."+Z;e.continuationItems?r===G.length-1?(this.pop(Z),this.push.apply(this,[Z].concat(_.mY(e.continuationItems)))):
r===G.length?this.push.apply(this,[Z].concat(_.mY(e.continuationItems))):this.splice.apply(this,[Z,r,1].concat(_.mY(e.continuationItems))):this.splice(Z,r,1);(_.R("web_enable_voting_animation")||_.R("enable_music_web_cairo_voting_animation"))&&_.xy(this.hostElement,"yt-append-continuation-items-action-finished");_.xy(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.FH(new _.Cr("append continuation items does not exist",r));else _.FH(new _.Cr("append continuation path does not exist",
r))}};
_.V.handleReloadContinuationItemsCommand=function(G){var e=_.a(G,_.QJ_);if(this.data&&e){if(_.R("web_client_explore_hub")||_.R("web_explore_hub_on_hover")||_.R("web_client_explore_hub_on_hover"))try{_.v_().resolve(LX).resolveCommand(G)}catch(M){}if(this.data.targetId&&this.continuationPathMap&&e.targetId===this.data.targetId&&(!_.R("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||e.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var r,Z=(r=e.slot)==null?void 0:
r.replace("RELOAD_CONTINUATION_SLOT_","");r=(G=MVN(G)+"-"+(Z==null?void 0:Z.toLowerCase()))&&this.continuationPathMap[G];if(!r||!G||!Z)_.FH(new _.Cr("reload continuation path does not exist",G));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(e)){if(e.replaceWithFirstItem){var O;this.set("data."+r,((O=e.continuationItems)==null?0:O.length)?e.continuationItems[0]:{})}else this.set("data."+r,e.continuationItems?e.continuationItems:[]);this.continuationIsReloading=
!1;_.xy(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.V.handleShowReloadUiCommand=function(G){G=_.a(G,x4v);var e;((e=this.data)==null?0:e.targetId)&&(G==null?0:G.targetId)&&G.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
G5.prototype.observeData=G5.prototype.observeData;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],G5.prototype,"actionHandlerBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],G5.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],G5.prototype,"data",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],G5.prototype,"continuationIsReloading",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],G5.prototype,"observeData",null);_.B([_.Em()],G5);_.eP=[_.F9.YtComponentBehavior,_.gF.YtActionHandlerBehavior,G5.prototype];_.r5={};_.r5.YtNextContinuationBehavior=[_.Zs.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",_.ZQ(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.ZQ(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(G,e){G.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,e,{}):(G={locationRetrieved:function(r){this.makeNextContinuationRequest_(r,e,{})}.bind(this)},_.xy(this.hostElement,"yt-retrieve-location",G))},
makeNextContinuationRequest_:function(G,e,r){_.K_("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();G=e(G);var Z;this.canUseContextualNetworkManager_()&&(Z=this.getNetworkManager());Z||(Z=_.v_().resolve(_.bf));e=_.Q$.instance;if(_.xZ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&e){Z=_.y4([G.startsWith("/")?G.substr(1):G]);var O,M;r=_.LE(e,{},Z,r==null?void 0:(O=r.context)==null?void 0:(M=O.clickTracking)==null?void 0:M.clickTrackingParams).then(function(T){return{response:T}})}else r=
this.nextContinuation.usePost?Z.postData(G,r):Z.fetchData(G);
r.then(this.updateNextContinuationData_.bind(this,G));this.pendingContinuationRequest_=r;this.startListeningForNavigate_()},
updateNextContinuationData_:function(G,e){var r=this;_.K_("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]){G=e.response.continuationContents[Z.continuationType];var O=Z.header||"data.header",M=G[Z.responseHeaderKey||"header"];M&&this.set(O,M);O=Z.contentsArray||"data.contents";M=this.getContents_(G,Z.responseContentsKey||"contents")||[];
this.pathExists_(O)?(M.unshift(O),this.push.apply(this,M)):this.set(O,M);M&&(HgA(_.h_(),e.response,this.hostElement,function(T){_.Pi(r.hostElement,"yt-store-grafted-ve-action",[T])}),_.xy(this.hostElement,"yt-next-continuation-data-updated",{continuationData:e,
page:this,contentsArray:O}));this.set(Z.continuationsArray||"data.continuations",G[Z.responseContinuationsKey||"continuations"]||[])}else e.reload?_.FH(new _.Cr("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,O={request:_.Mt(G,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(e).sort()},e.response&&(O.responseContentKeys=
Object.keys(e.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(O.continuationType=this.nextContinuation.continuationType.substr(0,256)),e=new _.Cr("Malformed continuation",O),G.indexOf("/comment_service_ajax")==0?_.FH(e):_.yx(e)),this.set(Z.continuationsArray||"data.continuations",[])}else _.AG(new _.Cr("Missing continuation response",G))},
getContents_:function(G,e){e=e.split(".");return _.c2.getValueByKeys(G,e)},
pathExists_:function(G){var e=this;G=G.toString().split(".");for(var r=0;r<G.length;r++)if(e=e[G[r]],e===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var Whc;var NYw;var Z5=function(){var G=_.m.apply(this,arguments)||this;G.triggered_=!1;return G};
_.K(Z5,_.m);_.V=Z5.prototype;_.V.attached=function(){this.maybeTriggerAutoload()};
_.V.detached=function(){this.hasBeenTriggered_=!1};
_.V.onPrescanVisible=function(){this.onShow()};
_.V.onShow=function(){this.showButton||this.trigger()};
_.V.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.xy(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.V.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.V.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.V.computeLabel_=function(G,e){return G===void 0?null:G.label||!e?G.label:this.showMoreText_};
_.V.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.V.getContinuationUrl=function(G){var e={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(e.itct=this.data.clickTrackingParams);return _.Vi(G,e)};
_.V.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
Z5.prototype.showButtonChanged_=Z5.prototype.showButtonChanged_;Z5.prototype.observeData_=Z5.prototype.observeData_;_.B([_.k(_.xB.YtVisibilityBehavior),_.x("design:type",Object)],Z5.prototype,"ytVisibilityBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Z5.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Z5.prototype,"data",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],Z5.prototype,"showButton",void 0);
_.B([_.n({value:!1}),_.x("design:type",Boolean)],Z5.prototype,"showIcon",void 0);_.B([_.n({computed:"computeLabel_(data, showButton)"}),_.x("design:type",Object)],Z5.prototype,"label",void 0);_.B([_.n({value:_.nQ(_.OK("SHOW_MORE",void 0,"Show More"))}),_.x("design:type",Object)],Z5.prototype,"showMoreText_",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],Z5.prototype,"spinnerActive_",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],Z5.prototype,"hasBeenTriggered_",void 0);
_.B([_.n({value:void 0}),_.x("design:type",String)],Z5.prototype,"observeVisibleOption",void 0);_.B([_.n({value:void 0}),_.x("design:type",String)],Z5.prototype,"observeHiddenOption",void 0);_.B([_.n({value:"observe_once"}),_.x("design:type",Object)],Z5.prototype,"observePrescanOption",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Z5.prototype,"observeData_",null);
_.B([_.Me("showButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Z5.prototype,"showButtonChanged_",null);_.B([_.aR({is:"yt-next-continuation",disableElementRegistration:!0})],Z5);
_.A(Z5,"yt-next-continuation",function(){if(NYw===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;Whc===void 0&&(Whc=document.createElement("template"));var Z=Whc;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);NYw=G}G=NYw;return G},{mode:2});var LhP;var GWC;var OU=function(){return _.m.apply(this,arguments)||this};
_.K(OU,_.m);OU.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],OU.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],OU.prototype,"data",void 0);_.B([_.aR({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],OU);
_.A(OU,"yt-music-pass-small-feature-info-renderer",function(){if(GWC===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;LhP===void 0&&(LhP=document.createElement("template"));var Z=LhP;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);GWC=G}G=GWC;return G},{mode:2});_.te("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var M2=function(){var G=_.m.apply(this,arguments)||this;G.isCollapsible=!1;G.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return G};
_.K(M2,_.m);_.V=M2.prototype;_.V.computeIsCollapsible=function(G){return!!(((G==null?0:G.showMoreText)||(G==null?0:G.visibleRowCount))&&(G==null?0:G.isCollapsible))};
_.V.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"}}}};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.V.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.V.onIronResize=function(){var G=this;_.sm(this,"updateGridInitItems",function(){G.maybeUpdateInitialItemsDisplayed()})};
_.V.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var G=this.getVisibleWidth();G!==0&&(G=Math.floor(G/214)*(this.data.visibleRowCount||2),G!==this.initialCount&&(this.initialCount=G,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.V.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.V.computeExpandVisible=function(G,e,r,Z){return G&&e&&r&&!!Z&&!!Z.showMoreText};
_.V.computeShowMoreButton=function(G){return{text:G,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.V.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.V.initCollapsed=function(){var G=this;this.ytLazyListBehavior.canShowMore=!1;var e;(this.collapsed=!((e=this.data)==null||!e.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.DE(this,function(){_.UW(G.hostElement,"yt-refit-popups-action")})};
_.V.fillRestIfNotCollapsible=function(){var G=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!G||this.ytLazyListBehavior.fillRemainingListItems()};
_.V.computeViewAllHidden=function(G,e){return G||!e.viewAllEndpoint};
M2.prototype.fillRestIfNotCollapsible=M2.prototype.fillRestIfNotCollapsible;M2.prototype.initCollapsed=M2.prototype.initCollapsed;M2.prototype.onIronResize=M2.prototype.onIronResize;M2.prototype.persistentGuideChanged=M2.prototype.persistentGuideChanged;_.B([_.k(_.CS),_.x("design:type",Object)],M2.prototype,"ironResizableBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],M2.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],M2.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.Dr.YtLazyListBehavior),_.x("design:type",Object)],M2.prototype,"ytLazyListBehavior",void 0);_.B([_.k(_.r5.YtNextContinuationBehavior),_.x("design:type",Object)],M2.prototype,"ytNextContinuationBehavior",void 0);_.B([_.k(_.UN.YtdGuideStateAwareBehavior),_.x("design:type",Object)],M2.prototype,"ytdGuideStateAwareBehavior",void 0);
_.B([_.k(_.eP),_.x("design:type",Object)],M2.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],M2.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Boolean)],M2.prototype,"collapsed",void 0);_.B([_.n(),_.x("design:type",Number)],M2.prototype,"initialCount",void 0);_.B([_.n({computed:"computeShowMoreButton(data.showMoreText)"}),_.x("design:type",Object)],M2.prototype,"showMoreButton",void 0);
_.B([_.n({computed:"computeIsCollapsible(data)"}),_.x("design:type",Object)],M2.prototype,"isCollapsible",void 0);_.B([_.hs("#items"),_.x("design:type",HTMLElement)],M2.prototype,"items",void 0);_.B([_.iD("guidePersistentAndVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],M2.prototype,"persistentGuideChanged",null);_.B([_.Om("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],M2.prototype,"onIronResize",null);
_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],M2.prototype,"initCollapsed",null);_.B([_.iD("canShowMore"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],M2.prototype,"fillRestIfNotCollapsible",null);_.B([_.c({is:"ytd-grid-renderer",disableElementRegistration:!0})],M2);
_.A(M2,"ytd-grid-renderer",function(){if(ANW!==void 0)return ANW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return ANW=G},{mode:_.Px("kevlar_poly_si_batch_j025")?1:2});var Vd=function(){return _.m.apply(this,arguments)||this};
_.K(Vd,_.m);
Vd.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"}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Vd.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Vd.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Vd.prototype,"data",void 0);_.B([_.c({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],Vd);
_.A(Vd,"ytd-carousel-ad-renderer",function(){if(n73!==void 0)return n73;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return n73=G},{mode:1});var eVE;var hJ=function(){return _.m.apply(this,arguments)||this};
_.K(hJ,_.m);_.V=hJ.prototype;_.V.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"}}}};
_.V.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,hJ.JSC$15499_CLICK_LOCATION_ID_MAP))};
_.V.onSitelinkTap=function(G){G.stopPropagation();var e,r,Z=G==null?void 0:(e=G.model)==null?void 0:(r=e.item)==null?void 0:r.onTap;Z&&this.ytSparklesClickLocationBehavior.handleClick(Z,G,!1)};
_.V.onTap=function(G){var e=this.data&&this.data.content&&this.data.content.navigationEndpoint;e&&this.ytSparklesClickLocationBehavior.handleClick(e,G,!1)};
_.V.sendImpression=function(){if(this.data&&this.data.content)for(var G=_.h(this.data.content.impressionEndpoints||[]),e=G.next();!e.done;e=G.next()){e=_.h(e.value.loggingUrls||[]);for(var r=e.next();!r.done;r=e.next())r=r.value,r.baseUrl&&Gr(r.baseUrl,r.attributionSrcMode)}};
hJ.prototype.onTap=hJ.prototype.onTap;hJ.prototype.dataChanged=hJ.prototype.dataChanged;hJ.JSC$15499_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"]]);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],hJ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],hJ.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.TJ.YtSparklesClickLocationBehavior),_.x("design:type",Object)],hJ.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],hJ.prototype,"data",void 0);
_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hJ.prototype,"dataChanged",null);_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],hJ.prototype,"onTap",null);_.B([_.c({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],hJ);
_.A(hJ,"ytd-promoted-sparkles-text-search-renderer",function(){if(eVE!==void 0)return eVE;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return eVE=G},{mode:1});var rfy;var T5=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-mute-ad-action":"handleMuteAd"};return G};
_.K(T5,_.m);_.V=T5.prototype;_.V.created=function(){this.activeView=new w9(this.hostElement)};
_.V.configureRendererStamper=function(){return{"data.menu":{id:_.R("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]]"}}}}}};
_.V.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.V.computeHasAdBadge=function(G){return!(G==null||!G.adBadge)};
_.V.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",T5.JSC$15508_DEFAULT_AD_BADGE_RENDERER),_.Nv(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&$_(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,T5.JSC$15508_CLICK_LOCATION_ID_MAP))};
_.V.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var G;(((G=this.data)==null?void 0:G.impressionCommands)||[]).forEach(function(e){e=_.h(e.loggingUrls||[]);for(var r=e.next();!r.done;r=e.next())r=r.value,r.baseUrl&&Gr(r.baseUrl,r.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.V.onTap=function(G){var e,r=(e=this.data)==null?void 0:e.navigationEndpoint,Z;(e=(Z=this.data)==null?void 0:Z.thumbnailNavigationEndpoint)&&_.c5(_.na(G),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(e,G,!1):r&&this.ytSparklesClickLocationBehavior.handleClick(r,G,!1)};
_.V.handleMuteAd=function(){this.collapsed=!0};
_.V.attached=function(){var G=this;_.R("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Sw(G.activeView)})};
_.V.detached=function(){_.R("stop_av_measurement_on_detach")&&Sw(this.activeView)};
_.iY.Object.defineProperties(T5.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var G;return!(((G=this.data)==null?void 0:G.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var G;return!(((G=this.data)==null?void 0:G.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.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}}});
T5.prototype.dataChanged=T5.prototype.dataChanged;
T5.JSC$15508_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"]]);
T5.JSC$15508_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.OK("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],T5.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],T5.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],T5.prototype,"actionHandlerBehavior",void 0);
_.B([_.k(_.TJ.YtSparklesClickLocationBehavior),_.x("design:type",Object)],T5.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],T5.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],T5.prototype,"collapsed",void 0);_.B([_.n({reflectToAttribute:!0,value:function(){return _.R("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],T5.prototype,"useBiggerThumbs",void 0);_.B([_.n({reflectToAttribute:!0,value:function(){return _.td("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],T5.prototype,"biggerThumbsStyle",void 0);_.B([_.n({reflectToAttribute:!0,value:function(){return _.R("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.x("design:type",Boolean)],T5.prototype,"fixAlignmentSmallScreens",void 0);_.B([_.n({reflectToAttribute:!0,value:function(){return _.R("enable_desktop_search_bigger_thumbs_square")}}),
_.x("design:type",Boolean)],T5.prototype,"useBiggerThumbsSquare",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("data.mediaHoverOverlay"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],T5.prototype,"hideHoverOverlay",null);_.B([_.n({reflectToAttribute:!0}),_.d("data.promotedSparklesWebStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],T5.prototype,"webSearchLayout",null);
_.B([_.n({reflectToAttribute:!0}),_.d("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],T5.prototype,"webSearchLayoutLandscape",null);_.B([_.n({reflectToAttribute:!0}),_.d("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],T5.prototype,"webSearchLayoutSquare",null);
_.B([_.n({reflectToAttribute:!0}),_.d("data.promotedSparklesWebStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],T5.prototype,"sparklesCtaNoBackground",null);_.B([_.n({reflectToAttribute:!0}),_.d("data.actionButton"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],T5.prototype,"hideActionButton",null);_.B([_.n({computed:"computeButtonOverride(uiUpdate)"}),_.x("design:type",Object)],T5.prototype,"buttonOverride",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.x("design:type",Boolean)],T5.prototype,"hasNewAdBadge",void 0);_.B([_.d("data.promotedSparklesWebStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],T5.prototype,"useRoundedBadge",null);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],T5.prototype,"dataChanged",null);_.B([_.c({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],T5);
_.A(T5,"ytd-promoted-sparkles-web-renderer",function(){if(rfy!==void 0)return rfy;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return rfy=G},{mode:1});var ZkC;var D5=function(){var G=_.m.apply(this,arguments)||this;G.isInlinePreviewTriggered=!1;G.enableMonoStyle=_.R("enable_default_mono_cta_migration_web_client");return G};
_.K(D5,_.m);_.V=D5.prototype;_.V.created=function(){this.activeView=new w9(this.hostElement)};
_.V.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]]"}}}}}};
_.V.computeShowCta=function(G){return!(G==null||!G.ctaRenderer)};
_.V.onCtaClick=function(){var G,e,r,Z=(G=this.data)==null?void 0:(e=G.ctaRenderer)==null?void 0:(r=e.buttonRenderer)==null?void 0:r.command;Z&&this.ytComponentBehavior.resolveCommand(Z)};
_.V.onWatchButtonClick=function(){var G,e,r,Z=(G=this.data)==null?void 0:(e=G.watchButtonRenderer)==null?void 0:(r=e.buttonRenderer)==null?void 0:r.command;Z&&this.ytComponentBehavior.resolveCommand(Z)};
_.V.onTap=function(){};
_.V.dataChanged=function(){if(this.data){var G;_.R("enable_inline_muted_playback_on_web_search")&&((G=this.data)==null?0:G.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",D5.JSC$15512_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&$_(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",D5.JSC$15512_DEFAULT_CLICK_LOCATION_BEHAVIOR,D5.JSC$15512_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(G=this.thumbnail.getElementsByTagName("a"),G.length>0&&(G=G.namedItem("thumbnail"))&&G.removeAttribute("href"));var e;if(((e=this.data)==null?0:e.forceImpAutoplay)&&_.R("enable_force_imp_autoplay_on_desktop_search")){var r;(r=this.JSC$15513_inlinePreviewHoverListener)==null||EgS(r)}}};
_.V.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var G=_.h(this.data.impressionUrls),e=G.next();!e.done;e=G.next())e=e.value,Fra(e,Bvf(e));this.data.impressionsFired=!0}};
_.V.maybeComputeHref=function(){return null};
_.V.computeIsShortDR=function(G){return!(G==null||!G.watchButtonRenderer)&&!(G==null||!G.ctaRenderer)&&!!this.enableShortDR};
_.V.computeIsNewUiOrShortDr=function(G){return!!this.enableUiUpdate||this.computeIsShortDR(G)};
_.V.computeIsNewUiAndNotShortDr=function(G){return!!this.enableUiUpdate&&!this.computeIsShortDR(G)};
_.V.computeHideAvatar=function(G){return!((G==null?0:G.channelThumbnail)&&this.computeIsNewUiOrShortDr(G))};
_.V.onClick=function(G){var e,r=(e=this.data)==null?void 0:e.navigationEndpoint;if(this.enableShortDR&&r&&(_.a(r,_.u4)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(r,G,!!_.a(r,_.u4)),G.stopPropagation();else if(r&&_.a(r,_.u4))this.ytSparklesClickLocationBehavior.handleClick(r,G,!0),G.stopPropagation();else if(r){var Z,O;((Z=this.data)==null?0:Z.navigationEndpoint)&&((O=this.data)==null?0:O.adPlaybackContextParams)&&(e=this.data.navigationEndpoint,G=this.data.adPlaybackContextParams,
e.commandMetadata&&_.a(e.commandMetadata,_.rJ)&&_.a(e.commandMetadata,_.rJ).url&&(e=_.O5(_.a(e.commandMetadata,_.rJ).url).adurl)&&_.Bof(e)&&_.Yy(_.sW(e),{encoded_ad_playback_context:G}));this.ytComponentBehavior.resolveCommand(r)}};
_.V.computeButtonOverride=function(G){if(this.computeIsNewUiOrShortDr(G))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.V.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.V.onThumbnailContainerClick=function(G){this.onClick(G)};
_.V.computeThumbnailWidth=function(G,e){return G?e==="MASSIVE"?600:e==="BIG"?500:e==="MEDIUM"?450:420:360};
_.V.attached=function(){var G=this,e;_.R("enable_inline_muted_playback_on_web_search")&&((e=this.data)==null?0:e.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.R("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Sw(G.activeView)})};
_.V.detached=function(){var G;_.R("enable_inline_muted_playback_on_web_search")&&((G=this.data)==null?0:G.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.R("stop_av_measurement_on_detach")&&Sw(this.activeView)};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15513_inlinePreviewHoverListener=XK({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:$sW})};
_.V.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$15513_inlinePreviewHoverListener)==null||nx(G)};
D5.prototype.dataChanged=D5.prototype.dataChanged;D5.prototype.onTap=D5.prototype.onTap;D5.JSC$15512_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.OK("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};D5.JSC$15512_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
D5.JSC$15512_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"}];_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],D5.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],D5.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],D5.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.TJ.YtSparklesClickLocationBehavior),_.x("design:type",Object)],D5.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.hs("#main-container"),_.x("design:type",HTMLElement)],D5.prototype,"mainContainer",void 0);
_.B([_.n(),_.x("design:type",Object)],D5.prototype,"isInlinePreviewTriggered",void 0);_.B([_.n(),_.x("design:type",Object)],D5.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,value:function(){return _.R("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],D5.prototype,"useBiggerThumbs",void 0);_.B([_.n({reflectToAttribute:!0,value:function(){return _.R("enable_video_display_compact_button_group_for_desktop_search")}}),
_.x("design:type",Boolean)],D5.prototype,"enableShortDR",void 0);_.B([_.n({reflectToAttribute:!0,value:function(){return _.R("enable_vac_ui_update_for_desktop_search")}}),
_.x("design:type",Boolean)],D5.prototype,"enableUiUpdate",void 0);_.B([_.n({reflectToAttribute:!0,value:function(){return _.td("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],D5.prototype,"biggerThumbsStyle",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.x("design:type",Boolean)],D5.prototype,"showCta",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.x("design:type",Boolean)],D5.prototype,"isShortDr",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.x("design:type",Boolean)],D5.prototype,"isShortDrOrNewUi",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.x("design:type",Boolean)],D5.prototype,"isNewUiAndNotShortDr",void 0);_.B([_.n({computed:"computeButtonOverride(data)"}),_.x("design:type",Object)],D5.prototype,"buttonOverride",void 0);_.B([_.n({computed:"computeSecondaryButtonOverride(data)"}),_.x("design:type",Object)],D5.prototype,"secondaryButtonOverride",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],D5.prototype,"enableMonoStyle",void 0);
_.B([_.hs("ytd-thumbnail"),_.x("design:type",HTMLElement)],D5.prototype,"thumbnail",void 0);_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],D5.prototype,"onTap",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],D5.prototype,"dataChanged",null);_.B([_.c({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],D5);
_.A(D5,"ytd-promoted-video-renderer",function(){if(ZkC!==void 0)return ZkC;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return ZkC=G},{mode:1});var OkE;var EU=function(){var G=_.m.apply(this,arguments)||this;G.useRoundedBadge=!0;G.sitelinkIds=[];return G};
_.K(EU,_.m);_.V=EU.prototype;
_.V.configureRendererStamper=function(){return{"data.menu":{id:_.R("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]]"}}}}}};
_.V.dataChanged=function(){var G;(G=this.data)!=null&&G.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,EU.JSC$15518_CLICK_LOCATION_ID_MAP)};
_.V.onTap=function(G){var e,r=(e=this.data)==null?void 0:e.navigationCommand;r&&!_.c5(_.na(G),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(r,G,!1)};
_.V.onSitelinkTap=function(G){var e,r,Z=G==null?void 0:(e=G.model)==null?void 0:(r=e.item)==null?void 0:r.onTap;Z&&this.ytSparklesClickLocationBehavior.handleClick(Z,G,!1)};
_.V.configureSitelinkClickTargets=function(){var G=this,e,r,Z=(e=this.data)==null?void 0:(r=e.clickLocationTargets)==null?void 0:r.find(function(O){return O.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
Z&&_.z1(this.hostElement).querySelectorAll(".sitelink").forEach(function(O){_.Nv(O,"yt-simple-endpoint",!0);G.sitelinkIds.push(O.id);var M,T;(M=G.ytSparklesClickLocationBehavior)==null||(T=M.clickTargetMap)==null||T.set(O.id,Z)})};
_.V.sendImpression=function(){var G,e,r=((G=this.data)==null?void 0:(e=G.impressionCommand)==null?void 0:e.loggingUrls)||[];G=_.h(r);for(e=G.next();!e.done;e=G.next())e=e.value,e.baseUrl&&Gr(e.baseUrl,e.attributionSrcMode)};
_.V.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.iY.Object.defineProperties(EU.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
EU.prototype.onTap=EU.prototype.onTap;EU.prototype.dataChanged=EU.prototype.dataChanged;EU.JSC$15518_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"]]);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],EU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],EU.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.TJ.YtSparklesClickLocationBehavior),_.x("design:type",Object)],EU.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],EU.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],EU.prototype,"showFavicon",null);_.B([_.n({reflectToAttribute:!0,value:function(){return _.R("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],EU.prototype,"useBiggerThumbs",void 0);_.B([_.n({reflectToAttribute:!0,value:function(){return _.td("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],EU.prototype,"biggerThumbsStyle",void 0);_.B([_.n({reflectToAttribute:!0,value:function(){return _.R("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.x("design:type",Boolean)],EU.prototype,"enableThumbnailScalingFix",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EU.prototype,"dataChanged",null);_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],EU.prototype,"onTap",null);_.B([_.c({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],EU);
_.A(EU,"ytd-text-image-no-button-layout-renderer",function(){if(OkE!==void 0)return OkE;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return OkE=G},{mode:_.Px("kevlar_poly_si_batch_j028")?1:2});var Mtb;var iX=function(){var G=_.m.apply(this,arguments)||this;G.isInlinePlaybackState=!1;G.uiUpdate=_.R("web_modern_buttons");G.hideCta=_.R("hide_cta_for_home_web_video_ads");G.noBottomMargin=!1;G.animateInTimeStamp=_.qt("hide_cta_for_home_web_video_ads_animate_in_time");G.animateInCta=!1;G.isHovered=!1;G.enableMonoStyle=_.R("enable_default_mono_cta_migration_web_client");G.player=null;G.JSC$15525_playerEvents=new Map;G.JSC$15525_preventProgressSaveTimer=null;G.delayedCtaJobId=null;return G};
_.K(iX,_.m);_.V=iX.prototype;_.V.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]]"}}}}}};
_.V.attached=function(){this.JSC$15525_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15525_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.R("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.V.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15525_playerEvents)};
_.V.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",iX.JSC$15524_DEFAULT_CLICK_LOCATION_BEHAVIOR,iX.JSC$15524_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.V.hoverChanged=function(){var G=this;this.delayedCtaJobId&&(_.A0.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.R("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.w8(_.A0,function(){G.buttonContainer.classList.add("show-delayed-buttons")},_.qt("delayed_cta_on_web_delay_milliseconds")))};
_.V.setPlayer=function(){var G=this,e;return _.D(function(r){if(r.nextAddress==1)return(e=_.UW(G.hostElement,"yt-get-inline-preview-player-action"))&&e[0]?r.yield(e[0].getPlayerPromise(),3):r.jumpTo(0);G.player=r.yieldResult;G.ytPlayerListenerBehavior.listenToPlayerEvents(G.player,G.JSC$15525_playerEvents);_.HL(r)})};
_.V.onPlaybackStart=function(){var G=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15525_preventProgressSaveTimer=_.za(_.A0,function(){G.JSC$15525_preventProgressSaveTimer=null},1E4))};
_.V.onVideoProgress=function(G){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&G>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.V.resetPreventProgressSaveTimer=function(){_.A0.cancelJob(this.JSC$15525_preventProgressSaveTimer);this.JSC$15525_preventProgressSaveTimer=null};
_.V.getSimpleString=function(G){return _.mG(G)};
_.V.onClick=function(G){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var e,r=(e=this.data)==null?void 0:e.navigationEndpoint,Z;e=(Z=this.data)==null?void 0:Z.channelEndpoint;var O,M;((M=_.a((O=this.data)==null?void 0:O.adCtaButton,_.zM))==null?0:M.command)&&_.c5(_.na(G),this.hostElement,["call-to-action"])||(e&&_.c5(_.na(G),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(e,G,!1):!_.c5(_.na(G),this.hostElement,
["secondary-button"])&&r&&(_.R("enable_short_dr_for_desktop_launchable")?(Z=!!_.a(r,_.u4),this.isInlinePlaybackState&&Z&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(r,G,Z)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(r,G,!0))))}};
_.V.updateWatchEndpointStartTime=function(){var G,e;this.player&&((G=this.data)==null?0:G.inlinePlaybackEndpoint)&&((e=this.data)==null?0:e.navigationEndpoint)&&!this.JSC$15525_preventProgressSaveTimer&&(G=Math.floor(this.player.getCurrentTime()),_.a(this.data.navigationEndpoint,_.u4).startTimeSeconds=G,_.a(this.data.inlinePlaybackEndpoint,_.u4).startTimeSeconds=G)};
_.V.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.V.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.iY.Object.defineProperties(iX.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.R("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var G,e;return!((G=this.data)==null||!G.watchButton)&&!((e=this.data)==null||!e.adCtaButton)}}});
iX.prototype.hoverChanged=iX.prototype.hoverChanged;iX.prototype.dataChanged=iX.prototype.dataChanged;
iX.JSC$15524_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"]]);
iX.JSC$15524_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"}];
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],iX.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],iX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],iX.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.TJ.YtSparklesClickLocationBehavior),_.x("design:type",Object)],iX.prototype,"ytSparklesClickLocationBehavior",void 0);
_.B([_.k(_.GJ.YtPlayerListenerBehavior),_.x("design:type",_.ew)],iX.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],iX.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],iX.prototype,"isInlinePlaybackState",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],iX.prototype,"miniMode",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],iX.prototype,"uiUpdate",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],iX.prototype,"hideCta",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],iX.prototype,"noBottomMargin",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],iX.prototype,"animateInCta",void 0);_.B([_.n({computed:"computeButtonOverride(uiUpdate)"}),_.x("design:type",Object)],iX.prototype,"buttonOverride",void 0);
_.B([_.n({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.x("design:type",Object)],iX.prototype,"secondaryButtonOverride",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],iX.prototype,"isHovered",void 0);_.B([_.hs("#button-container"),_.x("design:type",HTMLElement)],iX.prototype,"buttonContainer",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],iX.prototype,"typographyBump",void 0);
_.B([_.n({reflectToAttribute:!0}),_.d("typographyBump"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],iX.prototype,"typographyBumpV2",null);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],iX.prototype,"enableMonoStyle",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iX.prototype,"dataChanged",null);
_.B([_.Me("isHovered"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iX.prototype,"hoverChanged",null);_.B([_.d("data"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],iX.prototype,"isButtonGroup",null);_.B([_.c({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],iX);
_.A(iX,"ytd-ad-inline-playback-meta-block",function(){if(Mtb!==void 0)return Mtb;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Mtb=G},{mode:_.Px("kevlar_poly_si_batch_j065")?1:2});var VtW;var bX=function(){var G=_.m.apply(this,arguments)||this;G.noBottomMargin=!1;G.isInlinePreviewTriggered=!1;G.JSC$15530_activeViewMeasurementDataResolver=_.C1();return G};
_.K(bX,_.m);_.V=bX.prototype;_.V.created=function(){this.activeView=new w9(this.hostElement)};
_.V.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.V.attached=function(){var G=this;this.updateInlinePreviewHoverListeners();this.JSC$15530_activeViewMeasurementDataResolver.promise.then(function(e){$_(G.activeView,e)});
_.R("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Sw(G.activeView)})};
_.V.detached=function(){this.clearInlinePreviewHoverListeners();_.R("stop_av_measurement_on_detach")&&Sw(this.activeView)};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15530_inlinePreviewHoverListener=XK({mediaRenderer:this,lockupElement:this.JSC$15530_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:$sW})};
_.V.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$15530_inlinePreviewHoverListener)==null||nx(G)};
_.V.onDataChanged=function(){var G;((G=this.data)==null?0:G.activeView)&&this.JSC$15530_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",bX.JSC$15529_DEFAULT_CLICK_LOCATION_BEHAVIOR,bX.JSC$15529_CLICK_LOCATION_ID_MAP);this.thumbnail&&(G=this.thumbnail.getElementsByTagName("a"),G.length>0&&(G=G.namedItem("thumbnail"))&&G.removeAttribute("href"));var e;if((e=this.data)==
null?0:e.forceImpAutoplay){var r;(r=this.JSC$15530_inlinePreviewHoverListener)==null||EgS(r)}};
_.V.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.V.onThumbnailContainerClick=function(G){if(this.data&&this.data.navigationEndpoint){var e,r=(e=this.data)==null?void 0:e.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(r,G,!!_.a(r,_.u4));G.stopPropagation()}};
_.V.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.V.impressionLog=function(){var G=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var e,r,Z=(r=_.a((e=this.data)==null?void 0:e.onImpression,_.LO))==null?void 0:r.commands;Z&&(Z.forEach(function(O){O.clickTrackingParams&&delete O.clickTrackingParams;G.ytComponentBehavior.resolveCommand(O)}),this.data.impressionsFired=!0)}};
_.iY.Object.defineProperties(bX.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$15530_inlinePreviewHoverListener)==null?0:xm(G))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
bX.prototype.onTypographyBumpChanged=bX.prototype.onTypographyBumpChanged;bX.prototype.onDataChanged=bX.prototype.onDataChanged;bX.JSC$15529_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);bX.JSC$15529_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"}];
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],bX.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],bX.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],bX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],bX.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.k(_.NC),_.x("design:type",Object)],bX.prototype,"ytdLockupBehavior",void 0);
_.B([_.k(_.A5),_.x("design:type",Object)],bX.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.TJ.YtSparklesClickLocationBehavior),_.x("design:type",Object)],bX.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],bX.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],bX.prototype,"noBottomMargin",void 0);_.B([_.n(),_.x("design:type",Object)],bX.prototype,"isInlinePreviewTriggered",void 0);
_.B([_.n({reflectToAttribute:!0,selector:_.lw}),_.x("design:type",Boolean)],bX.prototype,"miniMode",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],bX.prototype,"typographyBump",void 0);_.B([_.hs("ytd-thumbnail"),_.x("design:type",HTMLElement)],bX.prototype,"thumbnail",void 0);_.B([_.hs("#dismissible"),_.x("design:type",HTMLElement)],bX.prototype,"JSC$15530_dismissibleMedia",void 0);
_.B([_.hs("ytd-ad-inline-playback-meta-block"),_.x("design:type",HTMLElement)],bX.prototype,"adInlinePlaybackMetaBlock",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bX.prototype,"onDataChanged",null);_.B([_.iD("typographyBump"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bX.prototype,"onTypographyBumpChanged",null);
_.B([_.d("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],bX.prototype,"isHovered",null);_.B([_.c({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],bX);
_.A(bX,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(VtW!==void 0)return VtW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return VtW=G},{mode:1});var hVW;var vF=function(){var G=_.m.apply(this,arguments)||this;G.isInlinePreviewTriggered=!1;G.JSC$15533_activeViewMeasurementDataResolver=_.C1();return G};
_.K(vF,_.m);_.V=vF.prototype;_.V.created=function(){this.activeView=new w9(this.hostElement)};
_.V.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.V.attached=function(){var G=this;this.updateInlinePreviewHoverListeners();this.JSC$15533_activeViewMeasurementDataResolver.promise.then(function(e){$_(G.activeView,e)})};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15533_inlinePreviewHoverListener=XK({mediaRenderer:this,lockupElement:this.JSC$15533_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:$sW})};
_.V.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$15533_inlinePreviewHoverListener)==null||nx(G)};
_.V.onDataChanged=function(){var G;((G=this.data)==null?0:G.activeView)&&this.JSC$15533_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",vF.JSC$15532_DEFAULT_CLICK_LOCATION_BEHAVIOR,vF.JSC$15532_CLICK_LOCATION_ID_MAP);this.thumbnail&&(G=this.thumbnail.getElementsByTagName("a"),G.length>0&&(G=G.namedItem("thumbnail"))&&G.removeAttribute("href"))};
_.V.onThumbnailContainerClick=function(G){if(this.data&&this.data.navigationEndpoint){var e,r=(e=this.data)==null?void 0:e.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(r,G,!0);G.stopPropagation()}};
_.V.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.V.impressionLog=function(){var G=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var e,r,Z=(r=_.a((e=this.data)==null?void 0:e.onImpression,_.LO))==null?void 0:r.commands;Z&&(Z.forEach(function(O){O.clickTrackingParams&&delete O.clickTrackingParams;_.v_().resolve(_.$1).resolveCommand(O,{form:{element:G.hostElement}})}),this.data.impressionsFired=!0)}};
_.iY.Object.defineProperties(vF.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$15533_inlinePreviewHoverListener)==null?0:xm(G))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
vF.prototype.onDataChanged=vF.prototype.onDataChanged;vF.JSC$15532_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);vF.JSC$15532_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"}];_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],vF.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],vF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],vF.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.k(_.NC),_.x("design:type",Object)],vF.prototype,"ytdLockupBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],vF.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.TJ.YtSparklesClickLocationBehavior),_.x("design:type",Object)],vF.prototype,"ytSparklesClickLocationBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],vF.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],vF.prototype,"isInlinePreviewTriggered",void 0);_.B([_.n({reflectToAttribute:!0,selector:_.lw}),_.x("design:type",Boolean)],vF.prototype,"miniMode",void 0);_.B([_.hs("ytd-thumbnail"),_.x("design:type",HTMLElement)],vF.prototype,"thumbnail",void 0);_.B([_.hs("#dismissible"),_.x("design:type",HTMLElement)],vF.prototype,"JSC$15533_dismissibleMedia",void 0);
_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vF.prototype,"onDataChanged",null);_.B([_.d("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],vF.prototype,"isHovered",null);_.B([_.c({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],vF);
_.A(vF,"ytd-video-display-full-buttoned-renderer",function(){if(hVW!==void 0)return hVW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return hVW=G},{mode:1});var Yb=function(G,e,r,Z){Z=Z===void 0?!1:Z;_.rs.call(this,G);this.adsClientErrorMessage=r;this.aggressivelySample=Z;this.args=[];e&&this.args.push(e)};
_.K(Yb,_.rs);var mv=function(G,e,r,Z){Z=Z===void 0?!1:Z;_.rs.call(this,G);this.adsClientErrorMessage=r;this.aggressivelySample=Z;this.args=[];e&&this.args.push(e)};
_.K(mv,_.rs);var TNW=function(G){_.pB.call(this);var e=this;this.initializationFunction=G;this.instance=null;this.addOnDisposeCallback(function(){_.TX(e.instance);e.instance=null})};
_.K(TNW,_.pB);TNW.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.s2("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var u4S=function(){var G=new Map;[].forEach(function(e){G.set(e.JSC$30796_getType(),e)});
this.getters=G};new Promise(function(){});var sv4=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"]]),dAN=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"}]]),Diy=function(G){this.experimentApiProvider=G;G=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=G<.1};var w5=function(G,e,r,Z){_.pB.call(this);this.adsControlFlowEventListeners=e;this.adEventLogger=r;this.experimentApiProvider=Z;this.adsControlFlowManagerHelper=G(this,this,this,this,this);_.Xx(this,this.adsControlFlowManagerHelper);G=_.h(e);for(e=G.next();!e.done;e=G.next())_.Xx(this,e.value)};
_.K(w5,_.pB);var ER3=function(G,e,r,Z){$E(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",e,r,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Z);G=_.h(G.adsControlFlowEventListeners);for(Z=G.next();!Z.done;Z=G.next())ER3(Z.value,e,r)};
_.V=w5.prototype;_.V.onOpportunityProcessedExternallyManaged=function(G,e,r,Z){$E(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",G,r,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Z)};
_.V.onSlotReceivedExternallyManaged=function(G,e){SP(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",G,e)};
_.V.onSlotEntered=function(G){if(q2(this.adsControlFlowManagerHelper,G)!=null){SP(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",G);this.adsControlFlowManagerHelper.onSlotEntered(G);for(var e=_.h(this.adsControlFlowEventListeners),r=e.next();!r.done;r=e.next())r.value.onSlotEntered(G);if(q2(this.adsControlFlowManagerHelper,G)!=null&&q2(this.adsControlFlowManagerHelper,G).isOccupyingSlotType()&&tJ(this.adsControlFlowManagerHelper,G)&&!ikc(this.adsControlFlowManagerHelper,G)){var Z;g5(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",G,(Z=tJ(this.adsControlFlowManagerHelper,G))!=null?Z:void 0);G=q2(this.adsControlFlowManagerHelper,G);G.slotLifecycleStage!=="entered"&&lX(G.slot,G.slotLifecycleStage,"enterLayoutForSlot");G.slotLifecycleStage="rendering";G.registeredLayoutRenderingAdapter.startRendering(G.layout)}}};
_.V.onSlotExited=function(G){if(q2(this.adsControlFlowManagerHelper,G)!=null){SP(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",G);this.adsControlFlowManagerHelper.onSlotExited(G);for(var e=_.h(this.adsControlFlowEventListeners),r=e.next();!r.done;r=e.next())r.value.onSlotExited(G);q2(this.adsControlFlowManagerHelper,G)!=null&&q2(this.adsControlFlowManagerHelper,G).markedForUnscheduleAfterOutboundAdapterRequests&&bkS(this,G)}};
_.V.onLayoutReceivedExternallyManaged=function(G,e,r){G.managerLayer!=="core"&&g5(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",G,e,r)};
var vRl=function(G,e,r){if(q2(G.adsControlFlowManagerHelper,e)!=null){g5(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",e,r);G=_.h(G.adsControlFlowEventListeners);for(var Z=G.next();!Z.done;Z=G.next())vRl(Z.value,e,r)}};
w5.prototype.onLayoutExited=function(G,e,r){if(q2(this.adsControlFlowManagerHelper,G)!=null){g5(this.adEventLogger,oQ4(r),G,e);this.adsControlFlowManagerHelper.onLayoutExited(G,e);for(var Z=_.h(this.adsControlFlowEventListeners),O=Z.next();!O.done;O=Z.next())O.value.onLayoutExited(G,e,r);(r=tJ(this.adsControlFlowManagerHelper,G))&&e.layoutId===r.layoutId&&w6P(this,G)}};
w5.prototype.disposeInternal=function(){var G=$iy(this.adsControlFlowManagerHelper);G=_.h(G);for(var e=G.next();!e.done;e=G.next())bkS(this,e.value);_.pB.prototype.disposeInternal.call(this)};
var bkS=function(G,e){if(q2(G.adsControlFlowManagerHelper,e)!=null)if(q2(G.adsControlFlowManagerHelper,e).JSC$30826_isSlotExitRequested()||q2(G.adsControlFlowManagerHelper,e).JSC$30826_isLayoutExitRequested())q2(G.adsControlFlowManagerHelper,e).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(q2(G.adsControlFlowManagerHelper,e).isOccupyingSlotType())q2(G.adsControlFlowManagerHelper,e).markedForUnscheduleAfterOutboundAdapterRequests=!0,w6P(G,e);else if(q2(G.adsControlFlowManagerHelper,e).JSC$30826_isSlotFillRequested())q2(G.adsControlFlowManagerHelper,
e).markedForUnscheduleAfterOutboundAdapterRequests=!0,q2(G.adsControlFlowManagerHelper,e)!=null&&(SP(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",e),e=q2(G.adsControlFlowManagerHelper,e),e.fulfillmentLifecycleStage="fill_cancel_requested",e.registeredFulfillmentAdapter.cancelSlotFilling());else{var r=tJ(G.adsControlFlowManagerHelper,e),Z;G.experimentApiProvider.get();(Z=_.R("h5_enable_layout_unscheduling_events"))&&(r?So3(G,e,r):_.s2(Error("Lh"),e,r,void 0,!1));SP(G.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",e);var O=q2(G.adsControlFlowManagerHelper,e),M=e.slotEntryTrigger,T=O.registeredSlotEntryTriggerAdapters.get(M.triggerId);T&&(T.unregisterTrigger(M),O.registeredSlotEntryTriggerAdapters.delete(M.triggerId));M=_.h(e.slotFulfillmentTriggers);for(T=M.next();!T.done;T=M.next()){T=T.value;var E=O.registeredFulfillmentTriggerAdapters.get(T.triggerId);E&&(E.unregisterTrigger(T),O.registeredFulfillmentTriggerAdapters.delete(T.triggerId))}M=_.h(e.slotExpirationTriggers);
for(T=M.next();!T.done;T=M.next())if(T=T.value,E=O.registeredExpirationTriggerAdapters.get(T.triggerId))E.unregisterTrigger(T),O.registeredExpirationTriggerAdapters.delete(T.triggerId);O.hasLayout()&&(M=O.layout,Ru(O,M.layoutExitNormalTriggers),Ru(O,M.layoutExitSkipTriggers),Ru(O,M.layoutExitMuteTriggers),Ru(O,M.layoutExitUserInputSubmittedTriggers),Ru(O,M.layoutExitUserCancelledTriggers));O.registeredFulfillmentAdapter=void 0;O.registeredSlotAdapter!=null&&(O.registeredSlotAdapter.release(),O.registeredSlotAdapter=
void 0);O.registeredLayoutRenderingAdapter!=null&&(O.registeredLayoutRenderingAdapter.release(),O.registeredLayoutRenderingAdapter=void 0);O=G.adsControlFlowManagerHelper;q2(O,e)&&(O=qow(O,e.slotType+"_"+e.slotPhysicalPosition))&&O.delete(e.slotId);SP(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",e);G=_.h(G.adsControlFlowEventListeners);for(O=G.next();!O.done;O=G.next())O=O.value,O.onSlotUnscheduled(e),r&&!Z&&So3(O,e,r)}},So3=function(G,e,r){g5(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
e,r);
g5(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",e,r);G=_.h(G.adsControlFlowEventListeners);for(var Z=G.next();!Z.done;Z=G.next())Z=Z.value,r&&So3(Z,e,r)},w6P=function(G,e){if(q2(G.adsControlFlowManagerHelper,e)!=null&&q2(G.adsControlFlowManagerHelper,e).isOccupyingSlotType()){var r=tJ(G.adsControlFlowManagerHelper,e);
if(r&&ikc(G.adsControlFlowManagerHelper,e)){if(q2(G.adsControlFlowManagerHelper,e)!=null){var Z=G.adEventLogger,O;var M=((O=dAN.get("abandoned"))==null?void 0:O.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";g5(Z,M,e,r);G=q2(G.adsControlFlowManagerHelper,e);G.slotLifecycleStage!=="rendering"&&lX(G.slot,G.slotLifecycleStage,"exitLayout");G.slotLifecycleStage="rendering_stop_requested";G.registeredLayoutRenderingAdapter.stopRendering(r,"abandoned")}}else{SP(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
e);try{Z=q2(G.adsControlFlowManagerHelper,e);if(!Z)throw new mv("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"&&lX(Z.slot,Z.slotLifecycleStage,"exitSlot");Z.slotLifecycleStage="exit_requested";if(Z.registeredSlotAdapter===void 0)throw Z.slotLifecycleStage="scheduled",new mv("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
Z.registeredSlotAdapter.exit()}catch(T){T instanceof mv&&T.adsClientErrorMessage?(ttl(G.adEventLogger,T.adsClientErrorMessage,e),_.s2(T,e,void 0,void 0,T.aggressivelySample)):(ttl(G.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",e),_.s2(T,e))}}}};var jP=function(G,e,r,Z,O,M){_.pB.call(this);this.registry=G;this.experimentApiProvider=M;this.slotMap=new Map};
_.K(jP,_.pB);var qow=function(G,e){return(G=G.slotMap.get(e))?G:new Map},q2=function(G,e){return qow(G,e.slotType+"_"+e.slotPhysicalPosition).get(e.slotId)},$iy=function(G){var e=[];
G.slotMap.forEach(function(r){r=_.h(r.values());for(var Z=r.next();!Z.done;Z=r.next())e.push(Z.value.slot)});
return e};
jP.prototype.onSlotEntered=function(G){G=q2(this,G);G.slotLifecycleStage!=="enter_requested"&&lX(G.slot,G.slotLifecycleStage,"onSlotEntered");G.slotLifecycleStage="entered"};
var ikc=function(G,e){G=q2(G,e);return G.hasLayout()&&G.isRendering()},tJ=function(G,e){(G=q2(G,e))?G.hasLayout()&&!G.layout&&_.s2("Unexpected empty layout",e):_.s2("Unexpected undefined slotState",e);
return(G==null?void 0:G.layout)||null};
jP.prototype.onSlotExited=function(G){G=q2(this,G);G.slotLifecycleStage!=="exit_requested"&&lX(G.slot,G.slotLifecycleStage,"onSlotExited");G.slotLifecycleStage="scheduled"};
jP.prototype.onLayoutExited=function(G,e){G=q2(this,G);G.isPrimaryLayout(e)&&(G.slotLifecycleStage!=="rendering_stop_requested"&&lX(G.slot,G.slotLifecycleStage,"onLayoutExited"),G.slotLifecycleStage="entered")};
var Ru=function(G,e){e=_.h(e);for(var r=e.next();!r.done;r=e.next()){r=r.value;var Z=G.registeredLayoutExitTriggerAdapters.get(r.triggerId);Z&&(Z.unregisterTrigger(r),G.registeredLayoutExitTriggerAdapters.delete(r.triggerId))}},lX=function(G,e,r){_.s2("Slot stage was "+e+" when calling method "+r,G)};var lub=function(G){_.pB.call(this);this.deps=G;this.JSC$15586_adsControlFlowManager=gRC(this)};
_.K(lub,_.pB);var gRC=function(G){var e=new w5(function(r,Z,O,M){return new jP(G.deps.registry,r,Z,O,M,G.deps.experimentApiProvider)},new Set(Cbf(G.deps.registry).concat(G.deps.listeners)),G.deps.adEventLogger,G.deps.experimentApiProvider);
_.Xx(G,e);return e};var WHS=function(){};var RV3=function(G,e){_.pB.call(this);this.experimentApiProvider=G;this.eventLoggingSettingsProvider=e;this.eventCount=0;this.premiumAdSeenEventLogger=Noy()()};
_.K(RV3,_.pB);RV3.prototype.logEvent=function(G){$E(this,G)};
var SP=function(G,e,r,Z){$E(G,e,void 0,void 0,void 0,r,void 0,void 0,void 0,r.adSlotLoggingData,void 0,void 0,Z)},g5=function(G,e,r,Z,O){$E(G,e,void 0,void 0,void 0,r,Z?Z:void 0,void 0,void 0,r.adSlotLoggingData,Z?Z.adLayoutLoggingData:void 0,void 0,O);
r=_.v_().resolve(_.bq(pL))==null?void 0:CL();e=r==null?void 0:r.adsSeenHotConfig;r=r==null?void 0:r.adsHotConfig;(e==null?0:e.logOnAdsSeen)&&(r==null?0:r.webEnablePremiumAdsSeenLogging)&&jSc(G,Z?Z:void 0,O)},ttl=function(G,e,r){$E(G,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,r,void 0,void 0,void 0,r.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:e})},$E=function(G,e,r,Z,O,M,T,E,b,w,q,t,g){g=g===void 0?0:g;
auE(G.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+e,"slot:",M,"layout:",T,"ping:",E,"Opportunity:",{opportunityType:r,associatedSlotId:Z,slotsFromOpportunity:O,triggerBundle:b,adSlotLoggingData:w,adLayoutLoggingData:q});try{var l=function(){G.experimentApiProvider.get();if(e!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){e||_.s2("Empty PACF event type",M,T);var X=G.eventLoggingSettingsProvider.get();var H;(H=X.alwaysIncludeDebugData)||(X.experimentApiProvider.get(),H=
!1);X=H;H={eventType:e,eventOrder:++G.eventCount};var I={};M&&(I.slotData=I4S(X,M));if(T){var C={type:T.layoutType,controlFlowManagerLayer:sv4.get(T.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};X&&(C.debugData={layoutId:T.layoutId});I.layoutData=C}E&&(I.pingData={pingDispatchStatus:E.dispatchStatus,serializedAdPingMetadata:E.ping.serializedAdPingMetadata,pingIndex:E.index});b&&(I.triggerData=Qvi(b.trigger,b.category));r&&(I.opportunityData=pWa(X,r,Z,O));H.adClientData=I;w&&(H.serializedSlotAdServingData=
w.serializedSlotAdServingDataEntry);q&&(H.serializedAdServingData=q.serializedAdServingDataEntry);t&&(H.errorInfo=t);_.cg("adsClientStateChange",{adsClientEvent:H})}};
g&&g>0?_.IQ(_.S0(),function(){return l()},g):l()}catch(X){auE(G.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.IQ(_.S0(),function(){_.s2(X instanceof Error?X:String(X),M,T,{pacf_message:"exception during pacf logging"})})}},jSc=function(G,e,r){if(e){var Z=e.adLayoutLoggingData;
_.IQ(_.S0(),function(){G.premiumAdSeenEventLogger!=null&&Z&&_.cg("adsSeenClientLogging",{serializedAdServingDataEntry:Z.serializedAdServingDataEntry})},r!=null?r:0)}};var X6E=function(G,e){RV3.call(this,G,e)};
_.K(X6E,RV3);var KJy=function(){},auE=function(G,e){return _.R(e)};var kWb=function(){var G=new fuw;this.JSC$15611_adsControlFlowManager=(new lub(G)).JSC$15586_adsControlFlowManager},fuw=function(){_.pB.call(this);
var G=this;this.experimentApiProvider=new TNW(function(){return new KJy});
var e=new TNW(function(){return new Diy(G.experimentApiProvider)});
this.adEventLogger=new X6E(this.experimentApiProvider,e);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.K(fuw,_.pB);var HkW=function(){},diE,au=function(){diE||(diE=new HkW);
return diE},Xz=function(G){if(!G.JSC$15622_externallyManagedSlotAdapterCallback){var e=(new kWb).JSC$15611_adsControlFlowManager;
G.JSC$15622_externallyManagedSlotAdapterCallback=e}return G.JSC$15622_externallyManagedSlotAdapterCallback},oRP=function(G,e,r){var Z=e.opportunityType,O=Error("Mh");
if(Z!==void 0){var M=Xz(G);ER3(M,Z,void 0,r)}else _.s2(O,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});M=[];if(e.adSlotAndLayoutMetadata!==void 0){e=_.h(e.adSlotAndLayoutMetadata);for(var T=e.next();!T.done;T=e.next()){var E=T.value;if(T=E.adSlotMetadata)if(M.push(T),G.onSlotReceivedExternallyManaged(T,r),E.adLayoutMetadata){E=_.h(E.adLayoutMetadata);for(var b=E.next();!b.done;b=E.next())G.onLayoutReceivedExternallyManaged(T,b.value,r)}else r>0&&_.s2("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
Z,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else r>0&&_.s2("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+Z,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else r>0&&_.s2("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+Z,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(Z!==void 0)G.onOpportunityProcessedExternallyManaged(Z,M,void 0,r);else _.s2(O,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
HkW.prototype.onSlotReceivedExternallyManaged=function(G,e){G=ce(G);if(G instanceof mv)_.s2(G,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else Xz(this).onSlotReceivedExternallyManaged(G,e)};
HkW.prototype.onLayoutReceivedExternallyManaged=function(G,e,r){G=ce(G);e=nQ_(e);if(G instanceof mv)_.s2(G,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(e instanceof Yb)_.s2(e,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else Xz(this).onLayoutReceivedExternallyManaged(G,e,r)};
HkW.prototype.onOpportunityProcessedExternallyManaged=function(G,e,r,Z){var O=[];e=_.h(e);for(var M=e.next();!M.done;M=e.next())M=ce(M.value),M instanceof mv?_.s2(M,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):O.push(M);Xz(this).onOpportunityProcessedExternallyManaged(G,O,r,Z)};
var sSl=function(G,e){e=ce(e);if(e instanceof mv)_.s2(e,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var r=Xz(G);SP(r.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",e);r=_.h(r.adsControlFlowEventListeners);for(var Z=r.next();!Z.done;Z=r.next())Z=q2(Z.value,e),Z.slotLifecycleStage!=="not_scheduled"&&lX(Z.slot,Z.slotLifecycleStage,"onSlotScheduled"),Z.slotLifecycleStage="scheduled";G=Xz(G);SP(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",e);G=_.h(G.adsControlFlowEventListeners);
for(r=G.next();!r.done;r=G.next())r.value.onSlotEntered(e)}},QSy=function(G,e){e=ce(e);
if(e instanceof mv)_.s2(e,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var r=Xz(G);SP(r.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",e);r=_.h(r.adsControlFlowEventListeners);for(var Z=r.next();!Z.done;Z=r.next())Z.value.onSlotExited(e);G=Xz(G);SP(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",e);G=_.h(G.adsControlFlowEventListeners);for(r=G.next();!r.done;r=G.next())r.value.onSlotUnscheduled(e)}},IuW=function(G,e,r){e=ce(e);
r=nQ_(r);if(e instanceof mv)_.s2(e,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(r instanceof Yb)_.s2(r,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var Z=Xz(G);g5(Z.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",e,r);Z=_.h(Z.adsControlFlowEventListeners);for(var O=Z.next();!O.done;O=Z.next())O.value.onLayoutScheduled(e,r);G=Xz(G);g5(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",e,r);G=_.h(G.adsControlFlowEventListeners);
for(Z=G.next();!Z.done;Z=G.next())vRl(Z.value,e,r)}},Kw=function(G,e,r){e=ce(e);
r=nQ_(r);if(e instanceof mv)_.s2(e,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(r instanceof Yb)_.s2(r,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var Z=Xz(G);g5(Z.adEventLogger,oQ4("normal"),e,r);Z=_.h(Z.adsControlFlowEventListeners);for(var O=Z.next();!O.done;O=Z.next())O.value.onLayoutExited(e,r,"normal");G=Xz(G);G=_.h(G.adsControlFlowEventListeners);for(Z=G.next();!Z.done;Z=G.next())So3(Z.value,e,r)}};_.fw=_.y(function(G){var e=_.cx(G,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});G=Object.assign({},e);var r=e.data;e=e.customCommandResolver;var Z=(delete G.data,delete G.customCommandResolver,G);G=_.vJ({visibilityCallback:function(E,b){var w,q=(w=r().interaction)==null?void 0:w.onFirstVisible;E&&(q&&_.HQ(q),Z.setOnErrorHandler()&&mAS(b))},
showOption:_.Ep});e=_.fW(function(){return r().interaction},e,function(){var E;
return(E=Z.listenToTapEvent)==null?void 0:E.call(Z)});
var O=_.h(_.XQ(!1,void 0,"wAC0Lc")),M=O.next().value,T=O.next().value;O=_.ev(function(E){var b;((b=Z.setTouchEndHandler)==null?0:b.call(Z))&&!M()&&(E.currentTarget.click(),T(!0),setTimeout(function(){T(!1)},100));
return!1});
return _.v("ad-image-view-model",{class:function(){var E,b=[((E=r().interaction)==null?0:E.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],w;((w=Z.isGridViewEnabled)==null?0:w.call(Z))&&b.push("ytwAdImageViewModelHostInGridView");return b.join(" ")},
el:_.cQ(G,e),"on:touchend":O},_.v("div",{class:"ytwAdImageViewModelHostImageContainer"},_.v(_.nC,{data:function(){var E;return{sources:r().imageSources,contentMode:(E=r().imageProperties)==null?void 0:E.contentMode}},
alt:function(){var E,b;return((E=r().interaction)==null?void 0:(b=E.accessibility)==null?void 0:b.label)||""},
targetHeight:Z.targetHeight,targetWidth:Z.targetWidth,preserveHeight:Z.preserveHeight,preserveWidth:Z.preserveWidth,useWidth:Z.useWidth,style:function(){var E,b;return"vertical-align: bottom;"+(((E=r().background)==null?0:E.color)?"background-color:"+_.RB((b=r().background)==null?void 0:b.color)+";":"")},
className:function(){return Z.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var E,b;return(b=(E=Z.setDraggable)==null?void 0:E.call(Z))!=null?b:void 0}})))},"jc");var p6E=_.y(function(G){var e=G.data,r=G.listenToTapEvent,Z=function(){};
return _.v("ad-button-hover-overlay-view-model",{"on:click":_.ev(function(O){if(_.R("enable_web_home_top_landscape_image_layout_legacy_click_command")){var M,T=(M=e().interaction)==null?void 0:M.onTap;T&&_.xy(O.currentTarget,"yt-navigate",{endpoint:_.X0(T)})}}),
class:function(){var O;return((O=e().interaction)==null?0:O.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.cQ(_.vJ({visibilityCallback:function(O){var M,T=(M=e().interaction)==null?void 0:M.onFirstVisible;O&&T&&_.HQ(T)},
showOption:_.Ep}),_.fW(function(){return e().interaction},void 0,function(){return!_.R("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(r==null?void 0:r())}))},function(){return _.R("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.v(_.E2,{data:function(){return e().button}},{adButtonViewModel:function(O){return _.v(_.bK,{data:O.data,
customCommandResolver:Z})}}):_.v(_.E2,{data:function(){return e().button}},{adButtonViewModel:_.bK})}())},"kc");var yO;_.J_(_.y(function(G){var e=G.data;G=_.vJ({visibilityCallback:function(E,b){if(E){var w;(E=(w=e().interaction)==null?void 0:w.onFirstVisible)&&_.HQ(E);var q;if(w=(q=e().adLayoutData)==null?void 0:q.activeViewData)AI(b,w),_.R("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&FK(b)})}else _.R("stop_av_measurement_on_detach")&&FK(b)},
showOption:_.Ep,hideOption:iK});var r=_.fW(function(){return e().interaction},void 0,function(){return!0}),Z=_.h(_.XQ(!1,void 0,"VNDDT")),O=Z.next().value,M=Z.next().value;
Z=_.ev(function(){M(!0)});
var T=_.ev(function(){M(!1)});
return _.v("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.cQ(G,B6N,r),"on:mouseenter":Z,"on:mouseleave":T},_.v("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.Mk({"max-width":function(){return _.R("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.v("div",{class:function(){var E;
a:{var b;switch((E=_.a(e().thumbnailImage,pvW))==null?void 0:(b=E.imageProperties)==null?void 0:b.renderingAspect){case "RENDERING_ASPECT_SQUARE":E="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":E="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}E=void 0}return E}},_.v(_.E2,{data:function(){return e().thumbnailImage}},{adImageViewModel:function(E){return _.v(_.fw,
{data:E.data,
listenToTapEvent:!0,setTouchEndHandler:_.R("enable_top_landscape_image_experiment_dom_id_web")})}})),_.v("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.v(_.S,{cond:function(){var E,b,w;
return(E=_.a(e().thumbnailImage,pvW))==null?void 0:(b=E.imageProperties)==null?void 0:(w=b.overlayIcon)==null?void 0:w.iconImage},
then:function(E){return _.v(_.nC,{data:E,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.v("div",{class:function(){return O()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.v(_.E2,{data:function(){return e().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(E){return _.v(p6E,
{data:E.data,
listenToTapEvent:!0})}}))),_.v("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.v(_.E2,{data:function(){return e().feedAdMetadata}},{feedAdMetadataViewModel:function(E){return _.v(lK,{data:E.data,
listenToTapEvent:!0,setTouchEndHandler:_.R("enable_top_landscape_image_experiment_dom_id_web")})}})))},"lc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.N6}});_.J_(_.y(function(G){var e=G.data;G=_.vJ({visibilityCallback:function(E,b){if(E){var w;(E=(w=e().interaction)==null?void 0:w.onFirstVisible)&&_.HQ(E);var q;if(w=(q=e().adLayoutData)==null?void 0:q.activeViewData)AI(b,w),_.R("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&FK(b)})}else _.R("stop_av_measurement_on_detach")&&FK(b)},
showOption:_.Ep,hideOption:iK});var r=_.Eb(_.Xf),Z=_.fW(function(){return e().interaction}),O={},M={},T={};
return _.v("square-image-layout-view-model",{class:_.LC("ytwSquareImageLayoutViewModelHost",(O.ytwSquareImageLayoutViewModelHostColumn=r,O)),el:_.cQ(G,xAi,Z)},_.v("div",{class:_.LC("ytwSquareImageLayoutViewModelHostImage",(M.ytwSquareImageLayoutViewModelHostColumnImage=r,M))},function(){return _.v(_.E2,{data:function(){return e().adImage}},{adImageViewModel:function(E){return _.v(_.fw,{data:E.data,
isGridViewEnabled:r,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.v("div",{class:_.LC("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(T.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=r,T))},_.v(_.E2,{data:function(){return e().feedAdMetadata}},{feedAdMetadataViewModel:lK}),function(){return _.v(_.E2,{data:function(){return e().adButton}},{adButtonViewModel:function(E){var b={};
return _.v(_.bK,{data:E.data,className:_.LC((b.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,b.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=r,b))})}})}()))},"mc"),"square-image-layout-view-model",{props:{data:_.N6}});_.J_(_.y(function(G){var e=G.data;var r=G.noBottomMargin;var Z=G.typographyBump;G=_.vJ({visibilityCallback:function(t,g){if(t){var l;(t=(l=e().interaction)==null?void 0:l.onFirstVisible)&&_.HQ(t);var X;if(l=(X=e().adLayoutData)==null?void 0:X.activeViewData)AI(g,l),_.R("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&FK(g)})}else _.R("stop_av_measurement_on_detach")&&FK(g)},
showOption:_.Ep,hideOption:iK});var O=_.fW(function(){return e().interaction},void 0,function(){return _.R("enable_web_home_top_landscape_image_layout_level_click")}),M=function(){return e().interaction};
M!==void 0&&M!==null||_.GG(Error("Nh"));var T=function(){var t,g,l;return(t=_.a(e().thumbnailImage,pvW))==null?void 0:(g=t.background)==null?void 0:(l=g.backgroundImageSource)==null?void 0:l.imageSources};
M=_.h(_.XQ(!1,void 0,"NFjwje"));var E=M.next().value,b=M.next().value;M=_.ev(function(){b(!0)});
var w=_.ev(function(){b(!1)}),q=function(){return E()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.v("top-landscape-image-layout-view-model",{class:function(){var t;return((t=e().interaction)==null?0:t.onTap)&&_.R("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.cQ(G,Pb$,O),"on:mouseenter":M,"on:mouseleave":w},_.v("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.v(_.S,{cond:function(){return T()&&T().length>0},
then:function(){return _.v("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.Mk({top:"0","background-image":function(){return"url("+String(T()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.v(_.S,{cond:function(){return!!e().adButtonHoverOverlay},
then:function(){return _.v("div",{class:q},_.v(_.E2,{data:function(){return e().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:p6E}))}}),_.v("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.v(_.E2,{data:function(){return e().thumbnailImage}},{adImageViewModel:function(t){return _.v(_.fw,{data:t.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.R("enable_web_home_top_landscape_image_layout_level_click")})}})),_.v("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.v(_.nC,{data:{sources:[{clientResource:{imageName:_.R("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.v("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.v(_.E2,{data:function(){return e().feedAdMetadata}},{feedAdMetadataViewModel:function(t){return _.v(lK,{data:t.data,
noBottomMargin:function(){return r==null?void 0:r()},
listenToTapEvent:function(){return _.R("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return Z==null?void 0:Z()}})}})))},"nc"),"top-landscape-image-layout-view-model",{props:{data:_.N6,
noBottomMargin:_.N6,typographyBump:_.N6}});var CaE=_.y(function(G){var e=G.data,r=_.vJ({visibilityCallback:function(O){var M,T=(M=e().interaction)==null?void 0:M.onFirstVisible;O&&T&&_.HQ(T)},
showOption:_.Ep});G=_.fW(function(){return e().interaction},G.customCommandResolver);
var Z={};return _.v("ad-text-image-view-model",{class:_.LC("ytwAdTextImageViewModelHost",(Z.ytwAdTextImageViewModelHostDarkBackground=function(){return e().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},Z)),
el:_.cQ(r,G),"aria-label":function(){var O,M;return(O=e().interaction)==null?void 0:(M=O.accessibility)==null?void 0:M.label}},_.v("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.v(_.Wh,{text:function(){return e().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.v(_.S,{cond:function(){return e().overlayIcon},
then:function(O){return _.v("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.v(_.nC,{data:O,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"oc");var uEl=_.y(function(G){var e=G.data;return _.v("feed-ad-sitelink-view-model",{class:function(){var r;return((r=e().interaction)==null?0:r.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.cQ(_.fW(function(){return e().interaction},G.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var r,Z;return(r=e().interaction)==null?void 0:(Z=r.accessibility)==null?void 0:Z.label},
role:"link",tabindex:0},_.v(_.Wh,{text:function(){return e().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"pc");var nRP=_.y(function(G){var e=G.data;G={};return _.v("feed-ad-sitelinks-carousel-view-model",{el:_.cQ(_.vJ({visibilityCallback:function(r){var Z,O=(Z=e().interaction)==null?void 0:Z.onFirstVisible;r&&O&&_.HQ(O)},
showOption:_.Ep})),class:_.LC("ytwFeedAdSitelinksCarouselViewModelHost",(G.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return e().style==="FEED_AD_SITELINKS_STYLE_NONE"},G))},_.v(_.E2,{data:function(){return e().sitelinks}},{feedAdSitelinkViewModel:uEl}))},"qc");_.J_(_.y(function(G){var e=G.data;G=_.vJ({visibilityCallback:function(T,E){if(T){var b;(T=(b=e().interaction)==null?void 0:b.onFirstVisible)&&_.HQ(T);var w;(b=(w=e().adLayoutData)==null?void 0:w.activeViewData)&&AI(E,b)}},
showOption:_.Ep});var r=_.h(_.XQ(!1,void 0,"BzPhl")),Z=r.next().value,O=r.next().value;r=_.ev(function(){O(!0)});
var M=_.ev(function(){O(!1)});
return _.v("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.cQ(G),"on:mouseenter":r,"on:mouseleave":M},_.v("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.v("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.v(_.E2,{data:function(){return e().textImage}},{adTextImageViewModel:CaE})),_.v("div",{class:function(){return Z()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.v(_.E2,{data:function(){return e().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(T){return _.v(p6E,{data:T.data,
listenToTapEvent:!0})}}))),_.v("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.v(_.E2,{data:function(){return e().feedAdMetadata}},{feedAdMetadataViewModel:function(T){return _.v(lK,{data:T.data,
listenToTapEvent:!0})}}),_.v(_.E2,{data:function(){return e().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:nRP})))},"rc"),"text-image-no-button-layout-view-model",{props:{data:_.N6}});_.J_(_.y(function(G){var e=G.data;var r=G.typographyBump;return _.v("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.cQ(_.vJ({visibilityCallback:function(Z,O){if(Z){var M;(Z=(M=e().interaction)==null?void 0:M.onFirstVisible)&&_.HQ(Z);var T;(M=(T=e().adLayoutData)==null?void 0:T.activeViewData)&&AI(O,M)}},
showOption:_.Ep,hideOption:iK}))},_.v("div",null,_.v(_.E2,{data:function(){return e().videoLockup}},{lockupViewModel:function(Z){return _.v(_.Rk,{data:Z.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:r})}})))},"sc"),"video-display-button-group-layout-view-model",{props:{data:_.N6,
noBottomMargin:_.N6,typographyBump:_.N6}});_.J_(_.y(function(G){var e=G.data;var r=G.className;var Z=G.typographyBump;return _.v("video-display-compact-button-group-layout-view-model",{el:_.cQ(_.vJ({visibilityCallback:function(O,M){if(O){var T;(O=(T=e().interaction)==null?void 0:T.onFirstVisible)&&_.HQ(O);var E;(T=(E=e().adLayoutData)==null?void 0:E.activeViewData)&&AI(M,T)}},
showOption:_.Ep})),class:_.LC("videoDisplayCompactButtonGroupLayoutViewModelHost",r)},_.v(_.E2,{data:function(){return e().videoLockup}},{lockupViewModel:function(O){return _.v(_.Rk,{data:O.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:Z})}}))},"tc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.N6,
className:_.N6,typographyBump:_.N6}});_.J_(_.y(function(G){var e=G.data;var r=G.className;var Z=G.typographyBump;return _.v("video-display-compact-buttoned-layout-view-model",{el:_.cQ(_.vJ({visibilityCallback:function(O,M){if(O){var T;(O=(T=e().interaction)==null?void 0:T.onFirstVisible)&&_.HQ(O);var E;(T=(E=e().adLayoutData)==null?void 0:E.activeViewData)&&AI(M,T)}},
showOption:_.Ep})),class:_.LC("videoDisplayCompactButtonedLayoutViewModelHost",r)},_.v(_.E2,{data:function(){return e().videoLockup}},{lockupViewModel:function(O){return _.v(_.Rk,{data:O.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:Z})}}))},"uc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.N6,
className:_.N6,typographyBump:_.N6}});_.J_(_.y(function(G){var e=G.data;var r=G.className;var Z=G.typographyBump;var O=function(){return e().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},M=_.Eb(_.Xf);
G=_.vJ({visibilityCallback:function(w,q){if(w){var t=e();w=t.adLayoutData;var g;(t=(g=t.interaction)==null?void 0:g.onFirstVisible)&&_.HQ(t);(g=w==null?void 0:w.activeViewData)&&AI(q,g)}},
showOption:_.Ep});var T=_.dw(function(){return{containerType:O()&&M()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST",responsiveSize:O()?"RESPONSIVE_SIZE_COMPACT":void 0}},void 0,"Ikxfhe"),E=_.dw(function(){return O()&&M()?"":O()?"168px":"50%"},void 0,"Om6kNe"),b=_.dw(function(){return O()&&M()?9999:void 0},void 0,"S71lKd");
return _.v("video-display-compact-layout-view-model",{el:_.cQ(G),class:_.LC("videoDisplayCompactLayoutViewModelHost",r)},_.v(_.E2,{data:function(){return e().videoLockup}},{lockupViewModel:function(w){return _.v(_.Rk,{data:w.data,
containerLayoutConfig:T,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:E,thumbnailTargetWidth:b,typographyBump:Z})}}))},"vc"),"video-display-compact-layout-view-model",{props:{data:_.N6,
className:_.N6,typographyBump:_.N6}});_.J_(_.y(function(G){var e=G.data;var r=G.typographyBump;return _.v("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.cQ(_.vJ({visibilityCallback:function(Z,O){if(Z){var M;(Z=(M=e().interaction)==null?void 0:M.onFirstVisible)&&_.HQ(Z);var T;(M=(T=e().adLayoutData)==null?void 0:T.activeViewData)&&AI(O,M)}},
showOption:_.Ep,hideOption:iK}))},_.v("div",null,_.v(_.E2,{data:function(){return e().videoLockup}},{lockupViewModel:function(Z){return _.v(_.Rk,{data:Z.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:r})}})))},"wc"),"video-display-full-layout-view-model",{props:{data:_.N6,
noBottomMargin:_.N6,typographyBump:_.N6}});_.mib=_.y(function(G){var e=G.data;G=_.hT("ad-card-badge-view-model");return _.v("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:G},_.v(_.S,{cond:function(){return e().imageBadge},
then:function(r){return _.v(_.nC,{data:r,alt:""})}}))},"xc");var cfW=_.y(function(G){var e=G.data;var r=G.customCommandResolver;return _.v("carousel-ad-card-image-view-model",{class:function(){var Z;return((Z=e().interaction)==null?0:Z.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.cQ(_.vJ({visibilityCallback:function(Z){var O,M=(O=e().interaction)==null?void 0:O.onFirstVisible;Z&&M&&_.HQ(M)},
showOption:_.Ep}),_.fW(function(){return e().interaction},r)),
"aria-label":function(){var Z,O;return(Z=e().interaction)==null?void 0:(O=Z.accessibility)==null?void 0:O.label}},_.v(_.E2,{data:function(){return e().adImage}},{adImageViewModel:function(Z){return _.v(_.fw,{data:Z.data,
customCommandResolver:r})}}),_.v("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.v(_.E2,{data:function(){return e().badge}},{adCardBadgeViewModel:_.mib})),_.v(_.ED,{model:{color:4}}))},"yc");var YoW=_.y(function(G){var e=_.h(_.XQ(0,void 0,"JJ0QQc")),r=e.next().value;e.next();var Z=e.next().value,O=_.h(_.XQ(!1,void 0,"f6YICe"));e=O.next().value;var M=O.next().value,T;_.yD(function(){clearTimeout(T)});
O=_.ev(function(){var w;((w=G.animate)==null?0:w.call(G))?(M(!0),T=setTimeout(function(){M(!1);E()},200)):E();
return!1});
var E=function(){Z(function(w){return(w+G.numShownItems())%G.data().length})},b={};
return _.v("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.v("div",{class:_.LC("ytwHorizontalCarouselCarouselWrapper")},_.v("div",{class:_.LC("ytwHorizontalCarouselCarouselInnerWrapper",(b.ytwHorizontalCarouselAnimating=e,b))},_.v(_.u6,{each:G.data,keyBy:"INDEX"},function(w,q){return _.v("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.Mk({"flex-basis":function(){return"calc((100% - (8px * "+(G.numShownItems()-1)+")) / "+G.numShownItems()+")"},
order:function(){var t=q-r();t<0&&(t+=G.data().length);return t}})},G.children(w,q))}))),_.v("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":O},G.nextButton()))},"zc");var yfP=_.y(function(G){var e=G.data;var r=G.customCommandResolver;var Z=G.expansive;return _.v("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.cQ(_.vJ({visibilityCallback:function(O){var M,T=(M=e().interaction)==null?void 0:M.onFirstVisible;O&&T&&_.HQ(T)},
showOption:_.Ep}))},_.v(YoW,{data:function(){var O;return((O=e())==null?void 0:O.carouselAdCards)||[]},
nextButton:function(){return _.v(_.E2,{data:function(){return e().nextButton}},{buttonViewModel:function(O){var M=O.data;
return _.v(_.wF,{data:function(){return(Z==null?0:Z())?Object.assign({},M(),{style:"mono"}):M()},
className:_.R("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(O){return _.v(_.E2,{data:O},{carouselAdCardImageViewModel:function(M){return _.v(cfW,{data:M.data,customCommandResolver:r})}})}))},"Ac");var Af3=_.y(function(G){var e=G.data;var r=G.customCommandResolver;var Z=G.className;var O=G.buttonClassName;var M=G.animationEntityKey;var T=G.expansive;return _.v("carousel-button-view-model",{class:_.LC("ytwCarouselButtonViewModelHost",Z)},_.v(_.E2,{data:function(){return e().carousel}},{carouselAdCardCollectionViewModel:function(E){return _.v(yfP,{data:E.data,
customCommandResolver:r,expansive:T})}}),_.v(_.E2,{data:function(){return e().button}},{adButtonViewModel:function(E){var b=E.data;
return _.v(_.bK,{data:function(){return(T==null?0:T())?Object.assign({},b(),{style:"AD_BUTTON_STYLE_TONAL"}):b()},
className:O,customCommandResolver:r,animationEntityKey:M})}}))},"Bc");_.FJl=_.y(function(G){var e=G.data;G=G.className;var r=_.hT("pivot-button-view-model");_.yY(function(){var Z;((Z=e())==null?0:Z.backgroundColor)&&r.value.setAttribute("data-background-color",String(e().backgroundColor))});
return _.v("pivot-button-view-model",{el:r,class:_.LC("ytwPivotButtonViewModelHost",G)},_.v(_.Ds,{command:function(){var Z=e();Z=Z.onClickCommand?_.X0(Z.onClickCommand):Z.contentDescription?_.Fs(Z.contentDescription):void 0;return Z},
ariaLabel:function(){return e().contentDescription}},_.v(_.S,{cond:function(){return e().thumbnail},
then:function(Z){return _.v(_.nC,{data:Z,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.v(_.S,{cond:function(){return e().icon},
then:function(Z){return _.v(_.V$,{icon:function(){return Z().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Cc");_.JfC=_.y(function(G){var e=G.data;var r=G.buttonShapeOverrideables;return _.v("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.v(_.E2,{data:function(){return e().buttonViewModels}},{buttonViewModel:function(Z){return _.v(_.wF,{data:Z.data,
buttonOverrides:r})},
likeButtonViewModel:function(Z){return _.v(_.BZ,{data:Z.data,buttonShapeOverrideables:r})},
dislikeButtonViewModel:function(Z){return _.v(_.Jv,{data:Z.data,buttonShapeOverrideables:r})},
toggleButtonViewModel:function(Z){return _.v(_.pb,{data:Z.data,buttonShapeOverrides:r})}}))},"Dc");var BNC=_.y(function(G){var e=G.avatar;var r=G.headline;var Z=G.badge;var O=G.description;var M=G.expansive;G={};return _.v("yt-ad-metadata-shape",{class:_.LC("ytAdMetadataShapeHost",(G.ytAdMetadataShapeHostLarge=M,G))},_.v("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.v(_.S,{cond:e,then:function(T){return _.v(_.nkj,{data:function(){return(M==null?0:M())?Object.assign({},T(),{size:"AD_AVATAR_SIZE_M"}):T()}})}}),_.v("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.v(_.Wh,{text:r,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.v(_.S,{cond:Z,then:function(T){return _.v(_.tE,{data:function(){return(M==null?0:M())?Object.assign({},T(),{style:"AD_BADGE_STYLE_STARK"}):T()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.v("h2",{class:"ytAdMetadataShapeHostDescription"},_.v(_.Wh,{text:O,
linkInheritColor:!0,isHeadline:function(){return M==null?void 0:M()}})))},"Ec");var xiE=_.y(function(G){var e=G.data;var r=G.onShow;var Z=G.expansive;G=_.fW(function(){return e().interaction});
_.yY(function(){var M,T=(M=e().animatedRenderingConfig)==null?void 0:M.delayedSecondsToVisible;if(T){var E=setTimeout(r,T*1E3);_.yD(function(){clearTimeout(E)})}});
var O={};return _.v("reels-ad-card-buttoned-view-model",{class:_.LC(function(){var M;return((M=e().interaction)==null?0:M.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(O.ytwReelsAdCardButtonedViewModelHostExpansive=Z,O)),
el:_.cQ(G)},_.v(BNC,{avatar:function(){return _.a(e().avatar,ssW)},
headline:function(){return e().headline},
badge:function(){return _.a(e().adBadge,Qs3)},
description:function(){return e().description},
expansive:Z}),_.v(_.E2,{data:function(){return e().ctaButton}},{adButtonViewModel:function(M){var T=M.data;
return _.v(_.bK,{data:function(){return(Z==null?0:Z())?Object.assign({},T(),{style:"AD_BUTTON_STYLE_FILLED"}):T()}})}}))},"Fc");var Pay=_.y(function(G){var e=G.data;G=G.expansive;var r=_.R("web_ad_metadata_clickable")?_.fW(function(){return e().interaction},void 0,function(){return _.R("web_ad_metadata_clickable")}):void 0,Z={};
Z=_.qo("ytwReelsAdMetadataViewModelHost",(Z.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.R("web_ad_metadata_clickable"),Z));return _.v("reels-ad-metadata-view-model",{class:Z,el:_.cQ(r)},_.v(BNC,{avatar:function(){return _.a(e().avatar,ssW)},
headline:function(){return e().headline},
badge:function(){return _.a(e().adBadge,Qs3)},
description:function(){return e().description},
expansive:G}))},"Gc");var Uil={iconPosition:"icon-with-label",size:"L"},zVW=_.y(function(G){var e=G.data;var r=G.overlayDensity;var Z=G.extractOverlay;var O=G.extractActionBar;G=_.hT("reels-player-overlay-layout-view-model");var M=_.mr(r,0),T=function(){var l;return(l=e().reelsAdCardButtonedEntityKey)!=null?l:""},E=function(){return T()+"/ad_button"},b=_.hI(Rli,T),w=function(){var l,X;
return(X=(l=b())==null?void 0:l.value)!=null?X:!1},q=_.Eb(UAN),t=function(){var l;
return Object.assign({},Uil,(q()||!((l=O==null?void 0:O())!=null&&l))&&{style:"overlay-dark"})};
r={};var g={};return _.v("reels-player-overlay-layout-view-model",{class:_.LC("ytwReelsPlayerOverlayLayoutViewModelHost",(r.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!e().extension},r.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},r.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return M()===1&&!(Z==null?0:Z())},r.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var l;
return(l=Z==null?void 0:Z())!=null?l:!1},r.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var l;
return(l=O==null?void 0:O())!=null?l:!1},r)),
"overlay-density":function(){return String(M())},
el:G},_.v("div",{class:_.LC("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(g.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},g))},_.v("div",{"aria-hidden":function(){return w()},
class:_.LC("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return w()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.Mk({"transition-duration":function(){return Lqy(e())}})},_.v(_.E2,{data:function(){return e().adMetadata}},{reelsAdMetadataViewModel:function(l){return _.v(Pay,{data:l.data,
expansive:function(){return M()===1}})}}),_.v(_.S,{cond:function(){return e().extension},
then:function(l){return _.v("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.v(_.E2,{data:l},{adButtonViewModel:function(X){return _.v(_.bK,{data:X.data,animationEntityKey:E,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(X){return _.v(Af3,{data:X.data,animationEntityKey:E,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return M()===1}})}}))}})),_.v("div",{"aria-hidden":function(){return!w()},
class:_.LC("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return w()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.Mk({"transition-duration":function(){return Lqy(e())}})},_.v(_.E2,{data:function(){return e().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(l){return _.v(xiE,{data:l.data,
onShow:function(){_.nR(_.bt("booleanEntity",T(),{key:T(),value:!0}))},
expansive:function(){return M()===1}})}}))),_.v("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.v(_.E2,{data:function(){return e().actions}},{reelActionBarViewModel:function(l){return _.v(_.JfC,{data:l.data,
buttonShapeOverrideables:t})}}),_.v(_.E2,{data:function(){return e().menu}},{buttonViewModel:function(l){return _.v(_.wF,{data:l.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},t(),{type:"tonal"})}})}}),_.v(_.E2,{data:function(){return e().pivotButton}},{pivotButtonViewModel:function(l){return _.v(_.FJl,{data:l.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Hc");_.J_(zVW,"reels-player-overlay-layout-view-model",{props:{data:_.N6,overlayDensity:_.N6,extractOverlay:_.N6,extractActionBar:_.N6}});var Qd=function(){var G=_.m.apply(this,arguments)||this;G.noBottomMargin=!1;G.overlayDensity=0;G.extractOverlay=!1;G.extractActionBar=!1;return G};
_.K(Qd,_.m);_.V=Qd.prototype;
_.V.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:_.R("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]]"}}}}}};
_.V.ready=function(){var G=this;h6F(function(){G.isAttached&&ut(G.JSC$15668_storedAdSlotMetadata,G.JSC$15668_storedAdLayoutMetadata,G.adSlotMetadata,G.adLayoutMetadata)&&Kw(au(),G.JSC$15668_storedAdSlotMetadata,G.JSC$15668_storedAdLayoutMetadata)})};
_.V.attached=function(){ut(this.JSC$15668_storedAdSlotMetadata,this.JSC$15668_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&IuW(au(),this.JSC$15668_storedAdSlotMetadata,this.JSC$15668_storedAdLayoutMetadata)};
_.V.detached=function(){ut(this.JSC$15668_storedAdSlotMetadata,this.JSC$15668_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Kw(au(),this.JSC$15668_storedAdSlotMetadata,this.JSC$15668_storedAdLayoutMetadata)};
_.V.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.V.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15668_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15668_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15668_storedAdLayoutMetadata!==void 0&&this.JSC$15668_storedAdSlotMetadata!==void 0&&Kw(au(),this.JSC$15668_storedAdSlotMetadata,this.JSC$15668_storedAdLayoutMetadata),IuW(au(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15668_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15668_storedAdSlotMetadata=this.adSlotMetadata)};
_.iY.Object.defineProperties(Qd.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.adLayoutMetadata}}});
Qd.prototype.onAdMetadataChanged=Qd.prototype.onAdMetadataChanged;Qd.prototype.onTypographyBumpChanged=Qd.prototype.onTypographyBumpChanged;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Qd.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Qd.prototype,"rendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Qd.prototype,"ytComponentBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],Qd.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],Qd.prototype,"noBottomMargin",void 0);_.B([_.n(),_.x("design:type",Object)],Qd.prototype,"overlayDensity",void 0);_.B([_.n(),_.x("design:type",Object)],Qd.prototype,"extractOverlay",void 0);_.B([_.n(),_.x("design:type",Object)],Qd.prototype,"extractActionBar",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],Qd.prototype,"typographyBump",void 0);
_.B([_.d("data.adLayoutMetadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],Qd.prototype,"adLayoutMetadata",null);_.B([_.n(),_.x("design:type",Object)],Qd.prototype,"adSlotMetadata",void 0);_.B([_.hs("ytd-video-display-full-buttoned-and-button-group-renderer"),_.x("design:type",HTMLElement)],Qd.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.B([_.Me("typographyBump"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qd.prototype,"onTypographyBumpChanged",null);_.B([_.Me("adLayoutMetadata","adSlotMetadata"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qd.prototype,"onAdMetadataChanged",null);_.B([_.c({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],Qd);
_.A(Qd,"ytd-in-feed-ad-layout-renderer",function(){if(uVj!==void 0)return uVj;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return uVj=G},
{mode:_.Px("kevlar_poly_si_batch_j028")?1:2});var WJ3;var NNl;_.J_(_.tE,"ad-badge-view-model",{props:{data:_.N6,hasDot:_.N6,customCommandResolver:_.yb,adRenderingContextType:_.yb,usedInMasthead:_.yb}});_.J_(_.bK,"ad-button-view-model",{props:{data:_.N6,customCommandResolver:_.yb,className:_.yb,delayedClassName:_.yb,animationEntityKey:_.yb,isCompactWidth:_.yb,isContentWidth:_.yb}});var Iu=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return G};
_.K(Iu,_.m);_.V=Iu.prototype;_.V.computeHasLiveDescription=function(G){return!(G==null||!G.liveDescription)};
_.V.computeHasByline=function(G){return!(G==null||!G.byline)};
_.V.computeUsesAdButtonViewModel=function(G){return!!_.a(G==null?void 0:G.cta,IFl)};
_.V.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"}}}}}};
_.V.onYtToggleButton=function(G){var e,r=(e=this.data)==null?void 0:e.videoReminderEntityKey;r&&this.ytdReduxBehavior.dispatch(_.bt("upcomingEventReminderStateEntity",r,{key:r,state:G.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.V.attached=function(){this.updateChannelBanner()};
_.V.dataChanged=function(){this.updateChannelBanner()};
_.V.videoReminderStateChanged=function(){var G;this.videoReminderState&&_.a((G=this.data)==null?void 0:G.cta,_.WV)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.V.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var G=_.BQ(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);G&&(G.startsWith("//")&&(G="https:"+G),this.hostElement.classList.add("channel-banner"),_.eD(this.hostElement,{"--ytvmh-channel-banner":"url("+G+")"}))}else _.R("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.V.onPlayerReady=function(){this.onIronResize()};
_.V.maybeFlushDebouncer=function(){_.R("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(G){var e;G=(e=G.getElementsByTagName("yt-attributed-string"))==null?void 0:e[0];fUS(G==null?void 0:G.polymerController)})};
_.V.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var G=_.z1(this.hostElement).querySelector("#live-description"),e;G&&((e=this.data)==null?0:e.shortLiveDescription)&&G.clientWidth<G.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
Iu.prototype.onIronResize=Iu.prototype.onIronResize;Iu.prototype.videoReminderStateChanged=Iu.prototype.videoReminderStateChanged;Iu.prototype.dataChanged=Iu.prototype.dataChanged;Iu.prototype.onYtToggleButton=Iu.prototype.onYtToggleButton;_.B([_.k(_.CS),_.x("design:type",Object)],Iu.prototype,"ironResizableBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Iu.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Iu.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Iu.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],Iu.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Iu.prototype,"data",void 0);_.B([_.n({selectorArgs:["data.videoReminderEntityKey"],selector:VAS}),_.x("design:type",Object)],Iu.prototype,"videoReminderState",void 0);
_.B([_.n({reflectToAttribute:!0,value:_.R("web_modern_buttons")}),_.x("design:type",Boolean)],Iu.prototype,"rounded",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.x("design:type",Boolean)],Iu.prototype,"hasLiveDescription",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.x("design:type",Boolean)],Iu.prototype,"hasByline",void 0);
_.B([_.n({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.x("design:type",String)],Iu.prototype,"adRenderingContextType",void 0);_.B([_.n({value:!0}),_.x("design:type",Boolean)],Iu.prototype,"isMasthead",void 0);_.B([_.n({computed:"computeUsesAdButtonViewModel(data)"}),_.x("design:type",Boolean)],Iu.prototype,"usesAdButtonViewModel",void 0);
_.B([_.n({reflectToAttribute:!0,value:_.R("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.x("design:type",Boolean)],Iu.prototype,"resizableAdBannerSafariFix",void 0);_.B([_.To("yt-formatted-string"),_.x("design:type",Array)],Iu.prototype,"formattedStrings",void 0);_.B([_.hs("#cta-button"),_.x("design:type",HTMLElement)],Iu.prototype,"ctaButton",void 0);
_.B([_.Om("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Iu.prototype,"onYtToggleButton",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Iu.prototype,"dataChanged",null);_.B([_.Me("videoReminderState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Iu.prototype,"videoReminderStateChanged",null);
_.B([_.Om("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Iu.prototype,"onIronResize",null);_.B([_.c({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],Iu);
_.A(Iu,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(NNl!==void 0)return NNl;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return NNl=G},{mode:1});var LJE;var pw=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};G.isLocked=!1;return G};
_.K(pw,_.m);_.V=pw.prototype;_.V.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.V.onExpandedChanged=function(){this.expanded&&_.UW(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.V.onMouseOver=function(){this.maybeExpand()};
_.V.onTap=function(){this.maybeExpand()};
_.V.onExpandableTileExpanding=function(G){G!==this&&(this.expanded=!1)};
_.V.onExpandableTileLockAndCollapse=function(G){this.isLocked=!0;G!==this&&(this.expanded=!1)};
_.V.onExpandableTileUnlock=function(){this.isLocked=!1};
pw.prototype.onTap=pw.prototype.onTap;pw.prototype.onMouseOver=pw.prototype.onMouseOver;pw.prototype.onExpandedChanged=pw.prototype.onExpandedChanged;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],pw.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],pw.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],pw.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],pw.prototype,"expanded",void 0);_.B([_.iD("expanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pw.prototype,"onExpandedChanged",null);_.B([_.Om("mouseover"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pw.prototype,"onMouseOver",null);_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pw.prototype,"onTap",null);
_.B([_.c({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],pw);
_.A(pw,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(LJE!==void 0)return LJE;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return LJE=G},{mode:1});var GkW;var Cw=function(){var G=_.m.apply(this,arguments)||this;G.buttonOverrides={style:"overlay"};G.useYtdPlayer=_.R("use_ytd_player_for_desktop_masthead");G.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};G.playbackFinished=!1;G.JSC$15682_playerManager=null;G.JSC$15682_mastheadCounter=new GcW;return G};
_.K(Cw,_.m);_.V=Cw.prototype;_.V.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"}}}};
_.V.created=function(){this.JSC$15682_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15682_playerManager=new Hh)};
_.V.ready=function(){var G=this;this.JSC$15682_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var e=_.z1(this.hostElement).querySelector("#player");this.useYtdPlayer?e.style.display="none":(this.ytdPlayer.style.display="none",JlW(this.JSC$15682_playerManager,e,function(){G.onPlaybackEnded()}),_.z1(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var r;
((r=G.data)==null?0:r.navigationEndpoint)&&_.xy(G.hostElement,"yt-navigate",{endpoint:G.data.navigationEndpoint})}))};
_.V.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15682_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.V.attached=function(){var G=this;_.oR(function(){G.maybePlayVideo()})};
_.V.maybePlayVideo=function(){var G=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$15682_playerManager.playVideo(),this.getPlayerPromise().then(function(){G.JSC$15682_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.V.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15682_playerManager.stopVideo()};
_.V.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var G,e={autoplay:0,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.ytdPlayer.loadVideoWithPlayerVars(e);this.setupYtdPlayer()}else xjv(this.JSC$15682_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(BMc(this.JSC$15682_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.V.getPlayerPromise=function(){return this.JSC$15682_playerManager.getPlayerPromise()};
_.V.onYtToggleButton=function(G){this.useYtdPlayer?this.toggleMute(G.detail.toggled):G.detail.toggled?this.JSC$15682_playerManager.mute():this.JSC$15682_playerManager.unMute()};
_.V.onYtNavigate=function(G){var e=D2A(G.detail.endpoint),r=EEA(this.data.clickthroughReportingData);e&&r&&(G.detail.endpoint.watchEndpoint?G.detail.tempData=r:_.Yy(e,r,30))};
_.V.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.V.onExpandedChanged=function(){this.expanded?(_.UW(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.V.onMouseOver=function(){this.maybeExpand()};
_.V.onTap=function(){this.maybeExpand()};
_.V.onExpandableTileExpanding=function(G){G!==this&&(this.stopVideo(),this.expanded=!1)};
_.V.onExpandableTileLockAndCollapse=function(G){G!==this&&(this.isLocked=!0,this.expanded=!1)};
_.V.onExpandableTileUnlock=function(){this.isLocked=!1};
_.V.lockAndCollapseExpandableTiles=function(){_.Pi(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.V.unlockExpandableTiles=function(){_.Pi(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.V.setupYtdPlayer=function(){var G=this,e;return _.D(function(r){if(r.nextAddress==1)return r.yield(G.ytdPlayer.getPlayerPromise(),2);e=r.yieldResult;e.addEventListener("onStateChange",function(Z){G.onPlayerStateChange(Z)});
e.addEventListener("onCueRangeExit",function(Z){G.onCueRangeExit(Z)});
_.HL(r)})};
_.V.onPlayerStateChange=function(G){if(G===1&&(G=this.ytdPlayer.getPlayer())){var e=G.getCurrentTime(),r,Z,O=e+((Z=(r=this.data)==null?void 0:r.playbackDurationMs)!=null?Z:0)/1E3;G.addCueRange("playback",e,O);this.JSC$15682_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.V.onCueRangeExit=function(G){G==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.V.toggleMute=function(G){var e=this,r;return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(e.ytdPlayer.getPlayerPromise(),2);r=Z.yieldResult;G?r.mute():r.unMute();_.HL(Z)})};
Cw.prototype.onTap=Cw.prototype.onTap;Cw.prototype.onMouseOver=Cw.prototype.onMouseOver;Cw.prototype.onExpandedChanged=Cw.prototype.onExpandedChanged;Cw.prototype.onYtNavigate=Cw.prototype.onYtNavigate;Cw.prototype.onYtToggleButton=Cw.prototype.onYtToggleButton;Cw.prototype.dataChanged=Cw.prototype.dataChanged;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Cw.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Cw.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Cw.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Cw.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Cw.prototype,"expanded",void 0);_.B([_.n(),_.x("design:type",Object)],Cw.prototype,"buttonOverrides",void 0);
_.B([_.n(),_.x("design:type",Object)],Cw.prototype,"useYtdPlayer",void 0);_.B([_.hs("#ytd-player"),_.x("design:type",Object)],Cw.prototype,"ytdPlayer",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Cw.prototype,"dataChanged",null);_.B([_.Om("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Cw.prototype,"onYtToggleButton",null);
_.B([_.Om("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Cw.prototype,"onYtNavigate",null);_.B([_.iD("expanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Cw.prototype,"onExpandedChanged",null);_.B([_.Om("mouseover"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Cw.prototype,"onMouseOver",null);
_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Cw.prototype,"onTap",null);_.B([_.c({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],Cw);
_.A(Cw,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(GkW!==void 0)return GkW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return GkW=G},{mode:1});var eRc;var uX=function(){return _.m.apply(this,arguments)||this};
_.K(uX,_.m);uX.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
uX.prototype.onShow=function(){var G=_.z1(this.hostElement).querySelector("#live-description"),e;G&&((e=this.data)==null?0:e.shortLiveDescription)&&G.clientWidth<G.scrollWidth&&this.hostElement.classList.add("short-live-description")};
uX.prototype.onYtToggleButton=function(G){var e,r=(e=this.data)==null?void 0:e.videoReminderEntityKey;r&&this.ytdReduxBehavior.dispatch(_.bt("upcomingEventReminderStateEntity",r,{key:r,state:G.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
uX.prototype.videoReminderStateChanged=function(){var G;this.videoReminderState&&_.a((G=this.data)==null?void 0:G.cta,_.WV)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
uX.prototype.videoReminderStateChanged=uX.prototype.videoReminderStateChanged;uX.prototype.onYtToggleButton=uX.prototype.onYtToggleButton;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],uX.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],uX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],uX.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],uX.prototype,"data",void 0);
_.B([_.n({selectorArgs:["data.videoReminderEntityKey"],selector:VAS}),_.x("design:type",Object)],uX.prototype,"videoReminderState",void 0);_.B([_.Om("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],uX.prototype,"onYtToggleButton",null);_.B([_.Me("videoReminderState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uX.prototype,"videoReminderStateChanged",null);
_.B([_.c({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],uX);
_.A(uX,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(eRc!==void 0)return eRc;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return eRc=G},{mode:_.Px("kevlar_poly_si_batch_j065")?1:2});var rpP;var nw=function(){var G=_.m.apply(this,arguments)||this;G.useYtdPlayer=_.R("use_ytd_player_for_desktop_masthead");G.buttonOverrides={style:"overlay"};G.JSC$15690_playerManager=null;G.JSC$15690_mastheadCounter=new GcW;G.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return G};
_.K(nw,_.m);_.V=nw.prototype;_.V.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"}}}};
_.V.created=function(){this.JSC$15690_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15690_playerManager=new Hh)};
_.V.ready=function(){var G=this;this.JSC$15690_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var e;(e=this.embeddedPlayer)==null||e.remove()}else{var r;(r=this.ytdPlayer)==null||r.remove();JlW(this.JSC$15690_playerManager,this.embeddedPlayer,function(){G.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){G.data&&G.data.navigationEndpoint&&_.xy(G.hostElement,"yt-navigate",{endpoint:G.data.navigationEndpoint})})}};
_.V.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15690_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.V.dataChanged=function(){var G=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var e=!this.data.disableAutoPlayback,r,Z={autoplay:e,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((r=this.data.playbackStartMs)!=null?r:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(e?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(Z);this.setupYtdPlayer()}else xjv(this.JSC$15690_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(BMc(this.JSC$15690_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15690_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.Pi(G.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");G.JSC$15690_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.V.getPlayerPromise=function(){return this.JSC$15690_playerManager.getPlayerPromise()};
_.V.onYtToggleButton=function(G){this.useYtdPlayer?this.toggleMute(G.detail.toggled):G.detail.toggled?this.JSC$15690_playerManager.mute():this.JSC$15690_playerManager.unMute()};
_.V.onYtNavigate=function(G){var e=D2A(G.detail.endpoint),r=EEA(this.data.clickthroughReportingData);e&&r&&(G.detail.endpoint.watchEndpoint?G.detail.tempData=r:_.Yy(e,r,30))};
_.V.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15690_playerManager.stopVideo()};
_.V.setupYtdPlayer=function(){var G=this,e;return _.D(function(r){if(r.nextAddress==1)return r.yield(G.ytdPlayer.getPlayerPromise(),2);e=r.yieldResult;e.addEventListener("onStateChange",function(Z){G.onPlayerStateChange(Z)});
e.addEventListener("onCueRangeExit",function(Z){G.onCueRangeExit(Z)});
_.HL(r)})};
_.V.onPlayerStateChange=function(G){if(G===1&&(G=this.ytdPlayer.getPlayer())){var e=G.getCurrentTime(),r,Z,O=e+((Z=(r=this.data)==null?void 0:r.playbackDurationMs)!=null?Z:0)/1E3;G.addCueRange("playback",e,O);_.Pi(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15690_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.V.onCueRangeExit=function(G){G==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.V.toggleMute=function(G){var e=this,r;return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(e.ytdPlayer.getPlayerPromise(),2);r=Z.yieldResult;G?r.mute():r.unMute();_.HL(Z)})};
_.iY.Object.defineProperties(nw.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var G,e;if(!((G=this.data)==null?0:(e=G.accessibilityData)==null?0:e.label))return"Ad primary link";var r,Z;return _.OK("AD_TITLE",{title:(r=this.data)==null?void 0:(Z=r.accessibilityData)==null?void 0:Z.label})}}});
nw.prototype.onYtMastheadHidden=nw.prototype.onYtMastheadHidden;nw.prototype.onYtNavigate=nw.prototype.onYtNavigate;nw.prototype.onYtToggleButton=nw.prototype.onYtToggleButton;nw.prototype.dataChanged=nw.prototype.dataChanged;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],nw.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],nw.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],nw.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],nw.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],nw.prototype,"useYtdPlayer",void 0);_.B([_.hs("ytd-toggle-button-renderer"),_.x("design:type",Object)],nw.prototype,"muteButton",void 0);_.B([_.n(),_.x("design:type",Object)],nw.prototype,"buttonOverrides",void 0);
_.B([_.d("data.accessibilityData.label"),_.x("design:type",String),_.x("design:paramtypes",[])],nw.prototype,"titleAriaLabel",null);_.B([_.hs("#replay-button"),_.x("design:type",Object)],nw.prototype,"replayButton",void 0);_.B([_.hs("#player-container"),_.x("design:type",Object)],nw.prototype,"playerContainer",void 0);_.B([_.hs("#player"),_.x("design:type",Object)],nw.prototype,"embeddedPlayer",void 0);_.B([_.hs("#ytd-player"),_.x("design:type",Object)],nw.prototype,"ytdPlayer",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nw.prototype,"dataChanged",null);_.B([_.Om("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],nw.prototype,"onYtToggleButton",null);_.B([_.Om("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],nw.prototype,"onYtNavigate",null);
_.B([_.Om("yt-masthead-hidden"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nw.prototype,"onYtMastheadHidden",null);_.B([_.c({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],nw);
_.A(nw,"ytd-video-masthead-ad-primary-video-renderer",function(){if(rpP!==void 0)return rpP;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return rpP=G},{mode:2});var Z$S;var m7=function(){var G=_.m.apply(this,arguments)||this;G.collapsed=!1;G.impressionResolver=_.C1();G.JSC$15694_activeViewMeasurementDataResolver=_.C1();G.actionMap={"yt-mute-ad-action":"handleMuteAd"};return G};
_.K(m7,_.m);_.V=m7.prototype;_.V.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"}}}};
_.V.created=function(){this.activeView=new w9(this.hostElement)};
_.V.ready=function(){var G=this;_.z1(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){G.expandAd()});
this.hostElement.addEventListener("yt-action",function(e){if(e.detail.actionName==="yt-service-request"){var r=e.detail.args[1];r.videoMastheadAdMuteCommand&&(G.collapseAd(r.videoMastheadAdMuteCommand.encryptedMastheadId),e.stopPropagation())}})};
_.V.attached=function(){var G=this;_.oR(function(){G.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(e){if(!G.collapsed){e=_.h(e);for(var r=e.next();!r.done;r=e.next())r=r.value,Gr(r.baseUrl,r.attributionSrcMode);G.data.impressionCommand=void 0}});
this.JSC$15694_activeViewMeasurementDataResolver.promise.then(function(e){$_(G.activeView,e)});
_.R("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Sw(G.activeView)})};
_.V.dataChanged=function(){var G;((G=this.data.impressionCommand)==null?0:G.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var e;((e=this.data)==null?0:e.activeView)&&this.JSC$15694_activeViewMeasurementDataResolver.resolve(this.data.activeView);(G=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(G.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.V.computeWidescreen=function(G){var e;return!!(G&&((e=_.a(G,fFW))==null?0:e.isWidescreen))};
_.V.computeExpandable=function(G){return!!(G&&G.length>0)};
_.V.onIronResize=function(){if(this.expandable){var G=_.z1(this.hostElement).querySelector("#expandable-tile-container :first-child");G&&!G.expanded&&(G.expanded=!0)}};
_.V.handleMuteAd=function(){this.collapseAd(null)};
_.V.restoreCollapsedState=function(G){this.collapsed=_.hy().get("HIDDEN_MASTHEAD_ID")===G};
_.V.collapseAd=function(G){if(G){var e=_.hy();e.set("HIDDEN_MASTHEAD_ID",G);e.save()}(G=_.z1(this.hostElement).querySelector("#video"))&&_.xy(G,"yt-masthead-hidden");this.collapsed=!0};
_.V.expandAd=function(){var G=_.hy();G.set("HIDDEN_MASTHEAD_ID",!1);G.save();location.reload()};
_.V.detached=function(){_.R("stop_av_measurement_on_detach")&&Sw(this.activeView)};
m7.prototype.onIronResize=m7.prototype.onIronResize;m7.prototype.dataChanged=m7.prototype.dataChanged;_.B([_.k(_.CS),_.x("design:type",Object)],m7.prototype,"ironResizableBehavior",void 0);_.B([_.k(_.x9),_.x("design:type",Object)],m7.prototype,"ytdGridStateAwareBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],m7.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],m7.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],m7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],m7.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.x("design:type",Boolean)],m7.prototype,"widescreen",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.x("design:type",Boolean)],m7.prototype,"expandable",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],m7.prototype,"collapsed",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],m7.prototype,"dataChanged",null);_.B([_.Om("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],m7.prototype,"onIronResize",null);_.B([_.c({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],m7);
_.A(m7,"ytd-video-masthead-ad-v3-renderer",function(){if(Z$S!==void 0)return Z$S;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Z$S=G},{mode:2});var cF=function(){return _.m.apply(this,arguments)||this};
_.K(cF,_.m);_.V=cF.prototype;_.V.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.V.ready=function(){var G=this;h6F(function(){G.isAttached&&ut(G.JSC$15699_storedAdSlotMetadata,G.JSC$15699_storedAdLayoutMetadata,G.adSlotMetadata,G.adLayoutMetadata)&&Kw(au(),G.JSC$15699_storedAdSlotMetadata,G.JSC$15699_storedAdLayoutMetadata)})};
_.V.attached=function(){ut(this.JSC$15699_storedAdSlotMetadata,this.JSC$15699_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&IuW(au(),this.JSC$15699_storedAdSlotMetadata,this.JSC$15699_storedAdLayoutMetadata)};
_.V.detached=function(){ut(this.JSC$15699_storedAdSlotMetadata,this.JSC$15699_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Kw(au(),this.JSC$15699_storedAdSlotMetadata,this.JSC$15699_storedAdLayoutMetadata)};
_.V.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15699_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15699_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15699_storedAdLayoutMetadata!==void 0&&this.JSC$15699_storedAdSlotMetadata!==void 0&&Kw(au(),this.JSC$15699_storedAdSlotMetadata,this.JSC$15699_storedAdLayoutMetadata),IuW(au(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15699_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15699_storedAdSlotMetadata=this.adSlotMetadata)};
_.iY.Object.defineProperties(cF.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.adLayoutMetadata}}});
cF.prototype.onAdMetadataChanged=cF.prototype.onAdMetadataChanged;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],cF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],cF.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],cF.prototype,"data",void 0);_.B([_.d("data.adLayoutMetadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],cF.prototype,"adLayoutMetadata",null);
_.B([_.n(),_.x("design:type",Object)],cF.prototype,"adSlotMetadata",void 0);_.B([_.Me("adLayoutMetadata","adSlotMetadata"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cF.prototype,"onAdMetadataChanged",null);_.B([_.c({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],cF);
_.A(cF,"ytd-page-top-ad-layout-renderer",function(){if(WJ3!==void 0)return WJ3;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return WJ3=
G},{mode:_.Px("kevlar_poly_si_batch_j070")?1:2});var O$W;var YE=function(){var G=_.m.apply(this,arguments)||this;G.noBottomMargin=!1;G.overlayDensity=0;G.typographyBump=!1;G.extractOverlay=!1;G.extractActionBar=!1;return G};
_.K(YE,_.m);_.V=YE.prototype;
_.V.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]]"}}}}}};
_.V.ready=function(){var G=this;h6F(function(){G.isAttached&&G.adSlotMetadata&&QSy(au(),G.adSlotMetadata)})};
_.V.attached=function(){if(this.adSlotMetadata){var G;if(this.adSlotMetadata===((G=this.data)==null?void 0:G.adSlotMetadata))sSl(au(),this.adSlotMetadata);else{var e;_.FH(Error("Oh`"+this.adSlotMetadata+"`"+((e=this.data)==null?void 0:e.adSlotMetadata)))}}};
_.V.detached=function(){this.adSlotMetadata&&QSy(au(),this.adSlotMetadata)};
_.V.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.V.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&QSy(au(),this.adSlotMetadata),sSl(au(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.iY.Object.defineProperties(YE.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var G,e,r=_.a((G=this.data)==null?void 0:(e=G.fulfillmentContent)==null?void 0:e.fulfilledLayout,_.H7v),Z;return(G=(Z=_.a(r==null?void 0:r.renderingContent,kzS))==null?void 0:Z.layout)?G.toLowerCase().replace(/_/g,"-"):""}}});
YE.prototype.onAdSlotMetadataChanged=YE.prototype.onAdSlotMetadataChanged;YE.prototype.onTypographyBumpChanged=YE.prototype.onTypographyBumpChanged;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],YE.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],YE.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],YE.prototype,"rendererBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],YE.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],YE.prototype,"noBottomMargin",void 0);_.B([_.n(),_.x("design:type",Object)],YE.prototype,"overlayDensity",void 0);_.B([_.n(),_.x("design:type",Object)],YE.prototype,"typographyBump",void 0);_.B([_.n(),_.x("design:type",Object)],YE.prototype,"extractOverlay",void 0);_.B([_.n(),_.x("design:type",Object)],YE.prototype,"extractActionBar",void 0);
_.B([_.hs("ytd-in-feed-ad-layout-renderer"),_.x("design:type",HTMLElement)],YE.prototype,"inFeedAdLayoutRenderer",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",String),_.x("design:paramtypes",[])],YE.prototype,"layout",null);_.B([_.Me("typographyBump"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YE.prototype,"onTypographyBumpChanged",null);
_.B([_.Me("data.adSlotMetadata"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YE.prototype,"onAdSlotMetadataChanged",null);_.B([_.c({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],YE);
_.A(YE,"ytd-ad-slot-renderer",function(){if(O$W!==void 0)return O$W;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return O$W=G},{mode:_.Px("kevlar_poly_si_batch_j077")?
1:2});var MuW;var yd=function(){return _.m.apply(this,arguments)||this};
_.K(yd,_.m);_.V=yd.prototype;_.V.created=function(){this.activeView=new w9(this.hostElement)};
_.V.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"}}}};
_.V.maybeComputeHref=function(){return null};
_.V.onTap=function(){};
_.V.onThumbnailContainerClick=function(G){this.onClick(G)};
_.V.onClick=function(G){var e,r=(e=this.data)==null?void 0:e.navigationEndpoint;r&&_.a(r,_.u4)&&(this.ytSparklesClickLocationBehavior.handleClick(r,G,!1),G.stopPropagation())};
_.V.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var G=_.h(this.data.impressionUrls),e=G.next();!e.done;e=G.next())e=e.value,Fra(e,Bvf(e));this.data.activeView&&$_(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",yd.JSC$15707_DEFAULT_CLICK_LOCATION_BEHAVIOR,yd.JSC$15707_CLICK_LOCATION_ID_MAP);this.thumbnail&&(G=this.thumbnail.getElementsByTagName("a"),G.length>0&&(G=G.namedItem("thumbnail"))&&G.removeAttribute("href"))}};
_.V.attached=function(){var G=this;_.R("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Sw(G.activeView)})};
_.V.detached=function(){_.R("stop_av_measurement_on_detach")&&Sw(this.activeView)};
_.iY.Object.defineProperties(yd.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.R("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.R("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
yd.prototype.dataChanged=yd.prototype.dataChanged;yd.prototype.onTap=yd.prototype.onTap;yd.JSC$15707_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
yd.JSC$15707_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"}];_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],yd.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],yd.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],yd.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],yd.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.TJ.YtSparklesClickLocationBehavior),_.x("design:type",Object)],yd.prototype,"ytSparklesClickLocationBehavior",void 0);
_.B([_.n({selector:_.Xf}),_.x("design:type",Object)],yd.prototype,"isGridViewEnabled",void 0);_.B([_.d("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],yd.prototype,"watchFeedBigThumbs",null);_.B([_.d("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.x("design:type",String),_.x("design:paramtypes",[])],yd.prototype,"thumbnailWidth",null);_.B([_.n(),_.x("design:type",Object)],yd.prototype,"data",void 0);
_.B([_.hs("ytd-thumbnail"),_.x("design:type",HTMLElement)],yd.prototype,"thumbnail",void 0);_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yd.prototype,"onTap",null);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yd.prototype,"dataChanged",null);_.B([_.c({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],yd);
_.A(yd,"ytd-compact-promoted-video-renderer",function(){if(MuW!==void 0)return MuW;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return MuW=G},{mode:1});var VuC;_.te("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var AJ=function(){return _.m.apply(this,arguments)||this};
_.K(AJ,_.m);AJ.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],AJ.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],AJ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],AJ.prototype,"data",void 0);_.B([_.c({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],AJ);
_.A(AJ,"ytd-search-pyv-renderer",function(){if(VuC!==void 0)return VuC;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return VuC=G},{mode:1});var hRv;_.te("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var Fz=function(){var G=_.m.apply(this,arguments)||this;G.roundedContainer=!0;G.JSC$15715_handleOpenPostCommentDialogActionAfterStamp=!1;G.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return G};
_.K(Fz,_.m);_.V=Fz.prototype;
_.V.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}}};
_.V.onStampFinished=function(){this.JSC$15715_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.V.handleSignalActionOpenPostCommentDialogAction=function(){var G=_.z1(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");G?G.openDialog():this.JSC$15715_handleOpenPostCommentDialogActionAfterStamp=!0};
_.V.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.V.computeHideBorder=function(){return this.isInEngagementPanel};
_.V.computeIsCompact=function(){return this.isInEngagementPanel};
_.V.computeUsesCompactLockup=function(G){return G==="BACKSTAGE_SURFACE_TYPE_HOME"||G==="BACKSTAGE_SURFACE_TYPE_SEARCH"||G==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||G==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||G==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||G==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.V.computeUsesFullLockup=function(){var G,e=(G=this.data)==null?void 0:G.post,r;G=(r=_.a(e,yQb))==null?void 0:r.surface;var Z;r=(Z=_.a(e,JQb))==null?void 0:Z.originalPost;var O;if(Z=G||((O=_.a(r,yQb))==null?void 0:O.surface))return!this.computeUsesCompactLockup(Z)&&this.useUpdatedRepostUi;var M;return((M=_.a(e,JQb))==null?void 0:M.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.iY.Object.defineProperties(Fz.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var G,e;return((e=_.a((G=this.data)==null?void 0:G.post,yQb))==null?void 0:e.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.useUpdatedRepostUi}}});
Fz.prototype.onYtCommentModerationPanelEmpty=Fz.prototype.onYtCommentModerationPanelEmpty;Fz.prototype.onStampFinished=Fz.prototype.onStampFinished;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Fz.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Fz.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Fz.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],Fz.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Fz.prototype,"roundedContainer",void 0);_.B([_.n({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Fz.prototype,"hideBorder",void 0);_.B([_.n({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Fz.prototype,"isCompact",void 0);
_.B([_.n({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Fz.prototype,"usesFullLockup",void 0);_.B([_.Om("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Fz.prototype,"onStampFinished",null);
_.B([_.Om("ytd-comment-moderation-panel-empty"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Fz.prototype,"onYtCommentModerationPanelEmpty",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Fz.prototype,"isInEngagementPanel",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Fz.prototype,"useUpdatedRepostUi",null);
_.B([_.c({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],Fz);
_.A(Fz,"ytd-backstage-post-thread-renderer",function(){if(hRv!==void 0)return hRv;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return hRv=G},{mode:1});var TXE;var JJ=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.K(JJ,_.m);JJ.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
JJ.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var G=this.data.thumbnail.thumbnails;this.isDarkTheme&&(G=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(G=_.BQ(G,24,void 0,"height"))?G:void 0}};
JJ.prototype.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
JJ.prototype.computeHasText=function(){var G;return!((G=this.data)==null||!G.text)};
_.iY.Object.defineProperties(JJ.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.Fy(this.bannerImageUrl))+'");'}}});
JJ.prototype.computeHasText=JJ.prototype.computeHasText;JJ.prototype.computeBannerImageUrl=JJ.prototype.computeBannerImageUrl;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],JJ.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],JJ.prototype,"actionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],JJ.prototype,"ytRendererBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],JJ.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Boolean)],JJ.prototype,"isDarkTheme",void 0);_.B([_.n(),_.x("design:type",String)],JJ.prototype,"bannerImageUrl",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.x("design:type",Boolean)],JJ.prototype,"hasText",void 0);_.B([_.Me("data","isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JJ.prototype,"computeBannerImageUrl",null);
_.B([_.Me("data.text"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JJ.prototype,"computeHasText",null);_.B([_.d("bannerImageUrl"),_.x("design:type",Object),_.x("design:paramtypes",[])],JJ.prototype,"bannerStyle",null);_.B([_.c({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],JJ);
_.A(JJ,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(TXE!==void 0)return TXE;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return TXE=G},{mode:1});var D5E;var BF=function(){return _.m.apply(this,arguments)||this};
_.K(BF,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],BF.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],BF.prototype,"data",void 0);_.B([_.c({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],BF);
_.A(BF,"ytd-backstage-zero-state-renderer",function(){if(D5E!==void 0)return D5E;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return D5E=G},{mode:1});var EHn;var xE=function(){return _.m.apply(this,arguments)||this};
_.K(xE,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],xE.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],xE.prototype,"data",void 0);_.B([_.n({computed:"computeIcon_(data.icon)"}),_.x("design:type",String)],xE.prototype,"icon",void 0);_.B([_.c({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],xE);
_.A(xE,"ytd-post-filter-zero-state-renderer",function(){if(EHn!==void 0)return EHn;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return EHn=G},{mode:1});var i$3;var b$W={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},PF=function(){return _.m.apply(this,arguments)||this};
_.K(PF,_.m);PF.prototype.configureRendererStamper=function(){return b$W};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],PF.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],PF.prototype,"rendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],PF.prototype,"data",void 0);_.B([_.n({computed:"computeIcon_(data.icon)"}),_.x("design:type",String)],PF.prototype,"icon",void 0);_.B([_.c({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],PF);
_.A(PF,"ytd-post-scheduling-zero-state-renderer",function(){if(i$3!==void 0)return i$3;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return i$3=G},{mode:1});var vHC;var UU=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return G};
_.K(UU,_.m);UU.prototype.onTabsActivate=function(G){this.data&&this.data.tabs&&_.xy(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[G.detail.selected].navigationEndpoint})};
UU.prototype.shouldShowTotalCount=function(G){return G&&G.totalCount!==void 0};
UU.prototype.handleUpdatePostsTotalCountAction=function(G){var e=this.get(["data.tabs",1,"totalCount"]),r=this.get("updatePostsTotalCountAction.updateType",G);G=this.get("updatePostsTotalCountAction.number",G);e!==void 0&&r!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&G&&(r==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(e)+G):r==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(e)-G))};
_.iY.Object.defineProperties(UU.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var G=0,e=this.data.tabs.length;G<e;G++)if(this.data.tabs[G].selected)return G;return 0}}});
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],UU.prototype,"actionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],UU.prototype,"rendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],UU.prototype,"data",void 0);_.B([_.d("data.tabs"),_.x("design:type",Number),_.x("design:paramtypes",[])],UU.prototype,"selected",null);_.B([_.c({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],UU);
_.A(UU,"ytd-post-stream-filter-renderer",function(){if(vHC!==void 0)return vHC;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return vHC=G},{mode:1});var wM3;var z5=function(){return _.m.apply(this,arguments)||this};
_.K(z5,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],z5.prototype,"kevlarBehaviors",void 0);_.B([_.n(),_.x("design:type",Object)],z5.prototype,"data",void 0);_.B([_.c({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],z5);
_.A(z5,"ytd-channel-age-gate-renderer",function(){if(wM3!==void 0)return wM3;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return wM3=G},{mode:1});var $5j;_.te("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var WF=function(){var G=_.m.apply(this,arguments)||this;G.data=null;return G};
_.K(WF,_.m);WF.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.iY.Object.defineProperties(WF.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return((G=this.data)==null?0:(e=G.title)==null?0:(r=e.runs)==null?0:r.length)?147:160}}});
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],WF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],WF.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],WF.prototype,"imageSizePx",null);_.B([_.c({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],WF);
_.A(WF,"ytd-channel-owner-empty-state-renderer",function(){if($5j!==void 0)return $5j;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return $5j=G},{mode:1});var SjE;var qjn;var N2=function(){var G=_.m.apply(this,arguments)||this;G.boundSubmitSearch=function(){G.submitSearch()};
G.boundClearSearch=function(){G.clearSearch()};
return G};
_.K(N2,_.m);_.V=N2.prototype;_.V.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]]"}}}}}};
_.V.toggleClearButton=function(){this.hideClearButton=mUl||!this.input.value};
_.V.submitOnEnterKeyUp=function(G){G.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.V.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.V.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.V.submit=function(){_.xy(this.hostElement,"search-query-changed",this.input.value)};
N2.prototype.toggleClearButton=N2.prototype.toggleClearButton;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],N2.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],N2.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],N2.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],N2.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],N2.prototype,"hideClearButton",void 0);_.B([_.n(),_.x("design:type",Object)],N2.prototype,"boundSubmitSearch",void 0);_.B([_.n(),_.x("design:type",Object)],N2.prototype,"boundClearSearch",void 0);_.B([_.hs("#input"),_.x("design:type",Object)],N2.prototype,"input",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],N2.prototype,"toggleClearButton",null);
_.B([_.c({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],N2);
_.A(N2,"ytd-channel-switcher-search-box-renderer",function(){if(qjn!==void 0)return qjn;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return qjn=G},{mode:1});var tub;var Lw=function(){var G=_.m.apply(this,arguments)||this;G.boundSubmit=function(){G.submit()};
return G};
_.K(Lw,_.m);_.V=Lw.prototype;_.V.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"}}}}};
_.V.ready=function(){var G=this;this.form.addEventListener("submit",function(e){return G.onSubmit(e)})};
_.V.onSubmit=function(G){G.preventDefault();return!1};
_.V.toggleClearButton=function(){this.hideClearButton=mUl||!this.input.value};
_.V.submitOnEnterKeyUp=function(G){G.keyCode===13&&this.submit()};
_.V.submit=function(){var G=this.data.endpoint,e=(0,_.c2.unsafeClone)(G);_.a(e,_.Mv)?_.a(e,_.Mv).query=this.input.value:_.a(e,_.Vl)&&(_.a(e,_.Vl).query=this.input.value);var r=_.a(e.commandMetadata,_.rJ);(r==null?0:r.url)?(r.url=_.Pg(r.url,"query",this.input.value),_.xy(this.hostElement,"yt-navigate",{endpoint:e})):_.a(e,lFv)?(_.a(e,lFv).channelSwitcherQuery=this.input.value,_.v_().resolve(_.$1).resolveCommand(e,{form:{element:this.hostElement}})):(G=Error("Ph`"+JSON.stringify(G)),_.yx(G))};
_.V.getUrl=function(G){return this.get("commandMetadata.webCommandMetadata.url",G)};
Lw.prototype.toggleClearButton=Lw.prototype.toggleClearButton;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Lw.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Lw.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Lw.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Lw.prototype,"hideClearButton",void 0);
_.B([_.n(),_.x("design:type",Object)],Lw.prototype,"boundSubmit",void 0);_.B([_.hs("#form"),_.x("design:type",HTMLFormElement)],Lw.prototype,"form",void 0);_.B([_.hs("#input"),_.x("design:type",Object)],Lw.prototype,"input",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Lw.prototype,"toggleClearButton",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],Lw);
_.A(Lw,"ytd-search-box-renderer",function(){if(tub!==void 0)return tub;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return tub=G},{mode:2});var G7=function(){var G=_.m.apply(this,arguments)||this;G.showSearchBox=!0;return G};
_.K(G7,_.m);G7.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],G7.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],G7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],G7.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],G7.prototype,"showSearchBox",void 0);_.B([_.c({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],G7);
_.A(G7,"ytd-channel-switcher-header-renderer",function(){if(SjE!==void 0)return SjE;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return SjE=G},{mode:1});var gHP;var lIC;var eb=function(){var G=_.m.apply(this,arguments)||this;G.isDisplayed=!0;return G};
_.K(eb,_.m);_.V=eb.prototype;_.V.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.dataChanged=function(){this.isDisplayed=!0};
_.V.computeType=function(G){return G||"UNKNOWN"};
_.V.onYtServiceRequestCompleted=function(G){G.stopPropagation();this.isDisplayed=!1};
_.V.onClose=function(){this.isDisplayed=!1};
eb.prototype.onYtServiceRequestCompleted=eb.prototype.onYtServiceRequestCompleted;eb.prototype.dataChanged=eb.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],eb.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],eb.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],eb.prototype,"data",void 0);
_.B([_.n({computed:"computeType(data.type)",reflectToAttribute:!0}),_.x("design:type",String)],eb.prototype,"type",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],eb.prototype,"isDisplayed",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],eb.prototype,"dataChanged",null);
_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],eb.prototype,"onYtServiceRequestCompleted",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],eb);
_.A(eb,"ytd-alert-with-button-renderer",function(){if(lIC!==void 0)return lIC;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return lIC=G},{mode:1});var rA=function(){var G=_.m.apply(this,arguments)||this;G.noResult=!1;G.enableAlertBanner=!1;G.dismissedAlertBanner=!1;G.hideCreateChannelButton=!1;G.boundDismissAlertBanner=function(){G.dismissAlertBanner()};
G.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return G};
_.K(rA,_.m);_.V=rA.prototype;_.V.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.V.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.V.updateChannelSwitcherAction=function(G){var e;G=(e=_.a(G,q4j))==null?void 0:e.page;_.a(G,S4W)!==void 0&&(this.data=_.a(G,S4W))};
_.V.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]]"}}}}}};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.V.searchQueryChanged=function(G,e){if(this.data&&this.data.contents&&this.data.contents.length){G=[];var r=[];this.hideCreateChannelButton=this.noResult=!1;for(var Z=document.querySelectorAll("ytd-account-item-renderer"),O=_.h(Z),M=O.next();!M.done;M=O.next())M=M.value,r.push(M),M.style.display="block";this.resetRightBorder(r);if(e){this.hideCreateChannelButton=!0;for(r=1;r<this.data.contents.length;r++)if(M=this.data.contents[r],_.a(M,qBS)){var T=void 0,E=void 0;O=(T=_.a(M,qBS))==null?void 0:(E=
T.accountName)==null?void 0:E.simpleText;E=T=void 0;M=(T=_.a(M,qBS))==null?void 0:(E=T.channelHandle)==null?void 0:E.simpleText;(T=Z[r-1])&&O&&_.ws(O,e)?G.push(T):_.R("enable_handle_search_on_channel_switcher")&&T&&M&&_.ws(M.toString(),e.toString())?G.push(T):T.style.display="none"}G.length===0&&(this.noResult=!0);this.resetRightBorder(G)}}};
_.V.resetRightBorder=function(G){for(var e=0;e<G.length;e++)G[e].style.borderRight=!this.hideCreateChannelButton&&(e+2)%3===0||this.hideCreateChannelButton&&(e+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.V.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.V.setShowSearchBox=function(G){if(G&&G.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var e=0;e<G.contents.length;e++)_.a(G.contents[e],_.mL)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.V.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.iY.Object.defineProperties(rA.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null?0:G.contents)}}});
rA.prototype.onContinuationItemsUpdated=rA.prototype.onContinuationItemsUpdated;rA.prototype.searchQueryChanged=rA.prototype.searchQueryChanged;rA.prototype.onDataChanged=rA.prototype.onDataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],rA.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],rA.prototype,"actionHandlerBehavior",void 0);_.B([_.k(_.eP),_.x("design:type",Object)],rA.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],rA.prototype,"data",void 0);_.B([_.hs("ytd-channel-switcher-header-renderer"),_.x("design:type",Object)],rA.prototype,"channelSwitcherHeaderRenderer",void 0);_.B([_.n(),_.x("design:type",Object)],rA.prototype,"noResult",void 0);
_.B([_.n(),_.x("design:type",Object)],rA.prototype,"enableAlertBanner",void 0);_.B([_.n(),_.x("design:type",Object)],rA.prototype,"dismissedAlertBanner",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],rA.prototype,"hideCreateChannelButton",void 0);_.B([_.d("data.contents"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rA.prototype,"isLoading",null);_.B([_.n(),_.x("design:type",Object)],rA.prototype,"boundDismissAlertBanner",void 0);
_.B([_.n({computed:"computeButtonOverride()"}),_.x("design:type",Object)],rA.prototype,"buttonOverride",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rA.prototype,"onDataChanged",null);_.B([_.Om("search-query-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,String]),_.x("design:returntype")],rA.prototype,"searchQueryChanged",null);
_.B([_.Om("yt-next-continuation-data-updated"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],rA.prototype,"onContinuationItemsUpdated",null);_.B([_.c({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],rA);
_.A(rA,"ytd-channel-switcher-page-renderer",function(){if(gHP!==void 0)return gHP;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return gHP=G},{mode:1});var RRj;var j3j;var Zn=function(){var G=_.m.apply(this,arguments)||this;G.images=[];G.selectedImageIndex=0;return G};
_.K(Zn,_.m);_.V=Zn.prototype;
_.V.ready=function(){_.w2(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.w2(this.JSC$15760_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.w2(this.JSC$15760_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.w2(this.JSC$15760_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.V.onThumbnailClick=function(G){if(G=G.event_.detail)this.selectedImageIndex=this.images.indexOf(G)};
_.V.updateImageThumbnails=function(G){G=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:G.event_.detail});this.images.splice(this.selectedImageIndex,1,G);this.images=[].concat(_.mY(this.images))};
_.V.cancelImageRepositions=function(){this.selectedImageIndex=0;_.xy(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.V.saveImageRepositions=function(){this.selectedImageIndex=0;_.xy(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.iY.Object.defineProperties(Zn.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var G=this;return(this.images||[]).map(function(e,r){return{image:e,selected:r===G.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Zn.prototype,"ytRendererstamperBehavior",void 0);_.B([_.hs("ytd-backstage-image-preview-renderer"),_.x("design:type",Object)],Zn.prototype,"JSC$15760_imagePreviewContainer",void 0);_.B([_.hs(".thumbnail-images-container"),_.x("design:type",HTMLElement)],Zn.prototype,"thumbnailImagesContainer",void 0);_.B([_.n(),_.x("design:type",Array)],Zn.prototype,"images",void 0);
_.B([_.n(),_.x("design:type",Object)],Zn.prototype,"repositionInstructions",void 0);_.B([_.n(),_.x("design:type",Object)],Zn.prototype,"selectedImageIndex",void 0);_.B([_.d("images","selectedImageIndex"),_.x("design:type",Array),_.x("design:paramtypes",[])],Zn.prototype,"thumbnailRendererDatas",null);_.B([_.d("images","selectedImageIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],Zn.prototype,"selectedImageData",null);
_.B([_.c({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],Zn);
_.A(Zn,"ytd-backstage-multi-image-reposition-renderer",function(){if(j3j!==void 0)return j3j;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return j3j=G},{mode:1});var O8=function(G,e){_.j7.call(this);this.uploadUrl=G;this.channelId=e;this.imagesUploadData=[]};
_.K(O8,_.j7);O8.prototype.getAllUploadStatuses=function(){var G=this,e,r,Z;return _.D(function(O){if(O.nextAddress==1)return O.yield(aIc(G),2);e=O.yieldResult;r=e.get("succeed");Z=e.get("failed");return O.return(r.concat(Z))})};
var KXc=function(G){var e,r;return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(aIc(G),2);e=Z.yieldResult;r=e.get("failed");r.length>0&&XMS(G,r);return Z.return(G.getAllUploadStatuses())})},aIc=function(G){var e,r,Z,O,M,T,E;
return _.D(function(b){if(b.nextAddress==1)return e=new Map,b.yield(Promise.allSettled(G.imagesUploadData.map(function(w){return w.uploadPromise})),2);
r=b.yieldResult;Z=[];O=_.h(r);for(M=O.next();!M.done;M=O.next())T=M.value,T.status==="fulfilled"&&Z.push(T.value);E=G.imagesUploadData.map(function(w){return w.image}).filter(function(w){return Z.every(function(q){return q.id!==w.id})});
e.set("succeed",Z);e.set("failed",E);return b.return(e)})},XMS=function(G,e){e=_.h(e);
for(var r=e.next();!r.done;r=e.next()){var Z=G;r=r.value;fIP(Z,r.id)>=0&&Z.cancel(r.id);var O=new kkl(r),M=_.MfW(Z.uploadUrl,{"X-YouTube-ChannelId":Z.channelId},r.imageBlob);O.transfer=M;O.uploadPromise=H$n(M,r);Z.imagesUploadData.push(O);M.run()}};
O8.prototype.cancel=function(G){var e=fIP(this,G);e!==-1&&((e=this.imagesUploadData[e].transfer)&&e.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(r){return r.image.id!==G}))};
var fIP=function(G,e){return G.imagesUploadData.findIndex(function(r){return r.image.id===e})},H$n=function(G,e){return new Promise(function(r,Z){G.listen("l",function(){var O=G.getResponseText();
O?(O=JSON.parse(O).encryptedBlobId,e.encryptedBlobId=O,r(e)):Z("upload failed")});
G.listen("n",function(){Z("upload failed")})})},kkl=function(G){this.image=G};var GKf=function(G,e,r,Z,O){this.id=G;this.imageBlob=e;this.localImageSrc=r;this.naturalWidth=Z;this.naturalHeight=O;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 d5l=[".jpeg",".jpg",".png"],Mc=function(){var G=_.m.apply(this,arguments)||this;G.showImagesPreview=!1;G.pollOptions=[];G.errorMessage="";G.optionPlaceholderText="";G.optionDefaultText="";G.JSC$15771_imageId=0;G.maxFileSizeMb=0;G.maxAspectRatio=0;G.invalidFileSizeError="";G.invalidAspectRatioError="";G.invalidFileTypeError="";G.imageSelector=new gQ(null,"single_file",d5l);return G};
_.K(Mc,_.m);_.V=Mc.prototype;_.V.ready=function(){_.w2(this.imageSelector,"j",this.onImageSelect,!1,this);_.w2(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.w2(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.V.dataChanged=function(){var G,e,r=_.a((G=this.data)==null?void 0:(e=G.cellTemplate)==null?void 0:e.onEmptyCellTap,WF3);if(r&&r.uploadUrl&&r.channelId){var Z;this.maxFileSizeMb=((Z=r.imageValidationInfo)==null?void 0:Z.maxFileSizeMb)||0;var O;this.maxAspectRatio=((O=r.imageValidationInfo)==null?void 0:O.allowedMaxAspectRatio)||0;var M;this.invalidFileSizeError=this.getSimpleString((M=this.data)==null?void 0:M.invalidFileSizeError);var T;this.invalidAspectRatioError=this.getSimpleString((T=this.data)==
null?void 0:T.invalidAspectRatioError);var E;this.invalidFileTypeError=this.getSimpleString((E=this.data)==null?void 0:E.invalidFileTypeError);this.uploadManager=new O8(r.uploadUrl,r.channelId)}};
_.V.onEditorInfoChange=function(){this.optionPlaceholderText=_.mG(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.mG(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.V.observeAddImageError=function(){this.errorMessage!==""&&_.xy(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.V.onPollOptionsChange=function(){for(var G=!1,e=[],r=0;r<this.pollOptions.length;r++){var Z=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(r+1);this.pollOptions[r].placeholderText!==Z?(G=!0,e.push(Object.assign({},this.pollOptions[r],{placeholderText:Z}))):e.push(this.pollOptions[r])}G&&(this.pollOptions=e);this.isValid()?_.xy(this.hostElement,"yt-commentbox-post-enable"):_.xy(this.hostElement,"yt-commentbox-post-disable")};
_.V.createPollOptions=function(G){var e=[],r;G=(r=G==null?void 0:G.minPollOptions)!=null?r:0;for(r=0;r<G;r++)e.push(this.createPollOption());return e};
_.V.onImageSelect=function(G){var e=this,r,Z,O,M,T,E;return _.D(function(b){if(b.nextAddress==1){if(e.selectedImageIndex===void 0)return b.jumpTo(0);r=G.files[0];e.errorMessage="";Z=e.validateImage(r);if(Z!=="")return e.errorMessage=Z,b.return();O=new T$(e.maxAspectRatio,!1,!0);return b.yield(O.transform(r),3)}if(b.nextAddress!=4)return M=b.yieldResult,M.transformedData?M.invalidAspectRatio?(e.errorMessage=e.invalidAspectRatioError,b.return()):b.yield(e0y(e.JSC$15771_imageId,G.files[0],M.transformedData),
4):(e.errorMessage=e.invalidFileTypeError,b.return());T=b.yieldResult;e.JSC$15771_imageId++;XMS(e.uploadManager,[T]);E=Object.assign({},e.pollOptions[e.selectedImageIndex],{image:T});e.pollOptions.splice(e.selectedImageIndex,1,E);e.refreshPollOptions();_.xy(e.hostElement,"yt-backstage-poll-image-select");_.HL(b)})};
_.V.validateImage=function(G){return G.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.V.refreshPollOptions=function(){this.pollOptions=[].concat(_.mY(this.pollOptions))};
_.V.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.mY(this.pollOptions),[this.createPollOption()]))};
_.V.onRemovePollOption=function(G){var e=this.pollOptions[G.model.index];e&&e.image&&this.uploadManager.cancel(e.image.id);this.pollOptions.splice(G.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.xy(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.V.onTextInput=function(){this.refreshPollOptions()};
_.V.onImageButtonClick=function(G){this.selectedImageIndex=G.model.index;this.imageSelector.click()};
_.V.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.V.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.V.saveImageRepositions=function(G){G=G.event_.detail;for(var e=0,r=[],Z=_.h(this.pollOptions),O=Z.next();!O.done;O=Z.next())O=O.value,O.image!==void 0?(O=Object.assign({},O,{image:G[e]}),r.push(O),e++):r.push(O);this.showImagesPreview=!1;this.pollOptions=[].concat(_.mY(r))};
_.V.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 G=0,e=_.h(this.pollOptions),r=e.next();!r.done;r=e.next())if(r=r.value,r.optionText.trim()!==""||r.image!==void 0){if(!r.image||this.hasCustomOptionText&&r.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;G++}return G>=Number(this.editorInfo.minPollOptions)};
_.V.getAllUploadStatuses=function(){var G=this,e,r,Z,O;return _.D(function(M){if(M.nextAddress==1)return M.yield(G.uploadManager.getAllUploadStatuses(),2);e=M.yieldResult;r=_.h(e);for(Z=r.next();!Z.done;Z=r.next())if(O=Z.value,O.encryptedBlobId===void 0)return M.return(KXc(G.uploadManager));return M.return(e)})};
_.V.getPostCreateOptions=function(){for(var G=[],e=_.h(this.pollOptions),r=e.next();!r.done;r=e.next())r=r.value,r.image!==void 0&&G.push({text:this.hasCustomOptionText?r.optionText:r.placeholderText,image:r.image});return G};
_.V.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.V.createButtonRenderer=function(G,e){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:G,accessibilityData:{accessibilityData:{label:this.getSimpleString(G)}},isDisabled:e}};
_.V.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.V.computeThumbnailRendererData=function(G){return G?{image:G,selected:!1}:void 0};
_.V.getSimpleString=function(G){return _.mG(G)};
_.V.updateOptionTextFromBinding=function(G){if(G.target){var e=Array.from(_.z1(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(G.target);if(e>=0){var r;this.pollOptions[e].optionText=(r=G.detail.value)!=null?r:""}}};
_.iY.Object.defineProperties(Mc.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var G,e;return this.pollOptions.length<((e=(G=this.editorInfo)==null?void 0:G.maxPollOptions)!=null?e:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(G){return G.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(G){return G.image}).map(function(G){return G.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(G){return G.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var G,e=(G=this.data)==null?void 0:G.addOptionButtonText;return e?this.createButtonRenderer(e,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var G,e=(G=this.data)==null?void 0:G.repositionImagesButtonLabel;return e?this.createButtonRenderer(e,!this.hasImages):void 0}}});
Mc.prototype.onPollOptionsChange=Mc.prototype.onPollOptionsChange;Mc.prototype.observeAddImageError=Mc.prototype.observeAddImageError;Mc.prototype.onEditorInfoChange=Mc.prototype.onEditorInfoChange;Mc.prototype.dataChanged=Mc.prototype.dataChanged;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Mc.prototype,"ytRendererstamperBehavior",void 0);_.B([_.hs("ytd-backstage-multi-image-reposition-renderer"),_.x("design:type",Object)],Mc.prototype,"imageRepositionContainer",void 0);
_.B([_.n(),_.x("design:type",Object)],Mc.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],Mc.prototype,"editorInfo",void 0);_.B([_.n(),_.x("design:type",O8)],Mc.prototype,"uploadManager",void 0);_.B([_.n(),_.x("design:type",Object)],Mc.prototype,"showImagesPreview",void 0);_.B([_.n(),_.x("design:type",Array)],Mc.prototype,"pollOptions",void 0);_.B([_.n(),_.x("design:type",Object)],Mc.prototype,"errorMessage",void 0);
_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Mc.prototype,"dataChanged",null);_.B([_.iD("editorInfo"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Mc.prototype,"onEditorInfoChange",null);_.B([_.Me("errorMessage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Mc.prototype,"observeAddImageError",null);
_.B([_.iD("pollOptions"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Mc.prototype,"onPollOptionsChange",null);_.B([_.d("pollOptions","editorInfo"),_.x("design:type",Object),_.x("design:paramtypes",[])],Mc.prototype,"isAllowedToAddOption",null);_.B([_.d("pollOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],Mc.prototype,"hasImages",null);
_.B([_.d("pollOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],Mc.prototype,"imagesToReposition",null);_.B([_.d("pollOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],Mc.prototype,"hasCustomOptionText",null);_.B([_.d("data","isAllowedToAddOption"),_.x("design:type",Object),_.x("design:paramtypes",[])],Mc.prototype,"addOptionButton",null);_.B([_.d("data","hasImages"),_.x("design:type",Object),_.x("design:paramtypes",[])],Mc.prototype,"repositionImagesButton",null);
_.B([_.c({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],Mc);
_.A(Mc,"ytd-backstage-image-poll-editor-renderer",function(){if(RRj!==void 0)return RRj;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return RRj=G},{mode:2});var oHc={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 s3P;var Vo=function(){var G=_.m.apply(this,arguments)||this;G.a11yConfig=oHc;G.imageDisplayOffsetTop=0;G.imageDisplayOffsetLeft=0;G.pickerDisplayOffsetTop=0;G.pickerDisplayOffsetLeft=0;G.showPreviewContainer=!0;G.startPicker=!1;G.repositionOptional=!1;G.editOnlyMode=!1;G.savedImageDisplayOffsetTop=0;G.savedImageDisplayOffsetLeft=0;return G};
_.K(Vo,_.m);_.V=Vo.prototype;_.V.created=function(){_.x6.requestAvailability()};
_.V.ready=function(){};
_.V.onArrowKeysDown=function(G){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){G.detail.keyboardEvent.preventDefault();var e=0,r=0,Z="";switch(G.detail.keyboardEvent.key){case "ArrowUp":ra$(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?Z=this.a11yConfig.reachBottomOfImage:e=this.imageHeight*.05*-1;break;case "ArrowDown":ra$(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?Z=this.a11yConfig.reachTopOfImage:
e=this.imageHeight*.05;break;case "ArrowLeft":ra$(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?Z=this.a11yConfig.reachRightOfImage:r=this.imageWidth*.05*-1;break;case "ArrowRight":ra$(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?Z=this.a11yConfig.reachLeftOfImage:r=this.imageWidth*.05}Z&&_.OK(Z)&&_.xy(this.hostElement,"iron-announce",{text:_.OK(Z)});if(r||e)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+e)),G=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),G=_.OK(this.a11yConfig.imageVerticalPosition,{x_percent:""+G,y_percent:""+(100-G)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+r)),G=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),G=_.OK(this.a11yConfig.imageHorizontalPosition,{x_percent:""+G,y_percent:""+(100-G)})),G&&_.xy(this.hostElement,"iron-announce",{text:G})}};
_.V.getPreviewPosition=function(G,e,r,Z){return Math.round(100*(G+e*.5-r)/Z)};
_.V.calculateDisplayPosition=function(){var G=this.imageData.naturalWidth,e=this.imageData.naturalHeight;this.displayScale=Math.max(200/G,200/e);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var r=G*this.displayScale*this.imageData.previewCoordinates.left,Z=e*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=e>G?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-r;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=G>e?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-Z;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=G*this.displayScale;this.imageHeight=e*this.displayScale};
_.V.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.V.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.V.getSignedPosition=function(G,e,r){return e==="X"&&_.xZ("HTML_DIR")==="rtl"?r==="-"?G+"px":G*-1+"px":r==="-"?G*-1+"px":G+"px"};
_.V.pickerMove=function(G){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-G.clientX,r=this.pickerOffsetY-G.clientY;this.pickerOffsetX=G.clientX;this.pickerOffsetY=G.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
r)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-e))}};
_.V.pickerMoveStart=function(G){this.startPicker=!0;this.pickerOffsetX=G.clientX;this.pickerOffsetY=G.clientY};
_.V.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var G=this.generateCropPreview();G&&_.xy(this.hostElement,"ytd-backstage-image-preview-coordinates-update",G)};
_.V.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.xy(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.V.deleteImage=function(){_.xy(this.hostElement,"ytd-backstage-image-preview-delete")};
_.V.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.V.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var G=this.generateCropPreview();G&&_.xy(this.hostElement,"ytd-backstage-image-preview-coordinates-save",G)};
_.V.getPreviewOffset=function(G,e,r){return e&&G?(r==="X"&&_.xZ("HTML_DIR")==="rtl"?300/e*G:300/e*G*-1)+"px":"0px"};
_.V.getSimpleText=function(G){return G?_.mG(G):""};
_.V.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}};
_.iY.Object.defineProperties(Vo.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var G=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.OK(this.a11yConfig.imageVerticalPosition,{x_percent:""+G,y_percent:""+(100-G)})+"\n"+_.OK(this.a11yConfig.verticalRepositionInstruction)}G=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.OK(this.a11yConfig.imageHorizontalPosition,{x_percent:""+G,y_percent:""+(100-G)})+"\n"+_.OK(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 G,e,r=(G=this.instruction)==null?void 0:(e=G.previewInstruction)==null?void 0:e.editButtonLabel;return r?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:r,accessibilityData:{accessibilityData:{label:this.getSimpleText(r)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var G,e,r,Z,O=this.editOnlyMode?(G=this.instruction)==null?void 0:(e=G.editInstruction)==null?void 0:e.saveImagesButtonLabel:(r=this.instruction)==null?void 0:(Z=r.editInstruction)==null?void 0:Z.saveButtonLabel;return O?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:O,accessibilityData:{accessibilityData:{label:this.getSimpleText(O)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var G,e,r=(G=this.instruction)==null?void 0:(e=G.previewInstruction)==null?void 0:e.deleteButtonLabel;return r?{size:"SIZE_SMALL",text:r,accessibilityData:{accessibilityData:{label:this.getSimpleText(r)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var G,e,r=(G=this.instruction)==null?void 0:(e=G.editInstruction)==null?void 0:e.cancelButtonLabel;G=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return r?{style:G,size:"SIZE_SMALL",text:r,accessibilityData:{accessibilityData:{label:this.getSimpleText(r)}}}: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"}}});
Vo.prototype.onEditOnlyModeUpdate=Vo.prototype.onEditOnlyModeUpdate;Vo.prototype.onImageChange=Vo.prototype.onImageChange;_.B([_.n(),_.x("design:type",GKf)],Vo.prototype,"imageData",void 0);_.B([_.n(),_.x("design:type",Object)],Vo.prototype,"instruction",void 0);_.B([_.n(),_.x("design:type",Object)],Vo.prototype,"a11yConfig",void 0);_.B([_.n(),_.x("design:type",Number)],Vo.prototype,"imageWidth",void 0);_.B([_.n(),_.x("design:type",Number)],Vo.prototype,"imageHeight",void 0);
_.B([_.n(),_.x("design:type",Number)],Vo.prototype,"displayScale",void 0);_.B([_.n(),_.x("design:type",Object)],Vo.prototype,"imageDisplayOffsetTop",void 0);_.B([_.n(),_.x("design:type",Object)],Vo.prototype,"imageDisplayOffsetLeft",void 0);_.B([_.n(),_.x("design:type",Object)],Vo.prototype,"pickerDisplayOffsetTop",void 0);_.B([_.n(),_.x("design:type",Object)],Vo.prototype,"pickerDisplayOffsetLeft",void 0);_.B([_.n(),_.x("design:type",Object)],Vo.prototype,"showPreviewContainer",void 0);
_.B([_.n(),_.x("design:type",Object)],Vo.prototype,"startPicker",void 0);_.B([_.n(),_.x("design:type",Number)],Vo.prototype,"pickerOffsetX",void 0);_.B([_.n(),_.x("design:type",Number)],Vo.prototype,"pickerOffsetY",void 0);_.B([_.n(),_.x("design:type",Object)],Vo.prototype,"repositionOptional",void 0);_.B([_.n(),_.x("design:type",Object)],Vo.prototype,"editOnlyMode",void 0);_.B([_.hs("#picker-container"),_.x("design:type",HTMLElement)],Vo.prototype,"JSC$15784_pickerContainer",void 0);
_.B([_.hs("#picker"),_.x("design:type",HTMLElement)],Vo.prototype,"picker",void 0);_.B([_.hs("#preview-clipper"),_.x("design:type",HTMLElement)],Vo.prototype,"previewClipper",void 0);_.B([_.hs("#image-in-picker-background"),_.x("design:type",HTMLImageElement)],Vo.prototype,"JSC$15784_imageInBackground",void 0);_.B([_.hs("#image-in-picker"),_.x("design:type",HTMLImageElement)],Vo.prototype,"JSC$15784_imageInPicker",void 0);
_.B([_.hs("#image-in-preview-clipper"),_.x("design:type",HTMLImageElement)],Vo.prototype,"JSC$15784_imageInPreviewClipper",void 0);_.B([_.d("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],Vo.prototype,"altLabelForImage",null);_.B([_.d("imageHeight","imageWidth"),_.x("design:type",Number),_.x("design:paramtypes",[])],Vo.prototype,"pickerSize",null);
_.B([_.d("imageHeight","imageWidth"),_.x("design:type",Object),_.x("design:paramtypes",[])],Vo.prototype,"imageOrientationStyle",null);_.B([_.d("instruction"),_.x("design:type",Object),_.x("design:paramtypes",[])],Vo.prototype,"editButton",null);_.B([_.d("instruction","editOnlyMode"),_.x("design:type",Object),_.x("design:paramtypes",[])],Vo.prototype,"saveButton",null);_.B([_.d("instruction"),_.x("design:type",Object),_.x("design:paramtypes",[])],Vo.prototype,"deleteButton",null);
_.B([_.d("instruction","editOnlyMode"),_.x("design:type",Object),_.x("design:paramtypes",[])],Vo.prototype,"cancelButton",null);_.B([_.d("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.x("design:type",Number),_.x("design:paramtypes",[])],Vo.prototype,"cropOffsetTop",null);_.B([_.d("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.x("design:type",Number),_.x("design:paramtypes",[])],Vo.prototype,"cropOffsetLeft",null);
_.B([_.d("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],Vo.prototype,"pickerBackgroundStyle",null);_.B([_.d("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],Vo.prototype,"pickerDisplayStyle",null);_.B([_.d("cropOffsetLeft","cropOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],Vo.prototype,"imageInPickerStyle",null);
_.B([_.d("cropOffsetLeft","cropOffsetTop","pickerSize"),_.x("design:type",String),_.x("design:paramtypes",[])],Vo.prototype,"previewClipperStyle",null);_.B([_.iD("imageData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Vo.prototype,"onImageChange",null);_.B([_.iD("editOnlyMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Vo.prototype,"onEditOnlyModeUpdate",null);
_.B([_.d("showPreviewContainer"),_.x("design:type",String),_.x("design:paramtypes",[])],Vo.prototype,"pickerModeStyle",null);_.B([_.c({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],Vo);
_.A(Vo,"ytd-backstage-image-preview-renderer",function(){if(s3P!==void 0)return s3P;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return s3P=G},{mode:1});var Q3b;var IIC={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 pMy;var CeE;var hM=function(){var G=_.m.apply(this,arguments)||this;G.a11yConfig=IIC;G.imageDisplayOffsetTop=0;G.imageDisplayOffsetLeft=0;G.pickerDisplayOffsetTop=0;G.pickerDisplayOffsetLeft=0;G.cropCoordinatesSaved=!1;G.previewSize=0;G.startPicker=!1;G.repositionOptional=!1;return G};
_.K(hM,_.m);_.V=hM.prototype;_.V.created=function(){_.x6.requestAvailability()};
_.V.ready=function(){};
_.V.onArrowKeysDown=function(G){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){G.detail.keyboardEvent.preventDefault();var e=0,r=0,Z="";switch(G.detail.keyboardEvent.key){case "ArrowUp":Zcs(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?Z=this.a11yConfig.reachBottomOfImage:e=this.imageHeight*.05*-1;break;case "ArrowDown":Zcs(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?Z=this.a11yConfig.reachTopOfImage:
e=this.imageHeight*.05;break;case "ArrowLeft":Zcs(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?Z=this.a11yConfig.reachRightOfImage:r=this.imageWidth*.05*-1;break;case "ArrowRight":Zcs(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?Z=this.a11yConfig.reachLeftOfImage:r=this.imageWidth*.05}Z&&_.OK(Z)&&_.xy(this.hostElement,"iron-announce",{text:_.OK(Z)});if(r||e)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+e)),G=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),G=_.OK(this.a11yConfig.imageVerticalPosition,{x_percent:""+G,y_percent:""+(100-G)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+r)),G=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),G=_.OK(this.a11yConfig.imageHorizontalPosition,{x_percent:""+G,y_percent:""+(100-G)})),G&&_.xy(this.hostElement,"iron-announce",{text:G})}};
_.V.getPreviewPosition=function(G,e,r,Z){return Math.round(100*(G+e*.5-r)/Z)};
_.V.displayImage=function(){var G=this.JSC$15795_pickerContainer.getBoundingClientRect().width,e=this.JSC$15795_pickerContainer.getBoundingClientRect().height,r=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),Z=this.JSC$15795_imageInBackground.naturalWidth,O=this.JSC$15795_imageInBackground.naturalHeight;this.displayScale=Math.max(r/Z,r/O);this.imageWidth=Z*this.displayScale;this.imageHeight=O*this.displayScale;this.pickerDisplayOffsetLeft=(G-r)/2;this.pickerDisplayOffsetTop=
(e-r)/2;this.imageDisplayOffsetLeft=O>Z?this.pickerDisplayOffsetLeft:(G-this.imageWidth)/2;this.imageDisplayOffsetTop=Z>O?this.pickerDisplayOffsetTop:(e-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.V.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15795_imageInBackground.src=this.imageData.toString(),this.JSC$15795_imageInPicker.src=this.imageData.toString(),this.JSC$15795_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.V.getSignedPosition=function(G,e,r){return e==="X"&&_.xZ("HTML_DIR")==="rtl"?r==="-"?G+"px":G*-1+"px":r==="-"?G*-1+"px":G+"px"};
_.V.pickerMove=function(G){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-G.clientX,r=this.pickerOffsetY-G.clientY;this.pickerOffsetX=G.clientX;this.pickerOffsetY=G.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
r)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-e))}};
_.V.pickerMoveStart=function(G){this.startPicker=!0;this.pickerOffsetX=G.clientX;this.pickerOffsetY=G.clientY};
_.V.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.V.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.xy(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.V.getPreviewOffset=function(G,e,r,Z){return e&&G&&r?(Z==="X"&&_.xZ("HTML_DIR")==="rtl"?r/e*G:r/e*G*-1)+"px":"0px"};
_.V.getSimpleText=function(G){return G?_.mG(G):""};
_.V.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var G=this.cropOffsetTop/this.imageHeight,e=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,r=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,Z=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.z1(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.xy(this.hostElement,"yt-img-crop-coordinates-update",{top:G,right:e,bottom:r,left:Z})}};
_.iY.Object.defineProperties(hM.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var G=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.OK(this.a11yConfig.imageVerticalPosition,{x_percent:""+G,y_percent:""+(100-G)})+"\n"+_.OK(this.a11yConfig.verticalRepositionInstruction)}G=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.OK(this.a11yConfig.imageHorizontalPosition,{x_percent:""+G,y_percent:""+(100-G)})+"\n"+_.OK(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 G,e=(G=this.learnMore.runs[0])==null?void 0:G.navigationEndpoint,r;return((r=_.a(e,_.G2))==null?void 0:r.url)||void 0}}}});
hM.prototype.onImageDataChange=hM.prototype.onImageDataChange;_.B([_.n(),_.x("design:type",Object)],hM.prototype,"imageData",void 0);_.B([_.n(),_.x("design:type",Object)],hM.prototype,"instruction",void 0);_.B([_.n(),_.x("design:type",Object)],hM.prototype,"a11yConfig",void 0);_.B([_.n(),_.x("design:type",Number)],hM.prototype,"imageWidth",void 0);_.B([_.n(),_.x("design:type",Number)],hM.prototype,"imageHeight",void 0);_.B([_.n(),_.x("design:type",Number)],hM.prototype,"displayScale",void 0);
_.B([_.n(),_.x("design:type",Object)],hM.prototype,"imageDisplayOffsetTop",void 0);_.B([_.n(),_.x("design:type",Object)],hM.prototype,"imageDisplayOffsetLeft",void 0);_.B([_.n(),_.x("design:type",Object)],hM.prototype,"pickerDisplayOffsetTop",void 0);_.B([_.n(),_.x("design:type",Object)],hM.prototype,"pickerDisplayOffsetLeft",void 0);_.B([_.n(),_.x("design:type",Object)],hM.prototype,"cropCoordinatesSaved",void 0);_.B([_.n(),_.x("design:type",Object)],hM.prototype,"previewSize",void 0);
_.B([_.n(),_.x("design:type",Object)],hM.prototype,"startPicker",void 0);_.B([_.n(),_.x("design:type",Number)],hM.prototype,"pickerOffsetX",void 0);_.B([_.n(),_.x("design:type",Number)],hM.prototype,"pickerOffsetY",void 0);_.B([_.n(),_.x("design:type",Object)],hM.prototype,"repositionOptional",void 0);_.B([_.hs("#picker-container"),_.x("design:type",HTMLElement)],hM.prototype,"JSC$15795_pickerContainer",void 0);_.B([_.hs("#picker"),_.x("design:type",HTMLElement)],hM.prototype,"picker",void 0);
_.B([_.hs("#image-in-picker-background"),_.x("design:type",HTMLImageElement)],hM.prototype,"JSC$15795_imageInBackground",void 0);_.B([_.hs("#image-in-picker"),_.x("design:type",HTMLImageElement)],hM.prototype,"JSC$15795_imageInPicker",void 0);_.B([_.hs("#image-in-preview-clipper"),_.x("design:type",HTMLImageElement)],hM.prototype,"JSC$15795_imageInPreviewClipper",void 0);_.B([_.hs("#full-image-as-preview"),_.x("design:type",HTMLImageElement)],hM.prototype,"imageAsPreview",void 0);
_.B([_.d("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],hM.prototype,"altLabelForImage",null);_.B([_.d("imageHeight","imageWidth"),_.x("design:type",Number),_.x("design:paramtypes",[])],hM.prototype,"pickerSize",null);_.B([_.d("imageHeight","imageWidth"),_.x("design:type",Object),_.x("design:paramtypes",[])],hM.prototype,"imageOrientationStyle",null);
_.B([_.d("instruction.previewInstruction.editButtonLabel"),_.x("design:type",Object),_.x("design:paramtypes",[])],hM.prototype,"editButton",null);_.B([_.d("instruction.editInstruction.saveButtonLabel"),_.x("design:type",Object),_.x("design:paramtypes",[])],hM.prototype,"saveButton",null);_.B([_.d("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.x("design:type",Number),_.x("design:paramtypes",[])],hM.prototype,"cropOffsetTop",null);
_.B([_.d("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.x("design:type",Number),_.x("design:paramtypes",[])],hM.prototype,"cropOffsetLeft",null);_.B([_.d("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],hM.prototype,"pickerBackgroundStyle",null);_.B([_.d("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],hM.prototype,"pickerDisplayStyle",null);
_.B([_.d("cropOffsetLeft","cropOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],hM.prototype,"imageInPickerStyle",null);_.B([_.d("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.x("design:type",String),_.x("design:paramtypes",[])],hM.prototype,"previewClipperStyle",null);_.B([_.Me("imageData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hM.prototype,"onImageDataChange",null);
_.B([_.d("cropCoordinatesSaved"),_.x("design:type",String),_.x("design:paramtypes",[])],hM.prototype,"pickerModeStyle",null);_.B([_.d("instruction.editInstruction.learnMore"),_.x("design:type",Object),_.x("design:paramtypes",[])],hM.prototype,"learnMore",null);_.B([_.d("learnMore"),_.x("design:type",Object),_.x("design:paramtypes",[])],hM.prototype,"learnMoreUrl",null);_.B([_.aR({is:"yt-img-crop-picker",disableElementRegistration:!0})],hM);
_.A(hM,"yt-img-crop-picker",function(){if(CeE===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;pMy===void 0&&(pMy=document.createElement("template"));var Z=pMy;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);CeE=G}G=CeE;return G},{mode:2});var T7=function(){var G=_.m.apply(this,arguments)||this;G.errorMessage="";G.hasPreview=!1;G.isBackstagePost=!1;G.dismissButtonOverrides={size:"XS"};return G};
_.K(T7,_.m);_.V=T7.prototype;_.V.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"}}}};
_.V.detached=function(){this.removeOverlay()};
_.V.setPreview=function(G){_.z1(this.hostElement).querySelector("#preview-picker").imageData=G;this.hasPreview=!0;_.xy(this.hostElement,"yt-backstage-image-select-preview")};
_.V.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var G=_.z1(this.hostElement).querySelector("#dropzone");G.classList.remove("dragover");G.classList.remove("error");_.xy(this.hostElement,"yt-backstage-image-select-cancel")};
_.V.setupOverlay=function(){var G=this.imageUploadEndpoint;this.removeOverlay();if(G&&G.imageValidationInfo){var e=_.z1(this.hostElement).querySelector("#dropzone"),r=_.z1(this.hostElement).querySelector("#select");this.overlay=new EI(G.uploadUrl,G.channelId,G.imageValidationInfo.maxFileSizeMb,G.imageValidationInfo.allowedMaxAspectRatio,e,r,!0);_.w2(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.w2(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.w2(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.w2(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.w2(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.V.removeOverlay=function(){this.overlay&&(_.Rb(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.Rb(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.Rb(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.Rb(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.Rb(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.V.onDragOver=function(G){var e=_.z1(this.hostElement).querySelector("#dropzone");_.Nv(e,"dragover",G.value)};
_.V.onPreview=function(G){this.setPreview(G.value)};
_.V.onImageError=function(G){if(G.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var e;G=(e=this.data)==null?void 0:e.fileSizeError}else if(G.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var r;G=(r=this.data)==null?void 0:r.invalidError}else if(G.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var Z;G=(Z=this.data)==null?void 0:Z.invalidAspectRatioError}else return;this.errorMessage=_.mG(G);_.z1(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.V.onImageAlert=function(G){this.onImageError(G)};
_.V.uploadPromise=function(){var G=this,e=this.overlay&&this.overlay.uploadPromise();if(e)return e.catch(function(){throw Error(G.data?_.mG(G.data.uploadFailureError):"");})};
_.iY.Object.defineProperties(T7.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var G,e;if((G=this.data)==null?0:(e=G.icon)==null?0:e.iconType)return _.Ne(this.data.icon.iconType)}}});
T7.prototype.setupOverlay=T7.prototype.setupOverlay;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],T7.prototype,"rendererStamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],T7.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],T7.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],T7.prototype,"imageUploadEndpoint",void 0);_.B([_.n(),_.x("design:type",Object)],T7.prototype,"errorMessage",void 0);
_.B([_.n(),_.x("design:type",EI)],T7.prototype,"overlay",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],T7.prototype,"hasPreview",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],T7.prototype,"isBackstagePost",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],T7.prototype,"selectionCancel",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],T7.prototype,"previewCancel",null);
_.B([_.d("data.icon.iconType"),_.x("design:type",Object),_.x("design:paramtypes",[])],T7.prototype,"icon",null);_.B([_.n(),_.x("design:type",Object)],T7.prototype,"dismissButtonOverrides",void 0);_.B([_.Me("imageUploadEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],T7.prototype,"setupOverlay",null);_.B([_.c({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],T7);
_.A(T7,"ytd-backstage-image-select-renderer",function(){if(Q3b!==void 0)return Q3b;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Q3b=G},{mode:1});var u8C;var nHy;var Dn=function(){var G=_.m.apply(this,arguments)||this;G.selected=!1;return G};
_.K(Dn,_.m);_.V=Dn.prototype;_.V.computeSelected=function(G){return G==null?void 0:G.selected};
_.V.computeTransform=function(G,e,r){var Z,O,M=(O=(Z=this.imageContainer)==null?void 0:Z.getBoundingClientRect())!=null?O:{width:0,height:0};Z=Math.max(M.width/e,M.height/r);r=r*Z*G.top;return"translateX("+this.getSignedPosition(e*Z*G.left,"X","-")+") translateY("+this.getSignedPosition(r,"Y","-")+")"};
_.V.getSignedPosition=function(G,e,r){return e==="X"&&_.xZ("HTML_DIR")==="rtl"?r==="-"?G+"px":G*-1+"px":r==="-"?G*-1+"px":G+"px"};
_.V.onClick=function(){var G;_.xy(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(G=this.data)==null?void 0:G.image)};
_.V.onKeyPress=function(G){if(G.keyCode===13)this.onClick()};
_.iY.Object.defineProperties(Dn.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var G,e;return((G=this.data)==null?void 0:(e=G.image)==null?void 0:e.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)!=null&&G.image){var e;G=(e=this.data)==null?void 0:e.image;return G.previewCoordinates.top!==0||G.previewCoordinates.left!==0?(e=this.computeTransform(G.previewCoordinates,G.naturalWidth,G.naturalHeight),G.naturalHeight>=G.naturalWidth?"width:inherit;transform:"+e+";":"height:inherit;transform:"+e+";"):G.naturalHeight>=G.naturalWidth?"width:inherit;":"height:inherit;"}}}});
Dn.prototype.onKeyPress=Dn.prototype.onKeyPress;_.B([_.hs(".image-container"),_.x("design:type",HTMLElement)],Dn.prototype,"imageContainer",void 0);_.B([_.n(),_.x("design:type",Object)],Dn.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.x("design:type",Object)],Dn.prototype,"selected",void 0);_.B([_.d("data.image"),_.x("design:type",Object),_.x("design:paramtypes",[])],Dn.prototype,"thumbnailUrl",null);
_.B([_.d("data.image","data.image.previewCoordinates"),_.x("design:type",Object),_.x("design:paramtypes",[])],Dn.prototype,"thumbnailStyle",null);_.B([_.Om("keypress"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Dn.prototype,"onKeyPress",null);_.B([_.c({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],Dn);
_.A(Dn,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(nHy!==void 0)return nHy;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return nHy=G},{mode:2});var E8=function(G,e,r){r=r===void 0?!1:r;_.j7.call(this);var Z=this;this.dropZoneOverlay=new tO(G);this.selectOverlay=r?new gQ(e,"multiple_file",["image/*"]):new gQ(e,"single_file",["image/*"]);this.handler=new _.tP(this);_.Xx(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(e,"click",function(){Z.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.K(E8,_.j7);E8.prototype.onChange=function(G){var e;(e=G.files)!=null&&e.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:G.files}))};var iQ=function(){var G=_.m.apply(this,arguments)||this;G.addImageErrorMessage="";G.errorMessage="";G.images=[];G.selectedImageIndex=0;G.modern=_.R("web_modern_buttons");G.maxNumImagesPerPost=_.qt("max_num_images_per_post_web_ui");G.JSC$15810_imageId=0;return G};
_.K(iQ,_.m);_.V=iQ.prototype;_.V.created=function(){var G=this;this.JSC$15810_ytReorderableController=new _.rjv(100,function(e){G.handleDrop(e)})};
_.V.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.xy(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.V.observeDragToReorder=function(){var G=this;if(this.showImagesPreview){var e,r=TMW(_.lr.getInstance(),(e=this.data)==null?void 0:e.dragToReorderTooltip);_.A0.addLowPriorityJob(function(){_.Wi(G.hostElement,r,G.thumbnailDragDropArea)})}};
_.V.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}}};
_.V.computeThumbnail=function(G){return(G==null?void 0:G.localImageSrc)||void 0};
_.V.onRendererstamperFinished=function(){_.ZAn(this.JSC$15810_ytReorderableController,_.z1(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.z1(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.V.handleDrop=function(G){var e=G.currDragItem;if(e!=null&&e.data){G=this.images[this.selectedImageIndex];var r=e.data.image,Z=this.images.indexOf(r)||0;e=_.cA(e.parentNode.children,e);this.images.splice(Z,1);this.images.splice(e,0,r);this.images=[].concat(_.mY(this.images));this.selectedImageIndex=this.images.indexOf(G)}};
_.V.setUpImagePicker=function(){var G=this.imageUploadEndpoint;G&&G.imageValidationInfo&&(this.uploadManager=new O8(G.uploadUrl,G.channelId),this.initialPicker||(this.initialPicker=new E8(this.dropzone,this.selectLink,!0),_.w2(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new E8(this.addImageButtonContainer,this.addImageSelectButton),_.w2(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.w2(this.JSC$15810_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.w2(this.JSC$15810_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.w2(_.z1(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.V.detached=function(){this.initialPicker&&(_.Rb(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.Rb(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.fJ(this.JSC$15810_ytReorderableController)};
_.V.onInitialSelectImages=function(G){var e=this;return _.D(function(r){return r.yield(e.onSelectImages(G,!1),0)})};
_.V.onAddImage=function(G){var e=this;return _.D(function(r){return r.yield(e.onSelectImages(G,!0),0)})};
_.V.onSelectImages=function(G,e){var r=this,Z,O,M,T,E,b,w,q,t,g,l,X,H,I,C,u,P,F,J,U;return _.D(function(e$){switch(e$.nextAddress){case 1:e?r.addImageErrorMessage="":(r.images=[],r.errorMessage="");Z=G.detail;O=r.validateImages([].concat(_.mY(Z)));if(O!=="")return e?r.addImageErrorMessage=O:r.errorMessage=O,e$.return();M=[].concat(_.mY(Z)).map(function(Dq){return(new T$(r.maxAspectRatio,!1,!0)).transform(Dq)});
return e$.yield(Promise.allSettled(M),2);case 2:T=e$.yieldResult,E=_.h(T.entries()),b=E.next();case 3:if(b.done){e$.jumpTo(5);break}w=b.value;q=_.h(w);t=q.next().value;g=q.next().value;l=t;X=g;if(X.status!=="fulfilled"){C=I=H=void 0;e?r.addImageErrorMessage=_.mG((H=r.data)==null?void 0:H.invalidError):r.errorMessage=r.errorMessage===""?_.mG((I=r.data)==null?void 0:I.invalidError):_.mG((C=r.data)==null?void 0:C.multiFileError);e$.jumpTo(4);break}u=X.value;u.cropped&&_.xy(r.hostElement,"yt-backstage-multi-image-cropped");
if(u.invalidAspectRatio){J=F=P=void 0;e?r.addImageErrorMessage=_.mG((P=r.data)==null?void 0:P.invalidAspectRatioError):r.errorMessage=r.errorMessage===""?_.mG((F=r.data)==null?void 0:F.invalidAspectRatioError):_.mG((J=r.data)==null?void 0:J.multiFileError);e$.jumpTo(4);break}return e$.yield(e0y(r.JSC$15810_imageId,G.detail[l],u.transformedData),8);case 8:U=e$.yieldResult,r.images.push(U),r.JSC$15810_imageId++;case 4:b=E.next();e$.jumpTo(3);break;case 5:if(r.errorMessage!==""||r.addImageErrorMessage!==
"")return e$.return();e?XMS(r.uploadManager,[r.images[r.images.length-1]]):XMS(r.uploadManager,r.images);r.images=[].concat(_.mY(r.images));r.selectedImageIndex=e?Math.max(r.images.length-1,0):0;_.xy(r.hostElement,"yt-backstage-multi-image-select");_.HL(e$)}})};
_.V.onThumbnailClick=function(G){if(G=G.event_.detail)this.selectedImageIndex=this.images.indexOf(G)};
_.V.validateImages=function(G){if(G.length>this.maxNumImagesPerPost){var e;return _.mG((e=this.data)==null?void 0:e.multiImageExceedMaxImageCountError)}var r=1048576*this.maxFileSizeMb;G=G.filter(function(M){return M.size>r}).length;
if(G===0)return"";var Z,O;G=G>1?(Z=this.data)==null?void 0:Z.multiFileError:(O=this.data)==null?void 0:O.fileSizeError;return _.mG(G)};
_.V.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.mY(this.images));this.selectedImageIndex=0};
_.V.repositionImage=function(G){this.images[this.selectedImageIndex].previewCoordinates=G.event_.detail;this.images=[].concat(_.mY(this.images))};
_.V.getAllUploadStatuses=function(){var G=this,e,r,Z,O;return _.D(function(M){if(M.nextAddress==1)return M.yield(G.uploadManager.getAllUploadStatuses(),2);e=M.yieldResult;r=_.h(e);for(Z=r.next();!Z.done;Z=r.next())if(O=Z.value,O.encryptedBlobId===void 0)return M.return(KXc(G.uploadManager));return M.return(e)})};
_.V.hasImages=function(){return this.images.length>0};
_.V.cancel=function(){for(var G=this.uploadManager,e=_.h(G.imagesUploadData),r=e.next();!r.done;r=e.next())G.cancel(r.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.xy(this.hostElement,"yt-backstage-multi-image-cancel")};
_.iY.Object.defineProperties(iQ.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var G,e;return((G=this.imageUploadEndpoint)==null?void 0:(e=G.imageValidationInfo)==null?void 0:e.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var G,e;return((G=this.imageUploadEndpoint)==null?void 0:(e=G.imageValidationInfo)==null?void 0:e.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var G,e;if((G=this.data)==null?0:(e=G.icon)==null?0:e.iconType)return _.Ne(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.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 G=this;return(this.images||[]).map(function(e,r){return{renderer:{image:e,selected:r===G.selectedImageIndex}}})}}});
iQ.prototype.setUpImagePicker=iQ.prototype.setUpImagePicker;iQ.prototype.onRendererstamperFinished=iQ.prototype.onRendererstamperFinished;iQ.prototype.observeDragToReorder=iQ.prototype.observeDragToReorder;iQ.prototype.observeAddImageError=iQ.prototype.observeAddImageError;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],iQ.prototype,"rendererStamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],iQ.prototype,"ytRendererBehavior",void 0);
_.B([_.hs("#dropzone"),_.x("design:type",HTMLElement)],iQ.prototype,"dropzone",void 0);_.B([_.hs("#select-link"),_.x("design:type",HTMLElement)],iQ.prototype,"selectLink",void 0);_.B([_.hs("#thumbnail-drag-drop-area"),_.x("design:type",HTMLElement)],iQ.prototype,"thumbnailDragDropArea",void 0);_.B([_.hs("#add-image-button-container"),_.x("design:type",HTMLElement)],iQ.prototype,"addImageButtonContainer",void 0);
_.B([_.hs("#add-image-button"),_.x("design:type",HTMLElement)],iQ.prototype,"addImageSelectButton",void 0);_.B([_.hs("#image-preview-container"),_.x("design:type",Object)],iQ.prototype,"JSC$15810_imagePreviewContainer",void 0);_.B([_.n(),_.x("design:type",Object)],iQ.prototype,"addImageErrorMessage",void 0);_.B([_.n(),_.x("design:type",Object)],iQ.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],iQ.prototype,"errorMessage",void 0);
_.B([_.n(),_.x("design:type",Object)],iQ.prototype,"imageUploadEndpoint",void 0);_.B([_.n(),_.x("design:type",Array)],iQ.prototype,"images",void 0);_.B([_.n(),_.x("design:type",E8)],iQ.prototype,"initialPicker",void 0);_.B([_.n(),_.x("design:type",E8)],iQ.prototype,"addImagePicker",void 0);_.B([_.n(),_.x("design:type",O8)],iQ.prototype,"uploadManager",void 0);_.B([_.n(),_.x("design:type",Object)],iQ.prototype,"selectedImageIndex",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],iQ.prototype,"modern",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],iQ.prototype,"maxNumImagesPerPost",void 0);_.B([_.d("imageUploadEndpoint"),_.x("design:type",Number),_.x("design:paramtypes",[])],iQ.prototype,"maxAspectRatio",null);_.B([_.d("imageUploadEndpoint"),_.x("design:type",Number),_.x("design:paramtypes",[])],iQ.prototype,"maxFileSizeMb",null);
_.B([_.d("data.icon.iconType"),_.x("design:type",Object),_.x("design:paramtypes",[])],iQ.prototype,"dropIcon",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],iQ.prototype,"selectionCancel",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],iQ.prototype,"previewCancel",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],iQ.prototype,"dataForAddImageButton",null);
_.B([_.d("errorMessage"),_.x("design:type",String),_.x("design:paramtypes",[])],iQ.prototype,"dropzoneClass",null);_.B([_.d("images"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],iQ.prototype,"showImagesPreview",null);_.B([_.d("images"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],iQ.prototype,"containMaxImages",null);_.B([_.Me("addImageErrorMessage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iQ.prototype,"observeAddImageError",null);
_.B([_.Me("showImagesPreview"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iQ.prototype,"observeDragToReorder",null);_.B([_.d("images","selectedImageIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],iQ.prototype,"selectedImageData",null);_.B([_.d("images","selectedImageIndex"),_.x("design:type",Array),_.x("design:paramtypes",[])],iQ.prototype,"thumbnailRenderers",null);
_.B([_.Om("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iQ.prototype,"onRendererstamperFinished",null);_.B([_.Me("imageUploadEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iQ.prototype,"setUpImagePicker",null);_.B([_.c({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],iQ);
_.A(iQ,"ytd-backstage-multi-image-select-renderer",function(){if(u8C!==void 0)return u8C;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return u8C=G},{mode:1});var m5v;var cpP;var Yjc;var bQ=function(){var G=_.m.apply(this,arguments)||this;G.boundCaptureFocus=function(e){G.onCaptureFocus(e)};
return G};
_.K(bQ,_.m);_.V=bQ.prototype;_.V.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.V.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.V.onCaptureFocus=function(G){_.na(G).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.V.getIconType=function(G){return G?"yt-icons:"+G.toLowerCase():null};
_.V.onSelect=function(){var G;if((G=this.data)==null?0:G.onSelectCommand)if(_.R("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var e;((e=_.a(this.data.onSelectCommand.commandMetadata,_.rJ))==null?0:e.url)?_.xy(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.v_().resolve(_.$1).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.iY.Object.defineProperties(bQ.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.mG(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}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],bQ.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],bQ.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],bQ.prototype,"data",void 0);_.B([_.hs("#item"),_.x("design:type",HTMLElement)],bQ.prototype,"item",void 0);_.B([_.d("data.label"),_.x("design:type",String),_.x("design:paramtypes",[])],bQ.prototype,"label",null);
_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bQ.prototype,"value",null);_.B([_.c({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],bQ);
_.A(bQ,"ytd-privacy-dropdown-item-renderer",function(){if(Yjc!==void 0)return Yjc;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Yjc=G},{mode:1});var vr=function(){var G=_.m.apply(this,arguments)||this;G.value="";G.label="";G.disabled=!1;return G};
_.K(vr,_.m);_.V=vr.prototype;_.V.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"}}}};
_.V.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.V.dataChanged=function(){this.reset()};
_.V.valueChanged=function(){var G;if(this.value&&(G=this.data)!=null&&G.entries){G=_.h(this.data.entries);for(var e=G.next();!e.done;e=G.next())if((e=this.getRendererForEntry(e.value))&&this.getItemRendererValue(e)===this.value){this.label=this.ytComponentBehavior.getSimpleString(e.label);break}}};
_.V.setInitialLabel=function(){if(this.data&&this.data.entries)for(var G=_.h(this.data.entries),e=G.next();!e.done;e=G.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)}};
_.V.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var G=_.h(this.data.entries),e=G.next();!e.done;e=G.next()){e=this.getRendererForEntry(e.value);var r=void 0;if((r=e)==null?0:r.isSelected)return this.getItemRendererValue(e)||-1}return-1};
_.V.getItemRendererValue=function(G){return"stringValue"in G||"int32Value"in G?G.stringValue||G.int32Value||null:null};
_.V.getRendererForEntry=function(G){return G.dropdownItemRenderer||G.privacyDropdownItemRenderer||G.navigationDropdownItemRenderer||null};
_.V.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eG("value-changed",this.value))};
_.V.updateValueFromBinding=function(G){this.value=G.detail.value};
vr.prototype.valueChangedForBinding=vr.prototype.valueChangedForBinding;vr.prototype.valueChanged=vr.prototype.valueChanged;vr.prototype.dataChanged=vr.prototype.dataChanged;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],vr.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],vr.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],vr.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],vr.prototype,"value",void 0);_.B([_.n(),_.x("design:type",Object)],vr.prototype,"label",void 0);_.B([_.hs("#entries"),_.x("design:type",Object)],vr.prototype,"entries",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],vr.prototype,"disabled",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vr.prototype,"dataChanged",null);
_.B([_.iD("value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vr.prototype,"valueChanged",null);_.B([_.Me("value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vr.prototype,"valueChangedForBinding",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],vr);
_.A(vr,"ytd-flat-dropdown-renderer",function(){if(cpP!==void 0)return cpP;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return cpP=G},{mode:1});var ypC;var wA=function(){var G=_.m.apply(this,arguments)||this;G.quizOptions=[];G.explanationPlaceholderText="";G.optionPlaceholderText="";G.correctAnswerIndex=-1;G.isMarkAnswerTooltipShown=!1;G.timer=0;return G};
_.K(wA,_.m);_.V=wA.prototype;_.V.dataChanged=function(){this.optionPlaceholderText=_.mG(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.mG(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.V.onMarkCorrectAnswer=function(G){var e,r=((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[G.model.index]=Object.assign({},this.quizOptions[G.model.index],{explanationText:r,isCorrect:!0});this.correctAnswerIndex=G.model.index;this.quizOptions=[].concat(_.mY(this.quizOptions))};
_.V.updatePlaceholderTexts=function(){for(var G=!1,e=[],r=0;r<this.quizOptions.length;r++){var Z=this.optionPlaceholderText+" "+(r+1),O=void 0;((O=this.quizOptions[r])==null?void 0:O.placeholderText)!==Z?(G=!0,e.push(Object.assign({},this.quizOptions[r],{placeholderText:Z}))):e.push(this.quizOptions[r])}G&&(this.quizOptions=e);this.isValid()?_.xy(this.hostElement,"yt-commentbox-post-enable"):_.xy(this.hostElement,"yt-commentbox-post-disable")};
_.V.getSimpleString=function(G){return _.mG(G)};
_.V.createQuizOptions=function(G){var e=[],r;G=(r=G==null?void 0:G.minQuizOptions)!=null?r:0;for(r=0;r<G;r++)e.push(this.createQuizOption());return e};
_.V.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.mY(this.quizOptions),[this.createQuizOption()]))};
_.V.onInput=function(){this.quizOptions=[].concat(_.mY(this.quizOptions))};
_.V.onExplanationInput=function(){_.xy(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.V.onRemoveQuizOption=function(G){this.quizOptions.splice(G.model.index,1);G.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:G.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.mY(this.quizOptions));this.quizOptions.length===0&&_.xy(this.hostElement,"yt-quiz-attachment-dismiss")};
_.V.updateHintRenderer=function(){var G=this;clearTimeout(this.timer);this.timer=setTimeout(function(){G.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.V.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var G=0,e=0,r=_.h(this.quizOptions),Z=r.next();!Z.done;Z=r.next()){Z=Z.value;var O=void 0;if(((O=Z.optionText)==null?void 0:O.trim())!==""||Z.isCorrect){Z.isCorrect&&e++;O=void 0;if(this.hasCustomOptionText&&((O=Z.optionText)==null?void 0:O.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;G++}}return G>=
Number(this.editorInfo.minQuizOptions)&&e===1};
_.V.getPostCreateOptions=function(){for(var G=[],e=_.h(this.quizOptions),r=e.next();!r.done;r=e.next()){r=r.value;var Z=void 0;((Z=r.optionText)==null?void 0:Z.trim())!==""&&G.push({pollOption:{text:r.optionText,explanation:r.explanationText},isCorrect:r.isCorrect})}return G};
_.V.getExplanationText=function(){var G;return((G=this.quizOptions[this.correctAnswerIndex])==null?void 0:G.explanationText)||""};
_.V.maybeDisplayMarkAnswerEduToolTip=function(){var G,e,r,Z,O,M,T;this.shouldShowMarkAnswerTooltip()&&((G=this.editorInfo)==null?0:(e=G.markAnswerButton)==null?0:(r=e.buttonRenderer)==null?0:(Z=r.hint)==null?0:(O=Z.hintRenderer)==null?0:(M=O.content)==null?0:(T=M.bubbleHintRenderer)==null?0:T.text)&&(_.lr.getInstance(),G=RT(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,(G==null?void 0:G.length)>0&&this.optionSelectors&&_.es(G[0],this.optionSelectors[0]))};
_.V.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var G=0,e=_.h(this.quizOptions),r=e.next();!r.done;r=e.next()){r=r.value;var Z=void 0;((Z=r.optionText)==null?void 0:Z.trim())!==""&&G++;if(r.isCorrect)return!1}return G<2?!1:!0};
_.V.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.V.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.V.updateOptionTextFromBinding=function(G){if(G.target){var e=Array.from(_.z1(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(G.target);if(e>=0){var r;this.quizOptions[e].optionText=(r=G.detail.value)!=null?r:""}}};
_.iY.Object.defineProperties(wA.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var G,e,r=(G=this.editorInfo)==null?void 0:(e=G.addOptionButton)==null?void 0:e.buttonRenderer;r&&(r.style="STYLE_SUGGESTIVE",r.size="SIZE_SMALL",r.isDisabled=!this.isAllowedToAddOption);return(r==null?0:r.text)?r:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var G,e;return this.quizOptions.length<((e=(G=this.editorInfo)==null?void 0:G.maxQuizOptions)!=null?e:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(G){var e;return(e=G.optionText)==null?void 0:e.trim()})}}});
wA.prototype.updatePlaceholderTexts=wA.prototype.updatePlaceholderTexts;wA.prototype.dataChanged=wA.prototype.dataChanged;_.B([_.n(),_.x("design:type",Object)],wA.prototype,"editorInfo",void 0);_.B([_.n(),_.x("design:type",Array)],wA.prototype,"quizOptions",void 0);_.B([_.n(),_.x("design:type",Object)],wA.prototype,"explanationPlaceholderText",void 0);_.B([_.To(".option-selector-button"),_.x("design:type",Array)],wA.prototype,"optionSelectors",void 0);
_.B([_.iD("editorInfo"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wA.prototype,"dataChanged",null);_.B([_.d("editorInfo","isAllowedToAddOption","quizOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],wA.prototype,"addAnswerButton",null);_.B([_.d("editorInfo","quizOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],wA.prototype,"isAllowedToAddOption",null);
_.B([_.iD("quizOptions"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wA.prototype,"updatePlaceholderTexts",null);_.B([_.d("quizOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],wA.prototype,"hasCustomOptionText",null);_.B([_.c({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],wA);
_.A(wA,"ytd-backstage-quiz-editor-renderer",function(){if(ypC!==void 0)return ypC;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return ypC=G},{mode:2});var Apv;var FXw=(eM.FIRSTDAYOFWEEK+1)%7;var JpE;var BXP=[],x5j=0,PeE=0;x5j=0;PeE=24;if(.25*(PeE-x5j)<0)JpE=[];else{for(var U5c=x5j;U5c<PeE;U5c+=.25)BXP.push(U5c);JpE=BXP}var zRw=JpE.map(function(G){G=G*60*60;return{secondsSinceMidnight:G,text:(new uw(7)).format(new Date(0,0,0,0,0,G))}});var WXn;var $X=function(){var G=_.m.apply(this,arguments)||this;G.skipNextOpenDialog=!1;G.errorMessage="";G.previousMonthLabel=_.OK("PREVIOUS_MONTH_LABEL");G.nextMonthLabel=_.OK("NEXT_MONTH_LABEL");return G};
_.K($X,_.m);_.V=$X.prototype;_.V.attached=function(){var G=this,e=new MutationObserver(function(){G.JSC$15852_calendarMain.scrollHeight>0&&(e.disconnect(),G.calendarConfig&&G.calendarConfig.selectedDate&&G.scrollToDate())});
e.observe(this.JSC$15852_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){e.disconnect()},1E3)};
_.V.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.V.onDateTextChange=function(){if(this.calendarConfig){var G=this.validateDateText();G.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(G.details)):this.textbox.setAttribute("invalid","")}};
_.V.handleDayClick=function(G){G.model.day.date&&(this.commitDate(G.model.day.date),this.dialog.close())};
_.V.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var G=bcS(this.calendarConfig.selectedDate,this.renderData);G!==void 0&&this.JSC$15852_calendarMain.scrollToIndex(G)}};
_.V.scrollToNextMonth=function(){this.JSC$15852_calendarMain.scrollToIndex(this.JSC$15852_calendarMain.firstVisibleIndex+1)};
_.V.scrollToPrevMonth=function(){this.JSC$15852_calendarMain.firstVisibleIndex===0&&this.JSC$15852_calendarMain.scrollTo(0,0);this.JSC$15852_calendarMain.scrollToIndex(this.JSC$15852_calendarMain.firstVisibleIndex-1)};
_.V.onFormSubmit=function(G){G.preventDefault();this.calendarConfig&&(G=this.validateDateText(),G.isValid&&(this.commitDate(G.details),this.dialog.close()))};
_.V.onEscOrClickingOutside=function(G){G=G.detail.path&&!!G.detail.path.length&&G.detail.path[0];if(G.classList.contains("ytd-calendar-date-picker")){G===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var e=0;e<this.dropdownButton.children.length;e++)this.dropdownButton.children[e]===G&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}G=this.textbox.value!==this.dateText;e=this.validateDateText();G&&e.isValid&&this.commitDate(e.details);this.dialog.close();this.textbox.value=
this.dateText};
_.V.commitDate=function(G){this.calendarConfig&&(this.set("calendarConfig.selectedDate",G),_.xy(this.hostElement,"ytd-calendar-date-selected",G))};
_.V.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var G=this.textbox.value;var e=new Date;G=(new sM4(2)).parse(G,e,{validate:!0})===G.length?Ekf(e):void 0;if(!G)return this.errorMessage=_.OK("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};e=this.calendarConfig.start;var r=this.calendarConfig.end;if(M5U(G,e))return this.errorMessage=_.OK("ENTER_DATE_OR_LATER",{allowed_date:DHf(e)}),{isValid:!1,details:void 0};if(M5U(r,G))return this.errorMessage=
_.OK("ENTER_DATE_OR_EARLIER",{allowed_date:DHf(r)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:G}};
_.iY.Object.defineProperties($X.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?DHf(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var G=this.calendarConfig,e=[],r=0;r<7;r++)e.push(eM.NARROWWEEKDAYS[(r+FXw)%7]);r=[];for(var Z=new Date(G.start.year,G.start.month);Z.getFullYear()<G.end.year||Z.getFullYear()===G.end.year&&Z.getMonth()<=G.end.month;){var O=r,M=O.push,T=Z.getFullYear(),E=Z.getMonth(),b=G,w=void 0,q=[],t=Object.freeze({extraCssClass:"invisible",debugClass:""}),g=new Date(T,E),l=Ekf(g);g=g.getDay();for(var X=Ekf(new Date);l.month===
E;){g!==FXw&&w||(w=Array.from({length:7}).fill(t),q.push(w));var H={date:{year:T,month:E,day:l.day},extraCssClass:"",debugClass:""};b.selectedDate&&H.date&&OcS(H.date,b.selectedDate)&&(H.extraCssClass+=" selected");if(M5U(l,b.start)||M5U(b.end,l))H.extraCssClass+=" disabled";OcS(l,X)&&(H.extraCssClass+=" today");H.extraCssClass=H.extraCssClass.trim();w[(g-FXw+7)%7]=H;l=h0A(l);g=(g+1)%7}M.call(O,{weeks:q,monthLabel:eM.SHORTMONTHS[E]+" "+T,year:T,month:E,monthLabelExtraCssClass:q[0][2]===t?"shift-down-label":
""});Z.setMonth(Z.getMonth()+1)}return{months:r,daysOfWeekLabel:e}}}}});
$X.prototype.onEscOrClickingOutside=$X.prototype.onEscOrClickingOutside;$X.prototype.scrollToDate=$X.prototype.scrollToDate;_.B([_.n(),_.x("design:type",Object)],$X.prototype,"calendarConfig",void 0);_.B([_.n(),_.x("design:type",Object)],$X.prototype,"skipNextOpenDialog",void 0);_.B([_.n(),_.x("design:type",Object)],$X.prototype,"errorMessage",void 0);_.B([_.n(),_.x("design:type",Object)],$X.prototype,"previousMonthLabel",void 0);
_.B([_.n(),_.x("design:type",Object)],$X.prototype,"nextMonthLabel",void 0);_.B([_.hs("#textbox"),_.x("design:type",HTMLInputElement)],$X.prototype,"textbox",void 0);_.B([_.hs("#calendar-dialog"),_.x("design:type",Object)],$X.prototype,"dialog",void 0);_.B([_.hs("#calendar-main"),_.x("design:type",Object)],$X.prototype,"JSC$15852_calendarMain",void 0);_.B([_.hs("#date-picker"),_.x("design:type",HTMLElement)],$X.prototype,"dropdownButton",void 0);
_.B([_.d("calendarConfig.selectedDate"),_.x("design:type",String),_.x("design:paramtypes",[])],$X.prototype,"dateText",null);_.B([_.d("calendarConfig","calendarConfig.selectedDate"),_.x("design:type",Object),_.x("design:paramtypes",[])],$X.prototype,"renderData",null);_.B([_.Me("renderData","calendarConfig.selectedDate"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$X.prototype,"scrollToDate",null);
_.B([_.Om("iron-overlay-canceled"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],$X.prototype,"onEscOrClickingOutside",null);_.B([_.aR({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],$X);
_.A($X,"ytd-calendar-date-picker",function(){if(WXn!==void 0)return WXn;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return WXn=G},{mode:2});var NXn=_.OK("UTC_OFFSET_FORMAT",{utc_offset:(new uw("Z")).format(new Date)}),LXj=(new Date).getTimezoneOffset()*-60,GvE=new Date,e8l,rW3=CQ(GvE.getTimezoneOffset());e8l=ceC(yeS(rW3,GvE));var ZDE=_.OK("LOCAL_TIME_GMT_LABEL",{gmt_text:e8l.replace("+0","+").replace("-0","-").replace(":00","")}),Sb=function(){var G=_.m.apply(this,arguments)||this;G.selectedTimeIndex=0;G.selectedTimezoneIndex=0;G.timeOfDayOptions=zRw;return G};
_.K(Sb,_.m);_.V=Sb.prototype;_.V.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var G=TbU();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=G,this.selectedTimeIndex=0;else{var e=ics(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},G,{selectedDate:e.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(r){return r.secondsSinceMidnight===e.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.V.onDatePicked=function(G){this.selectedDate=G.detail};
_.V.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.xy(this.hostElement,"ytd-date-time-selection-cancelled")};
_.V.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var G=this.selectedDate;G=new Date(G.year,G.month,G.day);_.xy(this.hostElement,"ytd-date-time-selection-update",Math.floor(G.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+G.getTimezoneOffset()*60))}};
_.V.getTimezoneFormat=function(G){return G.localizedDisplayText?G.localizedDisplayText:_.OK("TIMEZONE_FORMAT",{utc_offset_text:""+G.localizedUtcOffset,city_name:""+G.localizedName})};
_.V.updateSelectedTimeIndexFromBinding=function(G){this.selectedTimeIndex=G.detail.value};
_.V.updateSelectedTimezoneIndexFromBinding=function(G){this.selectedTimezoneIndex=G.detail.value};
_.iY.Object.defineProperties(Sb.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var G=this.data.timezoneOptions;var e={name:"Etc/Unknown",localizedName:_.OK("LOCAL_TIME_LABEL"),localizedUtcOffset:NXn,utcOffsetSec:""+LXj,localizedDisplayText:ZDE};G?G.length&&G[0].name!==e.name&&(G[0].localizedDisplayText||(e.localizedDisplayText=""),G.unshift(e)):G=[e];return G}}},
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]}}});
Sb.prototype.onDateTimeTimezoneChange=Sb.prototype.onDateTimeTimezoneChange;Sb.prototype.onDatePicked=Sb.prototype.onDatePicked;Sb.prototype.updateDefaultSelectedValue=Sb.prototype.updateDefaultSelectedValue;_.B([_.n(),_.x("design:type",Object)],Sb.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],Sb.prototype,"calendarConfig",void 0);_.B([_.n(),_.x("design:type",Object)],Sb.prototype,"selectedDate",void 0);_.B([_.n(),_.x("design:type",Object)],Sb.prototype,"selectedTimeIndex",void 0);
_.B([_.n(),_.x("design:type",Object)],Sb.prototype,"selectedTimezoneIndex",void 0);_.B([_.hs("#time-listbox"),_.x("design:type",Object)],Sb.prototype,"timeListBox",void 0);_.B([_.hs("#timezone-listbox"),_.x("design:type",Object)],Sb.prototype,"timezoneListBox",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Sb.prototype,"rendererStamperBehavior",void 0);_.B([_.d("data.timezoneOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],Sb.prototype,"timeZones",null);
_.B([_.iD("data","timeZones"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Sb.prototype,"updateDefaultSelectedValue",null);_.B([_.d("selectedTimezoneIndex","timeZones"),_.x("design:type",Object),_.x("design:paramtypes",[])],Sb.prototype,"selectedTimezone",null);_.B([_.d("selectedTimeIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],Sb.prototype,"selectedTime",null);
_.B([_.Om("ytd-calendar-date-selected"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Sb.prototype,"onDatePicked",null);_.B([_.Me("selectedTimezone","selectedTime","selectedDate"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Sb.prototype,"onDateTimeTimezoneChange",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],Sb);
_.A(Sb,"ytd-date-time-picker-renderer",function(){if(Apv!==void 0)return Apv;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Apv=G},{mode:1});var ODy;var qc=function(){var G=_.m.apply(this,arguments)||this;G.boundOnTapDismissButton=function(){G.dismissTapHandler()};
G.dismissButtonOverrides={size:"XS"};return G};
_.K(qc,_.m);qc.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}}}}}};
qc.prototype.dismissTapHandler=function(){_.xy(this.hostElement,"yt-backstage-attachment-dismissed")};
qc.prototype.computeAttachmentType=function(G){return G?G.backstageImageRenderer?"image":G.videoRenderer?"video":"none":"none"};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],qc.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],qc.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],qc.prototype,"attachmentPreview",void 0);_.B([_.n(),_.x("design:type",Object)],qc.prototype,"dismissButton",void 0);_.B([_.n(),_.x("design:type",Object)],qc.prototype,"boundOnTapDismissButton",void 0);
_.B([_.n(),_.x("design:type",Object)],qc.prototype,"dismissButtonOverrides",void 0);_.B([_.n({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.x("design:type",String)],qc.prototype,"attachmentType",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],qc);
_.A(qc,"ytd-backstage-dismissable-attachment",function(){if(ODy!==void 0)return ODy;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return ODy=G},{mode:1});var MQl;var tM=function(){var G=_.m.apply(this,arguments)||this;G.selectedVideoId=void 0;G.picker=void 0;G.dismissButtonOverrides={size:"XS"};G.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return G};
_.K(tM,_.m);_.V=tM.prototype;_.V.onServiceRequestCompleted=function(G){G.stopPropagation()};
_.V.handleAddVideoPreviewAction=function(G){G=this.get("addVideoPreviewAction",G);this.onGetVideoPreviewSuccess(G)};
_.V.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}}}}}};
_.V.onLaunchVideoPicker=function(G){var e=this,r=_.mG(this.get("addVideoLinkAction.title",G)),Z=this.get("addVideoLinkAction.onePickHostId",G);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",G);Z&&(this.picker||(r=_.Q5j(_.vrS(Z).setTitle(r).addView(HMP()).addView(k2l()),function(O){e.onPickVideo(O)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",G)||r.addView("youtube"),this.picker=r.build()),this.picker.setVisible(!0))};
_.V.onPickVideo=function(G){if(G)if(G.action==="cancel")_.xy(this.hostElement,"yt-video-link-button-cancel");else if(G.action==="picked"){G=G.docs;if(!G||G.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(G=(G==null?0:G.length)?G[0]:void 0)?G.id:void 0;this.setVideoPreview()}};
_.V.setVideoPreview=function(){var G=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){G.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.V.onGetVideoPreviewSuccess=function(G){if(G&&G.videoPreview&&G.cancelButton)this.videoPreview=G.videoPreview,this.cancelButton=G.cancelButton,_.xy(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.V.onGetVideoPreviewError=function(){this.cancel()};
_.V.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.xy(this.hostElement,"yt-video-link-cancel")};
_.V.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
tM.prototype.onServiceRequestCompleted=tM.prototype.onServiceRequestCompleted;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],tM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],tM.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],tM.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],tM.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],tM.prototype,"videoPreview",void 0);_.B([_.n(),_.x("design:type",Object)],tM.prototype,"cancelButton",void 0);_.B([_.n(),_.x("design:type",Object)],tM.prototype,"getVideoPreviewCommand",void 0);_.B([_.n(),_.x("design:type",Object)],tM.prototype,"dismissButtonOverrides",void 0);
_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],tM.prototype,"onServiceRequestCompleted",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],tM);
_.A(tM,"ytd-backstage-video-link-attachment",function(){if(MQl!==void 0)return MQl;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return MQl=G},{mode:1});var VQc;var h8E;var T4w;var gA=function(){return _.m.apply(this,arguments)||this};
_.K(gA,_.m);gA.prototype.dataChanged=function(){this.active=!1};
gA.prototype.onTap=function(){_.xy(this.hostElement,"yt-select-emoji-suggestion",this.data)};
gA.prototype.identity=function(G){return G};
_.iY.Object.defineProperties(gA.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var G,e,r,Z;if((G=this.data)==null?0:(e=G.image)==null?0:(r=e.thumbnails)==null?0:(Z=r[0])==null?0:Z.url)return G=this.data.image.thumbnails[0].url,G.startsWith("data:image/svg+xml")?Cj(G):_.Fy(G)}}});
gA.prototype.dataChanged=gA.prototype.dataChanged;_.B([_.n(),_.x("design:type",Object)],gA.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],gA.prototype,"active",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gA.prototype,"dataChanged",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],gA.prototype,"imageSrc",null);
_.B([_.c({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],gA);
_.A(gA,"ytd-emoji-suggestion",function(){if(T4w!==void 0)return T4w;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return T4w=G},{mode:1});var DJl=/.*([:@#].*?)$/,lQ=function(){var G=_.m.apply(this,arguments)||this;G.suggestions=[];G.suggestionIndex=-1;G.JSC$15880_lastSuggestionRange=null;return G};
_.K(lQ,_.m);_.V=lQ.prototype;_.V.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.V.getSuggestions=function(G){var e=[],r=p$E(this.emojiManager,G.substr(0,3));if(r)for(var Z in r)if(Z.toLocaleLowerCase().indexOf(G)===0){var O=r[Z];if(O&&O.emojiId){O=z6(this.emojiManager,O.emojiId);var M=void 0,T=void 0,E=void 0,b=void 0,w=((M=O)==null?0:M.isCustomEmoji)?(T=O)==null?void 0:(E=T.shortcuts)==null?void 0:E[0]:(b=O)==null?void 0:b.emojiId;M=void 0;e.push({suggestion:{image:(M=O)==null?void 0:M.image,alt:w,text:Z}});if(e.length>=64)break}}return e?e.sort(function(q,t){return t.suggestion.text<
q.suggestion.text?-1:t.suggestion.text===q.suggestion.text?0:1}):null};
_.V.insertSuggestion=function(G){_.xy(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15880_lastSuggestionRange,text:G.alt});this.dropdown.opened=!1};
_.V.updateSuggestionsAtCaret=function(G){this.updateSuggestions(G,this.retrieveTextBeforeRange(G))};
_.V.offsetStartOfRangeBy=function(G,e){G.startOffset>=e&&G.setStart(G.startContainer,G.startOffset-e)};
_.V.updateSuggestions=function(G,e){var r=this;this.JSC$15880_lastSuggestionRange&&(this.JSC$15880_lastSuggestionRange.detach(),this.JSC$15880_lastSuggestionRange=null);if((e=DJl.exec(e))&&e.length&&(e=e[e.length-1].toLocaleLowerCase(),e.length>2||e===":_")&&(this.offsetStartOfRangeBy(G,e.length),this.JSC$15880_lastSuggestionRange=G,(G=this.getSuggestions(e))&&G.length)){this.suggestions=G;_.DE(this,function(){r.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(G.length-1);return}this.dropdown.opened=!1};
_.V.onKeyDown=function(G){if(this.dropdown.opened)switch(G.key){case "Escape":this.dropdown.opened=!1;G.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);G.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);G.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),G.preventDefault()}};
_.V.onKeyUp=function(G,e){switch(G.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(e);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(e)}};
_.V.onKeyPress=function(G){G.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),G.preventDefault())};
_.V.changeSuggestionIndex=function(G){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(G+this.suggestions.length)%this.suggestions.length,G=this.dropdownContent.children[this.suggestionIndex],G.active=!0,this.dropdownContent.scrollTop=G.offsetTop)};
_.V.retrieveTextBeforeRange=function(G){var e=G.startContainer;return e&&e.nodeType===Node.TEXT_NODE?e.textContent.substr(0,G.startOffset):""};
lQ.prototype.onKeyPress=lQ.prototype.onKeyPress;lQ.prototype.onKeyUp=lQ.prototype.onKeyUp;lQ.prototype.onKeyDown=lQ.prototype.onKeyDown;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],lQ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Array)],lQ.prototype,"suggestions",void 0);_.B([_.n(),_.x("design:type",_.Pk)],lQ.prototype,"emojiManager",void 0);_.B([_.n(),_.x("design:type",Number)],lQ.prototype,"verticalSuggestionsOffset",void 0);
_.B([_.hs("#dropdown"),_.x("design:type",Object)],lQ.prototype,"dropdown",void 0);_.B([_.hs("#dropdown-content"),_.x("design:type",HTMLDivElement)],lQ.prototype,"dropdownContent",void 0);_.B([_.Om("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],lQ.prototype,"onKeyDown",null);_.B([_.Om("keyup"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent,Range]),_.x("design:returntype")],lQ.prototype,"onKeyUp",null);
_.B([_.Om("keypress"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],lQ.prototype,"onKeyPress",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-emoji-input"})],lQ);
_.A(lQ,"ytd-emoji-input",function(){if(h8E!==void 0)return h8E;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return h8E=G},{mode:2});var EgC;var Rm=function(){var G=_.m.apply(this,arguments)||this;G.hasMaxOptions=!1;return G};
_.K(Rm,_.m);_.V=Rm.prototype;_.V.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.V.setPrefilledChoices=function(G){var e=this;this.set("pollOptions",[]);var r;for(r=0;r<Math.min(G.length,this.data.maxPollOptions);r++)this.push("pollOptions",G[r].substring(0,this.data.maxPollOptionChars));for(;r<this.data.minPollOptions;r++)this.push("pollOptions","");this.hasMaxOptions=r>=this.data.maxPollOptions;_.DE(this,function(){for(var Z=e.pollOptions,O=_.z1(e.hostElement).querySelectorAll(".poll-option-input"),M=0;M<O.length;M++)O[M].value=Z[M]})};
_.V.focusChanged=function(){_.eD(this.hostElement)};
_.V.onInput=function(){var G=this;_.sm(this,"onInput",function(){G.isValid()?_.xy(G.hostElement,"yt-commentbox-post-enable"):_.xy(G.hostElement,"yt-commentbox-post-disable")},300)};
_.V.setPollOptions=function(){var G=[],e,r=((e=this.data)==null?0:e.minPollOptions)?this.data.minPollOptions:0;for(e=0;e<r;e++)G.push("");return G};
_.V.addPollOption=function(){var G=this;_.xy(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.A0.addLowPriorityJob(function(){var e;(e=_.z1(G.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||e.focus()})};
_.V.onRemovePollOption=function(G){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.xy(this.hostElement,"yt-poll-attachment-dismiss")):(G=this.repeat.indexForElement(G.target.parentNode),G!==null&&(this.splice("pollOptions",G,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.xy(this.hostElement,"yt-commentbox-post-enable"))))};
_.V.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.V.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var G=0,e=this.pollOptions.length;G<e;G++)if(this.pollOptions[G].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.V.getPollOptions=function(){return this.pollOptions};
_.V.setPollOptionsFromInputs=function(){for(var G=_.z1(this.hostElement).querySelectorAll(".poll-option-input"),e=0;e<G.length;e++)this.pollOptions[e]=G[e].value.trim()};
_.V.clearPollOptions=function(){var G=_.z1(this.hostElement).querySelectorAll(".poll-option-input");G=_.h(G);for(var e=G.next();!e.done;e=G.next())e.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.V.getSimpleString=function(G){return _.mG(G)};
_.V.updateValueFromBinding=function(G){if(G.target&&this.pollOptions){var e=Array.from(_.z1(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(G.target);if(e>=0){var r;this.pollOptions[e]=(r=G.detail.value)!=null?r:"";this.notifyPath("pollOptions."+e)}}};
Rm.prototype.dataChanged=Rm.prototype.dataChanged;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Rm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Rm.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Array)],Rm.prototype,"pollOptions",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Rm.prototype,"hasMaxOptions",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Rm.prototype,"enableCreationBox",void 0);
_.B([_.hs("#repeat"),_.x("design:type",gv)],Rm.prototype,"repeat",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Rm.prototype,"dataChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-poll-attachment"})],Rm);
_.A(Rm,"ytd-poll-attachment",function(){if(EgC!==void 0)return EgC;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return EgC=G},{mode:2});var iD3;var bDW;var vgl;var wjE;var jb=function(){return _.m.apply(this,arguments)||this};
_.K(jb,_.m);_.iY.Object.defineProperties(jb.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],jb.prototype,"rendererBehaviors",void 0);_.B([_.n(),_.x("design:type",Object)],jb.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],jb.prototype,"focused",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("focused"),_.x("design:type",Object),_.x("design:paramtypes",[])],jb.prototype,"ariaSelected",null);_.B([_.aR({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],jb);
_.A(jb,"yt-user-mention-suggestion-renderer",function(){if(wjE===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;vgl===void 0&&(vgl=document.createElement("template"));var Z=vgl;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);wjE=G}G=wjE;return G},{mode:2});var $JS;var Syj;var am=function(){var G=_.m.apply(this,arguments)||this;G.focusedSuggestionIndex=-1;return G};
_.K(am,_.m);_.V=am.prototype;_.V.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.V.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.V.setFocusedSuggestionIndex=function(G){!this.data||!this.data.suggestions||G<0||G>=this.data.suggestions.length||(this.focusedSuggestionIndex=G,G=this.getSuggestionId(G),this._setFocusedSuggestionId(G))};
_.V.advanceSuggestion=function(G){this.focusedSuggestionIndex===-1||G!==-1&&G!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+G),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.V.ensureSuggestionVisible=function(G){G=this.getSuggestionId(G);G=_.z1(this.hostElement).querySelector("[id="+G+"]");G!=null&&(G.offsetTop<this.hostElement.scrollTop?G.scrollIntoView(!0):G.offsetTop+G.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&G.scrollIntoView(!1))};
_.V.getSuggestionId=function(G){return"user-mention-suggestion-"+G};
_.V.onSuggestionTap=function(G){var e=_.a(G.model.item,B9C);this.ytRendererBehavior.logExplicitClick(e);_.xy(this.hostElement,"yt-user-mention-suggestion-selected",{data:e,index:G.model.index})};
_.V.onSuggestionMouseMove=function(G){G.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(G.model.index)};
_.V.isSuggestionFocused=function(G,e){return G===e};
_.V.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.V.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eG("focused-suggestion-id-changed",this.focusedSuggestionId))};
am.prototype.focusedSuggestionIdChangedForBinding=am.prototype.focusedSuggestionIdChangedForBinding;am.prototype.onDomChange=am.prototype.onDomChange;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],am.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],am.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],am.prototype,"focusedSuggestionIndex",void 0);_.B([_.n({readOnly:!0}),_.x("design:type",String)],am.prototype,"focusedSuggestionId",void 0);
_.B([_.Om("dom-change"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],am.prototype,"onDomChange",null);_.B([_.Me("focusedSuggestionId"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],am.prototype,"focusedSuggestionIdChangedForBinding",null);_.B([_.aR({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],am);
_.A(am,"yt-user-mention-suggestions-dropdown",function(){if(Syj===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;$JS===void 0&&($JS=document.createElement("template"));var Z=$JS;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Syj=G}G=Syj;return G},{mode:2});var X2=function(){var G=_.m.apply(this,arguments)||this;G.suggestionsResponse=null;G.activeMention=null;G.selectionChangeListener=G.onSelectionChange.bind(G);G.handlesEnabled=_.R("enable_handles_in_mention_suggest_posts");G.handlesInMentionSuggestionsEnabled=_.R("handles_in_mention_suggest_posts");G.zeroPrefixMentionSuggestionEnabled=_.R("enable_zero_prefix_mention_suggestion_web");G.pendingQuery=null;G.flowNonce=null;return G};
_.K(X2,_.m);_.V=X2.prototype;_.V.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.V.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.V.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.V.hasSuggestions=function(G){return!!(G&&G.suggestions&&G.suggestions.length>0)};
_.V.onInput=function(){var G=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),r=this.activeMention.JSC$11352_getText().slice(-1)===" ",Z=this.activeMention.JSC$11352_getText().slice(-2,-1)===" ",O="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11352_getText().slice(-2,
-1))>=0;O=this.zeroPrefixMentionSuggestionEnabled&&O;if(this.activeMention.isCollapsed()||(e||Z||O)&&r)this.cancelActiveMention();else{var M=this.activeMention.JSC$11352_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.sm(this,"requestSuggestions",function(){G.requestSuggestions(M)},100)}}}};
_.V.onServiceRequestSent=function(G){G.stopPropagation()};
_.V.onServiceRequestCompleted=function(G){G.stopPropagation();G=G.detail.data;G.query&&(!this.pendingQuery||this.pendingQuery!==G.query)||!this.zeroPrefixMentionSuggestionEnabled&&G.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=G,this.hasSuggestions(G)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.V.onServiceRequestError=function(G){G.stopPropagation()};
_.V.onUserMentionSuggestionSelected=function(G){this.selectSuggestion(G.detail.data,G.detail.index)};
_.V.onSelectionChange=function(){if(this.activeMention){var G=_.z_(),e=this.activeMention.JSC$11352_containsRange(G);G=G&&this.containsHelper(this.dropdown,G.getContainer());e||G||this.cancelActiveMention()}};
_.V.containsHelper=function(G,e){var r;if(((r=window.ShadyDOM)==null?void 0:r.noPatch)===!0)return G.contains(e);for(;e;){if(e===G)return!0;e=e instanceof ShadowRoot?e.host:e.parentNode}return!1};
_.V.maybeStartSuggest=function(){var G=_.z_();if(G&&G.isCollapsed()){var e=G.JSC$11352_getStartNode(),r=G.JSC$11352_getStartOffset();if(e instanceof Text&&!(r<1)){var Z=e.textContent;!(Z=Z&&Z.charAt(r-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(Z)<0||(this.activeMention=_.YM(e,r-1,G.JSC$11352_getEndNode(),G.JSC$11352_getEndOffset()),this.flowNonce=SW(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.V.updateActiveMention=function(){if(this.activeMention){var G=_.z_();G&&G.isCollapsed()&&(this.activeMention=_.YM(this.activeMention.JSC$11352_getStartNode(),this.activeMention.JSC$11352_getStartOffset(),G.JSC$11352_getEndNode(),G.JSC$11352_getEndOffset()))}};
_.V.requestSuggestions=function(G){if(this.activeMention){var e={suggestions_query:G};this.pendingQuery=G;_.zw(this.hostElement,[this.suggestionsEndpoint,e])}};
_.V.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()};
_.V.focusPreviousSuggestion=function(G){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),G.preventDefault())};
_.V.focusNextSuggestion=function(G){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),G.preventDefault())};
_.V.selectFocusedSuggestion=function(G){if(this.hasSuggestions(this.suggestionsResponse)){var e=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.a(e,B9C)&&(this.selectSuggestion(_.a(e,B9C),this.dropdown.focusedSuggestionIndex),G.preventDefault())}};
_.V.selectSuggestion=function(G,e){if(G){var r=this.activeMention;if(r){var Z=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&G.handle?_.Ii(Z,"\u00a0\u2068@"+G.handle+"\u2069\u00a0"):this.handlesEnabled?_.Ii(Z,"\u00a0"+G.displayName+"\u00a0"):_.Ii(Z,"\u00a0@"+G.displayName+"\u00a0");Pw(Z,"/channel/"+G.channelId);Z.classList.add("yt-formatted-string","yt-simple-endpoint");Z.setAttribute("spellcheck","false");r.isCollapsed()||r.JSC$11352_removeContents();r.insertNode(Z,!0);G=document.createTextNode(" ");
Z.parentNode.insertBefore(G,Z.nextSibling);window.getSelection().collapse(G,1);e={suggestionSelected:{suggestionIndex:e}};if(this.zeroPrefixMentionSuggestionEnabled){var O;e.suggestionSelected.isZeroPrefix=((O=this.suggestionsResponse)==null?void 0:O.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",e);this.cancelActiveMention();_.xy(this.hostElement,"yt-mention-inserted")}}};
_.V.getPositionTarget=function(G){return G&&G.getBrowserRangeObject()};
_.V.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.V.onFocusedSuggestionIdChanged=function(G){var e=_.fnp(this.hostElement)[0];e&&(G.detail.value?e.setAttribute("aria-activedescendant",G.detail.value):e.removeAttribute("aria-activedescendant"))};
_.V.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.V.logGELEvent=function(G,e){G={eventType:G,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};e&&(G=Object.assign(G,e));_.cg("userMentionAutoCompleteBoxEvent",G)};
X2.prototype.onDomChange=X2.prototype.onDomChange;X2.prototype.onUserMentionSuggestionSelected=X2.prototype.onUserMentionSuggestionSelected;X2.prototype.onServiceRequestError=X2.prototype.onServiceRequestError;X2.prototype.onServiceRequestCompleted=X2.prototype.onServiceRequestCompleted;X2.prototype.onServiceRequestSent=X2.prototype.onServiceRequestSent;X2.prototype.onInput=X2.prototype.onInput;_.B([_.k(_.fS),_.x("design:type",Object)],X2.prototype,"ironA11yKeysBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],X2.prototype,"suggestionsEndpoint",void 0);_.B([_.n(),_.x("design:type",Object)],X2.prototype,"suggestionsResponse",void 0);_.B([_.n(),_.x("design:type",Object)],X2.prototype,"activeMention",void 0);_.B([_.hs("#dropdown"),_.x("design:type",Object)],X2.prototype,"dropdown",void 0);_.B([_.hs("#iron-dropdown"),_.x("design:type",Object)],X2.prototype,"ironDropdown",void 0);
_.B([_.Om("input"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],X2.prototype,"onInput",null);_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],X2.prototype,"onServiceRequestSent",null);_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],X2.prototype,"onServiceRequestCompleted",null);
_.B([_.Om("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],X2.prototype,"onServiceRequestError",null);_.B([_.Om("yt-user-mention-suggestion-selected"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],X2.prototype,"onUserMentionSuggestionSelected",null);
_.B([_.Om("dom-change"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],X2.prototype,"onDomChange",null);_.B([_.aR({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],X2);
_.A(X2,"yt-user-mention-autosuggest-input",function(){if(bDW===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;iD3===void 0&&(iD3=document.createElement("template"));var Z=iD3;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);bDW=G}G=bDW;return G},{mode:2});var KH=null;
_.ts({is:"ytd-commentbox",_template:function(){if(VQc!==void 0)return VQc;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return VQc=G},
behaviors:[_.O5f.YtHostElementBehavior,_.fS,_.gF.YtActionHandlerBehavior,_.F9.YtComponentBehavior,_.h4.YtRendererstamperBehavior,_.L4c.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(G,e){return _.e6(G.entities,"aadcGuidelinesStateEntityPayload",e)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(G,e){return _.e6(G.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 _.Wk}},
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:_.R("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.R("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",_.ZQ(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(G){this.fire(G?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(G){this.set("submitButtonDisabled",void 0);this.clear();G&&this.computeIsEmojiButtonDisplayed_(G)&&(G=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&G.updateEmojiCategories()},
observePrefilledImage_:function(G,e,r){this.isValidPrefilledImage_(G,e,r)&&(this.prefilledAttachment_="image",this.prefilledImageData_=e,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(G,e){this.isValidPrefilledVideo_(G,e)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(G){G&&G.pollData&&G.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(G.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Sk();this.focus()},
detached:function(){document.removeEventListener("tap",_.ZQ(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(G){G=G.detail;G=G.isCustomEmoji?G.shortcuts[0]:G.emojiId;var e=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(e,G);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var G=_.z_();if(G){G=G.getBrowserRangeObject();for(var e=G.commonAncestorContainer;e;){if(e===this.getEditableTextArea_())return G;e=e.parentNode}}G=this.getEditableTextArea_();G=_.cu(G,G.childNodes.length);G.select();return G.getBrowserRangeObject()},
insertTextWithEmojis_:function(G,e,r){(e=this.emojiManager.createDocumentFragment(e,!0,!1,r===void 0?!0:r))&&e.childNodes.length!==0&&(G.collapsed||G.deleteContents(),r=e.lastChild,G.insertNode(e),_.hPv(r).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var G=_.z_();if(G){var e=G.JSC$11352_getStartNode(),r=G.JSC$11352_getEndNode();if(vk_(e)&&vk_(r)){var Z=G.JSC$11352_getStartOffset(),O;if(_.GB&&e.nodeType===Node.ELEMENT_NODE&&(O=_.hGl(e)))_.cu(O,0).select();else{O=xb(e)?e:_.B2(e,xb);var M=xb(r)?r:_.B2(r,xb);if(O||M)if(G.isCollapsed()){if(e.nodeType===Node.TEXT_NODE){G=!0;Z===e.length&&(G=!1);if(KH==="end"||KH==="right")G=!1;e=e.parentNode;G=[].concat(_.mY(e.parentNode.childNodes)).indexOf(e)+(G?0:1);_.cu(e.parentNode,
G).select()}}else O?O.previousSibling&&O.previousSibling.length>0?_.YM(r,G.JSC$11352_getEndOffset(),O.previousSibling,O.previousSibling.length-1).select():(e=document.createTextNode("\u200b"),O.parentNode.insertBefore(e,O),_.YM(r,G.JSC$11352_getEndOffset(),e,0).select()):M&&(M.nextSibling&&M.nextSibling.length>0?_.YM(e,G.JSC$11352_getStartOffset(),M.nextSibling,1).select():(r=document.createTextNode("\u200b"),M.parentNode.insertBefore(r,M.nextSibling),_.YM(e,G.JSC$11352_getStartOffset(),r,r.length).select()));
KH=null}}else KH=null}else KH=null},
leftKeyPressed_:function(){KH="left"},
rightKeyPressed_:function(){KH="right"},
endKeyPressed_:function(){KH="end"},
maybeDeleteChip_:function(){var G=gka(!0);if(G){var e=_.z_(),r=e.JSC$11352_getStartNode();e=e.JSC$11352_getStartOffset();_.pV(r,e,G,G.childNodes.length).select()}},
maybeBackspaceChip_:function(){var G=gka(!1);if(G){var e=_.z_(),r=e.JSC$11352_getStartNode();e=e.JSC$11352_getStartOffset();_.pV(r,e,G,0).select()}},
maybeBackspaceChipWordMode_:function(G){var e=_.z_();if(e.isCollapsed()){var r=e.JSC$11352_getStartNode();e=e.JSC$11352_getStartOffset();var Z=l34(r,e,!0);Z&&(_.pV(r,e,Z,0).select(),document.execCommand("delete"),G.preventDefault(),G.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(G){var e=_.z_();if(e.isCollapsed()){var r=e.JSC$11352_getStartNode();e=e.JSC$11352_getStartOffset();var Z=l34(r,e,!1);Z&&(_.pV(r,e,Z,Z.childNodes.length).select(),document.execCommand("delete"),G.preventDefault(),G.stopImmediatePropagation())}},
onTap_:function(G){if(!G.defaultPrevented&&(G.currentTarget.tagName==="YTD-COMMENTBOX"&&xb(G.target)&&G.preventDefault(),this.isEmojiPickerDisplayed)){var e=this.$$("#emojis"),r=this.$$("#emoji-button"),Z=this.getEditableTextArea_();if((G=G.path?G.path:G.composedPath&&G.composedPath())&&!G.includes(e)&&!G.includes(Z)&&!G.includes(r))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(G,e,r){return G==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&e!==void 0&&e.encryptedBlobId!==null&&e.sourceExternalVideoId!==null&&r!==void 0&&r.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(G,e){return G==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!e&&!!e.videoRenderer&&!!e.videoRenderer.videoId},
isValidPrefilledAttachment_:function(G,e,r){return this.isValidPrefilledImage_(G,e,r)||this.isValidPrefilledVideo_(G,r)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.R("enable_multi_image_post_creation")){var G=this.$$("ytd-backstage-multi-image-select-renderer");G&&G.hasImages()&&G.cancel()}else(G=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&G.cancel();(G=this.$["poll-attachment"])&&this.hasPoll_&&G.clearPollOptions();(G=this.$["image-poll-attachment"])&&this.hasImagePoll_&&G.resetPollOptions();(G=this.$["quiz-attachment"])&&this.hasQuiz_&&G.resetQuizOptions();
(G=this.$["video-link-attachment"])&&this.hasVideo_&&G.cancel();(G=this.$["access-restrictions-selector"].firstElementChild)&&G.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 _.z1(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.z1(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(G,e){G=$Hf(G,this.emojiManager,e).cloneNode(!0);for(e=G.firstChild;e;)if(e.nodeType!==1)e=e.nextSibling;else switch(e.tagName){case "BR":var r=_.kS();_.$Kw(r,e);e=r.nextSibling;break;case "DIV":(r=e.lastChild)&&e.nextSibling&&_.sg(_.kS(),r);e.previousSibling&&(e.previousSibling.nodeType===1||e.previousSibling.nodeType===3&&!e.previousSibling.textContent.endsWith("\n"))&&_.oi(_.kS(),e);r&&r.nodeName==="BR"&&_.d1(r);r=e;e.hasChildNodes()?(e=e.firstChild,
_.Swn(r)):(e=e.nextSibling,_.d1(r));break;default:e=e.nextSibling}return R0U(G)},
onAddImageError_:function(G){G.stopPropagation();this.errorMessage_=_.nQ(G.detail)},
setTextAreaValue_:function(G){G||(G="");var e=this.getEditableFormattedString_();e.text="";this.getEditableTextArea_().innerText="";typeof G==="string"&&(G={runs:[{text:G}]});e.text=G},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();KH=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var G=this.getEditableTextArea_();G&&(_.cu(G,G.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.xZ("HTML_DIR")==="rtl"){var G=this.getEditableTextArea_(),e=this.getTextAreaValue()!==""?"auto":"rtl";G.setAttribute("dir",e)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var G;return G8N((G=this.$["quiz-attachment"])==null?void 0:G.getExplanationText())||G8N(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var G=null;if(this.isEmojiButtonDisplayed){var e=this.getInputRange_();e&&(G=this.emojiInput.retrieveTextBeforeRange(e))}this.insertText_(G,!0);this.updateCharCount_();this.setSubmitButton_();G=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=G.scrollHeight>G.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var G=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:G})},
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(G){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(G)},
onPasteEmoji_:function(G){G.preventDefault();G.stopImmediatePropagation();G=G.clipboardData.getData("text/plain");this.insertText_(G,!1,!1)},
insertText_:function(G,e,r){e=e===void 0?!1:e;r=r===void 0?!0:r;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&G){var Z=this.getInputRange_().cloneRange();this.emojiManager&&Z&&(e&&this.emojiInput.offsetStartOfRangeBy(Z,G.length),this.insertTextWithEmojis_(Z,G,r),w3U(this.getEditableTextArea_().lastChild)||(Z=this.getInputRange_().cloneRange()),Z&&(this.emojiInput.updateSuggestions(Z,G),this.updateSuggestionOffset_(Z)))}},
setSubmitButton_:function(){if(this.data){var G=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(G||e){var r=this.getTextAreaValue().trim();e=r===this.previousText_;r=!r||this.aboveCharLimit_;G&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(r=this.aboveCharLimit_);this.submitButtonDisabled=
e||r||!this.getTextLength();G&&_.R("enable_post_scheduling")&&(this.submitButtonDisabled=e&&!this.scheduledPublishTimeSec_||r)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.mG,computeCreationBoxClass_:function(G){return G?"focused":"not-focused"},
computeFooterMessageClass_:function(G,e){return e?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(G,e){return e?e:G},
computeFooterMessageHidden_:function(G,e){return!e&&!G},
computePlaceholderText_:function(G,e,r){return(r==="video"||r==="image")&&(G==null?0:G.prefilledPlaceholderText)?G==null?void 0:G.prefilledPlaceholderText:e==="poll"||e==="image-poll"?G==null?void 0:G.pollPostPlaceholderText:e==="quiz"?G==null?void 0:G.quizPostPlaceholderText:e==="image"?G==null?void 0:G.imagePostPlaceholderText:G==null?void 0:G.placeholderText},
computeHideAttachmentButtons_:function(G,e,r,Z){return G===void 0?!1:Z&&this.getSimpleString(Z)===this.getSimpleString(G.rateLimitErrorMessage)?!0:e!=="none"||r!=="none"||!G.videoLinkButton&&!G.pollButton&&!G.imagePollButton&&!G.quizButton&&!G.imageButton},
computeHideDismissableAttachment_:function(G){return G!=="image"&&G!=="video"},
computeHasVideo_:function(G){return G==="video"},
computeHasImage_:function(G){return G==="image"},
computeHasPoll_:function(G){return G==="poll"},
computeHasImagePoll_:function(G){return G==="image-poll"},
computeHasQuiz_:function(G){return G==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(G){return G&&G.backstageAttachment?G.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!G.backstageAttachment.quizRenderer&&!G.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(G){if(this.isValidPrefilledAttachment_(G.purpose,G.prefilledImageData,G.backstageAttachment))return G.backstageAttachment},
computeEditAttachment_:function(G){if(this.computePrefilledContent_(G)===void 0)return G.backstageAttachment},
computeAuthorThumbnailDimension_:function(G,e){return G&&!e?24:40},
computeImageUploadEndpoint_:function(G){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",G)},
computeRateLimitErrorCommands_:function(G){var e,r;return G==null?void 0:(e=G.advancedTierFeatures)==null?void 0:(r=e.rateLimit)==null?void 0:r.rateLimitCommands},
computeIsBackstageComment_:function(G){return!(!G||G!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(G){return this.get("submitButton.buttonRenderer.serviceEndpoint",G)||this.get("replyButton.buttonRenderer.serviceEndpoint",G)||this.get("postButton.buttonRenderer.serviceEndpoint",G)},
computeSubmitButtonOverride:function(){if(_.R("web_modern_buttons")){var G,e;return{segmentedPosition:this.dropdownSchedulePanel_||!((G=this.data)==null?0:(e=G.postOptionsMenu)==null?0:e.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.R("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(G,e){G=this.get("submitButton.buttonRenderer",G)||this.get("replyButton.buttonRenderer",G)||this.get("postButton.buttonRenderer",G);e&&(G=e);G&&(G=Object.assign({},G),G.serviceEndpoint=void 0,G.isDisabled=this.submitButtonDisabled);return G},
computeHasExternalLinksAccess_:function(G){if(_.R("enable_rfa_external_links")){var e,r,Z;return(Z=G==null?void 0:(e=G.advancedTierFeatures)==null?void 0:(r=e.externalLinks)==null?void 0:r.allowExternalLinks)!=null?Z:!0}return!0},
computeIsEmojiButtonDisplayed_:function(G){return G.emojiButton&&G.emojiPicker&&G.emojiPicker.emojiPickerRenderer&&G.emojiPicker.emojiPickerRenderer.categories?G.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(G){return G.charLimit?G.charLimit:null},
computeDropdownSchedulingPanel_:function(G,e){if(G==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&e)return e},
computeInlineSchedulingPanel_:function(G,e){if(G==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&e)return e},
computeHideAuthorThumbnail_:function(G,e){return G||this.computeUseIdentityChip_(e)},
computeHideIdentityChipRenderer_:function(G,e){return G||!this.computeUseIdentityChip_(e)},
computeUseIdentityChip_:function(G){return!!G&&!!G.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(G){var e,r,Z,O;(G==null?0:(e=G.detail)==null?0:(r=e.endpoint)==null?0:r.ypcGetOffersEndpoint)||(G==null?0:(Z=G.detail)==null?0:(O=Z.endpoint)==null?0:O.ypcOffersEndpoint)?(G.stopPropagation(),_.zw(this,[G.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",G)&&(G.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(G){this.addedAttachment="video";this.selectedVideoId_=G.detail.videoId},
commentboxStateEntityChanged_:function(G){var e=this;(G==null?void 0:G.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(G==null?void 0:G.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){e.focus()})},
onYtServiceRequestSent_:function(G,e){if(e.actions)for(G=_.h(e.actions),e=G.next();!e.done;e=G.next())e.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(G){this.isLoading=!1;var e=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",G),r,Z,O,M=G==null?void 0:(r=G.detail)==null?void 0:(Z=r.data)==null?void 0:(O=Z.actionResult)==null?void 0:O.commentboxStateEntityKey;if(e)this.errorMessage_=e;else if(M){var T;this.dismissData_=G==null?void 0:(T=G.detail)==null?void 0:T.data;this.commentboxStateKey_=M}else{this.clear();var E;this.fire("yt-commentbox-dismiss",G==null?void 0:(E=G.detail)==
null?void 0:E.data)}},
onYtServiceRequestError_:function(G){G.stopPropagation();this.isLoading=!1;var e,r;if(((e=this.data)==null?void 0:e.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((r=this.data)==null?void 0:r.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(e=this.get("detail.error.args",G)||[],e.length>1&&e[1].message){this.handlePostsServiceRequestError_(e[1].message);return}(G=this.get("detail.error.message",G))?this.errorMessage_=this.data.errorMessage||_.nQ(G):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(G){if(_.R("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var e=_.h(this.rateLimitErrorCommands),r=e.next();!r.done;r=e.next())if(r=r.value,r.errorLabel===G){_.es(r.command,this.hostElement);return}this.errorMessage_=_.nQ(G)},
submitIfNotBackstagePost_:function(G){if(!this.isBackstagePost)this.onSubmit_(G)},
onSubmit_:function(G){var e=this,r,Z,O,M,T,E,b,w,q,t,g,l,X,H,I;return _.D(function(C){switch(C.nextAddress){case 1:G.stopPropagation();if(!e.serviceEndpoint||!e.isValidInput_())return C.return();if(e.shouldShowPostAadcNotice_())return e.showPostAadcNotice_(),C.return();if(e.shouldShowCommentAadcNotice_())return e.showCommentAadcNotice_(),C.return();if(!(e.$$("ytd-backstage-multi-image-select-renderer")&&e.hasImage_&&_.R("enable_multi_image_post_creation"))){C.jumpTo(2);break}r=e.$$("ytd-backstage-multi-image-select-renderer");
return C.yield(r.getAllUploadStatuses(),3);case 3:Z=C.yieldResult;if(!Z)return C.return();O=_.h(Z);for(M=O.next();!M.done;M=O.next())if(T=M.value,T.encryptedBlobId===void 0)return e.isLoading=!1,b=E=void 0,e.errorMessage_=(b=(E=e.imageUploadEndpoint_)==null?void 0:E.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?b:null,C.return();return C.return(e.submitForm_(void 0,void 0,void 0,void 0,r.images,e.taggedVideoId_));case 2:if(!e.hasImagePoll_||!e.$["image-poll-attachment"]){C.jumpTo(4);
break}return C.yield(e.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:w=C.yieldResult;if(!w)return C.return();q=_.h(w);for(t=q.next();!t.done;t=q.next())if(g=t.value,!g.encryptedBlobId)return e.isLoading=!1,l=void 0,e.errorMessage_=(l=e.data.errorMessage)!=null?l:null,C.return();case 4:H=(X=e.$$("ytd-backstage-image-select-renderer"))&&X.uploadPromise(),I=e.getSharedPostId_(),H?H.then(function(){e.submitForm_.apply(e,_.mY(_.Bw.apply(0,arguments)))}).catch(function(u){e.isLoading=!1;
e.errorMessage_=_.nQ(u.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):I?e.submitForm_(void 0,void 0,I):e.taggedVideoId_!==void 0?e.submitForm_(void 0,void 0,void 0,void 0,void 0,e.taggedVideoId_):e.submitForm_(),
_.HL(C)}})},
openSchedulingPanel:function(G){G&&G.scheduleButton&&G.scheduleButton.buttonRenderer&&(this.scheduleButton_=G.scheduleButton.buttonRenderer);G&&G.dateTimePicker&&this.set("data.schedulingDateTimePicker",G.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(G){G.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(G){G.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(G){G.stopPropagation();G.detail.alertMessage&&(this.alertMessage_=G.detail.alertMessage)},
onImageSelected_:function(G){G.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(G){G.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(G){G.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(G.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(G){G.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(G){var e=this.$["video-link-attachment"];e&&e.onLaunchVideoPicker(G)},
onAttachmentDismiss_:function(G){G.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"&&_.R("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.R("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 G;if(this.addedAttachment==="image-poll"&&((G=this.$["image-poll-attachment"])==null||!G.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;G=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(G=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")G=!0;return G||!!this.getTextAreaValue().trim()},
submitForm_:function(G,e,r,Z,O,M){var T=this.getTextAreaValue().trim(),E={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&T===this.previousText_&&(T=void 0);T!==void 0&&(E.comment_text=T);this.isLoading=!0;M!=void 0&&(E.tagged_video_id=M);G?(E.image_blob_id=G,this.imagePreviewCoordinates_&&(E.image_preview_coordinates=this.imagePreviewCoordinates_)):e?E.attached_video_id=e:r?E.shared_post_id=r:O&&O.length>0&&(E.images_data=O.map(function(b){return{encryptedBlobId:b.encryptedBlobId,
previewCoordinates:b.previewCoordinates}}));
Z&&(E.source_video_id=Z);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(E.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(E.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(E.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.R("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(E.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.R("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(E.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.zw(this,[this.serviceEndpoint,E])},
onIsInputFocusChanged_:function(G,e){G?this.fire("yt-autonav-pause-focus"):e!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(G){var e=this.getEditableTextArea_();[].concat(_.mY(G.dataTransfer.items)).forEach(function(r){r.kind==="string"&&r.type.match("^text/plain")&&r.getAsString(function(Z){e.appendChild(document.createTextNode(Z))})});
G.preventDefault()},
preventDefault_:function(G){G.preventDefault()},
onSuggestionInsert_:function(G){this.insertTextWithEmojis_(G.detail.range,G.detail.text)},
onEmojiSuggestionClick_:function(G){this.emojiInput.insertSuggestion(G.detail)},
computeSubmitButtonClass_:function(G,e){return!e||G?"":"with-options"},
updateSuggestionOffset_:function(G){if(this.emojiInput&&_.z1(this.emojiInput).querySelector("#dropdown")){var e=this.getEditableTextArea_().getBoundingClientRect().bottom,r=G.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(e-r)+5;e=this.getEditableTextArea_().getBoundingClientRect().left;G=G.getBoundingClientRect().left-e;_.z1(this.emojiInput).querySelector("#dropdown").style.marginLeft=G+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(G){if(_.R("enable_post_scheduling")&&this.data&&this.data.purpose){G=G.detail;if(Math.floor(Date.now()/1E3)>=G)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!==G?this.scheduledPublishTimeSec_=G:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=G;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var G=["image-button","image-poll-button","poll-button"];_.R("enable_quiz_creation")&&G.push("quiz-button");_.R("auto_convert_posts_video_tag")||G.push("video-link-button");return G},
getButtonRenderer:function(G,e){if(G)switch(e){case "video-link-button":var r;return((r=G.videoLinkButton)==null?void 0:r.buttonRenderer)||void 0;case "image-button":var Z;return((Z=G.imageButton)==null?void 0:Z.buttonRenderer)||void 0;case "poll-button":var O;return((O=G.pollButton)==null?void 0:O.buttonRenderer)||void 0;case "image-poll-button":var M;return((M=G.imagePollButton)==null?void 0:M.buttonRenderer)||void 0;case "quiz-button":var T;return((T=G.quizButton)==null?void 0:T.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var G;return(G=this.data)==null||!G.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var G,e;return!((G=this.data)==null||!G.openAadcDialog)&&!((e=this.aadcGuidelinesState_)==null||!e.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.xZ("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var G;((G=this.data)==null?0:G.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.PG("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(G){G.clickTrackingParams&&_.h_().clickCommand(G);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.Pi(this,"yt-close-popup-action")},
onHideIdentityChip:function(G){var e;this.set("data.placeholderText",(e=G.hideIdentityChipAction)==null?void 0:e.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var fH=function(){var G=_.m.apply(this,arguments)||this;G.isOpen=!1;G.modern=_.R("web_modern_buttons");G.roundedContainer=!0;G.dropdownButtonOverride=_.R("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;G.inPopupContainer=!1;G.isCommentboxLoading=!1;var e=["image-button","image-poll-button","poll-button"];_.R("enable_quiz_creation")&&e.push("quiz-button");_.R("auto_convert_posts_video_tag")||e.push("video-link-button");G.attachmentButtonIds=e;G.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 G};
_.K(fH,_.m);_.V=fH.prototype;_.V.computeButtonOverride=function(){var G;return((G=this.data)==null?0:G.postOptionsMenu)&&_.R("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.V.configureRendererStamper=function(){var G={"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]]"}}}}};_.R("auto_convert_posts_video_tag")||(G["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return G};
_.V.ready=function(){var G=this,e=_.z1(this.hostElement).querySelector("#placeholder-area"),r=function(Z){G.onOpen(Z)};
e.addEventListener("tap",r);e.addEventListener("keypress",r)};
_.V.showButtonEduTooltip=function(){var G,e,r,Z,O,M,T;if(_.R("enable_quiz_creation")&&((G=this.data)==null?0:(e=G.quizButton)==null?0:(r=e.buttonRenderer)==null?0:(Z=r.hint)==null?0:(O=Z.hintRenderer)==null?0:(M=O.content)==null?0:(T=M.bubbleHintRenderer)==null?0:T.text)&&(_.lr.getInstance(),G=RT(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(G==null?void 0:
G.length)>0)){this.ytComponentBehavior.resolveCommand(G[0],{form:{element:this.quizButton}});return}var E;if((E=this.data)==null?0:E.imagePollButtonTooltip)if(_.lr.getInstance(),E=RT(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(E==null?void 0:E.length)>0){this.ytComponentBehavior.resolveCommand(E[0],{form:{element:this.imagePollButton}});return}var b;_.R("enable_multi_image_post_creation")&&
((b=this.data)==null?0:b.multiImageButtonTooltip)&&(_.lr.getInstance(),b=RT(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(b==null?void 0:b.length)>0&&this.ytComponentBehavior.resolveCommand(b[0],{form:{element:this.imageButton}}))};
_.V.onCreatePollAction=function(G){_.a(G,wuy)&&(this.JSC$15935_commentbox.addedAttachment="poll",this.openDialog())};
_.V.onAddVideoLinkAction=function(G){if(_.a(G,EME))this.JSC$15935_commentbox.onAddVideoLink(G)};
_.V.onShowSchedulingPanelCommand=function(G){(G=_.a(G,mpv))&&this.openSchedulingPanel(G)};
_.V.onCreateImagePollCommand=function(G){_.a(G,mGc)&&(this.JSC$15935_commentbox.openImagePollComponent(),this.openDialog())};
_.V.onCreateQuizCommand=function(G){_.a(G,c4E)&&(this.JSC$15935_commentbox.openQuizComponent(),this.openDialog())};
_.V.openSchedulingPanel=function(G){_.R("enable_post_scheduling")&&(this.openDialog(),this.JSC$15935_commentbox.openSchedulingPanel(G))};
_.V.onCreateCommentAction=function(G){this.get("createCommentAction.contents",G)&&(this.JSC$15935_commentbox.clear(),this.closeDialog())};
_.V.onOpen=function(G){G instanceof KeyboardEvent&&G.type==="keypress"&&G.keyCode!==13&&G.keyCode!==32||(this.data.prepareAccountEndpoint?_.xy(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.V.onYtCommentboxDismiss=function(){this.closeDialog()};
_.V.onYtCommentboxLoadingStart=function(G){G.stopPropagation();this.isCommentboxLoading=!0};
_.V.onYtCommentboxLoadingEnd=function(G){G.stopPropagation();this.isCommentboxLoading=!1};
_.V.onYtVideoLinkButtonCancel=function(G){G.stopPropagation();this.onOpen(G)};
_.V.onYtVideoLinkSelected=function(G){G.stopPropagation();this.onOpen(G)};
_.V.onIronSelect=function(G){G.stopPropagation();G.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=G.detail.item.value&&(this.accessRestriction?(this.accessRestriction=G.detail.item.value,this.onOpen(G)):this.accessRestriction=G.detail.item.value)};
_.V.onYtNavigate=function(G){this.get("detail.endpoint.backstageImageUploadEndpoint",G)&&(this.JSC$15935_commentbox.addedAttachment="image",this.JSC$15935_commentbox.submitButtonDisabled=!0,this.onOpen(G))};
_.V.onRequestSent=function(G){for(var e=_.h(G.detail),r=e.next();!r.done;r=e.next())_.a(r.value,WF3)&&(this.JSC$15935_commentbox.addedAttachment="image",this.JSC$15935_commentbox.submitButtonDisabled=!0,this.onOpen(G))};
_.V.openDialog=function(){var G;(G=this.data)!=null&&G.isIneligibleForCommunityPagePostCreation||(this.JSC$15935_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$15935_commentbox.focus())};
_.V.onPopupClosed=function(){_.lr.getInstance()};
_.V.computeCreationDisabled=function(G){return!!G};
_.V.computeIsCreationDialog=function(G){return!!G&&G==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.V.computeDisabledPostButton=function(G){if(!G)return null;G.isDisabled=!0;return G};
_.V.computeIsCreationDialogWithHeader=function(G){return!this.inPopupContainer&&!!G&&!!G.authorText&&G.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.V.computeIsHeaderHidden=function(G,e){return!G||e};
_.V.computeDropdownRendererClasses=function(G){return G?["text-secondary-style"]:[]};
_.V.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var G=_.z1(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;G&&G.reset()};
fH.prototype.onPopupClosed=fH.prototype.onPopupClosed;fH.prototype.onRequestSent=fH.prototype.onRequestSent;fH.prototype.onYtNavigate=fH.prototype.onYtNavigate;fH.prototype.onIronSelect=fH.prototype.onIronSelect;fH.prototype.onYtVideoLinkSelected=fH.prototype.onYtVideoLinkSelected;fH.prototype.onYtVideoLinkButtonCancel=fH.prototype.onYtVideoLinkButtonCancel;fH.prototype.onYtCommentboxLoadingEnd=fH.prototype.onYtCommentboxLoadingEnd;fH.prototype.onYtCommentboxLoadingStart=fH.prototype.onYtCommentboxLoadingStart;
fH.prototype.onYtCommentboxDismiss=fH.prototype.onYtCommentboxDismiss;fH.prototype.showButtonEduTooltip=fH.prototype.showButtonEduTooltip;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],fH.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],fH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],fH.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],fH.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],fH.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],fH.prototype,"isOpen",void 0);_.B([_.n({computed:"computeButtonOverride(data)"}),_.x("design:type",Object)],fH.prototype,"buttonOverride",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],fH.prototype,"modern",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],fH.prototype,"roundedContainer",void 0);_.B([_.n(),_.x("design:type",Object)],fH.prototype,"dropdownButtonOverride",void 0);_.B([_.n({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.x("design:type",Boolean)],fH.prototype,"creationDisabled",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],fH.prototype,"enableCreationBox",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.x("design:type",Boolean)],fH.prototype,"isCreationDialog",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],fH.prototype,"inPopupContainer",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.x("design:type",Boolean)],fH.prototype,"isCreationDialogWithHeader",void 0);_.B([_.n(),_.x("design:type",Object)],fH.prototype,"accessRestriction",void 0);
_.B([_.n({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.x("design:type",Array)],fH.prototype,"dropdownRendererClasses",void 0);_.B([_.n(),_.x("design:type",Object)],fH.prototype,"isCommentboxLoading",void 0);_.B([_.n(),_.x("design:type",Array)],fH.prototype,"attachmentButtonIds",void 0);_.B([_.hs("#image-button"),_.x("design:type",HTMLElement)],fH.prototype,"imageButton",void 0);
_.B([_.hs("#image-poll-button"),_.x("design:type",HTMLElement)],fH.prototype,"imagePollButton",void 0);_.B([_.hs("#quiz-button"),_.x("design:type",HTMLElement)],fH.prototype,"quizButton",void 0);_.B([_.hs("#commentbox"),_.x("design:type",Object)],fH.prototype,"JSC$15935_commentbox",void 0);_.B([_.Me("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fH.prototype,"showButtonEduTooltip",null);
_.B([_.Om("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],fH.prototype,"onYtCommentboxDismiss",null);_.B([_.Om("yt-commentbox-loading-start"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],fH.prototype,"onYtCommentboxLoadingStart",null);
_.B([_.Om("yt-commentbox-loading-end"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],fH.prototype,"onYtCommentboxLoadingEnd",null);_.B([_.Om("yt-video-link-button-cancel"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],fH.prototype,"onYtVideoLinkButtonCancel",null);
_.B([_.Om("yt-video-link-selected"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],fH.prototype,"onYtVideoLinkSelected",null);_.B([_.Om("iron-select"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],fH.prototype,"onIronSelect",null);_.B([_.Om("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],fH.prototype,"onYtNavigate",null);
_.B([_.Om("yt-service-request-sent-button-renderer"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],fH.prototype,"onRequestSent",null);_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fH.prototype,"onPopupClosed",null);_.B([_.c({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],fH);
_.A(fH,"ytd-backstage-post-dialog-renderer",function(){if(m5v!==void 0)return m5v;var G=document.createElement("template");_.f(G,'\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"></yt-formatted-string>\n    <div class="visibility-container style-scope ytd-backstage-post-dialog-renderer" hidden="[[data.isIneligibleForCommunityPagePostCreation]]">\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>\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]]" hidden="[[data.isIneligibleForCommunityPagePostCreation]]" 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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return m5v=G},{mode:1});var qyv;var tQS;var kX=function(){return _.m.apply(this,arguments)||this};
_.K(kX,_.m);_.V=kX.prototype;_.V.computeHeartButtonStyle=function(G){return(G==null?0:G.styleType)?G.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.V.onYtButtonTap=function(){if(this.data.isEnabled){var G=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(G=this.getEndpoint(G))&&_.v_().resolve(_.$1).resolveCommand(G,{form:{element:this.hostElement}})}else(G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(G)};
_.V.toggle=function(G){this.set("data.isHearted",G!==void 0?G:!this.data.isHearted)};
_.V.getEndpoint=function(G){var e,r=(e=this.data)==null?void 0:e.heartEndpoint,Z;e=(Z=this.data)==null?void 0:Z.unheartEndpoint;if(r&&e)return G?e:r};
_.V.computeButtonAccessibility=function(G,e){var r,Z,O=G==null?void 0:(r=G.heartedAccessibility)==null?void 0:(Z=r.accessibilityData)==null?void 0:Z.label,M,T;G=G==null?void 0:(M=G.unheartedAccessibility)==null?void 0:(T=M.accessibilityData)==null?void 0:T.label;return e?O:G};
_.iY.Object.defineProperties(kX.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 G;return _.R("kevlar_system_icons")&&!((G=this.data)==null||!G.isHearted)}}});
kX.prototype.onYtButtonTap=kX.prototype.onYtButtonTap;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],kX.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h5),_.x("design:type",Object)],kX.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],kX.prototype,"data",void 0);_.B([_.d("data.isHearted"),_.x("design:type",Object),_.x("design:paramtypes",[])],kX.prototype,"heartTooltip",null);
_.B([_.d("data.isHearted"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kX.prototype,"iconFilled",null);_.B([_.n({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.x("design:type",String)],kX.prototype,"buttonAccessibility",void 0);_.B([_.n({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.x("design:type",String)],kX.prototype,"heartButtonStyle",void 0);
_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kX.prototype,"onYtButtonTap",null);_.B([_.c({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],kX);
_.A(kX,"ytd-creator-heart-renderer",function(){if(tQS!==void 0)return tQS;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return tQS=G},{mode:1});var Hr=function(){var G=_.m.apply(this,arguments)||this;G.hasCreatorReply=!1;G.buttonOverrides={size:"S",iconPosition:"icon-only"};G.replyButtonOverrides={size:"S",type:"text"};G.forceIconButton=!_.R("web_modern_buttons");G.modern=_.R("web_modern_buttons");G.buttonTooltipPosition="bottom";G.systemIcons=_.R("kevlar_system_icons");G.replyDialog=null;return G};
_.K(Hr,_.m);_.V=Hr.prototype;
_.V.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]]"}}}}}};
_.V.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.V.dataChange=function(){this.replyDialog&&_.z1(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var G,e,r;this.isLiked=this.systemIcons&&!!((G=this.data)==null?0:(e=G.likeButton)==null?0:(r=e.toggleButtonRenderer)==null?0:r.isToggled)};
_.V.computeShowVoteCountBeginning=function(G,e){return G===void 0||e===void 0?!0:G.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!e&&this.ytRendererBehavior.getSimpleString(e)!=="0"};
_.V.computeShowVoteCountEnd=function(G,e){return G===void 0||e===void 0?!0:G.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!e&&this.ytRendererBehavior.getSimpleString(e)!=="0"};
_.V.computeShowCommentCount=function(G,e){return G===void 0||e===void 0?!0:G.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!e&&this.ytRendererBehavior.getSimpleString(e)!=="0"};
_.V.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.V.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.V.showReplyDialog=function(G){G&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.z1(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=G,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.V.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.V.onRequestSent=function(G){G=_.h(G.detail);for(var e=G.next();!e.done;e=G.next())(e=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",e.value))&&this.showReplyDialog(e)};
_.V.onYtNavigate=function(G){var e,r;(G=(e=_.a(G.detail.endpoint,_.LFW))==null?void 0:(r=e.dialog)==null?void 0:r.commentReplyDialogRenderer)&&this.showReplyDialog(G)};
_.V.onYtServiceRequestSent=function(G,e){G.stopPropagation();if(e.actions)for(G=0;G<e.actions.length;G++){var r=_.a(e.actions[G],lic);r&&this.handleUpdateCommentVoteAction(r)}};
_.V.handleUpdateCommentVoteAction=function(G){this.voteCount=G.voteCount||_.nQ("0");G.voteStatus==="LIKE"?this.JSC$15947_ytdDislikeToggleButtonRenderer.toggle(!1):G.voteStatus==="DISLIKE"?this.JSC$15947_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15947_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15947_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.V.computeReplyButtonHidden=function(G){return G};
_.V.computeReplyButtonBeginning=function(G){return(G==null?0:G.replyButton)&&G.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?G.replyButton:void 0};
_.V.computeReplyButtonEnd=function(G){return(G==null?0:G.replyButton)&&G.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?G.replyButton:void 0};
_.V.computeActionButtonStyle=function(G){return(G==null?0:G.style)?G.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.V.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.V.onYtToggleButton=function(G){var e,r;this.isLiked=this.systemIcons&&!!((e=G.detail)==null?0:(r=e.actions)==null?0:r.like)};
Hr.prototype.onYtToggleButton=Hr.prototype.onYtToggleButton;Hr.prototype.onButtonTooltipPositionChanged=Hr.prototype.onButtonTooltipPositionChanged;Hr.prototype.onYtServiceRequestSent=Hr.prototype.onYtServiceRequestSent;Hr.prototype.onYtNavigate=Hr.prototype.onYtNavigate;Hr.prototype.onRequestSent=Hr.prototype.onRequestSent;Hr.prototype.onYtCommentboxDismiss=Hr.prototype.onYtCommentboxDismiss;Hr.prototype.dataChange=Hr.prototype.dataChange;
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Hr.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Hr.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Hr.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],Hr.prototype,"voteCount",void 0);_.B([_.n(),_.x("design:type",Object)],Hr.prototype,"commentCount",void 0);_.B([_.n(),_.x("design:type",Object)],Hr.prototype,"replyThumbnail",void 0);
_.B([_.n(),_.x("design:type",Object)],Hr.prototype,"hasCreatorReply",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Hr.prototype,"enableCreationBox",void 0);_.B([_.n({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.x("design:type",String)],Hr.prototype,"actionButtonsStyle",void 0);_.B([_.n({computed:"computeReplyButtonBeginning(data)"}),_.x("design:type",Object)],Hr.prototype,"replyButtonBeginning",void 0);
_.B([_.n({computed:"computeReplyButtonEnd(data)"}),_.x("design:type",Object)],Hr.prototype,"replyButtonEnd",void 0);_.B([_.n(),_.x("design:type",Object)],Hr.prototype,"buttonOverrides",void 0);_.B([_.n(),_.x("design:type",Object)],Hr.prototype,"replyButtonOverrides",void 0);_.B([_.n(),_.x("design:type",Object)],Hr.prototype,"forceIconButton",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Hr.prototype,"useCommentIcon",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Hr.prototype,"modern",void 0);_.B([_.n(),_.x("design:type",Object)],Hr.prototype,"buttonTooltipPosition",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Hr.prototype,"systemIcons",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Hr.prototype,"isLiked",void 0);_.B([_.hs("ytd-button-renderer"),_.x("design:type",Object)],Hr.prototype,"ytdReplyButtonRenderer",void 0);
_.B([_.hs("#like-button"),_.x("design:type",Object)],Hr.prototype,"JSC$15947_ytdLikeToggleButtonRenderer",void 0);_.B([_.hs("#dislike-button"),_.x("design:type",Object)],Hr.prototype,"JSC$15947_ytdDislikeToggleButtonRenderer",void 0);_.B([_.hs("#reply-dialog"),_.x("design:type",HTMLElement)],Hr.prototype,"replyDialogElement",void 0);_.B([_.hs("#reply-button"),_.x("design:type",HTMLElement)],Hr.prototype,"replyButtonElement",void 0);
_.B([_.hs("#reply-button-end"),_.x("design:type",HTMLElement)],Hr.prototype,"replyButtonEndElement",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hr.prototype,"dataChange",null);_.B([_.Om("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Hr.prototype,"onYtCommentboxDismiss",null);
_.B([_.Om("yt-service-request-sent-button-renderer"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Hr.prototype,"onRequestSent",null);_.B([_.Om("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Hr.prototype,"onYtNavigate",null);
_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.oV]),_.x("design:returntype")],Hr.prototype,"onYtServiceRequestSent",null);_.B([_.Me("buttonTooltipPosition"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hr.prototype,"onButtonTooltipPositionChanged",null);
_.B([_.Om("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Hr.prototype,"onYtToggleButton",null);_.B([_.c({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],Hr);
_.A(Hr,"ytd-comment-action-buttons-renderer",function(){if(qyv!==void 0)return qyv;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return qyv=G},{mode:1});var ggb;var dA=function(){return _.m.apply(this,arguments)||this};
_.K(dA,_.m);dA.prototype.focus=function(){_.z1(this.hostElement).querySelector("#commentbox").focus()};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],dA.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],dA.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],dA.prototype,"zeroStepChannelCreationRenderer",void 0);_.B([_.c({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],dA);
_.A(dA,"ytd-comment-dialog-renderer",function(){if(ggb!==void 0)return ggb;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return ggb=G},{mode:1});var lBj;var om=function(){var G=_.m.apply(this,arguments)||this;G.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.R("enable_web_delhi_icons")};G.replyButtonOverrides={size:"S",type:"text"};return G};
_.K(om,_.m);_.V=om.prototype;_.V.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.V.detached=function(){this.replyBox&&this.replyBox.remove()};
_.V.showReplyDialog=function(G){if(G){var e=this.replyBox;e||(e=document.createElement("ytd-comment-reply-dialog-renderer"),e.id="replybox",_.z1(this.replyDialogDiv).appendChild(e));e.data=G;this.replyDialogDiv.hidden=!1;e.openDialog()}};
_.V.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.V.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var G,e=_.a((G=this.toolbarSurface)==null?void 0:G.subscribersOnlyDisclaimerSnackbarCommand,_.ag);e&&_.xy(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:e})}};
_.V.onYtServiceRequestSent=function(G,e){G.stopPropagation();if(e.actions)for(var r=0;r<e.actions.length;r++){var Z=_.a(e.actions[r],lic);Z?this.handleUpdateCommentVoteAction(Z):G.target===this.heartButton&&this.toggleHeartState()}};
_.V.handleUpdateCommentVoteAction=function(G){var e;(e=this.toolbarState)!=null&&e.key&&this.ytdReduxBehavior.dispatch(_.g7("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:G.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":G.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.V.toggleHeartState=function(){var G;(G=this.toolbarState)!=null&&G.key&&this.ytdReduxBehavior.dispatch(_.g7("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.iY.Object.defineProperties(om.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return(((G=this.toolbarState)==null?void 0:G.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(e=this.toolbarData)==null?void 0:e.likeCountLiked:(r=this.toolbarData)==null?void 0:r.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.toolbarSurface)==null?void 0:G.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.toolbarSurface)==null?void 0:G.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.toolbarSurface)==null?void 0:G.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.toolbarSurface)==null?void 0:G.prepareAccountCommand)!==void 0&&!_.R("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var G,e=_.a((G=this.toolbarSurface)==null?void 0:G.prepareAccountCommand,_.ag),r,Z,O,M,T,E,b,w,q;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((r=this.toolbarSharedData)==null||!r.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:_.a((O=this.toolbarSurface)==null?void 0:O.likeCommand,_.ag),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:e!=null?e:_.a((M=this.toolbarSurface)==null?void 0:M.unlikeCommand,_.ag),defaultCommand:this.isVisiblyDisabled?_.a((T=this.toolbarSurface)==null?void 0:T.commentDisabledActionCommand,_.ag):void 0,defaultTooltip:(E=this.toolbarData)==null?void 0:E.likeInactiveTooltip,toggledTooltip:(b=this.toolbarData)==null?void 0:b.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(w=this.toolbarData)==null?void 0:w.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(q=this.toolbarSharedData)==null?void 0:q.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var G,e=_.a((G=this.toolbarSurface)==null?void 0:G.prepareAccountCommand,_.ag),r,Z,O,M,T,E,b,w,q,t;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((r=this.toolbarSharedData)==null||!r.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:_.a((O=this.toolbarSurface)==null?void 0:O.dislikeCommand,_.ag),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:e!=null?e:_.a((M=this.toolbarSurface)==null?void 0:M.undislikeCommand,_.ag),defaultCommand:this.isVisiblyDisabled?_.a((T=this.toolbarSurface)==null?void 0:T.commentDisabledActionCommand,_.ag):void 0,defaultTooltip:(E=this.toolbarData)==null?void 0:E.dislikeInactiveTooltip,toggledTooltip:(b=this.toolbarData)==null?void 0:
b.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(w=this.toolbarSharedData)==null?void 0:w.dislikeReplyButtonA11y:(q=this.toolbarSharedData)==null?void 0:q.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(t=this.toolbarSharedData)==null?void 0:t.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var G,e,r;if(((G=this.toolbarState)==null?void 0:G.heartState)!==void 0&&((e=this.toolbarState)==null?void 0:e.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((r=this.toolbarState)==null?void 0:r.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var Z,O,M,T,E,b,w,q,t,g,l,X,H,I;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(Z=this.toolbarData)==null?void 0:Z.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((O=this.toolbarState)==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((M=this.toolbarState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((T=this.toolbarState)==null?void 0:T.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((E=this.toolbarState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.a((b=this.toolbarSurface)==null?void 0:b.heartCommand,
_.ag),unheartEndpoint:this.isVisiblyDisabled?void 0:_.a((w=this.toolbarSurface)==null?void 0:w.unheartCommand,_.ag),disabledEndpoint:this.isVisiblyDisabled?_.a((q=this.toolbarSurface)==null?void 0:q.commentDisabledActionCommand,_.ag):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(t=this.toolbarData)==null?void 0:t.heartActiveTooltip,unheartedTooltip:(g=this.toolbarData)==null?void 0:g.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((l=
this.toolbarState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(X=this.toolbarSharedData)==null?void 0:X.unheartButtonA11y:(H=this.toolbarSharedData)==null?void 0:H.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(I=this.toolbarSharedData)==null?void 0:I.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.toolbarSurface)==null||!G.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.commentStrings)!=null&&G.replyButtonText){var e,r,Z,O;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(e=this.commentStrings)==null?void 0:e.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.a((r=this.toolbarSurface)==null?void 0:r.replyCommand,_.ag),command:this.isVisiblyDisabled?
_.a((Z=this.toolbarSurface)==null?void 0:Z.commentDisabledActionCommand,_.ag):this.isSubsOnlyCommentsIneligibleUser?_.a((O=this.toolbarSurface)==null?void 0:O.subscribersOnlySnackbarCommand,_.ag):void 0}}}}});
om.prototype.onYtServiceRequestSent=om.prototype.onYtServiceRequestSent;om.prototype.hideReplyDialogDiv=om.prototype.hideReplyDialogDiv;_.B([_.n(),_.x("design:type",Object)],om.prototype,"commentStrings",void 0);_.B([_.n(),_.x("design:type",Boolean)],om.prototype,"isReply",void 0);_.B([_.n(),_.x("design:type",Object)],om.prototype,"toolbarData",void 0);_.B([_.n(),_.x("design:type",Object)],om.prototype,"toolbarSharedData",void 0);
_.B([_.n(),_.x("design:type",String)],om.prototype,"toolbarStateKey",void 0);_.B([_.n(),_.x("design:type",String)],om.prototype,"toolbarSurfaceKey",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],om.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],om.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],om.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.h5),_.x("design:type",Object)],om.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.hs("#reply-dialog"),_.x("design:type",HTMLElement)],om.prototype,"replyDialogDiv",void 0);_.B([_.hs("#replybox"),_.x("design:type",Object)],om.prototype,"replyBox",void 0);_.B([_.hs("ytd-creator-heart-renderer"),_.x("design:type",Object)],om.prototype,"heartButton",void 0);_.B([_.n({selector:function(G,e){return _.e6(G.entities,"engagementToolbarStateEntityPayload",e)},
selectorArgs:["toolbarStateKey"]}),_.x("design:type",Object)],om.prototype,"toolbarState",void 0);_.B([_.n({selector:TaF,selectorArgs:["toolbarSurfaceKey"]}),_.x("design:type",Object)],om.prototype,"toolbarSurface",void 0);_.B([_.n(),_.x("design:type",Object)],om.prototype,"buttonOverrides",void 0);_.B([_.Om("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],om.prototype,"hideReplyDialogDiv",null);
_.B([_.d("toolbarData","toolbarState"),_.x("design:type",String),_.x("design:paramtypes",[])],om.prototype,"likeCount",null);_.B([_.d("likeCount"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],om.prototype,"showLikeCount",null);_.B([_.d("toolbarSurface"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],om.prototype,"isVisiblyDisabled",null);_.B([_.d("toolbarSurface"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],om.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.B([_.d("toolbarSurface"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],om.prototype,"isSubsOnlyCommentsEligibleUser",null);_.B([_.d("toolbarSurface"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],om.prototype,"hasPrepareAccountCommand",null);_.B([_.d("toolbarData","toolbarState","toolbarSurface"),_.x("design:type",Object),_.x("design:paramtypes",[])],om.prototype,"likeToggleButtonRenderer",null);
_.B([_.d("isReply","toolbarData","toolbarState","toolbarSurface"),_.x("design:type",Object),_.x("design:paramtypes",[])],om.prototype,"dislikeToggleButtonRenderer",null);_.B([_.d("toolbarData","toolbarState","toolbarSurface"),_.x("design:type",Object),_.x("design:paramtypes",[])],om.prototype,"creatorHeartSupportedRenderer",null);_.B([_.d("toolbarSurface"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],om.prototype,"hasReplyCommand",null);
_.B([_.d("toolbarSurface","commentStrings","isVisiblyDisabled"),_.x("design:type",Object),_.x("design:paramtypes",[])],om.prototype,"replyButtonRenderer",null);_.B([_.n(),_.x("design:type",Object)],om.prototype,"replyButtonOverrides",void 0);_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.oV]),_.x("design:returntype")],om.prototype,"onYtServiceRequestSent",null);_.B([_.c({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],om);
_.A(om,"ytd-comment-engagement-bar",function(){if(lBj!==void 0)return lBj;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return lBj=G},{mode:1});var R8W;var s8=function(){return _.m.apply(this,arguments)||this};
_.K(s8,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],s8.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],s8.prototype,"data",void 0);_.B([_.c({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],s8);
_.A(s8,"ytd-comment-inline-thumbnail-renderer",function(){if(R8W!==void 0)return R8W;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return R8W=G},{mode:1});var j1S;var Qo=function(){return _.m.apply(this,arguments)||this};
_.K(Qo,_.m);Qo.prototype.onMessageTap=function(){if(this.onTapCommand){var G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);G&&this.ytdOpenPopupBehavior.openPopup(G)}};
_.iY.Object.defineProperties(Qo.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return(G=this.data)==null?void 0:(e=G.button)==null?void 0:(r=e.buttonRenderer)==null?void 0:r.command}}});
_.B([_.k(_.h5),_.x("design:type",Object)],Qo.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Qo.prototype,"data",void 0);_.B([_.d("data.button.buttonRenderer.command"),_.x("design:type",Object),_.x("design:paramtypes",[])],Qo.prototype,"onTapCommand",null);_.B([_.c({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],Qo);
_.A(Qo,"ytd-comment-pause-composer-renderer",function(){if(j1S!==void 0)return j1S;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return j1S=G},{mode:1});var aB3;var Xjy;var Im=function(){var G=_.m.apply(this,arguments)||this;G.isOpen=!1;return G};
_.K(Im,_.m);_.V=Im.prototype;_.V.dataChanged=function(){this.isOpen=!1};
_.V.onTap=function(){this.data&&(this.data.navigationEndpoint?_.xy(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.V.focus=function(){this.JSC$15977_commentbox.focus()};
_.V.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.V.openDialog=function(){this.isOpen=!0;this.JSC$15977_commentbox.focus();this.JSC$15977_commentbox.maybeHeightChanged()};
Im.prototype.onYtCommentboxDismiss=Im.prototype.onYtCommentboxDismiss;Im.prototype.dataChanged=Im.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Im.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Im.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],Im.prototype,"isOpen",void 0);_.B([_.hs("#commentbox"),_.x("design:type",Object)],Im.prototype,"JSC$15977_commentbox",void 0);
_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Im.prototype,"dataChanged",null);_.B([_.Om("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Im.prototype,"onYtCommentboxDismiss",null);_.B([_.c({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],Im);
_.A(Im,"ytd-comment-reply-dialog-renderer",function(){if(Xjy!==void 0)return Xjy;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Xjy=G},{mode:1});var KoE;var pH=function(){return _.m.apply(this,arguments)||this};
_.K(pH,_.m);_.iY.Object.defineProperties(pH.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var G,e,r=(G=this.data)==null?void 0:(e=G.icon)==null?void 0:e.iconType;return r?"yt-icons:"+r.toLowerCase():null}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],pH.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],pH.prototype,"data",void 0);_.B([_.n(),_.d("data.icon"),_.x("design:type",Object),_.x("design:paramtypes",[])],pH.prototype,"icon",null);_.B([_.c({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],pH);
_.A(pH,"ytd-pinned-comment-badge-renderer",function(){if(KoE!==void 0)return KoE;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return KoE=G},{mode:1});var fBE;var kvE={},HDn={input:!0,meta:!0,br:!0,link:!0,img:!0},CH=null;kvE.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(){CH==null&&(CH=document.createElement("tp-yt-paper-tooltip"),CH.offset=8,CH.fitToVisibleBounds=!0)},
onMouseOver_:function(G){if(G=_.B2(G.target,function(O){return O==this||O.getAttribute&&O.getAttribute("shared-tooltip-text")}.bind(this),!0)){var e=G.getAttribute("shared-tooltip-text");
if(e){var r=this,Z=null;G!=this&&(G.tagName.toLowerCase()in HDn?r=G.parentElement:r=G,G.id&&(Z=G.id));this.polymerController.createTooltipIfRequired_();if(CH.parentElement!=r||CH.for!=Z)(0,_.Go)(CH).textContent=e,_.z1(r).appendChild(CH),CH.for=Z,CH.animationDelay=this.polymerController.sharedTooltipAnimationDelay,CH.position=this.polymerController.sharedTooltipPosition}}}};var uQ=function(){return _.m.apply(this,arguments)||this};
_.K(uQ,_.m);uQ.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]]"}}}}}};
uQ.prototype.attached=function(){if(!this.hostElement.hasAttribute("role")){this.hostElement.setAttribute("role","img");var G;((G=this.data)==null?0:G.tooltip)&&this.hostElement.setAttribute("alt",this.data.tooltip)}var e;((e=this.data)==null?0:e.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
uQ.prototype.colorChanged=function(){var G,e,r,Z=(G=this.data)==null?void 0:(e=G.color)==null?void 0:(r=e.basicColorPaletteData)==null?void 0:r.foregroundBodyColor;Z&&(this.rgbBadgeColor=_.RB(Z));_.z1(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
uQ.prototype.tooltipChanged=function(){var G;((G=this.data)==null?0:G.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
uQ.prototype.tooltipChanged=uQ.prototype.tooltipChanged;uQ.prototype.colorChanged=uQ.prototype.colorChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],uQ.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],uQ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(kvE.YtSharedTooltipBehavior),_.x("design:type",Object)],uQ.prototype,"ytSharedTooltipBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],uQ.prototype,"data",void 0);
_.B([_.n({value:"#4285F4"}),_.x("design:type",String)],uQ.prototype,"rgbBadgeColor",void 0);_.B([_.Me("data.color"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uQ.prototype,"colorChanged",null);_.B([_.Me("data.tooltip"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uQ.prototype,"tooltipChanged",null);_.B([_.c({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],uQ);
_.A(uQ,"ytd-sponsor-comment-badge-renderer",function(){if(fBE!==void 0)return fBE;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return fBE=G},{mode:1});var dJE;var ogw;var nH=function(){return _.m.apply(this,arguments)||this};
_.K(nH,_.m);nH.prototype.computeState=function(G){switch(G==null?void 0:G.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"}};
nH.prototype.updateStateIdentifier=function(G){if(this.viewModel.triStateKey){var e=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.g7("triStateButtonStateEntityPayload",e,{key:e,stateIdentifier:G}))}};
nH.prototype.onClick=function(){var G=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(){G.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){G.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.iY.Object.defineProperties(nH.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 G;return((G=this.data)==null?void 0:G.buttonText)||""}}});
_.B([_.n(),_.x("design:type",Object)],nH.prototype,"viewModel",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],nH.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],nH.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],nH.prototype,"ytRendererBehavior",void 0);_.B([_.n({selector:DfS,selectorArgs:["viewModel.triStateKey"]}),_.x("design:type",Object)],nH.prototype,"triStateButtonStateEntity",void 0);
_.B([_.n({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.x("design:type",String)],nH.prototype,"state",void 0);_.B([_.d("viewModel","state"),_.x("design:type",Object),_.x("design:paramtypes",[])],nH.prototype,"data",null);_.B([_.d("data"),_.x("design:type",String),_.x("design:paramtypes",[])],nH.prototype,"buttonText",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],nH);
_.A(nH,"ytd-tri-state-button-view-model",function(){if(ogw!==void 0)return ogw;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return ogw=G},{mode:1});var s1j;var Q1l;var mx=function(){var G=_.m.apply(this,arguments)||this;G.defaultIconToFilled=!_.R("kevlar_fill_comment_chip_icon_killswitch");return G};
_.K(mx,_.m);mx.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
mx.prototype.dataChanged=function(){if(this.data){var G,e;((G=this.data.chipColorPalette)==null?0:G.backgroundColor)&&((e=this.data.chipColorPalette)==null?0:e.foregroundTitleColor)&&_.eD(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.jF(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.jF(this.data.chipColorPalette.foregroundTitleColor)});var r;((r=this.data)==null?0:r.command)?(_.eD(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.eD(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}};
mx.prototype.onTap=function(){var G;if(this.data&&(G=this.data)!=null&&G.command){var e;this.ytComponentBehavior.resolveCommand((e=this.data)==null?void 0:e.command)}};
mx.prototype.getIconSize=function(){return _.R("kevlar_fill_comment_chip_icon_killswitch")?24:12};
mx.prototype.onTap=mx.prototype.onTap;mx.prototype.dataChanged=mx.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],mx.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],mx.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.fS),_.x("design:type",Object)],mx.prototype,"ironA11yKeysBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],mx.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",Object)],mx.prototype,"basePriceText",void 0);_.B([_.n(),_.x("design:type",Object)],mx.prototype,"chipIcon",void 0);_.B([_.n(),_.x("design:type",Object)],mx.prototype,"defaultIconToFilled",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mx.prototype,"dataChanged",null);_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mx.prototype,"onTap",null);
_.B([_.aR({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],mx);
_.A(mx,"yt-pdg-comment-chip-renderer",function(){if(Q1l===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;s1j===void 0&&(s1j=document.createElement("template"));var Z=s1j;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Q1l=G}G=Q1l;return G},{mode:2});var cr=function(){var G=_.m.apply(this,arguments)||this;G.useSmallAvatars=_.R("small_avatars_for_comments");G.commentThreadingEnabled=_.R("web_delhi_comment_threads");G.webWatchCompactComments=_.R("web_watch_compact_comments");G.editDialog=null;return G};
_.K(cr,_.m);_.V=cr.prototype;_.V.onShow=function(){_.K_("cmv",void 0,"wn_comments")};
_.V.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"}}}};
_.V.detached=function(){this.editDialog=null;this.expander.reset()};
_.V.updateBackgroundColor=function(){if(this.backgroundColor){var G={"--ytd-comment-paid-background-color":_.jF(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.eD(this.hostElement,G)}else _.eD(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.V.resetExpander=function(){var G;(G=this.expander)==null||G.reset()};
_.V.openEditDialog=function(G){G.dialog&&(this.editDialog=G.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.V.onYtNavigate=function(G){var e=G.detail.endpoint;if(e=_.a(e,_.G6w)||_.a(e,_.ehW))G.stopPropagation(),this.openEditDialog(e)};
_.V.onYtCommentboxDismiss=function(){this.editDialog=null;_.eD(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.V.onAuthorThumbnailClicked=function(){_.R("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.V.onYtCommentboxResize=function(G){var e;(G==null?0:(e=G.detail)==null?0:e.height)&&_.eD(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":G.detail.height+"px"})};
_.iY.Object.defineProperties(cr.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 G,e=(G=this.commentEntity)==null?void 0:G.author;return e&&(e.isCreator||e.isVerified||e.isArtist)?{renderer:{authorEndpoint:e.channelPageEndpoint?_.a(e.channelPageEndpoint,_.ag):_.a(e.channelCommand,_.ag),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 G,e=(G=this.commentEntity)==null?void 0:G.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 G;return _.a((G=this.commentSurfaceEntity)==null?void 0:G.pdgCommentChip,_.dGP)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var G;return this.voiceReplyContainerViewModel&&((G=this.voiceReplyContainerViewModel)==null?void 0:G.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var G;return _.a((G=this.commentSurfaceEntity)==null?void 0:G.voiceReplyContainerViewModel,d4n)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var G;return this.voiceReplyContainerViewModel&&(G=this.voiceReplyContainerViewModel)!=null&&G.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var G,e;return(e=(G=this.commentSurfaceEntity)==null?void 0:G.commentBackgroundColor)!=null?e:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.R("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var G,e;return(((G=this.commentEntity)==null?void 0:(e=G.properties)==null?void 0:e.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var G,e;if(_.R("enable_profile_cards_on_comments")&&((G=this.commentEntity)==null?0:(e=G.author)==null?0:e.profileCardEndpoint)&&this.viewModel.allowProfileCard){var r,Z;return _.a((r=this.commentEntity)==null?void 0:(Z=r.author)==null?void 0:Z.profileCardEndpoint,_.ag)}var O,M;return _.a((O=this.commentEntity)==null?void 0:(M=O.avatar)==null?void 0:M.endpoint,_.ag)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var G,e;if(_.R("enable_profile_cards_on_comments")&&((G=this.commentEntity)==null?0:(e=G.author)==null?0:e.channelPageEndpoint)){var r,Z;return _.a((r=this.commentEntity)==null?void 0:(Z=r.author)==null?void 0:Z.channelPageEndpoint,_.ag)}var O,M;return _.a((O=this.commentEntity)==null?void 0:(M=O.avatar)==null?void 0:M.endpoint,_.ag)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var G,e,r,Z,O=(G=this.commentEntity)==null?void 0:(e=G.avatar)==null?void 0:(r=e.image)==null?void 0:(Z=r.sources)==null?void 0:Z[0];return O?{thumbnails:[{url:O.url,width:O.width,height:O.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var G,e;return((G=this.commentEntity)==null?0:(e=G.author)==null?0:e.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var G,e;return((G=this.commentEntity)==null?void 0:(e=G.author)==null?void 0:e.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var G,e;return((G=this.commentEntity)==null?void 0:(e=G.properties)==null?void 0:e.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var G;return _.a((G=this.commentSurfaceEntity)==null?void 0:G.publishedTimeCommand,_.ag)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var G,e;if(((G=this.commentEntity)==null?0:G.translatedContent)&&((e=this.translateButtonState)==null?void 0:e.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var r;if((r=this.voiceReplyContainerViewModel)==null?0:r.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var Z,O;return((Z=this.commentEntity)==null?void 0:(O=Z.properties)==null?void 0:O.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var G,e;return((G=this.commentSharedEntity)==null?void 0:(e=G.strings)==null?void 0:e.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var G,e;return((G=this.commentSharedEntity)==null?void 0:(e=G.strings)==null?void 0:e.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.commentEntity)==null||!G.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var G,e,r=(e=_.a((G=this.viewModel)==null?void 0:G.translateButton,HVy))!=null?e:{},Z,O,M,T,E,b,w,q,t,g,l;return Object.assign({},r,{untoggledStateData:Object.assign({},r.untoggledStateData,{buttonText:(Z=this.commentEntity)==null?void 0:(O=Z.translateData)==null?void 0:O.text}),togglingStateData:Object.assign({},r.togglingStateData,{buttonText:(M=this.commentSharedEntity)==null?
void 0:(T=M.strings)==null?void 0:T.translatingText}),toggledStateData:Object.assign({},r.toggledStateData,{buttonText:(E=this.commentSharedEntity)==null?void 0:(b=E.strings)==null?void 0:b.seeOriginalText}),transitionCommand:((w=this.commentEntity)==null?0:w.translatedContent)?void 0:_.a((q=this.commentEntity)==null?void 0:(t=q.translateData)==null?void 0:t.translateComment,_.ag),triStateKey:(g=this.commentEntity)==null?void 0:(l=g.properties)==null?void 0:l.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return((e=_.a(_.a((G=this.toolbarSurface)==null?void 0:G.menuCommand,_.ag),r4w))==null?void 0:(r=e.menu)==null?void 0:r.menuRenderer)||null}}});
cr.prototype.onYtCommentboxResize=cr.prototype.onYtCommentboxResize;cr.prototype.onYtCommentboxDismiss=cr.prototype.onYtCommentboxDismiss;cr.prototype.onYtNavigate=cr.prototype.onYtNavigate;cr.prototype.resetExpander=cr.prototype.resetExpander;cr.prototype.updateBackgroundColor=cr.prototype.updateBackgroundColor;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],cr.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],cr.prototype,"ytdReduxBehavior",void 0);
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],cr.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],cr.prototype,"ytRendererstamperBehavior",void 0);_.B([_.hs("#author-thumbnail > button"),_.x("design:type",HTMLElement)],cr.prototype,"authorThumbnailAnchor",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("viewModel"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],cr.prototype,"linked",null);
_.B([_.d("viewModel","linked"),_.x("design:type",Object),_.x("design:paramtypes",[])],cr.prototype,"linkedCommentBadge",null);_.B([_.n({reflectToAttribute:!0}),_.d("viewModel"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],cr.prototype,"pinned",null);_.B([_.d("viewModel","pinned"),_.x("design:type",Object),_.x("design:paramtypes",[])],cr.prototype,"pinnedCommentBadge",null);
_.B([_.d("commentEntity","commentSharedEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],cr.prototype,"authorCommentBadge",null);_.B([_.n({reflectToAttribute:!0}),_.d("authorCommentBadge"),_.x("design:type",Object),_.x("design:paramtypes",[])],cr.prototype,"hasAuthorBadge",null);_.B([_.d("commentEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],cr.prototype,"sponsorCommentBadge",null);
_.B([_.n({reflectToAttribute:!0}),_.d("sponsorCommentBadge"),_.x("design:type",Object),_.x("design:paramtypes",[])],cr.prototype,"hasSponsorBadge",null);_.B([_.d("commentSurfaceEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],cr.prototype,"pdgCommentChipRenderer",null);_.B([_.n({reflectToAttribute:!0}),_.d("voiceReplyContainerViewModel"),_.x("design:type",Object),_.x("design:paramtypes",[])],cr.prototype,"hasVoiceReply",null);
_.B([_.d("commentSurfaceEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],cr.prototype,"voiceReplyContainerViewModel",null);_.B([_.d("voiceReplyContainerViewModel"),_.x("design:type",Object),_.x("design:paramtypes",[])],cr.prototype,"voiceReplyUnavailableText",null);_.B([_.n(),_.x("design:type",Object)],cr.prototype,"data",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],cr.prototype,"viewModel",null);
_.B([_.n({selector:function(G,e){return _.e6(G.entities,"commentSharedEntityPayload",e)},
selectorArgs:["viewModel.sharedKey"]}),_.x("design:type",Object)],cr.prototype,"commentSharedEntity",void 0);_.B([_.n({selector:hx_,selectorArgs:["viewModel.commentKey"]}),_.x("design:type",Object)],cr.prototype,"commentEntity",void 0);_.B([_.n({selector:function(G,e){return _.e6(G.entities,"commentSurfaceEntityPayload",e)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.x("design:type",Object)],cr.prototype,"commentSurfaceEntity",void 0);_.B([_.n({selector:TaF,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.x("design:type",Object)],cr.prototype,"toolbarSurface",void 0);_.B([_.n({selector:DfS,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.x("design:type",Object)],cr.prototype,"translateButtonState",void 0);
_.B([_.d("commentSurfaceEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],cr.prototype,"backgroundColor",null);_.B([_.n({reflectToAttribute:!0}),_.d("viewModel"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],cr.prototype,"optimalReadingWidthComments",null);_.B([_.hs("ytd-expander"),_.x("design:type",Object)],cr.prototype,"expander",void 0);
_.B([_.Me("backgroundColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cr.prototype,"updateBackgroundColor",null);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],cr.prototype,"useSmallAvatars",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],cr.prototype,"engagementPanel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],cr.prototype,"commentThreadingEnabled",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],cr.prototype,"webWatchCompactComments",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("commentEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],cr.prototype,"isReply",null);_.B([_.d("commentEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],cr.prototype,"authorThumbnailEndpoint",null);_.B([_.d("commentEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],cr.prototype,"authorNameEndpoint",null);
_.B([_.d("commentEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],cr.prototype,"authorThumbnail",null);_.B([_.d("commentEntity"),_.x("design:type",String),_.x("design:paramtypes",[])],cr.prototype,"authorTextClass",null);_.B([_.d("commentEntity"),_.x("design:type",String),_.x("design:paramtypes",[])],cr.prototype,"authorChannelName",null);_.B([_.d("commentEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],cr.prototype,"publishedTime",null);
_.B([_.d("commentSurfaceEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],cr.prototype,"publishedTimeCommand",null);_.B([_.d("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.x("design:type",Object),_.x("design:paramtypes",[])],cr.prototype,"contentText",null);_.B([_.Me("contentText"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cr.prototype,"resetExpander",null);
_.B([_.d("commentEntity"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],cr.prototype,"shouldShowReadMoreInitially",null);_.B([_.d("commentSharedEntity"),_.x("design:type",String),_.x("design:paramtypes",[])],cr.prototype,"expandText",null);_.B([_.d("commentSharedEntity"),_.x("design:type",String),_.x("design:paramtypes",[])],cr.prototype,"collapseText",null);_.B([_.d("commentEntity"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],cr.prototype,"shouldShowTranslateButton",null);
_.B([_.d("commentEntity","commentSharedEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],cr.prototype,"translateButton",null);_.B([_.d("toolbarSurface"),_.x("design:type",Object),_.x("design:paramtypes",[])],cr.prototype,"overflowMenuRenderer",null);_.B([_.n(),_.x("design:type",Object)],cr.prototype,"editDialog",void 0);_.B([_.hs("ytd-comment-dialog-renderer"),_.x("design:type",Object)],cr.prototype,"editCommentDialogContainer",void 0);
_.B([_.hs("ytd-comment-reply-dialog-renderer"),_.x("design:type",Object)],cr.prototype,"editReplyDialogContainer",void 0);_.B([_.Om("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],cr.prototype,"onYtNavigate",null);_.B([_.Om("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],cr.prototype,"onYtCommentboxDismiss",null);
_.B([_.Om("yt-commentbox-resize"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],cr.prototype,"onYtCommentboxResize",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-comment-view-model"})],cr);
_.A(cr,"ytd-comment-view-model",function(){if(dJE!==void 0)return dJE;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return dJE=G},{mode:_.Px("kevlar_poly_si_batch_j025")?1:2});_.J_(_.y(function(G){var e={};return _.v("yt-sub-thread",{class:_.LC("ytSubThreadHost",(e.ytSubThreadHasButton=G.isButton,e.ytSubThreadHovered=G.hovered,e.ytSubThreadTopLevelThread=function(){var r,Z;return((r=G.topLevelThread)==null?void 0:r.call(G))&&!(_.R("small_avatars_for_comments")&&((Z=G.engagementPanel)==null?0:Z.call(G)))},e))},_.v("div",{class:"ytSubThreadThreadline"},_.v(_.S,{cond:function(){var r;
return!((r=G.isTeaser)==null?0:r.call(G))},
then:function(){return _.v("div",{class:"ytSubThreadConnection"})}}),_.v("div",{class:"ytSubThreadContinuation"}),_.v("div",{class:"ytSubThreadShadow"})),_.v("div",{class:"ytSubThreadSubThreadContent"},G.children))},"Ic"),"yt-sub-thread",{props:{isButton:_.N6,
isTeaser:_.N6,hovered:_.N6,topLevelThread:_.N6,engagementPanel:_.N6}});var YX=function(){var G=_.m.apply(this,arguments)||this;G.modern=_.R("web_modern_buttons");G.commentThreadingEnabled=_.R("web_delhi_comment_threads");G.isWatchGrid=_.R("kevlar_watch_grid");G.buttonOverrides=G.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};G.JSC$16023_spinnerEl=null;return G};
_.K(YX,_.m);_.V=YX.prototype;_.V.configureContinuationPathMap=function(){return _.R("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.V.shouldShowLegacyTeasers=function(G,e){return G&&!e};
_.V.shouldShowExpandedThreads=function(G,e){return this.commentThreadingEnabled&&e&&(G==null?void 0:G.length)>0};
_.V.shouldShowCollapsedThreads=function(G,e){return this.commentThreadingEnabled&&!e&&G};
_.V.computeCommentViewModel=function(G){return _.a(G,kR3)};
_.V.computeThreadRenderer=function(G){return _.a(G,R7E)};
_.V.computeIsContinuationItem=function(G){return!!this.computeContinuationItemRenderer(G)};
_.V.computeButtonRenderer=function(G){return _.a(G,_.zM)};
_.V.computeContinuationItemRenderer=function(G){return _.a(G,_.mL)};
_.V.computeShowButton=function(G){var e;return!((e=this.computeContinuationItemRenderer(G))==null||!e.button)};
_.V.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]]"}}}}}};
_.V.attached=function(){this.isShowRepliesVisible=!0};
_.V.dataChanged=function(){var G=this.expanderContents;G&&(G.hidden=!0);this.isLoading=!1};
_.V.endsInContinuation=function(G){return!!G&&G.length>0&&!!this.computeContinuationItemRenderer(G[G.length-1])};
_.V.computeShouldShowHideRepliesButton=function(G,e){return!G&&e};
_.V.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.V.isLoadingChanged=function(){this.isLoading&&!this.JSC$16023_spinnerEl&&(this.JSC$16023_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.z1(this.expanderContents).appendChild(this.JSC$16023_spinnerEl));this.JSC$16023_spinnerEl&&(this.JSC$16023_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var G;(G=this.contents)==null||G.classList.remove("reloading")}};
_.V.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var G=_.a(this.data.viewReplies,_.zM);G&&this.ytRendererBehavior.logExplicitClick(G);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.V.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var G=_.a(this.data.hideReplies,_.zM);G&&this.ytRendererBehavior.logExplicitClick(G);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.V.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var G=_.z1(this.hostElement).querySelector("#expander-contents");G&&(G.hidden=this.isShowRepliesVisible)}};
_.V.computeAlign=function(){if(this.modern){var G;return!((G=this.data)==null?0:G.viewRepliesCreatorThumbnail)}};
_.iY.Object.defineProperties(YX.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var G,e;return this.endsInContinuation((G=this.data)==null?void 0:G.contents)||this.commentThreadingEnabled&&this.endsInContinuation((e=this.data)==null?void 0:e.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var G;return(G=this.data)==null?void 0:G.teaserContents}}});
YX.prototype.isShowMoreChanged=YX.prototype.isShowMoreChanged;YX.prototype.isLoadingChanged=YX.prototype.isLoadingChanged;YX.prototype.triggerFirstContinuation=YX.prototype.triggerFirstContinuation;YX.prototype.dataChanged=YX.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],YX.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],YX.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.eP),_.x("design:type",Object)],YX.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],YX.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],YX.prototype,"modern",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],YX.prototype,"commentThreadingEnabled",void 0);_.B([_.n(),_.x("design:type",Boolean)],YX.prototype,"expanded",void 0);
_.B([_.n(),_.x("design:type",Function)],YX.prototype,"toggleExpanded",void 0);_.B([_.n(),_.x("design:type",Array)],YX.prototype,"addedReplies",void 0);_.B([_.n(),_.x("design:type",Boolean)],YX.prototype,"hovered",void 0);_.B([_.n(),_.x("design:type",Boolean)],YX.prototype,"topLevelThread",void 0);_.B([_.n(),_.x("design:type",Boolean)],YX.prototype,"isLoading",void 0);_.B([_.n({value:!0}),_.x("design:type",Boolean)],YX.prototype,"isShowRepliesVisible",void 0);
_.B([_.n({value:!1}),_.x("design:type",Boolean)],YX.prototype,"useNewFormatting",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],YX.prototype,"engagementPanel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],YX.prototype,"isWatchGrid",void 0);_.B([_.n(),_.x("design:type",Object)],YX.prototype,"buttonOverrides",void 0);_.B([_.hs("#expander-contents"),_.x("design:type",HTMLElement)],YX.prototype,"expanderContents",void 0);
_.B([_.hs("ytd-continuation-item-renderer"),_.x("design:type",Object)],YX.prototype,"continuationItemRenderer",void 0);_.B([_.hs("#contents"),_.x("design:type",HTMLElement)],YX.prototype,"contents",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YX.prototype,"dataChanged",null);_.B([_.d("data.contents","data.subThreads.*"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],YX.prototype,"hasContinuation",null);
_.B([_.d("data.teaserContents"),_.x("design:type",Object),_.x("design:paramtypes",[])],YX.prototype,"subThreadTeasers",null);_.B([_.Om("yt-expander-more-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YX.prototype,"triggerFirstContinuation",null);_.B([_.Me("isLoading"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YX.prototype,"isLoadingChanged",null);
_.B([_.Me("isShowRepliesVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YX.prototype,"isShowMoreChanged",null);_.B([_.c({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],YX);
_.A(YX,"ytd-comment-replies-renderer",function(){if(aB3!==void 0)return aB3;var G=document.createElement("template");_.f(G,'\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="[[!shouldShowLegacyTeasers(isShowRepliesVisible, commentThreadingEnabled)]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div id="expanded-threads" hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[subThreadTeasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-teaser="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-view-model data="[[computeCommentViewModel(item)]]" class="style-scope ytd-comment-replies-renderer"> </ytd-comment-view-model>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-repeat" items="[[addedReplies]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" top-level-thread="[[topLevelThread]]" 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    </yt-sub-thread>\n  </template>\n  <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" 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" aria-controls="expanded-threads" aria-expanded="[[!expanded]]" 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 id="collapsed-threads" 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 engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="[[computeIsContinuationItem(item)]]" top-level-thread="[[topLevelThread]]" 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 engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" aria-controls="collapsed-threads" aria-expanded="[[expanded]]" 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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return aB3=G},{mode:1});var IBW;var yo=function(){var G=_.m.apply(this,arguments)||this;G.isOpen=!1;G.commentDialog=null;G.useSmallAvatars=_.R("small_avatars_for_comments");G.useSmallAvatarsEngagementPanelOnly=_.R("small_avatars_for_comments_ep");G.placeholderFocusListener=null;G.hasOpenedDialog=!1;G.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return G};
_.K(yo,_.m);_.V=yo.prototype;_.V.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]]"}}}}}};
_.V.ready=function(){var G=this,e=_.z1(this.hostElement).querySelector("#placeholder-area"),r=_.z1(this.hostElement).querySelector("#simplebox-placeholder"),Z=function(O){O.stopPropagation();O instanceof KeyboardEvent&&O.type==="keypress"&&O.keyCode!==13&&O.keyCode!==32||G.openDialog()};
this.placeholderFocusListener=Z;r.addEventListener("focus",this.placeholderFocusListener);e.addEventListener("tap",Z);e.addEventListener("keypress",Z)};
_.V.maybeRemoveFocusEventListener=function(){var G;(G=this.data)!=null&&G.prepareAccountEndpoint&&!_.R("web_comments_simplebox_modal_focus_on_tap_ks")&&(G=_.z1(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(G.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.V.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.V.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.R("web_comment_simplebox_resolve_polymer_command_ks")?_.Ga.instance.resolveCommand(this.data.prepareAccountEndpoint):_.es(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);G&&this.ytdOpenPopupBehavior.openPopup(G);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.z1(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.V.onYtCommentboxDismiss=function(G){G.stopPropagation();this.isOpen=!1};
_.V.onCreateCommentAction=function(G){this.get("createCommentAction.contents",G)&&(this.isOpen=!1)};
_.V.computeCommentDialog=function(G){return{placeholderText:G.placeholderText,authorThumbnail:G.authorThumbnail,submitButton:G.submitButton,imageButton:G.imageButton,cancelButton:G.cancelButton,emojiButton:G.emojiButton,emojis:G.emojis,emojiPicker:G.emojiPicker,aadcGuidelinesStateEntityKey:G.aadcGuidelinesStateEntityKey,openAadcDialog:G.openAadcDialog,unicodeEmojisUrl:G.unicodeEmojisUrl}};
_.V.onHideIdentityChip=function(G){_.a(G,$4W)&&this.set("data.placeholderText",_.a(G,$4W).placeholderText)};
yo.prototype.onYtCommentboxDismiss=yo.prototype.onYtCommentboxDismiss;yo.prototype.dataChanged=yo.prototype.dataChanged;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],yo.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.h5),_.x("design:type",Object)],yo.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],yo.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],yo.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],yo.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],yo.prototype,"isOpen",void 0);_.B([_.n(),_.x("design:type",Object)],yo.prototype,"commentDialog",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],yo.prototype,"engagementPanel",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],yo.prototype,"useSmallAvatars",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],yo.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],yo.prototype,"enableCreationBox",void 0);_.B([_.n(),_.x("design:type",Boolean)],yo.prototype,"showCreateDialog",void 0);
_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yo.prototype,"dataChanged",null);_.B([_.Om("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],yo.prototype,"onYtCommentboxDismiss",null);_.B([_.c({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],yo);
_.A(yo,"ytd-comment-simplebox-renderer",function(){if(IBW!==void 0)return IBW;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return IBW=G},{mode:1});var pjc;_.te("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var AM=function(){var G=_.m.apply(this,arguments)||this;G.addHoverEffect=_.R("swatcheroo_comments_hover_effect");G.useSmallAvatars=_.R("small_avatars_for_comments");G.scrollingEnabled=_.R("web_comment_threading_scroll_on_collapse");G.isSubThread=!1;G.threadHovered=!1;G.expanded=!1;G.removed=!1;G.addedReplies=[];G.actionMap=G.configureActionMap();G.toggleExpanded=function(){G.expanded=!G.expanded;!G.expanded&&G.scrollingEnabled&&_.Pi(G.hostElement,"yt-scroll-to-comment-element",[G.commentElement])};
return G};
_.K(AM,_.m);_.V=AM.prototype;_.V.configureActionMap=function(){return _.R("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"}:{}};
_.V.createCommentReplyAction=function(G){G=_.a(G,vM3);if(G!=null&&G.contents){var e=G.replyToCommentId,r=G.parentCommentId,Z,O=(Z=this.commentViewModel)==null?void 0:Z.commentId;(O===e||O===r&&!e)&&this.maybeAttachReply(G.contents)}};
_.V.maybeAttachReply=function(G){var e,r;(((e=this.commentEntity)==null?void 0:(r=e.properties)==null?void 0:r.replyLevel)||0)>=3?_.xy(this.hostElement,"yt-pushed-create-comment-reply",G):this.attachReply(G)};
_.V.onPushedCreateCommentReply=function(G){var e,r;(((e=this.commentEntity)==null?void 0:(r=e.properties)==null?void 0:r.replyLevel)||0)>=3||(this.attachReply(G.detail),G.stopPropagation())};
_.V.attachReply=function(G){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("addedReplies",G):this.splice("data.replies.commentRepliesRenderer.subThreads",e,0,G):this.push("data.replies.commentRepliesRenderer.subThreads",G)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[G],viewReplies:{buttonRenderer:{text:_.Bn(_.OK("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.V.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.mY(this.addedReplies))),this.set("addedReplies",[]))};
_.V.removeCommentAction=function(G){G=_.a(G,tkb);var e=G==null?void 0:G.commentId,r;e&&((r=this.commentViewModel)==null?void 0:r.commentId)===e&&this.maybeRemoveComment(G.actionResult)};
_.V.banAuthorAction=function(G){G=_.a(G,iVw);var e=G==null?void 0:G.commentId,r;e&&((r=this.commentViewModel)==null?void 0:r.commentId)===e&&this.maybeRemoveComment(G.actionResult)};
_.V.hideReportedCommentAction=function(G){G=_.a(G,IiC);var e=G==null?void 0:G.commentId,r;e&&((r=this.commentViewModel)==null?void 0:r.commentId)===e&&this.maybeRemoveComment(G.actionResult)};
_.V.maybeRemoveComment=function(G){G&&G.status==="STATUS_SUCCEEDED"&&(this.feedbackText=G.feedbackText||_.Bn("Reply removed"),this.removed=!0)};
_.V.onTap=function(G){if(this.addHoverEffect&&!this.engagementPanel&&!_.mO(_.na(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var e;((e=window.getSelection())==null?0:e.toString().length)||_.es({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.V.attached=function(){var G=this;this.isSubThread&&(this.expanded=!0);var e;(e=this.commentThreadHitbox)==null||e.addEventListener("mouseover",function(){G.threadHovered=!0});
var r;(r=this.commentThreadHitbox)==null||r.addEventListener("mouseout",function(){G.threadHovered=!1});
var Z;(Z=this.commentThreadHitbox)==null||Z.addEventListener("click",function(){G.maybeToggleExpanded()})};
_.V.maybeToggleExpanded=function(){var G,e,r,Z=(G=this.data)==null?void 0:(e=G.replies)==null?void 0:(r=e.commentRepliesRenderer)==null?void 0:r.subThreads,O;(Z==null?void 0:Z.length)===1&&((O=_.a(Z[0],_.mL))==null?0:O.button)&&this.expanded||this.toggleExpanded()};
_.iY.Object.defineProperties(AM.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var G;return _.a((G=this.data)==null?void 0:G.commentViewModel,kR3)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return _.R("web_delhi_comment_threads")&&!!((G=this.data)==null?0:(e=G.replies)==null?0:(r=e.commentRepliesRenderer)==null?0:r.subThreads)}}});
AM.prototype.onTap=AM.prototype.onTap;AM.prototype.onAppendContinuationItemsActionFinished=AM.prototype.onAppendContinuationItemsActionFinished;AM.prototype.onPushedCreateCommentReply=AM.prototype.onPushedCreateCommentReply;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],AM.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],AM.prototype,"ytdReduxBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],AM.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],AM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],AM.prototype,"addHoverEffect",void 0);_.B([_.n(),_.x("design:type",Object)],AM.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],AM.prototype,"useSmallAvatars",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],AM.prototype,"scrollingEnabled",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],AM.prototype,"isSubThread",void 0);_.B([_.hs(".thread-hitbox"),_.x("design:type",HTMLElement)],AM.prototype,"commentThreadHitbox",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],AM.prototype,"threadHovered",void 0);_.B([_.hs("#comment"),_.x("design:type",HTMLElement)],AM.prototype,"commentElement",void 0);
_.B([_.n(),_.x("design:type",Object)],AM.prototype,"expanded",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],AM.prototype,"removed",void 0);_.B([_.n(),_.x("design:type",Object)],AM.prototype,"feedbackText",void 0);_.B([_.n(),_.x("design:type",Array)],AM.prototype,"addedReplies",void 0);_.B([_.n({selector:hx_,selectorArgs:["commentViewModel.commentKey"]}),_.x("design:type",Object)],AM.prototype,"commentEntity",void 0);
_.B([_.Om("yt-pushed-create-comment-reply"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],AM.prototype,"onPushedCreateCommentReply",null);_.B([_.Om("yt-append-continuation-items-action-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],AM.prototype,"onAppendContinuationItemsActionFinished",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],AM.prototype,"commentViewModel",null);
_.B([_.d("data.replies"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],AM.prototype,"hasSubThreading",null);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],AM.prototype,"engagementPanel",void 0);_.B([_.Om("tap"),_.Om("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],AM.prototype,"onTap",null);_.B([_.c({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],AM);
_.A(AM,"ytd-comment-thread-renderer",function(){if(pjc!==void 0)return pjc;var G=document.createElement("template");_.f(G,'\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]]" engagement-panel="[[engagementPanel]]" 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 added-replies="[[addedReplies]]" data="[[data.replies.commentRepliesRenderer]]" engagement-panel="[[engagementPanel]]" expanded="[[expanded]]" hovered="[[threadHovered]]" toggle-expanded="[[toggleExpanded]]" top-level-thread="[[!isSubThread]]" 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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return pjc=G},{mode:_.Px("kevlar_poly_si_batch_j025")?1:2});var Cky;var F2=function(){var G=_.m.apply(this,arguments)||this;G.compactHeader=_.R("web_watch_compact_comments_header");G.hidePanelButton=!1;G.isPostSchedulingEnabled=_.R("enable_post_scheduling");G.hasFinishedStamping=!1;G.JSC$16046_handleOpenPostCommentDialogActionAfterStamp=!1;G.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return G};
_.K(F2,_.m);_.V=F2.prototype;
_.V.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"}}}};
_.V.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.V.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16046_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.V.onYtServiceRequestSent=function(G,e){if(!_.R("kevlar_command_handler")&&e.actions)for(G=0;G<e.actions.length;G++){var r=e.actions[G];_.a(r,mpv)&&_.z1(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.a(r,mpv))}};
_.V.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var G;if(this.getPrefilledBackstagePostDialog((G=this.data)==null?void 0:G.actions)){_.z1(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var e=_.z1(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;e&&_.DE(this,function(){e.focus();e.openDialog&&e.openDialog()})}}else this.hasActionsChange=!0};
_.V.computeIsBackstage=function(G){return G};
_.V.onYtCommentboxDismiss=function(){_.z1(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.V.removePrefilledDialog=function(G){if(G==null?0:G.actions){for(var e=G.actions.length-1;e>=0;e--){var r=void 0;((r=_.a(G.actions[e],Nk3))==null?0:r.dialog)&&delete G.actions[e]}this.set("data",void 0);this.set("data",G)}};
_.V.getPrefilledBackstagePostDialog=function(G){if(G)for(var e=0;e<G.length;e++){var r=G[e],Z=void 0;if((Z=_.a(r,Nk3))==null?0:Z.dialog)return _.a(r,Nk3).dialog}return null};
_.V.computeBackstagePostDialog=function(G){return G&&(this.getPrefilledBackstagePostDialog(G.actions)||G.createRenderer)};
_.V.dataChanged=function(){if(this.data){var G=this.data.customEmojis,e=this.data.unicodeEmojisUrl;_.Wk.clear();e&&_.dTy(_.Wk,e);G&&_.Wk.load(G)}};
_.V.handleSignalActionOpenPostCommentDialogAction=function(){var G=_.z1(this.hostElement).querySelector("ytd-comment-simplebox-renderer");G?G.openDialog():this.JSC$16046_handleOpenPostCommentDialogActionAfterStamp=!0};
_.V.onPostHeaderTap=function(){var G;((G=this.data)==null?0:G.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.iY.Object.defineProperties(F2.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.R("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var G,e,r,Z,O,M,T;return!this.hidePanelButton&&_.R("kevlar_watch_comments_panel_button")&&((T=_.a((G=this.data)==null?void 0:(e=G.sortMenu)==null?void 0:(r=e.sortFilterSubMenuRenderer)==null?void 0:(Z=r.subMenuItems)==null?void 0:(O=Z[0])==null?void 0:(M=O.serviceEndpoint)==null?void 0:M.commandMetadata,_.rJ))==null?void 0:T.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.OK("MINIPLAYER_EXPAND_LABEL"),text:_.nQ(_.OK("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
F2.prototype.dataChanged=F2.prototype.dataChanged;F2.prototype.onYtCommentboxDismiss=F2.prototype.onYtCommentboxDismiss;F2.prototype.observePrefilledBackstagePostDialog=F2.prototype.observePrefilledBackstagePostDialog;F2.prototype.onYtServiceRequestSent=F2.prototype.onYtServiceRequestSent;F2.prototype.onStampFinished=F2.prototype.onStampFinished;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],F2.prototype,"ytComponentBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],F2.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],F2.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],F2.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],F2.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],F2.prototype,"compactHeader",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],F2.prototype,"engagementPanel",void 0);_.B([_.n(),_.x("design:type",Object)],F2.prototype,"hidePanelButton",void 0);_.B([_.n({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.x("design:type",Boolean)],F2.prototype,"isBackstage",void 0);_.B([_.n({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.x("design:type",Object)],F2.prototype,"backstagePostDialog",void 0);
_.B([_.n(),_.x("design:type",Object)],F2.prototype,"isPostSchedulingEnabled",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("data","showCommentsPanelButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],F2.prototype,"useSpaceBetween",null);_.B([_.n({reflectToAttribute:!0}),_.d("data","hidePanelButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],F2.prototype,"showCommentsPanelButton",null);
_.B([_.d("data","showCommentsPanelButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],F2.prototype,"commentsPanelButtonData",null);_.B([_.Om("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],F2.prototype,"onStampFinished",null);_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.oV]),_.x("design:returntype")],F2.prototype,"onYtServiceRequestSent",null);
_.B([_.Me("data.actions"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],F2.prototype,"observePrefilledBackstagePostDialog",null);_.B([_.Om("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],F2.prototype,"onYtCommentboxDismiss",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],F2.prototype,"dataChanged",null);
_.B([_.c({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],F2);
_.A(F2,"ytd-comments-header-renderer",function(){if(Cky!==void 0)return Cky;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Cky=G},{mode:1});var uhn;var JM=function(){return _.m.apply(this,arguments)||this};
_.K(JM,_.m);_.B([_.n(),_.x("design:type",Object)],JM.prototype,"data",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],JM.prototype,"ytRendererBehavior",void 0);_.B([_.c({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],JM);
_.A(JM,"ytd-destination-button-renderer",function(){if(uhn!==void 0)return uhn;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return uhn=G},{mode:1});var ngn;var Br=function(){var G=_.m.apply(this,arguments)||this;G.isRichGrid=!1;G.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return G};
_.K(Br,_.m);_.V=Br.prototype;_.V.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.V.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.V.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.V.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var G;if((G=this.data)==null||!G.isExpanded){G=this.hostElement.clientWidth;var e;if(G&&(e=this.data)!=null&&e.destinationButtons){e=Math.floor((G+4)/214);G=this.data.destinationButtons.length;var r=Math.ceil(G/e);this.fullyVisibleRows=G%e===1&&r===2?1:Math.min(r,2);this.isShowMoreVisible=this.fullyVisibleRows<r}}}};
_.V.updateRichGridDestinationButtonsVisibility=function(){var G,e;if(this.isRichGrid&&((G=this.data)==null||!G.isExpanded)&&(e=this.data)!=null&&e.destinationButtons){G=this.richGridItemsPerRow+1;e=this.data.destinationButtons.length;var r=Math.ceil(e/G);this.fullyVisibleRows=e%G===1&&r===2?1:Math.min(r,2);this.isShowMoreVisible=this.fullyVisibleRows<r}};
_.V.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Br.prototype.updateRichGridDestinationButtonsVisibility=Br.prototype.updateRichGridDestinationButtonsVisibility;_.B([_.n(),_.x("design:type",Object)],Br.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Number)],Br.prototype,"fullyVisibleRows",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Br.prototype,"isShowMoreVisible",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Br.prototype,"isRichGrid",void 0);
_.B([_.n({selector:_.RI,value:0}),_.x("design:type",Number)],Br.prototype,"richGridItemsPerRow",void 0);_.B([_.n(),_.x("design:type",Object)],Br.prototype,"gridStateActionMap",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Br.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Br.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Br.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],Br.prototype,"ytdReduxBehavior",void 0);_.B([_.Me("data","richGridItemsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Br.prototype,"updateRichGridDestinationButtonsVisibility",null);_.B([_.c({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],Br);
_.A(Br,"ytd-destination-shelf-renderer",function(){if(ngn!==void 0)return ngn;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return ngn=G},{mode:1});var mJC;var xX=function(){return _.m.apply(this,arguments)||this};
_.K(xX,_.m);xX.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"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],xX.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],xX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],xX.prototype,"data",void 0);_.B([_.c({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],xX);
_.A(xX,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(mJC!==void 0)return mJC;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return mJC=G},{mode:1});var cWv;var Pr=function(){var G=_.m.apply(this,arguments)||this;G.disableAnimation=!1;G.isSlimlineSurvey=!1;G.isSlimlineSurveyFollowUp=!1;G.isShortsStyle=!1;return G};
_.K(Pr,_.m);Pr.prototype.onTap=function(G){G.preventDefault();this.data&&_.xy(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.iY.Object.defineProperties(Pr.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 G,e,r,Z,O;return((G=this.data)==null?0:G.checked)?(e=this.data)==null?void 0:(r=e.onStateIcon)==null?void 0:r.iconType:(Z=this.data)==null?void 0:(O=Z.defaultStateIcon)==null?void 0:O.iconType}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Pr.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Pr.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Pr.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],Pr.prototype,"disableAnimation",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Pr.prototype,"isSlimlineSurvey",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Pr.prototype,"isSlimlineSurveyFollowUp",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Pr.prototype,"isShortsStyle",void 0);_.B([_.d("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Pr.prototype,"isAnimatedIcon",null);
_.B([_.d("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.x("design:type",Number),_.x("design:paramtypes",[])],Pr.prototype,"iconSize",null);_.B([_.d("isShortsStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Pr.prototype,"isDarkTheme",null);_.B([_.d("data.checked"),_.x("design:type",Object),_.x("design:paramtypes",[])],Pr.prototype,"icon",null);_.B([_.c({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],Pr);
_.A(Pr,"ytd-rating-survey-option-renderer",function(){if(cWv!==void 0)return cWv;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return cWv=G},{mode:2});var YyW;var U8=function(){var G=_.m.apply(this,arguments)||this;G.firstResponseText=null;G.lastResponseText=null;G.selectedNonStarOption=null;G.hideOptions=!1;G.hideUndoButton=!0;G.disableAnimation=!1;G.showResponseRangeText=!1;G.selectedRatingIndex=-1;G.isSlimlineSurvey=!1;G.isSlimlineSurveyFollowUp=!1;G.isShortsStyle=!1;G.slimlineSurveyRatingSelectedIndex=-1;return G};
_.K(U8,_.m);_.V=U8.prototype;_.V.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.V.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.V.onOptionChange=function(G,e){var r=this;G=e.onStateIcon&&e.defaultStateIcon&&e.onStateIcon.iconType===e.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(T,E){T.responseText===e.responseText?r.isSlimlineSurvey?(r.selectedRatingIndex=E,r.ytdReduxBehavior.dispatch(UYn(E))):(r.setSurveyOptionValue(E,!0,"checked"),r.setSurveyOptionValue(E,!0,"selected")):(r.setSurveyOptionValue(E,!1,"checked"),r.setSurveyOptionValue(E,
!1,"selected"))});
else if(G)this.selectedNonStarOption=e,this.hideOptions=!0;else{var Z=this.ytRendererBehavior.getSimpleString(e.responseText),O=!0;this.getOptionRenderers().forEach(function(T,E){r.setSurveyOptionValue(E,O,"checked");r.setSurveyOptionValue(E,!1,"selected");r.ytRendererBehavior.getSimpleString(T.responseText)===Z&&(O=!1,r.setSurveyOptionValue(E,!0,"selected"))})}G=e.responseEndpoint;
var M;e.followUpCommand&&(M=_.a(e.followUpCommand,J9C));this.isSlimlineSurvey?(this.resetComponent(),_.Pi(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.Pi(this.hostElement,"ytd-inline-survey-rating-select-action",[G,M])};
_.V.showSelectedOption=function(){var G=this;_.A0.addJob(function(){var e=G.getOptionRenderers()[G.slimlineSurveyRatingSelectedIndex];G.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),e)},8,100)};
_.V.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(G){var e;return(e=_.a(G,xww))!=null?e:{}}):[]};
_.V.onUndoClick=function(){this.resetComponent();_.Pi(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.V.setSurveyOptionValue=function(G,e,r){this.notifyPath("data.ratings."+G+".ratingSurveyOptionRenderer."+r);this.set("data.ratings."+G+".ratingSurveyOptionRenderer."+r,e)};
_.V.resetComponent=function(){var G=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var e=this.getOptionRenderers(),r,Z;this.firstResponseText=(Z=(r=e[0])==null?void 0:r.responseText)!=null?Z:null;var O,M;this.lastResponseText=(M=(O=e[e.length-1])==null?void 0:O.responseText)!=null?M:null;e.forEach(function(T,E){G.setSurveyOptionValue(E,!1,"checked");G.setSurveyOptionValue(E,!1,"selected")})};
_.iY.Object.defineProperties(U8.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
U8.prototype.onOptionChange=U8.prototype.onOptionChange;U8.prototype.dataChanged=U8.prototype.dataChanged;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],U8.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],U8.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],U8.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],U8.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",Object)],U8.prototype,"firstResponseText",void 0);_.B([_.n(),_.x("design:type",Object)],U8.prototype,"lastResponseText",void 0);_.B([_.n(),_.x("design:type",Object)],U8.prototype,"selectedNonStarOption",void 0);_.B([_.n(),_.x("design:type",Object)],U8.prototype,"hideOptions",void 0);_.B([_.n(),_.x("design:type",Object)],U8.prototype,"hideUndoButton",void 0);_.B([_.n(),_.x("design:type",Object)],U8.prototype,"disableAnimation",void 0);
_.B([_.n(),_.x("design:type",Object)],U8.prototype,"showResponseRangeText",void 0);_.B([_.n(),_.x("design:type",Object)],U8.prototype,"selectedRatingIndex",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],U8.prototype,"isSlimlineSurvey",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],U8.prototype,"isSlimlineSurveyFollowUp",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],U8.prototype,"isShortsStyle",void 0);_.B([_.n({selector:function(G){return G.ui.slimlineSurveyRatingSelectedIndex}}),
_.x("design:type",Object)],U8.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.B([_.d("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],U8.prototype,"isSingleSelect",null);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],U8.prototype,"dataChanged",null);
_.B([_.Om("ytd-rating-survey-option-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],U8.prototype,"onOptionChange",null);_.B([_.c({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],U8);
_.A(U8,"ytd-rating-survey-renderer",function(){if(YyW!==void 0)return YyW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return YyW=G},{mode:1});var yWE;var AWn;var Foy;var Hcf=(eM.FIRSTDAYOFWEEK+1)%7,JWW=function(G,e,r,Z){var O="";if(Z.selection&&X3S(Z.selection))No(G,Z.selection)&&(O+=" selected");else if(Z.selection&&Kzy(Z.selection)){var M=Z.selection.selectionState||"START_DATE";No(G,Z.selection.start)&&(O+=" period-start ",M==="START_DATE"&&(O+="selected"));No(G,Z.selection.end)&&(O+=" period-end ",M==="END_DATE"&&(O+="selected"));LW(G,Z.selection.start)||LW(Z.selection.end,G)||(O+=" highlighted")}if(LW(e,Z.start)||LW(Z.end,e))O+=" disabled";Z.circleToday&&
No(e,r)&&(O+=" today");return O};var z7=function(){return _.m.apply(this,arguments)||this};
_.K(z7,_.m);_.V=z7.prototype;_.V.attached=function(){var G=this;_.DE(this,function(){G.JSC$16080_calendarMain.scrollHeight>0&&(G.calendarConfig.selection?G.scrollToDate(f3_(G.calendarConfig.selection)):G.scrollToDate(G.calendarConfig.end))})};
_.V.updateSelection=function(G){G=dHp(Object.assign({},this.calendarConfig,{selection:G}),JWW);this.splice.apply(this,["renderData.months",0,G.length].concat(_.mY(G)))};
_.V.scrollToDate=function(G){this.renderData&&(G=ok4(G,this.renderData),G!==void 0&&this.JSC$16080_calendarMain.scrollToIndex(G))};
_.V.scrollToNextMonth=function(){this.JSC$16080_calendarMain.scrollToIndex(this.JSC$16080_calendarMain.firstVisibleIndex+1)};
_.V.scrollToPrevMonth=function(){this.JSC$16080_calendarMain.firstVisibleIndex===0&&this.JSC$16080_calendarMain.scrollTo(0,0);this.JSC$16080_calendarMain.scrollToIndex(this.JSC$16080_calendarMain.firstVisibleIndex-1)};
_.V.handleDayClick=function(G){_.Pi(this.hostElement,"ytd-calendar-date-clicked",[G.model.day.date])};
_.V.handleDayMouseDown=function(G){G.preventDefault();_.Pi(this.hostElement,"ytd-calendar-date-mousedown",[G.model.day.date])};
_.V.handleDayMouseUp=function(G){_.Pi(this.hostElement,"ytd-calendar-date-mouseup",[G.model.day.date])};
_.V.handleDayMouseEnter=function(G){G.preventDefault();_.Pi(this.hostElement,"ytd-calendar-date-mouseenter",[G.model.day.date])};
_.V.handleDayMouseLeave=function(G){_.Pi(this.hostElement,"ytd-calendar-date-mouseleave",[G.model.day.date])};
_.iY.Object.defineProperties(z7.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var G=this.calendarConfig,e=JWW;e=e===void 0?JWW:e;for(var r=[],Z=0;Z<7;Z++)r.push(eM.NARROWWEEKDAYS[(Z+Hcf)%7]);return{months:dHp(G,e),daysOfWeekLabel:r}}}});
_.B([_.n(),_.x("design:type",Object)],z7.prototype,"calendarConfig",void 0);_.B([_.hs("#calendar-main"),_.x("design:type",Object)],z7.prototype,"JSC$16080_calendarMain",void 0);_.B([_.d("calendarConfig"),_.x("design:type",Object),_.x("design:paramtypes",[])],z7.prototype,"renderData",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],z7);
_.A(z7,"ytd-scrollable-calendar",function(){if(Foy!==void 0)return Foy;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Foy=G},{mode:2});var B4E;var xJC;var Wr=function(){var G=_.m.apply(this,arguments)||this;G.hideCharCounter=!1;G.hideLabel=!1;G.noLabelFloat=!1;G.autoValidate=!0;G.invalid=!1;G.disabled=!1;G.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return G};
_.K(Wr,_.m);_.V=Wr.prototype;_.V.reset=function(G){this.value=G&&this.data?this.data.value=G:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.V.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.V.focusTextInput=function(){this.input.focus()};
_.V.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()};
_.V.valueChanged=function(){var G,e;if(((G=this.data)==null?0:G.value)||((e=this.data)==null?void 0:e.value)==="")this.value=this.data.value;else{var r;((r=this.data)==null?void 0:r.value)!==void 0||this.value||(this.value="")}};
_.V.computeLabel=function(G,e){return e?"":_.mG(G)};
_.V.computeAriaLabel=function(G,e){return e?_.mG(G):""};
_.V.computeErrorMessage=function(G,e,r,Z){!G&&e?G=r||this.strings.REQUIRED_LABEL:(G=_.mG(Z),G=_.vA(G,"&")?"document"in _.O_?e1W(G):r6l(G):G);return G};
_.V.computeType=function(G){return G==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.V.onTextValueChanged=function(G){this.value=G.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)};
_.V.handleUpdateTextInputFormFieldRendererCommand=function(G){(G=_.a(G,bS3))&&this.data&&this.data.id===G.id&&(G.invalid!==void 0&&(this.invalid=G.invalid),G.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",G.invalidValueErrorMessage))};
_.V.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eG("value-changed",this.value))};
_.V.updateInvalidFromBinding=function(G){this.invalid=G.detail.value};
_.iY.Object.defineProperties(Wr.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var G;return!((G=this.data)==null||!G.isMultiline)}}});
Wr.prototype.valueChangedForBinding=Wr.prototype.valueChangedForBinding;Wr.prototype.valueChanged=Wr.prototype.valueChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Wr.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Wr.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Wr.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],Wr.prototype,"data",void 0);_.B([_.n(),_.x("design:type",String)],Wr.prototype,"value",void 0);_.B([_.n(),_.x("design:type",String)],Wr.prototype,"pattern",void 0);_.B([_.n(),_.x("design:type",String)],Wr.prototype,"errorMessage",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],Wr.prototype,"componentStyle",void 0);_.B([_.n(),_.x("design:type",Object)],Wr.prototype,"hideCharCounter",void 0);
_.B([_.n(),_.x("design:type",Object)],Wr.prototype,"hideLabel",void 0);_.B([_.n(),_.x("design:type",Object)],Wr.prototype,"noLabelFloat",void 0);_.B([_.n(),_.x("design:type",Function)],Wr.prototype,"onValueChanged",void 0);_.B([_.n(),_.x("design:type",Boolean)],Wr.prototype,"isMultilineOverride",void 0);_.B([_.n(),_.x("design:type",Object)],Wr.prototype,"autoValidate",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Wr.prototype,"invalid",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Wr.prototype,"disabled",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Wr.prototype,"enableOverlayTheme",void 0);_.B([_.n({value:{REQUIRED_LABEL:_.OK("REQUIRED_LABEL",void 0,"Required")}}),_.x("design:type",Object)],Wr.prototype,"strings",void 0);_.B([_.hs("#input"),_.x("design:type",Object)],Wr.prototype,"input",void 0);
_.B([_.d("data","isMultilineOverride"),_.x("design:type",Object),_.x("design:paramtypes",[])],Wr.prototype,"isMultiline",null);_.B([_.iD("data.value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wr.prototype,"valueChanged",null);_.B([_.Me("value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wr.prototype,"valueChangedForBinding",null);_.B([_.aR({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],Wr);
_.A(Wr,"yt-text-input-form-field-renderer",function(){if(xJC===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;B4E===void 0&&(B4E=document.createElement("template"));var Z=B4E;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);xJC=G}G=xJC;return G},{mode:2});var Nc=function(){var G=_.m.apply(this,arguments)||this;G.data=void 0;G.selectionState="START_DATE";G.isStartDateInvalid=!1;G.isEndDateInvalid=!1;G.autoapply=!1;G.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 G};
_.K(Nc,_.m);_.V=Nc.prototype;_.V.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"}}}}};
_.V.focus=function(){this.startDateInput.focus()};
_.V.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:G4(this.data.selection.start),end:G4(this.data.selection.end)})};
_.V.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.V.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.zC(this.selectionState)}};
_.V.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.V.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.V.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.V.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var G=this.calendar.calendarConfig,e=G.end;G=QM$({start:G.start,end:this.endDate||e},this.startDateInput.value||"");this.isStartDateInvalid=!G.isValid;G.isValid&&(G=G.value,this.selection=this.endDate?{start:G,end:this.endDate}:G,this.calendar.scrollToDate(G));this.updateInvalidState()}};
_.V.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var G=this.calendar.calendarConfig,e=G.start;G=QM$({start:this.startDate||e,end:G.end},this.endDateInput.value||"");this.isEndDateInvalid=!G.isValid;G.isValid&&(G=G.value,this.selection={start:this.startDate,end:G},this.calendar.scrollToDate(G));this.updateInvalidState()}};
_.V.handleCalendarDateClicked=function(G){var e=this.selection&&f3_(this.selection),r=this.selection&&kKF(this.selection);e&&!LW(G,e)&&this.selectionState==="END_DATE"?(this.selection={start:e,end:G},this.selectionState="START_DATE"):(r&&!LW(r,G)?this.selection={start:G,end:r}:this.selection=G,this.selectionState="END_DATE")};
_.V.handleCalendarDateMouseDown=function(G){this.selection&&!X3S(this.selection)&&(this.dragPivot=No(G,this.selection.start)?this.selection.end:No(G,this.selection.end)?this.selection.start:G)};
_.V.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.V.handleCalendarDateMouseEnter=function(G){this.dragPivot&&(this.selection={start:function(e,r){return LW(e,r)?e:r}(this.dragPivot,G),
end:function(e,r){return LW(e,r)?r:e}(this.dragPivot,G)},this.dragPivot||(this.selectionState="START_DATE"))};
_.V.handleCalendarDateMouseLeave=function(){};
_.V.handleCalendarSubmitDateRange=function(){this.selection&&!X3S(this.selection)&&_.Pi(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.V.updateInvalidState=function(){var G=function(e,r){r?e.setAttribute("invalid",""):e.removeAttribute("invalid")};
G(this.startDateInput,this.isStartDateInvalid);G(this.endDateInput,this.isEndDateInvalid)};
_.V.updateDateStrings=function(){this.selection&&(X3S(this.selection)?a3_(this.selection):(a3_(this.selection.start),a3_(this.selection.end)))};
_.V.updateCalendarSelection=function(G){this.calendar.updateSelection(Object.assign({},G,{selectionState:this.selectionState}))};
_.V.updateIsStartDateInvalidFromBinding=function(G){this.isStartDateInvalid=G.detail.value};
_.V.updateIsEndDateInvalidFromBinding=function(G){this.isEndDateInvalid=G.detail.value};
_.V.updateStartDateStringFromBinding=function(){};
_.V.updateEndDateStringFromBinding=function(){};
_.iY.Object.defineProperties(Nc.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:G4(this.data.dateRangeStart),end:G4(this.data.dateRangeEnd),selection:{start:G4(this.data.selection.start),end:G4(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&f3_(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&kKF(this.selection)}}});
Nc.prototype.resetTextboxes=Nc.prototype.resetTextboxes;Nc.prototype.observeSelection=Nc.prototype.observeSelection;Nc.prototype.dataChanged=Nc.prototype.dataChanged;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Nc.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Nc.prototype,"ytRendererstamperBehavior",void 0);_.B([_.hs("#calendar"),_.x("design:type",Object)],Nc.prototype,"calendar",void 0);
_.B([_.hs("#start-date"),_.x("design:type",Object)],Nc.prototype,"startDateInput",void 0);_.B([_.hs("#end-date"),_.x("design:type",Object)],Nc.prototype,"endDateInput",void 0);_.B([_.n(),_.x("design:type",Object)],Nc.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],Nc.prototype,"selection",void 0);_.B([_.n(),_.x("design:type",String)],Nc.prototype,"selectionState",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Nc.prototype,"calendarConfig",null);
_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Nc.prototype,"errorMessage",null);_.B([_.d("selection"),_.x("design:type",Object),_.x("design:paramtypes",[])],Nc.prototype,"startDate",null);_.B([_.d("selection"),_.x("design:type",Object),_.x("design:paramtypes",[])],Nc.prototype,"endDate",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Nc.prototype,"dataChanged",null);
_.B([_.Me("selection","selectionState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Nc.prototype,"observeSelection",null);_.B([_.Me("selectionState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Nc.prototype,"resetTextboxes",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],Nc);
_.A(Nc,"ytd-date-period-picker-renderer",function(){if(AWn!==void 0)return AWn;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return AWn=G},{mode:1});var LH=function(){var G=_.m.apply(this,arguments)||this;var e={};G.actionMap=(e["ytd-date-period-picker-apply"]="handleDateRangeUpdated",e);return G};
_.K(LH,_.m);LH.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
LH.prototype.handleDateRangeUpdated=function(){};
_.B([_.n(),_.x("design:type",Object)],LH.prototype,"data",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],LH.prototype,"actionHandlerBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],LH.prototype,"rendererstamperBehavior",void 0);_.B([_.c({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],LH);
_.A(LH,"ytd-report-history-section-header-renderer",function(){if(yWE!==void 0)return yWE;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return yWE=G},{mode:1});var PkW;var UJW;var z8w;var GE=function(){return _.m.apply(this,arguments)||this};
_.K(GE,_.m);_.iY.Object.defineProperties(GE.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var G,e;return((G=this.data)==null?0:(e=G.icon)==null?0:e.iconType)?_.Ne(this.data.icon.iconType):""}}});
_.B([_.n(),_.x("design:type",Object)],GE.prototype,"data",void 0);_.B([_.d("data"),_.x("design:type",String),_.x("design:paramtypes",[])],GE.prototype,"icon",null);_.B([_.c({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],GE);
_.A(GE,"ytd-report-history-table-text-cell-renderer",function(){if(z8w!==void 0)return z8w;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return z8w=G},{mode:1});var eH=function(){return _.m.apply(this,arguments)||this};
_.K(eH,_.m);eH.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],eH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],eH.prototype,"data",void 0);_.B([_.c({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],eH);
_.A(eH,"ytd-report-history-table-reason-cell-renderer",function(){if(UJW!==void 0)return UJW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return UJW=G},{mode:1});var rG=function(){return _.m.apply(this,arguments)||this};
_.K(rG,_.m);rG.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"}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],rG.prototype,"rendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],rG.prototype,"data",void 0);_.B([_.c({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],rG);
_.A(rG,"ytd-report-history-table-cell-renderer",function(){if(PkW!==void 0)return PkW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);
return PkW=G},{mode:1});var Won;var Z8=function(){var G=_.m.apply(this,arguments)||this;G.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 G};
_.K(Z8,_.m);Z8.prototype.onDataChanged=function(){var G;if((G=this.data)==null?0:G.style)this.componentStyle=this.getStyleName(this.data.style)};
Z8.prototype.getCellForColumn=function(G){return this.cells.find(function(e){var r;return((r=_.a(e==null?void 0:e.cell,z2E)||_.a(e==null?void 0:e.cell,UwC))==null?void 0:r.columnId)===G.type})};
Z8.prototype.getClassForColumn=function(G){switch(G){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
Z8.prototype.getStyleName=function(G){switch(G){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.iY.Object.defineProperties(Z8.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var G;return(((G=this.data)==null?void 0:G.cells)||[]).map(function(e){return _.a(e,P_S)})}}});
Z8.prototype.onDataChanged=Z8.prototype.onDataChanged;_.B([_.n(),_.x("design:type",Object)],Z8.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Array)],Z8.prototype,"columnRenderData",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],Z8.prototype,"componentStyle",void 0);_.B([_.d("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],Z8.prototype,"cells",null);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Z8.prototype,"onDataChanged",null);_.B([_.c({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],Z8);
_.A(Z8,"ytd-report-history-table-row-renderer",function(){if(Won!==void 0)return Won;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Won=G},{mode:1});var N4n;var Lo3;var I3s={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},p3a={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var Oa=function(){return _.m.apply(this,arguments)||this};
_.K(Oa,_.m);Oa.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"}}}}}};
Oa.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.iY.Object.defineProperties(Oa.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.columns)?caf(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return nks(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var G=this.tableSpec,e=I3s;e=e===void 0?p3a:e;e=mHq(G.columnDimensions,G.columnsToShow||[],e);G=0;e=_.h(e);for(var r=e.next();!r.done;r=e.next())r=r.value,G+=r.minWidth+r.paddingLeft+r.paddingRight;return G}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.B([_.k(_.eP),_.x("design:type",Object)],Oa.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Oa.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Oa.prototype,"data",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Oa.prototype,"tableSpec",null);_.B([_.d("tableSpec"),_.x("design:type",Array),_.x("design:paramtypes",[])],Oa.prototype,"columnRenderData",null);
_.B([_.d("tableSpec"),_.x("design:type",Number),_.x("design:paramtypes",[])],Oa.prototype,"totalMinWidth",null);_.B([_.d("totalMinWidth"),_.x("design:type",String),_.x("design:paramtypes",[])],Oa.prototype,"tableWidthStyle",null);_.B([_.c({is:"ytd-table-renderer",disableElementRegistration:!0})],Oa);
_.A(Oa,"ytd-table-renderer",function(){if(Lo3!==void 0)return Lo3;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Lo3=G},{mode:1});var MY=function(){return _.m.apply(this,arguments)||this};
_.K(MY,_.m);MY.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}}}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],MY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],MY.prototype,"data",void 0);_.B([_.c({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],MY);
_.A(MY,"ytd-report-reason-history-modal-renderer",function(){if(N4n!==void 0)return N4n;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return N4n=G},{mode:1});var Gdc;var eMj;var rkv;var VA=function(){return _.m.apply(this,arguments)||this};
_.K(VA,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],VA.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],VA.prototype,"data",void 0);_.B([_.c({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],VA);
_.A(VA,"ytd-profile-column-stats-entry-renderer",function(){if(rkv!==void 0)return rkv;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return rkv=G},{mode:1});var Z4y;var h$=function(){return _.m.apply(this,arguments)||this};
_.K(h$,_.m);h$.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],h$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],h$.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],h$.prototype,"data",void 0);_.B([_.c({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],h$);
_.A(h$,"ytd-profile-column-stats-renderer",function(){if(Z4y!==void 0)return Z4y;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Z4y=G},{mode:1});var O4W;var TE=function(){return _.m.apply(this,arguments)||this};
_.K(TE,_.m);_.iY.Object.defineProperties(TE.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.useThumbnailSize)return 80;var e,r;G=(e=this.data)==null?void 0:(r=e.thumbnail)==null?void 0:r.thumbnails;var Z;return G&&((Z=G[0])==null?void 0:Z.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.useThumbnailSize)return 80;var e,r;G=(e=this.data)==null?void 0:(r=e.thumbnail)==null?void 0:r.thumbnails;var Z;return G&&((Z=G[0])==null?void 0:Z.height)||80}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],TE.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],TE.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],TE.prototype,"componentStyle",void 0);_.B([_.d("data.useThumbnailSize"),_.x("design:type",Object),_.x("design:paramtypes",[])],TE.prototype,"thumbnailWidth",null);
_.B([_.d("data.useThumbnailSize"),_.x("design:type",Object),_.x("design:paramtypes",[])],TE.prototype,"thumbnailHeight",null);_.B([_.c({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],TE);
_.A(TE,"ytd-profile-column-user-info-renderer",function(){if(O4W!==void 0)return O4W;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return O4W=G},{mode:1});var D8=function(){return _.m.apply(this,arguments)||this};
_.K(D8,_.m);D8.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]]"}}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],D8.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],D8.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],D8.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],D8.prototype,"componentStyle",void 0);_.B([_.c({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],D8);
_.A(D8,"ytd-profile-column-renderer",function(){if(eMj!==void 0)return eMj;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return eMj=G},{mode:1});var Ea=function(){var G=_.m.apply(this,arguments)||this;G.componentStyle="NON_CENTERED_PROFILE";return G};
_.K(Ea,_.m);Ea.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
Ea.prototype.getIcon=function(G){return G?"settings:"+G.toLowerCase():null};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Ea.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Ea.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Ea.prototype,"data",void 0);_.B([_.c({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],Ea);
_.A(Ea,"ytd-page-introduction-renderer",function(){if(Gdc!==void 0)return Gdc;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Gdc=G},{mode:1});var Mdv;var iN=function(){return _.m.apply(this,arguments)||this};
_.K(iN,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],iN.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],iN.prototype,"data",void 0);_.B([_.c({is:"ytd-report-description-renderer",disableElementRegistration:!0})],iN);
_.A(iN,"ytd-report-description-renderer",function(){if(Mdv!==void 0)return Mdv;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Mdv=G},{mode:1});var VdP;var hMW;var bN=function(){return _.m.apply(this,arguments)||this};
_.K(bN,_.m);bN.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],bN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],bN.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],bN.prototype,"data",void 0);_.B([_.c({is:"ytd-video-report-renderer",disableElementRegistration:!0})],bN);
_.A(bN,"ytd-video-report-renderer",function(){if(hMW!==void 0)return hMW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return hMW=G},{mode:1});var T$C;_.te("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.te("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var vd=function(){return _.m.apply(this,arguments)||this};
_.K(vd,_.m);vd.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]]"}}}}}};
vd.prototype.computeMessageStyle=function(G){return G};
vd.prototype.computeButtonOverride=function(G){var e;if((G==null?0:(e=G.style)==null?0:e.value)&&G.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],vd.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],vd.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],vd.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],vd.prototype,"shelf",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],vd.prototype,"panel",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.x("design:type",Boolean)],vd.prototype,"componentStyle",void 0);_.B([_.n({computed:"computeButtonOverride(data)"}),_.x("design:type",Object)],vd.prototype,"buttonOverride",void 0);_.B([_.c({is:"ytd-message-renderer",disableElementRegistration:!0})],vd);
_.A(vd,"ytd-message-renderer",function(){if(T$C!==void 0)return T$C;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return T$C=G},{mode:1});var wG=function(){return _.m.apply(this,arguments)||this};
_.K(wG,_.m);wG.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"}}}};
wG.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
wG.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.iY.Object.defineProperties(wG.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var G,e;return!!(((G=this.data)==null?0:G.header)&&((e=this.data)==null?0:e.table))}}});
wG.prototype.onRequestError=wG.prototype.onRequestError;_.B([_.k(_.eP),_.x("design:type",Object)],wG.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],wG.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],wG.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],wG.prototype,"data",void 0);
_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],wG.prototype,"isUnifiedReportHistory",null);_.B([_.Om("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wG.prototype,"onRequestError",null);_.B([_.c({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],wG);
_.A(wG,"ytd-report-history-section-renderer",function(){if(VdP!==void 0)return VdP;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return VdP=G},{mode:1});var DVW;var $z=function(){var G=_.m.apply(this,arguments)||this;G.answerExpanded=!1;return G};
_.K($z,_.m);$z.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],$z.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],$z.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],$z.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],$z.prototype,"answerExpanded",void 0);_.B([_.c({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],$z);
_.A($z,"ytd-handles-claiming-faq-renderer",function(){if(DVW!==void 0)return DVW;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return DVW=G},{mode:1});var Enw;var i4E=function(){return _.m.apply(this,arguments)||this};
_.K(i4E,_.m);_.B([_.n(),_.x("design:type",Object)],i4E.prototype,"data",void 0);_.B([_.c({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],i4E);
_.A(i4E,"ytd-handles-claiming-faq-section-renderer",function(){if(Enw!==void 0)return Enw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Enw=G},{mode:1});var b4P;var SH=function(){var G=_.m.apply(this,arguments)||this;G.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";G.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";G.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";G.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";G.leftSquiggly=G.leftSquigglyLight;G.rightSquiggly=G.rightSquigglyLight;
G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};G.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return G};
_.K(SH,_.m);_.V=SH.prototype;_.V.updateLeftSquigglyStyle=function(){_.eD(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.V.updateRightSquigglyStyle=function(){_.eD(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.V.ready=function(){var G=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(G)};
_.V.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.set("isDarkTheme",G),G?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.V.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
SH.prototype.updateRightSquigglyStyle=SH.prototype.updateRightSquigglyStyle;SH.prototype.updateLeftSquigglyStyle=SH.prototype.updateLeftSquigglyStyle;_.B([_.n(),_.x("design:type",Object)],SH.prototype,"data",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],SH.prototype,"isDarkTheme",void 0);_.B([_.n(),_.x("design:type",String)],SH.prototype,"leftSquiggly",void 0);_.B([_.n(),_.x("design:type",String)],SH.prototype,"rightSquiggly",void 0);
_.B([_.Me("leftSquiggly"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SH.prototype,"updateLeftSquigglyStyle",null);_.B([_.Me("rightSquiggly"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SH.prototype,"updateRightSquigglyStyle",null);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],SH.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],SH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],SH.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],SH.prototype,"actionButtonOverride",void 0);_.B([_.c({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],SH);
_.A(SH,"ytd-handles-claiming-header-renderer",function(){if(b4P!==void 0)return b4P;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return b4P=G},{mode:1});var vnE;var qY=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};G.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";G.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";G.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";G.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
G.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";G.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";G.image0SquigglyBackground=G.image0LightSquigglyBackground;G.image1SquigglyBackground=G.image1LightSquigglyBackground;G.image3SquigglyBackground=G.image3LightSquigglyBackground;return G};
_.K(qY,_.m);_.V=qY.prototype;_.V.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.V.onDataChanged=function(){this.updateTitleAndImages()};
_.V.onThemeChanged=function(){this.updateTitleAndImages()};
_.V.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.isDarkTheme=G)};
_.V.updateImage0SquigglyBackground=function(){_.eD(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.V.updateImage1SquigglyBackground=function(){_.eD(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.V.updateImage3SquigglyBackground=function(){_.eD(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.V.updateTitleAndImages=function(){var G,e;((G=this.data)==null?void 0:(e=G.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))};
qY.prototype.updateImage3SquigglyBackground=qY.prototype.updateImage3SquigglyBackground;qY.prototype.updateImage1SquigglyBackground=qY.prototype.updateImage1SquigglyBackground;qY.prototype.updateImage0SquigglyBackground=qY.prototype.updateImage0SquigglyBackground;qY.prototype.onThemeChanged=qY.prototype.onThemeChanged;qY.prototype.onDataChanged=qY.prototype.onDataChanged;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],qY.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],qY.prototype,"isDarkTheme",void 0);_.B([_.n(),_.x("design:type",Object)],qY.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],qY.prototype,"title0",void 0);_.B([_.n(),_.x("design:type",Object)],qY.prototype,"title1",void 0);_.B([_.n(),_.x("design:type",Object)],qY.prototype,"title2",void 0);_.B([_.n(),_.x("design:type",Object)],qY.prototype,"title3",void 0);
_.B([_.n(),_.x("design:type",Object)],qY.prototype,"title4",void 0);_.B([_.n(),_.x("design:type",Object)],qY.prototype,"image0",void 0);_.B([_.n(),_.x("design:type",Object)],qY.prototype,"image1",void 0);_.B([_.n(),_.x("design:type",Object)],qY.prototype,"image2",void 0);_.B([_.n(),_.x("design:type",Object)],qY.prototype,"image3",void 0);_.B([_.n(),_.x("design:type",Object)],qY.prototype,"image4",void 0);_.B([_.n(),_.x("design:type",String)],qY.prototype,"image0SquigglyBackground",void 0);
_.B([_.n(),_.x("design:type",String)],qY.prototype,"image1SquigglyBackground",void 0);_.B([_.n(),_.x("design:type",String)],qY.prototype,"image3SquigglyBackground",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qY.prototype,"onDataChanged",null);_.B([_.Me("isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qY.prototype,"onThemeChanged",null);
_.B([_.Me("image0SquigglyBackground"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qY.prototype,"updateImage0SquigglyBackground",null);_.B([_.Me("image1SquigglyBackground"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qY.prototype,"updateImage1SquigglyBackground",null);
_.B([_.Me("image3SquigglyBackground"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qY.prototype,"updateImage3SquigglyBackground",null);_.B([_.c({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],qY);
_.A(qY,"ytd-handles-claiming-title-images-section-renderer",function(){if(vnE!==void 0)return vnE;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return vnE=G},{mode:1});var wIb;var t$=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.K(t$,_.m);t$.prototype.ready=function(){var G=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(G)};
t$.prototype.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&this.set("isDarkTheme",G)};
t$.prototype.onCopyButtonClick=function(){var G=this,e,r,Z;return _.D(function(O){return(e=G.data)!=null&&e.primaryChannelUrl?O.yield(navigator.clipboard.writeText(((r=G.data)==null?0:r.encodedChannelUrl)?G.data.encodedChannelUrl:"https://"+_.mG((Z=G.data)==null?void 0:Z.primaryChannelUrl)),0):O.jumpTo(0)})};
_.B([_.n(),_.x("design:type",Object)],t$.prototype,"data",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],t$.prototype,"ytComponentBehavior",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],t$.prototype,"isDarkTheme",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],t$.prototype,"ytActionHandlerBehavior",void 0);_.B([_.c({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],t$);
_.A(t$,"ytd-handles-claiming-update-social-renderer",function(){if(wIb!==void 0)return wIb;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return wIb=G},{mode:1});var $VE;var gG=function(){var G=_.m.apply(this,arguments)||this;G.JSC$16174_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";G.JSC$16174_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};G.squigglyBackground=G.JSC$16174_squigglyBackgroundLight;return G};
_.K(gG,_.m);gG.prototype.updateSquigglyBackgroundStyle=function(){_.eD(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
gG.prototype.ready=function(){var G=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",G);this.squigglyBackground=G?this.JSC$16174_squigglyBackgroundDark:this.JSC$16174_squigglyBackgroundLight};
gG.prototype.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.set("isDarkTheme",G),this.squigglyBackground=G?this.JSC$16174_squigglyBackgroundDark:this.JSC$16174_squigglyBackgroundLight)};
gG.prototype.updateSquigglyBackgroundStyle=gG.prototype.updateSquigglyBackgroundStyle;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],gG.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],gG.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],gG.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],gG.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],gG.prototype,"isDarkTheme",void 0);_.B([_.n(),_.x("design:type",String)],gG.prototype,"squigglyBackground",void 0);_.B([_.Me("squigglyBackground"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gG.prototype,"updateSquigglyBackgroundStyle",null);_.B([_.c({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],gG);
_.A(gG,"ytd-handles-claiming-vanity-info-renderer",function(){if($VE!==void 0)return $VE;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return $VE=G},{mode:1});var StE;var lN=function(){var G=_.m.apply(this,arguments)||this;G.JSC$16177_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";G.JSC$16177_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";G.squigglyBackground=G.JSC$16177_squigglyBackgroundLight;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.K(lN,_.m);_.V=lN.prototype;_.V.ready=function(){var G=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(G)};
_.V.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.set("isDarkTheme",G),this.squigglyBackground=G?this.JSC$16177_squigglyBackgroundDark:this.JSC$16177_squigglyBackgroundLight)};
_.V.updateSquigglyBackgroundStyle=function(){_.eD(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.V.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.V.detached=function(){this.stop()};
_.V.stop=function(){this.playerElement.stop()};
_.V.setupVideoPlayer=function(){var G=this,e,r;return _.D(function(Z){e=G.data.videoId;r="http://i1.ytimg.com/vi/"+e+"/maxresdefault.jpg";G.playerElement.loadVideoWithPlayerVars({video_id:e,iurlhq:r});_.HL(Z)})};
lN.prototype.onDataChanged=lN.prototype.onDataChanged;lN.prototype.updateSquigglyBackgroundStyle=lN.prototype.updateSquigglyBackgroundStyle;_.B([_.n({value:!1}),_.x("design:type",Boolean)],lN.prototype,"isDarkTheme",void 0);_.B([_.n(),_.x("design:type",String)],lN.prototype,"squigglyBackground",void 0);_.B([_.hs("#player"),_.x("design:type",Object)],lN.prototype,"playerElement",void 0);_.B([_.n(),_.x("design:type",Object)],lN.prototype,"data",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],lN.prototype,"ytActionHandlerBehavior",void 0);_.B([_.Me("squigglyBackground"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lN.prototype,"updateSquigglyBackgroundStyle",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lN.prototype,"onDataChanged",null);
_.B([_.c({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],lN);
_.A(lN,"ytd-handles-claiming-video-item-renderer",function(){if(StE!==void 0)return StE;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return StE=G},{mode:1});var qtC;var jH=function(){var G=_.DQ.apply(this,arguments)||this;G.dragging=!1;G.dragMouseStart=0;G.dragOffsetStart=0;G.containerWidthDiff=0;G.boundPrevClick=function(){G.set("offset",RY(G,G.offset-(G.scrollDistance||320)))};
G.boundNextClick=function(){G.set("offset",RY(G,G.offset+(G.scrollDistance||320)))};
G.boundScrollContainerMouseDown=function(e){G.dragMouseStart=e.clientX;G.dragOffsetStart=G.offset;G.dragging=!0};
G.boundScrollContainerDrag=function(e){G.dragging&&G.set("offset",RY(G,G.dragOffsetStart-(e.clientX-G.dragMouseStart)))};
G.boundMouseUp=function(){G.onMouseUp()};
G.boundWheelScroll=function(e){var r=0;Math.abs(e.deltaX)>=Math.abs(e.deltaY)?r=e.deltaX:e.shiftKey&&(r=e.deltaY);r!==0&&(G.offset+=r,e.stopPropagation(),e.preventDefault())};
G.boundChipCloudChipScrollIntoView=function(e){(e=e.detail)&&G.scrollChipIntoView(e)};
return G};
_.K(jH,_.DQ);jH.prototype.attached=function(){var G=_.z1(this.hostElement).querySelector("#scroll-container");G.addEventListener("wheel",this.boundWheelScroll);G.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);G.style.touchAction="pan-y";G.addEventListener("pointerdown",this.boundScrollContainerMouseDown);G.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
jH.prototype.detached=function(){var G=_.z1(this.hostElement).querySelector("#scroll-container");G.removeEventListener("wheel",this.boundWheelScroll);G.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);G.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);G.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
jH.prototype.reset=function(){this.set("offset",0);_.DE(this,this.setContainerWidthDiff);_.DE(this,this.setButtonsState)};
var RY=function(G,e){return Math.min(Math.max(e,0),G.containerWidthDiff)};
_.V=jH.prototype;_.V.onMouseUp=function(){this.dragging=!1};
_.V.transformContainer=function(){this.offset=RY(this,this.offset);var G=_.xZ("HTML_DIR")==="rtl"?"":"-";_.z1(this.hostElement).querySelector("#chips").style.transform="translateX("+G+this.offset+"px)";_.DE(this,this.setButtonsState)};
_.V.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=RY(this,this.offset));this.atStart=this.offset<=0};
_.V.setContainerWidthDiff=function(){var G=_.z1(this.hostElement).querySelector("#scroll-container"),e=_.z1(this.hostElement).querySelector("#chips");G&&e&&(this.containerWidthDiff=e.clientWidth-G.clientWidth)};
_.V.scrollChipIntoView=function(G){var e=_.z1(this.hostElement).querySelector("#scroll-container");if(e){var r=this.atStart?0:106,Z=this.atEnd?0:106;G.offsetLeft<this.offset+r?this.offset=RY(this,G.offsetLeft-r):G.offsetLeft+G.clientWidth>this.offset+e.clientWidth-Z&&(this.offset=RY(this,G.offsetLeft+G.clientWidth+Z-e.clientWidth))}};
jH.prototype.transformContainer=jH.prototype.transformContainer;_.B([_.n({value:0}),_.x("design:type",Number)],jH.prototype,"offset",void 0);_.B([_.n({value:!0,reflectToAttribute:!0}),_.x("design:type",Boolean)],jH.prototype,"atStart",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],jH.prototype,"atEnd",void 0);_.B([_.n(),_.x("design:type",Number)],jH.prototype,"scrollDistance",void 0);
_.B([_.Me("offset"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jH.prototype,"transformContainer",null);_.B([_.Em()],jH);var tdv;var gnc;var jtW=_.y(function(G){var e=G.data;G=_.h(_.XQ(!1,void 0,"bob3J"));var r=G.next().value,Z=G.next().value;G=function(M){if((e==null?void 0:e().state)!==1){var T,E;(E=(T=e()).onTap)==null||E.call(T,M)}};
var O={};return _.v("chip-shape",{class:"ytChipShapeHost","on:focusin":_.ev(function(){var M=_.v_().resolve(_.bq(_.T6));if(M){Z(M.isKeyBoardInUse());var T,E;(E=(T=e()).onFocusIn)==null||E.call(T)}return!1}),
"on:focusout":_.ev(function(){Z(!1);return!1})},_.v(la3,{shouldWrapInButton:function(){return e().type!==2},
selected:function(){return e().state===0},
onClick:G,isDropdown:function(){return e().type===1},
accessibilityLabel:function(){return e().type===1?void 0:e().accessibilityLabel}},_.v("div",{class:_.LC("ytChipShapeChip",function(){a:switch(e==null?void 0:e().state){case 0:var M="ytChipShapeActive";
break a;case 1:M="ytChipShapeDisabled";break a;default:M="ytChipShapeInactive"}return M},function(){var M=e().type===1||e().type===2,T=e();
return M||T!=null&&T.startIcon?T==null||!T.startIcon||T!=null&&T.text?M?"ytChipShapeEndIconPadding":(T==null?0:T.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var M=e();
if((M==null?void 0:M.style)===0&&(M==null?void 0:M.state)===0){var T;M=((T=_.v_().resolve(_.bq(_.Ig)))==null?0:T())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else M="";return M},(O.ytChipShapeFocused=function(){var M;
return r()&&((M=e())==null?void 0:M.state)!==1},O))},_.v(_.S,{cond:function(){return e().startIcon},
then:function(){return _.v(_.V$,{icon:function(){var M;return(M=e())==null?void 0:M.startIcon},
className:_.LC(function(){return e().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var M=e(),T,E=(T=_.v_().resolve(_.bq(_.Ig)))==null?void 0:T();
return(M==null?void 0:M.style)===0&&(M==null?void 0:M.state)===0&&E?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return e().text},_.v(RMC,{shape:e,
onClick:G}),_.v(_.ED,{model:{borderRadius:"8px"}}))))},"Jc");
jtW.idomCompat=!0;var la3=_.y(function(G){var e=_.ev(function(r){G.onClick(r);return!1});
return _.v(_.S,{cond:G.shouldWrapInButton,then:function(){return _.v("button",{class:"ytChipShapeButtonReset","on:click":e,role:function(){return G.isDropdown()?"combobox":"tab"},
"aria-label":G.accessibilityLabel,"aria-selected":G.selected},G.children)},
else:function(){return G.children}})},"Kc"),RMC=_.y(function(G){var e=G.shape;
var r=G.onClick;var Z=_.ev(function(O){r(O);return!1});
return _.v(_.nz,null,_.v(_.pz,{when:function(){return e().type===1}},function(){return _.v(_.V$,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.v(_.pz,{when:function(){return e().type===2}},function(){return _.v("button",{class:"ytChipShapeButtonReset",
"on:click":Z},_.v(_.V$,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.v(_.pz,{when:function(){return e().type===0}},function(){return _.v(_.$Z,null)}))},"Lc");_.J_(jtW,"chip-shape",{props:{data:_.N6}});var aY=function(){var G=_.m.apply(this,arguments)||this;G.disableDeselectEvent=!1;G.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return G};
_.K(aY,_.m);_.V=aY.prototype;_.V.onSelectChipCommand=function(G){if(!this.selected&&this.data&&(G=_.a(G,r93),G.targetId&&G.targetId===this.data.targetId))this.onTap()};
_.V.onFilterChipTransformCommand=function(G){if(!this.selected&&this.data){var e;(G=(e=_.a(G,Upc))==null?void 0:e.chipUniqueId)&&G===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.V.dataChanged=function(){var G=this;_.DE(this,function(){G.data&&G.data.isSelected&&!G.selected&&(G.scrollChipIntoView(),G.onTap())})};
_.V.computeChipStyle=function(G){return G!=null?G:"STYLE_DEFAULT"};
_.V.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.Pi(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.Pi(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.V.onFocus=function(){var G=_.v_().resolve(_.bq(_.T6));G&&G.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.V.scrollChipIntoView=function(){_.xy(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.iY.Object.defineProperties(aY.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return xHa({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
aY.prototype.onFocus=aY.prototype.onFocus;aY.prototype.onTap=aY.prototype.onTap;aY.prototype.dataChanged=aY.prototype.dataChanged;_.B([_.k(_.dh),_.x("design:type",Object)],aY.prototype,"ironButtonState",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],aY.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],aY.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],aY.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.fS),_.x("design:type",Object)],aY.prototype,"ironA11yKeysBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],aY.prototype,"disableDeselectEvent",void 0);_.B([_.n(),_.x("design:type",Object)],aY.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("data.icon"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],aY.prototype,"hasIcon",null);
_.B([_.n({reflectToAttribute:!0}),_.d("data.uniqueId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],aY.prototype,"isGnomeChip",null);_.B([_.n({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.x("design:type",String)],aY.prototype,"chipStyle",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],aY.prototype,"selected",void 0);
_.B([_.d("data","selected"),_.x("design:type",Object),_.x("design:paramtypes",[])],aY.prototype,"chipShapeData",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aY.prototype,"dataChanged",null);_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aY.prototype,"onTap",null);
_.B([_.Om("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aY.prototype,"onFocus",null);_.B([_.aR({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],aY);
_.A(aY,"yt-chip-cloud-chip-renderer",function(){if(gnc===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;tdv===void 0&&(tdv=document.createElement("template"));var Z=tdv;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);gnc=G}G=gnc;return G},{mode:2});var UHa=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.aay=_.y(function(G){function e(){if(UHa.has(G.data().displayType)){var w=!Z(),q;if((q=G.disableDeselection)==null||!q.call(G)||w){G.data().selected=w;q=Object.assign({},T(),{selected:w});E(q);var t;(t=G.callback)==null||t.call(G,q,w)}}}
var r=_.hT("chip-view-model"),Z=function(){var w,q;return!!(((w=G.selected)==null?void 0:w.call(G))!==void 0?(q=G.selected)==null?0:q.call(G):T().selected)},O=_.h(_.Ob(G.data)),M=O.next().value;
O=O.next().value;var T=M,E=O,b=_.hI(P5F,function(){return G.data().chipEntityKey||""});
return _.v("chip-view-model",{class:"ytChipViewModelHost",el:r},_.v(jtW,{data:function(){var w,q=Object.assign({},T(),{selected:Z()}),t=b(),g=(w=G.disableDeselection)==null?void 0:w.call(G);a:switch(q.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":w=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":w=3;break a;default:w=0}return{text:(t==null?void 0:t.text)||q.text,state:q.disabled?1:q.selected?0:2,type:w,onTap:z0U(q,r,e,g),
accessibilityLabel:q.accessibilityLabel||q.text}}}))},"Mc");
_.aay.idomCompat={callbacks:{callback:!0}};_.Xu=_.y(function(G){var e=G.data;var r=G.callback;var Z=G.selectionBehavior;var O=G.disableChipsScrollAnimation;var M=_.T2("div");G=_.h(_.XQ(!0,void 0,"aUEsOc"));var T=G.next().value,E=G.next().value;G=_.h(_.XQ(!1,void 0,"V0aKld"));var b=G.next().value,w=G.next().value,q=!1,t=0;_.YZ(function(){E(X());w(H())});
G=_.h(_.Ob(function(){var e$={};return e().autoselectedChipIndex!=null?(e$[e().autoselectedChipIndex]=!0,e$):{}}));
var g=G.next().value,l=G.next().value,X=function(){var e$=M.value;return e$==null||e$.scrollLeft-1<=0},H=function(){var e$=M.value;
return e$==null?!1:e$.scrollLeft+1>=(e$==null?NaN:e$.scrollWidth)-(e$==null?NaN:e$.clientWidth)},I=function(){return e().isHorizontallyScrollable},C=function(e$){M.value!=null&&(_.xZ("HTML_DIR")==="rtl"&&(e$=-e$),M.value.scrollBy({left:e$,
behavior:(O==null?0:O())?"instant":"smooth"}))},u=function(){C(-320)},P=function(){C(320)},F=_.ev(function(e$){q=!0;
t=e$.clientX}),J=_.ev(function(e$){if(q){e$=e$.clientX;
var Dq=e$-t;t=e$;var bF;(bF=M.value)==null||bF.scrollBy({left:-Dq})}}),U=_.ev(function(){var e$=X(),Dq=H();
e$!==T()&&E(e$);Dq!==b()&&w(Dq)});
_.iC("pointerup",function(){q&&(q=!1)});
return _.v("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.v(_.qR,{contentId:function(){return e().contentId},
useModernStyle:!0},function(){var e$={},Dq={};return _.v("div",null,_.v(_.S,{cond:function(){return e().title},
then:function(){return _.v("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.v("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return e().title}),_.v(_.E2,{data:function(){return e().overflowButton}},{buttonViewModel:_.wF}))}}),_.v("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.v(_.S,{cond:function(){return e().previousButton},
then:function(){var bF={};return _.v("div",{class:_.LC("ytChipsShelfViewModelLeftArrowContainer",(bF.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return T()},bF))},_.v(_.E2,{data:function(){return e().previousButton}},{buttonViewModel:function(Kf){return _.v(_.wF,{data:Kf.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:u})}}))}}),_.v("div",{el:M,
"on:pointerdown":F,"on:pointermove":J,"on:scroll":U,class:_.LC("ytChipsShelfViewModelChipsScrollContainer",(e$.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=I,e$))},_.v("div",{class:_.LC("ytChipsShelfViewModelChipsContainer",(Dq.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=I,Dq.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,Dq)),role:"tablist"},_.v(_.E2,{data:function(){return e().contents}},{chipViewModel:function(bF,Kf){return _.v("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.v(_.aay,{data:bF.data,
callback:function(ti,Ry){var nf=Kf(),k4,SE=(k4=Z==null?void 0:Z())!=null?k4:0;SE===1||SE===2?(k4={},l((k4[nf]=Ry,k4))):(k4={},l(Object.assign({},g(),(k4[nf]=Ry,k4))));r==null||r(ti,Ry,nf)},
disableDeselection:function(){return(Z==null?void 0:Z())===1},
selected:function(){return!!g()[Kf()]}}))}}))),_.v(_.S,{cond:function(){return e().nextButton},
then:function(){var bF={};return _.v("div",{class:_.LC("ytChipsShelfViewModelRightArrowContainer",(bF.ytChipsShelfViewModelRightArrowContainerIsHidden=b,bF))},_.v(_.E2,{data:function(){return e().nextButton}},{buttonViewModel:function(Kf){return _.v(_.wF,{data:Kf.data,
className:"ytChipsShelfViewModelRightArrow",onClick:P})}}))}})))}))},"Oc");
_.Xu.idomCompat={callbacks:{callback:!0}};var XIc=_.y(function(G){var e=G.data;return _.v("ytd-ai-response-box-view-model",{class:_.LC("ytdAiResponseBoxViewModelHost")},_.v("div",{class:"ytdAiResponseBoxViewModelResponseMessageContainer"},_.v(_.Wh,{text:function(){return e().responseMessage}})),_.v(_.E2,{data:function(){return e().chipsShelf}},{chipsShelfViewModel:function(r){return _.v("div",{class:"ytdAiResponseBoxViewModelChipsShelfContainer"},_.v(_.Xu,{data:r.data}))}}))},"Pc");var KDb;KDb=Object.assign({},{continuation:mYl,download:sYE,canvas:S1a,reportChannelAbuse:J$E,ui:twa,share:BGE,talkToRecs:PNE,watch:Pt,ypc:GPE,radioButtonGroup:wZy,collabInviteLink:bJp},nzC,{voiceSearch:RK_,shorts:xe});_.K5=lZ(KDb);_.faS=RV(_.K5);_.kdE=(0,_.faS)(_.K5.talkToRecs,{talkToRecsStateSelector:function(G){return G}});_.J_(_.y(function(G){var e=G.data;var r=_.Eb(_.kdE.talkToRecsStateSelector),Z=_.h(_.Ob(function(){var b,w,q;var t=e();var g=r();if(t=t.onUpdateText){var l;t=(l=_.a(t,Ngl))==null?void 0:l.stepId}else t=void 0;l=t;g=g==null?void 0:g.stepStates;if(l&&g){var X,H;g=(X=g[l])==null?void 0:(H=X.userQuery)==null?void 0:H.userQuery}else g=void 0;return(q=(w=g)!=null?w:(b=e().textInputValue)==null?void 0:b.content)!=null?q:""}));
G=Z.next().value;var O=Z.next().value,M=function(b){var w=e().onUpdateText;w&&_.HQ(w,{form:{userQuery:b}})},T=_.lE(function(b){M(b)},150);
Z=_.ev(function(b){b=b.target.value.trim();O(b);T(b);return!1});
var E=_.ev(function(b){if(b.key==="Enter"){M(b.target.value.trim());var w=_.a(e().submitButton,_.G$);b=void 0;var q;if(w==null?0:(q=w.loggingDirectives)==null?0:q.trackingParams)b=_.b1(w.loggingDirectives.trackingParams);(q=w==null?void 0:w.onTap)&&_.HQ(q,{clickedVisualElement:b})}return!1});
return _.v("ytd-feed-customization-form-view-model",{class:"ytdFeedCustomizationFormViewModelHost"},_.v("div",{class:"ytdFeedCustomizationFormViewModelHeaderContainer"},_.v(_.V$,{icon:"SPARKLE_FILLED"}),_.v("div",{class:"ytdFeedCustomizationFormViewModelTitle",role:"heading","aria-level":2},function(){var b;return(b=e().title)==null?void 0:b.content})),_.v("div",{class:"ytdFeedCustomizationFormViewModelBodyContainer"},_.v("div",{class:"ytdFeedCustomizationFormViewModelInputContainer"},_.v("input",
{class:"ytdFeedCustomizationFormViewModelInput",
type:"text",placeholder:function(){var b;return(b=e().textInputPlaceholder)==null?void 0:b.content},
"prop:value":G,"on:input":Z,"on:keyup":E,maxlength:250}),_.v(_.E2,{data:function(){return e().submitButton}},{buttonViewModel:function(b){return _.v("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.v(_.wF,{data:b.data}))}})),_.v(_.E2,{data:function(){return e().contents}},{aiResponseBoxViewModel:function(b){return _.v("div",{class:"ytdFeedCustomizationFormViewModelResponseContainer"},_.v(XIc,{data:b.data}))}})))},"Qc"),"ytd-feed-customization-form-view-model",{props:{data:_.N6}});var H4P=_.oH.persistentPanelVisibleSelector,f5=function(){var G=_.m.apply(this,arguments)||this;G.isDarkTheme=!1;G.notSticky=!1;G.transparentBackground=!1;G.shouldHide=!1;G.disableSticky=!1;G.fluidWidth=!1;G.isClipList=!1;G.defaultChipIndex=0;G.isPlaylist=!1;G.playlistVotingAnimationEnabled=_.R("web_enable_voting_animation");G.toolbarHeight=0;G.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return G};
_.K(f5,_.m);_.V=f5.prototype;
_.V.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}}}},selectedChipContent:{id:"selected-chip-content",mapping:{feedCustomizationFormViewModel:{component:"ytd-feed-customization-form-view-model"}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.V.attached=function(){var G=this;document.addEventListener("scroll",_.ZQ(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(r){G.handleIntersect(r)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){G.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.V.detached=function(){var G;(G=this.intersectionObserver)==null||G.disconnect();var e;(e=this.resizeObserver)==null||e.disconnect();document.removeEventListener("scroll",_.ZQ(this,this.updateChipBarWidthAndTop))};
_.V.dataChanged=function(){var G=this,e,r,Z;((Z=_.a((e=this.data)==null?void 0:(r=e.contents)==null?void 0:r[0],MG3))==null?void 0:Z.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var O=this.findSelectedChipIndex();this.selectedIndex!==O&&(this.selectedIndex=-1);_.DE(this,function(){G.selectedIndex=O;G.updateSelectedChipContent(G.selectedIndex);G.updating=!1;G.ytScrollableChipCloudBehavior.reset()})};
_.V.findSelectedChipIndex=function(){var G;if((G=this.data)==null||!G.contents)return 0;G=this.data.contents;for(var e=0;e<G.length;e++){var r=void 0;if((r=_.a(G[e],MG3))==null?0:r.isSelected)return e}return 0};
_.V.computeStyle=function(G){return G};
_.V.handleChipCloudChipSelectAction=function(G){G=this.JSC$16215_chipsSelector.indexOf(G);G>-1&&this.JSC$16215_chipsSelector.selectIndex(G)};
_.V.updateSelectedChipContent=function(G){var e;if((e=this.data)==null||!e.contents||G<0||G>=this.data.contents.length)this.selectedChipContent=void 0;else{var r;this.selectedChipContent=(r=_.a(this.data.contents[G],MG3))==null?void 0:r.content}};
_.V.handleChipCloudChipDeselectAction=function(){if(_.R("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var G,e,r,Z=(r=_.a((G=this.data)==null?void 0:(e=G.contents)==null?void 0:e[0],MG3))==null?void 0:r.navigationEndpoint;Z&&_.Pi(this.hostElement,"yt-browse-section-list-reload-endpoint",[Z]);this.JSC$16215_chipsSelector.selectIndex(this.defaultChipIndex);this.updateSelectedChipContent(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.V.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.V.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.V.onResize=function(){this.updateLayout()};
_.V.updateLayout=function(){var G=this.ytScrollableChipCloudBehavior;_.DE(G,G.setContainerWidthDiff);G=this.ytScrollableChipCloudBehavior;_.DE(G,G.setButtonsState)};
_.V.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.V.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.V.handleIntersect=function(G){this.notSticky=this.isChannelPageGrid||this.disableSticky||G[0].intersectionRatio===1};
_.V.updateDimensions=function(){var G=this.ytRendererBehavior.parentComponent;if(G){var e,r=(e=G.headerElement)!=null?e:G;_.eD(this.hostElement,{"--ytd-rich-grid-chips-bar-width":r.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.V.updateSelectedIndexFromBinding=function(G){this.selectedIndex=G.detail.value};
_.V.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var G;(G=this.sortFilterHeaderRendererElement)==null||G.setAttribute("is-playlist-page-with-filters","")}};
_.V.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(NGl(!this.notSticky))};
_.iY.Object.defineProperties(f5.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 G,e,r=(G=this.data)==null?void 0:(e=G.contents)==null?void 0:e.find(function(Z){return _.a(Z,E9C)});
return{sortFilterHeaderRenderer:_.a(r,E9C)}}}});
f5.prototype.dispatchChipBarIsSticky=f5.prototype.dispatchChipBarIsSticky;f5.prototype.isPlaylistPageChanged=f5.prototype.isPlaylistPageChanged;f5.prototype.updateChipBarWidthAndTop=f5.prototype.updateChipBarWidthAndTop;f5.prototype.onResize=f5.prototype.onResize;f5.prototype.onPersistentPanelVisibleChanged=f5.prototype.onPersistentPanelVisibleChanged;f5.prototype.onGuideIsExpandedChanged=f5.prototype.onGuideIsExpandedChanged;f5.prototype.dataChanged=f5.prototype.dataChanged;
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],f5.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],f5.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],f5.prototype,"actionHandlerBehavior",void 0);_.B([_.k(_.CS),_.x("design:type",Object)],f5.prototype,"ironResizableBehavior",void 0);_.B([_.k(),_.x("design:type",jH)],f5.prototype,"ytScrollableChipCloudBehavior",void 0);
_.B([_.k(_.A5),_.x("design:type",Object)],f5.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],f5.prototype,"data",void 0);_.B([_.n({value:0}),_.x("design:type",Number)],f5.prototype,"selectedIndex",void 0);_.B([_.n({value:320}),_.x("design:type",Number)],f5.prototype,"scrollDistance",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],f5.prototype,"isDarkTheme",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],f5.prototype,"notSticky",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],f5.prototype,"transparentBackground",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.x("design:type",String)],f5.prototype,"componentStyle",void 0);_.B([_.n({selector:_.sq$}),_.x("design:type",Boolean)],f5.prototype,"guideIsExpanded",void 0);
_.B([_.n({selector:H4P}),_.x("design:type",Boolean)],f5.prototype,"persistentPanelVisible",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],f5.prototype,"shouldHide",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],f5.prototype,"disableSticky",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],f5.prototype,"fluidWidth",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],f5.prototype,"isClipList",void 0);
_.B([_.n(),_.x("design:type",Object)],f5.prototype,"defaultChipIndex",void 0);_.B([_.n(),_.x("design:type",Object)],f5.prototype,"selectedChipContent",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],f5.prototype,"isPlaylist",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],f5.prototype,"playlistVotingAnimationEnabled",void 0);_.B([_.hs("#chips"),_.x("design:type",Object)],f5.prototype,"JSC$16215_chipsSelector",void 0);
_.B([_.hs("ytd-sort-filter-header-renderer"),_.x("design:type",HTMLElement)],f5.prototype,"sortFilterHeaderRendererElement",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],f5.prototype,"updating",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],f5.prototype,"dataChanged",null);
_.B([_.Me("guideIsExpanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],f5.prototype,"onGuideIsExpandedChanged",null);_.B([_.Me("persistentPanelVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],f5.prototype,"onPersistentPanelVisibleChanged",null);_.B([_.Om("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],f5.prototype,"onResize",null);
_.B([_.iD("isChannelPageGrid","disableSticky","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],f5.prototype,"updateChipBarWidthAndTop",null);_.B([_.d("componentStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],f5.prototype,"isChannelPageGrid",null);_.B([_.d("componentStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],f5.prototype,"isHashtagLandingPage",null);
_.B([_.Me("isPlaylistPage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],f5.prototype,"isPlaylistPageChanged",null);_.B([_.d("componentStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],f5.prototype,"isPlaylistPage",null);_.B([_.d("componentStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],f5.prototype,"isDisableDeselectEvent",null);
_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],f5.prototype,"sortFilterHeaderRendererData",null);_.B([_.n({reflectToAttribute:!0,selector:_.mGA}),_.x("design:type",String)],f5.prototype,"frostedGlassMode",void 0);_.B([_.Me("notSticky"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],f5.prototype,"dispatchChipBarIsSticky",null);_.B([_.c({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],f5);
_.A(f5,"ytd-feed-filter-chip-bar-renderer",function(){if(qtC!==void 0)return qtC;var G=document.createElement("template");_.f(G,'\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 id="selected-chip-content" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n</div>\n');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return qtC=G},{mode:1});var dV3;var onj=_.y(function(G){var e=G.data;var r=G.buttonIndex;var Z=G.selectedIndex;var O=G.onSelect;var M=function(){return r()===Z()},T=function(){var E,b;
return(b=(E=e().text)==null?void 0:E.content)!=null?b:""};
G=_.FRU();return _.v("yt-toggleable-image-button-view-model",{class:function(){var E={};E=(E.toggleableImageButtonViewModelHost=!0,E[""]=!0,E.toggleableImageButtonViewModelSemiTransparent=Z()!==-1&&!M(),E);return _.qo(E)},
tabindex:0,"aria-label":T,"aria-pressed":M,role:"button","on:keydown":G,"on:click":_.ev(function(){O(e().onSubmitCommand);return!1})},_.v(_.S,{cond:function(){return e().logo},
then:function(E){return _.v(_.nC,{data:E,className:function(){var b={};b=(b.toggleableImageButtonViewModelImage=!0,b.toggleableImageButtonViewModelCircularRadius=!(!e().backgroundColor||!e().backgroundColorDarkMode),b.toggleableImageButtonViewModelGradientRing=!!(M()&&e().backgroundColor&&e().backgroundColorDarkMode),b);return _.qo(b)},
alt:T,useWidth:!1,style:function(){if(M()&&e().backgroundColor&&e().backgroundColorDarkMode){var b=aB(Number(e().backgroundColorDarkMode),"1");var w=aB(Number(e().backgroundColor),"1");b="background: linear-gradient(180deg,"+b+","+w+") border-box;"}else b="";return b}})}}),_.v(_.ED,{model:{borderRadius:"16px"}}),_.v("p",{class:function(){var E={};
E=(E.toggleableImageButtonViewModelLabel=!0,E.toggleableImageButtonViewModelBoldText=M(),E);return _.qo(E)}},_.v(_.Wh,{text:function(){return e().text}})))},"Rc");
onj.idomCompat=!0;var QtC=_.y(function(G){var e=G.data;G=_.h(_.XQ({index:-1,command:{}},void 0,"GM3umb"));var r=G.next().value,Z=G.next().value;return _.v("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.v("div",{class:"nudgeFormViewModelFormOptions"},_.v(_.E2,{data:function(){return e().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(O,M){return _.v(onj,{data:O.data,buttonIndex:M,selectedIndex:function(){return r().index},
onSelect:function(T){Z({index:M(),command:T})}})}})),_.v(_.Wh,{text:function(){return e().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.v("div",{class:"nudgeFormViewModelSubmit"},_.v(_.E2,{data:function(){return e().submitButton}},{buttonViewModel:function(O){return _.v(sty,{data:O.data,
isDisabled:function(){return r().index===-1},
onClick:function(){_.HQ(r().command)}})}})))},"Sc");
QtC.idomCompat=!0;var sty=_.y(function(G){var e=_.dw(function(){return Object.assign({},G.data(),{state:G.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.v(_.wF,{data:e,onClick:G.onClick})},"Tc");_.J_(QtC,"yt-nudge-form-view-model",{props:{data:_.N6}});var kz=function(){var G=_.m.apply(this,arguments)||this;G.roundedContainer=!0;G.buttonUpdate=_.R("web_modern_buttons");G.isDarkMode=!1;G.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return G};
_.K(kz,_.m);_.V=kz.prototype;_.V.computeNudgeStyle=function(G){return G?"modernized-nudge":""};
_.V.handleDarkModeToggledAction=function(G){this.isDarkMode=G};
_.V.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.V.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"}}}};
_.V.computeIsHorizontalButtons=function(G){return G?!!G.applyModernizedStyle&&!!G.enableHorizontalButtons&&!!G.secondaryButton:!1};
_.iY.Object.defineProperties(kz.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var G,e;return(e=(G=this.data)==null?void 0:G.backgroundStyle)!=null?e:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var G,e;return(e=(G=this.data)==null?void 0:G.contentsLocation)!=null?e:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null?0:G.lightIconImage)}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],kz.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],kz.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],kz.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],kz.prototype,"actionHandlerBehavior",void 0);
_.B([_.n({reflectToAttribute:!0}),_.d("isHideEnclosingAction"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kz.prototype,"isHidden",null);_.B([_.n(),_.x("design:type",Object)],kz.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kz.prototype,"roundedContainer",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kz.prototype,"buttonUpdate",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.x("design:type",String)],kz.prototype,"nudgeStyle",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("data.trimStyle"),_.x("design:type",String),_.x("design:paramtypes",[])],kz.prototype,"trimStyle",null);_.B([_.n({reflectToAttribute:!0}),_.d("data.backgroundStyle"),_.x("design:type",String),_.x("design:paramtypes",[])],kz.prototype,"backgroundStyle",null);
_.B([_.n({reflectToAttribute:!0}),_.d("data.contentsLocation"),_.x("design:type",String),_.x("design:paramtypes",[])],kz.prototype,"contentsLocation",null);_.B([_.n({reflectToAttribute:!0}),_.d("data.disableDropShadow"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kz.prototype,"noShadow",null);_.B([_.n({reflectToAttribute:!0}),_.d("data.lightIconImage"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kz.prototype,"noIcon",null);
_.B([_.n({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.x("design:type",Boolean)],kz.prototype,"isHorizontalButtons",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Object)],kz.prototype,"isDarkMode",void 0);_.B([_.c({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],kz);
_.A(kz,"ytd-feed-nudge-renderer",function(){if(dV3!==void 0)return dV3;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return dV3=G},{mode:_.Px("kevlar_poly_si_batch_j028")?1:2});var Iaw;var pIw;var Hd=function(){var G=_.m.apply(this,arguments)||this;G.collapsed=!1;G.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return G};
_.K(Hd,_.m);Hd.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"}}}};
Hd.prototype.handleRatingSelect=function(){var G;((G=this.data)==null?0:G.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
Hd.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Hd.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Hd.prototype,"actionHandlerBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Hd.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Hd.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.J5),_.x("design:type",Object)],Hd.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Hd.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Hd.prototype,"collapsed",void 0);_.B([_.c({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],Hd);
_.A(Hd,"ytd-slimline-survey-renderer",function(){if(pIw!==void 0)return pIw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return pIw=G},{mode:1});var CPl;var dG=function(){return _.m.apply(this,arguments)||this};
_.K(dG,_.m);dG.prototype.maybeGetBackgroundColor=function(G){return this.isDarkMode?G.section2Color:G.section3Color};
dG.prototype.colorPaletteChanged=function(){var G=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;G&&(G==null?0:G.secondaryTitleColor)&&this.maybeGetBackgroundColor(G)?(this.hostElement.style.backgroundColor=_.RB(this.maybeGetBackgroundColor(G)),this.hostElement.style.color=_.RB(G.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
dG.prototype.colorPaletteChanged=dG.prototype.colorPaletteChanged;_.B([_.k(_.A5),_.x("design:type",Object)],dG.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],dG.prototype,"data",void 0);_.B([_.n({selector:function(G){return G.ui.darkModeIsEnabled}}),
_.x("design:type",Boolean)],dG.prototype,"isDarkMode",void 0);_.B([_.n(),_.x("design:type",Object)],dG.prototype,"lightColorPalette",void 0);_.B([_.n(),_.x("design:type",Object)],dG.prototype,"darkColorPalette",void 0);_.B([_.Me("darkColorPalette","lightColorPalette","data","isDarkMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dG.prototype,"colorPaletteChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],dG);
_.A(dG,"ytd-endorsement-header-renderer",function(){if(CPl!==void 0)return CPl;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return CPl=G},{mode:1});_.J_(_.Aq,"yt-decorated-avatar-view-model",{props:{data:_.N6,className:_.N6}});_.oY=new _.Gz("VIEW_TRANSITION_MANAGER_TOKEN");var sa=function(){var G=_.m.apply(this,arguments)||this;G.fullHeight=_.R("web_rich_grid_media_full_height");G.showChannelAvatar=!0;G.hasPlaylistThumbnail=!1;G.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};G.registerThumbnailForPageTransition=function(){_.R("web_thumbnail_to_watch_transition")&&_.uUW(_.v_().resolve(_.oY),G.thumbnail)};
return G};
_.K(sa,_.m);_.V=sa.prototype;
_.V.configureRendererStamper=function(){return{lazyLoadMenu:km,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"}}}};
_.V.attached=function(){this.updateInlinePreviewHoverListeners()};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.shouldLazyLoadMenu=function(){var G=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.R("kevlar_modern_downloads_page")||!G};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16240_inlinePreviewHoverListener=XK({mediaRenderer:this,lockupElement:this.JSC$16240_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.V.getVideoPreviewOpts=function(){var G={},e;if((e=this.data)==null?0:e.multipleInlinePlaybackEndpoint)G=qRj;this.isRadio&&(G=SRP);return G};
_.V.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$16240_inlinePreviewHoverListener)==null||nx(G)};
_.V.getOwner=function(){var G,e,r;return((G=this.data)==null?void 0:(e=G.channelThumbnailSupportedRenderers)==null?void 0:e.channelThumbnailWithLinkRenderer)||_.a((r=this.data)==null?void 0:r.showProviderChannelThumbnail,Vkl)};
_.V.updateLockupSize=function(){var G;((G=this.getOwner())==null?0:G.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.V.getFeedbackEndpoint=function(G){if(_.a(G,_.lM))return G;var e,r;G=(r=(e=_.a(G,_.LO))==null?void 0:e.commands)!=null?r:[];e=_.h(G);for(r=e.next();!r.done;r=e.next())if(r=this.getFeedbackEndpoint(r.value))return r;return null};
_.V.computeNavigationEndpoint=function(G){return neS(G==null?void 0:G.navigationEndpoint)};
_.V.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var G=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(G)!==JSON.stringify(this.data)&&this.set("data",G)}};
_.V.onDataChanged=function(){var G=this,e=this.getOwner();if(e){this.set("data.owner",e);var r,Z,O,M,T,E=((r=this.data)==null?void 0:(Z=r.shortBylineText)==null?void 0:(O=Z.runs)==null?void 0:(M=O[0])==null?void 0:M.text)||((T=e.name)==null?void 0:T.simpleText);this.set("data.owner.title",E)}var b,w,q,t,g,l;e=((b=this.data)==null?void 0:(w=b.thumbnailRenderer)==null?void 0:w.playlistVideoThumbnailRenderer)||((q=this.data)==null?void 0:(t=q.thumbnailRenderer)==null?void 0:t.playlistCustomThumbnailRenderer)||
((g=this.data)==null?void 0:(l=g.thumbnailRenderer)==null?void 0:l.showCustomThumbnailRenderer);var X;((X=this.data)==null?0:X.thumbnail)||!e||this.set("data.thumbnail",e.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){G.updateLockupSize()});
var H;if(b=((H=this.data)==null?void 0:H.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(b);var I;((I=this.dismissActionToReplayEntity)==null?0:I.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.V.onHiddenChanged=function(){this.updateLockupSize()};
_.V.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.Pi(this.hostElement,"yt-terminate-video-preview-action");else{var G;(G=this.videoTitleLink)==null||G.focus()}};
_.V.metadataColorChanged=function(){var G;if(this.metadataColor&&((G=this.videoTitle)==null?0:G.style))this.videoTitle.style.color=_.RB(this.metadataColor);else{var e,r;!this.metadataColor&&((e=this.videoTitle)==null?0:(r=e.style)==null?0:r.color)&&(this.videoTitle.style.color="")}};
_.V.onDetailsClick=function(G){var e=this.computedNavigationEndpoint;e&&(_.mO(_.na(G),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.xy(this.hostElement,"yt-navigate",{endpoint:e}))};
_.V.onRendererTap=function(){this.registerThumbnailForPageTransition();var G,e,r=((G=this.data)==null?void 0:G.serviceEndpoint)||this.getFeedbackEndpoint((e=this.data)==null?void 0:e.navigationEndpoint);r&&_.a(r,_.lM)&&this.ytComponentBehavior.resolveCommand(r)};
_.V.onMouseDown=function(G){var e=G.target,r=this.computedNavigationEndpoint,Z;G=e.href||((Z=_.a(r==null?void 0:r.commandMetadata,_.rJ))==null?void 0:Z.url);Z=e.data||r;G&&Z&&dTF(G,Z)};
_.V.computeVideoTitleText=function(){var G;if((G=this.data)==null?0:G.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.V.computeHasPlaylistThumbnail=function(G){var e,r,Z,O,M;if((((e=G.thumbnailRenderer)==null?0:e.playlistVideoThumbnailRenderer)||((r=G.thumbnailRenderer)==null?0:r.playlistCustomThumbnailRenderer)||((Z=G.thumbnailRenderer)==null?0:Z.showCustomThumbnailRenderer)||((O=G.thumbnailRenderer)==null?0:O.playlistVideoThumbnailRenderer)||((M=G.thumbnailRenderer)==null?0:M.playlistCustomThumbnailRenderer))&&G.thumbnailOverlays)for(e=0;e<G.thumbnailOverlays.length;e++)if(r=void 0,(r=G.thumbnailOverlays[e])==
null?0:r.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.iY.Object.defineProperties(sa.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.R("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var G;return(G=this.data)==null?void 0:G.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var G;return(G=this.data)==null?void 0:G.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$16240_inlinePreviewHoverListener)==null?0:xm(G))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.hUU(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var G,e;return((G=this.data)==null?void 0:G.videoId)||((e=this.data)==null?void 0:e.playlistId)||""}}});
sa.prototype.onMouseDown=sa.prototype.onMouseDown;sa.prototype.metadataColorChanged=sa.prototype.metadataColorChanged;sa.prototype.onIsDismissedChanged=sa.prototype.onIsDismissedChanged;sa.prototype.onHiddenChanged=sa.prototype.onHiddenChanged;sa.prototype.onDataChanged=sa.prototype.onDataChanged;sa.prototype.handleReloadDownloadsInfo=sa.prototype.handleReloadDownloadsInfo;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],sa.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],sa.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],sa.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],sa.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.k(_.NC),_.x("design:type",Object)],sa.prototype,"ytdLockupBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],sa.prototype,"ytdReduxBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],sa.prototype,"data",void 0);_.B([_.n(),_.x("design:type",String)],sa.prototype,"entitySelectorType",void 0);_.B([_.n(),_.x("design:type",Boolean)],sa.prototype,"noEndpoints",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],sa.prototype,"isRadio",void 0);_.B([_.n({reflectToAttribute:!0,selector:_.lw}),_.x("design:type",Boolean)],sa.prototype,"miniMode",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],sa.prototype,"fullHeight",void 0);
_.B([_.n(),_.x("design:type",Boolean)],sa.prototype,"showDarkVideoMetadata",void 0);_.B([_.n(),_.x("design:type",Boolean)],sa.prototype,"showLightVideoMetadata",void 0);_.B([_.n(),_.x("design:type",Number)],sa.prototype,"metadataColor",void 0);_.B([_.n(),_.x("design:type",Object)],sa.prototype,"showChannelAvatar",void 0);_.B([_.n(),_.x("design:type",Boolean)],sa.prototype,"hidden",void 0);_.B([_.n({value:!0}),_.x("design:type",Boolean)],sa.prototype,"showYtInteraction",void 0);
_.B([_.n(),_.x("design:type",String)],sa.prototype,"dismissedContentId",void 0);_.B([_.n({selectorArgs:["dismissedContentId"],selector:iA_}),_.x("design:type",Object)],sa.prototype,"dismissActionToReplayEntity",void 0);
_.B([_.n({selectorArgs:["entitySelectorType","mediaId"],selector:function(G,e,r){if(_.R("kevlar_modern_downloads_page")&&r&&e&&e!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(e){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var Z=A4F(G,r);if(Z){e=_.KQ(G,r);var O=kt(G,r),M=eif(G,r);G=HS(G,r);var T=iJy(Z,e,O,M);O=T.shortViewCountText;var E=T.publishedTimeText;T=T.badges;var b=G>0;M=D9_(Z,e,M,G);Z=_.E6(e)||e==="TRANSFER_STATE_FAILED"||e==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!DH(Z.policyEntity)?
void 0:CJi(r,G,Z.videoEntity.lengthSeconds);e==="TRANSFER_STATE_PAUSED_BY_USER"&&r&&!_.R("dl_resume_click_killswitch")&&(Z={offlineVideoEndpoint:{videoId:r,action:"ACTION_RESUME"}});r={shortViewCountText:O,publishedTimeText:E,badges:T,isWatched:b,navigationEndpoint:Z,thumbnailOverlays:M}}else r=void 0;return r;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(e=FcS(G,r))if(Z=_.fQ(G,r),M=_.J4s(G,r),Z!=="TRANSFER_STATE_UNKNOWN"){r=E_$(e,Z,M,r,_.Xs(G));break a}r=void 0}return r;default:_.FH(new _.Cr("Error: entitySelectorType defined but not matched in selector.",
G,e))}}}),
_.x("design:type",Object)],sa.prototype,"entityDrivenState",void 0);_.B([_.n({computed:"computeVideoTitleText(data)"}),_.x("design:type",Object)],sa.prototype,"videoTitleText",void 0);_.B([_.n({computed:"computeHasPlaylistThumbnail(data)"}),_.x("design:type",Object)],sa.prototype,"hasPlaylistThumbnail",void 0);_.B([_.n({computed:"computeNavigationEndpoint(data)"}),_.x("design:type",Object)],sa.prototype,"computedNavigationEndpoint",void 0);
_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],sa.prototype,"typographyBump",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("typographyBump"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],sa.prototype,"typographyBumpV2",null);_.B([_.hs("#video-title"),_.x("design:type",HTMLElement)],sa.prototype,"videoTitle",void 0);_.B([_.hs("#video-title-link"),_.x("design:type",HTMLElement)],sa.prototype,"videoTitleLink",void 0);
_.B([_.hs("#thumbnail"),_.x("design:type",HTMLElement)],sa.prototype,"thumbnail",void 0);_.B([_.hs("#dismissible"),_.x("design:type",HTMLElement)],sa.prototype,"JSC$16240_dismissibleMedia",void 0);_.B([_.d("data.menu"),_.x("design:type",Object),_.x("design:paramtypes",[])],sa.prototype,"lazyLoadMenu",null);_.B([_.d("data.menu"),_.x("design:type",Object),_.x("design:paramtypes",[])],sa.prototype,"immediateLoadMenu",null);
_.B([_.iD("entityDrivenState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sa.prototype,"handleReloadDownloadsInfo",null);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sa.prototype,"onDataChanged",null);_.B([_.iD("hidden"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sa.prototype,"onHiddenChanged",null);
_.B([_.Me("isDismissed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sa.prototype,"onIsDismissedChanged",null);_.B([_.Me("metadataColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sa.prototype,"metadataColorChanged",null);_.B([_.Om("mousedown"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],sa.prototype,"onMouseDown",null);
_.B([_.d("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],sa.prototype,"isHovered",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],sa.prototype,"useAvatar",null);_.B([_.d("data","entitySelectorType"),_.x("design:type",String),_.x("design:paramtypes",[])],sa.prototype,"mediaId",null);_.B([_.c({is:"ytd-rich-grid-media",disableElementRegistration:!0})],sa);
var nnb=_.xP()(sa,"ytd-rich-grid-media",function(){if(Iaw!==void 0)return Iaw;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Iaw=G},{mode:_.Px("kevlar_poly_si_batch_j072")?1:2});var mV3;var QA=function(){var G=_.m.apply(this,arguments)||this;G.removeMaxWidth=!0;G.insetMetadata=!1;return G};
_.K(QA,_.m);_.V=QA.prototype;_.V.configureRendererStamper=function(){return{innerMenu:km,outerMenu:Object.assign({},km,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.V.onDataChanged=function(){var G,e=((G=this.data)==null?void 0:G.trackingParams)||"";e&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(e));var r;((r=this.dismissActionToReplayEntity)==null?0:r.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.V.attached=function(){this.updateInlinePreviewHoverListeners()};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16245_inlinePreviewHoverListener=XK({mediaRenderer:this,lockupElement:this.JSC$16245_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:thE})};
_.V.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$16245_inlinePreviewHoverListener)==null||nx(G)};
_.V.onRendererTap=function(){var G,e,r=(G=this.data)==null?void 0:(e=G.serviceEndpoints)==null?void 0:e[0];_.a(r,_.lM)&&this.componentBehavior.resolveCommand(r)};
_.V.onDetailsClick=function(G){var e,r=(e=this.data)==null?void 0:e.navigationEndpoint;r&&(_.mO(_.na(G),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(r))};
_.V.onShow=function(){var G=this.data;G.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(G.onFirstVisibleCommand),delete G.onFirstVisibleCommand)};
_.iY.Object.defineProperties(QA.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var G;return this.insetMetadata?void 0:(G=this.data)==null?void 0:G.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var G;return this.insetMetadata?(G=this.data)==null?void 0:G.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var G=this.data;if(G!=null&&G.badge&&(G=_.a(G.badge,NFE))){var e,r,Z;return[{metadataBadgeRenderer:{label:((e=G.label)==null?void 0:(r=e.runs)==null?void 0:r[0].text)||((Z=G.label)==null?void 0:Z.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var G=this.data;return Object.assign({},G.headline,{accessibility:G.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return this.isSlimShort?(G=this.computedTitle)==null?void 0:(e=G.accessibility)==null?void 0:(r=e.accessibilityData)==null?void 0:r.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.R("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$16245_inlinePreviewHoverListener)==null?0:xm(G))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
QA.prototype.onDataChanged=QA.prototype.onDataChanged;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],QA.prototype,"componentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],QA.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.NC),_.x("design:type",Object)],QA.prototype,"ytdLockupBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],QA.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.J5),_.x("design:type",Object)],QA.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],QA.prototype,"ytdReduxBehavior",void 0);_.B([_.hs("ytd-thumbnail"),_.x("design:type",HTMLElement)],QA.prototype,"thumbnail",void 0);_.B([_.hs("#dismissible"),_.x("design:type",HTMLElement)],QA.prototype,"JSC$16245_dismissibleMedia",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],QA.prototype,"removeMaxWidth",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],QA.prototype,"insetMetadata",void 0);_.B([_.n(),_.x("design:type",String)],QA.prototype,"dismissedContentId",void 0);_.B([_.n({selectorArgs:["dismissedContentId"],selector:iA_}),_.x("design:type",Object)],QA.prototype,"dismissActionToReplayEntity",void 0);_.B([_.d("insetMetadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],QA.prototype,"thumbnailObjectFit",null);
_.B([_.d("data","insetMetadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],QA.prototype,"innerMenu",null);_.B([_.d("data","insetMetadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],QA.prototype,"outerMenu",null);_.B([_.n(),_.x("design:type",Object)],QA.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,selector:_.lw}),_.x("design:type",Boolean)],QA.prototype,"miniMode",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QA.prototype,"onDataChanged",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],QA.prototype,"shortsBadges",null);_.B([_.d("data"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],QA.prototype,"isShort",null);
_.B([_.d("data"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],QA.prototype,"isSlimShort",null);_.B([_.d("data","isShort"),_.x("design:type",Object),_.x("design:paramtypes",[])],QA.prototype,"computedTitle",null);_.B([_.d("isSlimShort","computedTitle"),_.x("design:type",Object),_.x("design:paramtypes",[])],QA.prototype,"computedAccessibilityLabel",null);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],QA.prototype,"shouldForce2By3",null);_.B([_.d("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],QA.prototype,"isHovered",null);_.B([_.c({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],QA);
_.A(QA,"ytd-rich-grid-slim-media",function(){if(mV3!==void 0)return mV3;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return mV3=G},{mode:_.Px("kevlar_poly_si_batch_j063")?1:2});var ckv;var Ytj;var IY=function(){return _.m.apply(this,arguments)||this};
_.K(IY,_.m);IY.prototype.computeIcon=function(G){return G&&G.iconType?"yt-sys-icons:"+G.iconType.toLowerCase():""};
IY.prototype.onMouseEnter=function(){this.isHovered=!0};
IY.prototype.onMouseLeave=function(){this.isHovered=!1};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],IY.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],IY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],IY.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],IY.prototype,"data",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],IY.prototype,"isHovered",void 0);
_.B([_.c({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],IY);
_.A(IY,"ytd-expand-on-hover-card-renderer",function(){if(Ytj!==void 0)return Ytj;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Ytj=G},{mode:1});var ykj,AkE=function(){if(ykj!==void 0)return ykj;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return ykj=G};_.te("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var p5=function(){var G=_.m.apply(this,arguments)||this;G.compactStyle=!1;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.K(p5,_.m);_.V=p5.prototype;_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.V.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"}}}};
_.V.computeHideDot=function(G){return!(G&&G.subscriberCountText&&G.videoCountText)||this.compactStyle};
_.V.hasDualButtons=function(G){return G&&G.purchaseButton&&G.subscribeButton};
_.V.backgroundColorChanged=function(){if(this.data!==void 0){var G=this.data.backgroundColor;this.isDarkTheme&&(G=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=G!=null?_.RB(G):"transparent"}};
_.V.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.V.onTap=function(G){var e,r,Z=((e=this.data)==null?void 0:e.navigationEndpoint)||((r=this.data)==null?void 0:r.serviceEndpoint);_.a(Z,_.CW)&&(Z&&_.v_().resolve(_.$1).resolveCommand(Z,{form:{element:this.hostElement}}),G.preventDefault())};
_.V.computeChannelEndpoint=function(G){return _.a(G,_.CW)?null:G};
_.V.computeHrefEndpoint=function(G){return _.a(G,_.CW)?null:this.componentBehavior.computeHref_(G)};
_.V.computeChannelRendererStyle=function(G){return G};
_.V.computeIconSize=function(G){return G?108:136};
_.iY.Object.defineProperties(p5,{template:{configurable:!0,enumerable:!0,get:function(){return AkE()}}});
p5.prototype.backgroundColorChanged=p5.prototype.backgroundColorChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],p5.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],p5.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.h5),_.x("design:type",Object)],p5.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],p5.prototype,"componentBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],p5.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Boolean)],p5.prototype,"isDarkTheme",void 0);_.B([_.n({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.x("design:type",String)],p5.prototype,"channelRendererStyle",void 0);_.B([_.n({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],p5.prototype,"dualButtons",void 0);_.B([_.n({reflectToAttribute:!0,value:function(){return _.R("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],p5.prototype,"useBiggerThumbs",void 0);_.B([_.n({reflectToAttribute:!0,value:function(){return _.td("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],p5.prototype,"biggerThumbStyle",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],p5.prototype,"compactStyle",void 0);_.B([_.Me("data","isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],p5.prototype,"backgroundColorChanged",null);_.B([_.c({is:"ytd-channel-renderer",disableElementRegistration:!0})],p5);_.A(p5,"ytd-channel-renderer",function(){return AkE()},{mode:1});var FDC;var JkW;_.te("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var C5=function(){var G=_.m.apply(this,arguments)||this;G.displayItemCount=2;G.hasPlaylistThumbnail=!1;G.stackThumbnailSize="large";return G};
_.K(C5,_.m);_.V=C5.prototype;_.V.attached=function(){this.updateInlinePreviewHoverListeners()};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.V.computeFirstVideos=function(G,e){return G&&e?G.slice(0,e):[]};
_.V.computeThumbnailWidth=function(G,e){return G?e==="BIG"?500:e==="MASSIVE"?600:e==="MEDIUM"?450:420:360};
_.V.computeThumbnailHeight=function(G,e){return G?e==="BIG"?280:e==="MASSIVE"?337:234:202};
_.V.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$16258_inlinePreviewHoverListener)==null||nx(G)};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16258_inlinePreviewHoverListener=XK({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:qRj,thumbnailElement:this.thumbnail})};
_.V.computeHasPlaylistThumbnail=function(G){var e,r;if((((e=G.thumbnailRenderer)==null?0:e.playlistVideoThumbnailRenderer)||((r=G.thumbnailRenderer)==null?0:r.playlistCustomThumbnailRenderer))&&G.thumbnailOverlays)for(e=0;e<G.thumbnailOverlays.length;e++)if(r=void 0,(r=G.thumbnailOverlays[e])==null?0:r.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.iY.Object.defineProperties(C5.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$16258_inlinePreviewHoverListener)==null?0:xm(G))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
C5.prototype.dataChanged=C5.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],C5.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.NC),_.x("design:type",Object)],C5.prototype,"ytdLockupBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],C5.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],C5.prototype,"displayItemCount",void 0);_.B([_.n({reflectToAttribute:!0,value:function(){return _.R("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],C5.prototype,"useBiggerThumbs",void 0);_.B([_.n({reflectToAttribute:!0,value:function(){return _.td("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],C5.prototype,"biggerThumbsStyle",void 0);_.B([_.n({computed:"computeHasPlaylistThumbnail(data)"}),_.x("design:type",Object)],C5.prototype,"hasPlaylistThumbnail",void 0);_.B([_.n(),_.x("design:type",String)],C5.prototype,"stackThumbnailSize",void 0);_.B([_.hs("ytd-thumbnail"),_.x("design:type",HTMLElement)],C5.prototype,"thumbnail",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],C5.prototype,"dataChanged",null);
_.B([_.d("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],C5.prototype,"isHovered",null);_.B([_.c({is:"ytd-radio-renderer",disableElementRegistration:!0})],C5);
_.A(C5,"ytd-radio-renderer",function(){if(JkW!==void 0)return JkW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return JkW=G},{mode:_.Px("kevlar_poly_si_batch_j058")?1:2});var B$y;_.te("itemSectionRenderer","showRenderer","ytd-show-renderer");var uN=function(){return _.m.apply(this,arguments)||this};
_.K(uN,_.m);uN.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
uN.prototype.computeThumbnailWidth=function(G){return G?360:246};
uN.prototype.computeUseProminentThumbs=function(G){return G};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],uN.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],uN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],uN.prototype,"data",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],uN.prototype,"isSearch",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.x("design:type",Boolean)],uN.prototype,"useProminentThumbs",void 0);_.B([_.c({is:"ytd-show-renderer",disableElementRegistration:!0})],uN);
_.A(uN,"ytd-show-renderer",function(){if(B$y!==void 0)return B$y;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return B$y=G},{mode:1});_.te("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var n5=function(){var G=_.m.apply(this,arguments)||this;G.isRichGrid=!1;return G};
_.K(n5,_.m);n5.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"}}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],n5.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],n5.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],n5.prototype,"isRichGrid",void 0);_.B([_.c({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],n5);
_.A(n5,"ytd-feed-entry-renderer",function(){if(FDC!==void 0)return FDC;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return FDC=G},{mode:1});var xVS;var mg=function(){return _.m.apply(this,arguments)||this};
_.K(mg,_.m);mg.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.B([_.k(_.A5),_.x("design:type",Object)],mg.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],mg.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],mg.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],mg.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,selector:_.RI,value:3}),_.x("design:type",Number)],mg.prototype,"itemsPerRow",void 0);
_.B([_.c({is:"ytd-link-card-renderer",disableElementRegistration:!0})],mg);
_.A(mg,"ytd-link-card-renderer",function(){if(xVS!==void 0)return xVS;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return xVS=G},{mode:1});var PPb;var cd=function(){return _.m.apply(this,arguments)||this};
_.K(cd,_.m);_.V=cd.prototype;_.V.configureRendererStamper=function(){return{"data.menu":km,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.V.onRendererTap=function(G){if(!this.ytdDismissibleItemBehavior.isDismissed){var e,r=(e=this.data)==null?void 0:e.navigationEndpoint;r&&!_.mO(_.na(G),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(r)?_.mO(_.na(G),this.hostElement,["A"])||_.xy(this.hostElement,"yt-navigate",{endpoint:r}):this.ytComponentBehavior.resolveCommand(r,{}))}};
_.V.maybeComputeHref=function(G){return this.ytComponentBehavior.computeHref_(G,!0)};
_.V.getNavigationCommand=function(G){return this.isNavigationCommand(G)?G:null};
_.V.isNavigationCommand=function(G){return G?_.a(G,_.Mv)||_.a(G,_.u4)||_.a(G,_.G2)?!0:!1:!1};
cd.prototype.onRendererTap=cd.prototype.onRendererTap;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],cd.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],cd.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],cd.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],cd.prototype,"ytComponentBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],cd.prototype,"data",void 0);_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],cd.prototype,"onRendererTap",null);_.B([_.c({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],cd);
_.A(cd,"ytd-lumiere-promo-item-image-renderer",function(){if(PPb!==void 0)return PPb;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return PPb=G},{mode:1});var UVW;var Yz=function(){return _.m.apply(this,arguments)||this};
_.K(Yz,_.m);Yz.prototype.computeLandscapeThumbnail=function(){var G;return((G=this.data)==null?void 0:G.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Yz.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],Yz.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Yz.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,selector:_.lw}),_.x("design:type",Boolean)],Yz.prototype,"miniMode",void 0);_.B([_.n({reflectToAttribute:!0,selector:_.RI}),_.x("design:type",Number)],Yz.prototype,"itemsPerRow",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.x("design:type",Boolean)],Yz.prototype,"landscapeThumbnail",void 0);_.B([_.c({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],Yz);
_.A(Yz,"ytd-lumiere-shelf-details-renderer",function(){if(UVW!==void 0)return UVW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return UVW=G},{mode:_.Px("kevlar_poly_si_batch_j076")?1:2});var zMw;var yA=function(){return _.m.apply(this,arguments)||this};
_.K(yA,_.m);yA.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],yA.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],yA.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],yA.prototype,"data",void 0);_.B([_.c({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],yA);
_.A(yA,"ytd-primetime-promo-details-renderer",function(){if(zMw!==void 0)return zMw;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return zMw=G},{mode:1});var WDW;var A$=function(){return _.m.apply(this,arguments)||this};
_.K(A$,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],A$.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],A$.prototype,"data",void 0);_.B([_.c({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],A$);
_.A(A$,"ytd-panel-show-style-metadata-renderer",function(){if(WDW!==void 0)return WDW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return WDW=G},{mode:1});var N$l;var Fu=function(){return _.m.apply(this,arguments)||this};
_.K(Fu,_.m);_.V=Fu.prototype;_.V.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.V.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.V.computeThumbnail=function(G){if(G)return G.smallFormFactorBackgroundThumbnail||G.largeFormFactorBackgroundThumbnail};
_.V.maybeComputeHref=function(G){return this.ytComponentBehavior.computeHref_(G,!0)};
_.V.isNavigationCommand=function(G){return G?_.a(G,_.Mv)||_.a(G,_.u4)||_.a(G,_.G2)?!0:!1:!1};
_.V.getNavigationCommand=function(G){return this.isNavigationCommand(G)?G:null};
Fu.prototype.onPanelTap=Fu.prototype.onPanelTap;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Fu.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Fu.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Fu.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Fu.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],Fu.prototype,"roundedContainer",void 0);_.B([_.n({reflectToAttribute:!0,value:_.R("web_modern_buttons")}),_.x("design:type",Boolean)],Fu.prototype,"modernButtons",void 0);_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Fu.prototype,"onPanelTap",null);_.B([_.c({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],Fu);
_.A(Fu,"ytd-primetime-promo-panel-renderer",function(){if(N$l!==void 0)return N$l;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return N$l=G},{mode:1});_.J_(_.y(function(G){G=_.cx(G,{data:{},useFullWidth:!1});var e=G.data,r=G.useFullWidth;G={};return _.v("teaser-card-view-model",{class:_.LC("ytTeaserCardViewModelHost",(G.ytTeaserCardViewModelUseFullWidth=function(){return r()},G))},_.v(_.S,{cond:function(){return e().onTap},
then:function(Z){return _.v(_.Ds,{className:"ytTeaserCardViewModelLink",command:Z},_.v("div",{class:"ytTeaserCardViewModelImageContainer"},_.v(_.S,{cond:function(){return e().image},
then:function(O){return _.v(_.nC,{data:O,className:"ytTeaserCardViewModelImage",alt:""})}})),_.v("p",{class:"ytTeaserCardViewModelCaption"},function(){return e().caption}))}}))},"Uc"),"teaser-card-view-model",{props:{data:_.N6,
useFullWidth:_.N6}});_.J_(_.y(function(G){var e=G.data;var r=function(){var Z;return _.d8((Z=e())==null?void 0:Z.iconThemedImage)};
return _.v("yt-edu-card-view-model",null,_.v(_.qR,{contentId:function(){return e().nudgeId}},function(){return _.v("div",{class:_.LC("ytEduCardViewModelHost",function(){return e().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.v("div",{class:"ytEduCardViewModelTopCornerButton"},_.v(_.E2,{data:function(){return e().dismissButton}},{buttonViewModel:_.wF})),_.v("div",{class:"ytEduCardViewModelContentWrapper"},_.v("div",{class:"ytEduCardViewModelHeaderImage"},_.v(_.S,
{cond:r,
then:function(Z){return _.v(_.nC,{data:Z,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.v("div",{class:"ytEduCardViewModelTextContainer"},_.v("div",{class:"ytEduCardViewModelTitle"},_.v(_.Wh,{text:function(){return e().title}})),_.v("div",{class:"ytEduCardViewModelSubtitle"},_.v(_.Wh,{text:function(){return e().subtitle}}))),_.v("div",{class:"ytEduCardViewModelContent"},_.v(_.E2,{data:function(){return e().form}},{nudgeFormViewModel:QtC}))),_.v("div",{class:_.LC("ytEduCardViewModelButtonWrapper",
function(){return e().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.v(_.E2,{data:function(){return e().primaryButton}},{buttonViewModel:function(Z){return _.v("div",{class:"ytEduCardViewModelPrimaryButton"},_.v(_.wF,{data:Z.data}))}}),_.v(_.E2,{data:function(){return e().secondaryButton}},{buttonViewModel:function(Z){return _.v("div",{class:"ytEduCardViewModelSecondaryButton"},_.v(_.wF,{data:Z.data}))}})))}))},"Vc"),"yt-edu-card-view-model",{props:{data:_.N6}});var LDc=new _.Gz("RICH_GRID_VIDEO_RENDERER_TOKEN");_.J_(_.y(function(G){var e=G.data;var r=G.showYtInteractionInContent;var Z=function(){return!!e().selectableFeedback};
G=_.h(_.XQ(!1,void 0,"qxtgaf"));var O=G.next().value,M=G.next().value;_.yY(function(){var g=_.a(e().primaryButton,_.rq);(g==null?0:g.isToggled)&&M(g.isToggled)});
G=_.ev(function(g){if(!Z())return!1;if(O()){var l;var X=(l=e().selectableFeedback)==null?void 0:l.onDeselect}else{var H;X=(H=e().selectableFeedback)==null?void 0:H.onSelect}X&&_.HQ(X,{form:{element:g.target}});M(!O());if(g=_.a(e().primaryButton,_.rq))g.isToggled=O();return!1});
var T=function(){if(!Z()){var g,l=(g=e().loggingDirectives)==null?void 0:g.trackingParams;l&&_.ke(_.v_().resolve(_.Qf),l)}},E=_.Jj4(),b=function(){var g;
return Z()?(g=e().selectableFeedback)==null?void 0:g.a11yLabel:void 0},w=function(){return Z()?{toggled:O()}:{}},q=_.v_().resolve(_.bq(LDc)),t={};
return _.v("yt-feedback-item-renderer",{class:_.LC("ytFeedbackItemRendererHost",(t.ytFeedbackItemRendererSelectableFeedback=Z,t)),"on:click":G,"on:keydown":E,title:b,"aria-label":b,"aria-pressed":function(){return Z()?O():void 0},
tabindex:function(){return Z()?0:void 0},
role:function(){return Z()?"button":void 0}},_.v("div",{class:"ytFeedbackItemRendererContentContainer"},_.v(_.E2,{data:function(){return e().content}},{videoRenderer:function(g){return _.v(q,{data:g.data,
showYtInteraction:r})},
lockupViewModel:function(g){return _.v(_.Rk,{data:g.data,containerType:2})}})),_.v("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.v(_.E2,{data:function(){return e().primaryButton}},{toggleButtonViewModel:function(g){return _.v(_.pb,{data:g.data,
buttonShapeOverrides:w,disableExplicitClickLogging:!0,onToggle:T})}})))},"Wc"),"yt-feedback-item-renderer",{props:{data:_.N6,
showYtInteractionInContent:_.N6}});var J$=function(){var G=_.m.apply(this,arguments)||this;G.isShortsGrid=!1;G.isCompactGrid=!1;G.isShortsPanelGrid=!1;G.renderedFromRichGrid=!1;G.isInFirstColumn=!1;G.noGutterMargins=!1;G.noBottomMargin=!1;G.halfBottomMargin=!1;G.isInlineGroupItem=!1;G.insetMetadata=!1;G.noBottomMarginInAds=!0;G.force16By9ThumbnailAspectRatio=!1;G.useCompactList=!1;G.containerType=2;G.thumbnailTargetWidth=9999;G.isResponsiveGrid=!1;G.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};G.hoverListener=
G.hover.bind(G);G.leaveListener=G.leave.bind(G);G.highlighted=!1;G.JSC$16294_unsubscribeFromInlinePreviewIsActive=function(){};
return G};
_.K(J$,_.m);_.V=J$.prototype;_.V.computeContainerType=function(){return this.useCompactList?3:2};
_.V.itemWidthChanged=function(){var G;this.thumbnailTargetWidth=(G=this.itemWidth)!=null?G:9999};
_.V.updateIsInFirstColumn=function(){var G;this.isInFirstColumn=((G=this.data)==null?void 0:G.colIndex)===0};
_.V.observerContainerType=function(){if(this.lockup){var G=this.lockup;G.containerType=this.containerType;G.sizing=this.sizing;G.typographyBump=this.typographyBump;G.itemWidth=this.itemWidth}this.richGridMedia&&_.R("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.R("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.V.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",eduCardViewModel:"yt-edu-card-view-model",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]]"}}}}}};
_.V.leave=function(G){G=G.relatedTarget;var e=document.querySelector("ytd-video-preview");G&&e&&_.W1(e).contains(G)||this.removeAndCleanupHighlight()};
_.V.hover=function(){var G;!this.highlighted&&(G=this.data)!=null&&G.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(G=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:G,boxShadow:"0 0 0 10px "+G})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.V.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};
_.V.registerHoverHighlightListeners=function(){var G=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16294_unsubscribeFromInlinePreviewIsActive=_.IC(_.Yt(),_.COp,function(e){G.highlighted&&!e&&G.removeAndCleanupHighlight()})};
_.V.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16294_unsubscribeFromInlinePreviewIsActive()};
_.V.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.V.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.V.getBackgroundColor=function(){var G,e,r=(G=this.data)==null?void 0:(e=G.onFocusEffect)==null?void 0:e.onFocusColor;if(r){if(document.documentElement.hasAttribute("dark")&&(r==null?0:r.darkTheme))return Xq(r==null?void 0:r.darkTheme);if(r==null?0:r.lightTheme)return Xq(r==null?void 0:r.lightTheme)}};
_.V.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var G=_.l4(),e,r,Z;G&&((e=this.data)==null?0:e.trackingParams)&&((r=this.data)==null?void 0:r.colIndex)!=null&&((Z=this.data)==null?void 0:Z.rowIndex)!=null&&_.cn(G,_.b1(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.V.isSlimMediaRenderer=function(G){return!!_.a(G==null?void 0:G.content,_.ktE)||!!_.a(G==null?void 0:G.content,f7y)||!!_.a(G==null?void 0:G.content,_.PV)||!!_.a(G==null?void 0:G.content,UGW)};
_.V.isPostRenderer=function(){var G,e;return!!_.a((G=this.data)==null?void 0:G.content,F9E)||!!_.a((e=this.data)==null?void 0:e.content,JQb)};
_.V.computeIsGameCardShelf=function(){var G;return!!_.a((G=this.data)==null?void 0:G.content,MJW)};
_.V.computeIsMiniGameCardShelf=function(){var G,e;return!!_.a((G=this.data)==null?void 0:G.content,gAW)||!!_.a((e=this.data)==null?void 0:e.content,lLn)};
_.V.computeIsTeaserCard=function(){var G;return!!_.a((G=this.data)==null?void 0:G.content,lLn)};
_.V.computeIsSelectableFeedbackItem=function(){var G,e;return!((e=_.a((G=this.data)==null?void 0:G.content,jab))==null||!e.selectableFeedback)};
_.V.computeContainsLumierePosters=function(){var G,e;return((e=_.a((G=this.data)==null?void 0:G.content,e7C))==null?void 0:e.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.V.computeIsExpandOnHoverCardShelf=function(){var G;return!!_.a((G=this.data)==null?void 0:G.content,GRW)};
_.V.computeIsLinkCardShelf=function(){var G;return!!_.a((G=this.data)==null?void 0:G.content,ErS)};
_.V.computeIsReelItemStyleAvatarCircle=function(G){var e;return((e=_.a(G==null?void 0:G.content,_.PV))==null?void 0:e.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.V.computeIsLinkCardFullWidth=function(G,e){var r;return((r=_.a(G==null?void 0:G.content,ErS))==null?void 0:r.useFullWidth)||e<=2};
_.iY.Object.defineProperties(J$.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var G;return _.R("web_hover_effect_refactor")&&_.a((G=this.data)==null?void 0:G.content,_.b0y)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.R("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var G;if(_.R("web_hover_effect_refactor")&&_.a((G=this.data)==null?void 0:G.content,_.b0y))return!1;var e;return!((e=this.data)==null||!e.onFocusEffect)||_.R("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 G,e;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.R("web_hover_effect_refactor")?(G=this.data)==null?void 0:G.onFocusEffect:void 0,isFirstRow:((e=this.data)==null?void 0:e.rowIndex)===0}}}});
J$.prototype.richGridHoverHighlightChanged=J$.prototype.richGridHoverHighlightChanged;J$.prototype.observerContainerType=J$.prototype.observerContainerType;J$.prototype.updateIsInFirstColumn=J$.prototype.updateIsInFirstColumn;J$.prototype.itemWidthChanged=J$.prototype.itemWidthChanged;_.B([_.k(_.A5),_.x("design:type",Object)],J$.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],J$.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],J$.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],J$.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.NC),_.x("design:type",Object)],J$.prototype,"ytdLockupBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],J$.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.x("design:type",Boolean)],J$.prototype,"isPost",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.x("design:type",Boolean)],J$.prototype,"containsLumierePosters",void 0);_.B([_.n({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.x("design:type",Boolean)],J$.prototype,"isSlimMedia",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.x("design:type",Boolean)],J$.prototype,"isGameCardShelf",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.x("design:type",Boolean)],J$.prototype,"isMiniGameCardShelf",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.x("design:type",Boolean)],J$.prototype,"isTeaserCard",void 0);_.B([_.n({computed:"computeIsSelectableFeedbackItem(data)"}),_.x("design:type",Boolean)],J$.prototype,"isSelectableFeedbackItem",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],J$.prototype,"isShortsGrid",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],J$.prototype,"isSlimGrid",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],J$.prototype,"isCompactGrid",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],J$.prototype,"isShortsPanelGrid",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.x("design:type",Boolean)],J$.prototype,"isExpandOnHoverCardShelf",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.x("design:type",Boolean)],J$.prototype,"isLinkCardShelf",void 0);_.B([_.n({reflectToAttribute:!0,selector:_.RI,value:3}),_.x("design:type",Number)],J$.prototype,"itemsPerRow",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],J$.prototype,"renderedFromRichGrid",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],J$.prototype,"isInFirstColumn",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],J$.prototype,"noGutterMargins",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],J$.prototype,"noBottomMargin",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],J$.prototype,"halfBottomMargin",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],J$.prototype,"isInlineGroupItem",void 0);_.B([_.n(),_.x("design:type",Object)],J$.prototype,"insetMetadata",void 0);_.B([_.n(),_.x("design:type",Object)],J$.prototype,"noBottomMarginInAds",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],J$.prototype,"isShelfItem",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.x("design:type",Boolean)],J$.prototype,"isReelItemStyleAvatarCircle",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.x("design:type",Boolean)],J$.prototype,"isLinkCardFullWidth",void 0);_.B([_.n(),_.x("design:type",Object)],J$.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],J$.prototype,"useCompactList",void 0);_.B([_.n(),_.x("design:type",String)],J$.prototype,"sizing",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],J$.prototype,"typographyBump",void 0);_.B([_.n(),_.x("design:type",Number)],J$.prototype,"itemWidth",void 0);_.B([_.n(),_.x("design:type",Boolean)],J$.prototype,"isHomeShelf",void 0);_.B([_.n(),_.x("design:type",Boolean)],J$.prototype,"isHomeGrid",void 0);
_.B([_.hs("yt-lockup-view-model"),_.x("design:type",HTMLElement)],J$.prototype,"lockup",void 0);_.B([_.hs("ytd-rich-grid-media"),_.x("design:type",HTMLElement)],J$.prototype,"richGridMedia",void 0);_.B([_.hs("ytd-ad-slot-renderer"),_.x("design:type",HTMLElement)],J$.prototype,"adSlotRenderer",void 0);_.B([_.n({computed:"computeContainerType(useCompactList)"}),_.x("design:type",Object)],J$.prototype,"containerType",void 0);_.B([_.n(),_.x("design:type",Object)],J$.prototype,"thumbnailTargetWidth",void 0);
_.B([_.d("showYtInteractionOnRichItem"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],J$.prototype,"showYtInteractionOnRichGridMedia",null);_.B([_.d("isSelectableFeedbackItem","richGridHoverHighlight"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],J$.prototype,"showYtInteractionOnRichItem",null);_.B([_.d("typographyBump","isHomeGrid"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],J$.prototype,"richTypographyBump",null);
_.B([_.n({reflectToAttribute:!0}),_.d("data","isShortsGrid","isCompactGrid"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],J$.prototype,"richGridHoverHighlight",null);_.B([_.d("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.x("design:type",Number),_.x("design:paramtypes",[])],J$.prototype,"shortsLockupViewModelAspectRatio",null);_.B([_.d("isInlineGroupItem"),_.x("design:type",Number),_.x("design:paramtypes",[])],J$.prototype,"shortsLockupViewModelScrimStyle",null);
_.B([_.Me("itemWidth"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],J$.prototype,"itemWidthChanged",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],J$.prototype,"updateIsInFirstColumn",null);_.B([_.Me("containerType","sizing","typographyBump"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],J$.prototype,"observerContainerType",null);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],J$.prototype,"isResponsiveGrid",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],J$.prototype,"lockupExperiments",null);_.B([_.Me("richGridHoverHighlight"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],J$.prototype,"richGridHoverHighlightChanged",null);_.B([_.c({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],J$);
_.G9l=_.xP()(J$,"ytd-rich-item-renderer",function(){if(ckv===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);ckv=G}G=ckv;return G},{mode:_.Px("kevlar_poly_si_batch_j028")?1:2});var Ous={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var qRs=_.nQ(_.OK("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Vh$={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},TYi={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},Dsp={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var eob;var Bd=function(){var G=_.m.apply(this,arguments)||this;G.useResponsiveGrid=!1;G.hidden=!1;G.isShowMoreHidden=!1;G.isShowLessHidden=!0;G.hasExpansionButton=!1;G.isInnerShelf=!1;G.allVideosCount=0;G.allPlaylistCount=0;G.haveSmartDownloadsCompleted=!1;G.restrictContentsOverflow=!1;G.firstShownIndex=0;G.horizontalOffset=0;G.atEnd=!0;G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
G.nextClick=function(){var e;(e=G.data)!=null&&e.contents&&(G.firstShownIndex+=G.currentElementsPerRow,G.updateHorizontalOffset(),G.updateHorizontalItemVisibility())};
G.previousClick=function(){var e;(e=G.data)!=null&&e.contents&&(G.firstShownIndex-=G.currentElementsPerRow,G.updateHorizontalOffset(),G.updateHorizontalItemVisibility())};
return G};
_.K(Bd,_.m);_.V=Bd.prototype;
_.V.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:_.xZ("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.V.attached=function(){this.requestElementsPerRow()};
_.V.refreshGridLayoutNew=function(){var G;if((G=this.data)!=null&&G.contents&&this.containerWidth){var e;((e=this.data.responsiveContainerConfiguration)==null?0:e.responsiveSize)?(G=_.ly4(this.data.responsiveContainerConfiguration,this.containerWidth),G=_.kb(Object.assign({},G,{standardUnitMinWidth:this.standardUnitMinWidth}))):G=_.kb({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=G.typographyBump;if(this.elementsPerRow!==
G.numItems||this.gutter!==G.gutter)this.elementsPerRow=G.numItems,this.gutter=G.gutter,this.itemWidth=G.itemWidth,_.eD(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":G.gutter+"px"})}};
_.V.computeSizing=function(){if(!this.isLumiere){var G=_.mL4(this.data);return G?G:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.V.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.V.computeButton=function(G){var e=_.a(G,_.zM);G=Object.assign({},_.a(G,_.zM));return e?(G.text||(G.text={simpleText:G.tooltip}),G.style="STYLE_MONO_OUTLINE",G.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",G):e};
_.V.onRowIndexChange=function(){var G=_.l4(),e,r;((e=this.data)==null?0:e.trackingParams)&&((r=this.data)==null?void 0:r.rowIndex)!=null&&G&&_.cn(G,_.b1(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.V.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var G,e=((G=this.getRichItemRenderers()[0])==null?void 0:G.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*e;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.V.requestElementsPerRow=function(){_.xy(this.hostElement,"yt-request-elements-per-row")};
_.V.onUpdateElementsPerRowAction=function(G,e,r,Z,O,M){if(this.containerWidth!==M&&(this.containerWidth=M,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&G&&e&&r&&Z&&O&&(this.elementsPerRow!==G||this.postsPerRow!==e||this.slimItemsPerRow!==r||this.gameCardsPerRow!==Z||this.miniGameCardsPerRow!==O)&&(this.elementsPerRow=G,this.postsPerRow=e,this.slimItemsPerRow=r,this.gameCardsPerRow=Z,this.miniGameCardsPerRow=O,this.updateItemVisibility())};
_.V.isExpandedChanged=function(){var G=this.getRichItemRenderers(),e=this.isExpanded;G.forEach(function(r){r.halfBottomMargin=e})};
_.V.isCollapsedChanged=function(){var G=this.getRichItemRenderers(),e=this.isCollapsed;G.forEach(function(r){r.noBottomMargin=e})};
_.V.getRichItemRenderers=function(){return _.z1(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.V.updateItemVisibility=function(){var G=this;if(this.data&&this.data.contents){var e=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(Z,O){var M;((M=G.data)==null?0:M.isExpanded)?(Z.hidden=O>e-1,Z.ytRendererBehavior.markDirty()):Z.hidden=O>G.currentElementsPerRow-1||O>e-1});
var r=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||r||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||r||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.V.setHeightToSingleRow=function(){var G=this.getRichItemRenderers(),e=Number.parseInt(getComputedStyle(G[0]).marginBottom,10)||0;G=G.slice(0,this.currentElementsPerRow).reduce(function(r,Z){return Math.max(r,Z.getBoundingClientRect().height+e)},0);
this.contents.style.height=G+"px"};
_.V.focusNextExpandedItem=function(){var G;((G=this.data)==null?0:G.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.V.focusItem=function(G,e){var r=this.getRichItemRenderers();if(r[G]&&(G=r[G].querySelector(".focus-on-expand"))){if(e){var Z;(Z=r[this.currentElementsPerRow])==null||Z.scrollIntoView({behavior:"smooth",block:"center"})}G.focus({preventScroll:!0})}};
_.V.onDataChange=function(){var G=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var e;if((e=this.data)==null?0:e.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.DE(this,function(){G.updateItemVisibility()});
var r;if((r=this.data)==null?0:r.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.eD(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),e=0;e<this.data.contents.length;e++)r=_.a(this.data.contents[e],_.Ia)||{},r.colIndex=e,r.rowIndex=this.data.rowIndex};
_.V.handleRerenderDownloadsData=function(){_.R("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())};
_.V.blockInlinePreview=function(G){var e=this,r;return _.D(function(Z){(r=e.inlinePreviewIsEnabled)&&e.ytdReduxBehavior.dispatch(_.Wgw(!1));return Z.return(new Promise(function(O){G(function(){r&&e.ytdReduxBehavior.dispatch(_.Wgw(!0));O()})}))})};
_.V.expandShelf=function(){var G=this;if(this.data){var e,r=(e=_.a(this.data.showMoreButton,_.zM))==null?void 0:e.trackingParams;r&&_.ke(_.h_(),r);this.set("data.isExpanded",!0);this.blockInlinePreview(function(Z){G.setHeightToSingleRow();G.updateItemVisibility();G.contents.style.height=G.contents.scrollHeight+"px";_.A0.addJob(function(){G.contents.style.height="auto";G.focusNextExpandedItem();Z()},2,200)})}};
_.V.collapseShelf=function(){var G=this;return _.D(function(e){if(e.nextAddress==1){if(!G.data)return e.return();G.set("data.isExpanded",!1);return e.yield(G.blockInlinePreview(function(r){G.contents.style.height=G.contents.scrollHeight+"px";G.setHeightToSingleRow();_.A0.addJob(function(){G.updateItemVisibility();G.contents.style.height="auto";r()},2,200)}),2)}_.xy(G.hostElement,"yt-rich-shelf-renderer-collapse",G.data.trackingParams);
G.focusItem(0,!1);_.HL(e)})};
_.V.updateArrowButtonStatus=function(){this.getRichItemRenderers();var G,e;var r=((G=this.data)==null?void 0:(e=G.contents)==null?void 0:e.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=r};
_.V.onChildElementFocus=function(G){this.hasChevronButtons&&(G=G.target.closest("#contents > *"),this.contents.contains(G)&&(G.offsetLeft<this.horizontalOffset?this.previousClick():G.offsetLeft+G.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.V.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.xZ("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.V.updateHorizontalOffset=function(){var G=this.getRichItemRenderers(),e,r;var Z=((e=this.data)==null?void 0:(r=e.contents)==null?void 0:r.length)||0;var O;G=((O=G[0])==null?void 0:O.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>Z?this.firstShownIndex=Z-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*G};
_.V.isSlimMediaShelfRenderer=function(){var G,e,r,Z=(r=_.a((G=this.data)==null?void 0:(e=G.contents)==null?void 0:e[0],_.Ia))==null?void 0:r.content;return!!(_.a(Z,_.ktE)||_.a(Z,f7y)||_.a(Z,_.PV)||_.a(Z,UGW))};
_.V.isGameCardShelf=function(){var G,e,r,Z=(r=_.a((G=this.data)==null?void 0:(e=G.contents)==null?void 0:e[0],_.Ia))==null?void 0:r.content;return!!_.a(Z,MJW)};
_.V.isMiniGameCardShelf=function(){var G,e,r,Z=(r=_.a((G=this.data)==null?void 0:(e=G.contents)==null?void 0:e[0],_.Ia))==null?void 0:r.content;return!!_.a(Z,gAW)||!!_.a(Z,lLn)};
_.V.hasGameBoxArtAvatarStyle=function(){var G;return((G=this.data)==null?void 0:G.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.V.hasRoundedGameBoxArtAvatarStyle=function(){var G;return((G=this.data)==null?void 0:G.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.V.isShortsShelf=function(){var G,e,r,Z=(r=_.a((G=this.data)==null?void 0:(e=G.contents)==null?void 0:e[0],_.Ia))==null?void 0:r.content;return!!_.a(Z,_.PV)||!!_.a(Z,UGW)};
_.V.isPostShelfRenderer=function(){var G,e,r,Z=(r=_.a((G=this.data)==null?void 0:(e=G.contents)==null?void 0:e[0],_.Ia))==null?void 0:r.content;return!(!_.a(Z,F9E)&&!_.a(Z,JQb))};
_.V.isLumiereShelf=function(){var G,e,r=_.a((G=this.data)==null?void 0:(e=G.contents)==null?void 0:e[0],_.Ia);return!!_.a(r==null?void 0:r.content,e7C)};
_.V.isLumiereShelfWithPosters=function(){var G,e,r=_.a((G=this.data)==null?void 0:(e=G.contents)==null?void 0:e[0],_.Ia),Z;return((Z=_.a(r==null?void 0:r.content,e7C))==null?void 0:Z.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.V.isExpandOnHoverCardShelf=function(){var G,e,r,Z=(r=_.a((G=this.data)==null?void 0:(e=G.contents)==null?void 0:e[0],_.Ia))==null?void 0:r.content;return!!_.a(Z,GRW)};
_.V.computeHasFeaturedBadge=function(){var G,e,r=_.a((G=this.data)==null?void 0:(e=G.badges)==null?void 0:e[0],_.lOE);return r?r.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.V.computeHasPaygatedFeaturedBadge=function(){var G,e,r=_.a((G=this.data)==null?void 0:(e=G.badges)==null?void 0:e[0],_.lOE);return r?(r==null?void 0:r.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.V.computeHeaderHidden=function(){var G,e,r,Z,O,M;return!((G=this.data)==null?0:G.icon)&&!((e=this.data)==null?0:e.title)&&!((r=this.data)==null?0:r.subtitle)&&!((Z=this.data)==null?0:Z.thumbnail)&&!((O=this.data)==null?0:O.badges)&&!((M=this.data)==null?0:M.menu)};
_.V.showCtaButton=function(){var G;return!((G=this.data)==null||!G.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.V.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.V.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.V.computeForce16By9ThumbnailAspectRatio=function(){var G,e;return((G=this.data)==null?void 0:(e=G.responsiveContainerConfiguration)==null?void 0:e.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.V.onSectionReactiveDismissal=function(G,e,r){var Z,O;var M=(Z=this.data)==null?void 0:(O=Z.targetingContext)==null?void 0:O.targetGroupId;this&&M&&e.targetGroupId&&M.includes(e.targetGroupId)?(Z=this.rowIndex,G=Z===void 0?!1:!(e.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&Z<=G)):G=!1;G&&(this.hidden=r)};
_.iY.Object.defineProperties(Bd.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null?0:G.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var G=this.elementsPerRow;this.isPostShelfRenderer()?G=this.postsPerRow:this.isSlimMediaShelfRenderer()?G=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?G=this.slimItemsPerRow-1:this.isGameCardShelf()?G=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(G=this.miniGameCardsPerRow);return G}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null?0:G.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var G,e;return!((G=this.data)==null||!G.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 G;return((G=_.v_().resolve(_.y$).getCurrentPage())==null?void 0:G.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var G,e,r,Z;return!((G=this.data)==null?0:(e=G.thumbnail)==null?0:(r=e.accessibility)==null?0:(Z=r.accessibilityData)==null?0:Z.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
Bd.prototype.onChildElementFocus=Bd.prototype.onChildElementFocus;Bd.prototype.handleRerenderDownloadsData=Bd.prototype.handleRerenderDownloadsData;Bd.prototype.onDataChange=Bd.prototype.onDataChange;Bd.prototype.isCollapsedChanged=Bd.prototype.isCollapsedChanged;Bd.prototype.isExpandedChanged=Bd.prototype.isExpandedChanged;Bd.prototype.onRowIndexChange=Bd.prototype.onRowIndexChange;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Bd.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Bd.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],Bd.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Bd.prototype,"actionHandlerBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],Bd.prototype,"ytdReduxBehavior",void 0);
_.B([_.n({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.x("design:type",Object)],Bd.prototype,"useResponsiveGrid",void 0);_.B([_.n(),_.x("design:type",Object)],Bd.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Number)],Bd.prototype,"standardUnitMinWidth",void 0);_.B([_.n({reflectToAttribute:!0,value:3}),_.x("design:type",Number)],Bd.prototype,"elementsPerRow",void 0);_.B([_.n({value:3}),_.x("design:type",Number)],Bd.prototype,"postsPerRow",void 0);
_.B([_.n({value:6}),_.x("design:type",Number)],Bd.prototype,"slimItemsPerRow",void 0);_.B([_.n({value:6}),_.x("design:type",Number)],Bd.prototype,"gameCardsPerRow",void 0);_.B([_.n({value:6}),_.x("design:type",Number)],Bd.prototype,"miniGameCardsPerRow",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Bd.prototype,"hidden",void 0);_.B([_.n(),_.x("design:type",Object)],Bd.prototype,"isShowMoreHidden",void 0);
_.B([_.n(),_.x("design:type",Object)],Bd.prototype,"isShowLessHidden",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Bd.prototype,"hasExpansionButton",void 0);_.B([_.d("data.isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bd.prototype,"isExpanded",null);_.B([_.d("data.isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bd.prototype,"isCollapsed",null);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Bd.prototype,"isInnerShelf",void 0);_.B([_.n({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.x("design:type",Boolean)],Bd.prototype,"isShorts",void 0);_.B([_.n({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.x("design:type",Boolean)],Bd.prototype,"isLumiere",void 0);_.B([_.n({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.x("design:type",Boolean)],Bd.prototype,"hasBoxArtThumbnailStyle",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.x("design:type",Boolean)],Bd.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.x("design:type",Boolean)],Bd.prototype,"hasFeaturedBadge",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.x("design:type",Boolean)],Bd.prototype,"hasPaygatedFeaturedBadge",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.x("design:type",Boolean)],Bd.prototype,"isHeaderHidden",void 0);_.B([_.n({selector:_.y44}),_.x("design:type",Object)],Bd.prototype,"allVideosCount",void 0);_.B([_.n({selector:g7F}),_.x("design:type",Object)],Bd.prototype,"allPlaylistCount",void 0);_.B([_.n({selector:NF$}),_.x("design:type",Object)],Bd.prototype,"haveSmartDownloadsCompleted",void 0);
_.B([_.n({selectorArgs:["entitySelectorType"],selector:function(G,e){if(_.R("kevlar_modern_downloads_page")&&e&&e!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var r=G.entities;switch(e){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":e=_.qr(r);G=Z9(e);var Z=_.iw(e);r=_.gf(r);r=_.Bn(iuS(Z,r,e.length));return{contents:G,subtitle:r};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return r=_.qr(r),{contents:Z9(r)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return r=
_.th(r),{contents:Z9(r)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return r=_.tUN(r),{contents:Z9(r)};default:_.FH(new _.Cr("Error: entitySelectorType defined but not matched in selector.",G,e))}}}}),
_.x("design:type",Object)],Bd.prototype,"entityDrivenRichShelfData",void 0);_.B([_.n({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.x("design:type",Boolean)],Bd.prototype,"hasTopCtaButton",void 0);_.B([_.n({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.x("design:type",Boolean)],Bd.prototype,"hasBottomCtaButton",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.x("design:type",Boolean)],Bd.prototype,"force16By9ThumbnailAspectRatio",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Bd.prototype,"restrictContentsOverflow",void 0);_.B([_.n({selector:_.u3F}),_.x("design:type",Boolean)],Bd.prototype,"inlinePreviewIsEnabled",void 0);_.B([_.n({computed:"computeSizing(data)"}),_.x("design:type",String)],Bd.prototype,"sizing",void 0);
_.B([_.n(),_.x("design:type",Boolean)],Bd.prototype,"typographyBump",void 0);_.B([_.n(),_.x("design:type",Number)],Bd.prototype,"itemWidth",void 0);_.B([_.n(),_.x("design:type",Object)],Bd.prototype,"firstShownIndex",void 0);_.B([_.n(),_.x("design:type",Object)],Bd.prototype,"horizontalOffset",void 0);_.B([_.n(),_.x("design:type",Object)],Bd.prototype,"atEnd",void 0);_.B([_.hs("#contents"),_.x("design:type",HTMLElement)],Bd.prototype,"contents",void 0);
_.B([_.Me("data.rowIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bd.prototype,"onRowIndexChange",null);_.B([_.Me("isExpanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bd.prototype,"isExpandedChanged",null);_.B([_.Me("isCollapsed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bd.prototype,"isCollapsedChanged",null);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bd.prototype,"onDataChange",null);_.B([_.Me("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bd.prototype,"handleRerenderDownloadsData",null);_.B([_.Om("focusin"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Bd.prototype,"onChildElementFocus",null);
_.B([_.n({reflectToAttribute:!0}),_.d("data","isHomePage"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bd.prototype,"isTruncated",null);_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bd.prototype,"showBottomDivider",null);_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Bd.prototype,"hasChevronButtons",null);
_.B([_.d("firstShownIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],Bd.prototype,"previousButtonOverride",null);_.B([_.d("atEnd"),_.x("design:type",Object),_.x("design:paramtypes",[])],Bd.prototype,"nextButtonOverride",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bd.prototype,"isHomePage",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bd.prototype,"thumbnailAriaHidden",null);
_.B([_.d("data"),_.x("design:type",String),_.x("design:paramtypes",[])],Bd.prototype,"entitySelectorType",null);_.B([_.c({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],Bd);
_.r7n=_.xP()(Bd,"ytd-rich-shelf-renderer",function(){if(eob===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);eob=G}G=eob;return G},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.Px("kevlar_poly_si_batch_j028")?1:2});var ZnW;_.J_(_.vH,"yt-badge-view-model",{props:{data:_.N6,class:_.N6,workaroundShortsIsThumbnailBadge:_.N6,modern:_.N6,numBadgesInRow:_.N6}});_.J_(X33,"yt-slimline-survey-view-model",{props:{data:_.N6}});var xz=function(){var G=_.m.apply(this,arguments)||this;G.tileLottieAnimationRef={};G.backgroundLottieAnimationRef={};G.isOnHoverBehaviorForLottieEnabled=!0;G.useBiggerShowcaseImage=_.R("enable_desktop_search_bigger_thumbs");G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return G};
_.K(xz,_.m);_.V=xz.prototype;_.V.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.V.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"}}}};
_.V.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var G=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);G!==this.hasTile&&this.set("hasTile",G);G=this.hasLogo(this.data)||!!this.data.badgeText;G!==this.hasMetadata&&this.set("hasMetadata",G);G=this.data.overflowButton?!1:G;G!==this.showLogoImage&&this.set("showLogoImage",G);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.V.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.V.currentColorChanged=function(){this.updateButtonPalette()};
_.V.computeBackgroundStyle=function(G){if(G&&this.data){var e=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var r=_.xh((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);r&&e.push('background-image: url("'+r+'");')}var Z;((Z=G.basicColorData)==null?void 0:Z.backgroundColor)!==void 0&&e.push("background-color: "+_.jF(G.basicColorData.backgroundColor)+";");return e.join("")}};
_.V.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&this.set("isDarkTheme",G)};
_.V.getCurrentLogo=function(G,e){if(G)return e?G.darkLogoImage:G.lightLogoImage};
_.V.getCurrentStaticTileImage=function(G,e){if(this.hasStaticTile(G))return G.darkTileImage?e?G.darkTileImage:G.tileImage:G.tileImage};
_.V.computeTitleStyle=function(G){if(this.data&&this.data.title&&G&&G.basicColorData&&G.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.RB(G.basicColorData.foregroundTitleColor)+";"};
_.V.computeSubtitleStyle=function(G){if(this.data&&this.data.subtitle&&G&&G.basicColorData&&G.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.RB(G.basicColorData.foregroundBodyColor)+";"};
_.V.computeSupplementalStyle=function(G){if(this.data&&this.data.supplementalText&&G&&G.supplementalTextColor!==void 0)return G=_.RB(G.supplementalTextColor),"color:"+G+";--yt-endpoint-color:"+G+";--yt-endpoint-hover-color:"+G+";--yt-endpoint-visited-color:"+G+";--yt-formatted-string-bold-font-weight:700;"};
_.V.computeDismissIconStyle=function(G){var e,r;if((G==null?0:(e=G.dismissButtonColorData)==null?0:e.foregroundTitleColor)&&(G==null?0:(r=G.dismissButtonColorData)==null?0:r.backgroundColor))return"--yt-button-color:"+_.jF(G.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.jF(G.dismissButtonColorData.backgroundColor)+";"};
_.V.computeOverflowIconStyle=function(G){var e,r;if((G==null?0:(e=G.dismissButtonColorData)==null?0:e.foregroundTitleColor)&&(G==null?0:(r=G.dismissButtonColorData)==null?0:r.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.jF(G.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.jF(G.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.jF(G.dismissButtonColorData.foregroundTitleColor)+";"};
_.V.computeBannerStyle=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.V.computeLocation=function(G){switch(G==null?void 0:G.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.V.shouldShowTileSection=function(G,e,r){return!this.shouldExpandLogo(G,e,r)&&e};
_.V.shouldShowExpandedLogoSection=function(G,e,r){return this.shouldExpandLogo(G,e,r)&&G!==void 0&&this.hasLogo(G)};
_.V.shouldExpandLogo=function(G,e,r){return G&&e?!1:r>=2};
_.V.hasStaticTile=function(G){return!(G==null||!G.tileImage)};
_.V.hasTileLottie=function(G){var e;return!!(G==null?0:(e=G.tileLottie)==null?0:e.url)};
_.V.hasLogo=function(G){return this.getCurrentLogo(G,this.isDarkTheme)!==void 0};
_.V.getLogoHeight=function(G){return this.logoWithPadding(G)?"26":"20"};
_.V.getExpandedLogoHeight=function(G){return this.logoWithPadding(G)?"31":"24"};
_.V.getLogoImageId=function(G){return this.logoWithPadding(G)?"logo-image-with-padding":"logo-image"};
_.V.getMaxTitleFontSize=function(G){return G.overrideTitleMaxFontSize?String(G.overrideTitleMaxFontSize):"36"};
_.V.hasBackgroundLottie=function(G){var e;return!!(G==null?0:(e=G.backgroundLottie)==null?0:e.url)};
_.V.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var G,e;(G=this.tileLottieAnimationRef)==null||(e=G.lottieEl)==null||e.play();var r,Z;(r=this.backgroundLottieAnimationRef)==null||(Z=r.lottieEl)==null||Z.play()}};
_.V.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var G,e;(G=this.tileLottieAnimationRef)==null||(e=G.lottieEl)==null||e.pause();var r,Z;(r=this.backgroundLottieAnimationRef)==null||(Z=r.lottieEl)==null||Z.pause()}};
_.V.pauseLottie=function(){var G,e;(G=this.tileLottieAnimationRef)==null||(e=G.lottieEl)==null||e.pause();var r,Z;(r=this.backgroundLottieAnimationRef)==null||(Z=r.lottieEl)==null||Z.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.V.performPrimaryButtonAction=function(){var G,e,r;((G=this.data)==null?0:(e=G.primaryButton)==null?0:(r=e.buttonRenderer)==null?0:r.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.V.requestElementsPerRow=function(){_.xy(this.hostElement,"yt-request-elements-per-row")};
_.V.updateButtonPalette=function(){if(this.data&&this.currentColorData){var G;((G=this.data.dismissButton)==null?0:G.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 r;if((r=this.data.secondaryButton)==
null?0:r.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 O;((O=this.data.secondaryButton)==null?0:O.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var M;((M=this.data.primaryButton)==null?0:M.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.V.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var G=this.getTileLottieDataBasedOnTheme(),e,r;if(G.url!==((e=this.tileLottiePlayerProps)==null?void 0:(r=e.animationConfig)==null?void 0:r.path)){var Z,O;(Z=this.tileLottieAnimationRef)==null||(O=Z.lottieEl)==null||O.destroy();var M;this.isOnHoverBehaviorForLottieEnabled=!((M=G.settings)==null?0:M.autoplay);var T,E;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(E=(T=G.settings)==null?void 0:T.autoplay)!=null?E:!1,loop:this.getLottieLoopValue(G.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof G.url==="string"?this.tileLottiePlayerProps.animationConfig.path=G.url:this.tileLottiePlayerProps.animationConfig.animationData=G.url}}};
_.V.getOverflowButton=function(G){return _.a(G.overflowButton,GsE)};
_.V.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var G=this.getBackgroundLottieDataBasedOnTheme(),e,r;if(G.url!==((e=this.backgroundLottiePlayerProps)==null?void 0:(r=e.animationConfig)==null?void 0:r.path)){var Z,O;(Z=this.backgroundLottieAnimationRef)==null||(O=Z.lottieEl)==null||O.destroy();var M;this.isOnHoverBehaviorForLottieEnabled=!((M=G.settings)==null?0:M.autoplay);var T,E;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(E=(T=G.settings)==null?void 0:T.autoplay)!=null?E:!1,loop:this.getLottieLoopValue(G.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof G.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=G.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
G.url}}};
_.V.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var G;((G=this.tileLottieAnimationRef)==null?void 0:G.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}};
_.V.getTileLottieDataBasedOnTheme=function(){var G;if(this.isDarkTheme&&((G=this.data)==null?0:G.darkThemeTileLottie))return this.data.darkThemeTileLottie;var e;return((e=this.data)==null?0:e.tileLottie)?this.data.tileLottie:{}};
_.V.getBackgroundLottieDataBasedOnTheme=function(){var G;if(this.isDarkTheme&&((G=this.data)==null?0:G.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var e;return((e=this.data)==null?0:e.backgroundLottie)?this.data.backgroundLottie:{}};
_.V.onUpdateElementsPerRowAction=function(G){G&&this.elementsPerRow!==G&&(this.elementsPerRow=G)};
_.V.getLottieLoopValue=function(G){return G?G.loop!==void 0?G.loop:G.loopCount?G.loopCount-1:!0:!0};
_.V.logoWithPadding=function(G){var e,r,Z;return(G=(e=this.getCurrentLogo(G,this.isDarkTheme))==null?void 0:(r=e.thumbnails)==null?void 0:(Z=r[0])==null?void 0:Z.height)&&G%31===0?!0:!1};
xz.prototype.currentColorChanged=xz.prototype.currentColorChanged;xz.prototype.themeChanged=xz.prototype.themeChanged;xz.prototype.dataChanged=xz.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],xz.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],xz.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],xz.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],xz.prototype,"actionHandlerBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],xz.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],xz.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],xz.prototype,"primaryButton",void 0);_.B([_.n(),_.x("design:type",Object)],xz.prototype,"secondaryButton",void 0);
_.B([_.n({reflectToAttribute:!0,value:3}),_.x("design:type",Number)],xz.prototype,"elementsPerRow",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],xz.prototype,"isDarkTheme",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],xz.prototype,"hasTile",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],xz.prototype,"hasMetadata",void 0);
_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],xz.prototype,"showLogoImage",void 0);_.B([_.n(),_.x("design:type",Object)],xz.prototype,"currentColorData",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.x("design:type",String)],xz.prototype,"bannerStyle",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.x("design:type",String)],xz.prototype,"location",void 0);
_.B([_.n(),_.x("design:type",Object)],xz.prototype,"tileLottiePlayerProps",void 0);_.B([_.n(),_.x("design:type",Object)],xz.prototype,"tileLottieAnimationRef",void 0);_.B([_.n(),_.x("design:type",Object)],xz.prototype,"backgroundLottiePlayerProps",void 0);_.B([_.n(),_.x("design:type",Object)],xz.prototype,"backgroundLottieAnimationRef",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],xz.prototype,"useBiggerShowcaseImage",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],xz.prototype,"isHideEnclosingAction",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xz.prototype,"dataChanged",null);_.B([_.iD("isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xz.prototype,"themeChanged",null);
_.B([_.iD("currentColorData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xz.prototype,"currentColorChanged",null);_.B([_.c({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],xz);
_.A(xz,"ytd-statement-banner-renderer",function(){if(ZnW!==void 0)return ZnW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return ZnW=G},{mode:1});var OnP;var Pd=function(){var G=_.m.apply(this,arguments)||this;G.isSearch=!1;G.hideShelfHeader=!1;G.engagementPanel=!1;G.disableMouseScroll=!0;G.useFloorScrolling=!0;return G};
_.K(Pd,_.m);Pd.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.OK("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.OK("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
Pd.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Pd.prototype.onDataChanged=Pd.prototype.onDataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Pd.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Pd.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Pd.prototype,"isSearch",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Pd.prototype,"hideShelfHeader",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Pd.prototype,"engagementPanel",void 0);_.B([_.n(),_.x("design:type",Object)],Pd.prototype,"disableMouseScroll",void 0);_.B([_.n(),_.x("design:type",Object)],Pd.prototype,"useFloorScrolling",void 0);_.B([_.n(),_.x("design:type",Object)],Pd.prototype,"data",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pd.prototype,"onDataChanged",null);
_.B([_.c({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],Pd);
_.A(Pd,"ytd-reel-shelf-renderer",function(){if(OnP!==void 0)return OnP;var G=document.createElement("template");_.f(G,'\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="header" class="style-scope ytd-reel-shelf-renderer">\n  <div id="image-container" class="style-scope ytd-reel-shelf-renderer">\n    <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-reel-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-reel-shelf-renderer">\n    </yt-icon>\n  </div>\n  <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n    <h2 class="style-scope ytd-reel-shelf-renderer">\n      <div id="title-text" class="style-scope ytd-reel-shelf-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n        <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n      </div>\n      <div id="subtitle-text" class="style-scope ytd-reel-shelf-renderer">\n        <dom-repeat as="badge" items="[[data.badges]]" class="style-scope ytd-reel-shelf-renderer">\n          <template class="style-scope ytd-reel-shelf-renderer">\n            <yt-badge-view-model data="[[badge.badgeViewModel]]" class="style-scope ytd-reel-shelf-renderer"></yt-badge-view-model>\n          </template>\n        </dom-repeat>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n      </div>\n    </h2>\n  </div>\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return OnP=G},{mode:_.Px("kevlar_poly_si_batch_j028")?1:2});var M3y;var V3v;V3v=_.Cp(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.hoC=_.qK(V3v);var TnW=_.y(function(G){var e=G.data;G=G.useSmallFont;var r={},Z={};return _.v("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.v(_.S,{cond:function(){return e().favicon},
then:function(O){return _.v(_.nC,{data:O,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.v("div",{class:"ytChannelExternalLinkViewModelContainer"},_.v(_.Wh,{text:function(){return e().title},
className:_.LC("ytChannelExternalLinkViewModelTitle",(r.ytChannelExternalLinkViewModelTitleSmallFont=G,r)),ellipsisTruncate:!0,userInput:!0}),_.v(_.Wh,{text:function(){return e().link},
className:_.LC("ytChannelExternalLinkViewModelLink",(Z.ytChannelExternalLinkViewModelLinkSmallFont=G,Z)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Xc");
TnW.idomCompat=!0;_.J_(TnW,"yt-channel-external-link-view-model",{props:{data:_.N6,useSmallFont:_.N6}});_.te("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var Ua=function(){var G=_.m.apply(this,arguments)||this;G.revealButtonClass="button";G.businessEmailDisplayState="HIDE_SECTION";return G};
_.K(Ua,_.m);_.V=Ua.prototype;_.V.refit=function(){var G=this;_.oR(function(){_.UW(G.hostElement,"yt-refit-popups-action")});
_.DE(this,function(){_.UW(G.hostElement,"yt-refit-popups-action")})};
_.V.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Hi(_.hoC),this.businessEmailDisplayState="CAPTCHA")};
_.V.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"};
_.V.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.V.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"}}}};
_.V.computeEmailHref=function(G){return"mailto:"+G};
_.V.computeSafeUrl=function(G){if(G)return _.Fy(G)};
_.V.linkEndpoint=function(G){return _.a(G.onTap,_.ag)};
_.V.linkEndpointToHref=function(G){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(G))};
_.V.onYtServiceRequestCompleted=function(G){var e;if((e=G.detail.data)==null?0:e.businessEmail)this.businessEmail=G.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var r;if((r=G.detail.data)==null?0:r.errorMessage)this.businessEmailErrorMessage=G.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.V.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var G=this.JSC$16408_captchaTextarea.value;if(G){G={recaptcha_response_token:G,channel_id:this.metadata.channelId};var e=_.a(this.metadata.onBusinessEmailRevealClickCommand,_.ag);e&&this.ytComponentBehavior.resolveCommand(e,{form:G})}}};
_.V.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.iY.Object.defineProperties(Ua.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var G;return _.a((G=this.data)==null?void 0:G.metadata,MkE)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.a(this.metadata.businessEmailRevealButton,_.G$)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var G=new URL(this.metadata.canonicalChannelUrl);return G.host+G.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 _.a(this.metadata.learnMoreOnTap,_.ag)}}});
Ua.prototype.onYtServiceRequestCompleted=Ua.prototype.onYtServiceRequestCompleted;Ua.prototype.businessEmailMetadataChanged=Ua.prototype.businessEmailMetadataChanged;Ua.prototype.refit=Ua.prototype.refit;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Ua.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Ua.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Ua.prototype,"ytRendererstamperBehavior",void 0);_.B([_.hs("#g-recaptcha-response"),_.x("design:type",HTMLTextAreaElement)],Ua.prototype,"JSC$16408_captchaTextarea",void 0);_.B([_.n(),_.x("design:type",Object)],Ua.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],Ua.prototype,"revealButtonClass",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ua.prototype,"metadata",null);
_.B([_.d("metadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ua.prototype,"revealButton",null);_.B([_.d("metadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ua.prototype,"channelDisplayUrl",null);_.B([_.iD("metadata"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ua.prototype,"refit",null);_.B([_.d("metadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ua.prototype,"formattedDescription",null);
_.B([_.d("metadata","learnMoreCommand"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ua.prototype,"shouldRendereVerifiedPhoneStatus",null);_.B([_.d("metadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ua.prototype,"learnMoreCommand",null);_.B([_.n(),_.x("design:type",String)],Ua.prototype,"businessEmailDisplayState",void 0);_.B([_.n(),_.x("design:type",String)],Ua.prototype,"businessEmail",void 0);
_.B([_.n(),_.x("design:type",String)],Ua.prototype,"businessEmailErrorMessage",void 0);_.B([_.iD("metadata"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ua.prototype,"businessEmailMetadataChanged",null);_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Ua.prototype,"onYtServiceRequestCompleted",null);_.B([_.c({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],Ua);
_.A(Ua,"ytd-about-channel-renderer",function(){if(M3y!==void 0)return M3y;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return M3y=G},{mode:1});var DPb;var zE=function(){return _.m.apply(this,arguments)||this};
_.K(zE,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],zE.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],zE.prototype,"data",void 0);_.B([_.c({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],zE);
_.A(zE,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(DPb!==void 0)return DPb;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return DPb=G},{mode:1});var EYb;var Wd=function(){return _.m.apply(this,arguments)||this};
_.K(Wd,_.m);Wd.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Wd.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Wd.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],Wd.prototype,"aligment",void 0);_.B([_.c({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],Wd);
_.A(Wd,"ytd-channel-list-sub-menu-renderer",function(){if(EYb!==void 0)return EYb;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return EYb=
G},{mode:1});var inl;var NY=function(){return _.m.apply(this,arguments)||this};
_.K(NY,_.m);NY.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}}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],NY.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],NY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],NY.prototype,"data",void 0);_.B([_.c({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],NY);
_.A(NY,"ytd-channel-sub-menu-renderer",function(){if(inl!==void 0)return inl;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return inl=G},{mode:1});var bnw;var vYv;var L5=function(){var G=_.m.apply(this,arguments)||this;G.isCompact=!1;return G};
_.K(L5,_.m);_.iY.Object.defineProperties(L5.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var G,e;return((e=_.a((G=this.data)==null?void 0:G.endpoint,_.G2))==null?void 0:e.target)==="TARGET_NEW_WINDOW"}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],L5.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],L5.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],L5.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],L5.prototype,"isCompact",void 0);_.B([_.d("isCompact"),_.x("design:type",Number),_.x("design:paramtypes",[])],L5.prototype,"thumbnailWidth",null);
_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],L5.prototype,"openNewWindow",null);_.B([_.c({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],L5);
_.A(L5,"ytd-media-lockup-renderer",function(){if(vYv!==void 0)return vYv;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return vYv=G},{mode:1});var wmj;var GP=function(){return _.m.apply(this,arguments)||this};
_.K(GP,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],GP.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],GP.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],GP.prototype,"data",void 0);_.B([_.c({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],GP);
_.A(GP,"ytd-structured-description-channel-lockup-renderer",function(){if(wmj!==void 0)return wmj;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return wmj=G},{mode:1});var $Pj;var eL=function(){var G=_.m.apply(this,arguments)||this;G.isCompact=!1;G.collectionsStackColor=_.R("modernize_structured_description_playlist_lockups_v2");return G};
_.K(eL,_.m);eL.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:_.R("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.iY.Object.defineProperties(eL.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var G,e,r,Z,O,M;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(G=this.data)==null?void 0:(e=G.thumbnail)==null?void 0:e.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(r=this.data)==null?void 0:(Z=r.thumbnail)==null?void 0:Z.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(O=this.data)==null?void 0:(M=O.thumbnail)==null?
void 0:M.vibrantColorPalette:void 0}}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],eL.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],eL.prototype,"componentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],eL.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],eL.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],eL.prototype,"showSidePanelThumbnailOverlay",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],eL.prototype,"isCompact",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],eL.prototype,"collectionsStackColor",void 0);_.B([_.d("data"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],eL.prototype,"twoLineTitle",null);_.B([_.d("data","collectionsStackColor"),_.x("design:type",Object),_.x("design:paramtypes",[])],eL.prototype,"collectionStack",null);
_.B([_.c({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],eL);
_.A(eL,"ytd-structured-description-playlist-lockup-renderer",function(){if($Pj!==void 0)return $Pj;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return $Pj=G},{mode:1});var Snv;var ri=function(){return _.m.apply(this,arguments)||this};
_.K(ri,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ri.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],ri.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ri.prototype,"data",void 0);_.B([_.c({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],ri);
_.A(ri,"ytd-structured-description-video-lockup-renderer",function(){if(Snv!==void 0)return Snv;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Snv=G},{mode:2});var ZU=function(){return _.m.apply(this,arguments)||this};
_.K(ZU,_.m);
ZU.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}}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ZU.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],ZU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ZU.prototype,"data",void 0);_.B([_.c({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],ZU);
_.A(ZU,"ytd-compact-infocard-renderer",function(){if(bnw!==void 0)return bnw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return bnw=G},{mode:1});var qnS;var OL=function(){return _.m.apply(this,arguments)||this};
_.K(OL,_.m);OL.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.iY.Object.defineProperties(OL.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.R("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.R("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.R("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],OL.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],OL.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],OL.prototype,"ytdReduxBehavior",void 0);_.B([_.n({selector:_.Xf}),_.x("design:type",Object)],OL.prototype,"isGridViewEnabled",void 0);
_.B([_.d("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],OL.prototype,"watchFeedBigThumbs",null);_.B([_.d("isGridViewEnabled","data"),_.n({reflectToAttribute:!0,value:"168"}),_.x("design:type",String),_.x("design:paramtypes",[])],OL.prototype,"thumbnailWidth",null);_.B([_.d("isGridViewEnabled","data"),_.n({reflectToAttribute:!0,value:"94"}),_.x("design:type",String),_.x("design:paramtypes",[])],OL.prototype,"customThumbnailSize",null);
_.B([_.n(),_.x("design:type",Object)],OL.prototype,"data",void 0);_.B([_.c({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],OL);
_.A(OL,"ytd-compact-playlist-renderer",function(){if(qnS!==void 0)return qnS;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return qnS=G},{mode:1});var t3W;var MD=function(){var G=_.m.apply(this,arguments)||this;G.roundedContainer=!0;G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return G};
_.K(MD,_.m);_.V=MD.prototype;_.V.attached=function(){this.requestElementsPerRow()};
_.V.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"}}}};
_.V.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.V.computeViewStyle=function(G){return G.style?G.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.V.onUpdateElementsPerRowAction=function(G){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&G===1};
_.V.requestElementsPerRow=function(){_.xy(this.hostElement,"yt-request-elements-per-row")};
MD.prototype.dataChanged=MD.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],MD.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],MD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],MD.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],MD.prototype,"actionHandlerBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],MD.prototype,"data",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],MD.prototype,"hideThumbnail",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.x("design:type",String)],MD.prototype,"viewStyle",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],MD.prototype,"roundedContainer",void 0);
_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],MD.prototype,"dataChanged",null);_.B([_.c({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],MD);
_.A(MD,"ytd-compact-promoted-item-renderer",function(){if(t3W!==void 0)return t3W;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return t3W=G},{mode:1});var gYc;var Vc=function(){return _.m.apply(this,arguments)||this};
_.K(Vc,_.m);Vc.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
Vc.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
Vc.prototype.onYtNavigate=function(G,e){var r=this;if(e.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",e)){var Z=this.get("watchEndpoint.videoId",e.endpoint),O=_.UW(this.hostElement,"yt-get-current-video-id-action")[0];_.R("kevlar_mix_handle_first_endpoint_different")&&Z&&O&&Z!==O||(G.stopPropagation(),_.Je().getPlayerPromise().then(function(M){if(M.getPlayerState()===0&&r.data.secondaryNavigationEndpoint)var T=r.data.secondaryNavigationEndpoint;else{T=
Object.assign({},e.endpoint);var E=_.a(T.commandMetadata,_.rJ);E&&(M=Math.floor(M.getCurrentTime()),E.url=_.Vi(E.url,{t:M}),!_.R("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(E=_.a(T,_.u4)))&&(E.startTimeSeconds=M)}_.xy(r.hostElement,"yt-navigate",{endpoint:T})}))}};
_.iY.Object.defineProperties(Vc.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.R("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.R("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var G,e,r,Z,O,M;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(G=this.data)==null?void 0:(e=G.thumbnail)==null?void 0:e.sampledThumbnailColor,vibrantColorPalette:(r=this.data)==null?void 0:(Z=r.thumbnail)==null?void 0:Z.vibrantColorPalette,darkColorPalette:(O=this.data)==null?void 0:(M=O.thumbnail)==null?void 0:M.darkColorPalette,experimentEnabled:!0}}}});
Vc.prototype.onYtNavigate=Vc.prototype.onYtNavigate;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Vc.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.t4.YtEndpointBehavior),_.x("design:type",Object)],Vc.prototype,"ytEndpointBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Vc.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],Vc.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.k(_.NC),_.x("design:type",Object)],Vc.prototype,"ytdLockupBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],Vc.prototype,"ytdReduxBehavior",void 0);_.B([_.n({selector:_.Xf}),_.x("design:type",Object)],Vc.prototype,"isGridViewEnabled",void 0);_.B([_.d("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Vc.prototype,"watchFeedBigThumbs",null);
_.B([_.d("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.x("design:type",String),_.x("design:paramtypes",[])],Vc.prototype,"thumbnailWidth",null);_.B([_.n(),_.x("design:type",Object)],Vc.prototype,"data",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Vc.prototype,"collectionStack",null);_.B([_.Om("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],Vc.prototype,"onYtNavigate",null);
_.B([_.c({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],Vc);
_.A(Vc,"ytd-compact-radio-renderer",function(){if(gYc!==void 0)return gYc;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return gYc=G},{mode:1});var lcj;var hm=function(){return _.m.apply(this,arguments)||this};
_.K(hm,_.m);hm.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
hm.prototype.computeRendererStyle=function(G){return G.style?G.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.B([_.n(),_.x("design:type",Object)],hm.prototype,"data",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],hm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],hm.prototype,"rendererBehavior",void 0);_.B([_.n({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.x("design:type",String)],hm.prototype,"rendererStyle",void 0);_.B([_.c({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],hm);
_.A(hm,"ytd-compact-text-promo-renderer",function(){if(lcj!==void 0)return lcj;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return lcj=G},{mode:1});var Ro3;var TP=function(){var G=_.m.apply(this,arguments)||this;G.isShortsStyle=!1;return G};
_.K(TP,_.m);_.V=TP.prototype;_.V.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"}}}};
_.V.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.xy(this.hostElement,"yt-disable-lockup-interaction"):_.xy(this.hostElement,"yt-enable-lockup-interaction"))};
_.V.isMetaBlockEmpty=function(G){return!G||!G.longBylineText&&!G.shortBylineText&&!G.shortViewCountText&&!G.viewCountText};
_.V.computeHasOneLineTitle=function(G){return this.forceOneLineTitle||!(G==null||!G.buttons)};
_.V.computeDisableInteraction=function(){var G;return!((G=this.data)==null?0:G.navigationEndpoint)};
_.V.hasSingularTopStandaloneBadge=function(){var G;return!((G=this.data)==null||!G.topStandaloneBadge)};
_.iY.Object.defineProperties(TP.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.R("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.R("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 G;return this.hasSingularTopStandaloneBadge()?[(G=this.data)==null?void 0:G.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var G;return this.shouldShowTopBadges?((G=this.data)==null?void 0:G.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
TP.prototype.disableInteractionChanged=TP.prototype.disableInteractionChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],TP.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],TP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],TP.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.k(_.NC),_.x("design:type",Object)],TP.prototype,"ytdLockupBehavior",void 0);
_.B([_.k(_.A5),_.x("design:type",Object)],TP.prototype,"ytdReduxBehavior",void 0);_.B([_.n({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.x("design:type",Boolean)],TP.prototype,"metaBlockEmpty",void 0);_.B([_.n({selector:_.Xf}),_.x("design:type",Object)],TP.prototype,"isGridViewEnabled",void 0);_.B([_.d("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],TP.prototype,"watchFeedBigThumbs",null);
_.B([_.d("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.x("design:type",String),_.x("design:paramtypes",[])],TP.prototype,"thumbnailWidth",null);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],TP.prototype,"isShortsStyle",void 0);_.B([_.n(),_.x("design:type",Object)],TP.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.x("design:type",Boolean)],TP.prototype,"hasOneLineTitle",void 0);
_.B([_.n(),_.x("design:type",Boolean)],TP.prototype,"hideThumbnail",void 0);_.B([_.n(),_.x("design:type",Boolean)],TP.prototype,"forceOneLineTitle",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.x("design:type",Boolean)],TP.prototype,"disableInteraction",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],TP.prototype,"musicMetadataVideoLockup",void 0);
_.B([_.Me("disableInteraction"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],TP.prototype,"disableInteractionChanged",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],TP.prototype,"shouldShowTopBadges",null);_.B([_.d("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],TP.prototype,"topBadges",null);
_.B([_.d("shouldShowTopBadges","data"),_.x("design:type",Array),_.x("design:paramtypes",[])],TP.prototype,"inlineMetadataBadges",null);_.B([_.d("shouldShowTopBadges"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],TP.prototype,"shouldShowBadgesBelowMetadata",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],TP.prototype,"compactTitleClass",null);_.B([_.c({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],TP);
_.A(TP,"ytd-compact-video-renderer",function(){if(Ro3!==void 0)return Ro3;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Ro3=G},{mode:_.Px("kevlar_poly_si_batch_j067")?1:2});var jjy;_.te("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var DU=function(){return _.m.apply(this,arguments)||this};
_.K(DU,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],DU.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],DU.prototype,"data",void 0);_.B([_.c({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],DU);
_.A(DU,"ytd-counterfactual-renderer",function(){if(jjy!==void 0)return jjy;var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return jjy=G},{mode:1});var acW;var EL=function(){var G=_.m.apply(this,arguments)||this;G.hidden=!1;return G};
_.K(EL,_.m);EL.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.v_().resolve(_.$1).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
EL.prototype.computeHidden=function(G){return!!G};
_.iY.Object.defineProperties(EL.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}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],EL.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],EL.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.x("design:type",Object)],EL.prototype,"hidden",void 0);_.B([_.d("data.label"),_.x("design:type",String),_.x("design:paramtypes",[])],EL.prototype,"label",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],EL.prototype,"value",null);
_.B([_.c({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],EL);
_.A(EL,"ytd-dropdown-item-renderer",function(){if(acW!==void 0)return acW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return acW=G},{mode:1});var XmP;var KWE;var i8=function(){return _.m.apply(this,arguments)||this};
_.K(i8,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],i8.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],i8.prototype,"data",void 0);_.B([_.n({computed:"getSimpleString(data.label)"}),_.x("design:type",String)],i8.prototype,"label",void 0);_.B([_.c({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],i8);
_.A(i8,"ytd-navigation-dropdown-item-renderer",function(){if(KWE!==void 0)return KWE;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return KWE=G},{mode:1});var b8=function(){var G=_.m.apply(this,arguments)||this;G.disabled=!1;G.value="";G.noLabelFloat=!1;G.noUnderline=!1;G.usePrimaryColor=!1;G.hasBackground=!1;G.verticalAlign="top";G.autosize=!1;G.minAutosizeWidth=100;G.autosizeFont="14px Roboto";return G};
_.K(b8,_.m);_.V=b8.prototype;_.V.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"}}}};
_.V.open=function(){this.inputEl.open()};
_.V.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.V.dataChanged=function(){this.reset()};
_.V.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eG("value-changed",this.value))};
_.V.stopPropagation=function(G){G.stopPropagation()};
_.V.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var G=this.canvas.getContext("2d");G&&(G.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(G.measureText(this.inputEl.value).width)+24)+"px")}};
_.V.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var G=0,e=this.data.entries.length;G<e;G++){var r=this.data.entries[G],Z;for(Z in r)if(r.hasOwnProperty(Z)){var O=r[Z];if("isSelected"in O&&O.isSelected)return"stringValue"in O?O.stringValue||"":"int32Value"in O?O.int32Value||0:0}}return null};
_.V.updateValueFromBinding=function(G){this.value=G.detail.value};
_.iY.Object.defineProperties(b8.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 G=0,e=this.data.entries.length;G<e;G++){var r=this.data.entries[G],Z;for(Z in r)if(r.hasOwnProperty(Z)){var O=r[Z];if("isSelected"in O&&O.isSelected&&"label"in O)return this.ytRendererBehavior.getSimpleString(O.label)}}return null}}});
b8.prototype.autoSizeLabel=b8.prototype.autoSizeLabel;b8.prototype.stopPropagation=b8.prototype.stopPropagation;b8.prototype.valueChangedForBinding=b8.prototype.valueChangedForBinding;b8.prototype.dataChanged=b8.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],b8.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],b8.prototype,"ytRendererStamperBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],b8.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],b8.prototype,"disabled",void 0);_.B([_.n(),_.x("design:type",Object)],b8.prototype,"value",void 0);_.B([_.n(),_.x("design:type",Object)],b8.prototype,"noLabelFloat",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],b8.prototype,"noUnderline",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],b8.prototype,"theme",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],b8.prototype,"usePrimaryColor",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],b8.prototype,"hasBackground",void 0);_.B([_.n(),_.x("design:type",Object)],b8.prototype,"verticalAlign",void 0);_.B([_.n(),_.x("design:type",Object)],b8.prototype,"autosize",void 0);_.B([_.n(),_.x("design:type",Object)],b8.prototype,"minAutosizeWidth",void 0);_.B([_.n(),_.x("design:type",Object)],b8.prototype,"autosizeFont",void 0);
_.B([_.hs("#entries"),_.x("design:type",Object)],b8.prototype,"entries",void 0);_.B([_.hs("#input"),_.x("design:type",Object)],b8.prototype,"inputEl",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],b8.prototype,"dataChanged",null);_.B([_.iD("value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],b8.prototype,"valueChangedForBinding",null);
_.B([_.Om("iron-overlay-opened"),_.Om("iron-overlay-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],b8.prototype,"stopPropagation",null);_.B([_.Om("iron-select"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],b8.prototype,"autoSizeLabel",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],b8.prototype,"label",null);
_.B([_.c({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],b8);
_.A(b8,"ytd-dropdown-renderer",function(){if(XmP!==void 0)return XmP;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return XmP=G},{mode:1});var fcP;var vP=function(){var G=_.m.apply(this,arguments)||this;G.isConstrainedList=!1;return G};
_.K(vP,_.m);vP.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"}}}};
vP.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
vP.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
vP.prototype.computeViewAllHidden=function(G,e){return G||!e.viewAllEndpoint};
vP.prototype.fillRestIfNoShowMore=vP.prototype.fillRestIfNoShowMore;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],vP.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],vP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.Dr.YtLazyListBehavior),_.x("design:type",Object)],vP.prototype,"ytLazyListBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],vP.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],vP.prototype,"isConstrainedList",void 0);_.B([_.iD("data","canShowMore"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vP.prototype,"fillRestIfNoShowMore",null);_.B([_.c({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],vP);
_.A(vP,"ytd-expanded-shelf-contents-renderer",function(){if(fcP!==void 0)return fcP;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return fcP=G},{mode:_.Px("kevlar_poly_si_batch_j025")?1:2});var k9S;var wi=function(){return _.m.apply(this,arguments)||this};
_.K(wi,_.m);wi.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}}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],wi.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],wi.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],wi.prototype,"data",void 0);_.B([_.c({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],wi);
_.A(wi,"ytd-feed-channel-filter-header-renderer",function(){if(k9S!==void 0)return k9S;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return k9S=G},{mode:1});var Hnj;var dPy;var oYE;var $q=function(){return _.m.apply(this,arguments)||this};
_.K($q,_.m);_.V=$q.prototype;_.V.onClick=function(G){var e,r=(e=this.data)==null?void 0:e.sectionEndpoint;!_.mO(_.na(G),this.hostElement,["A".toString()])&&r&&_.xy(this.hostElement,"yt-navigate",{endpoint:r})};
_.V.computeHasSectionEndpoint=function(G){return(G==null?void 0:G.sectionEndpoint)!==void 0};
_.V.computeShowHeaderAsLink=function(G){return(G==null?void 0:G.header)!==void 0&&(G==null?void 0:G.sectionEndpoint)!==void 0};
_.V.computeShowSubheaderAsLink=function(G){return(G==null?void 0:G.subheader)!==void 0&&(G==null?void 0:G.sectionEndpoint)!==void 0&&(G==null?void 0:G.header)===void 0};
_.V.getHeaderAsLinkClass=function(G){var e=[],r;(G==null?0:(r=G.headerIcon)==null?0:r.iconType)&&e.push("header-link-active");return e.join(" ")};
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],$q.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],$q.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],$q.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],$q.prototype,"data",void 0);
_.B([_.n({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],$q.prototype,"hasSectionEndpoint",void 0);_.B([_.n({computed:"computeShowHeaderAsLink(data)"}),_.x("design:type",Boolean)],$q.prototype,"showHeaderAsLink",void 0);_.B([_.n({computed:"computeShowSubheaderAsLink(data)"}),_.x("design:type",Boolean)],$q.prototype,"showSubheaderAsLink",void 0);_.B([_.c({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],$q);
_.A($q,"ytd-medical-panel-section-renderer",function(){if(oYE!==void 0)return oYE;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return oYE=G},{mode:1});var SL=function(){var G=_.m.apply(this,arguments)||this;G.isExpanded=!1;G.roundedContainer=!0;G.skipRoundingTop=!1;G.toggleExpandableSection=function(){G.isExpanded=!G.isExpanded};
return G};
_.K(SL,_.m);
SL.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]]"}}}}}};
SL.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
SL.prototype.dataChanged=SL.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],SL.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],SL.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],SL.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],SL.prototype,"isExpanded",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],SL.prototype,"roundedContainer",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],SL.prototype,"skipRoundingTop",void 0);_.B([_.n(),_.x("design:type",Object)],SL.prototype,"toggleExpandableSection",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SL.prototype,"dataChanged",null);_.B([_.c({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],SL);
_.A(SL,"ytd-medical-panel-content-renderer",function(){if(dPy!==void 0)return dPy;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return dPy=G},{mode:1});_.te("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var qD=function(){var G=_.m.apply(this,arguments)||this;G.roundedContainer=!0;G.extractOverlay=!1;G.amsterdamEnabled=_.R("enable_desktop_amsterdam_info_panels");G.hasTitle=!1;G.linkIcon="OPEN_IN_NEW";G.isDismissed=!1;return G};
_.K(qD,_.m);qD.prototype.onOverlayConditionsChange=function(){var G=_.z1(this.hostElement).querySelector("ytd-info-panel-content-renderer");G&&(G.set("extractOverlay",this.extractOverlay),G.set("roundedContainer",this.roundedContainer))};
qD.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"}}}};
qD.prototype.computeHasTitle=function(G){return!(G==null||!G.title)};
qD.prototype.onClick=function(G){var e,r=(e=this.data)==null?void 0:e.headerEndpoint;!_.mO(_.na(G),this.hostElement,["BUTTON".toString()])&&r&&this.ytComponentBehavior.resolveCommand(r)};
_.iY.Object.defineProperties(qD.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 G;return((G=this.data)==null?void 0:G.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var G,e;return((G=this.data)==null?void 0:G.disableBottomDivider)||!((e=this.data)==null?0:e.title)}}});
qD.prototype.onOverlayConditionsChange=qD.prototype.onOverlayConditionsChange;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],qD.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],qD.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],qD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],qD.prototype,"ytdReduxBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],qD.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],qD.prototype,"roundedContainer",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],qD.prototype,"extractOverlay",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],qD.prototype,"amsterdamEnabled",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.x("design:type",Object)],qD.prototype,"hasTitle",void 0);
_.B([_.n({type:_.R("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.d("data.background"),_.x("design:type",Object),_.x("design:paramtypes",[])],qD.prototype,"background",null);_.B([_.n({type:_.R("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.d("data.titleStyle"),_.x("design:type",Object),_.x("design:paramtypes",[])],qD.prototype,"titleStyle",null);
_.B([_.n({type:_.R("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.d("data.titleStyle"),_.x("design:type",Object),_.x("design:paramtypes",[])],qD.prototype,"showLinkIcon",null);_.B([_.n(),_.x("design:type",String)],qD.prototype,"linkIcon",void 0);_.B([_.n({type:_.R("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],qD.prototype,"hideDivider",null);
_.B([_.n({selectorArgs:["data.dismissStateEntityKey"],selector:function(G,e){G=_.e6(G.entities,"dismissState",e);return(G==null?void 0:G.isDismissed)||(G==null?void 0:G.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(G==null?void 0:G.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.x("design:type",Object)],qD.prototype,"isDismissed",void 0);_.B([_.Me("roundedContainer","extractOverlay"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qD.prototype,"onOverlayConditionsChange",null);_.B([_.c({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],qD);
_.A(qD,"ytd-info-panel-container-renderer",function(){if(Hnj!==void 0)return Hnj;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Hnj=G},{mode:1});var sj3;_.te("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var tm=function(){return _.m.apply(this,arguments)||this};
_.K(tm,_.m);tm.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
tm.prototype.computeStyle=function(G){return G?G:""};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],tm.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],tm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],tm.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.x("design:type",String)],tm.prototype,"titleStyle",void 0);
_.B([_.c({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],tm);
_.xP()(tm,"ytd-item-section-header-renderer",function(){if(sj3===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);sj3=G}G=sj3;return G},{allowedProps:["data"],
mode:1});var Qjc;var IcS,pmn=function(){return IcS!==void 0?IcS:IcS=document.createElement("template")};
document.head.appendChild(pmn().content);var CsW;_.gi=new _.Gz("VOTING_ANIMATION_CONTROLLER_TOKEN");var nYW=_.y(function(G){var e=G.data;var r=_.hT("div"),Z=_.hT("div");G=_.h(_.XQ("VOTE_STATUS_NONE",void 0,"YPH5mf"));var O=G.next().value,M=G.next().value,T=_.hI(R_a,function(){var g;return(g=e())==null?void 0:g.entityKey}),E=_.R("web_enable_voting_animation")||_.R("enable_music_web_cairo_voting_animation");
_.yY(function(){var g;((g=e().initialState)==null?0:g.status)&&M(e().initialState.status)});
var b=function(){var g,l,X=(l=(g=e().initialState)==null?void 0:g.votes)!=null?l:0,H;g=(H=e().initialState)==null?void 0:H.status;return g==="VOTE_STATUS_UPVOTED"?X-1:g==="VOTE_STATUS_DOWNVOTED"?X+1:X},w=function(){return O()==="VOTE_STATUS_UPVOTED"?b()+1:O()==="VOTE_STATUS_DOWNVOTED"?b()-1:b()},q=function(g){var l=g?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
M(l);var X=w(),H=_.v_().resolve(_.bq(_.gi)),I=T();I&&(g&&(I==null?0:I.upvoteDefaultButtonOnTap)?_.HQ(I.upvoteDefaultButtonOnTap,{form:{element:r.value},disableClickTracking:!0}):(I==null?0:I.upvoteToggledButtonOnTap)&&_.HQ(I.upvoteToggledButtonOnTap,{form:{element:r.value},disableClickTracking:!0}));var C;g=(C=I==null?void 0:I.enableOptimisticReordering)!=null?C:e().enableOptimisticReordering;E&&H&&e().itemId&&g&&ueW(H,e().itemId,X,l)},t=function(g){var l=g?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
M(l);var X=w(),H=_.v_().resolve(_.bq(_.gi)),I=T();I&&(g&&(I==null?0:I.downvoteDefaultButtonOnTap)?_.HQ(I.downvoteDefaultButtonOnTap,{form:{element:Z.value},disableClickTracking:!0}):(I==null?0:I.downvoteToggledButtonOnTap)&&_.HQ(I.downvoteToggledButtonOnTap,{form:{element:Z.value},disableClickTracking:!0}));var C;g=(C=I==null?void 0:I.enableOptimisticReordering)!=null?C:e().enableOptimisticReordering;E&&H&&e().itemId&&g&&ueW(H,e().itemId,X,l)};
G={};G=_.LC("ytVotingViewModelVoteCount",(G.ytVotingViewModelVoteCountDisabled=function(){return e().isDisabled},G));
return _.v("voting-view-model",{class:"ytVotingViewModelHost"},_.v("div",{el:r},_.v(_.E2,{data:function(){var g=_.a(e().upvoteButton,_.rq);return{toggleButtonViewModel:Object.assign({},g,{isToggled:O()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(g){return _.v(_.pb,{data:g.data,
onToggle:q})}})),_.v("div",{class:G},function(){var g,l,X;
return O()==="VOTE_STATUS_UPVOTED"?(g=e().initialState)==null?void 0:g.compactVotesUpvoted:O()==="VOTE_STATUS_DOWNVOTED"?(l=e().initialState)==null?void 0:l.compactVotesDownvoted:(X=e().initialState)==null?void 0:X.compactVotes}),_.v("div",{el:Z},_.v(_.E2,{data:function(){var g=_.a(e().downvoteButton,_.rq);
return{toggleButtonViewModel:Object.assign({},g,{isToggled:O()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(g){return _.v(_.pb,{data:g.data,
onToggle:t})}})))},"Yc");_.J_(_.y(function(G){var e=G.data;return _.v("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.v("div",{class:_.LC("ytEngagementBarViewModelEngagementBarWrapper",G.className)},_.v(_.E2,{data:function(){return e().actions}},{votingViewModel:nYW})))},"Zc"),"engagement-bar-view-model",{props:{data:_.N6,
className:_.N6}});var l8=function(){var G=_.m.apply(this,arguments)||this;G.playlistVotingAnimationEnabled=_.R("web_enable_voting_animation");G.downloadProgress=0;G.transferState="TRANSFER_STATE_UNKNOWN";G.downloadState="DOWNLOAD_STATE_UNKNOWN";G.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";G.offlineVideoPolicyExpirationTimestamp=0;return G};
_.K(l8,_.m);_.V=l8.prototype;_.V.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"}}}};
_.V.canReorderChanged=function(){this.persistentDragHandle=_.R("kevlar_playlist_drag_handles")&&this.canReorder};
_.V.onDrag=function(){if(this.thumbnail){var G=_.z1(this.thumbnail).querySelector("yt-image");G&&(G.shouldRenderLazy=!1)}};
_.V.onMenuOverlayChanged=function(G,e){this.menuOpened=e};
_.V.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.V.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.V.onContentsTap=function(G){var e,r=(e=this.data)==null?void 0:e.serviceEndpoints;if(r&&r.length===1&&_.a(r[0],XWp)&&!_.mO(_.na(G),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(r[0]);else{var Z;(e=(Z=this.data)==null?void 0:Z.navigationEndpoint)&&_.R("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?mPw(_.v_().resolve(_.fp),e):(_.sI().playlistSuggestionsShelfActivation=
!0,_.c7j(_.v_().resolve(_.fp),e)):e&&!_.mO(_.na(G),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.R("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.xy(this.hostElement,"yt-navigate",{endpoint:e}):this.ytComponentBehavior.resolveCommand(e))}};
_.V.computeStyle=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.V.computeThumbnailWidth=function(G){return G==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.V.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=iJy(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))}};
_.V.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.V.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.V.dataChanged=function(){if(this.data){var G,e,r,Z=((G=this.downloadRenderData)==null?void 0:G.badges)&&((e=this.downloadRenderData)==null?void 0:e.badges)!==((r=this.data)==null?void 0:r.badges),O,M,T;G=((O=this.downloadRenderData)==null?void 0:O.thumbnailOverlays)&&((M=this.downloadRenderData)==null?void 0:M.thumbnailOverlays)!==((T=this.data)==null?void 0:T.thumbnailOverlays);(!this.downloadRenderData||Z||G)&&this.downloadStateChanged()}};
_.V.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var G,e,r=(G=this.data.menu)==null?void 0:(e=G.menuRenderer)==null?void 0:e.items;if(r)for(G=_.h(r),e=G.next();!e.done;e=G.next())if(e=e.value,r=void 0,_.a((r=e.menuServiceItemRenderer)==null?void 0:r.serviceEndpoint,_.BV)){var Z=r=void 0,O=void 0;e=(r=e)==null?void 0:(Z=r.menuServiceItemRenderer)==null?void 0:(O=Z.serviceEndpoint)==null?void 0:O.playlistEditEndpoint;O=Z=void 0;if(r=(Z=e)==null?void 0:(O=Z.actions)==null?void 0:
O[0])Z=void 0,r.setVideoId=(Z=this.data)==null?void 0:Z.setVideoId;O=Z=r=void 0;if(e=(r=e)==null?void 0:(Z=r.clientActions)==null?void 0:(O=Z[0])==null?void 0:O.playlistRemoveVideosAction)r=void 0,e.setVideoIds=[(r=this.data)==null?void 0:r.setVideoId]}}};
_.iY.Object.defineProperties(l8.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
l8.prototype.setVideoIdChanged=l8.prototype.setVideoIdChanged;l8.prototype.dataChanged=l8.prototype.dataChanged;l8.prototype.downloadStateChanged=l8.prototype.downloadStateChanged;l8.prototype.onMenuOverlayChanged=l8.prototype.onMenuOverlayChanged;l8.prototype.canReorderChanged=l8.prototype.canReorderChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],l8.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],l8.prototype,"ytdReduxBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],l8.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.NC),_.x("design:type",Object)],l8.prototype,"ytdLockupBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],l8.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],l8.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],l8.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],l8.prototype,"canReorder",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],l8.prototype,"menuOpened",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],l8.prototype,"handleIsHovered",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],l8.prototype,"persistentDragHandle",void 0);_.B([_.n(),_.x("design:type",Object)],l8.prototype,"downloadRenderData",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],l8.prototype,"styleType",void 0);_.B([_.n({computed:"computeThumbnailWidth(data.style)"}),_.x("design:type",Number)],l8.prototype,"thumbnailWidth",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],l8.prototype,"isDownloads",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],l8.prototype,"playlistVotingAnimationEnabled",void 0);
_.B([_.n({selector:kt,selectorArgs:["data.videoId"]}),_.x("design:type",Object)],l8.prototype,"downloadProgress",void 0);_.B([_.n(),_.x("design:type",Number)],l8.prototype,"relativeDateReference",void 0);_.B([_.n({selector:_.KQ,selectorArgs:["data.videoId"]}),_.x("design:type",Object)],l8.prototype,"transferState",void 0);_.B([_.n({selector:eif,selectorArgs:["data.videoId"]}),_.x("design:type",Object)],l8.prototype,"downloadState",void 0);
_.B([_.n({selector:c4$,selectorArgs:["data.videoId"]}),_.x("design:type",Object)],l8.prototype,"offlinePolicyAction",void 0);_.B([_.n({selector:YDA,selectorArgs:["data.videoId"]}),_.x("design:type",Object)],l8.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.B([_.n({selector:A4F,selectorArgs:["data.videoId"]}),_.x("design:type",Object)],l8.prototype,"entityInfo",void 0);_.B([_.n({selector:_.j6}),_.x("design:type",Boolean)],l8.prototype,"miniplayerIsActive",void 0);
_.B([_.d("data"),_.x("design:type",String),_.x("design:paramtypes",[])],l8.prototype,"playlistVideoId",null);_.B([_.hs("#thumbnail"),_.x("design:type",Object)],l8.prototype,"thumbnail",void 0);_.B([_.iD("canReorder"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],l8.prototype,"canReorderChanged",null);
_.B([_.Om("yt-menu-overlay-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Boolean]),_.x("design:returntype")],l8.prototype,"onMenuOverlayChanged",null);_.B([_.iD("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],l8.prototype,"downloadStateChanged",null);
_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],l8.prototype,"dataChanged",null);_.B([_.iD("data.setVideoId"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],l8.prototype,"setVideoIdChanged",null);_.B([_.c({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],l8);
_.A(l8,"ytd-playlist-video-renderer",function(){if(CsW!==void 0)return CsW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);G.content.insertBefore(pmn().content.cloneNode(!0),G.content.firstChild);return CsW=G},{mode:1});var YnE;var RD=function(){return _.m.apply(this,arguments)||this};
_.K(RD,_.m);_.B([_.n(),_.x("design:type",Object)],RD.prototype,"data",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],RD.prototype,"rendererBehavior",void 0);_.B([_.c({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],RD);
_.A(RD,"ytd-premium-browse-footer-renderer",function(){if(YnE!==void 0)return YnE;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return YnE=G},{mode:1});var y7S;var jL=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return G};
_.K(jL,_.m);_.V=jL.prototype;_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.V.handleDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.V.computeHeaderLogoThumbnail=function(G,e){if(G)return e?G.darkLogo:G.lightLogo};
_.V.computeHeaderLogoHeight=function(G,e){var r,Z,O;return(G=(r=this.computeHeaderLogoThumbnail(G,e))==null?void 0:(Z=r.thumbnails)==null?void 0:(O=Z[0])==null?void 0:O.height)&&G%31===0?"31":"24"};
_.V.computeHeaderLogoMarginBottom=function(G,e){return this.computeHeaderLogoHeight(G,e)==="24"?"0":"-7"};
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],jL.prototype,"actionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],jL.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],jL.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Boolean)],jL.prototype,"isDarkTheme",void 0);_.B([_.n({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.x("design:type",Object)],jL.prototype,"themeLogo",void 0);
_.B([_.n({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.x("design:type",String)],jL.prototype,"logoHeight",void 0);_.B([_.n({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.x("design:type",String)],jL.prototype,"logoMarginBottom",void 0);_.B([_.c({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],jL);
_.A(jL,"ytd-primetime-promo-header-renderer",function(){if(y7S!==void 0)return y7S;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return y7S=G},{mode:1});var A7y;_.aD=_.y(function(G){var e=G.className;var r=G.data;var Z=G.isOverlay;var O=G.maxLinesOverride;var M=G.useMediumText;var T=function(){return r().alwaysShowTruncationText},E=function(){return r().truncationText},b=function(){return M!==void 0&&M()?"medium":"small"},w=function(){return Z!==void 0&&Z()?"overlay":"default"},q=function(){var X,H;
return(H=(X=_.a(r().rendererContext,_.D9))==null?void 0:X.label)!=null?H:""};
G=_.h(_.XQ(!1,void 0,"llBUm"));var t=G.next().value,g=G.next().value;G=_.ev(function(){r().expandOnTap&&g(!t());return!1});
var l={};return _.v("yt-description-preview-view-model",{el:_.cQ(_.jV(function(){return r().rendererContext})),
class:_.LC("ytDescriptionPreviewViewModelHost",e,(l.ytDescriptionPreviewViewModelClickable=function(){var X;return!((X=_.a(r().rendererContext,ebs))==null||!X.onTap)},l.ytDescriptionPreviewViewModelIsOverlay=Z,l)),
"on:click":G},_.v(_.S,{cond:function(){return r().description},
then:function(X){return _.v(_.S,{cond:t,then:function(){var H={};return _.v("div",{class:_.LC("ytDescriptionPreviewViewModelDescription",(H.ytDescriptionPreviewViewModelDescriptionMediumText=M,H))},_.v(_.Wh,{text:X}))},
else:function(){return _.v(Fzj,{text:X,alwaysShowTruncationText:T,truncationText:E,maxLines:function(){var H;return(H=O==null?void 0:O())!=null?H:r().maxLines},
textStyle:w,accessibilityLabel:q,textSize:b})}})}}))},"$c");
_.aD.idomCompat=!0;var J7W=_.y(function(G){var e=_.ev(function(O){var M;(M=G.onClick)==null||M.call(G,O)}),r={},Z={};
return _.v("yt-shelf-header-layout",{class:_.LC("yt-shelf-header-layout",(r["yt-shelf-header-layout--disable-horizontal-padding"]=G.disableHorizontalPadding,r["yt-shelf-header-layout--disable-vertical-padding"]=G.disableVerticalPadding,r["yt-shelf-header-layout--responsive"]=G.useResponsiveLayout,r["yt-shelf-header-layout--narrow"]=function(){var O,M;return((O=G.useResponsiveLayout)==null?void 0:O.call(G))&&((M=G.forceSmallLayout)==null?void 0:M.call(G))},r["yt-shelf-header-layout--is-overlay"]=G.isOverlay,
r["yt-shelf-header-layout--tappable"]=G.isInteractive,r["yt-shelf-header-layout--optional-medium-layout-padding"]=G.useUpdatedPadding,r)),
"on:click":e,tabindex:function(){var O;return((O=G.isInteractive)==null?0:O.call(G))?0:void 0}},_.v("div",{class:"yt-shelf-header-layout__header-row"},_.v(_.S,{cond:G.leadingIcon,
then:function(O){return _.v("div",{class:"yt-shelf-header-layout__leading-icon"},_.v(_.V$,{icon:O}))},
else:function(){return _.v(_.S,{cond:G.hasLeadingImage,then:function(){var O,M={};return _.v("div",{class:_.LC("yt-shelf-header-layout__leading-image",(M["yt-shelf-header-layout__leading-image--circular-image"]=G.circularImage,M))},(O=G.leadingImage)==null?void 0:O.call(G))}})}}),_.v("div",{class:"yt-shelf-header-layout__label-container"},_.v(_.S,{cond:G.hasSuperlabel,
then:function(){var O;return _.v("div",{class:"yt-shelf-header-layout__superlabel"},(O=G.superlabel)==null?void 0:O.call(G))}}),_.v("div",{class:"yt-shelf-header-layout__title-row"},_.v(FWc,{text:G.title,
className:_.LC("yt-shelf-header-layout__title",(Z["yt-shelf-header-layout__title--small-title"]=G.forceSmallLayout,Z)),tagLevel:G.tagLevel}),_.v(_.S,{cond:G.hasDetail,then:function(){var O;return _.v("div",{class:"yt-shelf-header-layout__detail"},(O=G.detail)==null?void 0:O.call(G))}})),_.v(_.S,{cond:G.hasSublabel,
then:function(){var O;return _.v("div",{class:"yt-shelf-header-layout__sublabel"},(O=G.sublabel)==null?void 0:O.call(G))}})),_.v(_.S,{cond:G.hasTrailingActions,
then:function(){var O;return _.v("div",{class:"yt-shelf-header-layout__trailing-actions"},(O=G.trailingActions)==null?void 0:O.call(G))}})),_.v(_.S,{cond:G.hasBottomAccessory,
then:function(){var O;return _.v("div",{class:"yt-shelf-header-layout__bottom-accessory"},(O=G.bottomAccessory)==null?void 0:O.call(G))}}))},"ad");
J7W.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var FWc=_.y(function(G){var e=G.text;var r=G.className;var Z=G.tagLevel;return _.v(_.nz,null,_.v(_.pz,{when:function(){return(Z==null?void 0:Z())===0}},function(){return _.v("h2",{class:r},e())}),_.v(_.pz,{when:function(){return(Z==null?void 0:Z())===1}},function(){return _.v("h3",{class:r},e())}),_.v(_.pz,{when:function(){return(Z==null?void 0:Z())===2}},function(){return _.v("h4",{class:r},e())}),_.v(_.Cz,null,function(){return _.v("h2",{class:r},e())}))},"bd");var PsE,Bnw,xPw;_.XA=_.y(function(G){var e=G.className;var r=G.data;var Z=G.disableHorizontalPadding;var O=G.disableVerticalPadding;var M=G.forceSmallLayout;var T=G.useResponsiveLayout;var E=G.isOverlay;G=G.useUpdatedPadding;return _.v("yt-section-header-view-model",{class:_.LC("ytSectionHeaderViewModelHost",e),style:_.Mk({"background-color":function(){return Oz(r().backgroundColor)?_.jF(Oz(r().backgroundColor)):void 0}})},_.v(J7W,{hasDetail:!1,
title:function(){return _.v(_.Wh,{text:function(){return r().headline}})},
hasTitle:!0,sublabel:function(){return _.v(Bnw,{data:r})},
hasSublabel:function(){return!!r().sublabel||!!r().bottomBadge},
superlabel:function(){return _.v(xPw,{data:r})},
hasSuperlabel:function(){return!!r().superlabel||!!r().topBadge},
leadingImage:function(){return _.v(PsE,{leadingAccessory:function(){return r().leadingAccessory}})},
hasLeadingImage:function(){return!!r().leadingAccessory},
trailingActions:function(){return _.v(_.E2,{data:function(){return r().trailingActions}},{flexibleActionsViewModel:_.FL})},
hasTrailingActions:function(){return!!r().trailingActions},
disableHorizontalPadding:Z,disableVerticalPadding:O,forceSmallLayout:M,useResponsiveLayout:T,isOverlay:E,isInteractive:function(){return!!_.lt(r().rendererContext)},
onClick:function(b){if(_.RH(r().rendererContext)){var w=_.lt(r().rendererContext);w&&_.KC(w,{form:{element:b.target,event:b}})}},
bottomAccessory:function(){return _.v(_.E2,{data:function(){return r().bottomAccessory}},{descriptionPreviewViewModel:function(b){return _.v(_.aD,{data:b.data,
useMediumText:!0})}})},
hasBottomAccessory:function(){return!!r().bottomAccessory},
useUpdatedPadding:G}))},"cd");
PsE=_.y(function(G){var e=G.leadingAccessory;return _.v(_.$Z,null,_.v(_.S,{cond:function(){var r;return(r=e().image)!=null?r:_.d8(e().themedImage)},
then:function(r){return _.v(_.nC,{data:r,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.v(_.S,{cond:function(){return _.a(e().avatar,_.aH)},
then:function(r){return _.v(_.yy,{data:r})}}))},"dd");
Bnw=_.y(function(G){var e=G.data;return _.v(_.$Z,null,_.v(_.S,{cond:function(){return _.a(e().bottomBadge,VTW)},
then:function(r){var Z={};return _.v(_.vH,{data:r,class:_.LC((Z.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!r()&&!!e().sublabel},Z))})}}),_.v(_.S,{cond:function(){return e().sublabel},
then:function(r){return _.v(_.Wh,{text:r})}}))},"ed");
xPw=_.y(function(G){var e=G.data;return _.v(_.$Z,null,_.v(_.S,{cond:function(){return _.a(e().topBadge,VTW)},
then:function(r){var Z={};return _.v(_.vH,{data:r,class:_.LC((Z.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!r()&&!!e().superlabel},Z))})}}),_.v(_.S,{cond:function(){return e().superlabel},
then:function(r){return _.v(_.Wh,{text:r})}}))},"fd");_.J_(_.XA,"yt-section-header-view-model",{props:{data:_.N6,className:_.N6,disableHorizontalPadding:_.N6,disableVerticalPadding:_.N6,forceSmallLayout:_.N6,useResponsiveLayout:_.N6,isOverlay:_.N6,useUpdatedPadding:_.N6}});_.te("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var KI=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return G};
_.K(KI,_.m);_.V=KI.prototype;_.V.attached=function(){this.requestElementsPerRow()};
_.V.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"}}}};
_.V.onDataChange=function(){var G=this;_.DE(this,function(){G.updateItemVisibility()})};
_.V.onUpdateElementsPerRowAction=function(G){G&&this.elementsPerRow!==G&&(this.elementsPerRow=G,this.updateItemVisibility())};
_.V.updateItemVisibility=function(){var G=this;this.data&&this.data.panels&&_.z1(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(e,r){e.hidden=r>G.elementsPerRow-1})};
_.V.requestElementsPerRow=function(){_.xy(this.hostElement,"yt-request-elements-per-row")};
KI.prototype.onDataChange=KI.prototype.onDataChange;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],KI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],KI.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],KI.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],KI.prototype,"actionHandlerBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],KI.prototype,"data",void 0);_.B([_.n({value:3}),_.x("design:type",Number)],KI.prototype,"elementsPerRow",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],KI.prototype,"onDataChange",null);_.B([_.c({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],KI);
_.A(KI,"ytd-primetime-promo-renderer",function(){if(A7y!==void 0)return A7y;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return A7y=G},{mode:1});var UPc;var fI=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return G};
_.K(fI,_.m);fI.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
fI.prototype.handleButtonRefreshAction=function(G){if(G=_.a(G,aFC))this.set("data.button",G.membershipButton),this.notifyPath("data.button")};
_.iY.Object.defineProperties(fI.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var G,e;return((G=this.data)==null?void 0:(e=G.avatars)==null?void 0:e.slice(0,8))||[]}}});
_.B([_.n(),_.x("design:type",Object)],fI.prototype,"data",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],fI.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],fI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],fI.prototype,"rendererBehavior",void 0);_.B([_.d("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],fI.prototype,"avatars",null);
_.B([_.c({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],fI);
_.A(fI,"ytd-recognition-shelf-renderer",function(){if(UPc!==void 0)return UPc;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return UPc=G},{mode:1});var zoE;var WWj;var kq=function(){var G=_.m.apply(this,arguments)||this;G.modernButtons=_.R("web_modern_buttons");return G};
_.K(kq,_.m);_.V=kq.prototype;
_.V.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]]"}}}}}};
_.V.dataChanged=function(){this.collapsed=!0};
_.V.computeVisibleItems=function(G,e){return G!==void 0&&G.items?e?G.items.slice(0,this.data.collapsedItemCount):G.items:[]};
_.V.computeHideShowMore=function(G,e,r){return G>=e||!r};
_.V.computeHideShowAll=function(G,e,r){return!(G&&e)||r};
_.V.onMoreClick=function(){this.collapsed=!1};
_.iY.Object.defineProperties(kq.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.R("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.td("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.R("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
kq.prototype.dataChanged=kq.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],kq.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],kq.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],kq.prototype,"data",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],kq.prototype,"isSearch",void 0);
_.B([_.n({computed:"computeVisibleItems(data,collapsed)"}),_.x("design:type",Array)],kq.prototype,"visibleItems",void 0);_.B([_.n({value:!0}),_.x("design:type",Boolean)],kq.prototype,"collapsed",void 0);_.B([_.n({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.x("design:type",Boolean)],kq.prototype,"hideShowMore",void 0);
_.B([_.n({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.x("design:type",Boolean)],kq.prototype,"hideShowAll",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],kq.prototype,"modernButtons",void 0);_.B([_.d("isSearch"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kq.prototype,"typographyBump",null);
_.B([_.d("isSearch"),_.x("design:type",Object),_.x("design:paramtypes",[])],kq.prototype,"lockupExperiments",null);_.B([_.d("isSearch"),_.x("design:type",String),_.x("design:paramtypes",[])],kq.prototype,"thumbnailWidth",null);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kq.prototype,"dataChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],kq);
_.A(kq,"ytd-vertical-list-renderer",function(){if(WWj!==void 0)return WWj;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return WWj=G},{mode:1});var NnS=_.Cp(["#"]);_.te("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var HP=function(){var G=_.m.apply(this,arguments)||this;G.isConstrainedList=!1;return G};
_.K(HP,_.m);_.V=HP.prototype;
_.V.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"}}}};
_.V.computeThumbnailStyle=function(G){return G||""};
_.V.computePlaceAnnotationUnderTitle=function(){var G;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((G=this.data)==null?void 0:G.thumbnailStyle)||"")};
_.V.computeHrefWithDefault=function(G){return this.ytComponentBehavior.computeHref_(G)||_.h1F(NnS)};
_.V.computeIsPromoShelf=function(G){var e;return(G=G==null?void 0:(e=G[0])==null?void 0:e.metadataBadgeRenderer)?G.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.V.computePlaceBadgeBesideTitle=function(G){var e;return(G==null?0:(e=G[0])==null?0:e.metadataBadgeRenderer)?!this.computeIsPromoShelf(G):!1};
_.V.computeMenuIcon=function(G){return this.computeIsPromoShelf(G)?"yt-icons:more_vert":"yt-icons:more"};
_.V.onDataChange=function(){var G,e;((G=this.data)==null?0:(e=G.content)==null?0:e.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.V.onLockupRequested=function(G){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&G.detail&&G.detail.videoIds){for(var e=this.data.content.gridRenderer.items,r=new Set,Z=_.h(G.detail.videoIds),O=Z.next();!O.done;O=Z.next())r.add(O.value);G.detail.returnValue=e.filter(function(M){return M.gridVideoRenderer&&M.gridVideoRenderer.videoId&&r.has(M.gridVideoRenderer.videoId)}).map(function(M){return M.gridVideoRenderer})}};
_.V.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
HP.prototype.onLockupRequested=HP.prototype.onLockupRequested;HP.prototype.onDataChange=HP.prototype.onDataChange;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],HP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],HP.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],HP.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],HP.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.CS),_.x("design:type",Object)],HP.prototype,"ironResizableBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],HP.prototype,"data",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],HP.prototype,"isSearch",void 0);_.B([_.n(),_.x("design:type",Object)],HP.prototype,"isConstrainedList",void 0);_.B([_.n({reflectToAttribute:!0,value:function(){return _.R("kevlar_fluid_dismiss")}}),
_.x("design:type",Boolean)],HP.prototype,"enableFluidDismiss",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.x("design:type",String)],HP.prototype,"thumbnailStyle",void 0);_.B([_.n({computed:"computeMenuIcon(data.badges)"}),_.x("design:type",String)],HP.prototype,"menuIcon",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.x("design:type",Boolean)],HP.prototype,"featuredPromo",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],HP.prototype,"onDataChange",null);_.B([_.Om("yt-lockup-requested"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],HP.prototype,"onLockupRequested",null);_.B([_.c({is:"ytd-shelf-renderer",disableElementRegistration:!0})],HP);
_.A(HP,"ytd-shelf-renderer",function(){if(zoE!==void 0)return zoE;var G=document.createElement("template");_.f(G,'\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          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-text" class="style-scope ytd-shelf-renderer">\n            <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\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          </div>\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return zoE=G},{mode:1});var LWw;var di=function(){return _.m.apply(this,arguments)||this};
_.K(di,_.m);di.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.iY.Object.defineProperties(di.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],di.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],di.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],di.prototype,"data",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],di.prototype,"isPlaylist",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],di.prototype,"isClipList",void 0);
_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],di.prototype,"isPlaylistPageWithFilters",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],di.prototype,"hasTitle",null);_.B([_.n(),_.d("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.x("design:type",Object),_.x("design:paramtypes",[])],di.prototype,"isRightAligned",null);
_.B([_.c({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],di);
_.A(di,"ytd-sort-filter-header-renderer",function(){if(LWw!==void 0)return LWw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return LWw=G},{mode:1});var GLP;var oD=function(){var G=_.m.apply(this,arguments)||this;G.enableRightArrowHidden=_.R("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return G};
_.K(oD,_.m);oD.prototype.attached=function(){var G=this;this.enableRightArrowHidden&&(this.JSC$16538_throttledOnResize=new _.Zp(function(){var e;(e=G.ytdHorizontalListBehavior)==null||e.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var e;
(e=G.JSC$16538_throttledOnResize)==null||e.fire()}),this.resizeObserver.observe(this.hostElement))};
oD.prototype.detached=function(){if(this.enableRightArrowHidden){var G;(G=this.resizeObserver)==null||G.disconnect();var e;(e=this.JSC$16538_throttledOnResize)==null||e.dispose()}};
oD.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]]"}}}}}};
oD.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.iY.Object.defineProperties(oD.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.R("enable_creator_details_shelf_m2")){var G=[],e;((e=this.data)==null?0:e.creatorVideosButton)&&G.push(this.data.creatorVideosButton);var r;((r=this.data)==null?0:r.creatorAboutButton)&&G.push(this.data.creatorAboutButton);e=_.h(this.data.creatorCustomUrlButtons||[]);for(r=e.next();!r.done;r=e.next())G.push(r.value);return G}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.R("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],oD.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],oD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.E1.YtdHorizontalListBehavior),_.x("design:type",Object)],oD.prototype,"ytdHorizontalListBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],oD.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],oD.prototype,"engagementPanel",void 0);
_.B([_.n(),_.x("design:type",Object)],oD.prototype,"enableRightArrowHidden",void 0);_.B([_.d("enableRightArrowHidden","atEnd"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],oD.prototype,"hideRightArrow",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],oD.prototype,"creatorCustomUrlButtons",null);
_.B([_.n({reflectToAttribute:!0}),_.d("data","creatorCustomUrlButtons"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],oD.prototype,"showCreatorCustomUrlButtons",null);_.B([_.d("showCreatorCustomUrlButtons"),_.x("design:type",Number),_.x("design:paramtypes",[])],oD.prototype,"channelAvatarSize",null);_.B([_.c({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],oD);
_.A(oD,"ytd-video-description-infocards-section-renderer",function(){if(GLP!==void 0)return GLP;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return GLP=G},{mode:_.Px("kevlar_poly_si_batch_j067")?1:2});var eYW;var sL=function(){return _.m.apply(this,arguments)||this};
_.K(sL,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],sL.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],sL.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],sL.prototype,"data",void 0);_.B([_.n({computed:"computeIcon_(data.infoIcon)"}),_.x("design:type",Object)],sL.prototype,"infoIcon",void 0);_.B([_.c({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],sL);
_.A(sL,"ytd-eom-settings-disclaimer-renderer",function(){if(eYW!==void 0)return eYW;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return eYW=G},{mode:1});var rFP;var Qc=function(){return _.m.apply(this,arguments)||this};
_.K(Qc,_.m);_.iY.Object.defineProperties(Qc.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.suppressPaddingDisclaimer)}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Qc.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Qc.prototype,"componentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Qc.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Qc.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Qc.prototype,"suppressPaddingDisclaimer",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],Qc);
_.A(Qc,"ytd-product-list-header-renderer",function(){if(rFP!==void 0)return rFP;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return rFP=G},{mode:1});var Zsj;var ID=function(){return _.m.apply(this,arguments)||this};
_.K(ID,_.m);ID.prototype.computeThumbnailStyle=function(G){if(G&&(G=_.RB(G)))return"background-color:"+G+";"};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ID.prototype,"rendererBehaviors",void 0);_.B([_.n(),_.x("design:type",Object)],ID.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],ID);
_.A(ID,"ytd-hashtag-tile-renderer",function(){if(Zsj!==void 0)return Zsj;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Zsj=G},{mode:1});var OsS;var pI=function(){return _.m.apply(this,arguments)||this};
_.K(pI,_.m);pI.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}}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],pI.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],pI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],pI.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],pI);
_.A(pI,"ytd-sponsorships-alert-renderer",function(){if(OsS!==void 0)return OsS;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return OsS=G},{mode:1});var MNW;var CI=function(){return _.m.apply(this,arguments)||this};
_.K(CI,_.m);CI.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.iY.Object.defineProperties(CI.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.R("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.R("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.B([_.k(_.J5),_.x("design:type",Object)],CI.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.k(_.NC),_.x("design:type",Object)],CI.prototype,"ytdLockupBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],CI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],CI.prototype,"ytRendererBehavior",void 0);_.B([_.n({selector:_.Xf}),_.x("design:type",Object)],CI.prototype,"isGridViewEnabled",void 0);
_.B([_.d("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],CI.prototype,"watchFeedBigThumbs",null);_.B([_.d("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.x("design:type",String),_.x("design:paramtypes",[])],CI.prototype,"thumbnailWidth",null);_.B([_.n(),_.x("design:type",Object)],CI.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],CI);
_.A(CI,"ytd-compact-movie-renderer",function(){if(MNW!==void 0)return MNW;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return MNW=G},{mode:1});var VNc;var hYc;var TKl=_.xZ("HTML_DIR")==="rtl",u8=function(){var G=_.m.apply(this,arguments)||this;G.engagementPanel=!1;G.maxLines=2;G.expandButtonOffset=0;G.showExpandButton=!1;G.isTruncated=!1;G.isExpanded=!1;G.currentSnippetType=2;G.alwaysShowExpandButton=!1;G.JSC$16555_lastWidth=NaN;G.observer=null;G.left=0;G.right=0;G.mid=0;G.longestSnippetLength=0;G.isFinalSnippet=!1;G.isFirstMutation=!1;G.isResetMutation=!1;G.OVERFLOW_THRESHOLD=5;return G};
_.K(u8,_.m);_.V=u8.prototype;_.V.onClick=function(G){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.mO(_.na(G)||[],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()}};
_.V.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.V.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.V.updateTextOnSnippetTypeChange=function(){_.R("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.V.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.V.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.FH(new _.Cr("AttributedSnippet is empty when the description is not empty",this.text))};
_.V.mutationCallback=function(){if(this.observer!=null){var G=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var e=Math.floor(G*this.maxLines/8);this.setSnippetText(this.text,e);e!==0||this.attributedTextIsEmpty()||_.FH(new _.Cr("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;G=G*this.maxLines/8;this.left=0;var r;this.right=Math.min(G*2,(r=(e=this.simpleText)==null?void 0:e.length)!=null?r: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)}}};
_.V.mutationObserve=function(G){var e=this;this.observer||(this.observer=new MutationObserver(function(){e.mutationCallback()}));
this.observer.observe(G,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.V.attached=function(){var G=this;_.DE(this,function(){G.resize()})};
_.V.isExpandedChanged=function(){_.xy(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.V.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)};
_.V.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var G="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((TKl?"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",G);this.snippetContainer.style.setProperty("mask-image",
G)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(TKl?"right":"left",this.expandButtonOffset+"px")};
_.V.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.V.setSnippetText=function(G,e){G||(G={});if(_.pC(G)){var r=Qb(G,e);r.attachmentRuns||r.commandRuns||r.decorationRuns||r.styleRuns||r.alignment||r.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:Qb(G,e),headerRuns:umf(e,this.headerRuns)},this.currentSnippetType=0):_.FH(new _.Cr("Tried to set snippet text when HTML element was null",G)):(this.plainSnippetText.textContent=og(G.content||"",e),this.currentSnippetType=2)}else{a:{r=jzA(G,e);if(r.runs){r=_.h(r.runs);for(var Z=
r.next();!Z.done;Z=r.next())if(Z=Z.value,Z.bold||Z.deemphasize||Z.italics||Z.strikethrough||Z.textColor||Z.navigationEndpoint||_.a(Z,Rg)){r=!0;break a}}r=!1}r?this.formattedSnippetText?(this.formattedSnippetText.text=jzA(G,e),this.currentSnippetType=1):_.FH(new _.Cr("Tried to set snippet text when HTML element was null",G)):(this.plainSnippetText.textContent=og(_.mG(G),e),this.currentSnippetType=2)}};
_.V.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.V.attributedTextIsEmpty=function(){var G=this.text;if(!_.pC(G))return!0;var e;return((e=G.content)==null?void 0:e.length)===0?!0:!1};
_.V.resize=function(G){if(this.snippetText){if(G===void 0?0:G)this.JSC$16555_lastWidth=NaN;var e=this.hostElement.offsetWidth;if(e!==this.JSC$16555_lastWidth&&!this.isExpanded)if(this.JSC$16555_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;G=0;var r,Z;e=Math.min(e*this.maxLines/8*2,(Z=(r=this.simpleText)==null?void 0:r.length)!=null?Z:0)-1;for(r=0;G<=e;)Z=Math.floor(G+(e-G)/2),this.setSnippetText(this.text,Z),this.isOverflowing()?e=Z-1:(G=Z+1,r=Z);this.setSnippetText(this.text,r);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.V.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.V.onExpandClick=function(){var G=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.R("inline_expander_reset_focus_killswitch")||_.DE(this,function(){var e;((e=_.v_().resolve(_.bq(_.T6)))==null?0:e.isKeyBoardInUse())&&_.Os(G.hostElement)});
_.xy(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.V.onCollapseClick=function(){this.collapse();_.xy(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.V.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.V.computeExpandButtonOffset=function(){var G=this.expandSizer;return G?TKl?G.offsetParent?G.offsetParent.offsetWidth-G.offsetWidth-G.offsetLeft:0:G.offsetLeft:0};
_.iY.Object.defineProperties(u8.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.pC(this.text)?this.text.content||"":_.mG(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 _.pC(this.text)?!0:this.text&&_.R("web_replace_formatted_with_attributed_string")&&Tr_(this.text)?(this.text=_.l1(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}}});
u8.prototype.onTextChanged=u8.prototype.onTextChanged;u8.prototype.updateMaskAndExpandButtonOffset=u8.prototype.updateMaskAndExpandButtonOffset;u8.prototype.updateSnippetContainerMaxHeight=u8.prototype.updateSnippetContainerMaxHeight;u8.prototype.isExpandedChanged=u8.prototype.isExpandedChanged;u8.prototype.updateTextOnSnippetTypeChange=u8.prototype.updateTextOnSnippetTypeChange;u8.prototype.updateIsFormattedExpanded=u8.prototype.updateIsFormattedExpanded;u8.prototype.updateIsAttributedExpanded=u8.prototype.updateIsAttributedExpanded;
u8.prototype.onClick=u8.prototype.onClick;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],u8.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],u8.prototype,"text",void 0);_.B([_.n(),_.x("design:type",Array)],u8.prototype,"headerRuns",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],u8.prototype,"engagementPanel",void 0);_.B([_.n(),_.x("design:type",Object)],u8.prototype,"maxLines",void 0);
_.B([_.n(),_.x("design:type",String)],u8.prototype,"expandLabel",void 0);_.B([_.n(),_.x("design:type",String)],u8.prototype,"collapseLabel",void 0);_.B([_.n(),_.x("design:type",Object)],u8.prototype,"expandCommand",void 0);_.B([_.n(),_.x("design:type",Object)],u8.prototype,"expandButtonOffset",void 0);_.B([_.d("text"),_.x("design:type",String),_.x("design:paramtypes",[])],u8.prototype,"simpleText",null);
_.B([_.Om("click"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],u8.prototype,"onClick",null);_.B([_.d("text","isExpanded"),_.x("design:type",Object),_.x("design:paramtypes",[])],u8.prototype,"expandedText",null);_.B([_.d("headerRuns","isExpanded"),_.x("design:type",Object),_.x("design:paramtypes",[])],u8.prototype,"expandedHeaderRuns",null);
_.B([_.d("text"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],u8.prototype,"hasAttributedStringText",null);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],u8.prototype,"showExpandButton",void 0);_.B([_.d("collapseLabel","isExpanded"),_.x("design:type",Object),_.x("design:paramtypes",[])],u8.prototype,"showCollapseButton",null);_.B([_.n(),_.x("design:type",Object)],u8.prototype,"isTruncated",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],u8.prototype,"isExpanded",void 0);_.B([_.n(),_.x("design:type",Boolean)],u8.prototype,"isAttributedExpanded",void 0);_.B([_.Me("isExpanded","hasAttributedStringText"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u8.prototype,"updateIsAttributedExpanded",null);_.B([_.n(),_.x("design:type",Boolean)],u8.prototype,"isFormattedExpanded",void 0);
_.B([_.Me("isExpanded","hasAttributedStringText"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u8.prototype,"updateIsFormattedExpanded",null);_.B([_.n(),_.x("design:type",Number)],u8.prototype,"currentSnippetType",void 0);_.B([_.d("currentSnippetType"),_.x("design:type",Object),_.x("design:paramtypes",[])],u8.prototype,"useAttributedSnippet",null);
_.B([_.d("currentSnippetType"),_.x("design:type",Object),_.x("design:paramtypes",[])],u8.prototype,"useFormattedSnippet",null);_.B([_.d("currentSnippetType"),_.x("design:type",Object),_.x("design:paramtypes",[])],u8.prototype,"usePlainSnippet",null);_.B([_.n(),_.x("design:type",Object)],u8.prototype,"alwaysShowExpandButton",void 0);_.B([_.Me("currentSnippetType"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u8.prototype,"updateTextOnSnippetTypeChange",null);
_.B([_.n(),_.x("design:type",Object)],u8.prototype,"attributedSnippetText",void 0);_.B([_.hs("#snippet"),_.x("design:type",HTMLElement)],u8.prototype,"snippetContainer",void 0);_.B([_.hs("#snippet-text"),_.x("design:type",HTMLElement)],u8.prototype,"snippetText",void 0);_.B([_.hs("#plain-snippet-text"),_.x("design:type",HTMLElement)],u8.prototype,"plainSnippetText",void 0);_.B([_.hs("#formatted-snippet-text"),_.x("design:type",Object)],u8.prototype,"formattedSnippetText",void 0);
_.B([_.hs("#attributed-snippet-text"),_.x("design:type",Object)],u8.prototype,"attributedSnippetTextEl",void 0);_.B([_.hs("#expand"),_.x("design:type",HTMLElement)],u8.prototype,"expandButton",void 0);_.B([_.hs("#expand-sizer"),_.x("design:type",HTMLElement)],u8.prototype,"expandSizer",void 0);_.B([_.iD("isExpanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u8.prototype,"isExpandedChanged",null);
_.B([_.Me("isExpanded","maxLines"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u8.prototype,"updateSnippetContainerMaxHeight",null);_.B([_.Me("isTruncated","showExpandButton","expandButtonOffset"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u8.prototype,"updateMaskAndExpandButtonOffset",null);
_.B([_.iD("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u8.prototype,"onTextChanged",null);_.B([_.c({is:"ytd-text-inline-expander",disableElementRegistration:!0})],u8);
_.A(u8,"ytd-text-inline-expander",function(){if(hYc===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);hYc=G}G=hYc;return G},{mode:2});var nI=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return G};
_.K(nI,_.m);nI.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
nI.prototype.handleUpdateDescriptionAction=function(G){if(G=_.a(G,_.IoC))if(G.attributedDescription)this.set("data.attributedDescriptionBodyText",G.attributedDescription);else if(G.description){var e;((e=this.data)==null?0:e.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.l1(G.description)):this.set("data.descriptionBodyText",G.description)}};
_.iY.Object.defineProperties(nI.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var G,e;return!((G=this.data)==null||!G.attributedDescriptionBodyText)||!((e=this.data)==null||!e.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null?0:G.collapsedLineCount){var e;return(e=this.data)==null?void 0:e.collapsedLineCount}G=_.qt("web_watch_description_collapsed_default_lines",12);if(_.R("ww_desc_line_page_size_ks"))return G;e=Math.round(_.T1().height*_.qt("web_watch_description_screen_height_percentage",.5)/20);return Math.max(e,G)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return(r=(G=this.data)==null?void 0:G.descriptionBodyText)!=null?r:(e=this.data)==null?void 0:e.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.sourceAttributions}}});
nI.prototype.panelContentVisibleChanged=nI.prototype.panelContentVisibleChanged;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],nI.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],nI.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],nI.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],nI.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",Boolean)],nI.prototype,"panelContentVisible",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],nI.prototype,"engagementPanel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],nI.prototype,"shortsPanel",void 0);_.B([_.hs("#inline-expander"),_.x("design:type",Object)],nI.prototype,"inlineExpander",void 0);
_.B([_.Me("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nI.prototype,"panelContentVisibleChanged",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],nI.prototype,"hasDescriptionText",null);_.B([_.d("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],nI.prototype,"collapsedLines",null);
_.B([_.d("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.x("design:type",Object),_.x("design:paramtypes",[])],nI.prototype,"descriptionText",null);_.B([_.d("data","data.headerRuns"),_.x("design:type",Object),_.x("design:paramtypes",[])],nI.prototype,"headerRuns",null);_.B([_.d("data","data.sourceAttributions"),_.x("design:type",Object),_.x("design:paramtypes",[])],nI.prototype,"sourceAttributions",null);
_.B([_.c({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],nI);
_.A(nI,"ytd-expandable-video-description-body-renderer",function(){if(VNc!==void 0)return VNc;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return VNc=G},{mode:_.Px("kevlar_poly_si_batch_j028")?1:2});var DyS;var EIl=_.y(function(G){var e=G.data;return _.v("factoid-renderer",{class:"ytwFactoidRendererHost"},_.v("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return e().accessibilityText}},_.v("span",{class:"ytwFactoidRendererValue"},_.v(_.Wh,{text:function(){return e().value}})),_.v("span",{class:"ytwFactoidRendererLabel"},_.v(_.Wh,{text:function(){return e().label}}))))},"gd");_.J_(EIl,"factoid-renderer",{props:{data:_.N6}});_.J_(_.y(function(G){var e=G.data;return _.v("upload-time-factoid-renderer",null,_.v(_.E2,{data:function(){return e().factoid}},{factoidRenderer:EIl}))},"hd"),"upload-time-factoid-renderer",{props:{data:_.yb}});_.J_(_.y(function(G){var e=G.data;return _.v("view-count-factoid-renderer",null,_.v(_.E2,{data:function(){return e().factoid}},{factoidRenderer:EIl}))},"id"),"view-count-factoid-renderer",{props:{data:_.yb}});var mA=function(){var G=_.m.apply(this,arguments)||this;G.shortsPanel=!1;G.engagementPanel=!1;G.watchWhileSdp=_.R("shorts_desktop_watch_while_sdp");return G};
_.K(mA,_.m);mA.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"}}}}};
_.iY.Object.defineProperties(mA.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var G;return(G=this.data)==null?void 0:G.channel}}});
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],mA.prototype,"componentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],mA.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],mA.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],mA.prototype,"shortsPanel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],mA.prototype,"engagementPanel",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],mA.prototype,"watchWhileSdp",void 0);_.B([_.d("shortsPanel","engagementPanel","data.channel"),_.x("design:type",Object),_.x("design:paramtypes",[])],mA.prototype,"showChannelInfo",null);_.B([_.c({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],mA);
_.A(mA,"ytd-video-description-header-renderer",function(){if(DyS!==void 0)return DyS;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return DyS=G},{mode:1});var isc;var cP=function(){return _.m.apply(this,arguments)||this};
_.K(cP,_.m);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],cP.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],cP.prototype,"ytRendererBehavior",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],cP.prototype,"noPadding",void 0);_.B([_.n(),_.x("design:type",Object)],cP.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],cP);
_.A(cP,"ytd-list-item-view-model",function(){if(isc!==void 0)return isc;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return isc=G},{mode:1});var bsP;var vIC;var wCS;var $y3;var Yq=function(){var G=_.m.apply(this,arguments)||this;G.adaptiveFullWidth=!1;G.modernButtons=_.R("web_modern_buttons");G.buttonOverrides={style:"call-to-action",type:"filled"};G.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return G};
_.K(Yq,_.m);Yq.prototype.handleSetTimestamp_=function(G){this.data&&this.data.shortUrl&&(_.z1(this.hostElement).querySelector("#share-url").value=G.isSet?_.yS(this.data.shortUrl,"t",G.timestamp):this.data.shortUrl)};
Yq.prototype.handleSignalActionCopyShareUrl_=function(G,e){(_.R("killswitch_copy_link_target_check")||_.z1(this.hostElement).querySelector("#copy-button")===e)&&this.copyUrlToClipboard()};
Yq.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.z1(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
Yq.prototype.computeStyle_=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Yq.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Yq.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Yq.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.x("design:type",String)],Yq.prototype,"rendererStyle",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Yq.prototype,"adaptiveFullWidth",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Yq.prototype,"modernButtons",void 0);_.B([_.n(),_.x("design:type",Object)],Yq.prototype,"buttonOverrides",void 0);_.B([_.aR({is:"yt-copy-link-renderer",disableElementRegistration:!0})],Yq);
_.A(Yq,"yt-copy-link-renderer",function(){if($y3===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;wCS===void 0&&(wCS=document.createElement("template"));var Z=wCS;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);$y3=G}G=$y3;return G},{mode:2});_.te("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var yc=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return G};
_.K(yc,_.m);_.V=yc.prototype;_.V.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.V.attached=function(){this.keyboardFocused=!1};
_.V.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var G=_.v_().resolve(_.bq(_.T6));G&&(this.keyboardFocused=G.isKeyBoardInUse())}};
_.V.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.V.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}};
_.V.onChange_=function(){if(this.data){var G=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;G&&this.ytComponentBehavior.resolveCommand(G);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.V.handleUpdateToggleAction_=function(G){(G=_.a(G,Wyv))&&this.data&&G.targetId==this.data.targetId&&this.set("data.toggled",G.toggled)};
_.V.toBoolean_=function(G){return!!G};
_.V.reset=function(){};
_.V.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eG("data-changed",this.data))};
_.V.updateDataToggledFromBinding=function(G){this.set("data.toggled",G.detail.value)};
yc.prototype.dataChangedForBinding=yc.prototype.dataChangedForBinding;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],yc.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],yc.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],yc.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],yc.prototype,"ytRendererBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],yc.prototype,"data",void 0);_.B([_.n({computed:"computeDescription_(data.*)"}),_.x("design:type",Object)],yc.prototype,"description_",void 0);_.B([_.n({value:function(){return!!_.v_().resolve(_.bq(_.T6))&&_.R("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.x("design:type",Boolean)],yc.prototype,"useKeyboardFocused",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],yc.prototype,"keyboardFocused",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yc.prototype,"dataChangedForBinding",null);_.B([_.aR({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],yc);
_.A(yc,"yt-toggle-form-field-renderer",function(){if(vIC===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;bsP===void 0&&(bsP=document.createElement("template"));var Z=bsP;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);vIC=G}G=vIC;return G},{mode:2});var SXl;var qX3;var Am=function(){var G=_.m.apply(this,arguments)||this;G.isDarkTheme=!1;G.isSearch=!1;G.noTopMargin=_.R("kevlar_watch_no_top_margin");G.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 G};
_.K(Am,_.m);_.V=Am.prototype;_.V.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}}}}}};
_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.V.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.V.dataChanged=function(){var G=this.getSelectedIndex();if(G>0)this.selected=G;else{this.selected=0;var e,r;(e=this.ytScrollableChipCloudBehavior)==null||(r=e.reset)==null||r.call(e)}};
_.V.getSelectedIndex=function(){var G;if((G=this.data)==null||!G.chips)return-1;G=-1;for(var e,r=0;r<((e=this.data)==null?void 0:e.chips.length);r++){var Z=void 0,O=void 0;if((Z=this.data)==null?0:(O=Z.chips[r].chipCloudChipRenderer)==null?0:O.isSelected){G=r;break}}return G};
_.V.onResize=function(){var G=this.ytScrollableChipCloudBehavior;_.DE(G,G.setContainerWidthDiff);G=this.ytScrollableChipCloudBehavior;_.DE(G,G.setButtonsState)};
_.V.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.V.handleRelatedChipCommand=function(G,e){G=this.JSC$16582_chipsSelector.indexOf(e);G!==-1&&this.JSC$16582_chipsSelector.selectIndex(G)};
_.V.handleChipCloudChipSelectAction=function(G){G=this.JSC$16582_chipsSelector.indexOf(G);G>-1&&this.JSC$16582_chipsSelector.selectIndex(G)};
_.V.handleChipCloudChipDeselectAction=function(){var G=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16582_chipsSelector&&((G==null?0:G.continuationCommand)?_.zw(this.hostElement,[G]):(G==null?0:G.searchEndpoint)?this.ytComponentBehavior.resolveCommand(G):G&&_.Wi(this.hostElement,[G],this.hostElement),this.JSC$16582_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.V.updateSelectedFromBinding=function(G){this.selected=G.detail.value};
Am.prototype.onResize=Am.prototype.onResize;Am.prototype.dataChanged=Am.prototype.dataChanged;Am.prototype.isSearchChanged=Am.prototype.isSearchChanged;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Am.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Am.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Am.prototype,"actionHandlerBehavior",void 0);
_.B([_.k(_.CS),_.x("design:type",Object)],Am.prototype,"ironResizableBehavior",void 0);_.B([_.k(),_.x("design:type",jH)],Am.prototype,"ytScrollableChipCloudBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Am.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Am.prototype,"data",void 0);_.B([_.n({value:0}),_.x("design:type",Number)],Am.prototype,"selected",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Am.prototype,"isDarkTheme",void 0);_.B([_.n({value:160}),_.x("design:type",Number)],Am.prototype,"scrollDistance",void 0);_.B([_.n(),_.x("design:type",Object)],Am.prototype,"isSearch",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Am.prototype,"noTopMargin",void 0);_.B([_.hs("#chips"),_.x("design:type",Object)],Am.prototype,"JSC$16582_chipsSelector",void 0);
_.B([_.Me("isSearch"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Am.prototype,"isSearchChanged",null);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Am.prototype,"dataChanged",null);_.B([_.Om("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Am.prototype,"onResize",null);_.B([_.aR({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],Am);
_.A(Am,"yt-chip-cloud-renderer",function(){if(qX3===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;SXl===void 0&&(SXl=document.createElement("template"));var Z=SXl;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);qX3=G}G=qX3;return G},{mode:2});var tNv,gIw=function(){return tNv!==void 0?tNv:tNv=document.createElement("template")};
document.head.appendChild(gIw().content);var lhj;var RYl=document.head,jEP=RYl.appendChild,ahw;if(lhj===void 0){var XC3=document.createElement("template");_.f(XC3,"");XC3.content.insertBefore(gIw().content.cloneNode(!0),XC3.content.firstChild);lhj=XC3}ahw=lhj;jEP.call(RYl,ahw.content);var K1E=_.y(function(G){var e=G.data;return _.v("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.v("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.v("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.v(_.S,{cond:function(){return _.d8(e().image)},
then:function(r){return _.v("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.v(_.nC,{data:r,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.v("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.v(_.Wh,{text:function(){return e().title}})),_.v("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.v(_.Wh,{text:function(){return e().subtitle}})))),_.v(_.S,{cond:function(){var r;
return(r=e())==null?void 0:r.hasBottomDivider},
then:function(){return _.v("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"jd");var fhc=_.y(function(G){var e=G.data;return _.v("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.v("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.v(_.E2,{data:function(){var r;return(r=e().offerPlanDetailsItem)!=null?r:[]}},{offerPlanDetailsItemViewModel:function(r){return _.v("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.v(K1E,{data:r.data}))}})),_.v("div",null,_.v(_.S,{cond:function(){return e().hasBottomDivider},
then:function(){return _.v("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.v("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.v("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.v("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.v("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"kd");var kLW=_.y(function(G){var e=G.data;G=_.h(_.XQ(!1,void 0,"MrXxy"));var r=G.next().value,Z=G.next().value,O=_.ev(function(){Z(!r());return!1}),M=function(){var T;
return(T=e().offerPlanDetailsContainer)!=null?T:[]};
return _.v("lp-complex-offer-card-details-view-model",null,_.v("div",null,_.v(_.S,{cond:function(){return r()},
then:function(){return _.v("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.v("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":O,"aria-expanded":r},_.v(_.Wh,{text:function(){return e().expandedTitle}})),_.v("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.v(_.E2,{data:M},{offerPlanDetailsContainerViewModel:function(T){return _.v("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.v(fhc,{data:T.data}))}})),_.v("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.v(_.Wh,{text:function(){return e().legalText}})))},
else:function(){return _.v("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":O,"aria-expanded":r},_.v(_.Wh,{text:function(){return e().collapsedTitle}}),_.v("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.v(_.V$,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"ld");var Hsn=_.y(function(G){var e=G.data;return _.v("lp-complex-offer-card-option-view-model",null,_.v("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.v(_.S,{cond:function(){return e().topDividerText},
then:function(){return _.v("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.v("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.v("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.v("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.v(_.Wh,{text:function(){return e().topDividerText}}))))}}),_.v(_.S,{cond:function(){return e().description},
then:function(){return _.v("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.v(_.Wh,{text:function(){return e().description}}))}}),_.v(_.S,{cond:function(){return e().planPricingPrimary},
then:function(){return _.v("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.v(_.Wh,{text:function(){return e().planPricingPrimary}}))}}),_.v(_.S,{cond:function(){return e().planPricingSecondary},
then:function(){return _.v("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.v(_.Wh,{text:function(){return e().planPricingSecondary}}))}}),_.v(_.S,{cond:function(){return e().primaryButton},
then:function(){return _.v("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.v(_.E2,{data:function(){return e().primaryButton}},{buttonViewModel:function(r){return _.v(_.wF,{data:r.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"md");var dyW=_.y(function(G){var e=G.data;var r=function(){var M;return((M=e())==null?void 0:M.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
G={};var Z={},O={};return _.v("ytm-lp-complex-offer-card-view-model",null,_.v("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.v("div",{class:_.LC((G.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=r,G),"ytmLpComplexOfferCardViewModelCardContainer")},_.v(_.S,{cond:function(){var M;return(M=e())==null?void 0:M.bannerText},
then:function(){return _.v("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.v("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.v(_.Wh,{text:function(){return e().bannerText}})))}}),_.v(_.S,{cond:function(){return _.d8(e().logo)},
then:function(M){var T={};return _.v("div",{class:_.LC((T.ytmLpComplexOfferCardViewModelLogoAlignLeft=r,T),"ytmLpComplexOfferCardViewModelLogo")},_.v(_.nC,{data:M,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.v("div",{class:_.LC((Z.ytmLpComplexOfferCardViewModelTitleAlignLeft=r,Z),"ytmLpComplexOfferCardViewModelTitle")},_.v(_.Wh,{text:function(){return e().title}})),_.v(_.S,{cond:function(){var M;
return(M=e())==null?void 0:M.subtitle},
then:function(){var M={};return _.v("div",{class:_.LC((M.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=r,M),"ytmLpComplexOfferCardViewModelSubtitle")},_.v(_.Wh,{text:function(){return e().subtitle}}))}}),_.v(_.S,{cond:function(){return e().planPricingPrimary},
then:function(){return _.v("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.v(_.Wh,{text:function(){return e().planPricingPrimary}}))}}),_.v(_.S,{cond:function(){return e().planPricingSecondary},
then:function(){return _.v("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.v(_.Wh,{text:function(){return e().planPricingSecondary}}))}}),_.v(_.S,{cond:function(){return e().purchaseButton},
then:function(){return _.v("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.v(_.E2,{data:function(){return e().purchaseButton}},{buttonViewModel:function(M){return _.v(_.wF,{data:M.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.v(_.S,{cond:function(){var M;
return(M=e())==null?void 0:M.offerOptions},
then:function(){return _.v("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.v(_.E2,{data:function(){return e().offerOptions}},{lpComplexOfferCardOptionViewModel:Hsn}))}}),_.v("div",{class:_.LC((O.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=r,O),"ytmLpComplexOfferCardViewModelLegalText")},_.v(_.Wh,{text:function(){return e().legalText}})),_.v(_.S,{cond:function(){var M;
return(M=e())==null?void 0:M.offerCardDetails},
then:function(){return _.v("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.v(_.E2,{data:function(){return e().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:kLW}))}}))))},"nd");var oIy=_.y(function(G){var e=G.data;var r=function(){var T;return((T=e())==null?void 0:T.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
G={};var Z={},O={},M={};return _.v("ytm-lp-complex-offer-card-section-view-model",null,_.v("div",{class:_.LC("ytmLpComplexOfferCardSectionViewModelHost")},_.v("div",{class:_.LC((G.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=r,G),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.v("div",{class:_.LC((Z.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=r,Z),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.v("h2",{class:_.LC((O.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
r,O),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.v(_.Wh,{text:function(){return e().title}}))),_.v(_.S,{cond:function(){var T;
return(T=e())==null?void 0:T.subtitle},
then:function(){var T={},E={};return _.v("div",{class:_.LC((T.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=r,T),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.v("div",{class:_.LC((E.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=r,E),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.v(_.Wh,{text:function(){return e().subtitle}})))}}),_.v("div",{class:_.LC((M.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=r,M),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.v(_.E2,{data:function(){var T;
return(T=e().offerPlans)!=null?T:[]}},{lpComplexOfferCardViewModel:function(T){return _.v("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.v(dyW,{data:T.data}))}})))))},"od");var sEc=_.y(function(G){return _.v("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.v("div",{class:"ytLpCouponBannerViewModelIcon"},_.v(_.V$,{icon:function(){return"price_tag"}})),_.v("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.v("div",{class:"ytLpCouponBannerViewModelContent"},_.v("div",{class:"ytLpCouponBannerViewModelHeading"},_.v(_.Wh,{text:function(){var e;
return(e=G.data())==null?void 0:e.title}})),_.v("div",{class:"ytLpCouponBannerViewModelBody"},_.v(_.Wh,{text:function(){var e;
return(e=G.data())==null?void 0:e.subtitle}})))))},"pd");
sEc.idomCompat=!0;_.FA=RZn.getInstance();var QEl;QEl=_.y(function(G){return _.v("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":G.shouldAriaHideContent},_.v("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:G.questionId},_.v(_.Wh,{text:G.question})))},"qd");
_.Ih3=_.y(function(G){var e=G.data;var r=G.themeOverride;G=_.h(_.XQ(!1,void 0,"pNli2b"));var Z=G.next().value,O=G.next().value;G=_.ev(function(){O(!Z());return!1});
var M=function(){return Z()?"EXPAND_LESS":"EXPAND_MORE"},T=("faq-container"+_.Qj(_.FA)).toString(),E="faq-question-and-answers-section-question"+_.Qj(_.FA),b={},w={};
return _.v("faq-entry-view-model",null,_.v("div",{class:_.LC("ytLpFaqEntryViewModelHost",(b.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return r==null?void 0:r().useDarkTheme},b))},_.v("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":G,role:"button","aria-expanded":Z,"aria-labelledby":E.toString(),"tab-index":"0"},_.v(QEl,{question:function(){return e().question},
questionId:E,shouldAriaHideContent:!0}),_.v(_.S,{cond:function(){return Z()!==void 0},
then:function(){return _.v("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.v(_.V$,{icon:M,ariaHidden:!0}),_.v("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.v("div",{class:_.LC("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(w.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!Z()},w))},_.v("div",{id:T},_.v(_.u6,{each:function(){return e().answers||[]}},function(q){return _.v("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.v(_.Wh,
{text:q}))})))))},"rd");
_.Ih3.idomCompat=!0;var pCC=_.y(function(G){var e=G.data;var r=G.themeOverride;G={};return _.v("lp-faq-section-view-model",null,_.v("div",{class:_.LC("yt-lp-faq-section-view-model",(G["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return e().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},G["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(r==null||!r().useDarkTheme)},G))},_.v("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.v(_.S,{cond:function(){return e().header},
then:function(Z){return _.v("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.v(_.Wh,{text:Z}))}}),_.v("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.v(_.E2,{data:function(){return e().faqs}},{faqEntryViewModel:function(Z){return _.v(_.Ih3,{data:Z.data,
themeOverride:r})}})),_.v("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.v(_.u6,{each:function(){return e().footers||[]}},function(Z){return _.v(_.Wh,{text:Z})})),_.v(_.S,{cond:function(){return e().legal},
then:function(Z){return _.v("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.v(_.Wh,{text:Z}))}}))))},"sd");
pCC.idomCompat=!0;var C3j=_.y(function(G){var e=G.data;var r=G.themeOverride;_.yY(function(){var T=e().gtmId;T&&_.sZ(T,_.xZ("GL",""))});
var Z={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var T,E,b;return(b=(T=e().logo)==null?void 0:(E=T.accessibilityData)==null?void 0:E.label)!=null?b:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},O=_.v_().resolve(_.bq(_.Ig)),M=function(){return O&&O()||(r==null?void 0:r().useDarkTheme)};
return _.v("lp-header-section-view-model",null,_.v("div",{class:function(){var T=e().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",E=e().marginType==="LP_SECTION_MARGIN_TYPE_TOP",b=r==null?void 0:r().useDarkTheme,w=["lp-header-section-view-model"];T&&w.push("lp-header-section-view-model--ptc-layout-type");E&&w.push("lp-header-section-view-model__lp-header-section-margin");b&&w.push("lp-header-section-view-model--premium-force-dark-mode");return w.join(" ")}},_.v(_.S,{cond:function(){return e().logo},
then:function(){return _.v("div",null,_.v(_.S,{cond:M,then:function(){return _.v(_.S,{cond:function(){var T;return(T=e().logo)==null?void 0:T.imageDark},
then:function(T){return _.v(_.nC,Object.assign({},{data:T},Z))}})},
else:function(){return _.v(_.S,{cond:function(){var T;return(T=e().logo)==null?void 0:T.imageLight},
then:function(T){return _.v(_.nC,Object.assign({},{data:T},Z))}})}}))}}),_.v(_.S,{cond:function(){return e().title},
then:function(T){return _.v("div",{class:"lp-header-section-view-model__lp-header-title"},_.v(_.Wh,{text:T}))}}),_.v("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.v(_.S,{cond:function(){return e().subtitles},
then:function(T){return _.v(_.u6,{each:T},function(E){return _.v("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.v(_.Wh,{text:E}))})}})),_.v(_.S,{cond:function(){return e().additionalInfo},
then:function(T){return _.v("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.v(_.Wh,{text:T}))}}),_.v("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.v(_.S,{cond:function(){return e().primaryButton},
then:function(T){return _.v("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.v(_.E2,{data:T},{buttonViewModel:_.wF}))}}),_.v(_.S,{cond:function(){return e().secondaryButton},
then:function(T){return _.v("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.v(_.E2,{data:T},{buttonViewModel:_.wF}))}})),_.v(_.S,{cond:function(){return e().otherOffersInfo},
then:function(T){return _.v("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.v(_.Wh,{text:T}))}}),_.v("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.v(_.S,{cond:function(){return e().billingInfo},
then:function(T){return _.v(_.u6,{each:T},function(E){return _.v("div",null,_.v(_.Wh,{text:E}))})}}))))},"td");
C3j.idomCompat=!0;var u7P=_.y(function(G){return _.v("lp-header-upsell-banner-view-model",{class:_.LC("lpHeaderUpsellBannerViewModelHost",G.className,{})},_.v("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.v(_.V$,{icon:function(){return"CAMPAIGN"}})),_.v("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.v("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.v("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.v("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.v(_.Wh,{text:function(){var e;
return(e=G.data())==null?void 0:e.description}})))),_.v(_.E2,{data:function(){var e;
return(e=G.data())==null?void 0:e.purchaseButton}},{buttonViewModel:function(e){return _.v(_.wF,{data:e.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"ud");var nIE=_.y(function(G){var e=G.data;var r=_.mr(G.themeOverride,{useDarkTheme:!1});G={};G=_.LC("ytmLpHeadlineSectionViewModelHost",(G.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return r().useDarkTheme},G));
return _.v("lp-headline-section-view-model",null,_.v("div",{class:G},_.v(_.S,{cond:function(){return e().title},
then:function(Z){return _.v("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.v(_.Wh,{text:Z}))}}),_.v(_.S,{cond:function(){return e().subtitle},
then:function(Z){return _.v("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.v(_.Wh,{text:Z}))}})))},"vd");var myE=_.y(function(G){var e=G.data;var r=G.themeOverride;var Z=_.v_().resolve(_.bq(_.Ig)),O=function(){return Z&&Z()||(r==null?void 0:r().useDarkTheme)},M=function(){var w,q;
var t=O()?(w=e().textBackgroundImage)==null?void 0:w.imageDark:(q=e().textBackgroundImage)==null?void 0:q.imageLight;return Mpy((t==null?void 0:t.sources)||[])},T=function(){var w,q;
return O()?(w=e().featureImage)==null?void 0:w.imageDark:(q=e().featureImage)==null?void 0:q.imageLight},E=function(){return e().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},b=function(){var w,q;
return O()?(w=e().logo)==null?void 0:w.imageDark:(q=e().logo)==null?void 0:q.imageLight};
return _.v("ytm-lp-large-feature-section-view-model",null,_.v("div",{class:function(){var w=e().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",q=e().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",t=(e().index||0)%2===1,g=r==null?void 0:r().useDarkTheme,l=["yt-lp-large-feature-section-view-model"];w?l.push("yt-lp-large-feature-section-view-model--music-feature-type"):q?l.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):t||l.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
g&&l.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return l.join(" ")}},_.v("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.v(_.S,{cond:T,
then:function(){return _.v(_.nC,{data:function(){return T()},
alt:function(){var w,q,t;return(t=(w=e().featureImage)==null?void 0:(q=w.accessibilityData)==null?void 0:q.label)!=null?t:""},
contentMode:E})}})),_.v("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var w;return((w=M())==null?0:w.url)?"background-image: url("+_.Fy(M().url)+");":""}},_.v("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.v(_.S,{cond:b,
then:function(){return _.v(_.nC,{data:function(){return b()},
alt:function(){var w,q,t;return(t=(w=e().logo)==null?void 0:(q=w.accessibilityData)==null?void 0:q.label)!=null?t:""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",targetWidth:138,targetHeight:20,preserveWidth:!0,preserveHeight:!0,className:"yt-lp-large-feature-section-view-model__lp-large-feature-section-logo"})}}),_.v(_.S,{cond:function(){return e().eyebrowText},
then:function(){return _.v("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.v(_.Wh,{text:function(){return e().eyebrowText}}))}}),_.v(_.S,{cond:function(){return e().title},
then:function(){return _.v("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.v(_.Wh,{text:function(){return e().title}}))}}),_.v(_.S,{cond:function(){return e().subtitles},
then:function(){return _.v("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.v(_.u6,{each:function(){return e().subtitles||[]}},function(w){return _.v(_.Wh,{text:w})}))}})))))},"wd");
myE.idomCompat=!0;var cFc=_.y(function(G){return _.v("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.v("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.v(_.V$,{icon:function(){var e;return(e=G.data())==null?void 0:e.iconType},
className:function(){var e;switch((e=G.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=G.data())==null?void 0:e.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.v("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.v(_.Wh,{text:function(){var e;
return(e=G.data())==null?void 0:e.text},
className:function(){var e;return((e=G.data())==null?void 0:e.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"xd");var YXE=_.y(function(G){G=_.cx(G,{config:void 0,themeOverride:void 0});var e=G.data,r=G.config,Z=G.themeOverride;G={};G=_.LC("ytmLpOfferCardOptionViewModelHost",(G.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var E;return(E=Z())==null?void 0:E.useDarkTheme},G));
var O=_.ev(function(){var E,b;(E=r())==null||(b=E.handleRadioButtonClick)==null||b.call(E,e());return!1}),M=function(){var E;
return(E=r())==null?void 0:E.shouldDisplayRadioButton},T=function(){var E;
return(E=e().featureListItems)!=null?E:[]};
return _.v("ytm-lp-offer-card-option-view-model",null,_.v("div",{class:G,"on:click":_.ev(function(){if(M()){var E,b;(E=r())==null||(b=E.handleRadioButtonClick)==null||b.call(E,e())}return!1})},_.v(_.S,{cond:M,
then:function(){return _.v("div",null,_.v("input",{type:"radio","on:click":O,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var E;return!((E=r())==null||!E.isOptionSelected)}}))}}),_.v("div",null,_.v("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.v(_.Wh,{text:function(){return e().eyebrowText}})),_.v("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.v(_.Wh,{text:function(){return e().title}})),_.v("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.v(_.Wh,
{text:function(){return e().subtitle}})),_.v(_.S,{cond:function(){return T().length>0},
then:function(){return _.v("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.v(_.E2,{data:T},{lpFeatureListItemViewModel:cFc}))}}),_.v("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.v(_.Wh,{text:function(){return e().description}})))))},"yd");
YXE.idomCompat=!0;var yFc=_.y(function(G){var e=G.data;var r=G.themeOverride;G=_.h(_.Ob(function(){var M,T=(M=e().offerOptions)==null?void 0:M[0];return _.a(T,FcC)||{}}));
var Z=G.next().value,O=G.next().value;G={};return _.v("ytm-lp-offer-card-view-model",null,_.v("div",{class:_.LC("ytmLpOfferCardViewModelHost",(G.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(r==null||!r().useDarkTheme)},G))},_.v("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.v(_.S,{cond:function(){return e().titleIconType},
then:function(){return _.v("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.v(_.V$,{icon:function(){var M;return((M=e().titleIconType)==null?void 0:M.toString())||""}}))}}),_.v("div",{class:"ytmLpOfferCardViewModelTitleText"},_.v(_.Wh,{text:function(){return e().title}})),_.v(_.E2,{data:function(){return e().titleBadge}},{badgeViewModel:function(M){return _.v("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.v(_.vH,{data:M.data}))}})),_.v("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.v(_.E2,{data:function(){return e().offerOptions}},{lpOfferCardOptionViewModel:function(M){var T=M.data;
return _.v(_.$Z,null,_.v("div",{class:"ytmLpOfferCardViewModelDivider"}),_.v(YXE,{data:T,config:function(){var E;return{shouldDisplayRadioButton:(e().offerOptions||[]).length>1,isOptionSelected:T().id===((E=Z())==null?void 0:E.id),handleRadioButtonClick:function(b){return void O(b)}}},
themeOverride:r}))}})),_.v("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.v(_.E2,{data:function(){var M;
return(M=Z())==null?void 0:M.purchaseButtonOverride}},{buttonViewModel:_.wF}))))},"zd");
yFc.idomCompat=!0;var AFc=_.y(function(G){var e=G.data;var r=G.themeOverride;G={};G=_.LC("ytmLpOfferCardSectionViewModelHost",(G.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var Z;return r==null?void 0:(Z=r())==null?void 0:Z.useDarkTheme},G));
return _.v("ytm-lp-offer-card-section-view-model",null,_.v("div",{class:G},_.v(_.S,{cond:function(){return e().title!==void 0},
then:function(){return _.v("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.v("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.v(_.Wh,{text:function(){return e().title}})),_.v(_.S,{cond:function(){return e().subtitle},
then:function(){return _.v("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.v(_.Wh,{text:function(){return e().subtitle}}))}}))}}),_.v("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.v(_.E2,{data:function(){return e().offerCards}},{lpOfferCardViewModel:function(Z){return _.v("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.v(yFc,{data:Z.data,
themeOverride:r}))}})),_.v(_.S,{cond:function(){return e().footer},
then:function(){return _.v("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.v(_.Wh,{text:function(){return e().footer}}))}})))},"Ad");var F1l=_.y(function(G){var e=G.data;return _.v("lp-offer-table-cell-content-view-model",null,_.v("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.v(_.nz,null,_.v(_.pz,{when:function(){return e().title}},function(){return _.v(_.Wh,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return e().title}})}),_.v(_.pz,{when:function(){return e().subTitle}},function(){return _.v(_.Wh,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return e().subTitle}})}),_.v(_.pz,{when:function(){return e().featureDescription}},function(){return _.v(_.Wh,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return e().featureDescription}})}),_.v(_.pz,{when:function(){return e().description}},function(){return _.v(_.Wh,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return e().description}})}),_.v(_.pz,{when:function(){return e().iconType}},function(){return _.v("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.v(_.V$,{icon:function(){return e().iconType.toString()}}))}),_.v(_.pz,{when:function(){return e().purchaseButton}},function(){return _.v(_.E2,{data:function(){return e().purchaseButton}},{buttonViewModel:function(r){return _.v("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.v(_.wF,
{data:r.data}))}})}),_.v(_.pz,{when:function(){return e().note}},function(){return _.v(_.Wh,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return e().note}})}),_.v(_.pz,{when:function(){return e().featureDetail}},function(){return _.v(_.Wh,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return e().featureDetail}})}),_.v(_.pz,{when:function(){return e().badge}},function(){return _.v(_.E2,{data:function(){return e().badge}},{badgeViewModel:_.vH})}))))},"Bd");
F1l.idomCompat=!0;var JFc=_.y(function(G){var e=G.data;return _.v("lp-offer-table-cell-view-model",null,_.v("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;"}}},_.v(_.E2,{data:function(){return e().contents}},{lpOfferTableCellContentViewModel:F1l})))},
"Cd");
JFc.idomCompat=!0;var BKW=_.y(function(G){var e=G.data;var r=G.lpTableIsFirstRow;var Z=G.lpTableIsLastRow;var O=function(){return(r==null?0:r())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},M=function(){return(r==null?0:r())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(Z==null?0:Z())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.v("ytm-lp-offer-table-row-view-model",null,_.v("div",{class:"ytLpOfferTableRowViewModelHost"},_.v(_.E2,{data:function(){return e().rowHeaderCell}},{lpOfferTableCellViewModel:function(T){return _.v("div",{class:O},_.v(JFc,{data:T.data}))}}),_.v(_.E2,{data:function(){return e().contentCells}},{lpOfferTableCellViewModel:function(T){return _.v("div",{class:M},_.v(JFc,{data:T.data}))}})))},"Dd");
BKW.idomCompat=!0;var xyW=_.y(function(G){var e=G.data;var r=G.themeOverride;var Z=_.v_().resolve(_.bq(_.Ig)),O=function(){return _.a(e().logo,bXP)||{}};
G={};return _.v("ytm-lp-offer-table-section-view-model",null,_.v("div",{class:"ytLpOfferTableViewModelHost"},_.v(_.S,{cond:function(){var M,T;return Z&&Z()||(r==null?0:r().useDarkTheme)?(M=O())==null?void 0:M.imageDark:(T=O())==null?void 0:T.imageLight},
then:function(M){return _.v(_.nC,{data:M,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var T,E,b;return(b=(T=O())==null?void 0:(E=T.accessibilityData)==null?void 0:E.label)!=null?b:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.v("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.v(_.Wh,{text:function(){return e().title}})),_.v("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.v(_.Wh,{text:function(){return e().subtitle}})),_.v(_.S,{cond:function(){return e().disclaimers},
then:function(M){return _.v("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.v(_.u6,{each:M},function(T){return _.v("div",null,_.v(_.Wh,{text:T}))}))}}),_.v("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.v(_.E2,{data:function(){return e().rows}},{lpOfferTableRowViewModel:function(M,T){return _.v(BKW,{data:M.data,
lpTableIsFirstRow:function(){return T()===0},
lpTableIsLastRow:function(){return T()===e().rows.length-1}})}})),_.v("div",{class:_.LC((G.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return e().hasFooterBackground},G))},_.v(_.S,{cond:function(){return e().footer},
then:function(){return _.v("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.v(_.Wh,{text:function(){return e().footer}}))}}),_.v(_.S,{cond:function(){return e().footerTitle},
then:function(){return _.v("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.v(_.Wh,{text:function(){return e().footerTitle}}))}}),_.v(_.S,{cond:function(){return e().footerDescription},
then:function(){return _.v("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.v(_.Wh,{text:function(){return e().footerDescription}}))}}),_.v(_.S,{cond:function(){return e().footerDescriptions},
then:function(M){return _.v("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.v(_.u6,{each:M},function(T){return _.v("div",null,_.v(_.Wh,{text:T}))}))}}))))},"Ed");
xyW.idomCompat=!0;var P3b=_.y(function(G){var e=G.data;var r=G.themeOverride;var Z=_.v_().resolve(_.bq(_.Ig)),O=function(){var E;return r==null?void 0:(E=r())==null?void 0:E.useDarkTheme},M=function(){var E,b;
return Z&&Z()||O()?(E=e().image)==null?void 0:E.imageDark:(b=e().image)==null?void 0:b.imageLight};
G={};G=_.LC("ytmLpSmallFeatureSectionViewModelHost",(G.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=O,G));var T=function(){var E,b,w;return(w=(E=e().image)==null?void 0:(b=E.accessibilityData)==null?void 0:b.label)!=null?w:""};
return _.v("ytm-lp-small-feature-section-view-model",{class:G},_.v(_.S,{cond:function(){return M()&&!EQa},
then:function(){return _.v("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.v(_.nC,{data:function(){return M()},
alt:T,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.v("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.v("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.v(_.S,{cond:function(){return e().title},
then:function(E){return _.v(_.Wh,{text:E})}})),_.v("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.v(_.Wh,{text:function(){return e().description}}))))},"Fd");
P3b.idomCompat=!0;var UyC=_.y(function(G){var e=G.data;var r=G.themeOverride;G={};return _.v("ytm-lp-small-feature-section-group-view-model",null,_.v("div",{class:_.LC("ytmLpSmallFeatureSectionGroupViewModelHost",(G.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(r==null||!r().useDarkTheme)},G))},_.v("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.v(_.E2,{data:function(){return e().smallFeatures}},{lpSmallFeatureSectionViewModel:function(Z){return _.v("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.v(P3b,{data:Z.data,
themeOverride:r}))}}))))},"Gd");
UyC.idomCompat=!0;_.J_(_.y(function(G){var e=G.data;var r=function(){return e().forcedTheme==="USER_INTERFACE_THEME_DARK"},Z=function(){return e().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},O=function(){var T="",E,b;
var w=_.v_().resolve(_.bq(_.Ig));w=r()||(w==null?0:w())?(E=e().themedImageViewModel)==null?void 0:E.imageDark:(b=e().themedImageViewModel)==null?void 0:b.imageLight;(E=Mpy((w==null?void 0:w.sources)||[]))&&E.url&&(T=Z()?"background-image: linear-gradient(to bottom, transparent, "+(e().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"80%")+", var(--premium-yt-spec-base-background)), url("+_.Fy(E.url)+");":"background-image: url("+_.Fy(E.url)+");");return T},M=function(){return{useDarkTheme:r()}};
G={};return _.v("yt-section-group-view-model",null,_.v("div",{class:_.LC("yt-lp-section-group-view-model",(G["yt-lp-section-group-view-model--premium-force-dark-mode"]=r,G["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return e().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},G))},_.v(_.S,{cond:function(){return O().length},
then:function(){var T={};return _.v("div",{class:_.LC("yt-lp-section-group-view-model__bg-image",(T["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=Z,T)),style:O})}}),_.v("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.v(_.E2,{data:function(){return e().sections}},{lpHeaderUpsellBannerViewModel:function(T){return _.v(u7P,{data:T.data})},
lpFaqSectionViewModel:function(T){return _.v(pCC,{data:T.data,themeOverride:M})},
lpHeaderSectionViewModel:function(T){return _.v(C3j,{data:T.data,themeOverride:M})},
lpHeadlineSectionViewModel:function(T){return _.v(nIE,{data:T.data,themeOverride:M})},
lpLargeFeatureSectionViewModel:function(T){return _.v(myE,{data:T.data,themeOverride:M})},
lpOfferCardSectionViewModel:function(T){return _.v(AFc,{data:T.data,themeOverride:M})},
lpComplexOfferCardSectionViewModel:function(T){return _.v(oIy,{data:T.data})},
lpOfferTableSectionViewModel:function(T){return _.v(xyW,{data:T.data,themeOverride:M})},
lpSmallFeatureSectionGroupViewModel:function(T){return _.v(UyC,{data:T.data,themeOverride:M})},
lpCouponBannerViewModel:function(T){return _.v(sEc,{data:T.data})}}))))},"Hd"),"yt-section-group-view-model",{props:{data:_.N6}});_.zYS=_.y(function(G){var e=_.hI(ayA,function(){var T;return(T=G.data())==null?void 0:T.chipBarStateEntityKey}),r=function(){return G.data().disableDeselection},Z=_.h(_.Ob(function(){var T;
if(((T=e())==null?void 0:T.selectedIndex)!=void 0)return e().selectedIndex;var E,b;T=_.h(((E=G.data())==null?void 0:(b=E.chips)==null?void 0:b.entries())||[]);for(E=T.next();!E.done;E=T.next()){E=_.h(E.value);b=E.next().value;E=E.next().value;var w=void 0;if((w=_.a(E,_.eR))==null?0:w.selected)return b}return-1})),O=Z.next().value,M=Z.next().value;
return _.v("chip-bar-view-model",{class:_.LC("ytChipBarViewModelHost",G.className),role:"tablist"},_.v(_.E2,{data:function(){return G.data().chips}},{chipViewModel:function(T,E){return _.v("div",{class:"ytChipBarViewModelChipWrapper"},_.v(_.aay,{data:T.data,
selected:function(){return E()===O()},
callback:function(b,w){b=!!w;w=E();M(b?w:-1);var q,t=(q=G.data())==null?void 0:q.chipBarStateEntityKey;t&&b&&_.nR(_.bt("chipBarStateEntity",t,{key:t,selectedIndex:w}))},
disableDeselection:G.disableDeselection||r}))}}))},"Id");_.J_(_.zYS,"chip-bar-view-model",{props:{data:_.yb,className:_.yb,disableDeselection:_.yb}});_.W1S=_.y(function(G){var e=G.data;G={};return _.v("divider-view-model",{class:_.LC("dividerViewModelHost",(G.dividerViewModelInsetThinPadding=function(){return e().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},G))},_.v("div",{class:_.LC("dividerViewModelBaseDivider",function(){return XDU(e().dividerStyle)}),
style:_.Mk({"background-color":function(){return e().backgroundColor?_.RB(e().backgroundColor):void 0}})}))},"Jd");
_.W1S.idomCompat=!0;_.J_(_.W1S,"divider-view-model",{props:{data:_.N6}});var VM=new Map,M$=new Map,kTS=0,hZ;var pDp=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],n7S={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var NKy,L1C;NKy=function(G){return function(e){return function(){return(e==null?void 0:e())!==void 0?String(e())+G:void 0}}};
_.Jm=NKy("px");L1C=NKy("s");var GHP=jXy(function(G){return G.targetGroupId}).useUpdatableData;_.rUy=_.y(function(G){function e(Dq){return function(){var bF=I().numItemsPerGridRow,Kf=Dq()*bF;bF=Kf+bF;var ti,Ry;return(Ry=(ti=Z().contents)==null?void 0:ti.slice(Kf,bF))!=null?Ry:[]}}
var r=_.cx(G,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1,useUpdatedMargin:!1}),Z=r.data,O=r.layoutContainerWidth,M=r.shouldUseOwnContainerSize,T=r.marginSettings,E=r.useUpdatedMargin,b=O8a(),w=_.h(GHP(function(){var Dq,bF;return{targetGroupId:(Dq=Z().targetingContext)==null?void 0:(bF=Dq.targetGroupId)==null?void 0:bF[0]}})).next().value;
r=_.h(_.XQ(!0,void 0,"CC9Rdb"));var q=r.next().value,t=r.next().value,g=function(){var Dq,bF=(Dq=_.a(Z().showMoreButton,_.G$))==null?void 0:Dq.trackingParams;bF&&_.ke(_.h_(),bF);t(!1)},l=function(){var Dq,bF=(Dq=_.a(Z().showLessButton,_.G$))==null?void 0:Dq.trackingParams;
bF&&_.ke(_.h_(),bF);t(!0)};
r=_.hT("grid-shelf-view-model");var X=_.T4(r,{canHaveZeroSize:!1}),H=function(){var Dq;return(Dq=Z().contentAspectRatio)!=null?Dq:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},I=_.dw(function(){var Dq=M()&&X.width()>0?X.width()||O():O(),bF,Kf=(bF=G.data())==null?void 0:bF.responsiveContainerConfiguration;
Dq=_.kb({containerWidth:Dq,sizing:Kf?He(Kf==null?void 0:Kf.responsiveSize):"EXTRA_COMPACT",marginSettings:T(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:Dq.maxContainerWidth,numItemsPerGridRow:Dq.numItems,contentPadding:M()?Dq.margin:Dq.contentMargin,itemWidth:Dq.itemWidth,itemMargin:Dq.gutter/2}},void 0,"mTmCKc"),C=function(){if(Z().enableVerticalExpansion){if(q())return u();
var Dq,bF,Kf=(bF=(Dq=Z().contents)==null?void 0:Dq.length)!=null?bF:0;return Math.ceil(Kf/I().numItemsPerGridRow)}return I().numItemsPerGridRow<=2?2:1},u=function(){var Dq;
return Math.ceil(((Dq=Z().minCollapsedItemCount)!=null?Dq:1)/I().numItemsPerGridRow)},P=function(){return Z().enableVerticalExpansion&&Z().showLessButton&&!q()&&C()>u()},F=function(){var Dq,bF;
return Z().enableVerticalExpansion&&Z().showMoreButton&&q()&&((bF=(Dq=Z().contents)==null?void 0:Dq.length)!=null?bF:0)>I().numItemsPerGridRow*u()},J=function(){return!P()},U=function(){return!F()},e$={};
return _.v("grid-shelf-view-model",{class:_.LC("ytGridShelfViewModelHost",G.className,(e$.ytGridShelfViewModelHostHasBottomButton=function(){return P()||F()},e$.ytGridShelfViewModelHostIsDismissed=function(){var Dq,bF=(Dq=w())!=null?Dq:{};
Dq=bF.behavior;var Kf=bF.isDismissed,ti=bF.stamperContextTargetId;bF=bF.stamperIndex;if(!(_.R("mweb_see_fewer_shorts_group_dismissal")&&Kf&&Dq&&ti))return!1;var Ry;Kf=b;for(var nf,k4,SE=((nf=Kf)==null?0:nf.targetId)?_.FQ((k4=Kf)==null?void 0:k4.targetId):void 0;((Ry=Kf)==null?0:Ry.parent)&&SE!==ti;)Kf=Kf.parent,k4=nf=void 0,SE=((nf=Kf)==null?0:nf.targetId)?_.FQ((k4=Kf)==null?void 0:k4.targetId):void 0;Ry=SE===ti?Kf:void 0;if(!Ry)return!1;var Fn;ti=Ry==null?void 0:(Fn=Ry.stamperIndex)==null?void 0:
Fn.call(Ry);return Dq==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||Dq==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&ti!=null&&bF!=null&&ti>bF},e$.ytGridShelfViewModelHostOptionalMediumLayoutMargin=E,e$)),
el:r,style:_.Mk({"margin-left":(0,_.Jm)(function(){return I().contentPadding}),
"margin-right":(0,_.Jm)(function(){return I().contentPadding})})},_.v(_.S,{cond:function(){return _.a(Z().header,lov)},
then:function(Dq){return _.v(_.XA,{data:Dq,useUpdatedPadding:E,disableHorizontalPadding:!0})}}),_.v("div",null,_.v(_.u6,{each:function(){return Array(C())}},function(Dq,bF){return _.v(eAc,{className:G.className,
items:e(bF),responsiveGridShelfLayout:I,contentAspectRatio:H})})),_.v("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.v(_.E2,{data:function(){return Z().showMoreButton}},{buttonViewModel:function(Dq){return _.v("div",{hidden:U},_.v(_.wF,{data:Dq.data,
onClick:g}))}}),_.v(_.E2,{data:function(){return Z().showLessButton}},{buttonViewModel:function(Dq){return _.v("div",{hidden:J},_.v(_.wF,{data:Dq.data,
onClick:l}))}})))},"Ld");
_.rUy.idomCompat=!0;var eAc=_.y(function(G){var e=G.items;var r=G.responsiveGridShelfLayout;var Z=G.contentAspectRatio;G=G.className;var O=_.hT("div");fy$(O,function(){a:{var T=O.value;for(var E=e(),b=[],w=0;w<E.length;w++){var q=_.a(E[w],UGW);if(!q||q==null||!q.inlinePlayerData){T=null;break a}var t=T.children.item(w);if(!t){T=null;break a}b.push({thumbnailElement:t,videoData:q})}T={gridVideoPreviewData:{gridItems:b}}}return T});
var M=(0,_.Jm)(function(){return-r().itemMargin});
return _.v("div",{el:O,class:_.LC("ytGridShelfViewModelGridShelfRow",G),style:_.Mk({"margin-left":M,"margin-right":M})},_.v(_.E2,{data:e,replacementWrapper:function(T){return _.v(Z3S,{responsiveGridShelfLayout:r},T)}},{shortsLockupViewModel:function(T){return _.v(Z3S,{responsiveGridShelfLayout:r},_.v(fyE,{data:T.data,
aspectRatio:function(){return Z()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.R("mweb_enable_one_line_title_on_shorts")?1:_.R("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(T){return _.v(Z3S,{responsiveGridShelfLayout:r},_.v(_.Rk,{data:T.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"Md"),Z3S=_.y(function(G){return _.v("div",{style:_.Mk({width:(0,_.Jm)(function(){return G.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+G.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},G.children)},"Nd");
_.rUy.idomCompat=!0;_.J_(_.rUy,"grid-shelf-view-model",{props:{data:_.N6,layoutContainerWidth:_.N6,shouldUseOwnContainerSize:_.N6,marginSettings:_.N6,useUpdatedMargin:_.N6,className:_.N6}});_.O3E=_.y(function(G){var e=_.h(_.XQ(!1,void 0,"FVl30c")),r=e.next().value,Z=e.next().value;e={};return _.v("yt-alert-banner-view-model",{class:_.LC("ytAlertBannerViewModelHost",G.className,function(){var O;a:switch((O=G.data())==null?void 0:O.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":O="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":O="ytAlertBannerViewModelWarning";break a;default:O="ytAlertBannerViewModelInformational"}return O},(e.ytAlertBannerViewModelDismissed=
r,e.ytAlertBannerViewModelFullbleed=G.fullbleed,e.ytAlertBannerViewModelNarrow=G.narrow,e.ytAlertBannerViewModelIsInRichGrid=G.isInRichGrid,e))},_.v(_.S,{cond:function(){var O;
return!((O=G.data())==null?0:O.hideIcon)},
then:function(){return _.v("div",{class:"ytAlertBannerViewModelIcon"},_.v(_.V$,{icon:function(){return"info_circle"}}))}}),_.v("div",{class:"ytAlertBannerViewModelOuterContainer"},_.v("div",{class:"ytAlertBannerViewModelContainer"},_.v("div",{class:"ytAlertBannerViewModelContent"},_.v("div",{class:"ytAlertBannerViewModelHeading"},_.v(_.Wh,{text:function(){var O;
return(O=G.data())==null?void 0:O.heading}})),_.v("div",{class:"ytAlertBannerViewModelBody"},_.v(_.Wh,{text:function(){var O;
return(O=G.data())==null?void 0:O.body}})))),_.v(_.E2,{data:function(){var O;
return(O=G.data())==null?void 0:O.actionButton}},{buttonViewModel:function(O){return _.v(_.wF,{data:O.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.v(_.E2,{data:function(){var O;
return(O=G.data())==null?void 0:O.dismissButton}},{buttonViewModel:function(O){return _.v(_.wF,{data:O.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var M;((M=G.data())==null?0:M.disableLocalDismissBehavior)||Z(!0)}})}}))},"Od");_.J_(_.O3E,"yt-alert-banner-view-model",{props:{data:_.N6,fullbleed:_.N6,narrow:_.N6,isInRichGrid:_.N6,className:_.N6}});var MiW;_.ViC=_.y(function(G){return _.v("basic-content-view-model",{class:_.LC("ytBasicContentViewModelHost",_.mr(G.className))},_.v(_.S,{cond:function(){return G.data().headline},
then:function(e){return _.v("div",{class:"ytBasicContentViewModelHeadline"},_.v(_.Wh,{text:e}))}}),_.v(_.u6,{each:function(){return G.data().paragraphs||[]},
keyBy:"INDEX"},function(e){return _.v("div",{class:"ytBasicContentViewModelParagraph"},_.v(_.S,{cond:function(){var r=e();return!!(r.header||r.customHeader||r.headline)},
then:function(){return _.v(MiW,{paragraph:e})}}),_.v(_.S,{cond:function(){return e().asset||e().text},
then:function(){return _.v("div",{class:"ytBasicContentViewModelParagraphContent"},_.v(_.S,{cond:function(){return e().asset},
then:function(r){return _.v("div",{class:"ytBasicContentViewModelParagraphAsset"},_.v(_.E2,{data:r},{contentPreviewImageViewModel:_.wZ}))}}),_.v(_.S,{cond:function(){return e().text},
then:function(r){return _.v("div",{class:"ytBasicContentViewModelParagraphText"},_.v(_.Wh,{text:r}))}}))}}))}))},"Pd");
MiW=_.y(function(G){var e=G.paragraph;return _.v(_.$Z,null,_.v(_.S,{cond:function(){return e().headline},
then:function(r){return _.v(_.Wh,{text:r,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.v(_.E2,{data:function(){return e().header||e().customHeader}},{sectionHeaderViewModel:function(r){return _.v(_.XA,{data:r.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Qd");var hAW=_.y(function(G){function e(){var l,X;b((X=(l=O)==null?void 0:l.isKeyBoardInUse())!=null?X:!1)}
function r(){b(!1)}
function Z(){var l;return E()?(l=G.focusedClassName)==null?void 0:l.call(G):""}
var O=_.v_().resolve(_.bq(_.T6)),M=_.h(_.XQ(!1,void 0,"SgkTXc")),T=M.next().value;M=M.next().value;var E=T,b=M,w=function(){var l,X;return((l=G.toggleable)==null?0:l.call(G))?(X=G.toggled)==null?void 0:X.call(G):void 0},q=_.ev(function(l){var X,H=(X=G.command)==null?void 0:X.call(G);
H&&_.v_().resolve(_.$1).resolveCommand(H);var I;(I=G.onClick)==null||I.call(G,l)}),t=_.ev(e),g=_.ev(r);
return _.v(_.S,{cond:function(){var l;if(l=G.command){l=G.command();l=S7p(l);var X=l.href;l=!(!l.navigatingCommand||!X)}return l},
then:function(){return _.v(_.Ds,Object.assign({},{command:G.command,style:G.style,ariaDescribedby:G.ariaDescribedby,ariaHidden:G.ariaHidden,ariaLabel:G.ariaLabel,ariaLabelledby:G.ariaLabelledby,ariaSelected:G.ariaSelected,disabled:G.disabled,dir:G.dir,tabIndex:G.tabIndex,target:G.target,title:G.title,onClick:G.onClick},{className:_.LC("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",G.className,function(){return Z()}),
onFocusin:e,onFocusout:r,ariaCurrent:function(){var l,X;return(X=(l=G.ariaCurrent)==null?void 0:l.call(G))!=null?X:w()}}),G.children)},
else:function(){return _.v("button",{"on:click":q,"on:focusin":t,"on:focusout":g,class:_.LC("ytButtonOrAnchorHost","ytButtonOrAnchorButton",G.className,function(){return Z()}),
style:G.style,"aria-describedby":G.ariaDescribedby,"aria-hidden":G.ariaHidden,"aria-label":G.ariaLabel,"aria-labelledby":G.ariaLabelledby,"aria-pressed":w,dir:G.dir,disabled:G.disabled,tabindex:G.tabIndex,title:G.title},G.children)}})},"Rd");var TVn=_.y(function(G){G=_.cx(G,{disabled:!1});var e=G.active,r=G.disabled;G={};G=_.LC("ytSwitchShapeTrack",(G.ytSwitchShapeTrackActive=function(){return e()},G.ytSwitchShapeTrackDisabled=function(){return r()},G));
var Z={};Z=_.LC("ytSwitchShapeKnob",(Z.ytSwitchShapeKnobActive=function(){return e()},Z));
return _.v("switch-shape",{class:"ytSwitchShapeHost"},_.v("div",{class:G}),_.v("div",{class:Z}))},"Sd");var D7W=_.y(function(G){var e=_.cx(G,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),r=e.data;G=e.className;var Z=e.handleOnTapEventInParent,O=e.parentActive,M=e.onTap;e=_.h(_.Ob(function(){var g;return(g=O())!=null?g:r().switchedOnByDefault||!1}));
var T=e.next().value,E=e.next().value,b=function(){return r().isDisabled},w=_.hT("button");
e=_.ev(function(g){return g.key==="Enter"?(g.preventDefault(),w.value.click(),!1):!0});
var q=_.ev(function(g){if(r().handleOnTapEventInParent||Z())return!0;if(b())return!1;if(M)return M(g),!0;YR_(r(),T(),g);E(!T());return!1}),t={};
t=_.LC("ytSwitchButtonViewModelButton",(t.ytSwitchButtonViewModelTappable=function(){return!b()},t));
return _.v("switch-button-view-model",{class:_.LC("ytSwitchButtonViewModelHost",G)},_.v("button",{el:w,class:t,"on:click":q,"on:keydown":e,"aria-label":function(){return T()?r().a11yLabelSwitchedOn:r().a11yLabelSwitchedOff},
"aria-checked":T,"aria-disabled":b,role:"switch"},_.v(TVn,{active:T,disabled:b})))},"Td");var EdS=_.y(function(G){var e=G.data;var r=G.isLeading;var Z=G.hideSelectionTextChevron;var O=G.isToggled;var M=function(){return r()?e().leadingImage:e().trailingImage},T=function(){a:switch(e().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var q="expand_more";
break a;default:q="chevron_right"}return q};
G={};var E=_.LC("yt-list-item-view-model__image-container",(G["yt-list-item-view-model__leading"]=r,G["yt-list-item-view-model__trailing"]=function(){return!r()},G)),b=_.LC("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
G={};var w=_.LC("yt-list-item-view-model__accessory",(G["yt-list-item-view-model__leading"]=r,G["yt-list-item-view-model__trailing"]=function(){return!r()},G));
return _.v(_.S,{cond:function(){var q=e(),t=r();return!!(t&&(q.leadingImage||q.leadingAccessory)||!t&&(q.trailingImage||q.trailingButton||q.trailingButtons||q.selectionText))},
then:function(){return _.v(_.$Z,null,_.v(_.S,{cond:M,then:function(q){return _.v("div",{class:E,"aria-hidden":"true"},_.v(_.nC,{data:q,alt:"",preserveWidth:!0,preserveHeight:!0,className:b,isToggled:O}))}}),_.v(_.S,{cond:function(){return r()&&e().leadingAccessory},
then:function(){return _.v("div",{class:E},_.v(_.E2,{data:function(){return e().leadingAccessory}},{avatarViewModel:function(q){return _.v(_.yy,{data:q.data,
avatarButtonCustomClassName:b})},
collectionThumbnailViewModel:function(q){return _.v(l3w,{data:q.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.v(_.S,{cond:function(){return!r()&&e().trailingButton},
then:function(){return _.v("div",{class:"yt-list-item-view-model__button-container"},_.v(_.E2,{data:function(){return e().trailingButton}},{buttonViewModel:function(q){return _.v(_.wF,{data:q.data,
className:w})}}))}}),_.v(_.S,{cond:function(){var q;
return!r()&&((q=e().trailingButtons)==null?void 0:q.buttons)},
then:function(){return _.v("div",{class:"yt-list-item-view-model__button-container"},_.v(_.E2,{data:function(){var q;return(q=e().trailingButtons)==null?void 0:q.buttons}},{buttonViewModel:function(q){return _.v(_.wF,{data:q.data,
className:w})},
accountLinkButtonViewModel:function(q){return _.v(DLC,{data:q.data,className:w})},
switchButtonViewModel:function(q){return _.v(D7W,{data:q.data,className:w})},
subscribeButtonViewModel:function(q){return _.v(_.ym,{data:q.data,isOverlay:!1,animateWidth:!1,className:w})},
toggleButtonViewModel:function(q){return _.v(_.pb,{data:q.data,className:w})}}))}}),_.v(_.S,{cond:function(){return!r()&&!!e().selectionText},
then:function(){return _.v(_.$Z,null,_.v(_.Wh,{text:function(){return e().selectionText},
className:_.LC("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.v(_.S,{cond:function(){return!(Z==null?0:Z())},
then:function(){return _.v(_.V$,{icon:T,className:"yt-list-item-view-model__chevron-icon"})}}))}}))}})},"Ud");var i3c=_.y(function(G){var e=G.data;return _.v(_.S,{cond:function(){return e().title||e().subtitle},
then:function(){return _.v("div",{class:"yt-list-item-view-model__text-wrapper"},_.v(_.S,{cond:function(){return e().title},
then:function(r){return _.v("div",{class:"yt-list-item-view-model__title-wrapper"},_.v(_.Wh,{text:r,className:"yt-list-item-view-model__title"}))}}),_.v(_.S,{cond:function(){return e().subtitle},
then:function(r){return _.v(_.Wh,{text:r,className:"yt-list-item-view-model__subtitle"})}}))}})},"Vd");var b3E=_.y(function(G){var e=G.data;var r=G.hideSelectionTextChevron;var Z=G.TrailingAccessory;var O=G.isToggled;var M=G.disabled;var T=G.isSelectItem;var E=G.isCompact;var b=G.inPopup;var w=G.disableHorizontalPadding;var q=G.isTappableWithoutSelect;var t=G.useButtonOrAnchor;var g=G.onTap;var l=function(){return _.v(i3c,{data:e,onTap:g,useButtonOrAnchor:t,isTappableWithoutSelect:q,isToggled:O})};
G={};return _.v("div",{class:_.LC("yt-list-item-view-model__label",(G["yt-list-item-view-model__container"]=function(){return!(T==null?0:T())},G["yt-list-item-view-model__container--disabled"]=function(){return!!e().isDisabled||!(M==null||!M())},G["yt-list-item-view-model__container--has-subtitle"]=function(){return!!e().subtitle},G["yt-list-item-view-model__container--compact"]=E,G["yt-list-item-view-model__container--tappable"]=q,G["yt-list-item-view-model__container--in-popup"]=b,G["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(w==null?void 0:w())&&!(T==null?0:T())},G))},_.v(EdS,{data:e,
isLeading:!0,hideSelectionTextChevron:r,isToggled:O}),_.v(_.S,{cond:function(){return(t==null?void 0:t())&&(q==null?void 0:q())},
then:function(){return _.v(hAW,{command:function(){return _.lt(e().rendererContext)},
onClick:g,className:"yt-list-item-view-model__button-or-anchor",toggleable:O!==void 0,toggled:O},_.v(l,null))},
else:function(){return _.v(l,null)}}),_.v(_.S,{cond:function(){return!!Z},
then:function(){return _.v("div",{class:"yt-list-item-view-model__trailing"},Z&&_.v(Z,null))},
else:function(){return _.v(EdS,{data:e,isLeading:!1,hideSelectionTextChevron:r,isToggled:O})}}))},"Wd");var w8W=_.y(function(G){var e=_.cx(G,{checked:!1});G=e.name;var r=e.onChange,Z=e.onClick,O=e.checked,M=e.labelRenderable,T=e.hasLeadingLabel,E=e.labelClass,b=e.isCompact,w=e.selectElementClass;e=e.disableHorizontalPadding;var q="checkbox"+_.Qj(_.FA),t=_.ev(function(X){Z==null||Z(X);return!1}),g=_.ev(function(X){r==null||r(X);
return!1}),l={};
return _.v("checkbox-shape",null,_.v("label",{class:_.LC("ytCheckboxShapeHost",E,(l.ytCheckboxShapeHostCompact=b,l.ytCheckboxShapeDisableHorizontalPadding=e,l))},_.v("input",{class:"ytCheckboxShapeInput",id:q,checked:O,name:G,type:"checkbox","prop:checked":O,"on:change":g,"on:click":t}),_.v(_.S,{cond:function(){return!(T==null?0:T())},
then:function(){return _.v(vdC,{isLeading:!0,selectElementClass:w})}}),_.v(_.S,{cond:function(){return!!M},
then:function(){return _.v("div",{class:"ytCheckboxShapeLabel"},M==null?void 0:M())}}),_.v(_.S,{cond:T,
then:function(){return _.v(vdC,{isLeading:!1,selectElementClass:w})}})))},"Xd");
w8W.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var vdC=_.y(function(G){var e=G.selectElementClass;G={};return _.v("div",{class:_.LC("ytCheckboxShapeCheckbox",e,(G.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(e==null?0:e())},G)),
"aria-hidden":"true"},_.v(_.V$,{icon:_.R("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.v(_.V$,{icon:_.R("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Yd");_.BP=_.y(function(G){var e=G.name;var r=G.onChange;var Z=G.onClick;var O=G.checked;var M=G.labelRenderable;var T=G.useCheckIcon;var E=G.hasLeadingLabel;var b=G.labelClass;var w=G.isCompact;var q=G.selectElementClass;var t=G.ariaLabel;G=G.className;var g="radio"+_.Qj(_.FA),l=_.hT("input"),X=_.ev(function(U){l.value.checked=!(O==null||!O());r==null||r(U);return!1}),H=_.ev(function(U){Z==null||Z(U);
return!1}),I=_.ev(function(U){_.R("enable_ios_webview_radio_button_responsiveness")&&(U.preventDefault(),l.value.click())}),C=_.h(_.XQ(!1,void 0,"TcCZlf")),u=C.next().value,P=C.next().value;
C=_.ev(function(){var U;((U=_.v_().resolve(_.bq(_.T6)))==null?0:U.isKeyBoardInUse())&&P(!0)});
var F=_.ev(function(){P(!1)}),J={};
return _.v("radio-shape",{class:_.LC("yt-radio-shape",G)},_.v("input",{el:l,class:"yt-radio-shape__input",id:g,"prop:checked":O,name:e,type:"radio","on:change":X,"on:click":H,"aria-label":t,"on:focusin":C,"on:focusout":F}),_.v("label",{class:_.LC("yt-radio-shape__label-container",b,(J["yt-radio-shape--compact"]=w,J["yt-radio-shape__label-container--keyboard-focused"]=u,J)),for:g,"on:click":I},_.v(_.S,{cond:function(){return!(E==null?0:E())},
then:function(){return _.v($7W,{checked:O,useCheckIcon:T,isLeading:!0,selectElementClass:q})}}),_.v(_.S,{cond:function(){return!!M},
then:function(){return _.v("div",{class:"yt-radio-shape__label","aria-hidden":function(){return(t==null?0:t())?"true":"false"}},M==null?void 0:M())}}),_.v(_.S,{cond:E,
then:function(){return _.v($7W,{checked:O,useCheckIcon:T,isLeading:!1,selectElementClass:q})}})))},"Zd");
_.BP.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var $7W=_.y(function(G){var e=G.useCheckIcon;var r=G.selectElementClass;G=function(){return(e==null?0:e())?"CHECK":_.R("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var Z={};return _.v("div",{class:_.LC("yt-radio-shape__radio",r,(Z["yt-radio-shape__radio--check-icon"]=e,Z["yt-radio-shape__radio--radio-default-style"]=function(){return!(r==null?0:r())},Z)),
"aria-hidden":"true"},_.v(_.V$,{icon:G}),_.v(_.V$,{icon:G,active:function(){return!(e==null?0:e())}}))},"$d");_.xq=_.y(function(G){var e=G.data;var r=G.isMenuItem;var Z=G.isCompact;var O=G.onTap;var M=G.trailingAccessory;var T=G.hideSelectionTextChevron;var E=G.disabled;var b=G.inPopup;var w=G.disableHorizontalPadding;var q=G.isOverlay;var t=G.isToggled;var g=G.ariaLabel;G=G.ariaPressed;var l=!_.R("web_enable_killswitch_for_selectable_list_item_on_tap_fix"),X=_.Eb(function(k4){return FhU(e(),k4)}),H=function(){return _.R("enable_web_shorts_captions_language_command")||_.R("web_shorts_audio_track_picker")||
e().entitySelectorType==="LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE"},I=function(){return H()?Object.assign({},e(),X().data):e()},C=_.BYU(function(){return I().rendererContext}),u=function(){return!(I().isSelected===void 0||!I().selectionStyle||I().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},P=function(){return(_.RH(I().rendererContext)||O)&&!u()},F={},J=_.LC("yt-list-item-view-model__container",(F["yt-list-item-view-model__container--tappable"]=function(){return _.RH(I().rendererContext)||
u()},F["yt-list-item-view-model__container--compact"]=Z,F["yt-list-item-view-model__container--in-popup"]=b,F["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(w==null?void 0:w())&&u()},F)),U=function(){return I().leadingImage||I().leadingAccessory},e$=_.LC("yt-list-item-view-model__image-container",function(){return U()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
F=_.ev(function(k4){var SE;if(SE=l)SE=I().selectionStyle,SE=SE==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||SE==="LIST_ITEM_SELECTION_STYLE_RADIO"||SE==="LIST_ITEM_SELECTION_STYLE_DEFAULT";SE||nf||O==null||O(k4)});
var Dq=_.FRU(),bF=_.h(_.XQ(!1,void 0,"q9Dj4b")),Kf=bF.next().value,ti=bF.next().value,Ry=function(){return _.v(b3E,{data:I,hideSelectionTextChevron:T,TrailingAccessory:M,isToggled:t,disabled:E,isSelectItem:u,isCompact:Z,inPopup:b,disableHorizontalPadding:w,isTappableWithoutSelect:P,useButtonOrAnchor:nf,onTap:O})},nf=_.R("web_button_or_anchor_list_item");
bF={};return _.v("yt-list-item-view-model",{el:_.cQ(_.jV(function(){return I().rendererContext},void 0,void 0,nf?["A".toString(),
"BUTTON".toString()]:[]),nf&&O?JNF(O):void 0,OZp(function(){return P==null?void 0:P()},{focusin:function(){var k4;
((k4=_.v_().resolve(_.bq(_.T6)))==null?0:k4.isKeyBoardInUse())&&ti(!0)},
focusout:function(){ti(!1)}})),
class:_.LC("yt-list-item-view-model",(bF["yt-list-item-view-model--is-overlay"]=q,bF["yt-list-item-view-model--keyboard-focused"]=Kf,bF["yt-list-item-view-model--hidden"]=function(){return H()?X().isHidden:!1},bF)),
role:function(){return(r==null?0:r())?"menuitem":"listitem"},
tabindex:function(){var k4=P();k4=nf?void 0:O||k4?0:void 0;return k4},
"on:keydown":Dq,"on:click":F,"aria-label":function(){var k4;return(g==null?void 0:g())||((k4=C())==null?void 0:k4.label)},
"aria-pressed":G},_.v(_.S,{cond:u,then:function(){return _.v(_.nz,null,_.v(_.pz,{when:function(){return I().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.v(w8W,{labelRenderable:Ry,
isCompact:Z,checked:function(){return I().isSelected},
hasLeadingLabel:function(){return!!U()},
labelClass:J,selectElementClass:e$,disableHorizontalPadding:w,onClick:l?O:void 0})}),_.v(_.pz,{when:function(){return I().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.v(_.BP,{labelRenderable:Ry,
isCompact:Z,checked:function(){return I().isSelected},
hasLeadingLabel:function(){return!!U()},
labelClass:J,selectElementClass:e$,onClick:l?O:void 0})}),_.v(_.pz,{when:function(){return I().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.v(_.BP,{labelRenderable:Ry,
isCompact:Z,checked:function(){return I().isSelected},
hasLeadingLabel:function(){return!!U()},
labelClass:J,selectElementClass:e$,useCheckIcon:!0,onClick:l?O:void 0})}),_.v(_.Cz,null,Ry))},
else:Ry}))},"ae");
_.xq.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var PP;_.UL=_.y(function(G){var e=function(){var Z,O;return((Z=G.data().linearLayoutContainerConfiguration)==null?void 0:Z.flexDirection)==="FLEX_DIRECTION_ROW"||((O=G.data().linearLayoutContainerConfiguration)==null?void 0:O.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"},r=function(){return G.data().linearLayoutContainerConfiguration};
return _.v("yt-linear-layout-view-model",{class:_.LC("ytLinearLayoutViewModelHost",function(){a:switch(G.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var Z="ytLinearLayoutViewModelHorizontal";break a;default:Z="ytLinearLayoutViewModelVertical"}return Z},function(){var Z=G.data().linearLayoutContainerConfiguration;
return Z?[P$y(Z==null?void 0:Z.flexDirection),UsS(Z==null?void 0:Z.justifyContent),z_f(Z==null?void 0:Z.alignItems)].join(" "):""})},_.v(_.E2,{data:function(){return G.data().items}},{lockupViewModel:function(Z){return _.v(PP,{linearLayoutContainerConfiguration:r,
className:"ytLinearLayoutViewModelLockupItem"},_.v(_.Rk,{data:Z.data,containerType:function(){return e()?2:3},
sizing:"STANDARD",thumbnailFixedWidth:function(){return e()?void 0:"33%"}}))},
basicContentViewModel:function(Z){return _.v(PP,{linearLayoutContainerConfiguration:r,className:"ytLinearLayoutViewModelBasicContentItem"},_.v(_.ViC,{data:Z.data}))},
linearLayoutViewModel:function(Z){return _.v(PP,{linearLayoutContainerConfiguration:r},_.v(_.UL,{data:Z.data}))},
thumbnailViewModel:function(Z){return _.v(PP,{linearLayoutContainerConfiguration:r,className:"ytLinearLayoutViewModelThumbnailItem"},_.v(_.DA,{data:Z.data}))},
descriptionPreviewViewModel:function(Z){return _.v(PP,{linearLayoutContainerConfiguration:r},_.v(_.aD,{data:Z.data}))},
listItemViewModel:function(Z){return _.v(PP,{linearLayoutContainerConfiguration:r},_.v(_.xq,{data:Z.data}))}}))},"be");
PP=_.y(function(G){var e=function(){var r,Z=(r=G.linearLayoutContainerConfiguration)==null?void 0:r.call(G);r={};(Z==null?void 0:Z.flexDirection)==="FLEX_DIRECTION_ROW"||(Z==null?void 0:Z.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?r["margin-right"]=xsN(Z==null?void 0:Z.gap)+"px":r["margin-bottom"]=xsN(Z==null?void 0:Z.gap)+"px";return r};
return _.v("div",{style:_.Mk({"margin-right":function(){return e()["margin-right"]},
"margin-bottom":function(){return e()["margin-bottom"]}}),
class:G.className},G.children)},"ce");_.J_(_.UL,"yt-linear-layout-view-model",{props:{data:_.N6}});_.J_(_.Xu,"chips-shelf-view-model",{props:{data:_.N6,callback:_.yb,selectionBehavior:_.N6,disableChipsScrollAnimation:_.N6}});_.J_(_.y(function(G){return _.v("yt-comment-filter-context-view-model",{class:_.LC("ytCommentFilterContextHost",G.className)},_.v(_.Wh,{text:function(){return G.data().text}}))},"de"),"yt-comment-filter-context-view-model",{props:{data:_.N6,
className:_.yb}});_.SqE=_.y(function(G){var e=G.data;var r=G.onTap;var Z=G.onSwitch;var O=G.overrideDisabled;G=G.disableHorizontalPadding;var M=_.h(_.Ob(function(){var l;return((l=ANy(t()))==null?void 0:l.switchedOnByDefault)||!1})),T=M.next().value,E=M.next().value;
M=_.h(_.XQ(!1,void 0,"ZHBkbb"));var b=M.next().value,w=M.next().value,q=_.R("web_button_or_anchor_list_item"),t=function(){var l;if(!(l=e().switchButton)){var X=e();l=O==null?void 0:O();X={switchOnCommand:X.switchOnCommand,switchOffCommand:X.switchOffCommand,switchedOnByDefault:X.switchedOnByDefault,isDisabled:X.isDisabled,handleOnTapEventInParent:!q,a11yLabelSwitchedOn:X.a11yLabelSwitchedOn,a11yLabelSwitchedOff:X.a11yLabelSwitchedOff};l!==void 0&&(X.isDisabled=l);l={switchButtonViewModel:X}}return l},
g=function(l){var X=ANy(t());
!X||X.isDisabled||e().ignoreTapUntilCommandCompletes&&b()||(r==null||r(l),YR_(X,T(),l,e().ignoreTapUntilCommandCompletes,w),E(!T()),Z==null||Z(T()))};
return _.v("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.v(_.xq,{data:function(){return{title:e().title,subtitle:e().attributedSubtitle,leadingImage:e().leadingImage,leadingAccessory:e().leadingAccessory,isDisabled:e().isDisabled}},
onTap:g,isToggled:q?T:void 0,trailingAccessory:function(){return _.v(_.E2,{data:t},{switchButtonViewModel:function(l){return _.v(D7W,{data:l.data,parentActive:T,handleOnTapEventInParent:!!r&&!q,onTap:q?g:void 0})}})},
disableHorizontalPadding:G}))},"ee");var qqc=_.y(function(G){var e=_.h(_.Ob(function(){var O,M;return!!((O=G.data())==null?0:(M=O.initialState)==null?0:M.isToggled)})),r=e.next().value,Z=e.next().value;
e=_.ev(function(){Z(!r())});
return _.v("toggleable-list-item-view-model",{el:_.cQ(_.jV(function(){return G.data().rendererContext})),
class:_.LC("toggleableListItemViewModelHost",G.className),"on:click":e},_.v(_.S,{cond:function(){if(r()){var O=G.data().toggledListItem;O=_.a(O,_.ve)}else O=G.data().defaultListItem,O=_.a(O,_.ve);return O},
then:function(O){return _.v(_.xq,{data:O,isToggled:r,ariaLabel:function(){var M=r()?G.data().toggledListItem:G.data().defaultListItem,T;M=(T=_.a(M,_.ve))==null?void 0:T.rendererContext;var E;return(E=_.a(M,_.D9))==null?void 0:E.label},
ariaPressed:function(){return r()}})}}))},"fe");var ti3=_.OK("DOWNLOAD",{},"Download"),gdP=_.OK("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),ljn=_.OK("RETRY",{},"Retry"),RA3=_.OK("PAUSE_DOWNLOADING",{},"Pause downloading"),j9W=_.OK("RESUME_DOWNLOAD",{},"Resume download"),WhA={text:ti3,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},Ez={text:gdP,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},GWS={text:ljn,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
NY4={text:RA3,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},Lhf={text:j9W,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var ajE=_.y(function(G){var e=function(){var E=G.data();E=_.lt(E.rendererContext);var b;return(b=_.a(E,_.O2))==null?void 0:b.videoId},r=_.Eb(function(E){var b=e(),w=ZkS(G.data());
return b?_.KQ(E,b):w?_.fQ(E,w):"TRANSFER_STATE_UNKNOWN"}),Z=_.hI(_.Gs$,e),O=_.Eb(function(E){return _.xGp(E,e(),ZkS(G.data()))}),M=function(){return rfF(r(),Z(),_.lt(G.data().rendererContext),!!ZkS(G.data()))},T=function(){return O()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.v("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:T},_.v(_.S,{cond:function(){return!T()},
then:function(){return _.v(_.S,{cond:M,then:function(E){return _.v(_.u6,{each:E},function(b){return _.v(_.xq,{data:b,isCompact:G.isCompact,isMenuItem:G.isMenuItem,inPopup:G.inPopup,disableHorizontalPadding:G.disableHorizontalPadding})})}})}}))},"ge");
ajE.idomCompat=!0;_.X8w=_.y(function(G){var e=G.data;var r=G.isCompact;var Z=G.hideSelectionTextChevron;var O=G.inPopup;var M=G.isOverlay;var T=G.disableHorizontalPadding;var E=function(){return Ok$(e())&&(O==null?void 0:O())};
G=_.ev(function(w){if(O!=null&&O()&&_.R("web_enable_arrow_key_navigation_in_dropdown")){var q=_.ha_(w.currentTarget),t=q.length;if(t!==0){var g=Array.prototype.indexOf.call(q,document.activeElement);switch(w.key){case "ArrowDown":w.preventDefault();var l;(l=q[(g+1)%t])==null||l.focus();break;case "ArrowUp":w.preventDefault();var X;(X=q[g===-1?t-1:(g-1+t)%t])==null||X.focus()}}}});
var b={};return _.v("yt-list-view-model",{class:_.LC("ytListViewModelHost",(b.ytListViewModelHostKaiosSpatNav=EQa&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",b.ytListViewModelCollectionThumbnailClass=function(){return hVy(e())},b)),
role:function(){return E()?"menu":"list"},
style:_.Mk({"max-height":function(){var w,q=(w=e())==null?void 0:w.visibleElementCount;if(q)return hVy(e())?(q+.5)*48+"px":(q+.5)*40+"px"}}),
"on:keydown":G},_.v(_.E2,{data:function(){return e().listItems}},{listItemViewModel:function(w){return _.v(_.xq,{data:w.data,
isMenuItem:E,isCompact:r,hideSelectionTextChevron:Z,inPopup:O,isOverlay:M,disableHorizontalPadding:T})},
toggleableListItemViewModel:function(w){return _.v(qqc,{data:w.data})},
downloadListItemViewModel:function(w){return _.v(ajE,{data:w.data,isMenuItem:E,isCompact:r,inPopup:O,disableHorizontalPadding:T})},
switchListItemViewModel:function(w){return _.v(_.SqE,{data:w.data,disableHorizontalPadding:T})}}))},"he");
_.X8w.idomCompat=!0;var KeW=_.y(function(G){var e=G.data;var r=G.isOverlay;G={};return _.v("yt-course-perks-view-model",{class:_.LC("ytwCoursePerksViewModelHost",(G.ytwCoursePerksViewModelHostOverlay=r,G))},_.v("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.v(_.Wh,{text:function(){return e().title}})),_.v("div",null,_.v(_.S,{cond:function(){return e().perks},
then:function(Z){return _.v(_.X8w,{data:function(){return{listItems:Z()}},
isCompact:!0,isOverlay:r})}})))},"ie");_.J_(KeW,"yt-course-perks-view-model",{props:{data:_.yb,isOverlay:_.yb}});_.J_(_.y(function(G){var e=G.data;return _.v("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.v("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.v(_.Wh,{text:function(){return e().title}})),_.v("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.v(_.Wh,{text:function(){return e().progressSummary}})),_.v("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.v("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.Mk({width:function(){return e().progressPercentage*100+"%"}})})))},"je"),"yt-course-progress-view-model",{props:{data:_.N6}});var fjn=_.y(function(G){var e={};return _.v("yt-progress-view-model",{class:_.LC("ytwProgressViewModelHost",(e.ytwProgressViewModelHostOverlay=_.mr(G.isOverlay,!1),e))},_.v(_.S,{cond:function(){return G.data().progressSummary},
then:function(r){return _.v("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.v(_.Wh,{text:r}))}}),_.v("div",{class:"ytwProgressViewModelHostProgressContainer"},_.v(_.S,{cond:function(){return G.data().leadingLabel},
then:function(r){return _.v("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.v(_.Wh,{text:r}))}}),_.v("div",{class:"ytwProgressViewModelHostProgressBar"},_.v("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(G.data().progressPercentage||0)*100+"%"}}))))},"ke");var zP=_.y(function(G){var e=G.starNumber;var r=G.data;var Z=function(){var O;return((O=r())==null?void 0:O.rating)||0};
return _.v(_.S,{cond:function(){return e()},
then:function(O){return _.v(_.nz,null,_.v(_.pz,{when:function(){return Z()>=O()-.25}},function(){return _.v("div",{class:"ytStarRatingViewModelHostStar"},_.v(_.V$,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.v(_.pz,{when:function(){return Z()>=O()-.75}},function(){return _.v("div",{class:"ytStarRatingViewModelHostStar"},_.v(_.V$,{icon:"STAR_HALF",
size:function(){return 24}}))}),_.v(_.Cz,null,function(){return _.v("div",{class:"ytStarRatingViewModelHostStar"},_.v(_.V$,{icon:"STAR_BORDER",
size:function(){return 24}}))}))}})},"le"),kHj=_.y(function(G){G=G.data;
return _.v("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.v(zP,{starNumber:1,data:G}),_.v(zP,{starNumber:2,data:G}),_.v(zP,{starNumber:3,data:G}),_.v(zP,{starNumber:4,data:G}),_.v(zP,{starNumber:5,data:G}))},"me");_.J_(_.y(function(G){var e=_.cx(G,{}).data;return _.v("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.v("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.v(_.Wh,{text:function(){var r;return(r=e())==null?void 0:r.title}})),_.v("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.v(_.S,{cond:function(){return e().starProgressViewModels},
then:function(r){return _.v("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.v(_.E2,{data:r},{progressViewModel:fjn}))}}),_.v("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.v("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.v(_.Wh,{text:function(){var r;
return(r=e())==null?void 0:r.averageRatingLabel}})),_.v(_.S,{cond:function(){return e().zeroStateText},
then:function(r){return _.v("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.v(_.Wh,{text:r}))}}),_.v(_.S,{cond:function(){return e().starRatingViewModel},
then:function(r){return _.v("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.v(_.E2,{data:r},{starRatingViewModel:kHj}))}}),_.v("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.v(_.Wh,{text:function(){var r;
return(r=e())==null?void 0:r.totalRatingsCountLabel}})))))},"ne"),"yt-course-ratings-view-model",{props:{data:_.yb}});var H3W;H3W={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"}};_.d7y=_.y(function(G){var e=_.hT("yt-learning-journey-loader-view-model"),r=_.r8();_.YZ(function(){requestAnimationFrame(function(){var O;(O=r.lottieEl)==null||O.addEventListener("DOMLoaded",function(){var M;(M=G.onLottieLoaded)==null||M.call(G)})});
var Z=G.data().browseEndpoint;Z&&_.HQ(Z)});
return _.v("yt-learning-journey-loader-view-model",{class:_.LC("learningJourneyLoaderViewModelHost",G.className),"data-target-id":function(){return G.data().targetId||""},
el:e},_.v(_.lO,{className:_.LC("learningJourneyLoaderViewModelLoader",G.className),animationName:function(){return H3W.animationConfig.name},
data:H3W,animationRef:r}))},"pe");_.J_(_.d7y,"yt-learning-journey-loader-view-model",{props:{data:_.N6,className:_.yb,onLottieLoaded:_.yb}});var DiF=new Set,TNy=null;var odc=_.y(function(G){var e=void 0,r=function(){return G.data()},Z=function(){return!!w7(bn(r())).optionColor},O=_.h(_.XQ(-1,void 0,"eTdwcb")),M=O.next().value,T=O.next().value,E=function(g){return M()===g},b=function(g){return r().correctAnswerIndex===g},w=function(){return M()!==-1};
O=_.h(_.XQ("",void 0,"QwJs6"));var q=O.next().value,t=O.next().value;return _.v("learning-journey-quiz-view-model",{class:_.LC("learningQuizComponentHost","learningJourneyQuizYoututorHost",G.className),style:_.Mk({background:function(){return w7(bn(r())).backgroundColor}})},_.v("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},q),_.v("div",{class:"learningQuizComponentQuizContainer"},_.v("div",{class:"learningQuizComponentQuiz"},_.v("div",{class:"learningQuizComponentQuizContent"},_.v(_.S,{cond:function(){return!!r().aiGeneratedQuizLabel},
then:function(){return _.v("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.v(_.Wh,{text:function(){return r().aiGeneratedQuizLabel}}))}}),_.v("div",{class:"learningQuizComponentQuizHeader",
style:_.Mk({"align-items":function(){return r().overflowMenu?"start":"center"}})},_.v("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.Mk({"min-height":function(){return r().overflowMenu?"48px":"26px"}})},_.v("div",{class:"learningJourneyQuizYoututorText",
style:_.Mk({color:function(){return w7(bn(r())).primaryTextColor}})},_.v(_.Wh,{text:function(){return r().questionHeaderText}})))),_.v("div",{class:"learningQuizComponentQuizSubheader",
style:_.Mk({color:function(){return w7(bn(r())).secondaryTextColor}})},_.v(_.Wh,{text:function(){var g=r();
return w()?g.explanationText:g.questionSubheaderText}}))),_.v("div",{role:"group",
class:_.LC("learningQuizComponentQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.v(_.u6,{each:function(){return r().optionsData||[]}},function(g,l){var X={};
return _.v("button",{class:_.LC("learningQuizComponentQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(X.learningQuizComponentQuizHover=function(){return!w()},X.learningQuizComponentQuizOptionWithCustomColor=Z,X.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return w()&&b(l())},X.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return M()!==r().correctAnswerIndex&&E(l())},X.learningQuizComponentQuizIncorrectShake=
function(){return M()!==r().correctAnswerIndex&&E(l())},X)),
"on:click":_.ev(function(){if(w())return!1;T(l());var H,I;t(b(l())?((H=r().successTitle)==null?void 0:H.content)||"":((I=r().failureTitle)==null?void 0:I.content)||"");return!1}),
style:_.Mk({background:"transparent"}),"aria-description":function(){var H,I;return w()?b(l())?(H=r().successTitle)==null?void 0:H.content:(I=r().failureTitle)==null?void 0:I.content:""},
"aria-disabled":w,el:_.cQ(function(H){_.$i(271905,H,e,function(I){e=I})}),
"client-ve-type":271905},_.v("div",{class:"learningQuizComponentQuizOptionContainer"},_.v(_.Wh,{text:g.optionText}),_.v(_.S,{cond:function(){var H=l();return w()&&(E(H)||b(H))},
then:function(){var H={};return _.v(_.V$,{className:_.LC("learningJourneyQuizYoututorOptionIcon",(H.learningQuizComponentQuizPulse=function(){return M()===r().correctAnswerIndex&&b(l())},H)),
size:24,icon:function(){return b(l())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.v(_.S,{cond:w,
then:function(){return _.v("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.v("div",{class:"learningJourneyQuizYoututorExplanationText"},_.v(_.Wh,{text:function(){return r().explanationHeaderText}})),_.v(_.Wh,{text:function(){return r().optionsData[M()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"qe");
odc.idomCompat=!0;var s9W;_.Q9C=_.y(function(G){var e=null,r=null,Z=null,O=function(){return G.data()},M=function(){return w7(bn(O()))},T=function(){return!!M().optionColor},E=_.h(_.XQ(-1,void 0,"gXauJb")),b=E.next().value,w=E.next().value,q=function(F){return b()===F},t=function(F){return O().correctAnswerIndex===F},g=function(){return b()!==-1},l=function(){return b()===O().correctAnswerIndex},X=function(){var F=O(),J=g(),U=l();
return J?U?F.successTitle:F.failureTitle:F.questionHeaderText},H=function(){var F=g(),J=l();
return F?J?264685:264684:264683},I=function(){var F=O();
return g()?F.explanationText:F.questionSubheaderText},C=function(){return!!O().video},u=function(F){return l()&&t(F)},P=_.ev(function(){w(-1);
return!1});
return _.v(_.S,{cond:function(){return O().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.v(odc,{data:function(){return O()}})},
else:function(){return _.v("learning-journey-quiz-view-model",{class:_.LC("learningQuizComponentHost",G.className),style:_.Mk({background:function(){return M().backgroundColor}})},_.v(_.S,{cond:C,
then:function(){return _.v("div",{class:"learningJourneyQuizViewModelVideoContainer",style:_.Mk({background:function(){return M().videoBackgroundColor}})},_.v(_.E2,{data:function(){return O().video}},{lockupViewModel:function(F){return _.v(_.Rk,{data:F.data,
containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),_.v("div",{class:"learningQuizComponentQuizContainer"},_.v("div",{class:"learningQuizComponentQuiz"},_.v("div",{class:"learningQuizComponentQuizContent"},_.v(_.S,{cond:function(){return!!O().aiGeneratedQuizLabel},
then:function(){return _.v("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.v(_.Wh,{text:function(){return O().aiGeneratedQuizLabel}}))}}),_.v("div",{class:"learningQuizComponentQuizHeader",
style:_.Mk({"align-items":function(){return O().overflowMenu?"start":"center"}})},_.v("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.Mk({"min-height":function(){return O().overflowMenu?"48px":"26px"}})},_.v("div",{class:"learningJourneyQuizViewModelQuizHeaderText",
el:_.cQ(function(F){_.$i(H(),F,e,function(J){e=J})}),
style:_.Mk({color:function(){return M().primaryTextColor}}),
"client-ve-type":H},_.v(_.Wh,{text:X}))),_.v("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},_.v(_.S,{cond:g,then:function(){return _.v("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:_.cQ(function(F){_.$i(264687,F,r,function(J){r=J})}),
"on:click":P,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.v("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.Mk({fill:function(){return M().primaryTextColor}})},_.v("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"})))}}),
_.v(_.E2,{data:function(){return O().overflowMenu}},{buttonViewModel:function(F){return _.v(_.wF,{data:F.data})}}))),_.v("div",{class:"learningQuizComponentQuizSubheader",
el:_.cQ(function(F){_.$i(264688,F,Z,function(J){Z=J})}),
style:_.Mk({color:function(){return M().secondaryTextColor}}),
"client-ve-type":264688},_.v(_.Wh,{text:I}))),_.v("div",{role:"group",class:"learningQuizComponentQuizOptionsList"},_.v(_.u6,{each:function(){return O().optionsData||[]}},function(F,J){var U={};
return _.v("button",{class:_.LC("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(U.learningQuizComponentQuizHover=function(){return!g()},U.learningQuizComponentQuizOptionWithCustomColor=T,U.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){return u(J())},U.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!l()&&q(J())},U.learningQuizComponentQuizIncorrectShake=function(){return!l()&&
q(J())},U.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return g()&&!q(J())},U)),
"on:click":_.ev(function(){if(g())return!1;w(J());return!1}),
style:_.Mk({background:function(){var e$=J();return g()&&q(e$)?"":T()?M().optionColor:"transparent"}}),
"aria-disabled":g,"client-ve-type":264686},_.v("div",{class:"learningQuizComponentQuizOptionContainer"},_.v(_.S,{cond:g,then:function(){return _.v(s9W,{isOptionCorrect:t,optionIndex:J,isOptionSelectedAndCorrect:u,colors:M})}}),_.v(_.Wh,{text:F.optionText})))})))))}})},"re");
s9W=_.y(function(G){var e={};return _.v("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var r=G.optionIndex();return G.isOptionCorrect(r)?"0 0 24 24":"0 -960 960 960"},
class:_.LC("learningJourneyQuizViewModelQuizOptionIconLeading",(e.learningQuizComponentQuizPulse=function(){return G.isOptionSelectedAndCorrect(G.optionIndex())},e)),
style:_.Mk({fill:function(){return G.colors().primaryTextColor}})},_.v("path",{d:function(){var r=G.optionIndex();
return G.isOptionCorrect(r)?"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"}}))},"se");
_.Q9C.idomCompat=!0;_.J_(_.Q9C,"learning-journey-quiz-view-model",{props:{data:_.N6,className:_.N6}});var IjS=_.y(function(G){var e=_.h((0,_.JNy)(function(){var T;return{targetId:(T=G.data().config)==null?void 0:T.suspenseKey,contents:[G.data()]}})).next().value,r=_.v_().resolve(_.$1),Z=function(){var T=e().contents.length>0?e().contents[0]:void 0;
return T==null?void 0:T.config},O=function(){var T;
return(T=Z())==null?void 0:T.entityTriggerConfig},M=_.hI(DdS,function(){var T,E;
return(E=(T=O())==null?void 0:T.entityKey)!=null?E:""});
_.Y8(function(){var T,E,b,w=(b=Number((T=O())==null?void 0:(E=T.invalidationTimestamp)==null?void 0:E.seconds))!=null?b:0,q,t,g;if(((g=Number((q=M())==null?void 0:(t=q.lastUpdated)==null?void 0:t.seconds))!=null?g:0)>w){var l;(T=(l=Z())==null?void 0:l.continuationCommand)&&r.resolveCommand(T)}},"tC8nKe");
return _.v("yt-suspense-view-model",{class:_.LC("ytSuspenseViewModelHost")},_.v(_.E2,{data:function(){var T;return(T=Z())==null?void 0:T.contents}},{lockupViewModel:_.Rk}))},"ue");var p8l=_.y(function(G){var e=_.cx(G,{palette:void 0,isLastItem:!1}),r=e.palette,Z=e.isLastItem,O=function(){return G.data().isHighlighted},M=function(){var b;
return ikA((b=r())==null?void 0:b.iconDisabledColor)},T=function(){var b;
return ikA((b=r())==null?void 0:b.primaryTitleColor)},E=function(){var b;
return ikA((b=r())==null?void 0:b.secondaryTitleColor)};
e={};return _.v("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.cQ(_.jV(function(){return G.data().rendererContext}))},_.v(_.E2,{data:function(){return G.data().thumbnail}},{thumbnailViewModel:_.DA}),_.v("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.v("div",{class:_.LC("ytMacroMarkerListItemViewModelTimeDescription",(e.ytMacroMarkerListItemViewModelHighlighted=O,e)),
style:_.Mk({"background-color":function(){return O()?T():M()},
color:function(){return O()?"":E()}})},_.v(_.Wh,{text:function(){return G.data().timestamp}})),_.v("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.Mk({"background-color":function(){return Z()?"transparent":M()}})}),_.v("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(O()?T():E())}},_.v(_.Wh,{text:function(){return G.data().title}}))))},"ve");_.WP=_.y(function(G){function e(hi){u("transform:translateX("+(_.xZ("HTML_DIR")==="rtl"?"":"-")+hi+"px)")}
function r(hi){return Math.min(Math.max(hi,0),C()-e$())}
function Z(){var hi=J()+ti();return O()?(Math.round(e$()/hi)||1)*hi:0}
var O=function(){return G.data().items||[]},M=function(){return G.data().previousButton},T=function(){return G.data().nextButton},E=function(){var hi,rj;
return(rj=(hi=G.disableArrows)==null?void 0:hi.call(G))!=null?rj:!1},b=function(){var hi;
return!((hi=G.forceNarrowLayout)==null||!hi.call(G))},w=_.dw(function(){var hi;
return!((hi=G.centerAlignItems)==null||!hi.call(G))&&C()<=e$()},void 0,"Uto0kc"),q=_.hT("horizontal-shelf-view-model"),t=_.hT("div"),g=_.h(_.XQ(0,void 0,"G0xZB")),l=g.next().value,X=g.next().value;
g=_.h(_.XQ(0,void 0,"kqCYFf"));var H=g.next().value,I=g.next().value,C=H;H=_.h(_.XQ("",void 0,"Hh6Uye"));g=H.next().value;var u=H.next().value;H=_.h(_.XQ(0,void 0,"yMGBKb"));var P=H.next().value,F=H.next().value,J=P;H=_.h(_.XQ(0,void 0,"VChthd"));P=H.next().value;var U=H.next().value,e$=P;H=_.h(_.XQ(!1,void 0,"qJlhhe"));var Dq=H.next().value,bF=H.next().value;H=_.h(_.XQ(0,void 0,"x7H94"));P=H.next().value;var Kf=H.next().value,ti=P;H=_.h(_.XQ(0,void 0,"ksuUee"));var Ry=H.next().value,nf=H.next().value;
H=_.h(_.XQ("50%",void 0,"uxCxde"));var k4=H.next().value,SE=H.next().value,Fn=function(){var hi,rj=(hi=G.data())==null?void 0:hi.responsiveContainerConfiguration,tS,OV;return rj?He(rj==null?void 0:rj.responsiveSize):(OV=(tS=G.sizing)==null?void 0:tS.call(G))!=null?OV:"STANDARD"};
H=_.dw(function(){return!E()&&l()>0},void 0,"XK60w");
P=_.dw(function(){return!E()&&l()<C()-e$()},void 0,"D22LVd");
var kw=function(){X(r(l()-Z()));e(l())},Lf=function(){X(r(l()+Z()));
e(l())},vc=function(){q.value!==null&&Hc()},IW;
_.yY(function(){Hc();window.ResizeObserver?(IW=new ResizeObserver(_.lE(vc,0)),IW.observe(q.value)):window.addEventListener("resize",vc)});
_.yD(function(){if(window.ResizeObserver){var hi;(hi=IW)==null||hi.disconnect()}else window.removeEventListener("resize",vc)});
var Hc=function(){var hi=q.value.clientWidth,rj=G.includeMargin!==void 0?G.includeMargin():!1,tS;var OV=G.hasPeek!==void 0?G.hasPeek():!((tS=G.data())==null||!tS.hasPeek);hi=_.kb({containerWidth:hi,hasPeek:OV,sizing:Fn(),marginSettings:rj?b()?4:1:0});Kf(hi.gutter);nf(hi.margin);F(hi.itemWidth);bF(hi.maxContainerWidth<528||b());U(hi.maxContainerWidth);O()&&I((hi.itemWidth+hi.gutter)*O().length-hi.gutter);if(O()){var RW;if(((RW=G.thumbnailAspectRatio)==null?void 0:RW.call(G))!==void 0){var Zl;SE(J()/
cgN((Zl=G.thumbnailAspectRatio)==null?void 0:Zl.call(G))/2+"px")}else SE("50%")}},a8={},t2={};
return _.v("horizontal-shelf-view-model",{class:_.LC("ytwHorizontalShelfViewModelHost",G.className),el:q},_.v(_.S,{cond:function(){var hi;return G.data().header&&!((hi=G.horizontalShelfExperiments)==null?0:hi.call(G).hideHeader)},
then:function(){return _.v("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.Mk({width:function(){return e$()+"px"},
padding:function(){return"0 "+Ry()+"px"}})},_.v(_.E2,{data:function(){return G.data().header}},{sectionHeaderViewModel:function(hi){return _.v(_.XA,{data:hi.data,
disableHorizontalPadding:!0,forceSmallLayout:Dq,useResponsiveLayout:!0})}}))}}),_.v("div",{class:_.LC("ytwHorizontalShelfViewModelOuterContainer",(a8.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return w()},a8)),
style:_.Mk({"margin-top":function(){var hi,rj=G.data().header&&!((hi=G.horizontalShelfExperiments)==null?0:hi.call(G).hideHeader),tS;return(((tS=G.ensureMarginTop)==null?0:tS.call(G))&&!rj?12:0)+"px"}})},_.v("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.Mk({width:function(){return e$()+"px"},
padding:function(){return"0 "+Ry()+"px"},
overflow:function(){return E()?"auto":"hidden"}})},_.v("div",{class:_.LC("ytwHorizontalShelfViewModelItems",(t2.ytwHorizontalShelfViewModelCenterAlignItems=function(){return w()},t2)),
el:t,style:g},_.v(_.E2,{data:O},{macroMarkerListItemViewModel:function(hi,rj){return _.v("div",{style:_.Mk({width:function(){return J()+"px"},
"margin-right":function(){return(rj()===O().length-1?0:ti())+"px"}})},_.v(p8l,{data:hi.data,
palette:_.mr(G.palette),isLastItem:function(){return rj()===O().length-1}}))},
lockupViewModel:function(hi,rj){var tS=hi.data;return _.v("div",{style:_.Mk({width:function(){return J()+"px"},
"margin-right":function(){return(rj()===O().length-1?0:ti())+"px"}})},_.v(_.Rk,{data:tS,
containerType:4,sizing:Fn,protectBackground:G.protectBackground,thumbnailFixedWidth:function(){return bki(tS())+"px"},
thumbnailTargetWidth:function(){return bki(tS())}}))},
suspenseViewModel:function(hi,rj){return _.v("div",{style:_.Mk({width:function(){return J()+"px"},
"margin-right":function(){return(rj()===O().length-1?0:ti())+"px"}})},_.v(IjS,{data:hi.data}))}}))),_.v(_.S,{cond:H,
then:function(){return _.v("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.Mk({top:function(){return k4()}})},_.v(_.E2,{data:M},{buttonViewModel:function(hi){return _.v(_.wF,{data:hi.data,
onClick:kw})}}))}}),_.v(_.S,{cond:P,
then:function(){return _.v("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.Mk({top:function(){return k4()}})},_.v(_.E2,{data:T},{buttonViewModel:function(hi){return _.v(_.wF,{data:hi.data,
onClick:Lf})}}))}})))},"we");
_.WP.idomCompat=!0;var Chb=_.y(function(G){var e=function(){return G.data().targetId||""},r=function(){var H;
return((H=G.data())==null?void 0:H.expansionEntityKey)||""},Z=_.hI(_.TCs,r),O=!0,M=function(){var H;
return((H=Z())==null?void 0:H.value)===e()},T=function(H){_.nR(_.bt("stringEntity",r(),{key:r(),
value:H?e():""}))};
_.YZ(function(){O=!1;G.data().isExpanded&&T(!0)});
var E=function(){if(M()){var H=!0;G.onCollapse!==void 0&&(H=G.onCollapse());H&&T(!1)}else T(!0)},b=_.ev(E),w=function(){var H;
return(((H=G.accordionStyle)==null?void 0:H.call(G))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},q=_.hT("div"),t=function(){var H,I;
return(I=(H=_.a(G.data().rendererContext,_.D9))==null?void 0:H.label)!=null?I:""},g=function(){var H,I;
return{disabled:(H=G.hideIfNotExpanded)==null?void 0:H.call(G),ariaHidden:(I=G.hideIfNotExpanded)==null?void 0:I.call(G)}},l={},X={};
return _.v("yt-accordion-item-view-model",{class:_.LC("ytAccordionItemViewModelHost",G.className,(l.ytAccordionItemViewModelExpanded=function(){return M()},l.ytAccordionItemViewModelHidden=function(){var H;
return(H=G.hideIfNotExpanded)==null?void 0:H.call(G)},l.ytAccordionItemViewModelMini=w,l)),
"data-target-id":e},_.v("div",{class:"ytAccordionItemViewModelContainer"},_.v("div",{class:"ytAccordionItemViewModelLeftSection","on:click":b,title:t,"aria-hidden":function(){var H;return(H=G.hideIfNotExpanded)==null?void 0:H.call(G)}},_.v(_.Wh,{text:function(){return G.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:t})),_.v("div",{class:"ytAccordionItemViewModelRightSection"},_.v(_.E2,{data:function(){return M()?G.data().expandButton:G.data().collapseButton}},{buttonViewModel:function(H){return _.v(_.wF,{data:H.data,
className:"ytAccordionItemViewModelToggleButton",onClick:E,buttonOverrides:g})}}))),_.v("div",{class:"ytAccordionItemViewModelContainer"},_.v("div",{class:_.LC("ytAccordionItemViewModelContent",(X.ytAccordionItemViewModelExpandedSubtitle=function(){return M()},X)),
el:q,style:_.Mk({"max-height":function(){return O?"auto":M()?q.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!M()}},_.v(_.S,{cond:function(){return!w()},
then:function(){return _.v(_.Wh,{text:function(){return G.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.v(_.E2,{data:function(){return G.data().content}},{horizontalShelfViewModel:function(H){return _.v(_.WP,{data:H.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"ye");_.ujy=_.y(function(G){var e=_.h((0,_.JNy)(G.data)).next().value,r=function(){return G.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},Z=function(){return r()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},O=_.h(_.XQ(!0,void 0,"VFpYAb")),M=O.next().value,T=O.next().value,E=function(){return Z()&&M()},b=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){T(!M())}}},w=_.ev(function(){e().onTitleTap&&_.HQ(e().onTitleTap||{})});
O={};return _.v("yt-accordion-view-model",{class:_.LC("ytAccordionViewModelHost",(O.ytAccordionViewModelMinimized=function(){return E()},O)),
"data-target-id":function(){return G.data().targetId||""}},_.v(_.S,{cond:function(){return Z()||!!e().title},
then:function(){return _.v("div",{class:"ytAccordionViewModelHeader"},_.v("div",{class:"ytAccordionViewModelTitleSection"},_.v("div",{class:"ytAccordionViewModelTitleWrapper"},_.v(_.S,{cond:function(){return!!G.data().headerIcon},
then:function(){return _.v(_.V$,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var q;return(q=G.data().headerIcon)==null?void 0:q.iconType}})}}),_.v("div",{class:"ytAccordionViewModelTitle",
"on:click":w},_.v(_.Wh,{className:"ytAccordionViewModelTitleText",text:function(){return e().title}})))),_.v("div",{class:"ytAccordionViewModelButtonSection"},_.v(_.S,{cond:Z,
then:function(){return _.v(_.vk,{data:b,iconName:function(){return E()?"chevron_down":"chevron_collapse"}})}})))}}),_.v("div",{class:"ytAccordionViewModelContent"},_.v(_.E2,{data:function(){return e().contents}},{accordionItemViewModel:function(q){return _.v(Chb,{data:q.data,
className:"ytAccordionViewModelRow",accordionStyle:r,hideIfNotExpanded:E,onCollapse:function(){return Z()?(T(!0),!1):!0}})}})),_.v("div",null,_.v(_.S,{cond:function(){return!Z()&&(!!e().disclaimerFooter||!!e().footer)},
then:function(){return _.v("div",{class:"ytAccordionViewModelFooter"},_.v(_.Wh,{text:function(){return e().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.v(_.E2,{data:function(){return G.data().footer}},{flexibleActionsViewModel:function(q){return _.v(_.FL,{data:q.data,
layout:0})}}))}})))},"ze");_.J_(_.ujy,"yt-accordion-view-model",{props:{data:_.N6}});_.J_(_.y(function(G){var e=null,r=null,Z,O=(Z=_.v_().resolve(_.bq(_.Ig)))==null?void 0:Z(),M=_.h(_.XQ(!1,void 0,"CmEVtc"));Z=M.next().value;var T=M.next().value;M=_.h(_.XQ(!0,void 0,"yo9dR"));var E=M.next().value,b=M.next().value,w=_.hT("textarea",function(I){_.$i(264503,I,e,function(C){e=C})}),q=function(I){T(!0);
I={learningJourneyFormData:{query:I}};_.HQ(G.data().searchEndpoint||{},{form:{formData:I}});return!1},t=_.ev(function(I){I.target.closest("button-view-model")&&T(!0)});
M=_.ev(function(){b(w.value.value.length===0)});
var g=_.ev(function(I){if(I.key==="Enter"&&!I.shiftKey&&!E()){var C=I.target;I.preventDefault();q(C.value)}}),l={},X={},H={};
return _.v("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.v("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.v(_.nC,{data:function(){return G.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.v("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.v("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.v("div",{class:_.LC("ytLearningJourneyZeroStateSearchBar",(l.ytLearningJourneyZeroStateSearchBarDark=O,l))},_.v("textarea",{class:_.LC("ytLearningJourneyZeroStateTextInput",(X.ytLearningJourneyZeroStateTextInputDark=O,X)),el:w,"on:keyup":M,"on:keydown":g,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.v("div",{class:_.LC("ytLearningJourneyZeroStateSearchButtonContainer",(H.ytLearningJourneyZeroStateSearchButtonContainerDark=O,H))},_.v(_.wF,{data:function(){return _.a(G.data().searchButton,_.G$)},
className:"search-button",onClick:function(){return q(w.value.value)},
buttonOverrides:function(){return{disabled:E(),style:O?"mono-inverse":"mono",size:"XL"}}}))),_.v(_.S,{cond:function(){return!!G.data().errorBanner},
then:function(){return _.v("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.cQ(function(I){_.$i(264617,I,r,function(C){r=C})})},_.v(_.E2,{data:function(){return G.data().errorBanner}},{alertBannerViewModel:function(I){return _.v(_.O3E,{data:I.data,
"client-ve-type":264617})}}))}})),_.v(_.S,{cond:Z,
then:function(){return _.v("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.v(_.E2,{data:function(){return G.data().loader}},{learningJourneyLoaderViewModel:function(I){return _.v(_.d7y,{data:I.data})}}))},
else:function(){return _.v("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.v(_.S,{cond:function(){return!!G.data().learningJourneyShelf},
then:function(){return _.v("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.v("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return G.data().learningJourneySectionTitle}),_.v(_.E2,{data:function(){return G.data().learningJourneyShelf}},{horizontalShelfViewModel:function(I){return _.v(_.WP,{data:I.data,
centerAlignItems:!0})}}))}}),_.v("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.v("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return G.data().suggestedJourneySectionTitle}),_.v("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":t},_.v(_.E2,{data:function(){return G.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(I){return _.v(_.FL,{data:I.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"Ae"),"yt-learning-journey-zero-state",{props:{data:_.N6}});var ndE=_.y(function(G){var e=G.data;return _.v("ytvl-live-leaderboard-item-action-content-view-model",{class:_.LC("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.v(_.Wh,{text:function(){var r;return(r=e())==null?void 0:r.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.v(_.E2,{data:function(){return e().actionButton}},{buttonViewModel:function(r){return _.v(_.wF,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:r.data})}}))},"Be");var m7W=_.y(function(G){var e=G.data;return _.v("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.LC("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.v(_.Wh,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var r;return(r=e())==null?void 0:r.displayName},
ellipsisTruncate:!0}),_.v(_.E2,{data:function(){return e().badge}},{buttonViewModel:function(r){return _.v(_.wF,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:r.data})}}))},"Ce");_.J_(_.y(function(G){var e=G.data;return _.v("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.v("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.v(_.Wh,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var r;return(r=e())==null?void 0:r.rank}})),_.v("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.v(_.E2,{data:function(){return e().avatar}},{avatarViewModel:_.yy})),_.v("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.v(_.E2,{data:function(){return e().content}},{liveLeaderboardItemChannelContentViewModel:m7W,
liveLeaderboardItemActionContentViewModel:ndE})),_.v(_.Wh,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var r;return(r=e())==null?void 0:r.points}}))},"De"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.N6}});_.J_(_.y(function(G){var e=G.data;return _.v("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.v(_.Wh,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var r,Z;return(r=e())==null?void 0:(Z=r.ranking)==null?void 0:Z.rank}}),_.v("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.v(_.E2,{data:function(){return e().avatar}},{avatarViewModel:_.yy})),_.v(_.Wh,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var r,Z;return(r=e())==null?void 0:(Z=r.channelContent)==null?void 0:Z.channelName}}),_.v(_.Wh,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var r;return(r=e())==null?void 0:r.points}}))},"Ee"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.N6}});var cUC=_.y(function(G){G=_.cx(G,{wrapper:!1}).wrapper;return _.v(_.S,{cond:G,then:function(){return _.v("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.v("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.v("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Fe");
cUC.idomCompat=!0;var Yqv=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],yUC=_.y(function(G){var e=G.data;var r=_.cQ(),Z=_.dw(function(){return e().command},void 0,"fyYsT");
_.Y8(function(){Z()&&_.KC(Z(),{form:{element:r.value}})},"B0nxdb");
return _.v("div",{el:r,class:"YtQrCodeRendererHostContainer"},_.v(_.S,{cond:function(){return e().qrCodeImage},
then:function(O){return _.v(_.nC,{data:O,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.v(_.S,{cond:function(){return e().spinner},
then:function(){return _.v(cUC,null)}})}}),_.v(_.S,{cond:function(){return e().label},
then:function(O){return _.v(_.Wh,{text:O,className:"YtQrCodeRendererHostLabel"})}}),_.v(_.S,{cond:function(){return e().labels},
then:function(O){return _.v("div",{class:"YtQrCodeRendererHostLabels"},_.v(_.u6,{each:O},function(M){return _.v(_.Wh,{text:M})}))}}))},"Ie");_.J_(_.y(function(G){var e=G.data;var r=_.dw(function(){return e().qrEntityKey},void 0,"LmZ2xf"),Z=_.dw(function(){return e().deleteEntityOnDismiss},void 0,"my0Tzb"),O=_.dw(function(){return e().command},void 0,"hzECIb"),M=_.hI(jf_,r);
G=_.dw(function(){return e().qrCodeImage},void 0,"AnD9rc");
var T=_.dw(function(){return e().style&&Yqv.includes(e().style)},void 0,"f5fZv"),E=_.vJ({visibilityCallback:function(b){b&&O()&&_.KC(O())},
showOption:{calledOnce:!0,state:"visible"}});_.yY(function(){_.yD(function(){Z()&&r()&&_.uD().dispatch(_.bt("qrCodeEntity",r()))})});
return _.v("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.cQ(E)},_.v(_.S,{cond:T,then:function(){return _.v(_.S,{cond:M,then:function(b){return _.v(yUC,{data:b})}})}}),_.v(_.S,{cond:G,
then:function(b){return _.v(_.nC,{data:b,alt:""})}}))},"Ge"),"yt-qr-code-renderer",{props:{data:_.N6}});var Fey=_.y(function(G){var e=function(){return _.jF(1728053247&(G.barColor!==void 0?Oz(G.barColor()):4278190080))};
return _.v("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},_.v(AUw,{animationDelay:0,percentWidth:100,barColor:function(){return e()}}),_.v("div",{class:"ytVideoOverviewGhostCardMediaWrapper"},_.v("div",{class:"ytVideoOverviewGhostCardMedia",
style:function(){return"background-color:"+e()}})),_.v(AUw,{animationDelay:0,
percentWidth:100,barColor:function(){return e()}}),_.v(AUw,{animationDelay:600,
percentWidth:60,barColor:function(){return e()}}))},"Je"),AUw=_.y(function(G){return _.v("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+G.percentWidth()+"%"}},_.v("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var e=G.animationDelay(),r=G.barColor();return"animation-delay:"+e+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+r+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Ke");var JUE;_.BVE=_.y(function(G){function e(I){T(I)}
var r=G.data;var Z=_.hT("yt-video-overview-view-model"),O=_.T2("div");G=_.h(_.XQ(-1,void 0,"qaDSu"));var M=G.next().value,T=G.next().value;G=_.h(_.XQ(0,void 0,"Vz681c"));var E=G.next().value,b=G.next().value,w={},q=_.hI(vR_,function(){return r().asyncDataEntityKey}),t=function(){var I;
if((I=q())==null?0:I.videoOverviewViewModel){var C;return _.a((C=q())==null?void 0:C.videoOverviewViewModel,$CS)}return r()};
_.yY(function(){b(Math.min((Z.value.clientWidth-24)/4-8,72))});
var g=function(I){T(I);(O==null?0:O.value)&&O.value.children[I]&&O.value.children[I].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
fy$(Z,function(){var I;if((I=t())==null||!I.inlinePlaybackEndpoint)return null;var C;I=w==null?void 0:(C=w.thumbnailElRef)==null?void 0:C.value;if(!I)return null;var u;C=(u=t())==null?void 0:u.inlinePlaybackEndpoint;u=_.a(C,Q4j);return{multipleVideoPreviewData:{data:(u==null?0:u.playerDescriptors)&&(u==null?0:u.playerDescriptors.length)?u.playerDescriptors:[],thumbnailElement:I,trackingParams:"test",callbacks:{onPlaybackStarted:g},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var l=function(){var I;return((I=t())==null?void 0:I.headerSubtext)!==void 0?!0:!1},X=function(){var I,C=Oz((I=t())==null?void 0:I.titleColor);
return C?"color: "+_.jF(C)+";":void 0},H=function(){var I,C=Oz((I=t())==null?void 0:I.subtextColor);
return C?"color: "+_.jF(C)+";":void 0};
return _.v("yt-video-overview-view-model",{class:"ytGenAiVideoOverviewViewModelHost",el:Z,style:function(){var I,C=Oz((I=t())==null?void 0:I.backgroundColor);return C?"background-color: "+_.jF(C)+";":void 0}},_.v(_.S,{cond:function(){var I;
return(I=t())==null?void 0:I.isLoading},
then:function(){return _.v(Fey,{barColor:function(){var I;return(I=t())==null?void 0:I.titleColor}})},
else:function(){return _.v(_.$Z,null,_.v("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.v("div",{class:"ytGenAiVideoOverviewViewModelTitle",style:function(){return X()}},_.v(_.Wh,{text:function(){var I;
return(I=t())==null?void 0:I.headerText}})),_.v(_.S,{cond:l,
then:function(){return _.v("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.v("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return H()}},_.v(_.V$,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.v("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return H()}},_.v(_.Wh,{text:function(){var I;
return(I=t())==null?void 0:I.headerSubtext}})))}})),_.v("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.v(_.E2,{data:function(){var I;
return(I=t())==null?void 0:I.thumbnail}},{thumbnailViewModel:function(I){return _.v(_.DA,{data:I.data,
aspectRatio:0,playbackRef:aNA(w)})}})),_.v(_.S,{cond:function(){var I,C,u,P;
return((I=t())==null?void 0:(C=I.listItems)==null?void 0:C.length)!==void 0&&((u=t())==null?void 0:(P=u.listItems)==null?void 0:P.length)>0?!0:!1},
then:function(){return _.v("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:O},_.v(_.u6,{each:function(){var I;return(I=t())==null?void 0:I.listItems}},function(I,C){return _.v(JUE,{image:I.image,
index:C,isSelected:function(){return C()===M()},
onClick:e,itemWidth:E})}))}}),_.v("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.v("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return X()}},_.v(_.Wh,{text:function(){var I,C,u,P,F,J,U;
return(U=(I=t())==null?void 0:(C=I.listItems)==null?void 0:(u=C[M()])==null?void 0:u.headline)!=null?U:(P=t())==null?void 0:(F=P.listItems)==null?void 0:(J=F[0])==null?void 0:J.headline}})),_.v("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return H()}},_.v(_.Wh,{text:function(){var I,C,u,P,F,J,U;
return(U=(I=t())==null?void 0:(C=I.listItems)==null?void 0:(u=C[M()])==null?void 0:u.subtext)!=null?U:(P=t())==null?void 0:(F=P.listItems)==null?void 0:(J=F[0])==null?void 0:J.subtext}}))))}}))},"Le");
JUE=_.y(function(G){var e=G.image;var r=G.itemWidth;var Z=G.index;var O=G.isSelected;var M=G.onClick;G=_.ev(function(){Z!==void 0&&M!==void 0&&M(Z());return!1});
var T={};return _.v("div",{class:_.LC("ytGenAiVideoOverviewViewModelCarouselItem",(T.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return O==null?void 0:O()},T)),
style:function(){return"width: "+r()+"px;"},
"on:click":G},_.v(_.nC,{data:e,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.v(_.S,{cond:function(){return O==null?void 0:O()},
then:function(){return _.v("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.v("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Me");
_.BVE.idomCompat=!0;_.J_(_.BVE,"yt-video-overview-view-model",{props:{data:_.N6}});_.x7P=_.y(function(G){var e=G.data;var r=G.topbarOffset;var Z,O=((Z=_.v_().resolve(_.bq(_.Ig)))==null?void 0:Z())||!1;return _.v("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var M=e();var T,E,b=O?(T=M.config)==null?void 0:T.darkThemeBackgroundColor:(E=M.config)==null?void 0:E.lightThemeBackgroundColor;M=b?_.RB(b):void 0;M="background-color: "+M+";";r!==void 0&&(M+="top: -"+r()+"px;");return M},
"aria-hidden":!0},_.v(_.S,{cond:function(){var M,T,E;return!!((M=e().backgroundImageConfig)==null?0:(T=M.image)==null?0:(E=T.sources)==null?0:E.length)},
then:function(){return _.v(_.nC,{data:function(){var M;return(M=e().backgroundImageConfig)==null?void 0:M.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.v("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+w6f(O,e().gradientColorConfig)+";"}}))},"Ne");
_.x7P.idomCompat=!0;var Phv=_.y(function(G){var e=G.data;var r=G.isOverlay;return _.v("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.v("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.v(_.E2,{data:function(){return e().header}},{sectionHeaderViewModel:function(Z){return _.v(_.XA,{data:Z.data,
isOverlay:r})}})),_.v("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.v(_.E2,{data:function(){return e().channelInfoButtons}},{flexibleActionsViewModel:_.FL})),_.v("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.v(_.E2,{data:function(){return e().description}},{descriptionPreviewViewModel:function(Z){return _.v(_.aD,{data:Z.data,
isOverlay:r})}})))},"Oe");
Phv.idomCompat=!0;var U73=_.y(function(G){var e=G.data;var r={};return _.v("factoid-view-model",{class:_.LC("ytwFactoidViewModelHost",(r.ytwFactoidViewModelHostOverlay=G.isOverlay,r))},_.v(_.Wh,{text:function(){return e().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.v(_.Wh,{text:function(){return e().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Pe");
U73.idomCompat=!0;var zAw=_.y(function(G){var e=G.data;var r=G.isOverlay;return _.v("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.v(_.E2,{data:function(){return e().factoids}},{factoidViewModel:function(Z){return _.v(U73,{data:Z.data,
isOverlay:r})}}))},"Qe");
zAw.idomCompat=!0;_.Web=_.y(function(G){var e=G.data;var r=G.isOverlay;return _.v("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.v(_.E2,{data:function(){return e().items}},{channelInfoViewModel:function(Z){return _.v("div",{class:"ytwCourseMetadataViewModelHostItem"},_.v(Phv,{data:Z.data,
isOverlay:r}))},
coursePerksViewModel:function(Z){return _.v("div",{class:"ytwCourseMetadataViewModelHostItem"},_.v(KeW,{data:Z.data,isOverlay:r}))},
descriptionPreviewViewModel:function(Z){return _.v("div",{class:"ytwCourseMetadataViewModelHostItem"},_.v(_.aD,{data:Z.data,isOverlay:r}))},
factoidsRowViewModel:function(Z){return _.v("div",{class:"ytwCourseMetadataViewModelHostItem"},_.v(zAw,{data:Z.data,isOverlay:r}))},
progressViewModel:function(Z){return _.v("div",{class:"ytwCourseMetadataViewModelHostItem"},_.v(fjn,{data:Z.data,isOverlay:r}))}}))},"Re");var NVb=_.y(function(G){return _.v("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.v(_.E2,{data:function(){return G.data().content}},{courseMetadataViewModel:function(e){return _.v(_.Web,{data:e.data,
isOverlay:G.isOverlay})},
progressViewModel:function(e){return _.v(fjn,{data:e.data})}}))},"Se");var LeE=_.y(function(G){var e=G.data;G=G.className;var r=function(){var O;return _.RH((O=e())==null?void 0:O.rendererContext)},Z={};
Z=(Z.dynamicTextViewModelHost=!0,Z.dynamicTextViewModelHostTappable=function(){return r()},Z);
return _.v("yt-dynamic-text-view-model",{el:_.cQ(_.jV(function(){var O;return(O=e())==null?void 0:O.rendererContext})),
role:function(){return r()?"link":void 0},
tabindex:function(){return r()?0:void 0},
class:_.LC(G,Z)},_.v("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var O,M,T;return(T=(M=_.a((O=e())==null?void 0:O.rendererContext,_.D9))==null?void 0:M.label)!=null?T:""}},_.v(_.Wh,{text:function(){return e().text},
userInput:!0})))},"Te");
LeE.idomCompat=!0;_.ND=_.y(function(G){var e=G.data;var r=G.isPositionRelative;var Z=_.SoS("(max-width: 527.9px)"),O=function(){var M,T;return(T=(M=e())==null?void 0:M.style)!=null?T:"IMAGE_BANNER_STYLE_FULL_BLEED"};
G={};return _.v("yt-image-banner-view-model",{el:_.cQ(_.jV(function(){var M;return(M=e())==null?void 0:M.rendererContext})),
class:_.LC((G.ytImageBannerViewModelHost=!0,G.ytImageBannerViewModelInset=function(){return qo4(O())},G.ytImageBannerViewModelPositionAbsolute=function(){return _.FQ(!0)&&!(r==null?0:r())},G.ytImageBannerViewModelSmallInset=function(){return qo4(O())&&Z()},G.ytImageBannerViewModelTappable=function(){var M;
return _.RH((M=e())==null?void 0:M.rendererContext)},G))},_.v(_.S,{cond:function(){var M;
return(M=e())==null?void 0:M.image},
then:function(){return _.v(_.nC,{data:function(){return e().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.v(_.E2,{data:function(){var M;
return(M=e())==null?void 0:M.overlays}},{thumbnailHoverOverlayViewModel:Ym}))},"Ue");
_.ND.idomCompat=!0;var GSV;GSV=_.y(function(G){var e=G.condition;var r=G.content;return _.v(_.S,{cond:e,then:function(){return _.v("div",{class:"yt-page-header-view-model__scroll-container"},r())},
else:function(){return r()}})},"Ve");
_.eaa=_.y(function(G){var e=G.data;var r=G.noPadding;var Z=G.enableBanner;var O=G.cinematicContainerTopbarOffset;var M=G.allowCinematicContainerOverflow;var T=G.displayAsSidebar;var E=G.displayAsPanel;var b=G.alwaysUseMediumTextDescription;var w=tt_(),q=function(){return!!e().image||!!e().animatedImage},t=function(){return!!e().background},g=function(){return(T==null?0:T())||(E==null?0:E())?1:w()},l=function(){return g()===1},X=function(){return l()||g()===2},H=function(){return g()===4},I=function(){var Ry=
e();
var nf=!!e().heroImage;var k4=g(),SE=gRS(e()),Fn=T==null?void 0:T(),kw=!Ry.metadata,Lf;if(Lf=nf?_.a(Ry.heroImage,hvj):_.a(Ry.animatedImage||Ry.image,hvj)){Ry=Lf.style;var vc=Lf.layoutMode;if(vc!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(Lf=LPA(NO4(Lf)),nf)nf=$iF(k4,Ry,vc,Lf,Fn);else b:if(kw)nf=k4===1?{size:48}:{size:72};else switch(k4){case 1:nf={size:72};break b;case 2:nf={size:120};break b;default:nf=SE<4?{size:120}:{size:160}}else nf=void 0}else nf={size:0};return nf};
G={};G=_.LC((G["yt-page-header-view-model"]=!0,G["yt-page-header-view-model--no-padding"]=function(){return!(r==null||!r())},G["yt-page-header-view-model--small-top-padding"]=function(){return l()&&!e().actions&&!(E==null?0:E())||g()===2&&!(q()||e().heroImage)},G["yt-page-header-view-model--small-bottom-padding"]=function(){return X()&&!e().actions&&!(E==null?0:E())},G["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(M==null?0:M())},G["yt-page-header-view-model--display-as-sidebar"]=
T,G));
var C={},u=_.LC((C["yt-page-header-view-model__page-header-headline"]=!0,C["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var Ry;return(Ry=I())==null?void 0:Ry.allowFullWidth},C)),P=function(){var Ry;
return X()&&!((Ry=I())==null?0:Ry.allowFullWidth)},F=function(){return l()&&(!!e().heroImage||q())&&gRS(e())>0},J=function(){return F()&&(E==null?void 0:E())};
C={};var U=_.LC((C["yt-page-header-view-model__page-header-title"]=!0,C["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!F()},C["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return F()&&!J()},C["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=J,C["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=t,C));
C={};var e$=_.LC((C["yt-page-header-view-model__page-header-headline-image"]=!0,C["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!e().heroImage&&X()},C));
C={};var Dq=_.LC((C["yt-page-header-view-model__page-header-banner-container"]=Z,C["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var Ry;return(Z==null?void 0:Z())&&((Ry=_.a(e().banner,_.DmW))==null?void 0:Ry.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},C));
C={};var bF=_.LC((C["yt-page-header-view-model__page-header-content-metadata"]=!0,C["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=t,C));C={};var Kf=_.LC((C["yt-page-header-view-model__page-header-flexible-actions"]=!0,C["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!e().metadata||X()},C["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!X()},C));
C={};var ti=_.LC((C["yt-page-header-view-model__page-header-attribution"]=!0,C["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=t,C));return _.v("yt-page-header-view-model",{class:G},_.v(_.S,{cond:t,then:function(){return _.v("div",{class:"yt-page-header-view-model__page-header-background"},_.v(_.E2,{data:function(){return e().background}},{cinematicContainerViewModel:function(Ry){return _.v(_.x7P,{data:Ry.data,
topbarOffset:O})}}))}}),_.v(GSV,{condition:function(){return!(T==null||!T())},
content:function(){return _.v("div",{class:"yt-page-header-view-model__page-header-content"},_.v(_.S,{cond:function(){return(Z==null?void 0:Z())&&e().banner},
then:function(){return _.v("div",{class:Dq},_.v(_.E2,{data:function(){return e().banner}},{imageBannerViewModel:_.ND}))}}),_.v("div",{class:u},_.v(_.S,{cond:q,
then:function(){return _.v(_.E2,{data:function(){var Ry;if(!(Ry=e().animatedImage)){Ry=e();if(q()){var nf=Ry=Object.assign({},Ry),k4=g(),SE=gRS(e()),Fn=nf.image,kw=_.a(Fn,THb),Lf=kw==null?void 0:kw.avatar,vc=_.a(Lf,_.aH);if(Fn&&Lf&&vc){switch(k4){case 1:vc.avatarImageSize="AVATAR_SIZE_XL";break;case 2:vc.avatarImageSize="AVATAR_SIZE_XXL";break;default:SE<4?vc.avatarImageSize="AVATAR_SIZE_XXL":vc.avatarImageSize="AVATAR_SIZE_XXXL"}_.g2(Lf,_.aH,Object.assign({},vc));kw.avatar=Object.assign({},Lf);_.g2(Fn,
THb,Object.assign({},kw));nf.image=Object.assign({},Fn)}}Ry=Ry.image}return Ry}},{contentPreviewImageViewModel:function(Ry){return _.v(_.wZ,{data:Ry.data,
className:e$,imageSizeConfig:I})},
decoratedAvatarViewModel:function(Ry){return _.v(_.Aq,{data:Ry.data,className:e$})}})}}),_.v(_.S,{cond:function(){return!!e().heroImage&&!P()},
then:function(){return _.v(_.E2,{data:function(){return e().heroImage}},{contentPreviewImageViewModel:function(Ry){return _.v(_.wZ,{data:Ry.data,
className:e$,imageSizeConfig:I})}})}}),_.v("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.v(_.S,{cond:function(){return!!e().heroImage&&P()},
then:function(){return _.v("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.v(_.E2,{data:function(){return e().heroImage}},{contentPreviewImageViewModel:function(Ry){return _.v(_.wZ,{data:Ry.data,
className:e$,imageSizeConfig:I})}}))}}),_.v(_.E2,{data:function(){return e().title}},{dynamicTextViewModel:function(Ry){return _.v(LeE,{data:Ry.data,
className:U})}}),_.v(_.E2,{data:function(){return e().metadata}},{contentMetadataViewModel:function(Ry){return _.v(_.SI,{data:Ry.data,
layout:function(){return l()?1:0},
className:bF,isOverlay:t,useMediumText:H})}}),_.v(_.S,{cond:function(){return e().description&&!l()},
then:function(){return _.v(_.E2,{data:function(){return e().description}},{descriptionPreviewViewModel:function(Ry){return _.v(_.aD,{data:Ry.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:t,maxLinesOverride:function(){return l()?void 0:1},
useMediumText:function(){return(b==null?void 0:b())||H()}})}})}}),_.v(_.S,{cond:function(){return e().attribution&&!X()},
then:function(){return _.v(_.E2,{data:function(){return e().attribution}},{attributionViewModel:function(Ry){return _.v($r,{data:Ry.data,
className:ti,useMediumText:H})}})}}),_.v(_.S,{cond:function(){return e().actions&&!X()},
then:function(){return _.v(_.E2,{data:function(){return e().actions}},{flexibleActionsViewModel:function(Ry){return _.v(_.FL,{data:Ry.data,
layout:function(){return luq(g())},
className:Kf})}})}}))),_.v("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.v(_.S,{cond:function(){return e().description&&l()},
then:function(){return _.v(_.E2,{data:function(){return e().description}},{descriptionPreviewViewModel:function(Ry){return _.v(_.aD,{data:Ry.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:t,maxLinesOverride:function(){return l()?void 0:1},
useMediumText:function(){return(b==null?void 0:b())||H()}})}})}}),_.v(_.S,{cond:function(){return e().attribution&&X()},
then:function(){return _.v(_.E2,{data:function(){return e().attribution}},{attributionViewModel:function(Ry){return _.v($r,{data:Ry.data,
className:ti,useMediumText:H})}})}}),_.v(_.S,{cond:function(){return e().actions&&X()},
then:function(){return _.v(_.E2,{data:function(){return e().actions}},{flexibleActionsViewModel:function(Ry){return _.v(_.FL,{data:Ry.data,
layout:function(){return luq(g())},
className:Kf})}})}})),_.v("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.v(_.E2,{data:function(){return e().bottomMetadataFlexibleContainer}},{flexibleContainer:function(Ry){return _.v(NVb,{data:Ry.data,
isOverlay:t})}})))}}))},"We");
_.eaa.idomCompat=!0;_.J_(_.y(function(G){var e=_.h(_.XQ(!1,void 0,"qvRy4d")),r=e.next().value,Z=e.next().value;return _.v("yt-official-card-view-model",{class:_.LC("ytOfficialCardViewModelHost",G.className),style:_.Mk({"background-color":function(){var O,M=Oz((O=G.data())==null?void 0:O.backgroundColor);return M?_.jF(M):void 0}})},_.v(_.E2,{data:function(){return G.data().header}},{pageHeaderViewModel:function(O){return _.v(_.eaa,{data:O.data,
noPadding:!0})}}),_.v(_.E2,{data:function(){return G.data().contents}},{horizontalShelfViewModel:function(O){return _.v(_.WP,{data:O.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.v(_.S,{cond:r,
then:function(){return _.v("div",{class:"ytOfficialCardViewModelExpandedContent"},_.v(_.E2,{data:function(){return G.data().expandedContents}},{horizontalShelfViewModel:function(O){return _.v(_.WP,{data:O.data,
sizing:"MINI"})}}),_.v("div",{class:"ytOfficialCardViewModelCollapseButton"},_.v(_.E2,{data:function(){return G.data().collapseButton}},{buttonViewModel:function(O){return _.v(_.wF,{data:O.data,
onClick:function(){Z(!r())}})}})))},
else:function(){return _.v("div",{class:"ytOfficialCardViewModelExpandButton"},_.v(_.E2,{data:function(){return G.data().expandButton}},{buttonViewModel:function(O){return _.v(_.wF,{data:O.data,
onClick:function(){Z(!r())}})}}))}}))},"Xe"),"yt-official-card-view-model",{props:{data:_.N6,
className:_.N6}});var riA=_.y(function(G){var e,r=(e=_.v_().resolve(_.bq(_.Ig)))==null?void 0:e();return _.v("ytw-search-friction-view-model",{class:_.LC("ytwSearchFrictionViewModelHost",G.className)},_.v("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.v("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.v(_.S,{cond:function(){return r&&G.data().darkThemeImage?G.data().darkThemeImage:G.data().image},
then:function(Z){return _.v(_.nC,{data:Z,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.v(_.E2,{data:function(){return G.data().overflowMenuButton}},{buttonViewModel:function(Z){return _.v(_.wF,{data:Z.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.v(_.Wh,{text:function(){return G.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.v(_.u6,{each:function(){return G.data().bodyText||[]}},function(Z){return _.v(_.Wh,{text:Z,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.v(_.E2,{data:function(){return G.data().actions}},{buttonViewModel:function(Z){return _.v(_.wF,{data:Z.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.v(_.Wh,{text:function(){return G.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.v(_.Wh,{text:function(){return G.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"Ye");
riA.idomCompat=!0;_.J_(riA,"ytw-search-friction-view-model",{props:{data:_.N6,className:_.N6}});_.LI=_.y(function(G){var e=_.hT("markdown-div"),r,Z=(r=_.v_().resolve(_.bq(_.Ig)))==null?void 0:r();_.Y8(function(){var O=e.value;var M=new NPw,T=new Map(M.JSC$9307_sanitizerTable.globalAttributePolicies);T.set("style",{policyAction:4});M.JSC$9307_sanitizerTable=new Ri(M.JSC$9307_sanitizerTable.allowedElements,M.JSC$9307_sanitizerTable.elementPolicies,M.JSC$9307_sanitizerTable.allowedGlobalAttributes,T,M.JSC$9307_sanitizerTable.globallyAllowedAttributePrefixes);var E=["data-time"];if(E===void 0)T=
new Set(M.JSC$9307_sanitizerTable.globallyAllowedAttributePrefixes),T.add("data-"),M.JSC$9307_sanitizerTable=new Ri(M.JSC$9307_sanitizerTable.allowedElements,M.JSC$9307_sanitizerTable.elementPolicies,M.JSC$9307_sanitizerTable.allowedGlobalAttributes,M.JSC$9307_sanitizerTable.globalAttributePolicies,T);else{T=new Set(M.JSC$9307_sanitizerTable.allowedGlobalAttributes);E=_.h(E);for(var b=E.next();!b.done;b=E.next()){b=b.value;if(b.indexOf("data-")!==0)throw Error("ka`"+b);T.add(b)}M.JSC$9307_sanitizerTable=
new Ri(M.JSC$9307_sanitizerTable.allowedElements,M.JSC$9307_sanitizerTable.elementPolicies,T,M.JSC$9307_sanitizerTable.globalAttributePolicies,M.JSC$9307_sanitizerTable.globallyAllowedAttributePrefixes)}T=new Set(M.JSC$9307_sanitizerTable.allowedGlobalAttributes);T.add("class");M.JSC$9307_sanitizerTable=new Ri(M.JSC$9307_sanitizerTable.allowedElements,M.JSC$9307_sanitizerTable.elementPolicies,T,M.JSC$9307_sanitizerTable.globalAttributePolicies,M.JSC$9307_sanitizerTable.globallyAllowedAttributePrefixes);
_.Te(O,_.xgc(M.build(),jSA(G.text())));au$(e.value)},"OZ439c");
r={};return _.v("div",null,_.v("markdown-div",{class:_.LC("ytwMarkdownDivHost",(r.ytwMarkdownDivDark=Z,r.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var O;return((O=G.isSmallText)==null?void 0:O.call(G))||!1},r.ytwMarkdownDivHostWrapCodeBlocks=function(){var O;
return((O=G.wrapCodeBlocks)==null?void 0:O.call(G))||!1},r.ytwMarkdownDivHostEnableDefaultStyling=function(){var O;
return!((O=G.disableDefaultStyling)==null?0:O.call(G))},r)),
el:e}))},"$e");
_.LI.idomCompat=!0;var ZfV=_.y(function(G){var e=G.imageData;var r=_.mr(G.isInList,!1),Z=function(){return r()?{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 _.v("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.v(_.S,{cond:function(){return e().image},
then:function(O){return _.v(_.nC,{data:O,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}})}}),_.v("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.v("div",{class:_.LC("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.v(_.Wh,{text:function(){return e().title}})),_.v(_.u6,{each:function(){var O;
return(O=e().description)!=null?O:[]}},function(O){return _.v("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.v(Gu,{content:O}))})))},"af"),Ofd=_.y(function(G){var e=G.list;
var r=function(){var Z;return(Z=e().items)!=null?Z:[]};
return _.v("div",{class:"ytwGenAiRichTextViewModelListContent"},_.v(_.S,{cond:function(){return e().title},
then:function(Z){return _.v("div",{class:_.LC("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.v(_.Wh,{text:Z}))}}),_.v(_.S,{cond:function(){return e().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.v("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.v(_.u6,{each:r},function(Z){return _.v("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.v(Gu,{content:Z,isInList:!0}))}))}}),_.v(_.S,{cond:function(){return e().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.v("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.v(_.u6,{each:r},function(Z){return _.v("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.v(Gu,{content:Z,isInList:!0}))}))}}),_.v(_.S,{cond:function(){return e().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.v("div",{class:"ytwGenAiRichTextViewModelImageList"},_.v(_.u6,{each:r},function(Z){return _.v("div",{class:"ytwGenAiRichTextViewModelListItem"},_.v(Gu,{content:Z,isInList:!0}))}))}}))},"bf"),M$Y=_.y(function(G){var e=G.table;
return _.v("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.v("thead",null,_.v("tr",null,_.v(_.u6,{each:function(){var r,Z;return(Z=(r=e().header)==null?void 0:r.cells)!=null?Z:[]}},function(r){return _.v("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.v(_.u6,{each:function(){return r.contents}},function(Z){return _.v(Gu,{content:Z})}))}))),_.v("tbody",null,_.v(_.u6,{each:function(){var r;
return(r=e().rows)!=null?r:[]}},function(r){return _.v("tr",null,_.v(_.u6,{each:function(){return r.cells}},function(Z){return _.v("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.v(_.u6,{each:function(){return Z.contents}},function(O){return _.v(Gu,{content:O})}))}))})))},"cf"),Gu=_.y(function(G){var e=G.content;
var r=_.mr(G.isInList,!1),Z=function(){var O,M;return(M=(O=e().contentBlock)==null?void 0:O.contents)!=null?M:[]};
return _.v("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.v(_.S,{cond:function(){return e().text},
then:function(O){return _.v(_.Wh,{className:"ytwGenAiRichTextViewModelText",text:O})}}),_.v(_.S,{cond:function(){return e().image},
then:function(O){return _.v(ZfV,{imageData:O,isInList:r})}}),_.v(_.S,{cond:function(){return e().list},
then:function(O){return _.v(Ofd,{list:O})}}),_.v(_.S,{cond:function(){return e().contentBlock},
then:function(){return _.v("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.v(_.u6,{each:Z},function(O){return _.v(Gu,{content:O,isInList:!1})}))}}),_.v(_.S,{cond:function(){return e().table},
then:function(O){return _.v(M$Y,{table:O})}}))},"df"),V$W=_.y(function(G){var e={};
e=_.qo("ytwGenAiRichTextViewModelHost",(e.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.td("search_overview_link_style")),e));return _.v("gen-ai-rich-text-view-model",{class:e},_.v(Gu,{content:function(){return G.data().content}}))},"ef");_.haV=_.y(function(G){var e=G.data;var r=function(){var H;return((H=e().loadingUi)!=null?H:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},Z=function(){return e().isLoading&&(r()==="UNSPECIFIED"||r()==="GHOST_CARD")},O=function(){return!e().isLoading},M=function(){return!!e().content&&!e().contents},T=function(){return!!e().contents},E=function(){return!!e().nextQueryButtons},b=function(){return e().isLoading&&r()==="INVISIBLE"},w=function(){var H,I;
return(I=(H=e().headerIcon)==null?void 0:H.iconType)!=null?I:""},q=function(){var H;
return(H=e().content)!=null?H:""},t=function(){return!!e().sourcesSection},g,l=!((g=_.v_().resolve(_.bq(_.Ig)))==null||!g()),X=_.dw(function(){var H=[],I=e().contents;
if(I)for(var C=0;C<I.length;C++){var u=_.a(I&&I[C],wb3);u&&H.push(u)}return H},void 0,"gcCsZb");
_.yY(function(){e().isLoading||_.jq("so_re",void 0,"search_overview_answer")});
return _.v("ytd-overview-answer-view-model",{class:function(){var H={};H=(H.ytdOverviewAnswerViewModelHost=!0,H.ytdOverviewAnswerViewModelDarkBackground=l&&!b(),H.ytdOverviewAnswerViewModelLightBackground=!l&&!b(),H);return _.qo(H)}},_.v(_.S,{cond:function(){return!b()},
then:function(){return _.v(_.$Z,null,_.v("h2",null,_.v("div",{class:"ytdOverviewAnswerViewModelHeader"},_.v(_.S,{cond:w,then:function(H){return _.v("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.v(_.V$,{icon:H}))}}),_.v("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.v("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return e().headerText}),_.v("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.v(_.Wh,{text:function(){return e().headerSubtext}}))))),_.v(_.S,{cond:Z,
then:function(){return _.v(X6a,null)}}),_.v(_.S,{cond:O,
then:function(){return _.v(_.$Z,null,_.v(_.S,{cond:M,then:function(){return _.v("div",{class:"ytdOverviewAnswerViewModelText"},_.v(_.LI,{text:q,isSmallText:!0}))}}),_.v(_.S,{cond:T,
then:function(){return _.v("div",{class:"ytdOverviewAnswerViewModelRichText"},_.v(_.u6,{each:X},function(H){return _.v(V$W,{data:H})}))}}),_.v(_.S,{cond:E,
then:function(){return _.v("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.v(_.E2,{data:function(){return e().nextQueryButtons}},{buttonViewModel:function(H){return _.v(_.wF,{data:H.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.WP}))}}),_.v("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.v("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.v(_.S,{cond:function(){return!!_.a(e().likeButtonViewModel,_.FG)&&!!_.a(e().dislikeButtonViewModel,_.AO)},
then:function(){return _.v("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.v(_.BZ,{data:function(){return _.a(e().likeButtonViewModel,_.FG)},
disableIconAnimation:!0}),_.v(_.Jv,{data:function(){return _.a(e().dislikeButtonViewModel,_.AO)}}))}})),_.v(_.S,{cond:function(){var H;
return(H=e().sourcesSection)==null?void 0:H.headerText},
then:function(H){return _.v("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.v(_.Wh,{text:H}))}})),_.v(_.S,{cond:t,
then:function(){return _.v("div",{class:"ytdOverviewAnswerViewModelSources"},_.v(_.E2,{data:function(){var H;return(H=e().sourcesSection)==null?void 0:H.sourcesShelf}},{buttonViewModel:_.wF,
horizontalShelfViewModel:function(H){return _.v(_.WP,{data:H.data,includeMargin:!0,hasPeek:!0})}}))}}),_.v(_.S,{cond:function(){return e().disclaimerText},
then:function(){return _.v("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.v(_.Wh,{text:function(){return e().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"ff");var Tsd=_.y(function(G){var e=_.cx(G,{}).data;return _.v("yt-shopping-content-line-item-view-model",{class:_.LC("ytShoppingContentLineItemViewModelHost")},_.v(_.Wh,{text:function(){var r;return(r=e().text)==null?void 0:r.attributedString}}))},"gf");_.e2=_.y(function(G){G=_.cx(G,{});var e=G.data,r={};return _.v("yt-shopping-content-line-view-model",{class:_.LC("ytShoppingContentLineViewModelHost",G.className,(r.ytShoppingContentLineViewModelTruncateText=function(){return!e().wrapContent},r)),
style:_.Mk({"--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}})},_.v(_.u6,{each:function(){return(e().items||[]).map(function(Z){return _.a(Z,KFj)}).filter(function(Z){return!!Z})}},function(Z){return _.v(Tsd,{data:Z})}))},"hf");var DU2=_.y(function(G){var e=G.data;var r=function(){var M;return((M=e().image)==null?void 0:M.height)||48},Z=function(){var M;
return((M=e().image)==null?void 0:M.width)||48},O=function(){return"width: "+Z()+"px; height: "+r()+"px;"};
return _.v("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var M,T,E,b=((M=_.v_().resolve(_.bq(_.Ig)))==null?0:M())?(T=e())==null?void 0:T.darkThemeBackgroundColor:(E=e())==null?void 0:E.lightThemeBackgroundColor;return"background-color: "+(b?_.jF(b):"")+";"},
el:_.cQ(_.jV(function(){var M;return(M=e())==null?void 0:M.rendererContext}))},_.v(_.S,{cond:function(){var M,T;
return(T=(M=e().image)==null?void 0:M.image)!=null?T:e().thumbnail},
then:function(M){return _.v("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var T;return"background-color: "+(((T=e().image)==null?0:T.backgroundColor)?_.jF(e().image.backgroundColor):"")+";"+O()}},_.v(_.nC,{data:M,
height:r,width:Z,style:O,alt:""}))}}),_.v("div",{class:"ytShoppingDescriptionItemViewModelText"},_.v(_.E2,{data:function(){return e().line1}},{shoppingContentLineViewModel:function(M){return _.v(_.e2,{data:M.data})}}),_.v(_.E2,{data:function(){return e().line2}},{shoppingContentLineViewModel:function(M){return _.v(_.e2,{data:M.data})}}),_.v(_.E2,{data:function(){return e().line3}},{shoppingContentLineViewModel:function(M){return _.v(_.e2,{data:M.data})}})))},"jf");var E4A=_.y(function(G){var e=G.data;var r=G.active;var Z=_.hT("transcript-segment-view-model");_.Y8(function(){var O,M,T,E=((O=_.v_().resolve(_.bq(_.Ig)))==null?0:O())?(M=e())==null?void 0:M.darkThemeColorPalette:(T=e())==null?void 0:T.lightThemeColorPalette;E&&(E.additiveBackground&&Z.value.style.setProperty("--timestamp-active-background-color",_.jF(E.additiveBackground)),E.textSecondary&&Z.value.style.setProperty("--timestamp-active-color",_.RB(E.textSecondary)))},"TnVCnb");
G={};return _.v("transcript-segment-view-model",{class:_.LC("ytwTranscriptSegmentViewModelHost",(G.ytwTranscriptSegmentViewModelHostActive=r,G.ytwTranscriptSegmentViewModelHostModern=_.R("enable_timeline_view_modern_transcript")||_.R("enable_timeline_view_modern_transcript_fe"),G)),el:Z},_.v(_.S,{cond:function(){var O;return(O=e())==null?void 0:O.timestamp},
then:function(O){var M={};return _.v(_.$Z,null,_.v("div",{class:_.LC("ytwTranscriptSegmentViewModelTimestamp",(M.ytwTranscriptSegmentViewModelTimestampActive=r,M)),"aria-hidden":!0},O),_.v("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var T=O().split(":").map(Number),E=_.h(T.reverse());T=E.next().value;var b=E.next().value;E=E.next().value;return _.his({hours:E,minutes:b,seconds:T})}))}}),_.v(_.Wh,{text:function(){var O,M,T;
return(T=(O=e())==null?void 0:O.attributedText)!=null?T:{content:(M=e())==null?void 0:M.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"lf");var if8=_.y(function(G){var e=G.data;return _.v("div",{class:"videoAttributesSectionViewModelHeader"},_.v("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.v("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return e().headerTitle}),_.v(_.S,{cond:function(){return e().headerInfoButton},
then:function(){return _.v(_.E2,{data:function(){return e().headerInfoButton}},{buttonViewModel:function(r){return _.v(_.wF,{data:r.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.v(_.S,{cond:function(){return e().headerSubtitle},
then:function(){return _.v("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return e().headerSubtitle})}}))},"mf"),bfH=_.y(function(G){function e(H){return Math.max(Math.min(H,0),w()-E())}
var r=G.data;var Z;G=_.hT("div",function(H){var I=function(){q(H.clientWidth)};
I();window.ResizeObserver&&(Z=new ResizeObserver(I),Z.observe(H))});
var O=_.hT("div",function(H){b(H.scrollWidth)}),M=_.h(_.XQ(0,void 0,"C3XQAe")),T=M.next().value;
M=M.next().value;var E=T,b=M;M=_.h(_.XQ(0,void 0,"db7y3"));T=M.next().value;M=M.next().value;var w=T,q=M;T=_.h(_.XQ(0,void 0,"RchC7"));var t=T.next().value,g=T.next().value;_.yD(function(){var H;(H=Z)==null||H.disconnect()});
var l=function(){g(e(t()+w()))},X=function(){g(e(t()-w()))};
return _.v("yt-video-attributes-section-view-model",null,_.v("div",{class:"videoAttributesSectionViewModelHost"},_.v(_.S,{cond:function(){return r().headerTitle},
then:function(){return _.v(if8,{data:r})}}),_.v("div",{class:_.LC("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:G},_.v("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.Mk({transform:function(){var H=t();_.xZ("HTML_DIR")==="rtl"&&(H*=-1);return"translateX("+H+"px)"}}),
el:O},_.v(_.E2,{data:function(){return r().videoAttributeViewModels}},{videoAttributeViewModel:xHE}))),_.v(_.E2,{data:function(){return r().footerButton}},{buttonViewModel:function(H){return _.v(_.wF,{data:H.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.v(_.S,{cond:function(){return t()<0&&r().previousButton},
then:function(){return _.v("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.v(_.E2,{data:function(){return r().previousButton}},{buttonViewModel:function(H){return _.v(_.wF,{data:H.data,
onClick:l})}}))}}),_.v(_.S,{cond:function(){return t()>w()-E()&&r().nextButton},
then:function(){return _.v("div",{class:"videoAttributesSectionViewModelRightArrow"},_.v(_.E2,{data:function(){return r().nextButton}},{buttonViewModel:function(H){return _.v(_.wF,{data:H.data,
onClick:X})}}))}})))},"nf");
bfH.idomCompat=!0;var v4H=_.y(function(G){var e=G.data;var r=G.active;var Z={},O={};return _.v("timeline-item-view-model",{class:_.LC("ytwTimelineItemViewModelHost",(Z.ytwTimelineItemViewModelHostChapterChild=G.chapterChild,Z.ytwTimelineItemViewModelModern=_.R("enable_timeline_view_modern_transcript")||_.R("enable_timeline_view_modern_transcript_fe"),Z))},_.v("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.v("div",{class:_.LC("ytwTimelineItemViewModelTimestamp",(O.ytwTimelineItemViewModelTimestampActive=
r,O))},function(){return e().timestamp})),_.v("div",{class:"ytwTimelineItemViewModelContentItems"},_.v(_.E2,{data:function(){return e().contentItems}},{transcriptSegmentViewModel:function(M){return _.v(E4A,{data:M.data,
active:r})},
videoAttributesSectionViewModel:bfH})))},"of");var wAB=_.y(function(G){var e=G.data;G={};return _.v("timeline-chapter-view-model",{class:_.LC("ytwTimelineChapterViewModelHost")},_.v("div",{class:_.LC("ytwTimelineChapterViewModelTitle",(G.ytwTimelineChapterViewModelModern=_.R("enable_timeline_view_modern_transcript")||_.R("enable_timeline_view_modern_transcript_fe"),G))},function(){return e().title}),_.v(_.E2,{data:function(){return e().contents}},{timelineItemViewModel:function(r){return _.v(v4H,{data:r.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(r){return _.v(bfH,{data:r.data})}}))},"pf");var $Um=_.y(function(G){var e=G.data;var r=_.hT("macro-markers-panel-item-view-model"),Z=_.hI(_.qdy,function(){var M;return(M=e().markersEngagementPanelSyncEntityKey)!=null?M:""}),O=function(){var M;
return((M=Z())==null?void 0:M.activeItemIndex)===e().index};
G=_.ev(function(M){var T,E,b,w,q;return _.D(function(t){if(t.nextAddress==1)return M.stopPropagation(),_.g8(_.tI(M),r.value,["A".toString(),"BUTTON".toString()])?t.return():(T=_.X0(e().onTap))?t.yield(_.G_(),2):t.return();E=t.yieldResult;w=(b=_.a(T,_.u4))==null?void 0:b.startTimeSeconds;w===void 0||(q=E)!=null&&q.seekTo(w,!0);_.HL(t)})});
return _.v("macro-markers-panel-item-view-model",{class:_.LC("ytwMacroMarkersPanelItemViewModelHost",{"is-active":O}),el:r,"on:click":G,tabindex:0,role:"button"},_.v(_.E2,{data:function(){var M;return(M=e())==null?void 0:M.item}},{timelineChapterViewModel:function(M){return _.v(wAB,{data:M.data,
active:O})},
timelineItemViewModel:function(M){return _.v(v4H,{data:M.data,active:O})},
videoAttributeViewModel:xHE,shoppingDescriptionItemViewModel:DU2}))},"qf");
$Um.idomCompat=!0;_.J_($Um,"macro-markers-panel-item-view-model",{props:{data:_.N6}});_.J_(bfH,"yt-video-attributes-section-view-model",{props:{data:_.N6}});var S_Y=_.y(function(G){var e=function(){var r,Z,O;return(O=(r=G.data().leadingLogoAccessibility)==null?void 0:(Z=r.accessibilityData)==null?void 0:Z.label)!=null?O:""};
return _.v("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.v(_.S,{cond:function(){return G.data().leadingLogo},
then:function(r){return _.v(_.nC,{className:"ytwFantasySectionHeaderViewModelLogo",data:r,alt:e})}}),_.v("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.v(_.Wh,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return G.data().title}}),_.v(_.Wh,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return G.data().subtitle}})),_.v(_.E2,{data:function(){return G.data().trailingButton}},{buttonViewModel:function(r){return _.v(_.wF,{data:r.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"rf");var q_C=_.y(function(G){var e={};e=_.LC("ytwFantasyTeamViewModelHost",(e.ytwFantasyTeamViewModelCompact=function(){var O;return!((O=G.compact)==null||!O.call(G))},e.ytwFantasyTeamViewModelUser=function(){return G.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},e.ytwFantasyTeamViewModelOpponent=function(){return G.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},e));
var r=function(){var O,M,T;return(T=(O=G.data().teamLogoAccessibility)==null?void 0:(M=O.accessibilityData)==null?void 0:M.label)!=null?T:""},Z=_.hI(gGs,function(){return G.data().teamEntityKey});
return _.v("ytw-fantasy-team-view-model",{class:e},_.v(_.S,{cond:function(){return G.data().teamLogo},
then:function(O){return _.v(_.nC,{className:"ytwFantasyTeamViewModelLogo",data:O,alt:r})}}),_.v("div",{class:"ytwFantasyTeamViewModelMetadata"},_.v("div",{class:"ytwFantasyTeamViewModelHeader"},_.v(_.Wh,{className:"ytwFantasyTeamViewModelScore",
text:function(){var O;return(O=Z())==null?void 0:O.score}}),_.v(_.V$,{icon:function(){var O;
return(O=Z())==null?void 0:O.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.v(_.Wh,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var O;return(O=Z())==null?void 0:O.projectedScore}})),_.v(_.Wh,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return G.data().primaryText}}),_.v(_.Wh,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return G.data().secondaryText}}),_.v(_.Wh,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return G.data().tertiaryText}})),_.v(_.Wh,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var O;return(O=Z())==null?void 0:O.score}}))},"sf");_.J_(_.y(function(G){return _.v("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.v("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.v(_.E2,{data:function(){return G.data().summaryHeader}},{fantasySectionHeaderViewModel:S_Y})),_.v(_.E2,{data:function(){return G.data().userTeam}},{fantasyTeamViewModel:q_C}),_.v(_.E2,{data:function(){return G.data().opponentTeam}},{fantasyTeamViewModel:q_C}))},"tf"),"fantasy-league-summary-view-model",{props:{data:_.N6}});var t$A=_.y(function(G){var e=_.cx(G,{shape:{},useCustomTabRenderable:!1}),r=e.shape;e=e.useCustomTabRenderable;var Z=G.customTabRenderable,O=function(){return r().disabled},M=function(){return r().selected},T=function(){return r().title},E=function(){return r().icon},b=_.hT("yt-tab-shape");
G=_.ev(function(t){var g;if(!O()&&((g=r().aTagConfig)==null?0:g.onclick))r().aTagConfig.onclick(t);return!1});
var w=_.ev(function(t){if(t.key==="Enter"||t.key==="ArrowUp"||t.key==="ArrowDown")t.preventDefault(),b.value.click();return!1}),q={};
return _.v("yt-tab-shape",{class:_.LC("yt-tab-shape",function(){return r().className},(q["yt-tab-shape__tab--last-tab"]=function(){return r().isLastTab},q["yt-tab-shape--host-disabled"]=O,q["yt-tab-shape--host-clickable"]=!Z,q)),
role:Z?void 0:"tab","aria-selected":M!=null?M:!1,"aria-disabled":O,tabindex:Z?void 0:0,"on:click":G,"on:keydown":w,el:b,"tab-identifier":function(){return r().identifier},
"tab-title":T},_.v(_.S,{cond:e,then:function(){return Z()},
else:function(){var t={},g={};return _.v(_.$Z,null,_.v("div",{class:_.LC("yt-tab-shape__tab",(t["yt-tab-shape__tab--tab-selected"]=M,t))},_.v(_.S,{cond:E,then:function(l){return _.v(_.V$,{className:"yt-tab-shape__tab-icon",icon:function(){return l().iconType}})}}),T),_.v("div",{class:_.LC("yt-tab-shape__tab-bar",(g["yt-tab-shape__tab-bar--tab-bar-selected"]=M,g))}))}}))},"uf");
t$A.idomCompat={callbacks:{customTabRenderable:!0}};_.lqd=_.y(function(G){var e=G.shape;G=_.h(_.XQ(48,void 0,"nDAx4"));var r=G.next().value,Z=G.next().value;G=_.h(_.XQ(0,void 0,"GCgjqb"));var O=G.next().value,M=G.next().value,T=function(){return e().tabs},E=_.hT("yt-tab-group-shape"),b=function(){var g,l;
return(l=(g=T())==null?void 0:g.findIndex(function(X){return X.selected}))!=null?l:-1};
G=_.h(_.XQ(!1,void 0,"SU01tf"));var w=G.next().value,q=G.next().value,t=function(){w()||_.A0.addJob(function(){q(!0)},0)};
_.Y8(function(){var g=b(),l=_.A0.addJob(function(){var X,H=((X=E.value)==null?void 0:X.querySelectorAll("yt-tab-shape"))||[],I;Z(((I=g>-1?H[g]:void 0)==null?void 0:I.getBoundingClientRect().width)||0);for(I=X=0;I<g;I++)X+=H[I].offsetWidth+24;_.xZ("HTML_DIR")==="rtl"&&(X=-X);M(X);t()},8,0);
_.yD(function(){_.A0.cancelJob(l)})},"PMwgb");
G={};return _.v("yt-tab-group-shape",{class:_.LC("tabGroupShapeHost",(G.tabGroupShapeOverflowHidden=function(){return e().isOverflowHidden},G)),
el:E},_.v(_.S,{cond:T,then:function(g){return _.v(_.$Z,null,_.v("div",{class:"tabGroupShapeTabs",role:"tablist"},_.v(_.u6,{each:g},function(l,X){return _.v(t$A,{shape:function(){return Object.assign({},l,{isLastTab:X()===g().length-1})},
customTabRenderable:l.customTabRenderable,useCustomTabRenderable:!!l.customTabRenderable})})),_.v(g4W,{width:r,
sliderOffset:O,enableTransition:w}))}}))},"wf");
_.lqd.idomCompat=!0;var g4W=_.y(function(G){var e=_.mr(G.sliderOffset,0),r=G.width,Z=G.enableTransition;G={};return _.v("div",{class:_.LC("tabGroupShapeSlider",(G.tabGroupShapeSliderTransition=function(){return Z()},G)),
style:_.Mk({width:function(){return r()+"px"},
transform:function(){return"translateX("+e()+"px)"}})})},"xf");var Ra8=_.y(function(G){var e=function(){var M,T,E;return(E=(M=G.data().playerLogoAccessibility)==null?void 0:(T=M.accessibilityData)==null?void 0:T.label)!=null?E:""},r=_.hI(leS,function(){return G.data().playerEntityKey}),Z={};
Z=_.LC("ytwFantasyPlayerViewModelHost",(Z.ytwFantasyPlayerViewModelPlaying=function(){var M;return!((M=r())==null||!M.isPlayerPlaying)},Z.ytwFantasyPlayerViewModelOnField=function(){var M;
return((M=r())==null?void 0:M.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},Z.ytwFantasyPlayerViewModelRedZone=function(){var M;
return((M=r())==null?void 0:M.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},Z));
var O=function(){var M,T,E,b=((M=_.v_().resolve(_.bq(_.Ig)))==null?0:M())?(T=G.data().playerLogoBackgroundColor)==null?void 0:T.darkTheme:(E=G.data().playerLogoBackgroundColor)==null?void 0:E.lightTheme;return b===void 0?"":_.jF(b)};
return _.v("ytw-fantasy-player-view-model",{class:Z},_.v(_.S,{cond:function(){return G.data().playerLogo},
then:function(M){return _.v("div",{class:"ytwFantasyPlayerViewModelLogo"},_.v("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.v(_.nC,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.Mk({"background-color":O}),data:M,alt:e})),_.v("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.v(_.V$,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.v("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.v("div",{class:"ytwFantasyPlayerViewModelHeader"},_.v(_.Wh,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var M;return(M=G.data())==null?void 0:M.playerNameText}}),_.v(_.Wh,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var M;return(M=G.data())==null?void 0:M.playerDescriptionText}})),_.v("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.v(_.Wh,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var M;return(M=r())==null?void 0:M.gamePeriodText}}),_.v(_.Wh,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var M;return(M=G.data())==null?void 0:M.opponentTeamText}}),_.v(_.Wh,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var M;return(M=r())==null?void 0:M.gameStatusText}}),_.v(_.Wh,{className:_.LC("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var M;return(M=r())==null?void 0:M.playerStatusText}})),_.v("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.v(_.Wh,{text:function(){var M;
return(M=r())==null?void 0:M.playerStatsText}}))),_.v(_.Wh,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var M;return(M=r())==null?void 0:M.fantasyScore}}))},"yf");var jyA=_.y(function(G){return _.v("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.v(_.S,{cond:function(){return G.data().players},
then:function(e){return _.v(_.E2,{data:e},{fantasyPlayerViewModel:Ra8})}}))},"zf");var aqC=_.y(function(G){var e=_.h(_.Ob(function(){var O;return(O=G.data().selectedTabIdentifierKey)!=null?O:""})),r=e.next().value,Z=e.next().value;
_.YZ(function(){var O;(O=G.setSelectedTabSignal)==null||O.call(G,r)});
return _.v("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.v("div",{class:"ytTabbedViewModelTabGroup"},_.v(_.lqd,{shape:function(){var O=G.data(),M=[],T={tabs:M};if(!O.tabs)return T;O=_.h(O.tabs);for(var E=O.next(),b={};!E.done;b={tabViewModel:void 0},E=O.next())if(b.tabViewModel=_.a(E.value,omE),b.tabViewModel){var w=E=void 0;M.push({aTagConfig:{onclick:function(q){return function(){var t;Z((t=q.tabViewModel.tabIdentifier)!=null?t:"")}}(b)},
identifier:b.tabViewModel.tabIdentifier,selected:r()===b.tabViewModel.tabIdentifier,title:(w=(E=b.tabViewModel.title)==null?void 0:E.content)!=null?w:""})}return T}})),_.v(_.E2,{data:function(){var O,M=_.h((O=G.data().tabs)!=null?O:[]);
for(O=M.next();!O.done;O=M.next())if((O=_.a(O.value,omE))&&O.tabIdentifier===r())return O.content}},{fantasyRosterViewModel:jyA}))},"Bf");_.J_(_.y(function(G){var e=_.h(KJF()),r=e.next().value,Z=e.next().value;return _.v("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.v(_.Wh,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return G.data().title}}),_.v(_.S,{cond:function(){return G.data().tabbedViewModel},
then:function(O){return _.v(_.E2,{data:O},{tabbedViewModel:function(M){return _.v(aqC,{data:M.data,setSelectedTabSignal:Z})}})}}),_.v(_.S,{cond:function(){var O,M=(O=_.a(G.data().tabbedViewModel,sGS))==null?void 0:O.tabs;
O=_.a(M==null?void 0:M[0],omE);M=_.a(M==null?void 0:M[1],omE);var T=O==null?void 0:O.tabIdentifier;if(r()===T){var E,b;if(!((E=_.a(O==null?void 0:O.content,Fiv))==null?0:(b=E.players)==null?0:b.length))return G.data().noUserTeamPlayersText}else{var w,q;if(!((w=_.a(M==null?void 0:M.content,Fiv))==null?0:(q=w.players)==null?0:q.length))return G.data().noOpponentTeamPlayersText}},
then:function(O){return _.v(_.Wh,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:O})}}))},"Cf"),"ytw-fantasy-matchup-view-model",{props:{data:_.N6}});_.J_(_.y(function(G){return _.v("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.v(_.Wh,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return G.data().title}}),_.v(_.S,{cond:function(){return G.data().matchupTeamPairs},
then:function(e){return _.v(_.u6,{each:e,keyBy:"INDEX"},function(r){return _.v("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.v(_.E2,{data:function(){return[r().firstTeam,r().secondTeam]}},{fantasyTeamViewModel:function(Z){return _.v(q_C,{data:Z.data,
compact:!0})}}))})}}))},"Df"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.N6}});_.J_(_.y(function(G){var e=function(){var O,M,T;return(T=(O=G.data().userLogoAccessibility)==null?void 0:(M=O.accessibilityData)==null?void 0:M.label)!=null?T:""},r=function(){var O,M,T;
return(T=(O=G.data().opponentLogoAccessibility)==null?void 0:(M=O.accessibilityData)==null?void 0:M.label)!=null?T:""},Z=_.hI(tYi,function(){return G.data().entityKey});
return _.v("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.v("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.v(_.S,{cond:function(){return G.data().userLogo},
then:function(O){return _.v(_.nC,{className:"ytwFantasyWinProbabilityViewModelLogo",data:O,alt:e})}}),_.v("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.v(_.Wh,{text:function(){return G.data().title}})),_.v(_.S,{cond:function(){return G.data().opponentLogo},
then:function(O){return _.v(_.nC,{className:"ytwFantasyWinProbabilityViewModelLogo",data:O,alt:r})}})),_.v("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.v("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.v(_.Wh,{text:function(){var O;
return(O=Z())==null?void 0:O.userWinNumberLabel}})),_.v("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.v("div",{class:_.LC("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.Mk({flex:function(){var O,M;return(M=(O=Z())==null?void 0:O.userWinNumber)!=null?M:50}})}),_.v("div",{class:_.LC("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.Mk({flex:function(){var O,M;return(M=(O=Z())==null?void 0:O.opponentWinNumber)!=null?M:50}})})),_.v("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.v(_.Wh,{text:function(){var O;
return(O=Z())==null?void 0:O.opponentWinNumberLabel}}))))},"Ef"),"fantasy-win-probability-view-model",{props:{data:_.N6}});var XAm={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},KSl=_.y(function(G){return _.v(_.E2,{data:G.button},{buttonViewModel:function(e){return _.v(_.wF,{data:e.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"Ff"),fqV=_.y(function(G){return _.v("ytd-backstage-locked-post-view-model",{class:_.LC("ytdBackstageLockedPostViewModelHost",G.className)},_.v("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.v("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.v(_.E2,
{data:function(){return G.data().authorAvatar}},{decoratedAvatarViewModel:_.Aq})),_.v("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.v("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.v(_.Wh,{text:function(){return G.data().authorText}})),_.v("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.v(_.Wh,{text:function(){return G.data().publishedTimeText}}),_.v(_.E2,{data:function(){return G.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(e){return _.v(fNw,
{data:e.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.v("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.v(_.Wh,{text:function(){return G.data().contentText}})),_.v(_.nz,null,_.v(_.pz,{when:function(){return G.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.v("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.v(_.nC,{data:XAm,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.v(_.Wh,{text:function(){return G.data().lockedText}}))}),_.v(_.pz,{when:function(){return G.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.v("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.v("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.v(_.nC,{data:XAm,
alt:""})),_.v(_.Wh,{text:function(){return G.data().lockedText}}))})),_.v("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.v(KSl,{button:function(){return G.data().likeButton}}),_.v("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return G.data().voteCountA11y}},_.v(_.Wh,{text:function(){return G.data().voteCount}})),_.v(KSl,{button:function(){return G.data().dislikeButton}}),_.v(KSl,{button:function(){return G.data().commentButton}}),_.v("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return G.data().commentCountA11y}},_.v(_.Wh,{text:function(){return G.data().commentCount}}))))},"Gf");
fqV.idomCompat=!0;_.J_(fqV,"ytd-backstage-locked-post-view-model",{props:{data:_.N6,className:_.N6}});_.te("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var rM=function(){var G=_.m.apply(this,arguments)||this;G.darkerPanels=_.R("web_watch_darker_panels");G.commentsHidePanelButton=!1;G.isWatchGrid=!1;G.continuationShowButton=!1;G.isSearch=!1;G.isConstrainedList=!1;G.isWatch=!1;G.eligibleToSwitchToGrid=!1;G.useBigThumbs=!1;G.notSticky=!1;G.epRestyle=!1;G.isCarouselInFeed=!0;G.topSpacingZero=!1;G.continuationIsInitialLoad=!0;G.enableSqueezebackPanels=_.R("web_shorts_enable_squeezeback_panels");G.enableAnchoredPanel=_.R("desktop_shorts_v2_anchored_panel");
G.mastheadHeight=0;G.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};G.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return G};
_.K(rM,_.m);_.V=rM.prototype;_.V.updateLockupContainerTypes=function(G){if(this.eligibleToSwitchToGrid){var e;(e=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||e.forEach(function(r){r.containerType=G})}};
_.V.getItemsPath=function(){return"data.contents"};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.V.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",
eduCardViewModel:"yt-edu-card-view-model",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",linearLayoutViewModel:"yt-linear-layout-view-model",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:_.R("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.R("kevlar_low_priority_continuation")}}};
_.V.created=function(){};
_.V.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.V.handleIntersect=function(G){this.notSticky=G[0].intersectionRatio===1};
_.V.attached=function(){var G=this,e=_.R("web_item_section_sticky_header_use_scroll_as_fallback");e||document.addEventListener("scroll",_.ZQ(this,this.updateHeaderState));var r;this.mastheadHeight=((r=document.querySelector("ytd-masthead"))==null?void 0:r.clientHeight)||0;this.containerWidth=this.hostElement.clientWidth||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(Z){G.handleIntersect(Z)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):e&&document.addEventListener("scroll",_.ZQ(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){G.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.V.detached=function(){document.removeEventListener("scroll",_.ZQ(this,this.updateHeaderState));var G;(G=this.intersectionObserver)==null||G.disconnect();var e;(e=this.resizeObserver)==null||e.disconnect()};
_.V.updated=function(G){G.has("data")&&this.updateHeaderState()};
_.V.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(NGl(!this.notSticky))};
_.V.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var G=_.z1(this.hostElement).querySelector("ytd-comments-header-renderer");G&&(G.hidePanelButton=this.commentsHidePanelButton)}};
_.V.onRetrieveLocation=function(G,e){this.containsComments()&&(this.firstCommentsLoaded=e.hasComments=!0)};
_.V.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.V.onLoadReloadContinuation=function(G,e){var r=this;G.stopPropagation();this.isReloading=!0;_.xy(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(Z){var O=_.v_().resolve(_.bf);Z=e(Z);O.postData(Z).then(function(M){r.onReloadContinuationData(M)})}})};
_.V.onReloadContinuationData=function(G){if(G=this.get("response.continuationContents.itemSectionContinuation",G)||this.get("response.contents.itemSectionRenderer",G)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",G)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",G))this.set("data.contents",G.contents||G.results),G.header&&this.set("data.header",G.header),this.set("data.continuations",
G.continuations||[]);this.isReloading=!1};
_.V.computeContentsClass=function(G){return G?"reloading":""};
_.V.computeSectionIdentifier=function(G){return G==null?void 0:G.sectionIdentifier};
_.V.computeFitContainer=function(G){return(G==null?void 0:G.sectionIdentifier)==="youchat-item-section"};
_.V.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.R("kevlar_disable_comments_auto_load")};
_.V.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.V.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.V.computeHasDestinationShelfRenderer=function(G){var e,r;return!!(G==null?0:(e=G.contents)==null?0:(r=e[0])==null?0:r.destinationShelfRenderer)};
_.V.computeHasSectionGroupViewModel=function(G){var e,r;return!!(G==null?0:(e=G.contents)==null?0:(r=e[0])==null?0:r.sectionGroupViewModel)};
_.V.computeHasQrCodeRenderer=function(G){var e,r;return!!(G==null?0:(e=G.contents)==null?0:(r=e[0])==null?0:r.qrCodeRenderer)};
_.V.computeStaticCommentsHeader=function(G){return G&&this.containsComments()};
_.V.computeEpRestyle=function(G){return _.R("web_ep_restyling")&&G&&this.containsComments()};
_.V.computeIsContinuationCommentSection=function(G){return(G==null?void 0:G.targetId)==="shorts-engagement-panel-comments-section"||(G==null?void 0:G.targetId)==="comments-section"||(G==null?void 0:G.targetId)==="engagement-panel-comments-section"};
_.V.computeSuppressPaddingDisclaimer=function(){var G,e,r,Z;return!!((G=this.data)==null?0:(e=G.contents)==null?0:(r=e[0])==null?0:(Z=r.productListHeaderRenderer)==null?0:Z.suppressPaddingDisclaimer)};
_.V.computeHeaderStyle=function(G){switch(G==null?void 0:G.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.V.dataChanged=function(){this.firstCommentsLoaded=!1};
_.V.observeDataContentsLength=function(){var G,e;((G=this.data)==null?0:(e=G.contents)==null?0:e.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.V.onYtDismissibleItemDismissedChange=function(G){this._setItemDismissed(G.type==="yt-dismissible-item-dismissed")};
_.V.triggerContinuations=function(){for(var G=_.z1(this.hostElement).querySelector("#continuations").children,e=0;e<G.length;e++)G[e].trigger()};
_.V.triggerInitialContinuations=function(){for(var G=_.z1(this.hostElement).querySelector("#continuations").children,e=0;e<G.length;e++)G[e].triggerIfNotPreviouslyTriggered()};
_.V.handleYtItemSectionContinuation=function(G,e){var r;e&&((r=this.data)==null?void 0:r.sectionIdentifier)!==e||(this.set("data.continuations",[G]),this.triggerContinuations())};
_.V.handleYtItemSectionReplace=function(G,e){var r;e&&((r=this.data)==null?void 0:r.sectionIdentifier)!==e||(this.set("data.contents",G),this.set("data.continuations",[]))};
_.V.computeUseHeightHack=function(G){return G&&!_.R("kevlar_disable_height_hack")};
_.V.computeTopSpacingZero=function(G){return G};
_.V.continuationShowButtonChanged=function(){var G=_.z1(this.hostElement).querySelector("ytd-continuation-item-renderer");G&&(G.showButton=this.continuationShowButton)};
_.V.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eG("data-changed",this.data))};
_.iY.Object.defineProperties(rM.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.R("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.useBigThumbs?"STANDARD":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 G;return!((G=this.data)==null||!G.header)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.R("web_fix_sticky_playlist_header")}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return!!((G=this.data)==null?0:(e=G.contents)==null?0:(r=e[0])==null?0:r.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var G,e,r,Z,O,M,T;return!!((G=this.data)==null?0:(e=G.contents)==null?0:(r=e[0])==null?0:(Z=r.shelfRenderer)==null?0:(O=Z.content)==null?0:(M=O.gridRenderer)==null?0:(T=M.targetId)==null?0:T.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return!!((G=this.data)==null?0:(e=G.contents)==null?0:(r=e[0])==null?0:r.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return!!((G=this.data)==null?0:(e=G.contents)==null?0:(r=e[0])==null?0:r.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.td("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.R("use_modern_typography_on_search")};if(this.isWatch)return{useInlineContentMetadata:this.useBigThumbs}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.R("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
rM.prototype.dataChangedForBinding=rM.prototype.dataChangedForBinding;rM.prototype.continuationShowButtonChanged=rM.prototype.continuationShowButtonChanged;rM.prototype.onYtDismissibleItemDismissedChange=rM.prototype.onYtDismissibleItemDismissedChange;rM.prototype.observeDataContentsLength=rM.prototype.observeDataContentsLength;rM.prototype.dataChanged=rM.prototype.dataChanged;rM.prototype.onServiceRequestCompleted=rM.prototype.onServiceRequestCompleted;rM.prototype.onLoadReloadContinuation=rM.prototype.onLoadReloadContinuation;
rM.prototype.onRetrieveLocation=rM.prototype.onRetrieveLocation;rM.prototype.commentsHidePanelButtonChanged=rM.prototype.commentsHidePanelButtonChanged;rM.prototype.dispatchChipBarIsSticky=rM.prototype.dispatchChipBarIsSticky;rM.prototype.updateLockupContainerTypes=rM.prototype.updateLockupContainerTypes;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],rM.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],rM.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],rM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.Dr.YtLazyListBehavior),_.x("design:type",Object)],rM.prototype,"ytLazyListBehavior",void 0);_.B([_.k(_.r5.YtNextContinuationBehavior),_.x("design:type",Object)],rM.prototype,"ytNextContinuationBehavior",void 0);
_.B([_.k(_.eP),_.x("design:type",Object)],rM.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],rM.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],rM.prototype,"ytdReduxBehavior",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],rM.prototype,"darkerPanels",void 0);_.B([_.n(),_.x("design:type",Object)],rM.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",Boolean)],rM.prototype,"engagementPanel",void 0);_.B([_.n(),_.x("design:type",Object)],rM.prototype,"commentsHidePanelButton",void 0);_.B([_.n(),_.x("design:type",Object)],rM.prototype,"isWatchGrid",void 0);_.B([_.n(),_.x("design:type",Object)],rM.prototype,"continuationShowButton",void 0);_.B([_.n({computed:"computeIsContinuationCommentSection(data)"}),_.x("design:type",Boolean)],rM.prototype,"continuationIsCommentsSection",void 0);
_.B([_.n({value:!0}),_.x("design:type",Boolean)],rM.prototype,"autoFill",void 0);_.B([_.n(),_.x("design:type",Boolean)],rM.prototype,"continuationDisablePrescanVisibility",void 0);_.B([_.n(),_.x("design:type",Boolean)],rM.prototype,"isReloading",void 0);_.B([_.n(),_.x("design:type",Object)],rM.prototype,"isSearch",void 0);_.B([_.n(),_.x("design:type",Object)],rM.prototype,"isConstrainedList",void 0);_.B([_.n(),_.x("design:type",Object)],rM.prototype,"isWatch",void 0);
_.B([_.n(),_.x("design:type",Object)],rM.prototype,"eligibleToSwitchToGrid",void 0);_.B([_.n(),_.x("design:type",Object)],rM.prototype,"useBigThumbs",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],rM.prototype,"notSticky",void 0);_.B([_.n({selector:_.Xf,reflectToAttribute:!0}),_.x("design:type",Object)],rM.prototype,"isGridViewEnabled",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.x("design:type",Object)],rM.prototype,"epRestyle",void 0);_.B([_.d("isWatch"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rM.prototype,"hideShortsShelfHeader",null);_.B([_.d("isSearch","isWatch"),_.x("design:type",String),_.x("design:paramtypes",[])],rM.prototype,"thumbnailWidth",null);
_.B([_.d("isSearch","containerWidth"),_.x("design:type",Object),_.x("design:paramtypes",[])],rM.prototype,"thumbnailTargetWidth",null);_.B([_.d("isSearch","isWatch","useBigThumbs"),_.x("design:type",String),_.x("design:paramtypes",[])],rM.prototype,"sizing",null);_.B([_.d("isWatch","isGridViewEnabled","useBigThumbs","data"),_.n({reflectToAttribute:!0}),_.x("design:type",Number),_.x("design:paramtypes",[])],rM.prototype,"lockupContainerType",null);
_.B([_.d("data"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rM.prototype,"hasHeader",null);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rM.prototype,"expFixPlaylistHeader",null);_.B([_.Me("lockupContainerType","data"),_.x("design:type",Function),_.x("design:paramtypes",[Number]),_.x("design:returntype")],rM.prototype,"updateLockupContainerTypes",null);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],rM.prototype,"pageSubtype",void 0);_.B([_.n(),_.x("design:type",Number)],rM.prototype,"containerWidth",void 0);_.B([_.n(),_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rM.prototype,"isPlaylist",null);_.B([_.n(),_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rM.prototype,"isClipList",null);_.B([_.n(),_.x("design:type",Object)],rM.prototype,"isCarouselInFeed",void 0);
_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rM.prototype,"isPlaylistVideoContainer",null);_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rM.prototype,"isSearchFrictionPage",null);_.B([_.n({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.x("design:type",Boolean)],rM.prototype,"useHeightHack",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.x("design:type",Object)],rM.prototype,"topSpacingZero",void 0);_.B([_.n({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.x("design:type",Boolean)],rM.prototype,"showButton",void 0);_.B([_.n(),_.x("design:type",Boolean)],rM.prototype,"firstCommentsLoaded",void 0);_.B([_.n(),_.x("design:type",Object)],rM.prototype,"continuationIsInitialLoad",void 0);
_.B([_.n({reflectToAttribute:!0,readOnly:!0}),_.x("design:type",Boolean)],rM.prototype,"itemDismissed",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.x("design:type",String)],rM.prototype,"sectionIdentifier",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.x("design:type",String)],rM.prototype,"fitContainer",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.x("design:type",Boolean)],rM.prototype,"hasDestinationShelfRenderer",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.x("design:type",Boolean)],rM.prototype,"staticCommentsHeader",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],rM.prototype,"enableSqueezebackPanels",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],rM.prototype,"enableAnchoredPanel",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.x("design:type",Boolean)],rM.prototype,"hasSectionGroupViewModel",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.x("design:type",Boolean)],rM.prototype,"hasQrCodeRenderer",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.x("design:type",Boolean)],rM.prototype,"suppressDisclaimerSeparator",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.x("design:type",String)],rM.prototype,"headerStyle",void 0);_.B([_.d("isSearch","isWatch","useBigThumbs"),_.x("design:type",Object),_.x("design:paramtypes",[])],rM.prototype,"lockupExperiments",null);
_.B([_.d("isSearch"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rM.prototype,"typographyBump",null);_.B([_.hs("#header"),_.x("design:type",HTMLElement)],rM.prototype,"header",void 0);_.B([_.Me("notSticky"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rM.prototype,"dispatchChipBarIsSticky",null);
_.B([_.Me("commentsHidePanelButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rM.prototype,"commentsHidePanelButtonChanged",null);_.B([_.Om("yt-retrieve-location"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],rM.prototype,"onRetrieveLocation",null);
_.B([_.Om("yt-load-reload-continuation"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Function]),_.x("design:returntype")],rM.prototype,"onLoadReloadContinuation",null);_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rM.prototype,"onServiceRequestCompleted",null);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rM.prototype,"dataChanged",null);
_.B([_.iD("data.contents.length"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rM.prototype,"observeDataContentsLength",null);_.B([_.Om("yt-dismissible-item-dismissed"),_.Om("yt-dismissible-item-undismissed"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],rM.prototype,"onYtDismissibleItemDismissedChange",null);
_.B([_.Me("continuationShowButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rM.prototype,"continuationShowButtonChanged",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rM.prototype,"dataChangedForBinding",null);_.B([_.c({is:"ytd-item-section-renderer",disableElementRegistration:!0})],rM);
_.A(rM,"ytd-item-section-renderer",function(){if(Qjc!==void 0)return Qjc;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Qjc=G},{mode:1});var kSW;var Hky=_.nQ(_.OK("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var HfH={},kWq=(HfH[0]={title:_.Bn(_.OK("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Bn(_.OK("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.FJ("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},HfH[1]={title:_.Bn(_.OK("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.FJ("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},HfH);_.te("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var ZT=function(){var G=_.m.apply(this,arguments)||this;G.allVideosCount=0;G.allPlaylistCount=0;G.isOnline=!1;G.shouldRenderDownloadsBanner=!1;G.shouldRenderDownloadsBannerUpsell=!1;G.hasOptedIntoSmartDownloads=!1;G.areAllSmartDownloadsDeleted=!1;G.smartDownloadsCompleted=!1;return G};
_.K(ZT,_.m);ZT.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
ZT.prototype.attached=function(){this.downloadsToRenderChanged()};
ZT.prototype.detached=function(){this.set("renderableData",{})};
ZT.prototype.downloadsToRenderChanged=function(){var G=_.Yt().getState().entities,e=_.qr(G),r=_.R("kevlar_playlist_dl_page_killswitch")?HbS(G):_.th(G),Z=_.Rha(G),O=_.KcN(G),M=_.iw(e);G=_.gf(G);this.set("renderableData",oRf(r,e,Z,O,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,M,G))};
ZT.prototype.downloadsToRenderChanged=ZT.prototype.downloadsToRenderChanged;_.B([_.k(_.A5),_.x("design:type",Object)],ZT.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ZT.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],ZT.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],ZT.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],ZT.prototype,"renderableData",void 0);_.B([_.n({selector:_.y44}),_.x("design:type",Object)],ZT.prototype,"allVideosCount",void 0);_.B([_.n({selector:g7F}),_.x("design:type",Object)],ZT.prototype,"allPlaylistCount",void 0);_.B([_.n({selector:_.Xs}),_.x("design:type",Object)],ZT.prototype,"isOnline",void 0);_.B([_.n({selector:_.UGy}),_.x("design:type",Object)],ZT.prototype,"shouldRenderDownloadsBanner",void 0);
_.B([_.n({selector:_.Lcf}),_.x("design:type",Object)],ZT.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.B([_.n({selector:_.zhi}),_.x("design:type",Object)],ZT.prototype,"hasOptedIntoSmartDownloads",void 0);_.B([_.n({selector:_.Wcs}),_.x("design:type",Object)],ZT.prototype,"areAllSmartDownloadsDeleted",void 0);_.B([_.n({selector:NF$}),_.x("design:type",Object)],ZT.prototype,"smartDownloadsCompleted",void 0);
_.B([_.iD("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ZT.prototype,"downloadsToRenderChanged",null);_.B([_.c({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],ZT);
_.A(ZT,"ytd-offline-item-section-renderer",function(){if(kSW!==void 0)return kSW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return kSW=G},
{mode:1});var dUW;var o48;var OJ=function(){return _.m.apply(this,arguments)||this};
_.K(OJ,_.m);
OJ.prototype.onDataChanged=function(){if(this.JSC$16845_lastData){var G=this.getFilterClass(this.JSC$16845_lastData.status);G&&this.hostElement.classList.remove(G)}var e;(G=this.getFilterClass((e=this.data)==null?void 0:e.status))&&this.hostElement.classList.add(G);G==="selected"?_.z1(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.z1(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");G==="disabled"?_.z1(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.z1(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16845_lastData=this.data};
OJ.prototype.getFilterClass=function(G){switch(G){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
OJ.prototype.onDataChanged=OJ.prototype.onDataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],OJ.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],OJ.prototype,"data",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OJ.prototype,"onDataChanged",null);_.B([_.c({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],OJ);
_.A(OJ,"ytd-search-filter-renderer",function(){if(o48!==void 0)return o48;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return o48=G},{mode:_.Px("kevlar_poly_si_batch_j075")?1:2});var Mj=function(){return _.m.apply(this,arguments)||this};
_.K(Mj,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Mj.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Mj.prototype,"data",void 0);_.B([_.c({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],Mj);
_.A(Mj,"ytd-search-filter-group-renderer",function(){if(dUW!==void 0)return dUW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return dUW=G},{mode:_.Px("kevlar_poly_si_batch_j075")?1:2});var syW;var VP=function(){return _.m.apply(this,arguments)||this};
_.K(VP,_.m);VP.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Sk());this.isCollapsed=!this.isCollapsed};
VP.prototype.navigateToAboutTheseResultsPage=function(){var G=_.Y$("https://www.youtube.com/howyoutubeworks/product-features/search/");G?_.er(window,G,"_blank"):_.WX(Error("Uh"))};
VP.prototype.dataChanged=function(){this.isCollapsed=!0};
VP.prototype.computeShowBottomBorder=function(){var G,e,r;return!!((G=this.data)==null?0:(e=G.button)==null?0:e.toggleButtonRenderer)||!((r=this.data)==null||!r.aboutTheseResultsButton)};
VP.prototype.dataChanged=VP.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],VP.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],VP.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.x("design:type",Boolean)],VP.prototype,"showBottomBorder",void 0);_.B([_.n(),_.x("design:type",Boolean)],VP.prototype,"renderCollapsibleMenu",void 0);
_.B([_.n(),_.x("design:type",Boolean)],VP.prototype,"isCollapsed",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VP.prototype,"dataChanged",null);_.B([_.c({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],VP);
_.A(VP,"ytd-search-sub-menu-renderer",function(){if(syW!==void 0)return syW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return syW=G},{mode:1});var Qya;var IqW=new _.Gz("SECTION_LIST_RENDERER_TOKEN");var pAd;var hl=function(){return _.m.apply(this,arguments)||this};
_.K(hl,_.m);hl.prototype.computeStyle=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],hl.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],hl.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],hl.prototype,"headerStyle",void 0);_.B([_.c({is:"ytd-text-header-renderer",disableElementRegistration:!0})],hl);
_.A(hl,"ytd-text-header-renderer",function(){if(pAd!==void 0)return pAd;var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return pAd=G},{mode:1});var CFY;var Tu=function(){return _.m.apply(this,arguments)||this};
_.K(Tu,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Tu.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Tu.prototype,"data",void 0);_.B([_.c({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],Tu);
_.A(Tu,"ytd-minor-moment-header-renderer",function(){if(CFY!==void 0)return CFY;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return CFY=G},{mode:1});var uNA;var DT=function(){return _.m.apply(this,arguments)||this};
_.K(DT,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],DT.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],DT.prototype,"data",void 0);_.B([_.c({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],DT);
_.A(DT,"ytd-minor-moment-setting-alert-renderer",function(){if(uNA!==void 0)return uNA;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return uNA=G},{mode:1});var n4d;var mUV;var EJ=function(){var G=_.m.apply(this,arguments)||this;G.booleanSettingById=!1;G.smartDownloadsEnabledVE=_.L1(128287);G.smartDownloadsDisabledVE=_.L1(128286);G.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return G};
_.K(EJ,_.m);_.V=EJ.prototype;_.V.attachSmartDownloadsSettingVes=function(){var G;this.activeVeForLogging||((G=this.data)==null?void 0:G.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.Xr(_.h_(),this.smartDownloadsEnabledVE),_.Xr(_.h_(),this.smartDownloadsDisabledVE))};
_.V.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.xy(this.hostElement,"yt-settings-switch-ready")};
_.V.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.V.onSwitchChange=function(G){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(G=_.mk(G).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.R("kevlar_settings_switch_resolve_command_killswitch")?_.v_().resolve(_.$1).resolveCommand(G,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(G)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.V.handleUpdateSettingsSwitch=function(G){(G=_.a(G,DwE))&&this.data&&this.data.id===G.id&&this.set("data.enabled",!!G.enabled)};
_.V.onToggleSettingsSwitch=function(G,e){this.data&&this.data.id===G&&this.set("data.enabled",e!=null?e:!this.data.enabled)};
_.V.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.vt.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.V.maybeLogSmartDownloadsSettingVisibility=function(){var G=_.l4(),e;G&&((e=this.data)==null?void 0:e.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.C_(G,[this.smartDownloadsEnabledVE]),_.up(G,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.C_(G,[this.smartDownloadsDisabledVE]),_.up(G,[this.smartDownloadsEnabledVE])))};
_.V.maybeLogSmartDownloadsSettingClick=function(){var G;((G=this.data)==null?void 0:G.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.fE(_.h_(),this.activeVeForLogging)};
_.V.updateDataEnabledFromBinding=function(G){this.set("data.enabled",G.detail.value)};
_.iY.Object.defineProperties(EJ.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var G=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!G&&(G=this.ytRendererBehavior.getSimpleString(this.data.title));return G}}});
EJ.prototype.dataChanged=EJ.prototype.dataChanged;_.B([_.k(_.A5),_.x("design:type",Object)],EJ.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],EJ.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],EJ.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],EJ.prototype,"ytComponentBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],EJ.prototype,"data",void 0);_.B([_.n({selector:function(G,e){if(Object.keys(G==null?void 0:G.entities).length)switch(e){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return dGf(G.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.x("design:type",Object)],EJ.prototype,"booleanSettingById",void 0);_.B([_.n(),_.x("design:type",tb)],EJ.prototype,"activeVeForLogging",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],EJ.prototype,"toggleAriaLabel",null);_.B([_.iD("data"),_.iD("booleanSettingById"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EJ.prototype,"dataChanged",null);
_.B([_.c({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],EJ);
_.A(EJ,"ytd-settings-switch-renderer",function(){if(mUV!==void 0)return mUV;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return mUV=G},{mode:1});var i0=function(){return _.m.apply(this,arguments)||this};
_.K(i0,_.m);i0.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}}}}};
_.iY.Object.defineProperties(i0.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var G=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(G+=" remove-left-margin");this.data.extraBottomSpace&&(G+=" extra-bottom-space");return G}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],i0.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],i0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],i0.prototype,"data",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],i0.prototype,"contentsClassName",null);_.B([_.c({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],i0);
_.A(i0,"ytd-minor-moment-setting-section-renderer",function(){if(n4d!==void 0)return n4d;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return n4d=G},{mode:1});var cia;var b0=function(){return _.m.apply(this,arguments)||this};
_.K(b0,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],b0.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],b0.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],b0.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],b0);
_.A(b0,"ytd-empty-product-details-renderer",function(){if(cia!==void 0)return cia;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return cia=G},{mode:1});var Y_W;var yid;var vE=function(){var G=_.m.apply(this,arguments)||this;G.expanded=!0;return G};
_.K(vE,_.m);vE.prototype.getBadgeRowClass=function(G,e,r){for(var Z=_.h(this.hostElement.querySelectorAll("yt-img-shadow")),O=Z.next();!O.done;O=Z.next())O.value.onShow();G=G.selected;return r?G!==-1?G===e?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(G!==void 0?G:0)===e?"badge-line":"badge-hidden"};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],vE.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],vE.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],vE.prototype,"expanded",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],vE);
_.A(vE,"ytd-sponsorships-loyalty-badges-renderer",function(){if(yid!==void 0)return yid;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return yid=G},{mode:1});var AiW;var wM=function(){var G=_.m.apply(this,arguments)||this;G.expanded=!0;return G};
_.K(wM,_.m);wM.prototype.getContainerClasses=function(G,e){G=G?"expanded":"collapsed";e&&(G+=" item");return G};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],wM.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],wM.prototype,"expanded",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],wM);
_.A(wM,"ytd-sponsorships-perk-renderer",function(){if(AiW!==void 0)return AiW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return AiW=G},{mode:1});var FSC;var $3=function(){var G=_.m.apply(this,arguments)||this;G.expanded=!0;return G};
_.K($3,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],$3.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],$3.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],$3.prototype,"expanded",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],$3);
_.A($3,"ytd-sponsorships-perks-renderer",function(){if(FSC!==void 0)return FSC;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return FSC=G},{mode:1});var S2=function(){var G=_.m.apply(this,arguments)||this;G.isCollapsed=!1;return G};
_.K(S2,_.m);S2.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
S2.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
S2.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var G;this.expandCollapseButton=_.a((G=this.data)==null?void 0:G.expandButton,_.zM)}else{var e;this.expandCollapseButton=_.a((e=this.data)==null?void 0:e.collapseButton,_.zM)}};
S2.prototype.updateExpandCollapseButton=S2.prototype.updateExpandCollapseButton;S2.prototype.onDataChanged=S2.prototype.onDataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],S2.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],S2.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],S2.prototype,"isCollapsed",void 0);_.B([_.n(),_.x("design:type",Object)],S2.prototype,"expandCollapseButton",void 0);
_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],S2.prototype,"onDataChanged",null);_.B([_.iD("data","isCollapsed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],S2.prototype,"updateExpandCollapseButton",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],S2);
_.A(S2,"ytd-sponsorships-expandable-perks-renderer",function(){if(Y_W!==void 0)return Y_W;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Y_W=G},{mode:1});var JiY;var qj=function(){return _.m.apply(this,arguments)||this};
_.K(qj,_.m);qj.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],qj.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],qj.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],qj.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],qj);
_.A(qj,"ytd-sponsorships-actionable-message-renderer",function(){if(JiY!==void 0)return JiY;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return JiY=G},{mode:1});var Bsd;var tl=function(){return _.m.apply(this,arguments)||this};
_.K(tl,_.m);_.V=tl.prototype;_.V.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.V.getExpansionIcon=function(G){return G?"COLLAPSE":"EXPAND"};
_.V.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.V.computeMessageContainerStyle=function(G){var e=G.expandableItems?" style-clickable":"";return G.messageContainerStyle?G.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+e:"style-unspecified"+e};
_.V.isSinglePerk=function(G){return!!G.messageContainerStyle&&(G.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||G.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.V.onExpandedChanged=function(){var G=this;if(this.expanded)for(var e=_.h(this.hostElement.querySelectorAll("yt-img-shadow")),r=e.next();!r.done;r=e.next())r.value.onShow();_.DE(this,function(){_.xy(G.hostElement,"yt-refit")})};
_.V.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
tl.prototype.onDataChanged=tl.prototype.onDataChanged;tl.prototype.onExpandedChanged=tl.prototype.onExpandedChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],tl.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],tl.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],tl.prototype,"data",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],tl.prototype,"expanded",void 0);
_.B([_.Me("expanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tl.prototype,"onExpandedChanged",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tl.prototype,"onDataChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],tl);
_.A(tl,"ytd-sponsorships-expandable-message-renderer",function(){if(Bsd!==void 0)return Bsd;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Bsd=G},{mode:_.Px("kevlar_poly_si_batch_j028")?1:2});var xUW;var gM=function(){return _.m.apply(this,arguments)||this};
_.K(gM,_.m);gM.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"}}}}};
gM.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.a(this.data.endButton,_.zM).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
gM.prototype.onDataChanged=gM.prototype.onDataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],gM.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],gM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],gM.prototype,"data",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gM.prototype,"onDataChanged",null);
_.B([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],gM);
_.A(gM,"ytd-sponsorships-heading-renderer",function(){if(xUW!==void 0)return xUW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return xUW=G},{mode:1});var PFo;var l0=function(){return _.m.apply(this,arguments)||this};
_.K(l0,_.m);_.B([_.n(),_.x("design:type",Object)],l0.prototype,"data",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],l0.prototype,"ytRendererBehavior",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],l0);
_.A(l0,"ytd-sponsorships-links-renderer",function(){if(PFo!==void 0)return PFo;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return PFo=G},{mode:1});var UUA;var R6=function(){return _.m.apply(this,arguments)||this};
_.K(R6,_.m);_.V=R6.prototype;_.V.onDataChanged=function(){if(this.data&&this.data.expandableItems){var G;(G=_.z1(this.hostElement).querySelector("tp-yt-paper-button"))==null||G.setAttribute("role","button")}else{var e;(e=_.z1(this.hostElement).querySelector("tp-yt-paper-button"))==null||e.removeAttribute("role")}};
_.V.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.V.getExpansionIcon=function(G){return G?"COLLAPSE":"EXPAND"};
_.V.getTileClasses=function(G){return G?"tile expandable-tile":"tile"};
_.V.getButtonDisabled=function(G){return G?void 0:""};
R6.prototype.onDataChanged=R6.prototype.onDataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],R6.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],R6.prototype,"data",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],R6.prototype,"expanded",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],R6.prototype,"onDataChanged",null);
_.B([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],R6);
_.A(R6,"ytd-sponsorships-list-tile-renderer",function(){if(UUA!==void 0)return UUA;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return UUA=G},{mode:1});var za2;var WS8;var j2=function(){return _.m.apply(this,arguments)||this};
_.K(j2,_.m);j2.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],j2.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],j2.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],j2.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],j2);
_.A(j2,"ytd-sponsorships-promotion-renderer",function(){if(WS8!==void 0)return WS8;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return WS8=G},{mode:1});var NsA;var a6=function(){return _.m.apply(this,arguments)||this};
_.K(a6,_.m);a6.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],a6.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],a6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],a6.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],a6);
_.A(a6,"ytd-sponsorships-purchase-option-renderer",function(){if(NsA!==void 0)return NsA;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return NsA=G},{mode:1});var LSl;var GCC;var eEB=function(){return _.m.apply(this,arguments)||this};
_.K(eEB,_.m);_.B([_.n(),_.x("design:type",Object)],eEB.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],eEB);
_.A(eEB,"ytd-ypc-offer-promo-renderer",function(){if(GCC!==void 0)return GCC;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return GCC=G},{mode:1});var XY=function(){return _.m.apply(this,arguments)||this};
_.K(XY,_.m);_.V=XY.prototype;
_.V.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"}}}}};
_.V.expansionCTA=function(G,e){return G&&(e?G.collapseCallToAction:G.expansionCallToAction)};
_.V.getExpansionIcon=function(G){return G?"COLLAPSE":"EXPAND"};
_.V.expansionCallToActionTap=function(){var G=this;this.expanded=!this.expanded;_.DE(this,function(){_.xy(G.hostElement,"yt-refit")})};
_.V.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var G,e=(G=this.data)==null?void 0:G.onVisible;e&&this.ytComponentBehavior.resolveCommand(e)};
_.V.computeDisplayTitle=function(G){return!(!G||this.titledisplaystatus!=="show")};
_.V.computeDisplaySeparator=function(){return!1};
_.V.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
XY.prototype.onDataChanged=XY.prototype.onDataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],XY.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],XY.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],XY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],XY.prototype,"data",void 0);
_.B([_.n({value:!1}),_.x("design:type",Boolean)],XY.prototype,"expanded",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],XY.prototype,"purchaseButtonClicked",void 0);_.B([_.n({reflectToAttribute:!0,value:"show"}),_.x("design:type",String)],XY.prototype,"titledisplaystatus",void 0);_.B([_.n({computed:"computeDisplayTitle(data.title)"}),_.x("design:type",Boolean)],XY.prototype,"displayTitle",void 0);
_.B([_.n({computed:"computeDisplaySeparator(data)"}),_.x("design:type",Boolean)],XY.prototype,"displaySeparator",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XY.prototype,"onDataChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],XY);
_.A(XY,"ytd-sponsorships-tier-renderer",function(){if(LSl!==void 0)return LSl;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return LSl=G},{mode:2});var KU=function(){return _.m.apply(this,arguments)||this};
_.K(KU,_.m);
KU.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"}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],KU.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],KU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],KU.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],KU);
_.A(KU,"ytd-sponsorships-management-renderer",function(){if(za2!==void 0)return za2;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return za2=G},{mode:1});var rSo;var fU=function(){return _.m.apply(this,arguments)||this};
_.K(fU,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],fU.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],fU.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],fU);
_.A(fU,"ytd-open-in-native-app-view-model",function(){if(rSo!==void 0)return rSo;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return rSo=G},{mode:_.Px("kevlar_poly_si_batch_j028")?1:2});var ZPW;var OPC;var MEV=_.Cp(["top-"]),VEC=_.Cp(["bottom-"]),hE8=_.Cp(["left-"]),Tj8=_.Cp(["right-"]),DWA={},EwA=function(G,e,r){G.removeAttribute("top-"+r);G.removeAttribute("bottom-"+r);G.removeAttribute("left-"+r);G.removeAttribute("right-"+r);e&&(e.top&&_.Df([_.wS(MEV)],G,"top-"+r,e.top),e.bottom&&_.Df([_.wS(VEC)],G,"bottom-"+r,e.bottom),e.left&&_.Df([_.wS(hE8)],G,"left-"+r,e.left),e.right&&_.Df([_.wS(Tj8)],G,"right-"+r,e.right))};
DWA.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(G){var e,r=_.z1((e=this.hostElement)!=null?e:this),Z;e=this.cardItemBoxBehaviorMarginTargetId&&r?r.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(Z=this.hostElement)!=null?Z:this;EwA(e,G,"margin")},
cardItemContainerPaddingChanged_:function(G){var e,r=_.z1((e=this.hostElement)!=null?e:this),Z;e=this.cardItemBoxBehaviorPaddingTargetId&&r?r.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(Z=this.hostElement)!=null?Z:this;EwA(e,G,"padding")}}];var k3={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 iP8;var bP8;var HE=function(){return _.m.apply(this,arguments)||this};
_.K(HE,_.m);HE.prototype.textColorChanged_=function(){this.hostElement.style.color=k3[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
HE.prototype.textColorChanged_=HE.prototype.textColorChanged_;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],HE.prototype,"ytRendererBehavior",void 0);_.B([_.k(DWA.YtCardItemBoxBehavior),_.x("design:type",Object)],HE.prototype,"ytCardItemBoxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],HE.prototype,"data",void 0);_.B([_.Me("data.textColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],HE.prototype,"textColorChanged_",null);
_.B([_.aR({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],HE);
_.A(HE,"yt-card-item-text-renderer",function(){if(bP8===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;iP8===void 0&&(iP8=document.createElement("template"));var Z=iP8;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);bP8=G}G=bP8;return G},{mode:2});var vwm;var wc8;var dM=function(){return _.m.apply(this,arguments)||this};
_.K(dM,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],dM.prototype,"data",void 0);_.B([_.aR({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],dM);
_.A(dM,"yt-card-item-badge-renderer",function(){if(wc8===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;vwm===void 0&&(vwm=document.createElement("template"));var Z=vwm;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);wc8=G}G=wc8;return G},{mode:2});var $Wl;var Slm;var o6=function(){return _.m.apply(this,arguments)||this};
_.K(o6,_.m);o6.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],o6.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],o6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],o6.prototype,"data",void 0);_.B([_.aR({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],o6);
_.A(o6,"yt-card-item-text-collection-renderer",function(){if(Slm===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;$Wl===void 0&&($Wl=document.createElement("template"));var Z=$Wl;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Slm=G}G=Slm;return G},{mode:2});var qlo;var tEH;var sJ=function(){return _.m.apply(this,arguments)||this};
_.K(sJ,_.m);sJ.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]]"}}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],sJ.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],sJ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],sJ.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Number)],sJ.prototype,"iconSize",void 0);_.B([_.aR({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],sJ);
_.A(sJ,"yt-card-item-text-with-button-renderer",function(){if(tEH===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;qlo===void 0&&(qlo=document.createElement("template"));var Z=qlo;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);tEH=G}G=tEH;return G},{mode:2});var QP=function(){return _.m.apply(this,arguments)||this};
_.K(QP,_.m);QP.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"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],QP.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],QP.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],QP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],QP.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],QP);
_.A(QP,"ytd-commerce-cart-summary-line-item-renderer",function(){if(OPC!==void 0)return OPC;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return OPC=G},{mode:1});_.te("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var I6=function(){var G=_.m.apply(this,arguments)||this;G.hidden=!1;return G};
_.K(I6,_.m);_.V=I6.prototype;_.V.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"}}}}};
_.V.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.V.updateSummary=function(){var G=this.commerceCartCheckoutButtonEntity,e;if(((e=this.data)==null?0:e.cartButton)&&G.checkoutSummaryText){var r,Z=q$((r=this.data)==null?void 0:r.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+Z+".cardItemTextRenderer.text",tZ(G.checkoutSummaryText));if(G.checkoutDetailText){var O;r=q$((O=this.data)==null?void 0:O.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+r+".cardItemTextRenderer.text",tZ(G.checkoutDetailText))}if(G.checkoutAdditionalMetadataText){var M;
O=q$((M=this.data)==null?void 0:M.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+O+".cardItemTextRenderer.text",tZ(G.checkoutAdditionalMetadataText))}}else G.estimatedTotalPrice&&(M=q$((Z=this.data)==null?void 0:Z.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+M+".cardItemTextRenderer.text",tZ(G.estimatedTotalPrice)))};
_.V.updateIsHidden=function(){var G,e=(G=this.commerceCartCheckoutButtonEntity)==null?void 0:G.isHidden;e!==void 0&&(this.hidden=e)};
_.V.updateCheckoutButton=function(){var G,e=(G=this.commerceCartCheckoutButtonEntity)==null?void 0:G.isDisabled;e!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",e);var r;G=(r=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:r.innertubeCommand;G!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",G);var Z;r=(Z=this.commerceCartCheckoutButtonEntity)==null?void 0:Z.checkoutButtonText;r!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:r})};
I6.prototype.entityChanged=I6.prototype.entityChanged;_.B([_.k(_.A5),_.x("design:type",Object)],I6.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],I6.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],I6.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],I6.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],I6.prototype,"fullWidth",void 0);_.B([_.n(),_.x("design:type",Object)],I6.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],I6.prototype,"compact",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],I6.prototype,"hidden",void 0);
_.B([_.n({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:ETp}),_.x("design:type",Object)],I6.prototype,"commerceCartCheckoutButtonEntity",void 0);_.B([_.Me("commerceCartCheckoutButtonEntity","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],I6.prototype,"entityChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],I6);
_.A(I6,"ytd-commerce-cart-checkout-button-renderer",function(){if(ZPW!==void 0)return ZPW;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return ZPW=G},{mode:2});var gwa;_.lb8={};
_.lb8.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",_.ZQ(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.ZQ(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(G){!this.tappableItemBehaviorTapEnabled||G.keyCode!==13&&G.keyCode!==32||G.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var G=this.data.onTap;G.ypcGetCartEndpoint?(_.zw(this.hostElement,[G]),this.tappableItemBehaviorTapEnabled=!1):G.ypcOffersEndpoint?_.zw(this.hostElement,[G]):_.Wi(this.hostElement,[G],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(G){this.tappableItemBehaviorTapEnabled=!!G},
tappableItemBehaviorOnTapEnabledChanged_:function(){var G=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(G.setAttribute("tabIndex",0),G.setAttribute("role","button")):(G.removeAttribute("tabIndex"),G.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(G){G.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var RE2;var jW8;var pU=function(){return _.m.apply(this,arguments)||this};
_.K(pU,_.m);pU.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.gp("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.gp("sharingToggleButtonAndDefaultButton")}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],pU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],pU.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],pU.prototype,"data",void 0);_.B([_.aR({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],pU);
_.A(pU,"yt-card-item-actions-renderer",function(){if(jW8===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;RE2===void 0&&(RE2=document.createElement("template"));var Z=RE2;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);jW8=G}G=jW8;return G},{mode:2});var ab8;var Xcm;var K3a;var fbV;var kCH;var HPA;var CU=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return G};
_.K(CU,_.m);CU.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
CU.prototype.handleDarkModeToggledAction_=function(G){this.isDarkTheme_=G};
CU.prototype.computeThemeImage_=function(G,e){if(!G||!G.imageLight)return!1;this.isCircular_=G.isCircular;G.imageWidth&&(this.hostElement.style.width=G.imageWidth+"px");G.imageHeight&&(this.hostElement.style.height=G.imageHeight+"px");G.borderWidth&&(this.image.style.borderWidth=G.borderWidth+"px",this.image.style.borderStyle="solid");G.borderColor&&(this.image.style.borderColor=_.jF(G.borderColor));return e&&G.imageDark?G.imageDark:G.imageLight};
CU.prototype.computeThemeIcon_=function(G){var e,r;if(!(G==null?0:(e=G.themedIcon)==null?0:(r=e.icon)==null?0:r.iconType))return!1;this.icon.style.color=k3[G.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(G.imageWidth||18)+"px";this.icon.style.height=(G.imageHeight||18)+"px";return _.Ne(G.themedIcon.icon.iconType)};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],CU.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],CU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(DWA.YtCardItemBoxBehavior),_.x("design:type",Object)],CU.prototype,"ytCardItemBoxBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],CU.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],CU.prototype,"data",void 0);
_.B([_.n({value:!1}),_.x("design:type",Boolean)],CU.prototype,"fit",void 0);_.B([_.n(),_.x("design:type",Boolean)],CU.prototype,"isDarkTheme_",void 0);_.B([_.n({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.x("design:type",Object)],CU.prototype,"themeImage_",void 0);_.B([_.n({computed:"computeThemeIcon_(data)"}),_.x("design:type",Object)],CU.prototype,"themeIcon_",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Object)],CU.prototype,"isCircular_",void 0);
_.B([_.hs("#image"),_.x("design:type",Object)],CU.prototype,"image",void 0);_.B([_.hs("#icon"),_.x("design:type",Object)],CU.prototype,"icon",void 0);_.B([_.aR({is:"yt-themed-image-renderer",disableElementRegistration:!0})],CU);
_.A(CU,"yt-themed-image-renderer",function(){if(HPA===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;kCH===void 0&&(kCH=document.createElement("template"));var Z=kCH;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);HPA=G}G=HPA;return G},{mode:2});var u0=function(){return _.m.apply(this,arguments)||this};
_.K(u0,_.m);u0.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"}}}}};
u0.prototype.computeImagePlacement_=function(G){return G||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],u0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],u0.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],u0.prototype,"data",void 0);_.B([_.n({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.x("design:type",String)],u0.prototype,"imagePlacement",void 0);
_.B([_.aR({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],u0);
_.A(u0,"yt-card-item-text-with-image-renderer",function(){if(fbV===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;K3a===void 0&&(K3a=document.createElement("template"));var Z=K3a;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);fbV=G}G=fbV;return G},{mode:2});var nU=function(){return _.m.apply(this,arguments)||this};
_.K(nU,_.m);nU.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"}}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],nU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],nU.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],nU.prototype,"data",void 0);_.B([_.aR({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],nU);
_.A(nU,"yt-card-item-error-renderer",function(){if(Xcm===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;ab8===void 0&&(ab8=document.createElement("template"));var Z=ab8;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Xcm=G}G=Xcm;return G},{mode:2});var dWm;var owW;_.te("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var mt=function(){return _.m.apply(this,arguments)||this};
_.K(mt,_.m);_.V=mt.prototype;
_.V.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"}}}}};
_.V.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.V.backgroundColorChanged_=function(){var G,e=(G=this.data)==null?void 0:G.backgroundColor;G=k3[e||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.z1(this.hostElement).querySelector("#main-content").style.backgroundColor=G};
_.V.headerPromoBackgroundColorChanged_=function(){var G,e=(G=this.data)==null?void 0:G.headerPromoBackgroundColor;G=k3[e||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.z1(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=G};
_.V.errorRendererVisibilityChanged_=function(){var G=this.isExpanded_,e;this.isErrorRendererVisible_=!((e=this.data)==null||!e.errorRenderer)&&!G};
_.V.onYtToggleButton_=function(G,e){this.isExpanded_=e.toggled};
mt.prototype.onYtToggleButton_=mt.prototype.onYtToggleButton_;mt.prototype.errorRendererVisibilityChanged_=mt.prototype.errorRendererVisibilityChanged_;mt.prototype.headerPromoBackgroundColorChanged_=mt.prototype.headerPromoBackgroundColorChanged_;mt.prototype.backgroundColorChanged_=mt.prototype.backgroundColorChanged_;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],mt.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],mt.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(DWA.YtCardItemBoxBehavior),_.x("design:type",Object)],mt.prototype,"ytCardItemBoxBehavior",void 0);_.B([_.k(_.lb8.YtTappableItemBehavior),_.x("design:type",Object)],mt.prototype,"ytTappableItemBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],mt.prototype,"data",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],mt.prototype,"isExpanded_",void 0);
_.B([_.n({value:!1}),_.x("design:type",Boolean)],mt.prototype,"isErrorRendererVisible_",void 0);_.B([_.Me("data.backgroundColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mt.prototype,"backgroundColorChanged_",null);_.B([_.Me("data.headerPromoBackgroundColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mt.prototype,"headerPromoBackgroundColorChanged_",null);
_.B([_.Me("data.errorRenderer","isExpanded_"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mt.prototype,"errorRendererVisibilityChanged_",null);_.B([_.Om("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[Event,Object]),_.x("design:returntype")],mt.prototype,"onYtToggleButton_",null);_.B([_.aR({is:"yt-card-item-renderer",disableElementRegistration:!0})],mt);
_.A(mt,"yt-card-item-renderer",function(){if(owW===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;dWm===void 0&&(dWm=document.createElement("template"));var Z=dWm;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);owW=G}G=owW;return G},{mode:2});_.te("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var cE=function(){var G=_.m.apply(this,arguments)||this;G.hidden=!1;return G};
_.K(cE,_.m);_.V=cE.prototype;_.V.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.V.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.V.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var G,e=(G=this.commerceCartHeaderEntity)==null?void 0:G.isHidden;e!==void 0&&(this.hidden=e)}};
_.V.updateTitle=function(){var G=this.commerceCartHeaderEntity.isDisabled,e,r,Z=(r=_.a((e=this.data)==null?void 0:e.item,hUW))==null?void 0:r.headingRenderer;Z&&(e=q$(Z,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+e+".0.cardItemTextRenderer.textColor",G?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.V.updateSummaryText=function(){var G=this.commerceCartHeaderEntity;if(this.compact){var e,r,Z=(r=_.a((e=this.data)==null?void 0:e.item,hUW))==null?void 0:r.headingRenderer;Z&&(e=q$(Z,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+e+".1.cardItemTextRenderer.text",G.shortHeaderSummaryText?tZ(G.shortHeaderSummaryText):G.headerSummaryText?tZ(G.headerSummaryText):""))}else{var O;if(e=(O=_.a((Z=this.data)==null?void 0:Z.item,hUW))==null?void 0:O.additionalInfoRenderer)e=q$(e,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+e+".text",G.headerSummaryText?tZ(G.headerSummaryText):"")}};
_.V.updateCheckoutButton=function(){var G=this.commerceCartHeaderEntity,e,r,Z=(r=_.a((e=this.data)==null?void 0:e.item,hUW))==null?void 0:r.additionalInfoRenderer;e=q$(Z,"buttonRenderer");var O;r=(O=this.commerceCartHeaderEntity)==null?void 0:O.isButtonDisabled;var M;O=(M=this.commerceCartHeaderEntity)==null?void 0:M.isButtonHidden;r!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+e+".buttonRenderer.isDisabled",r);O!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
O);var T;G=(T=G.checkoutButtonCommand)==null?void 0:T.innertubeCommand;G!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+e+".buttonRenderer.command",G)};
cE.prototype.entityChanged=cE.prototype.entityChanged;_.B([_.k(_.A5),_.x("design:type",Object)],cE.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],cE.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],cE.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],cE.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],cE.prototype,"compact",void 0);_.B([_.n({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(G,e){return _.e6(G.entities,"commerceCartHeaderEntity",e)}}),
_.x("design:type",Object)],cE.prototype,"commerceCartHeaderEntity",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],cE.prototype,"hidden",void 0);_.B([_.Me("commerceCartHeaderEntity","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cE.prototype,"entityChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],cE);
_.A(cE,"ytd-commerce-cart-header-renderer",function(){if(gwa!==void 0)return gwa;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return gwa=G},{mode:1});var sWA;var QWm=_.lE(function(G,e){var r;return(r=G.onChangeCallback)==null?void 0:r.call(G,e)},1E3),Ibd=_.y(function(G){var e=G.data;
var r=G.iconMinus;G=G.iconPlus;var Z=function(){return!!e().disabled},O=_.h(_.XQ(0,void 0,"mKh0af")),M=O.next().value,T=O.next().value;
O=_.ev(function(){if(M()===1){var t,g;(g=(t=e()).onRemoveCommand)==null||g.call(t)}t=M()>e().maxValue?e().maxValue:M()-1;T(t);QWm(e(),t);return!1});
var E=_.ev(function(){if(M()===e().maxValue)return!1;var t=M()+1;T(t);QWm(e(),t);return!1});
_.YZ(function(){T(e().value)});
var b={},w={},q={};return _.v("quantity-incrementer-shape",null,_.v("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.v("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return M()===(e().onRemoveCommand?0:1)||Z()},
"aria-label":function(){return M()!==1?e().minusLabel:e().minimumReachedLabel},
"on:click":O},_.v(_.ED,{model:{circular:!0}}),_.v("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.v("div",{class:_.LC("ytSpecQuantityIncrementerShapeIcon",(b.ytSpecQuantityIncrementerShapeIconDisabled=function(){return Z()||M()===(e().onRemoveCommand?0:1)},b))},r()))),_.v("div",{class:_.LC("ytSpecQuantityIncrementerShapeText",(w.ytSpecQuantityIncrementerShapeTextInvalid=function(){return M()>e().maxValue},w.ytSpecQuantityIncrementerShapeTextDisabled=Z,w))},M),_.v("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return M()>=e().maxValue||Z()},
"aria-label":function(){return M()!==e().maxValue?e().plusLabel:e().maximumReachedLabel},
"on:click":E},_.v(_.ED,{model:{circular:!0}}),_.v("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.v("div",{class:_.LC("ytSpecQuantityIncrementerShapeIcon",(q.ytSpecQuantityIncrementerShapeIconDisabled=function(){return M()>=e().maxValue||Z()},q))},G())))))},"If");_.J_(_.y(function(G){function e(){r().onRemoveCommand&&_.HQ(r().onRemoveCommand)}
var r=G.data;var Z=_.hI(KRy,function(){return r().quantityIncrementerEntityKey});
return _.v("yt-quantity-incrementer-view-model",null,_.v(Ibd,{data:function(){var O=r(),M;var T=Z()?!((M=Z())==null||!M.disabled):!1;var E;M=Z()?(E=Z())==null?void 0:E.quantity:r().quantity;return Iuy(O,T,e,M)},
iconMinus:function(){return _.v(_.V$,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.v(_.V$,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Jf"),"yt-quantity-incrementer-view-model",{props:{data:_.N6}});var Y3=function(){var G=_.m.apply(this,arguments)||this;G.compact=!1;G.hasQuantityIncrementer=!1;return G};
_.K(Y3,_.m);Y3.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"}}}};
Y3.prototype.computeHasQuantityIncrementer=function(){var G;return!!_.a((G=this.data)==null?void 0:G.picker,iX3)};
Y3.prototype.onLabelClick=function(){var G;(G=this.dropdownEl)==null||G.open()};
_.B([_.hs("ytd-dropdown-renderer"),_.x("design:type",Object)],Y3.prototype,"dropdownEl",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Y3.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Y3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Y3.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],Y3.prototype,"quantityColor",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Y3.prototype,"compact",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.x("design:type",Object)],Y3.prototype,"hasQuantityIncrementer",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],Y3);
_.A(Y3,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(sWA!==void 0)return sWA;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return sWA=G},{mode:1});var pcW;var CyY;var yP=function(){return _.m.apply(this,arguments)||this};
_.K(yP,_.m);yP.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
yP.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
yP.prototype.updateTitle=function(){var G=this.disabledCartItemEntity;G.disableActionName&&this.set("data.title",tZ(G.disableActionName))};
yP.prototype.updateButton=function(){var G,e=(G=this.disabledCartItemEntity.undoCommand)==null?void 0:G.innertubeCommand;e!==void 0&&(this.set("data.actionButton.buttonRenderer.command",e),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
yP.prototype.entityChanged=yP.prototype.entityChanged;_.B([_.k(_.A5),_.x("design:type",Object)],yP.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],yP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(G,e){return _.e6(G.entities,"disabledCartItemEntity",e)}}),
_.x("design:type",Object)],yP.prototype,"disabledCartItemEntity",void 0);_.B([_.n(),_.x("design:type",Object)],yP.prototype,"data",void 0);_.B([_.Me("disabledCartItemEntity","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yP.prototype,"entityChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],yP);
_.A(yP,"ytd-disabled-cart-item-renderer",function(){if(CyY!==void 0)return CyY;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return CyY=G},{mode:1});_.te("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Al=function(){var G=_.m.apply(this,arguments)||this;G.compact=!1;G.hidden=!1;G.errorHidden=!1;G.noOnTap=!1;return G};
_.K(Al,_.m);_.V=Al.prototype;
_.V.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"}}}};
_.V.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.V.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var G=this.firstButtonElement;G.alignByText=!0;G.iconAlignByText=!0}};
_.V.computeNoOnTap=function(G){return!G};
_.V.updateQuantityColor=function(){if(this.pickerElement){var G,e=(G=this.commerceCartItemEntity)==null?void 0:G.quantityColor;this.pickerElement.quantityColor=e}};
_.V.updateTotalPriceColor=function(){var G,e=(G=this.commerceCartItemEntity)==null?void 0:G.totalPriceColor;if(e){var r;G=_.a((r=this.data)==null?void 0:r.quantityPicker,DRc);if(r=_.a(G==null?void 0:G.price,TZv))r.textColor=e}};
_.V.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var G,e=(G=this.commerceCartItemEntity)==null?void 0:G.isHidden;e!==void 0&&(this.hidden=e)}};
_.V.updateHideErrorMessage=function(){var G,e=(G=this.commerceCartItemEntity)==null?void 0:G.hideErrorMessage;e!==void 0&&(this.errorHidden=e)};
_.V.updateQuantity=function(){var G=this,e,r=(e=this.commerceCartItemEntity)==null?void 0:e.quantity,Z;e=(Z=this.commerceCartItemEntity)==null?void 0:Z.totalPrice;if(r){this.updateTotalPriceColor();this.updateQuantityColor();var O;Z=_.a((O=this.data)==null?void 0:O.quantityPicker,DRc);if(O=_.a(Z==null?void 0:Z.price,TZv))O.text=e?{simpleText:e.content}:void 0;if(e=_.a(Z==null?void 0:Z.picker,iX3))e.quantity=r;var M;if(O=(M=_.a(Z==null?void 0:Z.picker,VGn))==null?void 0:M.entries){M=!1;e=void 0;O=
_.h(O);for(Z=O.next();!Z.done;Z=O.next())Z=Z.value,Z.dropdownItemRenderer&&(e||(e=Z.dropdownItemRenderer),Z.dropdownItemRenderer.isSelected=!1,r===Z.dropdownItemRenderer.int32Value&&(M=!0,Z.dropdownItemRenderer.isSelected=!0));!M&&e&&(e.isSelected=!0)}_.DE(this,function(){var T;G.set("data.quantityPicker",_.c2.unsafeClone((T=G.data)==null?void 0:T.quantityPicker))})}};
Al.prototype.onYtRendererstamperFinished=Al.prototype.onYtRendererstamperFinished;Al.prototype.entityChanged=Al.prototype.entityChanged;_.B([_.n(),_.x("design:type",Object)],Al.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Al.prototype,"compact",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],Al.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Al.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Al.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Al.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(G,e){return _.e6(G.entities,"commerceCartItemEntity",e)}}),
_.x("design:type",Object)],Al.prototype,"commerceCartItemEntity",void 0);_.B([_.n(),_.x("design:type",Object)],Al.prototype,"quantityPicker",void 0);_.B([_.n(),_.x("design:type",Object)],Al.prototype,"compactQuantityPicker",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Al.prototype,"hidden",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Al.prototype,"errorHidden",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.x("design:type",Object)],Al.prototype,"noOnTap",void 0);_.B([_.hs("ytd-commerce-cart-item-quantity-picker-renderer"),_.x("design:type",Object)],Al.prototype,"pickerElement",void 0);_.B([_.hs("yt-button-renderer"),_.x("design:type",Element)],Al.prototype,"firstButtonElement",void 0);
_.B([_.Me("commerceCartItemEntity","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Al.prototype,"entityChanged",null);_.B([_.Om("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Al.prototype,"onYtRendererstamperFinished",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],Al);
_.A(Al,"ytd-commerce-cart-item-renderer",function(){if(pcW!==void 0)return pcW;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return pcW=G},{mode:_.Px("kevlar_poly_si_batch_j028")?1:2});var una;var nwW;var FY=function(){return _.m.apply(this,arguments)||this};
_.K(FY,_.m);FY.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}}}}}};
FY.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
FY.prototype.updateCheckoutLineItems=function(){var G,e=(G=this.commerceCartCheckoutButtonEntity)==null?void 0:G.checkoutLineItems;e&&(G=e.map(function(r){a:{var Z=r.price,O=r.description;switch(r.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":r={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:tZ(O),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:tZ(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:r={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:tZ(O),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:tZ(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 r}),this.set("data.summaryLineItems",G))};
FY.prototype.updateIsHidden=function(){var G,e=(G=this.commerceCartCheckoutButtonEntity)==null?void 0:G.isHidden;e!==void 0&&(this.hostElement.hidden=e)};
FY.prototype.entityChanged=FY.prototype.entityChanged;_.B([_.k(_.A5),_.x("design:type",Object)],FY.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],FY.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],FY.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],FY.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],FY.prototype,"data",void 0);_.B([_.n({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:ETp}),_.x("design:type",Object)],FY.prototype,"commerceCartCheckoutButtonEntity",void 0);_.B([_.Me("commerceCartCheckoutButtonEntity","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FY.prototype,"entityChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],FY);
_.A(FY,"ytd-commerce-cart-summary-renderer",function(){if(nwW!==void 0)return nwW;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return nwW=G},{mode:1});var mWW={};mWW.InjectBehavior=[eQp.InjectBehavior];var cSC;var YlV;var Jl=function(){return _.m.apply(this,arguments)||this};
_.K(Jl,_.m);
Jl.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:_.gp("menuRenderer")}}};
Jl.prototype.onMenuTap=function(G){G.stopPropagation()};
_.iY.Object.defineProperties(Jl.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 G,e;return!(((G=this.data)==null||!G.sectionHeading)&&((e=this.data)==null?void 0:e.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var G,e;return!(((G=this.data)==null||!G.image)&&((e=this.data)==null?void 0:e.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var G,e;return!(((G=this.data)==null||!G.menu)&&((e=this.data)==null?void 0:e.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Jl.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Jl.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.lb8.YtTappableItemBehavior),_.x("design:type",Object)],Jl.prototype,"ytTappableItemBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Jl.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0}),_.d("data.accessibilityData"),_.x("design:type",String),_.x("design:paramtypes",[])],Jl.prototype,"ariaLabel",null);_.B([_.d("data.sectionHeading","data.layout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Jl.prototype,"sectionHeadingVisible",null);_.B([_.d("data.image","data.layout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Jl.prototype,"imageVisible",null);
_.B([_.d("data.menu","data.layout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Jl.prototype,"menuVisible",null);_.B([_.aR({is:"yt-activity-item-renderer",disableElementRegistration:!0})],Jl);
_.A(Jl,"yt-activity-item-renderer",function(){if(YlV===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;cSC===void 0&&(cSC=document.createElement("template"));var Z=cSC;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);YlV=G}G=YlV;return G},{mode:2});var ySo;var ASH;var F3A;var JSW;var BE=function(){return _.m.apply(this,arguments)||this};
_.K(BE,_.m);
BE.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"}}}}};
BE.prototype.backgroundColorChanged_=function(){var G,e=(G=this.data)==null?void 0:G.backgroundColor;this.hostElement.style.backgroundColor=k3[e||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
BE.prototype.backgroundColorChanged_=BE.prototype.backgroundColorChanged_;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],BE.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],BE.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],BE.prototype,"data",void 0);
_.B([_.Me("data.backgroundColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],BE.prototype,"backgroundColorChanged_",null);_.B([_.aR({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],BE);
_.A(BE,"yt-offer-item-upsell-renderer",function(){if(JSW===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;F3A===void 0&&(F3A=document.createElement("template"));var Z=F3A;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);JSW=G}G=JSW;return G},{mode:2});_.te("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var x3=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};G.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return G};
_.K(x3,_.m);_.V=x3.prototype;
_.V.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:_.gp("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.V.computeContainerStyle_=function(G){return G};
_.V.computeContainerIsHidden_=function(G){return G&&!!G.isHidden};
_.V.computeShowSpinner_=function(G,e){return G&&e==="in-progress"};
_.V.computeShowMoreContentsButton_=function(G,e,r,Z,O){return!(!(Z&&Z.length||O&&O.length&&r)||!G||e)};
_.V.onToggleButton_=function(G){var e=this;G.stopPropagation();this.isExpanded_=G.detail&&G.detail.toggled;var r,Z;this.isExpanded_&&!this.data.continuationSection.length&&((r=this.data)==null?0:(Z=r.continuation)==null?0:Z.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.xy(this.hostElement,"yt-load-next-continuation",function(O){return e.getContinuationUrl_(e.data.continuation.onClickContinuationData,O)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.zw(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.V.onShowMoreContentsButtonClicked_=function(G){var e=this;G.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.xy(this.hostElement,"yt-load-next-continuation",function(r){return e.getContinuationUrl_(e.data.continuations[0].nextContinuationData,r)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.zw(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.V.getContinuationUrl_=function(G,e){var r=G.continuation;G=G.clickTrackingParams;var Z=_.l4();G&&Z&&_.n_(Z,_.b1(G));return _.Vi(e,{continuation:r})};
_.V.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var G=_.z1(this.hostElement).querySelector("#continuation-section");G&&(G=G.querySelectorAll("ytmusic-item-section-renderer"))&&G.forEach(function(e){return e.classList.add("memberships-and-purchases")})};
_.V.dataChanged_=function(){var G;this.isExpanded_=!((G=this.data)==null||!G.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.V.updateCardOnClickCommand_=function(G){G=_.a(G,LNW);var e,r;this.data&&((e=this.data)==null?0:e.targetId)&&G&&G.targetId===((r=this.data)==null?void 0:r.targetId)&&G.onClickCommand&&(this.data.onClickCommand=G.onClickCommand,this.isOnClickCommand_=!0)};
_.V.backgroundColorChanged_=function(){var G,e=(G=this.data)==null?void 0:G.backgroundColor;this.hostElement.style.backgroundColor=k3[e||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
x3.prototype.backgroundColorChanged_=x3.prototype.backgroundColorChanged_;x3.prototype.dataChanged_=x3.prototype.dataChanged_;x3.prototype.nextContinuationDataUpdated_=x3.prototype.nextContinuationDataUpdated_;x3.prototype.onToggleButton_=x3.prototype.onToggleButton_;_.B([_.k(_.eP),_.x("design:type",Object)],x3.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],x3.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],x3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.r5.YtNextContinuationBehavior),_.x("design:type",Object)],x3.prototype,"ytNextContinuationBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],x3.prototype,"ytRendererBehavior",void 0);_.B([_.k(mWW.InjectBehavior),_.x("design:type",Object)],x3.prototype,"injectBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],x3.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],x3.prototype,"compact",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],x3.prototype,"isExpanded_",void 0);_.B([_.n({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.x("design:type",String)],x3.prototype,"containerStyle_",void 0);_.B([_.n({value:"not-started"}),_.x("design:type",String)],x3.prototype,"continuationStatus_",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.x("design:type",Boolean)],x3.prototype,"showSpinner_",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],x3.prototype,"isOnClickCommand_",void 0);_.B([_.n({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.x("design:type",Boolean)],x3.prototype,"showMoreContentsButton_",void 0);
_.B([_.n({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(G,e){return!e||G.entities?null:_.e6(G.entities,"cardItemContainerEntity",e)}}),
_.x("design:type",Object)],x3.prototype,"cardItemContainerEntity_",void 0);_.B([_.Om("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],x3.prototype,"onToggleButton_",null);_.B([_.Om("yt-next-continuation-data-updated"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],x3.prototype,"nextContinuationDataUpdated_",null);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],x3.prototype,"dataChanged_",null);_.B([_.Me("data.backgroundColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],x3.prototype,"backgroundColorChanged_",null);_.B([_.aR({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],x3);
_.A(x3,"yt-card-item-container-renderer",function(){if(ASH===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;ySo===void 0&&(ySo=document.createElement("template"));var Z=ySo;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);ASH=G}G=ASH;return G},{mode:2});var PE=function(){return _.m.apply(this,arguments)||this};
_.K(PE,_.m);PE.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"}}}};
PE.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
PE.prototype.computeLoadingHidden=function(){var G;return!((G=this.commerceCartPageStateEntity)==null?0:G.cartActionInProgress)};
PE.prototype.updateNotification=function(){var G,e=(G=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:G.summaryText;e&&this.set("data.cartNotification",tZ(e))};
PE.prototype.notificationEntityChanged=PE.prototype.notificationEntityChanged;_.B([_.k(_.A5),_.x("design:type",Object)],PE.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],PE.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],PE.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],PE.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],PE.prototype,"data",void 0);_.B([_.n({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(G,e){return _.e6(G.entities,"commerceCartExpandableNotificationEntity",e)}}),
_.x("design:type",Object)],PE.prototype,"commerceCartExpandableNotificationEntity",void 0);_.B([_.n({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(G,e){return _.e6(G.entities,"commerceCartPageStateEntity",e)}}),
_.x("design:type",Object)],PE.prototype,"commerceCartPageStateEntity",void 0);_.B([_.hs("#spinner"),_.x("design:type",HTMLElement)],PE.prototype,"spinner",void 0);_.B([_.Me("commerceCartExpandableNotificationEntity","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],PE.prototype,"notificationEntityChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],PE);
_.A(PE,"ytd-commerce-cart-renderer",function(){if(una!==void 0)return una;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return una=G},{mode:1});var Bja;var UJ=function(){var G=_.m.apply(this,arguments)||this;G.bigImage=!1;return G};
_.K(UJ,_.m);_.iY.Object.defineProperties(UJ.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.placeholderImageUrl}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],UJ.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],UJ.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],UJ.prototype,"bigImage",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],UJ.prototype,"placeholderImageUrl",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],UJ);
_.A(UJ,"ytd-empty-product-shelf-renderer",function(){if(Bja!==void 0)return Bja;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Bja=G},{mode:1});var xWB;var zu=function(){var G=_.m.apply(this,arguments)||this;G.itemStyle="link-item";G.watchMetadataRefresh=!1;G.skinnyMode=!1;G.metaPanel=!1;G.inStructuredDescription=!1;G.detailedDescriptionOverride=!1;G.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};G.updateOnResizeDebouncer=null;return G};
_.K(zu,_.m);_.V=zu.prototype;_.V.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.V.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"}}}}};
_.V.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.V.attachVEs=function(G){G.trackingParams&&_.h_().graftServerVe(G.trackingParams)};
_.V.handleUpdateMerchShelfAction=function(G){var e=this,r=_.a(G.updateMerchandiseShelfAction.merchandiseShelf,_.Xh3);r&&(r.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){e.attachVEs(r);e.data=r},Number(r.renderDelayMs))):(this.attachVEs(r),this.data=r))};
_.V.updateOnResize=function(){if(this.JSC$17013_scrollContainer!==void 0&&this.JSC$17013_scrollContainer.clientWidth!==0&&this.items!==void 0){var G=this.JSC$17013_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-G));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 r,
Z;((r=this.data)==null?void 0:(Z=r.items)==null?void 0:Z.length)===1?this.itemStyle="cta-item":this.itemStyle=G>=740?"large-item":"small-item"}}};
_.V.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.id(this.updateOnResizeDebouncer,_.L7.after(100),this.updateOnResize)};
zu.prototype.debouncedUpdateOnResize=zu.prototype.debouncedUpdateOnResize;zu.prototype.dataChanged=zu.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],zu.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],zu.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.E1.YtdHorizontalListBehavior),_.x("design:type",Object)],zu.prototype,"ytdHorizontalListBehavior",void 0);
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],zu.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],zu.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],zu.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],zu.prototype,"itemStyle",void 0);_.B([_.n({value:6}),_.x("design:type",Number)],zu.prototype,"initialCount",void 0);
_.B([_.n({value:"data.items"}),_.x("design:type",String)],zu.prototype,"itemsPath",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],zu.prototype,"watchMetadataRefresh",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],zu.prototype,"skinnyMode",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],zu.prototype,"metaPanel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],zu.prototype,"inStructuredDescription",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],zu.prototype,"detailedDescriptionOverride",void 0);_.B([_.hs("#items"),_.x("design:type",HTMLDivElement)],zu.prototype,"items",void 0);_.B([_.hs("#scroll-container"),_.x("design:type",HTMLDivElement)],zu.prototype,"JSC$17013_scrollContainer",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zu.prototype,"dataChanged",null);
_.B([_.Om("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zu.prototype,"debouncedUpdateOnResize",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],zu);
_.A(zu,"ytd-merch-shelf-renderer",function(){if(xWB!==void 0)return xWB;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return xWB=G},{mode:2});var Py8;var WE=function(){var G=_.m.apply(this,arguments)||this;G.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 G};
_.K(WE,_.m);_.V=WE.prototype;
_.V.addBackstagePostAction=function(G){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(G=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",G))&&(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:G}):this.set("data.contents",[{backstagePostThreadRenderer:G}]))};
_.V.addBackstageCommentAction=function(G){var e=this.get("addBackstageCommentAction.parentId",G);G=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",G);if(e&&G){e=this.postIdToIndices(e);for(var r=0;r<e.length;r++){var Z=e[r];if(Z<0)break;Z="data.contents."+Z+".backstagePostThreadRenderer.comments";this.get(Z)&&(this.get(Z+".backstageCommentsRenderer.contents")&&this.push(Z+".backstageCommentsRenderer.contents",{commentThreadRenderer:G}),this.get(Z+".backstageCommentsRenderer.teaserContents")?
this.push(Z+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:G}):this.set(Z+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:G}]))}}};
_.V.addBackstageReplyAction=function(G){var e=this.get("addBackstageReplyAction.parentId",G);G=this.get("addBackstageReplyAction.renderer.commentRenderer",G);e&&G&&this.setCreatorReply(e,G)};
_.V.banAuthorAction=function(G){var e=this.get("banAuthorAction.commentId",G);e&&(G=this.get("banAuthorAction.parentCommentId",G)||this.getParentPostId(e),this.removeFromStream(e,G))};
_.V.hideReportedCommentAction=function(G){var e=this.get("hideReportedCommentAction.commentId",G);e&&((G=this.get("hideReportedCommentAction.parentCommentId",G))||(G=this.getParentPostId(e)),this.removeFromStream(e,G))};
_.V.replaceBackstageCommentAction=function(G){var e=this.get("replaceBackstageCommentAction.commentId",G),r=this.get("replaceBackstageCommentAction.parentId",G);G=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",G);if(e&&r&&G){r=this.postIdToIndices(r);for(var Z=0;Z<r.length;Z++){var O=r[Z];if(O<0)break;var M=this.commentIdToIndex(e,O,!1);if(M>=0){var T=this.get("data.contents."+O+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+M+".commentThreadRenderer.replies.commentRepliesRenderer");
T&&(G.replies={commentRepliesRenderer:T});this.splice("data.contents."+O+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",M,1,{commentThreadRenderer:G})}M=this.commentIdToIndex(e,O,!0);if(M>=0){if(T=this.get("data.contents."+O+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(M+".commentThreadRenderer.replies.commentRepliesRenderer")))G.replies={commentRepliesRenderer:T};this.splice("data.contents."+O+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
M,1,{commentThreadRenderer:G})}}}};
_.V.replaceBackstagePostAction=function(G){var e=this.get("replaceBackstagePostAction.itemId",G);if(e){e=this.postIdToIndices(e);for(var r=0;r<e.length;r++){var Z=e[r];if(Z<0)break;var O=this.getPostRendererType(Z),M=this.get("replaceBackstagePostAction.renderer."+O,G);if(!M&&O!=="sharedPostRenderer")break;var T=!1;M||(T=!0,M=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",G));if(!M)break;var E={};T?(_.g2(E,yQb,M),this.set("data.contents."+Z+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
E)):(_.g2(E,new _.L9(O),M),this.set("data.contents."+Z+".backstagePostThreadRenderer.post",E))}}};
_.V.replaceBackstageReplyAction=function(G){var e=this.get("replaceBackstageReplyAction.replyId",G),r=this.get("replaceBackstageReplyAction.parentId",G);G=this.get("replaceBackstageReplyAction.renderer.commentRenderer",G);e&&G&&r&&this.setCreatorReply(r,G)};
_.V.removeCommentAction=function(G){var e=this.get("removeCommentAction.commentId",G);if(e){var r=this.get("removeCommentAction.parentCommentId",G);r&&this.get("removeCommentAction.isCreatorReply",G)?this.setCreatorReply(r,void 0):(r||(r=this.getParentPostId(e)),this.removeFromStream(e,r))}};
_.V.setCreatorReply=function(G,e){var r=this.getParentPostId(G);if(r){r=this.postIdToIndices(r);for(var Z=0;Z<r.length;Z++){var O=r[Z];if(O<0)break;var M=this.commentIdToIndex(G,O,!1);if(M>=0){var T="data.contents."+O+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+M;M=T+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";T+=".commentThreadRenderer.replies";e==void 0?(this.set(T,{}),this.set(M,!1)):(this.set(T,{commentRepliesRenderer:{teaserContents:[{commentRenderer:e}]}}),
this.set(T+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(M,!0))}M=this.commentIdToIndex(G,O,!0);M>=0&&(M="data.contents."+O+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+M,O=M+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",M+=".commentThreadRenderer.replies",e==void 0?(this.set(M,{}),this.set(O,!1)):(this.set(M,{commentRepliesRenderer:{teaserContents:[{commentRenderer:e}]}}),this.set(O,!0)))}}};
_.V.removeFromStream=function(G,e){if(e){e=this.postIdToIndices(e);for(var r=0;r<e.length;r++){var Z=e[r];if(Z<0)break;var O=this.commentIdToIndex(G,Z,!1);O>=0&&this.splice("data.contents."+Z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",O,1);O=this.commentIdToIndex(G,Z,!0);O>=0&&this.splice("data.contents."+Z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",O,1);Z="data.contents."+Z+".backstagePostThreadRenderer.post.backstagePostRenderer";
O=Z+".backstageAttachment.pollRenderer.votedCommentId";this.get(O)===G&&(this.set(O,null),this.set(Z+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(e=this.postIdToIndices(G).reverse(),r=0;r<e.length;r++){Z=e[r];if(Z<0)break;O=this.getPostRendererType(Z);var M=this.get("backstagePostThreadRenderer.post."+O,this.data.contents[Z]);M.postId===G?this.splice("data.contents",Z,1):O==="sharedPostRenderer"&&this.set("data.contents."+Z+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);M.scheduledPublishTimeSec&&_.Pi(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.V.postIdToIndices=function(G){for(var e=[],r=0;r<this.data.contents.length;r++){var Z=this.getPostRendererType(r);this.get("backstagePostThreadRenderer.post."+Z+".postId",this.data.contents[r])===G&&e.push(r);if(Z==="sharedPostRenderer"){var O=this.get("backstagePostThreadRenderer.post."+Z+".originalPost.backstagePostRenderer.postId",this.data.contents[r]);Z=this.get("backstagePostThreadRenderer.post."+Z+".originalPost.postRenderer.postId",this.data.contents[r]);O!==G&&Z!==G||e.push(r)}}return e};
_.V.commentIdToIndex=function(G,e,r){if(e<0)return-1;var Z,O,M,T,E=_.a((Z=this.data)==null?void 0:(O=Z.contents)==null?void 0:(M=O[e])==null?void 0:(T=M.backstagePostThreadRenderer)==null?void 0:T.comments,cQn);return(e=r?E==null?void 0:E.teaserContents:E==null?void 0:E.contents)&&e.length?e.findIndex(function(b){return _.a(b,R7E).comment.commentRenderer.commentId===G}):-1};
_.V.getParentPostId=function(G){G=G.split(".");if(G[1])return G[0]};
_.V.getPostRendererType=function(G){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[G])?"sharedPostRenderer":"backstagePostRenderer"};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],WE.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],WE.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],WE.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,value:_.R("enable_community_page_on_desktop")}),_.x("design:type",Boolean)],WE.prototype,"useSmallerPostContainer",void 0);
_.B([_.c({disableElementRegistration:!0,is:"ytd-backstage-items"})],WE);
_.A(WE,"ytd-backstage-items",function(){if(Py8!==void 0)return Py8;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Py8=
G},{mode:1});var UWo;var zEA={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},Nj=function(){var G=_.m.apply(this,arguments)||this;G.disablePrescanVisibility=!0;G.canScheduleJobs=!0;G.engagementPanel=!1;G.hidePanelButton=!1;G.isWatchGrid=
!1;G.hasShownSubscribersOnlyDisclaimer=!1;G.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_"};G.TEST_ONLY=void 0;return G};
_.K(Nj,_.m);_.V=Nj.prototype;_.V.created=function(){this.initCommentsCsi_();_.R("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.R("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.V.contentsChanged_=function(){var G;(G=this.data)!=null&&G.contents&&this.tickForCommentsTimer_("cml")};
_.V.headerChanged_=function(){var G;(G=this.data)!=null&&G.header&&this.tickForCommentsTimer_("cmhl")};
_.V.initCommentsCsi_=function(){_.Rl("wn_comments");var G=_.l4();G&&_.gJ({clientScreenNonce:G},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.V.createCommentAction_=function(G){G=_.c2.unsafeClone(G);var e,r;if(G=(e=_.a(G,bVW))==null?void 0:(r=e.contents)==null?void 0:r.commentThreadRenderer){var Z,O,M,T,E,b;!this.isBackstage&&((Z=this.data)==null?0:(O=Z.header)==null?0:(M=O.commentsHeaderRenderer)==null?0:(T=M.createRenderer)==null?0:(E=T.commentSimpleboxRenderer)==null?0:(b=E.zeroStep)==null?0:b.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var w,
q,t;this.isBackstage&&_.a((w=this.data)==null?void 0:(q=w.header)==null?void 0:(t=q.commentsHeaderRenderer)==null?void 0:t.zeroStateMessage,AQS)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(G)}};
_.V.doReplyInsert_=function(G,e,r,Z){Z?this.splice(G,Z,0,e):this.push(G,e)};
_.V.getRepliesPath_=function(G){return"data.contents."+G+".commentThreadRenderer.replies"};
_.V.getRepliesContentsPath_=function(G,e){G=this.getRepliesPath_(G);return e?G+".commentRepliesRenderer.teaserContents":G+".commentRepliesRenderer.contents"};
_.V.showSubscribersOnlyDisclaimer_=function(G){(G=G.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(G))&&(_.Pi(this.hostElement,"yt-open-popup-action",[G,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.V.createCommentReplyAction_=function(G){G=_.c2.unsafeClone(G);var e=_.a(G,vM3);if(G=e==null?void 0:e.contents){var r=this.commentIdToIndex_(e==null?void 0:e.parentCommentId);if(!(r<0)){var Z=this.getRepliesPath_(r);if(this.get(Z)){e=e.replyToCommentId;Z=this.getRepliesContentsPath_(r,!1);if(this.get(Z)){var O=this.get(Z).length,M=Z+"."+(O-1)+".continuationItemRenderer";this.get(M+".button")?(M=this.replyIdToIndex_(e,r,!1),this.doReplyInsert_(Z,G,M,O-1)):this.get(M)||(O=this.replyIdToIndex_(e,r,
!1),this.doReplyInsert_(Z,G,O,null))}Z=this.getRepliesContentsPath_(r,!0);this.get(Z)?(r=this.replyIdToIndex_(e,r,!0),(!e||r>=0)&&this.doReplyInsert_(Z,G,r,null)):this.set(Z,[G])}else this.set(Z,{commentRepliesRenderer:{teaserContents:[G]}})}}};
_.V.hideReportedCommentAction_=function(G){var e=_.a(G,IiC);if(G=e==null?void 0:e.commentId)(e=this.get("parentCommentId",e))||(e=this.getParentCommentId_(G)),this.remove_(G,e)};
_.V.getParentCommentId_=function(G){G=G.split(".");if(G[1])return G[0]};
_.V.removeCommentAction_=function(G){var e=_.a(G,tkb);if(G=e==null?void 0:e.commentId)e=(e==null?void 0:e.parentCommentId)||this.getParentCommentId_(G),this.remove_(G,e)};
_.V.pinCommentAction_=function(G){G=_.c2.unsafeClone(G);var e=_.a(G,q3c);e!=null&&e.commentId&&(G=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",G))&&(this.remove_(e.commentId),this.insert_(G,!0))};
_.V.unpinCommentAction_=function(G){G=_.c2.unsafeClone(G);G=_.a(G,gMy);if(G!=null&&G.commentId){var e,r,Z=(e=G.actionResult)==null?void 0:(r=e.update)==null?void 0:r.commentThreadRenderer;Z&&(this.remove_(G.commentId),this.insert_(Z))}};
_.V.banAuthorAction_=function(G){var e=_.a(G,iVw);e!=null&&e.commentId&&(G=e.commentId,e=e.parentCommentId||this.getParentCommentId_(G),this.remove_(G,e))};
_.V.handleScrollToCommentElement_=function(G){this.hostElement.contains(G)&&(this.nearestScrollParent||(this.nearestScrollParent=p6a(G)),this.isCommentVisibleInScrollParent(G)||G.scrollIntoView({behavior:"smooth",block:"start"}))};
_.V.isCommentVisibleInScrollParent=function(G){if(!this.nearestScrollParent)return!1;G=G.getBoundingClientRect();var e=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return G.top>=e.top&&G.bottom<=e.bottom};
_.V.commentIdToIndex_=function(G){var e;return G&&(e=this.data)!=null&&e.contents?this.data.contents.findIndex(function(r){r=r.commentThreadRenderer;var Z;return G===((r==null?void 0:r.commentViewModel)&&((Z=_.a(r.commentViewModel,kR3))==null?void 0:Z.commentId))}):-1};
_.V.insert_=function(G,e){e=e===void 0?!1:e;var r,Z;if((r=this.data)==null?0:(Z=r.contents)==null?0:Z.some(function(M){return!!M.commentThreadRenderer}))for(r=0,Z=this.data.contents.length;r<Z;r++){var O=this.data.contents[r].commentThreadRenderer;
if(zEA[G.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=zEA[O.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){e&&zEA[G.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===zEA[O.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",r,1,{commentThreadRenderer:G}):this.splice("data.contents",r,0,{commentThreadRenderer:G});break}}else this.set("data.contents",[{commentThreadRenderer:G}])};
_.V.doReplyRemove_=function(G,e,r){G=this.replyIdToIndex_(G,e,r);G<0||(e=this.getRepliesContentsPath_(e,r),this.splice(e,G,1))};
_.V.remove_=function(G,e){e=this.commentIdToIndex_(e);e<0?(e=this.commentIdToIndex_(G),e<0||this.splice("data.contents",e,1)):_.R("web_delhi_comment_threads")||(this.doReplyRemove_(G,e,!1),this.doReplyRemove_(G,e,!0))};
_.V.replyIdToIndex_=function(G,e,r){if(e<0)return-1;e=this.getRepliesContentsPath_(e,r);e=this.get(e);if(!e||!e.length)return-1;r=0;for(var Z=e.length;r<Z;r++){var O=void 0,M=void 0;if(((O=e[r])==null?void 0:(M=O.commentViewModel)==null?void 0:M.commentId)===G)return r}return-1};
_.V.tickForCommentsTimer_=function(G){_.K_(G,void 0,"wn_comments")};
_.V.reloadComments_=function(G){G=_.a(G,Kyj);_.a(G==null?void 0:G.command,_.f1)&&_.zw(this.hostElement,[G==null?void 0:G.command])};
_.iY.Object.defineProperties(Nj.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return!!((G=this.data)==null?0:(e=G.header)==null?0:(r=e.commentsHeaderRenderer)==null?0:r.isBackstageContent)}}});
_.iY.Object.defineProperties(Nj,{template:{configurable:!0,enumerable:!0,get:function(){if(UWo===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);UWo=G}G=UWo;return G}}});
Nj.prototype.showSubscribersOnlyDisclaimer_=Nj.prototype.showSubscribersOnlyDisclaimer_;Nj.prototype.headerChanged_=Nj.prototype.headerChanged_;Nj.prototype.contentsChanged_=Nj.prototype.contentsChanged_;_.B([_.k(_.h5),_.x("design:type",Object)],Nj.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.k(_.GJ.YtPlayerListenerBehavior),_.x("design:type",Function)],Nj.prototype,"ytPlayerListenerBehavior",void 0);
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Nj.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Nj.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Nj.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("data.header.commentsHeaderRenderer.isBackstageContent"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Nj.prototype,"isBackstage",null);
_.B([_.n(),_.x("design:type",Object)],Nj.prototype,"disablePrescanVisibility",void 0);_.B([_.n(),_.x("design:type",Object)],Nj.prototype,"canScheduleJobs",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Nj.prototype,"engagementPanel",void 0);_.B([_.n(),_.x("design:type",Object)],Nj.prototype,"hidePanelButton",void 0);_.B([_.n(),_.x("design:type",Object)],Nj.prototype,"isWatchGrid",void 0);_.B([_.n(),_.x("design:type",Object)],Nj.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);
_.B([_.Me("data.contents"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Nj.prototype,"contentsChanged_",null);_.B([_.Me("data.header"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Nj.prototype,"headerChanged_",null);_.B([_.Om("yt-show-subscribers-only-disclaimer"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Nj.prototype,"showSubscribersOnlyDisclaimer_",null);
_.B([_.c({is:"ytd-comments"})],Nj);var LU=function(){return _.DQ.apply(this,arguments)||this};
_.K(LU,_.DQ);_.V=LU.prototype;_.V.bindIf=function(G,e,r){return G?e:r};
_.V.bindIfDefined=function(G,e){return G!==void 0?G:e};
_.V.booleanString=function(G){return(!!G).toString()};
_.V.equals=function(){for(var G=_.Bw.apply(0,arguments),e=G[0],r=1;r<G.length;r++)if(e!=G[r])return!1;return!0};
_.V.isGreaterThan=function(G,e){return G>e};
_.V.isLessThan=function(G,e){return G<e};
_.V.logicalAND=function(){for(var G=_.Bw.apply(0,arguments),e=!!G[0],r=1;r<G.length;r++)e=e&&!!G[r];return e};
_.V.logicalOR=function(){for(var G=_.Bw.apply(0,arguments),e=!!G[0],r=1;r<G.length;r++)e=e||!!G[r];return e};
_.V.toBool=function(G){return!!G};
LU.prototype.toBool=LU.prototype.toBool;LU.prototype.logicalOR=LU.prototype.logicalOR;LU.prototype.logicalAND=LU.prototype.logicalAND;LU.prototype.isLessThan=LU.prototype.isLessThan;LU.prototype.isGreaterThan=LU.prototype.isGreaterThan;LU.prototype.equals=LU.prototype.equals;LU.prototype.booleanString=LU.prototype.booleanString;LU.prototype.bindIfDefined=LU.prototype.bindIfDefined;LU.prototype.bindIf=LU.prototype.bindIf;_.B([_.Em()],LU);_.W3Y=[LU.prototype];var Njd;var L3H;var Gm=function(){return _.m.apply(this,arguments)||this};
_.K(Gm,_.m);Gm.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
Gm.prototype.onBackIconTap_=function(){window.history.back()};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Gm.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Gm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Gm.prototype,"data",void 0);_.B([_.aR({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],Gm);
_.A(Gm,"yt-header-with-back-renderer",function(){if(L3H===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;Njd===void 0&&(Njd=document.createElement("template"));var Z=Njd;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);L3H=G}G=L3H;return G},{mode:2});var GA8;var em8;var eB=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.K(eB,_.m);_.V=eB.prototype;_.V.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.V.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.isDarkTheme=G,this.setUrl())};
_.V.dataChanged=function(){var G=this;if(this.data){var e=this.setUrl();e&&_.L2({destination:window,iframe:this.iframe,origin:_.e$y(e.toString()),channelName:"yt-iframe",onMessage:function(r){(r=G.getCommunicationCommand(r.data))&&G.ytComponentBehavior.resolveCommand(r)},
onEstablished:function(){}})}};
_.V.setUrl=function(){if(this.data&&this.data.iframeUrl){var G=_.FF(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(G)return _.Ge(this.iframe,G),G}};
_.V.getCommunicationCommand=function(G){var e;if((e=this.data)!=null&&e.onCommunicationCommandsMap){e=this.data.onCommunicationCommandsMap.find(function(O){return O.key===G});
if(e==null?0:e.value)return e==null?void 0:e.value;try{var r=FNy(_.NU(G)),Z=this.data.onCommunicationCommandsMap.find(function(O){return O.key===(r==null?void 0:r.getMethodName())});
if(Z==null?0:Z.value)return Z==null?void 0:Z.value}catch(O){}}};
eB.prototype.dataChanged=eB.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],eB.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],eB.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],eB.prototype,"actionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],eB.prototype,"data",void 0);
_.B([_.n({value:!1}),_.x("design:type",Boolean)],eB.prototype,"isDarkTheme",void 0);_.B([_.hs("#iframe"),_.x("design:type",HTMLIFrameElement)],eB.prototype,"iframe",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],eB.prototype,"dataChanged",null);_.B([_.aR({is:"yt-iframe-renderer",disableElementRegistration:!0})],eB);
_.A(eB,"yt-iframe-renderer",function(){if(em8===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;GA8===void 0&&(GA8=document.createElement("template"));var Z=GA8;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);em8=G}G=em8;return G},{mode:2});_.rm=function(G){_.pB.call(this);this.callback=G;this.bezier=new Wvj(0,0,.4,0,.2,1,1,1);this.delay=new _.wE(this.next,window,this);this.JSC$17054_animating=!1;_.Xx(this,this.delay)};
_.K(_.rm,_.pB);_.rm.prototype.isAnimating=function(){return this.JSC$17054_animating};
_.rm.prototype.start=function(G,e,r){this.config={from:G,to:e,duration:r,startTime:(0,_.vG)()};this.JSC$17054_animating=!0;this.next()};
_.rm.prototype.stop=function(){this.delay.stop();this.JSC$17054_animating=!1;this.config=void 0};
_.rm.prototype.next=function(){if(this.config){var G=this.config,e=G.from,r=G.to,Z=G.duration;G=G.startTime;var O=(0,_.vG)()-G;G=this.bezier;Z=LvE(G,O/Z);if(Z==0)G=G.y0;else if(Z==1)G=G.y3;else{O=j_(G.y0,G.y1,Z);var M=j_(G.y1,G.y2,Z);G=j_(G.y2,G.y3,Z);O=j_(O,M,Z);M=j_(M,G,Z);G=j_(O,M,Z)}G=_.j0(G,0,1);this.callback(e+(r-e)*G);G<1?this.delay.start():this.JSC$17054_animating=!1}};_.Z6=new _.Gz("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var r2H={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},Odl=function(G,e,r,Z){_.pB.call(this);this.JSC$17065_miniAppId=G;this.localReleaseId=e;this.derivedDeviceInterface=r;this.isForeground=Z;this.JSC$17065_playNonceResolver=new _.G1;this.playPingTimerId=NaN;this.playPingIntervalMs=_.qt("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.qt("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.R("enable_displaying_ppn");this.JSC$17065_miniAppClientDataProvider=_.v_().resolve(_.Z6);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;ZdW(this);var O=setTimeout(function(){_.FH(new _.Cr("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17065_playNonceResolver.promise.then(function(){clearTimeout(O)})};
_.K(Odl,_.pB);var VaH=function(G,e){G.JSC$17065_playNonceResolver.resolve(e!=null?e:SW(8));G.enableDisplayingPpn&&MaV(G).then(function(r){G.JSC$17065_miniAppClientDataProvider.clientData.set("post_play_nonce",r)})},MaV=function(G){return _.D(function(e){return e.nextAddress==1?e.yield(G.JSC$17065_playNonceResolver.promise,2):e.return(e.yieldResult)})},ZdW=function(G){var e,r;
_.D(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$17065_playNonceResolver.promise,2);e=Z.yieldResult;r={miniAppInfo:{externalPostId:G.JSC$17065_miniAppId,localReleaseId:G.localReleaseId,postPlayNonce:e,derivedDeviceInterface:G.derivedDeviceInterface}};_.gJ(r);_.HL(Z)})},TWC=function(G){G.state!==0?_.FH(new _.Cr("[MiniAppPlayLogger] recordPlayStart failed with state "+r2H[G.state])):(G.state=1,OT(G,"ma_cl"),M3(G,"PLAY_EVENT_TYPE_PLAY_START"),hm8(G))},DBB=function(G){G.isForeground=!1;
M3(G,"PLAY_EVENT_TYPE_PLAY_PAUSE")},ECH=function(G){G.state!==1&&G.state!==2?_.FH(new _.Cr("[MiniAppPlayLogger] recordPlayEnd failed with state "+r2H[G.state])):(G.state=3,window.clearInterval(G.playPingTimerId),G.playPingTimerId=NaN,P9$(),M3(G,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},idd=function(G,e){G.state===2&&G.gameReady&&(G.firstClickRecorded?Date.now()-G.clickRecordedMs<G.playClickIntervalMs||(G.clickRecordedMs=Date.now(),M3(G,"PLAY_EVENT_TYPE_PLAY_CLICK")):e&&(OT(G,"ma_fua"),M3(G,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),G.firstClickRecorded=!0,G.clickRecordedMs=Date.now()))};
Odl.prototype.logError=function(G){var e=this,r;_.D(function(Z){if(Z.nextAddress==1)return G.metadata.externalPostId=e.JSC$17065_miniAppId,r=G.metadata,Z.yield(Promise.race([e.JSC$17065_playNonceResolver.promise,new Promise(function(O){setTimeout(function(){O("")},3E4)})]),2);
r.postPlayNonce=Z.yieldResult;G.metadata.localReleaseId=e.localReleaseId;G.loggingError.level="WARNING";_.yx(G.loggingError,G.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:G.metadata});_.HL(Z)})};
var bdW=function(G,e,r,Z){var O,M,T,E,b,w;_.D(function(q){if(q.nextAddress==1)return q.yield(G.JSC$17065_playNonceResolver.promise,2);O=q.yieldResult;M={externalPostId:G.JSC$17065_miniAppId,localReleaseId:G.localReleaseId,postPlayNonce:O,sdkVersion:r,api:e};Z!==void 0&&(M.networkRequestsMeasurement={networkRequests:_.vp(Z,1),cachedRequests:_.vp(Z,2),transferredBytes:_.vp(Z,3)},(T=Z)==null?0:_.h3(T,OP,6))&&(M.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((E=_.SS(Z,
OP,6))==null?void 0:R$(E,1))||"0",cacheHits:((b=_.SS(Z,OP,6))==null?void 0:R$(b,2))||"0",cachedBytes:((w=_.SS(Z,OP,6))==null?void 0:R$(w,3))||"0"});_.cg("miniAppSdkUsage",M);_.HL(q)})},wYY=function(G,e,r){var Z,O,M,T,E,b,w,q,t,g,l,X,H,I,C,u;
_.D(function(P){if(P.nextAddress==1)return P.yield(G.JSC$17065_playNonceResolver.promise,2);Z=P.yieldResult;O={externalPostId:G.JSC$17065_miniAppId,localReleaseId:G.localReleaseId,postPlayNonce:Z,sdkVersion:r,measurementWindow:{startTimestampMs:String(q_(e,1)),endTimestampMs:String(q_(e,2))},frameRate:{averageFrameTimeDeltaMs:t3(e,3),averageFrameIdleTimeMs:t3(e,4)}};_.h3(e,M8,5)&&(O.networkRequests={networkRequests:(M=b9(e))==null?void 0:_.vp(M,1),cachedRequests:(T=b9(e))==null?void 0:_.vp(T,2),transferredBytes:(E=
b9(e))==null?void 0:_.vp(E,3),sameOriginStatusCodeToCounts:vC8((b=b9(e))==null?void 0:Ilp(b,4)),crossOriginStatusCodeToCounts:vC8((w=b9(e))==null?void 0:Ilp(w,5))},(q=b9(e))==null?0:_.h3(q,OP,6))&&(O.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((t=b9(e))==null?void 0:(g=_.SS(t,OP,6))==null?void 0:R$(g,1))||"0",cacheHits:((l=b9(e))==null?void 0:(X=_.SS(l,OP,6))==null?void 0:R$(X,2))||"0",cachedBytes:((H=b9(e))==null?void 0:(I=_.SS(H,OP,6))==null?void 0:R$(I,3))||"0"});_.h3(e,
QUc,7)&&(O.gameCapture={averageFrameTimeDeltaMs:(C=_.SS(e,QUc,7))==null?void 0:t3(C,1),averageFrameIdleTimeMs:(u=_.SS(e,QUc,7))==null?void 0:t3(u,2)});_.cg("miniAppPerformanceMetrics",O);_.HL(P)})},$B2=function(G,e){var r,Z;
return _.D(function(O){if(O.nextAddress==1)return O.yield(G.JSC$17065_playNonceResolver.promise,2);r=O.yieldResult;Z={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:G.JSC$17065_miniAppId,postPlayNonce:r,miniAppReleaseId:G.localReleaseId},derivedDeviceInterface:G.derivedDeviceInterface,adTriggerType:e,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.cg("miniAppAdEvent",Z);_.HL(O)})};
Odl.prototype.disposeInternal=function(){_.pB.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var M3=function(G,e,r,Z){r=r===void 0?{}:r;Z=Z===void 0?!1:Z;var O,M,T,E;_.D(function(b){if(b.nextAddress==1)return O=G.isForeground,M=G.beforeReady,b.yield(G.JSC$17065_playNonceResolver.promise,2);T=b.yieldResult;E={externalPostId:G.JSC$17065_miniAppId,localReleaseId:G.localReleaseId,derivedDeviceInterface:G.derivedDeviceInterface,postPlayNonce:T,type:e};r.sequenceGroup=T;E.playState=M?"PLAY_STATE_NOT_READY":O?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.cg("miniAppPlayEvent",E,
r);Z&&_.Yc();_.HL(b)})},OT=function(G,e){var r;
_.D(function(Z){if(Z.nextAddress==1)return r=(0,_.vG)(),Z.yield(G.JSC$17065_playNonceResolver.promise,2);_.jq(e,r);_.HL(Z)})},hm8=function(G){isNaN(G.playPingTimerId)&&(G.playPingTimerId=_.aZ(function(){G.state!==1&&G.state!==2?_.FH(new _.Cr("[MiniAppPlayLogger] reportPlayPing failed with state "+r2H[G.state])):M3(G,"PLAY_EVENT_TYPE_PLAY_PING")},G.playPingIntervalMs))},vC8=function(G){return Array.from(G.entries()).map(function(e){var r=_.h(e);
e=r.next().value;r=r.next().value;return{key:e,value:r}})};var SVl=function(){},qVY=function(G,e){G.showMiniAppAdCommand=e.showMiniAppAdCommand;
G.isEmbeddedInWebview=e.isEmbeddedInWebview;G.playLogger=e.playLogger},gC2=function(G,e){var r;
return _.D(function(Z){if(Z.nextAddress==1){if(!G.showMiniAppAdCommand||!G.isEmbeddedInWebview)return Z.return(ta8(G,e));G.adResolver=new _.G1;var O=new u9;r=_.qa(O,3,e);jM(G.showMiniAppAdCommand,qPW(r));return Z.yield(G.adResolver.promise,2)}return Z.return(Z.yieldResult)})};
SVl.prototype.onAdFinished=function(G){G=EpE(G);var e;(e=this.adResolver)==null||e.resolve(G)};
var ta8=function(G,e){var r;return _.D(function(Z){if(Z.nextAddress==1)Z=Z.yield((r=G.playLogger)==null?void 0:$B2(r,yff(e)),2);else{var O=Z.return;var M=new D1P;M=_.qa(M,1,2);Z=O.call(Z,M)}return Z})};var llW=new _.Gz("INNERTUBE_MANAGER_TOKEN");var RmW=function(){this.callbacks={}};
RmW.prototype.initialize=function(G){var e=this;this.callbacks=G;window.youtubewebview?window.youtubewebview.onmessage=function(r){j8C(e,r)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(r){j8C(e,r)})};
var j8C=function(G,e){if(e.data)try{var r=FNy(e.data);if(_.Xo(_.Va(r,1))!=null){var Z=i6n(_.gU(r,2));switch(r.getMethodName()){case "yt-mini-app-load-audio-state":var O,M;(M=(O=G.callbacks).onAudioStateLoaded)==null||M.call(O,_.Sc(Z,dl(Z,C6,1)));break;case "yt-mute-mini-app":var T,E;(E=(T=G.callbacks).onMuteMiniApp)==null||E.call(T);break;case "yt-unmute-mini-app":var b,w;(w=(b=G.callbacks).onUnmuteMiniApp)==null||w.call(b);break;case "yt-playable-exit":var q,t;(t=(q=G.callbacks).onExit)==null||t.call(q);
break;case "yt-post-play-nonce":var g,l;(l=(g=G.callbacks).onPostPlayNonceReceived)==null||l.call(g,jc(Z,2,C6));break;case "yt-confirm-exit-mini-app":var X,H;(H=(X=G.callbacks).confirmExitMiniApp)==null||H.call(X);break;case "yt-confirm-exit-mini-app-edu":var I,C;(C=(I=G.callbacks).confirmExitMiniAppEdu)==null||C.call(I);break;case "yt-benchmarking-response":var u,P;(P=(u=G.callbacks).onNativeBenchmarkingMessageReceived)==null||P.call(u,jc(Z,2,C6));break;case "yt-mini-app-load-3p-consent-state":var F,
J;(J=(F=G.callbacks).multiplayer3pAckStateLoaded)==null||J.call(F,_.Sc(Z,dl(Z,C6,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var U,e$;(e$=(U=G.callbacks).exitMiniAppSeenStateLoaded)==null||e$.call(U,_.Sc(Z,dl(Z,C6,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var Dq,bF;(bF=(Dq=G.callbacks).onNavigateToNewMiniApp)==null||bF.call(Dq);break;case "yt-game-data-available":var Kf,ti;(ti=(Kf=G.callbacks).onGameDataAvailable)==null||ti.call(Kf,jc(Z,2,C6));break;case "yt-pause-mini-app":var Ry,
nf;(nf=(Ry=G.callbacks).onPauseMiniApp)==null||nf.call(Ry);break;case "yt-resume-mini-app":var k4,SE;(SE=(k4=G.callbacks).onResumeMiniApp)==null||SE.call(k4);break;case "yt-playable-ad-finished":var Fn,kw;(kw=(Fn=G.callbacks).onAdFinished)==null||kw.call(Fn,jc(Z,2,C6))}}else _.FH(Error("Vh"))}catch(Lf){_.yx(Error("Wh"))}else _.FH(Error("Xh"))};var FJ_=function(G){this.rpcErrorCode=G};var V8=function(G,e,r){this.intervalMs=G;this.apiFunc=e;this.type=r;this.schedulerReady=!0};
V8.prototype.call=function(G){var e=this,r;return _.D(function(Z){if(Z.nextAddress==1){if(e.type!==1&&G===e.cachedValue)return Z.return();e.pendingApiRequestResolver||(e.pendingApiRequestResolver=new _.G1);r=e.pendingApiRequestResolver.promise;e.cachedValue=G;return Z.yield(alH(e),2)}return Z.return(r)})};
V8.prototype.flush=function(G){G=G===void 0?!1:G;var e=this;return _.D(function(r){return e.cachedValue===void 0?r.return():r.yield(e.apiFunc(e.cachedValue,G),0)})};
var alH=function(G){var e,r,Z;return _.D(function(O){switch(O.nextAddress){case 1:if(!G.schedulerReady||!G.pendingApiRequestResolver)return O.return();G.schedulerReady=!1;e=G.pendingApiRequestResolver;G.pendingApiRequestResolver=void 0;_.jr(O,2);if(G.cachedValue===void 0){O.jumpTo(4);break}return O.yield(G.apiFunc(G.cachedValue),5);case 5:r=O.yieldResult,e.resolve(r);case 4:_.rL(O,3);break;case 2:Z=_.k5(O),e.reject(Z);case 3:setTimeout(function(){return _.D(function(M){G.schedulerReady=!0;return M.yield(alH(G),
0)})},G.intervalMs),_.HL(O)}})};var xia=window.location.origin+"/miniapp_cloudsaves",JfS=[400,401],XYo=_.qt("cloud_save_game_data_rate_limit_ms",3E3),kAW=function(G){var e=this;this.JSC$17109_miniAppId=G;this.loadAttempts=0;this.cloudSaveIntervalMs=XYo;this.initialDownloadDataSucceeded=!1;this.JSC$17109_playNonceResolver=new _.G1;this.scottyUploadRateLimiter=new V8(this.cloudSaveIntervalMs,function(r,Z){return K8V(e,r,Z)},2);
this.downloadDataPromise=flW(this);this.downloadDataPromise.then(function(){e.initialDownloadDataSucceeded=!0}).catch(function(){})},HdH=function(G,e){e.then(function(r){return G.JSC$17109_playNonceResolver.resolve(r)})},dBo=function(G){return _.D(function(e){return G.cachedData===void 0?e.return(G.downloadDataPromise):e.return(G.cachedData)})},oCC=function(G,e){return _.D(function(r){G.cachedData=e;
if(!G.initialDownloadDataSucceeded)throw Error("Yh");return r.yield(G.scottyUploadRateLimiter.call(e),0)})},s8W=function(){return new Promise(function(G){setTimeout(G,1E3,"")})},Q8H=function(G,e){var r,Z;
return _.D(function(O){if(O.nextAddress==1)return r=G.JSC$17109_miniAppId,O.yield(Promise.race([G.JSC$17109_playNonceResolver.promise,s8W()]),2);Z={"X-YouTube-MiniAppId":r,"X-YouTube-PostPlayNonce":O.yieldResult};"DELEGATED_SESSION_ID"in _.JH&&EJa(e,Z);return O.return(Z)})},K8V=function(G,e,r){r=r===void 0?!1:r;
return _.D(function(Z){return AfS()?_.R("enable_cloud_save_error_popup_after_retry")?Z.return(new Promise(function(O,M){var T,E,b,w,q;return _.D(function(t){switch(t.nextAddress){case 1:T=0,E=!0,w=b=null;case 2:if(!(E&&T++<2)){t.jumpTo(4);break}_.jr(t,5);return t.yield(IlW(G,e,r),7);case 7:b=t.yieldResult;E=b.ok?!1:!JfS.includes(b.status);_.rL(t,2);break;case 5:w=q=_.k5(t);E=BNS(w);t.jumpTo(2);break;case 4:b?b.ok?(hc(G,XYo),O()):(hc(G,G.cloudSaveIntervalMs*2),M(Error("Zh`"+String(b.status),{cause:{rpcErrorCode:b.status}}))):
(hc(G,G.cloudSaveIntervalMs*2),M(w||Error("$h"))),_.HL(t)}})})):Z.return(new Promise(function(O,M){var T,E;
return _.D(function(b){if(b.nextAddress==1){if(G.JSC$17109_miniAppId==="")return M(Error("ai")),b.return();_.jr(b,2);return b.yield(IlW(G,e,r),4)}if(b.nextAddress!=2)return T=b.yieldResult,T.ok?(hc(G,XYo),O()):(hc(G,G.cloudSaveIntervalMs*2),M(Error("Zh`"+String(T.status),{cause:{rpcErrorCode:T.status}}))),_.rL(b,0);E=_.k5(b);hc(G,G.cloudSaveIntervalMs*2);M(E);_.HL(b)})})):Z.return()})},IlW=function(G,e,r){r=r===void 0?!1:r;
var Z,O,M;return _.D(function(T){if(T.nextAddress==1)return Z=_.uH((new TextEncoder).encode(e)),O=PaF(),T.yield(Q8H(G,O),2);M=T.yieldResult;return T.return(fetch(O,{method:"POST",body:new Blob([Z]),headers:M,keepalive:r}))})},flW=function(G){var e,r;
return _.D(function(Z){if(Z.nextAddress==1){if(!AfS())return Z.return("");if(G.JSC$17109_miniAppId==="")throw Error("ai");if(G.loadAttempts>2)return Z.return(G.downloadDataPromise);_.jr(Z,2);return Z.yield(pYY(G),4)}if(Z.nextAddress!=2)return e=Z.yieldResult,Z.return(e);r=_.k5(Z);if(BNS(r)&&++G.loadAttempts<2)return Z.return(flW(G));throw r;})},pYY=function(G){var e,r,Z,O,M;
return _.D(function(T){switch(T.nextAddress){case 1:return _.jr(T,2),e=PaF(),T.yield(Q8H(G,e),4);case 4:return r=T.yieldResult,T.yield(fetch(e,{method:"GET",headers:r}),5);case 5:return Z=T.yieldResult,Z.ok?T.yield(Z.text(),6):T.return(Promise.reject(Error("bi`"+String(Z.status),{cause:new FJ_(Z.status)})));case 6:return O=T.yieldResult,T.return((new TextDecoder).decode(_.NU(O)));case 2:return M=_.k5(T),T.return(Promise.reject(M))}})},hc=function(G,e){G.cloudSaveIntervalMs=e;
G.scottyUploadRateLimiter.intervalMs=G.cloudSaveIntervalMs};
kAW.prototype.flush=function(){var G=this;return _.D(function(e){return G.initialDownloadDataSucceeded?e.yield(G.scottyUploadRateLimiter.flush(!0),0):e.return()})};var CHo=EP(DL(1),hO(1)),uoY=EP(DL(1),hO(3)),Tm=function(G){this.callbacks=G};
_.V=Tm.prototype;_.V.onAudioToggled=function(G,e){(e===void 0||e)&&_.$N("yt-mini-app-is-audio-enabled",G,2592E3)};
_.V.onPause=function(){this.onAudioToggled(!1,!1)};
_.V.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.V.returnNativeBenchmarkingMessage=function(){};
_.V.sendGameData=function(){};
_.V.sendStartGameFrameCapture=function(){};
var Ui_=function(G,e,r){this.callbacks=G;var Z=this;this.sdkVersion=new _.G1;this.channel=new hXl(_.L2({destination:window,iframe:e,origin:(new URL(r.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var O=D6;var M=DL(5);var T=new gpl;T=_.XC(T,1,1E4);M=_.fj(M,4,kjE,T);O(Z,M);Z.onAudioToggled(Z.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){Z.sdkVersion.resolve("")},1E4)};
_.K(Ui_,Tm);_.V=Ui_.prototype;_.V.onAudioToggled=function(G,e){Tm.prototype.onAudioToggled.call(this,G,e===void 0?!0:e);e=D6;var r=DL(2),Z=new qAP;G=_.qM(Z,1,G);G=_.fj(r,3,kjE,G);e(this,G)};
_.V.onPause=function(){Tm.prototype.onPause.call(this);D6(this,DL(3))};
_.V.onResume=function(){Tm.prototype.onResume.call(this);D6(this,DL(4))};
_.V.returnNativeBenchmarkingMessage=function(G){var e=D6,r=DL(6);var Z=hO(_.h3(G,Bo,1)?1:2);G=_.h3(G,Bo,1)?G:null;Z=_.fj(Z,5,TM,G);e(this,EP(r,Z))};
_.V.sendGameData=function(G){var e=D6,r=DL(7);G=_.fj(r,5,kjE,G);e(this,G)};
_.V.sendStartGameFrameCapture=function(){D6(this,DL(9))};
var ET=function(G,e,r){var Z,O,M;return _.D(function(T){if(T.nextAddress==1)return Z=G.callbacks,O=Z.onSdkCalled,M=e,T.yield(G.sdkVersion.promise,2);O.call(Z,M,T.yieldResult,r);_.HL(T)})};
Ui_.prototype.onMessage=function(){var G=this;return E$E(vV,function(e){var r,Z,O,M,T,E,b,w,q,t,g,l,X,H,I,C,u,P,F,J,U,e$,Dq,bF,Kf,ti,Ry,nf,k4,SE,Fn,kw,Lf,vc,IW,Hc,a8,t2,hi,rj,tS,OV,RW,Zl,pm,Bc;return _.D(function(wj){switch(wj.nextAddress){case 1:if(!ulW(e.data))return _.FH(Error("ci")),wj.return();r=_.lg(e.data,1);_.R("enable_iframe_message_get_type_via_fields")&&(Z=e.data,r=O=_.lg(Z,1));switch(r){case 8:if(e.data.hasMetadata()){var by=G.sdkVersion,ea=by.resolve;var U_=e.data.getMetadata();U_=_.gU(U_,
1);ea.call(by,U_);clearTimeout(G.sdkVersionTimeoutId)}break;case 6:return wj.jumpTo(2);case 16:if(!_.TB(e.data,opE,14,wQ))return wj.return();M=_.a$(e.data,opE,14,wQ);(E=(T=G.callbacks).onGameFrameReceived)==null||E.call(T,M);return wj.return();case 17:if(!_.TB(e.data,d1w,15,wQ))return wj.return();(w=(b=G.callbacks).onGameAudioReceived)==null||w.call(b,_.a$(e.data,d1w,15,wQ));return wj.return();case 1:if(by=_.a$(e.data,jUE,2,wQ))switch(_.lg(by,1)){case 1:G.callbacks.onFirstFrameReady();if(_.R("enable_network_request_logging_on_game_events")&&
_.h3(by,M8,4)){ET(G,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.SS(by,M8,4));break}ET(G,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(U_=(ea=G.callbacks).onGameReady)==null||U_.call(ea);if(_.R("enable_network_request_logging_on_game_events")&&_.h3(by,M8,4)){ET(G,"MINI_APP_SDK_API_GAME_READY",_.SS(by,M8,4));break}ET(G,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.TB(by,VJ,3,aXW))G.callbacks.onResourceLoaded(_.a$(by,VJ,3,aXW))}return wj.return();case 3:return wj.jumpTo(3);case 4:return wj.jumpTo(4);
case 2:return wj.jumpTo(5);case 9:return wj.jumpTo(6);case 10:return G.callbacks.onClick(),wj.return();case 5:return wj.jumpTo(7);case 11:if(!_.TB(e.data,rQ,9,wQ))return wj.return();q=_.a$(e.data,rQ,9,wQ);(g=(t=G.callbacks).onBenchmarkingMessageReceived)==null||g.call(t,q);by=e.reply;ea=DL(1);U_=hO(1);var ly=new rQ;var gW=new Uint8Array(fbl(q,dl(q,b9w,6))|0);ly=XH(ly,5,b9w,_.Qv(gW,!1));U_=_.fj(U_,5,TM,ly);by.call(e,EP(ea,U_));return wj.return();case 12:return wj.jumpTo(8);case 13:return wj.jumpTo(9);
case 15:if(!_.R("enable_open_yt_content"))return e.reply(uoY),wj.return();if(!_.TB(e.data,H9W,12,wQ))return e.reply(EP(DL(1),hO(2))),wj.return();by=_.a$(e.data,H9W,12,wQ);l=_.gU(by,1);G.callbacks.onOpenYTContent(l);e.reply(CHo);return wj.return();case 14:return wj.jumpTo(10);default:return wj.return()}wj.jumpTo(0);break;case 2:if(!_.TB(e.data,i9,5,wQ))return wj.return();ea=e.data;by=dl(ea,wQ,5);ea=ea.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;X=nC_(ea,ea[_.MW]|0,i9,by)||i9[cS4]||(i9[cS4]=
Yl_(i9));by=_.ix(X,ZL,1,_.bx());H=_.h(by);I=H.next();case 12:if(I.done){wj.jumpTo(14);break}C=I.value;u=new _.Cr;u.level=_.lg(C,2)===1?"WARNING":"ERROR";P=WJS(C.getSource());return wj.yield(G.sdkVersion.promise,15);case 15:F={source:P,sdkVersion:wj.yieldResult};_.VW(_.Va(C,6))!=null?(u.message=C.getMessage(),u.stack=_.gU(C,5),F.sdkErrorType=NN_(_.lg(C,6)),_.VW(_.Va(C,7))!=null&&(F.sdkApi=LJa(_.lg(C,7)))):u.stack=void 0;U=J=void 0;(U=(J=G.callbacks).onError)==null||U.call(J,{loggingError:u,metadata:F});
I=H.next();wj.jumpTo(12);break;case 14:return wj.return();case 3:return _.jr(wj,16),by=wj.yield,ea=G.callbacks,U_=ea.onSave,ly=_.a$(e.data,tgn,4,wQ),ly=_.gU(ly,1),by.call(wj,U_.call(ea,ly),18);case 18:e.reply(CHo);_.rL(wj,17);break;case 16:return e$=_.k5(wj),Dq=aN,bF=e$,Kf=G.callbacks,ti="MINI_APP_SDK_API_SAVE_DATA",wj.yield(G.sdkVersion.promise,19);case 19:Dq(bF,Kf,ti,wj.yieldResult),e.reply(uoY);case 17:return wj.yield(ET(G,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return wj.return();case 4:return _.jr(wj,
21),wj.yield(G.callbacks.onLoad(),23);case 23:Ry=wj.yieldResult;by=e.reply;ea=DL(1);U_=hO(1);ly=new tgn;ly=_.QB(ly,1,Ry);U_=_.fj(U_,3,TM,ly);by.call(e,EP(ea,U_));_.rL(wj,22);break;case 21:return nf=_.k5(wj),k4=aN,SE=nf,Fn=G.callbacks,kw="MINI_APP_SDK_API_LOAD_DATA",wj.yield(G.sdkVersion.promise,24);case 24:k4(SE,Fn,kw,wj.yieldResult),e.reply(uoY);case 22:return wj.yield(ET(G,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return wj.return();case 5:_.jr(wj,26);G.callbacks.onSendHighScore(Fx(_.a$(e.data,
pfW,3,wQ).getValue()));e.reply(EP(DL(1),hO(1)));_.rL(wj,27);break;case 26:return Lf=_.k5(wj),vc=aN,IW=Lf,Hc=G.callbacks,a8="MINI_APP_SDK_API_SEND_SCORE",wj.yield(G.sdkVersion.promise,28);case 28:vc(IW,Hc,a8,wj.yieldResult),e.reply(uoY);case 27:return wj.yield(ET(G,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return wj.return();case 6:if(!_.TB(e.data,CmW,8,wQ)){wj.jumpTo(30);break}by=wj.yield;ea=_.a$(e.data,CmW,8,wQ);ea=_.lg(ea,1);return by.call(wj,ET(G,LJa(ea)),30);case 30:return wj.return();case 7:return by=
e.reply,ea=DL(1),U_=hO(1),ly=G.callbacks.getLanguage(),U_=XH(U_,4,TM,ja(ly)),by.call(e,EP(ea,U_)),wj.yield(ET(G,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return wj.return();case 8:if(!_.TB(e.data,IXb,10,wQ))return wj.return();t2=_.a$(e.data,IXb,10,wQ);hi=G.callbacks;rj=hi.onSdkPerformanceUpdate;return wj.yield(G.sdkVersion.promise,33);case 33:return rj.call(hi,t2,wj.yieldResult),wj.return();case 9:by=e.data;ea=dl(by,wQ,11);if(_.Xo(_.Va(by,ea))==null)return e.reply(EP(DL(1),hO(2))),wj.return();
tS=jc(e.data,11,wQ);G.callbacks.onShareInviteCode(tS);e.reply(CHo);return wj.yield(ET(G,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return wj.return();case 10:if(_.TB(e.data,SAb,13,wQ)){wj.jumpTo(35);break}return wj.yield(G.callbacks.onShowMiniAppAd(2),36);case 36:return OV=wj.yieldResult,e.reply(EP(DL(1),KIb(OV))),wj.yield(ET(G,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return wj.return();case 35:by=_.a$(e.data,SAb,13,wQ);a:switch(_.lg(by,1)){case 1:by={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:by={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:by={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}RW=by;Zl=RW.adType;pm=RW.sdkApi;by=wj.yield;ea=G.callbacks;U_=ea.onShowMiniAppAd;ly=_.a$(e.data,SAb,13,wQ);ly=_.gU(ly,2);return by.call(wj,U_.call(ea,Zl,ly||void 0),38);case 38:return Bc=wj.yieldResult,e.reply(EP(DL(1),KIb(Bc))),wj.yield(ET(G,pm),39);case 39:return wj.return()}})})};
var D6=function(G,e){_.D(function(r){G.channel.send(e);_.HL(r)})},XT=function(G,e,r){this.callbacks=G;
var Z=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;G=Nzs(e,(new URL(r.toString())).origin);this.gameSnacks=new avc(G);this.gameSnacks.page.onReady(function(){Z.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){Z.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var O,M;(M=(O=Z.callbacks).onGameReady)==null||M.call(O)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(O,M){try{Z.callbacks.onSendHighScore(M)}catch(T){aN(T,Z.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(O,M){var T;return _.D(function(E){if(E.nextAddress==1)return _.jr(E,2),E.yield(Z.callbacks.onSave(Z.decoder.decode(M)),4);if(E.nextAddress!=2)return _.rL(E,0);T=_.k5(E);aN(T,Z.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return E.return()})});
this.gameSnacks.storage.onLoad(function(){var O,M;return _.D(function(T){if(T.nextAddress==1)return _.jr(T,2),T.yield(Z.callbacks.onLoad(),4);if(T.nextAddress!=2)return O=T.yieldResult,T.return(Z.encoder.encode(O));M=_.k5(T);aN(M,Z.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return T.return(Z.encoder.encode(""))})});
this.gameSnacks.init()};
_.K(XT,Tm);XT.prototype.onAudioToggled=function(G,e){Tm.prototype.onAudioToggled.call(this,G,e===void 0?!0:e);var r;(r=this.gameSnacks)==null||r.audio.update(G)};
XT.prototype.onPause=function(){Tm.prototype.onPause.call(this);var G;(G=this.gameSnacks)==null||G.game.pause()};
XT.prototype.onResume=function(){Tm.prototype.onResume.call(this);var G;(G=this.gameSnacks)==null||G.game.resume()};var nCV=GkU,mBA=_.y(function(G){var e=G.data;var r=G.loadingProgress;var Z=G.forPaused;G=_.h(_.XQ("",void 0,"LYYTdd"));var O=G.next().value,M=G.next().value;G=_.h(_.XQ(!1,void 0,"K0waae"));var T=G.next().value,E=G.next().value,b=[],w=function(){return"transform: scaleX("+(_.FQ(r)||0)+")"},q=null,t=function(){return e()&&q!==null&&q!==void 0?q:q=e().showAnniversaryAnimation?6:nCV()};
_.Y8(function(){var H;if(e().timeOutMessages&&((H=e().timeOutMessages)==null?0:H.length)){q=null;H=_.h(b);for(var I=H.next();!I.done;I=H.next())clearTimeout(I.value);b.length=0;eRA(e().timeOutMessages,b,M,E)}},"BNu9j");
var g=function(){return!!e().persistentErrorMessageTitle},l=function(){return r!==void 0},X=function(){return e().title};
return _.v("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.v("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.v("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.v("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var H,I=(H=e().backgroundImage)==null?void 0:H.sources,C;return(I==null?0:I.length)?"background-image: url("+((C=I[0])==null?void 0:C.url)+")":""}}),_.v("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.v(_.S,{cond:function(){return!g()&&!(Z==null?0:Z())},
then:function(){var H={};return _.v("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.v("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.v(_.lO,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+t()},
data:function(){var I="loading_animation_"+t();return{animationConfig:{name:I,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+I+".json",loop:!0,autoplay:!0}}}})),_.v("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.v(_.S,{cond:X,
then:function(){return _.v("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},X)}}),_.v("p",{class:_.LC("miniAppSplashScreenViewModelTimeoutMessage",(H.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return T()},H)),
"aria-live":"polite"},O),_.v(_.S,{cond:l,then:function(){return _.v("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.v("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:w}))}})))}}),_.v(_.S,{cond:g,
then:function(){return _.v("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.v("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return e().persistentErrorMessageTitle}),_.v(_.S,{cond:function(){return!!e().persistentErrorMessageDescription},
then:function(){return _.v("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return e().persistentErrorMessageDescription})}}))}}),_.v(_.S,{cond:Z,
then:function(){return _.v("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.v("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.v("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},X))}})))},"Lf");var c2a=new _.Gz("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var YV8=DY;DY=function(G){function e(r){if(r){var Z,O;(Z=r.__spec)==null||(O=Z.didUnmount)==null||O.call(Z);for(Z=0;Z<r.childNodes.length;Z++)e(r.childNodes[Z])}}
YV8==null||YV8(G);qq(function(){for(var r=0;r<G.length;r++)e(G[r])})};var y2A=_.y(function(G){var e=G.data;var r=G.score;var Z=G.formattedScore;var O=G.onScoreChanged;var M=G.isEmbeddedInWebview;var T=_.T2("yt-mini-app-score-button-view-model"),E=function(){var l;return _.a(e==null?void 0:(l=e())==null?void 0:l.buttonViewModel,_.G$)},b=function(){var l;
return(r==null?void 0:r())||Number(e==null?void 0:(l=e())==null?void 0:l.lastScore)||0},w=function(){var l;
return(Z==null?void 0:Z())||((l=E())==null?void 0:l.title)||""},q,t=1;
if(G=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))G=Number(G),t=isNaN(G)?1:G/100;_.Y8(function(){O==null||O(b());var l;var X=_.X0((l=E())==null?void 0:l.onTap);if(X){l=_.a(X,rqc);var H,I,C;l=_.a(l==null?void 0:(H=l.panelLoadingStrategy)==null?void 0:(I=H.inlineContent)==null?void 0:(C=I.dialogViewModel)==null?void 0:C.customContent,tJ3)}else l=void 0;if(H=l)H.score=w()},"Aekez");
G=_.ev(function(){var l,X,H=e==null?void 0:(l=e())==null?void 0:(X=l.loggingDirectives)==null?void 0:X.trackingParams;H&&_.ke(_.v_().resolve(_.Qf),H);return!1});
_.yY(function(){if(T.value){var l=T.value.querySelector("button"),X=E();l&&X&&rpf(l,X);_.iC("yt-share-playable-with-high-score",function(){var H=b().toString(),I=e==null?void 0:e().onShareHighScoreCommand,C=e==null?void 0:e().highScoreShareClientParamIdentifier,u=M==null?void 0:M();I&&(u?(C=new Avv,H=_.QB(C,2,H),jM(I,H.JSC$12532_serializeBinary())):C&&(_.v_().resolve(c2a).clientParams.set(C,{miniAppClientParams:{highScore:H}}),nRf(I,!1)))})}});
var g=function(){var l=E();l&&(r==null?0:r())&&l.accessibilityText&&(l.accessibilityText=l.accessibilityText.replace(q,w()));q=w();return{numberValue:b(),numberText:w(),heightPx:36,fontSizeMultiplier:t,shouldAnimate:!(r==null||!r())&&!0}};
return _.v("yt-mini-app-score-button-view-model",{class:function(){var l={};return _.qo("miniAppScoreButtonViewModelHost",(l.miniAppScoreButtonViewModelIsVisible=b()!==0,l))},
el:T,"on:click":G},SuF(!1,function(){return _.v("span",{style:"display:none;"},b)}),_.v(_.E2,{data:function(){var l;
return e==null?void 0:(l=e())==null?void 0:l.buttonViewModel}},{buttonViewModel:function(l){return _.v(_.wF,{data:l.data,
animatedTextProps:g})}}))},"Nf");var xBo=_.y(function(G){var e,r=(e=_.SF("yt-mini-app-is-theater-mode-enabled"))!=null?e:!1,Z=_.R("enable_playable_container_save_button"),O=_.R("enable_play_next_destination_page_in_toolbar");e={};return _.v("ytm-mini-app-top-bar-view-model",null,_.v("div",{class:_.LC("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))},_.v("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.v(_.S,{cond:function(){var M;return!!G.data().backButtonEdu&&
!((M=G.isExitMiniAppSeen)==null?0:M.call(G))},
then:function(){return _.v(_.E2,{data:function(){return G.data().backButtonEdu}},{buttonViewModel:_.wF})},
else:function(){return _.v(_.E2,{data:function(){return G.data().backButton}},{buttonViewModel:_.wF})}}),_.v(_.S,{cond:function(){return G.data().viewAllButton&&!0},
then:function(){return _.v(_.E2,{data:function(){return G.data().viewAllButton}},{buttonViewModel:_.wF})}}),_.v(_.S,{cond:function(){return G.data().title&&!0},
then:function(){return _.v("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return G.data().title})}})),_.v("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.v(_.S,{cond:function(){var M;
return(M=G.isDesktopPlayPage)==null?void 0:M.call(G)},
then:function(){return _.v(_.$Z,null,_.v(A2W,{highScoreButton:function(){return G.data().highScoreButton},
score:G.score,formattedScore:G.formattedScore,onScoreChanged:G.onScoreChanged,isEmbeddedInWebview:G.isEmbeddedInWebview}),_.v(F8a,{enableSaveButton:function(){return _.FQ(Z)},
saveButton:function(){return G.data().saveButton},
isSaved:G.isSaved,onSaveToggled:function(){return G.onSaveToggled}}),_.v(J2V,{menuButton:function(){return G.data().menuButton}}))},
else:function(){return _.v(_.S,{cond:function(){return!1},
then:function(){return _.v(_.E2,{data:function(){return G.data().playPageButton}},{buttonViewModel:function(M){return _.v(_.wF,{data:M.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.v(A2W,{highScoreButton:function(){return G.data().highScoreButton},
score:G.score,formattedScore:G.formattedScore,onScoreChanged:G.onScoreChanged,isEmbeddedInWebview:G.isEmbeddedInWebview})}})}})),_.v("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.v(_.E2,{data:function(){return G.data().muteButton}},{toggleButtonViewModel:function(M){var T=M.data;
return _.v(_.pb,{data:function(){var E,b;return Object.assign({},T(),{isToggled:(b=(E=G.isAudioEnabled)==null?void 0:E.call(G))!=null?b:!0})},
onToggle:G.onAudioToggled,useOutlinedIcon:!0})}}),_.v(_.E2,{data:function(){return G.data().theatreModeButton}},{toggleButtonViewModel:function(M){var T=M.data;
return _.v("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.v(_.pb,{data:function(){return Object.assign({},T(),{isToggled:r})},
useOutlinedIcon:!0}))}}),_.v(BWW,{fullscreenButton:function(){return G.data().fullscreenButton}}),_.v(_.S,{cond:function(){return _.FQ(O)&&G.data().viewAllButton&&!1},
then:function(){return _.v(_.E2,{data:function(){return G.data().viewAllButton}},{buttonViewModel:_.wF})}}),_.v(_.S,{cond:function(){var M;
return!((M=G.isDesktopPlayPage)==null?0:M.call(G))},
then:function(){return _.v(_.$Z,null,_.v(F8a,{enableSaveButton:function(){return _.FQ(Z)},
saveButton:function(){return G.data().saveButton},
isSaved:G.isSaved,onSaveToggled:function(){return G.onSaveToggled}}),_.v(J2V,{menuButton:function(){return G.data().menuButton}}))}}))))},"Of");
xBo.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var J2V=_.y(function(G){return _.v(_.E2,{data:G.menuButton},{buttonViewModel:_.wF})},"Pf"),F8a=_.y(function(G){var e=G.enableSaveButton;
var r=G.saveButton;var Z=G.isSaved;var O=G.onSaveToggled;return _.v(_.S,{cond:function(){return e()&&!(r==null||!r())},
then:function(){return _.v(_.E2,{data:function(){var M=_.a(r==null?void 0:r(),_.rq),T;return{toggleButtonViewModel:Object.assign({},M,{isToggled:(T=Z==null?void 0:Z())!=null?T:!(M==null||!M.isToggled)})}}},{toggleButtonViewModel:function(M){return _.v(_.pb,{data:M.data,
onToggle:O})}})}})},"Qf"),A2W=_.y(function(G){var e=G.highScoreButton;
var r=G.score;var Z=G.formattedScore;var O=G.onScoreChanged;var M=G.isEmbeddedInWebview;return _.v(_.E2,{data:e},{miniAppScoreButtonViewModel:function(T){return _.v(y2A,{data:T.data,score:r,formattedScore:Z,onScoreChanged:O,isEmbeddedInWebview:M})}})},"Rf"),BWW=_.y(function(G){G=G.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.v(_.$Z,null):_.v(_.E2,{data:G},{buttonViewModel:_.wF})},"Sf");_.PHW=new _.Gz("DESKTOP_CURRENT_PAGE");var Gqm=_.y(function(G){var e=G.data;var r=_.R("force_active_time_logging_webview"),Z=!1,O=new RmW,M=void 0,T=void 0,E=_.v_().resolve(llW),b=new SVl,w=void 0,q=void 0,t=[],g=void 0,l=void 0,X=!1,H=!1,I=!1,C=!1,u=new _.G1,P=_.v_().resolve(c2a),F=_.v_().resolve(_.Z6),J=_.v_().resolve(_.bq(HZ)),U,e$=(U=_.v_().resolve(_.bq(_.PHW)))==null?void 0:U.getCurrentPage(),Dq=!1,bF=0,Kf=function(x4){x4.preventDefault();return x4.returnValue=""},ti;
G=_.h(_.XQ(!((ti=_.SF("yt-mini-app-is-audio-enabled"))!=null&&!ti),void 0,"WhYQTd"));var Ry=G.next().value,nf=G.next().value,k4;ti=_.h(_.XQ(!((k4=_.SF("exit-mini-app-seen-state"))==null||!k4),void 0,"jxhCJb"));var SE=ti.next().value,Fn=ti.next().value;k4=_.h(_.XQ(!1,void 0,"MuvDfe"));var kw=k4.next().value,Lf=k4.next().value;k4=_.h(_.XQ(void 0,void 0,"u9DLoc"));var vc=k4.next().value,IW=k4.next().value;k4=_.h(_.XQ(void 0,void 0,"rykyJb"));var Hc=k4.next().value,a8=k4.next().value;k4=_.h(_.XQ(!0,void 0,
"d8FUvf"));var t2=k4.next().value,hi=k4.next().value;k4=_.h(_.XQ(!1,void 0,"x9XwUb"));var rj=k4.next().value,tS=k4.next().value;k4=_.h(_.XQ(!1,void 0,"bcquyc"));var OV=k4.next().value,RW=k4.next().value;k4=_.h(_.XQ(void 0,void 0,"FMAC5b"));var Zl=k4.next().value,pm=k4.next().value;k4=_.h(_.XQ(0,void 0,"HUGJEb"));var Bc=k4.next().value,wj=k4.next().value,by=_.hT("mini-app-container-view-model"),ea=function(){return e().isEmbeddedInWebview},U_=function(){return e().hasPlayNextShelf};
_.iC("yt-page-type-changed",function(x4){if(_.R("enable_is_mini_app_page_active_bugfix"))x4.detail.newPageSubtype==="mini_app"&&x4.detail.newPageType==="ytd-browse"||!t2()||Ww();else if(x4=_.Kqs()==="mini_app",x4!==t2())if(hi(x4),x4){var kC;x4=(kC=e().playableId)==null?void 0:kC.toString();x4!==void 0&&window.location.href.includes(x4)&&!H&&(C=!0,ly(),gz.value&&H2(gz.value))}else x4||Ww()});
_.iC("yt-action",function(x4){x4.detail.actionName==="yt-engagement-panel-visible-changed"&&x4.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&x4.detail.args[2]==="PAmini_app_panel"&&Ww();_.R("enable_is_mini_app_page_active_bugfix")?x4.detail.actionName==="yt-history-load"&&!t2()&&(e$==null?0:e$.active)?(hi(!0),ly(),gz.value&&H2(gz.value)):x4.detail.actionName==="yt-history-load"&&t2()&&!e().isEmbeddedInWebview&&TV():t2()&&x4.detail.actionName==="yt-history-load"&&(C?C=!1:e().isEmbeddedInWebview||
TV())});
_.yD(function(){gW()});
_.Y8(function(){ly()},"bLMzme");
var ly=function(){var x4=e().playableId,kC=e().localReleaseId,yW=e().derivedDeviceInterface;if(H)_.FH(new _.Cr("[MiniAppContainerViewModel] onEnter was called more than once"));else{H=!0;M=new Odl(x4,kC,yW,document.visibilityState==="visible");TWC(M);T=new kAW(x4);UBA(E,x4);qVY(b,{showMiniAppAdCommand:e().showMiniAppAdCommand,isEmbeddedInWebview:e().isEmbeddedInWebview,playLogger:M});zBf()&&(l=document.body.style.backgroundColor,_.Cl(document.body,"background-color","black"));Nh();m8();u=new _.G1;
if(e().isEmbeddedInWebview){if(x4=(new URLSearchParams(window.location.search)).get("postPlayNonce"))VaH(M,x4),Dq=!0;O.initialize({onAudioStateLoaded:function(bH){Wg(bH)},
onMuteMiniApp:function(){Wg(!1)},
onUnmuteMiniApp:function(){Wg(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(bH){Dq||(VaH(M,bH),Dq=!0)},
confirmExitMiniApp:function(){var bH,v2,zV;return _.D(function(Bp){if(Bp.nextAddress==1)return e().confirmExitMiniAppCommand?Bp.yield(Promise.race([u.promise,Promise.resolve(!1)]),2):Bp.return();(bH=Bp.yieldResult)?!e().confirmExitMiniAppCommandEdu||(zV=(v2=SE)==null?void 0:v2())!=null&&zV?IP(e().confirmExitMiniAppCommand):(IP(e().confirmExitMiniAppCommandEdu),_.$N("exit-mini-app-seen-state","true",2592E6)):IP(e().closeMiniAppCommand);_.HL(Bp)})},
onNativeBenchmarkingMessageReceived:function(bH){bH=wfw(_.Ce$(bH));if(_.TB(bH,_.ln,3,i9y)){var v2=_.a$(bH,_.ln,3,i9y),zV=miq();var Bp=Fx(zV.getSeconds())-Fx(v2.getSeconds());v2=_.vp(zV,2)-_.vp(v2,2);Bp<0&&v2>0?(Bp+=1,v2-=1E9):Bp>0&&v2<0&&(--Bp,v2+=1E9);Bp=(new Bo).setSeconds(Bp);Bp=_.eZ(Bp,2,_.TA(v2),0);_.Kj(bH,1,Bp)}var Vb;(Vb=q)==null||Vb.returnNativeBenchmarkingMessage(bH)},
multiplayer3pAckStateLoaded:function(bH){TV(bH)},
exitMiniAppSeenStateLoaded:function(bH){e().confirmExitMiniAppCommandEdu&&Fn(bH)},
onNavigateToNewMiniApp:function(){IP(e().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(bH){bH=new URLSearchParams(bH);var v2=void 0;bH.has("invite_code")&&(v2=new Rkc,bH=bH.get("invite_code"),v2=_.QB(v2,1,bH));if(bH=v2){var zV;(zV=q)==null||zV.sendGameData(bH)}},
onPauseMiniApp:function(){Z=!0;o8()},
onResumeMiniApp:function(){Z=!0;Y5()},
onAdFinished:function(bH){b.onAdFinished(bH)}});
e().showMultiplayer3pConsentDialogCommand||u.resolve(!0);IP(e().onContainerReadyCommand)}else VaH(M),u.resolve(!0);HdH(T,MaV(M));MaV(M).then(function(bH){bH={miniAppPlayData:{postPlayNonce:bH}};var v2,zV=(v2=e().loggingDirectives)==null?void 0:v2.trackingParams;zV&&_.h_().stateChanged(zV,bH)});
x4=e().showSignInDialogCommand;!AfS()&&x4&&(_.$N("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),IP(x4));e().confirmExitMiniAppCommand&&J&&(x4=Ca$(e().confirmExitMiniAppCommand))&&(J.customConfirmationCommand=x4)}},gW=function(){l&&_.Cl(document.body,"background-color",l);
X=!1;g&&g.release();T.flush().catch(function(x4){_.FH(x4)});
E.flush().catch(function(x4){_.FH(x4)});
ECH(M);Mq();q=void 0;zmW(P)},Ww=function(){hi(!1);
gW();Lf(!1);pm(void 0);IW(void 0);a8(void 0);bF=0;wj(0);H=!1},o8=function(){var x4;
(x4=q)==null||x4.onPause();g&&g.release();T.flush().catch(function(kC){_.FH(kC)});
E.flush().catch(function(kC){_.FH(kC)});
DBB(M);tS(!0)},Y5=function(){var x4;
(x4=q)==null||x4.onResume();m8();x4=M;x4.isForeground=!0;M3(x4,"PLAY_EVENT_TYPE_PLAY_RESUME");tS(!1)},Wg=function(x4){var kC;
(kC=q)==null||kC.onAudioToggled(x4);nf(x4)},TV=function(x4){e().showMultiplayer3pConsentDialogCommand&&(e().isEmbeddedInWebview&&x4!==void 0&&u.resolve(x4),!x4&&_.Kqs()==="mini_app"&&IP(e().showMultiplayer3pConsentDialogCommand))},Ul=function(){var x4,kC,yW,bH;
return _.D(function(v2){if(v2.nextAddress==1){!e().isLivestream||e().disableVideoCapture||(x4=q)!=null&&x4.sendStartGameFrameCapture();kC=(new URL(window.location.href)).searchParams;if(kC.has("invite_code")){var zV=new Rkc,Bp=kC.get("invite_code");yW=_.QB(zV,1,Bp);(bH=q)==null||bH.sendGameData(yW)}kw()||(Lf(!0),zV=M,zV.state!==1?_.FH(new _.Cr("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+r2H[zV.state])):(_.gR("mini_app_ids_without_game_ready").includes(zV.JSC$17065_miniAppId)&&(zV.gameReady=
!0),zV.state=2,zV.beforeReady=!1,OT(zV,"ma_ffr"),M3(zV,"PLAY_EVENT_TYPE_PLAY_READY")));return v2.yield(u.promise,2)}IP(e().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();e().isEmbeddedInWebview||TV();_.HL(v2)})},fd=function(){var x4=M;
x4.gameReady=!0;OT(x4,"ma_gr")},h2=function(x4){var kC;
return _.D(function(yW){if(yW.nextAddress==1)return _.jr(yW,2),yW.yield(oCC(T,x4),4);if(yW.nextAddress!=2)return _.rL(yW,0);kC=_.k5(yW);IP(e().showSavingErrorPopupCommand);throw kC;})},Uw=function(){var x4,kC;
return _.D(function(yW){if(yW.nextAddress==1)return _.jr(yW,2),yW.yield(dBo(T),4);if(yW.nextAddress!=2)return x4=yW.yieldResult,yW.return(x4);kC=_.k5(yW);IP(e().showLoadingErrorDialogCommand);throw kC;})},lx=function(x4){M.logError(x4)},RF=function(x4,kC,yW){bdW(M,x4,kC,yW)},rw=function(x4,kC){wYY(M,x4,kC)},lL=function(){!r&&e().isEmbeddedInWebview||_.ij();
idd(M,!0);X||(window.addEventListener("beforeunload",Kf,{capture:!0}),X=!0)},cJ=function(x4){var kC,yW,bH,v2,zV,Bp,Vb;
return _.D(function(YO){if(YO.nextAddress==1)return E&&(!w||w<x4)&&x4>0?YO.yield(W8W(E,x4),3):YO.jumpTo(0);kC=YO.yieldResult;yW=_.h(kC);bH=yW.next().value;v2=yW.next().value;zV=bH;Bp=v2;((Vb=zV)==null?0:Vb.displayString)&&Bp&&(IW(Bp),a8(zV.displayString));_.HL(YO)})},ds=function(x4){var kC=e().onBenchmarkingMessageReceivedCommand;
if(kC){var yW=miq();_.fj(x4,3,i9y,yW);jM(kC,$1W(x4))}},mS=function(x4){var kC=e().onGameFrameReceivedCommand;
if(kC){var yW=new u9;var bH=new vAv;var v2=q_(x4,1);bH=_.ss(bH,1,v2);x4=_.gU(x4,2);x4=_.QB(bH,2,x4);yW=_.Kj(yW,2,x4);jM(kC,qPW(yW))}},BA=function(x4){var kC=e().onGameAudioDataReceivedCommand;
if(kC){var yW=new u9;var bH=new $8y;x4=_.gU(x4,1);bH=_.QB(bH,1,x4);yW=_.Kj(yW,4,bH);jM(kC,qPW(yW))}},aW=function(){var x4=new URLSearchParams(window.location.search);
if(e().isEmbeddedInWebview&&x4&&x4.get("override_hl")==="true"&&x4.get("hl"))return x4.get("hl");x4=document.documentElement.lang;return x4!==""?x4:oI},lH=function(x4){var kC=e().onShareInviteCodeCommand;
if(kC)if(e().isEmbeddedInWebview){var yW=new Avv;x4=_.QB(yW,1,x4);jM(kC,Jvc(x4))}else yW=e().inviteCodeShareClientParamIdentifier,P.clientParams.set(yW,{miniAppClientParams:{inviteCode:x4}}),IP(kC)},o2=function(x4){var kC,yW,bH;
return _.D(function(v2){if(v2.nextAddress==1)return kC=e().onMiniAppOpenYtContentRequested,E&&_.R("enable_open_yt_content")&&kC?v2.yield(NWo(E,x4),3):v2.jumpTo(0);yW=v2.yieldResult;if(yW==="OK")if(e().isEmbeddedInWebview){var zV=new D8w;bH=XH(zV,2,C6,ja(x4));jM(kC,b6c(bH))}else F.clientData.set("video_id",x4),IP(kC);_.HL(v2)})},sV=function(x4){bF+=_.vp(x4,3);
x4=Math.min(Math.log(1+bF/15E6*9)/Math.log(10),.99);wj(x4);KP(x4)},KP=_.lE(function(x4){var kC=e().updateLoadingProgressCommand;
if(kC){var yW=new D8w;x4=XH(yW,3,C6,_.Wc(x4));jM(kC,b6c(x4))}},100),Xn=function(x4){return gC2(b,x4)},m8=function(){var x4,kC;
((x4=_.laS())==null?void 0:(kC=x4.wakeLock)==null?void 0:kC.request)!=null&&_.laS().wakeLock.request("screen").then(function(yW){g=yW}).catch(function(){})},gz=_.T2("iframe");
_.Y8(function(){e().isSupportedCountry&&(AfS()||_.R("enable_sign_in_promo")||!e().showSignInDialogCommand?gz.value&&H2(gz.value):IP(e().onMiniAppReadyCommand))},"ASuFde");
var gj=function(){return _.v("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return kw()?0:-1},
el:gz})},H2=function(x4,kC){kC=kC===void 0?!1:kC;
var yW=qI();yW&&(kC||yW.toString()!==x4.getAttribute("src"))&&(q=zVU(e().source,{isAudioEnabled:Ry,onFirstFrameReady:Ul,onGameReady:fd,onSave:h2,onLoad:Uw,onError:lx,onSdkCalled:RF,onSdkPerformanceUpdate:rw,onClick:lL,onSendHighScore:cJ,onBenchmarkingMessageReceived:ds,getLanguage:aW,onShareInviteCode:lH,onResourceLoaded:sV,onOpenYTContent:o2,onShowMiniAppAd:Xn,onGameFrameReceived:mS,onGameAudioReceived:BA},x4,yW),EY(x4,"load",function(){OT(M,"ma_il");EY(x4,"load",function(){H2(x4,!0)})}),_.Ge(x4,
yW))},qI=function(){var x4=e().url;
if(x4&&(x4=_.FF(x4),x4!==null)){if(e().source&&e().source==="MINI_APP_SOURCE_GAMESNACKS")x4=_.tx(x4,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.R("enable_origin_query_parameter_bugfix")){var kC=_.$U(_.q$4(x4.toString()));kC=new URLSearchParams(kC||"");kC.set("origin",window.location.origin);kC=kC.toString();x4=_.Qt(x4).toString();x4=_.sk(LYw.exec(x4)[0]+(kC.trim()?"#"+kC:""))}return x4}},cw=function(){var x4={};
x4=_.LC("yt-mini-app-container-view-model__loading-screen",(x4["yt-mini-app-container-view-model__loading-screen--fade-out"]=kw,x4));var kC=function(){return kw()?1:Bc()};
return _.v("div",{class:x4},_.v(_.E2,{data:function(){return e().splashScreen}},{miniAppSplashScreenViewModel:function(yW){return _.v(mBA,{data:yW.data,
loadingProgress:kC})}}))},UM=function(){var x4={};
return _.v("div",{class:_.LC("yt-mini-app-container-view-model__pause-interstitial",(x4["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!rj()},x4["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=rj,x4))},_.v(_.E2,{data:function(){return e().splashScreen}},{miniAppSplashScreenViewModel:function(kC){return _.v(mBA,{data:kC.data,
forPaused:!0})}}))},Nh=function(){t=[];
t.push(_.w2(window,"visibilitychange",function(){I||Z&&ea()||(document.visibilityState==="visible"?Y5():o8())}));
t.push(_.w2(window,"pagehide",function(){gW()}));
t.push(_.w2(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&by.value.dispatchEvent(new Event("tap"))},0)}));
t.push(_.w2(by.value,"pointerdown",function(){idd(M,!1)},!0));
t.push(_.w2(by.value,"pause",function(){I=!0;o8()}));
t.push(_.w2(by.value,"play",function(){I=!1;Y5()}));
t.push(_.w2(by.value,"exit",function(){gW()}));
var x4=navigator.keyboard,kC=x4&&x4.lock;t.push(_.w2(window,EOn,function(){RW(b1C());b1C()?(e().hasPlayNextShelf&&Z$("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),vn("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),kC&&x4.lock(["Escape"])):(e().hasPlayNextShelf&&vn("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Z$("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),kC&&x4.unlock())}));
e().showMultiplayer3pConsentDialogCommand&&t.push(_.w2(window,"yt-playables-ack-3p-data-usage",function(){L8C(E)}));
e().confirmExitMiniAppCommandEdu&&t.push(_.w2(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.$N("exit-mini-app-seen-state","true",2592E6)}));
e().onGameAudioDataReceivedCommand&&t.push(_.w2(window,"message",function(yW){yW=yW.event_;var bH,v2=(bH=gz.value)==null?void 0:bH.src;if(v2&&yW.origin===(new URL(v2)).origin&&yW.data&&yW.data.type==="GAME_AUDIO"&&yW.data.audio&&yW.data.audio.length>0)if(_.R("enable_sending_unwrapped_game_audio_as_serialized_metadata"))Yoy(e().onGameAudioDataReceivedCommand,yW.data.audio);else{var zV=new FileReader;zV.onload=function(){var Bp=new u9;var Vb=new $8y;Vb=_.QB(Vb,1,zV.result);Bp=_.Kj(Bp,4,Vb);jM(e().onGameAudioDataReceivedCommand,
qPW(Bp))};
zV.readAsDataURL(new Blob([yW.data.audio]))}}))},Mq=function(){t.forEach(function(x4){i1(x4)});
window.removeEventListener("beforeunload",Kf,{capture:!0})},IP=function(x4){x4&&nRf(x4,e().isEmbeddedInWebview||!1)},vn=function(x4,kC){x4=_.h(by.value.getElementsByClassName(x4));
for(var yW=x4.next();!yW.done;yW=x4.next())yW.value.classList.add(kC)},Z$=function(x4,kC){x4=_.h(by.value.getElementsByClassName(x4));
for(var yW=x4.next();!yW.done;yW=x4.next())yW.value.classList.remove(kC)};
return function(){var x4={};x4=_.LC("yt-mini-app-container-view-model",(x4["yt-mini-app-container-view-model--desktop"]=!0,x4["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return e().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},x4["yt-mini-app-container-view-model--ios-web-view"]=zBf(),x4["yt-mini-app-container-view-model--no-top-bar"]=function(){return!e().topBar},x4["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return e().hasPlayNextShelf},x4["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return e().hasPlayNextShelf},x4["yt-mini-app-container-view-model--show-peek-below"]=function(){return!OV()&&e().hasPlayNextShelf},x4));
var kC={};kC=_.LC("yt-mini-app-container-view-model__content",(kC["yt-mini-app-container-view-model__content--desktop-content"]=!0,kC["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return e().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},kC["yt-mini-app-container-view-model--desktop-play-page"]=function(){return e().hasPlayNextShelf},kC));
return _.v("mini-app-container-view-model",{el:by},_.v("div",{class:x4},_.v(_.S,{cond:function(){return e().topBar&&!OV()},
then:function(){return _.v(_.E2,{data:function(){return e().topBar}},{miniAppTopBarViewModel:function(yW){return _.v(xBo,{data:yW.data,
isAudioEnabled:Ry,onAudioToggled:function(bH){Wg(bH)},
score:vc,formattedScore:Hc,onScoreChanged:function(bH){w=bH},
isEmbeddedInWebview:ea,isSaved:Zl,onSaveToggled:function(bH){pm(bH)},
isExitMiniAppSeen:SE,isDesktopPlayPage:U_})}})}}),_.v("div",{class:kC},_.v(_.S,{cond:t2,
then:function(){return gj()}}),_.v(_.S,{cond:function(){return e().isLivestream},
then:function(){return UM()}}),_.v(_.S,{cond:function(){return!e().isEmbeddedInWebview},
then:function(){return cw()}}))))}()},"Vf");
Gqm.idomCompat=!0;_.J_(Gqm,"mini-app-container-view-model",{props:{data:_.N6}});var eXY=_.y(function(G){var e=G.data;return _.v("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.v("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.ev(function(){var r=e().onTap;r&&_.HQ(r)})},_.v(_.S,{cond:function(){return e().icon},
then:function(r){return _.v(_.V$,{icon:function(){return r().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.v("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return e().title})))},"Wf");
eXY.idomCompat=!0;var rta=_.y(function(G){var e=_.hT("div"),r=_.h(_.XQ(void 0,void 0,"dg3xff")),Z=r.next().value,O=r.next().value;r=_.h(_.XQ(void 0,void 0,"AgHNfc"));var M=r.next().value,T=r.next().value;r=_.h(_.XQ(void 0,void 0,"fuTKCc"));var E=r.next().value,b=r.next().value,w=function(){var C=Z();return C!==void 0?Math.abs(C):void 0},q=function(){var C=w();
return C===void 0||C<=3},t=function(){var C=w();
var u=M(),P=E();C=C!==void 0&&u!==void 0&&P!==void 0?u-P-C:void 0;return C===void 0||C<=3},g=function(C){e.value&&e.value.scrollBy({top:0,
left:(_.xZ("HTML_DIR")==="rtl"?-1:1)*C*e.value.clientWidth,behavior:"smooth"})},l=function(){var C;
O((C=e.value)==null?void 0:C.scrollLeft);var u;T((u=e.value)==null?void 0:u.scrollWidth);var P;b((P=e.value)==null?void 0:P.clientWidth)},X=function(){g(-.5)},H=function(){g(.5)};
r=_.ev(function(){l()});
_.YZ(function(){l();if(e.value&&window.ResizeObserver){var C=new ResizeObserver(l);C.observe(e.value);_.yD(function(){C.disconnect()})}});
var I={};return _.v("yt-sponsorships-scrollable-shelf",{class:_.LC("ytdSponsorshipsScrollableShelfHost",G.className)},_.v("div",{class:_.LC("ytdSponsorshipsScrollableShelfContent",(I.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return G.data().previousButton&&G.data().nextButton&&!q()&&!t()},I.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return G.data().previousButton&&!q()&&t()},I.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return G.data().nextButton&&
q()&&!t()},I)),
el:e,"on:scroll":r},G.children),_.v(_.S,{cond:function(){return!q()},
then:function(){return _.v(_.E2,{data:function(){return G.data().previousButton}},{buttonViewModel:function(C){return _.v(_.wF,{data:C.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:X})}})}}),_.v(_.S,{cond:function(){return!t()},
then:function(){return _.v(_.E2,{data:function(){return G.data().nextButton}},{buttonViewModel:function(C){return _.v(_.wF,{data:C.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:H})}})}}))},"Yf");
rta.idomCompat=!0;var Oj2=_.y(function(G){var e=G.data;G={};return _.v("yt-sponsorships-hub",{class:_.LC("ytdSponsorshipsHubHost",(G.ytdSponsorshipsHubHostIndented=function(){return e().indented},G))},_.v("div",{class:"ytdSponsorshipsHubHeader"},_.v("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.v("div",{class:"ytdSponsorshipsHubAvatar"},_.v(_.E2,{data:function(){return e().avatar}},{avatarViewModel:_.yy})),_.v(_.S,{cond:function(){return e().badgeImage},
then:function(r){return _.v("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.v("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.v("div",{class:"ytdSponsorshipsHubBadge"},_.v(_.nC,{data:r,targetWidth:24,targetHeight:24,alt:""}))))}})),_.v("div",{class:"ytdSponsorshipsHubDetails"},_.v("div",{class:"ytdSponsorshipsHubTierName"},function(){return e().tierName}),_.v("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return e().membershipType}),_.v("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return e().membershipDurationOrExpiry})),_.v("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.v(_.E2,{data:function(){return e().manageButton}},{buttonViewModel:function(r){return _.v(_.wF,{data:r.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.v(_.E2,{data:function(){return e().actionMenuButton}},{buttonViewModel:function(r){return _.v(_.wF,{data:r.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.v("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return e().perksTitle}),_.v(rta,{data:function(){return{previousButton:e().previousPerkButton,
nextButton:e().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.v("div",{class:"ytdSponsorshipsHubPerkCards"},_.v(_.E2,{data:function(){return e().perkCards}},{sponsorshipsHubPerkCardViewModel:eXY}),_.v(_.S,{cond:function(){return e().viewAllPerksButton},
then:function(r){return _.v(Zjo,{data:r})}}))))},"Zf");
Oj2.idomCompat=!0;var Zjo=_.y(function(G){var e=G.data;return _.v("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.v(_.E2,{data:function(){return e().button}},{buttonViewModel:_.wF}),_.v("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.v("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return e().title}),_.v("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return e().subtitle})))},"$f");
Zjo.idomCompat=!0;_.J_(Oj2,"yt-sponsorships-hub",{props:{data:_.N6}});_.MZl=_.y(function(G){var e=G.data;return _.v("yt-dual-avatar-view-model",{class:_.LC("ytDualAvatarViewModelHost",G.className),style:_.Mk({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var r;return((r=e().badgeCutoutRadius)!=null?r:14)+"px"}})},_.v("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.v(_.E2,{data:function(){return e().startAvatar}},{avatarViewModel:_.yy}),_.v(_.E2,{data:function(){return e().endAvatar}},{avatarViewModel:_.yy})),_.v(_.E2,{data:function(){return e().badge}},
{contentPreviewImageViewModel:function(r){return _.v("div",{class:"ytDualAvatarViewModelBadge"},_.v(_.wZ,{data:r.data}))}}))},"ag");
_.MZl.idomCompat=!0;var hXV=_.y(function(G){var e=G.data;var r,Z=!((r=_.v_().resolve(_.bq(_.Ig)))==null||!r());G=_.dw(function(){var q,t,g=Z?(q=e().header)==null?void 0:q.backgroundColorDarkMode:(t=e().header)==null?void 0:t.backgroundColorLightMode;if(g!==void 0)return _.jF(g)},void 0,"TDdh7d");
r=_.dw(function(){var q,t;return Z?(q=e().header)==null?void 0:q.backgroundImagePart1Dark:(t=e().header)==null?void 0:t.backgroundImagePart1Light},void 0,"X0peMe");
var O=_.dw(function(){var q,t;return Z?(q=e().header)==null?void 0:q.backgroundImagePart2Dark:(t=e().header)==null?void 0:t.backgroundImagePart2Light},void 0,"an0Hzd"),M=_.dw(function(){return _.xZ("HTML_DIR")==="rtl"},void 0,"BltEgb"),T=_.hT("yt-sponsorships-perks-list"),E=!1,b=function(){var q=T.value;
if(q&&!E){var t,g=(t=q.parentElement)==null?void 0:t.parentElement;if(g)for(q=q.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),t=0;t<q.length;++t){var l=q[t];if(l instanceof HTMLElement){g.scrollTo({top:l.offsetTop+l.clientHeight/2-g.clientHeight/2,behavior:"smooth"});E=!0;break}}}};
_.yY(function(){var q=T.value;if(q&&window.ResizeObserver){var t=new ResizeObserver(b);t.observe(q);_.yD(function(){t.disconnect()})}});
var w={};return _.v("yt-sponsorships-perks-list",{el:T,class:_.LC("ytdSponsorshipsPerksListHost",(w.ytdSponsorshipsPerksListHorizontalPadding=function(){return e().horizontalPaddingEnabled},w))},_.v("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.v("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.Mk({"background-color":G})},_.v("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.v(_.S,{cond:r,then:function(q){var t={};return _.v("div",{class:_.LC((t.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=Z,t.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!Z,t.ytdSponsorshipsPerksListFlipped=M,t))},_.v(_.nC,{data:q,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.v("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.v(_.S,{cond:O,
then:function(q){var t={};return _.v("div",{class:_.LC((t.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=Z,t.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!Z,t.ytdSponsorshipsPerksListFlipped=M,t))},_.v(_.nC,{data:q,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.v("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.v(_.E2,{data:function(){var q;
return(q=e().header)==null?void 0:q.dualAvatar}},{dualAvatarViewModel:_.MZl})))),_.v("div",{class:"ytdSponsorshipsPerksListBody"},_.v("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return e().title}),_.v(_.S,{cond:function(){return e().perks},
then:function(q){return _.v(_.u6,{each:q},function(t,g){var l={};return _.v("div",{class:_.LC("ytdSponsorshipsPerksListPerkContainer",(l.ytdSponsorshipsPerksListSelectedPerk=function(){var X=g(),H=e().selectedPerkIndex;return X===H},l))},_.v(_.S,{cond:function(){return g()>0},
then:function(){return _.v("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.v("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.v(_.S,{cond:function(){return t.icon},
then:function(X){return _.v(_.V$,{icon:function(){return X().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.v("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.v("div",{class:"ytdSponsorshipsPerksListPerkTitle"},t.title),_.v("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.v(_.Wh,{text:t.description})),_.v(_.S,{cond:function(){return t.instructions},
then:function(){var X,H;return _.v("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.v("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(X=t.instructions)==null?void 0:X.title),_.v("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.v(_.Wh,{text:(H=t.instructions)==null?void 0:H.text})))}}))),_.v(_.S,{cond:function(){return t.emoji},
then:function(X){return _.v("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.v(_.u6,{each:function(){return X()}},function(H){return _.v(_.nC,{data:H,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.v(VZ2,{data:t}))})}})))},"bg");
hXV.idomCompat=!0;var VZ2=_.y(function(G){var e=G.data;var r=function(T,E){return T===E},Z=function(){var T=e();
T=_.a(T==null?void 0:T.badgesShelf,U93);return T!==void 0&&T!==null?T:{previousButton:{},nextButton:{}}},O=_.T2("div"),M=function(){var T=O.value;
if(T){var E=T.parentElement;if(E){T=T.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var b=0;b<T.length;++b){var w=T[b];if(w instanceof HTMLElement){E.scrollTo({left:w.offsetLeft+w.clientWidth/2-E.clientWidth/2,behavior:"instant"});break}}}}};
_.yY(function(){var T=O.value;if(T){var E=new ResizeObserver(M);E.observe(T);_.yD(function(){E.disconnect()})}});
return _.v("div",null,_.v(_.S,{cond:function(){return e().badges},
then:function(T){return _.v(rta,{data:Z},_.v("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:O},_.v(_.u6,{each:function(){return T()}},function(E,b){var w={},q={},t={};
return _.v("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.v(_.S,{cond:function(){return b()>0},
then:function(){return _.v("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.v("div",{class:_.LC("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(w.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return r(b(),e().currentBadgeIndex)},w.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!r(b(),e().currentBadgeIndex)},w))},_.v("div",{class:_.LC("ytdSponsorshipsPerksListLoyaltyBadge",(q.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return r(b(),
e().currentBadgeIndex)},q.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!r(b(),e().currentBadgeIndex)},q))},_.v(_.S,{cond:function(){return E.image},
then:function(g){var l={};return _.v("div",{class:_.LC((l.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return r(b(),e().currentBadgeIndex)},l.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!r(b(),e().currentBadgeIndex)},l))},_.v(_.nC,{data:g,
alt:""}))}})),_.v("div",{class:_.LC("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(t.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return r(b(),e().currentBadgeIndex)},t))},E.title)))})))}}))},"cg");
VZ2.idomCompat=!0;_.J_(hXV,"yt-sponsorships-perks-list",{props:{data:_.N6}});_.J_(_.y(function(G){return _.v("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.v(_.S,{cond:function(){return G.data().image},
then:function(e){return _.v(_.nC,{className:"ytwFantasyEmptyStateViewModelImage",data:e,ariaHidden:!0,alt:""})}}),_.v(_.Wh,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return G.data().title}}),_.v(_.Wh,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return G.data().subtitle}}),_.v(_.E2,{data:function(){return G.data().primaryButton}},{buttonViewModel:function(e){return _.v(_.wF,{data:e.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"dg"),"ytw-fantasy-empty-state-view-model",{props:{data:_.N6}});var TzW;var DZ8=_.y(function(G){var e=G.data;var r=G.uniqueId;var Z=G.overrides;G=_.dw(function(){var O,M=((O=e().timedAnimationData)==null?void 0:O.animationTiming)||[];return{uniqueId:r(),timings:M,experimentEnabled:M.length>0,enabled:M.length>0}},void 0,"hiuXI");
return _.v("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.v(FRW,{settings:G},_.v(_.E2,{data:function(){return e().buttonRenderer}},{buttonRenderer:function(O){return _.v(_.Op,{data:O.data,
buttonOverrides:Z})}})))},"eg");
DZ8.idomCompat=!0;_.J_(DZ8,"timed-animation-button-renderer",{props:{data:_.N6,uniqueId:_.N6,overrides:_.N6}});var i2=function(){var G=_.m.apply(this,arguments)||this;G.hideJoinButtonBeforeSubscribed=_.R("hide_join_button_before_subscribed");G.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return G};
_.K(i2,_.m);_.V=i2.prototype;_.V.hasShowDialogCommand=function(G){return!!_.a(G,rqc)};
_.V.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"}}}};
_.V.updateJoinButtonOverrides=function(){var G,e;(G=_.z1(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(e=G.polymerController)==null||e.set("overrides",this.joinButtonOverrides);if(G=_.z1(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))G.overrides=this.joinButtonOverrides};
_.V.handleButtonRefreshAction=function(G){if(G=_.a(G,aFC))this.set("data.membershipButton",G.membershipButton),this.notifyPath("data.membershipButton")};
_.V.onYtServiceRequestError=function(G){_.QO(this.hostElement,G.detail.error.message)};
_.V.onKeydown=function(G){if(G.key==="Enter"){var e;(e=this.data)!=null&&e.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.V.handleUnsubscribeAction=function(){var G,e,r;((G=this.data)==null?void 0:(e=G.membershipButton)==null?void 0:(r=e.buttonRenderer)==null?void 0:r.style)==="STYLE_PRIMARY"&&_.z1(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.iY.Object.defineProperties(i2.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.subscriptionStateEntity)==null||!G.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var G,e=(G=this.data)==null?void 0:G.membershipButton,r;G=(e==null?void 0:e.buttonRenderer)||_.a(e==null?void 0:(r=e.timedAnimationButtonRenderer)==null?void 0:r.buttonRenderer,_.zM);return(G==null?void 0:G.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(G==null?void 0:G.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(G==null?void 0:G.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var G;if(this.hasShowDialogCommand((G=this.data)==null?void 0:G.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var G;if(this.hasShowDialogCommand((G=this.data)==null?void 0:G.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.attributedTitle)}}});
i2.prototype.onYtServiceRequestError=i2.prototype.onYtServiceRequestError;i2.prototype.updateJoinButtonOverrides=i2.prototype.updateJoinButtonOverrides;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],i2.prototype,"actionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],i2.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],i2.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.A5),_.x("design:type",Object)],i2.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],i2.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.nS),_.x("design:type",Object)],i2.prototype,"ironButtonState",void 0);_.B([_.n(),_.x("design:type",Object)],i2.prototype,"data",void 0);_.B([_.d("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.x("design:type",Object),_.x("design:paramtypes",[])],i2.prototype,"hideJoin",null);
_.B([_.n(),_.x("design:type",String)],i2.prototype,"subscribeKey",void 0);_.B([_.n({selectorArgs:["subscribeKey"],selector:OAp}),_.x("design:type",Object)],i2.prototype,"subscriptionStateEntity",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],i2.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.B([_.d("subscriptionStateEntity"),_.n({reflectToAttribute:!0}),_.x("design:type",Object),_.x("design:paramtypes",[])],i2.prototype,"subscribed",null);
_.B([_.d("subscribed","data.membershipButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],i2.prototype,"joinButtonOverrides",null);_.B([_.d("data.navigationEndpoint"),_.x("design:type",Object),_.x("design:paramtypes",[])],i2.prototype,"channelNameTabIndex",null);_.B([_.d("data.navigationEndpoint"),_.x("design:type",Object),_.x("design:paramtypes",[])],i2.prototype,"channelNameRole",null);
_.B([_.d("data.attributedTitle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],i2.prototype,"hasAttributedTitle",null);_.B([_.Me("joinButtonOverrides"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],i2.prototype,"updateJoinButtonOverrides",null);_.B([_.Om("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],i2.prototype,"onYtServiceRequestError",null);
_.B([_.c({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],i2);
var E$m=_.xP()(i2,"ytd-video-owner-renderer",function(){if(TzW===void 0){var G=document.createElement("template");_.f(G,'\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"><template is="dom-if" if="[[data.thumbnail]]" class="style-scope ytd-video-owner-renderer"><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></template><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]]" ellipsis-truncate="true" hidden$="[[!hasAttributedTitle]]" no-pre-wrap="true" no-wrap="true" 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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);TzW=G}G=TzW;return G},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.J_(_.y(function(G){var e=G.data;var r;G=_.h(_.XQ(!((r=_.SF("yt-mini-app-is-theater-mode-enabled"))==null||!r),void 0,"i2pjVd"));var Z=G.next().value,O=G.next().value;r=_.h(_.XQ(!1,void 0,"ga7V5c"));var M=r.next().value,T=r.next().value;_.yY(function(){var w=_.w2(window,EOn,function(){T(b1C())});
_.yD(function(){i1(w)})});
var E;r=(E=_.v_().resolve(_.bq(IqW)))!=null?E:function(){return _.v("div",null)};
_.Vk("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){O(!0);_.$N("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.Vk("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){O(!1);_.$N("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
E={};G={};var b={};return _.v("mini-app-play-page-renderer",{class:_.LC("miniAppPlayPageRendererHost",(E.miniAppPlayPageRendererHostDetailsView=function(){return!Z()},E))},_.v("div",{class:_.LC("miniAppPlayPageRendererGameContainer",(G.miniAppPlayPageRendererGameContainerDetailsView=function(){return!Z()},G))},_.v(_.E2,{data:function(){return e().containerViewModel}},{miniAppContainerViewModel:Gqm}),_.v(_.S,{cond:function(){return e().channel&&e().subscribeButton},
then:function(){var w={};return _.v("div",{class:_.LC("miniAppPlayPageRendererChannelContainer",(w.miniAppPlayPageRendererHideVisibility=function(){return M()},w))},_.v(_.E2,{data:function(){return e().channel}},{videoOwnerRenderer:function(q){return _.v(E$m,{data:q.data})}}),_.v(_.E2,{data:function(){return e().subscribeButton}},{subscribeButtonViewModel:function(q){return _.v(_.ym,{data:q.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.v(_.S,{cond:function(){return!Z()&&e().description},
then:function(){var w={};return _.v("div",{class:_.LC("miniAppPlayPageRendererMiniAppDescriptionWrapper",(w.miniAppPlayPageRendererHideVisibility=function(){return M()},w))},_.v("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return e().description}))}})),_.v("div",{class:_.LC("miniAppPlayPageRendererPlayNextContainer",(b.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!Z()},b.miniAppPlayPageRendererHideVisibility=function(){return M()},b))},_.v(_.E2,{data:function(){return e().sectionList}},
{sectionListRenderer:r})))},"fg"),"mini-app-play-page-renderer",{props:{data:_.N6}});var b2=function(){var G=_.m.apply(this,arguments)||this;G.isSearch=!1;G.isConstrainedList=!1;G.hasChipsBar=!1;G.inReplyPanel=!1;G.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"}};G.monitorScroll=!0;G.SCROLL_ANIMATION_DURATION_MS=300;G.nextContinuation={continuationType:"sectionListContinuation"};return G};
_.K(b2,_.m);_.V=b2.prototype;
_.V.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(G){switch(G.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:_.R("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.R("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.V.created=function(){var G=this;this.JSC$17204_scrollAnimation=new _.rm(function(e){G.hostElement.scrollTop=e})};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.V.getItemsPath=function(){return"data.contents"};
_.V.replacePrimaryContent=function(G){this.set("data.contents",G)};
_.V.computeHasSortFilter=function(G){return!!G&&!!G.sortFilterSubMenuRenderer};
_.V.computeShouldScrollInPanel=function(G){var e;return!!(G==null?0:(e=G.scrollPaneStyle)==null?0:e.scrollable)};
_.V.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.Nv(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.V.scrollToTop=function(){this.hostElement.scrollTop=0};
_.V.scrollToItemSection=function(G){if(G=this.getItemByIdentifier(G))G=this.getScrollPositionForItem(G),this.hostElement.scrollTop!==G&&this.JSC$17204_scrollAnimation.start(this.hostElement.scrollTop,G,this.SCROLL_ANIMATION_DURATION_MS)};
_.V.getItemByIdentifier=function(G){var e=this.contents.querySelectorAll("ytd-item-section-renderer");if(e&&e.length!==0){var r=Array.from(e).findIndex(function(Z){return Z.sectionIdentifier===G});
return e[r===-1?0:r]}};
_.V.getScrollPositionForItem=function(G){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===G)return 0;G=_.Jx(G).y+this.hostElement.scrollTop-_.Jx(this.hostElement).y;return Math.min(G,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.iY.Object.defineProperties(b2.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.targetId)==="browse-feedFEclips"}}});
b2.prototype.onScroll=b2.prototype.onScroll;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],b2.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],b2.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.Dr.YtLazyListBehavior),_.x("design:type",Object)],b2.prototype,"ytLazyListBehavior",void 0);_.B([_.k(_.r5.YtNextContinuationBehavior),_.x("design:type",Object)],b2.prototype,"ytNextContinuationBehavior",void 0);
_.B([_.k(_.W3Y),_.x("design:type",Object)],b2.prototype,"ytBooleanLogicBehavior",void 0);_.B([_.k(_.eP),_.x("design:type",Object)],b2.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],b2.prototype,"data",void 0);_.B([_.n({value:2}),_.x("design:type",Number)],b2.prototype,"initialCount",void 0);_.B([_.n({value:!0}),_.x("design:type",Boolean)],b2.prototype,"autoFill",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.x("design:type",Boolean)],b2.prototype,"hasSortFilter",void 0);_.B([_.n({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.x("design:type",Boolean)],b2.prototype,"hideBottomSeparator",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.x("design:type",Boolean)],b2.prototype,"shouldScrollInPanel",void 0);
_.B([_.n(),_.x("design:type",Object)],b2.prototype,"isSearch",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],b2.prototype,"isConstrainedList",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],b2.prototype,"responsiveSizing",void 0);_.B([_.n(),_.x("design:type",Object)],b2.prototype,"hasChipsBar",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],b2.prototype,"pageSubtype",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],b2.prototype,"engagementPanel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],b2.prototype,"liveChatEngagementPanel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],b2.prototype,"inReplyPanel",void 0);_.B([_.hs("#action-button"),_.x("design:type",HTMLElement)],b2.prototype,"actionButton",void 0);_.B([_.n(),_.x("design:type",Object)],b2.prototype,"scrollUpButtonData",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],b2.prototype,"engagementPanelDropdown",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],b2.prototype,"engagementPanelDialog",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],b2.prototype,"isClipList",null);_.B([_.hs("#contents"),_.x("design:type",HTMLElement)],b2.prototype,"monitorScrollElement",void 0);_.B([_.hs("#contents"),_.x("design:type",HTMLElement)],b2.prototype,"contents",void 0);
_.B([_.Om("scroll"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],b2.prototype,"onScroll",null);_.B([_.c({is:"ytd-section-list-renderer",disableElementRegistration:!0})],b2);
var ij8=_.xP()(b2,"ytd-section-list-renderer",function(){if(Qya===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);Qya=G}G=Qya;return G},{mode:1});var bjW;var v$o;var ww8;var $Zm;var v0=function(){return _.m.apply(this,arguments)||this};
_.K(v0,_.m);v0.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
v0.prototype.onLikeButtonClick=function(G){G.stopPropagation();G.preventDefault()};
_.iY.Object.defineProperties(v0.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)!=null&&G.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)})}}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],v0.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],v0.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],v0.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],v0.prototype,"ytRendererStamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],v0.prototype,"data",void 0);
_.B([_.n({selectorArgs:["data.likeStatusEntityKey"],selector:K1}),_.x("design:type",Object)],v0.prototype,"likeStatusEntity",void 0);_.B([_.d("data","likeStatusEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],v0.prototype,"likeButtonRenderer",null);_.B([_.c({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],v0);
_.A(v0,"ytd-slim-metadata-toggle-button-renderer",function(){if($Zm!==void 0)return $Zm;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);
return $Zm=G},{mode:1});var wm=function(){var G=_.m.apply(this,arguments)||this;G.minimizePipBreakages=_.R("web_pip_minimize_breakages");G.showEqualizer=_.R("web_enable_playlist_video_lockup_equalizer");G.watchColorUpdate=_.R("kevlar_watch_color_update");G.actionMap={};return G};
_.K(wm,_.m);_.V=wm.prototype;_.V.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"}}}};
_.V.computeEditableClass=function(G){return G&&G.menu?"editable":""};
_.V.computeSelected=function(G){return!(G==null||!G.selected)};
_.V.computeUseColorPalette=function(G){return!!((G==null?0:G.lightColorPalette)&&(G==null?0:G.darkColorPalette))};
_.V.computeLargerPlaylistThumbs=function(G,e){return _.R("web_enable_playlist_bigger_thumbnails")&&!e};
_.V.computeShowPlayIcon=function(G){return!!G&&_.R("web_use_play_icon_for_playlist_panel_video_renderer")};
_.V.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.V.onYtServiceRequestSent=function(G,e){e.endpoint&&this.isHideEnclosingAction(e.endpoint)&&!this.selected&&HI3(_.M6(),this.data.videoId)};
_.V.isHideEnclosingAction=function(G){var e=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",G);G=this.get("likeEndpoint.status",G)==="INDIFFERENT";return e||G};
_.V.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.V.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.iY.Object.defineProperties(wm.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.R("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.R("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 G;return!!(this.withinMiniplayer&&((G=this.data)==null?0:G.actionButtons))}}});
wm.prototype.onYtServiceRequestSent=wm.prototype.onYtServiceRequestSent;wm.prototype.canReorderChanged=wm.prototype.canReorderChanged;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],wm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],wm.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.NC),_.x("design:type",Object)],wm.prototype,"ytdLockupBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],wm.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],wm.prototype,"withinMiniplayer",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],wm.prototype,"minimizePipBreakages",void 0);_.B([_.n({computed:"computeSelected(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],wm.prototype,"selected",void 0);
_.B([_.n({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],wm.prototype,"useColorPalette",void 0);_.B([_.n({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.x("design:type",Boolean)],wm.prototype,"largerPlaylistThumbs",void 0);_.B([_.n(),_.x("design:type",Object)],wm.prototype,"showEqualizer",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],wm.prototype,"canReorder",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],wm.prototype,"touchPersistentDragHandle",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],wm.prototype,"handleIsHovered",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],wm.prototype,"watchColorUpdate",void 0);_.B([_.n(),_.x("design:type",String),_.x("design:paramtypes",[])],wm.prototype,"reorderIcon",null);
_.B([_.n({computed:"computeShowPlayIcon(selected)",reflectToAttribute:!0}),_.x("design:type",Boolean)],wm.prototype,"showPlayIcon",void 0);_.B([_.n(),_.x("design:type",String),_.x("design:paramtypes",[])],wm.prototype,"playIcon",null);_.B([_.d("largerPlaylistThumbs"),_.x("design:type",Number),_.x("design:paramtypes",[])],wm.prototype,"thumbnailWidth",null);_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],wm.prototype,"showActionButtons",null);
_.B([_.iD("canReorder"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wm.prototype,"canReorderChanged",null);_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.oV]),_.x("design:returntype")],wm.prototype,"onYtServiceRequestSent",null);_.B([_.c({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],wm);
_.A(wm,"ytd-playlist-panel-video-renderer",function(){if(ww8!==void 0)return ww8;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return ww8=G},{mode:2});var $x=function(){return _.m.apply(this,arguments)||this};
_.K($x,_.m);$x.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],$x.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],$x.prototype,"data",void 0);_.B([_.c({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],$x);
_.A($x,"ytd-playlist-panel-supported-items",function(){if(v$o!==void 0)return v$o;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return v$o=
G},{mode:1});weE=!0;LKE("\\P{N}");var O$U;var Skd=_.OK("END_OF_PLAYLIST",void 0,"End of playlist"),qkW=_.OK("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),SB=function(){var G=_.m.apply(this,arguments)||this;G.minimizePipBreakages=_.R("web_pip_minimize_breakages");G.hideHeaderText=!1;G.useColorPalette=!1;G.collapsed=!1;G.collapsedPreServerOverride="not_tracked";G.isHovered=!1;G.expandLabel=_.OK("MINIPLAYER_EXPAND_LABEL");G.collapseLabel=_.OK("MINIPLAYER_COLLAPSE_LABEL");G.isFloating=!1;G.metaPanel=
!1;G.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};G.currentIndex=void 0;return G};
_.K(SB,_.m);_.V=SB.prototype;
_.V.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"}}}};
_.V.created=function(){var G=this;this.scrollThrottle=new _.Zp(this.onThrottledScroll,1E3,this);this.JSC$17226_ytReorderableController=new _.rjv(56,function(e){G.handleDrop(e)})};
_.V.onMouseEnter=function(){this.isHovered=!0};
_.V.onMouseLeave=function(){this.isHovered=!1};
_.V.computeOverflowMenuData=function(G){return G&&G.menu?G.menu:null};
_.V.computeCollapsible=function(G){return!G};
_.V.computeHasPlaylistButtons=function(G){return!(!G||!G.playlistButtons)};
_.V.computeHasSeparateSaveButton=function(G){return!(!G||!G.saveButton)};
_.V.computeHasToolbarButton=function(G,e){return!(!G||!(e||G.saveButton||G.menu))};
_.V.computePlaylistType=function(G){if(G&&G.playlistId)return G.playlistId.substring(0,4)};
_.V.computeCanReorder=function(G){return G?G.playlistId&&G.playlistId.startsWith("TLPQ")?!0:!!G.isEditable&&!G.isInfinite:!1};
_.V.attached=function(){var G=this;try{_.v_().resolve(_.Gt).setPlaylistComponent(this.hostElement)}catch(e){if(_.R("kevlar_park_on_playlist_token_killswitch"))throw e;_.rk().parkOrScheduleJob(function(){_.v_().resolve(_.Gt).setPlaylistComponent(G.hostElement)},2,"ci")}_.Jb(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.V.detached=function(){_.Bi(this.hostElement);_.fJ(this.JSC$17226_ytReorderableController)};
_.V.computeTrailingIcon=function(G,e,r){return r?e?"yt-icons:collapse":"yt-icons:close":e?"yt-icons:expand":_.R("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.V.computeIndexMessage=function(G,e){return hRp(G+1)+" / "+hRp(e)};
_.V.onRenderStamperFinished=function(){if(this.scrollForStampDom){var G=!0;this.isHovered&&(G=!1);if(this.collapsed||this.hidden)G=!1;G&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.V.collapseChanged=function(){var G=this;this.collapsed||(_.Zk(this.ytTaskEmitterBehavior.getTaskManager(),function(){G.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.V.hiddenChanged=function(){var G=this;this.hidden||_.Zk(this.ytTaskEmitterBehavior.getTaskManager(),function(){G.scrollToCurrentVideo()})};
_.V.setupReordering=function(){var G=_.z1(this.hostElement).querySelector("#items");s6w?_.ZAn(this.JSC$17226_ytReorderableController,G,G,"playlist-drag-handle"):_.ZAn(this.JSC$17226_ytReorderableController,G,G)};
_.V.scrollToCurrentVideo=function(){var G=this;_.A0.addJob(function(){var e=_.z1(G.hostElement).querySelector("#items");if(e){e.style.setProperty("padding-bottom","");var r=_.z1(G.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(r){e=r.parentElement||_.Kl(document);var Z=e||_.Kl(document);var O=_.Jx(r),M=_.Jx(Z),T=_.yxn(Z);if(Z==_.Kl(document)){var E=O.x-Z.scrollLeft;O=O.y-Z.scrollTop}else E=O.x-M.x-T.left,O=O.y-M.y-T.top;r=nfy(r);M=Z.clientHeight-
r.height;T=Z.scrollLeft;var b=Z.scrollTop;T+=E-(Z.clientWidth-r.width)/2;Z=new _.yB(T,b+(O-M/2));e.scrollLeft=Z.x;e.scrollTop=Z.y}}},8)};
_.V.dataChanged=function(){var G=this;_.fJ(this.JSC$17226_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.DE(this,function(){_.IQ(G.ytTaskEmitterBehavior.getTaskManager(),function(){G.ytRendererBehavior.markDirty();G.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.V.onFullBleedPlayerChanged=function(){_.R("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.V.onFullscreenChanged=function(){_.R("web_watch_imax_theater_mode")||_.R("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.V.updateNowPlayingOverlay=function(){_.R("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.V.onPlaylistLockupNowPlaying=function(G,e){e&&(this.activeNowPlayingRenderer=e);this.updateNowPlayingOverlay()};
_.V.onScroll=function(){this.scrollThrottle.fire()};
_.V.onThrottledScroll=function(){var G=this;_.IQ(this.ytTaskEmitterBehavior.getTaskManager(),function(){G.ytRendererBehavior.markDirty()})};
_.V.onToggleExpanded=function(G){!this.collapsible||G&&(_.mk(G).tagName==="A"||_.mO(_.na(G),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.V.setCollapsed=function(G){this.collapsible&&(this.collapsed=G,_.UW(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.V.handleCollapsedFromData=function(G){if(G){var e=G.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!==G.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(e=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==e&&this.setCollapsed(e),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=G.playlistId}};
_.V.handleDrop=function(G){var e=G.currDragItem;G=e.data.playlistSetVideoId;var r=_.cA(e.parentNode.childNodes,e),Z=void 0;r>0&&(Z=e.parentNode.childNodes[r-1].data.playlistSetVideoId);e=_.M6();if(e.responsePlaylistData&&e.responsePlaylistData.contents){var O=G3y(G,e.responsePlaylistData);e.responsePlaylistData=(0,_.c2.unsafeClone)(e.responsePlaylistData);mU_(e.responsePlaylistData.contents,O,r);e.queueProxy?OIv(e.queueProxy,O,r,G,Z):e.playlistProxy&&OIv(e.playlistProxy,O,r,G,Z);_.V9(e,_.hL(e,e.response?
e.response.autoplayRenderer:void 0))}};
_.V.handleDarkModeChange=function(G){G!==this.isDarkTheme&&(this.isDarkTheme=G)};
_.V.colorPaletteChanged=function(){var G,e=((G=this.data)==null?void 0:G.contents)||[],r;G=_.h(e);for(e=G.next();!e.done;e=G.next()){e=e.value;var Z=void 0;if((Z=e.playlistPanelVideoRenderer)==null?0:Z.selected){G=e.playlistPanelVideoRenderer;Z=e=void 0;(r=this.isDarkTheme?(e=G)==null?void 0:e.darkColorPalette:(Z=G)==null?void 0:Z.lightColorPalette)&&_.Sv(this.hostElement,r);break}}this.useColorPalette=!!r};
_.iY.Object.defineProperties(SB.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.moveThreeDotsMenuToMainHeader)&&_.R("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var G=_.v_().resolve(_.bq(_.Gt)),e;if(((e=this.data)==null?0:e.contents)&&(G==null?0:G.hasAutoplayData())){var r;if(((r=this.playlistLoopStateEntity)==null?void 0:r.state)==="PLAYLIST_LOOP_STATE_ONE"){if(G=this.data.currentIndex,G!==void 0){var Z,O;var M=(Z=this.data.contents[G])==null?void 0:(O=Z.playlistPanelVideoRenderer)==null?void 0:O.title}}else{var T,E=(T=_.a(G.getAutoplayEndpoint(),_.u4))==null?void 0:T.videoId,b,w;M=(b=this.data.contents.find(function(q){var t;
return((t=q.playlistPanelVideoRenderer)==null?void 0:t.videoId)===E}))==null?void 0:(w=b.playlistPanelVideoRenderer)==null?void 0:w.title}return M}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)!=null&&G.nextVideoLabel?this.nextVideoTitle?_.mG(this.data.nextVideoLabel)+":":Skd:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var G;if(((G=this.data)==null?0:G.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.R("web_mix_long_byline_from_data"))return _.nQ(qkW);var e;return(e=this.data)==null?void 0:e.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var G,e,r,Z=(G=this.data)==null?void 0:(e=G.playlistButtons)==null?void 0:(r=e.menuRenderer)==null?void 0:r.topLevelButtons;if(Z)for(G=_.h(Z),e=G.next();!e.done;e=G.next())if(e=e.value,e.playlistLoopButtonRenderer)return e.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var G;return!!(this.collapsed&&((G=this.data)==null?0:G.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.R("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
SB.prototype.colorPaletteChanged=SB.prototype.colorPaletteChanged;SB.prototype.onPlaylistLockupNowPlaying=SB.prototype.onPlaylistLockupNowPlaying;SB.prototype.updateNowPlayingOverlay=SB.prototype.updateNowPlayingOverlay;SB.prototype.onFullscreenChanged=SB.prototype.onFullscreenChanged;SB.prototype.onFullBleedPlayerChanged=SB.prototype.onFullBleedPlayerChanged;SB.prototype.dataChanged=SB.prototype.dataChanged;SB.prototype.hiddenChanged=SB.prototype.hiddenChanged;SB.prototype.collapseChanged=SB.prototype.collapseChanged;
SB.prototype.onRenderStamperFinished=SB.prototype.onRenderStamperFinished;SB.prototype.onMouseLeave=SB.prototype.onMouseLeave;SB.prototype.onMouseEnter=SB.prototype.onMouseEnter;_.B([_.k(_.CS),_.x("design:type",Object)],SB.prototype,"ironResizableBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],SB.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],SB.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(Hil.YtPlaylistPanelBehavior),_.x("design:type",Object)],SB.prototype,"ytPlaylistPanelBehavior",void 0);_.B([_.k(_.Zs.YtTaskEmitterBehavior),_.x("design:type",Object)],SB.prototype,"ytTaskEmitterBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],SB.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],SB.prototype,"ytdReduxBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],SB.prototype,"actionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],SB.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],SB.prototype,"autoplayData",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],SB.prototype,"withinMiniplayer",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],SB.prototype,"minimizePipBreakages",void 0);
_.B([_.n({computed:"setMenuData_(data)"}),_.x("design:type",Object)],SB.prototype,"menuRendererData",void 0);_.B([_.n({computed:"computeOverflowMenuData(data)"}),_.x("design:type",Object)],SB.prototype,"overflowMenuDataTopRow",void 0);_.B([_.n({computed:"computeOverflowMenuData(data)"}),_.x("design:type",Object)],SB.prototype,"overflowMenuData",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],SB.prototype,"hideHeaderText",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],SB.prototype,"useColorPalette",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.x("design:type",Boolean)],SB.prototype,"collapsible",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],SB.prototype,"collapsed",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],SB.prototype,"hidden",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.x("design:type",Boolean)],SB.prototype,"hasPlaylistButtons",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.x("design:type",Boolean)],SB.prototype,"hasSeparateSaveButton",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.x("design:type",Boolean)],SB.prototype,"hasToolbar",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.x("design:type",String)],SB.prototype,"playlistType",void 0);_.B([_.n(),_.x("design:type",Object)],SB.prototype,"isHovered",void 0);_.B([_.n({selectorArgs:["playlistLoopStateEntityKey"],selector:_.Iq.playlistLoopStateEntitySelector}),_.x("design:type",Object)],SB.prototype,"playlistLoopStateEntity",void 0);_.B([_.n({computed:"computeCanReorder(data)"}),_.x("design:type",Boolean)],SB.prototype,"canReorder",void 0);
_.B([_.n(),_.x("design:type",Object)],SB.prototype,"expandLabel",void 0);_.B([_.n(),_.x("design:type",Object)],SB.prototype,"collapseLabel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],SB.prototype,"isFloating",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],SB.prototype,"metaPanel",void 0);_.B([_.n({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.x("design:type",String)],SB.prototype,"trailingIcon",void 0);
_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],SB.prototype,"isDarkTheme",void 0);_.B([_.n({selector:_.j6}),_.x("design:type",Boolean)],SB.prototype,"miniplayerIsActive",void 0);_.B([_.n({selector:function(G){return G.watch.playerState}}),
_.x("design:type",Number)],SB.prototype,"playerState",void 0);_.B([_.n({selector:_.aV}),_.x("design:type",Boolean)],SB.prototype,"isFullscreen",void 0);_.B([_.n({selector:_.jv}),_.x("design:type",Boolean)],SB.prototype,"isTheaterMode",void 0);_.B([_.n(),_.x("design:type",Object)],SB.prototype,"activeNowPlayingRenderer",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],SB.prototype,"moveThreeDotMenuToTopRow",null);
_.B([_.d("data","autoplayData","playlistLoopStateEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],SB.prototype,"nextVideoTitle",null);_.B([_.d("data","nextVideoTitle"),_.x("design:type",String),_.x("design:paramtypes",[])],SB.prototype,"nextVideoLabel",null);_.B([_.d("collapsed"),_.x("design:type",String),_.x("design:paramtypes",[])],SB.prototype,"buttonAriaLabel",null);
_.B([_.d("data","playlistId","longBylineText"),_.x("design:type",Object),_.x("design:paramtypes",[])],SB.prototype,"mixLongByLine",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],SB.prototype,"playlistLoopStateEntityKey",null);_.B([_.Om("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SB.prototype,"onMouseEnter",null);
_.B([_.Om("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SB.prototype,"onMouseLeave",null);_.B([_.n({reflectToAttribute:!0}),_.d("data","collapsed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],SB.prototype,"showNextVideoHeader",null);_.B([_.Om("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SB.prototype,"onRenderStamperFinished",null);
_.B([_.Me("collapsed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SB.prototype,"collapseChanged",null);_.B([_.Me("hidden"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SB.prototype,"hiddenChanged",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SB.prototype,"dataChanged",null);
_.B([_.d("isTheaterMode","isFullscreen"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],SB.prototype,"isFullBleedPlayer",null);_.B([_.Me("isTheaterMode","isFullscreen"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SB.prototype,"onFullBleedPlayerChanged",null);_.B([_.Me("isFullscreen"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SB.prototype,"onFullscreenChanged",null);
_.B([_.Me("playerState","miniplayerIsActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SB.prototype,"updateNowPlayingOverlay",null);_.B([_.Om("yt-playlist-lockup-now-playing-active"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],SB.prototype,"onPlaylistLockupNowPlaying",null);
_.B([_.Me("data","isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SB.prototype,"colorPaletteChanged",null);_.B([_.c({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],SB);
_.tZm=_.xP()(SB,"ytd-playlist-panel-renderer",function(){if(bjW===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);bjW=G}G=bjW;return G},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var g$8;var q3=function(){return _.m.apply(this,arguments)||this};
_.K(q3,_.m);q3.prototype.computeShouldButtonBeVertical=function(G,e){return G||e};
q3.prototype.onYtServiceRequestSent=function(G,e){(G=_.a(e.endpoint,_.Kx))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.bt("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:G.status})):this.handleLikeEndpoint(G))};
q3.prototype.computelikeStatusEntityKey=function(G){return G==null?void 0:G.likeStatusEntityKey};
q3.prototype.handleLikeEndpoint=function(G){G.status==="LIKE"?this.JSC$17232_ytdDislikeToggleButtonRenderer.toggle(!1):G.status==="DISLIKE"?this.JSC$17232_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17232_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17232_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.iY.Object.defineProperties(q3.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var G;return EHN(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(G=this.likeStatusEntity)==null?void 0:G.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var G;if(this.data&&((G=this.data)==null||!G.hideDislikeButton)){var e;return EHN(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(e=this.likeStatusEntity)==null?void 0:e.likeStatus)}}}});
q3.prototype.onYtServiceRequestSent=q3.prototype.onYtServiceRequestSent;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],q3.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],q3.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],q3.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],q3.prototype,"vertical",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],q3.prototype,"textTransform",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],q3.prototype,"useShortsIcon",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],q3.prototype,"underIconLabel",void 0);_.B([_.n({value:"left"}),_.x("design:type",String)],q3.prototype,"buttonTooltipPosition",void 0);_.B([_.n(),_.x("design:type",Object)],q3.prototype,"overrides",void 0);
_.B([_.hs("#like-button"),_.x("design:type",Object)],q3.prototype,"JSC$17232_ytdLikeToggleButtonRenderer",void 0);_.B([_.hs("#dislike-button"),_.x("design:type",Object)],q3.prototype,"JSC$17232_ytdDislikeToggleButtonRenderer",void 0);_.B([_.d("data","likeStatusEntity.likeStatus","useShortsIcon"),_.x("design:type",Object),_.x("design:paramtypes",[])],q3.prototype,"likeButton",null);
_.B([_.d("data","likeStatusEntity.likeStatus","useShortsIcon"),_.x("design:type",Object),_.x("design:paramtypes",[])],q3.prototype,"dislikeButton",null);_.B([_.n({computed:"computelikeStatusEntityKey(data)"}),_.x("design:type",String)],q3.prototype,"likeStatusEntityKey",void 0);_.B([_.n({selectorArgs:["likeStatusEntityKey"],selector:K1}),_.x("design:type",Object)],q3.prototype,"likeStatusEntity",void 0);
_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.oV]),_.x("design:returntype")],q3.prototype,"onYtServiceRequestSent",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],q3);
var lvV=_.xP()(q3,"ytd-like-button-renderer",function(){if(g$8===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);g$8=G}G=g$8;return G},{mode:1});_.RXW={};
_.RXW.YtConditionalRendererBehavior=[_.W.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(G,e){var r=this,Z,O;return _.D(function(M){switch(M.nextAddress){case 1:if(!e)return r.hidden=!0,r.showSpinner=!1,M.return();if((Z=G)==null?0:(O=Z.visibilityCondition)==null?0:O.mode)switch(G.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return M.jumpTo(5);default:return M.jumpTo(6)}r.showSpinner=
!1;r.hidden=!0;return M.yield(r.shouldShow_(G),4);case 4:r.hidden=!M.yieldResult;M.jumpTo(0);break;case 5:return M.yield(r.shouldShow_(G),8);case 8:r.showSpinner=M.yieldResult;r.hidden=!1;M.jumpTo(0);break;case 6:return r.showSpinner=!1,M.yield(r.shouldShow_(G),9);case 9:r.hidden=!M.yieldResult,_.HL(M)}})},
shouldShow_:function(G){return G&&G.supportedDatas&&G.supportedDatas.rendererVisibilityConditionData&&G.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(G.supportedDatas.rendererVisibilityConditionData.showIf):G&&G.visibilityCondition&&G.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(G.visibilityCondition.showIf):G&&G.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(G.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(G){switch(G){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(G){switch(G){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var G=_.Pi(this.hostElement,"yt-get-mdx-status");return G.length==1&&G[0].connected},
isLocationPermissionGranted_:function(){var G;return _.D(function(e){return e.nextAddress==1?navigator.permissions?e.yield(navigator.permissions.query({name:"geolocation"}),3):e.jumpTo(2):e.nextAddress!=2?(G=e.yieldResult,e.return(Promise.resolve(G.state==="granted"))):e.return(Promise.resolve(!1))})}}];var j2Y=BMA("yt-icon",{callbackProps:["onKeydown"]}),avY=_.R("kevlar_use_wil_icons")?_.y(function(G){var e=G.icon;var r=G.active;var Z=G.className;var O=G.style;var M=G.size;var T=G.dataSelected;var E=G.dataDisabled;var b=G.role;var w=G.themeOverride;var q=G.animateIcon;var t=G.ariaHidden;var g=G.ariaExpanded;var l=G.ariaLabel;var X=G.tabindex;var H=G.id;var I=G.iconFilter;var C=G.gradientColor;var u=G.onKeydown;var P=function(){var U=e==null?void 0:e(),e$=null,Dq=void 0;U&&(U=OeW(U),U=l6y(U),U.length&&
(e$=U[1],Dq=U[0]));return{iconName:e$,iconSetName:Dq}},F=function(){return MYE(P().iconName,r==null?void 0:r(),void 0,M==null?void 0:M(),P().iconSetName,_.v_().resolve(_.LR))},J=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:I==null?void 0:I(),iconColor:C==null?void 0:C()}};
return _.v(_.S,{cond:q,then:function(){return _.v(j2Y,{icon:e,active:r,className:Z,style:O,dataSelected:T,dataDisabled:E,role:b,themeOverride:w,ariaHidden:t,ariaExpanded:g,ariaLabel:l,tabindex:X,id:H,iconFilter:I,gradientColor:C,onKeydown:u})},
else:function(){return _.v(_.S,{cond:F,then:function(U){return _.v("span",{class:_.LC("ytIconWrapperHost",Z),role:b,"aria-label":l,"aria-hidden":t,tabindex:function(){return isNaN(Number(X==null?void 0:X()))?void 0:Number(X==null?void 0:X())},
id:H,style:O,"on:keydown":_.ev(function(e$){return void(u==null?void 0:u(e$))})},_.v(AuS,{data:U,
options:J}))}})}})},"gg"):j2Y;var Xwa=function(G){var e=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];tsa();_.Eu("ytglobal.ytUtilActivityCallback_",function(){_.UW(G,"yt-user-activity")});
new Es(function(){return e.JSC$17249_onMouseMove});
document.addEventListener("scroll",function(){return e.onScroll});
window.addEventListener("resize",function(){return e.onResize})},K_C=function(G,e,r){e in G.eventJobIds||(r=_.S0().addLowPriorityJob(function(){_.ij();
delete G.eventJobIds[e]},r),G.eventJobIds[e]=r)};
Xwa.prototype.onScroll=function(G){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):G.target===document&&K_C(this,"scroll",200)};
Xwa.prototype.onResize=function(){K_C(this,"resize",200)};
Xwa.prototype.JSC$17249_onMouseMove=function(){K_C(this,"mousemove",100)};
_.hv=function(G){G.scrollEventsToIgnore+=1;G.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){G.scrollEventsToIgnore--},500))};var fv2=function(G){this.element=G;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
fv2.prototype.showFeedbackDialog=function(G,e,r,Z){var O=kqm();if(!O)return!1;var M=RRs();M.productId=O;e&&(M.flow="submit",M.report={description:e});r&&(kqm()==="59"?M.callback=_.N0(function(){_.cg("userFeedbackEvent",{});r()}):M.callback=_.N0(r));
M.bucket=Z||_.xZ("GOOGLE_FEEDBACK_BUCKET","Other");Hj2(M);G=dZl(this,"GFEEDBACK",G);try{_.i7W(M,G)}catch(T){return _.WX(T),!1}return!0};
fv2.prototype.showHelpDialog=function(G,e,r){var Z=this,O=kqm();if(!O)return!1;var M={helpCenterPath:"/youtube",productData:dZl(this,"GUIDED_HELP",r)};Hj2(M);var T=RRs();T.context=G||M.productData.context||"default";T.defaultHelpArticleId=e;T.enableSendFeedback=!0;(_.Lz("gapi.load")||function(E,b){return b()})("client",function(){try{var E=Suy(O,M);
if(_.R("web_always_load_chat_support")&&!Z.chatSupportLoaded)try{E.JSC$9984_loadChatSupport(T),Z.chatSupportLoaded=!0}catch(b){}E.startHelp(T)}catch(b){_.WX(b)}})};
var kqm=function(){var G=_.xZ("GOOGLE_FEEDBACK_PRODUCT_ID");G||_.WX(Error("gi"));return G},Hj2=function(G){G&&(G.locale=_.R("kevlar_help_use_locale")?_.xZ("INNERTUBE_CONTEXT_HL","en"):_.xZ("HTML_LANG","en"))},dZl=function(G,e,r){var Z=G.productData;
delete Z.origin;Z.device=_.gs();var O;a:{if(O=document.createElement("canvas")){var M=O.getContext("experimental-webgl",{stencil:!0});if(M){var T=M.getExtension("WEBGL_debug_renderer_info");if(T){O=M.getParameter(T.UNMASKED_RENDERER_WEBGL);break a}}if(M=O.getContext("webgl")){O=M.getParameter(M.RENDERER);break a}}O=null}Z.gpu=O;Z.isSDC=!!_.xZ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(O=_.xZ("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.c2.extend(Z,O);_.gHf(e,Z);_.lIS(Z);(G=_.UW(G.element,"yt-get-autonav-pause-debug-state"))&&
G.length&&(Z.autonav_pause_state=G[0]);G=_.dS();Z.browser_resolution=G.width+"\u00d7"+G.height+"@"+(window.devicePixelRatio||1)+"x";r&&_.c2.extend(Z,r);return Z};
fv2.prototype.resetProductData=function(){this.productData={}};var o$a=function(G){this.feedbackManager=new fv2(G)};
o$a.prototype.showFeedbackDialog=function(G,e,r,Z){return this.feedbackManager.showFeedbackDialog(G,e,r,Z)};
o$a.prototype.showHelpDialog=function(G,e,r){return this.feedbackManager.showHelpDialog(G,e,r)};var s2V=function(){this.baseUrl="";this.aTag=document.createElement("a")},udc=function(G,e,r){r=r===void 0?{}:r;
r.pbj||(r.pbj=1);r=_.eLN(e,r);G.baseUrl&&r&&!_.hd(r)[1]&&!_.TG(r)&&(e=G.baseUrl,TS(e,"/")&&(e=e.slice(0,-1)),_.Vp(r,"/")&&(r=r.slice(1)),r=e+"/"+r);Pw(G.aTag,_.Y$(r||""));return G.aTag.href};
s2V.prototype.fetchData=function(G){return _.vHS(G)};
s2V.prototype.postData=function(G,e){var r={method:"POST"};if(e){for(var Z=_.h(Object.keys(e)),O=Z.next();!O.done;O=Z.next()){O=O.value;var M=e[O];_.PA(M)&&(e[O]=JSON.stringify(M))}r.postParams=e}return _.vHS(G,r)};
_.nF3=function(G,e,r,Z,O){G=udc(G,e,r);if(!G)throw Z=Error("hi"),Object.assign(Z,{params:e}),Z;return _.vHS(G,O,Z)};
s2V.prototype.requestDataForServiceEndpoint=function(G,e){if(_.a(G,_.KUy))return this.fetchData("/getAccountSwitcherEndpoint");e=e||{};var r=_.a(G,g9S);r?e.se=r.base64EncodedServiceEndpoint:e.sej=JSON.stringify(G);(r=_.l4())&&_.R("enable_service_ajax_csn")&&(e.csn=r);e.theme=_.d0();_.a(G,aK$)&&_.xZ("DELEGATION_CONTEXT")&&(e.delegation_context=JSON.stringify(_.xZ("DELEGATION_CONTEXT")));r=null;for(var Z in G)if(TS(Z,"Endpoint")||TS(Z,"Command")){r=Z;break}if(!r){var O=Error("ii");Object.assign(O,{params:G});
_.Npp(O,"WARNING");return new _.aQ(function(T,E){E(O)})}Z={name:r};
var M;(r=(M=_.a(G,_.eq))==null?void 0:M.signal)&&(Z.signal=r);(M=_.O5(window.location.href))&&M.internalcountrycode&&(Z.internalcountrycode=M.internalcountrycode);M="/service_ajax";_.R("debug_forward_web_query_parameters")&&(M=_.wn4(M,window.location.search));M=_.Vi(M,Z);G.clickTrackingParams&&_.Yy(M,{itct:G.clickTrackingParams});return this.postData(M,e)};_.Q22=new _.Gz("GFEEDBACK_TOKEN");var Ivo;var pw8;var CzY;var uyB;var tc=function(){var G=_.m.apply(this,arguments)||this;G.compact=!1;G.dismissButtonDisabled=!1;G.shouldRenderReasonAsFormattedString=!_.R("web_player_error_message_reason_as_formatted_string_killswitch");return G};
_.K(tc,_.m);tc.prototype.computeHasIcon_=function(G){return!!G};
tc.prototype.isSignInIcon_=function(G){return G=="yt-icons:prompted_sign_in"};
tc.prototype.onDismissButtonClick=function(){var G=this,e=this.data.disableOnClick,r,Z=(r=this.data.dismissButton)==null?void 0:r.buttonRenderer;e&&!this.dismissButtonDisabled&&Z&&setTimeout(function(){G.dismissButtonDisabled=!0},0)};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],tc.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.RXW.YtConditionalRendererBehavior),_.x("design:type",Object)],tc.prototype,"ytConditionalRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],tc.prototype,"data",void 0);_.B([_.n({computed:"computeIcon_(data.icon)"}),_.x("design:type",Object)],tc.prototype,"icon_",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.x("design:type",Boolean)],tc.prototype,"hasIcon_",void 0);_.B([_.n({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.x("design:type",Boolean)],tc.prototype,"signInIcon_",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],tc.prototype,"compact",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],tc.prototype,"dismissButtonDisabled",void 0);
_.B([_.n({type:Boolean}),_.x("design:type",Object)],tc.prototype,"shouldRenderReasonAsFormattedString",void 0);_.B([_.aR({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],tc);
_.A(tc,"yt-player-error-message-renderer",function(){if(uyB===void 0){var G=document.createElement("template");_.f(G,'\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    <template is="dom-if" if="[[shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <yt-formatted-string id="reason" is-overlay="" text="[[data.reason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    </template>\n    <template is="dom-if" if="[[!shouldRenderReasonAsFormattedString]]" restamp="" 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    </template>\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;CzY===void 0&&(CzY=document.createElement("template"));var Z=CzY;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);uyB=G}G=uyB;return G},{mode:2});var n$m;var mZA;var gm=function(){return _.m.apply(this,arguments)||this};
_.K(gm,_.m);gm.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
gm.prototype.computeIcon_=function(G){return G?"yt-icons:"+G.iconType.toLowerCase():"error_outline"};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],gm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],gm.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],gm.prototype,"data",void 0);_.B([_.n({computed:"computeIcon_(data.icon)"}),_.x("design:type",Object)],gm.prototype,"icon_",void 0);_.B([_.aR({is:"yt-player-kav-renderer",disableElementRegistration:!0})],gm);
_.A(gm,"yt-player-kav-renderer",function(){if(mZA===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;n$m===void 0&&(n$m=document.createElement("template"));var Z=n$m;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);mZA=G}G=mZA;return G},{mode:2});var XMi=_.Cp(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.J_(_.y(function(G){var e=_.hT("div"),r=_.h(_.XQ(0,void 0,"jxh75d")),Z=r.next().value,O=r.next().value;r=_.h(_.XQ(null,void 0,"F5Zm8"));var M=r.next().value,T=r.next().value;_.yY(function(){KXA(e.value,O,T);e.value.scrollIntoView()});
r=fIf.bind(null,G.data,Z);_.iC("resize",function(){var E=M();if(Z()===1&&E!==null){var b;(b=window.grecaptcha)==null||b.reset(E)}});
return _.v("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.v("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.v("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var E,b;return(E=G.data().accessibility)==null?void 0:(b=E.accessibilityData)==null?void 0:b.label}),_.v(_.Wh,{text:r,
className:_.LC("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.v("div",{el:e,class:"ytwPlayerCaptchaViewModelGridItem"})))},"hg"),"yt-player-captcha-view-model",{props:{data:_.yb}});var kk_=!1;_.ctY=_.y(function(G){var e=G.data;return _.v("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.v(_.S,{cond:function(){return e().icon},
then:function(r){return _.v("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.v(_.nC,{data:r,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.v(_.S,{cond:function(){return e().title},
then:function(r){return _.v("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.v(_.Wh,{text:r}))}}),_.v(_.S,{cond:function(){return e().description},
then:function(r){return _.v("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.v(_.Wh,{text:r}))}}),_.v(_.E2,{data:function(){return e().primaryButton}},{buttonViewModel:function(r){return _.v(_.wF,{data:r.data,
className:"interstitialViewModelFlexItem"})}}),_.v(_.E2,{data:function(){return e().secondaryButton}},{buttonViewModel:function(r){return _.v(_.wF,{data:r.data,
className:"interstitialViewModelFlexItem"})}}))},"ig");
_.ctY.idomCompat=!0;var Yk8=_.y(function(G){var e=G.data;_.d7();return _.v("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.v("div",{class:"playerInterstitialRendererScrim"},_.v(_.E2,{data:function(){return e().content}},{interstitialViewModel:_.ctY})))},"jg");
Yk8.idomCompat=!0;_.J_(Yk8,"yt-player-interstitial-renderer",{props:{data:_.N6}});var l2=function(){var G=_.m.apply(this,arguments)||this;G.noBackground=!1;G.compact=!1;G.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return G};
_.K(l2,_.m);l2.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"}}}};
l2.prototype.onUpdatePlayerErrorMessageCommand_=function(G){if(_.a(G,Isj)){var e;if(G=(e=_.a(G,Isj))==null?void 0:e.newPlayerErrorMessageRenderer)this.data=G}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],l2.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],l2.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],l2.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],l2.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],l2.prototype,"status",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],l2.prototype,"noBackground",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],l2.prototype,"compact",void 0);_.B([_.aR({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],l2);
var yto=_.xP()(l2,"yt-playability-error-supported-renderers",function(){if(pw8===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;Ivo===void 0&&(Ivo=document.createElement("template"));var Z=Ivo;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);pw8=G}G=pw8;return G},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var Atm=BMA("ytd-button-renderer");var H$N=void 0,oHA=void 0;var IIS=new ezl;var JZ=new _.Gz("ENTITY_STATE_TOKEN"),R7=new _.Gz("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var F_a=function(G){this.store=G;this.vKu=new _.OFW},Key=function(G,e,r){var Z,O;
if(!(O=((Z=e.playabilityStatus)==null?void 0:Z.status)!=="OK")){G=G.store;var M;O=e.offlineState&&((M=e.videoDetails)==null?0:M.videoId)?_.R("enable_pl_r_c_cd")?Bk_(G.getState().entities,e.videoDetails.videoId):!!g0N(G.getState().entities,e.videoDetails.videoId):!1}if(O)return!0;O=m5p(e);if(O===1){if(_.R("ab_v_vid_sig")){var T,E=(T=e.videoDetails)==null?void 0:T.videoId;if(!E||!r||E!==r){var b;e=new _.Cr("282054944_vid",{evq:r,f2k:(b=e.videoDetails)==null?void 0:b.videoId});_.yx(e)}}return!0}uMA=
0;var w,q;b=(E=e.auxiliaryUi)==null?void 0:(w=E.messageRenderers)==null?void 0:(q=w.bkaEnforcementMessageViewModel)==null?void 0:q.displayType;if(O!==3&&(b==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||b==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;b={reason:_.Bn(_.OK("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.R("ks_something_wrong_learn_more")?GTS("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.Bn(_.OK("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:_.Bn("282054944")};JtW(e,{playerErrorMessageRenderer:b});return!1},fjN=function(G,e){if(GZF(e)){_.ZC(1,!0);
var r=(r=GZF(e))&&_.d5_()?r:void 0;r?(JtW(e,{enforcementMessageViewModel:r}),G.vKu.increment("IN_PLAYER"),_.ZC(5)):(G.vKu.increment("SKIP_DISPLAY"),_.ZC(2))}},JtW=function(G,e){G.playabilityStatus=Object.assign({},G.playabilityStatus,{status:"ERROR",
errorScreen:e});G.videoDetails=void 0};
F_a.prototype.handleResponse=function(G,e){if(G.playabilityStatus){var r,Z,O,M=(e==null?void 0:(r=e.innerTubeRequest)==null?void 0:r.videoId)||(e==null?void 0:(Z=e.innerTubeRequest)==null?void 0:(O=Z.playerRequest)==null?void 0:O.videoId);Key(this,G,M)&&fjN(this,G)}};
F_a[wR]=[JZ];var aja=new _.Gz("ADBLOCK_DETECTION_SERVICE_TOKEN");var IN=function(G){this.eL3=G};
IN.prototype.bindInnertubeChallengeFetcher=function(G){this.eL3.bicf(G)};
IN.prototype.registerChallengeFetchedCallback=function(G){this.eL3.bcr(G)};
IN.prototype.getLatestChallengeResponse=function(){return this.eL3.blc()};var Bz2;Bz2=_.Cp(["https://static.doubleclick.net/instream/ad_status.js"]);_.xZW=_.qK(Bz2);var W_8;_.jB=function(G,e,r){var Z=this;this.network=G;this.options=e;this.networkStatusManager=r;this.bn=null;if(e.useBotguardEverywhere){var O=new _.G1;this.bn=O.promise;_.O_.ytAtRC&&_.w8(_.A0,function(){var M,T;return _.D(function(E){if(E.nextAddress==1){if(!_.O_.ytAtRC)return E.return();M=Pz8(null);return E.yield(Z.zM(M),2)}T=E.yieldResult;_.O_.ytAtRC&&_.O_.ytAtRC(JSON.stringify(T));_.HL(E)})});
FX4().then(function(M){var T,E,b,w;return _.D(function(q){if(q.nextAddress==1)return M.bindInnertubeChallengeFetcher(function(t){return Z.zM(Pz8(t))}),q.yield(JHs(),2);
T=q.yieldResult;E=M.getLatestChallengeResponse();b=E.challenge;if(!b)throw Error("ji");w={challenge:b,hP:QM(b),vm:T,bgChallenge:new oN};O.resolve(w);M.registerChallengeFetchedCallback(function(t){t=t.challenge;if(!t)throw Error("ki");t={challenge:t,hP:QM(t),vm:T,bgChallenge:new oN};Z.bn=Promise.resolve(t)});
_.HL(q)})})}else e.preload&&UZ8(this,new Promise(function(M){_.IQ(_.A0,function(){M(zXo(Z))},0)}))};
W_8=function(G){var e={preload:!0,useBotguardEverywhere:!0},r=!1;if(typeof e==="boolean")var Z={preload:e};else typeof e==="undefined"?Z={preload:!0}:(Z=e,r=!!e.nwN);e=r?void 0:new _.e4;_.jB.instance=new _.jB(G,Z,e);return _.jB.instance};
_.jB.prototype.cIB=function(){var G=this;return _.D(function(e){return e.nextAddress==1?e.yield(Promise.race([G.bn,null]),2):e.return(!!e.yieldResult)})};
_.jB.prototype.ps0=function(G,e,r){var Z=this,O,M,T;return _.D(function(E){Z.bn===null&&UZ8(Z,zXo(Z));O=!1;M={};T=function(){var b,w,q;return _.D(function(t){switch(t.nextAddress){case 1:return t.yield(Z.bn,2);case 2:b=t.yieldResult;M.challenge=b.challenge;if(!b.vm){"c1a"in b.hP&&(M.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");t.jumpTo(3);break}w=Object.assign({},{c:b.challenge,e:G},e);_.jr(t,4);O=!0;return t.yield(b.vm.snapshot({j0:w}),6);case 6:(q=t.yieldResult)?M.webResponse=q:M.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.rL(t,3);break;case 4:_.k5(t),M.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(G==="ENGAGEMENT_TYPE_PLAYBACK"){var g=b.hP,l={};if(g.c6a){var X=Number(_.xZ("DCLKSTAT",0));l.reportingStatus=String(Number(g.c)^(isNaN(X)?0:X))}g.c6b&&(l.broadSpectrumDetectionResult=String(Number(g.c)^Number(_.xZ("CATSTAT",0))));M.adblockReporting=l}return t.return(M)}})};
return E.return(Promise.race([T(),NzW(r,function(){var b=Object.assign({},M);O&&(b.error="ATTESTATION_ERROR_VM_TIMEOUT");return b})]))})};
var Pz8=function(G){var e={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};G&&(e.interpreterHash=G);return e},zXo=function(G,e){e=e===void 0?0:e;
var r,Z,O,M,T,E,b,w,q,t,g,l;return _.D(function(X){switch(X.nextAddress){case 1:r=Pz8(MmW().zNu);if(_.R("att_fet_ks"))return _.jr(X,7),X.yield(G.zM(r),9);_.jr(X,4);return X.yield(L_B(G,r),6);case 6:T=X.yieldResult;O=T.cSo;M=T.bpZ;Z=T;_.rL(X,3);break;case 4:return _.k5(X),_.FH(Error("li`"+e)),GeC(G,864E5),X.return({challenge:"",hP:{},vm:void 0,bgChallenge:void 0});case 9:Z=X.yieldResult;if(!Z)throw Error("mi");if(!Z.challenge)throw Error("ni");O=Z.challenge;M=QM(O);if("c1a"in M&&(!Z.bgChallenge||!Z.bgChallenge.program))throw Error("oi");
_.rL(X,3);break;case 7:E=_.k5(X);_.FH(E);e++;if(e>=5)return _.FH(Error("li`"+e)),GeC(G,864E5),X.return({challenge:"",hP:{},vm:void 0,bgChallenge:void 0});b=1E3*Math.pow(2,e-1)+Math.random()*1E3;return X.return(new Promise(function(H){_.IQ(_.A0,function(){H(zXo(G,e))},b)}));
case 3:w=App(M);GeC(G,w*1E3);q=void 0;if(!("c1a"in M&&Z.bgChallenge)){X.jumpTo(10);break}t=ypS(Z.bgChallenge);_.jr(X,11);return X.yield(hwl(MmW(),t),13);case 13:_.rL(X,12);break;case 11:return g=_.k5(X),_.FH(g),X.return({challenge:O,hP:M,vm:q,bgChallenge:t});case 12:return _.jr(X,14),q=new _.pY({challenge:t,v0O:{j5:"aGIf"}}),X.yield(q.uwM,16);case 16:_.rL(X,10);break;case 14:l=_.k5(X),_.FH(l),q=void 0;case 10:return X.return({challenge:O,hP:M,vm:q,bgChallenge:t})}})};
_.jB.prototype.zM=function(G){var e=this,r;return _.D(function(Z){r=e.networkStatusManager;if(!r||r.isNetworkAvailable())return Z.return(e.network.zM(G));_.f_("att_pna",void 0,"attestation_challenge_fetch");return Z.return(new Promise(function(O){r.listenOnce("publicytnetworkstatus-online",function(){e.network.zM(G).then(O)})}))})};
var e18=function(G){if(!G)throw Error("mi");if(!G.challenge)throw Error("ni");var e=G.challenge,r=QM(e);if("c1a"in r&&(!G.bgChallenge||!G.bgChallenge.program))throw Error("oi");return Object.assign({},G,{cSo:e,bpZ:r})},L_B=function(G,e){var r,Z,O,M,T;
return _.D(function(E){switch(E.nextAddress){case 1:r=void 0,Z=0,O={};case 2:if(!(Z<5)){E.jumpTo(4);break}if(!(Z>0)){E.jumpTo(5);break}O.dL3=1E3*Math.pow(2,Z-1)+Math.random()*1E3;return E.yield(new Promise(function(b){return function(w){_.IQ(_.A0,function(){w(void 0)},b.dL3)}}(O)),5);
case 5:return _.jr(E,7),E.yield(G.zM(e),9);case 9:return M=E.yieldResult,E.return(e18(M));case 7:r=T=_.k5(E),T instanceof Error&&_.FH(T);case 8:Z++;O={dL3:void 0};E.jumpTo(2);break;case 4:throw r;}})},UZ8=function(G,e){G.bn=e},r6V=function(G){var e,r,Z;
return _.D(function(O){if(O.nextAddress==1)return O.yield(Promise.race([G.bn,null]),2);e=O.yieldResult;var M=zXo(G);G.bn=M;(r=e)==null||(Z=r.vm)==null||Z.dispose();_.HL(O)})},GeC=function(G,e){var r=Date.now()+e,Z=function(){var O;
return _.D(function(M){O=r-Date.now();return O<1E3?M.yield(r6V(G),0):(_.IQ(_.A0,Z,Math.min(O,6E4)),M.jumpTo(0))})};
Z()},NzW=function(G,e){return new Promise(function(r){_.IQ(_.A0,function(){r(e())},G)})};var Zmo=function(){};
Zmo.prototype.processContext=function(G){var e=_.jB.instance;if(!e)return _.ho();var r=zR4(G);return r?new V_(e.ps0(r,x5s(G),500).then(function(Z){var O;(G==null?0:(O=G.innerTubeRequest)==null?0:O.context)||(G.innerTubeRequest.context={});O=G.innerTubeRequest.context;O.request||(O.request={});O.request.attestationResponseData=Z})):_.ho()};var OmC=function(G){this.innertubeTransportService=G};
OmC.prototype.zM=function(G){_.f_("att_fsr",void 0,"attestation_challenge_fetch");return _.LE(this.innertubeTransportService,G,_.y4(_.cEj)).then(function(e){_.f_("att_frr",void 0,"attestation_challenge_fetch");return e})};_.MrB=function(G){this.innertubeTransportService=G};var Vr8=new _.Gz("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var h1H=function(){},Dg8=function(G,e,r,Z,O){var M=_.xZ("YPC_MB_URL");
_.pjA(M).then(function(){TPa(M,G,e,r,Z,O)})},TPa=function(G,e,r,Z,O,M){try{var T=_.c4.payments.business.integration,E=_.c4.payments.business.integration.Style.create().withMaterialDesignStyle(),b=T.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.R("enable_window_constrained_buy_flow_dialog")&&(b=b.usingPopupStyle("windowConstrained"));M&&(b=b.usingCloseCallback(M));var w=r?r:_.xZ("YPC_GB_LANGUAGE"),q=_.xZ("SESSION_INDEX");T.bootstrap.fromPaymentsUrl(G);T.bootstrap.asMashupMode(b).usingGaiaIndex(q).usingLocale(w).usingStyle(E).usingDefaultActivityStatusChangeHandler().inStandaloneContext(T.standaloneContextAuthId.forGaia()).purchaseManager(e,function(t){Z&&Z(t)}).load(void 0,O)}catch(t){throw O&&O(t),_.yx(t),t;
}};var E5a=new _.Gz("PURCHASE_MANAGER_TOKEN");var imW=function(){var G=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return G.videos},
getContinuationsPresent:function(){return G.continuationsPresent},
setVideos:function(e){G.videos=e},
getRecommendedVideos:function(){return G.recommendedVideos},
setRecommendedVideos:function(e){G.recommendedVideos=e}}};
imW.prototype.addVideos=function(G){G&&(this.videos=G.filter(function(e){return!!_.NXN(e)}).map(function(e){var r=_.NXN(e);
a:{var Z;if(e.playlistVideoRenderer&&((Z=e.playlistVideoRenderer)==null?0:Z.voteSortTiebreaker))var O=e.playlistVideoRenderer.voteSortTiebreaker;else{if(_.a(e,Cx)){var M;if(Z=(O=_.a(e,Cx))==null?void 0:(M=O.playlistItemData)==null?void 0:M.voteSortTiebreaker){O=Z;break a}}O=""}}return{itemId:r,videoId:_.e8_(e),voteCount:_.rWS(e),voteSortTiebreaker:O}}),this.continuationsPresent=!!_.a(G[G.length-1],_.mL))};
var bmo=function(G,e){return G.videos.findIndex(function(r){return r.itemId===e})},v5B=function(G,e){return G.recommendedVideos.findIndex(function(r){return r.itemId===e})},wLa=function(G){G={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:G}}}}};_.v_().resolve(_.$1).resolveCommand(G)};var $g8=function(){imW.apply(this,arguments)};
_.K($g8,imW);
var ueW=function(G,e,r,Z){if(!G.parentElem)throw Error("ti");var O=bmo(G,e);O===-1&&(O=v5B(G,e),O=O!==-1?O+G.videos.length:-1);if(O===-1)throw Error("ui");var M=O>=G.videos.length?G.recommendedVideos[O-G.videos.length]:G.videos[O];M.voteCount=r;M.voteSortTiebreaker=Date.now().toString();O>=G.videos.length?G.recommendedVideos.splice(O-G.videos.length,1):G.videos.splice(O,1);var T=G.videos;for(var E=0,b=T.length-1;E<=b;){var w=Math.floor((E+b)/2);if(T[w].voteCount<M.voteCount)b=w-1;else if(T[w].voteCount>M.voteCount)E=
w+1;else{a:{var q=M.voteSortTiebreaker;var t=T[w].voteSortTiebreaker;if(q.length!==t.length)q=q.length>t.length;else{for(var g=0;g<q.length;g++){var l=q.charCodeAt(g),X=t.charCodeAt(g);if(l>X){q=!0;break a}if(l<X)break}q=!1}}q?b=w-1:E=w+1}}T=E;if(T===-1)throw Error("vi");G.videos.splice(T,0,M);O!==T&&SfW(G,O,T,e,r,Z)},SfW=function(G,e,r,Z,O,M){var T,E=(T=G.parentElem)==null?void 0:T.children,b=Math.min(e,r),w=Math.max(e,r);
if(E)for(T=b;T<=w;T++)E[T].style.viewTransitionName="item-"+String(T);document.startViewTransition(function(){if(G.parentElem){var q=G.parentElem.children;if(!(!q||e<0||e>=q.length||r<0||r>=q.length)){var t=q[e];if(t){t.remove();G.showRefreshPill=r>=G.videos.length-1&&G.continuationsPresent;if(!G.showRefreshPill){q=q[r]||null;var g;(g=G.parentElem)==null||g.insertBefore(t,q)}_.xy(G.parentElem,"yt-update-video-data-voting-animation",{toIdx:r,itemId:Z,newVoteCount:O,voteStatus:M,hideItem:G.showRefreshPill})}}}}).finished.then(function(){if(E)for(var q=
b;q<=w;q++)E[q].style.viewTransitionName="";
if(G.showRefreshPill)wLa(_.OK("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var t;if(t=q=(t=G.parentElem)==null?void 0:t.children[r])t=q.getBoundingClientRect(),q=t.bottom,t=!(t.top>=0&&q<=G.clientHeight);t&&(t=_.Mn(e>r?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(e-r)),wLa(t))}})};var g5o=function(G,e){var r=this;G?this.innertubeTransportServicePromise=Promise.resolve(G):e&&(this.innertubeTransportServicePromise=e(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new V8(3E3,function(Z){return qf8(r,Z)},0);
this.validateMiniAppVideoIdRateLimiter=new V8(3E3,function(Z){return tr8(r,Z)},1)},UBA=function(G,e){G.JSC$17361_miniAppId=e;
G.reportMiniAppValueRateLimiter=new V8(3E3,function(r){return qf8(G,r)},0);
G.validateMiniAppVideoIdRateLimiter=new V8(3E3,function(r){return tr8(G,r)},1)},W8W=function(G,e){var r;
return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(G.reportMiniAppValueRateLimiter.call(e),2);r=Z.yieldResult;return Z.return([r,e])})},qf8=function(G,e){var r,Z,O,M,T,E,b;
return _.D(function(w){switch(w.nextAddress){case 1:return w.yield(G.innertubeTransportServicePromise,2);case 2:return r=w.yieldResult,Z=_.y4(B53),O=Date.now(),M={externalPostId:G.JSC$17361_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(O/1E3),nanos:Math.round(O%1E3*1E6)},intValue:""+e}},_.jr(w,3),w.yield(_.LE(r,M,Z),5);case 5:T=w.yieldResult;_.rL(w,4);break;case 3:throw E=_.k5(w),E;case 4:if(T){if("error"in T&&T.error)throw T.error;if(T.errorMetadata)throw Error("wi`"+
T.errorMetadata.status);if(b=T.userStatResult)return w.return(b);throw Error("xi");}throw Error("yi");}})},L8C=function(G){var e,r,Z,O,M;
_.D(function(T){switch(T.nextAddress){case 1:return T.yield(G.innertubeTransportServicePromise,2);case 2:return e=T.yieldResult,r=_.y4(B53),Z={externalPostId:G.JSC$17361_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.jr(T,3),T.yield(_.LE(e,Z,r),5);case 5:O=T.yieldResult;_.rL(T,4);break;case 3:throw M=_.k5(T),M;case 4:if(O==null)throw Error("yi");if("error"in O&&O.error)throw O.error;if(O.errorMetadata)throw Error("wi`"+O.errorMetadata.status);_.HL(T)}})};
g5o.prototype.flush=function(){var G=this;return _.D(function(e){return e.nextAddress==1?e.yield(G.reportMiniAppValueRateLimiter.flush(),2):e.yield(G.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var NWo=function(G,e){return _.D(function(r){return r.nextAddress==1?r.yield(G.validateMiniAppVideoIdRateLimiter.call(e),2):r.return(r.yieldResult)})},tr8=function(G,e){var r,Z,O,M,T,E;
return _.D(function(b){switch(b.nextAddress){case 1:return b.yield(G.innertubeTransportServicePromise,2);case 2:return r=b.yieldResult,Z=_.y4(nEl),O={videoId:e},_.jr(b,3),b.yield(_.LE(r,O,Z),5);case 5:M=b.yieldResult;_.rL(b,4);break;case 3:throw T=_.k5(b),T;case 4:if(M){if("error"in M&&M.error)throw M.error;if(M.errorMetadata)throw Error("wi`"+M.errorMetadata.status);if(E=M.playabilityStatus)return b.return(E.status);throw Error("zi");}throw Error("yi");}})};
g5o[wR]=[_.bq(_.v1),_.bq(gqc)];var lfC=function(){this.clientData=new Map};
lfC.prototype.getData=function(G){return this.clientData.get(G)};var R1Y=function(G){this.store=G};
R1Y.prototype.handleResponse=function(G){(G=_.a(G.frameworkUpdates,uZ))&&_.V4(G,this.store)};
R1Y[wR]=[_.YB];var jLW=new _.Gz("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var afd,XL8;_.a7=new _.Gz("FLOW_STATE_MANAGER_TOKEN");afd=function(){this.flowStates=new Map};
XL8=function(G,e){G=_.h(G.flowStates.values());for(var r=G.next();!r.done;r=G.next())if(r=r.value,r.flowRenderer.targetId===e)return r};var KYH=function(G,e){this.JSC$17386_reduxStore=G;this.JSC$17386_flowStateManager=e};
_.K(KYH,WH);
KYH.prototype.resolveCommand=function(G){var e=this,r,Z,O,M,T,E,b,w,q,t,g,l,X;return _.D(function(H){r=_.a(G,_.Nhb);Z=r.stepId;O=r.targetId;M=XL8(e.JSC$17386_flowStateManager,O);E=(T=M)==null?void 0:T.flowRenderer;b=E.flowStateEntityKey;w=_.un(e.JSC$17386_reduxStore.getState(),b);if(!w)return H.return();q=w.currentStepId;l=(g=(t=w)==null?void 0:t.stepIdStack)!=null?g:[];X=q===l[l.length-1]?Z:q;e.JSC$17386_reduxStore.dispatch(_.g7("flowStateEntity",b,{currentStepId:Z,stepIdStack:[X]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.HL(H)})};
var ffa=function(){KYH.apply(this,arguments)};
_.K(ffa,KYH);ffa[wR]=[_.YB,_.a7];var keH=function(G,e,r){this.JSC$17393_reduxStore=G;this.JSC$17393_flowStateManager=e;this.JSC$17393_commandHandler=r};
_.K(keH,WH);
keH.prototype.resolveCommand=function(G,e){var r=this,Z,O,M,T,E,b,w,q,t,g,l,X,H;return _.D(function(I){Z=_.a(G,_.LiE);O=Z.targetId;M=XL8(r.JSC$17393_flowStateManager,O);E=(T=M)==null?void 0:T.flowRenderer;b=E.flowStateEntityKey;w=_.un(r.JSC$17393_reduxStore.getState(),b);g=[].concat(_.mY((t=(q=w)==null?void 0:q.stepIdStack)!=null?t:[]));l=g.pop();((X=w)==null?void 0:X.currentStepId)===l&&(l=g[g.length-1]);if(!l)return(H=Z.onFirstStepCommand)&&r.JSC$17393_commandHandler.resolveCommand(H,e),I.return();
r.JSC$17393_reduxStore.dispatch(_.g7("flowStateEntity",b,{currentStepId:l,stepIdStack:g}));_.HL(I)})};
var Hm8=function(){keH.apply(this,arguments)};
_.K(Hm8,keH);Hm8[wR]=[_.YB,_.a7,_.$1];var dgV=function(G,e){this.innertubeTransportService=G;this.JSC$17398_commandHandler=e};
_.K(dgV,WH);dgV.prototype.resolveCommand=function(G,e){var r=this,Z,O,M,T,E;return _.D(function(b){if(b.nextAddress==1){Z=_.a(G,GMP);if(!Z)return b.return();_.jr(b,2);return b.yield(_.p1(r.innertubeTransportService,G),4)}if(b.nextAddress!=2){O=b.yieldResult;if(!O)return b.return();(M=O.updateFlowCommand)&&r.JSC$17398_commandHandler.resolveCommand(M,e);return _.rL(b,0)}_.k5(b);(E=(T=Z)==null?void 0:T.onFailureCommand)&&r.JSC$17398_commandHandler.resolveCommand(E,e);_.HL(b)})};
var o5V=function(){dgV.apply(this,arguments)};
_.K(o5V,dgV);o5V[wR]=[_.v1,_.$1];var sLA=function(G,e){this.JSC$17404_flowStateManager=G;this.JSC$17404_commandHandler=e};
_.K(sLA,WH);
sLA.prototype.resolveCommand=function(G,e){var r=this,Z,O,M,T;return _.D(function(E){Z=_.a(G,_.rOn);O=Z.targetId;M=XL8(r.JSC$17404_flowStateManager,O);if(!M)return E.return(Promise.resolve());var b=M,w=(T=Z.steps)!=null?T:[],q,t=(q=b.flowRenderer.steps)!=null?q:[];w=[].concat(_.mY(t),_.mY(w));b.flowRenderer.steps=w;Z.flowContinuationCommand&&(M.flowRenderer.flowContinuationCommand=Z.flowContinuationCommand);Z.entityUpdateCommand&&r.JSC$17404_commandHandler.resolveCommand(Z.entityUpdateCommand,e);
return E.return(Promise.resolve())})};
var XO=function(){sLA.apply(this,arguments)};
_.K(XO,sLA);XO[wR]=[_.a7,_.$1];var QL2={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 Ifa=new _.Gz("ICON_SET_TOKEN"),pLW=new _.Gz("ICON_URL_PROVIDER_TOKEN"),C7m=new _.Gz("PREFETCH_ICONS_TOKEN"),uaa=new _.Gz("ICON_MAP_FN_TOKEN");var Ky={},n5W=(Ky.ACCESS_TIME="clock",Ky.ACCOUNT_BOX=_.xZ("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",Ky.ACCOUNT_BOX_CAIRO="person_account_cairo",Ky.ACCOUNT_CIRCLE="person_circle",Ky.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",Ky.ACCOUNT_LINKED="account_link_success",Ky.ACCOUNT_UNLINKED="account_link",Ky.ADD_FRIEND="people",Ky.ADD_MODERATOR="shield_add",Ky.ADD_TO_LIBRARY="bookmark",Ky.ADD_TO_PLAYLIST="add",Ky.ADD_TO_QUEUE_TAIL="list_queue",Ky.ADD_TO_REMOTE_QUEUE="list_music",
Ky.ADD_TO_WATCH_LATER="clock",Ky.ADD_VIDEO_LINK="film_strip_add",Ky.ALERT_WARN_RED="alert_triangle",Ky.ARROW_BACK="arrow_left",Ky.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",Ky.ARROW_DROP_DOWN="chevron_down",Ky.ARROW_DROP_UP="chevron_up",Ky.ARROW_FORWARD="arrow_right",Ky.ARTIST="person_music",Ky.AUDIOTRACK="audio",Ky.AUTO_AWESOME="sparkle",Ky.AVATAR_ANONYMOUS="person_circle",Ky.AVATAR_LOGGED_OUT="person_circle",Ky.BACK="arrow_left",Ky.BAR_CHART="bar_graph",Ky.BLOCK="slash_circle_left",
Ky.BLOCK_USER="slash_circle_left",Ky.BOOKMARK_BORDER="bookmark",Ky.BREAKING_NEWS_ALT_1="article_alert",Ky.BROADCAST_CAIRO="podcast_cairo",Ky.BUG_REPORT="bug",Ky.CAMERA_ALT="camera",Ky.CAMPAIGN="megaphone",Ky.CANCEL="x_circle",Ky.CAPTIONS="closed_caption",Ky.CAST_OUTLINE="chromecast",Ky.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Ky.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",Ky.CHAT="message_bubble_left",Ky.CHAT_BUBBLE="message_bubble_empty",Ky.CHAT_SPARK="spark_message_bubble_left",Ky.CHECK_BOX_OUTLINE_BLANK=
"box_empty",Ky.CHECK_CIRCLE_OUTLINE="check_circle",Ky.CHECK_CIRCLE_THICK="check_circle",Ky.CLARIFY="article_clarify",Ky.CLOSED_CAPTION_SELECTED="closed_caption",Ky.CLOSE="x_mark",Ky.CLOUD_UPLOAD="cloud_arrow_up",Ky.COLLAPSE="chevron_up",Ky.COLLAPSE_CAIRO="chevron_up_cairo",Ky.COLLECTION="layers",Ky.COLOR_LENS="palette",Ky.COMMENT="message_bubble_right",Ky.CONSENT_SHIELD="person_shield",Ky.CONTENT_CUT="scissors",Ky.CONTENT_CUT_CAIRO="scissors_cairo",Ky.COURSE=_.R("web_enable_course_icon_update")?"creator_academy":
"lightbulb",Ky.COURSE_CAIRO=_.R("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",Ky.CREATION_LIVE="radar_live",Ky.CREATION_POST="box_pencil",Ky.CREATION_UPLOAD="my_videos",Ky.CREATION_UPLOAD_RED="upload",Ky.CREATOR_METADATA_MONETIZATION="dollar_sign",Ky.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",Ky.CREATOR_STUDIO="youtube_studio",Ky.DASHBOARD="grid_asymmetrical",Ky.DELETE="trash_can",Ky.DELETE_SWEEP="trash_can",Ky.DESKTOP="laptop",Ky.DISLIKE="thumb_down",Ky.DISLIKE_SELECTED=
"thumb_down",Ky.DISMISSAL="x_mark",Ky.DISMISS_QUEUE="list_remove",Ky.DONE_ALL="check_double",Ky.DOWN_ARROW="arrow_down",Ky.DO_NOT_DISTURB="slash_circle_left",Ky.DRAFT="paper_corner_folded",Ky.DRAG_HANDLE="bars_2",Ky.EDIT="pencil",Ky.EMOJI="face_very_happy",Ky.EMOJI_FLAGS="flag",Ky.EMOJI_OBJECTS="lightbulb",Ky.EMOJI_PEOPLE="face_very_happy",Ky.EMOJI_RECENT="clock",Ky.EMPTY_HEART="heart",Ky.EMPTY_LIKE="thumb_up",Ky.ERROR_BLACK="alert_circle",Ky.ERROR_OUTLINE="alert_circle",Ky.EXIT_APP="arrow_in",Ky.EXIT_TO_APP=
"arrow_in",Ky.EXPAND="chevron_down",Ky.EXPAND_ALL="chevron_expand",Ky.EXPAND_CAIRO="chevron_down_cairo",Ky.EXPAND_LESS="chevron_up",Ky.EXPAND_MORE="chevron_down",Ky.EXPLORE="compass",Ky.EXPLORE_DESTINATION="compass",Ky.EXTERNAL_LINK="open_new",Ky.FAB_UPLOAD="upload",Ky.FACE_HAPPY_OUTLINE="face_happy",Ky.FACT_CHECK="article_check",Ky.FASHION_LOGO="fashion",Ky.FASHION_LOGO_CAIRO="fashion_cairo",Ky.FAVORITE="heart",Ky.FEEDBACK="message_bubble_alert",Ky.FEEDBACK_CAIRO="message_bubble_alert_cairo",Ky.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",Ky.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Ky.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Ky.FILTER="menu_filter",Ky.FIRST_PAGE="chevron_first",Ky.FLAG="flag",Ky.FULL_HEART="heart",Ky.GAME_CONSOLE_DPAD="game_console_dpad",Ky.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",Ky.GAMING_LOGO="gaming",Ky.GAMING_LOGO_CAIRO="gaming_cairo",Ky.GO_TO_PAGE="arrow_right",Ky.GROUPS="people_group",Ky.HAPPY="face_happy",Ky.HEALTH_AND_SAFETY="shield_plus",Ky.HELP="question_circle",Ky.HELP_CAIRO=
"question_circle_cairo",Ky.HELP_OUTLINE="question_circle",Ky.HIDE="slash_circle_left",Ky.IMAGE="image",Ky.INFINITY_ICON="infinity",Ky.INFO="info_circle",Ky.INFO_OUTLINE="info_circle",Ky.INSERT_CHART="bar_graph_box_vertical",Ky.INSERT_CHART_OUTLINED="bar_graph_box_vertical",Ky.INSERT_PHOTO="image",Ky.KEEP="pin",Ky.KEEP_OFF="pin_off",Ky.KEYBOARD="keyboard",Ky.KEYBOARD_ARROW_DOWN="chevron_down",Ky.KEYBOARD_ARROW_UP="chevron_up",Ky.KIDS_BLOCK="slash_circle_left",Ky.LANGUAGE="globe",Ky.LAST_PAGE="chevron_last",
Ky.LAUNCH="open_new",Ky.LEARNING="lightbulb",Ky.LEARNING_CAIRO="lightbulb_cairo",Ky.LIBRARY_ADD=VQA("library_add"),Ky.LIBRARY_OUTLINE="library",Ky.LIBRARY_REMOVE=VQA(),Ky.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",Ky.LIKES_PLAYLIST="thumb_up",Ky.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",Ky.LIKE="thumb_up",Ky.LIKE_SELECTED="thumb_up",Ky.LIVE="radar_live",Ky.LIVE_CAIRO="radar_live_cairo",Ky.LIVE_UNLISTED="link",Ky.LOCATION_ON="location_point",Ky.LOCATION_PIN="location_point",Ky.LOOP="arrow_repeat",Ky.LOOP_ACTIVE=
"arrow_repeat",Ky.LOOP_ONE="arrow_repeat_1",Ky.LOOP_ONE_ACTIVE="arrow_repeat_1",Ky.MEH="face_meh",Ky.MEMBERS_ONLY_MODE_OFF="message_bubble_left",Ky.MESSAGE="message_bubble_left",Ky.MICROPHONE_ON="mic",Ky.MIX="youtube_mix",Ky.MONETIZATION_ON="dollar_sign_circle",Ky.MONEY_FILL="dollar_sign_container",Ky.MONEY_FILL_JPY="yen_sign_container",Ky.MONEY_HEART="dollar_sign_heart",Ky.MORE_HORIZ="overflow_horizontal",Ky.MORE_VERT="overflow_vertical",Ky.MUSIC="audio",Ky.MUSIC_CAIRO="audio_cairo",Ky.MUSIC_NOTE_SYMBOL=
"music",Ky.MUSIC_SHUFFLE="arrow_shuffle",Ky.MY_CHANNEL="person_circle",Ky.MY_LOCATION="location_point",Ky.NEWS_STORY="news",Ky.NEXT="chevron_right",Ky.NOTIFICATIONS="bell",Ky.NOTIFICATIONS_ACTIVE="bell_on",Ky.NOTIFICATIONS_CAIRO="bell_cairo",Ky.NOTIFICATIONS_DONE_CHECKMARK="check",Ky.NOTIFICATIONS_INBOX="bell",Ky.NOTIFICATIONS_NONE="bell",Ky.NOTIFICATIONS_OFF="bell_off",Ky.NOT_INTERESTED="slash_circle_left",Ky.OFFICIAL_ARTIST_BADGE="audio",Ky.OFFLINE_CLOUD="cloud_off",Ky.OFFLINE_DOWNLOAD="download",
Ky.OFFLINE_DOWNLOAD_CAIRO="download_cairo",Ky.OFFLINE_PAUSE="pause",Ky.OPEN_IN_NEW="open_new",Ky.OUTLINE_ADJUST="adjust",Ky.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Ky.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Ky.OUTLINE_BAG="bag",Ky.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",Ky.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Ky.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Ky.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",Ky.PAID="dollar_sign",Ky.PAUSE_OUTLINED="pause",Ky.PAYMENT=
"credit_card",Ky.PERSON_RADAR_FILLED="person_radar",Ky.PHONE_DOWNLOAD="mobile_download",Ky.PLAYABLES_LOGO="tic_tac_toe",Ky.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",Ky.PLAYLISTS="list_play_arrow",Ky.PLAYLISTS_CAIRO="list_play_arrow_cairo",Ky.PLAYLIST_ADD=VQA("list_add"),Ky.PLAYLIST_ADD_CHECK=VQA("list_check"),Ky.PLAYLIST_PLAY="list_play_arrow",Ky.PLAY_ALL="play_arrow",Ky.PLAY_CIRCLE="play_arrow_circle",Ky.PLAY_OUTLINED="play_arrow_circle",Ky.PRIVACY_INFO="shield",Ky.PRIVACY_PRIVATE="lock",Ky.PRIVACY_PUBLIC=
"earth",Ky.PRIVACY_UNLISTED="link",Ky.PROMOTE="megaphone",Ky.PURCHASES="price_tag",Ky.PURCHASE_SUPER_CHAT="super_chat",Ky.PURCHASE_SUPER_STICKER="super_sticker",Ky.QUESTION_ANSWER="message_bubble_question",Ky.QUEUE_PLAY_LAST="list_queue_last",Ky.QUEUE_PLAY_NEXT="list_play_arrow",Ky.REMIX_FILLED="youtube_shorts_remix",Ky.REMOVE="bar_circle",Ky.REMOVE_CIRCLE="bar_circle",Ky.REMOVE_CIRCLE_OUTLINE="bar_circle",Ky.REMOVE_DONE="check_double_off",Ky.REMOVE_FROM_HISTORY="bar_circle",Ky.REMOVE_FROM_PLAYLIST=
"bar_circle",Ky.REMOVE_MODERATOR="shield_off",Ky.REPLAY="arrow_circle",Ky.REPLAY_10="skip_back_10",Ky.REPORT_PROBLEM="alert_triangle",Ky.SAD="face_sad",Ky.SAVE_PLAYLIST="bookmark",Ky.SCHEDULE="clock",Ky.SCHOOL="creator_academy",Ky.SCREEN_FULLSCREEN="screen_full",Ky.SEARCH_HISTORY="arrow_time",Ky.SELL="price_tag",Ky.SETTINGS="gear",Ky.SETTINGS_CAIRO="gear_cairo",Ky.SETTINGS_LIGHT="gear",Ky.SETTINGS_MATERIAL="gear",Ky.SHARE_ARROW="share",Ky.SHIELD_WITH_AVATAR="person_shield",Ky.SHOPPING_BAG="bag",Ky.SHOPPING_BAG_CAIRO=
"bag_cairo",Ky.SHOPPING_CART="cart",Ky.SHORTS_COMMENT="youtube_shorts_message_bubble_right",Ky.SHORTS_DISLIKE="youtube_shorts_thumb_down",Ky.SHORTS_LIKE="youtube_shorts_thumb_up",Ky.SHORTS_SHARE="youtube_shorts_share",Ky.SHUFFLE="arrow_shuffle",Ky.SLOW_MODE_OFF="message_bubble_left",Ky.SOCIAL="people",Ky.SORT="menu_sort",Ky.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",Ky.SPEED_1X="1x",Ky.SPEED_1_POINT_2X="1_point_2x",Ky.SPEED_1_POINT_5X="1_point_5x",Ky.SPEED_1_POINT_8X="1_point_8x",Ky.SPEED_2X="2x",
Ky.SPEED_POINT_2X="point_2x",Ky.SPEED_POINT_8X="point_8x",Ky.SPONSORSHIP_STAR="star_circle",Ky.STAFF_PICK="spotlight",Ky.START_DVR="add",Ky.STAR_BORDER="star",Ky.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",Ky.STICKER_EMOTICON="face_happy",Ky.STOP_DVR="stop",Ky.SUBSCRIBE="youtube_logo_icon",Ky.SUBSCRIBE_PLUS="add_cairo",Ky.SUBSCRIPTION_MANAGER="gear",Ky.SUPERVISOR_ACCOUNT="people",Ky.SUPER_CHAT_FOR_GOOD="hands_heart",Ky.SWAP_HORIZ="arrow_swap_horizontal",Ky.SWITCH_ACCOUNTS="person_account",Ky.TAB_ACCOUNT=
"person",Ky.TAB_ACTIVITY="bell",Ky.TAB_BOOKMARK="bookmark",Ky.TAB_EXPLORE="compass",Ky.TAB_HOME="home",Ky.TAB_HOME_CAIRO="home_cairo",Ky.TAB_INBOX="mail",Ky.TAB_LIKED="thumb_up",Ky.TAB_MUSIC_PREMIUM="youtube_music",Ky.TAB_SHORTS="youtube_shorts",Ky.TAB_SHORTS_CAIRO="youtube_shorts_cairo",Ky.TAB_SUBSCRIPTIONS="subscriptions",Ky.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",Ky.TAB_TRENDING="fire",Ky.TIMER="stopwatch",Ky.TRAILER="youtube_originals",Ky.TRENDING="fire",Ky.TRENDING_CAIRO="fire_cairo",Ky.TRENDING_DOWN=
"rating_down",Ky.TRENDING_UP="rating_up",Ky.TROPHY="trophy",Ky.TROPHY_CELEBRATIONS="fireworks",Ky.TUNE="adjust",Ky.UNBLOCK_USER="bar_circle",Ky.UNLIMITED="youtube_logo_icon",Ky.UNPLUGGED_LIVE_GUIDE="radar_live",Ky.UNPLUGGED_SPORTS="eye_off",Ky.UPLOADS="library",Ky.UP_ARROW="arrow_up",Ky.VERTICAL_ALIGN_BOTTOM="download",Ky.VERY_HAPPY="face_very_happy",Ky.VERY_SAD="face_very_sad",Ky.VIDEOGAME_ASSET="gaming",Ky.VIDEOS="play_arrow_circle",Ky.VIDEO_CALL="video_camera_add",Ky.VIDEO_LIBRARY_WHITE="library",
Ky.VIDEO_YOUTUBE="youtube_logo_icon",Ky.VIEW_LIST="list_view",Ky.VIEW_LIST_CAIRO="list_view_cairo",Ky.VISIBILITY="eye",Ky.VISIBILITY_OFF="eye_off",Ky.VOLUME_MUTE="volume_off",Ky.VOLUME_UP="volume_on",Ky.WALLPAPER="image",Ky.WARNING="alert_triangle",Ky.WATCH_HISTORY="arrow_time",Ky.WATCH_HISTORY_CAIRO="arrow_time_cairo",Ky.WATCH_LATER="clock",Ky.WATCH_LATER_CAIRO="clock_cairo",Ky.WATCH_RELATED_MIX="youtube_mix",Ky.WHAT_TO_WATCH="home",Ky.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Ky.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",Ky.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",Ky.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",Ky.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",Ky.YT_OUTLINE_MUSIC_24="music",Ky);var fy={},mgo=(fy.ACCESS_TIME="clock",fy.ACCOUNT_BOX="person_square",fy.ACCOUNT_BOX_CAIRO="person_square",fy.ACCOUNT_CIRCLE="person_circle",fy.ACCOUNT_CIRCLE_CAIRO="person_circle",fy.ACCOUNT_LINKED="account_link",fy.ACCOUNT_UNLINKED="account_link",fy.ADD_CIRCLE="add_circle",fy.ADD_CIRCLE_OUTLINE="add_circle",fy.ADD_FRIEND="person_child",fy.ADD_MODERATOR="shield_add",fy.ADD_TO_LIBRARY="bookmark",fy.ADD_TO_PLAYLIST="add",fy.ADD_TO_QUEUE_TAIL="queue",fy.ADD_TO_REMOTE_QUEUE="playlist_audio",fy.ADD_TO_WATCH_LATER=
"clock",fy.ADD_VIDEO_LINK="film_strip_add",fy.ADMIN_PANEL_SETTINGS="person_gear",fy.ALERT_WARN_RED="alert_triangle",fy.ALIGN_LEFT="text_align_left",fy.ARROWS_ALERT="arrow_split_alert",fy.ARROW_BACK="arrow_left",fy.ARROW_CIRCLE="arrow_counterclockwise",fy.ARROW_CIRCLE_PLAY="replay",fy.ARROW_CIRCLE_RIGHT="arrow_clockwise",fy.ARROW_DIAGONAL="arrow_up_left",fy.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",fy.ARROW_DROP_DOWN="triangle_down",fy.ARROW_DROP_UP="triangle_up",fy.ARROW_FORWARD="arrow_right",fy.ARROW_PAUSE=
"pause_history",fy.ARROW_UNDO="undo",fy.ARTICLE="text_page",fy.ARTICLE_ALERT="text_page_alert",fy.ARTICLE_CHECK="text_page_check",fy.ARTICLE_CLARIFY="text_page_info",fy.ARTIST="person_audio",fy.AUDIOTRACK="audio",fy.AUDIO_BADGE="audio_badge",fy.AUDIO_SURROUND="surround_sound",fy.AUTO_AWESOME="sparkles",fy.AVATAR_ANONYMOUS="person_circle",fy.AVATAR_LOGGED_OUT="person_circle",fy.BACK="arrow_left",fy.BAR_CHART="chart_bar",fy.BAR_CIRCLE="minus_circle",fy.BAR_HORIZONTAL="minus",fy.BLOCK="circle_slash",
fy.BLOCK_USER="circle_slash",fy.BOOKMARK_BORDER="bookmark",fy.BOX_OPEN_CHECK="quiz",fy.BOX_PENCIL="square_pencil",fy.BOX_STACK_3="square3_stack",fy.BREAKING_NEWS_ALT_1="text_page_alert",fy.BROADCAST="podcast",fy.BROADCAST_CAIRO="podcast",fy.BUG_REPORT="bug",fy.CAMERA_ALT="camera",fy.CAMPAIGN="megaphone",fy.CANCEL="x_circle",fy.CAPTIONS="closed_captions",fy.CAST_ICON="chromecast",fy.CAST_OUTLINE="chromecast",fy.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",fy.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
fy.CHAT="text_bubble",fy.CHAT_BUBBLE="bubble",fy.CHECK_BOX="check_square",fy.CHECK_BOX_OUTLINE_BLANK="square",fy.CHECK_CIRCLE_FILLED="check_circle",fy.CHECK_CIRCLE_OUTLINE="check_circle",fy.CHECK_CIRCLE_THICK="check_circle",fy.CHECK_DOUBLE="check_done",fy.CHECK_DOUBLE_OFF="check_done_slash",fy.CHEVRON_LEFT="chevron_left",fy.CHEVRON_RIGHT="chevron_right",fy.CHEVRON_RIGHT_CAIRO="chevron_right",fy.CIRCLES_OVERLAP="account_link",fy.CLAPPERBOARD_CAIRO="clapperboard",fy.CLARIFY="text_page_info",fy.CLOCK_ARROWS=
"clock_split",fy.CLOCK_ARROWS_ALERT="clock_split_alert",fy.CLOSED_CAPTION="closed_captions",fy.CLOSED_CAPTION_SELECTED="closed_captions",fy.CLOSE="x",fy.CLOUD_UPLOAD="cloud_arrow_up",fy.COLLAPSE="chevron_up",fy.COLLAPSE_CAIRO="chevron_up",fy.COLLECTION="square3d_stack",fy.COLOR_LENS="paint_palette",fy.COMMENT="text_bubble",fy.CONSENT_SHIELD="person_shield",fy.CONTENT_CUT="scissors",fy.CONTENT_CUT_CAIRO="scissors",fy.COURSE="graduation_cap",fy.COURSE_CAIRO="graduation_cap",fy.CREATION_LIVE="live",
fy.CREATION_POST="square_pencil",fy.CREATION_UPLOAD="video",fy.CREATION_UPLOAD_RED="upload",fy.CREATOR_ACADEMY="graduation_cap",fy.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",fy.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",fy.CREATOR_STUDIO="youtube_studio",fy.DARK_THEME="theme",fy.DELETE="trash_can",fy.DELETE_SWEEP="trash_can",fy.DESKTOP="laptop",fy.DISLIKE="thumb_down",fy.DISLIKE_SELECTED="thumb_down",fy.DISMISSAL="x",fy.DISMISS_QUEUE="playlist_x",fy.DOGFOOD="pawprint",fy.DOLLAR_SIGN=
"dollar_sign_circle",fy.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",fy.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",fy.DOWN_ARROW="arrow_down",fy.DO_NOT_DISTURB="circle_slash",fy.DRAFT="document",fy.DRAG_HANDLE="equal",fy.EARTH="globe",fy.EDIT="pencil",fy.EMOJI="face_very_happy",fy.EMOJI_FLAGS="flag",fy.EMOJI_OBJECTS="lightbulb",fy.EMOJI_PEOPLE="face_very_happy",fy.EMOJI_RECENT="clock",fy.EMPTY_HEART="heart",fy.EMPTY_LIKE="thumb_up",fy.ERROR_BLACK="alert_circle",fy.ERROR_OUTLINE="alert_circle",fy.ERROR_WHITE=
"alert_circle",fy.EXIT_APP="arrow_in",fy.EXIT_TO_APP="arrow_in",fy.EXPAND="chevron_down",fy.EXPAND_ALL="chevron_expand",fy.EXPAND_CAIRO="chevron_down",fy.EXPAND_LESS="chevron_up",fy.EXPAND_MORE="chevron_down",fy.EXPLORE="compass",fy.EXPLORE_DESTINATION="compass",fy.EXTERNAL_LINK="arrow_up_right",fy.EYE_OFF="eye_slash",fy.FAB_UPLOAD="upload",fy.FACE_HAPPY_OUTLINE="face_happy",fy.FACE_MEH="face_neutral",fy.FACT_CHECK="text_page_check",fy.FASHION_LOGO="fashion",fy.FASHION_LOGO_CAIRO="fashion",fy.FAVORITE=
"thumb_up",fy.FEEDBACK="alert_bubble",fy.FEEDBACK_CAIRO="alert_bubble",fy.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",fy.FILL_ARROW_SOLID_UP_16="arrow_solid_up",fy.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",fy.FIRST_PAGE="chevron_left_end",fy.FLAG_CAIRO="flag",fy.FLASH_OFF="flash_slash",fy.FLASH_ON="flash",fy.FULL_HEART="heart",fy.GAMING_LOGO="gaming",fy.GAMING_LOGO_CAIRO="gaming",fy.GO_TO_PAGE="arrow_right",fy.GRID_ASYMMETRICAL="dashboard",fy.GROUPS="person3",fy.HAND_SWIPE_LEFT="gesture_swipe_left",
fy.HAND_SWIPE_RIGHT="gesture_swipe_right",fy.HAPPY="face_happy",fy.HEALTH_AND_SAFETY="shield_health",fy.HEART_BOX="heart_cube",fy.HELP="help_circle",fy.HELP_CAIRO="help_circle",fy.HELP_OUTLINE="help_circle",fy.HIDE="circle_slash",fy.INCOGNITO_CAIRO="incognito",fy.INFINITY_ICON="infinity",fy.INFO="info_circle",fy.INFO_OUTLINE="info_circle",fy.INSERT_CHART="chart_bar_square",fy.INSERT_CHART_OUTLINED="chart_bar_square",fy.INSERT_PHOTO="image",fy.KEEP="pin",fy.KEEP_OFF="pin_slash",fy.KEYBOARD="keyboard",
fy.KEYBOARD_ARROW_DOWN="chevron_down",fy.KEYBOARD_ARROW_UP="chevron_up",fy.KIDS_BLOCK="circle_slash",fy.LANGUAGE="globe",fy.LAST_PAGE="chevron_right_end",fy.LAUNCH="arrow_up_right",fy.LEARNING="lightbulb",fy.LEARNING_CAIRO="lightbulb",fy.LIBRARY_ADD="bookmark",fy.LIBRARY_IMAGE="image_stack",fy.LIBRARY_MUSIC="audio_square_stack",fy.LIBRARY_OUTLINE="play_square_stack",fy.LIBRARY_REMOVE="bookmark",fy.LIBRARY_SAVED="check_square_stack",fy.LIKES_PLAYLIST="thumb_up",fy.LIKES_PLAYLIST_CAIRO="thumb_up",fy.LIKE=
"thumb_up",fy.LIKE_SELECTED="thumb_up",fy.LIST_QUEUE="queue",fy.LIVE_CAIRO="live",fy.LIVE_UNLISTED="link",fy.LOCATION_ON="location_pin",fy.LOCATION_PIN="location_pin",fy.LOCATION_POINT="location_pin",fy.LOOP="repeat",fy.LOOP_ACTIVE="repeat",fy.LOOP_ONE="repeat1",fy.LOOP_ONE_ACTIVE="repeat1",fy.MEET="google_meet",fy.MEH="face_neutral",fy.MEMBERSHIPS="memberships",fy.MEMBERS_ONLY_MODE_OFF="text_bubble",fy.MENU_FILTER="filter",fy.MESSAGE="text_bubble",fy.MESSAGE_BUBBLE_GEAR="bubble_gear",fy.MESSAGE_BUBBLE_LEFT=
"text_bubble",fy.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",fy.MESSAGE_BUBBLE_OVERLAP="bubble_stack",fy.MESSAGE_BUBBLE_QUESTION="help_bubble",fy.MICROPHONE_ON="mic",fy.MONETIZATION_ON="dollar_sign_circle",fy.MONEY_FILL="dollar_sign_rectangle",fy.MONEY_FILL_JPY="yen_sign_rectangle",fy.MONEY_HAND="dollar_sign_circle_hand",fy.MONEY_HEART="dollar_sign_heart",fy.MOON_Z="sleep_timer",fy.MORE_HORIZ="overflow_horizontal",fy.MORE_VERT="overflow_vertical",fy.MUSIC="audio",fy.MUSIC_CAIRO="audio",fy.MUSIC_EXPLICIT_BADGE=
"explicit",fy.MUSIC_NEW_RELEASE="audio_badge",fy.MUSIC_NOTE_SYMBOL="audio",fy.MUSIC_SCISSORS="audio_scissors",fy.MUSIC_SHUFFLE="shuffle",fy.MY_CHANNEL="person_circle",fy.MY_LOCATION="location_pin",fy.MY_VIDEOS="video",fy.MY_VIDEOS_CAIRO="video",fy.NEWS_CAIRO="news",fy.NEWS_STORY="news",fy.NEXT="chevron_right",fy.NOTE_ADD="bubble_pencil",fy.NOTIFICATIONS="bell",fy.NOTIFICATIONS_ACTIVE="bell_waves",fy.NOTIFICATIONS_CAIRO="bell",fy.NOTIFICATIONS_DONE_CHECKMARK="check",fy.NOTIFICATIONS_INBOX="bell",fy.NOTIFICATIONS_NONE=
"bell",fy.NOTIFICATIONS_OFF="bell_slash",fy.NOT_INTERESTED="circle_slash",fy.OFFICIAL_ARTIST_BADGE="audio",fy.OFFLINE_CLOUD="cloud_slash",fy.OFFLINE_DOWNLOAD="download",fy.OFFLINE_DOWNLOAD_CAIRO="download",fy.OFFLINE_PAUSE="pause",fy.OPEN_IN_NEW="arrow_up_right",fy.OUTLINE_ADJUST="adjust",fy.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",fy.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",fy.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",fy.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",fy.OUTLINE_BAG="bag",fy.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",fy.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",fy.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",fy.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",fy.PAID="dollar_sign_circle",fy.PAUSE_OUTLINED="pause",fy.PAYMENT="credit_card",fy.PEOPLE="person_child",fy.PEOPLE_2="person2_rectangle",fy.PEOPLE_GROUP="person3",fy.PEOPLE_NOTE="bubble_asterisk",fy.PERSON_2="person2",fy.PERSON_ACCOUNT="person_square_stack",fy.PERSON_MINUS="person_x",fy.PERSON_MUSIC="person_audio",fy.PERSON_RADAR="person_waves",
fy.PERSON_RADAR_FILLED="person_waves",fy.PERSON_SETTING="person_gear",fy.PHONE="phone",fy.PHONE_DOWNLOAD="mobile_arrow_down",fy.PICTURE_IN_PICTURE="picture_in_picture",fy.PLAYABLES_LOGO="playables",fy.PLAYABLES_LOGO_CAIRO="playables",fy.PLAYLISTS="playlist",fy.PLAYLISTS_CAIRO="playlist",fy.PLAYLIST_ADD_CHECK="bookmark",fy.PLAY_ALL="play",fy.PLAY_ARROW="play",fy.PLAY_ARROW_CIRCLE="play_circle",fy.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",fy.PLAY_CIRCLE="play_circle",fy.PLAY_OUTLINED="play_circle",
fy.PODCAST_ADD="podcast_add",fy.PODCAST_CHECK="podcast_check",fy.PRIVACY_INFO="shield_x",fy.PRIVACY_PRIVATE="lock",fy.PRIVACY_PUBLIC="globe",fy.PRIVACY_UNLISTED="link",fy.PROMOTE="megaphone",fy.PURCHASES="price_tag",fy.PURCHASE_SUPER_CHAT="super_chat",fy.PURCHASE_SUPER_STICKER="super_sticker",fy.QUESTION_ANSWER="help_bubble",fy.QUESTION_CIRCLE="help_circle",fy.QUEUE_PLAY_LAST="queue_last",fy.QUEUE_PLAY_NEXT="queue_next",fy.QUOTATION_MARK="quote",fy.RADAR_LIVE="live",fy.REMOVE="minus_circle",fy.REMOVE_CIRCLE=
"minus_circle",fy.REMOVE_CIRCLE_OUTLINE="minus_circle",fy.REMOVE_FROM_HISTORY="minus_circle",fy.REMOVE_FROM_PLAYLIST="minus_circle",fy.REMOVE_MODERATOR="shield_slash",fy.REPLAY="arrow_counterclockwise",fy.REPLAY_10="skip10_back",fy.REPLAY_ARROW="replay",fy.REPORT_PROBLEM="alert_triangle",fy.RSS_OFF="rss_slash",fy.SAD="face_sad",fy.SAVE_PLAYLIST="bookmark",fy.SCHEDULE="clock",fy.SCHOOL="graduation_cap",fy.SCREEN_DEFAULT="player_default",fy.SCREEN_FULLSCREEN="player_full_enter",fy.SCREEN_LIGHT="ambient_mode",
fy.SCREEN_ROTATION="rotate_portrait",fy.SCREEN_SWITCH="player_switch",fy.SCREEN_THEATRE="player_theater",fy.SEARCH_CAIRO="search",fy.SEARCH_HISTORY="history",fy.SELL="price_tag",fy.SETTINGS="gear",fy.SETTINGS_CAIRO="gear",fy.SETTINGS_LIGHT="gear",fy.SETTINGS_MATERIAL="gear",fy.SETTINGS_REMOTE="remote_waves",fy.SHARE="share",fy.SHARE_ARROW="share",fy.SHARE_CAIRO="share",fy.SHIELD="shield_x",fy.SHIELD_OFF="shield_slash",fy.SHIELD_WITH_AVATAR="person_shield",fy.SHOPPING_BAG="bag",fy.SHOPPING_BAG_CAIRO=
"bag",fy.SHOPPING_CART="cart",fy.SHORTS_COMMENT="text_bubble",fy.SHORTS_DISLIKE="thumb_down",fy.SHORTS_LIKE="thumb_up",fy.SHORTS_SHARE="share",fy.SKIP_FORWARD_30="skip30_forward",fy.SLASH_CIRCLE_LEFT="circle_slash",fy.SLASH_CIRCLE_RIGHT="circle_slash",fy.SLOW_MODE="bubble_slow",fy.SLOW_MODE_OFF="text_bubble",fy.SOCIAL="person_child",fy.SPARKLE="sparkles",fy.SPARK_IMAGE="image_spark",fy.SPARK_RADAR="spark_waves",fy.SPARK_VIDEO="video_spark",fy.SPEAKER_GROUP="speaker_stack",fy.SPEAKER_OFF="speaker_slash",
fy.SPEED_1X="n1x",fy.SPEED_1_POINT_2X="n1point2x",fy.SPEED_1_POINT_5X="n1point5x",fy.SPEED_1_POINT_8X="n1point8x",fy.SPEED_2X="n2x",fy.SPONSORSHIP_STAR="star_circle",fy.SPORTS="basketball",fy.SPOTLIGHT="spotlight",fy.STAFF_PICK="spotlight",fy.START_DVR="add",fy.STAR_BORDER="star",fy.STAR_CIRCLE_RIBBON="memberships_gift",fy.STAR_HALF="star_full_half",fy.STAR_SHOOTING="hype",fy.STICKER="sticker",fy.STICKER_EMOTICON="face_happy",fy.STOP_DVR="stop",fy.SUBSCRIBE="youtube",fy.SUBSCRIBE_PLUS="add",fy.SUBSCRIPTION_MANAGER=
"gear",fy.SUPERSTAR="super_star",fy.SUPERVISOR_ACCOUNT="person_child",fy.SUPER_CHAT_FOR_GOOD="hands_heart",fy.SWAP_HORIZ="arrow_swap_horizontal",fy.SWITCH_ACCOUNTS="person_square_stack",fy.TAB_ACCOUNT="person",fy.TAB_ACTIVITY="bell",fy.TAB_BOOKMARK="bookmark",fy.TAB_EXPLORE="compass",fy.TAB_HOME="home",fy.TAB_HOME_CAIRO="home",fy.TAB_INBOX="mail",fy.TAB_LIKED="thumb_up",fy.TAB_MUSIC_PREMIUM="youtube_music",fy.TAB_SHORTS="shorts",fy.TAB_SHORTS_CAIRO="shorts",fy.TAB_SUBSCRIPTIONS="subscriptions",fy.TAB_SUBSCRIPTIONS_CAIRO=
"subscriptions",fy.TAB_TRENDING="trending",fy.TARGET="target",fy.TARGET_ADD="target_add",fy.TEMPLATE_ADD="template_add",fy.TEXT="font",fy.TICKET_STAR="star_ticket",fy.TIMER="stopwatch",fy.TRENDING_CAIRO="trending",fy.TRENDING_DOWN="arrow_trend_down",fy.TRENDING_UP="arrow_trend_up",fy.TROPHY_CAIRO="trophy",fy.TROPHY_CELEBRATIONS="fireworks",fy.TROPHY_STAR="star_trophy",fy.TUNE="adjust",fy.TV_OFF="tv_slash",fy.UNBLOCK_USER="minus_circle",fy.UNFAVORITE="thumb_down",fy.UNLIMITED="youtube",fy.UNPLUGGED_LIVE_GUIDE=
"live",fy.UNPLUGGED_SPORTS="eye_slash",fy.UPLOADS="play_square_stack",fy.UP_ARROW="arrow_up",fy.VERTICAL_ALIGN_BOTTOM="chevron_down_end",fy.VERTICAL_ALIGN_TOP="chevron_up_end",fy.VERY_HAPPY="face_very_happy",fy.VERY_SAD="face_very_sad",fy.VIDEOS="play_circle",fy.VIDEO_CALL="video_camera_add",fy.VIDEO_LIBRARY_WHITE="play_square_stack",fy.VIDEO_QUALITY_4K="n4k",fy.VIDEO_QUALITY_8K="n8k",fy.VIDEO_YOUTUBE="youtube",fy.VIEW_LIST_CAIRO="view_list",fy.VIEW_MODULE="view_column3_row2",fy.VISIBILITY="eye",
fy.VISIBILITY_OFF="eye_slash",fy.VOLUME_DOWN="volume_min",fy.VOLUME_MUTE="volume_mute",fy.VOLUME_OFF="volume_mute",fy.VOLUME_STABLE="stable_volume",fy.VOLUME_UP="volume_max",fy.WALLPAPER="image",fy.WARNING="alert_triangle",fy.WATCH_HISTORY="history",fy.WATCH_HISTORY_CAIRO="history",fy.WATCH_LATER="clock",fy.WATCH_LATER_CAIRO="clock",fy.WATCH_RELATED_MIX="mix",fy.WHAT_TO_WATCH="home",fy.YOUTUBE_LINKED_TV="tv_mobile",fy.YOUTUBE_MUSIC_MONOCHROME="youtube_music",fy.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",
fy.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",fy.YOUTUBE_SHORTS_ARROW_UP="arrow_up",fy.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",fy.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",fy.YOUTUBE_SHORTS_OUTLINE_24="shorts",fy);var c6Y={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,3,24],[1,3,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,9,16],[1,9,18],[1,9,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]],dot:[[0,2,12],[0,2,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_add:[[1,1,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]],font_square_spark:[[1,1,16],[1,1,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:[[0,5,24],[1,5,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,14,24],[1,14,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,13,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,7,12],[0,7,13],[0,7,16],[0,7,24],[0,7,48],[1,7,13],[1,7,16],[1,7,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,15,24],[1,15,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,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,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_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,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:[[0,9,24],[1,9,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 Yf2={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,9,12],[1,9,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,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_full_half:[[0,1,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,2,12],[0,2,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,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_add:[[1,1,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_square_spark:[[1,1,18],[1,1,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,14,18],[0,14,24],[0,14,36],[0,14,48],[1,14,18],[1,14,24],[1,14,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,13,18],[1,13,24],[1,13,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,7,24],[1,7,12],[1,7,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,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,
3,18],[1,3,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,3,18],[1,3,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:[[0,
3,24],[1,3,24]],shadow_soft:[[0,3,24],[1,3,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,10,12],[0,10,24],[1,10,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:[[0,2,24],[1,2,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,6,12],[0,6,24],[1,6,12],[1,6,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_full_half:[[0,1,12],[0,1,24]],star_half_filled:[[1,2,12],[1,2,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,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,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]],wifi_tethering:[[1,1,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,9,24],[1,9,18],[1,9,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 y6Y={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"},kx=function(G){this.iconUrlProvider=G};
kx.prototype.resolveIcon=function(G,e){var r=y6Y[G.iconName.toUpperCase()];r&&(G.iconName=r);var Z=G.iconName;Z=Z.replace(/-/g,"_");G=Object.assign({},G,{iconName:this.mapIconTypeToStandardName(Z,!!r)||Z.toLowerCase()});if(_.R("enable_web_delhi_icons")||r){var O;return ODF(Yf2,G,((O=this.iconUrlProvider)==null?void 0:O.getYtStandardUrl)||T44,e)}var M;return ODF(c6Y,G,((M=this.iconUrlProvider)==null?void 0:M.getYtStandardUrl)||h8a,e)};
kx.prototype.mapIconTypeToStandardName=function(G,e){return _.R("enable_web_delhi_icons")||e?mgo[G.toUpperCase()]:n5W[G.toUpperCase()]};
kx[wR]=[_.bq(pLW)];var A6W=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),FY8=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),J6W=function(G){this.urlProvider=this.iconUrlProvider=G};
_.K(J6W,kx);
J6W.prototype.resolveIcon=function(G,e){G.iconName==="youtube_logo"&&(G.iconName="yt-logo-updated");if(G.iconName==="youtube_premium_logo"||G.iconName==="youtube_red_logo")G.iconName="yt-logo-red-updated";var r=Object.assign({},G);G.iconName==="menu"&&(_.R("enable_web_delhi_icons")||(r.iconName="bars_3"),r.iconStyle="youtube_outline");G.iconSetName==="socialNetworksRound"&&(G.iconName==="mail"&&(r.iconName="email"),G.iconName==="embed"&&(r.iconSize=60));G.iconName==="more"&&(r.iconName="overflow_horizontal");
G.iconName==="fullscreen"&&(r.iconName="screen_full");G.iconName==="premium_standalone"&&(r.iconName="premium_standalone_cairo");_.R("enable_connect_icon_update_web")&&G.iconName==="account_linked"&&(r.iconName="circles_overlap_check",r.iconStyle="youtube_fill");_.R("enable_connect_icon_update_web")&&G.iconName==="account_unlinked"&&(r.iconName="circles_overlap",r.iconStyle="youtube_outline");A6W.has(G.iconName)&&(r.iconStyle="youtube_fill");_.R("enable_web_delhi_icons")&&(G.iconName==="playlist_add"&&
(r.iconName="bookmark"),G.iconName==="offline_pin"&&(r.iconName="arrow_down_circle",r.iconStyle="youtube_fill"),FY8.has(G.iconName)&&(r.iconName+="_updated"));G=Object.assign({},r,{iconName:(kx.prototype.mapIconTypeToStandardName.call(this,r.iconName)||r.iconName).toLowerCase()});var Z;return(G=ODF(QL2,G,((Z=this.urlProvider)==null?void 0:Z.getUrl)||DJ_,e))?G:kx.prototype.resolveIcon.call(this,r,e)};
J6W[wR]=[_.bq(pLW)];_.BP8=1;var H0=function(G,e){this.JSC$17425_commandHandler=G;this.innertubeTransportService=e};
_.K(H0,WH);H0.prototype.resolveCommand=function(G,e){var r=this,Z,O,M;return _.D(function(T){return(Z=_.a(G,$py))?T.return(xgY(r,Z,(O=e)==null?void 0:(M=O.form)==null?void 0:M.element)):T.return()})};
var xgY=function(G,e,r){e={profileCardContext:e.profileCardContext,profileOwnerExternalChannelId:e.profileOwnerExternalChannelId};var Z=_.y4(Rqw);return _.LE(G.innertubeTransportService,e,Z).then(function(O){if(!O)throw new _.Cr("GetProfileCard failed");if(O=O.popupCommand){G.JSC$17425_commandHandler.resolveCommand(O,{form:{element:r}});_.aC(_.h_(),66557);O=O==null?void 0:O.clickTrackingParams;var M=_.go();O&&M&&_.h_().graftServerVe(O,M)}})};
H0[wR]=[_.$1,_.v1];var dm=function(){};
_.K(dm,WH);dm.prototype.resolveCommand=function(G){var e,r;return _.D(function(Z){e=_.a(G,XvE);if(!e)return Z.return();r=Number(e.enableDelayedPacfLoggingTvMs);if(isNaN(r)){var O=au();oRP(O,e,0)}else oRP(au(),e,r);_.HL(Z)})};_.o7=function(){};
_.K(_.o7,WH);
_.o7.prototype.resolveCommand=function(G,e){var r=this,Z,O,M,T,E,b,w;return _.D(function(q){Z=_.a(G,K9j);M=(O=e.form)==null?void 0:O.element;E=(T=M)==null?void 0:T.closest("ytd-enforcement-message-view-model");if(!Z||!E)return q.return();r.allowAdsAction||(b=Z.fundingChoiceInstructionPageUrl,r.allowAdsAction=new lRW(window,_.FF(b)));var t=r.allowAdsAction;t.wallElement=E;t.allowAdsPopup.style.setProperty("display","flex","important");var g=t.scrollManager;g.isScrollingEnabled&&(g.originalBodyOverflow=g.JSC$10009_domHelper.JSC$9335_document_.body.style.overflow,
g.JSC$10009_domHelper.JSC$9335_document_.body.style.overflow="hidden",g.isScrollingEnabled=!1);t.wallElement.style.setProperty("display","none","important");scv(t.accessibilityManager,t.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((w=r.allowAdsAction.allowAdsPopup)&&w instanceof HTMLElement)for(t=_.h(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),g=t.next();!g.done;g=t.next()){var l=_.h(g.value);g=l.next().value;l=l.next().value;
w.style.setProperty(g,l)}_.HL(q)})};
_.o7.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var sT=function(){};
_.K(sT,WH);sT.prototype.resolveCommand=function(G){var e;return _.D(function(r){e=_.a(G,HKS);if(!e)return r.return();Knf(G);_.HL(r)})};_.Q8=new _.Gz("AI_CHAT_CONTROLLER_TOKEN");var I7=function(G,e,r,Z){this.JSC$17440_commandHandler=G;this.store=e;this.getPlayerCb=r;this.aiChatController=Z};
_.K(I7,WH);I7.prototype.pageContext=function(){var G=_.oH.currentPageSubTypeSelector(this.store.getState()),e;return(e=this.aiChatController)==null?void 0:_.P7V(e,G)};
I7.prototype.resolveCommand=function(G){var e=this,r,Z,O,M,T;return _.D(function(E){r=_.a(G,uWj);O=(Z=r)==null?void 0:Z.command;if(!O)return E.return();switch((T=r)==null?void 0:T.decorationType){case "FORM_DATA_DECORATOR_COMMAND_TYPE_AI_COMPANION_PANEL_REQUEST":var b="youchat-"+Date.now(),w;var q=String(Math.floor(((w=e.getPlayerCb())==null?void 0:w.getCurrentTime())||0)*1E3);M={inputComposerFormData:{clientMessageId:b,playerOffsetMs:q,pageContext:e.pageContext()}}}if(!M)return E.return();e.JSC$17440_commandHandler.resolveCommand(O,
{form:{formData:M}});_.HL(E)})};
I7[wR]=[_.$1,_.YB,mE_,_.bq(_.Q8)];var UgC=new _.Gz("SESSION_STORAGE");var py=function(G){this.sessionStorage=G("conversations")};
_.K(py,WH);py.prototype.resolveCommand=function(G){var e=this,r;return _.D(function(Z){r=_.a(G,nvw);if(!r)return Z.return();r.conversationId?e.sessionStorage.set("conversation_id",r.conversationId):e.sessionStorage.remove("conversation_id");_.HL(Z)})};
py[wR]=[UgC];var Cy=function(G){this.JSC$17452_commandHandler=G};
_.K(Cy,WH);
Cy.prototype.resolveCommand=function(G){var e=this,r,Z,O,M,T,E,b,w;return _.D(function(q){if(q.nextAddress==1){r=_.a(G,Obb);if((Z=r)==null||!Z.text||!navigator.clipboard)return q.return();_.jr(q,2);return q.yield(navigator.clipboard.writeText(r.text),4)}if(q.nextAddress!=2){if(!r.successActions||r.successActions.length===0)return q.return();O=_.h(r.successActions);for(M=O.next();!M.done;M=O.next())T=M.value,e.JSC$17452_commandHandler.resolveCommand(T);return _.rL(q,0)}_.k5(q);if(!r.failureActions||r.failureActions.length===
0)return q.return();E=_.h(r.failureActions);for(b=E.next();!b.done;b=E.next())w=b.value,e.JSC$17452_commandHandler.resolveCommand(w);_.HL(q)})};
Cy[wR]=[_.$1];var u2=function(G){this.JSC$17456_commandHandler=G};
_.K(u2,WH);
u2.prototype.resolveCommand=function(G,e){var r=this,Z,O,M,T,E,b,w,q,t,g;return _.D(function(l){switch(l.nextAddress){case 1:Z=_.a(G,CiC);if(!Z)return l.return();_.jr(l,2);if(!Z.imageBytes&&!Z.imageUrl)throw Error("Ai");if(!Z.imageUrl){if(Z.imageBytes){M=Z.imageBytes;T=M.replace(/-/g,"+").replace(/_/g,"/");var X=bDy(T);O=_.Jt(X)}l.jumpTo(4);break}return l.yield(fetch(Z.imageUrl),5);case 5:return E=l.yieldResult,l.yield(E.blob(),6);case 6:b=l.yieldResult,O=_.Jt(b);case 4:t=(w=e)==null?void 0:(q=w.form)==
null?void 0:q.element;g=document.createElement("a");Pw(g,O);t.appendChild(g);g.download="";g.click();t.removeChild(g);URL.revokeObjectURL(_.nj(O));Z.successCommand&&r.JSC$17456_commandHandler.resolveCommand(Z.successCommand);_.rL(l,0);break;case 2:_.k5(l),Z.errorCommand&&r.JSC$17456_commandHandler.resolveCommand(Z.errorCommand),_.HL(l)}})};
u2[wR]=[_.$1];var ny=function(G){this.store=G};
_.K(ny,WH);ny.prototype.resolveCommand=function(G){var e=this,r,Z,O;return _.D(function(M){Z=(r=_.a(G,_.ugE))==null?void 0:r.entityBatchUpdate;if(!Z)return M.jumpTo(0);O=Object.assign({},Z,{mutations:[].concat(_.mY(Z.mutations||[]))});return M.yield(_.V4(O,e.store),0)})};var z1d=function(G){this.JSC$17463_commandHandler=G;this.feedbackDialogMap=new Map};
z1d.prototype.openDialog=function(G,e){(G=this.feedbackDialogMap.get(G))&&this.JSC$17463_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:G}},e)};
z1d[wR]=[_.$1];var mm=new _.Gz("FEEDBACK_CONTROLLER_TOKEN");var c0=new _.Gz("APP_STORE_TOKEN");var Yx=function(G,e){this.store=G;this.controller=e};
_.K(Yx,WH);Yx.prototype.resolveCommand=function(G,e){var r=this,Z,O,M,T,E,b,w,q,t,g,l,X,H,I,C,u,P,F;return _.D(function(J){if(J.nextAddress==1){Z=_.a(G,_.lM);if(M=(O=Z)==null?void 0:O.contentId)for(E=_.h(((T=Z)==null?void 0:T.actions)||[]),b=E.next();!b.done;b=E.next())w=b.value,WYo(r,w,M);g=(q=e)==null?void 0:(t=q.form)==null?void 0:t.element;return J.yield(_.zw(g,[G,{impression:(l=e)==null?void 0:l.disableClickTracking}]).catch(function(){}),2)}X=J.yieldResult;
((H=X)==null?0:(I=H.data)==null?0:(C=I.feedbackResponses)==null?0:C.length)&&(P=(u=X.data.feedbackResponses[0])==null?void 0:u.followUpDialog)&&M&&(F=r.controller)!=null&&F.feedbackDialogMap.set(M,P);_.HL(J)})};
var WYo=function(G,e,r){var Z=_.a(e,_.LO);if(Z){Z=_.h(Z.commands||[]);for(var O=Z.next();!O.done;O=Z.next())WYo(G,O.value,r)}_.a(e,_.kA)&&G.store.dispatch(_.bt("commandEntity",Zga(r),{key:r,command:e}));_.a(e,jsc)&&G.store.dispatch(_.bt("commandEntity",Zga(r),{key:r,command:e}))};
Yx[wR]=[c0,mm];var y8=function(G){this.controller=G};
_.K(y8,WH);y8.prototype.resolveCommand=function(G,e){var r=this,Z,O,M,T;return _.D(function(E){Z=_.a(G,_.zr);M=(O=Z)==null?void 0:O.targetId;if(((T=Z)==null?void 0:T.signal)!=="TELL_US_WHY"||!M)return E.return();r.controller.openDialog(M,e);_.HL(E)})};
y8[wR]=[mm];var Ac=function(G){this.store=G};
_.K(Ac,WH);Ac.prototype.resolveCommand=function(G,e){var r=this,Z,O,M,T,E,b,w;return _.D(function(q){Z=_.a(G,bsf);M=(O=Z)==null?void 0:O.contentId;b=(T=e)==null?void 0:(E=T.form)==null?void 0:E.element;w=_.zw(b,[G]);M&&r.undo(M);return q.yield(w,0)})};
Ac.prototype.undo=function(G){this.store.dispatch(_.bt("commandEntity",Zga(G),{key:G,command:void 0}))};
Ac[wR]=[c0];var FO=function(G){this.JSC$17478_commandHandler=G};
_.K(FO,WH);FO.prototype.resolveCommand=function(G){var e=this,r,Z,O,M,T,E,b,w;return _.D(function(q){r=_.a(G,ejl);Z=r.flowStateKey;O=r.validationFailureCommand;M=r.submitValidFormCommand;T=OUN(_.un,[Z||""]);E=_.a(T,O6y);((b=E)==null?0:b.isValid)&&M&&e.JSC$17478_commandHandler.resolveCommand(M);((w=E)==null?0:w.isValid)||!O||e.JSC$17478_commandHandler.resolveCommand(O);_.HL(q)})};
FO[wR]=[_.$1];var Jc=function(G){this.innertubeTransportService=G};
_.K(Jc,WH);Jc.prototype.resolveCommand=function(G,e){var r=this,Z;return _.D(function(O){return O.yield(_.p1(r.innertubeTransportService,G,(Z=e)==null?void 0:Z.form).then(function(M){var T,E;e==null||(T=e.commandController)==null||(E=T.onSuccess)==null||E.call(T,G,M)},function(M){var T,E;
e==null||(T=e.commandController)==null||(E=T.onServerError)==null||E.call(T,G,M)}),0)})};
Jc[wR]=[_.v1];var B0=function(){};
_.K(B0,WH);B0.prototype.resolveCommand=function(G){var e,r,Z,O;return _.D(function(M){if(e=_.a(G,_.NHW)){if(r=e.gtmId)Z=_.xZ("GL",""),_.sZ(r,Z);(O=e.gtmData)&&_.Q9(O)}_.HL(M)})};var xx=function(G,e,r){this.innertubeTransportService=G;this.JSC$17489_actionRouter=e;this.JSC$17489_screenManager=r};
_.K(xx,WH);xx.prototype.resolveCommand=function(G){var e=this,r,Z;return _.D(function(O){r=_.a(G,z9n);if(!r)return O.return();Z=r.command;if(!Z)return O.return();e.JSC$17489_actionRouter.triggerAction("yt-insert-rich-section-action",r);return O.yield(_.p1(e.innertubeTransportService,Z,{disableCache:!0}).then(function(M){G.clickTrackingParams&&(M==null?0:M.trackingParams)&&e.JSC$17489_screenManager.graftServerVe(M.trackingParams,_.b1(G.clickTrackingParams))}),0)})};
xx[wR]=[_.v1,bJ,_.Qf];wja.bind(null,NR);var NPC=wja.bind(null,xsn);Sys.bind(null,NR);var LYC=Sys.bind(null,xsn);tQi.bind(null,NR);var GVB=tQi.bind(null,xsn);var P0=function(){};
_.K(P0,WH);
P0.prototype.resolveCommand=function(G){var e,r,Z,O,M,T,E,b,w,q;return _.D(function(t){e=_.a(G,puv);if(!e)return t.return();Z=((r=e.operations)==null?void 0:r.operations)||[];O=_.h(Z);for(M=O.next();!M.done;M=O.next())if(T=M.value,T.insertItemSectionContent){var g=T.insertItemSectionContent,l=g.contents||[];g.insertByPositionInSection?NPC(g.insertByPositionInSection.sectionTargetId,l,g.insertByPositionInSection.position):g.insertByRelativePositionInSection&&g.insertByRelativePositionInSection.sectionTargetId&&g.insertByRelativePositionInSection.itemTargetId&&
LYC(g.insertByRelativePositionInSection.sectionTargetId,g.insertByRelativePositionInSection.itemTargetId,l,g.insertByRelativePositionInSection.relativePosition)}else T.replaceSection?(g=T.replaceSection,l={},g.replaceByTargetId?l=g.replaceByTargetId:g.replaceByGroupId&&(l={targetId:g.replaceByGroupId.groupId,newContent:g.replaceByGroupId.newContent,undoKey:""}),l.newContent&&z_P(l.targetId,{continuationItems:[l.newContent]})):T.removeItem?(g=T.removeItem,g.removeByTargetId&&g.sectionTargetId&&GVB(g.sectionTargetId,
g.removeByTargetId.targetIds||[])):T.removeSection&&(T.removeSection.removeByTargetId?(E=void 0,eGH(((E=T.removeSection)==null?void 0:E.removeByTargetId.targetIds)||[])):T.removeSection.removeByGroupId&&(b=void 0,eGH(((b=T.removeSection)==null?void 0:b.removeByGroupId.groupIds)||[])));q=((w=e.operations)==null?void 0:w.scrollConfig)||{};rxC(q);_.HL(t)})};
var eGH=function(G){G=_.h(G);for(var e=G.next();!e.done;e=G.next())z_P(e.value,{continuationItems:[]})},rxC=function(G){if(G.scrollToItem){var e=G.scrollToItem.item||{},r=e.itemTargetId;
e=e.sectionTargetId;if(r&&e){var Z=document.querySelector("[data-target-id="+e+"]"),O=Z==null?void 0:Z.querySelector("[data-target-id="+r+"]");Z&&O&&setTimeout(function(){var M=O.offsetTop-Z.offsetTop,T;if(((T=G.scrollToItem)==null?void 0:T.scrollPosition)==="SCROLL_POSITION_CENTER")M-=Z.offsetHeight/2,M+=O.offsetHeight/2;else{var E;((E=G.scrollToItem)==null?void 0:E.scrollPosition)==="SCROLL_POSITION_END"&&(M-=Z.offsetHeight,M+=O.offsetHeight)}Z.scroll({top:M,behavior:"smooth"})},100)}}};var UT=new _.Gz("CLIENT_NAME_TOKEN");var ZNa=new _.Gz("DEFAULT_STORE_EXPIRATION_TOKEN");var X84=new _.Gz("CLIENT_LOCATION_SERVICE_TOKEN");var zm=function(G,e,r){this.clientName=G||_.xZ("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=e||_.Ql.getInstance();this.JSC$17517_commandHandler=r||_.Ga.instance};
_.K(zm,WH);zm.prototype.resolveCommand=function(G){var e=this,r,Z;return _.D(function(O){Z=(r=_.a(G,SIc))==null?void 0:r.onComplete;e.clientLocationService.clearLocationPlayabilityToken(e.clientName);Z&&e.JSC$17517_commandHandler.resolveCommand(Z);_.HL(O)})};
zm[wR]=[UT,X84,_.$1];var W0=function(G){this.innertubeTransportService=G};
_.K(W0,WH);W0.prototype.resolveCommand=function(G,e){var r=this,Z,O,M,T;return _.D(function(E){M=(Z=e)==null?void 0:(O=Z.form)==null?void 0:O.element;return E.yield(_.p1(r.innertubeTransportService,G,(T=e)==null?void 0:T.form).then(function(b){l14(M,new CustomEvent("yt-service-request-completed"),{data:b},_.xZ("openPopupConfig"))}),0)})};
W0[wR]=[_.v1];var N3=function(){};
_.K(N3,WH);N3.prototype.resolveCommand=function(G){var e,r;return _.D(function(Z){e=_.a(G,TQE);r=document.querySelector("mini-app-container-view-model");if(!e||!r)return Z.return();e.isPlaying?r.dispatchEvent(new Event("play")):r.dispatchEvent(new Event("pause"));_.HL(Z)})};var Ly=function(){};
_.K(Ly,WH);Ly.prototype.resolveCommand=function(G){var e,r,Z,O,M,T,E;return _.D(function(b){e=_.a(G,BHn);if((r=e)==null||!r.paramKeys)return b.return();Z=e.paramKeys;O=_.LB(window.location.href);M=_.h(Z);for(T=M.next();!T.done;T=M.next())E=T.value,O.JSC$10041_queryData_.remove(E);window.history.replaceState(window.history.state,document.title,O.toString());_.HL(b)})};var ONa=function(){this.dropdownMap=new Map};_.Mz2=new _.Gz("DROPDOWN_CONTROLLER_TOKEN");var Gg=function(G){this.controller=G};
_.K(Gg,WH);Gg.prototype.resolveCommand=function(G){var e=this,r,Z,O,M;return _.D(function(T){r=_.a(G,Rvc);if(!r)return T.return();Z=r;O=Z.dropdownId;M=Z.selectedOptionIndex;if(O===void 0||M===void 0)return T.return();var E=e.controller.dropdownMap.get(O);E&&E(M);_.HL(T)})};
Gg[wR]=[_.Mz2];var ee=function(G){this.controller=G};
_.K(ee,WH);ee.prototype.resolveCommand=function(G){var e=this,r;return _.D(function(Z){return(r=_.a(G,oeP))?Z.yield(e.controller.closeDialog(),0):Z.return()})};
ee[wR]=[_.m6];var rr=function(G){this.controller=G};
_.K(rr,WH);rr.prototype.resolveCommand=function(G){var e=this,r,Z;return _.D(function(O){r=_.a(G,vBw);if(!r)return O.return();var M,T=r.panelIdentifier||((M=r.identifier)==null?void 0:M.tag);if(!T)throw Error("Bi");return(Z=T)?O.yield(e.controller.hidePanel({identifier:Z}),0):O.jumpTo(0)})};
rr[wR]=[_.uB];var O7=function(G){this.controller=G};
_.K(O7,WH);O7.prototype.resolveCommand=function(G){var e=this,r;return _.D(function(Z){return(r=_.a(G,G3W))?Z.yield(e.controller.closeSheet(),0):Z.return()})};
O7[wR]=[_.nJ];var MO=function(G,e){this.innertubeTransportService=G;this.controller=e};
_.K(MO,WH);MO.prototype.resolveCommand=function(G){var e=this,r,Z,O,M;return _.D(function(T){if(T.nextAddress==1)return r=_.a(G,whE),(Z=r)!=null&&Z.panelId?T.yield(e.controller.getReloadContinuation(r.panelId),2):T.return();if(T.nextAddress!=3)return(O=T.yieldResult)?T.yield(_.p1(e.innertubeTransportService,G,{continuation:O}),3):T.return();M=T.yieldResult;return T.yield(e.controller.updatePanel({identifier:r.panelId,panelContents:M.content,shouldFocus:!1}),0)})};
MO[wR]=[_.v1,_.uB];var Ve=function(G,e,r){this.innertubeTransportService=G;this.JSC$17559_screenManager=e;this.JSC$17559_commandHandler=r};
_.K(Ve,WH);
Ve.prototype.resolveCommand=function(G){var e=this,r,Z,O,M,T,E;return _.D(function(b){if(b.nextAddress==1){r=_.a(G,_.hhC);if(!r)return b.return();if(r.commands)for(Z=_.h(r.commands),O=Z.next();!O.done;O=Z.next())M=O.value,e.JSC$17559_commandHandler.resolveCommand(M,{disableClickTracking:!0});T=_.b1(G.clickTrackingParams);_.aC(e.JSC$17559_screenManager,21760,T,{layer:7,parentLayer:0});return b.yield(_.p1(e.innertubeTransportService,G),2)}E=b.yieldResult;if(!E)return b.return();e.JSC$17559_screenManager.graftServerVe(E.trackingParams,T,
7);_.HL(b)})};
Ve[wR]=[_.v1,_.Qf,_.$1];var h1=new _.Gz("PANEL_LOADING_STRATEGY_TOKEN");var Tg=function(G,e){this.controller=G;this.panelLoadingStrategy=e};
_.K(Tg,WH);
Tg.prototype.resolveCommand=function(G,e){var r=this,Z,O,M;return _.D(function(T){Z=_.a(G,rqc);if((O=Z)==null||!O.panelLoadingStrategy)return T.return();M=function(E){var b,w,q,t,g,l,X,H,I,C;return _.D(function(u){w=_.a((b=E.dialogViewModel)==null?void 0:b.header,jGc);q={viewModel:E.dialogViewModel};t={};if(X=_.R("web_enable_dialog_header_label")?(g=w)==null?void 0:(l=g.headline)==null?void 0:l.content:void 0)t.ariaLabel=X;Z.dismissOnBackgroundTap===!1&&(t.isModal=!0);return E.dialogViewModel?u.yield(r.controller.openDialog(q,
(C=(H=e)==null?void 0:(I=H.form)==null?void 0:I.element)!=null?C:document.body,t),0):u.return()})};
return T.yield(r.panelLoadingStrategy.execute({command:G,data:Z.panelLoadingStrategy,renderFn:M,createScreenConfig:{layer:4}}),0)})};
Tg[wR]=[_.m6,h1];var D$=function(G,e,r){this.innertubeTransportService=G;this.controller=e;this.JSC$17579_screenManager=r};
_.K(D$,WH);
D$.prototype.resolveCommand=function(G,e){var r=this,Z,O,M,T,E,b,w,q,t,g,l,X,H,I,C;return _.D(function(u){switch(u.nextAddress){case 1:Z=_.a(G,_.gB);if(!Z)return u.return();var P,F=Z.panelIdentifier||((P=Z.identifier)==null?void 0:P.tag);if(!F)throw Error("Bi");O=F;return u.yield(r.controller.isVisible(O,!0),2);case 2:if((M=u.yieldResult)&&Z.blockIfPanelOpen)return u.return();b=(E=(T=r.controller).getPanelContent)==null?void 0:E.call(T,O);if(!(P=b))if(Z){var J;P=((J=Z.globalConfiguration)==null?void 0:
J.initialState)||Z.engagementPanel;if(J=!P)J=!!(Z==null?0:(F=Z.engagementPanelPresentationConfigs)==null?0:F.engagementPanelPopupPresentationConfig);J&&(P=_.ggq(Z.panelIdentifier,Z.identifier))}else P=void 0;w=P;q=Z.engagementPanelPresentationConfigs;t=Z.engagementPanelExtras;return u.yield(r.controller.showPanel({identifier:O,panelContents:w,config:q,extras:t,target:(g=e)==null?void 0:(l=g.form)==null?void 0:l.element}),3);case 3:if(!Z.globalConfiguration){u.jumpTo(0);break}if(Z.globalConfiguration.reuseModelAndState&&
_.R("enable_ai_companion")&&(I=(H=(X=r.controller).getPanelContent)==null?void 0:H.call(X,O)))return u.return();_.aC(r.JSC$17579_screenManager,32633);return u.yield(_.p1(r.innertubeTransportService,G),5);case 5:return C=u.yieldResult,r.JSC$17579_screenManager.graftServerVe(C.trackingParams),u.yield(r.controller.updatePanel({identifier:O,panelContents:C.content,shouldFocus:!0,extras:t,updatePanelContinuationData:C.updatePanelContinuationData}),0)}})};
D$[wR]=[_.v1,_.uB,_.Qf];var E7=function(G,e){this.controller=G;this.panelLoadingStrategy=e};
_.K(E7,WH);E7.prototype.resolveCommand=function(G,e){var r=this,Z,O,M,T,E,b,w,q;return _.D(function(t){Z=_.a(G,_.wBF);if((O=Z)==null||!O.panelLoadingStrategy)return t.return();E=Vz8(r.controller,(M=e)==null?void 0:(T=M.form)==null?void 0:T.element);w=(b=Z.contextualSheetPresentationConfig)==null?void 0:b.position;q=function(g){return _.D(function(l){return g.sheetViewModel?l.yield(r.controller.openSheet({viewModel:g.sheetViewModel,sheetPosition:w},E),0):l.return()})};
return t.yield(r.panelLoadingStrategy.execute({command:G,data:Z.panelLoadingStrategy,renderFn:q,createScreenConfig:{layer:0}}),0)})};
E7[wR]=[_.nJ,h1];var iU=function(G,e){this.controller=G;this.JSC$17590_commandHandler=e};
_.K(iU,WH);iU.prototype.resolveCommand=function(G,e){var r=this,Z,O,M;return _.D(function(T){if(T.nextAddress==1){Z=_.a(G,tXE);var E=_.a(Z.showCommand,_.gB),b,w,q=(w=E==null?void 0:E.panelIdentifier)!=null?w:E==null?void 0:(b=E.identifier)==null?void 0:b.tag;if(!q)throw Error("Ci");O=q;return T.yield(r.controller.isVisible(O),2)}return(M=T.yieldResult)?T.yield(r.controller.hidePanel({identifier:O}),0):T.yield(r.JSC$17590_commandHandler.resolveCommand(Z.showCommand,e),0)})};
iU[wR]=[_.uB,_.$1];var bU=function(G,e,r){this.innertubeTransportService=G;this.controller=e;this.JSC$17593_screenManager=r};
_.K(bU,WH);
bU.prototype.resolveCommand=function(G){var e=this,r,Z,O,M,T,E,b,w,q,t,g,l,X,H,I,C,u,P,F,J,U,e$;return _.D(function(Dq){switch(Dq.nextAddress){case 1:return Z=r=_.a(G,jqc),O=Z.targetPanelIdentifier,M=Z.contentSourcePanelIdentifier,T=Z.globalConfiguration,((E=O)==null?0:E.tag)&&((b=M)==null?0:b.tag)?T?Dq.yield(e.controller.showPanel({identifier:O.tag,panelContents:_.ggq(O.tag,O)}),5):Dq.yield((g=(t=e.controller).getPanel)==null?void 0:g.call(t,M.tag),4):Dq.return();case 4:l=Dq.yieldResult;w=(X=l)==
null?void 0:(I=(H=X).getPanelContent)==null?void 0:I.call(H);Dq.jumpTo(3);break;case 5:return Dq.yield(_.p1(e.innertubeTransportService,G),6);case 6:C=Dq.yieldResult,((u=C)==null?0:u.trackingParams)&&e.JSC$17593_screenManager.graftServerVe(C.trackingParams),w=(P=C)==null?void 0:P.content,q=(F=C)==null?void 0:F.updatePanelContinuationData;case 3:if(U=(J=w)==null?void 0:J.engagementPanelSectionListRenderer)return Dq.yield(e.controller.showPanel({identifier:O.tag,panelUpdatableFields:{content:U.content,
secondaryHeaderContent:(e$=U.header)!=null?e$:{},targetId:U.targetId,loggingDirectives:U.loggingDirectives},updatePanelContinuationData:q}),0);Dq.jumpTo(0)}})};
bU[wR]=[_.v1,_.uB,_.Qf];var va=function(){};
_.K(va,WH);va.prototype.resolveCommand=function(G){var e,r,Z;return _.D(function(O){if(O.nextAddress==1)return(e=_.a(G,fZC))?O.yield(_.G_(),2):O.return();r=O.yieldResult;if(!r)return O.return();var M=r,T=(Z=e)==null?void 0:Z.languageCode,E;(M==null?0:(E=M.isReady)==null?0:E.call(M))&&(T=lBs(M,T))&&M.setAudioTrack(T);_.HL(O)})};var wr=function(){};
_.K(wr,WH);var hGV=function(G){var e;return _.D(function(r){e=_.xZ("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;G.JSC$17604_mainAppPlayer=new r9(e);document.addEventListener("yt-page-data-updated",G.JSC$17604_pauseOnNavigation.bind(G));_.HL(r)})};
wr.prototype.JSC$17604_pauseOnNavigation=function(){var G=this,e,r;return _.D(function(Z){if(Z.nextAddress==1)return e=G.JSC$17604_mainAppPlayer,Z.yield(e.api,2);r=Z.yieldResult;r.pauseVideo();_.HL(Z)})};
var TSV=function(G,e,r){var Z;return _.D(function(O){Z=G.JSC$17604_mainAppPlayer;return O.yield(Z.loadVideoWithPlayerVars({videoId:e,audio_only:"1",player_params:r}),0)})};
wr.prototype.pauseVideo=function(){var G=this,e,r;return _.D(function(Z){if(Z.nextAddress==1)return e=G.JSC$17604_mainAppPlayer,Z.yield(e.api,2);r=Z.yieldResult;r.pauseVideo();_.HL(Z)})};
wr.prototype.playVideo=function(){var G=this,e,r;return _.D(function(Z){if(Z.nextAddress==1)return e=G.JSC$17604_mainAppPlayer,Z.yield(e.api,2);r=Z.yieldResult;r.playVideo();_.HL(Z)})};
var DKW=function(G){var e,r;return _.D(function(Z){if(Z.nextAddress==1)return e=G.JSC$17604_mainAppPlayer,Z.yield(e.api,2);r=Z.yieldResult;r.mute();_.HL(Z)})},EfV=function(G){var e,r;
return _.D(function(Z){if(Z.nextAddress==1)return e=G.JSC$17604_mainAppPlayer,Z.yield(e.api,2);r=Z.yieldResult;r.unMute();_.HL(Z)})};
wr.prototype.stopVideo=function(){var G=this,e,r;return _.D(function(Z){if(Z.nextAddress==1)return e=G.JSC$17604_mainAppPlayer,Z.yield(e.api,2);r=Z.yieldResult;r.stopVideo();_.HL(Z)})};
var iNH=function(G,e){return _.D(function(r){switch(r.nextAddress){case 1:switch(e){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return r.jumpTo(2);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return r.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_STOP":return r.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return r.jumpTo(5);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return r.jumpTo(6)}r.jumpTo(0);break;case 2:return r.yield(G.playVideo(),8);case 8:r.jumpTo(0);break;case 3:return r.yield(G.pauseVideo(),
9);case 9:r.jumpTo(0);break;case 4:return r.yield(G.stopVideo(),10);case 10:r.jumpTo(0);break;case 5:return r.yield(DKW(G),11);case 11:r.jumpTo(0);break;case 6:return r.yield(EfV(G),12);case 12:r.jumpTo(0)}})};
wr.prototype.resolveCommand=function(G){var e=this,r,Z,O,M,T,E,b,w,q,t,g;return _.D(function(l){return l.nextAddress==1?(r=_.a(G,LyS),((Z=r)==null?0:Z.newPlaybackParams)||((O=r)==null?0:O.controlAction)?e.JSC$17604_mainAppPlayer?l.jumpTo(2):l.yield(hGV(e),2):l.return()):((M=r)==null?0:M.newPlaybackParams)?(b=(T=r)==null?void 0:(E=T.newPlaybackParams)==null?void 0:E.externalVideoId,g=(t=(w=r)==null?void 0:(q=w.newPlaybackParams)==null?void 0:q.playerParams)!=null?t:"",b?l.yield(TSV(e,b,g),0):l.return()):
l.yield(iNH(e,r.controlAction),0)})};var $a=function(G){this.JSC$17611_commandHandler=G};
_.K($a,WH);
$a.prototype.resolveCommand=function(G){var e=this,r,Z,O,M,T,E;return _.D(function(b){if(b.nextAddress==1)return(r=_.a(G,k$C))?b.yield(_.G_(),2):b.return();Z=b.yieldResult;if(!Z)return b.return();var w=Z,q=(O=r)==null?void 0:O.languageCode,t=(M=r)==null?void 0:M.isAutoTranslated;w.getVideoData&&_.j1i(w).length&&((q=XjF(w,q,t))?w.setOption("captions","track",q):(w.setOption("captions","stickyLoading",{}),w.setOption("captions","track",{})));T=Z.isSubtitlesOn()?_.OK("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.OK("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");E=_.Fs(T,5E3);e.JSC$17611_commandHandler.resolveCommand(E);_.HL(b)})};
$a[wR]=[_.$1];var Se=function(G,e){this.shortsPlayerPromise=G;this.JSC$17615_commandHandler=e};
_.K(Se,WH);
Se.prototype.resolveCommand=function(G){var e=this,r,Z,O,M,T,E,b,w;return _.D(function(q){if(q.nextAddress==1)return(r=_.a(G,U6W))?q.yield(e.shortsPlayerPromise,2):q.return();Z=q.yieldResult;var t=Ko$(Z);t!=null&&t.length||(Z.loadModule("captions"),t=Ko$(Z));O=t;if((M=O)==null||!M.length)return T=_.OK("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),E=_.Fs(T),e.JSC$17615_commandHandler.resolveCommand(E),q.return();Z.toggleSubtitles();b=Z.isSubtitlesOn()?_.OK("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.OK("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");w=_.Fs(b);e.JSC$17615_commandHandler.resolveCommand(w);_.HL(q)})};
Se[wR]=[_.FgC,_.$1];var qO=function(G){this.JSC$17618_actionRouter=G;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(e,r){e.triggerAction("yt-dismiss-shopping-timely-shelf-action",r)}]])};
_.K(qO,WH);qO.prototype.resolveCommand=function(G){var e=this,r,Z,O;return _.D(function(M){r=_.a(G,sCn);if((Z=r)==null||!Z.overlayId)return M.return();O=e.dismissPlayerOverlayActions.get(r.overlayId);if(!O)throw Error("Di`"+r.overlayId);O(e.JSC$17618_actionRouter,r);_.HL(M)})};
qO[wR]=[bJ];var t1=function(G){this.JSC$17622_playerPromise=G};
_.K(t1,WH);t1.prototype.resolveCommand=function(G){var e=this,r,Z,O,M;return _.D(function(T){if(T.nextAddress==1)return(r=_.a(G,SZl))?T.yield(e.JSC$17622_playerPromise,2):T.return();Z=T.yieldResult;O=Z.getVideoData().video_id;r.videoId===O&&(M=Number(r.offsetFromVideoStartMilliseconds),M>=0&&Z.seekTo(M/1E3));_.HL(T)})};
t1[wR]=[_.Ub];var bNa=_.GF("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),gr=function(G){this.store=G};
_.K(gr,WH);
var vfd=function(G){var e,r,Z,O;return _.D(function(M){if(M.nextAddress==1)return e=_.xZ("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,r=_.xZ("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,Z=e||r,G.JSC$17626_mainAppPlayer=new r9(Z),M.yield(G.JSC$17626_mainAppPlayer.api,2);O=M.yieldResult;O.addEventListener("onStateChange",G.JSC$17626_playerStateChangeListener.bind(G));document.addEventListener("yt-page-data-updated",G.JSC$17626_pauseOnNavigation.bind(G));window.addEventListener("state-navigatestart",
G.JSC$17626_pauseOnNavigation.bind(G));_.HL(M)})};
gr.prototype.JSC$17626_playerStateChangeListener=function(G){switch(G){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"}w2C(this)};
var w2C=function(G){G.store.dispatch(_.bt("sfvAudioItemCurrentlyPlayingEntity",bNa,{key:bNa,externalVideoId:G.externalVideoId,sfvAudioItemPlaybackState:G.playbackState,nowPlayingEntityValue:G.nowPlayingEntityValue}))};
gr.prototype.JSC$17626_pauseOnNavigation=function(){var G=this,e,r,Z,O;return _.D(function(M){if(M.nextAddress==1){if(!G.JSC$17626_mainAppPlayer){var T=new _.Cr("Error: mainAppPlayer is unavailable",G.JSC$17626_mainAppPlayer);_.yx(T);return M.return()}return M.yield(G.JSC$17626_mainAppPlayer.api,2)}e=M.yieldResult;Z=(r=e)==null?void 0:r.getPlayerState();Z!==1||(O=e)!=null&&O.pauseVideo();_.HL(M)})};
gr.prototype.playVideo=function(G,e,r){var Z=this,O,M;return _.D(function(T){if(T.nextAddress==1)return T.yield((O=Z.JSC$17626_mainAppPlayer)==null?void 0:O.api,2);M=T.yieldResult;if(!Z.JSC$17626_mainAppPlayer||!M){var E=new _.Cr("Error: mainAppPlayer is unavailable",Z.JSC$17626_mainAppPlayer);_.yx(E);return T.return()}return T.yield(Z.JSC$17626_mainAppPlayer.loadVideoWithPlayerVars({videoId:Z.externalVideoId,audio_only:"1",start:G/1E3,end:G/1E3+e,player_params:r}),0)})};
gr.prototype.pauseVideo=function(){var G=this,e,r;return _.D(function(Z){if(Z.nextAddress==1){if(!G.JSC$17626_mainAppPlayer){var O=new _.Cr("Error: mainAppPlayer is unavailable",G.JSC$17626_mainAppPlayer);_.yx(O);return Z.return()}return Z.yield(G.JSC$17626_mainAppPlayer.api,2)}e=Z.yieldResult;(r=e)==null||r.pauseVideo();_.HL(Z)})};
gr.prototype.resolveCommand=function(G){var e=this,r,Z,O,M,T,E,b,w,q,t,g,l,X,H,I,C,u,P,F;return _.D(function(J){if(J.nextAddress==1)return r=_.a(G,J4j),O=(Z=r)==null?void 0:Z.nowPlayingEntityValue,T=(M=r)==null?void 0:M.externalVideoId,t=Number((q=(E=r)==null?void 0:(b=E.defaultStartPoints)==null?void 0:(w=b[0])==null?void 0:w.offsetMs)!=null?q:"0"),C=Number((I=(g=r)==null?void 0:(l=g.defaultStartPoints)==null?void 0:(X=l[0])==null?void 0:(H=X.duration)==null?void 0:H.seconds)!=null?I:"15"),F=(P=
(u=r)==null?void 0:u.playerParams)!=null?P:"",O&&T?e.JSC$17626_mainAppPlayer?J.jumpTo(2):J.yield(vfd(e),2):J.return();if(J.nextAddress!=6){if(e.nowPlayingEntityValue&&O===e.nowPlayingEntityValue)return e.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?J.yield(e.pauseVideo(),0):J.yield(e.playVideo(t,C,F),0);e.externalVideoId=T;e.nowPlayingEntityValue=O;e.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return J.yield(e.playVideo(t,C,F),6)}w2C(e);return J.jumpTo(0)})};
gr[wR]=[JZ];var lU=function(G){this.JSC$17644_commandHandler=G};
_.K(lU,WH);lU.prototype.resolveCommand=function(G,e){var r=this,Z,O,M;return _.D(function(T){if(T.nextAddress==1)return(Z=_.a(G,HEv))?T.yield(_.G_(),2):T.return();O=T.yieldResult;if(!O)return T.return();(M=fB$(O))&&r.JSC$17644_commandHandler.resolveCommand(M,e);_.HL(T)})};
lU[wR]=[_.$1];var Rw=function(G){this.JSC$17650_commandHandler=G};
_.K(Rw,WH);Rw.prototype.resolveCommand=function(G,e){var r=this,Z,O,M,T,E;return _.D(function(b){if(b.nextAddress==1)return(Z=_.a(G,dlc))?b.yield(_.G_(),2):b.return();O=b.yieldResult;if(!O)return b.return();(M=s1s(O))?r.JSC$17650_commandHandler.resolveCommand(M,e):(T=_.OK("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),E=_.Fs(T),r.JSC$17650_commandHandler.resolveCommand(E));_.HL(b)})};
Rw[wR]=[_.$1];var je=function(G){this.JSC$17653_playerPromise=G};
_.K(je,WH);je.prototype.resolveCommand=function(G){var e=this,r,Z;return _.D(function(O){if(O.nextAddress==1)return(r=_.a(G,CoS))?O.yield(e.JSC$17653_playerPromise,2):O.return();Z=O.yieldResult;Z.isFullscreen()&&Z.wakeUpControls();_.HL(O)})};
je[wR]=[_.Ub];var aw=function(G){this.JSC$17656_playerPromise=G};
_.K(aw,WH);aw.prototype.resolveCommand=function(G){var e=this,r,Z,O,M,T;return _.D(function(E){if(E.nextAddress==1){r=_.a(G,qZP);if(!r)return E.return();Z=r.overlayRenderer;return Z?(O=_.a(Z,YEv))?E.yield(e.JSC$17656_playerPromise,3):E.jumpTo(0):E.return()}M=E.yieldResult;M.renderChapterSeekingAnimation(1,_.mG(O.text),(T=O.icon)==null?void 0:T.iconType);_.HL(E)})};
aw[wR]=[_.Ub];var Xm=function(G){this.store=G};
_.K(Xm,WH);
Xm.prototype.resolveCommand=function(G){var e=this,r,Z,O;return _.D(function(M){if(M.nextAddress==1){r=_.a(G,G8n);if(!r)return M.return();Z="";(O=e.store.getState().collabInviteLink)&&r.id===O.playlistId?Z=O.inviteLinkURL:r.shortUrl&&(Z=r.shortUrl);return Z?M.yield(navigator.clipboard.writeText(Z),3):M.jumpTo(0)}var T={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.OK("COPY_LINK_SUCCESS_TOAST")}}}}};_.v_().resolve(_.$1).resolveCommand(T);_.HL(M)})};
Xm[wR]=[c0];var KT=function(G,e){this.innertubeTransportService=G;this.JSC$17666_commandHandler=e};
_.K(KT,WH);KT.prototype.resolveCommand=function(G,e){var r=this,Z,O,M,T,E,b,w,q,t,g;return _.D(function(l){if(l.nextAddress==1)return(Z=_.a(G,_.L6))?l.yield(_.p1(r.innertubeTransportService,G,(O=e)==null?void 0:O.form),2):l.return();(M=l.yieldResult)&&M.errorMetadata&&(T=M,E=_.Fs(T.error.message),r.JSC$17666_commandHandler.resolveCommand(E));b=M;if((w=b)==null?0:w.actions)for(q=_.h(b.actions),t=q.next();!t.done;t=q.next())g=t.value,r.JSC$17666_commandHandler.resolveCommand(g);_.HL(l)})};
KT[wR]=[_.v1,_.$1];var fT=function(){};
_.K(fT,WH);fT.prototype.resolveCommand=function(G){var e;return _.D(function(r){e=_.a(G,Fyn);if(!e)return r.return();(new $jc(e)).show();_.HL(r)})};_.ka=new _.Gz("PLAYLIST_EDIT_CONTROLLER_TOKEN");var Ha=function(G,e,r,Z){this.store=G;this.innertubeTransportService=e;this.controller=r;this.JSC$17674_commandHandler=Z};
_.K(Ha,WH);
Ha.prototype.resolveCommand=function(G,e){var r=this,Z,O,M,T,E,b,w,q,t,g,l,X,H,I,C,u,P,F,J,U,e$,Dq,bF,Kf,ti,Ry;return _.D(function(nf){if(nf.nextAddress==1){Z=_.a(G,_.BV);if(!Z)return nf.return();if(Z.clientActions){O=_.h(Z.clientActions);for(M=O.next();!M.done;M=O.next())T=M.value,r.JSC$17674_commandHandler.resolveCommand(T,e);var k4,SE=e==null?void 0:(k4=e.form)==null?void 0:k4.element;SE&&_.xy(SE,"yt-dismissible-item-action",Z.clientActions)}return nf.yield(_.p1(r.innertubeTransportService,G,(E=
e)==null?void 0:E.form),2)}if(b=nf.yieldResult)b.errorMetadata?(w=b,q=_.Fs(w.error.message),r.JSC$17674_commandHandler.resolveCommand(q),"error"in b&&((t=e)==null?0:(g=t.commandController)==null?0:g.onServerError)&&((l=e)==null||(X=l.commandController)==null||X.onServerError(G,b))):(H=e)==null||(I=H.commandController)==null||(u=(C=I).onSuccess)==null||u.call(C,G,b);P=b;((F=P)==null?0:F.collaborationInviteLink)&&Z.playlistId&&(_.R("web_enable_invite_collaborators_link")||_.R("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
r.store.dispatch(_.UK({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:Z.playlistId,inviteLinkUrl:P.collaborationInviteLink}}));((J=P)==null?0:J.redirectEndpoint)&&r.JSC$17674_commandHandler.resolveCommand(P.redirectEndpoint);((U=P)==null?0:(e$=U.newHeader)==null?0:e$.playlistHeaderRenderer)?$KC(r.controller,P.newHeader.playlistHeaderRenderer):((Dq=P)==null?0:(bF=Dq.newHeader)==null?0:bF.musicEditablePlaylistDetailHeaderRenderer)&&$KC(r.controller,P.newHeader.musicEditablePlaylistDetailHeaderRenderer);
r.controller.playlistVideoListElement&&((Kf=P)==null?0:(ti=Kf.playlistEditResults)==null?0:(Ry=ti[0])==null?0:Ry.playlistEditVideoAddedResultData)&&((SE=r.controller.playlistVideoListElement)==null||SE.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:P.playlistEditResults[0].playlistEditVideoAddedResultData})));_.HL(nf)})};
Ha[wR]=[_.YB,_.v1,_.ka,_.$1];var dr=function(G,e){this.controller=G;this.JSC$17684_commandHandler=e};
_.K(dr,WH);dr.prototype.resolveCommand=function(G,e){var r=this,Z,O,M;return _.D(function(T){Z=_.a(G,e2y);r.controller.showRefreshPill&&((O=Z)==null?0:O.command)&&(r.JSC$17684_commandHandler.resolveCommand((M=Z)==null?void 0:M.command,e),r.controller.showRefreshPill=!1);_.HL(T)})};
dr[wR]=[_.gi,_.$1];var ow=function(G,e){this.store=G;this.JSC$17688_commandHandler=e||_.Ga.instance};
_.K(ow,WH);ow.prototype.resolveCommand=function(G,e){var r=this,Z,O,M,T,E,b,w,q,t,g;return _.D(function(l){Z=_.a(G,$wv);O=r.store.getState().radioButtonGroup;if((M=Z)==null?0:M.command)r.JSC$17688_commandHandler.resolveCommand((T=Z)==null?void 0:T.command,e);else if(O&&((E=Z)==null?void 0:E.formId)===O.currentFormId)for(b=Object.values(O.commandsMap),w=_.h(b),q=w.next();!q.done;q=w.next())t=q.value,(g=_.X0(t))&&r.JSC$17688_commandHandler.resolveCommand(g,e);_.HL(l)})};
ow[wR]=[_.YB];var s7=new _.Gz("USER_PREFS");var Qe=function(G){this.JSC$17693_prefCookie=G};
_.K(Qe,WH);Qe.prototype.resolveCommand=function(G){var e=this,r;return _.D(function(Z){(r=_.a(G,Cdv))&&typeof r.useListView==="boolean"&&(_.Tn(0,155,r.useListView),e.JSC$17693_prefCookie.save());_.HL(Z)})};
Qe[wR]=[s7];var Iw=function(G){this.JSC$17697_prefCookie=G};
_.K(Iw,WH);Iw.prototype.resolveCommand=function(G){var e=this,r,Z,O,M,T;return _.D(function(E){r=_.a(G,B_W);if((Z=r)==null||!Z.gl)return E.return();O=r.gl;M={persist_gl:"1",gl:O};e.JSC$17697_prefCookie.set("gl",O);e.JSC$17697_prefCookie.save();T=T1c(M);_.kN(T);_.HL(E)})};
Iw[wR]=[s7];var pT=function(G){this.JSC$17701_prefCookie=G};
_.K(pT,WH);pT.prototype.resolveCommand=function(G){var e=this,r,Z;return _.D(function(O){r=_.a(G,ZSC);if(!r)return O.return();Z=!1;r.flagNum&&typeof r.value==="boolean"?(_.Tn(0,r.flagNum,r.value),Z=!0):r.key&&typeof r.stringValue==="string"&&(e.JSC$17701_prefCookie.set(r.key,r.stringValue),Z=!0);Z&&e.JSC$17701_prefCookie.save();_.HL(O)})};
pT[wR]=[s7];var CT=new _.Gz("PREF_STORAGE_PROMISE_TOKEN");var uU=function(G){this.JSC$17705_prefStoragePromise=G};
_.K(uU,WH);uU.prototype.resolveCommand=function(G){var e=this,r,Z;return _.D(function(O){if(O.nextAddress==1)return(r=_.a(G,Mjc))?O.yield(e.JSC$17705_prefStoragePromise,2):O.return();Z=O.yieldResult;return Z===void 0||r.key===void 0||r.value===void 0?O.return():O.yield(Z.set(r.key,r.value),0)})};
uU[wR]=[CT];var Swo=function(G){this.innertubeTransportService=G};
_.K(Swo,WH);Swo.prototype.resolveCommand=function(G,e){var r=this,Z,O;return _.D(function(M){(Z=_.a(G,_.v9w))&&Z&&Z.isFirstRequest&&(_.Rl("search_overview_answer"),_.jq("so_rq",void 0,"search_overview_answer"));return M.yield(_.p1(r.innertubeTransportService,G,(O=e)==null?void 0:O.form),0)})};
Swo[wR]=[_.v1];var qwd=function(){};
_.K(qwd,WH);
qwd.prototype.resolveCommand=function(G){var e,r,Z,O,M,T,E,b,w;return _.D(function(q){e=_.a(G,$6n);if((r=e)==null?0:r.sectionIdentifier){if(e.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(O=(Z=document.getElementsByTagName(e.sectionIdentifier))==null?void 0:Z.item(0))O.scrollIntoView({behavior:"smooth"}),(M=Dqy(O))&&M.focus({preventScroll:!0});return q.return()}T=document.querySelector("[section-identifier="+e.sectionIdentifier+"]");E=document.querySelector("[section-identifier="+e.referenceSectionIdentifier+
"]");if(!T)return q.return();b=e.verticalScrollOffsetDp?e.verticalScrollOffsetDp:0;E&&(b-=E.offsetTop);window.scrollTo({top:T.offsetTop+b,behavior:"smooth"});(w=Dqy(T))&&w.focus({preventScroll:!0})}_.HL(q)})};var nT=function(G){this.JSC$17717_commandHandler=G};
_.K(nT,WH);
nT.prototype.resolveCommand=function(G){var e=this,r,Z,O,M,T,E,b;return _.D(function(w){if(w.nextAddress==1){r=_.a(G,uwE);if(!r||!r.imageBytes||!navigator.clipboard)return w.return();if(r.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.yx(Error("Fi")),w.return();_.jr(w,2);O=(Z=r)==null?void 0:Z.imageBytes;M=O.replace(/-/g,"+").replace(/_/g,"/");T=bDy(M);E={};b=[new ClipboardItem((E[T.type]=T,E))];return w.yield(navigator.clipboard.write(b),4)}if(w.nextAddress!=2)return r.successCommand&&
e.JSC$17717_commandHandler.resolveCommand(r.successCommand),_.rL(w,0);_.k5(w);r.errorCommand&&e.JSC$17717_commandHandler.resolveCommand(r.errorCommand);_.HL(w)})};
nT[wR]=[_.$1];var mn=function(G,e){this.innertubeTransportService=G;this.JSC$17721_commandHandler=e};
_.K(mn,WH);mn.prototype.resolveCommand=function(G,e){var r=this,Z,O,M,T,E;return _.D(function(b){if(b.nextAddress==1)return(Z=_.a(G,n9l))?b.yield(_.p1(r.innertubeTransportService,G,(O=e)==null?void 0:O.form),2):b.return();(M=b.yieldResult)&&M.errorMetadata&&Z.onFailureCommand&&r.JSC$17721_commandHandler.resolveCommand(Z.onFailureCommand);T=M;((E=T)==null?0:E.shareCommand)&&r.JSC$17721_commandHandler.resolveCommand(T.shareCommand,e);_.HL(b)})};
mn[wR]=[_.v1,_.$1];var ca=function(){};
_.K(ca,WH);ca.prototype.resolveCommand=function(G){var e,r;return _.D(function(Z){e=_.a(G,N_n);if(!e||!navigator.share)return Z.return();r={url:e.url};try{return Z.return(navigator.share(r))}catch(O){}_.HL(Z)})};var Ya=function(){};
_.K(Ya,WH);Ya.prototype.resolveCommand=function(){return _.D(function(G){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.HL(G)})};var ye=function(G){this.JSC$17731_navigationConfirmationService=G};
_.K(ye,WH);ye.prototype.resolveCommand=function(){var G=this;return _.D(function(e){G.JSC$17731_navigationConfirmationService.cancelPendingNavigation();_.HL(e)})};
ye[wR]=[HZ];var A1=function(G){this.JSC$17734_screenManager=G};
_.K(A1,WH);A1.prototype.resolveCommand=function(G,e){var r=this,Z,O,M,T,E,b,w;return _.D(function(q){O=(Z=e.form)==null?void 0:Z.event;T=(M=e.form)==null?void 0:M.element;if(!O)throw new _.Cr("Event not passed in when resolving command");E=_.h(O.composedPath());for(b=E.next();!b.done;b=E.next())if(w=b.value,w.tagName==="YT-COPY-LINK-RENDERER")return w.copyUrlToClipboard(),T&&_.sb(r.JSC$17734_screenManager,T),q.return();_.HL(q)})};
A1[wR]=[_.Qf];var Fm=function(){this.JSC$17738_miniAppClientDataProvider=_.v_().resolve(_.Z6)};
_.K(Fm,WH);Fm.prototype.resolveCommand=function(){var G=this,e,r;return _.D(function(Z){if(G.JSC$17738_miniAppClientDataProvider.clientData.has("video_id")){var O=G.JSC$17738_miniAppClientDataProvider,M=O.clientData.get("video_id");M&&O.clientData.delete("video_id");e="https://youtube.com/watch?v="+M;r=_.Y$(e);if(r===void 0)throw Error("Gi`"+e);_.er(window,r)}_.HL(Z)})};var J1=function(){};
_.K(J1,WH);J1.prototype.resolveCommand=function(){return _.D(function(G){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.HL(G)})};var Ba=function(){};
_.K(Ba,WH);Ba.prototype.resolveCommand=function(){var G;return _.D(function(e){if(e.nextAddress==1)return e.yield(_.Li$(window.document.documentElement),2);(G=document.querySelector("mini-app-container-view-model iframe"))&&G.focus();_.HL(e)})};var xa=function(G){this.JSC$17745_navigationConfirmationService=G};
_.K(xa,WH);
xa.prototype.resolveCommand=function(){var G=this;return _.D(function(e){var r=G.JSC$17745_navigationConfirmationService,Z=_.v_().resolve(_.X9),O;if(((O=r.navigateParams)==null?void 0:O.data)!==void 0){var M;_.KRW(Z,r.navigateParams.endpoint,r.navigateParams.data,(M=r.navigateParams.navigationType)!=null?M:1,r.navigateParams.tempData,r.navigateParams.isMiniplayer,void 0,!0);r.navigateParams=void 0;r.customConfirmationCommand=void 0}else r.navigateParams&&(Z.navigate(r.navigateParams.endpoint,r.navigateParams.reload,
r.navigateParams.params,r.navigateParams.tempData,r.navigateParams.requestType,r.navigateParams.createScreenConfig,!0),r.navigateParams=void 0,r.customConfirmationCommand=void 0);_.HL(e)})};
xa[wR]=[HZ];var Pa=function(){};
_.K(Pa,WH);Pa.prototype.resolveCommand=function(){return _.D(function(G){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.HL(G)})};var U7=function(G){this.JSC$17750_prefStorage=G};
_.K(U7,WH);U7.prototype.resolveCommand=function(){var G=this,e,r;return _.D(function(Z){switch(Z.nextAddress){case 1:return Z.yield(G.JSC$17750_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:r=_.hy(),_.Tn(0,203,!1),_.Tn(0,204,!0),r.save(),_.HL(Z)}})};
U7[wR]=[CT];var zg=function(G){this.JSC$17753_prefStorage=G};
_.K(zg,WH);zg.prototype.resolveCommand=function(){var G=this,e,r;return _.D(function(Z){switch(Z.nextAddress){case 1:return Z.yield(G.JSC$17753_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:r=_.hy(),_.Tn(0,203,!0),_.Tn(0,204,!0),r.save(),_.HL(Z)}})};
zg[wR]=[CT];_.tzd=new _.Gz("SNACKBAR_CONTROLLER_TOKEN");_.gfY=new _.Gz("SHOULD_SHOW_PIVOT_BAR_TOKEN");var Wa=function(G){this.controller=G};
_.K(Wa,WH);Wa.prototype.resolveCommand=function(G){var e=this,r;return _.D(function(Z){r=_.a(G,evP);if(!r)return Z.return();var O=e.controller;O.closeSnackbarFn&&O.closeSnackbarFn();_.HL(Z)})};
Wa[wR]=[_.tzd];var NO=function(G,e){this.controller=G;this.sheetController=e};
_.K(NO,WH);NO.prototype.resolveCommand=function(G,e){var r=this,Z,O,M,T,E,b;return _.D(function(w){Z=_.a(G,Z0l);if(!Z)return w.return();T=Vz8(r.sheetController,(O=e)==null?void 0:(M=O.form)==null?void 0:M.element);E=_.a(Z.content,qEy);if(!E)return w.return();var q=r.controller,t=E,g=(b=Z.animationStyle)!=null?b:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(q.showSnackbarFn)q.showSnackbarFn({snackbarViewModel:t,animationStyle:g,durationMs:Z.durationSeconds*1E3,target:T});else throw Error("zj");_.HL(w)})};
NO[wR]=[_.tzd,_.nJ];var LT=function(){};
_.K(LT,WH);LT.prototype.resolveCommand=function(G){var e;return _.D(function(r){e=_.a(G,OSl);if(!e||typeof e.key!=="string"||typeof e.value!=="string")return r.return();window.localStorage.setItem(e.key,e.value);_.HL(r)})};var GQ=function(G){this.store=G};
_.K(GQ,WH);GQ.prototype.resolveCommand=function(G){var e=this,r;return _.D(function(Z){r=_.a(G,isA);if(!r||!r.stepId||!r.token)return Z.return();e.store.dispatch(xYC({stepId:r.stepId,token:r.token,isSelected:!1}));_.HL(Z)})};
GQ[wR]=[c0];var ep=function(G,e,r){this.innertubeTransportService=G;this.store=e;this.JSC$17772_screenManager=r};
_.K(ep,WH);
ep.prototype.resolveCommand=function(G){var e=this,r,Z,O,M,T,E,b,w,q,t,g,l,X,H,I,C,u,P,F,J,U,e$,Dq,bF;return _.D(function(Kf){r=_.a(G,W9c);if(!r||(Z=r.stepIds)==null||!Z.length)return Kf.return();O=e.store.getState().talkToRecs;M=[];T=[];E=_.h(r.stepIds);for(b=E.next();!b.done;b=E.next())for(w=b.value,q=void 0,(t=(q=O.stepStates[w])==null?void 0:q.userQuery)&&T.push({userQuery:t.userQuery,userQueryToken:t.token}),l=g=void 0,X=(l=(g=O.stepStates[w])==null?void 0:g.selectionStates)!=null?l:{},H=_.h(Object.entries(X)),
I=H.next();!I.done;I=H.next())C=I.value,u=_.h(C),P=u.next().value,F=u.next().value,J=P,U=F,U.isSelected&&M.push(J);e$={selectedChipTokens:M,userQueries:T,submittedStepIds:r.stepIds};Dq={browseTalk2recsFormData:e$};r.browseEndpoint?(bF=G,_.g2(bF,_.Mv,r.browseEndpoint)):r.command&&(bF=r.command);return bF?Kf.yield(_.p1(e.innertubeTransportService,bF,{formData:Dq,disableCache:!0}).then(function(ti){(ti==null?0:ti.trackingParams)&&e.JSC$17772_screenManager.graftServerVe(ti==null?void 0:ti.trackingParams)}),
0):Kf.return()})};
ep[wR]=[_.v1,c0,_.Qf];var ru=function(G){this.store=G};
_.K(ru,WH);ru.prototype.resolveCommand=function(G){var e=this,r;return _.D(function(Z){r=_.a(G,EI_);if(!r||!r.stepId||!r.token)return Z.return();e.store.dispatch(xYC({stepId:r.stepId,token:r.token,isSelected:!0}));_.HL(Z)})};
ru[wR]=[c0];var Z0=function(G){this.store=G};
_.K(Z0,WH);Z0.prototype.resolveCommand=function(G,e){var r=this,Z,O,M,T,E;return _.D(function(b){Z=_.a(G,Ngl);if(!Z||!Z.stepId||!Z.userQueryToken)return b.return();E=(T=(O=e)==null?void 0:(M=O.form)==null?void 0:M.userQuery)!=null?T:"";r.store.dispatch(_.UK({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:Z.stepId,userQueryToken:Z.userQueryToken,userQuery:E}}));_.HL(b)})};
Z0[wR]=[c0];_.ldA=new _.Gz("TIMELY_ACTIONS_CONTROLLER_TOKEN");var Ov=function(G){this.controller=G};
_.K(Ov,WH);Ov.prototype.resolveCommand=function(G){var e=this,r,Z,O,M;return _.D(function(T){r=_.a(G,bhb);if(!r)return T.return();Z=r;O=Z.id;M=Z.isVisible;if(O===void 0||M===void 0)return T.return();var E;(E=e.controller.timelyActionsMap.get(O))==null||E(O,M);_.HL(T)})};
Ov[wR]=[_.ldA];var RGa=function(){this.timelyActionsMap=new Map};var Mb=function(G){this.JSC$17798_commandHandler=G};
_.K(Mb,WH);Mb.prototype.resolveCommand=function(G){var e=this,r,Z,O,M,T;return _.D(function(E){r=_.a(G,_.R9P);if(!r)return E.return();M=(Z=r.item)==null?void 0:(O=Z.notificationTextRenderer)==null?void 0:O.successResponseText;if(!M)return E.return();T=_.Ah(M);e.JSC$17798_commandHandler.resolveCommand(T);_.HL(E)})};
Mb[wR]=[_.$1];var Vh=function(G,e){this.innertubeTransportService=G;this.JSC$17803_playerApiPromise=e};
_.K(Vh,WH);
Vh.prototype.resolveCommand=function(G){var e=this,r,Z,O,M,T,E,b,w,q;return _.D(function(t){if(t.nextAddress==1)return t.yield(e.JSC$17803_playerApiPromise,2);r=t.yieldResult;Z=r.getOption("captions","track");O=Object.assign({},_.a(G,_.fOw));(T=(M=r.getVideoData())==null?void 0:M.video_id)?O.externalVideoId=T:_.GG(Error("Hi"));if((E=Z)==null?0:E.languageCode)O.languageCode=Z.languageCode;if((b=Z)==null?0:b.kind)O.kind=Z.kind;if((w=Z)==null?0:w.name)O.name=Z.name;q=Object.assign({},G,{getTranscriptEndpoint:O});return t.yield(_.p1(e.innertubeTransportService,
q),0)})};
Vh[wR]=[_.v1,_.Ub];var hw=function(){};
_.K(hw,WH);hw.prototype.resolveCommand=function(G){var e,r,Z,O,M,T,E,b;return _.D(function(w){e=_.a(G,w9v);if((r=e)==null||!r.paramKeyValuePairs)return w.return();Z=window.location.href;O=_.h(e.paramKeyValuePairs);for(M=O.next();!M.done;M=O.next())T=M.value,T.key&&T.value&&(E={},Z=_.Mt(Z,(E[T.key]=T.value,E)));b=_.v_().resolve(_.XL);_.aA(b,Z);_.HL(w)})};_.TQ=new _.Gz("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var D0=function(){};
_.K(D0,J4);_.V=D0.prototype;_.V.getApiPaths=function(){return $cy};
_.V.getExtension=function(G){return _.a(G,_.u4)};
_.V.isNavigationCommand=function(){return!0};
_.V.JSC$14178_getStoreKey=function(G){if((G=this.getExtension(G))&&G.videoId){var e={videoId:G.videoId};G.playlistId&&(e.playlistId=G.playlistId);G.index&&(e.index=G.index);G.params&&(e.params=G.params);return _.CO("next",e)}};
_.V.JSC$14171_getClientScreen=function(G){var e;return((e=G.contentPlaybackContext)==null?void 0:e.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.V.JSC$14171_buildRequest=function(G,e,r){e.videoId&&(G.videoId=e.videoId);e.playlistId&&(G.playlistId=e.playlistId);e.params&&(G.params=e.params);e.index!==void 0&&(G.playlistIndex=e.index);G.racyCheckOk=!(!r.racyCheckOk&&!e.racyCheckOk);G.contentCheckOk=!!e.contentCheckOk;r.contentPlaybackContext&&(G.autonavState=r.contentPlaybackContext.autonavState,G.playbackContext={vis:r.contentPlaybackContext.vis,lactMilliseconds:r.contentPlaybackContext.lactMilliseconds});r.prefetchPlaybackContext&&(G.context.request||
(G.context.request={}),G.context.request.isPrefetch=!0);_.R("captions_hats_killswitch")||(e=_.hy().getFlag(65),e=e!=null?!e:!1,r=!!_.SF("yt-player-sticky-caption"),G.captionsRequested=e&&r)};
_.V.getRequestConfig=function(G){G=this.JSC$14178_getStoreKey(G);var e;G&&(e={storeStrategy:{storeKey:G}});_.R("web_log_player_watch_next_ticks")&&(e=e||{},e.requestTick="wn_s",e.responseTick="wn_r");return e};
var Ev=function(){};
_.K(Ev,J4);Ev.prototype.getApiPaths=function(){return $cy};
Ev.prototype.getExtension=function(G){return _.a(G,_.f1)};
Ev.prototype.JSC$14171_buildRequest=function(G,e){e.token&&(G.continuation=e.token)};var iR=function(G,e,r,Z){this.controller=G;this.JSC$17823_playerApiPromise=e;this.innertubeTransportService=r;this.JSC$17823_commandHandler=Z};
_.K(iR,WH);
iR.prototype.resolveCommand=function(G){var e=this,r,Z,O,M,T,E,b,w,q,t,g,l,X,H,I,C,u,P;return _.D(function(F){if(F.nextAddress==1){r=_.a(G,uMc);if((Z=r)==null||!Z.watchEndpoint)return F.return();O=new D0;M=O.JSC$14171_getRequest(r.watchEndpoint);if(!M)return F.return();T=r.watchEndpoint.clickTrackingParams;return F.yield(_.LE(e.innertubeTransportService,M.innerTubeRequest,M.input,T,M.config),2)}if(F.nextAddress!=3)return E=F.yieldResult,F.yield(e.JSC$17823_playerApiPromise,3);b=F.yieldResult;b.updateVideoData({raw_watch_next_response:E});
if(X=(w=E)==null?void 0:(q=w.contents)==null?void 0:(t=q.twoColumnWatchNextResults)==null?void 0:(g=t.results)==null?void 0:(l=g.results)==null?void 0:l.contents)I=(H=X.find(function(J){return J.videoPrimaryInfoRenderer}))==null?void 0:H.videoPrimaryInfoRenderer,((C=I)==null?0:C.subtitle)&&jP8(e.controller,I.subtitle);
(P=(u=E)==null?void 0:u.onUiReady)&&e.JSC$17823_commandHandler.resolveCommand(P);_.HL(F)})};
iR[wR]=[_.TQ,_.Ub,_.v1,_.$1];var adl=function(){this.subtitleChangeCallbackMap=new Map},jP8=function(G,e){G=_.h(G.subtitleChangeCallbackMap.values());
for(var r=G.next();!r.done;r=G.next())r=r.value,r(e)};var bR=function(G,e){this.JSC$17833_commandHandler=G;this.innertubeTransportService=e};
_.K(bR,WH);
bR.prototype.resolveCommand=function(G,e){var r=this,Z,O,M,T,E,b,w,q,t,g,l,X,H,I,C,u,P;return _.D(function(F){switch(F.nextAddress){case 1:return(M=(Z=e)==null?void 0:(O=Z.form)==null?void 0:O.element)&&_.ki(M),T=_.hy().get("hl"),E="",_.jr(F,2),F.yield(CkF(T),4);case 4:E=F.yieldResult;_.rL(F,3);break;case 2:return _.k5(F),M&&_.H4(M),_.yx(Error("Ji"),"ERROR"),F.return();case 3:b=_.a(G,Umy);if(!b)return M&&_.H4(M),F.return();(t=(w=b.commerceActionConfig)==null?void 0:(q=w.commandLifeCycleConfig)==null?
void 0:q.onStartCommand)&&r.JSC$17833_commandHandler.resolveCommand(t);return F.yield(_.p1(r.innertubeTransportService,G,{client_data:{paymentsClientToken:{token:E}}}),5);case 5:(g=F.yieldResult)?(M&&_.H4(M),((I=g)==null?0:I.command)&&r.JSC$17833_commandHandler.resolveCommand(g.command),(P=(C=b.commerceActionConfig)==null?void 0:(u=C.commandLifeCycleConfig)==null?void 0:u.onSuccessCommand)&&r.JSC$17833_commandHandler.resolveCommand(P)):(M&&_.H4(M),_.yx(Error("Ki")),(H=(l=b.commerceActionConfig)==
null?void 0:(X=l.commandLifeCycleConfig)==null?void 0:X.onFailureCommand)&&r.JSC$17833_commandHandler.resolveCommand(H)),_.HL(F)}})};
bR[wR]=[_.$1,_.v1];var vl=function(G,e,r){this.store=G;this.JSC$17849_commandHandler=e;this.innertubeTransportService=r};
_.K(vl,WH);
vl.prototype.resolveCommand=function(G,e){var r=this,Z,O,M,T,E,b,w,q,t;return _.D(function(g){Z=_.a(G,zvw);O=Z.googlePaymentPayload;Z.onStartCommand&&r.JSC$17849_commandHandler.resolveCommand(Z.onStartCommand);M=O.encryptedPurchaseParams;T=O.ypcLogWalletAnalyticDataEndpoint;E=Z.serializedTransactionFlowLoggingParams;b=O.serializedPaymentsClientParams;w=Z.ypcCujContext;t=mJS(r.innertubeTransportService,(q=e)==null?void 0:q.form,M,T,E,b,w);return g.return(t.then(function(l){uhN(e==null?void 0:e.form,
!1);var X=r.store,H=r.JSC$17849_commandHandler,I=l.integratorData;I==null||I===""||l.error!=null?(String(l.error)==="-1"&&Z.onDismissCommand?H.resolveCommand(Z.onDismissCommand):String(l.error)!=="-1"&&Z.onFailureCommand&&H.resolveCommand(Z.onFailureCommand),String(l.error)!=="-1"&&String(l.error)!=="132"&&_.yx(Error("Li"),"ERROR")):(Z.googlePaymentEntityKey&&X.dispatch(_.bt("commerceAcquisitionClientPayloadEntity",Z.googlePaymentEntityKey,{key:Z.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:I,
fundsGuaranteeCallbackClientData:l.integratorClientCallbackData}}})),Z.onSuccessCommand&&H.resolveCommand(Z.onSuccessCommand));_.Nz()},function(l){uhN(e==null?void 0:e.form,!1);
_.yx(l,"ERROR");Z.onFailureCommand&&r.JSC$17849_commandHandler.resolveCommand(Z.onFailureCommand)}))})};
vl[wR]=[JZ,_.$1,_.v1];var wu=function(G,e){this.JSC$17853_commandHandler=G;this.purchaseManager=e};
_.K(wu,WH);
wu.prototype.resolveCommand=function(G){var e=this,r,Z,O,M,T,E,b,w,q;return _.D(function(t){r=_.a(G,WNE);((Z=r)==null?0:(O=Z.commandLifeCycleConfig)==null?0:O.onStartCommand)&&e.JSC$17853_commandHandler.resolveCommand(r.commandLifeCycleConfig.onStartCommand);if(!((M=r)==null?0:(T=M.googlePaymentPurchaseManagerPayload)==null?0:T.securePayloadBytes))return _.yx(Error("Mi"),"ERROR"),t.return();E=u0P(_.NU(r.googlePaymentPurchaseManagerPayload.securePayloadBytes));b=_.hy().get("hl");w=_.C1();Dg8(E.serialize(),
b,function(g){w.resolve(g)},function(g){w.reject(g)},w.resolve);
q=w.promise;return t.return(q.then(function(g){if(g)if(g==null?0:g.errorCode){_.yx(Error("Ni`"+g.errorCode),"ERROR");var l,X;((l=r)==null?0:(X=l.commandLifeCycleConfig)==null?0:X.onFailureCommand)&&e.JSC$17853_commandHandler.resolveCommand(r.commandLifeCycleConfig.onFailureCommand)}else if(g==null?0:g.isCancelled){var H,I;((H=r)==null?0:(I=H.commandLifeCycleConfig)==null?0:I.onCancelCommand)&&e.JSC$17853_commandHandler.resolveCommand(r.commandLifeCycleConfig.onCancelCommand)}else{var C,u;((C=r)==
null?0:(u=C.commandLifeCycleConfig)==null?0:u.onSuccessCommand)&&e.JSC$17853_commandHandler.resolveCommand(r.commandLifeCycleConfig.onSuccessCommand)}},function(g){_.yx(g,"ERROR");
var l,X;((l=r)==null?0:(X=l.commandLifeCycleConfig)==null?0:X.onFailureCommand)&&e.JSC$17853_commandHandler.resolveCommand(r.commandLifeCycleConfig.onFailureCommand)}))})};
wu[wR]=[_.$1,E5a];var X2W=function(G,e){this.JSC$17861_commandHandler=G;this.commandAllowlistOverride=e;var r;this.commandAllowlist=(r=this.commandAllowlistOverride)!=null?r:ooF};
X2W.prototype.handleResponse=function(G,e,r){var Z,O=e==null?void 0:(Z=e.config)==null?void 0:Z.command;if(!O||this.commandAllowlist.some(function(M){return!!_.a(O,M)})){e=void 0;
r!==void 0&&(e={form:{element:r}});G.onResponseReceivedCommand&&this.JSC$17861_commandHandler.resolveCommand(G.onResponseReceivedCommand,e);G.onResponseReceivedAction&&this.JSC$17861_commandHandler.resolveCommand(G.onResponseReceivedAction,e);G.onResponseReceivedEndpoint&&this.JSC$17861_commandHandler.resolveCommand(G.onResponseReceivedEndpoint,e);G.command&&this.JSC$17861_commandHandler.resolveCommand(G.command,e);if(G.onResponseReceivedCommands)for(r=_.h(G.onResponseReceivedCommands),Z=r.next();!Z.done;Z=
r.next())this.JSC$17861_commandHandler.resolveCommand(Z.value,e);if(G.onResponseReceivedActions)for(r=_.h(G.onResponseReceivedActions),Z=r.next();!Z.done;Z=r.next())this.JSC$17861_commandHandler.resolveCommand(Z.value,e);if(G.onResponseReceivedEndpoints)for(r=_.h(G.onResponseReceivedEndpoints),Z=r.next();!Z.done;Z=r.next())this.JSC$17861_commandHandler.resolveCommand(Z.value,e);if(G.actions)for(G=_.h(G.actions),r=G.next();!r.done;r=G.next())this.JSC$17861_commandHandler.resolveCommand(r.value,e)}};
X2W[wR]=[_.$1,_.bq(ddS)];var KdC=new _.Gz("INNERTUBE_TOKEN_SERVICE");var fdA=new _.Gz("SCHEDULER_TOKEN");var kVo=function(G){this.scheduler=G;G={};this.tokenMap=(G.app={},G.user={},G)};
kVo.prototype.handleResponse=function(G,e){if(!e)throw Error("Oi");var r;if(G=(r=G.responseContext)==null?void 0:r.innertubeTokenJar){if(G.appTokens){var Z,O,M;r=(Z=e.innerTubeRequest.context)==null?void 0:(O=Z.request)==null?void 0:(M=O.innertubeTokenJar)==null?void 0:M.appTokens;HNY(this,G.appTokens,this.tokenMap.app,r)}if(G.userTokens){var T,E,b;e=(T=e.innerTubeRequest.context)==null?void 0:(E=T.request)==null?void 0:(b=E.innertubeTokenJar)==null?void 0:b.userTokens;HNY(this,G.userTokens,this.tokenMap.user,
e)}}};
kVo.prototype.processContext=function(G){G.request||(G.request={});var e=Object.keys(this.tokenMap.app).length,r=Object.keys(this.tokenMap.user).length;if(e||r)G.request.innertubeTokenJar={},e&&(G.request.innertubeTokenJar.appTokens=[].concat(_.mY(Object.values(this.tokenMap.app).flat()))),r&&(G.request.innertubeTokenJar.userTokens=[].concat(_.mY(Object.values(this.tokenMap.user).flat())))};
var HNY=function(G,e,r,Z){e=_.h(e);for(var O=e.next(),M={};!O.done;M={token$jscomp$139:void 0},O=e.next()){M.token$jscomp$139=O.value;if(M.token$jscomp$139.type===void 0)throw new _.Cr("InnerTube token has no type",M.token$jscomp$139);if(M.token$jscomp$139.clearTokens)r[M.token$jscomp$139.type]=[];else if(M.token$jscomp$139.value!==void 0){r[M.token$jscomp$139.type]||(r[M.token$jscomp$139.type]=[]);if(Z!==void 0&&Z.length){O=_.h(Z);for(var T=O.next(),E={};!T.done;E={requestToken:void 0},T=O.next())E.requestToken=
T.value,T=r[M.token$jscomp$139.type].findIndex(function(b){return function(w){return w===b.requestToken||(0,_.c2.equals)(w,b.requestToken)}}(E)),T>-1&&r[M.token$jscomp$139.type].splice(T,1)}r[M.token$jscomp$139.type].push(M.token$jscomp$139);
M.token$jscomp$139.maxAgeSeconds&&Number(M.token$jscomp$139.maxAgeSeconds)>0&&G.scheduler.addLowPriorityJob(function(b){return function(){var w=r[b.token$jscomp$139.type].indexOf(b.token$jscomp$139);w>-1&&r[b.token$jscomp$139.type].splice(w,1)}}(M),Number(M.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.Cr("InnerTube token has no value",M.token$jscomp$139);
}};
kVo[wR]=[fdA];var dKA=new _.Gz("LOCAL_INNERTUBE_ROUTER_TOKEN"),of8=new _.Gz("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var $K=function(G){this.serviceMap=G};
$K.prototype.shouldPreferLocalResponse=function(G,e){return(G=sPC(this,G))?G.shouldPreferLocalResponse(e):!1};
$K.prototype.localInnertubeResponse=function(G,e){var r=this,Z;return _.D(function(O){return(Z=sPC(r,G))?O.return(Z.localInnertubeResponse(e)):O.return(Promise.reject(Error("Pi")))})};
$K.prototype.canProvideFallbackResponse=function(G,e){return(G=sPC(this,G))?G.canProvideFallbackResponse(e):!1};
$K.prototype.localFallbackInnertubeResponse=function(G,e){var r=this,Z;return _.D(function(O){return(Z=sPC(r,G))?O.return(Z.localFallbackInnertubeResponse(e)):O.return(Promise.reject(Error("Pi")))})};
var sPC=function(G,e){e=_.Kr(e);return e?(G=G.serviceMap[e])?G:null:null};
$K[wR]=[of8];var iM=function(){};
iM.prototype.shouldPreferLocalResponse=function(){return!1};
iM.prototype.localInnertubeResponse=function(){return _.D(function(G){return G.return(Promise.reject(Error("Qi")))})};
iM.prototype.canProvideFallbackResponse=function(){return!0};
iM.prototype.localFallbackInnertubeResponse=function(){var G,e,r;return _.D(function(Z){G=r7("CLOSE_POPUP");e={openPopupAction:YyU()};r={actions:[G,e]};return Z.return(r)})};var eYU=function(G,e){this.JSC$17910_upliftPromise=G;this.store=e};
_.V=eYU.prototype;_.V.shouldPreferLocalResponse=function(G){var e=G.videoId,r;if(r=e)r=Bk_(this.store.getState().entities,G.videoId);return r&&x6_(this.store.getState().entities,e)?AWN(this.store.getState().entities,G.playlistId):!1};
_.V.localInnertubeResponse=function(G){var e=this,r;return _.D(function(Z){return(r=e.getPlayerResponse(G))?Z.return(Promise.resolve(r)):Z.return(Promise.reject(Error("Ri")))})};
_.V.canProvideFallbackResponse=function(G){return!!G.videoId};
_.V.localFallbackInnertubeResponse=function(G){var e=this,r;return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(e.JSC$17910_upliftPromise,2);r=e.getPlayerResponse(G);var O;r?O=Z.return(Promise.resolve(r)):O=vS(e.store.getState().entities,G.videoId)?Z.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Bn(_.OK("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:e__()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
Z.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Bn(_.OK("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:GTS()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return O})};
_.V.getPlayerResponse=function(G){return g0N(this.store.getState().entities,G.videoId)};var Ee=function(G,e){this.localPlayerService=G;this.localWatchNextService=e};
Ee.prototype.shouldPreferLocalResponse=function(G){var e=G.playerRequest;G=G.watchNextRequest;return!!(e&&this.localPlayerService.shouldPreferLocalResponse(e)&&G&&this.localWatchNextService.shouldPreferLocalResponse(G))};
Ee.prototype.localInnertubeResponse=function(G){var e=this,r,Z,O,M;return _.D(function(T){if(T.nextAddress==1){r=G.playerRequest;Z=G.watchNextRequest;if(!r||!Z)throw new _.Cr("Missing streaming request",G);return T.yield(e.localPlayerService.localInnertubeResponse(r),2)}if(T.nextAddress!=3)return O=T.yieldResult,T.yield(e.localWatchNextService.localInnertubeResponse(Z),3);M=T.yieldResult;return T.return({playerResponse:O,watchNextResponse:M})})};
Ee.prototype.canProvideFallbackResponse=function(G){var e=G.playerRequest;G=G.watchNextRequest;return!!(e&&this.localPlayerService.canProvideFallbackResponse(e)&&G&&this.localWatchNextService.canProvideFallbackResponse(G))};
Ee.prototype.localFallbackInnertubeResponse=function(G){var e=this,r,Z,O,M;return _.D(function(T){if(T.nextAddress==1)return r=G.playerRequest,Z=G.watchNextRequest,r&&Z?T.yield(e.localPlayerService.localFallbackInnertubeResponse(r),2):T.return(Promise.reject(new _.Cr("Missing streaming request",G)));if(T.nextAddress!=3)return O=T.yieldResult,T.yield(e.localWatchNextService.localFallbackInnertubeResponse(Z),3);M=T.yieldResult;return T.return({playerResponse:O,watchNextResponse:M})})};var hV=function(G){this.JSC$17920_persistentStorePromiseAccessor=G};
hV.prototype.shouldPreferLocalResponse=function(){return!1};
hV.prototype.localInnertubeResponse=function(){return _.D(function(G){return G.return(Promise.reject(Error("Si")))})};
hV.prototype.canProvideFallbackResponse=function(){return!0};
hV.prototype.localFallbackInnertubeResponse=function(){var G=this,e,r;return _.D(function(Z){return Z.nextAddress==1?Z.yield(G.JSC$17920_persistentStorePromiseAccessor(),2):Z.nextAddress!=3?(e=Z.yieldResult)?Z.yield(e.get("service:guide:fallback"),3):Z.return(Promise.reject(Error("Ti"))):(r=Z.yieldResult)&&_.AZ(r)?Z.return(FoF(_.AZ(r))):Z.return(Promise.reject(Error("Ui")))})};var bM=function(){};
bM.prototype.shouldPreferLocalResponse=function(){return!1};
bM.prototype.localInnertubeResponse=function(){return _.D(function(G){return G.return(Promise.reject(Error("Vi")))})};
bM.prototype.canProvideFallbackResponse=function(){return!0};
bM.prototype.localFallbackInnertubeResponse=function(){var G,e,r;return _.D(function(Z){G=r7("CLOSE_POPUP");e={openPopupAction:YyU()};r={actions:[G,e]};return Z.return(r)})};var Vn=function(){this.urlMap=QP8;this.fallbackCommand=_.Q_};
Vn.prototype.shouldPreferLocalResponse=function(G){return(G=G.url)?!!IdC(this,G):!1};
Vn.prototype.localInnertubeResponse=function(G){var e=this,r;return _.D(function(Z){return(r=G.url)?Z.return(p2W(G,IdC(e,r))):Z.return(Promise.reject(Error("Wi")))})};
Vn.prototype.canProvideFallbackResponse=function(){return!0};
Vn.prototype.localFallbackInnertubeResponse=function(G){var e=this,r,Z,O,M,T,E,b;return _.D(function(w){r=G.url;if(!r)return w.return(p2W(G,e.fallbackCommand));if(Z=IdC(e,r))return w.return(p2W(G,Z));O=void 0;M=_.Kr(r);M==="/watch"&&(T=_.Wp(r,"v"))&&(b=(E=_.Wp(r,"list"))!=null?E:void 0,O=_.Jy(T,b));O||(O=e.fallbackCommand);return w.return(p2W(G,O))})};
var IdC=function(G,e){if(e)return G.urlMap[_.sW(e)]},p2W=function(G,e){e&&G.parentTrackingParams&&(e.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:G.parentTrackingParams}},e.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:e})};var Tx=function(G,e,r){this.JSC$17931_upliftPromise=G;this.store=e;this.JSC$17931_persistentStorePromiseAccessor=r};
Tx.prototype.shouldPreferLocalResponse=function(){return!1};
Tx.prototype.localInnertubeResponse=function(){return _.D(function(G){return G.return(Promise.reject(Error("Xi")))})};
Tx.prototype.canProvideFallbackResponse=function(){return!0};
Tx.prototype.localFallbackInnertubeResponse=function(){var G=this;return _.D(function(e){return e.return(CLB(G))})};
var CLB=function(G){var e,r;return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(yM(G.JSC$17931_upliftPromise,G.store),2);e=Z.yieldResult;r={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[yWa(e)]}}}};return Z.return(u$W(G,r))})},u$W=function(G,e){var r,Z;
return _.D(function(O){if(O.nextAddress==1)return O.yield(G.JSC$17931_persistentStorePromiseAccessor(),2);if(O.nextAddress!=3)return r=O.yieldResult,O.yield(FT(r),3);Z=O.yieldResult;return O.return({responseContext:{},contents:e,topbar:Z})})};var Oe=function(G,e,r){this.JSC$17938_upliftPromise=G;this.store=e;this.JSC$17938_persistentStorePromiseAccessor=r};
Oe.prototype.shouldPreferLocalResponse=function(G){var e=G.videoId;return e&&Bk_(this.store.getState().entities,e)&&x6_(this.store.getState().entities,e)?AWN(this.store.getState().entities,G.playlistId):!1};
Oe.prototype.localInnertubeResponse=function(G){var e=this,r,Z;return _.D(function(O){if(O.nextAddress==1)return(r=G.videoId)?O.yield(e.JSC$17938_upliftPromise,2):O.return(Promise.reject(Error("Yi")));if(O.nextAddress!=3)return O.yield(nfH(e,G,r),3);Z=O.yieldResult;return O.return(mKm(e,Z,r))})};
Oe.prototype.canProvideFallbackResponse=function(G){return G.videoId?!0:!1};
Oe.prototype.localFallbackInnertubeResponse=function(G){var e=this,r,Z,O,M;return _.D(function(T){switch(T.nextAddress){case 1:return(r=G.videoId)?T.yield(e.JSC$17938_upliftPromise,2):T.return(Promise.reject(Error("Yi")));case 2:return T.yield(nfH(e,G,r),3);case 3:Z=T.yieldResult;if(vS(e.store.getState().entities,r)){T.jumpTo(4);break}return T.yield(yM(e.JSC$17938_upliftPromise,e.store),5);case 5:return O=T.yieldResult,T.return(cxm(Z,O));case 4:return Bk_(e.store.getState().entities,r)&&x6_(e.store.getState().entities,
r)?T.return(mKm(e,Z,r)):(M={title:_.Bn(_.OK("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:e__()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},T.return(cxm(Z,M)))}})};
var nfH=function(G,e,r){var Z,O,M,T,E;return _.D(function(b){if(b.nextAddress==1)return Z=e.playlistId,O=_.Jy(r,Z),b.yield(G.JSC$17938_persistentStorePromiseAccessor(),2);if(b.nextAddress!=3)return M=b.yieldResult,b.yield(FT(M),3);T=b.yieldResult;E={responseContext:{},currentVideoEndpoint:O,topbar:T};return b.return(E)})},mKm=function(G,e,r){if(G=vS(G.store.getState().entities,r)){var Z;
r=G.videoEntity;var O,M={title:xJ(r.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.Pn((Z=r.localizedStrings)==null?void 0:Z.viewCount),viewCount:_.Pn((O=r.localizedStrings)==null?void 0:O.viewCount)}}};r.publishedTimestampMillis&&(M.dateText=_.Pn(v94(new Date(Number(r.publishedTimestampMillis)))));Z={videoPrimaryInfoRenderer:M};O=G.videoEntity;G=G.channelEntity;G={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:xJ(_.OK("SHOW_MORE",void 0,"Show more")),
showLessText:xJ(_.OK("SHOW_LESS",void 0,"Show less")),description:O.formattedDescription,owner:{videoOwnerRenderer:{title:xJ(G.title),thumbnail:G.avatar}}}};e.contents={twoColumnWatchNextResults:{results:{results:{contents:[Z,G]}}}}}return e},cxm=function(G,e){G.contents={singleColumnWatchNextResults:{results:{results:{contents:[yWa(e)]}}}};
return G};var Dk=function(G,e,r){this.JSC$17943_upliftPromise=G;this.store=e;this.JSC$17943_persistentStorePromiseAccessor=r};
Dk.prototype.shouldPreferLocalResponse=function(){return!1};
Dk.prototype.localInnertubeResponse=function(){return _.D(function(G){return G.return(Promise.reject(Error("Zi")))})};
Dk.prototype.canProvideFallbackResponse=function(){return!0};
Dk.prototype.localFallbackInnertubeResponse=function(){var G=this,e,r,Z,O;return _.D(function(M){switch(M.nextAddress){case 1:return M.yield(G.JSC$17943_persistentStorePromiseAccessor(),2);case 2:return e=M.yieldResult,M.yield(FT(e),3);case 3:return r=M.yieldResult,Z={responseContext:{},topbar:r},M.yield(G.JSC$17943_upliftPromise,4);case 4:return M.yield(yM(G.JSC$17943_upliftPromise,G.store),5);case 5:return O=M.yieldResult,Z.watchStatus={backgroundPromoRenderer:O},M.return(Z)}})};var YwB,yxo;_.Sp=new _.Gz("ENDPOINT_MAP");YwB=new _.Gz("WATCH_ENDPOINT_MAP");yxo=new _.Gz("REEL_ENDPOINT_MAP");var z84=/^[a-zA-Z0-9_\-]{11}$/;var WoN=_.tD(function(){var G,e;return(e=(G=window).matchMedia)==null?void 0:e.call(G,"(prefers-reduced-motion: reduce)").matches});var Axa=_.tD(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 G=_.Lz("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");G||(G=_.Hp("VIDEO"),_.Eu("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
G));return!!(G&&G.canPlayType&&G.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var FdY=XMLHttpRequest.prototype.fetch,JxA=FdY&&FdY.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!Tc?!0:!1;var qb=function(G){this.JSC$17954_storeWithEntities=G};
_.K(qb,J4);_.V=qb.prototype;_.V.getApiPaths=function(){return nEl};
_.V.getExtension=function(G){return _.a(G,_.u4)||_.a(G,_.DC)||_.a(G,QqE)};
_.V.isNavigationCommand=function(){return!0};
_.V.JSC$14178_getStoreKey=function(G){if((_.R("kevlar_cache_on_ttl_player")||_.R("mweb_enable_shorts_innertube_player_prefetch")||_.R("mweb_use_new_history_manager")||_.R("web_shorts_prefetch_service_enabled"))&&(G=this.getExtension(G))&&G.videoId){var e={videoId:G.videoId};G.playlistId&&(e.playlistId=G.playlistId);G.playerParams&&(e.params=G.playerParams);return _.CO("player",e)}};
_.V.JSC$14171_getClientScreen=function(G){var e;return((e=G.contentPlaybackContext)==null?void 0:e.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.V.JSC$14171_buildRequest=function(G,e,r){if(_.R("enable_interstitial_entity_check")){var Z=this.JSC$17954_storeWithEntities;if(e.videoId)for(var O=_.h(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),M=O.next();!M.done;M=O.next()){M=M.value;var T;var E=void 0,b=void 0,w=e.videoId,q=M;(T=Z)?(w=_.GF(w+q,"interstitialInteractionStateEntity"),T=(E=(b=_.e6(T.getState().entities,"interstitialInteractionStateEntity",w))==null?void 0:b.primaryButtonClicked)!=null?E:!1):T=!1;if(T)switch(M){case "CONTENT_CHECK_REQUIRED":e.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":e.racyCheckOk=!0}}}e.videoId&&(G.videoId=e.videoId);e.playlistId&&(G.playlistId=e.playlistId);e.index!==void 0&&(G.playlistIndex=e.index+1);e.playerParams&&(G.params=e.playerParams);"startTimeSeconds"in e&&e.startTimeSeconds&&(_.R("enable_player_request_builder_start_time_floor")?G.startTimeSecs=Math.floor(e.startTimeSeconds):G.startTimeSecs=e.startTimeSeconds);r.contentPlaybackContext&&(G.playbackContext={contentPlaybackContext:r.contentPlaybackContext});r.prefetchPlaybackContext&&
(G.playbackContext=Object.assign({},G.playbackContext,{prefetchPlaybackContext:r.prefetchPlaybackContext}),G.context.request||(G.context.request={}),G.context.request.isPrefetch=!0);G.playbackContext||(G.playbackContext={});Z=Axa();G.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!Z,supportXhr:JxA};r.overrideMutedAtStart&&(G.overrideMutedAtStart=r.overrideMutedAtStart);G.racyCheckOk=!!e.racyCheckOk;G.contentCheckOk=!!e.contentCheckOk;!_.R("captions_prefs_killswitch")&&(r=(r=_.SF("yt-player-caption-language-preferences"))?
r:[],r==null?0:r.length)&&(G.captionParams={viewerSelectedCaptionLangs:r})};
_.V.getRequestConfig=function(G){G=this.JSC$14178_getStoreKey(G);var e;G&&(e={storeStrategy:{storeKey:G}});_.R("web_log_player_watch_next_ticks")&&(e=e||{},e.requestTick="ps_s",e.responseTick="ps_r");return e};
qb[wR]=[JZ];var tw=function(G,e){this.playerRequestBuilder=G;this.watchNextRequestBuilder=e};
_.K(tw,J4);tw.prototype.getApiPaths=function(){return f5y};
tw.prototype.getExtension=function(G){return _.a(G,_.u4)};
tw.prototype.isNavigationCommand=function(){return!0};
tw.prototype.JSC$14171_buildRequest=function(G,e,r){G.playerRequest={};this.playerRequestBuilder.JSC$14171_buildRequest(G.playerRequest,e,r);_.R("web_streaming_watch")&&(G.watchNextRequest={},this.watchNextRequestBuilder.JSC$14171_buildRequest(G.watchNextRequest,e,r))};
tw[wR]=[qb,D0];var BSl;_.gu=new _.Gz("SHORTS_CONTROLLER_TOKEN");BSl=new _.Gz("SHORTS_STATE_STORE_TOKEN");var lR=function(G,e){var r=_.Bw.apply(2,arguments);G=G===void 0?0:G;_.Cr.call(this,e,r);this.errorType=G;Object.setPrototypeOf(this,this.constructor.prototype)};
_.K(lR,_.Cr);var xKl,PLW,UKH,Zss,dB,RAS,NSm,Wd2,ZBW,e$H,GXa;xKl=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(G){return G+"="}).join("|"));
PLW=RegExp(".*\\?.*playnext=1.*");UKH=function(G,e,r,Z,O){this.watchEndpointMap=G;this.reelWatchEndpointMap=e;this.innerTubeTransportService=r;this.fetchPbj=Z;this.reloadOnPlayerFailure=O===void 0?!0:O};
_.zGY=function(G,e){var r=_.qt("web_pbj_log_warning_rate",0);r=r>0&&Math.random()<r;var Z;if((Z=_.a(e.commandMetadata,_.rJ))==null||!Z.rootVe)return r&&_.FH(Error("dj")),!1;var O;Z=(O=_.a(e.commandMetadata,_.rJ))==null?void 0:O.url;if(!Z)return r&&_.FH(Error("ej")),!1;if(PLW.test(Z))return!0;if(xKl.test(Z))return r&&_.FH(Error("fj`"+Z)),!1;if(_.a(e,_.u4)){if(!(G.watchEndpointMap.watchNext&&G.watchEndpointMap.player||_.R("kevlar_fetch_initial_data_op_watch_client")))return r&&_.FH(Error("$i")),!1;
G=_.qt("web_pbj_log_warning_rate",0);G=G>0&&Math.random()<G;_.a(e,_.u4)?Pky(e)?e=!0:(G&&_.FH(Error("aj")),e=!1):(G&&_.FH(Error("$i")),e=!1);return e}if(_.a(e,_.DC))return UJU(e);if(_.a(e,_.xA))return!0;G=_.IV(G.innerTubeTransportService,e);!G&&r&&_.yx(Error("gj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(e)});return G};
Zss=function(G,e,r,Z,O,M){e={url:e};if(r==null?0:r.itct)e.parentTrackingParams=r.itct;var T=_.y4(x2l);return _.LE(G.innerTubeTransportService,e,T).then(function(E){(E=E.endpoint)||(E=_.Q_);(r==null?0:r.itct)&&E&&!E.trackingParams&&(E.trackingParams=r.itct);var b=hX(E);return dB(G,E,r,Z,b,O,M)})};
dB=function(G,e,r,Z,O,M,T,E){E=E===void 0?{}:E;if(G.fetchPbj&&!_.zGY(G,e)&&!_.R("force_one_platform")){E=G.fetchPbj(e);var b=_.Nz(E.then(function(F){if(!F)throw Error("hj");T(b)||M(e,F);return F}));
return b}var w,q,t={rootVe:(w=_.a(e.commandMetadata,_.rJ))==null?void 0:w.rootVe,url:(q=_.a(e.commandMetadata,_.rJ))==null?void 0:q.url,endpoint:e,page:O};if(_.a(e,_.u4)){var g,l={contentPlaybackContext:_.B4(r,(g=_.a(e.commandMetadata,_.rJ))==null?void 0:g.url,Z)},X=_.C1();_.R("web_streaming_watch")&&window.TextDecoderStream?(E=R4W(G.innerTubeTransportService,e,l,function(F){!t.response&&F.content&&(t.response=F.content);!t.playerResponse&&F.player&&(t.playerResponse=F.player);M(e,t)}),w=A9S(e),w.length&&
(t.preconnect=w,M(e,t)),Wd2(E,X,t).catch(function(F){F instanceof lR&&F.errorType===2&&_.R("web_streaming_watch_fallback")&&NSm(G,e,l,t,M,T,X)})):NSm(G,e,l,t,M,T,X);
return X.promise}if(_.a(e,_.DC)){var H;if(((H=_.a(e,_.DC))==null?void 0:H.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var I=_.C1();_.LdH(_.v_().resolve(_.gu),e).then(function(F){GXa(G,r,Z,O,M,I,F)});
return I.promise}E=_.Nz();var C;w={contentPlaybackContext:_.B4(r,(C=_.a(e.commandMetadata,_.rJ))==null?void 0:C.url,Z)};(C=G.reelWatchEndpointMap.player)&&(C=C().JSC$14171_getRequest(e,w))&&(E=_.LE(G.innerTubeTransportService,C.innerTubeRequest,C.input,e.clickTrackingParams,C.config));C=_.Nz();(q=G.reelWatchEndpointMap.reelItemWatch)&&(q=q().JSC$14171_getRequest(e))&&(C=_.LE(G.innerTubeTransportService,q.innerTubeRequest,q.input,e.clickTrackingParams,q.config));q=_.Nz();_.R("web_enable_delay_shorts_sequence_call_extra")&&
(q=new _.aQ(function(F){setTimeout(function(){F(void 0)},200)}));
(!_.R("web_enable_delay_shorts_sequence_call_new")||_.R("web_enable_delay_shorts_sequence_call_forget"))&&(g=G.reelWatchEndpointMap.reelWatchSequence)&&_.a(e,_.DC).sequenceParams&&(w=g().JSC$14171_getRequest(e,w))&&(_.R("web_enable_delay_shorts_sequence_call_forget")?_.LE(G.innerTubeTransportService,w.innerTubeRequest,w.input,e.clickTrackingParams,w.config):q=_.LE(G.innerTubeTransportService,w.innerTubeRequest,w.input,e.clickTrackingParams,w.config));w=_.Nz(t);g=_.C1();e$H(e,w,E,C,q,M,T,g);return g.promise}var u;
if(_.a(e,DRA)&&((u=_.a(e.commandMetadata,_.rJ))==null?0:u.url))return E=$2i(_.LB(Ax().location.href),_.LB(_.a(e.commandMetadata,_.rJ).url)).toString(),Zss(G,E,r,Z,M,function(){return!1});
if(_.a(e,_.xA))return M(e,t),_.Nz(t);if(_.IV(G.innerTubeTransportService,e)){E=Object.assign({},{tempData:r,disableCache:r.disableCache},E);var P=_.p1(G.innerTubeTransportService,e,E).then(function(F){t.response=F;T(P)||M(e,t);return t});
return P}return _.Nz(t)};
_.rAA=function(G,e,r,Z){if(_.a(e,_.u4)||_.a(e,_.DC)&&(_.R("mweb_enable_shorts_innertube_player_prefetch")||_.R("kevlar_enable_shorts_prefetch_in_sequence"))||_.a(e,QqE)&&_.R("web_enable_prefetching_videos_on_home")){var O,M={contentPlaybackContext:_.B4(r,(O=_.a(e.commandMetadata,_.rJ))==null?void 0:O.url,Z),prefetchPlaybackContext:LoS(r)},T,E,b;if(((T=_.a(e,_.u4))==null?void 0:(E=T.watchEndpointSupportedPrefetchConfig)==null?void 0:(b=E.prefetchHintConfig)==null?void 0:b.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(r=
G.watchEndpointMap.watchNext)if(M=r().JSC$14171_getRequest(e,M))return Promise.resolve(_.LE(G.innerTubeTransportService,M.innerTubeRequest,M.input,void 0,M.config).then(function(t){return t}))}else if(r=G.watchEndpointMap.player)if(M=r().JSC$14171_getRequest(e,M))return Promise.resolve(_.LE(G.innerTubeTransportService,M.innerTubeRequest,M.input,void 0,M.config).then(function(t){return t}))}else if(_.IV(G.innerTubeTransportService,e)){var w={tempData:r},q=Sr3(G.innerTubeTransportService,e);
return q?new Promise(function(t,g){var l,X;return _.D(function(H){if(H.nextAddress==1)return H.yield(q,2);if(H.nextAddress!=4)return l=H.yieldResult,l.JSC$14178_getStoreKey(e,w)?H.yield(_.p1(G.innerTubeTransportService,e,w),4):(g(new _.Cr("Prefetching request builder with no store key.",e)),H.jumpTo(0));X=H.yieldResult;t(X);_.HL(H)})}):Promise.reject(new _.Cr("Prefetching unregistered request builder.",e))}return Promise.reject(new _.Cr("No request builder available to prefetch endpoint.",e))};
RAS=function(G,e){var r,Z,O;if(_.a(e,_.u4)){var M=G.watchEndpointMap.watchNext;M&&(r=M());(G=G.watchEndpointMap.player)&&(Z=G())}else if(_.a(e,_.DC))(M=G.reelWatchEndpointMap.reelItemWatch)&&(r=M()),(M=G.reelWatchEndpointMap.player)&&(Z=M()),(G=G.reelWatchEndpointMap.reelWatchSequence)&&(O=G());else{a:{G=bq$(e,G.innerTubeTransportService.endpointMap);if(G!==void 0)if(typeof G.then==="function")_.yx(new _.Cr("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",e));else break a;
G=void 0}G&&(r=G)}var T,E,b;return{content:(T=r)==null?void 0:T.JSC$14178_getStoreKey(e),player:(E=Z)==null?void 0:E.JSC$14178_getStoreKey(e),reelSequence:(b=O)==null?void 0:b.JSC$14178_getStoreKey(e)}};
NSm=function(G,e,r,Z,O,M,T){var E=_.Nz(),b=G.watchEndpointMap.player;_.R("web_streaming_player")&&(b=H5(tw));b&&(b=b().JSC$14171_getRequest(e,r))&&(E=_.LE(G.innerTubeTransportService,b.innerTubeRequest,b.input,e.clickTrackingParams,b.config));b=_.Nz();var w=G.watchEndpointMap.watchNext;w&&(r=w().JSC$14171_getRequest(e,r))&&(b=_.LE(G.innerTubeTransportService,r.innerTubeRequest,r.input,e.clickTrackingParams,r.config));Z=_.Nz(Z);ZBW(G,e,Z,E,b,O,M,T)};
Wd2=function(G,e,r){return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(G,2);e.resolve(r);_.HL(Z)})};
ZBW=function(G,e,r,Z,O,M,T,E){var b,w,q,t,g;_.D(function(l){switch(l.nextAddress){case 1:return l.yield(r,2);case 2:b=l.yieldResult;if(T(E.promise))return E.resolve(b),l.return();M(e,b);w=A9S(e);if(!w.length){l.jumpTo(3);break}return l.yield(r,4);case 4:b.preconnect=w,M(e,b);case 3:return _.jr(l,5),l.yield(Z,7);case 7:q=l.yieldResult;_.rL(l,6);break;case 5:return t=_.k5(l),E.reject(t),l.return();case 6:if(q===void 0&&G.reloadOnPlayerFailure)return b.reload=!0,M(e,b),E.resolve(b),l.return();if(T(E.promise))return E.resolve(b),
l.return();b.playerResponse=q;M(e,b);_.jr(l,8);return l.yield(O,10);case 10:g=l.yieldResult;_.rL(l,9);break;case 8:_.k5(l);case 9:if(g===void 0)return b.response={responseContext:{}},E.resolve(b),l.return();if(T(E.promise))return E.resolve(b),l.return();b.response=g;M(e,b);E.resolve(b);_.HL(l)}})};
e$H=function(G,e,r,Z,O,M,T,E){var b,w,q,t,g,l;_.D(function(X){switch(X.nextAddress){case 1:return X.yield(e,2);case 2:b=X.yieldResult;if(T(E.promise))return E.resolve(b),X.return();M(G,b);w=A9S(G);if(!w.length){X.jumpTo(3);break}return X.yield(e,4);case 4:b.preconnect=w,M(G,b);case 3:return _.jr(X,5),X.yield(r,7);case 7:q=X.yieldResult;_.rL(X,6);break;case 5:return t=_.k5(X),E.reject(t),X.return();case 6:if(q===void 0)return b.reload=!0,M(G,b),E.resolve(b),X.return();if(T(E.promise))return E.resolve(b),
X.return();b.playerResponse=q;M(G,b);_.jr(X,8);return X.yield(Z,10);case 10:g=X.yieldResult;_.rL(X,9);break;case 8:_.k5(X);case 9:if(g===void 0)return b.response={responseContext:{}},E.resolve(b),X.return();if(T(E.promise))return E.resolve(b),X.return();b.response=g;M(G,b);_.jr(X,11);return X.yield(O,13);case 13:l=X.yieldResult;_.rL(X,12);break;case 11:_.k5(X);case 12:if(T(E.promise))return E.resolve(b),X.return();l&&(b.reelWatchSequenceResponse=l);M(G,b);E.resolve(b);_.HL(X)}})};
GXa=function(G,e,r,Z,O,M,T){var E,b,w,q,t,g;_.D(function(l){if((E=T)==null||!E.replacementEndpoint)return M.reject(),l.return();b=T.replacementEndpoint;(w=_.a(b,_.DC))?(T.sequenceContinuation&&(w.sequenceParams=T.sequenceContinuation),q=_.v_().resolve(_.gu),t=w.sequenceParams,OBm(q,b)&&delete w.sequenceParams,g=dB(G,b,e,r,Z,O,function(){return!1}),g.then(function(X){return _.D(function(H){if(H.nextAddress==1)return MKW(q,{reelWatchEndpoint:{sequenceParams:t}},X),H.yield(0,2);
M.resolve(X);_.HL(H)})})):M.reject();
_.HL(l)})};
UKH[wR]=[YwB,yxo,_.v1,_.bq(bUE)];var VKW=function(){var G=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return G.sequenceMap}}},jKb=function(G,e,r){var Z,O=(Z=e.config)==null?void 0:Z.sequenceStrategy;
if(!O)return r();G.sequenceMap.has(O.sequenceKey)||G.sequenceMap.set(O.sequenceKey,[]);G=G.sequenceMap.get(O.sequenceKey);switch(O.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return h$8(G,e,r);case "REQUEST_SEQUENCE_TYPE_REPLACE":return T1Y(G,e,r);default:throw new _.Cr("Request could not be sequenced",e);}},h$8=function(G,e,r){var Z,O,M;
return _.D(function(T){G.length>0?(O=G[G.length-1],Z=O.responsePromise.then(function(){return r()})):Z=r();
M={request:e,responsePromise:Z};G.push(M);DMW(G,M);return T.return(M.responsePromise)})},T1Y=function(G,e,r){r=r();
if(G.length>0)for(var Z=_.h(G),O=Z.next();!O.done;O=Z.next())O.value.responsePromise=r;var M={request:e,responsePromise:r};G.push(M);DMW(G,M);return Promise.resolve().then(function(){return G.indexOf(M)>0?M.responsePromise.then(function(T){return Object.assign({},T,{sequenceMetaData:{skipProcessing:!0}})}):M.responsePromise})},DMW=function(G,e){e.responsePromise.then(function(){var r=G.indexOf(e);
r>-1&&G.splice(r,1)})};var EWY=new _.Gz("REQUEST_SEQUENCING");var R0=function(){};
_.K(R0,J4);R0.prototype.getApiPaths=function(){return[]};
R0.prototype.getExtension=function(G){return _.a(G,vvS)};
R0.prototype.JSC$14171_buildRequest=function(G,e){G.recaptchaToken=e.recaptchaToken};
R0.prototype.getApiUrl=function(){return"/das_captcha"};var jp=function(){};
_.K(jp,J4);jp.prototype.getApiPaths=function(){return xR3};
jp.prototype.getExtension=function(G){return _.a(G,Bgj)};
jp.prototype.JSC$14171_buildRequest=function(G,e,r){r=r===void 0?{}:r;e.createBackstagePostParams&&(G.createBackstagePostParams=e.createBackstagePostParams);r.comment_text&&(G.commentText=r.comment_text);if(r.attached_video_id)G.videoAttachment={videoId:r.attached_video_id};else if(r.image_poll_options)G.pollAttachmentData={options:r.image_poll_options};else if(r.poll_options)G.pollAttachment={choices:r.poll_options};else if(r.quiz_options)G.quizAttachmentData={options:r.quiz_options};else if(r.image_blob_id)G.imageAttachment=
{encryptedBlobId:r.image_blob_id},r.source_video_id&&(G.imageAttachment.sourceExternalVideoId=r.source_video_id),r.image_preview_coordinates&&(G.imageAttachment.previewCoordinates=JSON.parse(r.image_preview_coordinates));else if(r.images_data)G.imagesAttachment={imagesData:r.images_data};else if(r.clip_external_video_id!==void 0||r.clip_offset_ms!==void 0||r.clip_duration_ms!==void 0){var Z,O,M,T,E;G.clipAttachment={externalVideoId:(M=r.clip_external_video_id)!=null?M:"",offsetMs:(T=(Z=r.clip_offset_ms)==
null?void 0:Z.toString())!=null?T:"",durationMs:(E=(O=r.clip_duration_ms)==null?void 0:O.toString())!=null?E:""}}else r.shared_post_id&&(G.sharedPostAttachment={postId:r.shared_post_id});r.tagged_video_id&&(G.postCreationData={taggedVideoId:r.tagged_video_id});r.access_restrictions&&(typeof r.access_restrictions==="number"&&(e=r.access_restrictions,G.accessRestrictions={restriction:e!==1&&e===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof r.access_restrictions==="string"&&
(G.accessRestrictionsParams=r.access_restrictions));r.scheduled_publish_time_sec&&(G.scheduledPublishTimeSec=r.scheduled_publish_time_sec.toString())};var a0=function(){};
_.K(a0,J4);a0.prototype.getApiPaths=function(){return G5n};
a0.prototype.getExtension=function(G){return _.a(G,A4y)};
a0.prototype.JSC$14171_buildRequest=function(G,e,r){r=r===void 0?{}:r;e.decorateMessageParams&&(G.params=e.decorateMessageParams);r.text&&(G.text=r.text)};var XP=function(){};
_.K(XP,J4);XP.prototype.getApiPaths=function(){return l5E};
XP.prototype.getExtension=function(G){return _.a(G,xpl)};
XP.prototype.JSC$14171_buildRequest=function(G,e,r){r=r===void 0?{}:r;r.video_id&&(G.videoId=r.video_id)};var KG=function(){};
_.K(KG,J4);KG.prototype.getApiPaths=function(){return K7W};
KG.prototype.getExtension=function(G){return _.a(G,_.eq)};
KG.prototype.JSC$14171_buildRequest=function(G,e,r){r.suggestions_query&&(G.input=r.suggestions_query)};var fG=function(){};
_.K(fG,J4);fG.prototype.getApiPaths=function(){return MbE};
fG.prototype.getExtension=function(G){return _.a(G,PlC)};
fG.prototype.JSC$14171_buildRequest=function(G,e,r){r.comment_text!==void 0&&(G.commentText=r.comment_text);r.scheduled_publish_time_sec&&(G.scheduledPublishTimeSec=r.scheduled_publish_time_sec.toString());G.updateBackstagePostParams=e.updateBackstagePostParams};var kK=function(){};
_.K(kK,J4);kK.prototype.getApiPaths=function(){return px};
kK.prototype.getExtension=function(G){return _.a(G,_.f1)};
kK.prototype.JSC$14171_buildRequest=function(G,e,r){r.formData&&(G.formData=r.formData);e.token?G.continuation=e.token:e.continuationTokenKey&&(r=_.Yt().getState(),e=_.e6(r.entities,"continuationTokenEntity",e.continuationTokenKey))&&(G.continuation=String(e.continuationToken))};
var iB8=function(){};
_.K(iB8,J4);_.V=iB8.prototype;_.V.getApiPaths=function(){return px};
_.V.getExtension=function(G){return _.a(G,_.Mv)};
_.V.isNavigationCommand=function(){return!0};
_.V.JSC$14178_getStoreKey=function(G){if((G=this.getExtension(G))&&G.browseId){var e={browseId:G.browseId};G.browseEndpointContextSupportedConfigs&&(e.browseEndpointContextSupportedConfigs=JSON.stringify(G.browseEndpointContextSupportedConfigs));G.params&&(e.params=G.params);G.query&&(e.query=G.query);return _.CO("browse",e)}};
_.V.JSC$14171_buildRequest=function(G,e,r){e.browseId&&(G.browseId=e.browseId);e.params&&(G.params=e.params);e.query&&(G.query=e.query);r.formData?G.formData=r.formData:e.formData&&(G.formData=e.formData);e.browseId==="FEsubscriptions"&&_.hy().getFlag(155)&&(G.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");e.browseId==="SPaccount_playback"&&(r=_.hy(),G.formData||(G.formData={}),G.formData.accountSettingsFormData={flagCaptionsDefaultOff:r.getFlag(65),flagAutoCaptionsDefaultOn:r.getFlag(66),
flagDisableInlinePreview:r.getFlag(186),flagAudioDescriptionDefaultOn:r.getFlag(198)});if(e.browseId==="FEwhat_to_watch"){r=_.hy();var Z=r.getFlag(196);r.getFlag(197)&&(G.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:Z}}})}e.browseId==="FEwhat_to_watch"&&(e=_.hy().getFlag(186),G.inlineSettingStatus=e?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.V.getRequestConfig=function(G,e){e=e===void 0?{}:e;var r={};if(G=this.JSC$14178_getStoreKey(G,e))r.storeStrategy={storeKey:G,disableCache:e.disableCache};_.R("web_log_browse_ticks_ks")||(r.requestTick="br_s",r.responseTick="br_r");return r};var Hl=function(){};
_.K(Hl,J4);Hl.prototype.getApiPaths=function(){return Ypl};
Hl.prototype.getExtension=function(G){return _.a(G,aOb)};
Hl.prototype.JSC$14171_buildRequest=function(G,e,r){G.legacyYoutubeChannelUsername=r.legacyYouTubeChannelUsername||"";G.legacyYoutubeChannelPassword=r.legacyYouTubeChannelPassword||""};var du=function(){};
_.K(du,J4);du.prototype.getApiPaths=function(){return PXl};
du.prototype.getExtension=function(G){return _.a(G,rYj)};
du.prototype.JSC$14171_buildRequest=function(G,e,r){r.recaptcha_response_token&&(G.recaptchaResponseToken=r.recaptcha_response_token);r.channel_id&&(G.channelId=r.channel_id)};var o0=function(){};
_.K(o0,J4);o0.prototype.getApiPaths=function(){return Vbn};
o0.prototype.getExtension=function(G){return _.a(G,T_W)};
o0.prototype.JSC$14171_buildRequest=function(G,e,r){e.externalChannelId&&(G.externalChannelId=e.externalChannelId);r.handle&&(G.handleUpdate={handle:r.handle},e.handleEditSource&&(G.handleUpdate.handleEditSource=e.handleEditSource))};var sv=function(){};
_.K(sv,J4);sv.prototype.getApiPaths=function(){return EXn};
sv.prototype.getExtension=function(G){return _.a(G,oMn)};
sv.prototype.JSC$14171_buildRequest=function(G,e,r){e.request&&(G.channelId=e.request.channelId);var Z;if(r==null?0:(Z=r.uploadDefaults)==null?0:Z.emojiReactionSet)G.uploadDefaultsRequest||(G.uploadDefaultsRequest={}),G.uploadDefaultsRequest.emojiReactionSet=r.uploadDefaults.emojiReactionSet};var Qh=function(){};
_.K(Qh,J4);Qh.prototype.getApiPaths=function(){return vXv};
Qh.prototype.getExtension=function(G){return _.a(G,ZVS)};
Qh.prototype.JSC$14171_buildRequest=function(G,e,r){e.externalChannelId&&(G.externalChannelId=e.externalChannelId);e.channelHandleEntityKey&&(G.channelHandleEntityKey=e.channelHandleEntityKey);e.handleEditSource&&(G.handleEditSource=e.handleEditSource);r.handle?G.handle=r.handle:r.name&&(G.name=r.name)};var I0=function(){};
_.K(I0,J4);I0.prototype.getApiPaths=function(){return Fjv};
I0.prototype.getExtension=function(G){return _.a(G,j_E)};
I0.prototype.JSC$14171_buildRequest=function(G,e){e.actions?G.actions=e.actions:e.action&&(G.actions=[e.action])};var pG=function(){};
_.K(pG,J4);pG.prototype.getApiPaths=function(){return JEC};
pG.prototype.getExtension=function(G){return _.a(G,_.f1)};
pG.prototype.JSC$14171_buildRequest=function(G,e){e.token&&(G.continuation=e.token)};var CG=function(){};
_.K(CG,J4);CG.prototype.getApiPaths=function(){return tPE};
CG.prototype.getExtension=function(G){return _.a(G,_.f1)};
CG.prototype.JSC$14171_buildRequest=function(G,e){G.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";e.token&&(G.fetchCommentsParams={continuation:e.token})};var uR=function(){};
_.K(uR,J4);uR.prototype.getApiPaths=function(){return zUn};
uR.prototype.getExtension=function(G){return _.a(G,RiE)};
uR.prototype.JSC$14171_buildRequest=function(G,e,r){r=r===void 0?{}:r;e.createReplyParams&&(G.createReplyParams=e.createReplyParams);e.commentText&&(G.commentText=_.mG(e.commentText));r.comment_text&&(G.commentText=r.comment_text);r.image_blob_id&&(G.imageAttachment={encryptedBlobId:r.image_blob_id});r.botguard_response&&(G.botguardResponse=r.botguard_response)};
_.iY.Object.defineProperties(uR.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var nG=function(){};
_.K(nG,J4);nG.prototype.getApiPaths=function(){return Wjc};
nG.prototype.getExtension=function(G){return _.a(G,_.ltC)};
nG.prototype.JSC$14171_buildRequest=function(G,e,r){r=r===void 0?{}:r;e.createCommentParams&&(G.createCommentParams=e.createCommentParams);e.commentText&&(G.commentText=_.mG(e.commentText));e.videoPositionMention&&(G.videoPositionMention=e.videoPositionMention);e.sources&&(G.sources=e.sources);r.comment_text&&(G.commentText=r.comment_text);r.attached_video_id?G.videoAttachment={videoId:r.attached_video_id}:r.poll_options?G.pollAttachment={choices:r.poll_options}:r.image_blob_id?G.imageAttachment=
{encryptedBlobId:r.image_blob_id}:r.shared_post_id&&(G.sharedPostAttachment={postId:r.shared_post_id});r.access_restrictions&&typeof r.access_restrictions==="number"&&(e=r.access_restrictions,G.accessRestrictions={restriction:e!==1&&e===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});r.botguard_response&&(G.botguardResponse=r.botguard_response)};
_.iY.Object.defineProperties(nG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var mb=function(){};
_.K(mb,J4);mb.prototype.getApiPaths=function(){return hnE};
mb.prototype.getExtension=function(G){return _.a(G,Xbn)};
mb.prototype.JSC$14171_buildRequest=function(G,e,r){e.commentText&&(G.replyText=_.mG(e.commentText));r.comment_text&&(G.replyText=r.comment_text);G.updateReplyParams=e.updateReplyParams};
_.iY.Object.defineProperties(mb.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var cl=function(){};
_.K(cl,J4);cl.prototype.getApiPaths=function(){return TAb};
cl.prototype.getExtension=function(G){return _.a(G,atP)};
cl.prototype.JSC$14171_buildRequest=function(G,e,r){e.commentText&&(G.commentText=_.mG(e.commentText));r.comment_text&&(G.commentText=r.comment_text);G.updateCommentParams=e.updateCommentParams};
_.iY.Object.defineProperties(cl.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var YK=function(){};
_.K(YK,J4);YK.prototype.getApiPaths=function(){return Dcb};
YK.prototype.getExtension=function(G){return _.a(G,fiy)};
YK.prototype.JSC$14171_buildRequest=function(G,e){e.settings&&(G.settings=e.settings)};var yh=function(){};
_.K(yh,J4);yh.prototype.getApiPaths=function(){return iw3};
yh.prototype.getExtension=function(G){return _.a(G,OVy)};
yh.prototype.JSC$14171_buildRequest=function(G,e){e.channelCreationToken&&(G.channelCreationToken=e.channelCreationToken);e.source&&(G.source=e.source)};var Aw=function(){};
_.K(Aw,J4);Aw.prototype.getApiPaths=function(){return URc};
Aw.prototype.getExtension=function(G){return _.a(G,h7w)};
Aw.prototype.JSC$14171_buildRequest=function(G,e,r){r=r===void 0?{}:r;if(r.name&&(r.given_name||r.family_name))G=new _.Cr("channel creation cannot set both GAIA and YouTube names",e),_.yx(G);else{if(e.zeroStepChannelCreationParams){if(!r.comment_text){G=new _.Cr("zero_step_create_comment_params but no zero_step_texts",e);_.yx(G);return}G.zeroStepChannelCreationParams=e.zeroStepChannelCreationParams;G.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(G.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
r.comment_text,r.botguard_response&&(G.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=r.botguard_response))}G.channelCreationToken=e.channelCreationToken;r.given_name&&(G.givenName=r.given_name);r.family_name&&(G.familyName=r.family_name);e.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(G.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(r.name||r.handle||r.avatar_url||r.encryptedBlobId||r.isNameChanged!==void 0||r.isHandleChanged!==void 0||r.isDefaultProfilePhoto!==
void 0||r.obakeImageSource)G.overrideChannelCreationParams={},r.name&&(G.overrideChannelCreationParams.name=r.name),r.handle&&(G.overrideChannelCreationParams.handle=r.handle),r.avatar_url&&(G.overrideChannelCreationParams.avatarUrl=r.avatar_url),r.encryptedBlobId&&(G.overrideChannelCreationParams.blobEncryptionId=r.encryptedBlobId),r.enableIdentityForAllChannelCreationDialog&&(r.encryptedBlobId?G.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
r.isDefaultProfilePhoto!==void 0&&(G.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=r.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),r.isNameChanged!==void 0&&(G.overrideChannelCreationParams.identityForAllChannelCreationNameTag=r.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),r.isHandleChanged!==
void 0&&(G.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=r.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),r.obakeImageSource&&(G.overrideChannelCreationParams.obakeImageSourceType=r.obakeImageSource))}};var FP=function(){};
_.K(FP,J4);FP.prototype.getApiPaths=function(G){return(G=this.getExtension(G))&&G.status==="DISLIKE"?Owj:G&&G.status==="INDIFFERENT"?AJS:oES};
FP.prototype.getExtension=function(G){return _.a(G,_.Kx)};
FP.prototype.JSC$14171_buildRequest=function(G,e){e.target&&(G.target=e.target);if(e=this.getParams(e))G.params=e};
FP.prototype.getParams=function(G){switch(G==null?void 0:G.status){case "DISLIKE":return G.dislikeParams;case "INDIFFERENT":return G.removeLikeParams;default:return G==null?void 0:G.likeParams}};var Jw=function(){};
_.K(Jw,J4);Jw.prototype.getApiPaths=function(){return L7S};
Jw.prototype.getExtension=function(G){return _.a(G,o9v)};
Jw.prototype.JSC$14171_buildRequest=function(G,e){e.settingItemId&&(G.settingItemId=e.settingItemId);e.stringValue!=null&&e.stringValue!==void 0?G.newValue={stringValue:e.stringValue}:e.intValue?G.newValue={intValue:e.intValue}:e.boolValue!==null&&e.boolValue!==void 0?G.newValue={boolValue:e.boolValue}:(G=new _.Cr("Unknown value type for SetSettingEndpoint.",e),_.yx(G))};var Bl=function(){};
_.K(Bl,J4);Bl.prototype.getApiPaths=function(){return rMb};
Bl.prototype.getExtension=function(G){return _.a(G,N9W)||void 0};
Bl.prototype.JSC$14171_buildRequest=function(G,e,r){r=r===void 0?{}:r;e.channelIds&&(G.channelIds=e.channelIds);e.siloName&&(G.siloName=e.siloName);e.params&&(G.params=e.params);r.botguardResponse&&(G.botguardResponse=r.botguardResponse);r.feature&&(G.clientFeature=r.feature)};
_.iY.Object.defineProperties(Bl.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var xK=function(){};
_.K(xK,J4);xK.prototype.getApiPaths=function(){return OHl};
xK.prototype.getExtension=function(G){return _.a(G,s_w)||void 0};
xK.prototype.JSC$14171_buildRequest=function(G,e){e.channelIds&&(G.channelIds=e.channelIds);e.siloName&&(G.siloName=e.siloName);e.params&&(G.params=e.params)};
_.iY.Object.defineProperties(xK.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Pl=function(G){this.shareClientParamsProvider=G};
_.K(Pl,J4);Pl.prototype.getApiPaths=function(){return Pea};
Pl.prototype.getExtension=function(G){return _.a(G,VU3)||_.a(G,_.hhC)||_.a(G,MUW)};
Pl.prototype.JSC$14171_buildRequest=function(G,e){e.serializedShareEntity&&(G.serializedSharedEntity=e.serializedShareEntity);if(e.clientParamIdentifier){var r;if((r=this.shareClientParamsProvider)==null?0:r.clientParams.has(e.clientParamIdentifier)){r=this.shareClientParamsProvider;e=e.clientParamIdentifier;var Z=r.clientParams.get(e);Z&&r.clientParams.delete(e);G.clientParams=Z}}};
Pl[wR]=[c2a];var Uv=function(){};
_.K(Uv,J4);Uv.prototype.getApiPaths=function(){return nrW};
Uv.prototype.getExtension=function(G){return _.a(G,IOl)};
Uv.prototype.JSC$14171_buildRequest=function(G,e){e.params&&(G.params=e.params)};var zQ=function(){};
_.K(zQ,J4);zQ.prototype.getApiPaths=function(){return MPl};
zQ.prototype.getExtension=function(G){return _.a(G,o6l)};
zQ.prototype.JSC$14171_buildRequest=function(G,e){e.dismissal&&(G.items=[e.dismissal])};
_.iY.Object.defineProperties(zQ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Wl=function(){};
_.K(Wl,J4);Wl.prototype.getApiPaths=function(){return HwC};
Wl.prototype.getExtension=function(G){return _.a(G,_.lM)||void 0};
Wl.prototype.JSC$14171_buildRequest=function(G,e,r){G.feedbackTokens=[];e.feedbackToken&&G.feedbackTokens.push(e.feedbackToken);if(e=e.cpn||r.cpn)G.feedbackContext={cpn:e};G.isFeedbackTokenUnencrypted=!!r.is_feedback_token_unencrypted;G.shouldMerge=!1;r.extra_feedback_tokens&&(G.shouldMerge=!0,G.feedbackTokens=G.feedbackTokens.concat(r.extra_feedback_tokens))};
_.iY.Object.defineProperties(Wl.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Nb=function(){};
_.K(Nb,J4);Nb.prototype.getApiPaths=function(){return HwC};
Nb.prototype.getExtension=function(G){return _.a(G,_.eq)};
Nb.prototype.JSC$14171_buildRequest=function(G,e,r){r.feedback_tokens&&(G.feedbackTokens=r.feedback_tokens,G.shouldMerge=!0)};
_.iY.Object.defineProperties(Nb.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var LG=function(){};
_.K(LG,J4);LG.prototype.getApiPaths=function(){return HwC};
LG.prototype.getExtension=function(G){return _.a(G,bsf)};
LG.prototype.JSC$14171_buildRequest=function(G,e){e.undoToken&&(G.feedbackTokens=[e.undoToken]);e.isUndoTokenUnencrypted&&(G.isFeedbackTokenUnencrypted=e.isUndoTokenUnencrypted)};
_.iY.Object.defineProperties(LG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hg=function(){};
_.K(hg,J4);hg.prototype.getApiPaths=function(){return wr3};
hg.prototype.getExtension=function(G){return _.a(G,k8W)};
hg.prototype.JSC$14171_buildRequest=function(G,e){e.nextEndpoint&&_.a(e.nextEndpoint,_.G2)?G.nextEndpoint={urlEndpoint:_.a(e.nextEndpoint,_.G2)}:e.nextEndpoint&&_.a(e.nextEndpoint,_.u4)&&(G.nextEndpoint={watchEndpoint:_.a(e.nextEndpoint,_.u4)});e.setRacy&&(G.setRacy=e.setRacy);e.setControvercy&&(G.setControvercy=e.setControvercy)};var TN=function(G){this.JSC$18155_storeWithEntities=G};
_.K(TN,J4);TN.prototype.getApiPaths=function(){return hqn};
TN.prototype.getExtension=function(G){return _.a(G,GMP)};
TN.prototype.JSC$14171_buildRequest=function(G,e){e.flowId&&(G.flowId=e.flowId);e.targetId&&(G.targetId=e.targetId);e.continuation&&(G.continuation=e.continuation);var r=e.flowStateEntityKey;if(e.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&r&&this.JSC$18155_storeWithEntities){var Z;if(e=(Z=this.JSC$18155_storeWithEntities.getState())==null?void 0:Z.entities)if(Z=_.Wn(r).entityType,Z=_.e6(e,Z,r))G.flowState=Z,G.flowStateEntityKey=r}};
_.iY.Object.defineProperties(TN.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
TN[wR]=[JZ];var bBH=function(){};
_.K(bBH,J4);_.V=bBH.prototype;_.V.getApiPaths=function(){return k5c};
_.V.JSC$14178_getStoreKey=function(){return _.CO("guide")};
_.V.getRequestConfig=function(){var G=this.JSC$14178_getStoreKey(),e;G&&(e={storeStrategy:{storeKey:G}});return e};
_.V.isNavigationCommand=function(){return!0};
_.V.getExtension=function(G){return _.a(G,_.eq)};
_.V.JSC$14171_buildRequest=function(G){G.fetchLiveState=!0};var De=function(){};
_.K(De,J4);De.prototype.getApiPaths=function(){return yEw};
De.prototype.getExtension=function(G){return _.a(G,qNc)};
De.prototype.JSC$14171_buildRequest=function(){};var Ed=function(){};
_.K(Ed,J4);Ed.prototype.getApiPaths=function(){return AEW};
Ed.prototype.getExtension=function(G){return _.a(G,tGP)};
Ed.prototype.JSC$14171_buildRequest=function(){};var iv=function(){};
_.K(iv,J4);iv.prototype.getApiPaths=function(){return uSP};
iv.prototype.getExtension=function(G){return _.a(G,_.f1)};
iv.prototype.JSC$14171_buildRequest=function(G,e){e.token&&(G.continuation=e.token);var r,Z;G==null||(r=G.context)==null||(Z=r.user)==null||delete Z.onBehalfOfUser};
iv.prototype.getRequestConfig=function(G){var e={},r;if(((r=this.getExtension(G))==null?void 0:r.sessionIndex)!==void 0){var Z;e={authStrategy:{sessionIndex:(Z=this.getExtension(G))==null?void 0:Z.sessionIndex}}}return e};var bv=function(){};
_.K(bv,J4);bv.prototype.JSC$14171_getRequest=function(G){var e=this.getExtension(G),r=G="";if(e==null?0:e.popup)G="true";if(e==null?0:e.disableSignout)r="true";e={};return{input:"/getAccountSwitcherEndpoint",requestShell:pO("/getAccountSwitcherEndpoint","GET",(e["X-YouTube-Delegation-Context"]=_.xZ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),e["X-YouTube-Account-Switcher-Popup"]=G,e["X-YouTube-Account-Switcher-Disable-Signout"]=r,e)),innerTubeRequest:{}}};
bv.prototype.getApiPaths=function(){return[]};
bv.prototype.getExtension=function(G){return _.a(G,_.KUy)};
bv.prototype.JSC$14171_buildRequest=function(){};var vN=function(){};
_.K(vN,J4);vN.prototype.JSC$14171_getRequest=function(G){var e="/cross_account_channel_transfer";(G=this.getExtension(G))&&(e=FH_(e,{target_session:G.targetSessionIndex,source_rapt:G.sourceRapt,rapt:G.targetRapt}));return{input:e,requestShell:pO(e,"GET"),innerTubeRequest:{}}};
vN.prototype.getApiPaths=function(){return[]};
vN.prototype.getExtension=function(G){return _.a(G,gvl)};
vN.prototype.JSC$14171_buildRequest=function(){};var w3=function(){};
_.K(w3,J4);w3.prototype.getApiPaths=function(){return T5v};
w3.prototype.isNavigationCommand=function(){return!0};
w3.prototype.getExtension=function(G){return _.a(G,_.eq)};
w3.prototype.JSC$14171_buildRequest=function(G){var e=_.hy().get("gsml","");e&&(G.safetyModeLockerObfuscatedGaiaId=e);G.userInterfaceTheme=_.d0(!0);_.oB()?G.deviceTheme="DEVICE_THEME_SELECTED":_.bwy()?G.deviceTheme="DEVICE_THEME_SUPPORTED":G.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var $G=function(){};
_.K($G,J4);$G.prototype.getApiPaths=function(){return uSP};
$G.prototype.getExtension=function(G){return _.a(G,lFv)};
$G.prototype.JSC$14171_buildRequest=function(G,e){if(e&&e.requestType&&(G.requestType=e.requestType,e.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||e.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var r=e.nextUrl;r&&(_.Bof(r)||E5(r))&&(G.nextNavendpoint={urlEndpoint:{url:r}})}e&&e.channelSwitcherQuery&&(G.channelSwitcherQuery=e.channelSwitcherQuery);e&&e.triggerChannelCreation&&(G.triggerChannelCreation=e.triggerChannelCreation);var Z;if(e==null?0:(Z=e.contentOwnerConfig)==
null?0:Z.externalContentOwnerId)G.contentOwnerConfig=e.contentOwnerConfig;G.callCircumstance=e&&e.requestType&&e.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var O,M;e=G==null?void 0:(O=G.context)==null?void 0:(M=O.user)==null?void 0:M.onBehalfOfUser;if(e!==void 0){G.obfuscatedSelectedGaiaId=e;var T,E;G==null||(T=G.context)==null||(E=T.user)==null||delete E.onBehalfOfUser}var b,w;if(O=G==null?void 0:(b=G.context)==null?void 0:(w=b.user)==null?
void 0:w.serializedDelegationContext)G.selectedSerializedDelegationContext=O};var SY=function(){};
_.K(SY,J4);SY.prototype.getApiPaths=function(){return mRj};
SY.prototype.getExtension=function(G){return _.a(G,TFj)};
SY.prototype.JSC$14171_buildRequest=function(G,e){e.params&&(G.params=e.params)};var qF=function(){};
_.K(qF,J4);qF.prototype.getApiPaths=function(){return PKw};
qF.prototype.getExtension=function(G){return _.a(G,_.gBj)};
qF.prototype.JSC$14171_buildRequest=function(G,e){if(e=e.createBroadcastRequest)G.useMasks=e.useMasks,G.broadcastType=e.broadcastType,G.broadcastSource=e.broadcastSource,G.broadcastMetadata=e.broadcastMetadata,G.broadcastMetadataMask=e.broadcastMetadataMask,G.videoMetadata=e.videoMetadata,G.videoMetadataMask=e.videoMetadataMask,G.liveChatSettingsUpdate=e.liveChatSettingsUpdate,G.liveChatSettingsUpdateMask=e.liveChatSettingsUpdateMask,G.cloneVideoId=e.cloneVideoId,G.cloneWithOverrides=e.cloneWithOverrides,
G.targetEntity=e.targetEntity,G.scheduledRedirectMetadata=e.scheduledRedirectMetadata};var tg=function(){};
_.K(tg,J4);tg.prototype.getApiPaths=function(){return NZS};
tg.prototype.getExtension=function(G){return _.a(G,iEW)};
tg.prototype.JSC$14171_buildRequest=function(G,e,r){r=r===void 0?{}:r;e.params&&(G.params=e.params);r.questionText&&(G.questionText=r.questionText);r.optionText&&r.optionText.length>0&&(G.optionText=r.optionText)};var g3=function(){};
_.K(g3,J4);g3.prototype.getApiPaths=function(){return eqb};
g3.prototype.getExtension=function(G){return _.a(G,DlE)};
g3.prototype.JSC$14171_buildRequest=function(G,e){e.params&&(G.params=e.params)};var lv=function(){};
_.K(lv,J4);lv.prototype.getApiPaths=function(){return vEn};
lv.prototype.getExtension=function(G){return _.a(G,MRP)};
lv.prototype.JSC$14171_buildRequest=function(G,e){e.params&&(G.params=e.params)};var Rf=function(){};
_.K(Rf,J4);Rf.prototype.getApiPaths=function(){return $2S};
Rf.prototype.getExtension=function(G){return _.a(G,VRv)};
Rf.prototype.JSC$14171_buildRequest=function(G,e,r){e.params&&(G.params=e.params);e.continuation&&(G.continuation=e.continuation);r.currentPlayerState&&r.currentPlayerState.playerOffsetMs&&(G.currentPlayerState={playerOffsetMs:r.currentPlayerState.playerOffsetMs.toString()})};var jY=function(){};
_.K(jY,J4);jY.prototype.getApiPaths=function(){return SUW};
jY.prototype.getExtension=function(G){return _.a(G,OEj)};
jY.prototype.JSC$14171_buildRequest=function(G,e,r){e.params&&(G.params=e.params);r.continuation&&(G.continuation=r.continuation);"hidden"in r&&(G.webClientInfo={isDocumentHidden:r.hidden});r.isInvalidationTimeoutRequest&&(G.isInvalidationTimeoutRequest=r.isInvalidationTimeoutRequest);r.invalidationPayload&&(e=ZEb(_.NU(iq(r.invalidationPayload))),G.invalidationPayloadLastPublishAtUsec=R$(e,2));r.reloadActionPanel&&(G.reloadActionPanel=r.reloadActionPanel);r.fullReload&&(G.fullReload=r.fullReload);
r.currentPlayerState&&(G.currentPlayerState=r.currentPlayerState)};var af=function(){};
_.K(af,J4);af.prototype.getApiPaths=function(){return suW};
af.prototype.getExtension=function(G){return _.a(G,EeS)};
af.prototype.JSC$14171_buildRequest=function(G,e){G.params=e.params};var Xc=function(){};
_.K(Xc,J4);Xc.prototype.getApiPaths=function(){return wFc};
Xc.prototype.getExtension=function(G){return _.a(G,XkC)};
Xc.prototype.JSC$14171_buildRequest=function(G,e){e.params&&(G.params=e.params)};var Ke=function(){};
_.K(Ke,J4);Ke.prototype.getApiPaths=function(){return qUy};
Ke.prototype.getExtension=function(G){return _.a(G,Kcn)};
Ke.prototype.JSC$14171_buildRequest=function(G,e){e.params&&(G.params=e.params)};var fe=function(){};
_.K(fe,J4);fe.prototype.getApiPaths=function(){return Quv};
fe.prototype.getExtension=function(G){return _.a(G,bEb)};
fe.prototype.JSC$14171_buildRequest=function(G,e){e.params&&(G.params=e.params)};var kG=function(){};
_.K(kG,J4);kG.prototype.getApiPaths=function(){return pFS};
kG.prototype.getExtension=function(G){return _.a(G,veW)};
kG.prototype.JSC$14171_buildRequest=function(G,e){e.params&&(G.params=e.params)};var HN=function(){};
_.K(HN,J4);HN.prototype.getApiPaths=function(){return F7W};
HN.prototype.getExtension=function(G){return _.a(G,ibE)};
HN.prototype.JSC$14171_buildRequest=function(G,e){e.params&&(G.params=e.params)};var d3=function(){};
_.K(d3,J4);d3.prototype.getApiPaths=function(){return W7E};
d3.prototype.getExtension=function(G){return _.a(G,_.wtC)};
d3.prototype.JSC$14171_buildRequest=function(G,e,r){r=r===void 0?{}:r;e.params&&(G.params=e.params);r.client_message_id&&(G.clientMessageId=r.client_message_id);r.recaptcha_token&&(G.recaptchaToken=r.recaptcha_token);r.rich_message&&r.rich_message.text_segments?(e=r.rich_message.text_segments.map(function(Z){var O={};Z.text&&(O.text=Z.text);Z.emoji_id&&(O.emojiId=Z.emoji_id);return O}),G.richMessage={textSegments:e}):r.message&&(G.message=r.message);
r.currentPlayerState&&(G.currentPlayerState=r.currentPlayerState)};var of=function(){};
_.K(of,J4);of.prototype.getApiPaths=function(){return N5W};
of.prototype.getExtension=function(G){return _.a(G,$lv)};
of.prototype.JSC$14171_buildRequest=function(G,e){e.params&&(G.params=e.params)};var sd=function(){};
_.K(sd,J4);sd.prototype.getApiPaths=function(){return ZHC};
sd.prototype.getExtension=function(G){return _.a(G,qIl)};
sd.prototype.JSC$14171_buildRequest=function(G,e,r){e.isUserInitiated&&(G.isUserInitiated=e.isUserInitiated);e.initiationSource&&(G.initiationSource=e.initiationSource);r.locationInfo&&(G.context.client.locationInfo=r.locationInfo)};var Q7=function(){};
_.K(Q7,J4);Q7.prototype.getApiPaths=function(){return I5w};
Q7.prototype.getExtension=function(G){return _.a(G,l7j)};
Q7.prototype.JSC$14171_buildRequest=function(G,e,r){e.metadataUpdateRequest&&(e=e.metadataUpdateRequest,G.encryptedVideoId=e.encryptedVideoId,e.liveChat&&(e=e.liveChat,G.liveChat||(G.liveChat={}),e.performAsExternalChannelId&&(G.liveChat.performAsExternalChannelId=e.performAsExternalChannelId),e.source&&(G.liveChat.source=e.source)));var Z;if(r==null?0:(Z=r.liveChat)==null?0:Z.liveChatSettings)G.liveChat||(G.liveChat={}),r=r.liveChat.liveChatSettings,G.liveChat.newLiveChatSettings=r,G.liveChat.newLiveChatSettingsMask||
(G.liveChat.newLiveChatSettingsMask={}),r.emojiReactionSet&&(G.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var If=function(){};
_.K(If,J4);If.prototype.getApiPaths=function(){return bHS};
If.prototype.getExtension=function(G){return _.a(G,_.Q_b)};
If.prototype.JSC$14171_buildRequest=function(G,e,r){r.continuation?G.continuation=r.continuation:e.videoId&&(G.videoId=e.videoId);r.clientParams&&(G.clientParams=r.clientParams)};var pe=function(){};
_.K(pe,J4);pe.prototype.getApiPaths=function(){return tPE};
pe.prototype.getExtension=function(G){return _.a(G,_.JO)};
pe.prototype.JSC$14171_buildRequest=function(G,e){G.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";G.fetchCommentsParams={};e.videoId&&(G.fetchCommentsParams.encryptedVideoId=e.videoId);e.postId&&(G.fetchCommentsParams.postId=e.postId);e.externalChannelId&&(G.fetchCommentsParams.externalChannelId=e.externalChannelId);e.linkedCommentId&&(G.fetchCommentsParams.linkedCommentId=e.linkedCommentId);(0,_.c2.isEmpty)(G.fetchCommentsParams)&&delete G.fetchCommentsParams};var Ce=function(){};
_.K(Ce,J4);Ce.prototype.getApiPaths=function(){return px};
Ce.prototype.JSC$14171_buildRequest=function(G){G.browseId="FEnotifications_inbox"};
Ce.prototype.getExtension=function(G){return _.a(G,_.eq)};var uv=function(){};
_.K(uv,J4);uv.prototype.getApiPaths=function(){return tPE};
uv.prototype.JSC$14171_buildRequest=function(G,e){e.signal==="GET_NOTIFICATIONS_MENU"&&(G.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");e.ctoken&&(G.ctoken=e.ctoken)};
var vWl=function(){};
_.K(vWl,uv);vWl.prototype.getExtension=function(G){return _.a(G,_.eq)};
var wpl=function(){};
_.K(wpl,uv);wpl.prototype.getExtension=function(G){return _.a(G,X9E)};var ne=function(){};
_.K(ne,J4);ne.prototype.getApiPaths=function(){return XFP};
ne.prototype.getExtension=function(G){return _.a(G,_.eq)};
ne.prototype.JSC$14171_buildRequest=function(){};var mw=function(){};
_.K(mw,J4);mw.prototype.getApiPaths=function(){return CXn};
mw.prototype.getExtension=function(G){return _.a(G,ksW)||void 0};
mw.prototype.JSC$14171_buildRequest=function(G,e){e.params&&(G.params=e.params);e.secondaryParams&&(G.secondaryParams=e.secondaryParams)};var cN=function(){};
_.K(cN,J4);cN.prototype.getApiPaths=function(){return uzy};
cN.prototype.getExtension=function(G){return _.a(G,DG3)};
cN.prototype.JSC$14171_buildRequest=function(G,e){e.undo&&(G.undo=e.undo);e.serializedOptOut&&(G.serializedOptOut=e.serializedOptOut);e.serializedRecordInteractionsRequest&&(G.serializedRecordInteractionsRequest=e.serializedRecordInteractionsRequest)};var YG=function(){};
_.K(YG,J4);YG.prototype.getApiPaths=function(){return cJc};
YG.prototype.getExtension=function(G){return _.a(G,E0n)};
YG.prototype.JSC$14171_buildRequest=function(G,e){e.serializedInteractionsRequest&&(G.serializedRecordNotificationInteractionsRequest=e.serializedInteractionsRequest)};var y7=function(){};
_.K(y7,J4);y7.prototype.getApiPaths=function(){return U5A};
y7.prototype.getExtension=function(G){return _.a(G,pqf)};
y7.prototype.JSC$14171_buildRequest=function(G,e,r){e=e===void 0?{}:e;r=r===void 0?{}:r;e.videoId?G.videoId=e.videoId:e.playlistId&&(G.playlistId=e.playlistId);var Z;G.isCrossDeviceDownload=(Z=e.isCrossDeviceDownload)!=null?Z:!1;var O;if(Z=(O=e.offlineWebClientEligibility)!=null?O:r.offlineWebClientEligibility)G.offlineWebClientEligibility=Z;var M;if(O=(M=e.preferredFormatType)!=null?M:r.preferredFormatType)G.preferredFormatType=O;var T;if(M=(T=e.lastOfflineQualitySettingsSavedMs)!=null?T:r.lastOfflineQualitySettingsSavedMs)G.lastOfflineQualitySettingsSavedMs=
M;e.params&&(G.params=e.params)};var Ag=function(){};
_.K(Ag,J4);Ag.prototype.getApiPaths=function(){return iJ};
Ag.prototype.getExtension=function(G){return _.a(G,_.f1)};
Ag.prototype.JSC$14171_buildRequest=function(G,e,r){r=r===void 0?{}:r;e.token&&(G.continuation=e.token);r.formData&&(G.formData=r.formData)};var Fc=function(){};
_.K(Fc,J4);Fc.prototype.getApiPaths=function(){return iJ};
Fc.prototype.getExtension=function(G){return _.a(G,whE)};
Fc.prototype.JSC$14171_buildRequest=function(G,e,r){r=r===void 0?{}:r;G.continuation=r.continuation};var Jg=function(){};
_.K(Jg,J4);Jg.prototype.getApiPaths=function(){return iJ};
Jg.prototype.getExtension=function(G){return _.a(G,_.gB)};
Jg.prototype.JSC$14171_buildRequest=function(G,e){var r,Z=e.panelIdentifier||((r=e.identifier)==null?void 0:r.tag);Z&&(G.panelId=Z);var O;if((O=e.globalConfiguration)==null?0:O.params){var M;G.params=(M=e.globalConfiguration)==null?void 0:M.params}if(_.R("enable_ai_companion")){var T;e=e.engagementPanelExtras;if(e==null?0:(T=e.aiCompanionPanelExtras)==null?0:T.includeClientConversationId){var E,b;T=(b=(E=_.v_().resolve(_.bq(UgC)))==null?void 0:E("conversations"))==null?void 0:b.get("conversation_id")}else T=
void 0;if(E=T)G.formData=Object.assign({},G.formData,{inputComposerFormData:{conversationId:E}})}};
_.iY.Object.defineProperties(Jg.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var BN=function(){};
_.K(BN,J4);BN.prototype.getApiPaths=function(){return iJ};
BN.prototype.getExtension=function(G){return _.a(G,rqc)};
BN.prototype.JSC$14171_buildRequest=function(G,e){e.panelLoadingStrategy&&GdA(G,e.panelLoadingStrategy)};var xG=function(){};
_.K(xG,J4);xG.prototype.getApiPaths=function(){return iJ};
xG.prototype.getExtension=function(G){return _.a(G,RhE)};
xG.prototype.JSC$14171_buildRequest=function(G,e){e.loadingStrategy&&GdA(G,e.loadingStrategy)};var PN=function(){};
_.K(PN,J4);PN.prototype.getApiPaths=function(){return iJ};
PN.prototype.getExtension=function(G){return _.a(G,_.wBF)};
PN.prototype.JSC$14171_buildRequest=function(G,e){e.panelLoadingStrategy&&GdA(G,e.panelLoadingStrategy)};var Ud=function(){};
_.K(Ud,J4);Ud.prototype.getApiPaths=function(){return iJ};
Ud.prototype.getExtension=function(G){return _.a(G,jqc)};
Ud.prototype.JSC$14171_buildRequest=function(G,e){var r,Z=(r=e.contentSourcePanelIdentifier)==null?void 0:r.tag;Z&&(G.panelId=Z);var O;if((O=e.globalConfiguration)==null?0:O.params){var M;G.params=(M=e.globalConfiguration)==null?void 0:M.params}};var zN=function(){};
_.K(zN,J4);zN.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
zN.prototype.getExtension=function(G){return _.a(G,asc)};
zN.prototype.JSC$14171_buildRequest=function(G,e){e.params&&(G.params=e.params)};var WN=function(){};
_.K(WN,J4);WN.prototype.getApiPaths=function(){return iHS};
WN.prototype.getExtension=function(G){return _.a(G,fsl)};
WN.prototype.JSC$14171_buildRequest=function(G,e){e.externalChannelId&&(G.externalChannelId=e.externalChannelId);e.superChatAction&&(G.superChatAction=e.superChatAction);e.superStickersAction&&(G.superStickersAction=e.superStickersAction)};var NF=function(){};
_.K(NF,J4);NF.prototype.getApiPaths=function(){return D2c};
NF.prototype.getExtension=function(G){return _.a(G,SNy)||_.a(G,uBi)};
NF.prototype.JSC$14171_buildRequest=function(G,e){e.videoIds?G.videoIds=e.videoIds:e.videoId&&(G.videoIds=[e.videoId]);e.playlistId&&(G.playlistId=e.playlistId);e.params&&(G.params=e.params);G.excludeWatchLater=!1};var Le=function(){};
_.K(Le,J4);Le.prototype.getApiPaths=function(){return LjE};
Le.prototype.getExtension=function(G){return _.a(G,_.L6)};
Le.prototype.JSC$14171_buildRequest=function(G,e,r){r.create_playlist_title?G.title=r.create_playlist_title:e.title&&(G.title=e.title);if(r.create_playlist_privacy_status&&typeof r.create_playlist_privacy_status==="number"){a:{var Z=r.create_playlist_privacy_status;if(Z!==0){if(Z===1){Z="PUBLIC";break a}if(Z===2){Z="UNLISTED";break a}}Z="PRIVATE"}G.privacyStatus=Z}else e.privacyStatus&&(G.privacyStatus=e.privacyStatus);r.create_playlist_description&&(G.description=r.create_playlist_description);e.videoIds&&
(G.videoIds=e.videoIds);e.params&&(G.params=e.params);e.sourcePlaylistId&&(G.sourcePlaylistId=e.sourcePlaylistId)};var GO=function(){};
_.K(GO,J4);GO.prototype.getApiPaths=function(){return rJC};
GO.prototype.getExtension=function(G){return _.a(G,KQw)};
GO.prototype.JSC$14171_buildRequest=function(G,e){G.playlistId=e.playlistId};var e9=function(){};
_.K(e9,J4);e9.prototype.getApiPaths=function(){return gEl};
e9.prototype.getExtension=function(G){return _.a(G,Zbn)};
e9.prototype.JSC$14171_buildRequest=function(G,e){e.playlistId&&(G.playlistId=e.playlistId);e.params&&(G.params=e.params)};var rt=function(){};
_.K(rt,J4);rt.prototype.getApiPaths=function(){return m2W};
rt.prototype.getExtension=function(G){return _.a(G,_.BV)||void 0};
rt.prototype.JSC$14171_buildRequest=function(G,e){e.actions&&(G.actions=e.actions);e.params&&(G.params=e.params);e.playlistId&&(G.playlistId=e.playlistId)};var Z1=function(){};
_.K(Z1,J4);_.V=Z1.prototype;_.V.getApiPaths=function(){return YUv};
_.V.getExtension=function(G){return _.a(G,_.DC)};
_.V.JSC$14171_buildRequest=function(G,e){e.videoId&&(G.playerRequest={videoId:e.videoId},e.playerParams&&(G.playerRequest.params=e.playerParams),e.racyCheckOk&&(G.playerRequest.racyCheckOk=!!e.racyCheckOk),e.contentCheckOk&&(G.playerRequest.contentCheckOk=!!e.contentCheckOk));e.params&&(G.params=e.params);e.inputType&&(G.inputType=e.inputType);G.disablePlayerResponse=!0};
_.V.getRequestConfig=function(G){var e;(G=this.JSC$14178_getStoreKey(G))&&(e={storeStrategy:{storeKey:G}});_.R("web_log_reels_ticks")&&(e=e||{},e.requestTick="r_wrs",e.responseTick="r_wrr");return e};
_.V.JSC$14178_getStoreKey=function(G){G=this.getExtension(G);if(G!=null&&G.videoId){var e={videoId:G.videoId};G.params&&(e.params=G.params);return _.CO("reel_item_watch",e)}};var Or=function(){};
_.K(Or,J4);_.V=Or.prototype;_.V.getApiPaths=function(){return yJ3};
_.V.getExtension=function(G){return _.a(G,_.DC)};
_.V.JSC$14171_buildRequest=function(G,e,r){r=r===void 0?{}:r;G.sequenceParams=e.sequenceParams;var Z;((Z=r)==null?0:Z.contentPlaybackContext)&&_.R("web_shorts_prefetch_service_enabled")&&(G.playbackContext={contentPlaybackContext:r.contentPlaybackContext})};
_.V.JSC$14178_getStoreKey=function(G){if(_.R("web_enable_delay_shorts_sequence_call")||_.R("shorts_controller_retrieve_seedless_sequence_v2"))if(G=this.getExtension(G),G==null?0:G.sequenceParams)return _.CO("reel_watch_sequence",{sequenceParams:G.sequenceParams})};
_.V.getRequestConfig=function(G){G=this.JSC$14178_getStoreKey(G);var e;G&&(e={storeStrategy:{storeKey:G}});e=e||{};e.requestTick="r_wsrs";e.responseTick="r_wsrr";e.processorTick="r_wsrp";return e};
var MT=function(){};
_.K(MT,J4);MT.prototype.getApiPaths=function(){return yJ3};
MT.prototype.getExtension=function(G){return _.a(G,_.f1)};
MT.prototype.JSC$14171_buildRequest=function(G,e,r){r=r===void 0?{}:r;e.token&&(G.continuation=e.token);var Z;((Z=r)==null?0:Z.contentPlaybackContext)&&_.R("web_shorts_prefetch_service_enabled")&&(G.playbackContext={contentPlaybackContext:r.contentPlaybackContext})};
MT.prototype.getRequestConfig=function(G){G=this.JSC$14178_getStoreKey(G);var e;G&&(e={storeStrategy:{storeKey:G}});e=e||{};e.requestTick="r_wsrs";e.responseTick="r_wsrr";e.processorTick="r_wsrp";return e};var V2=function(){};
_.K(V2,J4);V2.prototype.getApiPaths=function(){return VPE};
V2.prototype.getExtension=function(G){return _.a(G,_.Wic)};
V2.prototype.JSC$14171_buildRequest=function(G,e,r){r=r===void 0?{}:r;e.flagAction&&(G.action=e.flagAction);e.flagRequestType&&(G.flagRequestType=e.flagRequestType);e.additionalDetailCheckboxChecked&&(G.additionalDetailCheckboxChecked=e.additionalDetailCheckboxChecked);e.legalCheckboxChecked&&(G.legalCheckboxChecked=e.legalCheckboxChecked);e={};r.flag_issue_type!==void 0&&(e.issue=r.flag_issue_type);r.flag_affiliation!==void 0&&(e.affiliation=r.flag_affiliation);r.flag_full_name&&(e.fullName=r.flag_full_name);
Object.keys(e).length&&(G.legalReportDetails=e);if(r.flag_description||r.text)G.userComments=r.flag_description||r.text;e={};r.minutes!==void 0&&r.seconds!==void 0&&(e.minutes=r.minutes,e.seconds=r.seconds);r.vss_id&&(e.vssId=r.vss_id);Object.keys(e).length&&(G.videoReportDetails=e);e={};r.video_ids&&(e.videoIds=r.video_ids);r.impersonated_channel_url&&(e.impersonatedChannelUrl=r.impersonated_channel_url);Object.keys(e).length&&(G.channelAbuseReportDetails=e)};
_.iY.Object.defineProperties(V2.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hu=function(){};
_.K(hu,J4);hu.prototype.getApiPaths=function(){return bwW};
hu.prototype.getExtension=function(G){return _.a(G,K5E)};
hu.prototype.JSC$14171_buildRequest=function(G,e){e.blockedForKidsContent&&(G.blockedForKidsContent=e.blockedForKidsContent)};var TO=function(){};
_.K(TO,J4);TO.prototype.getApiPaths=function(){return JJb};
TO.prototype.getExtension=function(G){return _.a(G,CIA)};
TO.prototype.JSC$14171_buildRequest=function(G,e,r){G.params=e.params;r.impersonated_channel_url&&(G.impersonatedChannelUrl=r.impersonated_channel_url)};var D1=function(){};
_.K(D1,J4);D1.prototype.getApiPaths=function(){return d2n};
D1.prototype.getExtension=function(G){return _.a(G,_.fLE)};
D1.prototype.JSC$14171_buildRequest=function(G,e){e.items&&(G.items=e.items);e.kidGaiaId&&(G.kidGaiaId=e.kidGaiaId)};var Er=function(){};
_.K(Er,J4);Er.prototype.getApiPaths=function(){return EEc};
Er.prototype.getExtension=function(G){return _.a(G,_.v9w)};
Er.prototype.JSC$14171_buildRequest=function(G,e){e.params&&(G.params=e.params);e.targetId&&(G.targetId=e.targetId)};var iV=function(){};
_.K(iV,J4);iV.prototype.getApiPaths=function(){return U2W};
iV.prototype.getExtension=function(G){return _.a(G,Kiv)};
iV.prototype.JSC$14171_buildRequest=function(G,e){e.externalVideoId&&(G.externalVideoId=e.externalVideoId);e.query&&(G.query=e.query);e.sourceTimelines&&(G.sourceTimelines=e.sourceTimelines)};var bV=function(){};
_.K(bV,J4);bV.prototype.getApiPaths=function(){return zql};
bV.prototype.getExtension=function(G){return _.a(G,_.f1)||void 0};
bV.prototype.JSC$14171_buildRequest=function(G,e){e.token&&(G.continuation=e.token)};
_.$MA=function(){};
_.K(_.$MA,J4);_.V=_.$MA.prototype;_.V.getApiPaths=function(){return zql};
_.V.getExtension=function(G){return _.a(G,_.Vl)||void 0};
_.V.isNavigationCommand=function(){return!0};
_.V.JSC$14178_getStoreKey=function(G,e){e=e===void 0?{}:e;if(!e.disableCache&&(G=this.getExtension(G))&&G.query)return e={query:G.query},G.params&&(e.params=G.params),_.CO("search",e)};
_.V.JSC$14171_buildRequest=function(G,e,r){e.query&&(G.query=e.query);e.params&&(G.params=e.params);if(!_.R("web_forward_suggest_stats_killswitch")){var Z=_.a(e,zJC);Z&&(G.suggestStats=Z)}var O;!_.R("kevlar_searchbox_stats_killswitch")&&((O=r.tempData)==null?0:O.gs_l)&&!_.a(e,zJC)&&(G.webSearchboxStatsUrl="/search?oq="+(r.tempData.oq||"")+"&gs_l="+r.tempData.gs_l);var M;if((M=r.tempData)==null?0:M.entityMid)e=G.suggestionSearchParams||{},e.entityMid=r.tempData.entityMid,G.suggestionSearchParams=e;
if(_.R("enable_desktop_vdcbg_components")||_.R("enable_inline_muted_playback_on_web_search"))e=_.hy().getFlag(186),G.inlineSettingStatus=e?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";var T;((T=r.tempData)==null?0:T.isFromShorts)&&_.R("web_pass_shorts_context_to_search")&&(G.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.V.getRequestConfig=function(G,e){e=e===void 0?{}:e;G=this.JSC$14178_getStoreKey(G,e);var r;G&&(r={storeStrategy:{storeKey:G}});_.R("web_log_search_ticks_ks")||(r=r||{},r.requestTick="sr_s",r.responseTick="sr_r");return r};var v$=function(){};
_.K(v$,J4);v$.prototype.getApiPaths=function(){return ju3};
v$.prototype.getExtension=function(G){return _.a(G,n9l)};
v$.prototype.JSC$14171_buildRequest=function(G,e){e.serializedGetSharingProviderDataParams&&(G.serializedGetSharingProviderDataParams=e.serializedGetSharingProviderDataParams)};var wt=function(){};
_.K(wt,J4);wt.prototype.getApiPaths=function(){return a5j};
wt.prototype.getExtension=function(G){return _.a(G,Bhn)};
wt.prototype.JSC$14171_buildRequest=function(G,e){e.endpoint&&(G.endpoint=e.endpoint);e.action&&(G.action=e.action)};var $F=function(){};
_.K($F,J4);$F.prototype.getApiPaths=function(){return ZwC};
$F.prototype.getExtension=function(G){return _.a(G,ftc)};
$F.prototype.JSC$14171_buildRequest=function(G,e){G.videoId=e.videoId;e.scheduledRedirectMetadataSourceVideoId&&(G.scheduledRedirectMetadata={sourceVideoId:e.scheduledRedirectMetadataSourceVideoId})};var S9=function(){};
_.K(S9,J4);S9.prototype.getApiPaths=function(){return G7E};
S9.prototype.getExtension=function(G){return _.a(G,_.H0S)};
S9.prototype.JSC$14171_buildRequest=function(G,e){G.params=e.params;G.correctionText=e.correctionText};var qT=function(){};
_.K(qT,J4);qT.prototype.getApiPaths=function(){return BXf};
qT.prototype.getExtension=function(G){return _.a(G,_.fOw)};
qT.prototype.JSC$14171_buildRequest=function(G,e){e.params&&(G.params=e.params);G.searchQuery=e.searchQuery;G.languageCode=e.languageCode;G.kind=e.kind;G.name=e.name;G.externalVideoId=e.externalVideoId};var tu=function(){};
_.K(tu,J4);tu.prototype.getApiPaths=function(){return S8W};
tu.prototype.getExtension=function(G){return _.a(G,Jqc)};
tu.prototype.JSC$14171_buildRequest=function(G,e){e.params&&(G.params=e.params)};var gt=function(G){this.JSC$18430_storeWithEntities=G};
_.K(gt,J4);gt.prototype.getApiPaths=function(){return BZn};
gt.prototype.getExtension=function(G){return _.a(G,xmw)||_.a(G,Umy)};
gt.prototype.JSC$14171_buildRequest=function(G,e,r){r.client_data&&(G.clientData=r.client_data);if(e.commerceActionConfig){var Z=e.commerceActionConfig;e=Z.actionId;Z=Z.commerceActionParams;e&&(G.actionId=e);Z&&(G.commerceActionParams=Z)}else{var O=e.actionId,M=e.commerceActionParams;r=e.entityKeys;O&&(G.actionId=O);M&&(G.commerceActionParams=M);var T;e=(Z=this.JSC$18430_storeWithEntities)==null?void 0:(T=Z.getState())==null?void 0:T.entities;if(r&&e){Z=[];T=_.h(r);for(r=T.next();!r.done;r=T.next())if(O=
r.value,r=_.Wn(O).entityType,O=_.e6(e,r,O))M={},Z.push((M[r]=O,M));G.entityMutationPayloads=Z}}};
gt.prototype.getRequestConfig=function(G){var e,r=(e=_.a(G,xmw))==null?void 0:e.requestSequenceType;if(r&&G.clickTrackingParams&&r!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:G.clickTrackingParams,sequenceType:r}}};
gt[wR]=[JZ];var lV=function(){};
_.K(lV,J4);lV.prototype.getApiPaths=function(){return q8W};
lV.prototype.getExtension=function(G){return _.a(G,_.vr3)};
lV.prototype.JSC$14171_buildRequest=function(G,e){e.feedbackData&&(G.feedbackData=e.feedbackData);e.params&&(G.itemParams=e.params)};
_.iY.Object.defineProperties(lV.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var RK=function(){};
_.K(RK,J4);RK.prototype.getApiPaths=function(){return tbc};
RK.prototype.getExtension=function(G){return _.a(G,wHW)};
RK.prototype.JSC$14171_buildRequest=function(G,e,r){r.payments_payload&&(G.paymentsPayload=r.payments_payload);r.offer_params&&(G.offerParams=r.offer_params);e.transactionParams&&(G.transactionParams=e.transactionParams)};var j9=function(){};
_.K(j9,J4);j9.prototype.getApiPaths=function(){return gXE};
j9.prototype.getExtension=function(G){return _.a(G,_.$RS)};
j9.prototype.JSC$14171_buildRequest=function(G,e,r){r=r===void 0?{}:r;e.buybucketParams&&(G.buybucketData={params:e.buybucketParams},e.stickerParams?G.buybucketData.stickerParams=e.stickerParams:(r.rich_chat_message?G.buybucketData.richChatMessage=r.rich_chat_message:r.chat_message_text&&(G.buybucketData.chatMessageText=r.chat_message_text),r.purchase_price_micros&&(G.buybucketData.purchasePriceMicros=r.purchase_price_micros.toString())));e.donationAmountMicros&&(G.tipAmountMicros=e.donationAmountMicros,
e.tipParams&&(G.tipParams=e.tipParams));e.offerParams&&(G.offerParams=e.offerParams);e.productData&&(G.productData=e.productData);e.transactionParams&&(G.transactionParams=e.transactionParams)};var aK=function(){};
_.K(aK,J4);aK.prototype.getApiPaths=function(){return lnP};
aK.prototype.getExtension=function(G){return _.a(G,tIP)};
aK.prototype.JSC$14171_buildRequest=function(G,e){e.updateFopParams&&(G.updateFopParams=e.updateFopParams)};var Xd=function(){};
_.K(Xd,J4);Xd.prototype.getApiPaths=function(){return RnS};
Xd.prototype.getExtension=function(G){return _.a(G,_.CW)};
Xd.prototype.JSC$14171_buildRequest=function(G,e){e.couponCode&&(G.couponCode=e.couponCode);e.params&&(G.itemParams=e.params)};var K8=function(){};
_.K(K8,J4);K8.prototype.getApiPaths=function(){return jmn};
K8.prototype.getExtension=function(G){return _.a(G,_.Pon)};
K8.prototype.JSC$14171_buildRequest=function(G,e,r){r=r===void 0?{}:r;e.params&&(G.params=e.params);r.ctk&&(G.clientToken=r.ctk)};var f8=function(G){this.JSC$18465_storeWithEntities=G};
_.K(f8,J4);f8.prototype.getApiPaths=function(){return anW};
f8.prototype.getExtension=function(G){return _.a(G,_.ZZ)};
f8.prototype.JSC$14171_buildRequest=function(G,e,r){r.purchase_price_micros&&(G.productData={pdgData:{purchasePriceMicros:r.purchase_price_micros.toString()}},r.rich_chat_message&&(G.productData.pdgData.richChatMessage=r.rich_chat_message),r.currency_code&&(G.productData.pdgData.currencyCode=r.currency_code));e.transactionParams&&(G.transactionParams=e.transactionParams);e.clientLocationContext&&(G.clientLocationContext=e.clientLocationContext);r.payments_payload&&(G.paymentsPayload=r.payments_payload);
r.funds_guarantee_callback_client_data&&(G.fundsGuaranteeCallbackClientData=r.funds_guarantee_callback_client_data);var Z,O;r=(Z=this.JSC$18465_storeWithEntities)==null?void 0:(O=Z.getState())==null?void 0:O.entities;if(e.entityKeys&&r){Z=[];e=_.h(e.entityKeys);for(O=e.next();!O.done;O=e.next()){var M=O.value;O=_.Wn(M).entityType;if(M=_.e6(r,O,M)){var T={};Z.push((T[O]=M,T))}}G.entityMutationPayloads=Z}};
f8[wR]=[JZ];var kF=function(){};
_.K(kF,J4);kF.prototype.getApiPaths=function(){return XrW};
kF.prototype.getExtension=function(G){return _.a(G,Spv)};
kF.prototype.JSC$14171_buildRequest=function(G,e,r){r=r===void 0?{}:r;r.backend_analytics&&(G.serializedBackendAnalyticsEvent=r.backend_analytics);e.offerParams&&(G.offerParams=e.offerParams)};var H$=function(){};
_.K(H$,J4);H$.prototype.getApiPaths=function(){return RnS};
H$.prototype.getExtension=function(G){return _.a(G,XWp)};
H$.prototype.JSC$14171_buildRequest=function(G,e){e.params&&(G.itemParams=e.params)};var dt=function(){};
_.K(dt,J4);dt.prototype.getApiPaths=function(){return KxE};
dt.prototype.getExtension=function(G){return _.a(G,_.GZy)};
dt.prototype.JSC$14171_buildRequest=function(G,e,r){r.resume_time_ms&&(G.resumeTimeMs=r.resume_time_ms);e.pauseParams&&(G.pauseParams=e.pauseParams)};var oK=function(){};
_.K(oK,J4);oK.prototype.getApiPaths=function(){return fnv};
oK.prototype.getExtension=function(G){return _.a(G,_.qpW)};
oK.prototype.JSC$14171_buildRequest=function(G,e,r){r=r===void 0?{}:r;r.c&&(G.redeemCode=r.c);r.rd&&(G.riskData=r.rd);r.ctk&&(G.clientToken=r.ctk)};var sr=function(){};
_.K(sr,J4);sr.prototype.getApiPaths=function(){return k7j};
sr.prototype.getExtension=function(G){return _.a(G,_.eUE)};
sr.prototype.JSC$14171_buildRequest=function(G,e){e.resumeParams&&(G.resumeParams=e.resumeParams)};var Q2=function(G,e){this.clientName=G;this.defaultExpirationDelayMs=e};
Q2.prototype.put=function(G,e){var r=this,Z;return _.D(function(O){Z=Object.assign({},e.data);Z.key=G;Z.clientName=r.clientName;Z.expireTimestampMs===void 0&&(Z.expireTimestampMs=(Math.round((0,_.vG)())+r.defaultExpirationDelayMs).toString());return O.return(r.putInternal(G,Z))})};
Q2[wR]=[UT,ZNa];var SQm=function(){Q2.apply(this,arguments);this.JSC$18495_responseStore=new Map};
_.K(SQm,Q2);_.V=SQm.prototype;_.V.get=function(G){var e=this;return _.D(function(r){return r.return(RA(e,G))})};
_.V.putInternal=function(G,e){var r=this,Z,O,M;return _.D(function(T){Z=r.defaultExpirationDelayMs;e.expireTimestampMs&&(Z=Number(e.expireTimestampMs)-Math.round((0,_.vG)()),O=_.qt("mweb_override_response_store_expiration_ms"),O>0&&O<Z&&(Z=O));M=setTimeout(function(){r.remove(G)},Z);
r.JSC$18495_responseStore.set(G,{entryData:e,timer:M});_.HL(T)})};
_.V.remove=function(G){var e=this;return _.D(function(r){qQW(e,G);_.HL(r)})};
_.V.removeAll=function(){var G=this;return _.D(function(e){G.JSC$18495_responseStore.forEach(function(r){clearTimeout(r.timer)});
G.JSC$18495_responseStore.clear();_.HL(e)})};
_.V.has=function(G){return!!this.JSC$18495_responseStore.get(G)};
_.V.getKeys=function(){return this.JSC$18495_responseStore.keys()};
var RA=function(G,e){if(G=G.JSC$18495_responseStore.get(e))return new _.lB(G.entryData)},qQW=function(G,e){var r=G.JSC$18495_responseStore.get(e);
r&&(clearTimeout(r.timer),G.JSC$18495_responseStore.delete(e))};var eMs;var O4y=function(G,e,r){Q2.call(this,G,e);this.token=r};
_.K(O4y,Q2);_.V=O4y.prototype;_.V.get=function(G){var e=this,r,Z;return _.D(function(O){return O.nextAddress==1?O.yield(Z4F(e.token),2):O.nextAddress!=3?(r=O.yieldResult,O.yield(r.get("ResponseStore",[G,e.clientName]),3)):(Z=O.yieldResult)?O.return(new _.lB(Z)):O.return(void 0)})};
_.V.putInternal=function(G,e){var r=this,Z;return _.D(function(O){if(O.nextAddress==1)return O.yield(Z4F(r.token),2);Z=O.yieldResult;return O.yield(Z.put("ResponseStore",e),0)})};
_.V.remove=function(G){var e=this,r;return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(Z4F(e.token),2);r=Z.yieldResult;return Z.return(r.delete("ResponseStore",[G,e.clientName]))})};
_.V.removeAll=function(){var G=this,e;return _.D(function(r){if(r.nextAddress==1)return r.yield(Z4F(G.token),2);e=r.yieldResult;return r.yield(pny(e,IDBKeyRange.only(G.clientName)),0)})};
_.V.has=function(){throw Error("ij");};_.IK=new _.Gz("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var tKm=function(G){var e;this.stateTagsData=(e=G.responseContext)==null?void 0:e.stateTags},gWd=function(G){var e;
return((e=G.stateTagsData)==null?void 0:e.stateTagsModified)||[]};var lDH;lDH=function(G){this.JSC$18508_responseStore=G};
_.or=function(G,e,r){if(!_.R("state_tags_killswitch")){var Z=new tKm(e);if(gWd(Z).length>0){var O=G.JSC$18508_responseStore.getKeys();O=_.h(O);for(var M=O.next();!M.done;M=O.next()){M=M.value;var T=RA(G.JSC$18508_responseStore,M);if(T){var E=_.AZ(T);a:{var b=void 0;T=gWd(Z);E=((b=(new tKm(E)).stateTagsData)==null?void 0:b.relevantStateTags)||[];b=_.h(E);for(E=b.next();!E.done;E=b.next())if(E=E.value,E.stateTag!=null&&T.includes(E.stateTag)&&E.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){T=
!0;break a}T=!1}T&&qQW(G.JSC$18508_responseStore,M)}}}}var w;Z=(w=e.responseContext)==null?void 0:w.maxAgeSeconds;r&&Z&&Number(Z)>0&&(e=W5(e,Z),G.JSC$18508_responseStore.put(r,new _.lB(e)))};
lDH.prototype.handleResponse=function(G,e){if(!e)throw Error("jj");var r,Z;e=(r=e.config)==null?void 0:(Z=r.storeStrategy)==null?void 0:Z.storeKey;_.or(this,G,e)};
lDH[wR]=[_.g9];_.ljN=new _.Gz("STORE_RESPONSE_PROCESSOR_TOKEN");var R$8=function(G){this.JSC$18511_responseStore=G};
R$8.prototype.handleResponse=function(G,e){if(e.input.match(_.y4(yJ3))){var r;if(G==null?0:(r=G.entries)==null?0:r.length)for(G=_.h(G.entries),e=G.next();!e.done;e=G.next()){r=e.value.command;var Z=void 0;e=(Z=_.a(r,_.DC))==null?void 0:Z.unserializedPrefetchData;if(!r||!e)break;Z=(new Z1).JSC$14178_getStoreKey(r);var O=_.a(e,Wcj),M=void 0,T=void 0,E=void 0,b=void 0,w=void 0,q=void 0,t=((M=O)==null?0:(T=M.responseContext)==null?0:T.maxAgeSeconds)&&Number((E=O)==null?void 0:(b=E.responseContext)==null?
void 0:b.maxAgeSeconds)>0?Number((w=O)==null?void 0:(q=w.responseContext)==null?void 0:q.maxAgeSeconds):600;Z&&t>0&&(O=W5(O,t),this.JSC$18511_responseStore.put(Z,new _.lB(O)));r=(new qb).JSC$14178_getStoreKey(r);e=_.a(e,COv);b=E=T=M=O=Z=void 0;w=((Z=e)==null?0:(O=Z.responseContext)==null?0:O.maxAgeSeconds)&&Number((M=e)==null?void 0:(T=M.responseContext)==null?void 0:T.maxAgeSeconds)>0?Number((E=e)==null?void 0:(b=E.responseContext)==null?void 0:b.maxAgeSeconds):600;r&&w>0&&(e=W5(e,w),this.JSC$18511_responseStore.put(r,
new _.lB(e)))}}};
R$8[wR]=[_.g9];var jFm=function(G,e){this.innertubeTransportService=G;this.JSC$18514_commandHandler=e};
jFm.prototype.submitForm=function(G,e,r,Z,O){var M=this,T,E,b,w,q,t;return _.D(function(g){if(g.nextAddress==1)return T={submitId:G,formData:e,submitBehavior:r,params:Z},E=_.y4(enS),g.yield(_.LE(M.innertubeTransportService,T,E,O),2);b=g.yieldResult;if(!b)return g.return(Promise.reject(new _.Cr("Submit API returned an undefined response. Submit ID: "+G)));w=b;(t=(q=w)==null?void 0:q.onResponseReceived)&&M.JSC$18514_commandHandler.resolveCommand(t);return g.return(w)})};
jFm[wR]=[_.v1,_.$1];var p8=function(){this.scheduler=_.S0()},aDa;
p8.prototype.pause=function(){throw Error("kj");};
p8.prototype.resume=function(){throw Error("kj");};
p8.prototype.queue=function(G){var e=this,r=_.C1(),Z=_.IQ(this.scheduler,function(){try{var O;if(_.Ga.instance)var M=_.Ga.instance;else{var T=new _.Cr("Error: Unexpected uninitialized CommandHandler.");_.yx(T);M=void 0}(O=M)==null||O.resolveCommand(G.command);r.resolve()}catch(E){r.reject(E)}});
r.promise.thenCatch(function(O){O instanceof _.fx&&e.scheduler.cancelJob(Z)});
return r.promise};
p8.prototype.queueAll=function(G){var e=new Map;G=_.h(G);for(var r=G.next();!r.done;r=G.next())r=r.value,e.set(r.id,this.queue(r));return e};var Kl2=function(G,e){var r=this;this.taskModel=G;this.onTaskCancelledCallback=e;this.resolver=_.C1();G=G.proto.prefetchConfig;if(!G)throw Error("lj");if(!G.prefetchAction)throw Error("mj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(Z){Z instanceof _.fx&&(Xpo(r,r.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),r.onTaskCancelledCallback(r.taskModel.id,r.jobId),r.tick("pcc"));
throw Z;});
this.timerName=this.taskModel.id;_.Rl(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
Kl2.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 Xpo=function(G,e){_.gJ({prefetchInfo:{cancellationReason:e}},G.timerName)};
Kl2.prototype.tick=function(G){_.jq(G,void 0,this.timerName)};var uV=function(){var G=this;this.scheduler=_.S0();this.maxInflightTasks=_.qt("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.qt("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new vij;this.onTaskCancelled=function(e,r){r&&G.scheduler.cancelJob(r);fDV(G,e);C8(G,3)}},kXY=function(){uV.instance||(uV.instance=new uV);
return uV.instance};
uV.prototype.pause=function(){this.prefetchCoordinatorState=0};
uV.prototype.resume=function(){C8(this,0)};
uV.prototype.queue=function(G){G=HBV(this,G);C8(this,1);return G};
uV.prototype.queueAll=function(G){var e=new Map;G=_.h(G);for(var r=G.next();!r.done;r=G.next())r=r.value,e.set(r.id,HBV(this,r));C8(this,1);return e};
var HBV=function(G,e){var r=G.allPrefetchTasks.get(e.id);if(r)return r.cancellablePromise;try{var Z=new Kl2(e,G.onTaskCancelled)}catch(M){return _.Ss(M)}r=Z;r.tick("pcq");var O={prefetchInfo:{taskId:r.taskModel.id,isPrefetch:!0,fetchAction:r.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:r.taskModel.command.clickTrackingParams}};r.taskModel.csn&&(O.clientScreenNonce=r.taskModel.csn);_.gJ(O,r.timerName);G.allPrefetchTasks.set(e.id,Z);G.drainingHeap.insert(-Z.getPriority(),Z);return Z.cancellablePromise},
C8=function(G,e){G.prefetchCoordinatorState===e&&(G.prefetchCoordinatorState=2,dMd(G))},dMd=function(G){for(var e={};G.prefetchCoordinatorState!==0;e={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(G.inflightPrefetchTasks.size>=G.maxInflightTasks){G.prefetchCoordinatorState=3;break}e.prefetchTask$jscomp$1=G.drainingHeap.remove();if(!e.prefetchTask$jscomp$1){G.prefetchCoordinatorState=1;break}e.taskId$jscomp$3=e.prefetchTask$jscomp$1.taskModel.id;if(G.allPrefetchTasks.has(e.taskId$jscomp$3)){var r=-1;G.coordinatorTimeoutMs>0&&(r=_.IQ(G.scheduler,function(Z){return function(){n8(G,Z.taskId$jscomp$3,Error("nj"))}}(e),G.coordinatorTimeoutMs));
G.inflightPrefetchTasks.set(e.taskId$jscomp$3,r);if(!G.JSC$18531_commandHandler){if(!_.Ga.instance){n8(G,e.taskId$jscomp$3,Error("oj"));continue}G.JSC$18531_commandHandler=_.Ga.instance}a:switch(e.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":r=1;break a;default:r=0}e.prefetchTask$jscomp$1.jobId=G.scheduler.addJob(function(Z){return function(){Z.prefetchTask$jscomp$1.tick("pcr");try{G.JSC$18531_commandHandler.resolveCommand(Z.prefetchTask$jscomp$1.taskModel.command)||
n8(G,Z.taskId$jscomp$3,Error("pj"))}catch(O){n8(G,Z.taskId$jscomp$3,O)}}}(e),r,0)}}},oWC=function(G,e){(e=fDV(G,e))!=null&&(e.resolver.resolve(),e.tick("pce"));
C8(G,3)},n8=function(G,e,r){(e=fDV(G,e,r))!=null&&(e.resolver.reject(r),e.tick("pcc"),Xpo(e,"CANCELLATION_REASON_ERROR"),Math.random()<=_.qt("prefetch_coordinator_error_logging_sampling_rate")&&(r=new _.Cr("Prefetch Command failed.",e.taskModel.id,r.message),_.yx(r)));
C8(G,3)},fDV=function(G,e,r){var Z=G.allPrefetchTasks.get(e);
Z?((r=G.inflightPrefetchTasks.get(e))&&r!==-1&&G.scheduler.cancelJob(r),G.inflightPrefetchTasks.delete(e),G.allPrefetchTasks.delete(e)):_.FH(new _.Cr("Unexpected missing prefetch task when deleting task.",e,r==null?void 0:r.message));return Z};var sFm=function(G,e,r,Z,O){this.id=G;this.triggerOn=e;this.cancelOn=r;this.command=Z;this.proto=O};
_.iY.Object.defineProperties(sFm.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var QFV=function(){this.JSC$18536_prefetchCoordinator=kXY();aDa||(aDa=new p8);this.defaultCoordinator=aDa},IDo;
QFV.getInstance=function(){IDo||(IDo=new QFV);return IDo};
QFV.prototype.get=function(G){switch(G){case 0:return this.JSC$18536_prefetchCoordinator;default:return this.defaultCoordinator}};var ms=function(){this.coordinatorSupplier=QFV.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},ux8=function(G){var e=_.l4()||void 0,r=Object.keys(pp8)[0];
if(r){var Z=G.taskIdByTriggerId.get(r);if(Z!=null){G.taskIdByTriggerId.delete(r);r=[];Z=_.h(Z);for(var O=Z.next();!O.done;O=Z.next())if(O=G.tasks.get(O.value))e!=="UNDEFINED_CSN"&&(O.csn=e),r.push(O);r=hMU(r);e=[];r=_.h(r);for(Z=r.next();!Z.done;Z=r.next()){O=_.h(Z.value);Z=O.next().value;O=O.next().value;Z=G.coordinatorSupplier.get(Z).queueAll(O);Z=_.h(Z);var M=Z.next();for(O={};!M.done;O={taskId$jscomp$9:void 0},M=Z.next()){var T=_.h(M.value);M=T.next().value;T=T.next().value;O.taskId$jscomp$9=
M;M=T;e.push(O.taskId$jscomp$9);G.queuedPromisesByTask.set(O.taskId$jscomp$9,_.fY(M,function(E){return function(){Cxm(G,E.taskId$jscomp$9)}}(O)))}}}}else _.FH(new _.Cr("Unexpected malformed TriggerEvent."))};
ms.prototype.trigger=function(G,e){var r=this,Z=this.tasks.get(G);if(!Z||this.queuedPromisesByTask.has(G))return!1;nWC(this,G,Z.triggerOn);e!=="UNDEFINED_CSN"&&(Z.csn=e);e=this.coordinatorSupplier.get(Z.taskType).queue(Z);this.queuedPromisesByTask.set(G,_.fY(e,function(){Cxm(r,G)}));
return!0};
ms.prototype.cancel=function(G){var e=this.queuedPromisesByTask.get(G);if(e)e.cancel();else return Cxm(this,G)};
var Cxm=function(G,e){G.queuedPromisesByTask.delete(e);var r=G.tasks.get(e);if(!r)return!1;G.tasks.delete(e);nWC(G,e,r.triggerOn);(r=Vdf(r.cancelOn))&&(G=G.taskIdByCancelId.get(r))&&G.delete(e);return!0},nWC=function(G,e,r){(r=Object.keys(r)[0])&&(G=G.taskIdByTriggerId.get(r))&&G.delete(e)};var pp8={taskRegistered:{}},c$=function(){ms.instance||(ms.instance=new ms);this.JSC$18545_taskManager=ms.instance};
_.K(c$,WH);
c$.prototype.resolveCommand=function(G){var e=this,r,Z;return _.D(function(O){r=_.a(G,L6E);if((Z=r)==null||!Z.tasks){var M=new _.Cr("RegisterTasksCommand is missing tasks.");_.yx(M);return O.return()}M=e.JSC$18545_taskManager;for(var T=_.h(r.tasks),E=T.next();!E.done;E=T.next())if(E=E.value,E=E.id&&E.triggerOn&&E.cancelOn&&E.command?new sFm(E.id,E.triggerOn,E.cancelOn,E.command,E):void 0,E){var b=Object.keys(E.triggerOn)[0];if(b){var w=Vdf(E.cancelOn);w?(M.tasks.set(E.id,E),M.taskIdByTriggerId.has(b)||M.taskIdByTriggerId.set(b,
new Set),M.taskIdByTriggerId.get(b).add(E.id),M.taskIdByCancelId.has(w)||M.taskIdByCancelId.set(w,new Set),M.taskIdByCancelId.get(w).add(E.id)):_.FH(new _.Cr("Unexpected malformed cancelOn field."))}else _.FH(new _.Cr("Unexpected malformed triggerOn field."))}else _.FH(new _.Cr("Unexpected malformed Task proto."));ux8(e.JSC$18545_taskManager);_.HL(O)})};var mM2={},cAa=(mM2.rendered={priority:_.R("web_adaptive_early_init")?8:0,callback:function(){var G={};G.numCpu=navigator.hardwareConcurrency;var e={};e.ramGb=_.O_.navigator.deviceMemory;var r={staticContext:{}};e.ramGb&&lPy(e.ramGb)&&(r.staticContext.memoryTotalKbytes=(e.ramGb*1048576).toString());G.numCpu&&lPy(G.numCpu)&&(r.staticContext.cpuCores=G.numCpu);if(_.R("web_enable_adaptive_appl_signal")){G={};e=gAU();e=e.length>0?e[0]:void 0;var Z,O=(Z=_.kJ("rses_dpj"))!=null?Z:e==null?void 0:e.tick.rses_dpj,
M;Z=(M=_.kJ("rsef_dpj"))!=null?M:e==null?void 0:e.tick.rsef_dpj;O&&Number(O)>0&&Z&&Number(Z)>0&&(M=Math.ceil(Number(Z)-Number(O)),M>0&&(G.loadLatency=M));G.loadLatency&&lPy(G.loadLatency)&&(r.appL=G.loadLatency.toString())}_.cg("applicationStarted",r);R6F=r;_.R("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",jxS)}},mM2);var YQW=new _.Gz("WINDOW_ON_ERROR"),yAl=new _.Gz("ERROR_WEIGHT_MAPS"),AA8=new _.Gz("INIT_ERROR");var FlH={},JAV=(FlH.initialized={priority:10,callback:function(G){G.injector.resolve(AA8)()}},FlH);var B1C=function(){},xMa=function(){var G=_.Lz("meta_logger_impl");
G||(G=new B1C,_.Eu("meta_logger_impl",G));return G},Px8=function(){xMa().csiSubscriptionKey=cXy("meta_logging_csi_event",function(G){var e=G.timerName;
if(G=G.timelineData){_.Rl(e,{startTime:G.startTime},e);G.infos&&_.gJ(G.infos,e);for(var r=_.h(Object.keys(G.ticks)),Z=r.next();!Z.done;Z=r.next())Z=Z.value,_.jq(Z,G.ticks[Z],e)}})};
B1C.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&AXF(this.csiSubscriptionKey)};var UMV={},z$8=(UMV.initialized={priority:10,callback:function(){Px8()}},UMV);var Wld=function(G,e){this.innertubeClientName=G;this.JSC$18556_prefCookie=e};
Wld.prototype.record=function(){if(_.R("web_li_record_binary_eval_tick")){var G=_.kJ("rsef_dpj");var e=_.kJ("rses_dpj");G=G!==void 0&&e!==void 0?Math.round(G-e):void 0;if(G!==void 0&&G>0){e=_.SF(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var r=this.poolSize;if(!(e.valuesSeen>=1E9)){if(e.valuesSample.length<r)e.valuesSample.push(G);else{var Z=Math.floor(Math.random()*(e.valuesSeen+1));Z<r&&(e.valuesSample[Z]=G)}e.valuesSeen+=1}_.$N(this.storagePrefix+"-"+this.innertubeClientName,
e,2592E3);G=e.valuesSample;e=T$S(G);G=G.length<this.poolSize?void 0:e<400?1:e<1700?2:3;G!==void 0&&(this.JSC$18556_prefCookie.set(this.cookiePrefix+this.innertubeClientName,G),this.JSC$18556_prefCookie.save())}}else _.qv(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18556_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18556_prefCookie.save()};
Wld[wR]=[UT,s7];var N1A=function(){Wld.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.K(N1A,Wld);var LlC=new _.Gz("PAGE_LOAD_TIME_TOKEN");var Gyd=function(G){this.signal=G;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;G.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.IQ(_.A0,this.disableLoggingAndSendPayload,1E4)};
Gyd.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.A0.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),etC(this))};
var etC=function(G){var e=_.go();if(e){var r={webClientComponentsData:{components:Array.from(G.ids,function(Z){return{id:Z}})}};
G.ids.clear();_.h_().visualElementStateChanged(e,r)}};var rBW=lZ({a11y:I8v});_.Zoo=RV(rBW)(rBW.a11y,{ephemeralActionSelector:function(G){return G.ephemeralAction||null}});var Oo8=lZ({continuation:mYl});var MOB=RV(Oo8)(Oo8.continuation,{continuationCommandSelector:function(G){return G.continuationCommand}});var VOW=new _.Gz("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var YF=function(G,e){this.JSC$18585_storeWithEntities=G;this.JSC$18585_commandHandler=e;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
YF.prototype.start=function(){this.JSC$18585_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
YF.prototype.observeDownloadingEntities=function(){var G=_.YZq(this.JSC$18585_storeWithEntities.getState().entities).map(function(Z){return yLq(Z)});
if(G.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var e={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:rNF()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.Bn(_.OK("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18585_commandHandler.resolveCommand(e)}this.downloadingEntities=G}else if(this.downloadingEntities.length){var r=cLU(this.JSC$18585_storeWithEntities.getState().entities).map(function(Z){return yLq(Z)});
this.downloadingEntities.filter(function(Z){return r.includes(Z)}).length&&(G={openPopupAction:cWp()},this.JSC$18585_commandHandler.resolveCommand(G));
this.downloadingEntities=[]}};
YF[wR]=[JZ,_.$1];var ht2;_.y2=function(G,e,r,Z,O,M,T,E){this.JSC$18588_playerApiPromise=G;this.JSC$18588_commandHandler=e;this.JSC$18588_screenManager=r;this.offlineWebClientEligibility=Z;this.JSC$18588_prefStorage=O;this.JSC$18588_actionRouter=M;this.entityTypeMap=T;this.JSC$18588_persistentStorePromiseAccessor=E;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
ht2=function(){var G=_.v_().resolve(_.y2),e;_.D(function(r){if(r.nextAddress==1)return G.downloadFailureListenerBound?r.return():r.yield(G.JSC$18588_playerApiPromise,2);e=r.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 O=_.Wn(Z.entityKey).entityId;O&&G.JSC$18588_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
O)}else if(_.R("kevlar_woffle")){O=G.JSC$18588_commandHandler;var M=O.resolveCommand;Z=Z.failureReason;var T=_.OK("TRANSFER_FAILED",void 0,"Download failed");Z==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(T=_.OK("STORAGE_FULL",void 0,"Storage full"));M.call(O,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Bn(T),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
G.downloadFailureListenerBound=!0;_.HL(r)})};
_.y2.prototype.deleteVideo=function(G,e){var r=this,Z,O,M;return _.D(function(T){if(T.nextAddress==1)return T.yield(r.JSC$18588_playerApiPromise,2);Z=T.yieldResult;M={offlineLoggingData:{offlineDeleteReason:(O=e)!=null?O:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return T.yield(Z.queueOfflineAction(G,r.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",M),0)})};
_.y2.prototype.pauseVideoDownload=function(G){var e=this,r;return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(e.JSC$18588_playerApiPromise,2);r=Z.yieldResult;r.pauseVideoDownload(G);_.HL(Z)})};
_.y2.prototype.resumeVideoDownload=function(G){var e=this,r;return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(e.JSC$18588_playerApiPromise,2);r=Z.yieldResult;return Z.yield(r.resumeVideoDownload(G),0)})};
_.y2[wR]=[_.Ub,_.$1,_.Qf,VOW,CT,bJ,ozE,R7];var TwB=new _.Gz("DOWNLOAD_STATE_STORE_TOKEN");var DIl=function(G,e){this.JSC$18608_persistentStorePromiseAccessor=G;this.store=e;this.upliftCompletionResolver=new _.G1},boo=function(){var G=_.v_().resolve(E8A),e;
_.D(function(r){switch(r.nextAddress){case 1:if(G.upliftImplPromise)return r.return(G.upliftImplPromise);_.jr(r,2);G.upliftImplPromise=iom(G);return r.yield(G.upliftImplPromise,4);case 4:G.upliftCompletionResolver.resolve();_.rL(r,3);break;case 2:throw e=_.k5(r),G.upliftCompletionResolver.reject(e),e;case 3:return r.return(G.upliftImplPromise)}})},iom=function(G){var e,r,Z;
return _.D(function(O){switch(O.nextAddress){case 1:return _.PX("LOGGED_IN")?O.yield(G.JSC$18608_persistentStorePromiseAccessor(),2):O.return();case 2:e=O.yieldResult;if(!e)return _.jq("vdeur"),O.return();_.jq("vdeus");_.jr(O,3);return O.yield(v8Y(e),5);case 5:r=O.yieldResult;G.store.dispatch(KFs(r));e.observe(function(M){f7F(G.store,M)});
_.rL(O,4);break;case 3:throw Z=_.k5(O),_.jq("vdeur"),Z;case 4:_.jq("vdeuc"),_.HL(O)}})},v8Y=function(G){var e;
return _.D(function(r){if(r.nextAddress==1)return r.yield(wIq(G),2);e=r.yieldResult;return r.return(e.reduce(function(Z,O){if(!O.data||!O.key||!O.entityType)return Z;Z[O.entityType]||(Z[O.entityType]={});Z[O.entityType][O.key]=O.data;return Z},{}))})};
DIl[wR]=[R7,_.YB];var E8A;E8A=new _.Gz("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.Au=new _.Gz("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var Fd=function(G,e){this.JSC$18611_persistentStorePromiseAccessor=G;this.transportService=e};
Fd.prototype.refresh=function(){var G=this,e,r,Z,O;return _.D(function(M){if(M.nextAddress==1)return _.PX("LOGGED_IN")?M.yield(G.JSC$18611_persistentStorePromiseAccessor(),2):M.return();if(M.nextAddress!=3)return(e=M.yieldResult)?M.yield(B4$(e),3):M.return();if((r=M.yieldResult)&&!(Number(r.data.refreshTimestampMs||0)<(0,_.vG)()))return M.return();Z={browseId:"SPaccount_downloads"};O=_.y4(px);_.LE(G.transportService,Z,O).then(function(T){var E;if(e&&(T==null?void 0:(E=T.responseContext)==null?void 0:
E.maxAgeSeconds)!==0){var b;E=(T==null?void 0:(b=T.responseContext)==null?void 0:b.maxAgeSeconds)||604800;b=String(Math.floor((0,_.vG)())+E*1E3);e.put("service:downloads_settings:fallback",new _.lB({innertubeResponse:T,refreshTimestampMs:b}))}});
_.HL(M)})};
Fd[wR]=[_.IK,_.v1];var Ju=function(G,e){this.JSC$18615_playerPromise=G;this.store=e;this.started=!1};
Ju.prototype.start=function(){var G=this,e;return _.D(function(r){if(r.nextAddress==1)return G.started?r.return():r.yield(G.JSC$18615_playerPromise,2);e=r.yieldResult;e.addEventListener("onOrchestrationBecameLeader",G.updateIsLeader.bind(G,!0));e.addEventListener("onOrchestrationLostLeader",G.updateIsLeader.bind(G,!1));if(e.isOrchestrationLeader)G.updateIsLeader(e.isOrchestrationLeader());else{var Z=new _.Cr("Function isOrchestrationLeader is undefined",{"player.isReady":e.isReady(),"player.playVideo":e.playVideo?
"defined":"undefined"});_.yx(Z);G.updateIsLeader(!1)}G.started=!0;_.HL(r)})};
Ju.prototype.updateIsLeader=function(G){this.store.dispatch(_.UK({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:G}}))};
Ju[wR]=[_.Ub,_.YB];var wOY=function(G,e){this.networkStatusManager=G;this.JSC$18618_prefStoragePromise=e;this.redirectsToPreload=["https://youtube.com"]},$Im=function(){var G=_.v_().resolve(wOY),e,r,Z,O,M,T;
_.D(function(E){switch(E.nextAddress){case 1:return E.yield(G.JSC$18618_prefStoragePromise,2);case 2:e=E.yieldResult;if(!(r=e)){E.jumpTo(3);break}return E.yield(e.get("yt-redirect-prefetch-id"),4);case 4:r=E.yieldResult;case 3:if(r||!G.networkStatusManager.isNetworkAvailable())return E.return();Z={cache:"reload",redirect:"manual"};O=_.h(G.redirectsToPreload);M=O.next();case 5:if(M.done){if(!e){E.jumpTo(0);break}return E.yield(e.set("yt-redirect-prefetch-id",!0,86400),0)}T=M.value;_.jr(E,8);return E.yield(_.O_.fetch(T,
Z),10);case 10:_.rL(E,6);break;case 8:_.k5(E);case 6:M=O.next(),E.jumpTo(5)}})};var SM8=function(G){this.JSC$18624_pageManager=G},qMm=function(G){var e=[];
tdp(["videoId","contentId"],G.JSC$18624_pageManager.data,new Set,e);return e},tOY=function(G){return qMm(G).filter(function(e){return e.contentType==="video"}).map(function(e){return e.contentId}).filter(function(e){return e!==void 0})};
SM8[wR]=[_.y$];var g8a=new _.Gz("PAGE_CONTENT_EXTRACTOR_TOKEN");var B$=function(G){G?(this.container=G,this.containerWasInjected=!0):this.containerWasInjected=!1};
B$.prototype.openDialog=function(G,e,r){var Z=this,O;return _.D(function(M){(O=Z.container)==null||O.openDialog(G,e,r);_.HL(M)})};
B$.prototype.closeDialog=function(){var G=this,e;return _.D(function(r){(e=G.container)==null||e.closeDialog();_.HL(r)})};
B$.prototype.isDialogOpen=function(){var G=this,e,r;return _.D(function(Z){return Z.return((r=(e=G.container)==null?void 0:e.isDialogOpen())!=null?r:!1)})};
B$[wR]=[_.bq(Ufc)];_.l2W=new _.Gz("POPUP_CONTROLLER_TOKEN");var Rto=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
Rto.prototype.registerPanel=function(G,e){if(G){this.panelMap.set(G,e);var r=this.pendingPanelResolvers.get(G);r&&(r.resolve(e),this.pendingPanelResolvers.delete(G))}};
Rto.prototype.getPanel=function(G){var e=this,r;return _.D(function(Z){return(r=e.panelMap.get(G))?Z.return(r):Z.return(jhm(e,G))})};
var jhm=function(G,e){var r,Z;return _.D(function(O){if(r=G.pendingPanelResolvers.get(e))return O.return(r.promise);Z=new _.G1;G.pendingPanelResolvers.set(e,Z);return O.return(Z.promise)})},a2C=function(G,e){Rto.call(this);
var r=this;this.popupController=G;this.persistentPanelController=e;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return r.panelMap.size}}};
_.K(a2C,Rto);_.V=a2C.prototype;_.V.getReloadContinuation=function(G){var e=this,r;return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(e.getPanel(G),2);r=Z.yieldResult;return Z.return(r.getReloadContinuation())})};
_.V.showPanel=function(G){var e=this,r,Z,O,M,T,E,b,w,q,t,g,l;return _.D(function(X){if(X.nextAddress==1){r=G;Z=r.identifier;O=r.panelContents;M=r.config;T=r.extras;E=r.panelUpdatableFields;b=r.updatePanelContinuationData;w=G.target;b&&e.updatePanelContinuationDatas.set(Z,b);if((q=M)==null?0:(t=q.engagementPanelPopupPresentationConfig)==null?0:t.popupType)if(g=M.engagementPanelPopupPresentationConfig.popupType,w===void 0&&(w=document.body),g==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!e.persistentPanelController)return _.FH(new _.Cr("Persistent panel controller is not available.")),
X.return();var H=e.persistentPanelController;H.persistentPanelIdentifiers.has(Z)||(H.persistentPanelWrapper.appendChild(H.engagementPanelElement({panelIdentifier:Z},{isPersistentPanel:!0,hideDelayMs:500,overscrollContain:!0})),H.persistentPanelIdentifiers.add(Z));a:switch(_.oH.currentPageSubTypeSelector(H.store.getState())){case "watch":var I="WATCH";break a;default:I="APP"}_.XOA(H,I);H.store.dispatch(CNy(!0))}else{if(g==="PANEL_POPUP_TYPE_DIALOG"||g==="PANEL_POPUP_TYPE_DROPDOWN"){H=X.return;I=e.popupController;
var C=I.openPopup;a:switch(g){case "PANEL_POPUP_TYPE_DIALOG":var u="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":u="DROPDOWN";break a;default:throw Error("rj`"+g);}return H.call(X,C.call(I,Z,O,u,w))}_.FH(new _.Cr("Popup type "+g+" not supported in PanelController."))}return X.yield(e.getPanel(Z),2)}l=X.yieldResult;(O||E)&&l.updatePanel(O,!1,T,E);l.showPanel(T);_.HL(X)})};
_.V.hidePanel=function(G){var e=this,r,Z,O,M;return _.D(function(T){if(T.nextAddress==1)return r=G,Z=r.identifier,T.yield(e.getPanel(Z),2);O=T.yieldResult;O.hidePanel();e.popupController.closePopup(Z);(M=e.persistentPanelController)!=null&&M.persistentPanelIdentifiers.has(Z)&&M.store.dispatch(CNy(!1));_.HL(T)})};
_.V.isVisible=function(G,e){var r=this,Z;return _.D(function(O){if(O.nextAddress==1)return e&&!r.panelMap.has(G)?O.return(!1):O.yield(r.getPanel(G),2);Z=O.yieldResult;return O.return(Z.isVisible())})};
_.V.updatePanel=function(G){var e=this,r,Z,O,M,T,E,b,w;return _.D(function(q){if(q.nextAddress==1){r=G;Z=r.identifier;O=r.panelContents;M=r.shouldFocus===void 0?!1:r.shouldFocus;T=r.extras;E=r.panelUpdatableFields;b=r.updatePanelContinuationData;if(!O&&!E)return q.return();b&&e.updatePanelContinuationDatas.set(Z,b);_.R("enable_ai_companion")&&Z==="PAai_companion"&&_.DV.remove("youchat_messages_section");return q.yield(e.getPanel(Z),2)}w=q.yieldResult;w.updatePanel(O,M,T,E);O&&_.R("enable_ai_companion")&&
e.registerPanelContent(Z,O);_.HL(q)})};
_.V.registerPanelContent=function(G,e){G&&this.panelContentMap.set(G,e)};
_.V.unregisterPanelContent=function(G){this.panelContentMap.delete(G)};
_.V.getPanelContent=function(G){return this.panelContentMap.get(G)};
_.V.getUpdatePanelContinuationData=function(G){return this.updatePanelContinuationDatas.get(G)};
a2C[wR]=[_.l2W,_.bq(_.cZ)];var xF=function(G,e){this.innertubeTransportService=G;this.JSC$18643_screenManager=e},KVW=function(G){var e;
return!((e=G.panelLoadingStrategy)==null||!e.requestTemplate)};
xF.prototype.makeRequest=function(G){var e=this,r,Z;return _.D(function(O){switch(O.nextAddress){case 1:if(!KVW(e)){O.jumpTo(2);break}_.jr(O,3);return O.yield(_.p1(e.innertubeTransportService,G),5);case 5:return r=O.yieldResult,r?O.return(r.content):(_.yx(Error("sj")),O.return(void 0));case 3:Z=_.k5(O),_.yx(Z);case 2:return O.return(void 0)}})};
xF.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
xF.prototype.execute=function(G){var e=this,r,Z,O,M,T,E,b,w,q,t;return _.D(function(g){if(g.nextAddress==1){r=G;Z=r.data;O=r.fallbackVe;M=r.parentVe;T=r.createScreenConfig;E=r.renderFn;b=r.command;e.panelLoadingStrategy=Z;var l,X,H=((l=e.panelLoadingStrategy)==null?0:l.screenVe)?(X=e.panelLoadingStrategy)==null?void 0:X.screenVe:O;H&&_.aC(e.JSC$18643_screenManager,H,M,T);return(w=e.getContent())?g.yield(E(w),2):g.jumpTo(2)}return g.nextAddress!=4?KVW(e)?g.yield(e.makeRequest(b),4):g.return():(t=q=
g.yieldResult)?g.yield(E(t),0):g.return()})};
xF[wR]=[_.v1,_.Qf];var f2W;f2W=function(G,e){this.engagementPanelElement=G;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%"};
_.XOA=function(G,e){var r=G.persistentPanelContainerMap.get(e);r?r.contains(G.persistentPanelWrapper)||(G=G.persistentPanelWrapper,_.A_=!0,_.F0.set(G,!0),r.insertBefore(G,null),_.F0.delete(G),_.A_=!1):_.FH(new _.Cr("Persistent panel container not found for surface "+e+"."))};
f2W[wR]=[zx3,_.YB];var P$=function(){};
P$.prototype.getContainer=function(){return _.Ab()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
P$.prototype.openSheet=function(G,e){var r=this,Z,O,M,T,E,b;return _.D(function(w){switch(w.nextAddress){case 1:return Z={stack:[],error:void 0,hasError:!1},_.jr(w,2,3),O=hB,w.yield(r.isSheetOpen(),5);case 5:M=w.yieldResult;ifW(Z,jci(O));if(M&&!_.R("delay_sheet_open_killswitch")){if(_.R("web_close_sheet_if_same_target_killswitch")&&e&&r.currentTarget===e)return(T=r.getContainer())==null||T.closeSheet(),w.return();r.pendingData={data:G,target:Vz8(r,e)};return w.return()}G.viewModel&&(G={viewModel:G.viewModel,
sheetPosition:G.sheetPosition});(E=r.getContainer())==null||E.openSheet(G,e);r.currentTarget=e;case 3:_.Xa(w);bfy(Z);_.fm(w,0);break;case 2:b=_.k5(w),Z.error=b,Z.hasError=!0,w.jumpTo(3)}})};
P$.prototype.closeSheet=function(){var G=this,e;return _.D(function(r){if(r.nextAddress==1)return r.yield((e=G.getContainer())==null?void 0:e.closeSheet(),2);if(r.nextAddress!=4)return G.currentTarget=void 0,!G.pendingData||_.R("delay_sheet_open_killswitch")?r.jumpTo(0):r.yield(G.openSheet(G.pendingData.data,G.pendingData.target),4);G.pendingData=void 0;_.HL(r)})};
P$.prototype.isSheetOpen=function(){var G=this,e,r;return _.D(function(Z){return Z.return((r=(e=G.getContainer())==null?void 0:e.isSheetOpen())!=null?r:!1)})};
var Vz8=function(G,e){if(!_.R("web_parent_target_for_sheets"))return e;var r,Z;return(Z=(r=G.getContainer())==null?void 0:r.getParentTarget(e))!=null?Z:e};var z4=window.documentPictureInPicture;var kd$=_.Cp(["dark"]),H4f=_.Cp(["system-icons"]),dVS=_.Cp(["typography"]),ons=_.Cp(["lang"]),stF=_.Cp(["style"]),aaF=_.Cp(["dir"]),XIA=_.Cp(["rounded-container"]),KDq=_.Cp(["style"]),Ia4=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],Ur=function(G){this.JSC$18660_clientRoot=G;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
Ur.prototype.openWindow=function(G){var e=this,r,Z;return _.D(function(O){switch(O.nextAddress){case 1:if(!window.documentPictureInPicture||!_.oy()||e.currentPipWindow)return O.return(!1);_.jr(O,2);return O.yield((Z=z4?z4:null)==null?void 0:Z.requestWindow(G),4);case 4:r=O.yieldResult;_.rL(O,3);break;case 2:return _.k5(O),O.return(!1);case 3:if(!r)return O.return(!1);r.addEventListener("pagehide",function(){kya(e)});
r.addEventListener("resize",e.handlePipWindowResize);QtS(r);CP_(r);SY_(r);return O.yield(jtU(r),5);case 5:if(!gnA())return O.return(!1);e.currentPipWindow=r;e.JSC$18660_eventForwarder=pI4(r,e.JSC$18660_clientRoot);e.pipWindowResizeDelay=new _.wE(function(){e.currentPipWindow&&_.Pi(e.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.kf(e.currentPipWindow.innerWidth,e.currentPipWindow.innerHeight)])},r);
e.pipWindowResizeDelay.start();return O.return(!0)}})};
Ur.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var kya=function(G){if(G.currentPipWindow){var e,r;(e=z4?z4:null)==null||(r=e.window)==null||r.close();G.currentPipWindow.removeEventListener("resize",G.handlePipWindowResize);var Z;(Z=G.pipWindowResizeDelay)==null||Z.dispose();G.pipWindowResizeDelay=void 0;var O;(O=G.JSC$18660_eventForwarder)==null||O.stop();G.JSC$18660_eventForwarder=void 0;e=_.h(G.onCloseCallbacks);for(r=e.next();!r.done;r=e.next())r=r.value,r();G.onCloseCallbacks=[];G.currentPipWindow=null}};
Ur.prototype.getWindow=function(){return this.currentPipWindow};
var Ho8=function(G,e){var r;(r=G.onCloseCallbacks)==null||r.push(e)};
Ur.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.oy()};
_.iY.Object.defineProperties(Ur.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Ur[wR]=[bAW];var dIH=new _.Gz("PICTURE_IN_PICTURE_CONTROLLER");var uUU=function(G,e){this.lengthY=this.lengthX=0;this.lengthX=e.x-G.x;this.lengthY=e.y-G.y};var o8H=function(){},$KC=function(G,e){var r;
(r=G.headerElement)==null||r.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:e}))};var shY=function(){};
shY.prototype.openPopup=function(G,e,r,Z){var O=this,M;return _.D(function(T){if(!O.container)return T.return();M={openPopupAction:{popup:e,popupType:r,uniqueId:G}};return T.return(O.container.handleOpenPopupAction(M,Z))})};
shY.prototype.closePopup=function(G){this.container&&this.container.closePopup(G)};var QhV=function(){this.openTunnels=new Map},fPa=function(G,e,r){if(Aka(r)){var Z=_.Wp(r,"gclid");
r={handleEvent:function(E){e&&!e.closed&&typeof e.postMessage==="function"&&E&&E.origin&&E.source===e&&E.data&&E.data.action==="gcl_setup"&&e.postMessage(Object.assign({},{action:"gcl_transfer"},Z&&{gclid:Z},{gadSource:2}),E.origin)}};
for(var O=_.h(G.openTunnels),M=O.next();!M.done;M=O.next()){var T=_.h(M.value);M=T.next().value;T=T.next().value;if(M.closed)try{window.removeEventListener("message",T),G.openTunnels.delete(M)}catch(E){_.yx(E)}}e&&G.openTunnels.size<15&&(G.openTunnels.set(e,r),window.addEventListener("message",r))}};var I2Y=function(){this.clientParams=new Map},zmW=function(G){for(var e=_.h(G.clientParams.keys()),r=e.next();!r.done;r=e.next())r=r.value,r.startsWith("yt-mini-app-share")&&G.clientParams.delete(r)};var pOB=function(G,e){_.pB.call(this);var r=this;this.shortsController=G;this.storeWithShorts=e;G=_.IC(this.storeWithShorts,_.WqF,function(Z){if(Z){var O,M=(O=r.shortsController.getRoot())==null?void 0:O.getPlayer(),T;(O=(T=r.shortsController.alternativePlayerContainerElement)==null?void 0:T.getPlayerContainer())&&(M==null||M.appendTo(O))}else{var E;T=(E=r.shortsController.alternativePlayerContainerElement)==null?void 0:E.getPlayerContainer().querySelector("#player");O=r.shortsController.activeIndex;
(E=(M=r.shortsController.getRoot())==null?void 0:M.querySelector('ytd-reel-video-renderer[id="'+O+'"] #player-container'))&&(T==null||T.appendTo(E,void 0,!0))}});
this.addOnDisposeCallback(G)};
_.K(pOB,_.pB);var zO=function(G,e,r,Z){var O=this;this.storeWithShorts=G;this.ephemeralResponseStore=e;this.innertubeTransportService=r;this.innertubeTransportLoader=Z;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.Eb(_.JI);this.isShortsPipActive=_.Eb(_.Be);this.nextReelVe=_.L1(56921);this.prevReelVe=_.L1(56922);this.backButtonVe=_.L1(22156);this.TEST_ONLY={getActiveModules:function(){return O.activeModules}}},CW2=function(G){G.unsubscribeFromStore=
_.IC(G.storeWithShorts,_.zO_,function(e){G.initOrDisposeActiveModules(e);
!e&&G.storeWithShorts.getState().shorts.isFullscreen&&(_.FR(document.documentElement),G.storeWithShorts.dispatch(_.c$P(!1)))});
G.initOrDisposeActiveModules(_.zO_(G.storeWithShorts.getState()))},OBm,MKW,uQo;
zO.prototype.initOrDisposeActiveModules=function(G){G?this.activeModules.push(new pOB(this,this.storeWithShorts)):(_.DD(this.activeModules),this.activeModules.length=0)};
zO.prototype.registerRootElement=function(G){this.rootElement=G;CW2(this)};
zO.prototype.getRoot=function(){return this.rootElement};
zO.prototype.setActiveIndex=function(G){this.activeIndex=G};
_.LdH=function(G,e){var r,Z,O,M,T,E,b;return _.D(function(w){switch(w.nextAddress){case 1:return r=new Z1,(Z=r.JSC$14178_getStoreKey(e))&&G.ephemeralResponseStore.has(Z)?w.yield(G.ephemeralResponseStore.get(Z),7):w.yield(uQo(G,e),4);case 4:O=w.yieldResult;if(!Z){w.jumpTo(3);break}M=W5(O,3600);return w.yield(G.ephemeralResponseStore.put(Z,new _.lB(M)),3);case 7:O=(T=w.yieldResult)==null?void 0:_.AZ(T);case 3:return((E=O)==null?0:E.replacementEndpoint)&&(b=_.a(O.replacementEndpoint,_.DC))&&O.sequenceContinuation&&
(b.sequenceParams=O.sequenceContinuation),w.return(O)}})};
OBm=function(G,e){e=(new Or).JSC$14178_getStoreKey(e);return!!e&&G.ephemeralResponseStore.has(e)};
MKW=function(G,e,r){var Z,O,M,T,E;_.D(function(b){if(b.nextAddress==1){Z=new Or;O=Z.JSC$14178_getStoreKey(e);if(!O)return b.return();if(r.reelWatchSequenceResponse)return M=W5(r.reelWatchSequenceResponse,3600),G.ephemeralResponseStore.put(O,new _.lB(M)),b.jumpTo(0);if(!G.ephemeralResponseStore.has(O))return b.jumpTo(0);E=r;return b.yield(G.ephemeralResponseStore.get(O),4)}E.reelWatchSequenceResponse=(T=b.yieldResult)==null?void 0:_.AZ(T);_.HL(b)})};
uQo=function(G,e){var r=r===void 0?{}:r;var Z,O,M;return _.D(function(T){switch(T.nextAddress){case 1:if(G.innertubeTransportService){Z=G.innertubeTransportService;T.jumpTo(2);break}if(!G.innertubeTransportLoader){_.WX(Error("uj"));T.jumpTo(2);break}return T.yield(G.innertubeTransportLoader(),4);case 4:Z=T.yieldResult;case 2:return T.yield((O=Z)==null?void 0:_.p1(O,e,r),5);case 5:return M=T.yieldResult,T.return(M)}})};
_.iY.Object.defineProperties(zO.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
zO[wR]=[BSl,_.g9,_.bq(_.v1),_.bq(gqc)];_.n8C=new _.Gz("STORAGE_MANAGER_TOKEN");var TnU=["touchmove","scroll"];var mIA=!1;var UVy=!1;var hoS={onSpanEnd:function(G){G.parentId==null&&(mIA||(xVi(),setInterval(xVi,6E5),mIA=!0),zM4(G,"web_tracing_action"))}};var eoq=URL.createObjectURL;var M3F,cBB={traceAllComponents:_.R("web_tracing_all_components"),exportToCsi:_.R("web_tracing_export_to_csi"),enabledSpansArray:_.gR("web_tracing_enabled_spans"),exportToDevTools:_.R("web_tracing_export_to_devtools"),maxBreadcrumbs:_.qt("tel_max_breadcrumbs",0)};M3F=new G9_(cBB);var V3p=_.R("web_shorts_enable_tracing");var YMH=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},yBW;
YMH.prototype.enqueue=function(G,e){e===1?this.currentPersistentToast=G:this.queue.push(G);this.openToast()};
YMH.prototype.openToast=function(){var G;(G=this.currentToast)!=null&&G.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.W$=new _.Gz("TOAST_MANAGER_TOKEN");var ABA=new _.Gz("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var FVa=new _.Gz("VIEW_TRANSITION_COORDINATOR_TOKEN");var JBd=function(G){this.config=G;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;G=_.h(G.transitionConfigs);for(var e=G.next();!e.done;e=G.next())e=_.h(e.value).next().value,this.transitionTasksMap.set(e,[])};
JBd.prototype.registerElement=function(G,e,r){r=r===void 0?!1:r;for(var Z=_.h(Object.keys(e)),O=Z.next(),M={};!O.done;M={viewTransitionName:void 0},O=Z.next()){O=O.value;M.viewTransitionName=e[O];var T=this.elementTasksMap.get(G),E=void 0;if((E=T)==null?0:E.has(O)){_.AG(new _.Cr("Element already registered for transition",G.tagName,O));break}T=T||new Map;T.set(O,{beforeTransition:function(b){return function(){G.style.viewTransitionName=b.viewTransitionName}}(M),
afterTransition:function(){G.style.viewTransitionName&&(G.style.viewTransitionName="")},
runOnce:r});this.elementTasksMap.set(G,T)}};
_.KW=function(G,e){var r=G.elementTasksMap.get(e);r&&(r.clear(),r.size===0&&G.elementTasksMap.delete(e))};
JBd[wR]=[ABA];var xIY=_.y(function(G){var e=_.hT("yt-expandable-metadata-header-view-model"),r=_.ev(function(Z){if(!_.g8(_.tI(Z),e.value,["A".toString(),"BUTTON".toString()])){var O;(O=G.expandedCallback)==null||O.call(G,!1)}});
return _.v("yt-expandable-metadata-header-view-model",{el:e,class:"ytExpandableMetadataHeaderViewModelHost"},_.v(_.S,{cond:function(){return G.expanded()},
then:function(){return _.v("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":r},_.v("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.v(_.S,{cond:function(){return G.data().expandedTitleImage},
then:function(Z){return _.v("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.v(_.nC,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:Z}))}}),_.v("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.v("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.v(_.Wh,{text:function(){return G.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.v(_.Wh,{text:function(){return G.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.v(_.Wh,{text:function(){return G.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.v("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.v(_.E2,{data:function(){return G.data().infoButton}},{buttonViewModel:_.wF}),_.v(_.E2,{data:function(){return G.data().collapseButton}},{buttonViewModel:function(Z){return _.v(_.wF,{data:Z.data,
onClick:function(){var O;(O=G.expandedCallback)==null||O.call(G,!1)}})}})))},
else:function(){return _.v(Bw8,Object.assign({},G))}}))},"lg"),PWl=_.y(function(G){return _.v("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.v(_.S,{cond:function(){return G.data().collapsedLabelImage},
then:function(e){return _.v("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.v(_.nC,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:e,alt:""}))}}),_.v(_.Wh,{text:function(){return G.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"mg"),Bw8=_.y(function(G){return _.v("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.ev(function(){var e;return void((e=G.expandedCallback)==null?void 0:e.call(G,!0))})},_.v("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.v(_.S,{cond:function(){return G.data().collapsedImage},
then:function(e){return _.v("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.v(_.nC,{height:20,preserveHeight:!0,preserveWidth:!0,data:e,alt:""}))}}),_.v(_.S,{cond:function(){return G.data().showLeadingCollapsedLabel},
then:function(){return _.v(PWl,Object.assign({},G))}}),_.v("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.v(_.Wh,{text:function(){return G.data().collapsedTitle}}))),_.v("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.v(_.S,{cond:function(){return!G.data().showLeadingCollapsedLabel},
then:function(){return _.v(PWl,Object.assign({},G))}}),_.v(_.E2,{data:function(){return G.data().infoButton}},{buttonViewModel:_.wF}),_.v(_.E2,{data:function(){return G.data().expandButton}},{buttonViewModel:function(e){return _.v(_.wF,{data:e.data,
onClick:function(){var r;(r=G.expandedCallback)==null||r.call(G,!0)}})}})))},"ng");_.UIY=_.y(function(G){var e=_.h(_.Ob(function(){return G.data().initiallyExpanded})),r=e.next().value,Z=e.next().value,O,M=(O=_.v_().resolve(_.bq(_.Ig)))==null?void 0:O(),T=function(){var E=G.data().colorData;
if(E)return M?E==null?void 0:E.darkColorPalette:E==null?void 0:E.lightColorPalette};
return _.v("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.Mk({"background-color":function(){var E=T();return(E==null?0:E.section2Color)?_.jF(E.section2Color):""}})},_.v(_.E2,{data:function(){return G.data().header}},{expandableMetadataHeaderViewModel:function(E){return _.v(xIY,{data:E.data,
expanded:function(){return!!r()},
expandedCallback:function(b){Z(b)}})}}),_.v(_.S,{cond:function(){return r()},
then:function(){return _.v("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.v(_.E2,{data:function(){return G.data().expandedContent}},{horizontalShelfViewModel:function(E){return _.v(_.WP,{data:E.data,
includeMargin:!0,forceNarrowLayout:!0,palette:T})},
videoSummaryContentViewModel:function(E){return _.v(P5y,{data:E.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(E){return _.v(_.Rk,{data:E.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(E){return _.v(_.ViC,{data:E.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.v(_.E2,{data:function(){return G.data().expandedBottomButtons}},{buttonViewModel:function(E){return _.v("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.v(_.wF,{data:E.data}))}}))}}))},"og");var ztH=_.y(function(G){var e=G.text;var r=G.marqueeSpacing;var Z=G.scrollDelay;var O=G.scrollDuration;var M=G.enableMarqueeScroll;G=G.large;var T=_.h(_.XQ(!1,void 0,"WyNYFf")),E=T.next().value,b=T.next().value,w=_.h(_.XQ(0,void 0,"OoTdhe"));T=w.next().value;var q=w.next().value,t=_.hT("marquee-scroll");w=_.hT("div");var g=_.hT("span"),l=_.v_().resolve(_.CC);_.Y8(function(){if(M()){var I=g.value.getBoundingClientRect().width,C=t.value.getBoundingClientRect().width;if(I>C){var u=(l==="ltr"?-1:1)*(I+
(r?r():16));Promise.resolve().then(function(){b(!0);q(u)})}}},"dv0Anf");
var X={},H={};return _.v("marquee-scroll",{class:_.LC("ytMarqueeScrollHost",(X.ytMarqueeScrollHostLarge=G,X)),el:t},_.v("div",{id:"marquee-scroll-inner-container",class:_.LC("ytMarqueeScrollInnerContainer",(H.ytMarqueeScrollAnimationEnabled=function(){return E()},H)),
el:w,style:_.Mk({gap:r?(0,_.Jm)(r):"16px","animation-duration":O?L1C(O):"16s","animation-delay":Z?L1C(Z):"3s","--marquee-translate":(0,_.Jm)(T)})},_.v("span",{el:g,dir:"auto"},_.v(_.Wh,{text:e,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.v(_.S,{cond:E,then:function(){return _.v("span",{"aria-hidden":"true",dir:"auto"},_.v(_.Wh,{text:e,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"qg");_.WVW=_.y(function(G){var e=G.data;var r=G.overlayDensity;G=_.ev(function(){e().onTapCommand&&_.HQ(e().onTapCommand);return!1});
var Z=_.FRU(),O=function(){return(r==null?void 0:r())===1?22:16},M={};
return _.v("reel-sound-metadata-view-model",{class:_.LC("ytReelSoundMetadataViewModelHost",(M.ytReelSoundMetadataViewModelHostLarge=function(){return(r==null?void 0:r())===1},M)),
"on:click":G,tabindex:0,role:"button","on:keydown":Z},_.v("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.v(_.S,{cond:function(){return e().musicIcon},
then:function(T){return _.v(_.nC,{data:T,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:O})}}),_.v("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.v(ztH,{text:function(){return e().soundMetadata},
enableMarqueeScroll:function(){return!!e().enableMarqueeScroll},
large:function(){return(r==null?void 0:r())===1}}))))},"rg");var NwW,LVo,NT,ZzB,M1A,rH2,Txd,hNd;NwW=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];LVo=_.qt("wil_icon_max_concurrent_fetches",Infinity);
NT=function(G,e,r){var Z=this;this.iconSet=G;this.appDirection=e;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.O_.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.R("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.R("wil_icon_network_first");this.renderWhenIdle=_.R("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.R("wil_icon_load_immediately");this.isPurging=!1;G=function(){Z.cacheStorageAvailable&&(Z.cacheStorageAsync=_.O_.caches.open("yt-icons").then(function(M){return Z.cacheStorageSync=M}).catch(function(){Z.cacheStorageAvailable=!1}))};
r=(r==null?void 0:r())||{};r=_.h(Object.entries(r));for(e=r.next();!e.done;e=r.next()){var O=_.h(e.value);e=O.next().value;O=O.next().value;O=HX(O);Gb2(O);this.iconCache[e]=O.cloneNode(!0)}this.isPurging=eNd(this);this.isPurging instanceof Promise?this.isPurging.then(G):G()};
_.Yrs=function(G,e){var r=G.resolveIcon(e);return r?G.renderingMode===1?rH2(G,r,G.renderingMode):(e=G.iconCache[r.url])?(e=e.cloneNode(!0),ZzB(G,e),rH2(G,r,G.renderingMode,e)):_.Oz2(G,r).then(function(Z){var O=Z?0:1;ZzB(G,Z);return rH2(G,r,O,Z)}):(_.AG(new _.Cr("Icon not found",{iconShape:e})),function(){})};
ZzB=function(G,e){if(e){G.counter+=1;G="_yt"+G.counter;e=[e].concat(_.mY(e.getElementsByTagName("*")));e=_.h(e);for(var r=e.next();!r.done;r=e.next())if(r=r.value,r.tagName==="style"&&r.textContent)r.textContent=M1A(r.textContent,G,!0);else for(var Z=_.h(r.attributes),O=Z.next();!O.done;O=Z.next()){O=O.value;O.name==="id"&&(O.value+=G);["mask","fill","clip-path"].includes(O.name)&&(O.value=M1A(O.value,G));if(O.name==="style"){var M=r.style;try{M.cssText=M1A(M.cssText,G,!0)}catch(q){var T=void 0,E=
void 0,b=void 0,w=void 0;L8({error:((T=q)==null?void 0:(b=(E=T).toString)==null?void 0:b.call(E))||"",el:r.outerHTML,style:!!M,cssText:(w=M)==null?void 0:w.cssText})}}O.name==="xlink:href"&&(O.value=O.value.replace(/#(.*)/,"#$1"+G))}}};
M1A=function(G,e,r){var Z=/url\(["']?#(.*?)["']?\)/;(r===void 0?0:r)&&(Z=/url\(["']?#(.*?)["']?\)/g);return G.replace(Z,"url(#$1"+e+")")};
rH2=function(G,e,r,Z){return function(O,M){var T;var E=Object.assign({},{iconWidth:e.size+"px",iconHeight:e.size+"px",iconDisplay:"block"},M,{iconColor:(T=M==null?void 0:M.iconColor)!=null?T:"currentcolor"});T=_.Hp("DIV");M=E.iconColor;var b=E.iconFilter;E="width: "+E.iconWidth+"; height: "+E.iconHeight+"; display: "+E.iconDisplay+";";b&&(E+=" filter: "+b+";");r===0&&(E+=" fill: "+M+";");r===1&&(b=e.url,E+=" -webkit-mask: url("+b+") no-repeat center / cover; mask: url("+(b+") no-repeat center / cover; background-color: ")+
M);e.allowMirroring&&G.appDirection==="rtl"&&(E+=" transform: scale(-1, 1); transform-origin: center center;");T.setAttribute("style",E);r===0&&Z&&T.appendChild(Z);O.appendChild(T)}};
_.Oz2=function(G,e){var r,Z,O;return _.D(function(M){r=function(T){return zq(T)};
Z=e.url;if(!V1a(Z))throw Error("xj");O=hNd(G,Z);return M.return(O.then(function(T){return T.clone().text()}).then(function(T){var E=r(T);
T=e.size;var b=_.Hp("DIV");_.Te(b,E);E=_.d1(b.firstElementChild!==void 0?b.firstElementChild:_.qwP(b.firstChild,!0));T=Gb2(E,T);G.iconCache[Z]=T.cloneNode(!0);delete G.responsePromises[Z];return T}).catch(function(){}))})};
Txd=function(G){var e,r=(e=G.requestAninmationFrameResolver)==null?void 0:e.promise;r||(G.requestAninmationFrameResolver=new _.G1,r=G.requestAninmationFrameResolver.promise,_.O_.requestAnimationFrame(function(){var Z;(Z=G.requestAninmationFrameResolver)==null||Z.resolve();G.requestAninmationFrameResolver=null}));
return r};
hNd=function(G,e){var r,Z;return _.D(function(O){if(O.nextAddress==1)return G.waitForAnimationFrame?O.yield(Txd(G),2):O.jumpTo(2);r=G.responsePromises[e];r||(Z=function(){var M,T,E;return _.D(function(b){switch(b.nextAddress){case 1:if(!G.cacheStorageAvailable){M=void 0;b.jumpTo(2);break}if(T=G.cacheStorageSync){b.jumpTo(3);break}return b.yield(G.cacheStorageAsync,4);case 4:T=b.yieldResult;case 3:M=T;case 2:return E=M,G.isNetworkFirstStrategy?b.return(G.fetchAndUpdateCache(e,E).catch(G.getCacheStorageResponse.bind(G,
e,E))):b.return(G.getCacheStorageResponse(e,E).catch(G.fetchAndUpdateCache.bind(G,e,E)))}})},r=G.renderWhenIdle?new Promise(function(M,T){_.IQ(_.A0,function(){Z().then(M).catch(T)},10)}):Z(),G.responsePromises[e]=r);
return O.return(r.catch(function(M){delete G.responsePromises[e];L8({error:(M==null?0:M.toString)?M.toString():"",url:e});throw M;}))})};
NT.prototype.fetchAndUpdateCache=function(G,e){var r=this;return _.D(function(Z){return Z.return(D0W(r,G).then(function(O){EZW(r,G,O,e);return O}))})};
var D0W=function(G,e){var r;return _.D(function(Z){if(G.numFetches<LVo)return G.numFetches+=1,Z.return(iz8(G,e).finally(function(){--G.numFetches;if(Object.keys(G.queuedResponseResolvers).length){var O=Object.keys(G.queuedResponseResolvers)[0],M=G.queuedResponseResolvers[O];delete G.queuedResponseResolvers[O];M.resolve(D0W(G,O))}}));
r=new _.G1;G.queuedResponseResolvers[e]=r;return Z.return(r.promise)})},iz8=function(G,e,r){r=r===void 0?2:r;
var Z;return _.D(function(O){Z={credentials:"same-origin",priority:"low"};return O.return(_.O_.fetch(e,Z).then(function(M){return M.ok?M:Promise.reject(Error("yj`"+M.status+"`"+M.statusText))}).catch(function(M){if(r>0)return iz8(G,e,r-1);
throw M;}))})},EZW=function(G,e,r,Z){_.D(function(O){return Z?O.return(new Promise(function(M){_.IQ(_.A0,function(){var T,E;
return _.D(function(b){switch(b.nextAddress){case 1:if(!G.isNetworkFirstStrategy){T=void 0;b.jumpTo(2);break}return b.yield(Z.match(e).catch(function(){}),3);
case 3:T=b.yieldResult;case 2:if(E=T){b.jumpTo(4);break}return b.yield(Z.put(e,r.clone()).catch(function(w){L8({error:(w==null?0:w.toString)?w.toString():"",url:e})}),4);
case 4:M(),_.HL(b)}})},50)})):O.return()})};
NT.prototype.getCacheStorageResponse=function(G,e){return _.D(function(r){return e?r.return(e.match(G).then(function(Z){return Z&&Z.ok?Z:Promise.reject()})):r.return(Promise.reject())})};
var Gb2=function(G,e){e===void 0||G.getAttribute("viewBox")||G.setAttribute("viewBox","0 0 "+e+" "+e);G.setAttribute("focusable","false");G.setAttribute("aria-hidden","true");try{G.style.pointerEvents="none",G.style.display="inherit",G.style.width="100%",G.style.height="100%"}catch(O){var r;L8({error:((r=O)==null?0:r.toString)?O.toString():""});try{G.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(M){var Z;L8({error:((Z=M)==null?0:Z.toString)?M.toString():
""})}}return G},V1a=function(G){for(var e=_.h(NwW),r=e.next();!r.done;r=e.next())if(G.startsWith(r.value)&&G.endsWith(".svg"))return!0;
return!1};
NT.prototype.resolveIcon=function(G){return this.iconSet.resolveIcon(G)};
var L8=function(G){_.FH(new _.Cr("Error in IconManager",G))},eNd=function(G){if(_.R("wil_icons_cache_purge_killswitch"))return!1;
try{var e=_.O_.localStorage}catch(M){return!1}if(!e||!G.cacheStorageAvailable)return!1;var r=function(M){try{var T;(T=e)==null||T.setItem("yt-icons-last-purged",M.toString())}catch(b){var E;L8({error:((E=b)==null?0:E.toString)?b.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)),r(Z),!1;if(function(M,T){M=new Date(M);T=new Date(T);return T.getMonth()-M.getMonth()+12*(T.getFullYear()-M.getFullYear())}(Z,Date.now())<3)return!1;
try{return _.O_.caches.delete("yt-icons").then(function(M){M&&r(Date.now());return M}).catch(function(){return!1}).finally(function(){G.isPurging=!1})}catch(M){var O;
L8({error:((O=M)==null?0:O.toString)?M.toString():""});return!1}};
NT[wR]=[Ifa,_.CC,_.bq(uaa)];_.Gl=function(G,e){this.iconManager=G;this.iconsToFetch=e};
_.Gl[wR]=[_.LR,_.bq(C7m)];var bzd=function(){};var vZm=function(G,e,r){this.requestKey=G;this.zih=e;this.uqJ=r;this.kAN=function(){return new XMLHttpRequest};
this.hV5=void 0;this.iJh=[]};
vZm.prototype.getLatestChallengeResponse=function(){return this.uqJ};
var lWP=function(G,e,r){var Z,O,M,T;return _.D(function(E){if(E.nextAddress==1){_.Rl("attestation_challenge_fetch");_.jq("att_fs",void 0,"attestation_challenge_fetch");if(!G.hV5)throw new _.HK(9,"Missing fetcher");return E.yield(G.hV5(e,r),2)}Z=E.yieldResult;M=(O=Z)==null?void 0:O.bgChallenge;if(!M)throw new _.HK(15,"Missing field");G.uqJ=Z;G.iJh.forEach(function(b){b(Z)});
T=ypS(M);_.jq("att_fc",void 0,"attestation_challenge_fetch");lp("attestation_challenge_fetch");return E.return(T)})},AdE=function(G,e){var r,Z,O,M,T;
return _.D(function(E){switch(E.nextAddress){case 1:r=new tA(100,3E5,.25,2),Z=void 0;case 2:if(!(r.currBackoffCount_<10)){E.jumpTo(4);break}_.jr(E,5);if(!(r.currBackoffCount_>0)){E.jumpTo(7);break}return E.yield(EYq(r.getValue()),7);case 7:return E.yield(wXm(G,e),9);case 9:return O=E.yieldResult,E.return(O);case 5:M=_.k5(E);M instanceof _.HK?Z=M:(T=M instanceof Error?M.message:"Unknown",Z=new _.HK(9,T));o8y(r);E.jumpTo(2);break;case 4:if(Z)throw Z;throw new _.HK(9,"Unknown error");}})},wXm=function(G,
e){e=DtW(E1v(new TRP,e),G.requestKey);
var r=new _.G1,Z=G.kAN();Z.open("POST",G.zih);Z.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");Z.setRequestHeader("Content-Type","application/json+protobuf");Z.onload=function(){if(_.Vqa(Z)){var O=tSw(Z.responseText);r.resolve(O)}else r.reject(new _.HK(_.ir$(_.lq(Z)),Z.statusText))};
Z.onerror=function(){r.reject(new _.HK(_.ir$(_.lq(Z)),Z.statusText))};
Z.send(e.serialize());return r.promise};var S9A=function(G){this.networkStatusManager=G;this.isDownloaded=xJS===void 0?function(){return!1}:xJS;
this.isReady=!1;this.dAB=$0A(this)},$0A=function(G){var e;
return _.D(function(r){if(r.nextAddress==1)return r.yield(JHs(),2);if(r.nextAddress!=3)return e=r.yieldResult,r.yield(IDn(e),3);G.iR=r.yieldResult;bn4(G.iR).then(function(){G.isReady=!0});
return r.return(G.iR)})},q9l=function(G,e,r){G.iR?(G=G.iR.tOv({j0:r,
dz3:!0,pZa:!0}),e.serviceIntegrityDimensions={poToken:G}):_.yx(Error("Aj"))};
S9A.prototype.processContext=function(G){var e=this;if(!G.input.match(_.y4(nEl)))return _.ho();var r=G.innerTubeRequest,Z=r.videoId;return!Z||this.isDownloaded(r)||this.networkStatusManager&&!this.iR&&!this.networkStatusManager.isNetworkAvailable()?_.ho():this.iR?this.isReady?(q9l(this,r,Z),_.ho()):new V_(bn4(this.iR).then(function(){q9l(e,r,Z)})):new V_(this.dAB.then(function(O){return _.D(function(M){if(M.nextAddress==1)return M.yield(bn4(O),2);
q9l(e,r,Z);_.HL(M)})}))};var t1a=new _.Gz("WEB_PO_CONTEXT_PROCESSOR");var gZW=function(G,e){var r=this;this.bfx=0;var Z;this.qgA=(Z=e==null?void 0:e.qgA)!=null?Z:window;this.networkStatusManagerPromise=e==null?void 0:e.networkStatusManagerPromise;var O;this.requestKey=(O=e==null?void 0:e.requestKey)!=null?O:_.td("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var M;this.tb2=(M=e==null?void 0:e.tb2)!=null?M:function(b){return new CY(b)};
var T;Z=(T=e==null?void 0:e.hDw)!=null?T:function(b,w,q){return new vZm(b,w,q)};
this.bgChallenge=ypS(G.bgChallenge);this.ttlSeconds=App(QM(G.challenge||""));this.ox=Z(this.requestKey,_.R("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.O_.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",G);this.npD=e==null?void 0:e.npD;in_(this.ox);var E;this.cM1=(E=e==null?void 0:e.cM1)!=null?E:function(b){_.w2(r.qgA.document,"visibilitychange",
function(){r.qgA.document.visibilityState==="visible"&&b()})}},RNA=function(G){if(!G.vm){var e={maxAttempts:5,
a4B:G.ttlSeconds*1E3};vYp(G.qgA);G.vm=G.tb2({ox:G.ox,v0O:{disable:_.R("html5_web_po_disable_remote_logging"),j5:"aGIf",i1X:eBf("html5_web_po_experiment_ids"),i8y:_.R("wpo_dis_lfdms")?0:1E3,vFM:function(Z){var O=cmC.get(Z);O||(O=new mDn(Z),O=new KB(O),cmC.set(Z,O));return O}},
e0O:e,j7B:G.bgChallenge,uwZ:wms});G.bfx=Date.now();$tE(G.vm,function(){G.bfx=Date.now()});
U0A(G.vm,function(){return _.D(function(Z){return Z.return(lYo(G))})});
var r=G.ct2.bind(G);G.networkStatusManagerPromise&&G.ttlSeconds>0&&G.networkStatusManagerPromise.then(function(Z){Z.listen("publicytnetworkstatus-online",r)});
G.cM1(r)}};
gZW.prototype.ct2=function(){if(Date.now()>this.bfx+this.ttlSeconds*1E3){var G;(G=this.vm)==null||w_E(G)}};
var lYo=function(G){if(G.wgI)return G.wgI;if(!G.vm)throw Error("Bj");G.wgI=new mT({vm:G.vm,ox:G.ox,sP0:!0,onError:wms,e0O:G.npD});return G.wgI},Snp=function(G,e){G=new gZW(G,e);
RNA(G);(e==null?0:e.g6y)||lYo(G)};var jo2=_.Zoo.ephemeralActionSelector,el=function(G,e){this.store=G;this.queue=[];e==null||e.addEventListener("yt-navigate-start",this.reset.bind(this))};
el.prototype.enqueue=function(G){var e=G.command,r=G.durationMs,Z=G.elementToFocus;var O=G.label;var M=G.elementToFocus;G.command?O=_.OK("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:O,shortcut:_.OK("SHIFT_PLUS_ENTER")}):M&&(G=O+". "+_.OK("SHIFT_PLUS_ENTER")+" for more information.",O=_.OK("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:O,shortcut:_.OK("SHIFT_PLUS_ENTER")},G));r={announcement:O,durationMs:r!=null?r:8E3};e?r.command=e:Z&&(Z.classList.add("ephemeral-action-focusable-element"),r.selector=Z.tagName+
".ephemeral-action-focusable-element");this.queue.push(r);aYH(this)};
el.prototype.activate=function(G){var e=jo2(this.store.getState());if(e){if(e==null?0:e.command)_.KC(e.command),this.store.dispatch(QYE(null));if(e==null?0:e.selector)e=document.querySelector(e.selector),_.xta(e);G.preventDefault()}};
var aYH=function(G){if(!jo2(G.store.getState())&&G.queue.length){var e=G.queue.shift();e&&(G.previousAnnouncement===e.announcement&&(e.announcement+="\u00a0"),G.store.dispatch(QYE(e)),G.previousAnnouncement=e.announcement,G.timeoutId=setTimeout(function(){if(e.selector){var r;(r=document.querySelector(e.selector))==null||r.classList.remove("ephemeral-action-focusable-element")}G.store.dispatch(QYE(null));aYH(G)},e.durationMs))}};
el.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(QYE(null));this.queue.length=0;this.timeoutId=void 0};
el[wR]=[_.YB,_.bq(_.X9)];_.rC=new _.Gz("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var XXo=new _.Gz("AUTH_SERVICE_TOKEN");var gYA=_.Cp(["about:blank"]),t3y;var K0W=new _.Gz("API_IFRAME_TOKEN"),fYo=new _.Gz("FETCH_FN_TOKEN"),kbd=new _.Gz("WINDOW_REQUEST_TOKEN"),Hz2=new _.Gz("TEXT_DECODER_TOKEN");var Rzl;Rzl=new _.Gz("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.d0A=new _.Gz("MISC_UI_SHARED_FLAGS_TOKEN");var oZo=function(){};
oZo.prototype.getFlag=function(G){if(G.configType!==2)throw Error("Cj");return soA(G)};
var soA=function(G){switch(G.flagType){case "bool":return _.R(G.flagName);case "int":return _.nP(_.qt(G.flagName));case "double":return _.qt(G.flagName);case "string":return _.td(G.flagName);case "int32_list":return eBf(G.flagName);case "int64_list":return eBf(G.flagName).map(function(e){return _.nP(e)});
case "string_list":return _.gR(G.flagName);default:throw Error("Dj");}};var ZK=function(G,e,r){e=e===void 0?{}:e;p7.call(this,r===void 0?"uninitialized":r);this.env=G;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)};
_.K(ZK,p7);ZK.prototype.init=function(G){var e=this,r;return _.D(function(Z){if(Z.nextAddress==1)return e.processPluginOptions.shouldWaitOnAsyncImmediate?Z.yield(G(e.env),2):(G(e.env),Z.jumpTo(2));if(Z.nextAddress!=4)return e.jobSet?Z.yield(e.jobSet.completedResolver.promise,4):Z.jumpTo(4);r=_.rk();r.parkOrScheduleJob(function(){e.transition("rendering")},10,"ci");
_.HL(Z)})};
ZK.prototype.initialRender=function(G){var e=this,r;return _.D(function(Z){if(Z.nextAddress==1)return e.processPluginOptions.shouldWaitOnAsyncImmediate?Z.yield(G(e.env),2):(G(e.env),Z.jumpTo(2));if(Z.nextAddress!=4)return e.jobSet?Z.yield(e.jobSet.completedResolver.promise,4):Z.jumpTo(4);r=_.rk();r.parkOrScheduleJob(function(){e.transition("rendered")},10,"cr");
_.HL(Z)})};
ZK.prototype.afterRenderImmediate=function(G){var e=this,r;return _.D(function(Z){if(Z.nextAddress==1)return e.processPluginOptions.shouldWaitOnAsyncImmediate?Z.yield(G(e.env),2):(G(e.env),Z.jumpTo(2));if(Z.nextAddress!=4)return e.jobSet?Z.yield(e.jobSet.completedResolver.promise,4):Z.jumpTo(4);r=_.rk();r.parkOrScheduleJob(function(){e.transition("after-render-deferred")},10,"carml");
_.HL(Z)})};
ZK.prototype.afterRenderDeferred=function(G){var e=this;return _.D(function(r){G(e.env);_.HL(r)})};_.BX("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var Qom={},IY2=(Qom.rendered={priority:0,callback:function(G){eTn(G.injector.resolve(pL))}},Qom);var Sqa=new _.Gz("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),pXW=new _.Gz("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var C6a=function(G){this.callbackFnMap=G;this.configMap={}};
C6a.prototype.handleResponse=function(G){var e;if(G=(e=G.responseContext)==null?void 0:e.serviceTrackingParams)for(e=_.h(G),G=e.next();!G.done;G=e.next()){G=G.value;var r=G.params,Z=G.service;if(r&&Z){this.configMap[Z]||(this.configMap[Z]=new TtS);G=this.configMap[Z];var O=void 0,M=(O=this.callbackFnMap)==null?void 0:O[Z];r=_.h(r);for(Z=r.next();!Z.done;Z=r.next())O=Z.value,Z=O.key,O=O.value,Z&&O&&(G.set(Z,O),M&&M(Z,O))}}};
C6a.prototype.getConfig=function(G){return this.configMap[G]||void 0};
C6a[wR]=[_.bq(pXW)];var utC=!1,oYa=0,fcf=null,dPF=null;var nZo=new _.Gz("NETWORK_SLI_TOKEN");var m0m=function(G){this.networkSli=G};
m0m.prototype.fetch=function(G,e,r){var Z=this,O;return _.D(function(M){O=cHW(Z,G,e);return M.return(fetch(O).then(function(T){return Z.handleResponse(T,r)}).catch(function(T){_.FH(T);
if((r==null?0:r.expectJsonStrict)&&T instanceof lR&&T.errorType===1)return Promise.reject(T)}))})};
var l1w=function(G,e,r,Z){var O,M,T,E,b,w,q;return _.D(function(t){switch(t.nextAddress){case 1:return O=cHW(G,e,r),_.jr(t,2),t.yield(fetch(O),4);case 4:M=t.yieldResult;_.rL(t,3);break;case 2:throw _.k5(t),new lR(2,"Failed to parse streaming response",O.url);case 3:if(!M.redirected&&!M.ok)throw(T=G.networkSli)==null||T.failure(),new _.Cr("Streaming fetch request not ok",O.url);if(!M.body)throw new _.Cr("No response body in streaming response",O.url);E={};if(_.R("web_streaming_fast"))return b=M.body.getReader(),
t.return(Y98(G,b,E,Z));w=M.body.pipeThrough(new TextDecoderStream).getReader();q=new _.E4;return t.return(yHW(G,w,q,wqF,E,Z))}})},cHW=function(G,e,r){if(G.networkSli){var Z=_.Kr(_.y5(e,"key"))||"/UNKNOWN_PATH";
G.networkSli.start(Z)}G=r;_.R("wug_networking_gzip_request")&&(G=vPp(r));return new window.Request(e,G)},Y98=function(G,e,r,Z){var O,M,T,E,b,w,q,t,g,l,X,H,I,C,u,P,F,J,U,e$,Dq,bF,Kf,ti,Ry,nf,k4,SE,Fn,kw,Lf;
return _.D(function(vc){switch(vc.nextAddress){case 1:O=new TextDecoder("utf-8"),M=[],E=T=0,_.jr(vc,2,3);case 5:return vc.yield(e.read(),8);case 8:b=vc.yieldResult;w=b.value;if(q=b.done){t=0;if(M.length>T)for(t=M[T].length-E,g=T+1;g<M.length;g++)t+=M[g].length;t>0&&(l=sjS(M,t,T,E),X=l.indexOf(123),H=l.lastIndexOf(125),X!==-1&&H!==-1&&H>X&&(I=l.subarray(X,H+1),C=JSON.parse(O.decode(I)),wqF(r,C),u=void 0,(u=Z)==null||u(r,C)));P=void 0;(P=G.networkSli)==null||P.success();return vc.return(r)}M.push(w);
F=T;for(J=E;F<M.length;)if(U=M[F],e$=U.indexOf(10,J),e$===-1){if(F===M.length-1)break;F++;J=0}else{Dq=F;bF=e$+1;Kf=0;if(T===Dq)Kf=bF-E;else{Kf=M[T].length-E;for(ti=T+1;ti<Dq;ti++)Kf+=M[ti].length;Kf+=bF}Ry=sjS(M,Kf,T,E,Dq,bF);nf=Ry.indexOf(123);k4=Ry.lastIndexOf(125);if(nf!==-1&&k4!==-1&&k4>nf){SE=Ry.subarray(nf,k4+1);try{Fn=JSON.parse(O.decode(SE)),wqF(r,Fn),kw=void 0,(kw=Z)==null||kw(r,Fn)}catch(IW){throw new lR(1,"Failed to parse streaming response object",O.decode(SE));}}T=F;J=E=e$+1;E===U.length&&
(T++,E=0,F=T,J=0)}vc.jumpTo(5);break;case 3:_.Xa(vc);e.releaseLock();_.fm(vc,0);break;case 2:Lf=_.k5(vc);if(Lf instanceof lR)throw Lf;throw new lR(1,"Failed to process streaming response");}})},yHW=function(G,e,r,Z,O,M){var T,E,b,w,q,t,g,l,X;
return _.D(function(H){if(H.nextAddress==1)return H.yield(e.read(),2);T=H.yieldResult;E=T.value;if(b=T.done)return(w=G.networkSli)==null||w.success(),H.return(O);try{q=r.parse(E)}catch(I){throw new lR(1,"Failed to parse streaming response",E);}if(q!=null)for(t=_.h(q),g=t.next();!g.done;g=t.next())l=g.value,Z(O,l),X=void 0,(X=M)==null||X(O,l);return H.return(yHW(G,e,r,Z,O,M))})};
m0m.prototype.handleResponse=function(G,e){var r=G.text().then(function(Z){if((e==null?0:e.jspbResponseCtor)&&G.ok)return PzS(e.jspbResponseCtor,Z);Z=Z.replace(")]}'","");if((e==null?0:e.expectJsonStrict)&&Z)try{var O=JSON.parse(Z)}catch(T){throw new lR(1,"JSON parsing failed after fetch");}var M;return(M=O)!=null?M:JSON.parse(Z)});
G.redirected||G.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),r=r.then(function(Z){_.FH(new _.Cr("Error: API fetch failed",G.status,G.url,Z));return Object.assign({},Z,{errorMetadata:{status:G.status}})}));
return r};
m0m[wR]=[_.bq(nZo)];var AH8=new _.Gz("NETWORK_MANAGER_TOKEN");var F0m=[1,2,4,8,16,30],Bxa=function(G){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=G.maxTimeMs;this.maxFrameCount=G.maxFrameCount===void 0?Math.ceil(60*G.maxTimeMs/1E3):G.maxFrameCount;G=_.h(F0m);for(var e=G.next();!e.done;e=G.next())this.brokenFrameSummarizers.push(new JHW(e.value/60*1E3))},x08=function(G){var e=G.frameCountInternal>=G.maxFrameCount;
return G.elapsedTimeMs>=G.maxTimeMs||e};
Bxa.prototype.summarize=function(){for(var G=[],e=_.h(this.brokenFrameSummarizers),r=e.next();!r.done;r=e.next())r=r.value,r=r.brokenFrameCount!==0?{severityMs:Math.round(r.targetFrameTimeMs),eventCount:r.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(r.averageDurationBetweenEventsMs)}:void 0,r&&G.push(r);return{summaries:G,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.iY.Object.defineProperties(Bxa.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 JHW=function(G){this.targetFrameTimeMs=G;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.iY.Object.defineProperties(JHW.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var P68=function(){};
P68.prototype.start=function(G,e){var r=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var Z=new Bxa({maxTimeMs:G});this.monitor=Z;this.lastSummaryInternal=void 0;this.metadataToLog=e;return new Promise(function(O){var M=function(T){if(T===void 0)r.stop(),O(void 0);else if(r.monitor!==Z)T=Object.assign({},Z.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),O(T);else{var E=r.monitor;if(!x08(E)){E.frameCountInternal++;if(E.prevTime===
void 0)E.startTime=T;else for(var b=T-E.prevTime,w=_.h(E.brokenFrameSummarizers),q=w.next();!q.done;q=w.next()){q=q.value;var t=q.currTimeMs;q.currTimeMs+=b;b>q.targetFrameTimeMs+2&&(q.brokenFrameCount++,q.timeOfFirstBrokenFrameMs===void 0&&(q.timeOfFirstBrokenFrameMs=t),q.timeOfLastBrokenFrameMs=t)}E.prevTime=T}x08(r.monitor)?O(r.stop()):_.A0.addJob(M,5,0)}};
_.A0.addJob(M,5,0)})};
P68.prototype.stop=function(G){if(!this.monitor)return this.lastSummaryInternal;var e=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(e.monitoringDurationMs){G=G!=null?G:this.metadataToLog;var r={droppedFramesSummary:e,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};G&&(r[G.type]=G.data);_.cg("manualSmoothnessMeasurement",r)}this.monitor=void 0;this.lastSummaryInternal=e;this.metadataToLog=void 0;return e};_.U0Y=new _.Gz("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var zNA;zNA=function(G){this.JSC$18815_expiringStorage=new nr(G)};
_.W0l=function(G){if(_.QjA()&&(G=_.FCU(_.IZ()+"::"+G)))return new zNA(G)};
zNA.prototype.set=function(G,e,r){r=r!==void 0?Date.now()+r:void 0;this.JSC$18815_expiringStorage.set(G,e,r)};
zNA.prototype.get=function(G){return this.JSC$18815_expiringStorage.get(G)};
zNA.prototype.remove=function(G){this.JSC$18815_expiringStorage.remove(G)};_.Oc=function(){};
_.Oc.getInstance=function(){var G=_.Lz("ytglobal.storage_");G||(G=new _.Oc,_.Eu("ytglobal.storage_",G));return G};
_.Oc.prototype.estimate=function(){var G,e,r;return _.D(function(Z){G=navigator;return((e=G.storage)==null?0:e.estimate)?Z.return(G.storage.estimate()):((r=G.webkitTemporaryStorage)==null?0:r.queryUsageAndQuota)?Z.return(Ici()):Z.return()})};
_.Eu("ytglobal.storageClass_",_.Oc);var Yna=0;var Psa=!1;var NxH=_.Cp(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),L02=_.Cp(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var QP8={"/":_.Q_,"/?feature=ytca":_.Q_,"/feed/downloads":_.NbS};var GGH=MOB.continuationCommandSelector,MS=function(G,e,r){this.JSC$18831_upliftPromise=G;this.store=e;this.JSC$18831_persistentStorePromiseAccessor=r};
MS.prototype.shouldPreferLocalResponse=function(G){return G.browseId==="FEdownloads"||G.browseId==="FEsmart_downloads"&&_.R("kevlar_modern_downloads_page")?!0:!1};
MS.prototype.localInnertubeResponse=function(G){var e=this;return _.D(function(r){return G.browseId==="FEdownloads"?_.R("kevlar_modern_downloads_page")?r.return(ewd(e)):r.return(rdW(e)):G.browseId==="FEsmart_downloads"&&_.R("kevlar_modern_downloads_page")?r.return(Zr8(e)):r.return(Promise.reject(Error("Fj")))})};
MS.prototype.canProvideFallbackResponse=function(){return!0};
MS.prototype.localFallbackInnertubeResponse=function(G){var e=this,r,Z,O;return _.D(function(M){switch(M.nextAddress){case 1:return M.yield(e.JSC$18831_persistentStorePromiseAccessor(),2);case 2:r=M.yieldResult;if(G.browseId!=="SPaccount_downloads"||!r){M.jumpTo(3);break}return M.yield(B4$(r),4);case 4:if(Z=M.yieldResult)return M.return(_.AZ(Z));case 3:return G.browseId==="FEwhat_to_watch"?M.return(OrH(e)):(O=_.R("web_offline_continuation_automatic_retry")||_.R("web_offline_continuation_retry_button"))&&
G.continuation?M.return(Mm8(e)):M.return(Vmd(e))}})};
var OrH=function(G){var e;return _.D(function(r){if(r.nextAddress==1)return r.yield(G.JSC$18831_upliftPromise,2);e=_.tUN(G.store.getState().entities);return e.length?r.return(hwV(G,e)):r.return(Vmd(G))})},rdW=function(G){var e,r;
return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$18831_upliftPromise,2);if(Z.nextAddress!=3)return e=TRd([{offlineItemSectionRenderer:{}}]),Z.yield(Dt8(G,e),3);r=Z.yieldResult;r.onResponseReceivedActions=[r7("REFRESH_DOWNLOADS")];return Z.return(r)})},ewd=function(G){var e,r,Z,O,M,T,E,b,w,q,t,g,l,X,H,I;
return _.D(function(C){if(C.nextAddress==1)return C.yield(G.JSC$18831_upliftPromise,2);if(C.nextAddress!=3)return e=G.store.getState(),r=e.entities,Z=_.qr(r),O=_.th(r),M=_.zhi(e),T=_.UGy(e),E=_.Wcs(e),b=_.Rha(r),w=_.iw(Z),q=_.gf(r),t=_.KcN(r),g=_.Lcf(e),l=_.Xs(e),X={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.v7$(Z,O,b,t,M,T,w,q,E,g,l),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},H="",_.R("kevlar_modern_downloads_skip_downloads_title")||
(H=_.OK("DOWNLOADS",void 0,"Downloads")),C.yield(E1W(G,X,H),3);I=C.yieldResult;I.onResponseReceivedActions=[r7("REFRESH_DOWNLOADS")];return C.return(I)})},Zr8=function(G){var e,r,Z,O,M,T,E,b,w;
return _.D(function(q){if(q.nextAddress==1)return q.yield(G.JSC$18831_upliftPromise,2);if(q.nextAddress!=3)return e=G.store.getState(),r=e.entities,Z=_.qr(r),O=_.iw(Z),M=_.gf(r),T={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.$sy(Z),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},E=_.OK("SMART_DOWNLOADS",void 0,"Smart downloads"),b=iuS(O,M),q.yield(E1W(G,T,E,b),3);w=q.yieldResult;w.onResponseReceivedActions=
[r7("REFRESH_DOWNLOADS")];return q.return(w)})},Vmd=function(G){var e,r;
return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(yM(G.JSC$18831_upliftPromise,G.store),2);e=Z.yieldResult;r=TRd([yWa(e)]);return Z.return(Dt8(G,r))})},Mm8=function(G){var e,r,Z,O;
return _.D(function(M){if(M.nextAddress==1)return e={},r=GGH(G.store.getState()),_.g2(e,_.f1,r),M.yield(yM(G.JSC$18831_upliftPromise,G.store,e,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);Z=M.yieldResult;O={};_.g2(O,_.seb,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:Z}}}],targetId:"browse-feedFEwhat_to_watch"});return M.return({responseContext:{},onResponseReceivedActions:[O]})})},TRd=function(G){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:G}}}}]}}},hwV=function(G,e){var r,Z;
return _.D(function(O){var M={contents:Z9(e)};r=M&&M.contents?M:{};_.R("kevlar_modern_downloads_page")&&(r=Object.assign({},_.SRf(e),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));Z={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:r}}}]}};return O.return(Dt8(G,Z))})},Dt8=function(G,e){var r,Z;
return _.D(function(O){if(O.nextAddress==1)return O.yield(G.JSC$18831_persistentStorePromiseAccessor(),2);if(O.nextAddress!=3)return r=O.yieldResult,O.yield(FT(r),3);Z=O.yieldResult;return O.return({responseContext:{},contents:e,topbar:Z})})},E1W=function(G,e,r,Z){var O,M;
return _.D(function(T){if(T.nextAddress==1)return T.yield(G.JSC$18831_persistentStorePromiseAccessor(),2);if(T.nextAddress!=3)return O=T.yieldResult,T.yield(FT(O),3);M=T.yieldResult;var E=T.return;var b=r;var w=Z;b=b===void 0?"":b;w=w===void 0?"":w;b={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:b}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.OK("SETTINGS",void 0,"Settings"),accessibilityText:_.OK("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:_.FJ("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:w}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:b};
return E.call(T,{responseContext:{},contents:e,topbar:M,header:{pageHeaderRenderer:b}})})};var ira=function(){this.moduleRegistry={};this.fetchCount=0};
ira.prototype.isFetching=function(){return this.fetchCount>0};
var kU=function(G,e){G.moduleRegistry[e.toString()]={asyncId:e,isFetching:!1};return G};
ira.prototype.JSC$18842_loadModules=function(){for(var G=this,e=new Map,r=[],Z=_.h(_.Bw.apply(0,arguments)),O=Z.next();!O.done;O=Z.next()){O=O.value;var M=this.moduleRegistry[O];M?M.resolver?e.set(O,M.resolver):(M.resolver=new _.G1,e.set(O,M.resolver),r.push(M.asyncId),M.isFetching=!0):(M=new _.G1,e.set(O,M),M.resolve(void 0))}r.length&&(this.fetchCount+=1,_.fY(_.F3.getMultipleAsync.apply(_.F3,_.mY(r)).then(function(T){for(var E=0;E<r.length;E++){var b=T[E],w=G.moduleRegistry[r[E].toString()];w.isFetching=
!1;w.resolver.resolve(b)}}).catch(function(T){for(var E=_.h(r),b=E.next();!b.done;b=E.next()){b=b.value;
var w=G.moduleRegistry[b.toString()];w.resolver=void 0;w.isFetching=!1;e.get(b.toString()).reject(T)}}),function(){--G.fetchCount}));
return Promise.all([].concat(_.mY(e.values())).map(function(T){return T.promise}))};_.Hz=new _.Gz("MODULE_REGISTRY_TOKEN");var brm={},v18=(brm.rendered={priority:0,callback:function(G){a:{var e=void 0;try{var r;b:{if(_.PK4()){var Z=_.AyA(_.IZ()+"::pom");if(Z){var O=new kB(Z);break b}}O=void 0}var M=(r=O)==null?void 0:r.get("role_text");if(!M)break a;e={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:M}]}}}}}}catch(b){}e&&G.injector.resolve(_.$1).resolveCommand(e)}try{var T=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(T){var E=JSON.parse(T);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
E&&G.injector.resolve(_.$1).resolveCommand(E)}}catch(b){}}},brm);var w_m,$tm={},S5C=($tm.initialized={priority:10,callback:function(){w_m=wB()}},$tm.rendering={callback:function(G){var e;
return _.D(function(r){if(r.nextAddress==1)return r.yield(w_m,2);e=r.yieldResult;if(!e.endpoint)throw Error("Hj`"+_.O_.location.href);tV(G,e);_.HL(r)})}},$tm);var q5l={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/rq-implicit-test-rule-widget/,weight:0},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.mY(_.R("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(G){var e=G.stack;if(e.includes("chrome://")||e.includes("chrome-extension://")||G.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")||G.message.includes("Access is denied for this document")&&e.includes("<anonymous>")||G.fileName==="user-script"||G.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;G=e.split("\n");if(!G.length)return!1;if(G.length<=3&&e.includes("s.onloadeddata"))return!0;e=0;for(var r=_.h(G),Z=r.next();!Z.done;Z=r.next())Z=Z.value,(Z.includes("https://")||Z.includes("http://"))&&e++;return e/G.length>.95},
weight:0},{callback:function(G){return G.message==="Unknown Error"&&G.name.indexOf("NS_")===0},
weight:100},{callback:function(G){if(!_.zx)return!1;var e=G.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||G.message.includes("available to complete this operation"),r=G.stack.includes("webcomponents")&&G.message==="Object doesn't support this action";G=G.message.includes("object that does not implement interface Element");return e||r||G},
weight:0},{callback:function(G){return G.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(G){return G.message==="Operation is not supported"&&(G.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(G){return G.stack.includes("eval code (eval (code:1:1)")||G.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(G){return G.message.includes("Permission denied")&&G.stack.includes("this.domHandler")?!0:G.name.includes("TypeError")&&G.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(G){if(!G.stack)return!1;var e=G.stack.trim().split("\n");e.length&&e[0].endsWith("Error: "+G.message)&&e.shift();e.length&&e[e.length-1].includes("at window.onerror (")&&e.pop();if(!e.length)return!0;if(G.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(G.message==="Unexpected token")return!0;G=_.h(e);for(e=G.next();!e.done;e=G.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(G){return G.message==="Cannot read property 'experiments'"&&G.stack.includes("/s/player/")},
weight:500},{callback:function(G){return G.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(G){return G.stack.includes("/embed.js")?(G.params&&G.params&&(G.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.R("use_error_suppression"))var G=_.xZ("SUPPRESS_CLIENT_ERRORS",!1);else{if(G=_.ec)G=/Chrome\/(\d+)/.exec(_.gs()),G=(G?parseFloat(G[1]):NaN)>=66;G=!(G||_.GB&&_.Lp(65)||_.U5&&_.Lp(12.1)||Tc&&_.Lp(79))}return G},
weight:500}]};var tmm={},g1l=(tmm.initialized={priority:10,callback:function(G){G.injector.addProvider({provide:bAW,useValue:G.root});G.injector.addProvider({provide:YQW,useValue:mkN});G.injector.addProvider({provide:yAl,useValue:q5l});var e={};G.injector.addProvider((e.provide=AA8,e.useFactory=function(r,Z){return function(){i4$(r,Z)}},e[wR]=[YQW,
yAl],e));G.injector.addProvider({provide:KJ,useClass:KJ})}},tmm);var lWd={},RwB=(lWd.initialized={priority:3,callback:function(){var G;if(G=Cpa()){G=G.replace("/",".");var e=_.hy();e.set("tz",G);e.save();G=!0}else G=!1;G||(G=_.hy(),G.set("utco",-Math.floor((new Date).getTimezoneOffset())),G.save())}},lWd);var jZW={},aWW=(jZW.initialized={priority:10,callback:function(G){G.injector.resolve(KJ).start();G=_.IB();var e=_.PX("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.PX("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.PX("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.PX("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.Gx(_.Kip(),{mainAppWeb:Object.assign({},G,{pageType:e})});_.Gx(k8U(),{mainAppWeb:Object.assign({},G,{pageType:e})});
_.Gx(HSy(),{mainAppWeb:G});_.Gx(dwf(),{mainAppWeb:G});vJW(function(){_.e0(HSy(),"FAILURE");_.e0(dwf(),"FAILURE")});
TK_();Dyi();nry()}},jZW);var X_8={},KaC=(X_8.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.jq("dl"),_.rk().processSignal("pcl");else{var G=function(){_.jq("dl");_.rk().processSignal("pcl");window.removeEventListener("load",G)};
window.addEventListener("load",G)}}},X_8);var fWm={},kGo=(fWm.rendering={priority:0,callback:function(){var G=_.rk();G.parkOrScheduleJob(function(){G.processSignal("eocs")},10,"eor",5E3)}},fWm);var HrW=function(){};
_.K(HrW,WH);
HrW.prototype.resolveCommand=function(G,e){var r,Z,O,M,T,E,b,w;return _.D(function(q){O=(r=_.a(G,_.LFW))==null?void 0:(Z=r.dialog)==null?void 0:Z.commentReplyDialogRenderer;if(!O)throw new _.Cr("No dialog in createCommentReplyDialogEndpoint");T=(M=e.form)==null?void 0:M.event;if(!T)throw new _.Cr("Event not passed in when resolving command");E=_.h(T.composedPath());for(b=E.next();!b.done;b=E.next())if(w=b.value,w.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||w.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return w.showReplyDialog(O),q.return();
_.HL(q)})};var Md=function(){};
_.K(Md,WH);Md.prototype.resolveCommand=function(G){var e,r,Z;return _.D(function(O){if(O.nextAddress==1)return e=_.a(G,iSS),(r=e)!=null&&r.externalChannelId?O.yield((0,_.Zxp)("NSzT5"),2):O.return();Z=_.dtl;return O.yield(Z(e.externalChannelId),0)})};var Vq=function(G){this.JSC$18860_pageRequestService=G;this.JSC$18860_prefetchCoordinator=kXY()};
_.K(Vq,WH);Vq.prototype.resolveCommand=function(G){var e=this,r,Z,O,M;return _.D(function(T){if(T.nextAddress==1){r=_.a(G,QqE);if((Z=r)==null||!Z.taskId)throw Error("Ij");O=r.taskId;_.jr(T,2);return T.yield(_.rAA(e.JSC$18860_pageRequestService,G,{},"").then(function(E){if(!E)throw Error("Jj");},function(E){throw Error("Kj`"+E);
}),4)}if(T.nextAddress!=2)return oWC(e.JSC$18860_prefetchCoordinator,O),_.rL(T,0);
M=_.k5(T);n8(e.JSC$18860_prefetchCoordinator,O,M);_.HL(T)})};
Vq[wR]=[_.vz];var hz=function(G,e){this.innertubeTransportService=G;this.JSC$18864_commandHandler=e};
_.K(hz,WH);hz.prototype.resolveCommand=function(G){var e=this,r,Z,O;return _.D(function(M){if(M.nextAddress==1){r=_.a(G,o9v);if(r.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||r.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")Z=r.boolValue?2:1,_.vt.getInstance().setState(Z,!0,!0);return M.yield(_.p1(e.innertubeTransportService,G),2)}O=M.yieldResult;o1W(e,O);_.HL(M)})};
var o1W=function(G,e){e.actions&&e.actions.forEach(function(r){G.JSC$18864_commandHandler.resolveCommand(r)})};
hz[wR]=[_.v1,_.$1];var Tl={},DK=(Tl.addToPlaylistEndpoint=Ay(W0),Tl.addToToastAction=Ay(Mb),Tl.adsControlFlowOpportunityReceivedCommand=Ay(dm),Tl.audioTrackSelectActionCommand=Ay(va),Tl.backgroundAudioPlaybackCommand=Ay(wr),Tl.captionLanguageSelectActionCommand=Ay($a),Tl.captionPickerEndpoint=Ay(Se),Tl.changeMiniAppPlayStateCommand=Ay(N3),Tl.changeTimelyActionVisibilityCommand=Ay(Ov),Tl.channelCreationFormEndpoint=Ay(Jc),Tl.clearLocationCommand=Ay(zm),Tl.clearUrlParamCommand=Ay(Ly),Tl.copyLinkCommand=Ay(Xm),Tl.copyTextEndpoint=
Ay(Cy),Tl.createCommentReplyDialogEndpoint=IZS(HrW),Tl.createPlaylistServiceEndpoint=Ay(KT),Tl.dismissDialogEndpoint=Ay(ee),Tl.dismissPlayerOverlayCommand=Ay(qO),Tl.entityUpdateCommand=Ay(ny),Tl.feedbackEndpoint=Ay(Yx),Tl.getAnswerCommand=Ay(Swo),Tl.getPaymentsClientTokenCommand=Ay(bR),Tl.getTranscriptEndpoint=Ay(Vh),Tl.googlePaymentBillingCommand=Ay(vl),Tl.googlePaymentPurchaseManagerCommand=Ay(wu),Tl.hideEngagementPanelEndpoint=Ay(rr),Tl.hideSheetCommand=Ay(O7),Tl.hideSnackbarCommand=Ay(Wa),Tl.insertRichSectionCommand=
Ay(xx),Tl.listMutationCommand=Ay(P0),Tl.logGtmCommand=Ay(B0),Tl.notifyDropdownOptionSelectedCommand=Ay(Gg),Tl.openAdAllowlistInstructionCommand=Ay(_.o7),Tl.openOnePickAddVideoModalCommand=Ay(fT),Tl.persistSubscriptionsDisplayPreferencesCommand=Ay(Qe),Tl.pingingEndpoint=Ay(sT),Tl.playlistEditEndpoint=Ay(Ha),Tl.playlistVotingRefreshPopupCommand=Ay(dr),Tl.profileCardCommand=Ay(H0),Tl.refreshPanelEndpoint=Ay(MO),Tl.saveImageToDeviceEndpoint=Ay(u2),Tl.scrollToSectionEndpoint=IZS(qwd),Tl.seekToVideoTimestampCommand=
Ay(t1),Tl.selectCountryCommand=Ay(Iw),Tl.setCookieCommand=Ay(pT),Tl.setLocalStorageCommand=Ay(LT),Tl.setPrefStorageEntryCommand=Ay(uU),Tl.setSettingEndpoint=Ay(hz),Tl.sfvAudioItemPlaybackCommand=Ay(gr),Tl.shareImageCommand=Ay(nT),Tl.sharingProviderDataCommand=Ay(mn),Tl.showAudioTrackPickerActionCommand=Ay(lU),Tl.showCaptionLanguageSelectActionCommand=Ay(Rw),Tl.showCreatorChatbotEngagementPanelCommand=Ay(Md),Tl.showDialogCommand=Ay(Tg),Tl.showEngagementPanelEndpoint=Ay(D$),Tl.showFullscreenPlayerControlsCommand=
Ay(je),Tl.showSheetCommand=Ay(E7),Tl.showSnackbarCommand=Ay(NO),Tl.showTransientPlayerScrimOverlayCommand=Ay(aw),Tl.submitFormWithValidationFlowCommand=Ay(FO),Tl.talkToRecsDeselectCommand=Ay(GQ),Tl.talkToRecsNextCommand=Ay(ep),Tl.talkToRecsSelectCommand=Ay(ru),Tl.talkToRecsUpdateTextCommand=Ay(Z0),Tl.toggleEngagementPanelCommand=Ay(iU),Tl.undoFeedbackEndpoint=Ay(Ac),Tl.updateEngagementPanelContentCommand=Ay(bU),Tl.updateUrlParamCommand=Ay(hw),Tl.updateVideoMetadataCommand=Ay(iR),Tl.verifyCommand=
Ay(Jc),Tl.webNativeShareCommand=Ay(ca),Tl.webSubmitFormCommand=Ay(ow),Tl.ACK_PLAYABLES_3P_DATA_CONSENT=Ay(Ya),Tl.CANCEL_NAVIGATION=Ay(ye),Tl.COPY_SHARE_URL=Ay(A1),Tl.MINI_APP_EXIT_DIALOG_SEEN=Ay(J1),Tl.MINI_APP_OPEN_URL=Ay(Fm),Tl.REQUEST_MINI_APP_FULLSCREEN=Ay(Ba),Tl.RESUME_NAVIGATION=Ay(xa),Tl.SHARE_PLAYABLE_WITH_HIGH_SCORE=Ay(Pa),Tl.TELL_US_WHY=Ay(y8),Tl);_.R("web_enable_prefetching_videos_on_home")&&(DK.prefetchWatchCommand=Ay(Vq),DK.registerTasksCommand=Ay(c$));
_.R("enable_share_panel_navigation_logging_fix_on_web")&&(DK.shareEntityServiceEndpoint=Ay(Ve));_.R("web_use_flow_state_manager")&&(DK.flowNextStepCommand=Ay(ffa),DK.flowPrevStepCommand=Ay(Hm8),DK.getFlowCommand=Ay(o5V),DK.updateFlowCommand=Ay(XO));_.R("enable_ai_companion")&&(DK.updateConversationIdCommand=Ay(py),DK.formDataDecoratorCommand=Ay(I7));var AMy=Object.assign({},DK);var sZH={},QZo=(sZH.initialized={priority:10,callback:wCi},sZH);var IWl={},p_W=(IWl.initialized={callback:function(G){var e={},r={};VoS().install((e.document_disposed={callback:function(){_.R("finalize_all_timelines")?P9$():ty();k9i("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.aPi();var Z=G.injector.resolve(KJ);Z.intervalId!==void 0&&(Z.intervalId&&_.A0.cancelJob(Z.intervalId),Z.intervalId=void 0,--Z.currentPartitionIndex,Z=Nyb(Z),Z>0&&HXw({mainAppWeb:_.IB(),survivalSli:{partitionMinute:Z,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));lAP(OI);Ml!=null&&
Ml.flush();U6&&U6.snapshotAndFlush();Z=_.h(cmC.values());for(var O=Z.next();!O.done;O=Z.next())O.value.snapshotAndFlush()}},e),(r.flush_logs={callback:function(){_.Yc()}},r))}},IWl);var Cqo={},u_d=(Cqo.rendered={priority:0,callback:function(){var G=new Lay;G.increment("STARTED");if(_.xZ("LOGGED_IN")&&!_.xZ("IS_DBSC",!1)&&_.xZ("SERVER_VERSION")!=="test"&&_.xZ("SERVER_VERSION")!=="dev"&&!uaE()&&!C7E()){G.increment("EXECUTING");var e=document.createElement("iframe");e.style.display="none";_.v5U(e,2,_.Fy("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.xZ("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(e);G.increment("DONE")}}},
Cqo);var n1Y={},mtH=(n1Y.rendered={callback:function(){kXY().resume()}},n1Y);var cdH={acknowledgeChannelTouStrikeCommand:kO(Uv),addToPlaylistServiceEndpoint:kO(NF),addToPlaylistEndpoint:kO(NF),addUpcomingEventReminderEndpoint:kO(SY),browseEndpoint:kO(iB8),channelCreationFormEndpoint:kO(yh),channelCreationServiceEndpoint:kO(Aw),claimLegacyYoutubeChannelEndpoint:kO(Hl),clearSearchHistoryEndpoint:kO(De),clearWatchHistoryEndpoint:kO(Ed),commerceActionCommand:H5(gt),createBackstagePostEndpoint:kO(jp),createBroadcastCommand:kO(qF),createCommentEndpoint:kO(nG),createCommentReplyEndpoint:kO(uR),
createLiveChatPollEndpoint:kO(tg),createPlaylistServiceEndpoint:kO(Le),crossAccountChannelTransferEndpoint:kO(vN),deleteLiveChatMessageCommand:kO(g3),deletePlaylistEndpoint:kO(GO),deleteVideoEndpoint:kO($F),dismissalEndpoint:kO(zQ),feedbackEndpoint:kO(Wl),flagEndpoint:kO(V2),getAccountSwitcherEndpoint:kO(bv),verifyCommand:kO(R0),getAccountsListInnertubeEndpoint:kO($G),getCommentsFromInboxCommand:kO(pe),getDownloadActionCommand:kO(y7),getFlowCommand:H5(TN),getKidsBlocklistPickerCommand:kO(hu),getNotificationMenuEndpoint:kO(wpl),
getPaymentInstrumentsParamsCommand:kO(K8),getPaymentsClientTokenCommand:H5(gt),getPdgBuyFlowCommand:kO(zN),getReportFormEndpoint:kO(TO),getSearchInVideoCommand:kO(iV),getAnswerCommand:kO(Er),getSurveyCommand:kO(wt),getTranscriptEndpoint:kO(qT),getPostVideoPreviewEndpoint:kO(XP),decorateMessageEndpoint:kO(a0),likeEndpoint:kO(FP),liveChatActionEndpoint:kO(af),liveChatEndpoint:kO(jY),liveChatItemContextMenuEndpoint:kO(lv),liveChatPurchaseMessageEndpoint:kO(Xc),liveChatReplayEndpoint:kO(Rf),manageLiveChatUserEndpoint:kO(fe),
metadataUpdateCommand:kO(Q7),moderateLiveChatEndpoint:kO(kG),modifyChannelNotificationPreferenceEndpoint:kO(mw),notificationOptOutEndpoint:kO(cN),openSuperStickerBuyFlowCommand:kO(Ke),performCommentActionEndpoint:kO(I0),playlistEditEndpoint:kO(rt),playlistEditorEndpoint:kO(e9),recordNotificationInteractionsEndpoint:kO(YG),reelWatchEndpoint:kO(Z1),refreshPanelEndpoint:kO(Fc),removeUpcomingEventReminderEndpoint:kO(HN),resolveLocationCommand:kO(sd),revealBusinessEmailCommand:kO(du),searchEndpoint:kO(_.$MA),
sendLiveChatMessageEndpoint:kO(d3),sendLiveChatVoteEndpoint:kO(of),setSettingEndpoint:kO(Jw),shareEntityServiceEndpoint:H5(Pl),sharingProviderDataCommand:kO(v$),showEngagementPanelEndpoint:kO(Jg),showMoreDrawerCommand:kO(xG),showSheetCommand:kO(PN),showDialogCommand:kO(BN),subscribeEndpoint:kO(Bl),transcriptSubmitCaptionCorrectionCommand:kO(S9),undoFeedbackEndpoint:kO(LG),unsubscribeEndpoint:kO(xK),updateBackstagePostEndpoint:kO(fG),updateCommentEndpoint:kO(cl),updateCommentReplyEndpoint:kO(mb),updateCommentsSettingsEndpoint:kO(YK),
updateCreatorChannelInnertubeCommand:kO(sv),updateKidsBlacklistEndpoint:kO(D1),updateEngagementPanelContentCommand:kO(Ud),updatePdgFeatureEnablementCommand:kO(WN),updatedMetadataEndpoint:kO(If),validateChannelHandleCommand:kO(Qh),updateChannelPageSettingsEndpoint:kO(o0),verifyAgeEndpoint:kO(hg),watchEndpoint:H5(qb),whitelistEditEndpoint:kO(tu),ypcCancelRecurrenceEndpoint:kO(lV),ypcCompleteTransactionEndpoint:kO(RK),ypcFixInstrumentEndpoint:kO(aK),ypcGetCartEndpoint:kO(j9),ypcGetOffersEndpoint:kO(Xd),
ypcHandleTransactionEndpoint:H5(f8),ypcLogWalletAnalyticDataEndpoint:kO(kF),ypcOffersEndpoint:kO(H$),ypcPauseSubscriptionCommand:kO(dt),ypcRedeemCodeEndpoint:kO(oK),ypcResumeSubscriptionCommand:kO(sr),ypcUpdateFopEndpoint:kO(aK)},Ec={},Y5Y=(Ec.GET_ACCOUNT_MENU=kO(w3),Ec.GET_NOTIFICATIONS_MENU=kO(vWl),Ec.GET_NOTIFICATIONS_INBOX=kO(Ce),Ec.GET_UNSEEN_NOTIFICATION_COUNT=kO(ne),Ec.GET_USER_MENTION_SUGGESTIONS=kO(KG),Ec.LOAD_GUIDE=kO(bBH),Ec.SUBMIT_FEEDBACK=kO(Nb),Ec),iI={},ydA=(iI.CONTINUATION_REQUEST_TYPE_BROWSE=
kO(kK),iI.CONTINUATION_REQUEST_TYPE_SEARCH=kO(bV),iI.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=kO(Ev),iI.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=kO(iv),iI.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=kO(CG),iI.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=kO(pG),iI.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=kO(MT),iI.CONTINUATION_REQUEST_TYPE_GET_PANEL=kO(Ag),iI),Ada={player:H5(qb),watchNext:kO(D0)},Fam={player:H5(qb),reelItemWatch:kO(Z1),reelWatchSequence:kO(Or)},JdA={watchEndpoint:H5(tw)},BRB=
{commandEndpointMap:cdH,signalEndpointMap:Y5Y,continuationEndpointMap:ydA,watchEndpointMap:Ada,reelWatchEndpointMap:Fam,streamingEndpointMap:JdA};var xtm,Pqo,Utm;_.zwm=((Pqo=(xtm=window).matchMedia)==null?void 0:(Utm=Pqo.call(xtm,"(prefers-reduced-motion: reduce)"))==null?void 0:Utm.matches)||!document.startViewTransition;var WaV={},NRl={disableAllTransitions:_.zwm,ignoredErrors:(WaV.DOCUMENT_HIDDEN=!0,WaV.WINDOW_SIZE_CHANGED=!0,WaV.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,WaV),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 LaH=_.Cp("\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            --ytd-vtm-watch-next-exit-ms: ,ms;\n            --ytd-vtm-watch-next-wait-ms: ,ms;\n            --ytd-vtm-watch-next-enter-ms: ,ms;\n          }\n      ".split(",")),ezV=function(G){var e=this;this.viewTransitionCoordinator=
G;this.disableTransitionsForUltraHigh=_.R("disable_transitions_for_ultra_high");this.isUltraHighBucketDevice=Gc8();this.disableTransitions=this.disableTransitionsForUltraHigh&&this.isUltraHighBucketDevice;this.isBrowseTransitionEnabled=_.td("web_page_transition_type")==="slide"&&!this.disableTransitions;this.isLockupToWatchTransitionEnabled=_.R("web_thumbnail_to_watch_transition")&&!this.disableTransitions;this.isLockupThumbnailRegistrationEnabled=_.R("web_thumbnail_to_watch_transition_register_thumbnail");
this.isLearningJourneyTransitionEnabled=_.R("enable_plj_landing_page")&&!this.disableTransitions;this.lockupToWatchPlayerTransitionType=_.td("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.R("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.A0.addJob(function(){e.registerRootElement();if(e.isAnyTransitionEnabled){var r=
_.qt("web_page_transition_exit_ms"),Z=_.qt("web_page_transition_wait_ms"),O=_.qt("web_page_transition_enter_fast_ms"),M=_.qt("web_page_transition_watch_exit_ms"),T=_.qt("web_page_transition_watch_wait_ms"),E=_.qt("web_page_transition_watch_enter_ms"),b=_.qt("web_page_transition_watch_next_exit_ms"),w=_.qt("web_page_transition_watch_next_wait_ms"),q=_.qt("web_page_transition_watch_next_enter_fast_ms"),t=_.qt("web_page_transition_enter_ms"),g=_.qt("web_page_transition_watch_next_enter_ms");e.enableFasterTransitions&&
e.isUltraHighBucketDevice&&(t=O,g=q);isNaN(r)&&isNaN(Z)&&isNaN(t)&&isNaN(M)&&isNaN(T)&&isNaN(E)&&isNaN(b)&&isNaN(w)&&isNaN(g)||!(r=mKa(LaH,r,Z,t,M,T,E,b,w,g))||(Z=document.createElement("style"),Z.textContent=qfS(r),document.head.appendChild(Z))}},8)},Gc8=function(){var G=_.O_.navigator.deviceMemory;
return G>=8||G===void 0?!0:!1};
ezV.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var G={};this.viewTransitionCoordinator.registerElement(document.documentElement,(G.slide="root-slide",G["lockup-to-watch"]="root-lockup-to-watch",G["learning-journey"]="root-learning-journey",G))}};
_.uUW=function(G,e){G.isLockupToWatchTransitionEnabled&&G.isLockupThumbnailRegistrationEnabled&&(G.registeredLockupThumbnail?G.lockupThumbnailRegisteredFromWatchEndpoint?_.FH(new _.Cr("Lockup thumbnail registration order is incorrect.")):_.FH(new _.Cr("Lockup thumbnail already registered.")):(G.registeredLockupThumbnail=e,_.r0C(G,e)))};
_.r0C=function(G,e){var r={};G.viewTransitionCoordinator.registerElement(e,(r["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",r),!0)};
ezV[wR]=[FVa];var $yS={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 qXS=["videoPrimaryInfoRenderer","title"],tNp=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var ZFd;ZFd=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.OF8=_.y(function(G){G=_.cx(G,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var e=G.data,r=G.playlistData,Z=G.expanded,O=G.onExpandClick,M=G.isReadyToResume,T=function(){var q;return!((q=r())==null||!q.contents)},E=function(){var q=r();
return q&&q.totalVideos&&q.currentIndex!==void 0?q.currentIndex+1+" / "+q.totalVideos:""};
G=_.ev(function(){_.bI(_.v_().resolve(_.fp));return!1});
var b=_.ev(function(){T()&&O&&O()}),w={};
return _.v("ytd-miniplayer-info-bar",{class:_.LC("ytdMiniplayerInfoBarHost",(w.ytdMiniplayerInfoBarHasPlaylistData=T,w)),"on:click":b},_.v("div",{class:"ytdMiniplayerInfoBarContent"},_.v("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":G},_.v(_.Wh,{text:function(){var q=e();var t=r();if(t==null?0:t.contents){var g;q=(g=_.Z0_(t))==null?void 0:g.title}else q=q==null?void 0:q.miniplayerTitle;return gI4(q)},
noEndpoints:!0,ellipsisTruncate:!0})),_.v("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.v(_.S,{cond:M,then:function(){return _.v(wTy,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:ZFd})}}),_.v("h1",null,_.v(_.Wh,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var q=e();var t=r();q=M()?{simpleText:_.OK("CONTINUE_WATCHING",void 0,"Continue watching")}:(t==null?0:t.contents)?t.titleText:q==null?void 0:q.miniplayerSubtitle;return gI4(q)},
noEndpoints:!0,ellipsisTruncate:!0})),_.v(_.S,{cond:function(){return!!E()&&!M()},
then:function(){return _.v("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.v("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.v("span",null,E))}}))),_.v(_.S,{cond:T,
then:function(){return _.v("div",{class:"ytdMiniplayerInfoBarExpand"},_.v(_.vk,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(q){O&&(O(),q.stopPropagation())}}},
iconName:function(){return Z()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"tg");var MSm;MSm=_.y(function(G){return _.v("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.v(_.vk,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:G.onTap}},
iconName:"yt-icons:close"}))},"ug");
_.VSo=_.y(function(G){G=_.cx(G,{playabilityStatus:void 0,isDisabled:!1});var e=G.size,r=G.playabilityStatus,Z=G.isDisabled,O=_.hT("div");G=_.h(_.XQ(void 0,void 0,"y6THVb"));var M=G.next().value,T=G.next().value;G=_.Eb(_.Be);var E=!1,b=function(){return e().height<=0};
_.Y8(function(){var g=e(),l=b(),X=M();X&&!l&&X.setInternalSize(g.width,g.height)},"qu2eI");
_.YZ(function(){var g,l,X;return _.D(function(H){if(H.nextAddress==1){g=_.v_().resolve(_.fp);l=g.getPlayerElement();if(!g.isMiniplayerActive()||!l||!O.value)return H.return();l.appendTo(O.value);return H.yield(l.getPlayerPromise(),2)}X=H.yieldResult;X.setSizeStyle(!1,!0);T(X);_.HL(H)})});
_.yD(function(){w()});
_.Y8(function(){var g=M();if(g)if(Z()){var l=g.getPlayerState();(E=l===-1||l===1||l===3)&&g.pauseVideo()}else w()},"mCtQKc");
var w=function(){if(E){E=!1;var g;(g=M())==null||g.playVideo()}},q=_.ev(function(){_.bI(_.v_().resolve(_.fp))}),t={};
return _.v("ytd-miniplayer-player-container",{class:_.LC("ytdMiniplayerPlayerContainerHost",(t.ytdMiniplayerPlayerContainerHidden=b,t.ytdMiniplayerPlayerContainerHostShortsPip=G,t)),style:_.Mk({width:function(){return e().width+"px"},
height:function(){return e().height+"px"}})},_.v("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:O}),_.v(_.S,{cond:function(){return!!r()&&!_.ckp(r())},
then:function(){return _.v(yto,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var g;return((g=r())==null?void 0:g.errorScreen)||null},
status:function(){var g;return((g=r())==null?void 0:g.status)||null}})}}),_.v(_.S,{cond:Z,
then:function(){return _.v("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":q},_.v(MSm,{onTap:function(){_.v_().resolve(_.fp).close()}}))}}))},"yg");_.hzW=_.y(function(G){var e=G.toastData;var r=_.hT("ytd-miniplayer-toast");G=_.h(_.Ob(function(){return!!e()}));
var Z=G.next().value,O=G.next().value;G=_.h(_.XQ(!1,void 0,"BvfNQe"));var M=G.next().value,T=G.next().value,E=function(){var q;return _.mG((q=e())==null?void 0:q.data.title)};
_.yY(function(){_.x6.requestAvailability();e()&&O(!1)});
var b,w;_.Y8(function(){Z()&&(_.xy(r.value,"iron-announce",{text:e().label+" "+E()}),b&&_.A0.cancelJob(b),b=_.A0.addLowPriorityJob(function(){T(!0)},2500))},"no1dZb");
_.Y8(function(){M()&&(w&&_.A0.cancelJob(w),w=_.A0.addLowPriorityJob(function(){O(!1);T(!1)},300))},"G3yPNe");
G={};return _.v("ytd-miniplayer-toast",{el:r,class:_.LC("ytdMiniplayerToastHost",(G.ytdMiniplayerToastOpening=function(){return Z()},G.ytdMiniplayerToastClosing=function(){return M()},G))},_.v(_.S,{cond:function(){var q;
return(q=e())==null?void 0:q.data},
then:function(q){return _.v(a4v,{className:"ytdMiniplayerToastThumbnail",data:q,width:78})}}),_.v("div",{class:"ytdMiniplayerToastInfo"},_.v("div",{class:"ytdMiniplayerToastLabel"},function(){var q;
return(q=e())==null?void 0:q.label}),_.v("div",{class:"ytdMiniplayerToastTitle"},E)))},"Bg");var dyU;var QE_=null;var DaW=_.y(function(G){var e=G.progressState;var r=G.multiMarkersPlayerBarRenderer;var Z=G.progressBarWidth;var O=function(){return u7f(r())},M=function(){return cFA(e())},T=function(){return Z()*(e().playedTime/e().videoDuration)};
return _.v("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.v(_.u6,{each:O},function(E,b){return _.v(TLV,{modifiedProps:M,chapters:O,index:b,playedProgressWidth:T,backgroundGradientPosition:function(){var w=M(),q=O(),t=b(),g=T();return(w.playedTime-Xb(_.a(q[t],ar)))/w.playedTime*g}})}))},"Cg"),TLV=_.y(function(G){var e=G.modifiedProps;
var r=G.chapters;var Z=G.index;var O=G.playedProgressWidth;var M=G.backgroundGradientPosition;G={};G=_.LC("ytChapteredProgressBarChapteredPlayerBarChapter",(G.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return T().isScrubbing},G.ytChapteredProgressBarHoveredMacroMarker=function(){return T().scrubberHovering},G.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return T().videoPosition==="seen"},G));
var T=function(){return YXa(e(),r(),Z())},E=function(){var b=e();
var w=r(),q=Z();if(YXa(b,w,q).videoPosition!=="active")b=0;else{var t=Xb(_.a(w[q],ar));b=(b.playedTime-t)/((Xb(_.a(w[q+1],ar))||b.videoDuration)-t)}return b};
return _.v("div",{class:G,style:_.Mk({width:function(){var b=e(),w=r(),q=Z(),t=_.a(w[q],ar);w=_.a(w[q+1],ar);return(w?Xb(w)-Xb(t):b.videoDuration-Xb(t))/b.videoDuration*100+"%"},
"background-color":function(){a:{var b=T();switch(b.videoPosition){case "pending":b=b.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":b=b.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:b=""}}return b},
"background-size":function(){return(yFA(T())?O():"")+"px"},
"background-position-x":function(){return(yFA(T())?M():"")+"px"}})},_.v("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var b=e(),w=r(),q=Z();if(YXa(b,w,q).videoPosition==="seen")var t=0;else t=Xb(_.a(w[q],ar)),w=Xb(_.a(w[q+1],ar))||b.videoDuration,b=b.videoDuration*b.percentLoaded,t=w<=b?1:t>=b?0:(b-t)/(w-t);return"width: "+t*100+"%"}}),_.v("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.Mk({width:function(){return E()*100+"%"},
"background-size":function(){return(yFA(T(),E())?O():"")+"px"},
"background-position-x":function(){return(yFA(T(),E())?M():"")+"px"}})}))},"Dg");var E2a=function(G,e){e=e===void 0?srw:e;var r,Z=[],O,M=!1;return function(){var T=_.Bw.apply(0,arguments);if(M&&r===this&&e(T,Z))return O;O=G.apply(this,T);M=!0;r=this;Z=T;return O}}(function(G){var e=G.heatMarkers,r=G.minHeightDp===void 0?0:G.minHeightDp,Z=G.maxHeightDp===void 0?60:G.maxHeightDp;
var O=O===void 0?!1:O;var M=1E3/e.length;G=[];G.push({x:0,y:100});for(var T=0;T<e.length;T++){var E=void 0,b=((E=_.a(e[T],cqy))==null?void 0:E.heatMarkerIntensityScoreNormalized)||0;E=(T+.5)*M;b=100-_.j0(b*100,r/321*100,Z/321*100);T!==0||O||G.push({x:0,y:b});G.push({x:E,y:b});T===e.length-1&&G.push({x:1E3,y:b})}G.push({x:1E3,y:100});e="";for(r=0;r<G.length;r++)O=G[r],r===0?O="M "+O.x.toFixed(1)+","+O.y.toFixed(1):(Z=nnq(G[r-1],G[r-2],O),M=nnq(O,G[r-1],G[r+1],!0),O=" C "+(Z.x.toFixed(1)+","+Z.y.toFixed(1)+
" "+M.x.toFixed(1)+","+M.y.toFixed(1)+" "+O.x.toFixed(1)+","+O.y.toFixed(1))),e+=O;return e});var iFa=_.y(function(G){var e=G.progressBarProps;var r=G.config;var Z={};G=_.LC("ytHeatSeekerHost",(Z.ytHeatSeekerHighContrast=G.highContrast,Z));var O=function(){return XCS(r().chapterData)};
return _.v("yt-progress-bar-heatseeker",{class:G,style:function(){var M;return"height: 320px; display: "+(e().isDragging&&((M=O())==null?0:M.heatMarkers)?"block":"none")}},_.v(_.S,{cond:O,
then:function(M){return _.v(_.S,{cond:function(){return M().heatMarkers},
then:function(){return _.v("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.v("path",{d:function(){return E2a(M())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Eg");var bFW=_.y(function(G){var e=G.progressBarProps;var r=G.config;G={};G=_.LC("ytProgressBarLineProgressBarLine",(G.ytProgressBarLineProgressBarLineRounded=function(){return r().rounded},G.ytProgressBarLineProgressBarLineBottomInset=function(){return r().position===2},G));
return _.v("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.v("div",{class:G},_.v("div",{class:"ytProgressBarLineProgressBarBackground"}),_.v("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+e().percentLoaded*100+"%"}}),_.v("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var Z=e();return"width: "+(Z.videoDuration?_.j0(Z.hoveredTime/Z.videoDuration,0,1):0)*100+"%"}}),_.v("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+RY_(e())*100+"%"}})))},"Fg");
bFW.idomCompat=!0;var v28=_.y(function(G){var e=G.progressBarProps;var r=G.playheadData;var Z=G.interpolateDotPosition;var O=G.hidePlayhead;G={};var M=_.LC("ytProgressBarPlayheadProgressBarPlayheadDot",(G.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return e().isDragging},G.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!e().isDragging&&O()},G));
return _.v("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.Mk({"margin-left":function(){return jEf(e())*100+"%"},
transform:function(){return"translateX(-"+(Z()?jEf(e())*12:6)+"px)"}})},_.v(_.S,{cond:function(){var T;
return(T=_.mr(r)())==null?void 0:T.playheadImage},
then:function(T){var E={};return _.v("div",{class:_.LC("ytProgressBarPlayheadProgressBarPlayheadCustom",(E.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return e().isDragging},E.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!e().isDragging&&O()},E)),
style:_.Mk({"transform-origin":function(){return(Z()?jEf(e())*20:10)+"px center"}})},_.v(_.nC,{data:T,
alt:"","aria-hidden":"true"}))},
else:function(){return _.v("div",{class:M,style:_.Mk({"transform-origin":function(){return(Z()?jEf(e())*12:6)+"px center"}})})}}))},"Gg");
v28.idomCompat=!0;var vq=function(G,e,r,Z,O,M){this.getProgressBarRect=G;this.updateProgressBarRect=e;this.getFilmstripYPosition=r;this.setFineScrubbingDraggedTime=Z;this.updateFilmStripDraggedYDistance=O;this.resetFilmStripYOffset=M;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.Zp(this.onThrottledSeek,100,this)},wGl=function(G,e,r){return function(Z){G.handleClick(Z,e(),r())}},quW=function(G,e){return function(r){$aW(G,
r,SuH(r),e())}},tSC=function(G,e){return function(r){$aW(G,r,{x:r.clientX,
y:r.clientY},e())}},lGV=function(G,e,r){return function(Z){var O=e(),M=r();
g2W(G,Z,SuH(Z),O,M,!0);if(M.onTouchMove)M.onTouchMove(O)}},jc2=function(G,e,r){return function(Z){RzV(G,Z,e(),r())}},aGl=function(G,e){return function(){G.handleMouseLeave(e())}},XGa=function(G,e,r){return function(){var Z=e(),O=r();
wC(G,Z,O);if(O.onTouchEnd)O.onTouchEnd(Z)}},KBm=function(G,e,r){return function(){var Z=e(),O=r();
wC(G,Z,O);if(O.onTouchEnd)O.onTouchEnd(Z)}},fG8=function(G,e,r){return function(){wC(G,e(),r())}},kco=function(G){return function(e){if(e.keyCode===39||e.keyCode===38){var r,Z;
(r=G())==null||(Z=r.playerApi)==null||Z.seekBy(5,void 0,void 0,72)}else if(e.keyCode===37||e.keyCode===40){var O,M;(O=G())==null||(M=O.playerApi)==null||M.seekBy(-5,void 0,void 0,71)}}},HFY=function(G,e,r){return function(Z){!r().disableScrubbing&&G.startPosition&&RzV(G,Z,e(),r())}},dad=function(G,e,r){return function(){if(!r().disableScrubbing)if(G.startPosition){var Z=e(),O=r();
wC(G,e(),r());if(O.onTouchEnd)O.onTouchEnd(Z)}else e().setState({isDragging:!1})}},SuH=function(G){G=G.touches[0];
return{x:G.clientX,y:G.clientY}},RzV=function(G,e,r,Z){if(e.buttons!==1){if(e.movementX||e.movementY)e.preventDefault(),e.stopPropagation(),G=o2W(G,r,e.clientX),r.setState({isHovering:!0,
hoveredTime:G*r.videoDuration})}else scW(r),g2W(G,e,{x:e.clientX,y:e.clientY},r,Z,!1)};
vq.prototype.handleMouseLeave=function(G){scW(G)};
var scW=function(G){G.isHovering&&G.setState({isHovering:!1,hoveredTime:0})},$aW=function(G,e,r,Z){G.startPosition||(G.startPosition=r,G.updateProgressBarRect(),G.controlsWereVisibleBeforeDragging=Z.controlsVisible,e.stopPropagation(),_.R("medium_progress_bar_modification")||e.preventDefault())},g2W=function(G,e,r,Z,O,M){if(G.startPosition)if(M&&O.isInlinePlayback&&G.startPosition&&!G.hasDraggedTheMinimumDistance&&Math.abs(r.y-G.startPosition.y)>Math.abs(r.x-G.startPosition.x))wC(G,Z,O);
else if(e.preventDefault(),e.stopPropagation(),Z.videoDuration&&(G.startPosition&&!G.hasDraggedTheMinimumDistance&&(G.hasDraggedTheMinimumDistance=Math.abs(r.x-G.startPosition.x)>=1),O.enableFineScrubbing&&(G.startPosition&&(G.isDraggedForFineScrubbing=-(r.y-G.startPosition.y)>=60),!G.startPosition||r.y>=G.startPosition.y||(Z.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:AFA(Z.draggedTime,Z,O.chapterData)}),G.setFineScrubbingDraggedTime(Z.draggedTime),G.updateFilmStripDraggedYDistance(G.startPosition.y,
r.y,Z))),G.hasDraggedTheMinimumDistance)){e=o2W(G,Z,r.x);if(G.isDraggedForFineScrubbing){var T;(T=Z.playerApi)==null||T.pauseVideo();Z.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:Z.draggedTime,filmStripXDistance:AFA(e*Z.videoDuration,Z,O.chapterData)})}O.enableFineScrubbing&&(!O.enableFineScrubbing||G.getFilmstripYPosition(Z)<68)||Z.setState({draggedTime:e*Z.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:G.controlsWereVisibleBeforeDragging});var E;(E=
O.cancelAutohideControlsFn)==null||E.call(O)}},wC=function(G,e,r){var Z=r.enableFineScrubbing&&e.fineScrubbingActiveState!=="off";
if(e.isDragging||Z){Z={isDragging:!1,playedTime:e.draggedTime,controlsVisible:G.controlsWereVisibleBeforeDragging};r.enableFineScrubbing&&e.fineScrubbingActiveState!=="on"&&(G.resetFilmStripYOffset(),Z.fineScrubbingActiveState="off");var O=O===void 0?QE_:O;var M=_.l4(0);if(M&&O){var T=Math.round(e.playedTime*1E3),E=Math.round(e.draggedTime*1E3);T>2147483647||E>2147483647||_.mC(M,O,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(T),endMediaTimeMs:String(E),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}e.setState(Z);
G.seekThrottle.fire(e.draggedTime,e,7);_.R("mweb_new_progress_bar_play_on_seek")&&G.resumeVideo(e);r.unmuteOnSeek&&(r=e.playerApi,e.volumeMuted&&(r==null||r.unMute()))}else e.setState({controlsVisible:!e.controlsVisible}),(M=r.triggerAutohideControlsAfterDelayFn)==null||M.call(r);G.startPosition=null;G.hasDraggedTheMinimumDistance=!1;G.isDraggedForFineScrubbing=!1;G.controlsWereVisibleBeforeDragging=!1};
vq.prototype.handleClick=function(G,e,r){this.updateProgressBarRect();G.stopPropagation();G=o2W(this,e,G.clientX)*e.videoDuration;e.setState({playedTime:G});if(e.playerState!==2){var Z;(Z=r.triggerAutohideControlsAfterDelayFn)==null||Z.call(r)}this.seekThrottle.fire(G,e,7)};
var o2W=function(G,e,r){G=G.getProgressBarRect(e);return _.j0(0,(r-G.left)/G.width,1)};
vq.prototype.resumeVideo=function(G){if(G.draggedTime<G.videoDuration){var e;(e=G.playerApi)==null||e.playVideo()}};
vq.prototype.onThrottledSeek=function(G,e,r){if(e=e.playerApi){var Z;if((Z=e.getVideoData())==null?0:Z.isLive)Z=this.getProgressState(e),G+=(Z==null?void 0:Z.seekableStart)||0;e.seekTo(G,void 0,void 0,void 0,r)}};
vq.prototype.getProgressState=function(G){var e=G==null?void 0:G.getPresentingPlayerType();return G==null?void 0:G.getProgressState(e)};var pGl,IGV,CAA,n2V,QcA,maa,c0A,Yuo,y0o;pGl=_.y(function(G){var e=G.progressBarProps;var r=G.config;var Z=G.progressBarWidthPx;var O=G.chapterData;var M=P3q(e,function(){return r().isShortsPage}),T=function(){return!e().isHovering&&!r().isShortsPage};
G={};var E=_.LC("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(G.ytPlayerStoryboardHostMwebShorts=function(){return r().isShortsPage&&!1},G));
return _.v("yt-player-storyboard",null,_.v(_.S,{cond:function(){return e().isDragging||e().isHovering},
then:function(){return _.v(_.S,{cond:M,then:function(b){return _.v(_.S,{cond:T,then:function(){return _.v("div",{class:E,"aria-hidden":"true"},_.v(QcA,{props:e,config:r,isBigboard:!0,chapterData:O}))},
else:function(){return _.v(IGV,{props:e,frame:b,config:r,progressBarWidthPx:Z,chapterData:O})}})}})}}))},"Hg");
_.uFC=_.y(function(G){var e=G.progressBarProps;var r=P3q(e,G.isShortsPage);return _.v("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.v(_.S,{cond:function(){return e().isDragging||e().isHovering},
then:function(){return _.v(_.S,{cond:r,then:function(Z){return _.v(CAA,{frame:Z,props:e,isBigboard:!0})}})}}))},"Ig");
IGV=_.y(function(G){var e=G.props;var r=G.frame;var Z=G.config;var O=G.progressBarWidthPx;G=G.chapterData;var M={};M=_.LC("ytPlayerStoryboardHost",(M.ytPlayerStoryboardHostMwebShorts=function(){return Z().isShortsPage&&!1},M.ytPlayerStoryboardHostInlinePlayer=function(){return Z().isInlinePlayer},M.ytPlayerStoryboardHostFadeIn=function(){return Z().useFadeInAnimation},M));
return _.v("div",{class:M,"aria-hidden":"true",style:function(){var T=e(),E=F1_(r()),b=O();T=JFA(T)/T.videoDuration;var w=b*T,q=E/2+6;E=b-(E/2+6);return"left: "+(w<=q?q/b*100:w>=E?E/b*100:T*100)+"%"}},_.v(_.S,{cond:function(){var T=e();
return!(Z().isShortsPage&&T.videoDuration<15)},
then:function(){return _.v(CAA,{frame:r,props:e,isBigboard:!1})}}),_.v(QcA,{props:e,
config:Z,isBigboard:!1,chapterData:G}))},"Jg");
CAA=_.y(function(G){var e=G.frame;var r=G.props;var Z=G.isBigboard;var O=function(){var E,b;return(b=(E=r().playerApi)==null?void 0:E.getVideoContentRect())!=null?b:{width:0,height:0}},M=function(){return F1_(e())},T=function(){var E=e();
return E?E.height/E.rows:0};
G={};G=_.LC((G.ytPlayerStoryboardBigboardImageWrapper=Z,G.ytPlayerStoryboardStoryboardImageWrapper=function(){return!Z()},G));
return _.v("div",{class:G,style:function(){return"width: "+(Z()?O().width:M())+"px; height: "+(Z()?O().height:T())+"px;"}},_.v(n2V,{frame:e,
storyboardWidth:M,storyboardHeight:T,storyboardScale:function(){return(Z()?O().width:M())/M()}}))},"Kg");
n2V=_.y(function(G){var e=G.frame;var r=G.storyboardWidth;var Z=G.storyboardHeight;var O=G.storyboardScale;var M=function(){var T=e().row,E=e().column,b=r(),w=Z(),q=O();return{left:-E*b*q,top:-T*w*q}};
return _.v("img",{src:function(){return e().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+M().left+"px; top: "+M().top+"px; width: "+e().width*O()+"px; height: "+e().height*O()+"px;"}})},"Lg");
QcA=_.y(function(G){var e=G.props;var r=G.config;var Z=G.isBigboard;var O=G.chapterData;G={};G=_.LC("ytPlayerStoryboardMetadata",(G.ytPlayerStoryboardMetadataBigboard=Z,G));return _.v("div",{class:G},_.v(_.S,{cond:Z,then:function(){return _.v(_.$Z,null,_.v(maa,{props:e,config:r}),_.v(_.S,{cond:function(){a:{var M=e();var T=r(),E=O(),b;if((T==null?0:T.activeChapter)&&((b=_.a(T==null?void 0:T.activeChapter,ar))==null?0:b.title))M=!0;else{T=_.h(K1$(E));for(T=T.next();!T.done;T=T.next()){M=(T=_.a(T.value,
yqb))&&BKy(M,T);break a}M=!1}}return M},
then:function(){return _.v(c0A,{props:e,config:r,isBigboard:!0,chapterData:O})}}))},
else:function(){return _.v(_.$Z,null,_.v(c0A,{props:e,config:r,isBigboard:!0,chapterData:O}),_.v(maa,{props:e,config:r}))}}))},"Mg");
maa=_.y(function(G){var e=G.props;var r=G.config;G={};G=_.LC("ytPlayerStoryboardTimestamp",(G.ytPlayerStoryboardTimestampShorts=function(){return r().isShortsPage},G.ytPlayerStoryboardTimestampIsHovering=function(){return e().isHovering||r().isShortsPage&&!0},G));
return _.v("div",{class:G},_.v(_.$Z,null,function(){return _.xyy(JFA(e()))}))},"Ng");
c0A=_.y(function(G){var e=G.props;var r=G.config;var Z=G.isBigboard;var O=G.chapterData;G={};Z=_.LC("ytPlayerStoryboardTitle",(G.ytPlayerStoryboardTitleBigboard=Z,G));return _.v("div",{class:Z},_.v(_.S,{cond:function(){return!r().isShortsPage},
then:function(){return _.v(Yuo,{props:e,activeChapter:function(){return r().activeChapter},
chapterData:O})}}))},"Og");
Yuo=_.y(function(G){var e=G.props;var r=G.activeChapter;var Z=G.chapterData;return _.v(_.$Z,null,_.v(_.u6,{each:function(){return K1$(Z())},
keyBy:"INDEX"},function(O){return _.v(_.$Z,null,_.v(_.S,{cond:function(){return _.a(O(),yqb)&&BKy(e(),_.a(O(),yqb))},
then:function(){return _.v(y0o,{timedMarker:function(){return _.a(O(),yqb)}})}}))}),_.v(_.S,{cond:function(){var O;
return r()&&((O=_.a(r(),ar))==null?void 0:O.title)},
then:function(O){return _.v(_.Wh,{text:O,noPreWrap:!0})}}))},"Pg");
y0o=_.y(function(G){var e=G.timedMarker;return _.v(_.$Z,null,_.v("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.v(_.V$,{icon:function(){return e().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.v(_.Wh,{text:function(){return e().label},
noPreWrap:!0}))},"Qg");_.A0W=_.y(function(G){var e=G.progressBarProps;var r=G.playheadData;var Z=G.config;G=_.hT("yt-progress-bar");var O=_.hT("div"),M=_.hT("div"),T=_.h(_.XQ({width:0,left:0},void 0,"WloVn")),E=T.next().value,b=T.next().value,w=function(){M.value&&b(M.value.getBoundingClientRect())},q=function(){E().width<=0&&w();
return E()};
_.iC("resize",w);var t=new vq(q,function(){},function(){return 0},function(){},function(){},function(){}),g=function(){return e()};
T=_.h(_.XQ(!1,void 0,"u8BZZb"));var l=T.next().value,X=T.next().value;T=_.ev(function(){X(!0);Z().position===2?setTimeout(function(){w()},100):w()});
var H=_.ev(function(){X(!1);aGl(t,g)()}),I=_.ev(function(k4){Z().doSeekOnClick&&wGl(t,g,Z)(k4);
return!1}),C=_.ev(function(k4){quW(t,g)(k4);
return!1}),u=_.ev(function(k4){tSC(t,g)(k4);
return!1}),P=_.ev(function(k4){lGV(t,g,Z)(k4);
return!1}),F=_.ev(function(k4){jc2(t,g,Z)(k4);
return!1}),J=_.ev(function(){XGa(t,g,Z)();
return!1}),U=_.ev(function(){KBm(t,g,Z)();
return!1}),e$=_.ev(function(){fG8(t,g,Z)();
return!1}),Dq=_.ev(function(k4){kco(g)(k4);
return!1});
_.iC("mousemove",HFY(t,g,Z));_.iC("mouseup",dad(t,g,Z));_.yY(function(){IhS(O.value);X(!1);w();dad(t,g,Z)()});
var bF={};bF=_.LC("ytPlayerProgressBarHost",function(){return Z().className},(bF.ytPlayerProgressBarHostReadOnly=function(){return Z().disableScrubbing},bF.ytPlayerProgressBarHostHidden=function(){return Z().hideProgressBar&&!l()},bF.ytPlayerProgressBarHostLowerPlayer=function(){return Z().position===0},bF.ytPlayerProgressBarHostBottomEdge=function(){return Z().position===1},bF.ytPlayerProgressBarHostBottomInset=function(){return Z().position===2},bF.ytPlayerProgressBarHostCustom=function(){return Z().position===
3},bF));
var Kf={},ti=_.LC("ytPlayerProgressBarBackground",(Kf.ytPlayerProgressBarBackgroundHide=function(){return Z().position===2&&!l()&&!e().isDragging},Kf));
Kf={};Kf=_.LC("ytPlayerProgressBarDragContainer",(Kf.ytPlayerProgressBarDragContainerBottomEdge=function(){return Z().position===1},Kf));
var Ry={};Ry=_.LC("ytPlayerProgressBarProgressBar",(Ry.ytPlayerProgressBarProgressBarInset=function(){return Z().position===2},Ry.ytPlayerProgressBarProgressBarInsetMinimized=function(){return Z().position===2&&!l()&&!e().isDragging},Ry));
var nf=function(){return Math.floor(RY_(e())*100)};
return _.v("yt-progress-bar",{el:G,class:bF},_.v(_.S,{cond:function(){return Z().position===2},
then:function(){return _.v("div",{class:ti})}}),_.v("div",{el:O,
"on:click":I,"on:touchstart":C,"on:touchmove":P,"on:mouseenter":T,"on:mousedown":u,"on:mouseleave":H,"on:mousemove":F,"on:mouseup":U,"on:touchend":J,"on:touchcancel":e$,"on:keydown":Dq,class:Kf,role:"slider","aria-valuenow":nf,"aria-valuetext":function(){return nf()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return e().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.OK("SEEK_SLIDER")},_.v("div",{el:M,class:Ry},_.v(iFa,{progressBarProps:e,config:Z,highContrast:function(){return!!Z().isInlinePlayback}}),_.v(_.S,{cond:function(){return Z().chapterData&&fhA(Z().chapterData)},
then:function(){return _.v(DaW,{progressState:e,multiMarkersPlayerBarRenderer:function(){return Z().chapterData},
progressBarWidth:function(){return E().width}})},
else:function(){return _.v(bFW,{progressBarProps:e,config:Z})}}),_.v(v28,{progressBarProps:e,
playheadData:r,interpolateDotPosition:function(){return Z().position!==2},
hidePlayhead:function(){return Z().playheadDotBehavior===1&&!l()}}))),_.v(pGl,{progressBarProps:e,
config:function(){return{activeChapter:mya(e(),Z().chapterData),getProgressBarWidthPx:function(){return q().width},
isShortsPage:!!Z().isShortsPage,isInlinePlayer:!!Z().isInlinePlayback,useFadeInAnimation:!!Z().isInlinePlayback}},
progressBarWidthPx:function(){return E().width},
chapterData:function(){return Z().chapterData}}))},"Rg");
_.A0W.idomCompat=!0;Object.assign({},_.kLy(),{setState:function(){},
domMeasurements:{},appApi:_.lhs(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var FBa;
_.J08=_.y(function(){var G,e=(G=_.Kp(UyS().playerApi))!=null?G:void 0;G=_.h(_.XQ(!1,void 0,"Z9NQ1b"));var r=G.next().value,Z=G.next().value;G=_.h(_.XQ(!1,void 0,"HoVJXe"));var O=G.next().value,M=G.next().value;G=_.h(_.XQ(!1,void 0,"DWCY3"));var T=G.next().value,E=G.next().value;G=_.h(_.XQ(!1,void 0,"g4C2Zd"));var b=G.next().value,w=G.next().value;G=_.h(_.XQ(0,void 0,"lmVfFb"));var q=G.next().value,t=G.next().value;G=_.h(_.XQ(0,void 0,"mFLbzb"));var g=G.next().value,l=G.next().value;G=_.h(_.XQ(!1,void 0,
"hQN4Wb"));var X=G.next().value,H=G.next().value;G=_.h(_.XQ(0,void 0,"WWU0fb"));var I=G.next().value,C=G.next().value;G=_.h(_.XQ(0,void 0,"MJ7LMd"));var u=G.next().value,P=G.next().value;G=_.h(_.XQ("",void 0,"hnomOe"));var F=G.next().value,J=G.next().value;G=_.h(_.XQ(-1,void 0,"ARe3pf"));var U=G.next().value,e$=G.next().value,Dq=_.dw(function(){var bF={controlsVisible:r(),isOverlayHidden:O(),shouldWaitToHideControls:T(),isDragging:b(),isHovering:X(),videoDuration:I(),playedTime:u(),videoId:F(),draggedTime:g(),
hoveredTime:q(),playerState:U()};return Object.assign({},_.kLy(),bF,{domMeasurements:{},setState:function(Kf){Kf.controlsVisible!==void 0&&Z(Kf.controlsVisible);Kf.isOverlayHidden!==void 0&&M(Kf.isOverlayHidden);Kf.shouldWaitToHideControls!==void 0&&E(Kf.shouldWaitToHideControls);Kf.isDragging!==void 0&&w(Kf.isDragging);Kf.isHovering!==void 0&&H(Kf.isHovering);Kf.draggedTime!==void 0&&l(Kf.draggedTime);Kf.hoveredTime!==void 0&&t(Kf.hoveredTime);Kf.videoDuration!==void 0&&C(Kf.videoDuration);Kf.playedTime!==
void 0&&P(Kf.playedTime);Kf.videoId!==void 0&&J(Kf.videoId);Kf.playerState!==void 0&&e$(Kf.playerState)},
appApi:_.lhs(),playerApi:e})},void 0,"Au4PIf");
_.YZ(function(){e==null||e.addEventListener("onVideoProgress",sEA(Dq));e==null||e.addEventListener("onVideoDataChange",oIF(Dq));e==null||e.addEventListener("onStateChange",HsN(Dq))});
_.yD(function(){if(e==null?0:e.isReady())e==null||e.removeEventListener("onVideoProgress",sEA(Dq)),e==null||e.removeEventListener("onVideoDataChange",oIF(Dq)),e==null||e.removeEventListener("onStateChange",HsN(Dq))});
return _.v("desktop-shorts-player-controls",null,_.v(FBa,{playerControlsProps:Dq}))},"Tg");
FBa=_.y(function(G){var e=G.playerControlsProps;return _.v("div",{class:"desktopShortsPlayerControlsHost"},_.v(_.A0W,{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}}}))},"Ug");_.BLY=_.y(function(G){function e(bF){bF!==0||t()?bF>50&&(t()||!l())?(g(!1),X(!0)):bF<=50&&(t()||l())&&(g(!1),X(!1)):g(!0)}
function r(bF,Kf){var ti;return _.D(function(Ry){if(Ry.nextAddress==1)return Ry.yield(_.G_(),2);ti=Ry.yieldResult;Kf&&ti?(ti.unMute(!0),bF&&(W1i(bF,ti.getVolume()),I(ti.getVolume()))):ti&&(ti.mute(!0),bF&&W1i(bF,0));_.HL(Ry)})}
function Z(bF){var Kf,ti;return _.D(function(Ry){if(Ry.nextAddress==1)return Ry.yield(_.G_(),2);Kf=Ry.yieldResult;ti=50;Kf&&(ti=Kf.getVolume(),Kf.isMuted()?W1i(bF,0):W1i(bF,ti));I(ti);_.HL(Ry)})}
var O=G.orientation;G=_.hT("desktop-shorts-volume-controls");var M=_.hT("button"),T=_.T2("input"),E=_.h(_.XQ(!1,void 0,"MvN0Tc")),b=E.next().value,w=E.next().value,q=_.h(_.XQ(!1,void 0,"aSjsEb"));E=q.next().value;q=q.next().value;var t=E,g=q;q=_.h(_.XQ(!0,void 0,"FUh46d"));E=q.next().value;q=q.next().value;var l=E,X=q;E=_.h(_.XQ(50,void 0,"yPke4d"));var H=E.next().value,I=E.next().value;E=_.dw(function(){var bF=t();return _.R("web_shorts_keyboard_enable_mute_shortcut")?bF?_.OK("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.OK("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):bF?_.OK("UNMUTE_VOLUME",void 0,"Unmute"):_.OK("MUTE_VOLUME",void 0,"Mute")},void 0,"SHO4Df");
q=_.dw(function(){var bF=t(),Kf=l();return{sources:[{clientResource:{imageName:bF?_.R("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":Kf?_.R("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.R("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lfsRWd");
var C=_.dw(function(){var bF=H();return t()?bF+"% volume muted":bF+"% volume"},void 0,"xZsRmc"),u=_.dw(function(){return O()==="vertical_down"},void 0,"FVqYmb");
_.yY(function(){function bF(){w(!0)}
function Kf(){w(!1)}
T&&T.value&&(T.value.addEventListener("focus",bF),T.value.addEventListener("focusout",Kf),Z(T.value).then(function(){e(Number(NKF(T.value)))}));
M&&M.value&&(M.value.addEventListener("focus",bF),M.value.addEventListener("focusout",Kf));_.yD(function(){var ti;T==null||(ti=T.value)==null||ti.removeEventListener("focus",bF);var Ry;T==null||(Ry=T.value)==null||Ry.removeEventListener("focusout",Kf);var nf;M==null||(nf=M.value)==null||nf.removeEventListener("focus",bF);var k4;M==null||(k4=M.value)==null||k4.removeEventListener("focusout",Kf)})});
var P=_.ev(function(){if(T&&T.value){var bF=Number(NKF(T.value));zYi(bF);I(bF);T.value.style.setProperty("--gradient-percent",bF+"%");e(bF)}return!1}),F=_.ev(function(){T&&T.value&&(r(T.value,t()),g(!t()));
return!1}),J={},U={},e$={},Dq={};
return _.v("desktop-shorts-volume-controls",{"on:pointerleave":_.ev(function(){w(!1)}),
"on:pointerenter":_.ev(function(){w(!0)}),
class:_.LC("ytdDesktopShortsVolumeControlsHost",(J.ytdDesktopShortsVolumeControlsHostVertical=u,J.ytdDesktopShortsVolumeControlsHostModern=_.R("web_shorts_modern_controls"),J.ytdDesktopShortsVolumeControlsHostModernExpanded=function(){return _.R("web_shorts_modern_controls")&&b()},J)),
el:G},_.v(_.S,{cond:function(){return!u()},
then:function(){var bF={};return _.v("div",{class:_.LC("ytdDesktopShortsVolumeControlsBackgroundScrim",(bF.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=b,bF.ytdDesktopShortsVolumeControlsBackgroundScrimExpandedModern=function(){return _.R("web_shorts_modern_controls")&&b()},bF))})}}),_.v("div",{class:_.LC((U.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=u,U))},_.v("button",{"aria-label":E,
title:E,el:M,"on:click":F,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},q?_.v(_.nC,{data:q,alt:E,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.v("div",{class:_.LC("ytdDesktopShortsVolumeControlsSliderContainer",(e$.ytdDesktopShortsVolumeControlsSliderContainerExpanded=b,e$.ytdDesktopShortsVolumeControlsSliderContainerVertical=u,e$.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=u,e$.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=function(){return b()&&
u()},e$))},_.v("input",{"aria-label":_.OK("VOLUME"),
title:_.OK("VOLUME"),el:T,"on:input":P,type:"range",class:_.LC("ytdDesktopShortsVolumeControlsNativeSlider",(Dq.ytdDesktopShortsVolumeControlsNativeSliderModern=_.R("web_shorts_modern_controls"),Dq)),id:"volume-input",role:"slider","aria-valuenow":H,"aria-valuetext":C,"aria-valuemin":0,"aria-valuemax":100})))},"Vg");_.xa2=_.y(function(G){var e=G.data;var r=G.extractOverlay;G={};return _.v("player-disclosure-view-model",{class:_.LC("ytwPlayerDisclosureViewModelHost",(G.ytwPlayerDisclosureViewModelExtractOverlay=function(){return r==null?void 0:r()},G))},_.v(_.Ds,{command:function(){return e().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.v(_.S,{cond:function(){return e().iconName},
then:function(Z){return _.v(_.V$,{icon:Z})}}),_.v("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return e().text}),_.v(_.S,{cond:function(){return e().showEndChevron},
then:function(){return _.v(_.V$,{icon:"CHEVRON_RIGHT"})}})))},"Wg");var PAm=_.y(function(G){var e=G.data;var r=G.overlayDensity;G={};return _.v("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.v(_.E2,{data:function(){return e().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(Z){var O=Z.data;
return _.v(_.Aq,{data:function(){return(r==null?void 0:r())===1?Object.assign({},O(),{avatar:{avatarViewModel:Object.assign({},_.a(O().avatar,_.aH),{avatarImageSize:"AVATAR_SIZE_M"})}}):O()}})}}),_.v(_.E2,{data:function(){return e().avatarStackViewModel}},{avatarStackViewModel:function(Z){return _.v(_.FM,{data:Z.data})}}),_.v(_.Wh,{className:_.LC("ytReelChannelBarViewModelChannelName",(G.ytReelChannelBarViewModelChannelNameLarge=function(){return(r==null?void 0:r())===1},G)),
text:function(){return e().channelName},
linkInheritColor:!0,userInput:!0}),_.v("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.v(_.E2,{data:function(){return e().subscribeButtonViewModel}},{subscribeButtonViewModel:function(Z){var O=Z.data;
return _.v(_.ym,{data:function(){return(r==null?void 0:r())===1?Object.assign({},O(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},O().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):O()},
isOverlay:!1})},
buttonViewModel:_.wF})),_.v("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.v(_.E2,{data:function(){var Z,O;return(O=_.a((Z=e())==null?void 0:Z.sponsorButtonViewModel,zhS))==null?void 0:O.sponsorButton}},{buttonViewModel:function(Z){return _.v(_.wF,{data:Z.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Xg");var Uao=_.y(function(G){var e=function(){var O;return((O=G.overlayDensity)==null?void 0:O.call(G))===1},r=function(){return e()?22:16},Z={};
return _.v("yt-reel-multi-format-link-view-model",{class:_.LC("ytReelMultiFormatLinkViewModelHost",(Z.ytReelMultiFormatLinkViewModelHostTall=!0,Z.ytReelMultiFormatLinkViewModelHostLarge=function(){return e()},Z))},_.v(_.Ds,{ariaLabel:function(){return G.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return G.data().command}},_.v("h3",{class:function(){return e()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.v(_.S,{cond:function(){return G.data().icon},
then:function(O){return _.v(_.nC,{data:O,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:r})}}),_.v(_.Wh,{text:function(){return G.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Yg");
Uao.idomCompat=!0;var zz2=_.y(function(G){var e=G.data;var r=G.overlayDensity;var Z=G.extractOverlay;var O=_.hT("yt-shorts-suggested-action-view-model");G=_.h(_.XQ(!1,void 0,"S60Hzc"));var M=G.next().value,T=G.next().value;G=_.h(_.XQ(!1,void 0,"O76chf"));var E=G.next().value,b=G.next().value,w=function(){return e().isMultiLineSa},q=_.hI(Rli,function(){var J,U;
return(U=(J=e().toggleableContent)==null?void 0:J.entityKey)!=null?U:""}),t=function(){var J,U,e$;
return(e$=e().toggleableContent)!=null&&e$.entityKey?(U=(J=q())==null?void 0:J.value)!=null?U:!1:!1},g=function(){var J,U,e$,Dq,bF,Kf,ti,Ry,nf,k4,SE;
return e().toggleableContent?t()?(J=e().toggleableContent)==null?void 0:J.toggledData:(U=e().toggleableContent)==null?void 0:U.untoggledData:{primaryText:(Ry=(e$=e().defaultContent)==null?void 0:e$.primaryText)!=null?Ry:e().text,secondaryText:(Dq=e().defaultContent)==null?void 0:Dq.secondaryText,onTapCommand:(nf=(bF=e().defaultContent)==null?void 0:bF.onTapCommand)!=null?nf:e().onTapCommand,icon:(k4=(Kf=e().defaultContent)==null?void 0:Kf.icon)!=null?k4:e().icon,image:(SE=(ti=e().defaultContent)==
null?void 0:ti.image)!=null?SE:e().image}},l=function(){return w()?e().trailingTapTarget:void 0},X=function(J,U){return function(){return M()?U:J}},H=function(){return{leadingSection:X("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(r==null?void 0:r())===1?X("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):X("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:X("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:X("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:X("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
G={};G=_.LC((G.ytShortsSuggestedActionViewModelStaticHost=function(){return!w()},G.ytShortsSuggestedActionViewModelDynamicHost=w,G.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return w()&&E()},G.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return w()&&!E()},G.ytShortsSuggestedActionViewModelExtractOverlay=function(){return Z==null?void 0:Z()},G));
_.yY(function(){if(w()){var J=0,U;if((U=e().animationParams)==null?0:U.shouldExpand){var e$,Dq;J=((Dq=(e$=e().animationParams)==null?void 0:e$.expansionDelaySecs)!=null?Dq:0)*1E3}var bF,Kf=((bF=e().animationParams)==null?0:bF.shouldExpand)?setTimeout(function(){T(!0)},J):void 0,ti,Ry;
J=((ti=e().animationParams)==null?0:ti.visibilityDelaySecs)?((Ry=e().animationParams)==null?NaN:Ry.visibilityDelaySecs)*1E3:0;var nf=setTimeout(function(){b(!0)},J);
_.yD(function(){Kf&&clearTimeout(Kf);clearTimeout(nf)})}});
var I=function(J){_.HQ(J,Object.assign({},{form:{element:O.value}}))},C=_.ev(function(){var J,U=(J=g())==null?void 0:J.onTapCommand;
U&&I(U)}),u=_.ev(function(){var J,U;
if(J=(U=l())==null?void 0:U.onTapCommand)return I(J),!1}),P=_.Mk({"vertical-align":"bottom",
"border-radius":function(){var J;return w()?((J=e().defaultContent)==null?0:J.isCircleImage)?"50%":"4px":"0px"},
width:function(){var J,U,e$;return w()&&((J=e().defaultContent)==null?0:J.imageSize)?((e$=(U=e().defaultContent)==null?void 0:U.imageSize)!=null?e$:24)+"px":null},
height:function(){var J,U,e$;return w()&&((J=e().defaultContent)==null?0:J.imageSize)?((e$=(U=e().defaultContent)==null?void 0:U.imageSize)!=null?e$:24)+"px":null}}),F={};
return _.v("yt-shorts-suggested-action-view-model",{class:G,el:O},_.v("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.v("button",{class:_.LC(function(){return w()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var J;
return(J=e().useFullRoundedBorder)!=null&&J?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!l()&&w()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":w()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var J;
return(J=e().disableFixedHeight)!=null&&J?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(F.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(r==null?void 0:r())===1},F.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return Z==null?void 0:Z()},F)),
"on:click":C},_.v(_.ED,{model:{color:4}}),_.v("div",{class:_.LC(function(){return w()?H().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.v(_.S,{cond:function(){var J;
return(J=g())==null?void 0:J.image},
then:function(J){return _.v(_.nC,{data:J,alt:"",className:function(){return w()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:P})}}),_.v(_.S,{cond:function(){var J,U;
return(J=g())==null?void 0:(U=J.icon)==null?void 0:U.iconType},
then:function(J){return _.v(_.V$,{icon:J,active:t,className:function(){return w()?M()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.v("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.v(_.S,{cond:function(){var J;
return(J=g())==null?void 0:J.primaryText},
then:function(J){var U={};return _.v("div",{class:_.LC("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(U.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(r==null?void 0:r())===1},U))},_.v(_.Wh,{text:J}))}}),_.v(_.S,{cond:function(){var J;
return(J=g())==null?void 0:J.secondaryText},
then:function(J){return _.v("div",{class:function(){return H().secondaryText()}},_.v(_.Wh,{text:J}))}}))),_.v(_.S,{cond:l,
then:function(J){return _.v("div",{class:_.LC(function(){return H().trailingSection()},function(){var U,e$;
return(Z==null?void 0:Z())&&((e$=(U=H()).trailingSectionExtractOverlay)==null?void 0:e$.call(U))||""}),
"aria-label":function(){var U;return(U=J().a11yLabel)!=null?U:""},
"on:click":u,role:"button",tabindex:0},_.v(_.ED,{model:{color:4}}),_.v(_.V$,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Zg");var WBW=_.y(function(G){var e=G.data;var r=G.overlayDensity;var Z=_.hT("yt-shorts-video-title-view-model");G=_.ev(function(T){if(_.g8(_.tI(T),Z.value,["A".toString()]))return!1;(T=e().truncatedTextOnTapCommand)&&_.HQ(T);return!1});
var O={},M={};return _.v("yt-shorts-video-title-view-model",{el:Z,class:_.LC("ytShortsVideoTitleViewModelHost",(O.ytShortsVideoTitleViewModelHostClickable=function(){return!!e().truncatedTextOnTapCommand},O)),
"on:click":G},_.v("h2",{class:_.LC("ytShortsVideoTitleViewModelShortsVideoTitle",(M.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(r==null?void 0:r())===1},M))},_.v(_.Wh,{text:function(){return e().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(r==null?void 0:r())===1}})))},"$g");_.NLd=_.y(function(G){var e=G.data;var r=G.overlayDensity;var Z=G.extractOverlay;var O=function(){return(r==null?void 0:r())===1};
return _.v("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.v(_.E2,{data:function(){return e().metadataItems}},{badgeViewModel:function(M){M=M.data;
return _.v("div",{class:_.LC(function(){return O()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.v(_.vH,{data:M}))},
playerDisclosureViewModel:function(M){M=M.data;return _.v("div",{class:_.LC(function(){return O()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.v(_.xa2,{data:M,
extractOverlay:Z}))},
shortsSuggestedActionViewModel:function(M){M=M.data;return _.v("div",{class:_.LC(function(){return O()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.v(zz2,{data:M,
overlayDensity:r,extractOverlay:Z}))},
reelChannelBarViewModel:function(M){M=M.data;var T={};return _.v("div",{class:_.LC("ytReelMetapanelViewModelMetapanelItem",(T.ytReelMetapanelViewModelExpansive=function(){return O()},T))},_.v(PAm,{data:M,
overlayDensity:r}))},
reelMultiFormatLinkViewModel:function(M){M=M.data;var T={};return _.v("div",{class:_.LC("ytReelMetapanelViewModelMetapanelItem",(T.ytReelMetapanelViewModelExpansive=function(){return O()},T))},_.v(Uao,{data:M,
overlayDensity:r}))},
shortsVideoTitleViewModel:function(M){M=M.data;var T={};return _.v("div",{class:_.LC("ytReelMetapanelViewModelMetapanelItem",(T.ytReelMetapanelViewModelExpansive=function(){return O()},T))},_.v(WBW,{data:M,
overlayDensity:r}))},
reelSoundMetadataViewModel:function(M){M=M.data;var T={};return _.v("div",{class:_.LC("ytReelMetapanelViewModelMetapanelItem",(T.ytReelMetapanelViewModelExpansive=function(){return O()},T))},_.v(_.WVW,{data:M,
overlayDensity:r}))},
toggleButtonViewModel:function(M){M=M.data;var T={};return _.v("div",{class:_.LC("ytReelMetapanelViewModelMetapanelItem",(T.ytReelMetapanelViewModelExpansive=function(){return O()},T))},_.v(_.pb,{data:M}))}}))},"ah");var LBa=_.y(function(G){var e=_.cx(G,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),r=e.size,Z=e.onTap,O=e.disabled,M=e.tooltipText;return _.v("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.v(_.vk,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:r(),disabled:O(),tooltipText:M(),onTap:Z}},
iconName:G.iconType}))},"bh"),Grl=_.y(function(G){function e(q){q.stopPropagation();
q.code==="ArrowUp"?(q.preventDefault(),eAA(E.value)):q.code==="ArrowDown"?(q.preventDefault(),rUF(E.value)):q.code==="KeyM"?L1S():(q.code==="KeyK"||q.code==="Space")&&GHf(b())}
var r=_.cx(G,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});G=r.previousButtonDisabled;var Z=r.nextButtonDisabled,O=r.data,M=r.playabilityStatus,T=r.previewThumbnail,E=_.hT("ytd-shorts-miniplayer-overlay"),b=_.Eb(_.n0F),w;_.YZ(function(){(w=_.F$(E.value))&&w.addEventListener("keydown",e)});
_.yD(function(){var q;(q=w)==null||q.removeEventListener("keydown",e)});
r=function(){var q,t,g;return(q=O())==null?void 0:(t=q.reelPlayerOverlayRenderer)==null?void 0:(g=t.likeButton)==null?void 0:g.likeButtonRenderer};
return _.v("ytd-shorts-miniplayer-overlay",{el:E,class:"ytdShortsMiniplayerOverlayHost"},_.v("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.Mk({"background-image":function(){var q=T();return q?'url("'+_.xh(q.thumbnails)+'")':""}})}),_.v("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.v("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.v(LBa,{iconType:function(){var q=b();
return q===2||q===-1||q===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){GHf(b())},
tooltipText:function(){var q=b();return q===1||q===3?_.OK("PLAYER_LABEL_PAUSE"):_.OK("PLAYER_LABEL_PLAY")}}),_.v(_.BLY,{orientation:"horizontal_right"})),_.v("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.v(LBa,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:G,onTap:function(){eAA(E.value)},
tooltipText:_.OK("PREVIOUS_VIDEO_LABEL")}),_.v(LBa,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:Z,onTap:function(){rUF(E.value)},
tooltipText:_.OK("NEXT_VIDEO_LABEL")}),_.R("web_shorts_pip_like_button")?_.v("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.v(lvV,{buttonTooltipPosition:"left",data:r,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.v("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.v(_.S,{cond:function(){var q,t;return _.a((q=O())==null?void 0:(t=q.reelPlayerOverlayRenderer)==null?void 0:t.metapanel,
xGv)},
then:function(q){return _.v("div",{class:_.LC("ytdShortsMiniplayerOverlayInteractive")},_.v(_.NLd,{data:q}))}})),_.v("div",{class:_.LC("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var q;return!((q=O())==null||!q.adsOverlay)||M()&&!mVS(M())}},_.v("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.v(_.J08,null)))),_.v(_.S,{cond:function(){var q=O(),t,g;
q=_.a(q==null?void 0:(t=q.adsOverlay)==null?void 0:(g=t.fulfillmentContent)==null?void 0:g.fulfilledLayout,dpv);return _.a(q==null?void 0:q.renderingContent,Clb)},
then:function(q){return _.v("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.v(zVW,{data:q}))}}))},"dh");var Z3i=_.y(function(){var G=_.h(_.XQ(new _.kf(NaN,NaN),void 0,"hq9Bjf")),e=G.next().value,r=G.next().value;G=_.h(_.XQ(!1,void 0,"Mu3aZc"));var Z=G.next().value,O=G.next().value,M=_.h(_.XQ(!1,void 0,"LGtoFb"));G=M.next().value;var T=M.next().value,E=_.v_().resolve(_.fp).miniplayerPropSignalMap[0],b=E.data,w=E.shortsData,q=E.nextButtonDisabled,t=E.shortsPreviewThumbnail,g=E.previousButtonDisabled,l=E.externalPlaylistData;M=E.toastData;var X=E.playabilityStatus,H=E.isDisabled,I=E.playerVe,C=E.closeVe;
E=_.Eb(_.Be);_.Vk("yt-pip-window-resized",function(J){r(J)});
_.Vk("yt-activate-pip-miniplayer",function(){return _.D(function(J){T(!0);_.HL(J)})});
var u=function(){var J;return!((J=l())==null||!J.contents)&&Z()},P=function(){var J=e(),U=!!b(),e$=u();
J=J.clone();U&&(J.height-=76);e$&&(J.height-=285);return J},F=function(){O(!Z())};
_.Y8(function(){var J=I(),U=_.l4(11),e$=_.go(11);U&&e$&&J&&(_.QU(U,e$,J),e$=C())&&(_.Il(U,J,[e$]),_.C_(U,[e$]))},"fHkmfb");
return _.v("ytd-pip-container",{class:"ytdPipContainerHost"},_.v(_.S,{cond:G,then:function(){return _.v(_.VSo,{isDisabled:H,playabilityStatus:X,size:P})}}),_.v(_.S,{cond:b,
then:function(){return _.v(_.OF8,{data:b,expanded:Z,onExpandClick:F,playlistData:l})}}),_.v(_.S,{cond:u,
then:function(){return _.v("div",{class:"ytdPipContainerPlaylistPanel"},_.v(_.tZm,{data:l,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.v(_.S,{cond:E,
then:function(){return _.v(Grl,{data:w,nextButtonDisabled:q,previousButtonDisabled:g,playabilityStatus:X,previewThumbnail:t})}}),_.v("div",{class:"ytdPipContainerToast"},_.v(_.hzW,{toastData:M})))},"fh");var $o=function(G,e,r){var Z=this;this.pipController=G;this.JSC$18998_clientRoot=e;this.JSC$18998_pageRequestService=r;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=SX_();this.watchPipEnabled=_.R("web_watch_pip");this.shortsPipEnabled=_.R("web_shorts_pip");this.JSC$18998_watchWhileEnabled=_.R("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;_.IC(_.Yt(),Qqa,function(O){Z.isSingleOptionSurveyActive=O});
this.JSC$18998_onPlayerPlayVideo=this.JSC$18998_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);_.re(_.e8.getInstance(),this.miniplayerServiceActionMap,this.JSC$18998_clientRoot);G.pictureInPictureSupported()&&_.cg("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},qCj,Ecm,V4B,iLH,bL8,mPw;
$o.prototype.handleMediaSessionPipActivation=function(){var G=this,e;return _.D(function(r){_.sI().mediaSessionPipActivation=!0;e=_.v_().resolve(_.y$);return e.isOnWatch()&&G.watchPipEnabled?(_.sI().watchPipActivation=!0,_.erl(G,e.data),r.jumpTo(0)):e.isOnShorts()&&G.shortsPipEnabled?(_.sI().shortsPipActivation=!0,_.rGC(G),r.jumpTo(0)):G.isMiniplayerActive()&&G.watchPipEnabled&&!G.watchWhileMode?r.yield(ZLW(G),0):r.jumpTo(0)})};
var ZLW=function(G){var e,r,Z,O;return _.D(function(M){if(M.nextAddress==1)return e=!G.miniplayerToPipMode,r=G.playerElement,Z=G.miniplayerData,O=G.watchResponse,M.yield(G.deactivate(),2);if(M.nextAddress!=3)return e?(_.sI().mediaSessionPipActivation=!0,_.sI().watchPipActivation=!0):_.sI().miniplayerButtonActivation=!0,M.yield(G.activate(r,Z,O),3);G.miniplayerToPipMode=e;_.HL(M)})};
$o.prototype.onDownloadedVideoDeleted=function(G){var e,r=_.a((e=this.miniplayerData)==null?void 0:e.watchEndpoint,_.u4),Z,O;r&&((Z=this.watchResponse)==null?void 0:(O=Z.playerResponse)==null?void 0:O.offlineState)!==void 0&&(e=r.videoId)&&G&&e===G&&this.close()};
$o.prototype.onShowMiniplayerCommand=function(G){var e=this,r,Z,O,M,T,E,b,w,q,t,g;return _.D(function(l){switch(l.nextAddress){case 1:return r=_.a(G,IZC),O=(Z=r)==null?void 0:Z.miniplayerCommand,M=_.a(O,_.u4),O&&M&&!e.active?l.yield(_.Ye.getInstance(),2):l.return();case 2:return T=l.yieldResult,l.yield((E=T)==null?void 0:E.get("yt-miniplayer-shown-video-id"),3);case 3:b=l.yieldResult;w=M.videoId;if(!w||b===w)return l.return();q=_.v_().resolve(_.y$);if(q.isOnWatch())return _.FH(Error("Tj")),l.return();
t={channelItem:{externalId:btoa(w)}};e.readyToResumeVe=_.L1(121253,void 0,void 0,t);_.sI().showMiniplayerCommandActivation=!0;return l.yield(_.c7j(e,O,!0),4);case 4:return e.active&&(_.Sl(e,{readyToResumeVe:e.readyToResumeVe,isReadyToResume:!0}),e.isReadyToResume=!0),l.yield((g=T)==null?void 0:g.set("yt-miniplayer-shown-video-id",M.videoId),5);case 5:e.readyToResumeVe=void 0,_.HL(l)}})};
$o.prototype.init=function(G){this.miniplayerEl?_.FH(new _.Cr("MiniplayerService already initialized.")):this.miniplayerEl=G};
$o.prototype.isInitialized=function(){var G=!!this.miniplayerEl;G||_.FH(new _.Cr("MiniplayerService used before initialized."));return G};
_.erl=function(G,e){if(G.isInitialized()){var r=_.Rr(e.response,!1,e.playerResponse),Z=_.v_().resolve(_.y$).getPlayerFromWatch();_.sI().currentEndpoint=r.watchEndpoint||null;G.activate(Z,r,e)}};
_.rGC=function(G){if(G.isInitialized()){var e=_.v_().resolve(_.y$).getPlayerFromShorts();G.activate(e)}};
qCj=function(G,e){var r;(r=!G.isInitialized())||(r=_.v_().resolve(_.y$).isOnWatch()&&G.watchPipMode,r=!(G.isMiniplayerActive()&&(_.sI().userActivation||_.sI().lockupActivation||r)));if(r)return!1;OLd(G,e)?_.bI(G):mPw(G,e);return G.watchPipMode?!_.v_().resolve(_.y$).isOnWatch():!0};
$o.prototype.isMiniplayerActive=function(){return this.active};
var OLd=function(G,e){var r;e=(r=_.a(e,_.u4))==null?void 0:r.videoId;var Z,O;G=(O=_.a((Z=G.miniplayerData)==null?void 0:Z.watchEndpoint,_.u4))==null?void 0:O.videoId;return e!=null&&e===G};
$o.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.xy(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.Pi(this.miniplayerEl,"yt-navigate-home-action"))};
_.c7j=function(G,e,r,Z){r=r===void 0?!1:r;var O,M,T;return _.D(function(E){switch(E.nextAddress){case 1:if(G.active){E.jumpTo(2);break}O=_.v_().resolve(_.y$);if(T=(M=G.playerElement)!=null?M:O.getPlayerFromWatch()){E.jumpTo(3);break}return E.yield(_.v_().resolve(_.Ub),4);case 4:T=O.getPlayerFromWatch();case 3:if(!T){_.FH(Error("Vj"));E.jumpTo(2);break}return E.yield(G.activate(T,Z),2);case 2:return G.active?E.yield(mPw(G,e,r),0):E.return()}})};
$o.prototype.activate=function(G,e,r){var Z=this,O,M,T,E,b,w,q,t,g;return _.D(function(l){switch(l.nextAddress){case 1:if(!Z.isInitialized())return l.return();if(!G)return _.FH(Error("Vj")),l.return();if(_.LxW()||Z.isMiniplayerActive())var X=!0;else X=_.sI().watchPipActivation||_.sI().watchWhileActivation,_.v_().resolve(_.y$).isOnWatch()&&!X?(_.FH(new _.Cr("miniplayer activated on watch page")),X=!0):X=_.sI().watchWhileActivation?Z.userDeactivatedWatchWhile||!!document.pictureInPictureElement||gnA():
!1;if(X)return NAw(),l.return();O=_.sI().mediaSessionPipActivation;M=_.sI().shortsPipActivation;T=_.sI().watchPipActivation;b=(E=_.sI().watchWhileActivation)||T;w=T||M;if(!Z.pictureInPictureEnabled()||!w){l.jumpTo(2);break}return l.yield(M48(Z,O),3);case 3:if(!l.yieldResult)return _.FH(Error("Uj")),NAw(),l.return();case 2:return Z.setActive(!0),Z.watchResponse=r,Z.playerElement=G,Z.updateMiniplayerData(e),l.yield(V4B(Z,G),4);case 4:if(!Z.active)return _.FH(new _.Cr("miniplayer deactivated during activation")),
Z.removePlayerListeners(),l.return();X=_.v_().resolve(_.Gt);X.addEventListener("yt-navigate",_.ZQ(Z,Z.onPlaylistNavigate));X.addEventListener("yt-playlist-data-updated",_.ZQ(Z,Z.JSC$18998_onPlaylistDataUpdated));Z.JSC$18998_onPlaylistDataUpdated();NAw();Z.JSC$18998_watchWhileEnabled&&_.hrC(Z,E);Z.pictureInPictureEnabled()&&Z.shortsPipEnabled&&(Z.shortsPipMode=M,_.Yt().dispatch(YaE(Z.shortsPipMode)));Z.pictureInPictureEnabled()&&Z.watchPipEnabled&&(Z.watchPipMode=T,_.RMS(Z.handleMediaSessionPipActivation));
Z.player&&(q=Z.player.getPlayerState(),t=q===1,_.Yt().dispatch(zQ3(q)),_.UW(Z.miniplayerEl,"yt-miniplayer-play-state-changed",[t]),_.sI().isVideoPlaying=t);_.UW(Z.miniplayerEl,"yt-miniplayer-endpoint-changed");Tl2(Z);_.DhH(Z);if(Z.shortsPipMode||Z.watchPipMode)l=l.yield(_.Pi(Z.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{X=l.yield;var H=_.Pi(Z.miniplayerEl,"yt-activate-miniplayer",[b])[0];l=X.call(l,H,6)}return l;case 6:if(Z.watchResponse){X=Z.getScreenLayer();H=_.l4(0);var I=iSi(0);H&&I&&
(_.jW(H,I,X),X===0&&Dw$(void 0,0))}Ecm(Z);iLH(Z,!0);(g=Z.getPlayerElement())==null||g.focusOnPlayer();_.HL(l)}})};
$o.prototype.updateMiniplayerData=function(G){this.miniplayerData=G;_.Sl(this,{data:G})};
_.DhH=function(G){var e,r,Z=((e=G.miniplayerData)==null?void 0:(r=e.miniplayerRenderer)==null?void 0:r.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";e=G.watchWhileMode||G.watchPipMode?Z&&!_.v_().resolve(_.y$).isOnWatch():Z;_.Sl(G,{isDisabled:e});var O,M;r=_.a((O=G.miniplayerData)==null?void 0:(M=O.miniplayerRenderer)==null?void 0:M.minimizedEndpoint,_.sP);e&&r&&_.v_().resolve(_.nJ).openSheet({openPopupActionCommand:{openPopupAction:r}},G.miniplayerEl)};
Ecm=function(G){if(G.watchResponse&&!bL8(G)){var e,r=(e=G.watchResponse.playerResponse)==null?void 0:e.trackingParams;r&&(_.Sl(G,{expandVe:_.L1(35989),closeVe:_.L1(34699),readyToResumeCloseVe:_.L1(131070),repositionVe:_.L1(226204),resizeVe:_.L1(226205)}),_.Sl(G,{playerVe:_.b1(r)}))}};
V4B=function(G,e){return _.D(function(r){if(r.nextAddress==1)return e.preparePlayer(),r.yield(e.getPlayerPromise(),2);G.player=r.yieldResult;G.player&&(G.player.addEventListener("onPlayVideo",G.JSC$18998_onPlayerPlayVideo),G.player.addEventListener("onCloseMiniplayer",G.onPlayerCloseMiniplayer),G.player.addEventListener("onExpandMiniplayer",G.onPlayerExpandMiniplayer),G.player.addEventListener("onStateChange",G.onPlayerStateChange));_.HL(r)})};
_.V=$o.prototype;_.V.JSC$18998_onPlayerPlayVideo=function(G){var e=G.sessionData&&"autonav"in G.sessionData,r;G.sessionData&&G.sessionData.itct&&(r=G.sessionData.itct);var Z=G.watchEndpoint;e=Z&&e?_.FUp(Z,r):_.Jy(G.videoId,G.listId||void 0,r);G.sessionData&&_.Yy(_.a(e.commandMetadata,_.rJ).url,G.sessionData);mPw(this,e)};
_.V.onPlayerExpandMiniplayer=function(){_.bI(this)};
_.V.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.V.onPlayerStateChange=function(){if(this.player){var G=this.player.getPlayerState(),e=G===1;_.Yt().dispatch(zQ3(G));_.Yt().dispatch(_.Lgl(G));_.UW(this.miniplayerEl,"yt-miniplayer-play-state-changed",[e]);_.sI().isVideoPlaying=e;if(G===0){e=!_.vt.getInstance().isAutoplaySetExplicitly();var r,Z,O,M,T,E,b=(r=this.watchResponse.response)==null?void 0:(Z=r.contents)==null?void 0:(O=Z.twoColumnWatchNextResults)==null?void 0:(M=O.autoplay)==null?void 0:(T=M.autoplay)==null?void 0:(E=T.autoplayExplicitChoiceDialogRenderer)==
null?void 0:E.confirmDialogRenderer;e&&b&&this.player.setAutonavState(1)}G===0&&this.watchWhileMode&&this.deactivate()}};
_.V.onPlaylistNavigate=function(G,e){var r=this,Z,O,M,T,E,b,w;return _.D(function(q){if(q.nextAddress==1){if(!_.a(e.endpoint,_.u4))return q.return();_.sI().currentEndpoint=e.endpoint;_.UW(r.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.v_().resolve(_.y$).isOnWatch()&&(r.watchWhileMode||r.watchPipMode))return q.return();G.stopPropagation();(M=(O=_.a((Z=e.endpoint)==null?void 0:Z.commandMetadata,_.rJ))==null?void 0:O.url)&&e.tempData&&!_.c2.isEmpty(e.tempData)&&_.Yy(M,e.tempData);T={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};E=new LAc(function(){return r.getPlayerElement()},T,{layer:r.getScreenLayer()});
b=function(t){E.processChunk({endpoint:e.endpoint,data:t})};
vc8(r);r.miniplayerFetchRequest=wgm(r,e.endpoint,b);_.jr(q,2);return q.yield(r.miniplayerFetchRequest,4)}if(q.nextAddress!=2)return w=q.yieldResult,$ho(r,w),_.rL(q,0);_.k5(q);_.HL(q)})};
_.V.JSC$18998_onPlaylistDataUpdated=function(){var G=_.v_().resolve(_.Gt).getPlaylistData();this.hasPlaylistData=!!G;_.Sl(this,{externalPlaylistData:G||{}})};
_.V.close=function(G){if(this.isInitialized())if(G){if(!((this.watchWhileMode||this.watchPipMode)&&_.v_().resolve(_.y$).isOnWatch()||this.shortsPipMode)){var e;(e=this.getPlayerElement())==null||e.stop()}this.deactivate()}else _.M6().closeMiniplayer(this.miniplayerEl)};
_.V.deactivate=function(G){var e=this,r,Z,O,M;return _.D(function(T){if(T.nextAddress==1){if(!e.isInitialized()||!e.active)return T.return();e.setActive(!1);vc8(e);(r=!!G&&OLd(e,G))&&e.isSingleOptionSurveyActive&&_.Pi(e.miniplayerEl,"yt-show-watch-page-survey",[e.isSingleOptionSurveyActive]);return T.yield(SsY(e),2)}if(T.nextAddress!=3){iLH(e,!1);e.isReadyToResume=!1;e.watchResponse=void 0;e.updateMiniplayerData(void 0);e.shortsPipMode&&(e.shortsPipMode=!1,_.Yt().dispatch(YaE(e.shortsPipMode)),kya(e.pipController),
(Z=e.player)==null||Z.setInternalSize(NaN,NaN));e.watchPipMode&&(e.watchPipMode=!1,kya(e.pipController));(O=e.watchWhileMode)&&_.hrC(e,!1);e.removePlayerListeners();var E=_.v_().resolve(_.Gt);E.removeEventListener("yt-navigate",_.ZQ(e,e.onPlaylistNavigate));E.removeEventListener("yt-playlist-data-updated",_.ZQ(e,e.JSC$18998_onPlaylistDataUpdated));_.sI().currentEndpoint=null;_.UW(e.miniplayerEl,"yt-miniplayer-endpoint-changed");e.playerElement=null;NAw();if(e.shortsPipMode||e.watchPipMode)T=T.jumpTo(3);
else{E=T.yield;var b=_.Pi(e.miniplayerEl,"yt-deactivate-miniplayer",[r,O])[0];T=E.call(T,b,3)}return T}(M=e.player)==null||M.setInternalSize(NaN,NaN);e.player=null;_.HL(T)})};
var SsY=function(G){var e;return _.D(function(r){e=_.v_().resolve(_.y$);return G.shortsPipMode?r.yield(e.movePlayerToShorts(G.playerElement),0):r.yield(e.movePlayerToWatch(G.playerElement),0)})};
$o.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18998_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
$o.prototype.setActive=function(G){this.active=G;this.isSingleOptionSurveyActive?_.Pi(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.Pi(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Yt().dispatch(_.UK({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.hrC=function(G,e){G.watchWhileMode=e;_.Sl(G,{watchWhile:e})};
iLH=function(G,e){if(!bL8(G))if(G.shortsPipMode||G.watchPipMode){var r;(r=G.player)==null||r.setDocumentPictureInPicture(e)}else{var Z;(Z=G.player)==null||Z.setMinimized(e)}};
bL8=function(G){return G.watchWhileMode&&_.R("kevlar_watch_while_counterfactual")};
_.bI=function(G){var e;return _.D(function(r){switch(r.nextAddress){case 1:if(!G.isInitialized())return r.return();_.jr(r,2);return r.yield(G.miniplayerFetchRequest,4);case 4:_.rL(r,3);break;case 2:_.k5(r);case 3:G.watchResponse&&G.miniplayerData&&G.miniplayerData.watchEndpoint?(e={url:G.watchResponse.url,endpoint:G.miniplayerData.watchEndpoint,data:G.watchResponse,miniplayer:!0},_.xy(G.miniplayerEl,"yt-navigate-cache",e)):G.miniplayerData&&G.miniplayerData.watchEndpoint&&_.xy(G.miniplayerEl,"yt-navigate",
{endpoint:G.miniplayerData.watchEndpoint}),_.HL(r)}})};
mPw=function(G,e,r){var Z,O,M,T;return _.D(function(E){if(E.nextAddress==1){if(OLd(G,e))return E.return();_.sI().currentEndpoint=e;_.UW(G.miniplayerEl,"yt-miniplayer-endpoint-changed");_.UW(G.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.sI().isVideoPlaying=!1;Z={clientParams:{miniplayer:!0,autoSaveToQueue:!r}};O=new LAc(function(){return G.getPlayerElement()},Z,{layer:G.getScreenLayer(),
parentLayer:0},void 0,G.readyToResumeVe);M=function(b){var w,q,t=Object.assign({},(w=b.playerResponse)==null?void 0:(q=w.playerConfig)==null?void 0:q.playbackStartConfig,{startPaused:!0}),g;r&&((g=b.playerResponse)==null?0:g.playerConfig)&&(b.playerResponse.playerConfig.playbackStartConfig=t);O.processChunk({endpoint:e,data:b})};
vc8(G);G.miniplayerFetchRequest=wgm(G,e,M);_.jr(E,2);return E.yield(G.miniplayerFetchRequest,4)}if(E.nextAddress!=2)return T=E.yieldResult,$ho(G,T),_.rL(E,0);_.k5(E);_.HL(E)})};
$o.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var vc8=function(G){G.miniplayerFetchRequest&&(G.miniplayerFetchRequest.cancel&&G.miniplayerFetchRequest.cancel("Active request obsolete"),G.miniplayerFetchRequest=null)},wgm=function(G,e,r){var Z,O=(Z=_.a(e.commandMetadata,_.rJ))==null?void 0:Z.url,M;
Z=!O||_.R("disable_miniplayer_tempdata")?{}:(M=WiA(O))!=null?M:{};return dB(G.JSC$18998_pageRequestService,e,Z,window.location.href,"watch",function(T,E){r(E)},function(T){return T!==G.miniplayerFetchRequest})},$ho=function(G,e){var r;
_.D(function(Z){if(!e)return Z.return();G.watchResponse=e;Ecm(G);Tl2(G);r=_.Rr(e.response,!1,e.playerResponse);if(G.isMiniplayerActive()){e.response&&(G.playerElement.watchNextData=e.response);var O=_.c2.getValueByKeys.apply(_.c2,[e].concat(_.mY(DDc)));_.c2.getValueByKeys.apply(_.c2,[e].concat(_.mY(wPb)))&&O&&_.v_().resolve(_.Gt).setAutoplayRenderer(O);if(O)if(_.R("kevlar_is_pupi_enabled")){var M,T,E,b,w,q=((M=e.response)==null?0:(T=M.playerOverlays)==null?0:(E=T.playerOverlayRenderer)==null?0:(b=
E.autonavToggle)==null?0:(w=b.autoplaySwitchButtonRenderer)==null?0:w.enabled)?2:1;_.vt.getInstance().setState(q,!1,!1)}else M=EAy()?2:1,(q=G.player)==null||q.setAutonavState(M);G.updateMiniplayerData(r);_.DhH(G)}_.HL(Z)})},Tl2=function(G){var e,r,Z=(e=G.watchResponse)==null?void 0:(r=e.playerResponse)==null?void 0:r.playabilityStatus,O;
e=Z==null?void 0:(O=Z.miniplayer)==null?void 0:O.miniplayerRenderer;(e==null?void 0:e.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&e.minimizedEndpoint&&_.zw(G.miniplayerEl,[e.minimizedEndpoint]);_.Sl(G,{playabilityStatus:Z})};
$o.prototype.openToast=function(G,e){_.Sl(this,{toastData:{data:G,label:e}})};
_.Sl=function(G,e){(0,G.miniplayerPropSignalMap[1])(e)};
$o.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var G;return this.playerElement?this.playerElement:(G=_.z1(this.miniplayerEl).querySelector("#player-container"))==null?void 0:G.firstElementChild};
$o.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var M48=function(G,e){e=e===void 0?!1:e;var r,Z,O,M,T,E,b;return _.D(function(w){if(w.nextAddress==1){r=navigator.userActivation.isActive||e;if(!r||!G.pictureInPictureSupported())return w.return(!1);Z=qsa(G);O=Z.width;M=Z.height;return w.yield(G.pipController.openWindow({width:O,height:M}),2)}T=w.yieldResult;E=G.pipController.getWindow();if(!E||!T)return w.return(!1);E.document.body.style.overflow="hidden";b=O3a(E);Ho8(G.pipController,function(){t4m(G);b()});
return w.return(!0)})},qsa=function(G){var e=_.sI().shortsPipActivation,r,Z;
G=e?.5625:(Z=(r=G.player)==null?void 0:r.getVideoAspectRatio())!=null?Z:16/9;r=Math.min(window.innerWidth,window.innerHeight)/2;e=e?0:76;return G>1?new _.kf(r,e+r/G):new _.kf(r*G,e+r)},t4m=function(G){var e;
_.D(function(r){e=_.v_().resolve(_.y$);return e.isOnWatch()&&G.watchPipMode||e.isOnShorts()&&G.shortsPipMode?r.yield(G.deactivate(),0):G.miniplayerToPipMode?r.yield(ZLW(G),0):G.watchPipMode?r.yield(_.bI(G),0):r.jumpTo(0)})};
$o.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.iY.Object.defineProperties($o.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
$o[wR]=[dIH,bAW,_.vz];var gcd="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(" "),
lR8="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(" "),Rr2="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
jQA="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var aR8=function(G,e,r){_.pB.call(this);this.store=G;this.panelController=e;this.pageContentExtractor=r;this.isInitialized=!1};
_.K(aR8,_.pB);
aR8.prototype.init=function(G){var e=this;this.isInitialized||(this.isInitialized=!0,this.environment=G!=null?G:"CHAT_ENVIRONMENT_ENUM_YOUCHAT",this.pageSubtype=_.oH.currentPageSubTypeSelector(this.store.getState()),G=_.IC(this.store,_.oH.currentPageSubTypeSelector,function(r){a:if(_.Xgo(e))switch(r){case "shorts":case "learning":case "learning_journey_watch":case "learning_journey_browse":var Z=!0;break a;default:Z=!1}else Z=!1;Z&&e.panelController.hidePanel({identifier:"PAai_companion"});e.pageSubtype!==
r&&(e.pageSubtype=r)}),this.addOnDisposeCallback(G))};
_.P7V=function(G,e){if(_.Xgo(G))switch(e){case "watch":var r,Z;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(r=_.eV())==null?void 0:(Z=r.getVideoData())==null?void 0:Z.video_id};case "search":var O,M,T;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(M=(O=G.pageContentExtractor)==null?void 0:tOY(O))!=null?M:[],entityId:(T=(new URLSearchParams(window.location.search)).get("search_query"))!=null?T:void 0};case "companion-canvas":var E,b;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(b=(E=
G.pageContentExtractor)==null?void 0:tOY(E))!=null?b:[]};default:var w,q;G={videoIds:(q=(w=G.pageContentExtractor)==null?void 0:tOY(w))!=null?q:[]};return _.R("enable_ai_companion_default_page_context")?G:void 0}};
_.Xgo=function(G){return G.environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"};
aR8[wR]=[_.YB,_.uB,_.bq(g8a)];var Kfm=_.y(function(G){return _.v("yt-ai-companion-attachment-view-model",{el:_.cQ(_.jV(function(){return G.data().rendererContext})),
class:_.LC("ytAiCompanionAttachmentViewModelHost",G.className)},_.v("div",{class:"ytAiCompanionAttachmentViewModelTitleContainer"},_.v(_.S,{cond:function(){return G.data().title},
then:function(e){return _.v("h3",{class:"ytAiCompanionAttachmentViewModelTitleHeading",title:function(){return e().content}},_.v(_.Wh,{text:e}))}}),_.v(_.S,{cond:function(){return _.d8(G.data().trailingTitleIcon)},
then:function(e){return _.v("div",{class:"ytAiCompanionAttachmentViewModelTitleTrailingIcon"},_.v(_.nC,{data:e,alt:"",preserveWidth:!0,preserveHeight:!0}))}})),_.v(_.S,{cond:function(){return G.data().description},
then:function(e){return _.v("div",{class:"ytAiCompanionAttachmentViewModelDescription"},_.v(_.Wh,{text:e}))}}),_.v(_.S,{cond:function(){return G.data().bottomItem},
then:function(e){return _.v("div",{class:"ytAiCompanionAttachmentViewModelBottomItem"},_.v(_.E2,{data:e},{tableViewModel:KzW}))}}))},"hh");_.fRC=_.y(function(G){return _.v("yt-channel-attribution-view-model",{class:_.LC("ytChannelAttributionViewModelHost",G.className)},_.v("div",{class:"ytChannelAttributionViewModelUpper"},_.v(_.E2,{data:function(){return G.data().avatar}},{decoratedAvatarViewModel:_.Aq}),_.v("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.v(_.Wh,{text:function(){return G.data().title}}))),_.v("div",{class:"ytChannelAttributionViewModelBottom"},_.v(_.Wh,{text:function(){return G.data().subtitle}})))},"ih");var krY=_.y(function(G){var e=_.h(_.XQ(!1,void 0,"MFRKRb")),r=e.next().value,Z=e.next().value,O=function(){return G.data().activeRenderer},M=function(){return G.data().inactiveRenderer};
return _.v("yt-channel-disclosure-view-model",{"on:mouseleave":_.ev(function(){Z(!1)}),
"on:mouseover":_.ev(function(){Z(!0)}),
class:_.LC("ytChannelDisclosureViewModelHost",G.className)},_.v(_.S,{cond:function(){return r()},
then:function(){return _.v(_.E2,{data:O},{channelAttributionViewModel:_.fRC})},
else:function(){return _.v(_.E2,{data:M},{decoratedAvatarViewModel:_.Aq})}}))},"jh");var HLV=null;var dhY={},oca=(dhY.initialized={priority:10,callback:function(G){var e=_.v_();e.addProvider({provide:Rzl,useClass:oZo});e.addProvider({provide:_.d0A,useFactory:function(){return new jcS}});
e.addProvider({provide:UT,useValue:_.xZ("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});e.addProvider({provide:ZNa,useValue:5184E6});e.addProvider({provide:fdA,useValue:_.S0()});e.addProvider({provide:LlC,useClass:bGW});e.addProvider({provide:LX,useClass:LX});e.addProvider({provide:_.Ub,useFactory:function(){return y$v.promise}});
e.addProvider({provide:_.FgC,useFactory:function(){return _.A$W.promise}});
e.addProvider({provide:mE_,useValue:function(){var b;return((b=_.Ff())==null?void 0:b.getPlayer())||null}});
var r={};e.addProvider((r.provide=_.IK,r.useFactory=function(b,w){return function(){return Mdp(b,w)}},r[wR]=[UT,
ZNa],r));r={};e.addProvider((r.provide=_.g9,r.useClass=SQm,r[wR]=[UT,ZNa],r));r={};e.addProvider((r.provide=_.ljN,r.useClass=lDH,r[wR]=[_.g9],r));e.addProvider({provide:c0,useFactory:_.Yt});e.addProvider({provide:JZ,useFactory:_.Yt});e.addProvider({provide:TwB,useFactory:_.Yt});e.addProvider({provide:BSl,useFactory:_.Yt});e.addProvider({provide:_.YB,useFactory:_.Yt});e.addProvider({provide:R7,useValue:_.O6});e.addProvider({provide:XXo,useClass:xrf});e.addProvider({provide:jLW,useClass:R1Y});e.addProvider({provide:gt,
useClass:gt});e.addProvider({provide:qb,useClass:qb});e.addProvider({provide:D0,useClass:D0});e.addProvider({provide:tw,useClass:tw});e.addProvider({provide:f8,useClass:f8});e.addProvider({provide:TN,useClass:TN});e.addProvider({provide:Pl,useClass:Pl});e.addProvider({provide:_.Sp,useValue:BRB});r={};e.addProvider((r.provide=YwB,r.useFactory=function(b){return b.watchEndpointMap||{}},r[wR]=[_.Sp],r));
r={};e.addProvider((r.provide=yxo,r.useFactory=function(b){return b.reelWatchEndpointMap||{}},r[wR]=[_.Sp],r));
e.addProvider({provide:_.Qf,useFactory:_.h_});e.addProvider({provide:s7,useFactory:_.hy});r={};e.addProvider((r.provide=MNU,r.useFactory=function(b){return function(w){var q=q===void 0?{}:q;var t,g,l=(g=_.a((t=w.endpoint)==null?void 0:t.commandMetadata,_.rJ))==null?void 0:g.rootVe;if(l){var X,H;if(t=w.previousCsn||((H=_.a((X=w.endpoint)==null?void 0:X.commandMetadata,iKE))==null?void 0:H.parentCsn)){var I=I===void 0?{}:I;if(t!==_.l4(I.layer)||l!==iSi(I.layer))S4y(t,I.cttAuthInfo,I.layer||0),Dw$(t,
I.layer||0),X=I.layer||0,_.BX(E6i(X===void 0?0:X),l);q.parentCsn=t}w.endpoint&&t?CQW(b,w.endpoint,q):_.aC(b,l,void 0,q);var C;((C=w.response)==null?0:C.trackingParams)&&b.graftServerVe(w.response.trackingParams);var u;((u=w.playerResponse)==null?0:u.trackingParams)&&b.graftServerVe(w.playerResponse.trackingParams);var P;((P=w.reelWatchSequenceResponse)==null?0:P.trackingParams)&&b.graftServerVe(w.reelWatchSequenceResponse.trackingParams)}}},r[wR]=[_.Qf],r));
r={};e.addProvider((r.provide=E8A,r.useClass=DIl,r[wR]=[R7,_.YB],r));r={};e.addProvider((r.provide=Ju,r.useClass=Ju,r[wR]=[_.Ub,_.YB],r));r={};e.addProvider((r.provide=YF,r.useClass=YF,r[wR]=[JZ,_.$1],r));e.addProvider({provide:_.l2W,useClass:shY});r={};e.addProvider((r.provide=_.uB,r.useClass=a2C,r[wR]=[_.l2W,_.bq(_.cZ)],r));e.addProvider({provide:_.TQ,useClass:adl});r={};e.addProvider((r.provide=iR,r.useClass=iR,r[wR]=[_.TQ,_.Ub,_.v1,_.$1],r));e.addProvider({provide:_.nJ,useClass:P$});e.addProvider({provide:_.tzd,
useClass:bzd});e.addProvider({provide:_.m6,useClass:B$});_.R("enable_ai_companion")&&(e.addProvider({provide:_.cZ,useClass:f2W}),e.addProvider({provide:_.ETv,useClass:HuC}),e.addProvider({provide:g8a,useClass:SM8}),e.addProvider({provide:py,useClass:py}),e.addProvider({provide:I7,useClass:I7}),e.addProvider({provide:EkP,useValue:krY}),e.addProvider({provide:icj,useValue:Kfm}));_.R("enable_ai_chat_controller")&&e.addProvider({provide:_.Q8,useClass:aR8});r={};e.addProvider((r.provide=_.ka,r.useClass=
o8H,r[wR]=[_.ka],r));e.addProvider({provide:_.gi,useClass:$g8});e.addProvider({provide:Jc,useClass:Jc});e.addProvider({provide:wr,useClass:wr});e.addProvider({provide:W0,useClass:W0});r={};e.addProvider((r.provide=H0,r.useClass=H0,r[wR]=[_.$1,_.v1],r));e.addProvider({provide:h1,useClass:xF});r={};e.addProvider((r.provide=E7,r.useClass=E7,r[wR]=[_.nJ,h1],r));r={};e.addProvider((r.provide=O7,r.useClass=O7,r[wR]=[_.nJ],r));r={};e.addProvider((r.provide=Yx,r.useClass=Yx,r[wR]=[c0,mm],r));e.addProvider({provide:mm,
useClass:z1d});_.R("web_enable_feedback_endpoint_resolver_batch_2")&&(r={},e.addProvider((r.provide=Ac,r.useClass=Ac,r[wR]=[c0],r)),r={},e.addProvider((r.provide=y8,r.useClass=y8,r[wR]=[mm],r)));r={};e.addProvider((r.provide=Tg,r.useClass=Tg,r[wR]=[_.m6,h1],r));r={};e.addProvider((r.provide=ee,r.useClass=ee,r[wR]=[_.m6],r));r={};e.addProvider((r.provide=D$,r.useClass=D$,r[wR]=[_.v1,_.uB],r));r={};e.addProvider((r.provide=Ve,r.useClass=Ve,r[wR]=[_.v1,_.Qf],r));e.addProvider({provide:nT,useClass:nT});
r={};e.addProvider((r.provide=ow,r.useClass=ow,r[wR]=[c0],r));e.addProvider({provide:NO,useClass:NO});e.addProvider({provide:Wa,useClass:Wa});r={};e.addProvider((r.provide=GQ,r.useClass=GQ,r[wR]=[c0],r));r={};e.addProvider((r.provide=ep,r.useClass=ep,r[wR]=[_.v1,c0],r));r={};e.addProvider((r.provide=ru,r.useClass=ru,r[wR]=[c0],r));r={};e.addProvider((r.provide=Z0,r.useClass=Z0,r[wR]=[c0],r));r={};e.addProvider((r.provide=rr,r.useClass=rr,r[wR]=[_.uB],r));r={};e.addProvider((r.provide=A1,r.useClass=
A1,r[wR]=[_.Qf],r));r={};e.addProvider((r.provide=U7,r.useClass=U7,r[wR]=[CT],r));r={};e.addProvider((r.provide=zg,r.useClass=zg,r[wR]=[CT],r));e.addProvider({provide:Ba,useClass:Ba});e.addProvider({provide:xa,useClass:xa});e.addProvider({provide:ye,useClass:ye});r={};e.addProvider((r.provide=iU,r.useClass=iU,r[wR]=[_.uB,_.$1],r));e.addProvider({provide:P0,useClass:P0});r={};e.addProvider((r.provide=MO,r.useClass=MO,r[wR]=[_.v1,_.uB],r));e.addProvider({provide:N3,useClass:N3});r={};e.addProvider((r.provide=
Ha,r.useClass=Ha,r[wR]=[c0,_.v1,_.ka],r));r={};e.addProvider((r.provide=KT,r.useClass=KT,r[wR]=[_.v1,_.$1],r));e.addProvider({provide:OcC,useValue:iDS});e.addProvider({provide:bc3,useValue:Lb_});e.addProvider({provide:fT,useClass:fT});r={};e.addProvider((r.provide=Xm,r.useClass=Xm,r[wR]=[c0],r));r={};e.addProvider((r.provide=dr,r.useClass=dr,r[wR]=[_.gi,_.$1],r));r={};e.addProvider((r.provide=FO,r.useClass=FO,r[wR]=[_.$1],r));e.addProvider({provide:ny,useFactory:function(){return new ny(_.Yt())}});
e.addProvider({provide:X84,useFactory:_.Ql.getInstance});r={};e.addProvider((r.provide=zm,r.useClass=zm,r[wR]=[UT,X84,_.$1],r));e.addProvider({provide:B0,useClass:B0});e.addProvider({provide:dm,useClass:dm});e.addProvider({provide:sT,useClass:sT});e.addProvider({provide:_.o7,useClass:_.o7});e.addProvider({provide:Vh,useClass:Vh});r={};e.addProvider((r.provide=gr,r.useClass=gr,r[wR]=[JZ],r));r={};e.addProvider((r.provide=va,r.useClass=va,r[wR]=[_.$1],r));r={};e.addProvider((r.provide=lU,r.useClass=
lU,r[wR]=[_.$1],r));r={};e.addProvider((r.provide=Rw,r.useClass=Rw,r[wR]=[_.$1],r));_.R("web_enable_prefetching_videos_on_home")&&(e.addProvider({provide:c$,useClass:c$}),e.addProvider({provide:Vq,useClass:Vq}));r={};e.addProvider((r.provide=Mb,r.useClass=Mb,r[wR]=[_.$1],r));e.addProvider({provide:Cy,useClass:Cy});r={};e.addProvider((r.provide=mn,r.useClass=mn,r[wR]=[_.v1,_.$1],r));r={};e.addProvider((r.provide=u2,r.useClass=u2,r[wR]=[_.$1],r));r={};e.addProvider((r.provide=hz,r.useClass=hz,r[wR]=
[_.v1,_.$1],r));e.addProvider({provide:Md,useClass:Md});e.addProvider({provide:Se,useClass:Se});r={};e.addProvider((r.provide=$a,r.useClass=$a,r[wR]=[JZ,_.$1],r));e.addProvider({provide:qO,useClass:qO});r={};e.addProvider((r.provide=vl,r.useClass=vl,r[wR]=[JZ,_.$1,_.v1],r));r={};e.addProvider((r.provide=wu,r.useClass=wu,r[wR]=[_.$1],r));r={};e.addProvider((r.provide=bR,r.useClass=bR,r[wR]=[_.$1,_.v1],r));r={};e.addProvider((r.provide=aw,r.useClass=aw,r[wR]=[_.Ub],r));r={};e.addProvider((r.provide=
je,r.useClass=je,r[wR]=[_.Ub],r));r={};e.addProvider((r.provide=t1,r.useClass=t1,r[wR]=[_.Ub],r));e.addProvider({provide:pT,useClass:pT});e.addProvider({provide:uU,useClass:uU});e.addProvider({provide:LT,useClass:LT});e.addProvider({provide:ca,useClass:ca});e.addProvider({provide:Iw,useClass:Iw});e.addProvider({provide:Ly,useClass:Ly});e.addProvider({provide:Qe,useClass:Qe});_.R("kevlar_enable_mss_lazy_load")&&e.addProvider({provide:_.Hz,useClass:ira});e.addProvider({provide:_.gu,useClass:zO});e.addProvider({provide:bJ,
useFactory:function(){return _.e8.getInstance()}});
e.addProvider({provide:VOW,useFactory:qtS});e.addProvider({provide:CT,useFactory:function(){return _.Ye.getInstance()}});
e.addProvider({provide:ozE,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});r={};e.addProvider((r.provide=_.y2,r.useClass=_.y2,r[wR]=[_.Ub,_.$1,_.Qf,VOW,CT,bJ,ozE,R7],r));e.addProvider({provide:_.XL,useClass:PSw});e.addProvider({provide:_.Mz2,useClass:ONa});r={};e.addProvider((r.provide=Gg,r.useClass=Gg,r[wR]=[_.Mz2],r));r={};e.addProvider((r.provide=_.Au,r.useFactory=function(b){return b.upliftCompletionResolver.promise},r[wR]=[E8A],r));
r=_.PX("IS_SHELL_LOAD")?"aa":"eocs";var Z=_.PX("IS_SHELL_LOAD")?3:2;_.rk().parkOrScheduleJob(function(){boo()},Z,r);
_.rk().parkOrScheduleJob(function(){_.v_().resolve(Ju).start()},2,"eocs");
_.rk().parkOrScheduleJob(function(){ht2()},2,"eocs");
_.rk().parkOrScheduleJob(function(){_.v_().resolve(YF).start()},2,"eocs");
_.R("kevlar_debug_data_app_registration_ks")||bvp();e.addProvider({provide:_.bZ,useValue:new Xwa(G.root)});e.addProvider({provide:LL,useValue:new Eb4});e.addProvider({provide:_.Q22,useValue:new o$a(G.root)});e.addProvider({provide:_.bf,useValue:new s2V});e.addProvider({provide:_.X9,useClass:d9});e.addProvider({provide:dIH,useClass:Ur});_.R("kevlar_network_sli_killswitch")||e.addProvider({provide:nZo,useValue:NME});e.addProvider({provide:K0W,useFactory:lcs});_.R("web_bind_fetch")&&(r={},e.addProvider((r.provide=
fYo,r.useFactory=RoS,r[wR]=[_.bq(K0W)],r)));_.R("web_bind_window_request")&&(r={},e.addProvider((r.provide=kbd,r.useFactory=jjF,r[wR]=[_.bq(K0W)],r)));_.R("web_bind_text_decoder")&&(r={},e.addProvider((r.provide=Hz2,r.useFactory=acy,r[wR]=[_.bq(K0W)],r)));r={};e.addProvider((r.provide=of8,r.useFactory=rFf,r[wR]=[_.Au,c0,_.IK],r));r={};e.addProvider((r.provide=dKA,r.useClass=$K,r[wR]=[of8],r));e.addProvider({provide:EWY,useClass:VKW});e.addProvider({provide:KdC,useClass:kVo});r=[].concat(_.mY(ooF));
_.R("web_continuation_response_processing")&&r.push(_.f1);r.push(xmw);_.R("enable_share_panel_navigation_logging_fix_on_web")&&r.push(_.hhC);e.addProvider({provide:ddS,useValue:r});e.addProvider({provide:kHs,useClass:X2W});e.addProvider({provide:AH8,useClass:m0m});r={};e.addProvider((r.provide=aja,r.useClass=F_a,r[wR]=[JZ],r));_.A0.addLowPriorityJob(function(){Q3q()});
r={};e.addProvider((r.provide=bUE,r.useFactory=function(b){return function(w){var q,t=(q=_.a(w.commandMetadata,_.rJ))==null?void 0:q.url;if(!t)throw new _.Cr("No URL for PBJ Command",w);t=FH_(t,{pbj:"1"});q=EJa(t,{})||{};q=Object.assign({},q,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.xZ("STS").toString()});w=_.k1({command:JSON.stringify(w),session_token:_.xZ("XSRF_TOKEN")});return b.fetch(t,{method:"POST",headers:q,body:w})}},r[wR]=[AH8],r));
e.addProvider({provide:pXW,useFactory:function(){var b={};return b.CSI=KW$(),b.ECATCHER=Xmf(),b}});
e.addProvider({provide:Sqa,useClass:C6a});r=[];r.push(e.resolve(KdC));Z={};Z=(Z.client_location=_.Ql.getInstance(),Z.consistency=_.SUy(),Z.entities=e.resolve(jLW),Z.response_received_commands=e.resolve(kHs),Z.store=e.resolve(_.ljN),Z.tokens=e.resolve(KdC),Z.service_params=e.resolve(Sqa),Z);if(_.R("web_shorts_prefetch_service_enabled")){var O=new R$8(e.resolve(_.g9));Z.shorts_prefetch=O}Z.adblock_detection=e.resolve(aja);e.addProvider({provide:_.e4,useClass:_.e4});O=e.resolve(_.Sp);var M=[];_.R("PremiumClientSharedConfig__enable_att_context_processor")&&
(e.addProvider({provide:Vr8,useClass:Zmo}),M.push(e.resolve(Vr8)));if(_.R("owl_pl_await")){var T={};e.addProvider((T.provide=t1a,T.useFactory=function(b){return new S9A(b)},T[wR]=[_.e4],T));
M.push(e.resolve(t1a))}$TC(O,e.resolve(AH8),e.resolve(XXo),Z,e.resolve(_.g9),r,M,e.resolve(dKA),e.resolve(EWY));e.addProvider({provide:_.v1,useValue:_.Q$.instance});_.R("start_client_gcf")&&e.addProvider({provide:pL,useValue:NJS()});e.addProvider({provide:wOY,useFactory:function(){return new wOY(_.v_().resolve(_.e4),_.Ye.getInstance())}});
_.rk().parkOrScheduleJob(function(){$Im()},1,"eocs");
r={};e.addProvider((r.provide=Fd,r.useClass=Fd,r[wR]=[_.IK,_.v1],r));e.addProvider({provide:_.n8C,useFactory:_.Oc.getInstance});_.rk().parkOrScheduleJob(function(){_.v_().resolve(Fd).refresh()},0,"eocs");
e.addProvider({provide:_.vz,useClass:UKH});_.R("kevlar_signal_collection_killswitch")||(r={},e.addProvider((r.provide=N1A,r.useClass=N1A,r[wR]=[UT,s7],r)),_.rk().parkOrScheduleJob(function(){_.v_().resolve(N1A).record()},1,"eocs"));
_.R("web_debug_handler_registration_killswitch")||_.rk().parkOrScheduleJob(function(){Eli("DOWNLOAD_PES",Sta);_.R("offline_client_state_export_ks")||Eli("OFFLINE_CLIENT_STATE",vna)},0,"eocs");
_.R("kevlar_prevent_polymer_dynamic_font_load")&&_.rk().parkOrScheduleJob(function(){var b=[_.qK(NxH),_.qK(L02)];b=_.h(b);for(var w=b.next();!w.done;w=b.next()){w=w.value;var q=document.createElement("link");_.Ef(q,w,"stylesheet");document.head.appendChild(q)}},1,"eocs");
r=G.injector.resolve(_.v1);_.MrB.instance=new _.MrB(r);Jp$(W_8(new OmC(r)));r={};G.injector.addProvider((r.provide=bC,r.useFactory=function(b){(b=b==null?void 0:b.getCurrentPage())?b=b.visibilityObserver:(HLV||(HLV=qpy()),b=HLV);return b},r[wR]=[_.bq(_.y$)],r.skipCache=!0,r));
e.addProvider({provide:_.fp,useClass:$o});e.addProvider({provide:HZ,useClass:OAv});G.injector.addProvider({provide:Nrn,useValue:avY});e.addProvider({provide:ARE,useValue:Atm});e.addProvider({provide:zx3,useValue:Z$i});e.addProvider({provide:_.Ig,useValue:tuq});G=e.addProvider;yBW||(yBW=new YMH);G.call(e,{provide:_.W$,useValue:yBW});e.addProvider({provide:_.CC,useValue:_.xZ("HTML_DIR")==="rtl"?"rtl":"ltr"});e.addProvider({provide:Ifa,useClass:J6W});e.addProvider({provide:_.LR,useClass:NT});_.v_().addProvider({provide:C7m,
useValue:_.R("enable_web_delhi_icons")?lR8.concat(jQA):gcd.concat(Rr2)});e.addProvider({provide:_.Gl,useClass:_.Gl});e.addProvider({provide:_.U0Y,useValue:new P68});e.addProvider({provide:llW,useClass:g5o});e.addProvider({provide:Ya,useClass:Ya});e.addProvider({provide:Fm,useClass:Fm});G={};e.addProvider((G.provide=bU,G.useClass=bU,G[wR]=[_.v1,_.uB],G));e.addProvider({provide:hw,useClass:hw});e.addProvider({provide:c2a,useClass:I2Y});e.addProvider({provide:Pa,useClass:Pa});e.addProvider({provide:LDc,
useValue:nnb});e.addProvider({provide:_.Z6,useClass:lfC});_.R("enable_payments_purchase_manager")&&e.addProvider({provide:E5a,useClass:h1H});e.addProvider({provide:UgC,useFactory:function(){return function(b){return _.W0l(b)}}});
e.addProvider({provide:_.ldA,useClass:RGa});G={};e.addProvider((G.provide=Ov,G.useClass=Ov,G[wR]=[_.ldA],G));e.addProvider({provide:J1,useClass:J1});e.addProvider({provide:IqW,useValue:ij8});e.addProvider({provide:R0W,useValue:_.UIY});e.addProvider({provide:k0p,useClass:QhV});e.addProvider({provide:ABA,useValue:NRl});G={};e.addProvider((G.provide=FVa,G.useClass=JBd,G[wR]=[ABA],G));G={};e.addProvider((G.provide=_.oY,G.useClass=ezV,G[wR]=[FVa],G));G={};e.addProvider((G.provide=_.rC,G.useClass=el,G[wR]=
[_.YB,_.X9],G));if(_.R("web_explore_hub_on_hover")||_.R("web_client_explore_hub_on_hover"))G={},e.addProvider((G.provide=xx,G.useClass=xx,G[wR]=[_.v1,bJ],G));if(_.R("web_enable_renderer_logger")){var E=new FvF;rON(function(){E.abort()});
e.addProvider({provide:uZS,useValue:new Gyd(E.signal)})}e.addProvider({provide:GNn,useValue:QKF});e.addProvider({provide:txp,useClass:jFm});_.R("web_use_flow_state_manager")&&(e.addProvider({provide:_.a7,useClass:afd}),G={},e.addProvider((G.provide=XO,G.useClass=XO,G[wR]=[_.a7,_.$1],G)))}},dhY);var sQm={},QQ2=(sQm.initialized={priority:10,callback:function(){if(!utC){tsa();k9i("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.aZ(_.VU(k9i,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.R("log_heartbeat_with_lifecycles")){var G={};M9.instance||(M9.instance=new M9);M9.instance.install((G.document_visible={callback:Hns,priority:10},G.document_hidden={callback:Hns,priority:10},G))}else _.DR(document,"visibilitychange",Hns);utC=!0}(G=_.l4())&&G!=="UNDEFINED_CSN"&&h2S(G)}},sQm);var IRl={},pg8=(IRl.initialized={callback:function(G){var e=_.L1(232091),r=G.injector.resolve(_.Qf);_.Xr(r,e);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?MiU()&&_.fE(r,e):(G=G.injector.resolve(UgC)("refresh_detector"))&&(G.get("first_tab_load")?_.fE(r,e):G.set("first_tab_load","1"))}},IRl);var CjC={},uHm=(CjC.initialized={priority:10,callback:vdS},CjC);var ncW={},mhV=(ncW.initialized={priority:0,callback:function(){var G=new NRb,e="other";_.ec?e="chrome":_.GB?e="firefox":_.U5?e="safari":Tc&&(e="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(r){G.increment(_.Qi(),r,e)}).catch(function(){G.increment(_.Qi(),!1,e)}):G.increment(_.Qi(),!1,e)}},ncW);var cGm={},Ysm=(cGm.rendering={priority:8,callback:w8y},cGm);var yG8={},AGo=(yG8.rendering={priority:10,callback:d7F},yG8.rendered={callback:H3y},yG8),Ff8={},JGH=(Ff8.rendering={callback:d7F},Ff8.rendered={callback:H3y},Ff8);var Bll=!1,xhA={},Pja=(xhA.initialized={priority:10,callback:function(){Bll||(FM_({didPatch:function(G){G.el&&c7s(G.el,G.props)},
didUnmount:function(G){nYy(G.el)}}),Bll=!0)}},xhA);var UhW=/^\/shorts\/?$/;_.BX("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:{}}}}}}});_.R("kevlar_use_common_module_manager_ks")?(_.zwa(new odA),OxS()):s9y();
(function(){var G=document.querySelector("ytd-app");if(!G)throw Error("Xj");G=new ZK({root:G,injector:_.v_()});G.install(QQ2);var e={};G.install((e.initialized={priority:10,callback:T5p},e));_.R("wp_lat_b")&&(e={},G.install((e.initialized={priority:10,callback:function(){qni()}},e)));
e={};G.install((e.rendered={priority:0,callback:MP_},e));e={};G.install((e.rendered={priority:0,callback:function(){_.A0.addLowPriorityJob(function(){_.BP8>1&&(NZi(),ZwS())},4E4)}},e));
G.install(KaC);G.install(pg8);G.install(Pja);WWs();G.install(p_W);G.install(g1l);G.install(aWW);G.install(JAV);G.install(z$8);G.install(QZo);G.install(oca);_.R("kevlar_enable_mss_lazy_load")&&G.install(uHm);G.install(RwB);G.install(mhV);if(!_.PX("IS_SHELL_LOAD")||_.R("kevlar_fetch_initial_data_promise_client")||_.R("sw_nav_preload_pbj")){var r=_.Kr(window.location.href);e=r&&r==="/watch";r=r&&r.match(UhW);e?G.install(JGH):r?G.install(Ysm):G.install(AGo)}else G.install(S5C);G.install(kGo);_.R("web_enable_prefetching_videos_on_home")&&
G.install(mtH);_.R("start_client_gcf")&&G.install(IY2);G.install(cAa);(new Lay).increment("INSTALLED");G.install(u_d);G.install(v18);G.transition("initialized");DPq();r7N()})();
_.LQ=[[["eWE5YWoxdXpncm9ya2luZCM=","amJ4djJucnZhbHVlI2xvOGht"],"d0FEX1BMQUNFTUVOVF9LSU5EX0xBWU9VVF9JRF9FTlRFUkVEIzdwY2Y4bGhmdWY5"]];_.Nr=["I20xd3Y3cmo5ejhzdmdsb2JhbENhbGxiYWNrcw==","b3JtYWxpdHlEZXRlY3RlZCNzM2V0NzUxZDZkMHJvbkFibg==","I2pjYnRtdnRianhibm9uQWRTa2lw","MXJhd19wbGF5ZXJfcmVzcG9uc2UjNndteXVlZWwzdG0=","bmRlcmVyI245Z3IzNTF6ZzJmMGFkc0VuZ2FnZW1lbnRQYW5lbFJl"];_.Tt="I20xd3Y3cmo5ejhzdmdsb2JhbENhbGxiYWNrcw== b3JtYWxpdHlEZXRlY3RlZCNzM2V0NzUxZDZkMHJvbkFibg== I2pjYnRtdnRianhibm9uQWRTa2lw MXJhd19wbGF5ZXJfcmVzcG9uc2UjNndteXVlZWwzdG0= ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcHNfa3MjdDgwams1N24zN2hzdw== I2M2dGEybG9vdzgzN2FiX3NhX2Vm bmRlcmVyI245Z3IzNTF6ZzJmMGFkc0VuZ2FnZW1lbnRQYW5lbFJl".split(" ");
_._ModuleManager_initialize=function(G,e){if(!_.ml){if(!_.cp)return;_.zwa(_.cp())}_.ml.setAllModuleInfoString(G,e)};
_._ModuleManager_initialize('kevlar_base_module/sy3/sy4/sy1:1,2/sy2/sy5:1,2/sy6/sy7/sy8/sy9/NSzT5/syb/syc/kevlar_main_module:3,4,5,6,7,8,9/sye:1/syd:3,b,e/syf:f/syg/syh:6/syi/h8y2qb:5,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:2,9,h,j,n/syl:4,c,f,h,l,n/sym:p/nmfa2d:j,q/syn:7,p/syo:i,j,q,s/CF909:t/Tm0L3c:t/L3n37:g,i,j,s/iuT5Oc',['sy3','sy4','sy8','sye','syb','sy1','syk','syj','syg','syd','syc','sy2','syl','sy7','sy6','syn','sym','syi','syh','syf','syo','sy9','sy5','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module','NSzT5']);
}catch(e){_._DumpException(e)}
try{
_.qd=function(G,e,r,Z,O){var M={};e&&(M[e]=r);Z?M.errorType=Z:O&&(M.errorReason=O);_.cg(G,M);_.Yc()};
_.tz=function(G){var e=_.rk();return _.RHS(e,G,1)};
_.ts({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 G=this.query;G&&(this.full||G[0]==="("||(G="("+G+")"),this._mq=window.matchMedia(G),this._add(),this.queryHandler(this._mq))},
queryHandler:function(G){this._setQueryMatches(G.matches)}});var rTW;var ZMW;var OMW=function(){};
_.V=OMW.prototype;_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V._tapHandler=function(){};
_.V._focusChanged=function(){};
_.V._detectKeyboardFocus=function(){};
_.V._userActivate=function(){};
_.V._upHandler=function(){};
_.V._spaceKeyDownHandler=function(){};
_.V._spaceKeyUpHandler=function(){};
_.V._asyncClick=function(){};
_.V._pressedChanged=function(){};
_.V._ariaActiveAttributeChanged=function(){};
_.V._activeChanged=function(){};
_.V._controlStateChanged=function(){};
_.V._changedButtonState=function(){};
_.V._focusBlurHandler=function(){};
_.V._disabledChanged=function(){};
_.V._changedControlState=function(){};
_.V._downHandler=function(){};
_.V.ensureRipple=function(){};
_.V.getRipple=function(){};
_.V.hasRipple=function(){};
_.V._noinkChanged=function(){};
_.V._focusedChanged=function(){};
_.V._createRipple=function(){};
_.V.registered=function(){};
_.V._invalidChanged=function(){};
_.V.hasValidator=function(){};
_.V.validate=function(){};
_.V._getValidity=function(){};
_.V._requiredChanged=function(){};
_.V._valueChanged=function(){};
_.V._checkedChanged=function(){};
_.V._buttonStateChanged=function(){};
_.V._setPressed=function(){};
_.V._setPointerDown=function(){};
_.V._setReceivedFocusFromKeyboard=function(){};
_.V._setFocused=function(){};
OMW=_.ts({is:"tp-yt-paper-radio-button",_template:function(){if(ZMW!==void 0)return ZMW;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;rTW===void 0&&(rTW=document.createElement("template"));var Z=rTW;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return ZMW=G},
behaviors:[_.LZC],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(){_.DE(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var G=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),e=Math.floor(3*G);e%2!==G%2&&e++;this.updateStyles({"--paper-radio-button-ink-size":e+"px"})}})}});var M8V;var V88;_.ts({_template:function(){if(V88!==void 0)return V88;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;M8V===void 0&&(M8V=document.createElement("template"));var Z=M8V;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return V88=G},
is:"tp-yt-paper-radio-group",behaviors:[_.BBP],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(G){var e=this._valueToItem(G);if(!e||!e.hasAttribute("disabled")){if(this.selected){e=this._valueToItem(this.selected);if(this.selected==G)if(this.allowEmptySelection)G="";else{e&&(e.checked=!0);return}e&&
(e.checked=!1)}_.IR.select.apply(this,[G]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(G){this._focusPrevious();G.preventDefault();this._activateFocusedItem()},
_onDownKey:function(G){this._focusNext();G.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(G){_.JVl._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(G){_.JVl._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.IR._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.pS._resetTabindices.apply(this,arguments);this.items.forEach(function(G){G.removeAttribute("aria-selected")},this)}});var hsV;_.te("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var gC=function(){return _.m.apply(this,arguments)||this};
_.K(gC,_.m);_.V=gC.prototype;_.V.computeHasPrimaryIcon=function(G){return!(!G.icon&&!G.thumbnail)};
_.V.computeHasSecondary=function(G){return!(!G.secondaryIcon&&!G.secondaryNotificationText)};
_.V.computeHideSecondaryString=function(G){return!_.R("disable_hide_empty_secondary_string")&&!G.secondaryNotificationText};
_.V.computeCompactLinkStyle=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.V.computeHasFitHeight=function(G){return G==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.V.isActiveEndpoint=function(G){return(G=this.get("commandMetadata.webCommandMetadata.url",G))?_.Kr(window.location.href)!=="/account_transfer_channel"&&_.Kr(window.location.href)!=="/gaia_link"&&_.Kr(window.location.href)!=="/channel_switcher"||G!=="/account"?_.Kr(window.location.href)===G:!0:!1};
_.V.onTap=function(){var G;((G=this.data)==null?0:G.serviceEndpoint)&&_.zw(this.hostElement,[this.data.serviceEndpoint])};
gC.prototype.onTap=gC.prototype.onTap;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],gC.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],gC.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.x("design:type",Boolean)],gC.prototype,"active",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.x("design:type",String)],gC.prototype,"compactLinkStyle",void 0);
_.B([_.n({computed:"computeIcon_(data.icon)"}),_.x("design:type",Object)],gC.prototype,"icon",void 0);_.B([_.n({computed:"computeIcon_(data.secondaryIcon)"}),_.x("design:type",Object)],gC.prototype,"secondaryIcon",void 0);_.B([_.n({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],gC.prototype,"hasSecondary",void 0);_.B([_.n({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],gC.prototype,"hideSecondaryString",void 0);
_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gC.prototype,"onTap",null);_.B([_.c({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],gC);
_.A(gC,"ytd-compact-link-renderer",function(){if(hsV!==void 0)return hsV;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return hsV=G},{mode:1});var TeA;_.te("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var lI=function(){var G=_.m.apply(this,arguments)||this;G.role="link";G.tabindex="0";G.actionMap=_.R("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 G};
_.K(lI,_.m);_.V=lI.prototype;_.V.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.d0()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.V.getCurrentTheme=function(){return _.oB()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.d0()};
_.V.onThemeSelected=function(G,e){var r=G||e?G:_.H1(),Z=(r&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!r&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.vEN(_.Kr(window.location.href));_.Tn(0,165,G);_.Tn(0,174,e);this.prefs.save();Z&&_.Pi(this.hostElement,"yt-dark-mode-toggled-action",[r]);_.Pi(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.V.onTap=function(){this.data.serviceEndpoint&&_.zw(this.hostElement,[this.data.serviceEndpoint])};
_.V.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.V.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.V.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
lI.prototype.onTap=lI.prototype.onTap;lI.prototype.dataChanged=lI.prototype.dataChanged;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],lI.prototype,"actionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],lI.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.eJ),_.x("design:type",Object)],lI.prototype,"paperItemBehaviors",void 0);_.B([_.n(),_.x("design:type",Object)],lI.prototype,"data",void 0);_.B([_.n({value:function(){return _.hy()}}),
_.x("design:type",_.rg)],lI.prototype,"prefs",void 0);_.B([_.n(),_.x("design:type",Object)],lI.prototype,"label",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],lI.prototype,"role",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],lI.prototype,"tabindex",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lI.prototype,"dataChanged",null);
_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lI.prototype,"onTap",null);_.B([_.c({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],lI);
_.xP()(lI,"ytd-toggle-theme-compact-link-renderer",function(){if(TeA===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);TeA=G}G=TeA;return G},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var EsY,iMH;_.RJ=function(G){return!!G.getOptions("captions")};
_.Dx8=function(G){return(G=G.getOption("captions","track"))?!!G.displayName:!1};
_.jl=function(G,e){_.$i(e,G,function(){return EsY[e]},function(r){EsY[e]=r;
if(!_.R("mweb_player_ve_show_ks")){var Z=_.l4(0);Z&&r&&_.p_(Z,r)}})};
_.aJ=function(G){(G=EsY[G])&&_.fE(_.h_(),G)};
EsY={};var bMW;/*

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
*/
_.ts({_template:function(){if(bMW!==void 0)return bMW;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;iMH===void 0&&(iMH=document.createElement("template"));var Z=iMH;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return bMW=G},
is:"tp-yt-paper-checkbox",behaviors:[_.LZC],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.DE(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var G=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),e="px",r=G.match(/[A-Za-z]+$/);r!==null&&(e=r[0]);G=parseFloat(G);r=8/3*G;e==="px"&&(r=Math.floor(r),r%2!==G%2&&r++);this.updateStyles({"--paper-checkbox-ink-size":r+
e})}})},
_computeCheckboxClass:function(G,e){var r="";G&&(r+="checked ");e&&(r+="invalid");return r},
_computeCheckmarkClass:function(G){return G?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.WZE._createRipple.call(this)}});var vsW=new _.L9("radioButtonSurveyOptionRenderer"),wJH=new _.L9("checkboxSurveyOptionRenderer");var $xo;var SHB;var qHl=0,XB=function(){var G=_.m.call(this)||this;G.selected=!1;G.isOverlay=!1;G.inputId="toggle-option-"+qHl;qHl++;return G};
_.K(XB,_.m);XB.prototype.onTap=function(){_.xy(this.hostElement,"ytd-toggle-option-clicked")};
_.B([_.n(),_.x("design:type",String)],XB.prototype,"label",void 0);_.B([_.n(),_.x("design:type",String)],XB.prototype,"inputId",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],XB.prototype,"selected",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],XB.prototype,"isOverlay",void 0);_.B([_.c({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.x("design:paramtypes",[])],XB);
_.A(XB,"ytd-toggle-option-renderer",function(){if(SHB!==void 0)return SHB;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return SHB=G},{mode:1});var Kq=function(){var G=_.m.apply(this,arguments)||this;G.isToggleOption=!1;G.isOverlay=!1;return G};
_.K(Kq,_.m);Kq.prototype.onTap=function(G){G.preventDefault();this.data&&(G=!this.data.checked,this.set("data.checked",G),_.xy(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:G,value:this.data.value}))};
_.iY.Object.defineProperties(Kq.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
Kq.prototype.onTap=Kq.prototype.onTap;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Kq.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Kq.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],Kq.prototype,"isToggleOption",void 0);_.B([_.n(),_.x("design:type",Object)],Kq.prototype,"isOverlay",void 0);_.B([_.d("data.responseText"),_.x("design:type",String),_.x("design:paramtypes",[])],Kq.prototype,"label",null);
_.B([_.Om("ytd-toggle-option-clicked"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Kq.prototype,"onTap",null);_.B([_.c({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],Kq);
_.A(Kq,"ytd-checkbox-survey-option-renderer",function(){if($xo!==void 0)return $xo;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return $xo=G},{mode:1});var t8o;var gs8;var fq=function(){var G=_.m.apply(this,arguments)||this;G.checked=!1;G.isToggleOption=!1;return G};
_.K(fq,_.m);fq.prototype.onTap=function(){this.data&&(this.checked?_.Pi(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.Pi(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
fq.prototype.onTap=fq.prototype.onTap;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],fq.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],fq.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],fq.prototype,"checked",void 0);_.B([_.n(),_.x("design:type",Object)],fq.prototype,"isToggleOption",void 0);_.B([_.Om("ytd-toggle-option-clicked"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],fq.prototype,"onTap",null);
_.B([_.c({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],fq);
_.A(fq,"ytd-radio-button-survey-option-renderer",function(){if(gs8!==void 0)return gs8;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return gs8=G},{mode:1});var ko=function(){var G=_.m.apply(this,arguments)||this;G.disableAnimation=!1;G.isToggleOption=!0;G.followUpSurveyCommand=null;G.selectedRatingEndpoint=null;G.isSlimlineSurveyFollowUp=!1;G.isShortsStyle=!1;G.styleOverrideAttribute=!0;G.isDarkMode=!1;G.isSubmitted=!1;G.roundedContainer=!0;G.improveShortsResponseRate=_.R("web_improve_shorts_response_rate");G.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 G};
_.K(ko,_.m);_.V=ko.prototype;
_.V.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"}}}}};
_.V.attached=function(){var G=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(r){var Z;if((Z=r[0])!=null&&Z.isIntersecting){_.ZM().reportShown(G.hostElement);var O;(O=G.intersectionObserver)==null||O.unobserve(G.hostElement)}},{rootMargin:"0px",
threshold:.6});var e;(e=this.intersectionObserver)==null||e.observe(this.hostElement)};
_.V.onDarkModeToggledAction=function(G){this.isDarkMode=G};
_.V.dataChanged=function(){var G;if(((G=this.data)==null?void 0:G.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 r,Z,O,M;this.darkColorPalette=(r=this.data)==null?void 0:(Z=r.inlineContent)==null?void 0:(O=Z.compactVideoRenderer)==null?void 0:(M=O.thumbnail)==null?
void 0:M.darkColorPalette;var T,E,b,w;this.lightColorPalette=(T=this.data)==null?void 0:(E=T.inlineContent)==null?void 0:(b=E.compactVideoRenderer)==null?void 0:(w=b.thumbnail)==null?void 0:w.lightColorPalette;var q,t;if(((q=this.data)==null?0:(t=q.inlineContent)==null?0:t.compactVideoRenderer)&&this.isShortsStyle){var g,l,X,H;G=_.xh((g=this.data)==null?void 0:(l=g.inlineContent)==null?void 0:(X=l.compactVideoRenderer)==null?void 0:(H=X.thumbnail)==null?void 0:H.thumbnails);_.eD(this.hostElement,
{"--yt-background-url":"url("+G+")"})}};
_.V.handleRequestCompletion=function(){this.hostElement.hidden&&_.xy(this.hostElement,"yt-dismissible-item-dismissed")};
_.V.onPopupClosed=function(G){var e;((e=G.detail)==null?void 0:e.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.Pi(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.V.handleInlineSurveyRatingSelect=function(G,e){var r=this;this.selectedRatingEndpoint=G;this.followUpSurveyCommand=e;this.expanded=!!G;this.getOptionRenderers().forEach(function(Z,O){r.notifyPath("followUpSurveyCommand.followUpOptions."+O+".checkboxSurveyOptionRenderer.checked");r.set("followUpSurveyCommand.followUpOptions."+O+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),G=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.Pi(this.hostElement,"yt-reel-non-video-content-dismissal-command",[G]))};
_.V.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.Pi(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var G,e=(G=this.data)==null?void 0:G.dismissalEndpoint;e&&this.ytComponentBehavior.resolveCommand(e)}};
_.V.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.Pi(this.hostElement,"yt-close-popup-action"))};
_.V.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var G=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{G=this.getOptionRenderers().filter(function(Z){return Z.checked});
if(G.length===0)return;G=G.map(function(Z){return Z.responseEndpoint})}var e=[];
G.forEach(function(Z,O){O!==0&&(Z=_.a(Z,_.lM))&&Z.feedbackToken&&e.push(Z.feedbackToken)});
if(G=G[0]){var r={};e.length>0&&(r.extra_feedback_tokens=e);this.ytComponentBehavior.resolveCommand(G,{form:r})}}};
_.V.getOptionRenderers=function(){var G=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(e){G.isSingleSelect=!!_.a(e,vsW);return G.isSingleSelect?_.a(e,vsW):_.a(e,wJH)}):[]};
_.V.handleInlineSurveyOptionSelect=function(G){G=this.optionSelector.indexOf(G);G!==-1&&this.optionSelector.selectIndex(G)};
_.V.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.V.maybeGetBackgroundColor=function(G){return this.isDarkMode?G.section2Color:G.section3Color};
_.V.colorPaletteChanged=function(){var G=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;G=G&&this.maybeGetBackgroundColor(G);this.dismissibleEl.style.backgroundColor=!G||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.RB(G)};
_.iY.Object.defineProperties(ko.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
ko.prototype.colorPaletteChanged=ko.prototype.colorPaletteChanged;ko.prototype.onPopupClosed=ko.prototype.onPopupClosed;ko.prototype.handleRequestCompletion=ko.prototype.handleRequestCompletion;ko.prototype.dataChanged=ko.prototype.dataChanged;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],ko.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],ko.prototype,"actionHandlerBehavior",void 0);
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],ko.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ko.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],ko.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.hs("#follow-up-survey-options"),_.x("design:type",Object)],ko.prototype,"optionSelector",void 0);_.B([_.n(),_.x("design:type",Object)],ko.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",Object)],ko.prototype,"disableAnimation",void 0);_.B([_.n(),_.x("design:type",Object)],ko.prototype,"isToggleOption",void 0);_.B([_.n(),_.x("design:type",Object)],ko.prototype,"followUpSurveyCommand",void 0);_.B([_.n(),_.x("design:type",Object)],ko.prototype,"selectedRatingEndpoint",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],ko.prototype,"expanded",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],ko.prototype,"isSlimlineSurveyFollowUp",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],ko.prototype,"isShortsStyle",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],ko.prototype,"styleOverrideAttribute",void 0);_.B([_.n(),_.x("design:type",Boolean)],ko.prototype,"isSingleSelect",void 0);_.B([_.n(),_.x("design:type",Object)],ko.prototype,"isDarkMode",void 0);
_.B([_.n(),_.x("design:type",Object)],ko.prototype,"lightColorPalette",void 0);_.B([_.n(),_.x("design:type",Object)],ko.prototype,"darkColorPalette",void 0);_.B([_.d("selectedRatingEndpoint","isShortsStyle"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ko.prototype,"isOptionSelected",null);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],ko.prototype,"roundedContainer",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],ko.prototype,"improveShortsResponseRate",void 0);_.B([_.hs("#dismissible"),_.x("design:type",HTMLElement)],ko.prototype,"dismissibleEl",void 0);_.B([_.hs("#dismiss-button yt-icon-button"),_.x("design:type",HTMLElement)],ko.prototype,"dismissButtonEl",void 0);_.B([_.hs("#inline-survey-header yt-icon-button"),_.x("design:type",HTMLElement)],ko.prototype,"inlineHeaderDismissButtonEl",void 0);
_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ko.prototype,"dataChanged",null);_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ko.prototype,"handleRequestCompletion",null);_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ko.prototype,"onPopupClosed",null);
_.B([_.Me("darkColorPalette","lightColorPalette","isDarkMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ko.prototype,"colorPaletteChanged",null);_.B([_.c({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],ko);
_.A(ko,"ytd-inline-survey-renderer",function(){if(t8o!==void 0)return t8o;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return t8o=G},{mode:1});var lma=["en-CA","en","es-MX","fr-CA"];_.RsH=_.y(function(G){var e=_.cx(G,{isOverlay:!1,isModern:!1}),r=e.captionIconType,Z=e.onClick;G=e.ariaLabel;var O=e.ariaPressed,M=e.isOverlay,T=e.isModern;e=_.hT("button",function(w){_.jl(w,127299)});
var E=_.ev(function(w){_.aJ(127299);Z==null||Z(w);return!1}),b={};
return _.v("ytm-closed-captioning-button",{class:_.LC("ytmClosedCaptioningButtonHost",(b.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return r()===-1&&M()},b.ytmClosedCaptioningButtonIconDisabled=function(){return r()===-1&&!M()},b))},_.v("button",{el:e,
class:"ytmClosedCaptioningButtonButton",title:G,"aria-label":G,"aria-pressed":O,"on:click":E},_.v(_.V$,{icon:function(){var w="",q=T();var t=q?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";q=q?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var g=_.hy().get("hl");t=!g||lma.includes(g)?t:q;q=r();switch(q){case -1:case 0:w=t;break;case 1:w=t+"_FILLED";break;default:_.zC(q)}return w}})))},"kh");
_.RsH.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.yC=function(G){return function(e,r){var Z=G||r.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(e,r,{get:function(){var O;return this.$?this.$[Z]:(O=_.VI(this))==null?void 0:O.querySelector("#"+Z)},
enumerable:!0,configurable:!0})}};_.Ar=function(G){G=G===void 0?!1:G;_.pB.call(this);this.pubSub_=new _.H_(G);_.Xx(this,this.pubSub_)};
_.Bz(_.Ar,_.pB);_.Ar.prototype.subscribe=function(G,e,r){return this.isDisposed()?0:this.pubSub_.subscribe(G,e,r)};
_.Ar.prototype.unsubscribe=function(G,e,r){return this.isDisposed()?!1:this.pubSub_.unsubscribe(G,e,r)};
_.Ar.prototype.unsubscribeByKey=function(G){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(G)};
_.Ar.prototype.publish=function(G,e){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var ViA=function(){_.qd("ypcRedeemFlowStarted")},hAB=function(G){_.qd("ypcRedeemFlowFailed",void 0,void 0,void 0,G)},TVo=function(G,e,r){e&&r&&(G.videos.forEach(function(Z){Z.videoId===e&&(Z.itemId=r)}),G.recommendedVideos.forEach(function(Z){Z.videoId===e&&(Z.itemId=r)}))};var D7B;var Ed2;/*

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
*/
_.ts({_template:function(){if(Ed2!==void 0)return Ed2;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;D7B===void 0&&(D7B=document.createElement("template"));var Z=D7B;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return Ed2=G},
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(G,e){var r=this._resolveSrc(G);r!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",G===""||e?this._setLoading(!1):(this._resolvedSrc=r,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 G=this.$.sizedImgDiv.style,e=this.$.placeholder.style;G.backgroundSize=e.backgroundSize=this.sizing;G.backgroundPosition=e.backgroundPosition=this.sizing?this.position:"";G.backgroundRepeat=e.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(G){G=_.tT(G,this.$.baseURIAnchor.href);G.length>=2&&G[0]==="/"&&G[1]!=="/"&&(G=(location.origin||location.protocol+"//"+location.host)+G);return G}});var i3Y;var b3m;_.ts({_template:function(){if(b3m!==void 0)return b3m;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;i3Y===void 0&&(i3Y=document.createElement("template"));var Z=i3Y;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return b3m=G},
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(G){return G?"false":"true"},
_headingChanged:function(G){var e=this.getAttribute("heading"),r=this.getAttribute("aria-label");typeof r==="string"&&r!==e||this.setAttribute("aria-label",G)},
_computeHeadingClass:function(G){return G?" over-image":""},
_computeAnimated:function(G){return G}});var vdA=new _.L9("addRendererToItemSectionAction");var w88;var I3=function(){return _.m.apply(this,arguments)||this};
_.K(I3,_.m);I3.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],I3.prototype,"rendererBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],I3.prototype,"dismissibleItemBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],I3.prototype,"rendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],I3.prototype,"data",void 0);_.B([_.c({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],I3);
_.A(I3,"ytd-comment-history-entry-renderer",function(){if(w88!==void 0)return w88;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return w88=G},{mode:1});var $7B;_.te("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.te("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var p$=function(){return _.m.apply(this,arguments)||this};
_.K(p$,_.m);_.V=p$.prototype;_.V.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.onKeyUp=function(G){if(G.keyCode===13)this.onTap()};
_.V.onTap=function(){this.data.recordClickEndpoint&&_.v_().resolve(_.$1).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var G=this.data.navigationEndpoint;G&&_.a(G,_.JO)&&_.v_().resolve(_.$1).resolveCommand(G,{form:{element:this.hostElement}})};
_.V.readChanged=function(){var G;_.Nv(this.hostElement,"unread",!((G=this.data)==null?0:G.read))};
_.V.dataChanged=function(){this.data&&_.Nv(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.V.computeThumbnailSize=function(){var G;return((G=this.data)==null?0:G.highPriorityNotification)?32:48};
_.V.getEndpointURL=function(G){return G&&!_.a(G,_.JO)?this.componentBehavior.computeHref_(G):null};
_.V.getEndpointData=function(G){return G&&!_.a(G,_.JO)?G:null};
p$.prototype.computeThumbnailSize=p$.prototype.computeThumbnailSize;p$.prototype.dataChanged=p$.prototype.dataChanged;p$.prototype.readChanged=p$.prototype.readChanged;p$.prototype.onKeyUp=p$.prototype.onKeyUp;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],p$.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],p$.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],p$.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],p$.prototype,"data",void 0);_.B([_.n({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.x("design:type",Number)],p$.prototype,"thumbnailSize",void 0);_.B([_.Om("keyup"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],p$.prototype,"onKeyUp",null);
_.B([_.Me("data.read"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],p$.prototype,"readChanged",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],p$.prototype,"dataChanged",null);_.B([_.Me("data.highPriorityNotification"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],p$.prototype,"computeThumbnailSize",null);
_.B([_.c({is:"ytd-notification-renderer",disableElementRegistration:!0})],p$);
_.A(p$,"ytd-notification-renderer",function(){if($7B!==void 0)return $7B;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return $7B=G},{mode:1});var Sqm;var C$=function(){return _.m.apply(this,arguments)||this};
_.K(C$,_.m);C$.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"}}}};
C$.prototype.computeActionButtonClass=function(G){return!G.actionButtons||G.actionButtons.length<=1?"single-button":G.description?"vertical-buttons":"horizontal-buttons"};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],C$.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],C$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],C$.prototype,"data",void 0);_.B([_.c({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],C$);
_.A(C$,"ytd-playlist-show-metadata-renderer",function(){if(Sqm!==void 0)return Sqm;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Sqm=G},{mode:1});var qqY;_.te("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var ue=function(){return _.m.apply(this,arguments)||this};
_.K(ue,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ue.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],ue.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ue.prototype,"data",void 0);_.B([_.c({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],ue);
_.A(ue,"ytd-purchase-item-renderer",function(){if(qqY!==void 0)return qqY;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return qqY=G},{mode:1});var ti8;var gdd={};gdd.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(G){if(G)return G.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(G){if(G==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.te("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var n$=function(){return _.m.apply(this,arguments)||this};
_.K(n$,_.m);n$.prototype.onYtNavigate=function(G){var e=this.openPopupBehavior.getNavigationEndpointPopupAction(G.detail.endpoint);e&&(G.stopPropagation(),this.openPopupBehavior.openPopup(e))};
n$.prototype.onYtNavigate=n$.prototype.onYtNavigate;_.B([_.k(gdd.YtSimpleTextSectionBehavior),_.x("design:type",Object)],n$.prototype,"ytSimpleTextSectionBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],n$.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h5),_.x("design:type",Object)],n$.prototype,"openPopupBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],n$.prototype,"data",void 0);
_.B([_.Om("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],n$.prototype,"onYtNavigate",null);_.B([_.c({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],n$);
_.A(n$,"ytd-simple-text-section-renderer",function(){if(ti8!==void 0)return ti8;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return ti8=G},{mode:1});var ljo;_.te("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var RA8=function(){return _.m.apply(this,arguments)||this};
_.K(RA8,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],RA8.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],RA8.prototype,"data",void 0);_.B([_.c({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],RA8);
_.A(RA8,"ytd-unlimited-page-feature-info-renderer",function(){if(ljo!==void 0)return ljo;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return ljo=G},{mode:1});var j98;var ajm;var mX=function(){return _.m.apply(this,arguments)||this};
_.K(mX,_.m);mX.prototype.dataChanged=function(){if(this.data){var G=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);G&&(G=_.BQ(G,screen.width),this.hostElement.style.backgroundImage="url("+G+")")}};
mX.prototype.dataChanged=mX.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],mX.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],mX.prototype,"data",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mX.prototype,"dataChanged",null);_.B([_.c({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],mX);
_.A(mX,"ytd-post-redemption-section-renderer",function(){if(ajm!==void 0)return ajm;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return ajm=G},{mode:1});var X8C;var cM=function(){return _.m.apply(this,arguments)||this};
_.K(cM,_.m);cM.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],cM.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],cM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],cM.prototype,"data",void 0);_.B([_.c({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],cM);
_.A(cM,"ytd-ypc-post-redemption-renderer",function(){if(X8C!==void 0)return X8C;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return X8C=G},{mode:1});_.te("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var YH=function(){var G=_.m.apply(this,arguments)||this;G.MIN_CODE_LENGTH=12;G.MAX_CODE_LENGTH=24;return G};
_.K(YH,_.m);_.V=YH.prototype;_.V.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.V.created=function(){this.riskService=new _.Q1_;this.loadPaymentThenable=_.pjA(_.xZ("YPC_MB_URL"))};
_.V.ready=function(){var G=this;this.code.addEventListener("keypress",function(e){G.onCodeInputKeypress(e)})};
_.V.dataChanged=function(){var G=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(e){e=_.h(e);for(var r=e.next();!r.done;r=e.next())r=r.value,r.type==="attributes"&&r.attributeName==="dark"&&G.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.V.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var G=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+G+")")}};
_.V.computeRedeemButton=function(G){(G=this.get("redeemButton.buttonRenderer",G))&&(G=Object.assign({},G,{serviceEndpoint:void 0}));return G};
_.V.onRedeemButtonTap=function(G){G.stopPropagation();ViA();this.redeemCode()};
_.V.redeemCode=function(){var G=this;this.isLoading=!0;var e=this.riskService.init();_.KY([e,this.loadPaymentThenable]).then(function(){var r=G.data.redeemButton.buttonRenderer.serviceEndpoint,Z=_.IBU(),O=_.c4.payments.business.integration.ClientTokenFactory.createClientToken(_.a(r,_.qpW).countryCode,Z);Z={c:G.code.value.trim(),rd:window.btoa(Z),ctk:O};r&&_.v_().resolve(_.$1).resolveCommand(r,{form:Object.assign({},Z,{element:G.hostElement})})},function(){G.showGenericError();
hAB("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.WX(Error("Ko"))})};
_.V.onYtServiceRequestCompleted=function(G){G.stopPropagation();this.isLoading=!1;var e,r;this.errorMessage=(e=G.detail)==null?void 0:(r=e.data)==null?void 0:r.errorMessage;var Z,O;this.postRedemptionRenderer=(Z=G.detail)==null?void 0:(O=Z.data)==null?void 0:O.renderer;var M,T;if(G=(M=G.detail)==null?void 0:(T=M.data)==null?void 0:T.redirectEndpoint)this.isLoading=!0,_.xy(this.hostElement,"yt-navigate",{endpoint:G});this.errorMessage?hAB("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
G)&&_.qd("ypcRedeemFlowSucceeded")};
_.V.onYtServiceRequestError=function(G){G.stopPropagation();this.isLoading=!1;if(G=this.get("detail.error.message",G))this.errorMessage=_.nQ(G);hAB("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.V.onInvokeInstrumentManagerActionCompleted=function(G){G.stopPropagation();this.redeemCode()};
_.V.onInvokeInstrumentManagerActionError=function(G){G.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",G)){case "instrumentManagerLoadError":this.showGenericError();hAB("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();hAB("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.qd("ypcRedeemFlowCancelled")}};
_.V.onInput=function(){var G=this;_.sm(this,"onInput",function(){var e=G.code.value.trim();G.redeemButtonDisabled=e.length<G.MIN_CODE_LENGTH||e.length>G.MAX_CODE_LENGTH},200)};
_.V.onCodeInputKeypress=function(G){G.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(ViA(),this.redeemCode())};
_.V.computeImageUrl=function(G){return G?_.BQ(G.thumbnails,600):null};
_.V.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
YH.prototype.onInvokeInstrumentManagerActionError=YH.prototype.onInvokeInstrumentManagerActionError;YH.prototype.onInvokeInstrumentManagerActionCompleted=YH.prototype.onInvokeInstrumentManagerActionCompleted;YH.prototype.onYtServiceRequestError=YH.prototype.onYtServiceRequestError;YH.prototype.onYtServiceRequestCompleted=YH.prototype.onYtServiceRequestCompleted;YH.prototype.dataChanged=YH.prototype.dataChanged;
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],YH.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],YH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],YH.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],YH.prototype,"isLoading",void 0);_.B([_.n(),_.x("design:type",Boolean)],YH.prototype,"redeemButtonDisabled",void 0);
_.B([_.n(),_.x("design:type",Object)],YH.prototype,"errorMessage",void 0);_.B([_.n(),_.x("design:type",Object)],YH.prototype,"postRedemptionRenderer",void 0);_.B([_.n(),_.x("design:type",Object)],YH.prototype,"observer",void 0);_.B([_.hs("#code"),_.x("design:type",HTMLInputElement)],YH.prototype,"code",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YH.prototype,"dataChanged",null);
_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],YH.prototype,"onYtServiceRequestCompleted",null);_.B([_.Om("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],YH.prototype,"onYtServiceRequestError",null);
_.B([_.Om("yt-invoke-instrument-manager-action-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],YH.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.B([_.Om("yt-invoke-instrument-manager-action-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],YH.prototype,"onInvokeInstrumentManagerActionError",null);_.B([_.c({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],YH);
_.A(YH,"ytd-redeem-code-renderer",function(){if(j98!==void 0)return j98;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return j98=G},{mode:1});var Ke8;_.te("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var yX=function(){var G=_.m.apply(this,arguments)||this;G.businessEmailDisplayState="HIDE_SECTION";return G};
_.K(yX,_.m);_.V=yX.prototype;_.V.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}}}}}};
_.V.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"};
_.V.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.V.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Hi(_.hoC),this.businessEmailDisplayState="CAPTCHA"))};
_.V.onYtServiceRequestCompleted=function(G){var e;if((e=G.detail.data)==null?0:e.businessEmail)this.businessEmail=G.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var r;if((r=G.detail.data)==null?0:r.errorMessage)this.businessEmailErrorMessage=G.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.V.computeEmailHref=function(G){return"mailto:"+G};
_.V.computeSafeUrl=function(G){if(G)return _.Fy(G)};
_.V.onBusinessEmailCaptchaSubmit=function(){var G;(G=this.data)!=null&&G.onBusinessEmailRevealClickCommand&&(G=this.JSC$22042_captchaTextarea.value)&&(G={recaptcha_response_token:G,channel_id:this.data.channelId},_.v_().resolve(_.$1).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},G,{element:this.hostElement})}))};
_.V.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.iY.Object.defineProperties(yX.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 G,e;return!((G=this.data)==null||!G.primaryLinks)&&!((e=this.data)==null?0:e.links)&&this.data.primaryLinks.every(function(r){return r.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var G,e;return!((G=this.data)==null||!G.primaryLinks)&&!((e=this.data)==null?0:e.links)&&!this.shouldShowNewLinks}}});
yX.prototype.onYtServiceRequestCompleted=yX.prototype.onYtServiceRequestCompleted;yX.prototype.dataChanged=yX.prototype.dataChanged;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],yX.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],yX.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],yX.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.hs("#g-recaptcha-response"),_.x("design:type",HTMLTextAreaElement)],yX.prototype,"JSC$22042_captchaTextarea",void 0);_.B([_.n(),_.x("design:type",Object)],yX.prototype,"data",void 0);_.B([_.n(),_.x("design:type",String)],yX.prototype,"businessEmailDisplayState",void 0);_.B([_.n(),_.x("design:type",String)],yX.prototype,"businessEmail",void 0);_.B([_.n(),_.x("design:type",String)],yX.prototype,"businessEmailErrorMessage",void 0);
_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],yX.prototype,"hideDetailsSection",null);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yX.prototype,"dataChanged",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],yX.prototype,"shouldShowNewLinks",null);_.B([_.d("data","shouldShowLinks"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],yX.prototype,"shouldShowLegacyLinks",null);
_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],yX.prototype,"onYtServiceRequestCompleted",null);_.B([_.c({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],yX);
_.A(yX,"ytd-channel-about-metadata-renderer",function(){if(Ke8!==void 0)return Ke8;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Ke8=G},{mode:1});var fjo;_.te("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var r4=function(){return _.m.apply(this,arguments)||this};
_.K(r4,_.m);r4.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]]"}}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],r4.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],r4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],r4.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Number)],r4.prototype,"lockupContainerType",void 0);_.B([_.n(),_.x("design:type",String)],r4.prototype,"thumbnailFixedWidth",void 0);
_.B([_.c({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],r4);
_.A(r4,"ytd-channel-featured-content-renderer",function(){if(fjo!==void 0)return fjo;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return fjo=G},{mode:1});var kHW;_.te("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var ZB=function(){var G=_.m.apply(this,arguments)||this;G.roundContainer=!0;G.amsterdamEnabled=_.R("enable_desktop_amsterdam_info_panels");return G};
_.K(ZB,_.m);_.V=ZB.prototype;_.V.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.V.dataChanged=function(){this.imageWidth=this.imageHeight=24;var G=this.data;G.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!G.style&&G.image&&G.image.thumbnails.length&&(G=G.image.thumbnails[0],this.imageWidth=G.width||0,this.imageHeight=G.height||0)};
_.V.computeSource=function(G){return G.secondarySource?_.mG(G.secondarySource):_.mG(G.source)};
_.V.computeClarifyStyle=function(G){return G?G.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.V.isLargeStyle=function(G){return G==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.V.computeBackgroundStyle=function(G){return G?G.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.V.computeHasActionButton=function(G){return!!G.actionButton};
_.V.computeHasBottomSection=function(G){return!!G.ctaHasBottomSection};
_.V.computeIsSourceMissing=function(G){return G.ctaHasBottomSection===!1?!0:G&&this.computeSource(G)?!1:!0};
_.V.computeSecondaryEndpoint=function(G){return G.secondaryEndpoint||G.endpoint};
ZB.prototype.dataChanged=ZB.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ZB.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],ZB.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ZB.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Number)],ZB.prototype,"imageWidth",void 0);_.B([_.n(),_.x("design:type",Number)],ZB.prototype,"imageHeight",void 0);
_.B([_.n({computed:"computeSecondaryEndpoint(data)"}),_.x("design:type",Object)],ZB.prototype,"secondaryEndpoint",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.x("design:type",Boolean)],ZB.prototype,"hasActionButton",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.x("design:type",Boolean)],ZB.prototype,"hasBottomSection",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.x("design:type",Boolean)],ZB.prototype,"missingSource",void 0);_.B([_.n({computed:"computeIcon_(data.icon)"}),_.x("design:type",String)],ZB.prototype,"icon",void 0);_.B([_.n({computed:"computeIcon_(data.secondaryIcon)"}),_.x("design:type",String)],ZB.prototype,"secondaryIcon",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.x("design:type",String)],ZB.prototype,"clarifyStyle",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.x("design:type",String)],ZB.prototype,"backgroundStyle",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],ZB.prototype,"roundContainer",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],ZB.prototype,"amsterdamEnabled",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ZB.prototype,"dataChanged",null);
_.B([_.c({is:"ytd-clarification-renderer",disableElementRegistration:!0})],ZB);
_.A(ZB,"ytd-clarification-renderer",function(){if(kHW!==void 0)return kHW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return kHW=G},{mode:1});var H38;var d7H;var Oy=function(){var G=_.m.apply(this,arguments)||this;G.amsterdamEnabled=_.R("enable_desktop_amsterdam_info_panels");return G};
_.K(Oy,_.m);_.V=Oy.prototype;_.V.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.V.computeIcon=function(G){return G?"yt-icons:"+G.toLowerCase():null};
_.V.computeUseContacts=function(G){return!!G.contacts&&G.contacts.length>0};
_.V.computePhoneContact=function(G){var e,r;return(e=G.contacts)==null?void 0:(r=e.find(function(Z){var O;return(Z==null?void 0:(O=Z.icon)==null?void 0:O.iconType)==="PHONE"}))==null?void 0:r.actionText};
_.V.computeSmsContact=function(G){var e,r;return(e=G.contacts)==null?void 0:(r=e.find(function(Z){var O;return(Z==null?void 0:(O=Z.icon)==null?void 0:O.iconType)==="SMS"}))==null?void 0:r.actionText};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Oy.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Oy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Oy.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Oy.prototype,"amsterdamEnabled",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.x("design:type",Boolean)],Oy.prototype,"useContacts",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.x("design:type",String)],Oy.prototype,"phoneContact",void 0);_.B([_.c({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Oy);
_.A(Oy,"ytd-single-action-emergency-support-renderer",function(){if(d7H!==void 0)return d7H;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return d7H=G},{mode:1});_.te("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var MJ=function(){var G=_.m.apply(this,arguments)||this;G.roundedContainer=!0;G.amsterdamEnabled=_.R("enable_desktop_amsterdam_info_panels");return G};
_.K(MJ,_.m);MJ.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"}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],MJ.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],MJ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],MJ.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],MJ.prototype,"roundedContainer",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],MJ.prototype,"amsterdamEnabled",void 0);
_.B([_.c({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],MJ);
_.A(MJ,"ytd-emergency-onebox-renderer",function(){if(H38!==void 0)return H38;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return H38=G},{mode:1});var odY;_.te("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var VN=function(){return _.m.apply(this,arguments)||this};
_.K(VN,_.m);VN.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"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],VN.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],VN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],VN.prototype,"data",void 0);_.B([_.c({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],VN);
_.A(VN,"ytd-exploratory-results-renderer",function(){if(odY!==void 0)return odY;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return odY=G},{mode:1});var s98;_.te("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var hW=function(){var G=_.m.apply(this,arguments)||this;G.messageData=null;return G};
_.K(hW,_.m);_.V=hW.prototype;_.V.onServiceRequestCompleted=function(G,e){G=e.actions||[];e=0;for(var r=G.length;e<r;e++){var Z=G[e],O=void 0,M=void 0;if((O=_.a(Z,_.kA))==null?0:(M=O.item)==null?0:M.messageRenderer)this.messageData=_.a(Z,_.kA).item.messageRenderer}};
_.V.dataChanged=function(){var G=this.data;this.hostElement.hidden=!1;_.Nv(this.hostElement,"is-channel",G&&!G.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.V.computeThumbnailWidth=function(G){return G?126:56};
_.V.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.V.onSubmitTap=function(){var G=this.data,e=this.selectedResponseIndex;G!==void 0&&e!==void 0&&(G=G.responses[e],G.responseData&&_.v_().resolve(_.$1).resolveCommand(G.responseData,{form:{element:this.hostElement}}))};
_.V.onDismissTap=function(){this.hostElement.hidden=!0;var G=this.data;G!==void 0&&G.dismissalEndpoint&&_.v_().resolve(_.$1).resolveCommand(G.dismissalEndpoint,{form:{element:this.hostElement}})};
_.V.updateSelectedResponseIndexFromBinding=function(G){this.selectedResponseIndex=G.detail.value};
hW.prototype.onSelectedResponseIndexChange=hW.prototype.onSelectedResponseIndexChange;hW.prototype.dataChanged=hW.prototype.dataChanged;hW.prototype.onServiceRequestCompleted=hW.prototype.onServiceRequestCompleted;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],hW.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],hW.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],hW.prototype,"messageData",void 0);
_.B([_.n(),_.x("design:type",Number)],hW.prototype,"selectedResponseIndex",void 0);_.B([_.hs("#submit-button"),_.x("design:type",HTMLButtonElement)],hW.prototype,"submitButton",void 0);_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.n1]),_.x("design:returntype")],hW.prototype,"onServiceRequestCompleted",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hW.prototype,"dataChanged",null);
_.B([_.Me("selectedResponseIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hW.prototype,"onSelectedResponseIndexChange",null);_.B([_.c({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],hW);
_.A(hW,"ytd-feedback-elicitation-single-question-renderer",function(){if(s98!==void 0)return s98;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return s98=G},{mode:1});var Q9A;var Tv=function(){return _.m.apply(this,arguments)||this};
_.K(Tv,_.m);Tv.prototype.computeThumbnailWidth=function(G){return G?602:428};
Tv.prototype.updateWideFromBinding=function(G){this.wide=G.detail.value};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Tv.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Tv.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Boolean)],Tv.prototype,"wide",void 0);_.B([_.c({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],Tv);
_.A(Tv,"ytd-newspaper-hero-video-renderer",function(){if(Q9A!==void 0)return Q9A;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Q9A=G},{mode:1});var Ij2;var p8V=function(){return _.m.apply(this,arguments)||this};
_.K(p8V,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],p8V.prototype,"rendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],p8V.prototype,"data",void 0);_.B([_.c({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],p8V);
_.A(p8V,"ytd-newspaper-mini-video-renderer",function(){if(Ij2!==void 0)return Ij2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Ij2=G},{mode:1});var Chl;_.te("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var DB=function(){return _.m.apply(this,arguments)||this};
_.K(DB,_.m);DB.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"}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],DB.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],DB.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],DB.prototype,"data",void 0);_.B([_.c({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],DB);
_.A(DB,"ytd-newspaper-renderer",function(){if(Chl!==void 0)return Chl;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Chl=G},{mode:1});var ujH;_.te("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var Ey=function(){var G=_.m.apply(this,arguments)||this;G.isSegment=!1;G.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};G.nextContinuation={continuationType:"playlistVideoListContinuation"};return G};
_.K(Ey,_.m);_.V=Ey.prototype;_.V.created=function(){var G=this;this.JSC$22075_ytReorderableController=new _.rjv(101,function(e){G.handleDrop(e)})};
_.V.attached=function(){_.v_();var G;(G=_.v_().resolve(_.bq(_.ka)))!=null&&(G.playlistVideoListElement=this.hostElement)};
_.V.detached=function(){var G;(G=_.v_().resolve(_.bq(_.ka)))!=null&&(G.playlistVideoListElement=void 0);G=_.v_().resolve(_.bq(_.gi));_.R("web_enable_voting_animation")&&G&&(G.parentElem=void 0,G.videos=[],G.continuationsPresent=!1,G.showRefreshPill=!1);_.fJ(this.JSC$22075_ytReorderableController)};
_.V.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"}}}}}};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.V.dataChanged=function(){var G=_.v_().resolve(_.bq(_.gi));if(_.R("web_enable_voting_animation")&&this.data&&G){var e=_.z1(this.hostElement).querySelector("#contents");e&&(G.parentElem=e);G.addVideos(this.data.contents)}_.fJ(this.JSC$22075_ytReorderableController)};
_.V.onRendererstamperFinished=function(){this.canReorder&&_.ZAn(this.JSC$22075_ytReorderableController,_.z1(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.V.onPlaylistReloading=function(){this.isReloading=!0};
_.V.onUpdateSetVideoId=function(G){if(G.detail&&this.data&&this.data.contents){var e=G.detail;G=this.data.contents.findIndex(function(O){var M;return((M=O.playlistVideoRenderer)==null?void 0:M.videoId)===e.videoId});
if(!(G<0)&&e.setVideoId&&(this.set("data.contents."+G+".playlistVideoRenderer.setVideoId",e.setVideoId),_.R("web_enable_voting_animation"))){var r;if(G=_.a((r=this.data.contents[G].playlistVideoRenderer)==null?void 0:r.engagementBar,_.LXs)){var Z;(Z=G.actions)==null||Z.forEach(function(O){if(O=_.a(O,_.Gv$))O.itemId=e.setVideoId})}(r=_.v_().resolve(_.bq(_.gi)))&&TVo(r,e.videoId,e.setVideoId)}}};
_.V.computeContentsClass=function(G){return G?"reloading":""};
_.V.computeIsSortable=function(G,e){return G&&e>0&&!this.isSegment&&!_.R("shorts_in_playlists_web")};
_.V.computeIsEditable=function(G){return G};
_.V.computeCanReorder=function(G){return G};
_.V.handlePlaylistRemoveVideosAction=function(G){if(this.get("playlistRemoveVideosAction.setVideoIds",G)&&this.data&&this.data.contents){G=_.a(G,_.u5P).setVideoIds;for(var e=this.data.contents.length-1;e>=0;){var r=this.data.contents[e].playlistVideoRenderer;r&&r.setVideoId&&G.includes(r.setVideoId)&&this.splice("data.contents",e,1);e--}_.Pi(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.V.updateIndices=function(){if(this.data&&this.data.contents)for(var G=0;G<this.data.contents.length;G++)this.set("data.contents."+G+".playlistVideoRenderer.index",_.nQ(String(G+1)))};
_.V.handleDrop=function(G){G=G.currDragItem;var e=_.cA(G.parentNode.childNodes,G),r=this.data.contents.splice(Number(_.mG(G.data.index))-1,1)[0];this.data.contents.splice(e,0,r);e=e?this.get("contents."+(e-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();G=this.buildReorderServiceEndpoint(G.data.setVideoId,e);this.ytComponentBehavior.resolveCommand(G)};
_.V.buildReorderServiceEndpoint=function(G,e){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",G),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",e),this.data.onReorderEndpoint):null};
_.V.handleUpdatePlaylistAction=function(G){var e;(G=_.a((e=_.a(G,_.nMl))==null?void 0:e.updatedRenderer,_.n0y))&&this.canReorder!==G.canReorder&&this.set("data.canReorder",G.canReorder);G&&G.contents&&(this.set("data.contents",G.contents),this.isReloading=!1);G&&G.continuations&&this.set("data.continuations",G.continuations)};
_.V.handleAddRendererToItemSectionAction=function(G){var e,r=(e=_.a(G,vdA))==null?void 0:e.renderer,Z;r&&((Z=_.a(G,vdA))==null?void 0:Z.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,r),G=_.v_().resolve(_.bq(_.gi)),_.R("web_enable_voting_animation")&&G&&(r&&(e=_.NXN(r))&&G.recommendedVideos.push({itemId:e,videoId:_.e8_(r),voteCount:_.rWS(r),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.V.isVotingEnabledOnPlaylist=function(G){if(!G)return!1;G=_.h(G);for(G=G.next();!G.done;G=G.next()){var e=void 0;return!!_.a((e=G.value.playlistVideoRenderer)==null?void 0:e.engagementBar,_.LXs)}return!1};
_.V.onAppendContinuationItemsActionFinished=function(){var G;this.isVotingEnabledOnPlaylist((G=this.data)==null?void 0:G.contents)&&(this.updateIndices(),G=_.v_().resolve(_.bq(_.gi)),_.R("web_enable_voting_animation")&&G&&this.data&&G.addVideos(this.data.contents))};
_.V.updateVideoData=function(G){if(G.detail&&this.data&&this.data.contents){var e=G.detail;G=e.toIdx;var r=e.itemId,Z=e.newVoteCount,O=e.voteStatus;e=e.hideItem;var M,T,E=(M=this.data)==null?void 0:(T=M.contents)==null?void 0:T.findIndex(function(t){return _.NXN(t)===r});
if(!(E<0)){M=this.data.contents[E];var b;if((b=M.playlistVideoRenderer)==null?0:b.voteCount)M.playlistVideoRenderer.voteCount=Z;var w;if(b=_.a((w=M.playlistVideoRenderer)==null?void 0:w.engagementBar,_.LXs)){var q;(q=b.actions)==null||q.forEach(function(t){(t=_.a(t,_.Gv$))&&t.initialState&&(t.initialState.votes=Z,t.initialState.status=O)})}this.data.contents.splice(E,1);
e||this.data.contents.splice(G,0,M);this.updateIndices()}}};
Ey.prototype.updateVideoData=Ey.prototype.updateVideoData;Ey.prototype.onAppendContinuationItemsActionFinished=Ey.prototype.onAppendContinuationItemsActionFinished;Ey.prototype.onUpdateSetVideoId=Ey.prototype.onUpdateSetVideoId;Ey.prototype.onPlaylistReloading=Ey.prototype.onPlaylistReloading;Ey.prototype.onRendererstamperFinished=Ey.prototype.onRendererstamperFinished;Ey.prototype.dataChanged=Ey.prototype.dataChanged;
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Ey.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Ey.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Ey.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.r5.YtNextContinuationBehavior),_.x("design:type",Object)],Ey.prototype,"ytNextContinuationBehavior",void 0);
_.B([_.k(_.eP),_.x("design:type",Object)],Ey.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Ey.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Ey.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Boolean)],Ey.prototype,"isReloading",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Ey.prototype,"isSegment",void 0);
_.B([_.n({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.x("design:type",Boolean)],Ey.prototype,"isSortable",void 0);_.B([_.n({computed:"computeIsEditable(data.isEditable)"}),_.x("design:type",Boolean)],Ey.prototype,"isEditable",void 0);_.B([_.n({computed:"computeCanReorder(data.canReorder)"}),_.x("design:type",Boolean)],Ey.prototype,"canReorder",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ey.prototype,"dataChanged",null);_.B([_.Om("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ey.prototype,"onRendererstamperFinished",null);_.B([_.Om("yt-playlist-reloading"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ey.prototype,"onPlaylistReloading",null);
_.B([_.Om("yt-update-set-video-id"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Ey.prototype,"onUpdateSetVideoId",null);_.B([_.Om("yt-append-continuation-items-action-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ey.prototype,"onAppendContinuationItemsActionFinished",null);
_.B([_.Om("yt-update-video-data-voting-animation"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Ey.prototype,"updateVideoData",null);_.B([_.c({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Ey);
_.A(Ey,"ytd-playlist-video-list-renderer",function(){if(ujH!==void 0)return ujH;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return ujH=G},{mode:_.Px("kevlar_poly_si_batch_j047")?1:2});var ndm;var ik=function(){return _.m.apply(this,arguments)||this};
_.K(ik,_.m);ik.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"}}}}};
ik.prototype.onTextWrapperTap=function(G){var e=this.data&&this.data.navigationEndpoint;e&&!_.mO(_.na(G),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.xy(this.hostElement,"yt-navigate",{endpoint:e})};
ik.prototype.dataChanged=function(){var G=this.get("data.offerButton.buttonRenderer.serviceEndpoint");G&&G.commandMetadata&&_.a(G.commandMetadata,_.QJ)&&_.a(G.commandMetadata,_.QJ).fireAutomatically&&_.v_().resolve(_.$1).resolveCommand(G,{form:{element:this.hostElement}})};
ik.prototype.dataChanged=ik.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ik.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],ik.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.NC),_.x("design:type",Object)],ik.prototype,"ytdLockupBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ik.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,value:function(){return _.R("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],ik.prototype,"useBiggerThumbs",void 0);_.B([_.n({reflectToAttribute:!0,value:function(){return _.td("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],ik.prototype,"biggerThumbsStyle",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],ik.prototype,"leftAligned",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ik.prototype,"dataChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-movie-renderer"})],ik);
_.A(ik,"ytd-movie-renderer",function(){if(ndm!==void 0)return ndm;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return ndm=G},{mode:1});var m78;var bk=function(){var G=_.m.apply(this,arguments)||this;G.rounded=!0;G.pageAttachedTo=void 0;G.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return G};
_.K(bk,_.m);bk.prototype.attached=function(){this.pageAttachedTo=_.v_().resolve(_.y$).getCurrentPage();_.xy(this.hostElement,"yt-player-attached",this.player)};
bk.prototype.detached=function(){var G;if((G=this.pageAttachedTo)==null?0:G.hostElement)_.xy(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
bk.prototype.dataChanged=function(){var G;if((G=this.data)==null?0:G.videoId)G={video_id:this.data.videoId,autoplay:!0},!_.R("miniplayer_stop_channel_video_autoplay_killswitch")&&_.v_().resolve(_.fp).isMiniplayerActive()&&(G.pause_at_start=!0,G.autoplay=!1),this.player.loadVideoWithPlayerVars(G)};
bk.prototype.handleSignalActionPausePlayer=function(){_.Je().pause()};
bk.prototype.dataChanged=bk.prototype.dataChanged;_.B([_.n(),_.x("design:type",Object)],bk.prototype,"data",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],bk.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],bk.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],bk.prototype,"rounded",void 0);_.B([_.hs("#player"),_.x("design:type",Object)],bk.prototype,"player",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bk.prototype,"dataChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],bk);
_.A(bk,"ytd-channel-video-player-renderer",function(){if(m78!==void 0)return m78;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return m78=G},{mode:1});var cUA;var YqW;var yUA;var vj=function(){var G=_.m.apply(this,arguments)||this;G.playing=!1;G.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.zS(G);G.active=!1;return G};
_.K(vj,_.m);_.V=vj.prototype;_.V.detached=function(){this.stop()};
_.V.play=function(){var G=this,e,r,Z,O,M;return _.D(function(T){if(T.nextAddress==1)return G.active=!0,e=G.get("data.inlinePlaybackEndpoint.watchEndpoint"),r=e.videoId||G.data.videoId,Z=e.startTimeSeconds||0,O=e.playerParams||null,_.R("kevlar_player_update_killswitch")?T.yield(G.playerEl.update({args:{video_id:r,startSeconds:Z,player_params:O}}),2):(G.playerEl.loadVideoWithPlayerVars({video_id:r,startSeconds:Z,player_params:O,autoplay:!0}),T.jumpTo(2));if(T.nextAddress!=4)return T.yield(G.playerEl.getPlayerPromise(),
4);M=T.yieldResult;M.unloadModule("annotations_module");M.addEventListener("onStateChange",function(E){G.onPlayerStateChange(E)});
_.HL(T)})};
_.V.onPlayerStateChange=function(G){if(this.active)switch(this.playing=G===1,G){case 1:_.xy(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.xy(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.V.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.V.resize=function(){var G=this,e;return _.D(function(r){if(r.nextAddress==1)return r.yield(G.playerEl.getPlayerPromise(),2);e=r.yieldResult;e.setSize(NaN,NaN);_.HL(r)})};
_.B([_.n(),_.x("design:type",Object)],vj.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],vj.prototype,"playing",void 0);_.B([_.n(),_.x("design:type",Object)],vj.prototype,"playerId",void 0);_.B([_.hs("#player"),_.x("design:type",Object)],vj.prototype,"playerEl",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],vj);
_.A(vj,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(yUA!==void 0)return yUA;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return yUA=G},{mode:1});var AUC;var FeH;var w4=function(){var G=_.m.apply(this,arguments)||this;G.width=0;return G};
_.K(w4,_.m);_.V=w4.prototype;_.V.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.ZQ(this,this.onEnded));this.mp4El.addEventListener("error",_.ZQ(this,this.onError))};
_.V.detached=function(){this.videoEl.removeEventListener("ended",_.ZQ(this,this.onEnded));this.mp4El.removeEventListener("error",_.ZQ(this,this.onError))};
_.V.play=function(){var G=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var e=this.videoEl.play();e?e.then(function(){G.handleVideoStartPlaying()}).catch(function(){_.xy(G.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.xy(this.hostElement,"yt-video-thumbnail-not-playing")};
_.V.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.V.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.V.dataChanged=function(){var G;if((G=this.data)==null?0:G.thumbnailPlaceholder)G=_.BQ(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+G+")";this.stop();this.autoplay&&this.play()};
_.V.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.V.onEnded=function(){this.stop();_.xy(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.V.onError=function(){_.xy(this.hostElement,"yt-video-thumbnail-error")};
_.V.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.V.getVideoThumbnail=function(G){if(G&&G.length)return G[0]};
w4.prototype.dataChanged=w4.prototype.dataChanged;_.B([_.n(),_.x("design:type",Object)],w4.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],w4.prototype,"animatePlaceholderOnEntrance",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],w4.prototype,"autoplay",void 0);_.B([_.n({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.x("design:type",Object)],w4.prototype,"videoThumbnail",void 0);
_.B([_.n(),_.x("design:type",Boolean)],w4.prototype,"loop",void 0);_.B([_.n(),_.x("design:type",Boolean)],w4.prototype,"isVideoPlaying",void 0);_.B([_.n(),_.x("design:type",Object)],w4.prototype,"width",void 0);_.B([_.hs("#mp4"),_.x("design:type",HTMLElement)],w4.prototype,"mp4El",void 0);_.B([_.hs("#placeholder"),_.x("design:type",HTMLElement)],w4.prototype,"placeholderEl",void 0);_.B([_.hs("#video"),_.x("design:type",HTMLVideoElement)],w4.prototype,"videoEl",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],w4.prototype,"dataChanged",null);_.B([_.aR({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],w4);
_.A(w4,"yt-video-as-thumbnail-details",function(){if(FeH===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;AUC===void 0&&(AUC=document.createElement("template"));var Z=AUC;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);FeH=G}G=FeH;return G},{mode:2});var $g=function(){var G=_.m.apply(this,arguments)||this;G.disableGridStateAware=!1;G.animationEnabled=_.R("enable_web_ketchup_hero_animation");G.transitioningOut=!1;G.narrow=!1;G.narrower=!1;G.isCarouselInFeed=!1;G.videoTimeoutJobId=0;G.panelTimeoutJobId=0;G.panelTimeoutJobStartMs=0;G.actionMap={"yt-window-resized":"onWindowResized"};return G};
_.K($g,_.m);_.V=$g.prototype;_.V.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.V.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var G;this.player&&((G=this.data)==null?0:G.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.V.attached=function(){this.onWindowResized()};
_.V.detached=function(){this.clearTimeouts()};
_.V.onWindowResized=function(){this.updateSize()};
_.V.computePanelLayout=function(G){return G&&G.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.V.playVideo=function(){var G;this.video&&((G=this.data)==null?0:G.videoThumbnail)&&this.video.play();var e;this.player&&((e=this.data)==null?0:e.inlinePlaybackRenderer)&&this.player.play()};
_.V.stopVideo=function(){var G;this.video&&((G=this.data)==null?0:G.videoThumbnail)&&this.video.stop();var e;this.player&&((e=this.data)==null?0:e.inlinePlaybackRenderer)&&this.player.stop()};
_.V.transitionOut=function(){var G=this;this.transitioningOut=!0;return new Promise(function(e){var r=function(){_.z1(G.hostElement).querySelector("#action-button").removeEventListener("animationend",r);_.A0.cancelJob(Z);e();G.transitioningOut=!1};
var Z=_.IQ(_.A0,r,1E3);_.z1(G.hostElement).querySelector("#action-button").addEventListener("animationend",r);G.player&&(G.player.playing=!1)})};
_.V.computeMetadataOrder=function(G){return G&&G.metadataOrder&&G.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?G.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.V.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.V.computeAvatarSize=function(G){return G&&G.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.V.onContentClick=function(G){if(!_.mO(_.na(G),this.hostElement,["A".toString(),"BUTTON".toString()])){var e;if((e=this.data)==null?0:e.navigationEndpoint){var r;this.componentBehavior.resolveCommand((r=this.data)==null?void 0:r.navigationEndpoint)}}};
_.V.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.V.setBackgroundImage=function(G){if(G=this.getBackgroundImageUrl(G))_.z1(this.hostElement).querySelector("#hero").style.backgroundImage="url("+G+")"};
_.V.setScrimLayer=function(G){var e=this.getScrimLayerColorStops(G);G=((G==null?void 0:G.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(G=180);_.xZ("HTML_DIR")==="rtl"&&(G=-G);e&&(_.z1(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+G+"deg, "+e+")")};
_.V.isNarrower=function(){return this.hostElement.clientWidth<$g.NARROW_VERSION_SIZE};
_.V.getScrimLayerColorStops=function(){var G,e=(G=this.data)==null?void 0:G.scrimColorValues;if(!e)return null;if(e.length===1)return G=_.jF(e[0]),G+" 0%, "+G+" 100%";if(e.length===3){var r=[0,72,98];return e.map(function(Z,O){return _.jF(Z)+" "+r[O]+"%"}).join(",")}return null};
_.V.getBackgroundImageUrl=function(G){return G&&G.largeFormFactorBackgroundThumbnail?_.BQ((G.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||G.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.V.onPlaying=function(){this.startVideoTimeout()};
_.V.onEnded=function(){this.rotate()};
_.V.startPanelTimeout=function(){var G=this;if(!this.panelTimeoutJobId){var e=this.get("data.minPanelDisplayDurationMs");e&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.IQ(_.A0,function(){G.rotate()},e))}};
_.V.startVideoTimeout=function(){var G=this;if(!this.videoTimeoutJobId){_.A0.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=_.IQ(_.A0,function(){G.rotate()},e)}};
_.V.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.A0.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.A0.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.V.rotate=function(){this.clearTimeouts();_.xy(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.iY.Object.defineProperties($g.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.z1(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.z1(this.hostElement).querySelector("#video")}}});
_.iY.Object.defineProperties($g,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
$g.prototype.onEnded=$g.prototype.onEnded;$g.prototype.onPlaying=$g.prototype.onPlaying;$g.prototype.dataChanged=$g.prototype.dataChanged;_.B([_.k(_.x9),_.x("design:type",Object)],$g.prototype,"ytdGridStateAwareBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],$g.prototype,"componentBehavior",void 0);_.B([_.k(_.UN.YtdGuideStateAwareBehavior),_.x("design:type",Object)],$g.prototype,"ytdGuideStateAwareBehavior",void 0);
_.B([_.k(_.W3Y),_.x("design:type",Object)],$g.prototype,"ytBooleanLogicBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],$g.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],$g.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],$g.prototype,"ytRendererBehavior",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],$g.prototype,"disableGridStateAware",void 0);_.B([_.n(),_.x("design:type",Object)],$g.prototype,"data",void 0);_.B([_.n({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.x("design:type",String)],$g.prototype,"panelLayout",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],$g.prototype,"animationEnabled",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],$g.prototype,"transitioningOut",void 0);
_.B([_.n({computed:"computeMetadataOrder(data)"}),_.x("design:type",Boolean)],$g.prototype,"metadataOrder",void 0);_.B([_.n({computed:"computeByline(data)"}),_.x("design:type",Object)],$g.prototype,"byline",void 0);_.B([_.n({computed:"computeAvatarSize(data)"}),_.x("design:type",Number)],$g.prototype,"avatarSize",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],$g.prototype,"narrow",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],$g.prototype,"narrower",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],$g.prototype,"layoutStyle",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],$g.prototype,"isCarouselInFeed",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$g.prototype,"dataChanged",null);_.B([_.Om("yt-default-promo-panel-renderer-playing"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$g.prototype,"onPlaying",null);
_.B([_.Om("yt-default-promo-panel-renderer-ended"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$g.prototype,"onEnded",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],$g);
_.A($g,"ytd-default-promo-panel-renderer",function(){if(YqW!==void 0)return YqW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return YqW=G},{mode:1});_.te("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var SQ=function(){var G=_.m.apply(this,arguments)||this;G.narrower=!1;G.dotMenuVisible=!1;G.paginationThumbnailsVisible=!1;G.active=!0;G.disableGridStateAware=!1;G.actionMap={"yt-window-resized":"onWindowResized"};return G};
_.K(SQ,_.m);_.V=SQ.prototype;_.V.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]]"}}}}}};
_.V.attached=function(){document.addEventListener("yt-page-type-changed",_.ZQ(this,this.onPageTypeChange));this.currentPageSubtype=_.hUU(location.pathname);this.onWindowResized()};
_.V.detached=function(){this.jobId&&_.A0.cancelJob(this.jobId);this.updateSizeJobId&&_.A0.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.ZQ(this,this.onPageTypeChange))};
_.V.onPageTypeChange=function(G){this.active=G.detail.newPageSubtype===this.currentPageSubtype};
_.V.onWindowResized=function(){this.updateSize()};
_.V.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.V.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.V.setCarouselItem=function(G){G>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.A0.cancelJob(this.jobId);var e=this.getCurrentPanelElement();e&&e.stopVideo();this.currentItemIndex=G%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()};
_.V.scrollThumbnails=function(G){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var e=this.getCurrentPaginationElement();if(e){var r=_.z1(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?r.style.transform="translateX(0)":(e=e.offsetWidth+8,r.style.transform="translateX(-"+e*(G-Math.ceil(Math.floor(this.overlay.offsetWidth/e)/2)+1)+"px)")}}};
_.V.onDataChanged=function(){var G=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.Zk(_.A0,function(){var e;(e=G.getCurrentPanelElement())==null||e.updateSize();G.updateSize()}))};
_.V.getCurrentPanelElement=function(){return _.z1(_.z1(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.V.getCurrentPaginationElement=function(){return _.z1(_.z1(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.V.getNavigationClass=function(G,e){return G===e?"selected":""};
_.V.getNavigationDurationStyle=function(G){return"animation-duration:"+(this.get("data.carouselItems."+G+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.V.onNavigationTap=function(G){var e=this,r=G.model.index;r!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){e.setCarouselItem(r)}),this.autorotateActive=!1)};
_.V.onVideoThumbnailEnded=function(){var G=this;if(this.shouldRotate()){var e=this.getCurrentPaginationElement();e&&(e.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){e.classList.remove("finished");G.setNextCarouselItem()}))}};
_.V.onVideoThumbnailError=function(){this.startRotationJob()};
_.V.onVideoNotPlaying=function(){this.startRotationJob()};
_.V.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.V.startRotationJob=function(){var G=this;_.A0.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.A0.addLowPriorityJob(function(){G.getCurrentPanelElement().transitionOut().then(function(){G.setNextCarouselItem()})},this.rotationTimeout))};
_.V.computeDotMenuVisible=function(G,e){return!!G&&!!G.carouselItems&&G.carouselItems.length>1&&!G.paginationThumbnails||!!e};
_.V.computePaginationThumbnailsVisible=function(G,e){var r,Z;return((Z=G==null?void 0:(r=G.paginationThumbnails)==null?void 0:r.length)!=null?Z:0)>1&&!e};
_.V.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.V.computePaginatorAlignment=function(G){return(G==null?void 0:G.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.V.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.V.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.V.isNarrower=function(G){return(G!=null?G:0)<$g.NARROW_VERSION_SIZE};
SQ.prototype.activeChanged=SQ.prototype.activeChanged;SQ.prototype.onVideoNotPlaying=SQ.prototype.onVideoNotPlaying;SQ.prototype.onVideoThumbnailError=SQ.prototype.onVideoThumbnailError;SQ.prototype.onVideoThumbnailEnded=SQ.prototype.onVideoThumbnailEnded;SQ.prototype.onDataChanged=SQ.prototype.onDataChanged;_.B([_.k(_.x9),_.x("design:type",Object)],SQ.prototype,"ytdGridStateAwareBehavior",void 0);
_.B([_.k(_.UN.YtdGuideStateAwareBehavior),_.x("design:type",Object)],SQ.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],SQ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],SQ.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],SQ.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],SQ.prototype,"currentItem",void 0);
_.B([_.n(),_.x("design:type",Number)],SQ.prototype,"currentItemIndex",void 0);_.B([_.n(),_.x("design:type",Number)],SQ.prototype,"rotationTimeout",void 0);_.B([_.n(),_.x("design:type",Number)],SQ.prototype,"loopCount",void 0);_.B([_.n({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.x("design:type",String)],SQ.prototype,"paginatorAlignment",void 0);_.B([_.n(),_.x("design:type",Number)],SQ.prototype,"jobId",void 0);
_.B([_.n(),_.x("design:type",Number)],SQ.prototype,"updateSizeJobId",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],SQ.prototype,"isCarouselInFeed",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],SQ.prototype,"narrower",void 0);_.B([_.n({computed:"computeDotMenuVisible(data, narrower)"}),_.x("design:type",Object)],SQ.prototype,"dotMenuVisible",void 0);
_.B([_.n({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.x("design:type",Object)],SQ.prototype,"paginationThumbnailsVisible",void 0);_.B([_.n({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.x("design:type",String)],SQ.prototype,"layoutType",void 0);_.B([_.n({value:!0,reflectToAttribute:!0}),_.x("design:type",Boolean)],SQ.prototype,"autorotateActive",void 0);_.B([_.n(),_.x("design:type",Object)],SQ.prototype,"active",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],SQ.prototype,"disableGridStateAware",void 0);_.B([_.hs("#overlay"),_.x("design:type",HTMLElement)],SQ.prototype,"overlay",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SQ.prototype,"onDataChanged",null);
_.B([_.Om("yt-video-thumbnail-ended"),_.Om("yt-default-promo-panel-renderer-rotate"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SQ.prototype,"onVideoThumbnailEnded",null);_.B([_.Om("yt-video-thumbnail-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SQ.prototype,"onVideoThumbnailError",null);
_.B([_.Om("yt-video-thumbnail-not-playing"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SQ.prototype,"onVideoNotPlaying",null);_.B([_.iD("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SQ.prototype,"activeChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],SQ);
_.A(SQ,"ytd-carousel-item-renderer",function(){if(cUA!==void 0)return cUA;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return cUA=G},{mode:2});var JUm;var BVa;var x7d;var PhW;var qJ=function(){var G=_.m.apply(this,arguments)||this;G.originalQuery=null;G.originalEndpoint=null;return G};
_.K(qJ,_.m);qJ.prototype.computeShowOriginalQueryWithoutEndpoint_=function(G,e){return!(!G||e)};
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],qJ.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],qJ.prototype,"correctedText",void 0);_.B([_.n(),_.x("design:type",Object)],qJ.prototype,"correctedQuery",void 0);_.B([_.n(),_.x("design:type",Object)],qJ.prototype,"correctedEndpoint",void 0);_.B([_.n(),_.x("design:type",Object)],qJ.prototype,"originalText",void 0);_.B([_.n(),_.x("design:type",Object)],qJ.prototype,"originalQuery",void 0);
_.B([_.n(),_.x("design:type",Object)],qJ.prototype,"originalEndpoint",void 0);_.B([_.n({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.x("design:type",Boolean)],qJ.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.B([_.aR({is:"yt-search-query-correction",disableElementRegistration:!0})],qJ);
_.A(qJ,"yt-search-query-correction",function(){if(PhW===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;x7d===void 0&&(x7d=document.createElement("template"));var Z=x7d;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);PhW=G}G=PhW;return G},{mode:2});_.te("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var U78=function(){return _.m.apply(this,arguments)||this};
_.K(U78,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],U78.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],U78.prototype,"data",void 0);_.B([_.aR({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],U78);
_.A(U78,"yt-did-you-mean-renderer",function(){if(BVa===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;JUm===void 0&&(JUm=document.createElement("template"));var Z=JUm;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);BVa=G}G=BVa;return G},{mode:2});var zAC;var Wel;_.te("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var NVl=function(){return _.m.apply(this,arguments)||this};
_.K(NVl,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],NVl.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],NVl.prototype,"data",void 0);_.B([_.aR({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],NVl);
_.A(NVl,"yt-including-results-for-renderer",function(){if(Wel===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;zAC===void 0&&(zAC=document.createElement("template"));var Z=zAC;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Wel=G}G=Wel;return G},{mode:2});var Lea;var GSk;_.te("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var tW=function(){return _.m.apply(this,arguments)||this};
_.K(tW,_.m);tW.prototype.computeExtraClasses_=function(G,e){var r="";G&&(r+=" "+G.toLowerCase().replace(/_/g,"-"));e&&(r+=" "+e.toLowerCase().replace(/_/g,"-"));return r};
tW.prototype.computeUrlImg_=function(){var G=this.data;G.image&&(_.z1(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.BQ(G.image.thumbnails,Number.MAX_VALUE)+")")};
tW.prototype.computeUrlImg_=tW.prototype.computeUrlImg_;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],tW.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],tW.prototype,"data",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tW.prototype,"computeUrlImg_",null);_.B([_.aR({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],tW);
_.A(tW,"yt-music-pass-feature-info-renderer",function(){if(GSk===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;Lea===void 0&&(Lea=document.createElement("template"));var Z=Lea;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);GSk=G}G=GSk;return G},{mode:2});var eaZ;var riq;_.te("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var Zfk=function(){return _.m.apply(this,arguments)||this};
_.K(Zfk,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Zfk.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Zfk.prototype,"data",void 0);_.B([_.aR({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],Zfk);
_.A(Zfk,"yt-no-results-found-showing-results-for-renderer",function(){if(riq===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;eaZ===void 0&&(eaZ=document.createElement("template"));var Z=eaZ;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);riq=G}G=riq;return G},{mode:2});var Ofj;var M$w;_.te("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var V$t=function(){return _.m.apply(this,arguments)||this};
_.K(V$t,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],V$t.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],V$t.prototype,"data",void 0);_.B([_.aR({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],V$t);
_.A(V$t,"yt-results-without-quotes-renderer",function(){if(M$w===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;Ofj===void 0&&(Ofj=document.createElement("template"));var Z=Ofj;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);M$w=G}G=M$w;return G},{mode:2});var hak;var Tsj;_.te("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var DUt=function(){return _.m.apply(this,arguments)||this};
_.K(DUt,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],DUt.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],DUt.prototype,"data",void 0);_.B([_.aR({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],DUt);
_.A(DUt,"yt-search-no-results-renderer",function(){if(Tsj===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;hak===void 0&&(hak=document.createElement("template"));var Z=hak;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Tsj=G}G=Tsj;return G},{mode:2});var E4q;var if2;_.te("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var bfz=function(){return _.m.apply(this,arguments)||this};
_.K(bfz,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],bfz.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],bfz.prototype,"data",void 0);_.B([_.aR({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],bfz);
_.A(bfz,"yt-showing-results-for-renderer",function(){if(if2===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;E4q===void 0&&(E4q=document.createElement("template"));var Z=E4q;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);if2=G}G=if2;return G},{mode:2});var v4z;var wAZ;var $UX;var S_w;var g4=function(){var G=_.m.apply(this,arguments)||this;G.answerExpanded=!1;return G};
_.K(g4,_.m);g4.prototype.toggleAnswer_=function(G){var e=_.mk(G);e&&e.classList.contains("yt-simple-endpoint")||(G.preventDefault(),G.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
g4.prototype.toggleAnswer_=g4.prototype.toggleAnswer_;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],g4.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],g4.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],g4.prototype,"answerExpanded",void 0);_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],g4.prototype,"toggleAnswer_",null);
_.B([_.aR({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],g4);
_.A(g4,"yt-generic-faq-question-renderer",function(){if(S_w===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;$UX===void 0&&($UX=document.createElement("template"));var Z=$UX;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);S_w=G}G=S_w;return G},{mode:2});_.te("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var lk=function(){return _.m.apply(this,arguments)||this};
_.K(lk,_.m);lk.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],lk.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],lk.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],lk.prototype,"data",void 0);_.B([_.aR({is:"yt-faq-section-renderer",disableElementRegistration:!0})],lk);
_.A(lk,"yt-faq-section-renderer",function(){if(wAZ===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;v4z===void 0&&(v4z=document.createElement("template"));var Z=v4z;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);wAZ=G}G=wAZ;return G},{mode:2});var q_$;var t$q;_.te("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var R1=function(){return _.m.apply(this,arguments)||this};
_.K(R1,_.m);
R1.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"}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],R1.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],R1.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],R1.prototype,"data",void 0);_.B([_.aR({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],R1);
_.A(R1,"yt-offer-item-expanded-renderer",function(){if(t$q===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;q_$===void 0&&(q_$=document.createElement("template"));var Z=q_$;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);t$q=G}G=t$q;return G},{mode:2});var g4t;var lqj;_.te("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var jQ=function(){return _.m.apply(this,arguments)||this};
_.K(jQ,_.m);
jQ.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"}}}}};
jQ.prototype.computeFullWidthMode=function(G){return!(!G||!G.fullWidthMode)};
jQ.prototype.computeBorderlessMode=function(G){return!(!G||!G.borderlessMode)};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],jQ.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],jQ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],jQ.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.x("design:type",Boolean)],jQ.prototype,"fullWidthMode",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.x("design:type",Boolean)],jQ.prototype,"borderlessMode",void 0);_.B([_.aR({is:"yt-offer-item-renderer",disableElementRegistration:!0})],jQ);
_.A(jQ,"yt-offer-item-renderer",function(){if(lqj===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;g4t===void 0&&(g4t=document.createElement("template"));var Z=g4t;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);lqj=G}G=lqj;return G},{mode:2});var Ra_;var jyq;_.te("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var a1=function(){return _.m.apply(this,arguments)||this};
_.K(a1,_.m);a1.prototype.computeAriaLevel_=function(G){return this.getLevelID_(G)};
a1.prototype.getLevelID_=function(G){return(G=G.match(/[0-9]+$/))&&G.length==1?G[0]:"1"};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],a1.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],a1.prototype,"data",void 0);_.B([_.n({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.x("design:type",String)],a1.prototype,"ariaLevel",void 0);_.B([_.n({value:"heading",reflectToAttribute:!0}),_.x("design:type",String)],a1.prototype,"role",void 0);
_.B([_.n({value:-1,reflectToAttribute:!0}),_.x("design:type",Number)],a1.prototype,"tabindex",void 0);_.B([_.aR({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],a1);
_.A(a1,"yt-subscription-product-header-renderer",function(){if(jyq===void 0){var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;Ra_===void 0&&(Ra_=document.createElement("template"));var Z=Ra_;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);jyq=G}G=jyq;return G},{mode:2});var aq$;var XAX;_.te("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var Xh=function(){return _.m.apply(this,arguments)||this};
_.K(Xh,_.m);Xh.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:_.gp("menuRenderer"),events:!0}}};
Xh.prototype.onStampFinished_=function(){_.z1(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
Xh.prototype.onStampFinished_=Xh.prototype.onStampFinished_;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Xh.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Xh.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Xh.prototype,"data",void 0);_.B([_.Om("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Xh.prototype,"onStampFinished_",null);
_.B([_.aR({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],Xh);
_.A(Xh,"yt-subscription-product-renderer",function(){if(XAX===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;aq$===void 0&&(aq$=document.createElement("template"));var Z=aq$;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);XAX=G}G=XAX;return G},{mode:2});var KSv;var fqk;_.te("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var KD=function(){return _.m.apply(this,arguments)||this};
_.K(KD,_.m);KD.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
KD.prototype.imageScrimColorValuesChanged_=function(){var G,e=(G=this.data)==null?void 0:G.imageScrimColorValues;_.z1(this.hostElement).querySelector("#scrim").style.backgroundColor=e?_.jF(e[0]):"transparent"};
KD.prototype.imageScrimColorValuesChanged_=KD.prototype.imageScrimColorValuesChanged_;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],KD.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],KD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],KD.prototype,"data",void 0);
_.B([_.Me("data.imageScrimColorValues"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],KD.prototype,"imageScrimColorValuesChanged_",null);_.B([_.aR({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],KD);
_.A(KD,"yt-subscription-product-upsell-offer-renderer",function(){if(fqk===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;KSv===void 0&&(KSv=document.createElement("template"));var Z=KSv;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);fqk=G}G=fqk;return G},{mode:2});var kSt;var Hfz;var dUz;var o4_;var syz;var QyZ;var fD=function(){return _.m.apply(this,arguments)||this};
_.K(fD,_.m);fD.prototype.onYtServiceRequestError_=function(G){_.QO(this.hostElement,G.detail.error.message)};
fD.prototype.onYtServiceRequestError_=fD.prototype.onYtServiceRequestError_;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],fD.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],fD.prototype,"data",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],fD.prototype,"collapsible",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],fD.prototype,"isManageRed",void 0);
_.B([_.Om("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],fD.prototype,"onYtServiceRequestError_",null);_.B([_.aR({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],fD);
_.A(fD,"yt-single-ypc-offer-renderer",function(){if(QyZ===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;syz===void 0&&(syz=document.createElement("template"));var Z=syz;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);QyZ=G}G=QyZ;return G},{mode:2});var kg=function(){return _.m.apply(this,arguments)||this};
_.K(kg,_.m);kg.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],kg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],kg.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],kg.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],kg.prototype,"isManageRed",void 0);_.B([_.aR({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],kg);
_.A(kg,"yt-single-ypc-offer-list-renderer",function(){if(o4_===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;dUz===void 0&&(dUz=document.createElement("template"));var Z=dUz;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);o4_=G}G=o4_;return G},{mode:2});var Iqt;var pAj;_.te("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var Hj=function(){return _.m.apply(this,arguments)||this};
_.K(Hj,_.m);Hj.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Hj.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Hj.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Hj.prototype,"data",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],Hj.prototype,"isManageRed",void 0);_.B([_.aR({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],Hj);
_.A(Hj,"yt-ypc-offers-list-renderer",function(){if(pAj===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;Iqt===void 0&&(Iqt=document.createElement("template"));var Z=Iqt;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);pAj=G}G=pAj;return G},{mode:2});_.te("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var d4=function(){return _.m.apply(this,arguments)||this};
_.K(d4,_.m);
d4.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}}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],d4.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],d4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],d4.prototype,"data",void 0);_.B([_.aR({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],d4);
_.A(d4,"yt-unlimited-manage-subscription-page-renderer",function(){if(Hfz===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;kSt===void 0&&(kSt=document.createElement("template"));var Z=kSt;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Hfz=G}G=Hfz;return G},{mode:2});var CFw;var uNq;var o1=function(){return _.m.apply(this,arguments)||this};
_.K(o1,_.m);_.V=o1.prototype;_.V.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.V.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.V.onKeypress_=function(G){G.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.V.handleHeaderTap_=function(G){G.preventDefault();G.stopPropagation();this.expandOffers_()};
_.V.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.V.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
o1.prototype.dataChanged_=o1.prototype.dataChanged_;_.B([_.k(_.fS),_.x("design:type",Object)],o1.prototype,"ironA11yKeysBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],o1.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],o1.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],o1.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],o1.prototype,"offersVisible_",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],o1.prototype,"dataChanged_",null);_.B([_.aR({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],o1);
_.A(o1,"yt-collapsible-ypc-offer-renderer",function(){if(uNq===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;CFw===void 0&&(CFw=document.createElement("template"));var Z=CFw;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);uNq=G}G=uNq;return G},{mode:2});var n4j;var mUk;_.te("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var sy=function(){return _.m.apply(this,arguments)||this};
_.K(sy,_.m);_.V=sy.prototype;_.V.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.V.dataChanged_=function(){if(this.data.backgroundImage){var G=_.BQ(this.data.backgroundImage.thumbnails,screen.width),e=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=e?"linear-gradient(180deg, "+e+"), url("+G+")":"url("+G+")";this.data.gtmId&&_.sZ(this.data.gtmId,_.xZ("GL",""))}};
_.V.onYtServiceRequestError_=function(G){_.QO(this.hostElement,G.detail.error.message)};
_.V.getScrimLayerColorStops_=function(){var G,e,r=(G=this.data.unlimitedHeaderV2Data)==null?void 0:(e=G.unlimitedHeaderV2Data)==null?void 0:e.scrimLayerColors;if(!r)return null;var Z=100/r.length;return r.map(function(O,M){M*=Z;return _.jF(O)+" "+M+"%"}).join(",")};
_.V.computeLogoWithPadding=function(G){var e,r,Z;return(G=(e=G.unlimitedLogoImage)==null?void 0:(r=e.thumbnails)==null?void 0:(Z=r[0])==null?void 0:Z.height)&&G%31===0?!0:!1};
sy.prototype.onYtServiceRequestError_=sy.prototype.onYtServiceRequestError_;sy.prototype.dataChanged_=sy.prototype.dataChanged_;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],sy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],sy.prototype,"ytRendererBehavior",void 0);_.B([_.n({computed:"computeLogoWithPadding(data)"}),_.x("design:type",Boolean)],sy.prototype,"logoWithPadding",void 0);
_.B([_.n(),_.x("design:type",Object)],sy.prototype,"data",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sy.prototype,"dataChanged_",null);_.B([_.Om("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],sy.prototype,"onYtServiceRequestError_",null);_.B([_.aR({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],sy);
_.A(sy,"yt-unlimited-page-header-renderer",function(){if(mUk===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;n4j===void 0&&(n4j=document.createElement("template"));var Z=n4j;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);mUk=G}G=mUk;return G},{mode:2});var ciZ;var Y_z;_.te("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var QN=function(){return _.m.apply(this,arguments)||this};
_.K(QN,_.m);QN.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],QN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],QN.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],QN.prototype,"data",void 0);_.B([_.aR({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],QN);
_.A(QN,"yt-unlimited-user-notification-renderer",function(){if(Y_z===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;ciZ===void 0&&(ciZ=document.createElement("template"));var Z=ciZ;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Y_z=G}G=Y_z;return G},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.oPW=function(G,e){if(_.R("web_enable_chat_autoscroll_to_user_turn")&&G&&e)return G-4+"px"};_.sRa=_.y(function(G){var e=_.cx(G,{numberOfChips:5}).numberOfChips;return _.v("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.v(_.u6,{each:function(){return Array(e==null?void 0:e())}},function(){return _.v("div",{class:"ytGhostChipShelfChip"})}))},"Zi");_.QRm=_.y(function(G){var e=function(){var T;return((T=G.data)==null?void 0:T.call(G).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},r=_.r8(),Z=_.v_().resolve(_.CC);
_.YZ(function(){requestAnimationFrame(function(){var T;(T=r.lottieEl)==null||T.addEventListener("DOMLoaded",function(){var E;(E=G.onLottieLoaded)==null||E.call(G)})})});
var O=function(){var T;return(T=G.data)==null?void 0:T.call(G).loadingAnimationA11yLabel},M={};
return _.v("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var T;return((T=G.data)==null?void 0:T.call(G).targetId)||""},
"aria-label":function(){return O()||""},
role:function(){return O()?"progressbar":void 0},
style:_.Mk({"min-height":function(){var T,E;return _.oPW((T=G.containerHeight)==null?void 0:T.call(G),(E=G.isLastItem)==null?void 0:E.call(G))}})},_.v(_.lO,{"aria-hidden":"true",
className:_.LC((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:r}))},"aj");
}catch(e){_._DumpException(e)}
try{
var j5B,amW,XJ2,fmH,k2V,HMd,dxB,os2,s5a,Q5W,cTC,oJ,mxW,pJA,nsA,u1W,CCm,ImB,YHB,yTC,ATY,Fum,sc,JTH,Be8,UxW,IJ,xxW,uI,Qq,pq,PCC,Cq,zsl,WuY,NeC,Lul,GUl,eZd,ZtY,OtB,MCA,VCC,hZW,TEC,DNl,Eud,itH,bt8,wUm,$NW,S0V,tCo,lEA,jdH,aEV,XU8,KMV,kU2,Hta,dNo,ouC,sd2,Qd8,IEm,CY2,cPA,mNW,upC,Y0a,nul,yPW,BEA,JPm,APC,FMV,mU,xNd,UNo,zZW,WMY,ZOl,OOd,MWV,VWH,hg8,To2,Dzl,EyC,iOl,vym,wiC,$zC,SWo,qWa,tWV,gyl,lzA,az8,Gwa;
_.Hq=function(G){var e=new _.Cr("Error accessing DB");return _.jkN().then(function(r){return new Promise(function(Z,O){try{var M=r.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(G);M.onsuccess=function(){var T=M.result;Z(T?T.value:null)};
M.onerror=function(){e.params={key:G,source:"onerror"};O(e)}}catch(T){e.params={key:G,
thrownError:String(T)},O(e)}})},function(){return null})};
j5B=function(G,e){return _.e6(G.entities,"inlineExpansionEntity",e)};
amW=function(G,e){return _.e6(G.entities,"flowStateEntity",e)};
XJ2=function(G,e){if(G&&e){var r=_.T_();r().set(G,e);_.qhS(r())}};
_.KuW=function(G,e){if(G&&e){var r=_.T_();r().set(G,e);_.qhS(r())}};
fmH=function(G,e){return _.e6(G.entities,"contextNoteUserRatingEntityPayload",e)};
k2V=function(G){return _.Cf(G,function(e){return e.languageCode==="en"})};
HMd=function(G){var e=dC;if(_.Dx8(G))G.setOption("captions","stickyLoading",{}),G.setOption("captions","track",{});else{var r=_.Cf(_.j1i(G),function(Z){return Z.displayName===e});
G.setOption("captions","track",r)}};
dxB=function(G){if(!G)return 0;var e=G.getPresentingPlayerType(),r=G.getVideoData();return r&&r.isLive?(G=G.getProgressState(e),G.seekableEnd-G.seekableStart):G.getDuration(e)};
os2=function(G,e){for(var r=_.h(Object.keys(G)),Z=r.next();!Z.done;Z=r.next())if(Z=Z.value,G[Z]!==e[Z])return!1;return!0};
s5a=function(){return document.getElementById("player-control-overlay")};
Q5W=function(G){G!==-1&&!_.R("player_controls_log_creation_killswitch")&&s5a()&&(_.jq("pcu_cs",G),_.jq("pcu_ce"))};
cTC=function(G,e){var r=_.mr(G,{}),Z=ImB("top",e),O=ImB("bottom",e),M=ImB("left",e),T=ImB("right",e);return _.Mk({top:function(){return oJ(r().position,Z)},
bottom:function(){return oJ(r().position,O)},
left:function(){return oJ(r().position,M)},
right:function(){return oJ(r().position,T)},
position:function(){return oJ(r().positionType,pJA)},
height:function(){return oJ(r().height,sc)},
width:function(){return oJ(r().width,sc)},
"min-width":function(){return oJ(r().minWidth,sc)},
"min-height":function(){return oJ(r().minHeight,sc)},
"max-width":function(){return oJ(r().maxWidth,sc)},
"max-height":function(){return oJ(r().maxHeight,sc)},
"aspect-ratio":function(){return oJ(r().aspectRatio,String)},
"margin-top":function(){return oJ(r().margin,Z)},
"margin-bottom":function(){return oJ(r().margin,O)},
"margin-left":function(){return oJ(r().margin,M)},
"margin-right":function(){return oJ(r().margin,T)},
"padding-top":function(){return oJ(r().padding,Z)},
"padding-bottom":function(){return oJ(r().padding,O)},
"padding-left":function(){return oJ(r().padding,M)},
"padding-right":function(){return oJ(r().padding,T)},
"flex-direction":function(){return oJ(r().flexDirection,CCm)},
"justify-content":function(){return oJ(r().justifyContent,u1W)},
"align-items":function(){return oJ(r().alignItems,nsA)},
"flex-grow":function(){return oJ(r().flexGrow,String)},
"flex-shrink":function(){return oJ(r().flexShrink,String)},
"flex-basis":function(){return oJ(r().flexBasis,sc)},
"align-self":function(){return oJ(r().alignSelf,nsA)},
"flex-wrap":function(){return oJ(r().flexWrap,mxW)},
"align-content":function(){return oJ(r().alignContent,nsA)}})};
oJ=function(G,e){return G!==void 0?e(G):void 0};
mxW=function(G){switch(G){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
pJA=function(G){switch(G){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
nsA=function(G){switch(G){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"}};
u1W=function(G){switch(G){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"}};
CCm=function(G){switch(G){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"}};
ImB=function(G,e){var r=e==="rtl";switch(G){case "top":var Z=YHB;break;case "bottom":Z=yTC;break;case "left":Z=ATY;break;default:Z=Fum}return function(O){return oJ(Z(O,r),sc)}};
YHB=function(G){var e=G.top;var r=G.vertical;G=G.all;var Z;return(Z=e!=null?e:r)!=null?Z:G};
yTC=function(G){var e=G.bottom;var r=G.vertical;G=G.all;var Z;return(Z=e!=null?e:r)!=null?Z:G};
ATY=function(G,e){var r=G.left;var Z=G.end;var O=G.start;var M=G.horizontal;G=G.all;var T,E;return(E=(T=r!=null?r:e?Z:O)!=null?T:M)!=null?E:G};
Fum=function(G,e){var r=G.right;var Z=G.end;var O=G.start;var M=G.horizontal;G=G.all;var T,E;return(E=(T=r!=null?r:e?O:Z)!=null?T:M)!=null?E:G};
sc=function(G){var e=G.value;switch(G.unit){case "YPC_DIMENSION_UNIT_POINT":return e+"px";case "YPC_DIMENSION_UNIT_FRACTION":return e+"%";default:return""+e}};
JTH=function(G){switch(G){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"}};
Be8=function(G){var e=G!=null?G:{};G=e.fontRole;var r=e.fontSize;e=e.fontWeight;if(G!==null&&r!==null)switch(G){case "YPC_FONT_ROLE_DISPLAY":switch(r){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(r){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(r){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"}}};
UxW=function(G,e,r){function Z(t){return Object.values(t).map(function(g){var l=g.productId;g=g.pricingOptionIndex;return Qq(O(l).pricingOptions,g).pricingOptionId})}
function O(t){return b().get(t)}
function M(t){t=Z(t);r(t)}
function T(t,g){return Array.from(IJ(t.pricingOptions)).filter(function(l){l=_.h(l);l.next();l=l.next().value;return pq(l.pricingGroupAttributes,g)}).map(function(l){return _.h(l).next().value})}
var E=Cq([G,e],function(t,g){var l=t==null?void 0:t.selectedPricingOptions;t={};var X=!0;if(l&&g.length)for(var H=_.h(g),I=H.next();!I.done;I=H.next()){I=I.value;var C=xxW(I.pricingOptions,function(F){a:{F=F.pricingOptionId;for(var J=_.h(l),U=J.next();!U.done;U=J.next())if(U.value===F){F=!0;break a}F=!1}return F});
if(C>=0){X=!1;var u=Qq(I.pricingOptions,C),P=void 0;t[I.groupId]={productId:I.productId,pricingOptionIndex:C,pricingGroupAttributes:(P=u)==null?void 0:P.pricingGroupAttributes}}}X&&g.length&&(X=Qq(g[0].pricingOptions,0),t[g[0].groupId]={productId:g[0].productId,pricingOptionIndex:0,pricingGroupAttributes:X==null?void 0:X.pricingGroupAttributes});return t}),b=Cq([e],function(t){return new Map(t.map(function(g){return[g.productId,
g]}))}),w=Cq([e],function(t){var g=new Map;
t=_.h(t);for(var l=t.next();!l.done;l=t.next()){var X=l.value;l=X.groupId;var H=X.productId;X=_.h(IJ(X.pricingOptions));for(var I=X.next();!I.done;I=X.next()){var C=_.h(I.value);I=C.next().value;C=C.next().value;g.set(C.pricingOptionId,{groupId:l,productId:H,index:I,pricingOption:C,pricingGroupAttributes:C.pricingGroupAttributes})}}return g}),q=Cq([e],function(t){var g=new Map;
t=_.h(t);for(var l=t.next();!l.done;l=t.next()){var X=l.value;l=X.groupId;var H=X.productId,I=void 0;X=_.h(IJ((I=X.pricingGroups)!=null?I:[]));for(I=X.next();!I.done;I=X.next()){var C=_.h(I.value);I=C.next().value;C=C.next().value;g.set(C.pricingGroupId,{groupId:l,productId:H,index:I,pricingGroup:C,pricingGroupAttributes:C.pricingGroupAttributes})}}return g});
return{getProductById:O,isProductSelected:function(t){var g=O(t);if(!g)return!1;var l;return((l=E()[g.groupId])==null?void 0:l.productId)===t},
getSelectedPricingOptions:function(){return Object.values(E()).map(function(t){var g=t.productId;t=t.pricingOptionIndex;return Qq(O(g).pricingOptions,t)})},
getSelectedPricingGroupAttributesByGroupId:function(t){var g;return(t=(g=E()[t])==null?void 0:g.pricingGroupAttributes)?Array.from(t):void 0},
getSelectedProductByGroupId:function(t){var g;return(t=(g=E()[t])==null?void 0:g.productId)?O(t):void 0},
onProductSelected:function(t){var g=O(t);if(g){var l=E(),X;if(((X=l[g.groupId])==null?void 0:X.productId)!==t){var H=(X=(H=l[g.groupId])==null?void 0:H.productId)?O(X):void 0;var I;X=(I=l[g.groupId])==null?void 0:I.pricingGroupAttributes;var C;I=(C=l[g.groupId])==null?void 0:C.pricingOptionIndex;if(H&&I!==void 0)if(X){C=T(H,X).indexOf(I);if(C===-1)throw Error("Yj`"+I+"`"+H.productId);I=T(g,X);C=C<I.length?I[C]:I.length>0?I[0]:0}else C=I<uI(g.pricingOptions)?I:0;else C=0;uI(g.pricingOptions)<=C&&(C=
0);I=Qq(g.pricingOptions,C);var u;H={};M(Object.assign({},l,(H[g.groupId]={productId:t,pricingOptionIndex:C,pricingGroupAttributes:(u=I==null?void 0:I.pricingGroupAttributes)!=null?u:[]},H)))}}},
onPricingOptionSelected:function(t){var g=w().get(t);if(g){t=g.groupId;var l=g.productId;g=g.index;var X=E(),H,I;if(((H=X[t])==null?void 0:H.productId)!==l||((I=X[t])==null?void 0:I.pricingOptionIndex)!==g){var C,u;H={};M(Object.assign({},X,(H[t]={productId:l,pricingOptionIndex:g,pricingGroupAttributes:(u=(C=X[t])==null?void 0:C.pricingGroupAttributes)!=null?u:[]},H)))}}},
onPricingGroupSelected:function(t){var g=q().get(t);if(g){t=g.groupId;var l=g.productId,X=g.pricingGroup.pricingGroupAttributes,H=O(l);if(H){g=E();var I=g[t].pricingGroupAttributes,C;if(((C=g[t])==null?void 0:C.productId)!==l||!pq(PCC(I,uI(X)),X)){C=Array.from(X);for(X=uI(X);X<uI(I);X++){var u="",P=!1,F=Array.from(C);F.push(Qq(I,X));for(var J=_.h(H.pricingGroups),U=J.next();!U.done;U=J.next())if(U=U.value,pq(U.pricingGroupAttributes,F)){C.push(Qq(I,X));P=!0;break}else u===""&&uI(U.pricingGroupAttributes)===
F.length&&pq(PCC(U.pricingGroupAttributes,C.length),C)&&(u=Qq(U.pricingGroupAttributes,X));P||C.push(u)}u=g[t].pricingOptionIndex;X=[];P=new Map;F=0;H=_.h(IJ(H.pricingOptions));for(J=H.next();!J.done;J=H.next())U=_.h(J.value),J=U.next().value,U=U.next().value,pq(U.pricingGroupAttributes,C)&&X.push(J),pq(U.pricingGroupAttributes,I)&&P.set(J,F++);X.length===0?I=0:(I=P.get(u),I=I!==void 0&&I<X.length?X[I]:X[0]);H={};M(Object.assign({},g,(H[t]={productId:l,pricingOptionIndex:I,pricingGroupAttributes:C},
H)))}}}},
onClearGroupSelected:function(t){var g=E();g[t]&&(g=Object.fromEntries(Object.entries(g).filter(function(l){return _.h(l).next().value!==t})),M(g))}}};
IJ=function(G){return function r(){var Z,O,M,T,E;return _.N$(r,function(b){switch(b.nextAddress){case 1:_.Km(b,2),Z=0,O=_.h(G),M=O.next();case 4:if(M.done){b.jumpTo(2);break}T=M.value;E=_.Lx;return b.yield([Z++,T],7);case 7:E(b.yieldResult);M=O.next();b.jumpTo(4);break;case 2:_.Xa(b),_.fm(b,0)}})}()};
xxW=function(G,e){G=_.h(IJ(G));for(var r=G.next();!r.done;r=G.next()){var Z=_.h(r.value);r=Z.next().value;Z=Z.next().value;if(e(Z))return r}return-1};
uI=function(G){var e=0;for(G=G[Symbol.iterator]();!G.next().done;)++e;return e};
Qq=function(G,e){G=_.h(IJ(G));for(var r=G.next();!r.done;r=G.next()){var Z=_.h(r.value);r=Z.next().value;Z=Z.next().value;if(r===e)return Z}};
pq=function(G,e){if(!G&&!e)return!0;if(!G||!e)return!1;G=Array.from(G);e=Array.from(e);if(G.length!==e.length)return!1;for(var r=0;r<G.length;r++)if(G[r]!==e[r])return!1;return!0};
PCC=function(G,e){e=e===void 0?Infinity:e;var r=[];G=_.h(IJ(G));for(var Z=G.next();!Z.done;Z=G.next()){var O=_.h(Z.value);Z=O.next().value;O=O.next().value;if(Z>=e)break;Z>=0&&r.push(O)}return r};
Cq=function(G,e){var r,Z;return function(){for(var O=G.map(function(T){return T()}),M=0;M<O.length;M++)if(!r||O[M]!==r[M]){r=O;
Z=e.apply(null,_.mY(O));break}return Z}};
zsl=function(G,e,r){var Z=[];G=_.h(G);for(var O=G.next();!O.done;O=G.next()){O=O.value;var M=void 0;((M=e)==null?0:M.length)&&!pq(O.pricingGroupAttributes,e)||Z.push({pricingOption:O,isSelected:r.includes(O.pricingOptionId)})}return Z};
WuY=function(G,e){return _.e6(G.entities,"pdpStateEntity",e)};
NeC=function(G){var e,r;return!!(G.productId&&G.groupId&&((e=G.pricingOptions)==null?0:e.length)&&G.pricingOptions.every(function(Z){return Z.pricingOptionId})&&((r=G.pricingGroups)==null||!r.length||Array.isArray(G.pricingGroups)&&G.pricingGroups.every(function(Z){return Z.pricingGroupId&&Z.pricingGroupAttributes&&Z.pricingGroupAttributes.length>0})))};
Lul=function(G,e,r){return UxW(G,Cq([e],function(Z){return Z.filter(NeC)}),r)};
GUl=function(G,e){return e.length===0?[G]:[G.slice(0,e[0]),G.slice(e[0])].filter(function(r){return r.length>0})};
eZd=function(G){switch(G){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""}};
ZtY=function(G,e,r,Z){Z=Object.assign({},Z);_.g2(Z,rPo,{selectedOptionId:G,primaryButtonOverride:r});_.uD().dispatch(_.bt("flowStateEntity",e,Z))};
OtB=function(G,e,r){!_.a(r,rPo)&&G.noPreselect&&e!==""&&G.defaultButtonOverride&&ZtY("default",e,G.defaultButtonOverride,r)};
MCA=function(G){switch(G){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"}};
VCC=function(G){switch(G){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"}};
hZW=function(G,e){if(e)return"ytCardViewModelCardSelected";switch(G){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
TEC=function(G,e){e.includes(G)?e=e.filter(function(r){return r!==G}):e.push(G);
return[].concat(_.mY(e))};
DNl=function(G,e){return _.e6(G.entities,"contextNoteFeedEntityPayload",e)};
Eud=function(G,e){switch(G){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}};
itH=function(G,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:G.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:G.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:G.deleteDialogTitle}]},dialogMessages:[{runs:[{text:G.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:G.deleteActionText}]},command:{performCommentActionEndpoint:{action:e}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:G.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
bt8=function(G,e,r){var Z;if(G&&((Z=e())==null?0:Z.includes(G))){var O;r((O=e())==null?void 0:O.filter(function(M){return M!==G}))}else r([].concat(_.mY(e()||[]),[G]))};
wUm=function(G,e){if(G){var r=[];e=_.h((e==null?void 0:e.checkboxes)||[]);for(var Z=e.next();!Z.done;Z=e.next()){Z=_.a(Z.value,vum);var O=void 0;((O=Z)==null?0:O.value)&&G.includes(Z.key||"")&&r.push(Z.value)}return r}};
$NW=function(G){G.style.height="auto";G.style.height=G.scrollHeight+"px"};
S0V=function(G){return[G.syncStep,G.asyncStep].filter(function(e){return e!==void 0})};
tCo=function(G){var e,r,Z;if(G=(e=G.structuredContextNoteFormSchema)==null?void 0:(r=e.fieldSchemas)==null?void 0:(Z=r.noteBody)==null?void 0:Z.validationSchema)for(e=_.h(S0V(G)),r=e.next();!r.done;r=e.next()){r=r.value.rules;if(!r)break;r=_.h(r);for(r=r.next();!r.done;r=r.next())return _.a(r.value,_.q0A)}};
lEA=function(G){if(G){G=_.h(S0V(G));for(var e=G.next();!e.done;e=G.next()){e=e.value.rules;if(!e)break;e=_.h(e);for(e=e.next();!e.done;e=e.next())return _.a(e.value,gu8)}}};
jdH=function(G){if(G){G=_.h(S0V(G));for(var e=G.next();!e.done;e=G.next()){e=e.value.rules;if(!e)break;e=_.h(e);for(e=e.next();!e.done;e=e.next())return _.a(e.value,RZo)}}};
aEV=function(G){G=/^https?:\/\//.test(G)?G:"http://"+G;try{var e=_.LB(G)}catch(r){return!1}if(e.toString()!==G)return!1;G=e.JSC$10041_domain_.split(".");return G.length>1&&G.every(function(r){return!!r})};
XU8=function(G,e,r,Z){var O;Z=(O=Z.structuredContextNoteData)==null?void 0:O.createCommentEndpoint;if(O=_.a(Z,_.ltC))return O.commentText=_.nQ(G),O.videoPositionMention=e,O.sources=r,Z};
KMV=function(G){return G==null?void 0:G.stringValue};
kU2=function(G,e,r){G=G.map(function(Z,O){return{listItemViewModel:{title:Z.title,subtitle:Z.subtitle,leadingImage:Z.leadingImage,trailingImage:O===e?fE8:void 0,rendererContext:{commandContext:{onTap:Z.onTap}}}}});
return Object.assign({},r&&{header:{panelHeaderViewModel:{title:r}}},{content:{listViewModel:{listItems:G}}})};
Hta=function(G,e){if(G&&e)switch(e){case "SELECTION_TYPE_BOOL":return G.boolValue;case "SELECTION_TYPE_INT":return G.intValue;case "SELECTION_TYPE_STRING":return G.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return G.privacyStatusValue}};
dNo=function(G){var e;G=(e=G.options)==null?void 0:e.findIndex(function(r){return r.isSelected});
return G===void 0?-1:G};
ouC=function(G,e,r){var Z=function(){return G().label},O={},M=_.LC("ytDropdownViewModelLabel",(O.ytDropdownViewModelLabelError=e,O));
return _.v(_.S,{cond:function(){return G().label&&!(r()===-1&&G().label&&!G().placeholderText)},
then:function(){return _.v("div",{class:M},_.v(_.Wh,{text:Z}))}})};
sd2=function(G,e){var r={};r=_.LC("ytDropdownViewModelTitle",(r.ytDropdownViewModelTitlePlaceholder=function(){return e()===-1},r));
return _.v("div",{class:r},_.v(_.Wh,{text:function(){var Z=G();var O=e();if(O===-1)Z=Z.placeholderText?Z.placeholderText:Z.label;else{var M,T;Z=(M=Z.options)==null?void 0:(T=M[O])==null?void 0:T.title}return Z}}))};
Qd8=function(G,e){var r=function(){return G().hint};
return _.v(_.$Z,null,_.v(_.S,{cond:function(){return r()&&!e()},
then:function(){return _.v("div",{class:_.LC("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.v(_.Wh,{text:r,className:"ytDropdownViewModelSupportText"}))}}),_.v(_.S,{cond:e,
then:function(){return _.v("div",{id:"dropdown-view-model-error",role:"alert",class:_.LC("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.v(_.V$,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.v(_.Wh,{text:e,className:"ytDropdownViewModelSupportText"}))}}))};
IEm=function(G,e){var r=_.v_().resolve(_.Mz2);_.yY(function(){var Z=G().id;Z&&r!=null&&r.dropdownMap.set(Z,e)})};
CY2=function(G){G=_.a(G.scheduleButton,pUW);G=_.a(G==null?void 0:G.primaryButton,_.G$);G=_.a(G==null?void 0:G.onTap,_.ag);var e,r,Z=((r=_.a(G,_.LO))==null?void 0:r.commands)||[G];r=_.h(Z);for(G=r.next();!G.done&&!(e=_.a(G.value,_.gBj));G=r.next());var O;e=(O=e)==null?void 0:O.createBroadcastRequest;if(!e)throw Error("ek");return e};
cPA=function(G,e,r){r=r===void 0?{}:r;var Z,O;return _.D(function(M){if(Z=upC(e))return M.return(Z);(O=nul(G,e,r))&&mNW(e,O);return M.return(O)})};
mNW=function(G,e){var r=Y0a(G);r&&e.then(function(Z){_.v_().resolve(_.g9).put(r,new _.lB({innertubeResponse:Z}))})};
upC=function(G){if(G=Y0a(G)){var e=_.v_().resolve(_.g9);if(e.has(G))return e.get(G).then(function(r){return r==null?void 0:_.AZ(r)})}return null};
Y0a=function(G){var e=_.a(G.endpoint,_.u4);if(e!=null&&e.videoId)return e={videoId:e.videoId},_.R("web_imp_player_mute_params")&&(e.mutedAtStart=G.startPlaybackInMutedState),_.CO("inline_playback",e)};
nul=function(G,e,r){G=_.p1(G,e.endpoint,yPW(e,r)).then(function(Z){return Z});
return Promise.resolve(G)};
yPW=function(G,e){e=_.R("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!G.startPlaybackInMutedState},e):Object.assign({},{vis:5,autonav:"1"},e);var r;e={contentPlaybackContext:_.B4(e,(r=_.a(G.endpoint.commandMetadata,_.rJ))==null?void 0:r.url,window.location.href)};_.R("web_imp_player_mute_params")&&(e.overrideMutedAtStart=!G.startPlaybackInMutedState);return e};
BEA=function(G,e){var r=window.MutationObserver;r&&(nq=new r(function(Z,O){Z=_.h(Z);for(var M=Z.next();!M.done;M=Z.next()){M=M.value;var T;if(T=M.type==="childList"&&M.target)a:{T=G;M=APC(M.target);T=APC(T);for(var E=null,b=0;b<M.length;b++)if(T.includes(M[b])){if(b===0){T=!1;break a}E=M[b];break}E?(M=FMV(M,E),T=FMV(T,E),T=M<T):T=!1}if(T){e();O.disconnect();break}}}),(r=JPm())&&nq.observe(r,{childList:!0,
subtree:!0}))};
JPm=function(){var G=document.getElementsByTagName("ytd-rich-grid-renderer");if(G.length>0)return G[0];G=document.getElementsByTagName("ytd-section-list-renderer");return G.length>0?G[0]:null};
APC=function(G){for(var e=[];G;)e.push(G),G=G.parentElement;return e};
FMV=function(G,e){var r=Array.from(e.children);e=G.indexOf(e);return e>0?r.indexOf(G[e-1]):-1};
mU=function(G,e,r){r=r===void 0?{}:r;return _.OK(G,r,e)};
xNd=function(G){switch(G){case "MUSIC":return!0;default:return!1}};
UNo=function(G){if(G=G==null?void 0:G.find(function(Z){var O,M;return((O=_.a(Z,PYa))==null?void 0:(M=O.inlinePlaybackBadgeData)==null?void 0:M.replicateAsTimestamp)===!0}))if(G=_.a(G,PYa),G==null?0:G.icon){var e,r;
if((G=(e=_.hSq(G.icon))==null?void 0:(r=e.clientResource)==null?void 0:r.imageName)&&xNd(G))return G}};
zZW=function(G){return G==null?void 0:G.filter(function(e){return e.premiereTrailerBadgeRenderer})};
WMY=function(G){var e,r=G==null?void 0:(e=G.find(function(b){return b.thumbnailOverlayTimeStatusRenderer}))==null?void 0:e.thumbnailOverlayTimeStatusRenderer,Z,O;
if((r==null?0:(Z=r.icon)==null?0:Z.iconType)&&xNd(r==null?void 0:(O=r.icon)==null?void 0:O.iconType)){var M;return{icon:r==null?void 0:(M=r.icon)==null?void 0:M.iconType}}var T;if(e=G==null?void 0:(T=G.find(function(b){return b.thumbnailOverlayBadgeViewModel}))==null?void 0:T.thumbnailOverlayBadgeViewModel)if(T=UNo(e.thumbnailBadges))return{icon:T};
var E;if(G=G==null?void 0:(E=G.find(function(b){return b.thumbnailBottomOverlayViewModel}))==null?void 0:E.thumbnailBottomOverlayViewModel)if(E=UNo(G.badges))return{icon:E};
return{}};
ZOl=function(G,e){var r=NEW,Z=_.h(_.XQ(LMV(new Gwa(function(){},r,e)),void 0,"PAnyd")),O=Z.next().value,M=Z.next().value,T=new Gwa(function(E){M(E)},r,e);
_.Y8(function(){Promise.resolve().then(function(){var E,b=(E=G())!=null?E:{};T.playerControlsData=b;_.R("player_controls_skip_double_signal_old")&&(T.lastSeenPlayerApi=_.Kp(b.playerApi));_.R("player_controls_skip_double_signal_old")||(T.lastSeenPlayerApi=_.Kp(b.playerApi));egl(T)});
_.yD(function(){rbB(T)})},"HikUP");
_.yD(function(){rbB(T)});
return function(){return O()}};
OOd=function(G){return function(e){var r=G(),Z={playerState:e};if(e===1){var O;(O=r.playerApi)==null||O.loadModule("captions")}if(e===0){var M;(M=r.playerApi)==null||M.unloadModule("captions")}e!==-1&&r.setState(Z)}};
MWV=function(G){return function(e){G().setState({playbackRate:e})}};
VWH=function(G){return function(e){var r=G(),Z=r.playerApi,O=Z==null?void 0:Z.getVideoData(),M=(O==null?void 0:O.isLive)||!1;O=O==null?void 0:O.video_id;M={videoDuration:dxB(Z||void 0),isLive:M,videoId:O};M.videoId!==r.videoId&&(M=Object.assign({},_.kLy(Z),M));if(e==null?0:e.playertype)M.playerType=e.playertype;if(Z){M.captionsAvailable=_.RJ(Z);e=M;var T;O=(T=Z.getStoryboardLevel(Z.getNumberOfStoryboardLevels()-1))==null?void 0:T.intervalMs;e.storyboardInterval=O?O/1E3:void 0;M.captionsAvailable&&
(M.captionsEnabled=_.Dx8(Z))}M.volumeMuted=!(Z==null||!Z.isMuted());r.setState(M)}};
hg8=function(G){return function(e){var r=G(),Z=r.playerApi;if(Z){var O=Z.getPresentingPlayerType();e={playedTime:e||0,percentLoaded:Z.getVideoLoadedFraction(),playerType:O};r.playerState===0&&(e.playedTime=r.videoDuration);r.isLive&&(O=Z.getProgressState(O),e.playedTime-=O.seekableStart,e.videoDuration=dxB(Z));if(r.playerType===1)Z=!1;else{var M;if((M=r.uxConfig)==null?0:M.showCuedOverlay){var T;Z=!((T=r.playerApi)==null?0:T.getPlayerStateObject(r.playerType).isDomPaused)}else Z=!0}Z&&delete e.playedTime;
r.setState(e)}}};
To2=function(G){return function(){var e=G(),r,Z,O,M={volume:(O=(r=e.playerApi)==null?void 0:r.getVolume())!=null?O:0,volumeMuted:!((Z=e.playerApi)==null||!Z.isMuted())};e.setState(M)}};
Dzl=function(G){return function(){var e=G(),r=e.playerApi;if(r){var Z={captionsAvailable:_.RJ(r)};Z.captionsAvailable&&(Z.captionsEnabled=_.Dx8(r));e.setState(Z)}}};
EyC=function(G){return{appApi:Object.assign({},_.lhs(),{showCaptionsToggleToast:function(e){var r,Z;(Z=(r=G()).showCaptionsToggleToast)==null||Z.call(r,e)},
openInMiniplayer:function(){var e,r;(r=(e=G()).openInMiniplayer)==null||r.call(e)}})}};
iOl=function(G,e){var r,Z,O;return!!(G==null?0:(r=G.playerResponse)==null?0:(Z=r.playerConfig)==null?0:(O=Z.inlinePlaybackConfig)==null?0:O.showScrubbingControls)&&!(e==null?0:e.hideScrubbingControls)};
_.bO8=function(G){var e=!G.miniplayerIsActive;return[5,2,0].includes(G.miniplayerPlaybackState)||e};
vym={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};wiC=function(G){this.onStepChangeCallback=function(){};
this.flowRenderer=G};
wiC.prototype.getCurrentStep=function(){var G=this,e;return((e=this.flowRenderer.steps)!=null?e:[]).map(function(r){return _.a(r,_.p6)}).find(function(r){return r&&r.stepId===G.currentStepId})};
$zC=function(G,e){var r=e.flowStateEntityKey,Z=G.flowStates.get(r);if(Z)return Z;e=new wiC(e);G.flowStates.set(r,e);return e};
SWo=function(G,e){for(var r=_.h(G.flowStates.entries()),Z=r.next();!Z.done;Z=r.next()){var O=_.h(Z.value);Z=O.next().value;O=O.next().value;if(O.flowRenderer.targetId===e){G.flowStates.delete(Z);break}}};
qWa=function(G,e){G.onStepChangeCallback=e;G.onStepChangeCallback(G.getCurrentStep())};
tWV=function(G,e){var r=G.getCurrentStep();if(!r||r.stepId!==e){var Z;((Z=G.flowRenderer.steps)!=null?Z:[]).map(function(O){return _.a(O,_.p6)}).find(function(O){return O&&O.stepId===e})&&(G.currentStepId=e,G.onStepChangeCallback(G.getCurrentStep()))}};
gyl=function(G,e){var r,Z,O,M,T;_.D(function(E){if(!e.length)return E.return([]);r=[];Z=_.h(e);for(O=Z.next();!O.done;O=Z.next())M=O.value,(T=G.resolveIcon(M))&&!G.iconCache[T.url]&&r.push(_.Oz2(G,T).then(function(){}).catch(function(){}));
return E.return(Promise.all(r))})};
lzA=function(G,e){var r=[];e=(new Set(e)).values();e=_.h(e);for(var Z=e.next();!Z.done;Z=e.next()){Z=Z.value;for(var O=_.h(Object.values(vym)),M=O.next();!M.done;M=O.next())r.push({iconName:Z,iconStyle:M.value})}gyl(G.iconManager,r)};
_.Rga=function(G,e,r){var Z=r!=null?r:G.iconsToFetch;Z!=null&&Z.length?e!==void 0&&e>=0?_.IQ(_.A0,function(){lzA(G,Z)},e):lzA(G,Z):Promise.resolve()};
_.jp2=_.iz(function(G,e,r){if(G.nextWireType_!==5)return!1;_.bz(e,r,_.dU(G.decoder_));return!0},function(G,e,r){e=_.REi(e);
e!=null&&(_.vw(G,r,5),_.wz(G.encoder_,e))},_.L3y);
az8=[0,_.p2,_.jp2,-1];_.Xi2=function(){return _.UK({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
Gwa=function(G,e,r){var Z=this;this.renderFn=G;this.listeners=e;this.context=r;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var O;this.lastSeenPlayerApi=_.Kp((O=this.playerControlsData)==null?void 0:O.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.kLy(),void 0);_.R("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){LMV(Z).setState({playerState:-1});Z.resetRecentlyNavigatedJobId&&_.A0.cancelJob(Z.resetRecentlyNavigatedJobId);
Z.recentlyNavigated=!0;Z.resetRecentlyNavigatedJobId=_.A0.addJob(function(){Z.recentlyNavigated=!1},8,1E4)})};
Gwa.prototype.setState=function(G){if(!_.R("mweb_player_skip_no_op_state_changes")||!os2(G,this.state))if(this.state=Object.assign({},this.state,G),!_.R("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)G=-1,_.R("player_controls_log_creation_killswitch")||s5a()||(G=(0,_.vG)()),_.jq("pcu_s"),_.jq("pcu_se"),_.jq("pcu_rs"),this.renderFn(LMV(this)),_.jq("pcu_re"),Q5W(G),_.A0.addJob(function(){_.jq("pcu_ap")},8)};
var LMV=function(G){var e;var r=_.Kp((e=G.playerControlsData)==null?void 0:e.playerApi);return Object.assign({},G.state,{setState:G.boundSetState,domMeasurements:{progressBarLineRect:G.progressBarLineRect},playerApi:r,appApi:G.context.appApi,playerContainer:G.context.playerContainer,playerControlContainer:G.context.playerControlContainer,uxConfig:G.context.uxConfig})},egl=function(G){G.listeners.forEach(function(e){G.eventListenerCleanupFunctions.push(e.register(function(){return LMV(G)},function(){return G.getData()}))})},
rbB=function(G){G.eventListenerCleanupFunctions.forEach(function(e){e()});
G.eventListenerCleanupFunctions.length=0};
Gwa.prototype.getData=function(){return this.playerControlsData};var KH8=[0,_.Ui,_.n2,_.Ui,-1,_.n2,[0,_.mK,_.Yj,-1],_.Ui,-1];var fz8=[0,[1,2,3],_.FC,-2];var kwV=[0,_.Ui];var HOW=new _.L9("crowdsourcedContextUserRatingFormFlowState");var dz2=new _.L9("noteViewModel");var cq=new _.L9("abuseReportFlowState");var oyo=new _.L9("feedbackFormFlowState");var spa=new _.L9("inputBoxViewModel");_.q0A=new _.L9("lengthValidationRule");var gu8=new _.L9("regexValidationRule");var RZo=new _.L9("selectedValidationRule");var Qpa=[0,_.Yj,_.Ui,_.Gi];var IzA=[0,_.n2,-2,az8];var piY=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(piY,_.Tq);piY.prototype.getFeature=function(){return _.gU(this,6)};
piY.prototype.hasFeature=function(){return _.Xo(_.Va(this,6))!=null};var C4V=[0,_.Yj];var uRW=_.tt(piY,[0,_.n2,-2,az8,_.n2,_.Yj,-1,_.ug,-1,_.Yj,-3,_.taW,_.mK,IzA,_.Yj,-1,KH8,_.ug,_.Yj,Qpa,[0,[0,_.Yj,-2,2,_.Yj,-1,[0,_.Yj],[0,_.Ui,_.Yj],[0,_.Ui],[0,_.Yj],2,[0,_.Ui,2,[0,_.Ui,-1],[0,_.J3,fz8],1,[0,kwV],1,[0,_.Yj]],[0,_.mK],[0,[1,2],_.Bs,[0,_.Yj],_.Bs,[0,_.Yj,_.Ps,-1]],[0,_.Ui],[0,_.Yj,[0,[1,2,3,4],_.Bs,[0,[0,_.Yj],C4V],_.Bs,[0,[0,_.Yj],C4V],_.Bs,[0,C4V],_.Bs,[0,[0,_.Yj],C4V]]],[0,_.Yj],1,[0,_.Yj,_.Ui],1,[0,_.Yj],[0,_.mK],[0,_.Yj,_.Ui,-1,[0,_.Yj,-4]],[0,_.Yj],[0,_.Yj,-2],1,[0,_.Yj],[0,
_.mK],[0,_.mK],1,[0,_.mK],[0]],_.Yj,_.Ui,_.p2,1,_.xj,_.Yj,_.Ui],_.n2,_.xj,_.Ui,-1,_.n2]);var nyV=new _.L9("talkToRecsViewModel");var mzA=new _.L9("creatorGoalSetUpFlowDropdownItemViewModel");var cbY=new _.L9("creatorGoalSetUpFlowDropdownViewModel");var PYa=new _.L9("thumbnailBadgeViewModel");var YW8=new _.L9("checkboxGroupViewModel");var vum=new _.L9("checkboxItemViewModel");_.Yo=new _.L9("radioButtonGroupViewModel");var ybV=new _.L9("radioButtonItemViewModel");var pUW=new _.L9("panelFooterViewModel");var Ab8=new _.L9("ypcCancelRecurrenceCommand");var FHV=new _.L9("cancellationFlowState");var rPo=new _.L9("premiumPurchaseFlowState");var JbH=new _.L9("surveyAnswerCardRenderer");var Bod=new _.L9("showMoreButtonRenderer");var xzW;var P4m,UzH=function(){if(P4m!==void 0)return P4m;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;xzW===void 0&&(xzW=document.createElement("template"));var Z=xzW;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return P4m=G};var yq=function(){var G=_.m.apply(this,arguments)||this;G.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";G.goalDescription="";G.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";G.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";G.startButtonId="start-button";G.exampleButtonId="example-button";return G};
_.K(yq,_.m);_.V=yq.prototype;_.V.getGoalDropdownItems=function(){var G,e;return(e=_.a((G=this.data)==null?void 0:G.purchaseTargetDropdown,cbY))==null?void 0:e.dropdownItems};
_.V.getTimerDropdownItems=function(){var G,e;return(e=_.a((G=this.data)==null?void 0:G.timerDropdown,cbY))==null?void 0:e.dropdownItems};
_.V.getColorDropdownItems=function(){var G,e;return(e=_.a((G=this.data)==null?void 0:G.colorDropdown,cbY))==null?void 0:e.dropdownItems};
_.V.getDropdownItemText=function(G){var e;return(e=_.a(G,mzA))==null?void 0:e.itemLabel};
_.V.getDropdownItemValue=function(G){G=_.a(G,mzA);return(G==null?void 0:G.timeLimit)||(G==null?void 0:G.purchaseTarget)||(G==null?void 0:G.eligiblePurchaseType)};
_.V.updateFlowState=function(G){_.Pi(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:G}])};
_.V.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.V.updateGoalValue=function(G){this.goal=G.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.V.onTextValueChanged=function(G){this.goalDescription=G.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.V.updateTimerValue=function(G){this.timer=G.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.V.updateTierValue=function(G){this.tier=G.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.V.getButtonViewModel=function(G){G=(G==null?void 0:G.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var e,r=_.a((e=this.data)==null?void 0:e.startGoalButton,_.G$);return Object.assign({},r,{state:G})};
_.iY.Object.defineProperties(yq,{template:{configurable:!0,enumerable:!0,get:function(){return UzH()}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],yq.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],yq.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],yq.prototype,"goal",void 0);_.B([_.n(),_.x("design:type",Object)],yq.prototype,"goalDescription",void 0);_.B([_.n(),_.x("design:type",Object)],yq.prototype,"timer",void 0);_.B([_.n(),_.x("design:type",Object)],yq.prototype,"tier",void 0);
_.B([_.n(),_.x("design:type",Object)],yq.prototype,"startButtonId",void 0);_.B([_.n(),_.x("design:type",Object)],yq.prototype,"exampleButtonId",void 0);_.B([_.aR({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],yq);_.A(yq,"yt-creator-goal-set-up-flow-view-model",function(){return UzH()},{mode:0});var zgC;var WH8;var No8;var LHW=function(){return _.m.apply(this,arguments)||this};
_.K(LHW,_.m);_.B([_.n(),_.x("design:type",Object)],LHW.prototype,"data",void 0);_.B([_.aR({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],LHW);
_.A(LHW,"yt-survey-answer-card-renderer",function(){if(No8===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;WH8===void 0&&(WH8=document.createElement("template"));var Z=WH8;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);No8=G}G=No8;return G},{mode:2});var GnV;var eBd;var Az=function(){return _.m.apply(this,arguments)||this};
_.K(Az,_.m);_.V=Az.prototype;_.V.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.V.selectedItemChanged=function(G){_.Pi(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[G.feedbackToken||""]}])};
_.V.surveyAnswerCardRendererClicked=function(G){if(G.target&&_.a(G.model.item,JbH)){var e=G.target;G=_.a(G.model.item,JbH);G.onTapCommand?_.Wi(e,[G.onTapCommand],e):this.data.onTapCommand&&_.Wi(e,[this.data.onTapCommand],e);this.selectedItemChanged(G)}};
_.V.checkIsCancellationStyle=function(G){return G==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.V.updateSelectedItemFromBinding=function(G){this.selectedItem=G.detail.value};
Az.prototype.onSelectedItemChanged=Az.prototype.onSelectedItemChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Az.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Az.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],Az.prototype,"selectedItem",void 0);_.B([_.n({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Az.prototype,"isCancellationStyle",void 0);
_.B([_.Me("selectedItem"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Az.prototype,"onSelectedItemChanged",null);_.B([_.aR({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],Az);
_.A(Az,"yt-survey-flow-step-renderer",function(){if(eBd===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;GnV===void 0&&(GnV=document.createElement("template"));var Z=GnV;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);eBd=G}G=eBd;return G},{mode:2});var FB=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return G};
_.K(FB,_.m);FB.prototype.handleSurveyFlowStepOptionChanged=function(G){this.ytdReduxBehavior.dispatch(_.UK({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:G}));_.Pi(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:G}}])};
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],FB.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],FB.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],FB.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],FB);
_.A(FB,"ytd-survey-flow-step-renderer",function(){if(zgC!==void 0)return zgC;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return zgC=G},{mode:1});_.Mqm=_.y(function(G){var e=G.data;var r=G.hideDivider;var Z=G.isChannelInfoCard;G={};return _.v("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.v("div",{class:_.LC("yt-profile-identity-info-view-model__frame",(G["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!e().channelBanner},G))},_.v(ry8,{profileIdentityInfoData:e}),_.v("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.v("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.v(_.E2,{data:function(){return e().avatar}},{avatarViewModel:_.yy})),_.v(Z_8,{profileIdentityInfoData:e})),_.v(_.S,{cond:function(){return e().channelDescription},
then:function(O){var M={};return _.v("div",{class:_.LC((M["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(Z==null||!Z())},M["yt-profile-identity-info-view-model__channel-description"]=function(){return!(Z==null?0:Z())},M))},O)}}),_.v(O_W,{profileIdentityInfoData:e}),_.v(_.S,{cond:function(){return!(r==null?0:r())},
then:function(){return _.v("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"lh");
_.Mqm.idomCompat=!0;var O_W=_.y(function(G){var e=G.profileIdentityInfoData;return _.v("div",{class:"yt-profile-identity-info-view-model__buttons"},_.v(_.u6,{each:function(){return e().subscribeButton?[e().subscribeButton,e().channelAccess]:[e().channelAccess]}},function(r){return _.v("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.v("div",{class:"yt-profile-identity-info-view-model--button"},_.v(_.E2,{data:function(){return r}},{buttonViewModel:_.wF,
subscribeButtonViewModel:_.ym})))}))},"mh"),Z_8=_.y(function(G){var e=G.profileIdentityInfoData;
return _.v("div",{class:"yt-profile-identity-info-view-model__trio"},_.v("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.v(Vqm,{profileIdentityInfoData:e}),_.v(_.E2,{data:function(){return e().threeDotMenu}},{buttonViewModel:_.wF})),_.v(hB8,{profileIdentityInfoData:e}))},"nh"),Vqm=_.y(function(G){var e=G.profileIdentityInfoData;
return _.v("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.v("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return e().channelDisplayName}),_.v(_.S,{cond:function(){return e().verifiedOrOacBadge},
then:function(r){return _.v("div",{class:"yt-profile-identity-info-view-model__badge"},_.v(_.nC,{data:function(){return{thumbnails:[{url:r().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"oh"),ry8=_.y(function(G){var e=G.profileIdentityInfoData;
return _.v("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.v(_.E2,{data:function(){var r=e().channelBanner;if(r)return{imageBannerViewModel:{image:r.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(r){return _.v("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.v(_.ND,{data:r.data,
isPositionRelative:!0}))}}))},"ph"),hB8=_.y(function(G){var e=G.profileIdentityInfoData;
return _.v("div",{class:"yt-profile-identity-info-view-model__metadata"},_.v("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.v("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return e().channelHandle}),_.v(_.S,{cond:function(){return e().channelPronouns&&e().channelHandle},
then:function(){return _.v("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.v("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return e().channelPronouns})),_.v("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.v("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return e().leftOfBulletInfo}),_.v(_.S,{cond:function(){return e().leftOfBulletInfo&&e().rightOfBulletInfo},
then:function(){return _.v("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.v("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return e().rightOfBulletInfo})))},"qh");var TJA;var Jz=function(){return _.m.apply(this,arguments)||this};
_.K(Jz,_.m);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Jz.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Jz.prototype,"data",void 0);_.B([_.c({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],Jz);
_.A(Jz,"ytd-channel-history-renderer",function(){if(TJA!==void 0)return TJA;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return TJA=G},{mode:1});var Dnm;var EJm=function(){return _.m.apply(this,arguments)||this};
_.K(EJm,_.m);_.B([_.n(),_.x("design:type",Object)],EJm.prototype,"data",void 0);_.B([_.c({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],EJm);
_.A(EJm,"ytd-feature-enablement-info-renderer",function(){if(Dnm!==void 0)return Dnm;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Dnm=G},{mode:1});var i_A;var b_8;var Bq=function(){var G=_.m.apply(this,arguments)||this;G.textBoxMaxLength=_.R("enable_tvod_campaign_code_integration")?15:12;return G};
_.K(Bq,_.m);_.V=Bq.prototype;_.V.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.V.onSubmit=function(){var G=this.data.serviceEndpoint,e=_.a(G,_.CW);e&&G&&(e.couponCode=this.userInput,_.v_().resolve(_.$1).resolveCommand(G,{form:{element:this.hostElement}}))};
_.V.validate=function(){var G=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=G&&!this.data.errorMessage;this.showErrorMessage=G&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.R("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.V.computeStyle=function(G){return G};
_.V.computeShowValidationBelowInput=function(G){return G!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.V.updateUserInputFromBinding=function(G){this.userInput=G.currentTarget.value};
_.V.updateShowErrorMessageFromBinding=function(G){this.showErrorMessage=G.detail.value};
_.iY.Object.defineProperties(Bq.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
Bq.prototype.dataChanged=Bq.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Bq.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Bq.prototype,"data",void 0);_.B([_.n(),_.x("design:type",String)],Bq.prototype,"userInput",void 0);_.B([_.n(),_.x("design:type",Boolean)],Bq.prototype,"disableApplyButton",void 0);_.B([_.n(),_.x("design:type",Boolean)],Bq.prototype,"hideApplyButton",void 0);
_.B([_.n(),_.x("design:type",Boolean)],Bq.prototype,"hideErrorMessage",void 0);_.B([_.n(),_.x("design:type",Boolean)],Bq.prototype,"showTick",void 0);_.B([_.n(),_.x("design:type",Boolean)],Bq.prototype,"showErrorMessage",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],Bq.prototype,"couponStyle",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.x("design:type",Boolean)],Bq.prototype,"showValidationBelowInput",void 0);_.B([_.n(),_.x("design:type",Object)],Bq.prototype,"textBoxMaxLength",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bq.prototype,"dataChanged",null);
_.B([_.d("showTick","showErrorMessage","userInput"),_.x("design:type",String),_.x("design:paramtypes",[])],Bq.prototype,"validationState",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],Bq);
_.A(Bq,"ytd-ypc-coupon-renderer",function(){if(b_8!==void 0)return b_8;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return b_8=G},{mode:1});var xo=function(){return _.m.apply(this,arguments)||this};
_.K(xo,_.m);xo.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"}}}};
xo.prototype.computeStyle=function(G){return G};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],xo.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],xo.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],xo.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],xo.prototype,"buttonStyle",void 0);_.B([_.c({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],xo);
_.A(xo,"ytd-flow-bottom-bar-renderer",function(){if(i_A!==void 0)return i_A;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return i_A=G},{mode:1});var vJ8;var wnC;var $nA;var Pq=function(){return _.m.apply(this,arguments)||this};
_.K(Pq,_.m);Pq.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Pq.prototype.focus=function(G){this.title&&_.Os(this.title,G)};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Pq.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Pq.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Pq.prototype,"data",void 0);_.B([_.hs("#title"),_.x("design:type",HTMLElement)],Pq.prototype,"title",void 0);_.B([_.c({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],Pq);
_.A(Pq,"ytd-flow-top-bar-renderer",function(){if($nA!==void 0)return $nA;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return $nA=G},{mode:1});var SK8;var qKV;var tqd;var Uc=function(){return _.m.apply(this,arguments)||this};
_.K(Uc,_.m);Uc.prototype.freeTextValueChanged=function(){_.Pi(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
Uc.prototype.updateFreeTextValueFromBinding=function(G){this.freeTextValue=G.detail.value};
_.iY.Object.defineProperties(Uc.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var G,e,r=(e=(G=this.data)==null?void 0:G.responseMaxLength)!=null?e:500,Z;return((Z=this.freeTextValue)!=null?Z:"").length>=r?"maxed-out":""}}});
Uc.prototype.freeTextValueChanged=Uc.prototype.freeTextValueChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Uc.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Uc.prototype,"data",void 0);_.B([_.n(),_.x("design:type",String)],Uc.prototype,"freeTextValue",void 0);_.B([_.hs("#user-input"),_.x("design:type",HTMLTextAreaElement)],Uc.prototype,"input",void 0);
_.B([_.d("freeTextValue"),_.x("design:type",Object),_.x("design:paramtypes",[])],Uc.prototype,"characterLimitClass",null);_.B([_.Me("freeTextValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Uc.prototype,"freeTextValueChanged",null);_.B([_.aR({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],Uc);
_.A(Uc,"yt-free-text-input-flow-step-renderer",function(){if(tqd===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;qKV===void 0&&(qKV=document.createElement("template"));var Z=qKV;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);tqd=G}G=tqd;return G},{mode:2});var zl=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return G};
_.K(zl,_.m);zl.prototype.handleFreeTextFlowStepInputChanged=function(G){_.Pi(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:G}}])};
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],zl.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],zl.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],zl.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],zl);
_.A(zl,"ytd-free-text-input-flow-step-renderer",function(){if(SK8!==void 0)return SK8;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return SK8=G},{mode:1});var gJl;var l_Y;var RBA=function(){return _.m.apply(this,arguments)||this};
_.K(RBA,_.m);_.B([_.n(),_.x("design:type",Object)],RBA.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],RBA);
_.A(RBA,"ytd-metadata-line-renderer",function(){if(l_Y!==void 0)return l_Y;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return l_Y=G},{mode:1});var Wq=function(){return _.m.apply(this,arguments)||this};
_.K(Wq,_.m);Wq.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Wq.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Wq.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Wq.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Wq.prototype,"isMasthead",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],Wq);
_.A(Wq,"ytd-media-product-renderer",function(){if(gJl!==void 0)return gJl;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return gJl=G},{mode:1});var jld;var Nd=function(){return _.m.apply(this,arguments)||this};
_.K(Nd,_.m);Nd.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
Nd.prototype.onBillboardImageLoaded=function(){_.xy(this.hostElement,"yt-refit")};
Nd.prototype.onBillboardImageLoaded=Nd.prototype.onBillboardImageLoaded;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Nd.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Nd.prototype,"data",void 0);_.B([_.hs("#billboardImage"),_.x("design:type",Object)],Nd.prototype,"billboardImage",void 0);_.B([_.Om("yt-img-shadow-loaded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Nd.prototype,"onBillboardImageLoaded",null);
_.B([_.c({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],Nd);
_.A(Nd,"ytd-billboard-masthead-renderer",function(){if(jld!==void 0)return jld;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return jld=G},{mode:1});var a_W;var Lq=function(){var G=_.m.apply(this,arguments)||this;G.smallSize=!1;return G};
_.K(Lq,_.m);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Lq.prototype,"ytComponentBehaviorType",void 0);_.B([_.n(),_.x("design:type",Object)],Lq.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Lq.prototype,"smallSize",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],Lq);
_.A(Lq,"ytd-bullet-formatted-string",function(){if(a_W!==void 0)return a_W;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return a_W=G},{mode:1});var Xn8;var G0=function(){return _.m.apply(this,arguments)||this};
_.K(G0,_.m);G0.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],G0.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],G0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],G0.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],G0);
_.A(G0,"ytd-offer-detail-renderer",function(){if(Xn8!==void 0)return Xn8;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Xn8=G},{mode:1});var KCl;var eo=function(){return _.m.apply(this,arguments)||this};
_.K(eo,_.m);eo.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"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],eo.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],eo.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],eo.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],eo);
_.A(eo,"ytd-offer-detail-step-renderer",function(){if(KCl!==void 0)return KCl;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return KCl=G},{mode:1});var f_H;var rI=function(){var G=_.m.apply(this,arguments)||this;G.isInOfferModule=!1;return G};
_.K(rI,_.m);_.V=rI.prototype;_.V.computeHasEndpoint=function(){var G;return!((G=this.data)==null||!G.onClickCommand)};
_.V.dataChanged=function(){var G;if((G=this.data)==null?0:G.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")};
_.V.detached=function(){var G;if((G=this.data)==null?0:G.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.V.handleClickEvent=function(){var G;if((G=this.data)==null?0:G.onClickCommand){var e;this.componentBehavior.resolveCommand((e=this.data)==null?void 0:e.onClickCommand)}};
_.V.onContentKeyDown=function(G){G.key==="Enter"?this.handleClickEvent(G):G.key===" "&&G.preventDefault()};
_.V.onContentKeyUp=function(G){G.key===" "&&this.handleClickEvent(G)};
rI.prototype.dataChanged=rI.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],rI.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],rI.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],rI.prototype,"data",void 0);_.B([_.n({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],rI.prototype,"hasEndpoint",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],rI.prototype,"isInOfferModule",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rI.prototype,"dataChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],rI);
_.A(rI,"ytd-channel-masthead-renderer",function(){if(f_H!==void 0)return f_H;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return f_H=G},{mode:1});var knW;var ZP=function(){var G=_.m.apply(this,arguments)||this;G.thumbnailObjectFit="CONTAIN";G.thumbnailObjectPosition="LEFT";G.isExpanded=!1;return G};
_.K(ZP,_.m);_.V=ZP.prototype;_.V.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.V.dataChanged=function(){this.resetStates()};
_.V.computeisTapOnOfferInfoContainerEnabled=function(){var G;return((G=this.data)==null?void 0:G.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.V.onExpandBtnClick=function(){var G,e=_.a((G=this.data)==null?void 0:G.showMoreButtonRenderer,Bod);e&&_.ke(_.h_(),e.trackingParams);this.isExpanded=!this.isExpanded};
_.V.onOfferInfoClick=function(G){this.isTapOnOfferInfoContainerEnabled&&(_.mO(_.na(G)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.c5(_.na(G)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.V.onBottomBarClick=function(){this.executeTapCommand()};
_.V.executeTapCommand=function(){var G,e=(G=this.data)==null?void 0:G.tapCommand;e&&this.ytComponentBehavior.resolveCommand(e)};
_.V.resetStates=function(){this.isExpanded=!1};
_.iY.Object.defineProperties(ZP.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var G=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),e,r,Z;return((e=this.data)==null?void 0:e.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&G&&!!((r=this.data)==null?0:(Z=r.benefits)==null?0:Z.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return((e=_.a((G=this.data)==null?void 0:G.showMoreButtonRenderer,Bod))==null?void 0:e.showMoreButtonTitle)||((r=this.data)==null?void 0:r.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return((e=_.a((G=this.data)==null?void 0:G.showMoreButtonRenderer,Bod))==null?void 0:e.showLessButtonTitle)||((r=this.data)==null?void 0:r.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var G;return(G=this.showLessButtonTitle)!=null?G:""}var e;return(e=this.showMoreButtonTitle)!=null?e:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return((G=this.data)==null?void 0:G.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((e=this.data)==null?0:e.footerTitle)||((r=this.data)==null?0:r.footerSubtitle))}}});
ZP.prototype.dataChanged=ZP.prototype.dataChanged;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],ZP.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ZP.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],ZP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",String)],ZP.prototype,"thumbnailObjectFit",void 0);
_.B([_.n(),_.x("design:type",String)],ZP.prototype,"thumbnailObjectPosition",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.x("design:type",Boolean)],ZP.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.B([_.n(),_.x("design:type",Object)],ZP.prototype,"isExpanded",void 0);_.B([_.n(),_.x("design:type",Object)],ZP.prototype,"data",void 0);_.B([_.n({computed:"computeIcon_(data.footerIcon)"}),_.x("design:type",String)],ZP.prototype,"icon",void 0);
_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ZP.prototype,"dataChanged",null);_.B([_.d("data.thumbnail"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ZP.prototype,"hasThumbnail",null);_.B([_.d("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ZP.prototype,"enableExpandButton",null);
_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ZP.prototype,"enableOfferContentIcon",null);_.B([_.d("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.x("design:type",Object),_.x("design:paramtypes",[])],ZP.prototype,"showMoreButtonTitle",null);_.B([_.d("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.x("design:type",Object),_.x("design:paramtypes",[])],ZP.prototype,"showLessButtonTitle",null);
_.B([_.d("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.x("design:type",String),_.x("design:paramtypes",[])],ZP.prototype,"expandedBtnText",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ZP.prototype,"enableBottomBar",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],ZP);
_.A(ZP,"ytd-offer-card-renderer",function(){if(knW!==void 0)return knW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return knW=G},{mode:1});var H_a;var O$=function(){return _.m.apply(this,arguments)||this};
_.K(O$,_.m);O$.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"}}}};
O$.prototype.onClick=function(G){if(!_.mO(G.composedPath()||[],this.hostElement,["A".toString()])){var e,r;if((G=(r=_.a((e=this.data)==null?void 0:e.actionButton,_.zM))==null?void 0:r.command)&&!this.ytComponentBehavior.resolveCommand(G)){var Z;(Z=_.h_())==null||Z.clickCommand(G);_.v_().resolve(_.$1).resolveCommand(G,{form:{element:this.hostElement}})}}};
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],O$.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],O$.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],O$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],O$.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],O$);
_.A(O$,"ytd-offer-content-renderer",function(){if(H_a!==void 0)return H_a;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return H_a=G},{mode:1});var dn8;var ME=function(){return _.m.apply(this,arguments)||this};
_.K(ME,_.m);ME.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.iY.Object.defineProperties(ME.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var G,e;return!((G=this.data)==null||!G.title)||!((e=this.data)==null||!e.description)}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ME.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],ME.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ME.prototype,"data",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ME.prototype,"hasHeaderData",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],ME);
_.A(ME,"ytd-offer-section-renderer",function(){if(dn8!==void 0)return dn8;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return dn8=G},{mode:1});var oJa;var VC=function(){return _.m.apply(this,arguments)||this};
_.K(VC,_.m);
VC.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"}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],VC.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],VC.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],VC.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],VC);
_.A(VC,"ytd-offer-selection-step-renderer",function(){if(oJa!==void 0)return oJa;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return oJa=G},{mode:1});var slC;var hr=function(){return _.m.apply(this,arguments)||this};
_.K(hr,_.m);hr.prototype.computeStyle=function(G){return G};
hr.prototype.computeImageWidth=function(G){return G==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.B([_.n({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.x("design:type",String)],hr.prototype,"containerStyle",void 0);_.B([_.n({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.x("design:type",String)],hr.prototype,"imageWidth",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],hr.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],hr.prototype,"data",void 0);
_.B([_.c({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],hr);
_.A(hr,"ytd-confirmation-masthead-renderer",function(){if(slC!==void 0)return slC;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return slC=G},{mode:1});var QlV;var T0=function(){return _.m.apply(this,arguments)||this};
_.K(T0,_.m);T0.prototype.computeStyle=function(G){return G};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],T0.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],T0.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.x("design:type",String)],T0.prototype,"containerStyle",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],T0);
_.A(T0,"ytd-purchase-complete-detail-renderer",function(){if(QlV!==void 0)return QlV;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return QlV=G},{mode:1});var I_V;var DP=function(){var G=_.m.apply(this,arguments)||this;G.scriptsAppended=!1;return G};
_.K(DP,_.m);DP.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"}}}};
DP.prototype.onDataChanged=function(){var G=this.get("data.gtmId");G&&(_.sZ(G,_.xZ("GL","")),this.setupConversionTracking())};
DP.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var G=document.createElement("noscript");G.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(G);this.scriptsAppended=!0}};
DP.prototype.onDataChanged=DP.prototype.onDataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],DP.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],DP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],DP.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],DP.prototype,"scriptsAppended",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],DP.prototype,"onDataChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],DP);
_.A(DP,"ytd-purchase-complete-step-renderer",function(){if(I_V!==void 0)return I_V;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return I_V=G},{mode:1});var pnH;var E$=function(){return _.m.apply(this,arguments)||this};
_.K(E$,_.m);E$.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],E$.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],E$.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],E$);
_.A(E$,"ytd-ypc-transaction-error-message-renderer",function(){if(pnH!==void 0)return pnH;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return pnH=G},{mode:1});var Cpm;var uJW;var ic=function(){var G=_.m.apply(this,arguments)||this;G.handlePhoneVerificationSuccess=function(e){if(G.isValidPhoneVerificationCompletionMessageEvent(e)){var r;((r=G.data)==null?0:r.nextStepCommand)&&G.ytComponentBehavior.resolveCommand(G.data.nextStepCommand)}};
return G};
_.K(ic,_.m);ic.prototype.isValidPhoneVerificationCompletionMessageEvent=function(G){if(G.data!=="yt-phone-verification-complete")return!1;G=_.TG(G.origin);return G!==null&&G.includes("youtube.com")};
ic.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
ic.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],ic.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ic.prototype,"data",void 0);_.B([_.aR({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],ic);
_.A(ic,"yt-feature-enablement-soft-entry-renderer",function(){if(uJW===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;Cpm===void 0&&(Cpm=document.createElement("template"));var Z=Cpm;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);uJW=G}G=uJW;return G},{mode:1});var nJ2;var mno;var cyY;var YKW;var yyH=function(){return _.m.apply(this,arguments)||this};
_.K(yyH,_.m);_.B([_.n(),_.x("design:type",Object)],yyH.prototype,"data",void 0);_.B([_.aR({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],yyH);
_.A(yyH,"yt-benefits-item-renderer",function(){if(YKW===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;cyY===void 0&&(cyY=document.createElement("template"));var Z=cyY;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);YKW=G}G=YKW;return G},{mode:2});var AyY;var FCB;var bc=function(){return _.m.apply(this,arguments)||this};
_.K(bc,_.m);bc.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
bc.prototype.computeisWithoutPadding=function(){var G;return((G=this.data)==null?void 0:G.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],bc.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],bc.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.x("design:type",Boolean)],bc.prototype,"isWithoutPadding",void 0);_.B([_.aR({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],bc);
_.A(bc,"yt-benefits-section-renderer",function(){if(FCB===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;AyY===void 0&&(AyY=document.createElement("template"));var Z=AyY;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);FCB=G}G=FCB;return G},{mode:2});var v7=function(){return _.m.apply(this,arguments)||this};
_.K(v7,_.m);v7.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
v7.prototype.computeisUsingLargeWidth=function(){var G;return((G=this.data)==null?void 0:G.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],v7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],v7.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.x("design:type",Boolean)],v7.prototype,"isUsingLargeWidth",void 0);_.B([_.aR({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],v7);
_.A(v7,"yt-benefits-flow-step-renderer",function(){if(mno===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;nJ2===void 0&&(nJ2=document.createElement("template"));var Z=nJ2;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);mno=G}G=mno;return G},{mode:2});var JyB;var BJd;var wI=function(){return _.m.apply(this,arguments)||this};
_.K(wI,_.m);wI.prototype.checkIsUsingLargeWidth=function(){var G;return((G=this.data)==null?void 0:G.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.B([_.n(),_.x("design:type",Object)],wI.prototype,"data",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],wI.prototype,"ytRendererBehavior",void 0);_.B([_.n({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.x("design:type",Boolean)],wI.prototype,"isUsingLargeWidth",void 0);_.B([_.aR({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],wI);
_.A(wI,"yt-confirmation-flow-step-renderer",function(){if(BJd===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;JyB===void 0&&(JyB=document.createElement("template"));var Z=JyB;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);BJd=G}G=BJd;return G},{mode:2});var xnW;var Ppl;var Uno=function(){return _.m.apply(this,arguments)||this};
_.K(Uno,_.m);_.B([_.n(),_.x("design:type",Object)],Uno.prototype,"data",void 0);_.B([_.aR({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],Uno);
_.A(Uno,"yt-info-flow-step-renderer",function(){if(Ppl===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;xnW===void 0&&(xnW=document.createElement("template"));var Z=xnW;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Ppl=G}G=Ppl;return G},{mode:2});var zBd;var WCl;var NJ2=function(){return _.m.apply(this,arguments)||this};
_.K(NJ2,_.m);_.B([_.n(),_.x("design:type",Object)],NJ2.prototype,"data",void 0);_.B([_.aR({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],NJ2);
_.A(NJ2,"yt-info-list-flow-step-renderer",function(){if(WCl===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;zBd===void 0&&(zBd=document.createElement("template"));var Z=zBd;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);WCl=G}G=WCl;return G},{mode:2});var LCV=_.y(function(G){var e=G.data;return _.v("styled-text-view-model",{class:_.LC("ytStyledTextViewModelHost",function(){return Be8(e().fontAttributes)},function(){return JTH(e().color)})},_.v(_.Wh,{text:function(){return e().text},
ariaLabel:function(){var r,Z,O;return(O=(r=e().accessibility)==null?void 0:(Z=r.accessibilityData)==null?void 0:Z.label)!=null?O:""}}))},"rh");
LCV.idomCompat=!0;var GF8=_.y(function(G){var e=function(){var O,M,T,E;return(E=(T=(O=G.alt)==null?void 0:O.call(G))!=null?T:(M=G.data().accessibilityData)==null?void 0:M.label)!=null?E:""},r=function(){return G.data().imageWidth},Z=function(){return G.data().imageHeight};
return _.v("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.v(_.S,{cond:function(){var O=G.data();if(O){var M,T,E;var b=((M=_.v_().resolve(_.bq(_.Ig)))==null?0:M())?(T=O.imageDark)!=null?T:O.imageLight:(E=O.imageLight)!=null?E:O.imageDark}else b=void 0;return b},
then:function(O){return _.v(_.nC,Object.assign({},G,{data:O,alt:e,targetWidth:r,targetHeight:Z,preserveHeight:!0,preserveWidth:!0}))}}))},"sh");
GF8.idomCompat=!0;var $l=_.y(function(G){var e=G.data;G=_.mr(function(){return e().slots},[]);
var r=_.mr(function(){return e().layoutProperties},{}),Z=_.v_().resolve(_.CC);
return _.v("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:cTC(r,Z)},_.v(_.u6,{each:G,keyBy:"INDEX"},function(O){return _.v("div",{class:"ytContainerLayoutViewModelSlot",style:cTC(function(){return O().layoutProperties},Z)},_.v(_.E2,{data:function(){return O().contents}},{containerLayoutViewModel:$l,
badgeViewModel:_.vH,buttonViewModel:_.wF,styledTextViewModel:LCV,contentPreviewImageViewModel:function(M){return _.v(_.wZ,{data:M.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(M){return _.v(GF8,{data:M.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"th");
$l.idomCompat=!0;var eTo=_.y(function(G){var e=G.data;var r=G.stateFns;var Z=function(){var w=e(),q=w.productId;return!(!w.clearGroupId&&!q)},O=function(){var w=e(),q=w.clearGroupId;
return(w=w.productId)?r().isProductSelected(w):q?r().getSelectedProductByGroupId(q)==null:!1},M=function(w){var q=e(),t=q.clearGroupId;
if(q=q.productId)r().onProductSelected(q),w==null||w.forEach(function(g){_.HQ(g)});
else if(t)r().onClearGroupSelected(t)},T=function(){var w=e(),q=w.clearGroupId;
if(w=w.productId){var t;return"group:"+(((t=r().getProductById(w))==null?void 0:t.groupId)||"")}return q?"group:"+q:""},E=_.mr(function(){return e().header},[]),b=_.mr(function(){return e().body},[]);
return _.v("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.v(_.S,{cond:function(){return E().length>0||Z()},
then:function(){return _.v("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.v("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.v(_.E2,{data:E},{containerLayoutViewModel:function(w){return _.v("div",{class:"ytPdpCardSectionViewModelContentItem"},_.v($l,{data:w.data}))},
styledTextViewModel:function(w){return _.v("div",{class:"ytPdpCardSectionViewModelContentItem"},_.v(LCV,{data:w.data}))}})),_.v(_.S,{cond:Z,
then:function(){return _.v("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.v(_.BP,{checked:O,name:T,onChange:function(){M(e().onSelect)}}))}}))}}),_.v(_.S,{cond:function(){return b().length>0},
then:function(){return _.v("div",null,_.v(_.E2,{data:b},{containerLayoutViewModel:function(w){return _.v("div",{class:"ytPdpCardSectionViewModelContentItem"},_.v($l,{data:w.data}))}}))}}))},"uh");
eTo.idomCompat=!0;var rhm=_.y(function(G){var e=G.data;var r=G.stateFns;return _.v("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.v(_.S,{cond:function(){return e().banner},
then:function(Z){return _.v("div",{class:"ytPdpCardViewModelBanner"},_.v(_.Wh,{text:Z}))}}),_.v(_.E2,{data:function(){return e().sections}},{pdpCardSectionViewModel:function(Z){Z=Z.data;
var O={};return _.v("div",{class:_.LC("ytPdpCardViewModelSectionContainer",(O.ytPdpCardViewModelShowDividers=function(){return e().showDividers},O))},_.v(eTo,{data:Z,
stateFns:r}))}}))},"vh");
rhm.idomCompat=!0;var ZQd=_.y(function(G){var e=G.data;var r=G.isOverlay;G={};return _.v("pdp-masthead-view-model",{class:_.LC("ytPdpMastheadViewModelHost",(G.ytPdpMastheadViewModelIsOverlay=r,G))},_.v(_.E2,{data:function(){return e().image}},{contentPreviewImageViewModel:_.wZ,
themedImageViewModel:function(Z){return _.v(GF8,{data:Z.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.v(_.S,{cond:function(){return e().title},
then:function(Z){return _.v("h1",{class:"ytPdpMastheadViewModelHeading"},_.v(_.Wh,{text:Z,isOverlay:r}))}}),_.v(_.u6,{each:function(){var Z;
return(Z=e().finePrint)!=null?Z:[]}},function(Z){return _.v("div",{class:"ytPdpMastheadViewModelFinePrint"},_.v(_.Wh,{text:Z,
isOverlay:r}))}))},"wh");
ZQd.idomCompat=!0;var OQ8=_.y(function(G){var e=G.data;var r=G.stateFns;var Z=function(){return"pdp-pricing-group-selector-"+e().pricingGroupAttributeIds},O=_.mr(function(){return e().pricingGroupSelectorSectionHeader});
return _.v("pdp-pricing-group-selector-view-model",null,_.v(_.S,{cond:function(){return!!O()},
then:function(){return _.v(_.E2,{data:O},{sectionHeaderViewModel:function(M){M=M.data;var T={};return _.v("div",{class:_.LC("ytPdpPricingGroupSelectorViewModelSectionHeader",(T.ytPdpPricingGroupSelectorViewModelFullBleed=!0,T.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,T))},_.v(_.XA,{data:M}))}})}}),_.v("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.v(_.u6,{each:function(){var M=r().getSelectedProductByGroupId(e().groupId);
if(!M)return _.AG(Error("Zj`"+e().groupId)),[];var T,E=(T=e().pricingGroupAttributeIds)!=null?T:[],b;if((b=M.pricingGroups)==null||!b.length||!E.length)return[];T=M.pricingGroups.filter(function(g){return E.length?g.pricingGroupAttributes.every(function(l){return E.includes(l)}):!1});
M=[];if(E.length>0){T=[].concat(_.mY(T));b=_.h(E);for(var w=b.next(),q={};!w.done;q={targetAttrId:void 0},w=b.next())q.targetAttrId=w.value,w=T.findIndex(function(g){return function(l){return l.pricingGroupAttributes.includes(g.targetAttrId)}}(q)),w!==-1&&(M.push(T[w]),T.splice(w,1))}var t=r().getSelectedPricingGroupAttributesByGroupId(e().groupId);
return M.map(function(g){var l=!1;t&&g.pricingGroupAttributes&&(l=pq(g.pricingGroupAttributes,t));return{pricingGroup:g,isSelected:l}})},
keyBy:function(M){return M.pricingGroup.pricingGroupId}},function(M){return _.v("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.v("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.v(_.E2,{data:function(){return M().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:$l})),_.v("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.v(_.BP,{checked:function(){return M().isSelected},
name:Z,onClick:function(){var T=M().pricingGroup;r().onPricingGroupSelected(T.pricingGroupId);if(T=_.X0(T.onSelectPricingGroup)){var E;(E=_.v_().resolve(_.$1))==null||E.resolveCommand(T)}}})))})))},"xh");
OQ8.idomCompat=!0;var M6a=_.y(function(G){var e=G.data;var r=G.stateFns;var Z=function(){var T=r().getSelectedPricingOptions().map(function(w){return w.pricingOptionId}),E=r().getSelectedProductByGroupId(e().groupId);
if(!E)return _.AG(Error("$j`"+e().groupId)),[];var b=r().getSelectedPricingGroupAttributesByGroupId(e().groupId);return zsl(E.pricingOptions,b,T)},O=_.mr(function(){return e().pricingOptionSelectorSectionHeader}),M=function(){return Z().length>1};
return _.v("pdp-pricing-option-selector-view-model",null,_.v(_.S,{cond:function(){return!!O()&&M()},
then:function(){return _.v(_.E2,{data:O},{sectionHeaderViewModel:function(T){T=T.data;var E={};return _.v("div",{class:_.LC("ytPdpPricingOptionSelectorViewModelSectionHeader",(E.ytPdpPricingOptionSelectorViewModelFullBleed=!0,E.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,E))},_.v(_.XA,{data:T}))}})}}),_.v(_.S,{cond:M,
then:function(){return _.v("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.v(_.u6,{each:Z,keyBy:"INDEX"},function(T){return _.v("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.v("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.v(_.E2,{data:function(){return T().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:$l})),_.v("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.v(_.BP,{checked:function(){return T().isSelected},
onClick:function(){r().onPricingOptionSelected(T().pricingOption.pricingOptionId);var E=T().pricingOption.onSelectPricingOption;if(E=_.X0(E)){var b;(b=_.v_().resolve(_.$1))==null||b.resolveCommand(E)}}})))}))}}))},"yh");
M6a.idomCompat=!0;var V6W=_.y(function(G){var e=G.data;var r=G.stateFns;return _.v("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.v(_.E2,{data:function(){var Z,O;return(O=(Z=r().getSelectedPricingOptions()[0])==null?void 0:Z.primaryButton)!=null?O:e().emptyStateButton}},{buttonViewModel:_.wF}))},"zh");
V6W.idomCompat=!0;var hT8=_.y(function(G){var e=G.stateFns;return _.v("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.v(_.E2,{data:function(){return e().getSelectedPricingOptions().flatMap(function(r){return r.summaryLines}).filter(function(r){return!!r})}},{containerLayoutViewModel:function(r){return _.v("div",{class:"ytPdpSummaryViewModelLineItem"},_.v($l,{data:r.data}))}}))},"Ah");
hT8.idomCompat=!0;var Tf8=_.y(function(G){function e(X){var H=T();_.nR(_.g7("pdpStateEntity",H,{key:H,selectedPricingOptions:X}))}
var r=G.data;var Z=G.internalScrolling;var O=G.stateFnsForTesting;var M=_.mr(function(){return r().allProducts},[]),T=_.mr(function(){return r().pdpStateEntityKey},""),E=_.hI(WuY,T),b=_.dw(function(){_.FQ(!0);
var X;return(X=O==null?void 0:O())!=null?X:Lul(E,M,e)},void 0,"Pzdsic"),w=_.mr(function(){return r().body},[]),q=_.mr(function(){return r().columnBreakHints},[]),t=function(){return r().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},g=function(){return t()||r().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},l=_.dw(function(){var X=_.d8(r().background),H;
if(X==null?0:(H=X.sources)==null?0:H.length){var I=I===void 0?!0:I;X=_.EKy(void 0,X.sources,void 0,I,I?1E3:void 0,I?void 0:1E3)}else X=null;return X},void 0,"RDPOae");
_.yY(function(){var X=r().onStartCommand;if(X&&(X=_.X0(X))){var H;(H=_.v_().resolve(_.$1))==null||H.resolveCommand(X)}});
G={};return _.v("pdp-view-model",{class:_.LC("ytPdpViewModelHost",(G.ytPdpViewModelHasBackground=function(){return g()||!!l()},G.ytPdpViewModelHasDarkBackground=g,G.ytPdpViewModelHasScrim=t,G.ytPdpViewModelInternalScrolling=Z,G)),
style:_.Mk({"--pdp-view-model-background":function(){return l()?"url("+l()+")":void 0}})},_.v("div",{class:"ytPdpViewModelColumnContainer"},_.v(_.u6,{each:function(){return GUl(w(),q())},
keyBy:"INDEX"},function(X){return _.v("div",{class:"ytPdpViewModelColumn"},_.v(_.E2,{data:X},{containerLayoutViewModel:function(H){return _.v(So,null,_.v($l,{data:H.data}))},
dividerViewModel:function(H){return _.v(So,{fullBleed:!0},_.v(_.W1S,{data:H.data}))},
pdpCardViewModel:function(H){return _.v(So,null,_.v(rhm,{data:H.data,stateFns:b}))},
pdpMastheadViewModel:function(H){return _.v(So,null,_.v(ZQd,{data:H.data,isOverlay:g}))},
pdpPricingGroupSelectorViewModel:function(H){return _.v(So,null,_.v(OQ8,{data:H.data,stateFns:b}))},
pdpPricingOptionSelectorViewModel:function(H){return _.v(So,null,_.v(M6a,{data:H.data,stateFns:b}))},
pdpPrimaryButtonViewModel:function(H){return _.v(So,null,_.v(V6W,{data:H.data,stateFns:b}))},
pdpSummaryViewModel:function(H){return _.v(So,null,_.v(hT8,{data:H.data,stateFns:b}))},
sectionHeaderViewModel:function(H){return _.v(So,{fullBleed:!0,noVerticalPadding:!0},_.v(_.XA,{data:H.data}))}}))})))},"Bh");
Tf8.idomCompat=!0;var So=_.y(function(G){var e={};return _.v("div",{class:_.LC("ytPdpViewModelItem",(e.ytPdpViewModelFullBleed=G.fullBleed,e.ytPdpViewModelNoVerticalPadding=G.noVerticalPadding,e))},G.children)},"Ch");_.J_(Tf8,"pdp-view-model",{props:{data:_.N6,stateFnsForTesting:_.yb,internalScrolling:_.yb}});var DrY=_.y(function(G){var e=G.data;var r=G.className;var Z=_.hI(_.un,function(){return e().flowStateEntityKey});
return _.v("ytm-premium-purchase-button-renderer",{class:_.LC("ytPremiumPurchaseButtonRendererHost",r)},_.v(_.E2,{data:function(){var O;return(O=_.a(Z(),rPo))==null?void 0:O.primaryButtonOverride}},{buttonRenderer:function(O){return _.v(_.Op,{data:O.data,
className:r})},
buttonViewModel:function(O){return _.v(_.wF,{data:O.data,className:r})}}))},"Dh");
DrY.idomCompat=!0;var EtW=_.y(function(G){var e=G.data;G=G.className;var r=function(){return eZd(e().style)},Z=_.LC("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",r),O=_.LC("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",r);
return _.v("yt-flow-bottom-bar-renderer",{class:_.LC("yt-flow-bottom-bar-renderer",G,r)},_.v(_.E2,{data:function(){return e().secondaryButton}},{buttonRenderer:function(M){return _.v(_.Op,{data:M.data,
className:O})},
buttonViewModel:function(M){return _.v(_.wF,{data:M.data,className:O})},
premiumPurchaseButtonRenderer:function(M){return _.v(DrY,{data:M.data,className:O})}}),_.v(_.E2,{data:function(){return e().primaryButton}},{buttonRenderer:function(M){return _.v(_.Op,{data:M.data,
className:Z})},
buttonViewModel:function(M){return _.v(_.wF,{data:M.data,className:Z})},
premiumPurchaseButtonRenderer:function(M){return _.v(DrY,{data:M.data,className:Z})}}))},"Eh");
EtW.idomCompat=!0;_.J_(EtW,"yt-flow-bottom-bar-renderer",{props:{data:_.N6,className:_.N6}});var iQC=_.y(function(G){var e=_.LC(G.className,"ytOfferSummaryRendererHost");return _.v("yt-offer-summary-renderer",{class:e},_.v("div",{class:"ytOfferSummaryRendererTextContainer"},_.v("div",{class:"ytOfferSummaryRendererEyebrowText"},_.v(_.Wh,{text:function(){return G.data().eyebrowText}})),_.v("div",{class:"ytOfferSummaryRendererTitle"},_.v(_.Wh,{text:function(){return G.data().title}})),_.v("div",{class:"ytOfferSummaryRendererSubtitle"},_.v(_.Wh,{text:function(){return G.data().subtitle}})),_.v("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.v(_.u6,{each:function(){var r;
return(r=G.data().featureListData)!=null?r:[]}},function(r){var Z;
return _.v("div",{class:"ytOfferSummaryRendererFeatureList"},_.v(_.V$,{icon:(Z=r.icon)==null?void 0:Z.iconType,active:function(){return r.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(r.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"}}}),_.v("div",{class:"ytOfferSummaryRendererFeatureListText"},_.v(_.Wh,{text:r.text,
className:function(){return r.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.v("div",{class:"ytOfferSummaryRendererDescription"},_.v(_.Wh,{text:function(){return G.data().description}}))))},"Fh");_.J_(_.y(function(G){var e={};e=_.LC("ytOfferSummaryFlowStepRendererHost",(e.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=G.shouldDisableHeaderTopMargin,e));return _.v("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:e},_.v("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.v("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.v(_.Wh,{text:function(){return G.data().header}})),_.v("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.v(_.Wh,{text:function(){return G.data().subtitle}}))),_.v("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.v(_.E2,{data:function(){return G.data().offerSummary}},{offerSummaryRenderer:function(r){return _.v(iQC,{data:r.data,
className:G.flowClassName})}})))},"Gh"),"yt-offer-summary-flow-step-renderer",{props:{data:_.yb,
flowClassName:_.yb,flowStateEntityKey:_.yb,shouldDisableHeaderTopMargin:_.yb}});var bQB=_.y(function(G){var e=G.data;var r=G.className;var Z=G.flowStateEntityKey;var O=G.selectionStepStyle;G=_.ev(function(b){var w=e(),q=Z==null?void 0:Z();b.target&&(b.stopPropagation(),b=q||"",q=_.un(_.uD().getState(),b),w=Object.assign({},q,{premiumPurchaseFlowState:{selectedOptionId:w.optionId,primaryButtonOverride:w.primaryButtonOverride}}),_.uD().dispatch(_.bt("flowStateEntity",b,w)));return!1});
var M=function(){return(Z==null?void 0:Z())||""},T=_.hI(_.un,M);
_.yY(function(){var b=e(),w=M(),q=T();b.defaultSelected&&w!==""&&b.primaryButtonOverride&&ZtY(b.optionId||"",w,b.primaryButtonOverride,q)});
var E={};return _.v("ytm-option-item-renderer",{"on:click":G,class:_.LC(r,"ytm-option-item-renderer",(E["ytm-option-item-renderer--lp2-style"]=function(){return(O==null?void 0:O())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},E))},_.v("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.v("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var b=e(),w=M(),q=T();q=_.a(q,rPo);return(q?(q==null?void 0:q.selectedOptionId)||"":b.defaultSelected&&w!==""?(b==null?void 0:b.optionId)||"":"")===e().optionId},
name:("input"+_.Qj(_.FA)).toString()})),_.v("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.v(_.E2,{data:function(){return e().titleBadge}},{badgeViewModel:function(b){return _.v(_.vH,{data:b.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.v(_.S,{cond:function(){return e().eyebrowText},
then:function(){return _.v("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.v(_.Wh,{text:function(){return e().eyebrowText}}))}}),_.v("div",{class:"ytm-option-item-renderer__option-item-title"},_.v(_.Wh,{text:function(){return e().title}})),_.v("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.v(_.Wh,{text:function(){return e().subtitle}})),_.v(_.S,{cond:function(){return e().featureListData},
then:function(){return _.v("div",{class:"ytm-option-item-renderer__feature-list-data"},_.v(_.u6,{each:function(){return e().featureListData||[]}},function(b){var w,q=(w=b.icon)==null?void 0:w.iconType;
a:switch(b.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":w="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":w="ytm-option-item-renderer__feature-list-icon-small";break a;default:w="ytm-option-item-renderer__feature-list-icon-default"}return _.v("div",{class:"ytm-option-item-renderer__feature-list"},_.v(_.V$,{icon:q,className:w,active:function(){return b.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.v("div",{class:"ytm-option-item-renderer__feature-list-text"},_.v(_.Wh,{text:b.text,
className:function(){return b.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.v("div",{class:"ytm-option-item-renderer__option-item-description"},_.v(_.Wh,{text:function(){return e().description}}))))},"Hh");var vt8=_.y(function(G){var e=G.data;var r=G.flowClassName;var Z=G.flowStateEntityKey;var O=G.selectionStepStyle;return _.v("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.v("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.v("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.v(_.Wh,{text:function(){return e().title}}),_.v(_.E2,{data:function(){return e().titleBadge}},{badgeViewModel:function(M){return _.v(_.vH,{data:M.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.v(_.S,{cond:function(){return e().subtitle},
then:function(){return _.v("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.v(_.Wh,{text:function(){return e().subtitle}}))}}),_.v(_.S,{cond:function(){return e().featureListData},
then:function(M){return _.v("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.v(_.u6,{each:M},function(T){var E;return _.v("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.v(_.V$,{icon:(E=T.icon)==null?void 0:E.iconType,active:function(){return T.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(T.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"}}}),_.v("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.v(_.Wh,{text:T.text,
className:function(){return T.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.v(_.S,{cond:function(){return e().secondaryTitle},
then:function(){return _.v("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.v(_.Wh,{text:function(){return e().secondaryTitle}}))}}),_.v(_.u6,{each:function(){return e().sectionDisclaimers||[]}},function(M){return _.v("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.v(_.Wh,{text:M}))})),_.v(_.E2,{data:function(){return e().optionItems}},{optionItemRenderer:function(M){return _.v("div",{class:"ytOptionSectionRendererOptionItem"},_.v(bQB,{data:M.data,
className:r,flowStateEntityKey:Z,selectionStepStyle:O}))}}),_.v(_.S,{cond:function(){return e().offerText},
then:function(){return _.v("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.v(_.Wh,{text:function(){return e().offerText}}))}}))},"Ih");
vt8.idomCompat=!0;var wSa=_.y(function(G){var e=G.data;var r=G.flowClassName;var Z=G.flowStateEntityKey;G=G.isDesktop;var O=_.hT("div"),M=function(){var q;return(q=e().flowStateEntityKey)!=null?q:Z==null?void 0:Z()},T=function(){return(M==null?void 0:M())||""},E=function(){return e().style},b=_.hI(_.un,T);
_.yY(function(){OtB(e(),T(),b());setTimeout(function(){var q;(q=O.value)==null||q.focus()})});
var w={};return _.v("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.LC("ytm-option-selection-flow-step-renderer",(w["ytm-option-selection-flow-step-renderer--desktop"]=G,w["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return e().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},w))},_.v("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"},
_.v("div",{el:O,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.v(_.Wh,{text:function(){return e().header}})),_.v("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.v(_.Wh,{text:function(){return e().subtitle}}))),_.v(_.E2,{data:function(){return e().optionItems||[]}},{optionItemRenderer:function(q){return _.v("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.v(bQB,{data:q.data,
className:r,flowStateEntityKey:M,selectionStepStyle:E}))},
optionSectionRenderer:function(q){return _.v("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.v(vt8,{data:q.data,flowClassName:r,flowStateEntityKey:M,selectionStepStyle:E}))}}))},"Jh");
wSa.idomCompat=!0;_.J_(wSa,"yt-option-selection-flow-step-renderer",{props:{data:_.N6,flowClassName:_.N6,flowStateEntityKey:_.N6,isDesktop:_.N6}});_.qE=_.y(function(G){var e=_.cx(G,{type:1,disablePadding:!1,disablePrimaryButton:!1}),r=e.data,Z=e.type;G=e.disablePadding;var O=e.disablePrimaryButton,M=e.onClickPrimaryButton,T=function(){return r().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},E=function(){return{disabled:O(),
state:O()?"disabled":"active"}},b=function(){return r().leadingLabel||r().trailingLabel};
e={};return _.v("yt-panel-footer-view-model",{class:_.LC("yt-panel-footer-view-model",(e["yt-panel-footer-view-model--hide-divider"]=function(){return r().shouldHideDivider},e["yt-panel-footer-view-model--disable-padding"]=G,e))},_.v(_.S,{cond:b,
then:function(){var w={},q={};return _.v("div",{class:_.LC("yt-panel-footer-view-model__text-row",(w["yt-panel-footer-view-model--row-bottom-padding"]=function(){var t=r();return!(!t.leadingLabel&&!t.trailingLabel||!t.primaryButton&&!t.secondaryButton)},w))},_.v(_.Wh,{text:function(){return r().leadingLabel},
className:_.LC((q["yt-panel-footer-view-model--text-padding"]=b,q))}),_.v(_.Wh,{text:function(){return r().trailingLabel}}))}}),_.v(_.S,{cond:T,
then:function(){var w={};return _.v("div",{class:"yt-panel-footer-view-model__button-stack"},_.v("div",{class:_.LC("yt-panel-footer-view-model__primary-button",(w["yt-panel-footer-view-model__button-stack--top-button"]=function(){return r().secondaryButton},w))},_.v(_.E2,{data:function(){return r().primaryButton}},{buttonViewModel:function(q){return _.v(_.wF,{data:q.data,
buttonOverrides:E,onClick:M})}})),_.v(_.E2,{data:function(){return r().secondaryButton}},{buttonViewModel:_.wF}))}}),_.v(_.S,{cond:function(){return!T()},
then:function(){var w={},q={},t={};return _.v("div",{class:_.LC("yt-panel-footer-view-model__button-row",(w["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===Z()},w))},_.v("div",{class:_.LC("yt-panel-footer-view-model__button-row--left-button",(q["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===Z()},q["yt-panel-footer-view-model__button-row--hidden"]=function(){return!r().secondaryButton||0===Z()},q["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===Z()},q))},_.v(_.E2,{data:function(){return r().secondaryButton}},{buttonViewModel:_.wF})),_.v("div",{class:_.LC("yt-panel-footer-view-model__primary-button",(t["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===Z()||1===Z()},t["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===Z()},t))},_.v(_.E2,{data:function(){return r().primaryButton}},{buttonViewModel:function(g){return _.v(_.wF,{data:g.data,
buttonOverrides:E,onClick:M})}})))}}))},"Kh");
_.qE.idomCompat=!0;_.$rm=_.y(function(G){G=_.cx(G,{disablePadding:!1});var e=G.data,r=G.disablePadding;G=_.wRa(function(){return e().formId});
var Z=G.submitForm,O=G.isValid,M=G.isSubmitting;return _.v("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.v(_.E2,{data:function(){return e().panelFooter}},{panelFooterViewModel:function(T){return _.v(_.qE,{data:T.data,
onClickPrimaryButton:function(){Z()},
disablePrimaryButton:function(){return!O()||M()},
disablePadding:r})}}))},"Lh");_.J_(_.$rm,"yt-form-footer-view-model",{props:{data:_.N6,disablePadding:_.N6}});var S6a=_.y(function(G){var e=_.R("enable_user_rating_web");return _.v("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.v("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.v(_.S,{cond:function(){var r;return(r=G.data())==null?void 0:r.image},
then:function(r){return _.v(_.nC,{data:r,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.v("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.v(_.Wh,{text:function(){var r;
return(r=G.data())==null?void 0:r.title}})),_.v("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.v(_.Wh,{text:function(){var r;
return(r=G.data())==null?void 0:r.subtitle}})),_.v(_.S,{cond:function(){return!e},
then:function(){return _.v(_.E2,{data:function(){var r;return(r=G.data())==null?void 0:r.viewTipsButton}},{buttonViewModel:function(r){return _.v(_.wF,{data:r.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Mh");_.J_(S6a,"yt-contributor-zero-state-view-model",{props:{data:_.N6}});var q6H=_.y(function(G){var e=function(){var r;return(r=G.data())==null?void 0:r.image};
return _.v("yt-featured-content-item-view-model",{class:_.LC("ytFeaturedContentItemViewModelHost")},_.v("div",{class:_.LC(function(){return e()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.v("div",{class:function(){return e()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.v(_.S,{cond:e,
then:function(){return _.v("div",{class:"ytFeaturedContentItemViewModelImage"},_.v(_.E2,{data:function(){return G.data().image}},{themedImageViewModel:function(r){return _.v(GF8,{data:r.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.v(_.S,{cond:function(){var r;
return!e()&&((r=G.data())==null?void 0:r.iconName)},
then:function(){return _.v("div",{class:"ytFeaturedContentItemViewModelIcon"},_.v(_.V$,{icon:function(){return G.data().iconName}}))}}),_.v("div",{class:"ytFeaturedContentItemViewModelContent"},_.v(_.S,{cond:function(){var r;
return(r=G.data())==null?void 0:r.title},
then:function(){return _.v("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.v(_.Wh,{text:function(){return G.data().title}}))}}),_.v(_.S,{cond:function(){var r;
return(r=G.data())==null?void 0:r.body},
then:function(){return _.v("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.v(_.Wh,{text:function(){return G.data().body}}))}})))))},"Nh");var t68=_.y(function(G){var e=function(){var O;return MCA((O=G.data())==null?void 0:O.titleFontSize)},r=function(){var O;
return VCC((O=G.data())==null?void 0:O.descriptionFontSize)},Z=function(){var O;
return((O=G.data())==null?void 0:O.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.v("yt-landing-page-view-model",{class:_.LC("ytLandingPageViewModelHost",G.className)},_.v("div",{class:"ytLandingPageViewModelHeader"},_.v(_.S,{cond:function(){var O;return(O=G.data())==null?void 0:O.bannerImage},
then:function(O){return _.v("div",{class:"ytLandingPageViewModelHeaderImage"},_.v(_.E2,{data:function(){return O()}},{imageBannerViewModel:function(M){return _.v(_.ND,{data:M.data,
isPositionRelative:!0})}}))}}),_.v(_.S,{cond:function(){var O;
return(O=G.data())==null?void 0:O.bannerAnimation},
then:function(O){return _.v(_.lO,{data:function(){var M=O();if(M==null?0:M.url){var T;M={path:(T=M==null?void 0:M.url)!=null?T:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(M==null?0:M.payload){var E;M={animationData:JSON.parse((E=M==null?void 0:M.payload)!=null?E:""),autoplay:!0,loop:!0,renderer:"svg"}}else M=void 0;return{animationConfig:M}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.v("div",{class:"ytLandingPageViewModelHeaderTitle"},_.v(_.S,{cond:function(){var O;
return(O=G.data())==null?void 0:O.title},
then:function(O){return _.v("div",{class:_.LC("ytLandingPageViewModelHeaderTitleContent",e)},_.v(_.Wh,{text:function(){return O()}}))}}),_.v(_.S,{cond:function(){var O;
return(O=G.data())==null?void 0:O.description},
then:function(O){var M={};return _.v(_.Wh,{className:_.LC("ytLandingPageViewModelHeaderTitleDescription",r,(M.ytLandingPageViewModelHeaderTitleDescriptionMargin=Z,M)),text:function(){return O()}})}}))),_.v(_.S,{cond:function(){var O,M;
return(O=G.data())==null?void 0:(M=O.featuredContentList)==null?void 0:M.length},
then:function(){return _.v("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.v(_.E2,{data:function(){return G.data().featuredContentList}},{featuredContentItemViewModel:function(O){return _.v(q6H,{data:O.data})}}))}}),_.v(_.S,{cond:function(){var O,M;
return(O=G.data())==null?void 0:(M=O.expandableContentList)==null?void 0:M.length},
then:function(){return _.v("div",{class:"ytLandingPageViewModelFaqSection"},_.v(_.E2,{data:function(){return G.data().expandableContentList}},{faqEntryViewModel:function(O){return _.v("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.v(_.Ih3,{data:O.data}))}}))}}),_.v("div",{class:"ytLandingPageViewModelFooter"},_.v(_.S,{cond:function(){var O;
return(O=G.data())==null?void 0:O.legalCopy},
then:function(O){return _.v("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.v(_.Wh,{text:function(){return O()}}))}}),_.v(_.S,{cond:function(){var O;
return(O=G.data())==null?void 0:O.actions},
then:function(O){return _.v("div",null,_.v(_.E2,{data:function(){return O()}},{flexibleActionsViewModel:function(M){return _.v(_.FL,{data:M.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Oh");_.J_(_.y(function(G){return _.v("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.v("div",{class:"ytLpSectionGroupViewModelContainer"},_.v(_.E2,{data:function(){return G.data().sections}},{landingPageViewModel:function(e){return _.v(t68,{data:e.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Ph"),"yt-lp-section-group-view-model",{props:{data:_.N6}});var gtW=_.y(function(G){var e=G.data;var r=G.selectedKey;var Z=G.onSelected;var O=G.groupName;var M=function(){return e().text},T=function(){return e().attributedText},E=function(){return e().subtext},b=function(){return e().attributedSubtext},w=_.v("div",{class:"ytRadioButtonItemViewModelLabel"},_.v(_.S,{cond:M,
then:function(){return _.v("div",null,M)}}),_.v(_.S,{cond:T,
then:function(){return _.v(_.Wh,{text:T})}}),_.v(_.S,{cond:E,
then:function(){return _.v("div",{class:"ytRadioButtonItemViewModelSubText"},E)}}),_.v(_.S,{cond:b,
then:function(){return _.v("div",{class:"ytRadioButtonItemViewModelSubText"},_.v(_.Wh,{text:b}))}})),q=function(){if(T()){var g;
return(g=T())==null?void 0:g.content}return M()},t=function(){if(b()){var g;
return(g=b())==null?void 0:g.content}return E()};
G={};return _.v("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.v(_.BP,{name:O,checked:function(){return!(r==null||!r()||e().key!==(r==null?void 0:r()))},
onChange:function(g){Z==null||Z(g.target,e(),O==null?void 0:O())},
labelRenderable:function(){return w},
ariaLabel:function(){return t()?q()+", "+t():q()},
className:_.LC((G.ytRadioButtonItemViewModelSubTitle=function(){return!!e().subtext},G))}))},"Qh");_.lHo=_.y(function(G){var e=G.data;var r=function(){var Z;return _.RH((Z=e())==null?void 0:Z.rendererContext)};
G={};return _.v("content-list-item-view-model",{el:_.cQ(_.jV(function(){return e().rendererContext})),
class:_.LC("ytContentListItemViewModelHost",(G.ytContentListItemViewModelTappable=r,G)),role:function(){return r()?"listitem":void 0},
tabindex:function(){return r()?0:void 0}},_.v("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.v("div",{class:"ytContentListItemViewModelImageContainer"},_.v(_.S,{cond:function(){return e().image},
then:function(Z){return _.v(_.nC,{data:Z,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.v(_.E2,{data:function(){var Z;
return(Z=e())==null?void 0:Z.avatar}},{avatarViewModel:_.yy})),_.v("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.v("div",{class:_.LC("ytContentListItemViewModelTitle",function(){a:{switch(e().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var Z="ytContentListItemViewModelProminentTitle";
break a}Z=void 0}return Z})},_.v(_.Wh,{text:function(){return e().title}})),_.v("div",{class:"ytContentListItemViewModelMetadata"},_.v(_.E2,{data:function(){return e().metadata}},{contentMetadataViewModel:function(Z){return _.v(_.SI,{data:Z.data,
layout:1})}})))),_.v("div",{class:"ytContentListItemViewModelActionButton"},_.v(_.E2,{data:function(){var Z;
return(Z=e())==null?void 0:Z.actionButton}},{buttonViewModel:_.wF,
toggleButtonViewModel:_.pb})))},"Rh");var RTo=_.y(function(G){var e=G.data,r=function(){var O;return(O=e())==null?void 0:O.description},Z=function(){var O;
return(O=e())==null?void 0:O.title};
return _.v("ytfc-youth-basic-section-header-view-model",{class:_.LC("ytfcYouthBasicSectionHeaderViewModelHost",G.className)},_.v("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.v(_.E2,{data:function(){var O;return(O=e())==null?void 0:O.avatar}},{avatarViewModel:_.yy}),_.v(_.S,{cond:function(){var O;
return _.d8((O=e())==null?void 0:O.themedImage)},
then:function(O){return _.v(_.nC,{data:O,alt:function(){var M,T;return(T=(M=Z())==null?void 0:M.content)!=null?T:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.v("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.v(_.S,{cond:Z,
then:function(){return _.v(_.Wh,{text:Z,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.v("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.v(_.E2,{data:function(){var O;
return(O=e())==null?void 0:O.bottomBadge}},{badgeViewModel:function(O){return _.v("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.v(_.vH,{data:O.data}))}}),_.v(_.S,{cond:r,
then:function(){return _.v(_.Wh,{text:r,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"Sh");var jIW=_.y(function(G){var e=G.data;return _.v("ytfc-youth-section-body-view-model",{class:_.LC("ytfcYouthSectionBodyViewModelHost",G.className)},_.v(_.E2,{data:function(){var r;return(r=e())==null?void 0:r.topContent}},{avatarStackViewModel:function(r){return _.v(_.FM,{data:r.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.v(_.Wh,{text:function(){var r;
return(r=e())==null?void 0:r.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"Th");var aHa=_.y(function(G){var e=_.h(_.XQ(!1,void 0,"SrK51e")),r=e.next().value,Z=e.next().value,O=function(){return G.data().inlineExpansionEntityKey},M=_.hI(j5B,O),T=function(){if(G.isSelected!==void 0)return G.isSelected();
if(O()){var b;return(b=M())==null?void 0:b.expanded}return r()};
e={};var E={};return _.v("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.ev(function(){G.isSelected!==void 0||O()||Z(!r())})},_.v("div",{class:"ytInlineExpanderViewModelHeader"},_.v(_.E2,{data:function(){return G.data().headerContent}},{youthBasicSectionHeaderViewModel:RTo}),_.v("div",{class:_.LC("ytInlineExpanderViewModelButton",(e.ytInlineExpanderViewModelButtonExpanded=T,e))},_.v(_.vk,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:T(),accessibilityLabel:T()?_.OK("SHOW_LESS",void 0,"Show Less"):_.OK("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.v("div",{class:_.LC("ytInlineExpanderViewModelBody",(E.ytInlineExpanderViewModelBodyExpanded=T,E)),"aria-hidden":function(){return!T()}},_.v("div",{class:"ytInlineExpanderViewModelBodyContent"},_.v(_.E2,{data:function(){return G.data().bodyContent}},{youthSectionBodyViewModel:jIW}))))},"Uh");var XSo=new _.Gz("CONTENT_SECTION_VIEW_MODEL_TOKEN");_.KGd=_.y(function(G){var e=function(){return G.data().background},r=function(){return G.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},Z=function(){return G.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},O=_.v_().resolve(_.bq(XSo)),M={};
return _.v("yt-card-view-model",{el:_.cQ(_.jV(function(){return G.data().rendererContext})),
class:_.LC("ytCardViewModelHost",G.className,(M.ytCardViewModelClickable=function(){return _.lt(G.data().rendererContext)},M))},_.v(_.qR,{contentId:function(){return G.data().contentId}},function(){var T={};
return _.v("div",{class:_.LC("ytCardViewModelCardViewModelInner",function(){var E;return hZW(G.data().cardStyle,(E=G.isSelected)==null?void 0:E.call(G))},function(){if(G.isSelected===void 0){var E;
a:{switch((E=G.data().cardState)==null?void 0:E.selectionState){case "CARD_SELECTION_STATE_SELECTED":E="ytCardViewModelSelected";break a}E=void 0}return E}})},_.v(_.E2,{data:e},{cinematicContainerViewModel:function(E){return _.v(_.x7P,{data:E.data})}}),_.v("div",{class:"ytCardViewModelContentWrapper"},_.v(_.S,{cond:function(){return!r()},
then:function(){var E={},b={};return _.v("div",{class:"ytCardViewModelTopContentContainer"},_.v("div",{class:_.LC("ytCardViewModelTopContent",(E.ytCardViewModelInnerPadding=function(){return!G.data().disableTopContentPadding&&G.data().topContent},E))},_.v(_.E2,{data:function(){return G.data().topContent}},{contentListItemViewModel:function(w){return _.v(_.lHo,{data:w.data})},
linearLayoutViewModel:_.UL})),_.v("div",{class:_.LC("ytCardViewModelInlineTrailingAction",(b.ytCardViewModelInlineCenterTrailingAction=Z,b.ytCardViewModelInlineTrailingActionMargin=function(){return G.data().trailingAction},b))},_.v(_.E2,{data:function(){return G.data().trailingAction}},{buttonViewModel:function(w){return _.v(_.wF,{data:w.data})}})))}}),_.v("div",{class:_.LC((T.ytCardViewModelInnerPadding=function(){return!G.data().disableBodyContentPadding&&G.data().bodyContent},T))},_.v(_.E2,{data:function(){return G.data().bodyContent}},
Object.assign({},{channelAttributionViewModel:_.fRC,
contentListItemViewModel:_.lHo,descriptionPreviewViewModel:_.aD,inlineExpanderViewModel:function(E){return _.v(aHa,{data:E.data,isSelected:G.isSelected})},
linearLayoutViewModel:_.UL,listItemViewModel:_.xq},O&&{contentSectionViewModel:O})))),_.v(_.S,{cond:function(){return r()},
then:function(){return _.v("div",{class:"ytCardViewModelOverlayTrailingAction"},_.v(_.E2,{data:function(){return G.data().trailingAction}},{buttonViewModel:function(E){return _.v(_.wF,{data:E.data})}}))}}))}))},"Vh");var fHA=_.y(function(G){var e=G.data,r=G.onSelected,Z=G.selectedKey,O=G.groupName;G=G.className;var M=_.h(_.XQ(!1,void 0,"mDtSad")),T=M.next().value,E=M.next().value,b=function(){if(Z!==void 0){var w=Z();return!(!w||e().key!==w)}return T()};
M=_.ev(function(w){r?r(w.currentTarget,e(),O==null?void 0:O()):E(!T())});
return _.v("yt-selectable-item-view-model",{class:_.LC("ytSelectableItemViewModelHost",G,"ytSelectableItemViewModelContainer"),"on:click":M,"prop:checked":b},_.v(_.E2,{data:function(){return e().content}},{cardViewModel:function(w){return _.v(_.KGd,{data:w.data,
isSelected:b})}}))},"Wh");_.kFV=_.y(function(G){var e=G.data;var r=G.onSelected;var Z=G.selectedKey;var O=G.groupName;var M=function(){return(O==null?void 0:O())||e().key};
return _.v("yt-radio-button-group-view-model",{class:_.LC("ytRadioButtonGroupViewModelHost",G.className)},_.v("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.v(_.E2,{data:function(){return e().radioButtons}},{radioButtonItemViewModel:function(T){return _.v(gtW,{data:T.data,
onSelected:r,selectedKey:Z,groupName:M})},
selectableItemViewModel:function(T){return _.v(fHA,{data:T.data,onSelected:r,selectedKey:Z,groupName:M})}})))},"Xh");var HQV=_.y(function(G){_.yY(function(){if(G.controlledMode()&&G.data().defaultSelected)_.yx(Error("ak"));else{var M;!G.controlledMode()&&((M=G.selected)==null?0:M.call(G))&&_.yx(Error("bk"))}});
var e=_.h(_.Ob(function(){if(!G.controlledMode())return G.data().defaultSelected})),r=e.next().value,Z=e.next().value,O=function(){if(!G.controlledMode())return r();
var M;return(M=G.selected)==null?void 0:M.call(G)};
return _.v("yt-checkbox-item-view-model",{class:_.LC("ytCheckboxItemViewModelHost",G.className)},_.v(_.xq,{data:function(){var M=G.data(),T=O();return{title:M.text,subtitle:M.subtext,superlabel:M.superlabel,isSelected:!!T,isDisabled:M.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!G.controlledMode()&&Z(!r());var M,T;(T=G.onTap)==null||T.call(G,!!O(),G.data(),(M=G.groupName)==null?void 0:M.call(G))},
isCompact:G.isCompact}))},"Yh");var drm=_.y(function(G){var e=G.data;var r=G.controlledMode;var Z=G.selectedKeys;var O=G.onItemTap;var M=G.groupName;var T=function(){return(M==null?void 0:M())||e().key};
_.yY(function(){r()&&e().defaultSelectedKeys?_.yx(Error("ck")):!r()&&(Z==null?0:Z())&&_.yx(Error("dk"))});
G=_.h(_.Ob(function(){if(!r())return e().defaultSelectedKeys}));
var E=G.next().value,b=G.next().value,w=function(q,t,g){q=[];!r()&&t.key&&(q=TEC(t.key,E()||[]),b(q));O==null||O(t,q,g)};
return _.v("yt-checkbox-group-view-model",{class:_.LC("ytCheckboxGroupViewModelHost")},_.v("fieldset",{class:_.LC("ytCheckboxGroupViewModelFieldset")},_.v(_.E2,{data:function(){return e().checkboxes}},{checkboxItemViewModel:function(q){var t=q.data;
return _.v(HQV,{data:t,controlledMode:!0,selected:function(){var g=r()?(Z==null?void 0:Z())||[]:E()||[],l=t().key;return l?g.includes(l):!1},
onTap:w,groupName:T})}})))},"Zh");var tr=_.y(function(G){var e=_.hI(DNl,_.mr(function(){var E;return(E=G.data())==null?void 0:E.noteFeedEntityKey},"")),r=_.hI(fmH,_.mr(function(){var E;
return(E=G.data())==null?void 0:E.userRatingEntityKey},"")),Z=_.R("enable_user_rating_web"),O=function(){var E,b,w;
return((E=e())==null?0:E.contributorNote)?(b=e())==null?void 0:b.contributorNote:(w=G.data())==null?void 0:w.existingNote},M=function(){var E,b;
return!!r()&&!!Eud((E=r())==null?void 0:E.helpfulnessValue,(b=G.data())==null?void 0:b.noteData)};
if(Z){var T={};return _.v("yt-note-view-model",{class:_.LC("ytNoteViewModelHostUserRating",(T.ytNoteViewModelHostUserRatingPublishedNote=function(){var E,b,w,q;return((E=G.data())==null?void 0:(b=E.noteData)==null?void 0:b.isPublished)&&!((w=G.data())==null?0:(q=w.noteData)==null?0:q.isUserRatingForm)},T))},_.v("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.v("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.v(_.S,{cond:function(){var E,b;
return(E=G.data())==null?void 0:(b=E.noteData)==null?void 0:b.isPinned},
then:function(){return _.v(_.V$,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.v(_.S,{cond:function(){var E,b;return(E=G.data())==null?void 0:(b=E.noteData)==null?void 0:b.isPublished},
then:function(){return _.v(_.V$,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.v(_.E2,{data:function(){var E;
return(E=G.data())==null?void 0:E.metadata}},{contentMetadataViewModel:_.SI}),_.v("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var E,b;
return(b=_.a((E=G.data())==null?void 0:E.metadata,_.wyn))==null?void 0:b.delimiter}),_.v(_.Wh,{text:function(){var E;
return(E=O())==null?void 0:E.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.v(_.S,{cond:function(){var E,b;return!((E=G.data())==null?0:(b=E.noteData)==null?0:b.isUserRatingForm)},
then:function(){return _.v(_.E2,{data:function(){var E,b,w,q,t,g,l,X=!!((E=G.data())==null?0:(b=E.noteData)==null?0:b.isPinned);E=M();b=(w=G.data())==null?void 0:w.noteData;w=(q=e())==null?void 0:(t=q.contributorNote)==null?void 0:t.deleteAction;q=(g=G.data())==null?void 0:g.overflowButtonNoteWithRatingOnTapOverride;g=(l=G.data())==null?void 0:l.overflowButton;return X?itH(b,w):E?{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:q}}:g}},{buttonViewModel:function(E){return _.v(_.wF,{data:E.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.v("div",{class:"ytNoteViewModelNoteContent"},_.v(_.Wh,{text:function(){var E;
return(E=O())==null?void 0:E.text}})),_.v(_.S,{cond:function(){var E,b,w,q;
return!((E=G.data())==null?0:(b=E.noteData)==null?0:b.isPinned)&&!((w=G.data())==null?0:(q=w.noteData)==null?0:q.isUserRatingForm)},
then:function(){return _.v(_.S,{cond:M,then:function(){return _.v("div",{class:"ytNoteViewModelUserRatingContainer"},_.v(_.Wh,{text:function(){var E,b;return Eud((E=r())==null?void 0:E.helpfulnessValue,(b=G.data())==null?void 0:b.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.v(_.E2,{data:function(){var E;return(E=G.data())==null?void 0:E.userRatingButton}},{buttonViewModel:function(E){return _.v(_.wF,{data:E.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.v(_.S,{cond:function(){var E,b,w,q;
return!((E=G.data())==null?0:(b=E.noteData)==null?0:b.ignoreDivider)&&!((w=G.data())==null?0:(q=w.noteData)==null?0:q.isUserRatingForm)},
then:function(){return _.v("div",{class:"ytNoteViewModelDivider"},_.v(_.E2,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(E){return _.v(_.W1S,{data:E.data})}}))}}))}return _.v("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.v("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.v("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.v(_.S,{cond:function(){var E,b;return(E=G.data())==null?void 0:(b=E.noteData)==null?void 0:b.isPinned},
then:function(){return _.v(_.V$,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.v(_.S,{cond:function(){var E,b;return(E=G.data())==null?void 0:(b=E.noteData)==null?void 0:b.isPublished},
then:function(){return _.v(_.V$,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.v(_.S,{cond:function(){return Z},
then:function(){return _.v(_.E2,{data:function(){var E;return(E=G.data())==null?void 0:E.metadata}},{contentMetadataViewModel:function(E){return _.v(_.SI,{data:E.data})}})}}),_.v(_.Wh,{text:function(){var E,b;
return(E=G.data())==null?void 0:(b=E.noteData)==null?void 0:b.headerText}}),_.v("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.v(_.Wh,{text:function(){var E,b;
return(E=G.data())==null?void 0:(b=E.noteData)==null?void 0:b.delimiter}})),_.v(_.Wh,{text:function(){var E,b;
return(E=e())==null?void 0:(b=E.contributorNote)==null?void 0:b.publishedTimeText}})),_.v(_.E2,{data:function(){var E,b,w;
return itH((E=G.data())==null?void 0:E.noteData,(b=e())==null?void 0:(w=b.contributorNote)==null?void 0:w.deleteAction)}},{buttonViewModel:function(E){return _.v(_.wF,{data:E.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.v("div",{class:"ytNoteViewModelNoteContent"},_.v(_.Wh,{text:function(){var E,b;
return(E=e())==null?void 0:(b=E.contributorNote)==null?void 0:b.text}})))},"$h");
tr.idomCompat=!0;_.J_(_.y(function(G){var e=_.mr(function(){var u;return(u=G.data())==null?void 0:u.flowStateEntityKey},""),r=_.hI(_.un,e),Z=_.hI(DNl,_.mr(function(){var u;
return(u=G.data())==null?void 0:u.noteFeedEntityKey},"")),O=_.h(_.Ob(function(){var u;
return(u=_.a(G.data().helpfulnessValue,_.Yo))==null?void 0:u.defaultSelectedKey})),M=O.next().value,T=O.next().value;
O=_.h(_.Ob(function(){var u,P,F;return(F=_.a((u=_.a(G.data().helpfulnessValue,_.Yo))==null?void 0:(P=u.radioButtons)==null?void 0:P.find(function(J){var U;return((U=_.a(J,ybV))==null?void 0:U.key)===M()}),ybV))==null?void 0:F.value}));
var E=O.next().value,b=O.next().value;O=_.h(_.Ob(function(){var u;return(u=_.a(G.data().helpfulReasons,YW8))==null?void 0:u.defaultSelectedKeys}));
var w=O.next().value,q=O.next().value;O=_.h(_.Ob(function(){var u;return(u=_.a(G.data().notHelpfulReasons,YW8))==null?void 0:u.defaultSelectedKeys}));
var t=O.next().value,g=O.next().value,l=function(u,P){T(P.key);b(P.value);q([]);g([])},X=function(){var u,P;
return((u=E())==null?void 0:u.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((P=E())==null?void 0:P.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},H=function(){var u,P;
return((u=E())==null?void 0:u.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((P=E())==null?void 0:P.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},I=function(u){bt8(u.key,w,q)},C=function(u){bt8(u.key,t,g)};
_.yY(function(){var u,P,F;XJ2((u=G.data())==null?void 0:(P=u.userRatingFormSchema)==null?void 0:P.id,{isValid:function(){return!!M()},
formData:function(){var J=E(),U=wUm(w(),_.a(G.data().helpfulReasons,YW8)),e$=wUm(t(),_.a(G.data().notHelpfulReasons,YW8));J={helpfulnessValue:J==null?void 0:J.noteHelpfulnessValue};if(U){J.helpfulReasons=[];U=_.h(U);for(var Dq=U.next();!Dq.done;Dq=U.next()){Dq=Dq.value;var bF=void 0;if((bF=Dq)==null?0:bF.noteHelpfulReason)bF=void 0,J.helpfulReasons.push((bF=Dq)==null?void 0:bF.noteHelpfulReason)}}if(e$)for(J.notHelpfulReasons=[],e$=_.h(e$),U=e$.next();!U.done;U=e$.next())if(U=U.value,Dq=void 0,(Dq=
U)==null?0:Dq.noteNotHelpfulReason)Dq=void 0,J.notHelpfulReasons.push((Dq=U)==null?void 0:Dq.noteNotHelpfulReason);return{userRatingFormData:J}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(F=_.a(r(),HOW))==null?void 0:F.submitFormParams},onSubmitResult:function(){var J,U=(J=_.a(r(),HOW))==null?void 0:J.userRatingEntityKey,e$;J={key:U,helpfulnessValue:(e$=E())==null?void 0:e$.noteHelpfulnessValue};U&&_.nR(_.bt("contextNoteUserRatingEntityPayload",U,J));var Dq;U=(Dq=G.data())==null?void 0:Dq.viewNoteFlowStepId;var bF;if((bF=Z())==null||!bF.contributorNote){var Kf;U=(Kf=G.data())==null?void 0:Kf.zeroStateFlowStepId}(Dq=
Object.assign({},r()))&&U&&(Dq.currentStepId=U,Dq.stepIdStack=[U],_.nR(_.bt("flowStateEntity",e(),Dq)));var ti;(Dq=(ti=G.data())==null?void 0:ti.ratingSubmittedSnackbarCommand)&&_.HQ(Dq)},
disableDuringSubmission:!0})});
return _.v("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.v(_.E2,{data:function(){var u=_.a(r(),HOW);if(u){var P;var F={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:u==null?void 0:(P=u.note)==null?void 0:P.headerText}]}],delimiter:"\u2022"}},existingNote:u.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else F=void 0;return F}},{noteViewModel:function(u){return _.v("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.v(tr,{data:u.data}))}}),_.v(_.E2,{data:function(){var u;
return(u=G.data())==null?void 0:u.helpfulnessValue}},{radioButtonGroupViewModel:function(u){return _.v("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.v(_.kFV,{data:u.data,
onSelected:l,selectedKey:M}))}}),_.v(_.S,{cond:X,
then:function(){return _.v("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.v("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.v(_.Wh,{text:function(){var u;return(u=G.data())==null?void 0:u.helpfulReasonQuestion}})),_.v(_.E2,{data:function(){var u;
return(u=G.data())==null?void 0:u.helpfulReasons}},{checkboxGroupViewModel:function(u){return _.v(drm,{data:u.data,
onItemTap:I,selectedKeys:w,controlledMode:!0})}}))}}),_.v(_.S,{cond:H,
then:function(){return _.v("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.v("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.v(_.Wh,{text:function(){var u;return(u=G.data())==null?void 0:u.notHelpfulReasonQuestion}})),_.v(_.E2,{data:function(){var u;
return(u=G.data())==null?void 0:u.notHelpfulReasons}},{checkboxGroupViewModel:function(u){return _.v(drm,{data:u.data,
onItemTap:C,selectedKeys:t,controlledMode:!0})}}))}}),_.v(_.S,{cond:function(){return!X()&&!H()},
then:function(){return _.v(_.E2,{data:function(){var u;return(u=G.data())==null?void 0:u.helpfulNoteFeatures}},{alertBannerViewModel:function(u){return _.v("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.v(_.O3E,{data:u.data}))}})}}))},"ai"),"yt-note-user-rating-view-model",{props:{data:_.N6}});_.J_(tr,"yt-note-view-model",{props:{data:_.N6}});_.J_(_.y(function(G){var e=_.hI(DNl,_.mr(function(){var r;return(r=G.data())==null?void 0:r.noteFeedEntityKey},""));
return _.v("yt-notes-wrapper-view-model",{class:_.LC("ytNotesWrapperViewModelHost")},_.v(_.S,{cond:function(){var r,Z,O;return!((r=G.data())==null||!r.existingNotes)||!((Z=G.data())==null||!Z.currentNote)&&!((O=e())==null||!O.contributorNote)},
then:function(){return _.v(_.$Z,null,_.v(_.E2,{data:function(){var r,Z,O,M;return((Z=_.a((r=G.data())==null?void 0:r.currentNote,dz2))==null?0:(O=Z.noteData)==null?0:O.isPublished)?(M=G.data())==null?void 0:M.currentNote:void 0}},{noteViewModel:function(r){return _.v(tr,{data:r.data})}}),_.v(_.E2,{data:function(){var r;
return(r=G.data())==null?void 0:r.existingNotes}},{noteViewModel:function(r){var Z=r.data;
return _.v(_.S,{cond:function(){var O,M;return(O=Z())==null?void 0:(M=O.noteData)==null?void 0:M.isPublished},
then:function(){return _.v(tr,{data:Z})}})}}),_.v(_.E2,{data:function(){var r,Z,O,M,T;
return((Z=_.a((r=G.data())==null?void 0:r.currentNote,dz2))==null?0:(O=Z.noteData)==null?0:O.isPublished)||(M=e())==null||!M.contributorNote?void 0:(T=G.data())==null?void 0:T.currentNote}},{noteViewModel:function(r){return _.v(tr,{data:r.data})}}),_.v(_.E2,{data:function(){var r;
return(r=G.data())==null?void 0:r.existingNotes}},{noteViewModel:function(r){var Z=r.data;
return _.v(_.S,{cond:function(){var O,M;return!((O=Z())==null?0:(M=O.noteData)==null?0:M.isPublished)},
then:function(){return _.v(tr,{data:Z})}})}}))},
else:function(){return _.v(_.E2,{data:function(){var r;return(r=G.data())==null?void 0:r.zeroStateData}},{contributorZeroStateViewModel:S6a})}}))},"bi"),"yt-notes-wrapper-view-model",{props:{data:_.N6}});var gI=_.y(function(G){var e=_.cx(G,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),r=e.label,Z=e.text,O=e.placeholder,M=e.hint;G=e.rows;var T=e.overflowStyle,E=e.outline,b=e.disabled,w=e.disableNewLines,q=e.characterLimit,t=e.validation,g=e.onInput,l=_.hT("textarea");e=_.h(_.Ob(function(){return Z()}));
var X=e.next().value,H=e.next().value;e=_.h(_.XQ(!1,void 0,"u9PDq"));var I=e.next().value,C=e.next().value,u=function(){C(!0)},P=function(){C(!1)};
_.yY(function(){var nf=l.value,k4=T(),SE=X();k4==="expand-vertically"&&SE&&$NW(nf);l.value.addEventListener("focusin",u);l.value.addEventListener("focusout",P)});
_.yD(function(){l.value.removeEventListener("focusin",u);l.value.removeEventListener("focusout",P)});
var F=function(){var nf;return(nf=t())==null?void 0:nf.validate(X())},J=function(){return q()&&!F()&&X().length>q().maxChars},U=function(){return!!F()||J()};
e=_.ev(function(nf){if(!nf.currentTarget)return!1;nf=nf.currentTarget;H(nf.value);T()==="expand-vertically"&&$NW(nf);g==null||g(nf.value);return!0});
var e$=_.ev(function(nf){w()&&nf.key==="Enter"&&nf.preventDefault();return!1}),Dq=_.ev(function(){l.value.focus()}),bF=function(){return O()||r()},Kf={},ti={},Ry={};
return _.v("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.v("div",{class:_.LC("ytStandardsTextareaShapeTextareaContainer",(Kf.ytStandardsTextareaShapeTextareaContainerOutline=E,Kf.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=b,Kf.ytStandardsTextareaShapeTextareaContainerOutlineError=U,Kf)),"on:click":Dq},_.v("label",{class:_.LC("ytStandardsTextareaShapeLabel",(ti.ytStandardsTextareaShapeLabelFocused=I,ti.ytStandardsTextareaShapeLabelDisabled=b,ti.ytStandardsTextareaShapeLabelError=
function(){return U()&&!b()},ti.ytStandardsTextareaShapeLabelHidden=function(){return!I()&&!X()&&!!bF()},ti))},r),_.v("div",{class:_.LC("ytStandardsTextareaShapePlaceholder",(Ry.ytStandardsTextareaShapePlaceholderVisible=function(){return!I()&&!X()},Ry)),
"aria-hidden":"true"},bF),_.v("textarea",{el:l,class:"ytStandardsTextareaShapeTextarea",rows:G,disabled:b,placeholder:bF,"on:input":e,"on:keydown":e$},X)),_.v(_.S,{cond:function(){return M()&&!U()},
then:function(){var nf={};return _.v("div",{class:_.LC("ytStandardsTextareaShapeHint",(nf.ytStandardsTextareaShapeHintDisabled=b,nf))},_.v("div",{class:"ytStandardsTextareaShapeHintHintMessage"},M))}}),_.v(_.S,{cond:F,
then:function(){return _.v(otd,{disabled:b},_.v("div",{class:"ytStandardsTextareaShapeErrorMessage"},F))}}),_.v(_.S,{cond:q,
then:function(nf){return _.v(_.S,{cond:J,then:function(){return _.v(otd,{disabled:b},_.v("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return nf().errorMessage}),_.v("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return X().length+"/"+nf().maxChars}))}})}}))},"ci");
gI.idomCompat={callbacks:{onInput:!0}};var otd=_.y(function(G){var e={};return _.v("div",{class:_.LC("ytStandardsTextareaShapeError",(e.ytStandardsTextareaShapeErrorDisabled=G.disabled,e)),role:"alert"},_.v(_.V$,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),G.children)},"di");_.sIm=_.y(function(G){var e=G.data;return _.v("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.v(gI,{text:G.text,label:function(){var r;return(r=e().contentProperties)==null?void 0:r.labelText},
placeholder:function(){var r;return(r=e().contentProperties)==null?void 0:r.placeholderText},
hint:function(){var r;return(r=e().contentProperties)==null?void 0:r.hintText},
outline:function(){var r;return!((r=e().displayProperties)==null?0:r.hideBorder)},
overflowStyle:function(){var r;return((r=e().displayProperties)==null?0:r.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:G.disabled,disableNewLines:function(){var r;return(r=e().displayProperties)==null?void 0:r.disableNewLines},
onInput:G.onInput,characterLimit:G.characterLimit,validation:G.validation,rows:function(){var r;return(r=e().displayProperties)==null?void 0:r.rows}}))},"ei");_.QI8=_.y(function(G){var e=G.data;return _.v("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.v(gI,{text:G.text,label:function(){var r;return(r=e().contentProperties)==null?void 0:r.labelText},
placeholder:function(){var r;return(r=e().contentProperties)==null?void 0:r.placeholderText},
hint:function(){var r;return(r=e().contentProperties)==null?void 0:r.hintText},
outline:function(){var r;return!((r=e().displayProperties)==null?0:r.hideBorder)},
overflowStyle:function(){var r;return((r=e().displayProperties)==null?0:r.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var r;return(r=e().displayProperties)==null?void 0:r.disableNewLines},
onInput:G.onInput,characterLimit:G.characterLimit,validation:G.validation,rows:function(){var r;return(r=e().displayProperties)==null?void 0:r.rows}}))},"fi");var IH2=_.y(function(G){var e=_.h(_.Ob(function(){var bF,Kf;return((bF=G.data().structuredContextNoteFormSchema)==null?0:(Kf=bF.initialValues)==null?0:Kf.noteBody)?G.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),r=e.next().value,Z=e.next().value;
e=_.h(_.Ob(function(){G.data();return!1}));
var O=e.next().value,M=e.next().value;e=_.h(_.Ob(function(){G.data();return!1}));
var T=e.next().value,E=e.next().value;e=_.h(_.Ob(function(){var bF,Kf;return((bF=G.data().structuredContextNoteFormSchema)==null?0:(Kf=bF.initialValues)==null?0:Kf.timestamp)?G.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var b=e.next().value,w=e.next().value;e=_.h(_.Ob(function(){G.data();return!1}));
var q=e.next().value,t=e.next().value;e=_.h(_.Ob(function(){var bF,Kf;return((bF=G.data().structuredContextNoteFormSchema)==null?0:(Kf=bF.initialValues)==null?0:Kf.sources)?[G.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var g=e.next().value,l=e.next().value;e=_.h(_.Ob(function(){G.data();return!1}));
var X=e.next().value,H=e.next().value;e=_.h(_.Ob(function(){return!1}));
var I=e.next().value,C=e.next().value;_.yY(function(){var bF;_.KuW((bF=G.data().structuredContextNoteFormSchema)==null?void 0:bF.id,{isSubmitting:I,onSubmit:function(){C(!0);var Kf=XU8(r(),b(),g(),G.data()),ti=_.v_().resolve(_.$1);Kf&&ti&&ti.resolveCommand(Kf,{commandController:{onSuccess:function(){C(!1)}}})},
isValid:function(){return O()&&!T()&&!q()&&!X()}})});
var u=function(bF){if(bF!==void 0&&(Z(bF),!O()&&bF.length>0&&M(!0),O())){var Kf=tCo(G.data());if(Kf){var ti=Kf.minLength;Kf=Kf.maxLength;ti&&bF.length<ti?E(!0):Kf&&bF.length>Kf?E(!0):E(!1)}}},P=function(bF){if(bF!==void 0){w(bF);
if(bF.length>0){var Kf,ti,Ry,nf,k4=lEA((Kf=G.data())==null?void 0:(ti=Kf.structuredContextNoteFormSchema)==null?void 0:(Ry=ti.fieldSchemas)==null?void 0:(nf=Ry.timestamp)==null?void 0:nf.validationSchema);if(k4&&(Kf=k4.regex)&&!(new RegExp(Kf)).test(bF)){t(!0);return}}t(!1)}},F=function(bF){if(bF!==void 0){var Kf=bF.split(/[ \n]/).map(function(ti){return ti.trim()});
l(Kf);if(bF.length>0)for(bF=_.h(Kf),Kf=bF.next();!Kf.done;Kf=bF.next())if(!aEV(Kf.value)){H(!0);return}H(!1)}},J=function(){return{validate:function(bF){if(O()){var Kf=tCo(G.data());
if(Kf){var ti=Kf.minLength;Kf=Kf.translations;if(ti&&bF.length<ti)return Kf==null?void 0:Kf.minLengthErrorMessage}}}}},U=function(){var bF=tCo(G.data()),Kf=bF==null?void 0:bF.maxLength,ti;
bF=bF==null?void 0:(ti=bF.translations)==null?void 0:ti.maxLengthErrorMessage;if(Kf&&bF)return{maxChars:Kf,errorMessage:bF}},e$=function(){return{validate:function(bF){if(bF){var Kf,ti,Ry,nf,k4=lEA((Kf=G.data())==null?void 0:(ti=Kf.structuredContextNoteFormSchema)==null?void 0:(Ry=ti.fieldSchemas)==null?void 0:(nf=Ry.timestamp)==null?void 0:nf.validationSchema);
if(k4&&(Kf=k4.regex,k4=k4.translations,Kf&&!(new RegExp(Kf)).test(bF)))return k4==null?void 0:k4.regexErrorMessage}}}},Dq=function(){return{validate:function(bF){if(bF){var Kf,ti,Ry,nf,k4=jdH((Kf=G.data())==null?void 0:(ti=Kf.structuredContextNoteFormSchema)==null?void 0:(Ry=ti.fieldSchemas)==null?void 0:(nf=Ry.sources)==null?void 0:nf.validationSchema);
if(k4&&(Kf=k4.translations,Kf==null?0:Kf.selectedErrorMessage))for(bF=bF.split(/[ \n]/).map(function(SE){return SE.trim()}),bF=_.h(bF),ti=bF.next();!ti.done;ti=bF.next())if(!aEV(ti.value))return bF=void 0,(bF=Kf)==null?void 0:bF.selectedErrorMessage}}}};
return _.v("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.v("div",{class:"ytStructuredContextNoteViewModelTextField"},_.v(_.E2,{data:function(){var bF;return(bF=G.data())==null?void 0:bF.noteContents}},{textFormFieldViewModel:function(bF){return _.v(_.QI8,{data:bF.data,
onInput:u,validation:J,characterLimit:U})},
textFieldViewModel:function(bF){return _.v(_.sIm,{data:bF.data,onInput:u,validation:J,characterLimit:U})}})),_.v("div",{class:"ytStructuredContextNoteViewModelTextField"},_.v(_.E2,{data:function(){var bF;
return(bF=G.data())==null?void 0:bF.noteTimestamp}},{textFormFieldViewModel:function(bF){return _.v(_.QI8,{data:bF.data,
onInput:P,validation:e$})},
textFieldViewModel:function(bF){return _.v(_.sIm,{data:bF.data,onInput:P,validation:e$})}})),_.v("div",{class:"ytStructuredContextNoteViewModelTextField"},_.v(_.E2,{data:function(){var bF;
return(bF=G.data())==null?void 0:bF.noteSources}},{textFormFieldViewModel:function(bF){return _.v(_.QI8,{data:bF.data,
onInput:F,validation:Dq})},
textFieldViewModel:function(bF){return _.v(_.sIm,{data:bF.data,onInput:F,validation:Dq})}})))},"gi");
IH2.idomCompat=!0;_.J_(IH2,"yt-structured-context-note-view-model",{props:{data:_.N6}});var pS8=_.y(function(G){var e=_.h(_.Ob(function(){var M;if((M=G.controlled)==null?0:M.call(G))return[];var T;return(((T=G.data())==null?void 0:T.chips)||[]).map(function(E){E=_.a(E,_.eR);if(E==null?0:E.selected)return KMV(E.chipValue)}).filter(function(E){return E!==void 0})})),r=e.next().value,Z=e.next().value,O=function(M){var T=KMV(M.chipValue);
if(T!==void 0){var E;if((E=G.controlled)==null?0:E.call(G))return void G.controlled().onTap(T);M=r().includes(T)?[].concat(_.mY(r().filter(function(w){return w!==T}))):[].concat(_.mY(r()),[T]);
Z(M);var b;if((b=G.uncontrolled)==null?0:b.call(G))G.uncontrolled().onUpdate(M)}};
return _.v("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.v(_.u6,{each:function(){return G.data().chips||[]}},function(M){return _.v("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.v(_.aay,{data:function(){return _.a(M,_.eR)},
selected:function(){var T;if(T=_.a(M,_.eR)){var E=KMV(T.chipValue);if(E!==void 0){var b;T=((b=G.controlled)==null?0:b.call(G))?G.controlled().selectedValues.includes(E):r().includes(E)}else T=void 0}else T=!1;return T},
callback:O}))}))},"hi");var Cwa=_.y(function(G){var e=G.data;var r=function(){var E;return((E=e())==null?void 0:E.flowStateKey)||""},Z=_.hI(_.un,r),O=function(){var E;
return(E=_.a(Z(),oyo))==null?void 0:E.chips},M=function(E){if(E!==void 0){var b=O()||[];
b=b.find(function(w){return w===E})?b.filter(function(w){return w!==E}):[].concat(_.mY(b),[E]);
b=Object.assign({},Z(),{feedbackFormFlowState:Object.assign({},_.a(Z(),oyo),{chips:b})});_.nR(_.bt("flowStateEntity",r(),b))}},T=function(){var E;
return _.a((E=e())==null?void 0:E.inputBox,spa)};
G=_.lE(function(E){var b=T();b=!(b==null?0:b.maxChars)||E.length<=b.maxChars;E=Object.assign({},Z(),{feedbackFormFlowState:Object.assign({},_.a(Z(),oyo),{detail:E}),abuseReportFlowState:Object.assign({},_.a(Z(),cq),{navigationEnabled:b})});_.nR(_.bt("flowStateEntity",r(),E))},150);
return _.v("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.v("div",{class:"ytFeedbackFormViewModelChips"},_.v(_.E2,{data:function(){var E;return(E=e())==null?void 0:E.chipSelection}},{chipSelectionFormFieldViewModel:function(E){return _.v(pS8,{data:E.data,
controlled:function(){return{selectedValues:O()||[],onTap:M}}})}})),_.v("div",{class:"ytFeedbackFormViewModelInputBox"},_.v(gI,{text:function(){var E;
return(E=_.a(Z(),oyo))==null?void 0:E.detail},
placeholder:function(){var E;return((E=T())==null?void 0:E.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var E=T();if(E&&E.maxChars)return{maxChars:E.maxChars,errorMessage:E.maxCharsExceededErrorMessage||""}},
onInput:G})),_.v("div",{class:"ytFeedbackFormViewModelFooterText"},_.v(_.Wh,{text:function(){return e().footerText}})))},"ii");
Cwa.idomCompat=!0;_.J_(Cwa,"yt-feedback-form-view-model",{props:{data:_.N6}});var us8=_.y(function(G){var e=G.data;var r=_.hI(amW,function(){return e().flowStateKey||""}),Z=function(){var O;
_.HQ((O=_.a(r(),cq))==null?void 0:O.navigationCommand)};
return _.v("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.v("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.v(_.E2,{data:function(){return e().cancelButton}},{buttonViewModel:function(O){return _.v(_.wF,{data:O.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:Z})}}),_.v(_.E2,{data:function(){var O;
if(e().navButton){var M=Object;var T=M.assign,E=_.a(e().navButton,_.G$),b=((O=_.a(r(),cq))==null?0:O.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",w,q;O=_.a((w=_.a(r(),cq))==null?void 0:w.navigationCommand,_.ag);w=(q=_.a(O,_.G2))==null?void 0:q.url;M={buttonViewModel:T.call(M,{},E,{state:b,iconName:w?"OPEN_IN_NEW":""})}}else M=void 0;return M}},{buttonViewModel:function(O){return _.v(_.wF,{data:O.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:Z})}})))},"ji");
us8.idomCompat=!0;_.J_(us8,"yt-report-form-bottom-bar-view-model",{props:{data:_.N6}});var ntC=_.y(function(G){var e=G.nextStep;return _.v("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.v("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.v(_.V$,{icon:function(){return e().iconName||""}})),_.v("div",null,_.v(_.Wh,{text:function(){return e().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"ki"),mrW=_.y(function(G){var e=G.data;
var r,Z=(r=_.v_().resolve(_.bq(_.Ig)))==null?void 0:r(),O=_.hI(_.un,function(){return e().flowStateKey||""});
return _.v("yt-report-form-confirmation-page-view-model",{class:function(){var M;return((M=_.a(O(),cq))==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.v("div",{class:function(){var M;
return((M=_.a(O(),cq))==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.v(_.nC,{data:function(){return Z&&e().imageDark?e().imageDark:e().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.v("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.v("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return e().confirmationHeader}),_.v("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.v(_.Wh,{text:function(){return e().confirmationText}})),_.v("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.v(_.Wh,{text:function(){return e().lawEnforcementText}})),
_.v("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return e().whatToExpectHeader}),_.v(_.S,{cond:function(){return e().nextSteps},
then:function(M){return _.v("div",null,_.v(_.u6,{each:M},function(T){return _.v(ntC,{nextStep:T})}))}}),_.v(_.S,{cond:function(){return e().legalReportText},
then:function(M){return _.v("div",null,_.v(_.Wh,{text:M,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"li");
mrW.idomCompat=!0;_.J_(mrW,"yt-report-form-confirmation-page-view-model",{props:{data:_.N6}});var ch2=_.y(function(G){var e=G.data;var r=function(){var M;return((M=_.a(e().inputBox,spa))==null?void 0:M.maxChars)||500},Z=function(){return e().flowStateKey||""},O=_.hI(_.un,Z);
G=_.lE(function(M){M=Object.assign({},O(),{flowFormState:{isValid:M.length<=r()},abuseReportFlowState:{userComments:M,navigationEnabled:!(M.length>r()),isReportFormDirty:!0}});_.uD().dispatch(_.g7("flowStateEntity",Z(),M))},150);
_.yY(function(){var M=Object.assign({},O(),{flowFormState:{isValid:!0}});_.uD().dispatch(_.g7("flowStateEntity",Z(),M))});
return _.v("yt-report-form-details-page-view-model",{class:function(){var M;return((M=_.a(O(),cq))==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.v("h1",{class:function(){var M;
return((M=_.a(O(),cq))==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return e().detailsPageHeader}),_.v("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.v(_.Wh,{text:function(){return e().bodyText}})),_.v("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.v(gI,{label:function(){var M;
return((M=_.a(e().inputBox,spa))==null?void 0:M.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var M;return{errorMessage:((M=_.a(e().inputBox,spa))==null?void 0:M.maxCharsExceededErrorMessage)||"",maxChars:r()}},
onInput:G})))},"mi");
ch2.idomCompat=!0;_.J_(ch2,"yt-report-form-details-page-view-model",{props:{data:_.N6}});var Y6C=_.y(function(G){var e=G.data;var r=function(){return e().flowStateKey||""},Z=_.hI(_.un,r),O=function(){return _.a(Z(),cq)};
return _.v("yt-report-form-reason-select-page-view-model",{class:function(){var M;return((M=O())==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.v("h1",{class:function(){var M;
return((M=O())==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return e().pageHeader}),_.v("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.v(_.Wh,{text:function(){return e().bodyText}})),_.v("div",{class:function(){var M;
return((M=O())==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.v(_.kFV,{data:function(){return _.a(e().radioButtonGroup,_.Yo)},
onSelected:function(M,T){M=Object.assign({},Z(),{abuseReportFlowState:Object.assign({},O(),{reasonKey:T.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:T.command})});_.nR(_.bt("flowStateEntity",r(),M))},
selectedKey:function(){var M;return(M=O())==null?void 0:M.reasonKey},
groupName:"report-form-reason-select-page"})))},"ni");
Y6C.idomCompat=!0;_.J_(Y6C,"yt-report-form-reason-select-page-view-model",{props:{data:_.N6}});var yh2=_.y(function(G){var e=G.data;var r,Z=(r=_.v_().resolve(_.bq(_.Ig)))==null?void 0:r();return _.v("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.v("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.v(_.nC,{data:function(){return Z&&e().imageDark?e().imageDark:e().image},
alt:""})),_.v("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.v("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return e().header}),_.v(_.Wh,{text:function(){return e().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"oi");
yh2.idomCompat=!0;_.J_(yh2,"yt-report-form-sign-in-page-view-model",{props:{data:_.N6}});_.J_(_.y(function(G){var e=G.data;var r=_.Eb(_.kdE.talkToRecsStateSelector),Z=function(){return e().titleSuperscript},O=function(){return e().answersShelf},M=function(){return e().videoShelf},T=function(){var Dq;
return(Dq=e().textInputPlaceholder)==null?void 0:Dq.content},E=function(){return e().showOpenTextInput},b=function(){var Dq;
return(Dq=e().textInputValue)==null?void 0:Dq.content},w=function(){return e().isMultiTurnFlow?e().resetButtonViewModel:void 0},q="",t=function(){return e().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
G=_.h(_.XQ("",void 0,"aCjEZb"));var g=G.next().value,l=G.next().value;G=_.h(_.XQ(!1,void 0,"VNSW6c"));var X=G.next().value,H=G.next().value,I=function(){return{state:X()||g()?"active":"disabled",disabled:!(X()||g())}};
_.YZ(function(){if(E()){b()&&l(b());var Dq;if(!w()&&((Dq=r())==null?0:Dq.stepStates)){var bF;Dq=Object.keys((bF=r())==null?void 0:bF.stepStates);bF=Dq[Dq.length-1];var Kf,ti;bF=(Kf=r().stepStates[bF])==null?void 0:(ti=Kf.userQuery)==null?void 0:ti.userQuery;_.nR(_.Xi2());bF&&C(bF)}}});
var C=function(Dq){var bF=e().onUpdateText;bF&&_.HQ(bF,{form:{userQuery:Dq}});l(Dq)},u=_.lE(function(Dq){C(Dq.target.value.trim())},150),P=_.ev(function(Dq){var bF;
q=(bF=Dq.target.value)==null?void 0:bF.trim();u(Dq);return!1}),F=_.ev(function(Dq){Dq.key==="Enter"&&(X()||g())&&(C(Dq.target.value.trim()),U());
return!1}),J=function(Dq,bF){H(bF);
if(bF){if(e().isMultiTurnFlow&&!q){var Kf;C((Kf=Dq==null?void 0:Dq.text)!=null?Kf:"")}e().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&U()}else l(q)},U=function(){var Dq=void 0,bF=_.a(e().nextButtonViewModel,_.G$),Kf,ti;
if(bF==null?0:(Kf=bF.loggingDirectives)==null?0:(ti=Kf.clientVeSpec)==null?0:ti.uiType){var Ry,nf;Dq=_.L1((Ry=bF.loggingDirectives)==null?void 0:(nf=Ry.clientVeSpec)==null?void 0:nf.uiType)}(bF=e().onNextStepCommand)&&_.HQ(bF,{clickedVisualElement:Dq})};
G=_.hT("yt-talk-to-recs-view-model");var e$={};return _.v("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:G},_.v("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.v(_.E2,{data:function(){return e().topCornerButton}},{buttonViewModel:_.wF})),_.v("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.v("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.v(_.Wh,{text:function(){return e().title}}),_.v(_.S,{cond:Z,
then:function(){return _.v("sup",{class:"ytwTalkToRecsSuperScript"},_.v(_.Wh,{text:Z}))}})),_.v("div",{class:"ytwTalkToRecsSubtitle"},_.v(_.Wh,{text:function(){return e().subtitle}})),_.v("div",{class:"ytwTalkToRecsResultsShelf"},_.v(_.S,{cond:O,
then:function(){return _.v(_.E2,{data:O},{chipsShelfViewModel:function(Dq){return _.v("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.v(_.Xu,{data:Dq.data,callback:J,selectionBehavior:t}))}})}}),_.v(_.S,{cond:M,
then:function(){return _.v(_.E2,{data:M},{horizontalShelfViewModel:function(Dq){return _.v("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.v(_.WP,{data:Dq.data,thumbnailAspectRatio:0}))}})}})),_.v("div",{class:_.LC("ytwTalkToRecsRefinementContainer",(e$.ytwTalkToRecsBottomMargin=function(){return e().isMultiTurnFlow},e$))},_.v(_.S,{cond:E,
then:function(){return _.v("div",{class:"ytwTalkToRecsUserInputBox"},_.v("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:T,value:g,"on:input":P,"on:keyup":F,maxlength:200}))}}),_.v(_.E2,{data:function(){return e().isMultiTurnFlow?e().nextButtonViewModel:void 0}},{buttonViewModel:function(Dq){return _.v("div",{class:"ytwTalkToRecsFlowControlButtons"},_.v(_.wF,{data:Dq.data,
buttonOverrides:I}))}}),_.v(_.E2,{data:w},{buttonViewModel:function(Dq){return _.v("div",{class:"ytwTalkToRecsFlowControlButtons"},_.v(_.wF,{data:Dq.data,
onClick:function(){var bF=_.a(e().resetButtonViewModel,_.G$);C(g());(bF=bF==null?void 0:bF.onTap)&&_.HQ(bF)}}))}}))))},"qi"),"yt-talk-to-recs-view-model",{props:{data:_.N6}});var fE8={sources:[{clientResource:{imageName:"CHECK"}}]};_.AhW=_.y(function(G){var e=_.hT("div");G=_.cx(G,{error:void 0});var r=G.data,Z=G.error,O=G.onSelected;G=_.h(_.Ob(function(){return dNo(r())}));
var M=G.next().value,T=G.next().value;IEm(r,function(g){T(g);var l,X,H=Hta((l=r().options)==null?void 0:(X=l[g])==null?void 0:X.value,r().type);O==null||O(H);e.value.focus()});
G=_.ev(function(){if(!r().disabled){var g=r(),l=M(),X=e.value;g.options&&(g=kU2(g.options,l,g.label),_.v_().resolve(_.nJ).openSheet({viewModel:g},X))}});
var E=_.Jj4(),b=function(){return!!Z()},w=function(){return!!r().disabled},q={},t={};
return _.v("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.v("div",{class:_.LC("ytDropdownViewModelDropdownContainer",(q.ytDropdownViewModelDropdownContainerErrorBorder=b,q.ytDropdownViewModelDropdownContainerDisabled=w,q)),"on:click":G,el:e,role:"combobox",tabindex:0,"on:keydown":E,"aria-invalid":b,"aria-disabled":w,"aria-describedby":function(){return b()?"dropdown-view-model-error":void 0}},_.v("div",{class:"ytDropdownViewModelText"},ouC(r,b,M),sd2(r,M)),_.v("div",{class:_.LC("ytDropdownViewModelChevronDown",
(t.ytDropdownViewModelChevronDownDisabled=w,t))},_.v(_.V$,{icon:"CHEVRON_DOWN"}))),Qd8(r,Z))},"ri");_.J_(_.y(function(G){var e=G.data;var r=function(O){var M=CY2(e());M.videoMetadata||(M.videoMetadata={});M.videoMetadata.sponsorshipsMetadata||(M.videoMetadata.sponsorshipsMetadata={});M.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(O)},Z=function(O){var M=CY2(e());
M.scheduledRedirectMetadata||(M.scheduledRedirectMetadata={});M.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(O)};
return _.v("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.v("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.v("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.v(_.Wh,{text:function(){return e().title}}),_.v(_.V$,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.v(_.Wh,{text:function(){return e().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.v(_.E2,{data:function(){return e().tierChoices}},{dropdownViewModel:function(O){return _.v("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.v(_.AhW,{data:O.data,
onSelected:r}))}}),_.v(_.E2,{data:function(){return e().startTimeChoices}},{dropdownViewModel:function(O){return _.v("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.v(_.AhW,{data:O.data,
onSelected:Z}))}}),_.v(_.Wh,{text:function(){return e().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.v("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.v(_.E2,{data:function(){return e().scheduleButton}},{panelFooterViewModel:_.qE})))},"si"),"ytfz-schedule-fanzone-view-model",{props:{data:_.N6}});_.J_(_.y(function(G){var e=G.data;G=G.className===void 0?"":G.className;var r=_.hI(amW,function(){return e().flowStateEntityKey||""}),Z={};
Z=_.LC("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 O={},M=_.LC("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",Z,(O.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},O.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},O));
O={};var T=_.LC("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",Z,(O.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},O.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},O));
Z={};Z=_.LC("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));
G=_.LC("ytFlowBottomBarViewModelHost",G);return _.v("yt-flow-bottom-bar-view-model",{class:G},_.v(_.S,{cond:function(){var E;return(E=e())==null?void 0:E.textSection},
then:function(E){return _.v("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.v(_.Wh,{text:E}))}}),_.v("div",{class:Z},_.v(_.E2,{data:function(){return e().secondaryButton}},{buttonViewModel:function(E){return _.v(_.wF,{data:E.data,
className:T})}}),_.v(_.E2,{data:function(){return e().primaryButton}},{buttonViewModel:function(E){return _.v(_.wF,{data:E.data,
className:M,buttonOverrides:function(){var b;return{disabled:!((b=r())==null||!b.primaryButtonDisabled)}}})}})))},"ti"),"yt-flow-bottom-bar-view-model",{props:{data:_.N6,
className:_.yb}});var FGH="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),lc=function(){var G=_.m.apply(this,arguments)||this;G.enableScrollingFix=!0;G.bottomBar=!1;G.fitContent=!1;return G};
_.K(lc,_.m);_.V=lc.prototype;_.V.ready=function(){_.R("enable_pdp_icon_prefetch")&&_.Rga(_.v_().resolve(_.Gl),0,FGH)};
_.V.focus=function(G){this.topBar?_.Os(this.topBar,G):this.paperDialog.focus(G)};
_.V.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19367_scroller&&(this.JSC$19367_scroller.dialogElement=this.paperDialog,this.JSC$19367_scroller.attached&&typeof this.JSC$19367_scroller.attached==="function"&&this.JSC$19367_scroller.attached())};
_.V.onDataChanged=function(){var G;this.fitContent=!((G=this.data)==null||!G.fitContent);var e;this.bottomBar=!((e=this.data)==null||!e.bottomBar)};
_.V.onProgressChanged=function(){var G,e,r=((e=(G=this.data)==null?void 0:G.progress)!=null?e:0)*100;this.progressElement.style.width=r+"%"};
_.V.isProgressHidden=function(){var G;return!((G=this.data)==null?0:G.progress)};
_.V.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(G){return G&&!G.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
lc.prototype.onProgressChanged=lc.prototype.onProgressChanged;lc.prototype.onDataChanged=lc.prototype.onDataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],lc.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],lc.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],lc.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],lc.prototype,"enableScrollingFix",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],lc.prototype,"bottomBar",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],lc.prototype,"fitContent",void 0);_.B([_.hs("#progress"),_.x("design:type",HTMLElement)],lc.prototype,"progressElement",void 0);_.B([_.hs("#scroller"),_.x("design:type",Object)],lc.prototype,"JSC$19367_scroller",void 0);_.B([_.hs("ytd-flow-top-bar-renderer"),_.x("design:type",HTMLElement)],lc.prototype,"topBar",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lc.prototype,"onDataChanged",null);_.B([_.Me("data.progress"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lc.prototype,"onProgressChanged",null);_.B([_.c({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],lc);
_.A(lc,"ytd-flow-step-renderer",function(){if(wnC!==void 0)return wnC;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return wnC=G},{mode:1});var Rx=function(G){this.resolveCommand=G;this.steps={}},JhW=function(G,e){e=_.h(e||[]);
for(var r=e.next();!r.done;r=e.next()){r=r.value;var Z=Object.values(r)[0],O=void 0;if((O=Z)==null?0:O.stepId)G.steps[Z.stepId]=r}},xrd=function(G,e){var r,Z,O,M,T;
return _.D(function(E){if((r=G.state)==null||!r.currentStepId)return E.return(void 0);Z=G.getCurrentStep();if(!Z)return E.return(BfC(G));if(O=_.a(Z,_.p6))G.logVEScreen(O),((M=O)==null?0:M.onStepStartCommand)&&G.resolveCommand((T=O)==null?void 0:T.onStepStartCommand,{});O&&e&&(G.logFlowEvent(O,e),e.steps&&!e.steps.includes(Z)&&e.steps.push(Z));return E.return(Z)})};
Rx.prototype.back=function(){var G;(G=this.state)!=null&&G.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
Rx.prototype.handleUpdateFlowCommand=function(G){G.steps&&JhW(this,G.steps);G.entityUpdateCommand&&this.resolveCommand(G.entityUpdateCommand,{});G.flowContinuationCommand&&(G=G.flowContinuationCommand)&&(this.getFlowContinuationCommand=G);this.awaitFlowContinuation&&(G=this.getCurrentStep(),this.awaitFlowContinuation(G),this.awaitFlowContinuation=void 0)};
Rx.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var BfC=function(G){return _.D(function(e){return G.getFlowContinuationCommand?e.return(new Promise(function(r){G.awaitFlowContinuation=r;G.getFlowContinuationCommand&&G.resolveCommand(G.getFlowContinuationCommand,{flow_state:G.state})})):e.return(Promise.resolve(void 0))})};
Rx.prototype.getCurrentStep=function(){var G;if((G=this.state)!=null&&G.currentStepId)return this.steps[this.state.currentStepId]};
Rx.prototype.logVEScreen=function(G){var e;((e=G.screenLoggingData)==null?0:e.screenVeType)&&_.aC(_.h_(),G.screenLoggingData.screenVeType)};
Rx.prototype.logFlowEvent=function(G,e){var r,Z,O,M;((r=e.flowLoggingData)==null?0:r.eventNamespace)&&((Z=G.flowEventData)==null?0:Z.eventType)&&((O=G.flowEventData)==null?0:O.eventMetadata)&&((M=e.flowLoggingData)==null?0:M.flowType)&&(G=_.eF(e.flowLoggingData.eventNamespace,G.flowEventData.eventType,G.flowEventData.eventMetadata),_.r0().logFlowEvent(G,e.flowLoggingData.flowType))};
_.iY.Object.defineProperties(Rx.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.state)==null?void 0:G.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.state)!=null&&G.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(e,r){r.key&&r.value&&(e[r.key]=r.value);return e},{})}}});var jo=function(){var G=_.m.apply(this,arguments)||this;G.flowState=_.R("web_use_flow_state_manager")?void 0:new Rx(function(e,r){r=r===void 0?{}:r;_.Ga.instance.resolveCommand(e,{form:{form:r,element:G.hostElement}})});
G.JSC$19378_flowStateManager=_.R("web_use_flow_state_manager")?_.v_().resolve(_.a7):void 0;G.currentTargetId="";G.initialState=!0;G.isLoading=!1;G.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"};G.containsTalkToRecs=!1;return G};
_.K(jo,_.m);_.V=jo.prototype;_.V.onPopupClosed=function(G){if(!G||this.hostElement===G.detail.popupRenderer){if(this.JSC$19378_flowStateManager){var e;((e=this.data)==null?0:e.flowStateEntityKey)&&this.JSC$19378_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.V.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"}}}};
_.V.focus=function(G){var e=this;_.oR(function(){var r=_.z1(e.hostElement).querySelector("ytd-flow-step-renderer");(r==null?0:r.topBar)?r.focus(G):e.topBar&&_.Os(e.topBar,G)},1)};
_.V.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.V.computeTopBarHidden=function(G){var e;return!((e=_.a(G,_.p6))==null||!e.topBarOverride)};
_.V.onCurrentFlowChange=function(){if(this.JSC$19378_flowStateManager&&this.data&&this.flow){var G=$zC(this.JSC$19378_flowStateManager,this.data),e;G&&((e=this.flow)==null?0:e.currentStepId)&&(tWV(G,this.flow.currentStepId),this.initialState=!1,this.isLoading=!this.currentFlowStep)}};
_.V.observeData=function(){var G=this;if(this.JSC$19378_flowStateManager){var e=this.currentTargetId,r,Z,O=(Z=(r=this.data)==null?void 0:r.targetId)!=null?Z:"";e!==O&&e&&SWo(this.JSC$19378_flowStateManager,e);this.currentTargetId=O;this.data&&qWa($zC(this.JSC$19378_flowStateManager,this.data),function(M){M&&(G.initialState=!1,G.currentFlowStep={flowStepRenderer:M},G.isLoading=!G.currentFlowStep,G.autofocusAndRefit(),G.updateContainsTalkToRecs(),G.logVEScreen(),G.logFlowEvent())})}};
_.V.dataChanged=function(){var G=this,e,r;return _.D(function(Z){if(Z.nextAddress==1){if(!G.flowState)return Z.return();((e=G.data)==null?0:e.steps)&&JhW(G.flowState,G.data.steps);if((r=G.data)==null?0:r.flowContinuationCommand){var O=G.flowState,M=G.data.flowContinuationCommand;M&&(O.getFlowContinuationCommand=M)}return Z.yield(xrd(G.flowState,G.data),2)}G.currentFlowStep=Z.yieldResult;_.HL(Z)})};
_.V.flowChanged=function(){var G=this,e;return _.D(function(r){if(r.nextAddress==1){if(!G.flowState||!G.flow)return r.return();G.flowState.state=G.flow;G.isLoading=!0;return r.yield(xrd(G.flowState,G.data),2)}e=r.yieldResult;if(!e||G.flow.isLoading)return r.return();G.currentFlowStep=e;G.initialState=!1;G.isLoading=!1;G.autofocusAndRefit();G.updateContainsTalkToRecs();_.HL(r)})};
_.V.logVEScreen=function(){var G,e,r=(G=_.a(this.currentFlowStep,_.p6))==null?void 0:(e=G.screenLoggingData)==null?void 0:e.screenVeType;r&&_.aC(_.v_().resolve(_.Qf),r)};
_.V.logFlowEvent=function(){var G=_.a(this.currentFlowStep,_.p6),e,r,Z,O,M,T;(this==null?0:(e=this.data)==null?0:(r=e.flowLoggingData)==null?0:r.eventNamespace)&&(this==null?0:(Z=this.data)==null?0:(O=Z.flowLoggingData)==null?0:O.flowType)&&(G==null?0:(M=G.flowEventData)==null?0:M.eventType)&&(G==null?0:(T=G.flowEventData)==null?0:T.eventMetadata)&&(G=_.eF(this.data.flowLoggingData.eventNamespace,G.flowEventData.eventType,G.flowEventData.eventMetadata),_.r0().logFlowEvent(G,this.data.flowLoggingData.flowType))};
_.V.updateContainsTalkToRecs=function(){var G,e=(G=_.a(this.currentFlowStep,_.p6))==null?void 0:G.content;this.containsTalkToRecs=!!e&&!!_.a(e,nyV)};
_.V.autofocusAndRefit=function(){var G=this,e=_.v_().resolve(_.bq(_.T6)),r=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),Z=document.querySelector("yt-report-form-confirmation-page-view-model"),O=document.querySelector("yt-report-form-details-page-view-model"),M=document.querySelector("yt-report-form-reason-select-page-view-model"),T=document.querySelector("yt-contributor-zero-state-view-model"),
E=document.querySelector("yt-structured-context-note-view-model"),b=document.querySelector("yt-note-view-model");(!r&&e&&e.isKeyBoardInUse()||Z||!r&&O||!r&&M||!r&&(T||E||b))&&_.Mh(this.hostElement);_.DE(this,function(){_.xy(G.hostElement,"yt-refit")})};
_.V.handleUpdateFlowCommand=function(G){this.flowState?this.data&&(G=_.a(G,_.rOn),G.targetId===this.data.targetId&&(G.flowContinuationCommand&&(this.data.flowContinuationCommand=G.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(G),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(G)};
_.V.handleFlowNextStepCommand=function(G){this.JSC$19378_flowStateManager?this.ytComponentBehavior.resolveCommand(G):this.data&&this.flow&&this.flow.key&&(G=_.a(G,_.Nhb),G.targetId===this.data.targetId&&(G=G.stepId||"",this.ytdReduxBehavior.dispatch(_.g7("flowStateEntity",this.flow.key,{currentStepId:G,stepIdStack:(this.flow.stepIdStack||[]).concat(G)}))))};
_.V.handleFlowPrevStepCommand=function(G){if(this.JSC$19378_flowStateManager)this.ytComponentBehavior.resolveCommand(G);else if(this.data&&this.flow&&this.flow.key&&(G=_.a(G,_.LiE),G.targetId===this.data.targetId)){var e=[].concat(_.mY(this.flow.stepIdStack||[]));e.length>1?(e.pop(),this.ytdReduxBehavior.dispatch(_.g7("flowStateEntity",this.flow.key,{currentStepId:e[e.length-1],stepIdStack:e}))):G.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(G.onFirstStepCommand)}};
_.V.handleYpcCancelRecurrenceCommand=function(G){if(this.data&&this.flow&&this.flow.key&&(G=_.a(G,Ab8),G.targetId===this.data.targetId&&G.endpointCommand)){var e=_.a(this.flow,FHV);e&&_.a(G.endpointCommand,_.vr3)&&(_.a(G.endpointCommand,_.vr3).feedbackData=e.surveyFeedback);this.ytComponentBehavior.resolveCommand(G.endpointCommand)}};
_.V.handlePartialUpdateFlowStateEntity=function(G){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.g7("flowStateEntity",this.flow.key,G,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
jo.prototype.flowChanged=jo.prototype.flowChanged;jo.prototype.dataChanged=jo.prototype.dataChanged;jo.prototype.observeData=jo.prototype.observeData;jo.prototype.onCurrentFlowChange=jo.prototype.onCurrentFlowChange;jo.prototype.onPopupClosed=jo.prototype.onPopupClosed;_.B([_.k(_.A5),_.x("design:type",Object)],jo.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],jo.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],jo.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],jo.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],jo.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],jo.prototype,"initialState",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],jo.prototype,"isLoading",void 0);_.B([_.n(),_.x("design:type",Object)],jo.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],jo.prototype,"currentFlowStep",void 0);_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],jo.prototype,"onPopupClosed",null);
_.B([_.n({selectorArgs:["data.flowStateEntityKey"],selector:amW}),_.x("design:type",Object)],jo.prototype,"flow",void 0);_.B([_.hs("ytd-flow-top-bar-renderer"),_.x("design:type",HTMLElement)],jo.prototype,"topBar",void 0);_.B([_.Me("data","flow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jo.prototype,"onCurrentFlowChange",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jo.prototype,"observeData",null);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],jo.prototype,"dataChanged",null);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],jo.prototype,"containsTalkToRecs",void 0);_.B([_.iD("flow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],jo.prototype,"flowChanged",null);_.B([_.c({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],jo);
_.PwH=_.xP()(jo,"ytd-flow-root-renderer",function(){if(vJ8!==void 0)return vJ8;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return vJ8=G},{mode:_.Px("kevlar_poly_si_batch_j025")?1:2});var UrV;var nq=null;_.J_(_.y(function(G){return _.v("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.v("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.v(_.Wh,{text:function(){return G.data().text}}),_.v("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"ui"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.N6}});var zTW=_.y(function(G){var e=G.playerControlsProps;var r=G.isShortsPage;return _.v("yt-bigboard",null,_.v(_.S,{cond:function(){return e().isDragging},
then:function(){return _.v("div",{class:"ytBigboardStoryboardHost"},_.v(_.uFC,{progressBarProps:e,isShortsPage:r}))}}))},"vi");
zTW.idomCompat=!0;_.ax={ACCOUNT_LABEL:mU("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:mU("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:mU("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:mU("AD_BADGE_HINT"),AD_BADGE_TEXT:mU("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:mU("ALL_CHANNELS_LABEL"),AMBIENT_MODE:mU("AMBIENT_MODE"),AMBIENT_MODE_OFF:mU("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:mU("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:mU("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:mU("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:mU("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:mU("APP_UPSELL_TITLE"),AUDIO_TRACK:mU("AUDIO_TRACK","Audio Track"),AUTONAV_TOGGLE:mU("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:mU("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:mU("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:mU("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:mU("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:mU("AUTO_ZOOM","Auto zoom"),BACK:mU("BACK"),CANCEL:mU("CANCEL"),CHANNEL_SWITCHER_LABEL:mU("CHANNEL_SWITCHER_LABEL"),CLOSE:mU("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:mU("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:mU("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:mU("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:mU("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:mU("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:mU("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:mU("COMMENT_MODAL_CONTENT"),CONFIRM_OK:mU("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:mU("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:mU("COPIED_TO_CLIPBOARD"),COPY:mU("COPY"),COPY_DEBUG_INFO:mU("COPY_DEBUG_INFO"),COPY_EMBED_CODE:mU("COPY_EMBED_CODE"),
COPY_LINK_LABEL:mU("COPY_LINK_LABEL"),COPY_VIDEO_URL:mU("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:mU("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:mU("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:mU("DELETE_FROM_DOWNLOADS"),DIALOG:mU("DIALOG"),DONE:mU("DONE"),DOWNLOAD:mU("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:mU("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:mU("FLAG_CONFIRM"),FLAG_CONTENT:mU("FLAG_CONTENT"),FLAG_LABEL:mU("FLAG_LABEL"),FLAG_TITLE:mU("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:mU("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:mU("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:mU("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:mU("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:mU("HIDE_SEARCH_FILTERS_LABEL"),HOME:mU("HOME","Home"),INVALID_RESPONSE_RECEIVED:mU("INVALID_RESPONSE_RECEIVED"),LIBRARY:mU("LIBRARY","Library"),LISTENING:mU("LISTENING"),LOADING:mU("LOADING"),LONG_PRESS_MIC_TO_SPEAK:mU("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:mU("LOOP"),MENU_DESKTOP:mU("MENU_DESKTOP"),
MENU_EXIT:mU("MENU_EXIT"),MENU_FEEDBACK:mU("MENU_FEEDBACK"),MENU_HELP:mU("MENU_HELP"),MENU_IMPRESSUM:mU("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:mU("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:mU("MENU_SETTINGS"),MENU_SIGN_IN:mU("MENU_SIGN_IN"),MENU_TITLE:mU("MENU_TITLE"),MENU_YOUR_DATA:mU("MENU_YOUR_DATA"),MORE_INFO:mU("MORE_INFO"),MORE_OPTIONS:mU("MORE_OPTIONS"),MUTE_VOLUME:mU("MUTE_VOLUME"),NEW_PLAYLIST:mU("NEW_PLAYLIST"),NEXT_VIDEO:mU("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:mU("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:mU("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:mU("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:mU("NOT_FOUND_TITLE"),NO_DOWNLOADS:mU("NO_DOWNLOADS"),NO_MIC_INPUT:mU("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:mU("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:mU("OOPS_MESSAGE"),OPEN_APP:mU("OPEN_APP"),OPEN_YOUTUBE:mU("OPEN_YOUTUBE"),PAUSE:mU("PAUSE"),PLAY:mU("PLAY"),PLAYER_CAPTION:mU("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:mU("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:mU("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:mU("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:mU("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:mU("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:mU("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:mU("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:mU("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:mU("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:mU("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:mU("PLAYER_MINIMIZE"),PLAYER_NEXT:mU("PLAYER_NEXT"),PLAYER_PAUSE:mU("PLAYER_PAUSE"),PLAYER_PLAY:mU("PLAYER_PLAY"),
PLAYER_PREVIOUS:mU("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:mU("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:mU("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:mU("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:mU("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:mU("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:mU("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:mU("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:mU("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:mU("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:mU("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:mU("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:mU("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:mU("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:mU("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:mU("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:mU("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:mU("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:mU("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:mU("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:mU("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:mU("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:mU("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:mU("PLAY_ALL"),PLEASE_FIX_ERRORS:mU("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:mU("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:mU("PREVIOUS_VIDEO"),PRIVACY_POLICY:mU("PRIVACY_POLICY"),RELOAD:mU("RELOAD"),REQUIRED_LABEL:mU("REQUIRED_LABEL"),SAVE_PLAYLIST:mU("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:mU("SCRUB_SLIDE_USER_EDU"),SEARCH:mU("SEARCH","Search"),
SEARCH_APPEND_LABEL:mU("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:mU("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:mU("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:mU("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:mU("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:mU("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:mU("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:mU("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:mU("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:mU("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:mU("SEEK_SLIDER"),SETTINGS_LABEL:mU("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:mU("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:mU("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:mU("SHOW_LESS"),SHOW_MORE:mU("SHOW_MORE"),SHOW_PLAYER_CONTROLS:mU("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:mU("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:mU("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:mU("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:mU("SIGN_IN_ON_WEB"),STABLE_VOLUME:mU("STABLE_VOLUME"),STABLE_VOLUME_OFF:mU("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:mU("STABLE_VOLUME_ON"),STATS_FOR_NERDS:mU("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:mU("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:mU("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:mU("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:mU("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:mU("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:mU("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:mU("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:mU("TIMESTAMP_SECONDS"),TOGGLE_OFF:mU("TOGGLE_OFF"),TOGGLE_ON:mU("TOGGLE_ON"),TRENDING:mU("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:mU("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:mU("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:mU("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:mU("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:mU("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:mU("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:mU("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:mU("VIDEO_LINK_LABEL")};var WG2=_.y(function(G){var e=G.playerApi;G=_.hT("button",function(Z){_.jl(Z,36843)});
var r=mU("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.v("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.v("button",{el:G,class:"ytPlayerControlsJumpForwardButtonButton",title:r,"aria-label":r,"on:click":_.ev(function(){_.aJ(36843);e&&e().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.v("span",null,_.v(_.V$,{icon:"FAST_FORWARD"}))))},"wi");var Nf2=_.y(function(G){var e=G.appApi;G=_.hT("button",function(Z){_.jl(Z,62946)});
var r=mU("OPEN_IN_MINIPLAYER");return _.v("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.v("button",{el:G,class:"ytMiniplayerButtonButton",title:r,"aria-label":r,"on:click":_.ev(function(){_.aJ(62946);var Z,O;(O=(Z=e()).openInMiniplayer)==null||O.call(Z);return!1})},_.v(_.V$,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"xi");var LGl=_.y(function(G){var e=G.playerApi;G=_.hT("button",function(M){_.jl(M,142812)});
var r=_.h(_.XQ(!1,void 0,"eOMRAb")),Z=r.next().value,O=r.next().value;r=function(){return mU("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(Z()?1:2)})};
return _.v("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.v("button",{el:G,class:"ytPlaybackSpeedButtonButton",title:r,"aria-label":r,"on:click":_.ev(function(){_.aJ(142812);if(e){var M=e(),T=Z();M.setPlaybackRate(T?1:2);O(!Z())}return!1})},_.v("span",null,_.v(_.V$,{icon:function(){return Z()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"yi");var G18=_.y(function(G){var e=G.title;var r=G.ariaLabel;var Z=G.icon;var O=G.command;var M=G.visualElementId;G=_.hT("button",function(T){M&&_.jl(T,M())});
return _.v("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.v("button",{el:G,class:"ytdThumbnailOverlayButtonButton",title:e,"aria-label":r,"on:click":_.ev(function(){M&&_.aJ(M());O&&_.v_().resolve(_.$1).resolveCommand(O())})},_.v(_.V$,{icon:Z})))},"zi");var dC="";var eDA=_.y(function(G){var e=G.playerControlsProps,r=G.onClickFn;G=_.dw(function(){var M=e(),T=-1;M.captionsAvailable&&(T=M.captionsEnabled?1:0);return T},void 0,"MZ0Wqe");
var Z=_.dw(function(){var M=e();return M.captionsAvailable?_.OK(M.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.OK("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),O=_.dw(function(){var M=e();
M=M.captionsAvailable?M.captionsEnabled:void 0;return M},void 0,"fhuQRe");
return _.v("yt-closed-captions-toggle-button",null,_.v(_.RsH,{captionIconType:G,ariaLabel:Z,ariaPressed:O,onClick:function(M){var T=e();if(T.captionsAvailable){var E=T.playerApi;if(E){var b=T.playerApi;if(b){var w=dC;if(w){b=b.getOption("captions","track");var q;dC=(q=b?b.displayName:null)!=null?q:w}else _.RJ(b)?(w=_.j1i(b),dC=w.length?(q=k2V(w))?q.displayName:w[0].displayName:""):dC=""}HMd(E);_.R("mweb_disable_set_state_captions_killswitch")&&T.setState({captionsEnabled:!T.captionsEnabled})}}var t,
g;(g=(t=T.appApi).showCaptionsToggleToast)==null||g.call(t,T);r==null||r(M)},
isOverlay:!0}))},"Ai");var rX8=_.y(function(G){var e=G.data;return _.v("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.v(_.PZ,{data:function(){return{type:17,text:_.Yxs(e().label)}}}))},"Bi");var ZaW=_.y(function(G){var e=_.LC("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return G.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return G.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return G.size()==="small"?G.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
G.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.v("animated-seek-arrows",{class:_.LC("ytPlayerControlsAnimatedSeekArrowsHost")},_.v("span",{class:e}),_.v("span",{class:e}),_.v("span",{class:e}))},"Ci");
ZaW.idomCompat=!0;var Oad=_.y(function(){var G=_.OK("PLAYER_SECONDS",{seconds_placeholder:"30"}),e=_.h(_.XQ(!1,void 0,"iRJu8c")),r=e.next().value,Z=e.next().value,O=_.h(_.XQ(!1,void 0,"MPnizf"));e=O.next().value;var M=O.next().value;O={};var T=_.LC("jumpForwardOverlayOverlay",(O.jumpForwardOverlayOverlayHidden=e,O));_.yY(function(){var E=null,b=null,w=function(){E!==null&&_.S0().cancelJob(E);b!==null&&_.S0().cancelJob(b);M(!0);Z(!0);_.za(_.S0(),function(){M(!1)});
E=_.za(_.S0(),function(){M(!0);b=_.za(_.S0(),function(){Z(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",w);_.yD(function(){window.removeEventListener("jump-forward-clicked",w)})});
return _.v("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.v(_.S,{cond:r,then:function(){return _.v("div",{class:T},_.v(ZaW,{direction:1,size:"large"}),_.v("div",null,G))}}))},"Di");var MFH=_.ax.MUTE_VOLUME,VF8=_.ax.UNMUTE_VOLUME,hDl=_.y(function(G){var e=G.muteIconType;var r=G.onClick;var Z=G.useOutlineIcon;var O=G.useDelhiIcons;G=_.hT("button",function(E){_.jl(E,28662)});
var M=function(){var E=e(),b=Z==null?void 0:Z(),w=O==null?void 0:O(),q="",t="";switch(E){case -1:case 0:q=b?"VOLUME_OFF":w?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";t=VF8;break;case 1:q=b?"VOLUME_UP_OUTLINE":w?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";t=MFH;break;case 2:q=b?"VOLUME_DOWN_OUTLINE":w?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";t=MFH;break;default:_.zC(E)}return{iconName:q,ariaLabel:t}},T=function(){return M().ariaLabel};
return _.v("ytm-mute-button",{class:"ytmMuteButtonHost"},_.v("button",{el:G,class:"ytmMuteButtonButton",title:T,"aria-label":T,"on:click":_.ev(function(E){_.aJ(28662);r==null||r(E);return!1})},_.v("span",null,_.v(_.V$,{icon:function(){return M().iconName}}))))},"Ei");var T0a=_.y(function(G){var e=G.volumeProps;var r=G.onClickFn;var Z=G.useOutlineIcon;var O=G.useDelhiIcons;return _.v("yt-mute-toggle-button",null,_.v(hDl,{muteIconType:function(){var M=e();return M.volumeMuted||M.volume===0?0:M.volume>50?1:2},
onClick:function(M){var T=e().playerApi;T&&(T.isMuted()?T.unMute():T.mute(!1));r==null||r(M)},
useOutlineIcon:function(){return!(Z==null||!Z())},
useDelhiIcons:function(){return!(O==null||!O())}}))},"Fi");
T0a.idomCompat=!0;var Dv2=_.y(function(G){var e=G.data;var r=_.hT("ytm-paid-content-overlay-renderer");return _.v("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:r,"on:animationend":_.ev(function(){r.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.v(_.Ds,{command:function(){return e().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.v(_.S,{cond:function(){var Z;return(Z=e().icon)==null?void 0:Z.iconType},
then:function(){return _.v("span",null,_.v(_.V$,{icon:function(){var Z;return(Z=e().icon)==null?void 0:Z.iconType}}))}}),_.v("div",{class:"ytmPaidContentOverlayText"},_.v(_.Wh,{text:function(){return e().text}})),_.v(_.S,{cond:function(){return e().navigationEndpoint},
then:function(){return _.v(_.V$,{icon:"CHEVRON_RIGHT"})}})))},"Gi");
Dv2.idomCompat=!0;var NEW=[].concat(_.mY([{register:function(G){var e=To2(G),r;(r=G().playerApi)==null||r.addEventListener("onVolumeChange",e);return function(){}}},
{register:function(G){var e=Dzl(G);G=G().playerApi;G==null||G.addEventListener("captionschanged",e);G==null||G.addEventListener("captionssettingschanged",e);G==null||G.addEventListener("onCaptionsTrackListChanged",e);return function(){}}}]),[{register:function(G){var e=OOd(G),r;
(r=G().playerApi)==null||r.addEventListener("onStateChange",e);return function(){}}},
{register:function(G){var e=MWV(G),r;(r=G().playerApi)==null||r.addEventListener("onPlaybackRateChange",e);return function(){}}},
{register:function(G){var e=VWH(G),r;(r=G().playerApi)==null||r.addEventListener("onVideoDataChange",e);return function(){}}},
{register:function(G){var e=hg8(G),r,Z;(r=G())==null||(Z=r.playerApi)==null||Z.addEventListener("onVideoProgress",e);return function(){}}}]);var ENH=_.y(function(G){var e=G.data;var r=function(){return _.OK("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+e().playbackRate})};
return _.v(_.S,{cond:function(){return e().playbackRate&&e().playbackRate!==1},
then:function(){return _.v("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.v("div",{class:"ytPlaybackRateOverlayOverlay"},_.v(ZaW,{direction:1,size:"small"}),_.v("div",{class:"ytPlaybackRateOverlayLabel"},r)))}})},"Ii");var iaW=_.y(function(G){var e=G.data;return _.v("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.v(_.S,{cond:function(){var r,Z=(r=e())==null?void 0:r.playerResponse,O;return Z==null?void 0:(O=Z.paidContentOverlay)==null?void 0:O.paidContentOverlayRenderer},
then:function(r){return _.v(Dv2,{data:r})}}))},"Ki"),ba8=_.y(function(G){var e=G.props;
var r=G.data;var Z=G.options;var O=function(){var w,q,t,g;return(w=r())==null?void 0:(q=w.playerResponse)==null?void 0:(t=q.playerConfig)==null?void 0:(g=t.inlinePlaybackConfig)==null?void 0:g.showAudioControls},M=function(){var w,q;
if(O()&&((w=Z())==null?void 0:(q=w.additionalButton)==null?void 0:q.button)!==void 0){var t,g,l;w=(t=r())==null?void 0:(g=t.playerApi)==null?void 0:(l=g.getSize())==null?void 0:l.height;if(!(w===void 0||w<180)){var X,H;return(X=Z())==null?void 0:(H=X.additionalButton)==null?void 0:H.button}}},T=function(){var w,q;
return(w=Z())==null?void 0:(q=w.additionalButton)==null?void 0:q.thumbnailOverlayButtonRenderers},E=function(){var w,q;
return(w=Z())==null?void 0:(q=w.additionalButton)==null?void 0:q.thumbnailOverlayButtonViewModels},b=function(){var w=[_.v(T0a,{volumeProps:e})],q;
((q=Z())==null?0:q.hideCaptionsToggleButton)||w.push(_.v(eDA,{playerControlsProps:e}));M()===1&&w.push(_.v(WG2,{playerApi:function(){return e().playerApi}}));
M()===2&&w.push(_.v(Nf2,{appApi:function(){return e().appApi}}));
M()===3&&w.push(_.v(LGl,{playerApi:function(){return e().playerApi}}));
q=T();if(M()===4&&q){q=_.h(q);for(var t=q.next(),g={};!t.done;g={tooltip$jscomp$2:void 0,ariaLabel$jscomp$19:void 0,icon$jscomp$50:void 0,command$jscomp$602:void 0},t=q.next()){t=t.value;g.tooltip$jscomp$2=t.tooltip;var l=void 0,X=void 0;g.ariaLabel$jscomp$19=((l=t.accessibility)==null?void 0:(X=l.accessibilityData)==null?void 0:X.label)||g.tooltip$jscomp$2;l=void 0;g.icon$jscomp$50=(l=t.icon)==null?void 0:l.iconType;g.command$jscomp$602=t.command;g.tooltip$jscomp$2&&g.ariaLabel$jscomp$19&&g.icon$jscomp$50&&
w.push(_.v(G18,{title:function(H){return function(){return H.tooltip$jscomp$2}}(g),
ariaLabel:function(H){return function(){return H.ariaLabel$jscomp$19}}(g),
icon:function(H){return function(){return H.icon$jscomp$50}}(g),
command:function(H){return function(){return H.command$jscomp$602}}(g)}))}}q=E();
if(M()===4&&q)for(q=_.h(q),t=q.next(),g={};!t.done;g={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$51:void 0,command$jscomp$603:void 0,trackingParamsVeType:void 0},t=q.next())t=t.value,g.tooltip$jscomp$3=t.title,g.ariaLabel$jscomp$20=t.accessibilityText||g.tooltip$jscomp$3,g.icon$jscomp$51=t.iconName,g.command$jscomp$603=_.X0(t.onTap),X=l=void 0,g.trackingParamsVeType=((l=t.loggingDirectives)==null?0:l.trackingParams)?(X=uRW(_.NU(t.loggingDirectives.trackingParams)))==null?void 0:
_.vp(X,2):void 0,g.tooltip$jscomp$3&&g.ariaLabel$jscomp$20&&g.icon$jscomp$51&&w.push(_.v(G18,{title:function(H){return function(){return H.tooltip$jscomp$3}}(g),
ariaLabel:function(H){return function(){return H.ariaLabel$jscomp$20}}(g),
icon:function(H){return function(){return H.icon$jscomp$51}}(g),
command:function(H){return function(){return H.command$jscomp$603}}(g),
visualElementId:function(H){return function(){return H.trackingParamsVeType}}(g)}));
return w};
return _.v(_.S,{cond:O,then:function(){return _.v("div",{class:"ytInlinePlayerControlsTopRightControls"},_.v(_.u6,{each:b},function(w){return _.v("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.v("div",{class:"ytInlinePlayerControlsButtonIcon"},w))}))}})},"Li"),$vl=_.y(function(G){var e=G.props;
var r=G.data;var Z=G.options;G={};G=_.LC("ytInlinePlayerControlsBottomRightControls",(G.ytInlinePlayerControlsBottomRightControlsHidden=function(){var O;return iOl(r(),Z())&&((O=Z())==null?void 0:O.insetProgressBar)&&(e().isHovering||e().isDragging)},G));
return _.v("div",{class:G},_.v(vNd,{data:r}),_.v(_.S,{cond:function(){var O;return!((O=Z())==null?0:O.hideTimeDisplay)},
then:function(){return _.v(w18,{props:e,data:r})}}))},"Mi"),vNd=_.y(function(G){var e=G.data;
return _.v(_.E2,{data:function(){var r;return zZW((r=e())==null?void 0:r.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:rX8})},"Ni"),w18=_.y(function(G){var e=G.props;
var r=G.data;return _.v(_.S,{cond:function(){return e().isLive},
then:function(){return _.v(SOC,{props:e,data:r})},
else:function(){return _.v(qOB,{props:e,data:r})}})},"Oi"),qOB=_.y(function(G){var e=G.props;
var r=G.data;var Z=_.dw(function(){var O;return WMY((O=r())==null?void 0:O.thumbnailOverlays)},void 0,"ynNL2");
return _.v("div",{class:_.LC("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.ax.PLAYER_TIME_ELAPSED+" "+_.xyy(e().playedTime)}},_.v(_.PZ,{data:function(){var O=_.xyy(e().videoDuration-e().playedTime);
return Object.assign({},{type:17,text:O},Z())}}))},"Pi"),tFH=_.y(function(G){G=G.badgeShapeData;
return _.v("div",{class:_.LC("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.v(_.PZ,{data:G}))},"Qi"),SOC=_.y(function(G){var e=G.data;
G=_.dw(function(){if(_.R("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var r,Z;return(r=e())==null?void 0:(Z=r.thumbnailOverlays)==null?void 0:Z.find(function(O){return O.thumbnailOverlayTimeStatusRenderer||O.thumbnailOverlayBadgeViewModel})}},void 0,"G9uE9b");
return _.v(_.S,{cond:G,then:function(r){return _.v(_.E2,{data:r},{thumbnailOverlayTimeStatusRenderer:function(Z){var O=Z.data;Z=_.dw(function(){return _.sny(O(),0)},void 0,"b9bSLb");
return _.v(tFH,{badgeShapeData:Z})},
thumbnailOverlayBadgeViewModel:function(Z){return _.v(_.ROb,{data:Z.data})}})},
else:function(){var r={type:18,text:_.ax.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.v(tFH,{badgeShapeData:function(){return r}})}})},"Ri"),gNW=_.y(function(G){var e=G.props;
var r=G.data;var Z=G.options;return _.v(_.A0W,{progressBarProps:e,config:function(){var O,M=_.a((O=r())==null?void 0:O.multiMarkersPlayerBar,_.mmE),T;O=((T=Z())==null?0:T.insetProgressBar)?2:1;var E;T=(E=Z())==null?void 0:E.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:O,chapterData:M,isInlinePlayback:!0,doSeekOnClick:T,playheadDotBehavior:T?1:0}}})},"Si");_.J_(_.y(function(G){var e=G.data;var r=G.appApi;var Z=G.options;var O=ZOl(e,EyC(r));G={};r={};return _.v("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.v("div",{class:_.LC("ytInlinePlayerControlsDarkenedOverlay",(G.ytInlinePlayerControlsDarkenedOverlayShow=function(){return O().isHovering},G))}),_.v(Oad,null),_.v(ENH,{data:O}),_.v(iaW,{data:e}),_.v(zTW,{playerControlsProps:O,
isShortsPage:!1}),_.v("div",{class:_.LC((r.ytInlinePlayerControlsControlsHidden=function(){return O().isDragging},r))},_.v(ba8,{props:O,
data:e,options:Z}),_.v($vl,{props:O,data:e,options:Z})),_.v(_.S,{cond:function(){return iOl(e(),Z())},
then:function(){return _.v(gNW,{props:O,data:e,options:Z})}}))},"Ji"),"yt-inline-player-controls",{props:{data:_.N6,
appApi:_.yb,options:_.N6}});var XD=function(){var G=_.m.apply(this,arguments)||this;G.opts=null;G.playerControlsData=null;G.playerControlsAppApi={openInMiniplayer:function(){G.openInMiniplayer()}};
G.playerControlsOptions={};G.noAnimation=!1;G.playbackIntentTriggered=!1;G.positionData=null;G.hidden=!0;G.active=!1;G.playing=!1;G.persistentPanelVisible=!1;G.videoPreviewDataIndex=0;G.JSC$19421_playerPromise=null;G.player=null;G.enableAudioControls=!1;G.hasBeenUnmuted=!1;G.captionsHaveBeenTurnedOff=!1;G.JSC$19421_playerEvents=new Map;G.videoPreviewFetchRequest=null;G.scheduledPreviewEndJobId=null;G.JSC$19421_preventProgressSaveTimer=null;G.watchEndpointStartTimeUpdaterInterval=null;G.actionMap=
{"yt-open-video-preview-action":"handleOpenVideoPreviewAction","yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};G.windowOnBlurFn=function(){G.deactivate()};
return G};
_.K(XD,_.m);_.V=XD.prototype;
_.V.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",
channelDisclosureViewModel:"yt-channel-disclosure-view-model"}}}};
_.V.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19421_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19421_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19421_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19421_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.ZQ(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.ZQ(this,this.onScroll))};
_.V.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.ZQ(this,this.onScroll))};
_.V.onPageTypeChange=function(){this.deactivate()};
_.V.onWindowResized=function(){this.deactivate()};
_.V.onPersistentPanelVisibleChange=function(){this.deactivate()};
_.V.onCaptionsChanged=function(G){G=!!G.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!G);this.setCaptionSize()};
_.V.setCaptionSize=function(){var G;if(this.active&&!this.captionsHaveBeenTurnedOff&&((G=this.player)==null?0:G.getCaptionWindowContainerId())){var e;(e=this.player)==null||e.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.V.currentPageAllowed=function(){return!this.isWatchPage};
_.V.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.R("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var G=this.positionData,e=G.initialTopPosition,r=G.initialHorizontalPosition;_.eD(this.hostElement,{"--ytd-video-preview-translate-left":G.finalHorizontalPosition-r+"px","--ytd-video-preview-translate-top":G.finalTopPosition-e+"px","--ytd-video-preview-original-top-position":e+
"px","--ytd-video-preview-original-horizontal-position":r+"px","--ytd-video-preview-initial-scale":"scale("+G.initialScale+")","--ytd-video-preview-width":G.videoPreviewWidth+"px","--ytd-video-preview-height":G.videoPreviewHeight+"px"});return!0};
_.V.isOutOfBounds=function(G){var e=G.initialHorizontalPosition+12;G=e+G.videoPreviewWidth>window.innerWidth;return e<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&e<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&e<72||G};
_.V.handleOpenVideoPreviewAction=function(G){var e=this,r;return _.D(function(Z){if(!e.currentPageAllowed())return Z.return(0);e.opts=G;return(r=e.alignVideoPreviewForAnimation(G.thumbnail))?Z.return(e.activate()):Z.return(0)})};
_.V.onMouseLeave=function(G){var e,r;(e=this.opts)==null||(r=e.mouseleaveCallback)==null||r.call(e);this.shouldDeactivateOnMouseLeave(G)&&this.deactivate()};
_.V.onScroll=function(){var G,e;((G=this.opts)==null?0:G.isAutoplay)&&((e=this.opts)==null?0:e.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.V.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.A0.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.V.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.V.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",XD.JSC$19420_DEFAULT_CLICK_LOCATION_BEHAVIOR,XD.JSC$19420_CLICK_LOCATION_ID_MAP)};
_.V.shouldDeactivateOnMouseLeave=function(G){G=G.relatedTarget;if(!G)return!0;var e;return(e=this.opts)!=null&&e.mediaRenderer?!_.W1(this.opts.mediaRenderer).contains(G):!0};
_.V.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.V.onPlaybackStart=function(){var G=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$19421_preventProgressSaveTimer=
_.za(_.A0,function(){G.resetPreventProgressSaveTimer()},1E4);
var e;if((e=this.opts)==null?0:e.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.za(_.A0,function(){G.hasMultipleVideoPreviews()?G.startPlaybackForNextVideo():G.deactivate()},this.opts.videoPreviewDurationMs);
var r;this.player.setGlobalCrop(((r=this.opts)==null?0:r.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.V.getRoundedCornersSize=function(){var G;if((G=this.opts)==null?0:G.roundedCornersSize){var e;return(e=this.opts)==null?void 0:e.roundedCornersSize}var r;if((r=this.opts)==null?0:r.enableRounding){var Z;if(((Z=this.opts)==null?void 0:Z.thumbnailSize)==="small")return 1;var O;if(((O=this.opts)==null?void 0:O.thumbnailSize)==="medium")return 2;var M;if(((M=this.opts)==null?void 0:M.thumbnailSize)==="large")return 3}return _.R("web_imp_inset_progress_bar")?3:0};
_.V.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.V.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.V.onMediaContainerClick=function(G){this.isShortcutClick(G)||(this.navigateToWatch(G),G.preventDefault(),G.stopPropagation())};
_.V.activate=function(){var G=this,e,r,Z,O,M,T,E,b,w;return _.D(function(q){switch(q.nextAddress){case 1:if(!G.currentPageAllowed())return q.return(0);r=(e=G.videoPreviewData)==null?void 0:e.inlinePlaybackEndpoint;Z=_.Q$.instance;if(!r||!Z)return q.return(0);G.playbackIntentTriggered=!0;((O=G.opts)==null?0:O.mediaRenderer)&&((M=G.opts)==null||!M.isAutoplay)&&BEA(G.opts.mediaRenderer,function(){G.deactivate()});
_.DE(G,function(){G.revealPreviewUi()});
T={};_.R("enable_unknown_lact_fix_on_html5")&&(_.v_().resolve(_.bZ),T.lact=_.bj());G.videoPreviewFetchRequest=cPA(Z,G.getInlinePlaybackRequestData(G.videoPreviewData),T);_.jr(q,2);return q.yield(G.videoPreviewFetchRequest,4);case 4:E=q.yieldResult;if(((b=E)==null?void 0:(w=b.playabilityStatus)==null?void 0:w.status)==="OK")return q.return(G.handlePlayerResponse(E));throw Error("fk");case 2:_.k5(q),G.deactivate();case 3:return q.return(1)}})};
_.V.getInlinePlaybackRequestData=function(G){var e,r=_.R("web_imp_player_mute_params")?((e=this.opts)==null?void 0:e.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:G.inlinePlaybackEndpoint,startPlaybackInMutedState:r}};
_.V.handlePlayerResponse=function(G){var e=this,r,Z,O,M,T,E,b,w,q,t,g,l,X,H;return _.D(function(I){if(I.nextAddress==1){r=e.getInlinePlaybackVideoId();if(!(((Z=G)==null?0:(O=Z.videoDetails)==null?0:O.videoId)&&e.currentPageAllowed()&&e.playbackIntentTriggered&&e.opts&&r))return e.deactivate(),I.return(0);if(G.videoDetails.videoId!==r)return I.return(0);e.enableAudioControls=!!((M=G.playerConfig)==null?0:(T=M.inlinePlaybackConfig)==null?0:T.showAudioControls);G.trackingParams=e.getInlinePlaybackTrackingParams();
if(!e.inlinePlayer)return I.return(0);E={};if(w=_.a((b=e.videoPreviewData)==null?void 0:b.inlinePlaybackEndpoint,_.u4))E.watch_endpoint=w;if(e.videoPreviewData){var C,u=(C=_.a(e.videoPreviewData.inlinePlaybackEndpoint,_.u4))==null?void 0:C.startTimeSeconds;u!==void 0&&(G.playerConfig||(G.playerConfig={}),G.playerConfig.playbackStartConfig||(G.playerConfig.playbackStartConfig={}),G.playerConfig.playbackStartConfig.startPosition||(G.playerConfig.playbackStartConfig.startPosition={}),G.playerConfig.playbackStartConfig.startSeconds=
u,G.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(u*1E3))}e.inlinePlayer.loadVideoWithPlayerResponse(G,E);if(e.JSC$19421_playerPromise)return I.jumpTo(2);e.JSC$19421_playerPromise=e.inlinePlayer.getPlayerPromise();return I.yield(e.JSC$19421_playerPromise,3)}I.nextAddress!=2&&(q=I.yieldResult,q.setInlinePreview(!0),t=!_.R("web_imp_theater_bugfix"),q.setSizeStyle(!1,t),e.ytPlayerListenerBehavior.listenToPlayerEvents(q,e.JSC$19421_playerEvents),e.player=q,_.xy(e.hostElement,
"player-api-ready"));((g=e.opts)==null?0:g.showPlayerControls)&&e.videoPreviewData&&e.player&&(e.playerControlsData={playerResponse:G,isInlinePlayback:!0,thumbnailOverlays:e.videoPreviewData.thumbnailOverlays,playerApi:e.player},e.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!e.unroundCornersForPlayback,additionalButton:e.getAdditionalButtonType(e.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(l=e.opts)==null?void 0:l.hideTimeDisplay,hideScrubbingControls:(X=e.opts)==
null?void 0:X.hideScrubber,hideCaptionsToggleButton:(H=e.opts)==null?void 0:H.hideCaptionsToggleButton});return I.return(2)})};
_.V.revealPreviewUi=function(){var G=this;this.playbackIntentTriggered&&_.SiN(this,function(){G.hasThumbnailPositionChangedSinceTriggered()||(G.updateActiveState(!0),G.noAnimation=!1)})};
_.V.hasThumbnailPositionChangedSinceTriggered=function(){var G=this.positionData,e=this.getThumbnailPositionData();return(G==null?void 0:G.initialTopPosition)!==(e==null?void 0:e.initialTopPosition)||(G==null?void 0:G.initialHorizontalPosition)!==(e==null?void 0:e.initialHorizontalPosition)};
_.V.getThumbnailPositionData=function(){var G,e;if((e=this.opts)==null||!e.thumbnail)return null;e=this.opts.thumbnail;var r=((G=this.opts)==null?0:G.cropPlayerToFillThumbnailHorizontally)?!1:!0;var Z=e.getBoundingClientRect();G=Z.width;e=Z.height;var O=Z.top+window.scrollY;Z=Z.left+window.scrollX;var M=r?Math.ceil(G):G;r=r?Math.ceil(e):e;var T=G/M;G={initialScale:T,initialTopPosition:O-12*T,finalTopPosition:O-12-(r-e)/2,initialHorizontalPosition:Z-(12+(M-G)/2),finalHorizontalPosition:Z-12-(M-G)/
2,videoPreviewWidth:M,videoPreviewHeight:r};return G};
_.V.updateActiveState=function(G){this.active=G;this.ytdReduxBehavior.dispatch(_.UK({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:G}))};
_.V.stopPlayer=function(G){G=G.resetWatchEndpointStartTime===void 0?!1:G.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(G)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.A0.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.V.deactivate=function(G){G=G===void 0?{}:G;G=G.resetWatchEndpointStartTime===void 0?!1:G.resetWatchEndpointStartTime;nq&&(nq.disconnect(),nq=null);this.stopPlayer({resetWatchEndpointStartTime:G});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.V.isValidThumbnailOverlayButton=function(G,e){G=G.thumbnailOverlayButtonRenderer;var r;return!!G&&!!G.tooltip&&!((r=G.icon)==null||!r.iconType)&&e.includes(G.icon.iconType)};
_.V.isValidThumbnailOverlayButtonViewModel=function(G,e){var r;G=_.a((r=G.thumbnailOverlayButtonViewModel)==null?void 0:r.overlayButton,_.G$);return!!G&&!!G.title&&!!G.iconName&&e.includes(G.iconName)};
_.V.getAdditionalButtonType=function(G){var e=this;if(_.R("web_imp_fastforward_button"))return{button:1};if(_.R("web_imp_miniplayer_button"))return{button:2};if(_.R("web_imp_playback_speed_button"))return{button:3};var r=["BOX_STACK_3"],Z=(G||[]).filter(function(M){return e.isValidThumbnailOverlayButton(M,r)}).map(function(M){return M.thumbnailOverlayButtonRenderer});
if(Z.length)return{button:4,thumbnailOverlayButtonRenderers:Z};var O=["BOX_STACK_3"];G=(G||[]).filter(function(M){return e.isValidThumbnailOverlayButtonViewModel(M,O)}).map(function(M){return _.a(M.thumbnailOverlayButtonViewModel.overlayButton,_.G$)});
if(G.length)return{button:4,thumbnailOverlayButtonViewModels:G}};
_.V.allowCaptions=function(){var G;return!((G=this.opts)==null?0:G.forceCaptionsOff)};
_.V.allowUnmuting=function(){var G;return this.enableAudioControls&&!((G=this.opts)==null?0:G.forceMutedVolume)};
_.V.beginStartTimeUpdater=function(){var G=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.aZ(function(){G.updateWatchEndpointStartTime()},1E3)};
_.V.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.V.resetPreventProgressSaveTimer=function(){this.JSC$19421_preventProgressSaveTimer!==null&&(_.A0.cancelJob(this.JSC$19421_preventProgressSaveTimer),this.JSC$19421_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.V.updateWatchEndpointStartTime=function(G){var e=this.videoPreviewData;if(this.player&&e!=null&&e.inlinePlaybackEndpoint&&!this.JSC$19421_preventProgressSaveTimer){G=G?0:Math.floor(this.player.getCurrentTime());var r=_.a(e.navigationEndpoint,_.u4);r&&(r.startTimeSeconds=G);if(e=_.a(e.inlinePlaybackEndpoint,_.u4))e.startTimeSeconds=G}};
_.V.isShortcutClick=function(G){return!!G&&(G.ctrlKey||G.shiftKey||G.metaKey)};
_.V.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.V.openInMiniplayer=function(){var G=this,e,r;return _.D(function(Z){if(Z.nextAddress==1){r=(e=G.videoPreviewData)==null?void 0:e.navigationEndpoint;if(!r)return Z.return();_.sI().lockupActivation=!0;return Z.yield(_.c7j(_.v_().resolve(_.fp),r),2)}_.sI().userActivation=!0;_.HL(Z)})};
_.V.navigateToWatch=function(G){var e,r=(e=this.videoPreviewData)==null?void 0:e.navigationEndpoint;if(r){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(r,G,!0);else{var Z;_.R("web_thumbnail_to_watch_transition")&&((Z=this.opts)==null?0:Z.thumbnail)&&_.uUW(_.v_().resolve(_.oY),this.opts.thumbnail);_.xy(this.hostElement,"yt-navigate",{endpoint:r})}this.deactivate()}};
_.V.getInlinePlaybackVideoId=function(){var G,e;return(e=_.a((G=this.videoPreviewData)==null?void 0:G.inlinePlaybackEndpoint,_.u4))==null?void 0:e.videoId};
_.V.getInlinePlaybackTrackingParams=function(){var G,e;return(G=this.videoPreviewData)==null?void 0:(e=G.inlinePlaybackEndpoint)==null?void 0:e.clickTrackingParams};
_.V.hasMultipleVideoPreviews=function(){var G;return!!(((G=this.opts)==null?0:G.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.V.startPlaybackForNextVideo=function(){var G;(G=this.opts)!=null&&G.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())};
_.iY.Object.defineProperties(XD.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.opts)==null?0:G.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.opts)==null||!G.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 G;if(Array.isArray((G=this.opts)==null?void 0:G.videoPreviewData)){var e;return(e=this.opts)==null?void 0:e.videoPreviewData[this.videoPreviewDataIndex]}var r;return(r=this.opts)==null?void 0:r.videoPreviewData}}});
XD.prototype.onIsAdsVideoChange=XD.prototype.onIsAdsVideoChange;XD.prototype.onInlinePreviewIsEnabledChange=XD.prototype.onInlinePreviewIsEnabledChange;XD.prototype.optsChanged=XD.prototype.optsChanged;XD.prototype.onMouseLeave=XD.prototype.onMouseLeave;XD.prototype.onPersistentPanelVisibleChange=XD.prototype.onPersistentPanelVisibleChange;XD.JSC$19420_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);
XD.JSC$19420_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"}];_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],XD.prototype,"actionHandlerBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],XD.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.GJ.YtPlayerListenerBehavior),_.x("design:type",_.ew)],XD.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.k(_.UN.YtdGuideStateAwareBehavior),_.x("design:type",Object)],XD.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],XD.prototype,"componentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],XD.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.A5),_.x("design:type",Object)],XD.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.TJ.YtSparklesClickLocationBehavior),_.x("design:type",Object)],XD.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],XD.prototype,"opts",void 0);_.B([_.n(),_.x("design:type",Object)],XD.prototype,"playerControlsData",void 0);_.B([_.n(),_.x("design:type",Object)],XD.prototype,"playerControlsAppApi",void 0);
_.B([_.n(),_.x("design:type",Object)],XD.prototype,"playerControlsOptions",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],XD.prototype,"noAnimation",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],XD.prototype,"hidden",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],XD.prototype,"active",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],XD.prototype,"playing",void 0);
_.B([_.n({selector:_.u3F}),_.x("design:type",Boolean)],XD.prototype,"inlinePreviewIsEnabled",void 0);_.B([_.n(),_.x("design:type",String)],XD.prototype,"pagePath",void 0);_.B([_.n({selector:_.Iss}),_.x("design:type",Boolean)],XD.prototype,"isWatchPage",void 0);_.B([_.n({selector:_.oH.persistentPanelVisibleSelector}),_.x("design:type",Object)],XD.prototype,"persistentPanelVisible",void 0);
_.B([_.d("videoPreviewData"),_.x("design:type",Object),_.x("design:paramtypes",[])],XD.prototype,"thumbnailData",null);_.B([_.d("opts","active"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],XD.prototype,"hidePlayerControls",null);_.B([_.d("opts"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],XD.prototype,"isAdsVideo",null);
_.B([_.d("opts"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],XD.prototype,"roundedCornersSmall",null);_.B([_.d("opts"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],XD.prototype,"roundedCornersMedium",null);_.B([_.d("opts"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],XD.prototype,"roundedCornersLarge",null);
_.B([_.d("opts"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],XD.prototype,"unroundCornersForPlayback",null);_.B([_.d("opts","videoPreviewDataIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],XD.prototype,"videoPreviewData",null);_.B([_.n(),_.x("design:type",Object)],XD.prototype,"videoPreviewDataIndex",void 0);_.B([_.hs("#inline-player"),_.x("design:type",Object)],XD.prototype,"inlinePlayer",void 0);
_.B([_.Me("persistentPanelVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XD.prototype,"onPersistentPanelVisibleChange",null);_.B([_.Om("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[MouseEvent]),_.x("design:returntype")],XD.prototype,"onMouseLeave",null);_.B([_.iD("opts"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XD.prototype,"optsChanged",null);
_.B([_.iD("inlinePreviewIsEnabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XD.prototype,"onInlinePreviewIsEnabledChange",null);_.B([_.Me("isAdsVideo"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XD.prototype,"onIsAdsVideoChange",null);_.B([_.c({is:"ytd-video-preview",disableElementRegistration:!0})],XD);
_.A(XD,"ytd-video-preview",function(){if(UrV!==void 0)return UrV;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return UrV=G},{mode:2});
}catch(e){_._DumpException(e)}
try{
var pLt,C7X,uaZ;pLt=function(G){return _.R("kevlar_watch_cinematics_invisible")||G.fullscreen&&_.R("kevlar_watch_cinematics_invisible_in_fullscreen")||G.theater&&!G.fullscreen&&_.R("kevlar_watch_cinematics_invisible_in_theater")};
C7X=function(){var G=document.createElement("canvas"),e=G.getContext("2d");if(!e)throw Error("Oo");_.Cl(G,{position:"absolute",width:"100%",height:"100%"});return{element:G,context:e}};
uaZ=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.R("kevlar_watch_cinematics_css_blur")};
_.n5t=function(G,e,r){return Math.abs(G-e)<=(r||1E-6)};
_.mgy=function(G,e){return G==e?!0:G&&e?G.width==e.width&&G.height==e.height:!1};_.c6w=new _.L9("notificationActionRenderer");var Yft=function(G){var e=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.G1;this.element.addEventListener("load",function(){e.loaded=!0;e.resolver.resolve(e.element)});
this.element.addEventListener("error",function(){e.failed=!0});
this.element.src=G};var y6w=function(G,e){this.image=G;this.frame=e};
y6w.prototype.drawToCanvas=function(G,e){var r=this.frame.width/this.frame.columns,Z=this.frame.height/this.frame.rows,O=e.offsetX,M=e.offsetY;pLt(e)?(G.fillStyle=e.fullscreen?"#000":"#0f0f0f",G.fillRect(O,M,(e==null?void 0:e.width)||r,(e==null?void 0:e.height)||Z)):G.drawImage(this.image,this.frame.column*r,this.frame.row*Z,r,Z,O,M,(e==null?void 0:e.width)||r,(e==null?void 0:e.height)||Z)};
var A6t=function(G){this.color=G};
A6t.prototype.drawToCanvas=function(G,e){var r=e.offsetX,Z=e.offsetY,O=e.width,M=e.height;G.fillStyle=pLt(e)?e.fullscreen?"#000":"#0f0f0f":this.color;G.fillRect(r,Z,O,M)};var $Y=function(G,e){_.Ar.call(this);this.playerApi=e;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.kf(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();FY2(this,G);J6z(this);this.update()};
_.K($Y,_.Ar);$Y.prototype.addEventListeners=function(){var G=this,e=function(){G.update()},r=function(O){G.paused||(O.type==="newdata"&&(G.mosaics.clear(),BP_(G),S3(G)),J6z(G),G.update())},Z=function(){G.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",e);this.playerApi.addEventListener("onVideoDataChange",r);this.playerApi.addEventListener("onStateChange",Z);this.addOnDisposeCallback(function(){G.playerApi.removeEventListener("onVideoProgress",e);G.playerApi.removeEventListener("onVideoDataChange",r);G.playerApi.removeEventListener("onStateChange",Z)})};
var FY2=function(G,e){G.cinematicContainerRenderer!==e&&(G.cinematicContainerRenderer=e,BP_(G),S3(G),G.colorStoreUpdateJobId=_.A0.addLowPriorityJob(function(){var r;if((r=G.cinematicContainerRenderer.colorStore)!=null&&r.sampledColors){r=Infinity;for(var Z=_.h(G.cinematicContainerRenderer.colorStore.sampledColors),O=Z.next();!O.done;O=Z.next()){O=O.value;var M=Number(O.key);M!==0&&M<r&&(r=M);M=_.jF(O.value);G.colorStore.set(O.key,M)}G.colorStoreTimeInterval=r}}))},BP_=function(G){G.colorStoreUpdateJobId&&
(_.A0.cancelJob(G.colorStoreUpdateJobId),G.colorStoreUpdateJobId=void 0);
G.colorStore.clear();G.currentStoryboardColor=void 0},xgw=function(G,e){var r;
return(r=G.getStoryboardFrame(e))==null?void 0:r.url};
$Y.prototype.onPlayerStateChange=function(){this.update()};
$Y.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var J6z=function(G){var e=G.getStoryboardFrame(0);e&&(e=new _.kf(e.width/e.columns,e.height/e.rows),_.mgy(G.currentStoryboardSize,e)||(G.currentStoryboardSize=e,G.publish("STORYBOARD_SIZE_CHANGED",G.currentStoryboardSize)))},P7k=function(G,e){G.currentStoryboardIndex=e;
G.pendingStoryboardIndex=NaN;e=G.getStoryboardFrame(G.currentStoryboardIndex);G.currentStoryboard=new y6w(G.mosaics.get(e.url).element,e);G.publish("STORYBOARD_CHANGED",G.currentStoryboard);G.lastUpdateTime=(0,_.vG)()};
$Y.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var S3=function(G){G.currentStoryboardIndex=NaN;G.pendingStoryboardIndex=NaN;G.currentStoryboard&&(G.currentStoryboard=void 0,G.publish("STORYBOARD_CHANGED",void 0));G.lastUpdateTime=NaN};
$Y.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)S3(this);else{var G=this.playerApi.getPlayerState(1);if(G===-1||G===5||G===0)S3(this);else if(isNaN(this.lastUpdateTime)||!((0,_.vG)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(G=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){G=""+Math.round(G*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var e=this.colorStore.get(G);e?e!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=e,this.currentStoryboard=new A6t(e),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.vG)()):(_.FH(new _.Cr("Could not find color for timestamp: "+G,this.cinematicContainerRenderer)),S3(this))}else S3(this);else Ug$(this,G)}};
var Ug$=function(G,e){var r=G.getStoryboardFrameIndex(e);if(r!==G.currentStoryboardIndex&&r!==G.pendingStoryboardIndex){e=xgw(G,r);var Z=G.mosaics.get(e);Z?Z.loaded&&P7k(G,r):(G.pendingStoryboardIndex=r,r=new Yft(e),G.mosaics.set(e,r),r.resolver.promise.then(function(){if(!G.isDisposed()&&!G.paused&&!isNaN(G.pendingStoryboardIndex)){var O=xgw(G,G.pendingStoryboardIndex);if(O){var M;(M=G.mosaics.get(O))!=null&&M.loaded&&P7k(G,G.pendingStoryboardIndex)}else S3(G)}}))}};
$Y.prototype.getStoryboardFrameIndex=function(G){var e=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(G,e)};
$Y.prototype.getStoryboardFrame=function(G){var e=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,r,Z;return((Z=(r=this.playerApi).getStoryboardFrame)==null?void 0:Z.call(r,G,e))||null};
$Y.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var t7=function(G,e,r,Z){Z=Z===void 0?!1:Z;_.pB.call(this);this.cinematicContainerRenderer=e;this.playerApi=r;this.theater=this.fullscreen=!1;var O;this.ambientLightThemeEnabled=!Z&&!!(e==null?0:(O=e.config)==null?0:O.enableInLightTheme);this.ambientFullscreenEnabled=Z&&_.R("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=Z&&_.R("web_cinematic_theater_mode");this.container=document.createElement("div");G.appendChild(this.container);var M;if(_.R("web_cinematic_theater_mode")||_.R("web_cinematic_fullscreen")||
(e==null?0:(M=e.config)==null?0:M.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);z1j(this);G=this.ambientV2Container||this.container;this.backCanvas=C7X();this.frontCanvas=C7X();G.appendChild(this.backCanvas.element);G.appendChild(this.frontCanvas.element);this.storyboardManager=new $Y(e,this.playerApi);_.Xx(this,this.storyboardManager);this.addEventListeners();WYy(this)?NP$(this,100+qP(this)*3*2,100+qP(this)*3*2):LY$(this);
GVZ(this,this.storyboardManager.currentStoryboard)};
_.K(t7,_.pB);var z1j=function(G){G.ambientV2Container?eGz(G):(_.Cl(G.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+rx$(G)+", "+ZNZ(G)+")"}),uaZ()&&_.Cl(G.container,"filter","blur("+_.qt("cinematic_watch_css_filter_blur_strength",40)+"px)"))},eGz=function(G){if(G.ambientV2Container){var e=G.playerApi.getVideoAspectRatio();
_.Cl(G.container,{"aspect-ratio":""+e,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.Cl(G.ambientV2Container,{"aspect-ratio":""+e,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+rx$(G)+", "+ZNZ(G)+")"});uaZ()&&_.Cl(G.ambientV2Container,"filter","blur("+_.qt("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
t7.prototype.setFullscreen=function(G,e){this.fullscreen=G;this.theater=!!e;z1j(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),G=this.storyboardManager.currentStoryboard,ONZ(this),G&&Mzt(this,G)};
t7.prototype.addEventListeners=function(){var G=this,e=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(O){GVZ(G,O)}),r=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){LY$(G)});
this.addOnDisposeCallback(function(){G.storyboardManager.unsubscribeByKey(e);G.storyboardManager.unsubscribeByKey(r)});
if(this.ambientV2Container){var Z=function(){eGz(G)};
this.playerApi.addEventListener("onVideoDataChange",Z);this.addOnDisposeCallback(function(){G.playerApi.removeEventListener("onVideoDataChange",Z)})}};
var LY$=function(G){if(!WYy(G)){var e=G.storyboardManager.currentStoryboardSize;isNaN(e.width)||isNaN(e.height)||NP$(G,Number(e.width)+qP(G)*3*2,Number(e.height)+qP(G)*3*2)}},NP$=function(G,e,r){G.backCanvas.element.width=e;
G.backCanvas.element.height=r;G.frontCanvas.element.width=e;G.frontCanvas.element.height=r},WYy=function(G){return G.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},GVZ=function(G,e,r){r=r===void 0?!1:r;
var Z=G.frontCanvas.element.getAnimations()[0];Z?(Z.pause(),G.backCanvas.context.globalAlpha=Number(getComputedStyle(G.frontCanvas.element).opacity),G.frontCanvas.element.style.opacity="0",Z.finish()):G.backCanvas.context.globalAlpha=1;G.backCanvas.context.drawImage(G.frontCanvas.element,0,0,G.backCanvas.element.width,G.backCanvas.element.height);ONZ(G);e&&Mzt(G,e);e=e?G.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.qt("cinematic_watch_fade_out_duration",500);Z=_.qt("cinematic_watch_transition_frame_rate")/
1E3;var O={};Z&&(O={easing:"steps("+Math.round(e*Z)+")"});(r===void 0?0:r)||G.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:e,iterations:1},O));G.frontCanvas.element.style.opacity="1"},ONZ=function(G){var e=G.ambientLightThemeEnabled||G.ambientTheaterModeEnabled,r=G.ambientLightThemeEnabled||G.ambientFullscreenEnabled;
G.frontCanvas.context.fillStyle=G.theater&&e||G.fullscreen&&r?"#000":"#0f0f0f";uaZ()||(G.frontCanvas.context.filter="blur(0)");G.frontCanvas.context.fillRect(0,0,G.frontCanvas.element.width,G.frontCanvas.element.height)},Mzt=function(G,e){uaZ()||(G.frontCanvas.context.filter="blur("+qP(G)+"px)");
G.frontCanvas.context.globalAlpha=G.fullscreen&&G.ambientFullscreenEnabled||G.theater&&G.ambientTheaterModeEnabled?_.qt("cinematic_watch_effect_letterbox_opacity",.4):_.qt("cinematic_watch_effect_opacity",.4);var r={offsetX:qP(G)*3,offsetY:qP(G)*3,theater:G.theater,fullscreen:G.fullscreen};WYy(G)&&(r.width=100,r.height=100);e.drawToCanvas(G.frontCanvas.context,r);G.frontCanvas.context.globalAlpha=1},qP=function(G){var e;
return(e=G.cinematicContainerRenderer.config.blurStrength)!=null?e:5},rx$=function(G){var e,r;
if((G.fullscreen||G.theater)&&((e=G.cinematicContainerRenderer.config)==null?0:(r=e.watchFullscreenConfig)==null?0:r.colorSourceWidthMultiplier))return G.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var Z;return(Z=G.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?Z:G.cinematicContainerRenderer.config.colorSourceSizeMultiplier},ZNZ=function(G){var e,r;
if((G.fullscreen||G.theater)&&((e=G.cinematicContainerRenderer.config)==null?0:(r=e.watchFullscreenConfig)==null?0:r.colorSourceHeightMultiplier))return G.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var Z;return(Z=G.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?Z:G.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
t7.prototype.disposeInternal=function(){_.pB.prototype.disposeInternal.call(this);this.container.remove()};
t7.prototype.clear=function(){GVZ(this,void 0,!0)};
t7.prototype.pause=function(){this.storyboardManager.pause()};var Vz_;Vz_=_.tD(function(){var G,e,r=!((e=(G=document.createElement("canvas")).getContext)==null||!e.call(G,"2d")),Z;G=!((Z=CSS)==null||!Z.supports("filter: blur(0)"));Z=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var O;return r&&G&&Z&&!((O=CSS)==null||!O.supports("aspect-ratio: 1 / 1"))});
_.gn=function(G,e){_.Ar.call(this);this.container=G;this.playerApi=e;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=hGk(this);this.update()};
_.K(_.gn,_.Ar);_.TSk=function(G){var e=document.documentElement.hasAttribute("dark");G.isDarkModeEnabled=e;G.update()};
_.DKt=function(G,e){G.settingEnabled=e;G.update()};
_.gn.prototype.setFullscreen=function(G,e){this.fullscreen=G;this.theater=!!e;this.update()};
_.Efk=function(G,e){G.cinematicContainerRenderer=e;G.cinematicContainerRenderer&&(G.cinematicsVe=_.L1(G.isShorts()?227858:159022),_.Xr(_.h_(),G.cinematicsVe),G.loggingClientData={watchCinematicContainerData:{presentationStyle:G.cinematicContainerRenderer.presentationStyle}});G.update()};
_.gn.prototype.isShorts=function(){var G,e;return((G=this.cinematicContainerRenderer)==null?void 0:(e=G.config)==null?void 0:e.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.gn.prototype.isAllowed=function(){var G;if(G=Vz_()){var e,r,Z;G=((r=this.cinematicContainerRenderer)==null?void 0:r.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(G)if(_.R("web_cinematics_pausing")){var O,M;G=this.isDarkModeEnabled||!!((O=this.cinematicContainerRenderer)==
null?0:(M=O.config)==null?0:M.enableInLightTheme)}else{var T,E;O=!!((T=this.cinematicContainerRenderer)==null?0:(E=T.config)==null?0:E.enableInLightTheme)&&(_.xZ("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);G=this.isDarkModeEnabled||O}if(T=G){var b,w;T=!((w=(b=this.prefersReducedMotionQuery)==null?void 0:b.matches)!=null&&w)}return T};
_.iNz=function(G){(G=G.currentCinematicEffect)!=null&&(G=G.storyboardManager,G.paused=!1,J6z(G),G.update())};
_.gn.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var hGk=function(G){if(!_.R("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion: reduce)"),r=function(){G.update()};
e.addListener(r);G.addOnDisposeCallback(function(){e.removeListener(r)});
return e}};
_.gn.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var G=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new t7(this.container,G,this.playerApi,this.isDarkModeEnabled),_.Xx(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var e=this.currentCinematicEffect;e.cinematicContainerRenderer!==
G&&(e.cinematicContainerRenderer=G,FY2(e.storyboardManager,G),z1j(e));G=_.hy();_.Tn(0,194,!0);G.save();G=_.l4();this.cinematicsVe&&G&&_.C_(G,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(G=_.l4(),this.cinematicsVe&&G&&_.up(G,[this.cinematicsVe],!1,this.loggingClientData),_.TX(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.iY.Object.defineProperties(_.gn.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var h1z;var TPZ;_.ts({_template:function(){if(TPZ!==void 0)return TPZ;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=
G.content,r=e.insertBefore;h1z===void 0&&(h1z=document.createElement("template"));var Z=h1z;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return TPZ=G},
is:"tp-yt-iron-pages",behaviors:[_.CS,_.IR],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var Mak;_.Vaz=function(){if(_.R("kevlar_home_skeleton")&&!Mak){var G=document.querySelector("#home-page-skeleton");G&&(_.jq("hgcr"),_.d1(G),Mak=!0)}};
Mak=!1;_.LD=new _.L9("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var Aiz,Jiw,Bsj,xUt,PFy,UUq,zat,Nsq,GC$,ZPt,MEk,hE_,OP$,eEZ,rSy,Ewq;_.I1=function(G){var e=G.clientMessageId;var r=G.playerOffsetMs;var Z=G.pageContext;G=G.userInputText;return{inputComposerFormData:Object.assign({},{clientMessageId:e},!!r&&{playerOffsetMs:r},!!Z&&{pageContext:Z},!!G&&{userInputText:G})}};
_.yij=function(G,e,r){e=e===void 0?5:e;if(e!==0){var Z=typeof G==="function"?G():document.querySelector(G);Z?(r==null?0:r.enableSmartFocus)?_.xta(Z):Z.focus():setTimeout(function(){_.yij(G,e-1,r)},500)}};
Aiz=function(G){return String.raw.apply(String,[{raw:G}].concat(_.mY(_.Bw.apply(1,arguments).map(function(e){return e instanceof Array?e.join(""):e}))))};
Jiw=function(G){var e=_.Bw.apply(1,arguments),r=e.length;if(!Array.isArray(G)||!Array.isArray(G.raw)||G.length!==G.raw.length||!_.n$E&&G===G.raw||!(_.n$E&&!_.mZC||_.I2(G))||r+1!==G.length)throw new TypeError("$");return new FS$(Object.freeze({strings:Object.freeze(G),args:Object.freeze(e)}))};
Bsj=function(G){return _.xRS(_.BZN(G&16777215))<.5};
xUt=function(G,e,r){var Z=r.minimumRowsOfVideosBetweenSections===void 0?1:r.minimumRowsOfVideosBetweenSections;return G<(r.minimumRowsOfVideosAtStart===void 0?2:r.minimumRowsOfVideosAtStart)||e!==null&&G-e<=Z?!1:!0};
PFy=function(G,e){var r=0,Z=0;G=_.h(G);for(var O=G.next();!O.done;O=G.next()){var M=O.value;if(M.richItemRenderer)M.richItemRenderer.rowIndex=Z,M.richItemRenderer.colIndex=r++,r===e&&(r=0,Z++);else if(M.richGroupRenderer&&M.richGroupRenderer.numColumns!==void 0)M.richGroupRenderer.rowIndex=Z,M.richGroupRenderer.colIndex=r,r+=M.richGroupRenderer.numColumns,r===e&&(r=0,Z++);else if(M.richSectionRenderer){var T=O=void 0;if(M=_.a((O=M)==null?void 0:(T=O.richSectionRenderer)==null?void 0:T.content,_.g6E))M.rowIndex=
Z++}}};
UUq=function(G,e){var r=e.contentElement;e=e.rendererToTagNameMap;if(r&&e&&e.size!==0){for(var Z=new Map,O=_.h(r.children),M=O.next();!M.done;M=O.next()){M=M.value;var T=M.tagName.toLowerCase(),E=Z.get(T);E||(E=[],Z.set(T,E));E.push(M)}if(Z.size!==0)for(O=Math.min(G.length,r.children.length),M=new Map,T=0;T<O;T++){E=Object.keys(G[T])[0];E=e.get(E);if(!E)break;var b=M.get(E);b===void 0&&(b=0,M.set(E,b));var w=Z.get(E);if(!w||b>=w.length)break;M.set(E,b+1);E=w[b];b=r.children[T];b!==E&&(_.A_=!0,_.F0.set(E,
!0),r.insertBefore(E,b),_.F0.delete(E),_.A_=!1)}}};
zat=function(G,e,r,Z,O,M,T){Z=Z===void 0?{}:Z;if(!G||!G.length)return{orderedContent:[]};G=G.slice();var E=[],b=[];O=null;for(var w=0,q=function(P){b.sort(function(U,e$){return e$.skippedOnRow-U.skippedOnRow});
for(var F,J=(F=b.shift())==null?void 0:F.content;J;)!J.richSectionRenderer&&P||E.push(J),F=void 0,J=(F=b.shift())==null?void 0:F.content},t=void 0,g=void 0,l=new Set;G.length>0||b.length>0;){for(var X=[],H=e;H>0;){var I=void 0,C=void 0,u=(C=b[0]&&b[0].skippedOnRow<w?(I=b.shift())==null?void 0:I.content:void 0)!=null?C:G.shift();
if(!u)break;if(u.richItemRenderer)I=u.richItemRenderer.targetId,C=void 0,I&&((C=T)==null?0:C.has(I))&&(C=T.get(I),!t||C&&C.timestamp>t.timestamp)&&(t=C,g&&l.add(g),g=I),X.push(u),H--;else if(u.richGroupRenderer&&u.richGroupRenderer.numColumns!==void 0)u.richGroupRenderer.numColumns<=H?(X.push(u),H-=u.richGroupRenderer.numColumns):H===e&&u.richGroupRenderer.numColumns>e?(X.push({richGroupRenderer:Object.assign({},u.richGroupRenderer,{numColumns:e})}),H=0):b.push({content:u,skippedOnRow:w});else if(u.richSectionRenderer)if(xUt(w,
O,Z)&&H===e){E.push(u);O=w;w++;continue}else b.push({content:u,skippedOnRow:w});else if(u.continuationItemRenderer){q(!0);E.push(u);H=0;break}if(H===0)E.push.apply(E,_.mY(X));else if(!r&&G.length===0){q(!1);E.push.apply(E,_.mY(X));H=0;break}}w++;t&&(E.push(t.content),w++);g=t=void 0}PFy(E,e);M&&UUq(E,M);return{orderedContent:E,pinnedContentNotShownTargetIds:l}};
_.WS2=function(G){return{continuationCommand:{token:G,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}};
Nsq=function(){return _.Bw.apply(0,arguments).flat().filter(function(G){return G}).join(";")};
GC$=function(){return Jiw(LSv,Nsq.apply(null,_.mY(_.Bw.apply(0,arguments))))};
ZPt=function(G,e){if(e){var r=_.Yt().getState().entities.flowStateEntity,Z=eEZ(G),O=[e];Z&&Z!==e&&O.push(Z);var M=!0,T;if(r&&G.flowStateEntityKey&&((T=r[G.flowStateEntityKey])==null?void 0:T.primaryButtonDisabled)!==void 0){var E;M=!((E=r[G.flowStateEntityKey])==null||!E.primaryButtonDisabled)}rSy(G,Z!=null?Z:e,O,M)}};
MEk=function(G){return _.IC(_.Yt(),function(e){return e.entities.flowStateEntity},function(e,r){if(G.flowStateEntityKey){var Z,O=e==null?void 0:(Z=e[G.flowStateEntityKey])==null?void 0:Z.currentStepId,M;
r=r==null?void 0:(M=r[G.flowStateEntityKey])==null?void 0:M.currentStepId;M=_.Yt().getState().talkToRecs;if(O&&O!==r){var T;e=(e==null?void 0:(T=e[G.flowStateEntityKey])==null?void 0:T.stepIdStack)||Object.keys(M.stepStates);T=!OP$(M==null?void 0:M.stepStates[O]);rSy(G,O,e,T)}}})};
hE_=function(G){return _.IC(_.Yt(),VE$,function(e){var r=eEZ(G);if(r){var Z=Object.keys(e.stepStates);e=!OP$(e==null?void 0:e.stepStates[r]);rSy(G,r,Z,e)}})};
OP$=function(G){var e=Object.keys((G==null?void 0:G.selectionStates)||{}).reduce(function(M,T){return M||(G==null?void 0:G.selectionStates[T].isSelected)},!1),r,Z,O=!!(G==null?0:(r=G.userQuery)==null?0:(Z=r.userQuery)==null?0:Z.trim());
return e||O};
eEZ=function(G){if(G.flowStateEntityKey){var e,r,Z=(e=_.Yt().getState().entities.flowStateEntity)==null?void 0:(r=e[G.flowStateEntityKey])==null?void 0:r.currentStepId;if(Z)return Z}};
rSy=function(G,e,r,Z){_.Yt().dispatch(_.bt("flowStateEntity",G.flowStateEntityKey,{currentStepId:e,stepIdStack:r,key:G.flowStateEntityKey,primaryButtonDisabled:Z}))};
_.Tj2=function(G,e){return _.e6(G.entities,"youchatPendingResponseEntity",e)};
_.DWq=function(G){return function(e){_.nR(_.bt("youchatPendingResponseEntity",G,{entityKey:G,isPendingResponse:e}))}};
Ewq=function(G){G==null||G.addEventListener("DOMLoaded",function(){G.goToAndPlay(G.totalFrames-48,!0)})};
_.b6=function(G){this.__isSoyCss=!0;this.css=Aiz.apply(null,[G.strings].concat(_.mY(G.args)))};
_.b6.prototype.toString=function(){return this.css};
var FS$=function(){_.b6.apply(this,arguments)};
_.K(FS$,_.b6);var LSv=_.Cp(["",""]);var iP_;var bP_;_.ts({_template:function(){if(bP_!==void 0)return bP_;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);
var e=G.content,r=e.insertBefore;iP_===void 0&&(iP_=document.createElement("template"));var Z=iP_;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return bP_=G},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var vwX=new _.L9("flowRootRenderer");var wc2=new _.L9("chipsShelfViewModel");var $Wv=new _.L9("responsiveContainerConfiguration");_.SlX=new _.L9("engagementPanelSectionListRenderer");var qly=function(){this.horizontal=!1},tEz=function(G,e){G.horizontal=e};
qly.prototype.position=function(G,e,r,Z){Z=Z===void 0?1:Z;G=this.delta(G)*Z+e;Z=Math.max(e,r);return G>=Math.min(e,r)&&G<=Z?G:r};
qly.prototype.axis=function(G){G=this.direction(G);return G==="up"||G==="down"?"Y":"X"};var pD=function(G,e,r){e=e===void 0?_.fh():e;this.target=G;this.manager=e;this.touchAction=r;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
pD.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(_.mY(this.events)));for(var G=_.h(this.events),e=G.next();!e.done;e=G.next())this.listen(e.value)}};
pD.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.mY(this.events)));for(var G=_.h(this.events),e=G.next();!e.done;e=G.next())this.unlisten(e.value)}};
pD.prototype.listen=function(G){this.eventMap[G]&&this.target.addEventListener(G,this.eventMap[G])};
pD.prototype.unlisten=function(G){this.eventMap[G]&&this.target.removeEventListener(G,this.eventMap[G])};var CD=function(){qly.apply(this,arguments)};
_.K(CD,qly);CD.prototype.direction=function(G){var e=G.detail;G=e.deltaY;e=e.deltaX;return G&&!this.horizontal?G>0?"down":"up":e&&this.horizontal?e>0?"right":"left":"none"};
CD.prototype.distance=function(G){return Math.abs(this.delta(G))};
CD.prototype.delta=function(G){var e=this.direction(G),r=G.detail;G=r.deltaX;r=r.deltaY;return e==="up"||e==="down"?r||0:G||0};
CD.prototype.velocity=function(G){var e=this.direction(G),r=G.detail;G=r.velocityX;r=r.velocityY;return Math.abs(e==="up"||e==="down"?r||0:G||0)};_.uk=function(G,e,r,Z,O,M){O=O===void 0?new CD:O;M=M===void 0?_.fh():M;pD.call(this,e,M,Z);var T=this;this.element=G;this.target=e;this.config=r;this.input=O;this.manager=M;this.events=["panstart","panmove","panend"];this.onPanStart=function(){T.config.draggingClass&&T.element.classList.add(T.config.draggingClass);T.config.startAction&&T.config.startAction()};
this.onPanMove=function(E){var b=gwZ(T,E);if(b){T.move(E,b);b.fade&&T.fade(E,b);var w=T.input.direction(E);b.moveAction&&b.moveAction(lb_(T,E,b),w)}};
this.onPanEnd=function(E){var b,w,q,t,g,l;return _.D(function(X){if(X.nextAddress==1){T.animationRequestId&&cancelAnimationFrame(T.animationRequestId);T.animationRequestId=void 0;b=gwZ(T,E);if(!b)return X.return();w=b;q=w.triggerAction;t=w.fade;g=w.disableFinish;l=w.translateBack;var H=T.input.velocity(E),I=T.input.distance(E),C=T.threshold(b);return H>.3&&I>10||I>C?g?X.jumpTo(6):t?X.yield(REt(T,E),6):X.yield(jW_(T,E,b),6):l?X.yield(T.translateBack(E),3):X.jumpTo(3)}X.nextAddress!=3&&q&&q();T.config.draggingClass&&
T.element.classList.remove(T.config.draggingClass);T.reset();_.HL(X)})};
G=Object.keys(r.triggers);this.directions=new Set(G);tEz(this.input,this.directions.has("right")||this.directions.has("left"))};
_.K(_.uk,pD);_.uk.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var gwZ=function(G,e){e=G.input.direction(e);return G.config.triggers[e]};
_.uk.prototype.move=function(G,e){var r=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var Z=r.input.axis(G),O=r.input.position(G,r.config.startPosition,e.endPosition,e.moveRatio||1);r.element.style.transform="translate"+Z+"("+O+"px)";r.animationRequestId=void 0}))};
var lb_=function(G,e,r){var Z=r.moveRatio||1;r=Math.abs(G.config.startPosition-r.endPosition);return Math.min(G.input.distance(e)*Z,r)/r};
_.uk.prototype.fade=function(G,e){var r=e.endOpacity;G=lb_(this,G,e);G>0&&(this.element.style.opacity=""+(((r||0)-1)*G+1))};
_.uk.prototype.threshold=function(G){return G.threshold?G.threshold:Math.abs(G.endPosition-this.config.startPosition)/3};
var jW_=function(G,e,r){var Z,O,M,T,E,b,w;return _.D(function(q){if(q.nextAddress==1)return Z=G.input.delta(e)+G.config.startPosition,O=G.input.axis(e),M=r,T=M.endPosition,E=M.transitionEndPosition,w=(b=E)!=null?b:T,q.yield(G.element.animate([{transform:"translate"+O+"("+Z+"px)"},{transform:"translate"+O+"("+w+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);G.element.style.transform="translate"+O+"("+w+"px)";_.HL(q)})};
_.uk.prototype.translateBack=function(G){var e=this,r,Z;return _.D(function(O){if(O.nextAddress==1){if(!e.element.style.transform)return O.return();r=e.input.axis(G);Z=e.config.startPosition;return O.yield(e.element.animate([{transform:e.element.style.transform},{transform:"translate"+r+"("+Z+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}e.element.style.transform="translate"+r+"("+Z+"px)";_.HL(O)})};
var REt=function(G,e){var r,Z,O,M;return _.D(function(T){if(T.nextAddress==1)return r=G.input.delta(e)+G.config.startPosition,Z=G.input.axis(e),O=r+70,M=G.element.style.opacity===""?1:G.element.style.opacity,T.yield(G.element.animate([{transform:"translate"+Z+"("+r+"px)",opacity:M},{transform:"translate"+Z+"("+O+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);G.element.style.transform="translate"+Z+"("+O+"px)";G.element.style.opacity="0";_.HL(T)})};var nD=function(){var G=_.DQ.apply(this,arguments)||this;G._noAccessors=!0;G.scrollRate=3;G.autoScrollAnimationStart=0;G.autoScrollPaused=!1;G.autoScrollRafId=0;return G};
_.K(nD,_.DQ);_.V=nD.prototype;_.V.created=function(){var G=this;this.boundAutoScrollHandler=function(e){G.autoScroll(e)}};
_.V.detached=function(){this.hostElement.removeEventListener("mouseout",_.ZQ(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.ZQ(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.ZQ(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.V.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.ZQ(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.ZQ(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.ZQ(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.ZQ(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.ZQ(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.ZQ(this,this.endAutoScroll)),this.endAutoScroll())};
_.V.autoScroll=function(G){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=G);var e;if(e=!this.autoScrollPaused&&this.scrollTarget)e=this.scrollTarget,e=e.scrollHeight-e.scrollTop!==e.clientHeight;e&&(e=1E3/this.scrollRate,G-=this.autoScrollAnimationStart,G>e&&(this.scrollTarget.scrollTop+=Math.ceil(G/e),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.V.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.V.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
nD.prototype.autoScrollEnabledChanged=nD.prototype.autoScrollEnabledChanged;_.B([_.n(),_.x("design:type",Object)],nD.prototype,"scrollRate",void 0);_.B([_.n(),_.x("design:type",Object)],nD.prototype,"scrollTarget",void 0);_.B([_.n(),_.x("design:type",Boolean)],nD.prototype,"autoScrollEnabled",void 0);_.B([_.Me("autoScrollEnabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nD.prototype,"autoScrollEnabledChanged",null);_.B([_.Em()],nD);_.ab_=[nD.prototype];var XcX;var mo=function(){var G=_.m.apply(this,arguments)||this;G.dismissButtonOverrides={iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"};G.forceDarkTheme=!1;G.forceLightTheme=!1;G.dynamicTextHeight=94;G.hasOverflowButton=!1;G.isInfeedModernization=!1;return G};
_.K(mo,_.m);_.V=mo.prototype;_.V.computeUrlImg=function(G){if(G)return _.xh(G.thumbnails)};
_.V.getLogoHeight=function(G){return this.logoWithPadding(G)?"31":"24"};
_.V.getLogoClassName=function(G){return this.logoWithPadding(G)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.V.logoWithPadding=function(G){var e,r;return(G=(e=G.thumbnails)==null?void 0:(r=e[0])==null?void 0:r.height)&&G%31===0?!0:!1};
_.V.sendImpressionEndpoints=function(G){G.impressionEndpoints&&_.zw(this.hostElement,G.impressionEndpoints)};
_.V.observeBasicPalette=function(){var G,e,r=(G=this.data)==null?void 0:(e=G.colorData)==null?void 0:e.basicColorPaletteData;r?_.Sv(this.hostElement,r):_.Sv(this.hostElement,{})};
_.V.observeDataChanged=function(){var G;this.dynamicTextHeight=((G=this.data)==null?0:G.supplementalText)?74:94;var e;this.hasSupplementalText=!((e=this.data)==null||!e.supplementalText);var r,Z,O,M;G=(r=this.data)==null?void 0:(Z=r.actionButton)==null?void 0:(O=Z.buttonRenderer)==null?void 0:(M=O.colorData)==null?void 0:M.basicColorPaletteData;var T,E,b;if(!((T=this.data)==null?0:(E=T.actionButton)==null?0:(b=E.buttonRenderer)==null?0:b.style)&&G){this.computeIsInfeedModernization(this.data)||(G.borderColor=
G.foregroundTitleColor);var w,q;this.set("data.actionButton.buttonRenderer",_.c2.unsafeClone((w=this.data)==null?void 0:(q=w.actionButton)==null?void 0:q.buttonRenderer))}};
_.V.observeDataForCounterfactual=function(){if(_.R("kevlar_banner_cf_extra_logging")){var G;((G=this.data)==null?0:G.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.V.computeSupplementalStyle=function(){var G;if((G=this.data)!=null&&G.supplementalText){var e,r,Z;if((e=this.data)==null?0:(r=e.colorData)==null?0:(Z=r.basicColorPaletteData)==null?0:Z.foregroundActivatedColor)return G=_.RB(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+G+"; --yt-endpoint-hover-color:"+G+"; --yt-endpoint-visited-color:"+G+"; --yt-formatted-string-bold-font-weight:700;"}};
_.V.computeForcedDarkTheme=function(){var G,e,r,Z=(G=this.data)==null?void 0:(e=G.actionButton)==null?void 0:(r=e.buttonRenderer)==null?void 0:r.style,O,M,T;G=Bsj(((O=this.data)==null?void 0:(M=O.colorData)==null?void 0:(T=M.basicColorPaletteData)==null?void 0:T.backgroundColor)||0);return Z&&G};
_.V.computeForcedLightTheme=function(){var G,e,r,Z=(G=this.data)==null?void 0:(e=G.actionButton)==null?void 0:(r=e.buttonRenderer)==null?void 0:r.style,O,M,T;G=!Bsj(((O=this.data)==null?void 0:(M=O.colorData)==null?void 0:(T=M.basicColorPaletteData)==null?void 0:T.backgroundColor)||0);return Z&&G};
_.V.computeHasOverflowButton=function(G){return!!G.overflowButton};
_.V.computeHasTitle=function(G){return!!G.title};
_.V.computeTitleMaxFontSize=function(G){return this.computeHasOverflowButton(G)?28:64};
_.V.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.V.computeIsInfeedModernization=function(){var G,e,r,Z,O=(G=this.data)==null?void 0:(e=G.actionButton)==null?void 0:(r=e.buttonRenderer)==null?void 0:(Z=r.colorData)==null?void 0:Z.basicColorPaletteData;return(O==null?void 0:O.backgroundColor)===452984831||(O==null?void 0:O.backgroundColor)===218103808};
mo.prototype.observeDataForCounterfactual=mo.prototype.observeDataForCounterfactual;mo.prototype.observeDataChanged=mo.prototype.observeDataChanged;mo.prototype.observeBasicPalette=mo.prototype.observeBasicPalette;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],mo.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],mo.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.k(_.UN.YtdGuideStateAwareBehavior),_.x("design:type",Object)],mo.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],mo.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],mo.prototype,"hasSupplementalText",void 0);_.B([_.n(),_.x("design:type",Object)],mo.prototype,"dismissButtonOverrides",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.x("design:type",Boolean)],mo.prototype,"hasTitle",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.x("design:type",Object)],mo.prototype,"forceDarkTheme",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.x("design:type",Object)],mo.prototype,"forceLightTheme",void 0);_.B([_.n(),_.x("design:type",Object)],mo.prototype,"dynamicTextHeight",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.x("design:type",Object)],mo.prototype,"hasOverflowButton",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.x("design:type",Object)],mo.prototype,"isInfeedModernization",void 0);_.B([_.Me("data.colorData.basicColorPaletteData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mo.prototype,"observeBasicPalette",null);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mo.prototype,"observeDataChanged",null);_.B([_.Me("data.isVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mo.prototype,"observeDataForCounterfactual",null);_.B([_.c({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],mo);
_.A(mo,"ytd-banner-promo-renderer",function(){if(XcX!==void 0)return XcX;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return XcX=G},{mode:1});var K3Z;var fbk;var kCz;var HPq=function(){return _.m.apply(this,arguments)||this};
_.K(HPq,_.m);_.B([_.n(),_.x("design:type",Object)],HPq.prototype,"data",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],HPq.prototype,"ytRendererBehavior",void 0);_.B([_.c({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],HPq);
_.A(HPq,"ytd-hashtag-grid-tile-renderer",function(){if(kCz!==void 0)return kCz;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return kCz=G},{mode:1});var cj=function(){return _.m.apply(this,arguments)||this};
_.K(cj,_.m);cj.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
cj.prototype.updateRichGridTrendingHashtagsVisibility=function(){var G,e;if(((G=this.data)==null||!G.isExpanded)&&(e=this.data)!=null&&e.tiles){G=this.data.tiles.length;e=G>this.richGridItemsPerRow?this.richGridItemsPerRow+1:G;var r=Math.ceil(G/e);this.fullyVisibleRows=G%e===1&&r===2?1:Math.min(r,2);this.isShowMoreVisible=this.fullyVisibleRows<r}};
cj.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
cj.prototype.updateRichGridTrendingHashtagsVisibility=cj.prototype.updateRichGridTrendingHashtagsVisibility;_.B([_.n(),_.x("design:type",Object)],cj.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Number)],cj.prototype,"fullyVisibleRows",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],cj.prototype,"isShowMoreVisible",void 0);_.B([_.n({selector:_.RI,value:0}),_.x("design:type",Number)],cj.prototype,"richGridItemsPerRow",void 0);
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],cj.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],cj.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],cj.prototype,"ytdReduxBehavior",void 0);_.B([_.Me("data","richGridItemsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cj.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.B([_.c({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],cj);
_.A(cj,"ytd-hashtag-grid-shelf-renderer",function(){if(fbk!==void 0)return fbk;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return fbk=G},{mode:1});var dWX;var owt;var Yg=function(){var G=_.m.apply(this,arguments)||this;G.visibleVideos=[];G.hiddenVideos=[];G.modern=_.R("web_modern_buttons");G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.K(Yg,_.m);_.V=Yg.prototype;_.V.attached=function(){var G=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",G);this.onDarkModeToggledAction(G)};
_.V.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"}}}};
_.V.dataChanged=function(){var G=this;this.requestElementsPerRow();var e,r;this.currentColorPalette=this.isDarkTheme?(e=this.data)==null?void 0:e.darkColorData:(r=this.data)==null?void 0:r.lightColorData;var Z;if((Z=this.currentColorPalette)==null?0:Z.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.DE(this,function(){G.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.V.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.V.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.V.computeIsFirstFeedItem=function(G){return G};
_.V.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&this.set("isDarkTheme",G);this.data&&(this.currentColorPalette=G?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.V.getCurrentLogo=function(G,e){if(G)return e?G.darkLogoImage:G.lightLogoImage};
_.V.computeTitleStyle=function(G){var e;if((e=this.data)!=null&&e.title&&G&&G.textPrimary!==void 0)return"color:"+_.RB(G.textPrimary)+";"};
_.V.computeSubtitleStyle=function(G){var e;if((e=this.data)!=null&&e.subtitle&&G&&G.textSecondary!==void 0)return"color:"+_.RB(G.textSecondary)+";"};
_.V.computeDismissIconStyle=function(G){if(this.data&&this.data.dismissButton&&G&&G.textPrimary!==void 0)return"--yt-button-color:"+_.RB(G.textPrimary)+";"};
_.V.computeOverflowButtonStyle=function(G){if(this.data&&this.data.overflowButton&&G&&G.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.RB(G.textPrimary)+";--yt-spec-icon-active-other:"+_.RB(G.textPrimary)+";"};
_.V.computeBackgroundStyle=function(G){if(G&&this.data){var e="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var r=_.xh((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);r&&(e+='background-image:url("'+r+'");')}G.backgroundColor!==void 0&&(e+="background-color:"+_.jF(G.backgroundColor)+";");return e}};
_.V.computeButton=function(){var G,e=Object.assign({},_.a((G=this.data)==null?void 0:G.showMoreButton,_.zM));if(this.modern&&e){e.style="STYLE_MONO_OUTLINE";var r;if(G=(r=this.currentColorPalette)==null?void 0:r.textPrimary)e.colorData={basicColorPaletteData:{foregroundTitleColor:G,borderColor:G}}}return e};
_.V.shouldShowBottomButton=function(G,e){return!(G==null?0:G.header)&&!(G==null||!G.primaryButton)&&e<3};
_.V.checkExpanded=function(G){this.isExpanded=G&&G.content?this.hiddenVideos.length===0:!0};
_.V.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.V.getLogoHeight=function(G){return this.logoWithPadding(G)?"26":"20"};
_.V.getLogoImageId=function(G){return this.logoWithPadding(G)?"logo-image-with-padding":"logo-image"};
_.V.computeHasSectionHeader=function(G){return!!G.header};
_.V.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var G;if((G=this.data.primaryButton)==null?0:G.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 r,Z;((r=this.data)==null?0:(Z=r.primaryButton)==null?0:Z.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.V.setVisibleVideos=function(G){if(this.data&&this.data.content)if(this.data.content.length){var e=this.data.content.length;this.data.header?G?(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=[]};
_.V.setHasMovieRenderer=function(){var G;if((G=this.data)!=null&&G.content){var e;this.hasMovieRenderer=!!_.a((e=this.data)==null?void 0:e.content[0],_.ktE)}else this.hasMovieRenderer=!1};
_.V.requestElementsPerRow=function(){_.xy(this.hostElement,"yt-request-elements-per-row")};
_.V.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var G=_.h(this.hiddenMediaRenderers),e=G.next();!e.done;e=G.next())e.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(G=_.z1(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&G.focus()}};
_.V.updateTitleSpec=function(){var G;(G=this.data)!=null&&G.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.V.logoWithPadding=function(G){var e,r,Z;return(G=(e=this.getCurrentLogo(G,this.isDarkTheme))==null?void 0:(r=e.thumbnails)==null?void 0:(Z=r[0])==null?void 0:Z.height)&&G%31===0?!0:!1};
_.V.onUpdateElementsPerRowAction=function(G,e,r){G&&this.elementsPerRow!==G&&(this.elementsPerRow=G);r&&this.slimItemsPerRow!==r&&(this.slimItemsPerRow=r)};
Yg.prototype.slimItemsPerRowChanged=Yg.prototype.slimItemsPerRowChanged;Yg.prototype.elementsPerRowChanged=Yg.prototype.elementsPerRowChanged;Yg.prototype.dataChanged=Yg.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Yg.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Yg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],Yg.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Yg.prototype,"actionHandlerBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],Yg.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Yg.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],Yg.prototype,"currentColorPalette",void 0);_.B([_.n(),_.x("design:type",Array)],Yg.prototype,"visibleVideos",void 0);_.B([_.n(),_.x("design:type",Array)],Yg.prototype,"hiddenVideos",void 0);
_.B([_.n(),_.x("design:type",Object)],Yg.prototype,"primaryButton",void 0);_.B([_.n({reflectToAttribute:!0,value:3}),_.x("design:type",Number)],Yg.prototype,"elementsPerRow",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Yg.prototype,"isDarkTheme",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Yg.prototype,"isExpanded",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Yg.prototype,"largeTitle",void 0);
_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Yg.prototype,"hasMovieRenderer",void 0);_.B([_.n(),_.x("design:type",Number)],Yg.prototype,"slimItemsPerRow",void 0);_.B([_.n(),_.x("design:type",Boolean)],Yg.prototype,"showLightVideoMetadata",void 0);_.B([_.n(),_.x("design:type",Boolean)],Yg.prototype,"showDarkVideoMetadata",void 0);_.B([_.n(),_.x("design:type",Number)],Yg.prototype,"videoMetadataColor",void 0);
_.B([_.n({reflectToAttribute:!0,selector:_.lw}),_.x("design:type",Boolean)],Yg.prototype,"miniMode",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.x("design:type",Boolean)],Yg.prototype,"isFirstFeedItem",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.x("design:type",Boolean)],Yg.prototype,"hasSectionHeader",void 0);
_.B([_.n({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],Yg.prototype,"roundedContainer",void 0);_.B([_.To("#visible-video-container ytd-rich-grid-media"),_.x("design:type",Array)],Yg.prototype,"visibleMediaRenderers",void 0);_.B([_.To("#hidden-video-container ytd-rich-grid-media"),_.x("design:type",Array)],Yg.prototype,"hiddenMediaRenderers",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Yg.prototype,"modern",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Yg.prototype,"dataChanged",null);_.B([_.Me("elementsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Yg.prototype,"elementsPerRowChanged",null);_.B([_.Me("slimItemsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Yg.prototype,"slimItemsPerRowChanged",null);
_.B([_.c({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],Yg);
_.A(Yg,"ytd-brand-video-shelf-renderer",function(){if(owt!==void 0)return owt;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return owt=G},{mode:1});var sWq;var yN=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.K(yN,_.m);_.V=yN.prototype;_.V.attached=function(){var G=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",G);this.onDarkModeToggledAction(G)};
_.V.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"}}}};
_.V.dataChanged=function(){this.requestElementsPerRow();var G,e;this.currentColorPalette=this.isDarkTheme?(G=this.data)==null?void 0:G.darkColorData:(e=this.data)==null?void 0:e.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.V.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.V.computeIsFirstFeedItem=function(G){return G};
_.V.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&this.set("isDarkTheme",G);this.data&&(this.currentColorPalette=G?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(G),this.updateButtonPalette())};
_.V.shouldShowThumbnailInMetadata=function(G){return G<=1};
_.V.computeVideoMetadataColor=function(){if(this.data){var G;if((G=this.currentColorPalette)==null?0:G.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.V.computeTitleStyle=function(G){var e;if((e=this.data)!=null&&e.title&&G&&G.textPrimary!==void 0)return"color:"+_.RB(G.textPrimary)+";"};
_.V.computeSubtitleStyle=function(G){var e;if((e=this.data)!=null&&e.subtitle&&G&&G.textSecondary!==void 0)return"color:"+_.RB(G.textSecondary)+";"};
_.V.computeOverflowButtonStyle=function(G){if(this.data&&this.data.overflowButton&&G.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.RB(G.textPrimary)+";--yt-spec-icon-active-other:"+_.RB(G.textPrimary)+";"};
_.V.computeBackgroundStyle=function(G){if(G&&this.data){var e="";G.backgroundColor!==void 0&&(e+="background-color:"+_.jF(G.backgroundColor)+";");return e}};
_.V.computeHasOverflowButton=function(G){return!!G.overflowButton};
_.V.updateButtonPalette=function(){if(this.data){var G;if((G=this.data.primaryButton)==null?0:G.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 r;((r=this.currentColorPalette)==null?0:r.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)})}}};
_.V.requestElementsPerRow=function(){_.xy(this.hostElement,"yt-request-elements-per-row")};
_.V.updateTitleSpec=function(){var G;(G=this.data)!=null&&G.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")};
_.V.onUpdateElementsPerRowAction=function(G){G&&this.elementsPerRow!==G&&(this.elementsPerRow=G)};
yN.prototype.elementsPerRowChanged=yN.prototype.elementsPerRowChanged;yN.prototype.dataChanged=yN.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],yN.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],yN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],yN.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],yN.prototype,"actionHandlerBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],yN.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],yN.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],yN.prototype,"currentColorPalette",void 0);_.B([_.n(),_.x("design:type",Object)],yN.prototype,"primaryButton",void 0);
_.B([_.n({reflectToAttribute:!0,value:3}),_.x("design:type",Number)],yN.prototype,"elementsPerRow",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],yN.prototype,"isDarkTheme",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],yN.prototype,"titleSize",void 0);_.B([_.n(),_.x("design:type",Number)],yN.prototype,"videoMetadataColor",void 0);_.B([_.n({reflectToAttribute:!0,selector:_.lw}),_.x("design:type",Boolean)],yN.prototype,"miniMode",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.x("design:type",Boolean)],yN.prototype,"isFirstFeedItem",void 0);_.B([_.n({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],yN.prototype,"roundedContainer",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.x("design:type",Boolean)],yN.prototype,"hasOverflowButton",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yN.prototype,"dataChanged",null);_.B([_.Me("elementsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yN.prototype,"elementsPerRowChanged",null);_.B([_.c({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],yN);
_.A(yN,"ytd-brand-video-singleton-renderer",function(){if(sWq!==void 0)return sWq;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return sWq=G},{mode:_.Px("kevlar_poly_si_batch_j070")?1:2});var QWX;var Ibj=_.y(function(G){var e=G.data;return _.v(_.nC,{data:function(){return e().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(e().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var r=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":r=88;break a;default:r=88}return r},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return e().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Cm"),Cyw=_.y(function(G){var e=G.metadataRow;
var r=G.delimiter;return _.v(_.u6,{each:function(){return e().textParts||[]},
keyBy:"INDEX"},function(Z,O){return _.v(_.$Z,null,_.v(_.Wh,{text:Z,noWrap:!0,userInput:!0}),_.v(pcz,{delimiter:r,max:function(){return e().textParts.length},
index:O}))})},"Dm"),pcz=_.y(function(G){var e=G.delimiter;
var r=G.max;var Z=G.index;return _.v(_.S,{cond:function(){return(e==null?void 0:e())&&r()-1>Z()},
then:function(){return _.v("span",null,e)}})},"Em"),unZ=_.y(function(G){var e=G.data;
G={};return _.v("yt-profile-page-header-information-view-model",{class:_.LC("profilePageHeaderInformationViewModelHost",(G.profilePageHeaderInformationViewModelMobile=!1,G))},_.v(_.S,{cond:function(){return e().onTap},
then:function(){return _.v(_.Ds,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.X0(e().onTap)}},_.v(_.E2,{data:function(){return e().thumbnail}},{profilePageHeaderThumbnailViewModel:Ibj}))},
else:function(){return _.v("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.v(_.E2,{data:function(){return e().thumbnail}},{profilePageHeaderThumbnailViewModel:Ibj}))}}),_.v("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.v(_.S,{cond:function(){return e().onTap},
then:function(){return _.v(_.E2,{data:function(){return e().title}},{profilePageHeaderTitleViewModel:function(r){var Z=r.data;
return _.v(_.Ds,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.X0(Z().onTap)}},_.v(_.Wh,{text:function(){return Z().title}}))}})},
else:function(){return _.v(_.E2,{data:function(){return e().title}},{profilePageHeaderTitleViewModel:function(r){var Z=r.data;
return _.v(_.Wh,{text:function(){return Z().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.v(_.E2,{data:function(){return e().metadata}},{profilePageHeaderMetadataViewModel:function(r){var Z=r.data;
return _.v(_.S,{cond:function(){return Z().metadataRows},
then:function(O){return _.v("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.v(_.u6,{each:O,keyBy:"INDEX"},function(M,T){return _.v(_.$Z,null,_.v(Cyw,{metadataRow:M,delimiter:" \u2022 "}),_.v(pcz,{delimiter:" \u2022 ",max:function(){return O().length},
index:T}))}))}})}})))},"Fm");
unZ.idomCompat=!0;_.J_(unZ,"yt-profile-page-header-information-view-model",{props:{data:_.N6}});var AW=function(){return _.m.apply(this,arguments)||this};
_.K(AW,_.m);AW.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],AW.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],AW.prototype,"data",void 0);_.B([_.c({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],AW);
_.A(AW,"ytd-effect-pivot-header-view-model",function(){if(QWX!==void 0)return QWX;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return QWX=
G},{mode:1});var nwz;var Fh=function(){return _.m.apply(this,arguments)||this};
_.K(Fh,_.m);Fh.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Fh.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Fh.prototype,"data",void 0);_.B([_.c({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],Fh);
_.A(Fh,"ytd-source-pivot-header-renderer",function(){if(nwz!==void 0)return nwz;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return nwz=G},{mode:1});_.J_(_.KGd,"yt-card-view-model",{props:{data:_.N6,className:_.N6,isSelected:_.N6}});var VE$=_.kdE.talkToRecsStateSelector;_.J_(_.y(function(G){var e=function(){return _.a(G.data().flowRoot,vwX)};
_.yY(function(){var r=e(),Z=function(){},O=function(){};
if(r){var M,T,E,b=((E=_.a((M=e())==null?void 0:(T=M.steps)==null?void 0:T[0],_.p6))==null?void 0:E.stepId)||"";ZPt(r,b);Z=MEk(r);O=hE_(r)}_.yD(function(){var w=e();w&&_.Yt().dispatch(_.bt("flowStateEntity",w.flowStateEntityKey));Z();Z=function(){};
O();O=function(){};
_.nR(_.Xi2())})});
return _.v("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.v(_.qR,{contentId:function(){return G.data().contentId}},function(){return _.v("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.v(_.S,{cond:e,
then:function(r){return _.v(_.PwH,{data:r})}}))}))},"Gm"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.N6}});_.J_(_.y(function(){return _.v("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.v("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.v("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.v(_.sRa,null)),_.v(_.YRl,{data:{rows:1},isExploreHub:!0}))},"Hm"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.J_(_.y(function(G){var e=G.data;var r=G.standardUnitMinWidth;G=_.h((0,_.JNy)(e));var Z=G.next().value,O=G.next().value,M=function(){var E,b=(E=Z())==null?void 0:E.contents;return b==null||b.length===0},T=function(){O(Object.assign({},Z(),{contents:[]}))};
return _.v("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.cQ(_.vJ({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var E=_.a(e().chipsShelf,wc2);if(E!=null&&E!=null&&E.autoselectChipOnVisible){var b,w,q=_.a(E==null?void 0:(b=E.contents)==null?void 0:b[(w=E.autoselectedChipIndex)!=null?w:0],_.eR);q&&q.tapCommand&&_.HQ(q.tapCommand)}}}))},_.v(_.qR,{contentId:function(){return e().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.v("div",null,_.v("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.v(_.E2,{data:function(){return e().header}},{sectionHeaderViewModel:function(E){return _.v(_.XA,{data:E.data,
disableHorizontalPadding:!0})}})),_.v("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.v(_.E2,{data:function(){return e().chipsShelf}},{chipsShelfViewModel:function(E){return _.v(_.Xu,{data:E.data,
callback:T,selectionBehavior:1})}})),_.v("div",null,_.v(_.S,{cond:M,
then:function(){return _.v("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.v(_.YRl,{data:{rows:1},isExploreHub:!0}))}}),_.v(_.E2,{data:function(){var E;
return(E=Z())==null?void 0:E.contents}},{richShelfRenderer:function(E){return _.v(_.r7n,{data:E.data,
isInnerShelf:!0,standardUnitMinWidth:r})}})))}))},"Im"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.N6,
standardUnitMinWidth:_.N6}});var JW=function(){return _.m.apply(this,arguments)||this};
_.K(JW,_.m);
JW.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",eduCardViewModel:"yt-edu-card-view-model",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}}};
JW.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.B([_.k(_.A5),_.x("design:type",Object)],JW.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],JW.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.eP),_.x("design:type",Object)],JW.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],JW.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],JW.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",Number)],JW.prototype,"standardUnitMinWidth",void 0);_.B([_.c({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],JW);
_.A(JW,"ytd-rich-section-renderer",function(){if(dWX!==void 0)return dWX;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return dWX=G},{mode:_.Px("kevlar_poly_si_batch_j029")?
1:2});_.J_(_.Mqm,"yt-profile-identity-info-view-model",{props:{data:_.N6,hideDivider:_.N6,isChannelInfoCard:_.N6}});_.J_(_.eaa,"yt-page-header-view-model",{props:{data:_.N6,noPadding:_.N6,enableBanner:_.N6,cinematicContainerTopbarOffset:_.N6,allowCinematicContainerOverflow:_.N6,displayAsSidebar:_.N6,displayAsPanel:_.N6,alwaysUseMediumTextDescription:_.N6}});_.J_(_.y(function(G){var e=G.data;var r=function(){var O;return(O=e().numColumns)!=null?O:2},Z=function(){return r()>1?3:2};
G={};return _.v("ytd-rich-grid-group",{class:_.LC("ytdRichGridGroupHost",(G.ytdRichGridGroupHostFirstColumn=function(){return e().colIndex===0},G)),
style:_.Mk({"--ytd-rich-grid-group-num-columns":r,"--ytd-rich-grid-items-per-group":Z})},_.v("div",{class:"ytdRichGridGroupContents"},_.v(_.E2,{data:function(){var O;return(O=e().contents)==null?void 0:O.slice(0,Z())}},{richItemRenderer:function(O){return _.v(_.G9l,{data:O.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Jm"),"ytd-rich-grid-group",{props:{data:_.N6}});var Bj=function(){var G=_.m.apply(this,arguments)||this;G.resizeOnObserverInit=!1;G.isInlinePreviewDisabled=_.R("web_disable_inline_preview");G.disableStickyFilterBar=!1;G.transparentBackgroundChipsBar=!1;G.hideChipsBar=!1;G.isWatchDefaultLayout=!0;G.continuationShowButton=!1;G.rowReducedHorizontalMargin=!1;G.useCompactList=!1;G.manualDownloadsPresent=!1;G.smartDownloadsPresent=!1;G.isOnline=!1;G.shouldRenderDownloadsBanner=!1;G.shouldRenderDownloadsBannerUpsell=!1;G.hasOptedIntoSmartDownloads=!1;
G.elementsPerRow=4;G.typographyBump=!1;G.slimItemsPerRow=1;G.pageLoadingFromNavigation=!1;G.resizeObserver=null;G.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"};G.rendererToTagNameMap=new Map(Object.entries(G.contentMapping()).map(function(e){var r=
_.h(e);e=r.next().value;r=r.next().value;return[e,r.component]}));
G.insertedContent=new Map;return G};
_.K(Bj,_.m);_.V=Bj.prototype;_.V.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var G=_.h(_.z1(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),e=G.next();!e.done;e=G.next())e.value.useCompactList=this.useCompactList};
_.V.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var G=_.h(_.z1(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),e=G.next();!e.done;e=G.next())e=e.value,e.sizing=this.sizing,e.typographyBump=this.typographyBump};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.V.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]]"}}}};
_.V.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}}};
_.V.attached=function(){document.addEventListener("yt-page-type-changed",_.ZQ(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$22232_throttledOnResize=new _.Zp(this.resizeObserved,_.qt("rich_grid_resize_delay_ms",50),this)};
_.V.detached=function(){var G;(G=this.resizeObserver)==null||G.disconnect();document.removeEventListener("yt-page-type-changed",_.ZQ(this,this.onPageChange))};
_.V.insertRichSection=function(G){var e=G.richItemTargetId;G=G.richSectionRendererToInsert;e&&G&&(this.insertedContent.set(e,{content:G,timestamp:Date.now()}),this.reflowContent())};
_.V.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.V.computeIsInlinePreviewEnabled=function(G,e,r){return _.R("web_disable_inline_preview")?!1:!r&&_.bO8({miniplayerIsActive:G,miniplayerPlaybackState:e})};
_.V.computeSizing=function(){var G=_.mL4(this.data);if(G||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return G?this.useCompactList?"COMPACT":G:this.miniMode?"COMPACT":"STANDARD"};
_.V.updateItemMinAndMaxWidth=function(){var G=_.qt("rich_grid_max_item_width",500);G>0&&_.eD(this.hostElement,{"--ytd-rich-grid-item-max-width":G+"px"});var e;G=this.getRichItemMinWidth((e=this.hostElement)==null?void 0:e.clientWidth);G>0&&_.eD(this.hostElement,{"--ytd-rich-grid-item-min-width":G+"px"})};
_.V.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.V.resizeObserved=function(){_.UW(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.V.onPageChange=function(){var G=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.UW(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.A0.addJob(function(){G.pageLoadingFromNavigation=!1;G.setMasthead();G.maybeSetBigYoodle();G.forceRefreshAndLog();G.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.V.dataChanged=function(){var G=this;_.UW(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.DE(this,function(){G.updateRichItemGridPositions();G.contentsElement&&_.eD(G.hostElement,{"--ytd-rich-grid-content-offset-top":G.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.V.initResizeObserver=function(){var G=this;if(window.ResizeObserver){var e;(e=this.resizeObserver)==null||e.disconnect();var r=!1;this.resizeObserver=new ResizeObserver(function(){if(r){var Z;(Z=G.resizeObserver)==null||Z.disconnect();var O;(O=G.JSC$22232_throttledOnResize)==null||O.fire();requestAnimationFrame(function(){var T;(T=G.JSC$22232_throttledOnResize)==null||T.fire();G.initResizeObserver()})}else if(r=!0,G.resizeOnObserverInit){var M;
(M=G.JSC$22232_throttledOnResize)==null||M.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.V.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.UW(this.hostElement,"ytd-rich-item-index-update-action")};
_.V.updateElementsPerRow=function(){_.UW(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.UK({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.UK({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.V.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.V.onRichShelfRendererCollapse=function(G){if(this.shownItems){var e=G.detail;G=this.shownItems.findIndex(function(Z){var O,M;return((M=_.a(Z==null?void 0:(O=Z.richSectionRenderer)==null?void 0:O.content,_.g6E))==null?void 0:M.trackingParams)===e});
var r=G+1;G<0||r>=this.contentsElement.children.length||!this.shownItems[r].richItemRenderer||this.contentsElement.children[r].scrollIntoView({behavior:"smooth",block:"start"})}};
_.V.onSoftReloadPage=function(){this.scrollUpToTop()};
_.V.handleRerenderDownloadsData=function(){_.R("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.V.handlePlaylistRemoveVideosAction=function(G){var e;if(((e=_.a(G,_.u5P))==null?0:e.setVideoIds)&&this.data&&this.data.contents){G=_.a(G,_.u5P).setVideoIds;for(e=this.data.contents.length-1;e>=0;){var r=_.a(this.data.contents[e],_.Ia);(r=r&&_.a(r.content,_.PV))&&r.setVideoId&&G.includes(r.setVideoId)&&this.splice("data.contents",e,1);e--}this.updateIndices()}};
_.V.updateIndices=function(){if(this.data&&this.data.contents)for(var G=0;G<this.data.contents.length;G++)this.set("data.contents."+G+".richItemRenderer.index",_.nQ(String(G+1)))};
_.V.hasTopRowInlinePlayableVideoWithEndorsement=function(G){var e;return!((e=G.slice(0,this.getItemsPerRow()))==null||!e.some(function(r){var Z;r=_.a(r==null?void 0:(Z=r.richItemRenderer)==null?void 0:Z.content,_.N8);var O;return(r==null?void 0:r.inlinePlaybackEndpoint)&&(r==null?void 0:(O=r.thumbnailOverlays)==null?void 0:O.some(function(M){return M.thumbnailOverlayEndorsementRenderer}))}))};
_.V.refreshGridLayoutNew=function(G,e,r,Z){var O=Z.postsPerRow;var M=Z.slimItemsPerRow;var T=Z.gameCardsPerRow;Z=Z.miniGameCardsPerRow;var E;if((E=this.data)==null||!E.contents||!this.containerWidth)return!1;var b;if((b=this.data.responsiveContainerConfiguration)==null?0:b.responsiveSize){var w=_.ly4(this.data.responsiveContainerConfiguration,this.containerWidth),q;E=_.kb(Object.assign({},w,{standardUnitMinWidth:(q=this.data)==null?void 0:q.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&w.isCompactList)}else E=_.kb({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(w=this.data)==null?void 0:w.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=E.typographyBump;q=!1;if(G||this.elementsPerRow!==E.numItems||this.postsPerRow!==O||this.slimItemsPerRow!==M||this.gameCardsPerRow!==
T||this.miniGameCardsPerRow!==Z||this.gutter!==E.gutter)q=this.elementsPerRow!==E.numItems,this.elementsPerRow=E.numItems,this.postsPerRow=O,this.slimItemsPerRow=M,this.gameCardsPerRow=T,this.miniGameCardsPerRow=Z,this.gutter=E.gutter,this.itemWidth=E.itemWidth,this.reflowContent(e),_.eD(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":E.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(r);this.ytdReduxBehavior.dispatch(_.UK({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:E.maxContainerWidth}));return q};
_.V.refreshGridLayout=function(G,e){var r,Z=(r=this.hostElement)==null?void 0:r.clientWidth;this.containerWidth=this.adjustRichGridWidth(Z,!0);var O;if((O=this.data)==null||!O.contents||!this.containerWidth)return G&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(G=!0,this.pendingForceReflow=!1);r=this.getRichItemMinWidth(Z);var M=this.isShortsPanel?146:194,T=this.getMiniGameCardMinWidth(),E=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:_.qt("rich_grid_default_max_items_per_row",
6);Z=r=this.calcElementsPerRow(r,E);(O=r<=3&&this.miniModeAllowed())&&(r=this.calcElementsPerRow(240,4));var b=this.calcMaxSlimElementsPerRow(r,E,this.isDefaultGrid);E=this.calcElementsPerRow(M,b);var w=this.calcElementsPerRow(this.isCompactGrid?M:154,b);M=this.calcElementsPerRow(this.isCompactGrid?M:T,b);T=!1;if(this.sizing)return this.refreshGridLayoutNew(G,e,O,{postsPerRow:Z,slimItemsPerRow:E,gameCardsPerRow:w,miniGameCardsPerRow:M});if(G||this.elementsPerRow!==r||this.postsPerRow!==Z||this.slimItemsPerRow!==
E||this.gameCardsPerRow!==w||this.miniGameCardsPerRow!==M)T=this.elementsPerRow!==r,this.elementsPerRow=r,this.postsPerRow=Z,this.slimItemsPerRow=E,this.gameCardsPerRow=w,this.miniGameCardsPerRow=M,this.reflowContent(e),this.updateElementsPerRow(),_.eD(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)&&_.eD(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(O);_.UW(this.hostElement,"yt-rich-grid-layout-refreshed");return T};
_.V.getRichItemMinWidth=function(G){var e=_.qt("rich_grid_min_item_width",310);if(!_.R("kevlar_disable_min_width_override")){var r,Z;e=(Z=(r=this.data)==null?void 0:r.minItemWidth)!=null?Z:e}return e+_.QOF(G)};
_.V.calcMaxSlimElementsPerRow=function(G,e,r){return(r===void 0?0:r)?G===1?2:G%2===0?G/2*3:G+2:e*2};
_.V.adjustRichGridWidth=function(G,e){var r=_.R("disable_rich_grid_guide_compensation");if(!this.isWatch&&!r){r=_.v_().resolve(_.bq(_.Pb));var Z=r==null?void 0:r.guideElement;if(!(!r||r.getData()||Z!=null&&Z.opened||r.getMiniGuideVisible()))if(r.canFitPersistentGuide(G)&&r.getGuideExpandsAutomatically()){var O,M,T=Number((O=window.getComputedStyle(this.hostElement))==null?void 0:(M=O.getPropertyValue("--app-drawer-width"))==null?void 0:M.replace("px",""));G-=T||0}else if(r.canFitMiniGuide(G)){var E;
O=Number((T=window.getComputedStyle(this.hostElement))==null?void 0:(E=T.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:E.replace("px",""));G-=O||0}}G>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(G-=e?32:48));return G};
_.V.calcElementsPerRow=function(G,e){var r=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),Z=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((r+Z)/(G+Z))||1,e)};
_.V.reflowContent=function(G){var e=this;if(!this.isReflowing){this.isReflowing=!0;var r,Z,O=!!((r=this.data)==null?0:(Z=r.contents)==null?0:Z.some(function(E){return _.a(E,_.mL)}));
r=this.getItemsPerRow();var M;Z=(M=this.data)==null?void 0:M.reflowOptions;G&&(_.jq("rgr_s"),_.DE(this,function(){_.jq("rgr_nrf")}));
G={};(M=_.z1(this.hostElement).querySelector("#contents"))&&(G={contentElement:M,rendererToTagNameMap:this.rendererToTagNameMap});M=(M=this.data.contents)?M.slice():[];O=zat(M,r,O,Z,this.getRichGridStyle(),G,this.insertedContent);var T=O.orderedContent;if(O=O.pinnedContentNotShownTargetIds)for(O=_.h(O),r=O.next();!r.done;r=O.next())this.insertedContent.delete(r.value);O=function(){e.shownItems=T;e.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(T),_.DE(this,O)):O()}};
_.V.getFirstRowItems=function(G){for(var e=[],r=0;r<G.length;r++){var Z=void 0,O=void 0,M=void 0,T=void 0,E=void 0,b=void 0;if(((Z=G[r])==null?void 0:(O=Z.richItemRenderer)==null?void 0:O.rowIndex)===0||((M=G[r])==null?void 0:(T=M.richGroupRenderer)==null?void 0:T.rowIndex)===0||((E=G[r])==null?void 0:(b=E.richSectionRenderer)==null?void 0:b.rowIndex)===0)e.push(G[r]);else break}return e};
_.V.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.V.resetInsertedContentIfNeeded=function(){(_.R("web_explore_hub_on_hover")||_.R("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.V.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.V.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()};
_.V.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.V.terminateVideoPreview=function(){_.UW(this.hostElement,"yt-terminate-video-preview-action")};
_.V.updateRichItemGridPositions=function(){var G={gridData:{gridColumnCount:this.elementsPerRow}},e;((e=this.data)==null?0:e.trackingParams)&&(e=_.l4())&&_.cn(e,_.b1(this.data.trackingParams),G);_.UW(this.hostElement,"ytd-rich-item-index-update-action")};
_.V.miniModeAllowed=function(){return this.isChannelPage};
_.V.getMiniGameCardMinWidth=function(){return 154};
_.V.updateMiniMode=function(G){this.miniMode=this.miniModeAllowed()&&G;this.ytdReduxBehavior.dispatch(_.UK({type:"SET_RICH_GRID_MINI_MODE",payload:G}))};
_.V.isCurrentPage=function(){return location.pathname===this.pagePath};
_.V.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var G=_.v_().resolve(_.y$).getCurrentPage();G&&G.setScrollTop(0)}};
_.V.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.V.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.V.maybeSetBigYoodle=function(){var G,e=(G=this.data)==null?void 0:G.bigYoodle;this.bigYoodleData!==e&&(this.bigYoodleData=e)};
_.V.setMasthead=function(){var G;((G=this.data)==null?0:G.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.V.getRichGridStyle=function(){var G,e;return(e=(G=this.data)==null?void 0:G.style)!=null?e:"RICH_GRID_STYLE_UNKNOWN"};
_.V.onIsShortsGridChange=function(){var G=this.ytdReduxBehavior,e=G.dispatch,r=this.getRichGridStyle();e.call(G,_.UK({type:"SET_RICH_GRID_STYLE",payload:r}))};
_.iY.Object.defineProperties(Bj.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var G;return(((G=this.data)==null?void 0:G.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var G;return(((G=this.data)==null?void 0:G.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var G=_.v_().resolve(_.y$).getCurrentPage(),e,r,Z;return(((e=this.data)==null?void 0:e.targetId)==="browse-feedFEsfv_audio_pivot"||_.R("web_enable_channel_pivot_panel")&&((r=this.data)==null?void 0:r.targetId)==="browse-feedFEsfv_channel_pivot"||_.R("web_enable_effect_pivot_panel")&&((Z=this.data)==null?void 0:Z.targetId)==="browse-feedFEsfv_effect_pivot")&&(G==null?void 0:G.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.R("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 G;return!((G=this.data)==null?0:G.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var G;return((G=_.v_().resolve(_.y$).getCurrentPage())==null?void 0:G.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var G;return((G=_.v_().resolve(_.y$).getCurrentPage())==null?void 0:G.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 G;return(((G=this.data)==null?void 0:G.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return((G=this.data)==null?0:G.enableContentSpecificAspectRatio)||((e=this.data)==null?0:(r=e.responsiveContainerConfiguration)==null?0:r.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.qt("web_continuation_handler_margin",0):0}}});
Bj.prototype.onIsShortsGridChange=Bj.prototype.onIsShortsGridChange;Bj.prototype.onReloadContinuationFinish=Bj.prototype.onReloadContinuationFinish;Bj.prototype.reflowContent=Bj.prototype.reflowContent;Bj.prototype.handleRerenderDownloadsData=Bj.prototype.handleRerenderDownloadsData;Bj.prototype.onRichShelfRendererCollapse=Bj.prototype.onRichShelfRendererCollapse;Bj.prototype.onRequestElementsPerRow=Bj.prototype.onRequestElementsPerRow;Bj.prototype.contentLengthChanged=Bj.prototype.contentLengthChanged;
Bj.prototype.dataChanged=Bj.prototype.dataChanged;Bj.prototype.onSizingChange=Bj.prototype.onSizingChange;Bj.prototype.onUseCompactListChange=Bj.prototype.onUseCompactListChange;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Bj.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Bj.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.CS),_.x("design:type",Object)],Bj.prototype,"ironResizableBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Bj.prototype,"actionHandlerBehavior",void 0);_.B([_.k(_.eP),_.x("design:type",Object)],Bj.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Bj.prototype,"componentBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],Bj.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Bj.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0,selector:_.lw}),_.x("design:type",Boolean)],Bj.prototype,"miniMode",void 0);_.B([_.n({value:[]}),_.x("design:type",Array)],Bj.prototype,"shownItems",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],Bj.prototype,"isReflowing",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],Bj.prototype,"isFilteredFeed",void 0);_.B([_.n({selector:_.sq$}),_.x("design:type",Boolean)],Bj.prototype,"guideIsExpanded",void 0);
_.B([_.n({selectorArgs:["entitySelectorType"],selector:function(G,e){if(_.R("kevlar_modern_downloads_page")&&e&&e!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(e){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":e=G.entities;var r=_.qr(e),Z=_.th(e),O=_.zhi(G),M=_.UGy(G),T=_.Wcs(G),E=_.Rha(e),b=_.iw(r),w=_.gf(e);return _.v7$(r,Z,E,_.KcN(e),O,M,b,w,T,_.Lcf(G),_.Xs(G));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return G=_.qr(G.entities),_.$sy(G);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return G=
_.tUN(G.entities),_.SRf(G);default:_.FH(new _.Cr("Error: entitySelectorType defined but not matched in selector.",G,e))}}}),
_.x("design:type",Object)],Bj.prototype,"entityDrivenRichGridData",void 0);_.B([_.n(),_.x("design:type",Object)],Bj.prototype,"resizeOnObserverInit",void 0);_.B([_.n(),_.x("design:type",Object)],Bj.prototype,"bigYoodleData",void 0);_.B([_.n(),_.x("design:type",Object)],Bj.prototype,"mastheadData",void 0);_.B([_.n(),_.x("design:type",Boolean)],Bj.prototype,"isInlinePreviewDisabled",void 0);_.B([_.n(),_.x("design:type",Object)],Bj.prototype,"disableStickyFilterBar",void 0);
_.B([_.n(),_.x("design:type",Object)],Bj.prototype,"transparentBackgroundChipsBar",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Bj.prototype,"hideChipsBar",void 0);_.B([_.n(),_.x("design:type",Object)],Bj.prototype,"isWatchDefaultLayout",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Bj.prototype,"continuationShowButton",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Bj.prototype,"rowReducedHorizontalMargin",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Bj.prototype,"useCompactList",void 0);_.B([_.n({selector:function(G){return _.th(G.entities).length>0}}),
_.x("design:type",Object)],Bj.prototype,"manualDownloadsPresent",void 0);_.B([_.n({selector:function(G){return _.qr(G.entities).length>0}}),
_.x("design:type",Object)],Bj.prototype,"smartDownloadsPresent",void 0);_.B([_.n({selector:_.Xs}),_.x("design:type",Object)],Bj.prototype,"isOnline",void 0);_.B([_.n({selector:_.UGy}),_.x("design:type",Object)],Bj.prototype,"shouldRenderDownloadsBanner",void 0);_.B([_.n({selector:_.Lcf}),_.x("design:type",Object)],Bj.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.B([_.n({selector:_.zhi}),_.x("design:type",Object)],Bj.prototype,"hasOptedIntoSmartDownloads",void 0);
_.B([_.Me("useCompactList"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bj.prototype,"onUseCompactListChange",null);_.B([_.Me("sizing","typographyBump"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bj.prototype,"onSizingChange",null);_.B([_.n({selector:_.n0F}),_.x("design:type",Number)],Bj.prototype,"miniplayerPlaybackState",void 0);_.B([_.n({selector:_.j6}),_.x("design:type",Boolean)],Bj.prototype,"miniplayerIsActive",void 0);
_.B([_.n({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.x("design:type",Boolean)],Bj.prototype,"isInlinePreviewEnabled",void 0);_.B([_.n({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.x("design:type",String)],Bj.prototype,"sizing",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Bj.prototype,"elementsPerRow",void 0);
_.B([_.n(),_.x("design:type",Object)],Bj.prototype,"typographyBump",void 0);_.B([_.n(),_.x("design:type",Number)],Bj.prototype,"itemWidth",void 0);_.B([_.hs("#header"),_.x("design:type",HTMLElement)],Bj.prototype,"headerElement",void 0);_.B([_.hs("#contents"),_.x("design:type",HTMLElement)],Bj.prototype,"contentsElement",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bj.prototype,"dataChanged",null);
_.B([_.iD("data.contents.length"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bj.prototype,"contentLengthChanged",null);_.B([_.Om("yt-request-elements-per-row"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bj.prototype,"onRequestElementsPerRow",null);
_.B([_.Om("yt-rich-shelf-renderer-collapse"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Bj.prototype,"onRichShelfRendererCollapse",null);_.B([_.iD("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bj.prototype,"handleRerenderDownloadsData",null);
_.B([_.d("data"),_.x("design:type",String),_.x("design:paramtypes",[])],Bj.prototype,"entitySelectorType",null);_.B([_.n({reflectToAttribute:!0}),_.d("data.targetId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bj.prototype,"isSub",null);_.B([_.n({reflectToAttribute:!0}),_.d("data.targetId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bj.prototype,"isWatch",null);
_.B([_.n({reflectToAttribute:!0}),_.d("data.targetId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bj.prototype,"isShortsPanel",null);_.B([_.n({reflectToAttribute:!0}),_.d("isWatch"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bj.prototype,"reducedTopMargin",null);_.B([_.n({reflectToAttribute:!0}),_.d("data","isWatch","isWatchDefaultLayout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bj.prototype,"noTopMargin",null);
_.B([_.n({reflectToAttribute:!0}),_.d("isInlinePreviewEnabled","shownItems"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bj.prototype,"topRowEndorsement",null);_.B([_.d("data.header"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bj.prototype,"hideHeader",null);_.B([_.Om("yt-rich-grid-reflow"),_.x("design:type",Function),_.x("design:paramtypes",[Boolean]),_.x("design:returntype")],Bj.prototype,"reflowContent",null);
_.B([_.Om("yt-reload-continuation-finish"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bj.prototype,"onReloadContinuationFinish",null);_.B([_.d("data"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bj.prototype,"isSlimGrid",null);_.B([_.d("data"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bj.prototype,"isShortsGrid",null);
_.B([_.d("data","isSlimGrid","isShortsGrid"),_.n(),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bj.prototype,"noRichItemGutterMargins",null);_.B([_.d("data"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bj.prototype,"isShortsGridSlim",null);_.B([_.d("data"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bj.prototype,"isCompactGrid",null);
_.B([_.d("data"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bj.prototype,"isDefaultGrid",null);_.B([_.d("data.targetId"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bj.prototype,"hideChipsBarOnWatch",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bj.prototype,"onIsShortsGridChange",null);
_.B([_.d("data.enableContentSpecificAspectRatio"),_.n(),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bj.prototype,"force16By9ThumbnailAspectRatio",null);_.B([_.d("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],Bj.prototype,"continuationTriggerOffset",null);_.B([_.c({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],Bj);
_.A(Bj,"ytd-rich-grid-renderer",function(){if(K3Z!==void 0)return K3Z;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return K3Z=G},{mode:2});var mWt=_.y(function(G){return _.v("yt-feedback-prompt-view-model",{class:_.LC("ytFeedbackPromptViewModelHost",G.className)},_.v(_.S,{cond:function(){return G.data().text},
then:function(e){return _.v(_.Wh,{text:e})}}),_.v("div",{class:"ytFeedbackPromptViewModelButtons"},_.v(_.E2,{data:function(){return G.data().likeButton}},{likeButtonViewModel:_.BZ}),_.v(_.E2,{data:function(){return G.data().dislikeButton}},{dislikeButtonViewModel:_.Jv})))},"Km");var cS$=_.y(function(G){var e=G.thumbsUp,r=G.thumbsDown,Z=G.rightAlignThumbs;G=_.h(_.XQ(!1,void 0,"OxPsH"));var O=G.next().value,M=G.next().value;G=_.h(_.XQ(!1,void 0,"V5vWne"));var T=G.next().value,E=G.next().value;G={};return _.v("div",{class:_.LC("ytwThumbsUpDownThumbs",(G.ytwThumbsUpDownRightAlign=function(){return Z==null?void 0:Z()},G))},_.v(_.pb,{data:e,
onToggle:function(b){M(b);T()&&E(!1)},
buttonShapeOverrides:function(){return{toggled:O()}}}),_.v(_.pb,{data:r,
onToggle:function(b){E(b);O()&&M(!1)},
buttonShapeOverrides:function(){return{toggled:T()}}}))},"Lm");
cS$.idomCompat=!0;var ySy=_.y(function(G){var e=function(){return G.data().pendingStateEntityKey||""},r=_.hI(_.Tj2,e),Z=function(){var E;
if(!(E=G.disabled())){var b;E=!((b=r())==null||!b.isPendingResponse)}return E},O=_.h(_.XQ(GC$(""),void 0,"Q6q6y")),M=O.next().value,T=O.next().value;
_.YZ(function(){requestAnimationFrame(function(){var E=G.data().onShowAnimationMs||0;E=E>0?GC$("--chip-animation-duration: "+E+"ms;"):GC$("");T(E)})});
return _.v("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:M},_.v(_.u6,{each:function(){return G.data().chipData||[]},
keyBy:"REFERENCE"},function(E){return _.v(Ylk,{data:E,disabled:Z,pendingStateKey:e,onError:G.onError})}))},"Nm"),Ylk=_.y(function(G){var e=_.T2("button"),r=_.h(_.XQ(!0,void 0,"baSFEf")),Z=r.next().value,O=r.next().value,M=function(){return G.data().text.content},T=function(){return G.data().transparentWhenLoading},E=_.Eb(_.oH.currentPageSubTypeSelector),b=function(){var q;
return(q=_.v_().resolve(_.bq(_.Q8)))==null?void 0:_.P7V(q,E())},w=_.ev(function(q){var t,g,l,X,H,I,C,u;
return _.D(function(P){switch(P.nextAddress){case 1:q.stopPropagation();if(G.disabled())return P.return();g=String(Math.floor(((t=_.eV())==null?void 0:t.getCurrentTime())||0)*1E3);l="youchat-"+Date.now();X=function(){_.KC(G.data().onClick||{});var F=_.WS2(G.data().continuation),J=_.I1({clientMessageId:l,playerOffsetMs:g,pageContext:b()});return new Promise(function(U,e$){_.KC(F,{form:{formData:J},commandController:{onSuccess:function(Dq,bF){U(bF)},
onServerError:function(Dq,bF){e$(bF.error)}}})})};
H=_.DWq(G.pendingStateKey());H(!0);_.yij("#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");O(!1);_.jr(P,2);return P.yield(X(),4);case 4:_.rL(P,3);break;case 2:I=_.k5(P),(u=(C=G).onError)==null||u.call(C,I);case 3:H(!1),_.HL(P)}})});
return _.v(_.S,{cond:Z,then:function(){return _.v("div",{class:"ytwYouChatChipsDataChipWrapper"},_.v("button",{el:e,class:"ytwYouChatChipsDataChip","data-disabled":G.disabled,"data-transparent-loading":T,"on:click":w,tabindex:0},M))}})},"Om");var ASz=_.y(function(G){var e=G.data;var r=G.initiallyExpanded;var Z=function(){var w;return(w=e().conversationResourceData)==null?void 0:w.learningGuideData};
G=_.h(_.Ob(function(){var w;return(w=r==null?void 0:r())!=null?w:!1}));
var O=G.next().value,M=G.next().value,T=function(){M(!0)},E=_.dw(function(){var w,q;
return(q=(w=Z())==null?void 0:w.sections)!=null?q:[]},void 0,"QxyRyf"),b=_.dw(function(){return E().length>4},void 0,"MEbwoe");
G=_.dw(function(){var w;return!O()&&b()&&(w=Z())!=null&&w.expandButton?E().slice(0,4):E()},void 0,"hIE70b");
return _.v("yt-conversation-resource-view-model",{class:_.LC("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.v(_.E2,{data:G},{expandableMetadataViewModel:_.UIY}),_.v(_.S,{cond:function(){return b()&&!O()},
then:function(){return _.v("div",{id:"showMoreButton"},_.v(_.E2,{data:function(){var w;return(w=Z())==null?void 0:w.expandButton}},{buttonViewModel:function(w){return _.v(_.wF,{data:w.data,
onClick:T})}}))}}))},"Pm");var F3q=_.y(function(G){var e=function(){var u;return(u=G.data().text)==null?void 0:u.content},r=function(){var u,P;
return(u=G.data().webData)==null?void 0:(P=u.textResult)==null?void 0:P.content},Z=_.v_().resolve(_.CC),O=_.r8(),M=function(){return G.data().chatResponseStyle},T=function(){return!G.data().transparentBackground},E=function(){return G.data().rightAlignThumbs},b=function(){return G.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||G.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},w=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:b()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:G.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},q=function(){var u;
return G.data().webData||((u=G.data().text)==null?void 0:u.content)||G.data().videoResultsData||G.data().conversationResourceViewModel||G.data().quiz||G.data().richContent},t=function(){return!!G.data().sectionHeader||q()},g=function(){var u;
return(u=G.data().videoResultsData)==null?void 0:u.videoShelf},l=function(){var u;
return(u=G.data().webData)==null?void 0:u.sourcesShelf},X=function(){return M()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||M()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:G.data().thumbsDownViewModel&&G.data().thumbsUpViewModel},H=function(){return _.a(G.data().thumbsUpViewModel,_.rq)},I=function(){return _.a(G.data().thumbsDownViewModel,_.rq)};
_.YZ(function(){requestAnimationFrame(function(){var u;(u=G.shouldAnimateIcon)!=null&&u.call(G)&&Ewq(O.lottieEl)})});
var C={};return _.v("you-chat-item-view-model",{class:_.LC("ytwYouChatItemViewModelYouChatItemViewModel",(C.ytwYouChatItemViewModelColumnLayout=function(){return b()},C)),
style:_.Mk({"min-height":function(){var u,P;return _.oPW((u=G.containerHeight)==null?void 0:u.call(G),(P=G.isLastItem)==null?void 0:P.call(G))}}),
"data-target-id":function(){return G.data().id||""}},_.v(_.S,{cond:function(){return G.data().removeIcon?!1:t()},
then:function(){var u={};return _.v("div",{"aria-hidden":"true"},_.v(_.lO,{className:_.LC("ytwYouChatItemViewModelIcon",(u.ytwYouChatItemViewModelRtl=Z==="rtl",u.ytwYouChatItemViewModelHidden=function(){return!(G.data().hideIcon||M()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||M()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:t())},u)),
animationName:"YOUCHAT_ICON",data:w,animationRef:O}))}}),_.v(_.S,{cond:t,
then:function(){var u={};return _.v("div",{class:_.LC("ytwYouChatItemViewModelHost",(u.ytwYouChatItemViewModelHostNoPadding=function(){return!!G.data().sectionHeader&&!q()},u.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return M()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},u.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return M()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},u.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return M()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
u.ytwYouChatItemViewModelGradientBackground=T,u)),
role:"alert"},_.v(_.S,{cond:e,then:function(P){return _.v(_.LI,{text:P,wrapCodeBlocks:!0})}}),_.v(_.E2,{data:function(){return G.data().sectionHeader}},{sectionHeaderViewModel:function(P){var F={};
return _.v(_.XA,{data:P.data,className:_.LC("ytwYouChatItemViewModelSectionHeader",(F.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!G.data().sectionHeader&&!q()},F)),
forceSmallLayout:!0})}}),_.v(_.S,{cond:r,
then:function(P){return _.v(_.LI,{text:P,wrapCodeBlocks:!0})}}),_.v(_.S,{cond:g,
then:function(){return _.v("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.v(_.E2,{data:function(){var P;return(P=G.data().videoResultsData)==null?void 0:P.videoShelf}},{horizontalShelfViewModel:function(P){return _.v(_.WP,{data:P.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.v(_.S,{cond:l,
then:function(){return _.v("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.v(_.E2,{data:function(){var P;return(P=G.data().webData)==null?void 0:P.sourcesShelf}},{horizontalShelfViewModel:function(P){return _.v(_.WP,{data:P.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.v(_.E2,{data:function(){return G.data().conversationResourceViewModel}},{conversationResourceViewModel:ASz}),_.v(_.E2,{data:function(){return G.data().quiz}},{learningJourneyQuizViewModel:_.Q9C}),_.v(_.E2,{data:function(){return G.data().richContent}},{cardViewModel:_.KGd,
linearLayoutViewModel:_.UL}),_.v(_.S,{cond:X,then:function(){return _.v(cS$,{thumbsUp:H,thumbsDown:I,rightAlignThumbs:E})}}))}}),_.v(_.S,{cond:function(){return G.data().chipsData},
then:function(u){return _.v(ySy,{data:u,disabled:G.pending,onError:G.onError})}}))},"Rm");
F3q.idomCompat={callbacks:{onError:!0,onSend:!0}};var JSz=_.y(function(G){var e=function(){return G.data().choiceSelectedText},r=function(){return G.data().hasGradientBackground},Z={};
return _.v("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost",style:_.Mk({"min-height":function(){var O,M;return _.oPW((O=G.containerHeight)==null?void 0:O.call(G),(M=G.isLastItem)==null?void 0:M.call(G))}}),
"data-target-id":function(){var O;return(O=G.data().itemTargetId)!=null?O:""}},_.v(_.S,{cond:e,
then:function(){return _.v("div",{class:"ytYouChatUserTurnChoiceSelected"},_.v(_.Wh,{text:e}))}}),_.v("div",{class:_.LC("ytYouChatUserTurnUserMessage",(Z.ytYouChatUserTurnGradientContainer=r,Z.ytYouChatUserTurnDefaultContainer=function(){return!r()},Z))},function(){return G.data().text}))},"Sm");var BjZ=_.y(function(G){var e=_.h((0,_.P$W)(G.data)).next().value,r=function(){var Z,O;return(O=(Z=e().contents)==null?void 0:Z.length)!=null?O:0};
return _.v("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return G.data().targetId||""},
"aria-busy":function(){var Z,O;return(O=(Z=e().contents)==null?void 0:Z.some(function(M){return!!M.chatLoadingViewModel}))!=null?O:!1}},_.v(_.E2,{data:function(){return G.data().header}},{chipBarViewModel:_.zYS,
sectionHeaderViewModel:_.XA}),_.v(_.E2,{data:function(){return e().contents}},{accordionViewModel:_.ujy,
alertBannerViewModel:_.O3E,chatLoadingViewModel:function(Z,O){return _.v(_.QRm,{data:Z.data,containerHeight:G.containerHeight,isLastItem:function(){return O()===r()-1}})},
chatUserTurnViewModel:function(Z,O){return _.v(JSz,{data:Z.data,containerHeight:G.containerHeight,isLastItem:function(){return O()===r()-1}})},
feedbackPromptViewModel:mWt,gridShelfViewModel:function(Z){return _.v(_.rUy,{data:Z.data,shouldUseOwnContainerSize:!0,marginSettings:G.marginSettings,useUpdatedMargin:!0})},
learningJourneyLoaderViewModel:_.d7y,linearLayoutViewModel:_.UL,lockupViewModel:function(Z){return _.v(_.Rk,{data:Z.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:G.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.XA,videoOverviewViewModel:_.BVE,youChatItemViewModel:function(Z,O){return _.v(F3q,{data:Z.data,pending:!1,containerHeight:G.containerHeight,isLastItem:function(){return O()===r()-1}})}}))},"Tm");_.J_(_.y(function(G){var e=_.h((0,_.P$W)(G.data)).next().value,r=_.hT("yt-section-list-renderer"),Z=_.h(_.XQ(void 0,void 0,"HC8fZb")),O=Z.next().value,M=Z.next().value,T=function(){var b;return _.a((b=G.data().sectionListLayoutConfiguration)==null?void 0:b.layoutConfiguration,$Wv)},E=_.T4(r);
_.yY(function(){var b,w=(b=r.value)==null?void 0:b.clientWidth;if(T()){b=T();var q=b.responsiveSize;w=w<528?"CONTAINER_SIZE_NARROW":w<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var t=_.h(b.responsiveMap||[]);for(var g=t.next();!g.done;g=t.next())if(g=g.value,g.containerSize===w){t=g.containerType;break b}t=void 0}if(t&&q){b:{if(t==="CONTAINER_TYPE_VERTICAL_LIST")if(q==="RESPONSIVE_SIZE_STANDARD"){if(w!=="CONTAINER_SIZE_NARROW"){g="50%";break b}}else{g=w==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}g=void 0}b={responsiveSize:q,containerSize:w,containerType:t,force16By9ThumbnailAspectRatio:!b.enableContentSpecificAspectRatio,contentPreviewWidth:g,fullbleed:(t==="CONTAINER_TYPE_VERTICAL_LIST"||t==="CONTAINER_TYPE_GRID")&&w==="CONTAINER_SIZE_NARROW"&&!1}}else b=void 0}else b=void 0;M(b)});
Z={};return _.v("yt-section-list-renderer",{class:_.LC("ytSectionListRendererHost",G.className,(Z.ytSectionListRendererHostOverscrollContain=function(){var b;return(b=G.overscrollContain)==null?void 0:b.call(G)},Z)),
el:r,"data-target-id":function(){return G.data().targetId||""}},_.v(_.E2,{data:function(){return e().contents}},{itemSectionRenderer:function(b){return _.v(BjZ,{data:b.data,
containerLayoutConfig:O,marginSettings:G.marginSettings,containerHeight:function(){return E.height()}})}}))},"Um"),"yt-section-list-renderer",{props:{data:_.N6,
className:_.yb,marginSettings:_.N6,overscrollContain:_.N6}});var xWZ;var Py2;var UWy=function(){return _.m.apply(this,arguments)||this};
_.K(UWy,_.m);_.B([_.n(),_.x("design:type",Object)],UWy.prototype,"data",void 0);_.B([_.aR({is:"yt-alert-renderer",disableElementRegistration:!0})],UWy);
_.A(UWy,"yt-alert-renderer",function(){if(Py2===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;xWZ===void 0&&(xWZ=document.createElement("template"));var Z=xWZ;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Py2=G}G=Py2;return G},{mode:2});
}catch(e){_._DumpException(e)}
try{
var lCa;lCa=function(G,e,r,Z){r||(G?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&&G instanceof DOMException&&G.name==="AbortError"&&G.message.includes("Old view transition aborted by new view transition"))||_.yx(G):_.yx(Error("wj")))};
_.RDW=function(G,e){e=e===void 0?{}:e;var r,Z,O,M,T,E,b,w,q,t,g,l,X;return _.D(function(H){switch(H.nextAddress){case 1:r=e;Z=r.shouldWrap===void 0?!0:r.shouldWrap;O=r.skipTransitionTimeoutMs===void 0?300:r.skipTransitionTimeoutMs;M=r.beforeTransition;T=r.afterTransition;if(!Z||!document.startViewTransition||document.visibilityState==="hidden")return H.return(G());E={width:window.innerWidth,height:window.innerHeight};b=!1;(w=M)==null||w();_.jr(H,2);q=document.startViewTransition(G);t=setTimeout(function(){q.skipTransition();
b=!0},O);
return H.yield(q.ready,4);case 4:return clearTimeout(t),H.yield(q.finished,5);case 5:clearTimeout(t);(g=T)==null||g();_.rL(H,0);break;case 2:l=_.k5(H),(X=T)==null||X(),lCa(l,E,b,e.ignoredErrors),_.HL(H)}})};
_.jB2=function(G,e){var r=_.Dgy(e);r!=="javascript:"&&r!=="data:"&&G.setAttribute("href",e)};
_.Kv=function(){for(var G=Array(36),e=0,r,Z=0;Z<36;Z++)Z==8||Z==13||Z==18||Z==23?G[Z]="-":Z==14?G[Z]="4":(e<=2&&(e=33554432+Math.random()*16777216|0),r=e&15,e>>=4,G[Z]=_.FZq[Z==19?r&3|8:r]);return G.join("")};
_.aCW=function(G,e,r){G.persistentPanelContainerMap.set(r,e)};/*

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 X1B=_.Cp(['<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>']),
Kk2=_.pxW(X1B);Kk2.setAttribute("style","display: none;");document.head.appendChild(Kk2.content);_.fv=_.$as(function(G){var e=_.Hp("DIV");G&&(e.className=G);e.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";G=_.Hp("DIV");_.p2v(G,"200px","200px");e.appendChild(G);document.body.appendChild(e);G=e.offsetWidth-e.clientWidth;_.d1(e);return G});var fCV;var k12;var kl=function(){var G=_.m.apply(this,arguments)||this;G.icon=null;return G};
_.K(kl,_.m);kl.prototype.dismiss=function(){_.xy(this.hostElement,"yt-live-chat-error-message-dismiss")};
kl.prototype.computeIcon=function(G){return G&&G.iconType?"yt-icons:"+G.iconType.toLowerCase():"yt-icons:close"};
_.B([_.n(),_.x("design:type",Object)],kl.prototype,"data",void 0);_.B([_.n({computed:"computeIcon(data.icon)"}),_.x("design:type",Object)],kl.prototype,"icon",void 0);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],kl);
_.A(kl,"yt-live-chat-error-message-renderer",function(){if(k12===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;fCV===void 0&&(fCV=document.createElement("template"));var Z=fCV;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);k12=G}G=k12;return G},{mode:0});
}catch(e){_._DumpException(e)}
try{
var iB_,bBz,vWv,wpv,tKX,R$2,jFX,aDZ,Xpy,Klt,fDk,kXw,HBk,oj,dMj,oW$,sFX,QFk,IDy,pp_,CxX,ux2,nW$,cAZ,YQt,yAv,AA_,Flz,JAk,B1$,xMZ,Px_,UMk,z$_,Wlj,N1q,Ll$,Gyj,Zoy,MOZ,htt,TwZ,DIv,E8q,et$,rBz,v8w,wOw,$IX,SM_,qMX,tOw,g8Z,l2t,ioX;iB_=function(G,e){return _.e6(G.entities,"timedMarkersListSyncEntity",e)};
bBz=function(G,e){return _.e6(G.entities,"liveReactionsDataEntity",e)};
vWv=function(G,e){G=_.e6(G.entities,"booleanEntity",e);return!(!G||!G.value)};
wpv=function(G,e){var r=_.l4();r&&G&&_.QU(r,_.b1(G),e)};
_.$Mq=function(G){return G.watch.isWatchActive};
_.SQX=function(G){return _.jv(G)||_.aV(G)||_.MlN(G)};
_.qQt=function(G){return!_.SQX(G)};
_.dn=function(G){return G.watch.watchScrollTop};
tKX=function(G){return G.watch.isLiveChatCollapsed};
_.gWj=function(){_.R("web_watch_log_theater_mode")&&_.oTp("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.lDz=function(G,e,r){if(!G.includes("START_TIME_PLACEHOLDER")||!G.includes("END_TIME_PLACEHOLDER"))return G;var Z=new Date(0),O=new Date(0);Z.setUTCMilliseconds(e);O.setUTCMilliseconds(r);return G.replace("START_TIME_PLACEHOLDER",_.pQ(Z,7)).replace("END_TIME_PLACEHOLDER",_.pQ(O,7))};
R$2=function(G){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:G}}]}}}};
jFX=function(G,e,r){var Z=_.R("web_enable_chat_autoscroll_to_user_turn")?"user_turn_message_id-"+Date.now():void 0;e=Object.assign({},{text:e,hasGradientBackground:r},Z&&{itemTargetId:Z});Z=_.R("web_enable_chat_autoscroll_to_user_turn")&&Z?{scrollToItem:{scrollPosition:"SCROLL_POSITION_START",item:{itemTargetId:Z,sectionTargetId:"youchat_section_list"}}}:void 0;return{listMutationCommand:{operations:Object.assign({},{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:e}],insertByPositionInSection:{sectionTargetId:G,
position:"INSERTION_POSITION_LAST"}}}]},Z?{scrollConfig:Z}:{})}}};
aDZ=function(G,e){return _.e6(G.entities,"booleanEntity",e)};
Xpy=function(){return function(G){_.nR(_.bt("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:G}))}};
Klt=function(G){switch(G){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}};
fDk=function(G,e,r){var Z=_.X0(r);G&&e&&Z&&G.getPlayerPromise().then(function(O){_.p74(Z)&&_.Yc();(new _.nX(O)).executeCommand(Z,e);_.R("continue_playback_on_desktop_companion_click")||O.pauseVideo()})};
kXw=function(G){var e=_.Ff(),r;if(r=_.Lz("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Z;r=(Z=r())==null?void 0:Z.layoutId}else r=null;fDk(e,r,G)};
HBk=function(G){var e=_.Ff(),r;if(r=_.Lz("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Z;r=(Z=r())==null?void 0:Z.layoutId}else r=null;fDk(e,r,G)};
oj=function(G,e){var r=G<0?"-":"";G=Math.abs(G);var Z=Math.floor(G/3600),O=Math.floor(G)%3600,M=Math.floor(O/60);O=Math.floor(O)%60;var T="";(e===void 0?0:e)&&(T="."+Math.round((G-Math.floor(G))*10));return Z>0?r+Z+":"+(M<10?"0"+M:""+M)+":"+(O<10?"0"+O:""+O)+T:r+M+":"+(O<10?"0"+O:""+O)+T};
dMj=function(G){var e=G.match(/[^0-9:\.]/g);if(e&&e.length>0)return null;G=G.split(":");if(G.length===0||G.length>3)return null;e=1;for(var r=0;G.length>0;){var Z=G.pop();if(Z===void 0)break;var O=Number(Z);if(Z===""||isNaN(O))return null;r+=O*e;e*=60}return r};
oW$=function(G,e,r,Z){G=Math.max(r,G);e=Math.min(e,Z-r);G+e>Z?(r=Z,G=r-e):r=G+e;return{start:G,end:r}};
sFX=function(G,e,r,Z,O,M){G<r?G=r:G+O>Z&&(G=Z-O);e>Z&&(e=Z);e=Math.min(G+M,Math.max(G+O,e));return{start:G,end:e}};
QFk=function(G,e,r,Z,O,M){e>Z?e=Z:e-O<r&&(e=r+O);G<r&&(G=r);G=Math.min(e-O,Math.max(e-M,G));return{start:G,end:e}};
IDy=function(G){return _.R("web_transcript_cue_id_killswitch")?String(G):"ytd-transcript-renderer_"+G};
pp_=function(G){return _.R("web_transcript_cue_id_killswitch")?!0:G.startsWith("ytd-transcript-renderer")};
CxX=function(G){var e=_.Ff(),r;if(r=_.Lz("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Z;r=(Z=r())==null?void 0:Z.layoutId}else r=null;fDk(e,r,G)};
ux2=function(G){G.style.height="auto";G.style.height=Math.min(G.scrollHeight||20,80)+"px"};
nW$=function(){var G;return String(Math.floor(((G=_.eV())==null?void 0:G.getCurrentTime())||0)*1E3)};
cAZ=function(G){if(G.onWelcomeCommand)return G.onWelcomeCommand;G=_.a(G.inputComposerViewModel,mMt);if(G==null?0:G.welcomeFeatureContinuation)return _.WS2(G.welcomeFeatureContinuation)};
YQt=function(G){var e=_.Ff(),r;r=(r=_.Lz("yt.www.ads.eventcache.getLastCompanionData"))?(r=r())&&r.layoutId:null;fDk(e,r,G)};
yAv=function(G){var e=_.Ff(),r;r=(r=_.Lz("yt.www.ads.eventcache.getLastCompanionData"))?(r=r())&&r.layoutId:null;fDk(e,r,G)};
AA_=function(G){if(G.simpleText)return[{text:G.simpleText}];var e;return(e=G.runs)!=null?e:[]};
Flz=function(G){var e=G.startEndTimeTemplate,r=G.startTimeUtcMillis;G=G.endTimeUtcMillis;if(e&&r&&G)return _.nQ(_.lDz(_.mG(e),Number(r),Number(G)))};
JAk=function(G,e){var r,Z,O=G==null?void 0:(r=G.viewCount)==null?void 0:(Z=r.videoViewCountRenderer)==null?void 0:Z.shortViewCount;if(!e&&O)return O;var M,T;return G==null?void 0:(M=G.viewCount)==null?void 0:(T=M.videoViewCountRenderer)==null?void 0:T.viewCount};
B1$=function(G,e){var r=G==null?void 0:G.relativeDateText;return!e&&r?[r,!0]:[G==null?void 0:G.dateText,!1]};
xMZ=function(G,e,r,Z,O){Z=Z===void 0?"":Z;O=O===void 0?!1:O;var M=JAk(G,e),T=_.h(B1$(G,e)),E=T.next().value;T=T.next().value;e=e?G==null?void 0:G.sponsorsOnlyFirstTimeLongText:G==null?void 0:G.sponsorsOnlyFirstTimeShortText;var b=[];r&&M&&b.push(M);!r&&T||!E||b.push(E);G=[O?G==null?void 0:G.subtitle:void 0].concat(_.mY(b),[e,G==null?void 0:G.stationName,G==null?void 0:G.rating,G?Flz(G):void 0,G==null?void 0:G.upNextProgramText,G==null?void 0:G.superTitleLink]).filter(function(w){return!!w});
r={runs:[]};for(O=0;O<G.length;O++)r.runs.push.apply(r.runs,_.mY(AA_(G[O]))),O<G.length-1&&r.runs.push({text:" "+Z+" "});return r};
Px_=function(G){return G.filter(function(e){return!_.a(e,_.AO)})};
UMk=function(G){var e,r,Z,O;if(G=G==null?void 0:(e=G.contents)==null?void 0:(r=e.twoColumnWatchNextResults)==null?void 0:(Z=r.results)==null?void 0:(O=Z.results)==null?void 0:O.contents){var M,T;return(T=(M=G.find(function(E){return!!E.videoPrimaryInfoRenderer}))==null?void 0:M.videoPrimaryInfoRenderer)==null?void 0:T.updatedMetadataEndpoint}};
z$_=function(G,e){var r;return(r=G.sourceConfigs)==null?void 0:r.find(function(Z){return Z.videoId===e})};
Wlj=function(G){return G==="End of video"||G==="End of playlist"};
N1q=function(G){var e,r,Z,O;return(e=G.getWatchNextResponse())==null?void 0:(r=e.contents)==null?void 0:(Z=r.twoColumnWatchNextResults)==null?void 0:(O=Z.playlist)==null?void 0:O.playlist};
Ll$=function(G){var e,r,Z,O,M,T;return(e=N1q(G))==null?void 0:(r=e.playlistButtons)==null?void 0:(Z=r.menuRenderer)==null?void 0:(O=Z.topLevelButtons)==null?void 0:(M=O[0])==null?void 0:(T=M.playlistLoopButtonRenderer)==null?void 0:T.playlistLoopStateEntityKey};
Gyj=function(G){var e=_.v_().resolve(_.Gt),r;return(e=(r=_.a(e.getAutoplayEndpoint(),_.u4))==null?void 0:r.playlistId)&&e===G};
Zoy=function(G,e,r,Z,O){function M(){_.A0.cancelJob(sn);var T=et$(e,r/G.getPlaybackRate()),E=T.hours,b=T.minutes;T=(T.seconds*1E3||6E4)/G.getPlaybackRate();G.setVideoTimeLeft(rBz(E,b));Z&&G.getPlayerState()!==0&&G.setSleepTimerTimeLeft(rBz(E,b,!0));(E>0||b>0)&&!O&&(sn=_.w8(_.A0,M,T))}
_.A0.cancelJob(sn);sn=_.w8(_.A0,M)};
MOZ=function(G,e,r){function Z(){_.A0.cancelJob(Oo2);var O=et$(e,r),M=O.hours;O=O.minutes;var T=6E4/G.getPlaybackRate();if(M>0||O>0)G.setSleepTimerTimeLeft(rBz(M,O,!0)),Oo2=_.w8(_.A0,Z,T)}
_.A0.cancelJob(Oo2);Oo2=_.w8(_.A0,Z)};
htt=function(G,e){var r=G.getVolume()/(e/500),Z=function(O){_.A0.cancelJob(VOz);var M=Math.floor(O-r);G.setVolume(M,!1);M>0&&(VOz=_.w8(_.A0,function(){Z(M)},500))};
_.A0.cancelJob(VOz);VOz=_.w8(_.A0,function(){Z(G.getVolume())})};
TwZ=function(G,e){_.A0.cancelJob(VOz);e&&G.syncVolume()};
DIv=function(){var G={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.OK("SLEEP_TIMER_DISRUPTED")}}}}};_.v_().resolve(_.$1).resolveCommand(G)};
E8q=function(G){return(G.getDuration()-G.getProgressState().current)*1E3};
et$=function(G,e){G=G+e-(0,_.vG)();if(G<=0)return{hours:0,minutes:0,seconds:0};var r=new ioX(0,0,0,0,0,0,G);G=r.getHours();e=r.getMinutes();r=r.getSeconds();r!==0&&e++;e!==0&&e%60===0&&(G++,e=0);return{hours:G,minutes:e,seconds:r}};
rBz=function(G,e,r){return G>0&&e>0?r?_.OK("TIME_LEFT_HOURS_MINUTES",{hours:G.toString(),minutes:e.toString()}):_.OK("TIME_HOURS_MINUTES",{hours:G.toString(),minutes:e.toString()}):G>0?r?_.Mn("TIME_LEFT_HOURS",G):_.Mn("TIME_HOURS",G):r?_.OK("TIME_LEFT_MINUTES",{minutes:e.toString()}):_.OK("TIME_MINUTES",{minutes:e.toString()})};
v8w=function(G,e){if(G.timelyActions)return G.timelyActions.find(function(r){var Z;return((Z=_.a(r,boy))==null?void 0:Z.cueRangeId)===e})};
wOw=function(G){var e=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.DX(G);G.keyMap_.forEach(function(r,Z){_.Y4(e,Z)||this.remove(Z)},G)};
$IX=function(G,e){G.reloadContinuationItemsCommandMatcher=e};
SM_=function(G,e){var r;return _.D(function(Z){return Z.nextAddress==1?e&&G.lastWelcomeContinuationSent!==e?_.Xgo(G)?Z.yield(G.panelController.isVisible("PAai_companion"),3):Z.jumpTo(2):Z.return(!1):Z.nextAddress==2||(r=Z.yieldResult,r)?Z.return(!0):Z.return(!1)})};
qMX=function(G){var e,r,Z,O,M;return _.D(function(T){if(T.nextAddress==1){if(!G.welcomeOptions)return T.return();e=G.welcomeOptions;r=e.command;Z=e.setPending;if(r){var E;var b=(E=_.a(r,_.f1))==null?void 0:E.token}else b=void 0;O=b;return T.yield(SM_(G,O),2)}if(!T.yieldResult)return T.return();G.lastWelcomeContinuationSent=O;(M=Z)==null||M(!0);b="youchat-"+Date.now();E=(E=_.eV())?String(Math.floor(E.getCurrentTime())*1E3):void 0;_.KC(r,{form:{formData:_.I1({clientMessageId:b,playerOffsetMs:E,pageContext:_.P7V(G,
G.pageSubtype)})}});_.HL(T)})};
tOw=function(G,e){_.D(function(r){G.welcomeOptions=e;return r.yield(qMX(G),0)})};
_.Qz=function(G,e){G.insertBefore(e,G.childNodes[0]||null)};
g8Z=function(G){if(G>=48&&G<=57||G>=96&&G<=106||G>=65&&G<=90||_.NS&&G==0)return!0;switch(G){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 _.Wz;default:return!1}};
l2t=function(G){if(G.altKey&&!G.ctrlKey||G.metaKey||G.keyCode>=112&&G.keyCode<=123)return!1;if(g8Z(G.keyCode))return!0;switch(G.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!_.Wz;default:return G.keyCode<166||G.keyCode>183}};
ioX=function(G,e,r,Z,O,M,T){this.date=typeof G==="number"?new Date(G,e||0,r||1,Z||0,O||0,M||0,T||0):new Date(G&&G.getTime?G.getTime():_.JV())};
_.Bz(ioX,_.kM);_.V=ioX.prototype;_.V.getHours=function(){return this.date.getHours()};
_.V.getMinutes=function(){return this.date.getMinutes()};
_.V.getSeconds=function(){return this.date.getSeconds()};
_.V.getMilliseconds=function(){return this.date.getMilliseconds()};
_.V.getUTCDay=function(){return this.date.getUTCDay()};
_.V.getUTCHours=function(){return this.date.getUTCHours()};
_.V.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.V.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.V.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.V.setHours=function(G){this.date.setHours(G)};
_.V.setMinutes=function(G){this.date.setMinutes(G)};
_.V.setSeconds=function(G){this.date.setSeconds(G)};
_.V.setMilliseconds=function(G){this.date.setMilliseconds(G)};
_.V.setUTCHours=function(G){this.date.setUTCHours(G)};
_.V.setUTCMinutes=function(G){this.date.setUTCMinutes(G)};
_.V.setUTCSeconds=function(G){this.date.setUTCSeconds(G)};
_.V.setUTCMilliseconds=function(G){this.date.setUTCMilliseconds(G)};
_.V.add=function(G){_.kM.prototype.add.call(this,G);G.hours&&this.setUTCHours(this.date.getUTCHours()+G.hours);G.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+G.minutes);G.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+G.seconds)};
_.V.JSC$11335_toIsoString=function(G){var e=_.kM.prototype.JSC$11335_toIsoString.call(this,G);return G?e+"T"+_.rc(this.getHours(),2)+":"+_.rc(this.getMinutes(),2)+":"+_.rc(this.getSeconds(),2):e+"T"+_.rc(this.getHours(),2)+_.rc(this.getMinutes(),2)+_.rc(this.getSeconds(),2)};
_.V.equals=function(G){return this.getTime()==G.getTime()};
_.V.toString=function(){return this.JSC$11335_toIsoString()};
_.V.clone=function(){var G=new ioX(this.date);G.firstDayOfWeek_=this.firstDayOfWeek_;G.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return G};
_.Rty=function(G){return _.UK({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:G}})};var jhX=new _.L9("imageTileRenderer");var a2$=new _.L9("promotedSparklesWebRenderer");var XOq=new _.L9("adGridCardCollectionViewModel");var KVt=new _.L9("carouselTitleViewModel");var f2t=new _.L9("ctaCarouselItemViewModel");var kyZ=new _.L9("textFieldViewModel");_.Ho_=new _.L9("engagementPanelHeaderShowNavigationButtonCommand");var dIz=new _.L9("hideEngagementPanelScrimAction");var o8z=new _.L9("setActivePanelItemAction");var shw=new _.L9("showEngagementPanelScrimAction");var Qhk=new _.L9("updateEngagementPanelAction");var I2w=new _.L9("updateSearchInVideoResultsAction");var pOZ=new _.L9("transcriptCueGroupRenderer");var CWt=new _.L9("transcriptCueRenderer");var uQy=new _.L9("transcriptFooterRenderer");var n8$=new _.L9("engagementPanelAdSubtitleRenderer");var mIq=new _.L9("videoDescriptionFantasySectionViewModel");var cBZ=new _.L9("deleteClipEngagementPanelCommand");var YMz=new _.L9("loopCommand");var yBt=new _.L9("changeCreatorEndscreenVisibilityCommand");var ABq=new _.L9("liveChatCallForQuestionsRenderer");var FVZ=new _.L9("updateTimedMarkersSyncObserverCommand");var boy=new _.L9("timelyActionViewModel");var JBj=new _.L9("timelyActionsOverlayViewModel");var Bw2=new _.L9("repeatChapterCommand");var xIw=new _.L9("watchPlayerOverflowMenuCommand");var PWv=new _.L9("compositeVideoOverlayRenderer");var UIw=new _.L9("sortFilterSubMenuRenderer");var ztz=new _.L9("switchListItemViewModel");var mMt=new _.L9("inputComposerViewModel");var WVz=new _.L9("transcriptEditSegmentCommand");var Nwt=new _.L9("transcriptUpdateSegmentTextCommand");var LVy=new _.L9("transcriptSearchBoxRenderer");var Gbt=new _.L9("transcriptSegmentListRenderer");var eNj=new _.L9("transcriptSegmentRenderer");_.rHt=new _.L9("updateDateTextAction");var ZzZ=new _.L9("updateTitleAction");var Ozt=new _.L9("updateViewershipAction");var M1q=new _.L9("relatedChipCommand");var V1Z=new _.L9("carouselLockupRenderer");var Ij=new _.L9("expandableVideoDescriptionBodyRenderer");var hNj=new _.L9("videoDescriptionHeaderRenderer");var Txj=new _.L9("videoDescriptionYouchatSectionViewModel");_.pn=_.qt("kevlar_watch_page_horizontal_margin",24);_.D0z=_.qt("kevlar_watch_page_columns_top_padding",24);_.EZt=426+_.pn*2;_.Cn=_.qt("kevlar_watch_two_column_width_threshold",1E3);_.iz_=_.pn*2;_.bzj=_.qt("kevlar_watch_secondary_width",402);_.vZX=_.qt("kevlar_watch_max_player_width",1280);_.wXX=_.qt("kevlar_watch_flexy_metadata_height",136);_.$0q=_.iz_+310+_.pn;_.S9q=_.iz_+360+_.pn;var q9v={PAUSE_CHAT:18};var t1Z;var gZz;var us=function(){return _.m.apply(this,arguments)||this};
_.K(us,_.m);us.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
us.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var G=_.a(this.data.button,_.G$);G&&(G.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.iY.Object.defineProperties(us,{template:{configurable:!0,enumerable:!0,get:function(){if(gZz===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;t1Z===void 0&&(t1Z=document.createElement("template"));var Z=t1Z;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);gZz=G}G=gZz;return G}}});
_.B([_.k(_.y9),_.x("design:type",Object)],us.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],us.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n({selectorArgs:["data.enabledEntityKey"],selector:vWv,observer:"onEnabledChange"}),_.x("design:type",Boolean)],us.prototype,"enabled",void 0);_.B([_.n(),_.x("design:type",Object)],us.prototype,"data",void 0);_.B([_.aR({is:"yt-disableable-button-view-model",noInjection:!0})],us);var lYy;var RNq;var jot=["transVert01","transVert02","transVert03"],aYz="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),nn=function(){var G=_.m.apply(this,arguments)||this;G.emojiManager=_.Wk;G.isDarkTheme=document.documentElement.hasAttribute("dark");G.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};G.reactionBuckets=[];G.noEmojiIdentifier="NO_EMOJI";return G};
_.K(nn,_.m);_.V=nn.prototype;_.V.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.V.desktopFountainEmojiSizePxChanged=function(){_.eD(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.V.createUserReactionAnimation=function(G){this.createEmojiAnimation(G,!0)};
_.V.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var G;((G=this.data)==null?0:G.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.bt("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.mY(this.emojiContainer.children)).forEach(function(e){e.remove()})};
_.V.detached=function(){this.cleanupFountain()};
_.V.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var G;this.reactionBuckets=_.c2.unsafeClone((G=this.emojiFountainData)==null?void 0:G.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.V.processEmojiBucket=function(G){var e=this;if(this.reactionBuckets&&!(G>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var r=this.reactionBuckets[G];this.generateEmojiAnimations(r);if(G<this.reactionBuckets.length-1){var Z;if(r==null?0:(Z=r.duration)==null?0:Z.seconds)this.emojiBucketTimerId=setTimeout(function(){e.processEmojiBucket(G+1)},Number(r.duration.seconds)*1E3)}}};
_.V.generateEmojiAnimations=function(G){var e=this,r=this.getRandomEmojiIdFromBucketWithOverride(G);if(r&&r!==this.noEmojiIdentifier){var Z=0;G.targetEps?(Z=this.linearInterpolateBounded(1,20,100,12,G.emojiSizeIndex||0),this.createEmojiAnimation(r,!1,G.emojiAnimationMs,Z),Z=this.getEmojiDelayMsFromTargetEps(G.targetEps)):(this.createEmojiAnimation(r),Z=this.getEmojiDelayMsFromDistribution(G.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){e.generateEmojiAnimations(G)},Z)}};
_.V.getRandomEmojiIdFromBucketWithOverride=function(G){if(!(G&&G.reactionsData&&G.reactionsData.length&&G.totalReactions))return this.noEmojiIdentifier;for(var e=G.totalReactions,r=1,Z=_.h(G.reactionsData),O=Z.next();!O.done;O=Z.next())O=O.value,(O.reactionWeightOverride||O.reactionWeightOverride===0)&&O.reactionCount&&(e-=O.reactionCount,r-=O.reactionWeightOverride);Z=!0;r<0&&(Z=!1,e=G.totalReactions,r=1);if(Z&&r>0&&e===0)if(r===1){O=0;for(var M=_.h(G.reactionsData),T=M.next();!T.done;T=M.next())T=
T.value,T.reactionCount&&T.reactionCount>0&&O++;O=1/O;M=_.h(G.reactionsData);for(T=M.next();!T.done;T=M.next())T.value.reactionWeightOverride=O}else for(O=1/(1-r),M=_.h(G.reactionsData),T=M.next();!T.done;T=M.next())T=T.value,T.reactionWeightOverride&&(T.reactionWeightOverride*=O);O=Math.random();M=0;T=_.h(G.reactionsData);for(var E=T.next();!E.done;E=T.next())if(E=E.value,E.reactionCount&&(M=(E.reactionWeightOverride||E.reactionWeightOverride===0)&&Z?M+E.reactionWeightOverride:M+r*E.reactionCount/
e,M>O&&(E.reactionCount--,G.totalReactions--,E=this.reactionItemToEmojiString(E),E!==this.noEmojiIdentifier)))return E;return this.noEmojiIdentifier};
_.V.reactionItemToEmojiString=function(G){if(G.unicodeEmojiId)return G.unicodeEmojiId;if(G.emoteId)return G.emoteId;if(G.videoReactionType)switch(G.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.V.createEmojiAnimation=function(G,e,r,Z){e=e===void 0?!1:e;this.lastEmojiRequestedForTesting=G;var O=G.startsWith("yt-icons:"),M=_.UD(this.emojiManager,G);if(M||O){var T=document.createElement("emoji");T.classList.add("yt-emoji-fountain-view-model");T.classList.add(jot[Math.floor(Math.random()*jot.length)]);var E=document.createElement("div");E.classList.add("yt-emoji-fountain-view-model");E.classList.add("horizontal-container");E.classList.add(aYz[Math.floor(Math.random()*aYz.length)]);e?(r=document.createElement("div"),
r.classList.add("user-reaction-bubble"),r.classList.add("yt-emoji-fountain-view-model"),E.appendChild(r)):(r&&(T.style.animationDuration=r+"ms",E.style.animationDuration=r+"ms"),Z&&(T.style.width=Z+"px",T.style.height=Z+"px"));O?(O=document.createElement("yt-icon"),O.polymerController.icon=G,Z&&(O.style.width=Z+"px",O.style.height=Z+"px"),G=O):G=this.emojiManager.createEmoji(M,!1);G.classList.add("yt-emoji-fountain-view-model");E.appendChild(G);T.appendChild(E);this.emojiContainer.appendChild(T);
T.addEventListener("animationend",function(){T.remove()});
var b,w;if((b=this.data)==null?0:(w=b.loggingDirectives)==null?0:w.trackingParams)e=e?_.L1(183501):_.L1(183500),wpv(this.data.loggingDirectives.trackingParams,e),_.SrS(e);setTimeout(function(){T&&T.remove()},2E3)}};
_.V.getEmojiDelayMsFromDistribution=function(G){return Math.random()*(G||1)*1E3};
_.V.getEmojiDelayMsFromTargetEps=function(G){return Math.random()*2*(1/G)*1E3};
_.V.linearInterpolateBounded=function(G,e,r,Z,O){O=Math.min(Math.max(O,G),r);return(e*(r-O)+Z*(O-G))/(r-G)};
nn.prototype.onEmojiFountainDataEntityUpdate=nn.prototype.onEmojiFountainDataEntityUpdate;nn.prototype.desktopFountainEmojiSizePxChanged=nn.prototype.desktopFountainEmojiSizePxChanged;nn.prototype.isActiveChanged=nn.prototype.isActiveChanged;_.B([_.n(),_.x("design:type",_.Pk)],nn.prototype,"emojiManager",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],nn.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.y9),_.x("design:type",Object)],nn.prototype,"ytLiveChatReduxBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],nn.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],nn.prototype,"data",void 0);_.B([_.n({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(G,e){return _.e6(G.entities,"emojiFountainDataEntity",e)}}),
_.x("design:type",Object)],nn.prototype,"emojiFountainData",void 0);_.B([_.n(),_.x("design:type",Boolean)],nn.prototype,"isActive",void 0);_.B([_.Me("isActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nn.prototype,"isActiveChanged",null);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],nn.prototype,"isDarkTheme",void 0);_.B([_.n(),_.x("design:type",String)],nn.prototype,"lastEmojiRequestedForTesting",void 0);
_.B([_.n({value:function(){return _.qt("desktop_fountain_emoji_size_px",20)}}),
_.x("design:type",Number)],nn.prototype,"desktopFountainEmojiSizePx",void 0);_.B([_.Me("desktopFountainEmojiSizePx"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nn.prototype,"desktopFountainEmojiSizePxChanged",null);_.B([_.hs("#emoji-container"),_.x("design:type",HTMLElement)],nn.prototype,"emojiContainer",void 0);
_.B([_.Me("emojiFountainData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nn.prototype,"onEmojiFountainDataEntityUpdate",null);_.B([_.aR({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],nn);
_.A(nn,"yt-emoji-fountain-view-model",function(){if(RNq===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;lYy===void 0&&(lYy=document.createElement("template"));var Z=lYy;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);RNq=G}G=RNq;return G},{mode:0});var XXy;var K0z;var mW=function(){return _.m.apply(this,arguments)||this};
_.K(mW,_.m);mW.prototype.onChoiceChanged=function(){this.data&&_.eD(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
mW.prototype.onChoiceChanged=mW.prototype.onChoiceChanged;_.B([_.n(),_.x("design:type",Object)],mW.prototype,"data",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mW.prototype,"onChoiceChanged",null);_.B([_.c({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],mW);
_.A(mW,"yt-live-chat-banner-poll-choice",function(){if(K0z===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;XXy===void 0&&(XXy=document.createElement("template"));var Z=XXy;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);K0z=G}G=K0z;return G},{mode:0});var fYy;var kbj;var cm=function(){var G=_.m.apply(this,arguments)||this;G.modern=_.R("web_button_rework_with_live");G.small=!1;return G};
_.K(cm,_.m);cm.prototype.computeIsSmall=function(){var G;return((G=this.buttonOverrides)==null?void 0:G.size)==="S"};
cm.prototype.computeId=function(){return this.data&&this.data.targetId};
_.B([_.k(_.AL.YtLiveChatTooltipTargetingBehavior),_.x("design:type",Object)],cm.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.B([_.n({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.x("design:type",String)],cm.prototype,"id",void 0);_.B([_.n(),_.x("design:type",Object)],cm.prototype,"buttonOverrides",void 0);_.B([_.n(),_.x("design:type",Object)],cm.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],cm.prototype,"modern",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.x("design:type",Object)],cm.prototype,"small",void 0);_.B([_.c({disableElementRegistration:!0,is:"yt-live-chat-button"})],cm);
_.A(cm,"yt-live-chat-button",function(){if(kbj===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;fYy===void 0&&(fYy=document.createElement("template"));var Z=fYy;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);kbj=G}G=kbj;return G},{mode:0});var Hzt;var d0q;var YY=function(){var G=_.m.apply(this,arguments)||this;G.inCollapsedBanner=!1;G.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};G.questionButtonOverrides={style:"mono",type:"filled"};return G};
_.K(YY,_.m);_.V=YY.prototype;_.V.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]]"}}}}}};
_.V.onContextMenuButtonClick=function(G){this.ytLiveChatItemBehavior.showContextMenu(G)};
_.V.onYtRendererstamperFinished=function(){this.menuButton=_.z1(this.hostElement).querySelector("#menu-button")};
_.V.dataChanged=function(){var G,e;if((e=_.a((G=this.data)==null?void 0:G.overflowMenuButton,_.zM))==null?0:e.command)this.data.contextMenuEndpoint=_.a(this.data.overflowMenuButton,_.zM).command};
_.V.onButtonClick=function(){var G,e=_.a((G=this.data)==null?void 0:G.askQuestionButton,_.zM);if(e){if(e.trackingParams&&(G=_.b1(e.trackingParams))){var r=_.l4();r&&_.n_(r,G)}_.xy(this.hostElement,"innertube-command",e.command)}};
YY.prototype.onYtRendererstamperFinished=YY.prototype.onYtRendererstamperFinished;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],YY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.y9),_.x("design:type",Object)],YY.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.k(_.NG.YtLiveChatItemBehavior),_.x("design:type",_.Lb)],YY.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.n({observer:"dataChanged"}),_.x("design:type",Object)],YY.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],YY.prototype,"inCollapsedBanner",void 0);_.B([_.n(),_.x("design:type",Object)],YY.prototype,"buttonOverrides",void 0);_.B([_.n(),_.x("design:type",Object)],YY.prototype,"questionButtonOverrides",void 0);_.B([_.Om("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YY.prototype,"onYtRendererstamperFinished",null);
_.B([_.c({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],YY);
_.A(YY,"yt-live-chat-call-for-questions-renderer",function(){if(d0q===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;Hzt===void 0&&(Hzt=document.createElement("template"));var Z=Hzt;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);d0q=G}G=d0q;return G},{mode:0});var oZy={};oZy.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 G=this;window.requestAnimationFrame(function(){G.restoreFocusNode_||(G.restoreFocusNode_=document.activeElement);var e=_.sij(G.hostElement);e.length&&e[e.length-1].focus()})},
isAttachedChanged_:function(G,e){G?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(G){this.hidden||_.na(G).indexOf(this.hostElement)!==-1||(G.stopPropagation(),this.focusChild_())}};var soq;var QoX;var yz=function(){return _.m.apply(this,arguments)||this};
_.K(yz,_.m);yz.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
yz.prototype.onClick=function(G){G.target!==this.confirmButton&&G.target!==this.cancelButton&&(this.hidden=!0)};
_.B([_.hs("#confirm_button"),_.x("design:type",Object)],yz.prototype,"confirmButton",void 0);_.B([_.hs("#cancel_button"),_.x("design:type",Object)],yz.prototype,"cancelButton",void 0);_.B([_.n(),_.x("design:type",IYt)],yz.prototype,"data",void 0);_.B([_.n({value:!0,reflectToAttribute:!0}),_.x("design:type",Boolean)],yz.prototype,"hidden",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],yz.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(oZy.YtLiveChatDialogBehavior),_.x("design:type",Object)],yz.prototype,"ytLiveChatDialogBehavior",void 0);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],yz);
var IYt=_.A(yz,"yt-live-chat-dialog-renderer",function(){if(QoX===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;soq===void 0&&(soq=document.createElement("template"));var Z=soq;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);QoX=G}G=QoX;return G},{mode:0});var pXz;var C6Z,ut$=function(){if(C6Z!==void 0)return C6Z;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;pXz===void 0&&(pXz=document.createElement("template"));var Z=pXz;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return C6Z=G};var nZy;var m0X;var A7=function(){var G=_.m.apply(this,arguments)||this;G.tooltip=null;G.data=null;G.id="";G.active=!1;G.icon="";G.disabled=!1;G.showTooltip=!1;G.useToggledActiveState=!0;G.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return G};
_.K(A7,_.m);_.V=A7.prototype;
_.V.dataChanged=function(){var G;((G=this.data)==null?0:G.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,_.Go)(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};
_.V.computeId=function(G){return G};
_.V.computeIcon=function(G,e){if(!G)return"";if(this.useToggledActiveState)return"yt-icons:"+G.toLowerCase();var r,Z;return e&&((r=this.data)==null?0:(Z=r.toggledIcon)==null?0:Z.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+G.toLowerCase()};
_.V.logPDGEntryPoint=function(){_.ZXN(_.eF("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")};
_.V.immediatelyShowTooltip=function(){var G=_.z1(this.hostElement).querySelector("#tooltip");G.animationDelay=0;G.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};G.show()};
_.V.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.V.onClick=function(G){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(),G.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.xy(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.V.computeShowTooltip=function(G,e){return!!(G&&G.tooltip&&e)};
_.V.maybeUpdateTooltipText=function(){var G=this,e;if((e=this.data)==null?0:e.tooltip){var r=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.Go)(G.tooltip).textContent=r},250)}};
_.V.handleLiveChatActions=function(G){var e=this;G.length&&(this.id!=="creator"&&this.id!=="product-picker"||G.forEach(function(r){(r=e.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",r))&&r.durationSec===r.fullDurationSec&&e.startBubble(e.colorFromDecimal(r.startBackgroundColor))}))};
_.V.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.V.startBubble=function(G){_.eD(this.hostElement,{"--yt-live-chat-monetization-button-glow":G});this.hostElement.setAttribute("bubble","")};
_.V.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.V.colorFromDecimal=function(G){typeof G==="string"&&(G=Number(G));return"rgba("+[G>>16&255,G>>8&255,G&255,(G>>24&255)/255].join()+")"};
A7.prototype.onAnimationEnd=A7.prototype.onAnimationEnd;A7.prototype.disabledChanged=A7.prototype.disabledChanged;A7.prototype.dataChanged=A7.prototype.dataChanged;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],A7.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.AL.YtLiveChatTooltipTargetingBehavior),_.x("design:type",Object)],A7.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],A7.prototype,"data",void 0);_.B([_.n({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.x("design:type",Object)],A7.prototype,"id",void 0);_.B([_.n({notify:!0,reflectToAttribute:!0}),_.x("design:type",Object)],A7.prototype,"active",void 0);
_.B([_.n({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.x("design:type",Object)],A7.prototype,"icon",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],A7.prototype,"disabled",void 0);_.B([_.n({computed:"computeShowTooltip(data, disabled)"}),_.x("design:type",Object)],A7.prototype,"showTooltip",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],A7.prototype,"useToggledActiveState",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],A7.prototype,"dataChanged",null);_.B([_.Me("disabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],A7.prototype,"disabledChanged",null);_.B([_.Om("animationend"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],A7.prototype,"onAnimationEnd",null);
_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],A7);
_.A(A7,"yt-live-chat-icon-toggle-button-renderer",function(){if(m0X===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;nZy===void 0&&(nZy=document.createElement("template"));var Z=nZy;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);m0X=G}G=m0X;return G},{mode:0});var cHt;var Y9_;var Fe=function(){return _.m.apply(this,arguments)||this};
_.K(Fe,_.m);Fe.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.B([_.n(),_.x("design:type",Object)],Fe.prototype,"data",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Fe.prototype,"ytRendererstamperBehavior",void 0);_.B([_.c({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],Fe);
_.A(Fe,"yt-live-chat-message-input-prompt-header-renderer",function(){if(Y9_===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;cHt===void 0&&(cHt=document.createElement("template"));var Z=cHt;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Y9_=G}G=Y9_;return G},{mode:0});var yHz;var AH_;var F0X;var JHz;var BxZ;var x02;var P6_=function(){return _.m.apply(this,arguments)||this};
_.K(P6_,_.m);_.B([_.n(),_.x("design:type",Object)],P6_.prototype,"data",void 0);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],P6_);
_.A(P6_,"yt-live-chat-message-subtext-renderer",function(){if(x02===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;BxZ===void 0&&(BxZ=document.createElement("template"));var Z=BxZ;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);x02=G}G=x02;return G},{mode:0});var J7=function(){var G=_.m.apply(this,arguments)||this;G.subtextOnBottom=!1;G.buttonOverrides={style:"mono",type:"tonal"};return G};
_.K(J7,_.m);J7.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"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],J7.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],J7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],J7.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],J7.prototype,"subtextOnBottom",void 0);_.B([_.n(),_.x("design:type",Object)],J7.prototype,"buttonOverrides",void 0);
_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],J7);
_.A(J7,"yt-live-chat-message-renderer",function(){if(JHz===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;F0X===void 0&&(F0X=document.createElement("template"));var Z=F0X;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);JHz=G}G=JHz;return G},{mode:0});var U0w;var zNq;var Bm=function(){var G=_.m.apply(this,arguments)||this;G.isRemovable=!1;G.hasPrefilledText=!1;G.isInputDirty=!1;G.overCharacterLimit=!1;G.underCharacterLimit=!1;G.showErrorMessage=!1;return G};
_.K(Bm,_.m);_.V=Bm.prototype;_.V.computeId=function(){return this.data.id};
_.V.computeInputData=function(){return this.data.inputData};
_.V.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.V.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.V.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.V.getLiveChatRichMessageInput=function(){return _.z1(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.V.clearInput=function(){_.z1(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.V.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.V.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.V.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.V.handleTextInputCharCountChanged=function(G){G=G.detail&&G.detail.characterCount;G!==void 0&&(this.characterCount=G,G!==0&&(this.isInputDirty=!0))};
_.V.onInputFocusOut=function(){this.isInputDirty=!0};
_.V.onClickCloseButton=function(){_.xy(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
Bm.prototype.handleTextInputCharCountChanged=Bm.prototype.handleTextInputCharCountChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Bm.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Bm.prototype,"data",void 0);_.B([_.n({computed:"computeId(data.id)"}),_.x("design:type",String)],Bm.prototype,"id",void 0);_.B([_.n({computed:"computeInputData(data.inputData)"}),_.x("design:type",Object)],Bm.prototype,"inputData",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.x("design:type",Object)],Bm.prototype,"isRemovable",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.x("design:type",Object)],Bm.prototype,"hasPrefilledText",void 0);_.B([_.n({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.x("design:type",Number)],Bm.prototype,"charactersRemaining",void 0);
_.B([_.n(),_.x("design:type",Number)],Bm.prototype,"characterCount",void 0);_.B([_.n(),_.x("design:type",Object)],Bm.prototype,"isInputDirty",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.x("design:type",Object)],Bm.prototype,"overCharacterLimit",void 0);_.B([_.n({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.x("design:type",Object)],Bm.prototype,"underCharacterLimit",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.x("design:type",Object)],Bm.prototype,"showErrorMessage",void 0);_.B([_.Om("yt-live-chat-text-input-field-renderer-character-count-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Bm.prototype,"handleTextInputCharCountChanged",null);
_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],Bm);
_.A(Bm,"yt-live-chat-poll-editor-input",function(){if(zNq===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;U0w===void 0&&(U0w=document.createElement("template"));var Z=U0w;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);zNq=G}G=zNq;return G},{mode:0});var W0v;var Nxz;var L0t={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},xY=function(){var G=_.m.apply(this,arguments)||this;G.modern=_.R("web_button_rework_with_live");G.closeButtonOverrides={iconPosition:"icon-only"};G.startButtonOverrides={style:"mono",type:"filled"};G.addOptionButtonOverrides={style:"mono",type:"text"};return G};
_.K(xY,_.m);_.V=xY.prototype;
_.V.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"}}}}};
_.V.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var G;_.a((G=this.data)==null?void 0:G.startButton,_.zM)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.V.computeId=function(){return this.data&&this.data.id||""};
_.V.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.V.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.V.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.V.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.V.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var G=0;G<this.pollEditorInfoWithDefaults.minPollOptions;G++)this.addPollOptionData()};
_.V.getIsValidPoll=function(){var G=this;if(!this.pollEditorInfoWithDefaults)return!1;var e=this.pollEditorInfoWithDefaults,r=e.minPollOptionChars,Z=e.maxPollOptionChars,O=e.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>e.maxPollQuestionChars)return!1;e=_.z1(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(e).every(function(M,T){M=M.characterCount;!M&&O[T]&&(M=G.ytRendererBehavior.getSimpleString(O[T]).length);return M!==void 0&&M>=r&&M<=Z})};
_.V.isValidPollChanged=function(){var G;_.a((G=this.data)==null?void 0:G.startButton,_.zM)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.V.addPollOptionData=function(){var G=this.pollEditorInfoWithDefaults,e=G.maxPollOptionChars,r=G.optionPlaceholderText,Z=G.customOptionPlaceholderText,O=G.pollOptionData;this.currentNumPollOptions>=G.maxPollOptions||(G={liveChatPollOptionInput:{inputData:{placeholder:Z[this.currentNumPollOptions]||r,maxCharacterLimit:e},maxCharacterLimit:e,minCharacterLimit:G.minPollOptionChars,hasPrefilledText:!!Z[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=G.minPollOptions}},O.charCountErrorText&&
(G.liveChatPollOptionInput.charCountErrorText=O.charCountErrorText),O.charsRemainingAltLabel&&(G.liveChatPollOptionInput.charsRemainingAltLabel=O.charsRemainingAltLabel),O.removeOptionAltText&&(G.liveChatPollOptionInput.removeOptionAltText=O.removeOptionAltText),this.push("pollOptionsData",G),O=Array.from(_.z1(_.z1(this.hostElement).querySelector("#poll-options")).children),O.forEach(function(M,T){M.polymerController.set("data.id",T)}),_.z1(O[O.length-1]).querySelector("#input").focus())};
_.V.getPollOptionInputValues=function(){var G=this,e=[],r=_.z1(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),Z=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(r).forEach(function(O,M){var T=null;O=O.getLiveChatRichMessageInput();var E;(O==null?0:(E=O.textSegments)==null?0:E.length)?T=_.dp(O):Z[M]&&(T=G.formattedStringToLiveChatRichMessageInput(Z[M]));e.push(T)});
return e};
_.V.requestCreateAndStartPoll=function(G){var e=this.getPollOptionInputValues();if(!e.some(function(Z){return!Z})){e={optionText:e};
var r=_.z1(_.z1(this.hostElement).querySelector("#poll-question")).firstChild;r&&r.liveChatRichMessageInput&&(e.questionText=_.dp(r.liveChatRichMessageInput));_.zw(this.hostElement,[G,e])}};
_.V.selectedChanged=function(){if(this.selected){var G=_.z1(_.z1(this.hostElement).querySelector("#start-button")).firstElementChild;if(G){var e;(e=_.z1(G).querySelector("#button")||_.W1(G).querySelector("button"))==null||e.focus()}}};
_.V.handleTextInputChanged=function(G){var e;((e=G.target)==null?void 0:e.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=G.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.V.handleStartButtonAction=function(G){G.detail.actionName==="yt-service-request"&&(G.stopPropagation(),(G=G.detail.args[1])&&this.requestCreateAndStartPoll(G))};
_.V.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.V.handleServiceRequestCompleted=function(G){this.createPollRequestInFlight=!1;(G=G.detail&&G.detail.data)&&G.success&&(_.xy(this.hostElement,"picker-cancelled"),_.Pi(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.V.onCloseClick=function(){_.xy(this.hostElement,"picker-cancelled");_.Pi(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.V.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.V.handlePollEditorInputClosed=function(G){var e=this.pollOptionsData.findIndex(function(r){return r.liveChatPollOptionInput.id===G.detail.id});
this.splice("pollOptionsData",e,1);this.isValidPoll=this.getIsValidPoll()};
_.V.onPickerCancelled=function(){this.reset()};
_.V.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var G=_.z1(_.z1(this.hostElement).querySelector("#poll-question")).firstChild;G&&G.setLiveChatRichMessageInput(null);if(G=_.z1(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){G=_.h(Array.from(G));for(var e=G.next();!e.done;e=G.next())e.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.V.formattedStringToLiveChatRichMessageInput=function(G){return G.simpleText?{text_segments:[G.simpleText]}:{text_segments:G.runs}};
_.iY.Object.defineProperties(xY.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(L0t,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
xY.prototype.onPickerCancelled=xY.prototype.onPickerCancelled;xY.prototype.handlePollEditorInputClosed=xY.prototype.handlePollEditorInputClosed;xY.prototype.handleServiceRequestCompleted=xY.prototype.handleServiceRequestCompleted;xY.prototype.handleServiceRequestSent=xY.prototype.handleServiceRequestSent;xY.prototype.handleTextInputChanged=xY.prototype.handleTextInputChanged;xY.prototype.selectedChanged=xY.prototype.selectedChanged;xY.prototype.isValidPollChanged=xY.prototype.isValidPollChanged;
xY.prototype.shouldInitializePollChanged=xY.prototype.shouldInitializePollChanged;xY.prototype.dataChanged=xY.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],xY.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],xY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],xY.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],xY.prototype,"modern",void 0);
_.B([_.n(),_.x("design:type",Object)],xY.prototype,"closeButtonOverrides",void 0);_.B([_.n(),_.x("design:type",Object)],xY.prototype,"startButtonOverrides",void 0);_.B([_.n(),_.x("design:type",Object)],xY.prototype,"addOptionButtonOverrides",void 0);_.B([_.n({computed:"computeId(data.id)",reflectToAttribute:!0}),_.x("design:type",String)],xY.prototype,"id",void 0);_.B([_.n({value:function(){return[]}}),
_.x("design:type",Array)],xY.prototype,"pollOptionsData",void 0);_.B([_.d("pollEditorInfoWithDefaults"),_.x("design:type",Object),_.x("design:paramtypes",[])],xY.prototype,"pollQuestionData",null);_.B([_.n({value:0}),_.x("design:type",Number)],xY.prototype,"pollQuestionCharacterCount",void 0);_.B([_.d("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.x("design:type",Object),_.x("design:paramtypes",[])],xY.prototype,"pollQuestionCharactersRemaining",null);
_.B([_.n({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.x("design:type",Boolean)],xY.prototype,"overQuestionCharacterLimit",void 0);_.B([_.d("data.pollEditorInfo"),_.x("design:type",Object),_.x("design:paramtypes",[])],xY.prototype,"pollEditorInfoWithDefaults",null);_.B([_.n({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.x("design:type",Number)],xY.prototype,"currentNumPollOptions",void 0);
_.B([_.n({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.x("design:type",Boolean)],xY.prototype,"hasMaxNumPollOptions",void 0);_.B([_.d("pollEditorInfoWithDefaults","pollOptionsData"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],xY.prototype,"shouldInitializePoll",null);_.B([_.n(),_.x("design:type",Object)],xY.prototype,"isValidPoll",void 0);
_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],xY.prototype,"createPollRequestInFlight",void 0);_.B([_.n(),_.x("design:type",Object)],xY.prototype,"selected",void 0);_.B([_.n({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.x("design:type",Boolean)],xY.prototype,"showQuestionErrorMessage",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xY.prototype,"dataChanged",null);_.B([_.Me("shouldInitializePoll"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xY.prototype,"shouldInitializePollChanged",null);_.B([_.Me("isValidPoll"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xY.prototype,"isValidPollChanged",null);
_.B([_.Me("selected"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xY.prototype,"selectedChanged",null);_.B([_.Om("yt-live-chat-text-input-field-renderer-character-count-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],xY.prototype,"handleTextInputChanged",null);
_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xY.prototype,"handleServiceRequestSent",null);_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],xY.prototype,"handleServiceRequestCompleted",null);
_.B([_.Om("yt-live-chat-poll-editor-input-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],xY.prototype,"handlePollEditorInputClosed",null);_.B([_.Om("picker-cancelled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xY.prototype,"onPickerCancelled",null);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],xY);
_.A(xY,"yt-live-chat-poll-editor-panel-renderer",function(){if(Nxz===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;W0v===void 0&&(W0v=document.createElement("template"));var Z=W0v;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Nxz=G}G=Nxz;return G},{mode:0});var GGz;var ewj;var Pm=function(){return _.m.apply(this,arguments)||this};
_.K(Pm,_.m);Pm.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
Pm.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.iY.Object.defineProperties(Pm.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var G,e;return(G=this.data)==null?void 0:(e=G.title)==null?void 0:e.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var G;return _.X0((G=this.data)==null?void 0:G.onTapCommand)}}});
_.B([_.k(_.t4.YtEndpointBehavior),_.x("design:type",Object)],Pm.prototype,"ytEndpointBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Pm.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Pm.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Pm.prototype,"itemId",null);
_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Pm.prototype,"hasPromotion",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Pm.prototype,"innertubeCommand",null);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],Pm);
_.A(Pm,"yt-live-chat-product-picker-panel-item-view-model",function(){if(ewj===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;GGz===void 0&&(GGz=document.createElement("template"));var Z=GGz;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);ewj=G}G=ewj;return G},{mode:0});var rdz;var Zr_;var Un=function(){var G=_.m.apply(this,arguments)||this;G.id="product-picker";G.selected=!1;G.closeButtonId="close-button";G.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return G};
_.K(Un,_.m);_.V=Un.prototype;_.V.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.V.observeSelected=function(){this.selected&&this.hostElement.focus();var G=_.z1(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");G.length&&G[0].focus()};
_.V.onCloseBuyFlow=function(){_.xy(this.hostElement,"picker-cancelled")};
_.V.onCloseClick=function(){_.xy(this.hostElement,"picker-cancelled");var G;((G=this.data)==null?0:G.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.a(this.data.closeButton,_.G$))};
_.V.onCloseEngageWithAudienceEditorPanels=function(){_.xy(this.hostElement,"picker-cancelled")};
Un.prototype.observeSelected=Un.prototype.observeSelected;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Un.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Un.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Un.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Un.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Un.prototype,"id",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Un.prototype,"selected",void 0);_.B([_.n(),_.x("design:type",Object)],Un.prototype,"closeButtonId",void 0);_.B([_.Me("selected"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Un.prototype,"observeSelected",null);
_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],Un);
_.A(Un,"yt-live-chat-product-picker-panel-view-model",function(){if(Zr_===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;rdz===void 0&&(rdz=document.createElement("template"));var Z=rdz;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Zr_=G}G=Zr_;return G},{mode:0});var Orz;var Mm2;var z9=function(){var G=_.m.apply(this,arguments)||this;G.iconId="";G.icon="";G.disabled=!1;G.systemIcons=_.R("kevlar_system_icons");return G};
_.K(z9,_.m);_.V=z9.prototype;_.V.computeIconId=function(G){return G&&G.icon&&G.icon.iconType?G.icon.iconType.toLowerCase():""};
_.V.computeIcon=function(G){return G&&G.icon&&G.icon.iconType?(G=G.icon.iconType.toLowerCase(),(G.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+G):""};
_.V.computeDisabled=function(G){return!!G};
_.V.computeCommand=function(G,e){return e?void 0:G};
_.V.computeTooltip=function(G,e){return e&&G?G:""};
_.V.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.iY.Object.defineProperties(z9.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var G="",e,r,Z;if((e=this.data)==null?0:(r=e.text)==null?0:(Z=r.runs)==null?0:Z.length)G=this.data.text.runs[0].text||"";else{var O,M;if((O=this.data)==null?0:(M=O.text)==null?0:M.simpleText)G=this.data.text.simpleText}var T,E,b;if((T=this.data)==null?0:(E=T.subtext)==null?0:(b=E.runs)==null?0:b.length)G&&(G+=". "),G+=this.data.subtext.runs[0].text||"";else{var w,q;if((w=this.data)==null?0:(q=w.subtext)==
null?0:q.simpleText)G&&(G+=". "),G+=this.data.subtext.simpleText}return G}}});
_.B([_.k(_.t4.YtEndpointBehavior),_.x("design:type",Object)],z9.prototype,"ytEndpointBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],z9.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],z9.prototype,"data",void 0);_.B([_.n({computed:"computeIconId(data)",reflectToAttribute:!0}),_.x("design:type",Object)],z9.prototype,"iconId",void 0);
_.B([_.n({computed:"computeIcon(data)",reflectToAttribute:!0}),_.x("design:type",Object)],z9.prototype,"icon",void 0);_.B([_.n({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.x("design:type",Object)],z9.prototype,"disabled",void 0);_.B([_.n({computed:"computeCommand(data.command, disabled)"}),_.x("design:type",Object)],z9.prototype,"command",void 0);_.B([_.n({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.x("design:type",String)],z9.prototype,"tooltip",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],z9.prototype,"systemIcons",void 0);_.B([_.d("data.text","data.subtext"),_.n(),_.x("design:type",String),_.x("design:paramtypes",[])],z9.prototype,"ariaLabel",null);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],z9);
_.A(z9,"yt-live-chat-product-button-renderer",function(){if(Mm2===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;Orz===void 0&&(Orz=document.createElement("template"));var Z=Orz;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Mm2=G}G=Mm2;return G},{mode:0});var Vmj;var hwk;var Wm=function(){var G=_.m.apply(this,arguments)||this;G.selected=!1;G.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 G};
_.K(Wm,_.m);_.V=Wm.prototype;_.V.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"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.V.computeId=function(G){return G.id||""};
_.V.onCloseClick=function(){_.xy(this.hostElement,"picker-cancelled")};
_.V.observeSelected=function(){this.selected&&this.hostElement.focus();var G=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");G.length&&G[0].focus()};
_.V.onCloseBuyFlow=function(){_.xy(this.hostElement,"picker-cancelled")};
_.V.onCloseEngageWithAudienceEditorPanels=function(){_.xy(this.hostElement,"picker-cancelled")};
Wm.prototype.observeSelected=Wm.prototype.observeSelected;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Wm.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Wm.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Wm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Wm.prototype,"data",void 0);
_.B([_.n({computed:"computeId(data)",reflectToAttribute:!0}),_.x("design:type",String)],Wm.prototype,"id",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Wm.prototype,"selected",void 0);_.B([_.Me("selected"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wm.prototype,"observeSelected",null);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],Wm);
_.A(Wm,"yt-live-chat-product-picker-renderer",function(){if(hwk===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;Vmj===void 0&&(Vmj=document.createElement("template"));var Z=Vmj;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);hwk=G}G=hwk;return G},{mode:0});var TRj;var Dt2;var E1t;var irZ;var NP=function(){return _.m.apply(this,arguments)||this};
_.K(NP,_.m);NP.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()};
NP.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
NP.prototype.created=function(){this.ids={background:_.Kv(),maskOne:_.Kv(),maskTwo:_.Kv(),gradient:_.Kv(),largeBackground:_.Kv(),largeGradientOne:_.Kv(),largeGradientTwo:_.Kv(),largeGradientPath:_.Kv()}};
NP.prototype.maybeLoadAnimationBackground=NP.prototype.maybeLoadAnimationBackground;_.B([_.n({value:!1}),_.x("design:type",Boolean)],NP.prototype,"useLargeBackground",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],NP.prototype,"useAnimationBackground",void 0);_.B([_.n({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.x("design:type",Boolean)],NP.prototype,"useRegularBackground",void 0);
_.B([_.n(),_.x("design:type",Object)],NP.prototype,"ids",void 0);_.B([_.n(),_.x("design:type",Object)],NP.prototype,"lottieAnimation",void 0);_.B([_.hs("#animation-background"),_.x("design:type",HTMLDivElement)],NP.prototype,"animationBackground",void 0);_.B([_.Me("useAnimationBackground"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],NP.prototype,"maybeLoadAnimationBackground",null);
_.B([_.aR({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],NP);
_.A(NP,"yt-live-interactivity-component-background",function(){if(irZ===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;E1t===void 0&&(E1t=document.createElement("template"));var Z=E1t;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);irZ=G}G=irZ;return G},{mode:0});var Ln=function(){var G=_.m.apply(this,arguments)||this;G.characterCount=0;G.showInputErrorMessage=!1;G.startQnaRequestInFlight=!1;G.modern=_.R("web_button_rework_with_live");G.buttonOverrides={style:"mono",type:"filled"};G.closeButtonOverrides={iconPosition:"icon-only"};G.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return G};
_.K(Ln,_.m);_.V=Ln.prototype;
_.V.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]]"}}}}}};
_.V.onCharacterCountChanged=function(G){var e,r,Z,O,M=(r=_.a(this==null?void 0:(e=this.data)==null?void 0:e.creatorCallForQuestions,ABq))==null?void 0:(Z=r.inputField)==null?void 0:(O=Z.liveChatTextInputFieldRenderer)==null?void 0:O.maxCharacterLimit,T,E;M!=null&&(G==null?void 0:(T=G.detail)==null?void 0:T.characterCount)!=null&&_.a(this==null?void 0:(E=this.data)==null?void 0:E.startButton,_.zM)&&(e=G.detail.characterCount>M,this.set("data.startButton.buttonRenderer.isDisabled",G.detail.characterCount===
0||e),this.showInputErrorMessage=e)};
_.V.onCloseClick=function(){_.xy(this.hostElement,"picker-cancelled");_.Pi(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.V.onPickerCancelled=function(){var G=_.z1(this.hostElement).querySelector("#qna-creator-text-input-field");G&&G.setLiveChatRichMessageInput(null)};
_.V.handleOpenQnaStartPanel=function(){var G=_.z1(this.hostElement).querySelector("#qna-creator-text-input-field");G&&G.focus()};
_.V.handleStartButtonAction=function(G){var e=this;if(G.detail.actionName==="yt-service-request"&&(G.stopPropagation(),G=G.detail.args[1])){var r=_.z1(this.hostElement).querySelector("#qna-creator-text-input-field"),Z;(r==null?0:(Z=r.liveChatRichMessageInput)==null?0:Z.textSegments)&&r.liveChatRichMessageInput.textSegments.length!==0&&(Z={rich_message:_.dp(r.liveChatRichMessageInput)},_.zw(this.hostElement,[G,Z]).then(function(){_.xy(e.hostElement,"picker-cancelled")}))}};
_.V.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.V.handleServiceRequestCompleted=function(G){var e;G=G==null?void 0:(e=G.detail)==null?void 0:e.data;(G==null?0:G.actions)&&G.actions.length>0?this.startQnaRequestInFlight=!1:_.Pi(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.V.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
Ln.prototype.handleServiceRequestError=Ln.prototype.handleServiceRequestError;Ln.prototype.handleServiceRequestCompleted=Ln.prototype.handleServiceRequestCompleted;Ln.prototype.handleServiceRequestSent=Ln.prototype.handleServiceRequestSent;Ln.prototype.onPickerCancelled=Ln.prototype.onPickerCancelled;Ln.prototype.onCharacterCountChanged=Ln.prototype.onCharacterCountChanged;_.B([_.n(),_.x("design:type",Object)],Ln.prototype,"characterCount",void 0);
_.B([_.n(),_.x("design:type",Object)],Ln.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Ln.prototype,"showInputErrorMessage",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Ln.prototype,"startQnaRequestInFlight",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Ln.prototype,"modern",void 0);_.B([_.n(),_.x("design:type",Object)],Ln.prototype,"buttonOverrides",void 0);
_.B([_.n(),_.x("design:type",Object)],Ln.prototype,"closeButtonOverrides",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Ln.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.y9),_.x("design:type",Object)],Ln.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.k(_.NG.YtLiveChatItemBehavior),_.x("design:type",_.Lb)],Ln.prototype,"ytLiveChatItemBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Ln.prototype,"ytActionHandlerBehavior",void 0);_.B([_.Om("yt-live-chat-text-input-field-renderer-character-count-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Ln.prototype,"onCharacterCountChanged",null);_.B([_.Om("picker-cancelled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ln.prototype,"onPickerCancelled",null);
_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ln.prototype,"handleServiceRequestSent",null);_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Ln.prototype,"handleServiceRequestCompleted",null);
_.B([_.Om("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Ln.prototype,"handleServiceRequestError",null);_.B([_.c({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],Ln);
_.A(Ln,"yt-live-chat-qna-start-panel-renderer",function(){if(Dt2===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;TRj===void 0&&(TRj=document.createElement("template"));var Z=TRj;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Dt2=G}G=Dt2;return G},{mode:0});var brX;var v1_;var GL=function(){return _.m.apply(this,arguments)||this};
_.K(GL,_.m);GL.prototype.dismiss=function(){_.xy(this.hostElement,"yt-live-chat-error-message-dismiss")};
GL.prototype.edit=function(){_.xy(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.B([_.n(),_.x("design:type",Object)],GL.prototype,"data",void 0);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],GL);
_.A(GL,"yt-live-chat-text-actions-error-message-renderer",function(){if(v1_===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;brX===void 0&&(brX=document.createElement("template"));var Z=brX;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);v1_=G}G=v1_;return G},{mode:0});var w_X;var $tX;var S5$;var q5v;var eN=function(){var G=_.m.apply(this,arguments)||this;G.isDarkTheme=document.documentElement.hasAttribute("dark");G.newnessDotEligible=!1;return G};
_.K(eN,_.m);eN.prototype.sendReaction=function(){var G,e,r=((G=this.data)==null?void 0:G.emojiId)||((e=this.data)==null?void 0:e.emoteId),Z;r&&((Z=this.data)==null?0:Z.shouldTriggerAnimation)&&_.Pi(this.hostElement,"yt-create-user-reaction-animation",[r]);var O;(G=_.X0((O=this.data)==null?void 0:O.onTap))&&_.es(G,this.hostElement);this.showNewnessDot&&_.Pi(this.hostElement,"yt-hide-newness-dot")};
eN.prototype.onClick=function(G){(!G||G.clientX||G.clientY)&&this.sendReaction()};
eN.prototype.onKeyDown=function(G){G.key!=="Enter"&&G.key!==" "||G.repeat||this.sendReaction()};
_.iY.Object.defineProperties(eN.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var G,e;return!!(((G=this.data)==null?0:G.emojiId)||((e=this.data)==null?0:e.emoteId))}}});
_.B([_.n(),_.x("design:type",Object)],eN.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],eN.prototype,"isDarkTheme",void 0);_.B([_.n(),_.x("design:type",Object)],eN.prototype,"newnessDotEligible",void 0);_.B([_.d("data.maybeShowNewnessDot"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],eN.prototype,"showNewnessDot",null);_.B([_.d("data.emojiId","data.emoteId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],eN.prototype,"useYtImage",null);
_.B([_.aR({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],eN);
_.A(eN,"yt-reaction-control-panel-button-view-model",function(){if(q5v===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;S5$===void 0&&(S5$=document.createElement("template"));var Z=S5$;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);q5v=G}G=q5v;return G},{mode:0});var tmX;var g1v;var rK=function(){var G=_.m.apply(this,arguments)||this;G.reactionControlPanelExpanded=!1;G.isDarkTheme=document.documentElement.hasAttribute("dark");G.newnessDotEligible=!1;return G};
_.K(rK,_.m);_.V=rK.prototype;_.V.expandedButtonsChanged=function(){var G,e;_.eD(this.hostElement,{"--expanded-buttons-height":((e=(G=this.expandedButtonsData)==null?void 0:G.length)!=null?e:0)*36+"px"})};
_.V.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}}};
_.V.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.V.onMouseLeave=function(){var G=this;this.collapseTimer=setTimeout(function(){G.reactionControlPanelExpanded=!1},500)};
_.V.onFocusIn=function(){this.onMouseEnter()};
_.V.onFocusOut=function(){this.onMouseLeave()};
_.V.onCollapsedButtonFocusIn=function(){var G=this;setTimeout(function(){var e;(e=G.expandedButtons.querySelector("button"))==null||e.focus()},100)};
_.V.onCollapsedButtonFocusOut=function(G){G.stopPropagation()};
_.iY.Object.defineProperties(rK.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var G,e;return _.c2.unsafeClone((G=this.liveReactionsData)==null?void 0:G.emojiButtonData)||((e=this.data)==null?void 0:e.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var G;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((G=this.data)==null||!G.maybeShowNewnessDot)}}});
rK.prototype.expandedButtonsChanged=rK.prototype.expandedButtonsChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],rK.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],rK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.y9),_.x("design:type",Object)],rK.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],rK.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],rK.prototype,"reactionControlPanelExpanded",void 0);_.B([_.n({selectorArgs:["data.liveReactionsDataEntityKey"],selector:bBz}),_.x("design:type",Object)],rK.prototype,"liveReactionsData",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],rK.prototype,"isDarkTheme",void 0);_.B([_.n(),_.x("design:type",Object)],rK.prototype,"newnessDotEligible",void 0);
_.B([_.d("liveReactionsData","data.expandedButtons"),_.x("design:type",Object),_.x("design:paramtypes",[])],rK.prototype,"expandedButtonsData",null);_.B([_.d("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.n({reflectToAttribute:!0}),_.x("design:type",Object),_.x("design:paramtypes",[])],rK.prototype,"showNewnessDot",null);_.B([_.hs("#expanded-buttons"),_.x("design:type",HTMLElement)],rK.prototype,"expandedButtons",void 0);
_.B([_.Me("expandedButtonsData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rK.prototype,"expandedButtonsChanged",null);_.B([_.aR({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],rK);
_.A(rK,"yt-reaction-control-panel-view-model",function(){if(g1v===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;tmX===void 0&&(tmX=document.createElement("template"));var Z=tmX;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);g1v=G}G=g1v;return G},{mode:0});var Zh=new _.PG("yt-live-chat"),lWj=Date.parse("2024-7-24"),OX=function(){var G=_.m.apply(this,arguments)||this;G.emojiManager=_.Wk;G.newnessDotEligible=!1;G.newnessDotImpressionCounted=!1;G.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return G};
_.K(OX,_.m);_.V=OX.prototype;_.V.emojiCustomizationEnabledChanged=function(){var G;((G=this.data)==null?0:G.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((G=Zh.getCreationTime("emoji-customization-count"))&&G<lWj&&Zh.set("emoji-customization-count","0"),G=Number(Zh.get("emoji-customization-count"))||0,G<3&&(this.newnessDotEligible=!0,Zh.set("emoji-customization-count",(G+1).toString())),this.newnessDotImpressionCounted=!0)};
_.V.hideNewnessDot=function(){this.newnessDotEligible=!1;Zh.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.V.handleReactionsMute=function(G){var e=_.l4(),r=_.L1(206221),Z={checkboxData:{state:G?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};e&&_.n_(e,r,Z);this.reactionsMuted=G};
_.V.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.V.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}}};
_.iY.Object.defineProperties(OX.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var G;return(!((G=this.liveReactionsData)==null||!G.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
OX.prototype.liveReactionsSettingChanged=OX.prototype.liveReactionsSettingChanged;OX.prototype.emojiCustomizationEnabledChanged=OX.prototype.emojiCustomizationEnabledChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],OX.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],OX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.y9),_.x("design:type",Object)],OX.prototype,"ytLiveChatReduxBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],OX.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],OX.prototype,"data",void 0);_.B([_.n(),_.x("design:type",_.Pk)],OX.prototype,"emojiManager",void 0);_.B([_.n(),_.x("design:type",Object)],OX.prototype,"newnessDotEligible",void 0);_.B([_.n(),_.x("design:type",Object)],OX.prototype,"newnessDotImpressionCounted",void 0);
_.B([_.n({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:vWv}),_.x("design:type",Boolean)],OX.prototype,"liveReactionsSetting",void 0);_.B([_.n({selectorArgs:["data.liveReactionsDataEntityKey"],selector:bBz}),_.x("design:type",Object)],OX.prototype,"liveReactionsData",void 0);_.B([_.n({value:function(){var G=_.R("enable_lwe_web_mute"),e=Zh.get("allow-reactions");return e===void 0?!1:!e&&G}}),
_.x("design:type",Boolean)],OX.prototype,"reactionsMuted",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],OX.prototype,"liveReactionsEnabled",null);_.B([_.Me("data.emojiCustomizationEnabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OX.prototype,"emojiCustomizationEnabledChanged",null);
_.B([_.Me("liveReactionsEnabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OX.prototype,"liveReactionsSettingChanged",null);_.B([_.aR({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],OX);
_.A(OX,"yt-reaction-control-panel-overlay-view-model",function(){if($tX===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;w_X===void 0&&(w_X=document.createElement("template"));var Z=w_X;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);$tX=G}G=$tX;return G},{mode:0});var RwZ={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(G){var e=this.$.pickers.selected;if(e){_.z1(this.hostElement).removeAttribute(e+"-open");var r="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(r="#picker-buttons",e==="emoji"&&_.z1(this.hostElement).querySelector("#emoji-picker-button")&&(r="#emoji-picker-button"));if(r=_.z1(this.hostElement).querySelector(r).querySelector("#"+e))r.active=!1}r=G;e==G&&(r=null);e!=
G&&_.z1(this.hostElement).setAttribute(G+"-open","");this.$.pickers.selected=r;_.Pi(this.hostElement,"yt-live-chat-picker-changed",[r])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var My=function(){var G=_.m.apply(this,arguments)||this;G.numSentMessages=0;G.timeoutDurationMs=0;G.timeoutMs=0;G.lastTimeoutTimeMs=0;G.pendingMessageId="";G.hasFiredInitialFocusActions=!1;G.isBeforeFocusEnabled=!0;G.id="";G.characterCount=0;G.maxCharacterLimit=0;G.remainingCharacterCount=0;G.inputExpanded=!1;G.buttonOverrides={iconPosition:"icon-only"};G.inReplyPanel=!1;G.countdownRatio=0;G.isTooltipVisible=!1;G.tooltipTimeout=1E4;G.systemIcons=_.R("kevlar_system_icons");G.tallerEmojiPicker=_.R("live_chat_taller_emoji_picker");
G.sendReplyMessageInFlight=!1;G.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"};G.onResize=function(){G.maybeToggleCharacterCount()};
return G};
_.K(My,_.m);_.V=My.prototype;
_.V.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"}}}};
_.V.attached=function(){window.addEventListener("resize",this.onResize)};
_.V.detached=function(){window.removeEventListener("resize",this.onResize)};
_.V.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.V.sendMessage=function(){var G=this,e,r,Z,O;return _.D(function(M){if(G.sendDisabled)return M.return();G.isTooltipVisible&&_.Pi(G.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(G.data.sendButton&&G.data.sendButton.buttonRenderer){G.input.completeEmojis();e=G.data.sendButton.buttonRenderer.serviceEndpoint;if(!e)return M.return();Z=((r=_.a(e,_.wtC))==null?void 0:r.clientIdPrefix)||"";O={client_message_id:Z+String(G.numSentMessages++),rich_message:_.dp(G.input.liveChatRichMessageInput)};
G.pendingMessageId=O.client_message_id;G.inReplyPanel&&(G.sendReplyMessageInFlight=!0);_.zw(G.hostElement,[e,O]);G.input.setLiveChatRichMessageInput(null)}_.HL(M)})};
_.V.handleSendButtonAction=function(G){G.detail.actionName==="yt-service-request"&&(G.stopPropagation(),this.sendMessage())};
_.V.onSendCompleted=function(G,e){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(G=this.get("timeoutDurationUsec",e.data))&&this.handleTimeout(Number(G)/1E3);this.errorMessage=this.get("errorMessage",e.data);this.pendingMessageId=""};
_.V.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.Pi(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.V.handlePickerButtonToggle=function(G){G=G.detail.targetId;this.ytPickerBehavior.togglePicker_(G);if(G==="emoji")this.input.focus();else if(G==="qna-start-panel"){var e,r;(e=_.z1(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(r=e.querySelector("#qna-creator-text-input-field"))==null||r.focus()}};
_.V.onComponentReplaced=function(G){var e,r;G.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((e=G.replacement.liveChatMessageInputRenderer)==null?0:(r=e.headerRenderer)==null?0:r.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.V.onEmojiSelect=function(G){this.input.focus();this.input.insertEmoji(G.detail)};
_.V.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.V.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.Pi(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.Pi(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.V.onOpenPopupAction=function(G,e){var r=this;e===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.Pi(r.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.V.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.V.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.V.focusChanged=function(){this.maybeToggleCharacterCount()};
_.V.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var G=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",G>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.V.computeId=function(){return this.data&&this.data.targetId||""};
_.V.computeSendDisabled=function(G,e,r,Z){G=!!(!G||e&&G>e||Z);(e=_.z1(this.hostElement).querySelector("#send-button"))&&e.children.length&&(e.children[0].disabled=G);return G};
_.V.handleTimeout=function(G){this.timeoutDurationMs=this.timeoutMs=G;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.V.updateTimeout=function(G){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(G-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=G,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.V.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.V.onErrorMessageEdit=function(G){this.input.setLiveChatRichMessageInput(G.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.V.errorMessageChanged=function(){var G=this;_.oR(function(){_.Pi(G.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.V.computeAuthorNameColor=function(G){var e;if(_.R("live_chat_author_name_color_usernames")&&(G==null?0:(e=G.authorName)==null?0:e.simpleText))return _.tBs(_.gxf(G.authorName.simpleText));if(_.R("live_chat_seed_color_usernames")&&(G==null?0:G.authorSeedColorArgb))return _.tBs(_.zo(G.authorSeedColorArgb));if(_.R("live_chat_colored_usernames"))return"#cc0000";var r;return _.R("live_chat_simple_color_usernames")&&(G==null?0:(r=G.authorName)==null?0:r.simpleText)&&(G==null?0:G.authorUsernameColorLight)&&
(G==null?0:G.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.zo(G.authorUsernameColorDark):_.zo(G.authorUsernameColorLight):""};
_.V.onIsTooltipVisibleChanged=function(){var G=_.z1(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){G.hidden=!1;G.setAttribute("role","alert")},0):(G.hidden=!0,G.removeAttribute("role"))};
_.V.onFocusedChanged=function(G){this.inputFocused=G.detail.value};
_.iY.Object.defineProperties(My.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 G;return!((G=this.data)==null||!G.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var G,e;return((G=this.data)==null?void 0:(e=G.pickers)==null?void 0:e.find(function(r){return r.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var G=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return G?this.ytRendererBehavior.getSimpleString(G):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
My.prototype.onIsTooltipVisibleChanged=My.prototype.onIsTooltipVisibleChanged;My.prototype.errorMessageChanged=My.prototype.errorMessageChanged;My.prototype.onErrorMessageEdit=My.prototype.onErrorMessageEdit;My.prototype.onErrorMessageDismiss=My.prototype.onErrorMessageDismiss;My.prototype.focusChanged=My.prototype.focusChanged;My.prototype.characterCountChanged=My.prototype.characterCountChanged;My.prototype.onEmojiSelect=My.prototype.onEmojiSelect;My.prototype.handlePickerButtonToggle=My.prototype.handlePickerButtonToggle;
My.prototype.onSendError=My.prototype.onSendError;My.prototype.onSendCompleted=My.prototype.onSendCompleted;My.prototype.sendMessage=My.prototype.sendMessage;My.prototype.dataChanged=My.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],My.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],My.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.k(RwZ.YtPickerBehavior),_.x("design:type",Object)],My.prototype,"ytPickerBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],My.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.AL.YtLiveChatTooltipTargetingBehavior),_.x("design:type",Object)],My.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],My.prototype,"hasFiredInitialFocusActions",void 0);
_.B([_.n(),_.x("design:type",Object)],My.prototype,"isBeforeFocusEnabled",void 0);_.B([_.n(),_.x("design:type",Object)],My.prototype,"data",void 0);_.B([_.n({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.x("design:type",Object)],My.prototype,"id",void 0);_.B([_.n(),_.x("design:type",Object)],My.prototype,"characterCount",void 0);_.B([_.n(),_.x("design:type",Object)],My.prototype,"maxCharacterLimit",void 0);
_.B([_.n(),_.x("design:type",Object)],My.prototype,"remainingCharacterCount",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],My.prototype,"inputExpanded",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],My.prototype,"inputFocused",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],My.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.B([_.n(),_.x("design:type",_.rD)],My.prototype,"participantsManager",void 0);
_.B([_.n(),_.x("design:type",Object)],My.prototype,"buttonOverrides",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],My.prototype,"inReplyPanel",void 0);_.B([_.d("characterCount, maxCharacterLimit, countdownActive"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],My.prototype,"sendDisabled",null);_.B([_.n(),_.x("design:type",Object)],My.prototype,"countdownRatio",void 0);
_.B([_.d("countdownRatio"),_.x("design:type",Number),_.x("design:paramtypes",[])],My.prototype,"countdownStrokeDashOffset",null);_.B([_.d("countdownRatio"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],My.prototype,"countdownActive",null);_.B([_.d("data.interactionMessage"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],My.prototype,"hasInteractionMessage",null);
_.B([_.d("data.emojiPickerButton"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],My.prototype,"hasEmojiPickerButton",null);_.B([_.d("data, characterCount"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],My.prototype,"showAvatar",null);_.B([_.d("data.pickers"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],My.prototype,"hasProductPickerPanelViewModel",null);
_.B([_.n(),_.x("design:type",Object)],My.prototype,"errorMessage",void 0);_.B([_.n(),_.x("design:type",Object)],My.prototype,"genericErrorMessage",void 0);_.B([_.n(),_.x("design:type",Object)],My.prototype,"isTooltipVisible",void 0);_.B([_.n(),_.x("design:type",Object)],My.prototype,"tooltipTimeout",void 0);_.B([_.d("data.onInitialFocusCommand"),_.x("design:type",String),_.x("design:paramtypes",[])],My.prototype,"tooltipMessage",null);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],My.prototype,"systemIcons",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],My.prototype,"tallerEmojiPicker",void 0);_.B([_.d("data"),_.x("design:type",String),_.x("design:paramtypes",[])],My.prototype,"authorNameColor",null);_.B([_.n(),_.x("design:type",Object)],My.prototype,"sendReplyMessageInFlight",void 0);_.B([_.hs("#input"),_.x("design:type",_.xTj)],My.prototype,"input",void 0);
_.B([_.hs("#count"),_.x("design:type",HTMLElement)],My.prototype,"count",void 0);_.B([_.hs("#input-container"),_.x("design:type",HTMLElement)],My.prototype,"inputContainer",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],My.prototype,"dataChanged",null);_.B([_.Om("yt-live-chat-send-message"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],My.prototype,"sendMessage",null);
_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[Event,_.n1]),_.x("design:returntype")],My.prototype,"onSendCompleted",null);_.B([_.Om("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],My.prototype,"onSendError",null);
_.B([_.Om("yt-live-chat-icon-toggle-button-renderer-toggle"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],My.prototype,"handlePickerButtonToggle",null);_.B([_.Om("yt-emoji-select"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],My.prototype,"onEmojiSelect",null);
_.B([_.Me("characterCount"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],My.prototype,"characterCountChanged",null);_.B([_.Me("inputFocused"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],My.prototype,"focusChanged",null);_.B([_.Om("yt-live-chat-error-message-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],My.prototype,"onErrorMessageDismiss",null);
_.B([_.Om("yt-live-chat-error-message-edit"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],My.prototype,"onErrorMessageEdit",null);_.B([_.Me("errorMessage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],My.prototype,"errorMessageChanged",null);_.B([_.Me("isTooltipVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],My.prototype,"onIsTooltipVisibleChanged",null);
_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],My);
_.A(My,"yt-live-chat-message-input-renderer",function(){if(AH_===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;yHz===void 0&&(yHz=document.createElement("template"));var Z=yHz;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);AH_=G}G=AH_;return G},{mode:0});var jZt;var aWz;var Vg=function(){var G=_.m.apply(this,arguments)||this;G.systemIcons=_.R("kevlar_system_icons");G.firedOnClickCommand=!1;G.inReplyPanel=!1;return G};
_.K(Vg,_.m);
Vg.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"}}}};
Vg.prototype.onButtonToggle=function(G){G.target.disabled||this.ytPickerBehavior.togglePicker_(G.detail.targetId)};
Vg.prototype.onClick=function(){var G=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.Pi(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return G.firedOnClickCommand=!1},5E3))};
_.iY.Object.defineProperties(Vg.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var G,e;return((G=this.data)==null?void 0:(e=G.panels)==null?void 0:e.find(function(r){return r.liveChatProductPickerPanelViewModel}))!==void 0}}});
Vg.prototype.onButtonToggle=Vg.prototype.onButtonToggle;_.B([_.k(RwZ.YtPickerBehavior),_.x("design:type",Object)],Vg.prototype,"ytPickerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Vg.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Vg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Vg.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Vg.prototype,"systemIcons",void 0);_.B([_.n({reflectToAttribute:!1}),_.x("design:type",Object)],Vg.prototype,"firedOnClickCommand",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Vg.prototype,"inReplyPanel",void 0);_.B([_.d("data.pickers"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Vg.prototype,"hasProductPickerPanelViewModel",null);
_.B([_.Om("yt-live-chat-icon-toggle-button-renderer-toggle"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Vg.prototype,"onButtonToggle",null);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],Vg);
_.A(Vg,"yt-live-chat-restricted-participation-renderer",function(){if(aWz===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;jZt===void 0&&(jZt=document.createElement("template"));var Z=jZt;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);aWz=G}G=aWz;return G},{mode:0});var hF=function(){var G=_.m.apply(this,arguments)||this;G.genericErrorMessage=_.nQ("Error, try again.");G.inReplyPanel=!1;G.hideBorder=!1;return G};
_.K(hF,_.m);hF.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}}}}}};
_.iY.Object.defineProperties(hF,{template:{configurable:!0,enumerable:!0,get:function(){return ut$()}}});
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],hF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],hF.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],hF.prototype,"genericErrorMessage",void 0);_.B([_.n(),_.x("design:type",Object)],hF.prototype,"inReplyPanel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],hF.prototype,"hideBorder",void 0);
_.B([_.aR({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],hF);_.A(hF,"yt-live-chat-engagement-panel-input-renderer",function(){return ut$()},{mode:0});var X__,Ka$;X__=_.L1(115994);Ka$=_.L1(115993);_.TL=function(G,e,r){var Z=this;var O=r.dragDownAction;this.layer=0;this.JSC$22844_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Z.dragDownAction()}}}};
this.JSC$22844_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 M=_.h_();_.KE(M,X__,this.layer);_.KE(M,Ka$,this.layer);this.dragDownAction=function(){O();_.sb(M,{visualElement:Z.fullscreen?X__:Ka$})};
this.gesture=new _.uk(G,e,this.getConfig(!1),"pandown");this.attach()};
_.TL.prototype.attach=function(){this.gesture.attach()};
_.TL.prototype.detach=function(){this.gesture.detach()};
_.TL.prototype.update=function(G){this.fullscreen=G;var e=this.gesture;G=this.getConfig(G);e.config=G};
_.TL.prototype.getConfig=function(G){return G?this.JSC$22844_watchFullScreenConfig:this.JSC$22844_watchConfig};var fWX={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(G){if(G&&G.length==1&&Array.isArray(G[0].loggingUrls)){G=_.c2.unsafeClone(G[0]);var e=this.macros||{},r=this.getAdModuleClient_();if(!r)return _.Nz();G.loggingUrls.forEach(function(Z){if(Z.baseUrl){var O=Z.baseUrl;var M=e;M=M===void 0?{}:M;O=r.getOptions().includes("replaceUrlMacros")?_.iuC(r,"replaceUrlMacros",{url:O,additionalMapping:M}):O;Z.baseUrl=O}},this);
G=[G]}return _.zw(this.hostElement,G)},
getAdModuleClient_:function(){var G=_.Ff(this);return G?(G=G.getPlayer())?new _.nX(G):null:null}}]};var kGy;var Hrt;var Dh=function(){return _.m.apply(this,arguments)||this};
_.K(Dh,_.m);Dh.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Dh.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Dh.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Dh.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],Dh);
_.A(Dh,"ytd-compact-tvfilm-entry-point-renderer",function(){if(Hrt!==void 0)return Hrt;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Hrt=G},{mode:1});var dtv;var o1t;var sZz;var EX=function(){return _.m.apply(this,arguments)||this};
_.K(EX,_.m);EX.prototype.ready=function(){this.initializeDefs()};
EX.prototype.initializeDefs=function(){var G=this.meta.byKey("yt-icons"),e=_.z1(G).querySelector("#star"),r=_.z1(G).querySelector("#star_half");G=_.z1(G).querySelector("#star_border");e&&this.defs.appendChild(e.cloneNode(!0));r&&this.defs.appendChild(r.cloneNode(!0));G&&this.defs.appendChild(G.cloneNode(!0))};
EX.prototype.percentChanged=function(){for(var G=this.rating;G.firstChild;)G.removeChild(G.firstChild);var e=Math.round(this.percent/10);G=Math.floor(e/2);e%=2;var r=5-G-e;this.appendStars("star",G,0);this.appendStars("star_half",e,G);this.appendStars("star_border",r,G+e)};
EX.prototype.appendStars=function(G,e,r){for(var Z=0;Z<e;Z++){var O=(18+this.spacing)*(Z+r),M=document.createElementNS("http://www.w3.org/2000/svg","use");_.jB2(M,"#"+G);M.setAttribute("x",""+O);M.setAttribute("y","0");this.rating.appendChild(M)}};
EX.prototype.percentChanged=EX.prototype.percentChanged;_.B([_.hs("#defs"),_.x("design:type",HTMLElement)],EX.prototype,"defs",void 0);_.B([_.hs("#rating"),_.x("design:type",HTMLElement)],EX.prototype,"rating",void 0);_.B([_.n(),_.x("design:type",Number)],EX.prototype,"percent",void 0);_.B([_.n({value:6}),_.x("design:type",Number)],EX.prototype,"spacing",void 0);_.B([_.n({value:_.fV.create("iron-meta",{type:"iconset"})}),_.x("design:type",_.s4)],EX.prototype,"meta",void 0);
_.B([_.Me("percent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EX.prototype,"percentChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-ratings"})],EX);
_.A(EX,"ytd-ratings",function(){if(sZz!==void 0)return sZz;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return sZz=G},{mode:1});var QZy=function(){return _.m.apply(this,arguments)||this};
_.K(QZy,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],QZy.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],QZy.prototype,"data",void 0);_.B([_.c({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],QZy);
_.A(QZy,"ytd-offer-review-renderer",function(){if(o1t!==void 0)return o1t;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return o1t=G},{mode:1});var i3=function(){var G=_.m.apply(this,arguments)||this;G.badges=[{textBadge:{label:_.nQ("CC")}}];return G};
_.K(i3,_.m);_.V=i3.prototype;_.V.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.V.dataChanged=function(){var G=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(G&&G.commandMetadata&&_.a(G.commandMetadata,_.QJ)&&_.a(G.commandMetadata,_.QJ).fireAutomatically)_.v_().resolve(_.$1).resolveCommand(G,{form:{element:this.hostElement}});else{var e;G&&((e=_.a(G,_.QJ))==null?0:e.fireAutomatically)&&_.v_().resolve(_.$1).resolveCommand(G,{form:{element:this.hostElement}})}};
_.V.isEmptyContent=function(G){return this.isStorefrontEntryPointEmpty(G)&&this.shouldHideOfferModule(G)};
_.V.isStorefrontEntryPointEmpty=function(G){return!G||!G.storefrontEntryPoint};
_.V.shouldHideOfferModule=function(G){return!!G.hideVideoDetails};
_.V.isOfferModuleNavigationInactive=function(G){return!G.navigationEndpoint&&!G.serviceEndpoint};
_.V.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.v_().resolve(_.$1).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
i3.prototype.dataChanged=i3.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],i3.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],i3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],i3.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.x("design:type",Boolean)],i3.prototype,"hidden",void 0);
_.B([_.n(),_.x("design:type",Object)],i3.prototype,"badges",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],i3.prototype,"dataChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],i3);
_.A(i3,"ytd-movie-offer-module-renderer",function(){if(dtv!==void 0)return dtv;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return dtv=G},{mode:1});var IWv;var p_z=function(){return _.m.apply(this,arguments)||this};
_.K(p_z,_.m);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],p_z.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],p_z.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],p_z);
_.A(p_z,"ytd-media-masthead-renderer",function(){if(IWv!==void 0)return IWv;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return IWv=G},{mode:1});var Cqy;_.J_(_.Web,"course-metadata-view-model",{props:{data:_.yb,isOverlay:_.yb}});var b3=function(){var G=_.m.apply(this,arguments)||this;G.isMetadataVisible=!1;G.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return G};
_.K(b3,_.m);_.V=b3.prototype;
_.V.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"}}}}};
_.V.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.V.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.V.expanderChanged=function(){var G;if((G=this.data)==null?0:G.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.V.isExpandButtonToggled=function(){var G,e;return(e=_.a((G=this.data)==null?void 0:G.expandMetadataButton,_.rq))==null?void 0:e.isToggled};
_.V.onVisibilityButtonClick=function(){var G;if((G=this.data)==null?0:G.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.V.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
b3.prototype.expanderChanged=b3.prototype.expanderChanged;b3.prototype.dataChanged=b3.prototype.dataChanged;b3.prototype.descriptionChanged=b3.prototype.descriptionChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],b3.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],b3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k([_.gF.YtActionHandlerBehavior]),_.x("design:type",Object)],b3.prototype,"actionHandlerBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],b3.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],b3.prototype,"isMetadataVisible",void 0);_.B([_.hs("#expander"),_.x("design:type",Object)],b3.prototype,"expander",void 0);_.B([_.Me("data.description"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],b3.prototype,"descriptionChanged",null);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],b3.prototype,"dataChanged",null);_.B([_.Me("isMetadataVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],b3.prototype,"expanderChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],b3);
_.A(b3,"ytd-tvfilm-offer-module-renderer",function(){if(Cqy!==void 0)return Cqy;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Cqy=G},{mode:2});var u_j;var vC=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return G};
_.K(vC,_.m);vC.prototype.dataChanged=function(){this.hostElement.hidden=!1};
vC.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
vC.prototype.onThumbnailTap=function(G){this.data&&this.data.serviceEndpoint&&(_.v_().resolve(_.$1).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),G.stopPropagation())};
vC.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
vC.prototype.dataChanged=vC.prototype.dataChanged;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],vC.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],vC.prototype,"rendererBehaviors",void 0);_.B([_.k([_.gF.YtActionHandlerBehavior]),_.x("design:type",Object)],vC.prototype,"actionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],vC.prototype,"data",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vC.prototype,"dataChanged",null);_.B([_.c({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],vC);
_.A(vC,"ytd-unlimited-offer-module-renderer",function(){if(u_j!==void 0)return u_j;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return u_j=G},{mode:1});var n1w;var mtz;var wK=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return G};
_.K(wK,_.m);wK.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
wK.prototype.handleRelatedChipCommand=function(G){G=_.a(G,M1q);var e=G.contents;e?_.UW(this.hostElement,"yt-item-section-replace-action",[e,G.targetSectionIdentifier]):_.UW(this.hostElement,"yt-item-section-continuation-action",[G.continuationData,G.targetSectionIdentifier])};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],wK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],wK.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],wK.prototype,"actionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],wK.prototype,"data",void 0);_.B([_.aR({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],wK);
_.A(wK,"yt-related-chip-cloud-renderer",function(){if(mtz===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;n1w===void 0&&(n1w=document.createElement("template"));var Z=n1w;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);mtz=G}G=mtz;return G},{mode:2});var $I=function(){var G=_.m.apply(this,arguments)||this;G.isTwoColumns=!0;G.watchFeedBigThumbs=_.R("kevlar_watch_feed_big_thumbs");G.watchFeedBigThumbsOnLockup=_.R("web_watch_next_big_thumbs");G.watchNextGridHideChips=_.R("kevlar_watch_grid_hide_chips");G.eligibleToSwitchToGrid=!0;G.disableShortsShelfHeightOverride=_.R("web_shorts_wn_shelf_ratio_tuning");G.isWatchNextGrid=!1;G.reuseComponents=!_.R("kevlar_watch_grid");G.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return G};
_.K($I,_.m);_.V=$I.prototype;
_.V.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:!_.R("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}}};
_.V.getItemsPath=function(){return"data.results"};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.V.created=function(){this.ytLazyListBehavior.initialCount=1};
_.V.ready=function(){_.eD(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%"})};
_.V.resultsChanged=function(){if(this.data&&this.data.results){for(var G=this.data.results,e=null,r=null,Z=0;Z<G.length;Z++)G[Z].relatedChipCloudRenderer?e=G[Z].relatedChipCloudRenderer:G[Z].itemSectionRenderer&&(r=G[Z].itemSectionRenderer);if(e&&r)for(this.set("data.continuations",[]),G=_.a(e.content,_.OKP).chips,e=0;e<G.length;e++)if(Z=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",G[e]),Z.loadCached||!Z.contents){Z.contents=r.contents;break}}};
_.V.dataChanged=function(){var G=this,e;if((e=this.data)!=null&&e.results&&this.hasAllowedInstreamAd(this.playerData)){if(e=this.data.results.filter(function(E){return!!E.promotedSparklesWebRenderer})){for(var r=0;r<e.length;r++){var Z=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",e[r]);
if(Z)for(var O=0;O<Z.length;O++)Z[O]&&Z[O].baseUrl&&_.LF(Z[O].baseUrl)}this.set("data.results",this.data.results.filter(function(E){return!E.promotedSparklesWebRenderer}))}if(e=this.data.results.filter(function(E){return!!G.getSparklesAd(E)})){e=_.h(e);
for(O=e.next();!O.done;O=e.next())if(Z=r=void 0,O=(r=this.getSparklesAd(O.value))==null?void 0:(Z=r.errorCommand)==null?void 0:Z.loggingUrls)for(r=_.h(O),Z=r.next();!Z.done;Z=r.next())(Z=Z.value)&&Z.baseUrl&&_.LF(Z.baseUrl);var M,T;this.set("data.results",(M=this.data)==null?void 0:(T=M.results)==null?void 0:T.filter(function(E){return!E.adSlotRenderer}))}}};
_.V.getSparklesAd=function(G){var e,r;G=_.a((e=G.adSlotRenderer)==null?void 0:(r=e.fulfillmentContent)==null?void 0:r.fulfilledLayout,_.H7v);return _.a(G==null?void 0:G.renderingContent,a2$)};
_.V.hasAllowedInstreamAd=function(G){G=this.get("adPlacements",G)||[];for(var e=0;e<G.length;e++){var r=this.get("adPlacementRenderer.config.adPlacementConfig",G[e]);if(r&&r.suppressDisplayAd)return!0}return!1};
_.V.computeHideUnlimitedOfferModule=function(G,e){return G&&G.offerModule&&e&&G.offerModule.unlimitedOfferModuleRenderer&&G.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(e)?!0:!1};
_.V.hideUnlimitedOfferModuleChanged=function(){var G=_.z1(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");G&&(G.hidden=this.hideUnlimitedOfferModule)};
_.V.updateLockupContainerTypes=function(G){if(this.eligibleToSwitchToGrid){var e;(e=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||e.forEach(function(r){r.containerType=G})}};
_.V.computeHideTvfilmOfferModule=function(G,e){var r,Z;return!!((G==null?0:(r=G.offerModule)==null?0:(Z=r.tvfilmOfferModuleRenderer)==null?0:Z.clientShouldSuppressIfCompanionAdDisplayed)&&e&&this.hasCompanionAds(e))};
_.V.hideTvfilmOfferModuleChanged=function(){var G=_.z1(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");G&&(G.hidden=this.hideTvfilmOfferModule)};
_.V.hasCompanionAds=function(G){G=this.get("adPlacements",G)||[];for(var e=0;e<G.length;e++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",G[e]))return!0;var r=void 0,Z=void 0,O=void 0;if(!_.R("web_watch_top_banner_companion_check_killswitch")&&((r=G[e])==null?0:(Z=r.adPlacementRenderer)==null?0:(O=Z.renderer)==null?0:O.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.V.hasSuppressedResults=function(G){return G==null?!0:G.filter(function(e){return!e.continuationItemRenderer&&!e.compactPromotedVideoRenderer&&!e.promotedSparklesWebRenderer}).length===0};
_.V.computeShowButton=function(G,e){return this.isWatchNextGrid?G:G||this.hasSuppressedResults(e)};
_.V.showButtonChanged=function(){if(this.isWatchNextGrid){var G=_.z1(this.hostElement).querySelector("ytd-rich-grid-renderer");G&&this.showButton!==null&&(G.continuationShowButton=this.showButton)}else{G=_.z1(this.hostElement).querySelector("yt-next-continuation");var e=_.z1(this.hostElement).querySelector("ytd-continuation-item-renderer"),r=_.z1(this.hostElement).querySelector("ytd-item-section-renderer");G&&(G.showButton=this.showButton);e&&(e.showButton=this.showButton);r&&(r.continuationShowButton=
this.showButton)}};
_.V.continuationTap=function(G){var e;if(((e=this.data)==null?void 0:e.continuations)!=null&&G.target.tagName==="TP-YT-PAPER-BUTTON")for(G=this.data.continuations,e=0;e<G.length;e++)G[e].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(G[e].nextContinuationData||{})};
_.V.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eG("shown-items-changed",this.shownItems))};
_.iY.Object.defineProperties($I.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 G;return!((G=this.shownItems)==null||!G.some(function(e){return!!e.lockupViewModel||e.compactVideoRenderer}))}}});
$I.prototype.shownItemsChangedForBinding=$I.prototype.shownItemsChangedForBinding;$I.prototype.showButtonChanged=$I.prototype.showButtonChanged;$I.prototype.hideTvfilmOfferModuleChanged=$I.prototype.hideTvfilmOfferModuleChanged;$I.prototype.updateLockupContainerTypes=$I.prototype.updateLockupContainerTypes;$I.prototype.hideUnlimitedOfferModuleChanged=$I.prototype.hideUnlimitedOfferModuleChanged;$I.prototype.dataChanged=$I.prototype.dataChanged;$I.prototype.resultsChanged=$I.prototype.resultsChanged;
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],$I.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],$I.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.Dr.YtLazyListBehavior),_.x("design:type",Object)],$I.prototype,"ytLazyListBehavior",void 0);_.B([_.k(_.r5.YtNextContinuationBehavior),_.x("design:type",Object)],$I.prototype,"ytNextContinuationBehavior",void 0);
_.B([_.k(_.eP),_.x("design:type",Object)],$I.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],$I.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],$I.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],$I.prototype,"playerData",void 0);_.B([_.n({value:!0}),_.x("design:type",Boolean)],$I.prototype,"autoFill",void 0);_.B([_.n({value:60}),_.x("design:type",Number)],$I.prototype,"targetFramerate",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],$I.prototype,"isTwoColumns",void 0);_.B([_.n(),_.x("design:type",Object)],$I.prototype,"shownItems",void 0);_.B([_.n({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.x("design:type",Boolean)],$I.prototype,"hideUnlimitedOfferModule",void 0);_.B([_.n({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.x("design:type",Boolean)],$I.prototype,"hideTvfilmOfferModule",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],$I.prototype,"watchFeedBigThumbs",void 0);_.B([_.n(),_.x("design:type",Object)],$I.prototype,"watchFeedBigThumbsOnLockup",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],$I.prototype,"watchNextGridHideChips",void 0);_.B([_.n(),_.x("design:type",Object)],$I.prototype,"eligibleToSwitchToGrid",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],$I.prototype,"disableShortsShelfHeightOverride",void 0);
_.B([_.n({selector:_.Xf,reflectToAttribute:!0}),_.x("design:type",Object)],$I.prototype,"isGridViewEnabled",void 0);_.B([_.n({selector:_.OqF,reflectToAttribute:!0}),_.x("design:type",Object)],$I.prototype,"isSwatcherooActive",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],$I.prototype,"showMoreButton",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],$I.prototype,"isWatchNextGrid",void 0);
_.B([_.n({computed:"computeShowButton(showMoreButton, data.results)"}),_.x("design:type",Boolean)],$I.prototype,"showButton",void 0);_.B([_.iD("data.results.*"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$I.prototype,"resultsChanged",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$I.prototype,"dataChanged",null);
_.B([_.Me("hideUnlimitedOfferModule"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$I.prototype,"hideUnlimitedOfferModuleChanged",null);_.B([_.d("isGridViewEnabled","containsLockups","data"),_.n({reflectToAttribute:!0}),_.x("design:type",Number),_.x("design:paramtypes",[])],$I.prototype,"lockupContainerType",null);
_.B([_.Me("lockupContainerType","data"),_.x("design:type",Function),_.x("design:paramtypes",[Number]),_.x("design:returntype")],$I.prototype,"updateLockupContainerTypes",null);_.B([_.Me("hideTvfilmOfferModule"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$I.prototype,"hideTvfilmOfferModuleChanged",null);_.B([_.Me("showButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$I.prototype,"showButtonChanged",null);
_.B([_.Me("shownItems"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$I.prototype,"shownItemsChangedForBinding",null);_.B([_.d("shownItems"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],$I.prototype,"containsLockups",null);
_.A($I,"ytd-watch-next-secondary-results-renderer",function(){if(kGy===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);kGy=G}G=kGy;return G},{mode:1});var cdz;var SN=function(){var G=_.m.apply(this,arguments)||this;G.isCollapsed=!1;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return G};
_.K(SN,_.m);_.V=SN.prototype;_.V.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.V.onDonateTap=function(){var G=this.get("data.donateButton.buttonRenderer.command");if(G){var e=_.l4(),r=this.get("data.donateButton.buttonRenderer.trackingParams");e&&r&&_.n_(e,_.b1(r));this.ytOpenPopupBehavior.openPopup(G)}};
_.V.onShowMore=function(){this.isCollapsed=!1;var G=_.l4(),e=this.get("data.expandButton.buttonRenderer.trackingParams");G&&e&&_.n_(G,_.b1(e))};
_.V.onShowLess=function(){this.isCollapsed=!0};
_.V.dataChanged=function(){_.eD(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.V.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.V.handleUpdate=function(G){if(G=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",G))this.set("data.startLabel",G.startLabel),this.set("data.endLabel",G.endLabel),this.set("data.progress",G.progress),this.set("data.amountRaisedLabel",G.amountRaisedLabel),this.dataChanged()};
_.V.handleOpenPopupAction=function(G){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",G)&&_.Pi(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.V.computeHeaderBackgroundUrl=function(G,e){if(G)return e?G.headerBackgroundDarkUrl:G.headerBackgroundUrl};
_.V.isProgressBarVisible=function(G){return!(!G||G.progress===void 0)};
_.V.headerBackgroundClass=function(){return _.xZ("HTML_DIR")==="rtl"?"flip":""};
SN.prototype.dataChanged=SN.prototype.dataChanged;_.B([_.k(_.qG.YtOpenPopupBehavior),_.x("design:type",Object)],SN.prototype,"ytOpenPopupBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],SN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],SN.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],SN.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],SN.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],SN.prototype,"isCollapsed",void 0);_.B([_.n({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.x("design:type",String)],SN.prototype,"headerBackgroundUrl",void 0);_.B([_.n(),_.x("design:type",Boolean)],SN.prototype,"isDarkTheme",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SN.prototype,"dataChanged",null);
_.B([_.c({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],SN);
_.A(SN,"ytd-donation-shelf-renderer",function(){if(cdz!==void 0)return cdz;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return cdz=G},{mode:1});var Y5w;var ydq=function(){return _.m.apply(this,arguments)||this};
_.K(ydq,_.m);_.B([_.n(),_.x("design:type",Object)],ydq.prototype,"data",void 0);_.B([_.c({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],ydq);
_.A(ydq,"ytd-donation-unavailable-renderer",function(){if(Y5w!==void 0)return Y5w;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Y5w=G},{mode:1});var AdZ;var qy=function(){return _.m.apply(this,arguments)||this};
_.K(qy,_.m);qy.prototype.computeIconType=function(G){return G?"yt-icons:"+G.toLowerCase():null};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],qy.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],qy.prototype,"data",void 0);_.B([_.c({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],qy);
_.A(qy,"ytd-limited-state-message-renderer",function(){if(AdZ!==void 0)return AdZ;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return AdZ=G},{mode:1});var FaX;var tF=function(){return _.m.apply(this,arguments)||this};
_.K(tF,_.m);tF.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
tF.prototype.onTap=function(G){var e=this.data&&this.data.endpoint;e&&!_.mO(_.na(G),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.xy(this.hostElement,"yt-navigate",{endpoint:e})};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],tF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],tF.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],tF.prototype,"data",void 0);_.B([_.c({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],tF);
_.A(tF,"ytd-autotagging-metadata-renderer",function(){if(FaX!==void 0)return FaX;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return FaX=G},{mode:1});var Jdq;var gK=function(){return _.m.apply(this,arguments)||this};
_.K(gK,_.m);gK.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],gK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],gK.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],gK.prototype,"data",void 0);_.B([_.c({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],gK);
_.A(gK,"ytd-autotagging-metadata-row-renderer",function(){if(Jdq!==void 0)return Jdq;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Jdq=G},{mode:1});var BRZ;var xtX;var l3=function(){var G=_.m.apply(this,arguments)||this;G.engagementPanelContent=!1;return G};
_.K(l3,_.m);l3.prototype.computeHasDividerLine=function(G,e){return G&&!e};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],l3.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],l3.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.x("design:type",Boolean)],l3.prototype,"hasDividerLine",void 0);_.B([_.n(),_.x("design:type",Object)],l3.prototype,"engagementPanelContent",void 0);
_.B([_.c({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],l3);
_.A(l3,"ytd-metadata-row-header-renderer",function(){if(xtX!==void 0)return xtX;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return xtX=G},{mode:1});var Pqy;var RE=function(){return _.m.apply(this,arguments)||this};
_.K(RE,_.m);RE.prototype.computeHasDividerLine=function(G){return G};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],RE.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],RE.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.x("design:type",Boolean)],RE.prototype,"hasDividerLine",void 0);_.B([_.c({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],RE);
_.A(RE,"ytd-metadata-row-renderer",function(){if(Pqy!==void 0)return Pqy;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Pqy=G},{mode:1});var UtX;var zwX=function(){return _.m.apply(this,arguments)||this};
_.K(zwX,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],zwX.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],zwX.prototype,"data",void 0);_.B([_.c({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],zwX);
_.A(zwX,"ytd-metadata-with-image-row-renderer",function(){if(UtX!==void 0)return UtX;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return UtX=G},{mode:1});var Wak;var jN=function(){var G=_.m.apply(this,arguments)||this;G.rounded=!0;G.fixie=!1;G.fullWidth=!1;return G};
_.K(jN,_.m);_.V=jN.prototype;_.V.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.onDataChanged=function(){var G=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){G.onEndpointLinkKeyPress(e)}))};
_.V.onEndpointLinkKeyPress=function(G){G.target===this.endpointLink&&G.keyCode===13&&_.xy(this.hostElement,"click")};
_.V.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var G;if((G=this.data)==null?0:G.endpoint)_.Wi(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.V.onYtNavigate=function(G){this.endpointHref||(G.stopPropagation(),G.preventDefault())};
_.V.onInformationButtonContainerClick=function(G){G.target.id!=="information-button-container"&&(G.stopPropagation(),G.preventDefault())};
_.V.computeStyle=function(G){return G};
_.V.computeIsThumbnailStyle=function(G){return G==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.V.computeThumbnailWidth=function(G){switch(G){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}};
_.V.computeThumbnailObjectFit=function(G){switch(G){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.iY.Object.defineProperties(jN.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
jN.prototype.onYtNavigate=jN.prototype.onYtNavigate;jN.prototype.onClick=jN.prototype.onClick;jN.prototype.onDataChanged=jN.prototype.onDataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],jN.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],jN.prototype,"componentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],jN.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],jN.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],jN.prototype,"componentStyle",void 0);_.B([_.n({computed:"computeIsThumbnailStyle(data.style)"}),_.x("design:type",Boolean)],jN.prototype,"isThumbnailStyle",void 0);_.B([_.n({computed:"computeThumbnailObjectFit(data.style)"}),_.x("design:type",String)],jN.prototype,"thumbnailObjectFit",void 0);
_.B([_.n({computed:"computeThumbnailWidth(data.style)"}),_.x("design:type",Number)],jN.prototype,"thumbnailWidth",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],jN.prototype,"rounded",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],jN.prototype,"fixie",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],jN.prototype,"fullWidth",void 0);_.B([_.hs("#endpoint-link"),_.x("design:type",HTMLAnchorElement)],jN.prototype,"endpointLink",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jN.prototype,"onDataChanged",null);_.B([_.d("data.endpoint"),_.x("design:type",Object),_.x("design:paramtypes",[])],jN.prototype,"endpointHref",null);_.B([_.Om("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],jN.prototype,"onClick",null);
_.B([_.Om("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],jN.prototype,"onYtNavigate",null);_.B([_.c({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],jN);
_.A(jN,"ytd-rich-metadata-renderer",function(){if(Wak!==void 0)return Wak;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Wak=G},{mode:_.Px("kevlar_poly_si_batch_j075")?1:2});var NRv;var aE=function(){var G=_.m.apply(this,arguments)||this;G.fixie=!1;G.fullWidth=!1;return G};
_.K(aE,_.m);aE.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
aE.prototype.computeHasDividerLine=function(G){return G};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],aE.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],aE.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.x("design:type",Boolean)],aE.prototype,"hasDividerLine",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],aE.prototype,"fixie",void 0);_.B([_.n(),_.x("design:type",Object)],aE.prototype,"fullWidth",void 0);
_.B([_.c({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],aE);
_.A(aE,"ytd-rich-metadata-row-renderer",function(){if(NRv!==void 0)return NRv;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return NRv=G},{mode:1});var X7=function(){var G=_.m.apply(this,arguments)||this;G.engagementPanelContent=!1;G.fixie=!1;G.fullWidth=!1;return G};
_.K(X7,_.m);
X7.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"}}}};
X7.prototype.computeCollapsibleItems=function(G,e,r){return G===void 0||e===void 0||r===void 0||r?[]:G.slice(e)};
X7.prototype.computeAlwaysShownItems=function(G,e){return G&&G.length?G.slice(0,e):[]};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],X7.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],X7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],X7.prototype,"data",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],X7.prototype,"collapsed",void 0);
_.B([_.n({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.x("design:type",Array)],X7.prototype,"alwaysShownItems",void 0);_.B([_.n({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.x("design:type",Array)],X7.prototype,"collapsibleItems",void 0);_.B([_.n(),_.x("design:type",Object)],X7.prototype,"engagementPanelContent",void 0);_.B([_.n(),_.x("design:type",Object)],X7.prototype,"fixie",void 0);
_.B([_.n(),_.x("design:type",Object)],X7.prototype,"fullWidth",void 0);_.B([_.c({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],X7);
_.A(X7,"ytd-metadata-row-container-renderer",function(){if(BRZ!==void 0)return BRZ;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return BRZ=G},{mode:1});var Laz;var Ks=function(){var G=_.m.apply(this,arguments)||this;G.currentPageUrl="";G.baseUrl="";G.isHiddenByUser=null;G.hidden=!1;G.showAboveScrim=!1;G.watchNextGrid=_.R("kevlar_watch_grid");G.modernButtons=_.R("web_modern_buttons");G.roundedContainer=!0;G.noBorder=!1;G.roundBackground=!_.R("live_chat_round_background_killswitch");G.overflowHideChat=_.R("live_chat_overflow_hide_chat");G.forceDarkTheme=!1;G.theaterWatchWhile=!1;G.isListeningForPlayerProgress=!1;G.JSC$22915_playerEvents=new Map;G.isFrameReady=
!1;G.player=null;G.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 G};
_.K(Ks,_.m);_.V=Ks.prototype;_.V.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.UW(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.V.created=function(){var G=this;this.handleIframeEventListener=function(e){G.handleIframeEvent(e)};
this.handleKeyboardEventListener=function(e){G.handleKeyboardEvent(e)};
this.JSC$22915_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22915_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22915_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22915_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22915_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.V.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()};
_.V.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};
_.V.computeBaseUrl=function(G){var e="/live_chat";this.isChatReplay()&&(e="/live_chat_replay");return _.OA(_.ZX(_.rd(_.LB(G),e),null),"").toString()};
_.V.dataChanged=function(){_.R("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.V.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var G=this.url;if(this.isChatReplay()&&this.player){var e=Math.floor(this.player.getProgressState().current*1E3);G=_.eO(_.LB(G),"playerOffsetMs",e.toString()).toString()}e=this.chatframe;try{var r=G==="about:blank"?_.ctc:_.Fy(G),Z=e.contentDocument.location,O=_.x$(r);O!==void 0&&Z.replace(O)}catch(M){e.src=G}}};
_.V.collapsedChanged=function(){_.xy(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.V.handleIframeEvent=function(G){if(G&&this.baseUrl.startsWith(G.origin)&&G.source===this.chatframe.contentWindow&&_.PA(G.data))if(G.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(G);else if(G.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(G.data["yt-show-feedback-dialog"]){var e=_.v_().resolve(_.bq(_.Q22));if(e){var r=G.ports,Z;r&&r.length&&(Z=function(){r[0].postMessage({})});
G=G.data["yt-show-feedback-dialog"];e.showFeedbackDialog(G.customProductData,G.feedbackContent,Z,G.bucket)}}else if(G.data["yt-show-survey"])_.xy(this.hostElement,"yt-show-survey",G.data["yt-show-survey"]);else if(G.data["yt-purchase-membership"])_.v_().resolve(_.$1).resolveCommand(G.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(G.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(G.data["yt-tunnel-out-live-service-request"]);else if(G.data["yt-user-activity"])_.ij();
else if(G.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(G.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(G.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(G.data["yt-open-popup"]);else if(G.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(G.data["yt-log-flow-logging-event-command"]);else if(G.data["yt-hide-live-chat"])this.onShowHideChat();else G.data["yt-report-moderation-state-log"]&&
this.player&&(e={cpn:this.player.getVideoData().cpn},_.cg("liveChatBeingModerated",e))};
_.V.attachLiveChatResponseVeTrackingParams=function(G){G=_.b1(G);var e=_.l4(),r=_.Lz("liveChatRenderer.trackingParams",this.data);e&&r&&_.QU(e,_.b1(r),G)};
_.V.handleBuyflowMessages=function(G){var e=G.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,r=G.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,Z=G.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.ngN(_.Yi(_.uf),e.replace(/-/g,"+").replace(/_/g,"/"),function(O){G.ports[0].postMessage({success:!0,buyFlowResponse:O})},void 0,function(O){G.ports[0].postMessage({success:!1,
error:O&&O.message||"Buyflow rejected without error."})},_.hy().get("hl"),void 0,function(){G.ports[0].postMessage({closed:!0})},r,Z)};
_.V.setupPlayerProgressRelay=function(){var G=this;if(!this.isListeningForPlayerProgress){var e=_.Je();e!=null&&e.getPlayerPromise&&(e.getPlayerPromise().then(function(r){G.playerApiReady(r)}),this.isListeningForPlayerProgress=!0)}};
_.V.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.V.playerApiReady=function(G){this.setPlayer(G)};
_.V.playerProgressHandler=function(){if(this.player){var G=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":G.current})}};
_.V.playerAdStartHandler=function(G){this.postToContentWindow({"yt-player-ad-start":G})};
_.V.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.V.playerStateChangeHandler=function(G){this.postToContentWindow({"yt-player-state-change":G})};
_.V.setPlayer=function(G){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22915_playerEvents);G&&(this.player=G,this.ytPlayerListenerBehavior.listenToPlayerEvents(G,this.JSC$22915_playerEvents),_.xy(this.hostElement,"player-api-ready"))};
_.V.liveChatPageUrl=function(G,e,r,Z){return!r||e?"about:blank":r.liveChatRenderer?(e=_.LB(this.currentPageUrl).JSC$10041_queryData_,wOw(e),G=_.LB(G),e.add("continuation",r.liveChatRenderer.continuations[0].reloadContinuationData.continuation),r=_.d0()==="USER_INTERFACE_THEME_DARK",(Z||r)&&e.add("dark_theme","true"),_.ZX(G,e),Z=_.LB(G.toString()),r=Z.JSC$10041_queryData_,"SESSION_INDEX"in _.JH&&(r.add("authuser",_.xZ("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.JH&&r.add("pageId",_.xZ("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.JH&&r.add("sdc",_.xZ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),Z.toString()):""};
_.V.isCollapsed=function(G,e){return e!==null?e:this.isChatReplay()||G&&G.conversationBarRenderer&&G.conversationBarRenderer.availabilityMessage?!0:G?G.liveChatRenderer?G.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.R("live_chat_hide_premiere_replay_message")||G.conversationBarRenderer&&G.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.V.isHidden=function(G,e,r){var Z=e&&e.conversationBarRenderer&&e.conversationBarRenderer.availabilityMessage,O=e&&e.liveChatRenderer&&e.liveChatRenderer.showHideButton,M=e&&e.liveChatRenderer&&e.liveChatRenderer.showButton;return r&&G&&!Z&&!M||!r&&G&&!Z&&!O?!0:e&&e.liveChatRenderer&&e.liveChatRenderer.initialDisplayState?e.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.V.computeButtonOverride=function(G,e){if(G&&e)return{type:"outline"}};
_.V.setCollapsedState=function(G){_.a(G,_.oAP)&&((this.isHiddenByUser=!!_.a(G,_.oAP).collapsed)||_.Pi(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.V.forwardReduxActionToIframe=function(G){this.postToContentWindow({"yt-live-chat-forward-redux-action":G})};
_.V.onLoopRangeChange=function(G){this.showAboveScrim=!(G==null||!G.postId)};
_.V.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.V.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.V.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.V.sendDarkThemePostMessage=function(G){this.postToContentWindow({"yt-live-chat-set-dark-theme":G})};
_.V.onLiveChatBuyFlowCallback=function(G){this.postToContentWindow({"yt-live-chat-buy-flow-callback":G})};
_.V.handleKeyboardEvent=function(G){(0,_.c2.containsValue)(q9v,G.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:G.type,keyCode:G.keyCode}})};
_.V.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.V.postToContentWindow=function(G){if(this.isFrameReady)try{var e=window.location.protocol+"//"+window.location.host,r;(r=this.chatframe)!=null&&r.contentWindow?this.chatframe.contentWindow.postMessage(G,e):_.FH(new _.Cr("Tried posting a message to an iframe with no content window",G))}catch(Z){_.yx(Z)}};
_.V.shouldHideChatFrame=function(G){return G&&_.R("hide_live_chat_button_when_collapsed")};
_.iY.Object.defineProperties(Ks.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.R("live_chat_overflow_hide_chat")||_.R("web_watch_chat_hide_button_killswitch"))return _.R("live_chat_overflow_hide_chat");var G,e,r,Z;return!!((G=this.data)==null?0:(e=G.liveChatRenderer)==null?0:(r=e.header)==null?0:(Z=r.liveChatHeaderRenderer)==null?0:Z.collapseButton)}}});
Ks.prototype.collapsedChanged=Ks.prototype.collapsedChanged;Ks.prototype.urlChanged=Ks.prototype.urlChanged;Ks.prototype.dataChanged=Ks.prototype.dataChanged;Ks.prototype.onShowHideChat=Ks.prototype.onShowHideChat;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Ks.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Ks.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Ks.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.GJ.YtPlayerListenerBehavior),_.x("design:type",_.ew)],Ks.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.k(_.qG.YtOpenPopupBehavior),_.x("design:type",Object)],Ks.prototype,"ytOpenPopupBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Ks.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],Ks.prototype,"currentPageUrl",void 0);
_.B([_.n({computed:"computeBaseUrl(currentPageUrl,data)"}),_.x("design:type",Object)],Ks.prototype,"baseUrl",void 0);_.B([_.n({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.x("design:type",String)],Ks.prototype,"url",void 0);_.B([_.n(),_.x("design:type",Object)],Ks.prototype,"isHiddenByUser",void 0);_.B([_.n({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.x("design:type",Object)],Ks.prototype,"hidden",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.x("design:type",Boolean)],Ks.prototype,"collapsed",void 0);_.B([_.n({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.x("design:type",Boolean)],Ks.prototype,"hideChatFrame",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Ks.prototype,"showAboveScrim",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Ks.prototype,"watchNextGrid",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ks.prototype,"modernButtons",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Ks.prototype,"roundedContainer",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Ks.prototype,"noBorder",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ks.prototype,"roundBackground",void 0);
_.B([_.n({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.x("design:type",Object)],Ks.prototype,"toggleButtonOverride",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ks.prototype,"overflowHideChat",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Ks.prototype,"forceDarkTheme",void 0);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ks.prototype,"enableShowWithoutHideChatButton",null);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Ks.prototype,"theaterWatchWhile",void 0);_.B([_.hs("#chatframe"),_.x("design:type",HTMLIFrameElement)],Ks.prototype,"chatframe",void 0);_.B([_.Om("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ks.prototype,"onShowHideChat",null);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ks.prototype,"dataChanged",null);
_.B([_.Me("url"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ks.prototype,"urlChanged",null);_.B([_.Me("collapsed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ks.prototype,"collapsedChanged",null);_.B([_.c({is:"ytd-live-chat-frame",disableElementRegistration:!0})],Ks);
_.A(Ks,"ytd-live-chat-frame",function(){if(Laz!==void 0)return Laz;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Laz=G},{mode:1});var Gc2;var kI=function(){var G=_.m.apply(this,arguments)||this;G.modern=_.R("web_modern_buttons");G.buttonOverrides={style:"call-to-action",type:"filled"};return G};
_.K(kI,_.m);kI.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=_.RB(this.data.backgroundColor)))};
kI.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var G=this.getFormattedStringLoggingDirectives(this.data.headline);G&&this.rendererBehavior.logExplicitClick(G)}};
kI.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var G=this.getFormattedStringLoggingDirectives(this.data.description);G&&this.rendererBehavior.logExplicitClick(G)}};
kI.prototype.getFormattedStringLoggingDirectives=function(G){return G&&G.runs&&G.runs.length>0&&G.runs[0]&&G.runs[0].loggingDirectives?G.runs[0].loggingDirectives:null};
kI.prototype.dataChanged=kI.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],kI.prototype,"rendererBehavior",void 0);_.B([_.k(fWX.YtMacroReplacementBehavior),_.x("design:type",Object)],kI.prototype,"macroReplacementBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],kI.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],kI.prototype,"navigationEndpoint",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],kI.prototype,"enableColors",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kI.prototype,"modern",void 0);_.B([_.n(),_.x("design:type",Object)],kI.prototype,"buttonOverrides",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kI.prototype,"dataChanged",null);_.B([_.c({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],kI);
_.A(kI,"ytd-action-basic-immersive-content-renderer",function(){if(Gc2!==void 0)return Gc2;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Gc2=G},{mode:1});var ezk;var r0$;var HC=function(){return _.m.apply(this,arguments)||this};
_.K(HC,_.m);HC.prototype.dataChanged=function(){var G;((G=this.data)==null?void 0:G.backgroundColor)!==void 0&&_.eD(this.hostElement,{"--bgu-color":_.RB(this.data.backgroundColor)})};
HC.prototype.onImageTileClick=function(){var G;((G=this.data)==null?0:G.navigationEndpoint)&&_.xy(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var e;((e=this.data)==null?0:e.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.iY.Object.defineProperties(HC.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var G;if(((G=this.data)==null?void 0:G.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 G;return((G=this.data)==null?void 0:G.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var G,e,r;if(((G=this.data)==null?void 0:(e=G.detailsLine)==null?void 0:e.texts)!=null&&((r=this.data)==null?void 0:r.detailsLine.texts.length)>0){var Z;return(Z=this.data)==null?void 0:Z.detailsLine.texts.map(function(O){return O.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var G,e,r;if(((G=this.data)==null?void 0:(e=G.optionalDetailsLine)==null?void 0:e.texts)!=null&&((r=this.data)==null?void 0:r.optionalDetailsLine.texts.length)>0){var Z;return(Z=this.data)==null?void 0:Z.optionalDetailsLine.texts.map(function(O){return O.text}).join("")}return null}}});
HC.prototype.dataChanged=HC.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],HC.prototype,"rendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],HC.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],HC.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("data.backgroundColor"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],HC.prototype,"hasBackgroundColor",null);
_.B([_.d("data.objectFit"),_.x("design:type",Object),_.x("design:paramtypes",[])],HC.prototype,"getObjectFit",null);_.B([_.n({reflectToAttribute:!0}),_.d("data.tileRenderingStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],HC.prototype,"hasTileMetadata",null);_.B([_.d("data.detailsLine"),_.x("design:type",Object),_.x("design:paramtypes",[])],HC.prototype,"getSecondaryDetails",null);
_.B([_.d("data.optionalDetailsLine"),_.x("design:type",Object),_.x("design:paramtypes",[])],HC.prototype,"getOptionalDetails",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],HC.prototype,"dataChanged",null);_.B([_.c({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],HC);
_.A(HC,"ytd-image-tile-renderer",function(){if(r0$!==void 0)return r0$;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return r0$=G},{mode:1});var ZFj;var dK=function(){return _.m.apply(this,arguments)||this};
_.K(dK,_.m);dK.prototype.getOpenLinkIcon=function(){return _.R("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
dK.prototype.onSitelinkTap=function(){_.xy(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.R("kevlar_command_handler_migration_killswitch"))_.Wi(this.hostElement,this.data.clickCommands,this.hostElement);else for(var G=_.h(this.data.clickCommands),e=G.next();!e.done;e=G.next())this.ytComponentBehavior.resolveCommand(e.value)};
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],dK.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],dK.prototype,"rendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],dK.prototype,"data",void 0);_.B([_.c({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],dK);
_.A(dK,"ytd-sitelink-renderer",function(){if(ZFj!==void 0)return ZFj;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return ZFj=G},{mode:1});var oE=function(){var G=_.m.apply(this,arguments)||this;G.paddingFix=_.R("enable_ads_web_ep_buenos_aires_and_padding_fix");return G};
_.K(oE,_.m);oE.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"}}}};
oE.prototype.dataChanged=function(){var G=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(e){e.clickTrackingParams&&delete e.clickTrackingParams;G.ytMacroReplacementBehavior.sendServiceRequestAction([e])})};
oE.prototype.shouldHideFooter=function(G){return!(G&&_.R("use_ads_engagement_panel_desktop_footer_cta"))};
_.iY.Object.defineProperties(oE.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var G,e;return((G=this.data)==null?void 0:G.imageTileRenderers)===void 0||((e=this.data)==null?void 0:e.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(r){var Z;return(Z=_.a(r,jhX))==null?void 0:Z.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var G,e;return((G=this.data)==null?void 0:G.imageTileRenderers)===void 0||((e=this.data)==null?void 0:e.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(r){var Z;return((Z=_.a(r,jhX))==null?void 0:Z.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
oE.prototype.dataChanged=oE.prototype.dataChanged;_.B([_.k(fWX.YtMacroReplacementBehavior),_.x("design:type",Object)],oE.prototype,"ytMacroReplacementBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],oE.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],oE.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],oE.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],oE.prototype,"paddingFix",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("data.imageTileRenderers"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],oE.prototype,"removeBorderFromImageTiles",null);_.B([_.n({reflectToAttribute:!0}),_.d("data.imageTileRenderers"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],oE.prototype,"useFooteredMetadataRenderingStyle",null);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oE.prototype,"dataChanged",null);_.B([_.c({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],oE);
_.A(oE,"ytd-action-engagement-panel-content-renderer",function(){if(ezk!==void 0)return ezk;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return ezk=G},{mode:1});var OF2;var MSX=_.y(function(G){var e=G.data;var r=G.customCommandResolver;return _.v("ad-grid-card-image-full-metadata-view-model",{class:function(){var Z;return((Z=e().interaction)==null?0:Z.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.cQ(_.vJ({visibilityCallback:function(Z){var O,M=(O=e().interaction)==null?void 0:O.onFirstVisible;Z&&M&&_.HQ(M)},
showOption:_.Ep}),_.fW(function(){return e().interaction},r)),
"aria-label":function(){var Z,O;return(Z=e().interaction)==null?void 0:(O=Z.accessibility)==null?void 0:O.label}},_.v("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.v(_.E2,{data:function(){return e().adImage}},{adImageViewModel:function(Z){return _.v(_.fw,{data:Z.data,
customCommandResolver:r})}})),_.v("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.v(_.S,{cond:function(){return e().headline},
then:function(Z){return _.v(_.Wh,{text:Z,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.v(_.S,{cond:function(){return e().detailsLine},
then:function(Z){return _.v("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.v(_.E2,{data:Z},{adDetailsLineViewModel:function(O){return _.v(_.gZ,{data:O.data,customCommandResolver:r,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.v(_.S,{cond:function(){return e().secondaryDetailsLine},
then:function(Z){return _.v("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.v(_.E2,{data:Z},{adDetailsLineViewModel:function(O){return _.v(_.gZ,{data:O.data,customCommandResolver:r,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"mn");var VSy=_.y(function(G){var e=G.data;var r=G.customCommandResolver;return _.v("ad-grid-card-image-view-model",{class:function(){var Z;return((Z=e().interaction)==null?0:Z.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.cQ(_.vJ({visibilityCallback:function(Z){var O,M=(O=e().interaction)==null?void 0:O.onFirstVisible;Z&&M&&_.HQ(M)},
showOption:_.Ep}),_.fW(function(){return e().interaction},r)),
"aria-label":function(){var Z,O;return(Z=e().interaction)==null?void 0:(O=Z.accessibility)==null?void 0:O.label}},_.v(_.E2,{data:function(){return e().adImage}},{adImageViewModel:function(Z){return _.v(_.fw,{data:Z.data,
customCommandResolver:r})}}),_.v("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.v(_.E2,{data:function(){return e().adCardBadge}},{adCardBadgeViewModel:_.mib})))},"nn");var hzt=_.y(function(G){var e=G.data;var r=G.customCommandResolver;return _.v("ad-grid-card-text-view-model",{class:function(){var Z;return((Z=e().interaction)==null?0:Z.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.cQ(_.vJ({visibilityCallback:function(Z){var O,M=(O=e().interaction)==null?void 0:O.onFirstVisible;Z&&M&&_.HQ(M)},
showOption:_.Ep}),_.fW(function(){return e().interaction},r)),
"aria-label":function(){var Z,O;return(Z=e().interaction)==null?void 0:(O=Z.accessibility)==null?void 0:O.label}},_.v("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.v(_.S,{cond:function(){return e().title},
then:function(Z){return _.v(_.Wh,{text:Z,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.v("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.v(_.u6,{each:function(){var Z;
return((Z=e())==null?void 0:Z.descriptions)||[]},
keyBy:"INDEX"},function(Z){return _.v(_.Wh,{text:Z,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.v("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.v(_.E2,{data:function(){return e().moreInfoButton}},{adButtonViewModel:function(Z){return _.v(_.bK,{data:Z.data,
customCommandResolver:r})}})))},"on");var TLk=_.y(function(G){var e=G.data;var r=G.customCommandResolver;var Z=G.adGridCardCollectionStyle;return _.v("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.cQ(_.vJ({visibilityCallback:function(O){var M,T=(M=e().interaction)==null?void 0:M.onFirstVisible;O&&T&&_.HQ(T)},
showOption:_.Ep})),style:function(){return"grid-template-columns: repeat("+Klt(Z?Z():e().style)+", minmax(0, 1fr));"}},_.v(_.E2,{data:function(){var O;
return(O=e())==null?void 0:O.gridCards}},{adGridCardImageViewModel:function(O){return _.v(VSy,{data:O.data,
customCommandResolver:r})},
adGridCardImageFullMetadataViewModel:function(O){return _.v(MSX,{data:O.data,customCommandResolver:r})},
adGridCardTextViewModel:function(O){return _.v(hzt,{data:O.data,customCommandResolver:r})}}))},"pn");_.J_(_.y(function(G){var e=G.data;return _.v("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.cQ(_.vJ({visibilityCallback:function(r){var Z,O=(Z=e().interaction)==null?void 0:Z.onFirstVisible;r&&O&&_.HQ(O)},
showOption:_.Ep}),_.fW(function(){return e().interaction},kXw))},_.v("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.v(_.S,{cond:_.SoS("(min-width: "+((0,_.fv)()+_.Cn)+"px)"),
then:function(){return _.v(_.E2,{data:function(){return e().adGridCardCollection}},{adGridCardCollectionViewModel:function(r){return _.v(TLk,{data:r.data,
customCommandResolver:kXw})}})},
else:function(){return _.v(_.E2,{data:function(){return e().adGridCardCollection}},{adGridCardCollectionViewModel:function(r){return _.v(TLk,{data:r.data,
customCommandResolver:kXw,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.v("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.v(_.E2,{data:function(){return e().adButton}},{adButtonViewModel:function(r){return _.v(_.bK,{data:r.data,
customCommandResolver:kXw})}})))},"qn"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.N6}});_.J_(_.y(function(G){var e=G.data;return _.v("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.cQ(_.vJ({visibilityCallback:function(r){var Z,O=(Z=e().interaction)==null?void 0:Z.onFirstVisible;r&&O&&_.HQ(O)},
showOption:_.Ep}),_.fW(function(){return e().interaction},HBk))},_.v("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.v(_.E2,{data:function(){if(_.SoS("(min-width: "+((0,_.fv)()+_.Cn)+"px)")())var r=e().adGridCardCollection;
else{r=Object.assign({},_.a(e().adGridCardCollection,XOq));var Z;r.gridCards!==void 0&&((Z=r.gridCards)==null?void 0:Z.length)>1?r.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":r.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";r={adGridCardCollectionViewModel:r}}return r}},{adGridCardCollectionViewModel:function(r){return _.v(TLk,{data:r.data,
customCommandResolver:HBk})}})),_.v("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.v(_.E2,{data:function(){return e().adButton}},{adButtonViewModel:function(r){return _.v(_.bK,{data:r.data,
customCommandResolver:HBk})}})))},"rn"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.N6}});var sX=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return G};
_.K(sX,_.m);_.V=sX.prototype;_.V.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"}}}};
_.V.attached=function(){this.getDataFromPlayerAndRender()};
_.V.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.V.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.V.getDataFromPlayerAndRender=function(){var G=this,e=_.Ff(this.hostElement);e&&e.getPlayerPromise().then(function(r){G.getCachedDataAndListen(r)})};
_.V.getCachedDataAndListen=function(G){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(G,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(G,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=G)};
_.V.resolveCachedActions=function(){var G=_.Lz("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(G=G&&G())&&!_.c2.isEmpty(G)&&this.sendUpdateEngagementPanelAction(G);(G=(G=_.Lz("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&G())&&!_.c2.isEmpty(G)&&this.sendChangeEngagementPanelVisibilityAction(G);(G=(G=_.Lz("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&G())&&!_.c2.isEmpty(G)&&this.sendScrollToEngagementPanelCommand(G)};
_.V.sendUpdateEngagementPanelAction=function(G){var e;_.Pi(this.hostElement,"yt-update-engagement-panel-action",[(e=_.c2.get(G,"action"))!=null?e:G])};
_.V.sendChangeEngagementPanelVisibilityAction=function(G){_.Pi(this.hostElement,"yt-change-engagement-panel-visibility-action",[G])};
_.V.sendScrollToEngagementPanelCommand=function(G){_.Pi(this.hostElement,"yt-scroll-to-engagement-panel-command",[G])};
_.V.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.R("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.FH(Error("Yo"))};
sX.prototype.dataChanged=sX.prototype.dataChanged;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],sX.prototype,"actionHandlerBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],sX.prototype,"componentBehavior",void 0);_.B([_.k(_.GJ.YtPlayerListenerBehavior),_.x("design:type",_.ew)],sX.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],sX.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],sX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],sX.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],sX.prototype,"player",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sX.prototype,"dataChanged",null);_.B([_.c({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],sX);
_.A(sX,"ytd-ads-engagement-panel-content-renderer",function(){if(OF2!==void 0)return OF2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);
return OF2=G},{mode:1});var Daz;var Qg=function(){var G=_.m.apply(this,arguments)||this;G.player=null;G.JSC$22952_playerEvents=new Map;G.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return G};
_.K(Qg,_.m);_.V=Qg.prototype;_.V.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]]"}}}}}};
_.V.created=function(){this.player=null;this.JSC$22952_playerEvents=new Map;this.JSC$22952_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22952_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22952_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22952_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.V.attached=function(){var G=this,e=_.Ff();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));e&&e.getPlayerPromise().then(function(r){G.setPlayer(r);G.set("isPageLoad",!1)})};
_.V.setPlayer=function(G){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22952_playerEvents);this.set("player",G);G&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(G,this.JSC$22952_playerEvents),G.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.V.onLoopRangeChange=function(G){var e=_.v_().resolve(_.bq(_.y$));if((!e||e.isOnWatch())&&this.hostElement.clientHeight){var r;!G&&((r=this.data)==null?0:r.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.V.onVideoProgress=function(G){var e,r,Z=((e=this.player)==null?void 0:(r=e.getPresentingPlayerType)==null?void 0:r.call(e))===2;this.isAdPlaying!==Z&&this.set("isAdPlaying",Z);var O;if(!Z&&(O=this.player)!=null&&O.getLoopRange()){r=this.player.getLoopRange();e=r.startTimeMs;r=r.endTimeMs;Z=this.player.getProgressState(1).seekableStart;var M;e<Z*1E3&&((M=this.data)==null?0:M.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
G=r<G*1E3;var T;((T=this.player)==null?0:T.getLoopRange())&&G&&this.player.seekTo(e/1E3)}};
_.V.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.V.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.V.onYtDeleteClipEngagementPanelCommand=function(G){_.a(G,cBZ).command&&this.ytComponentBehavior.resolveCommand(_.a(G,cBZ).command)};
_.iY.Object.defineProperties(Qg.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.voteCount)||_.nQ("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Qg.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Qg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Qg.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Qg.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.GJ.YtPlayerListenerBehavior),_.x("design:type",_.ew)],Qg.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Qg.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Qg.prototype,"isAdPlaying",void 0);_.B([_.n({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],Qg.prototype,"isPageLoad",void 0);_.B([_.n({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],Qg.prototype,"isDarkTheme",void 0);
_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Qg.prototype,"voteCount",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Qg.prototype,"channelEndpoint",null);_.B([_.d("channelEndpoint"),_.x("design:type",Object),_.x("design:paramtypes",[])],Qg.prototype,"channelHref",null);_.B([_.c({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Qg);
_.A(Qg,"ytd-clip-attribution-renderer",function(){if(Daz!==void 0)return Daz;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Daz=G},{mode:1});var E2Z;var IE=function(){var G=_.m.apply(this,arguments)||this;G.player=null;G.JSC$22957_playerEvents=new Map;return G};
_.K(IE,_.m);_.V=IE.prototype;_.V.created=function(){this.player=null;this.JSC$22957_playerEvents=new Map;this.JSC$22957_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22957_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22957_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.V.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.V.attached=function(){var G=this,e=_.Ff();e&&e.getPlayerPromise().then(function(r){G.setPlayer(r);G.set("isPageLoad",!1)})};
_.V.setPlayer=function(G){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22957_playerEvents);this.set("player",G);if(G){this.ytPlayerListenerBehavior.listenToPlayerEvents(G,this.JSC$22957_playerEvents);var e;(G==null?void 0:(e=G.getPresentingPlayerType)==null?void 0:e.call(G))===2&&this.playerAdStartHandler()}};
_.V.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.V.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.V.onVideoProgress=function(){var G,e,r=((G=this.player)==null?void 0:(e=G.getPresentingPlayerType)==null?void 0:e.call(G))===2;this.isAdPlaying!==r&&this.set("isAdPlaying",r)};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],IE.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],IE.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.GJ.YtPlayerListenerBehavior),_.x("design:type",_.ew)],IE.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],IE.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],IE.prototype,"isAdPlaying",void 0);
_.B([_.n({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],IE.prototype,"isPageLoad",void 0);_.B([_.c({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],IE);
_.A(IE,"ytd-clip-section-footer-renderer",function(){if(E2Z!==void 0)return E2Z;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return E2Z=G},{mode:1});var iFZ;var bFt;var v22=function(){return _.m.apply(this,arguments)||this};
_.K(v22,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],v22.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],v22.prototype,"data",void 0);_.B([_.c({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],v22);
_.A(v22,"ytd-clip-ad-state-renderer",function(){if(bFt!==void 0)return bFt;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return bFt=G},{mode:1});var wGv;var ps=function(){var G=_.m.apply(this,arguments)||this;G.value="";G.valid=!1;G.userChangedValue=!1;G.disabled=!1;G.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return G};
_.K(ps,_.m);_.V=ps.prototype;_.V.detached=function(){this.userChangedValue=!1};
_.V.handleKeyDown=function(G){if(_.Wz)var e=13;else _.Y_j&&_.NS?e=13:e=13;G.keyCode===e&&G.preventDefault()};
_.V.handleInput=function(){var G=_.z1(this.hostElement).querySelector("#title");if(G){var e=(G.value||"").replace(/\r|\n/g," ");this.set("value",e);G.value=e;this.valid=G.validate();this.userChangedValue=!0}};
_.V.handleBlur=function(){this.valid=_.z1(this.hostElement).querySelector("#title").validate()};
_.V.onValueChanged=function(){_.xy(this.hostElement,"title-changed",{title:this.value})};
_.V.onValidChanged=function(){_.xy(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.V.setInput=function(G,e){var r=_.z1(this.hostElement).querySelector("#title");r&&(r.value=G,this.handleInput(),e&&(r.invalid=!1,this.valid=!0))};
_.V.onClipCreationDisable=function(){this.set("disabled",!0)};
_.V.onClipCreationEnable=function(){this.set("disabled",!1)};
_.V.onClipCreationVisibilityChange=function(G){var e=this;G.visible?requestAnimationFrame(function(){var r;((r=_.z1(e.hostElement).querySelector("#title"))==null?void 0:r.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
ps.prototype.onValidChanged=ps.prototype.onValidChanged;ps.prototype.onValueChanged=ps.prototype.onValueChanged;ps.prototype.handleBlur=ps.prototype.handleBlur;ps.prototype.handleInput=ps.prototype.handleInput;ps.prototype.handleKeyDown=ps.prototype.handleKeyDown;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ps.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],ps.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],ps.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],ps.prototype,"value",void 0);_.B([_.n(),_.x("design:type",Object)],ps.prototype,"valid",void 0);_.B([_.n(),_.x("design:type",Object)],ps.prototype,"userChangedValue",void 0);_.B([_.n(),_.x("design:type",Object)],ps.prototype,"disabled",void 0);_.B([_.Om("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],ps.prototype,"handleKeyDown",null);
_.B([_.Om("input"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ps.prototype,"handleInput",null);_.B([_.Om("blur"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ps.prototype,"handleBlur",null);_.B([_.Me("value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ps.prototype,"onValueChanged",null);
_.B([_.Me("valid"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ps.prototype,"onValidChanged",null);_.B([_.c({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],ps);
_.A(ps,"ytd-clip-creation-text-input-renderer",function(){if(wGv!==void 0)return wGv;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return wGv=G},{mode:1});var $az;var Suz;var qut;var tS$;var g2t;var Cs=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};G.pendingStoryboardImages_={};G.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];G.tickLabelInterval=30;G.mediumTickInterval=5;G.largeTickInterval=15;G.aboveRulerHeight=32;G.rulerHeight=50;G.smallTickHeight=4;G.mediumTickHeight=8;G.largeTickHeight=16;G.mediaListeners_=
{};return G};
_.K(Cs,_.m);_.V=Cs.prototype;_.V.attached=function(){var G=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(e){e=_.h(["screen and (min-resolution: "+e+")","screen and (max-resolution: "+e+")"]);for(var r=e.next();!r.done;r=e.next()){r=r.value;var Z=window.matchMedia(r);Z&&(G.mediaListeners_[r]=G.updatePixelRatio_.bind(G),Z.addEventListener?Z.addEventListener("change",G.mediaListeners_[r]):Z.addListener?Z.addListener(G.mediaListeners_[r]):delete G.mediaListeners_[r])}})};
_.V.detached=function(){this.setPlayer(null);for(var G=_.h(Object.keys(this.mediaListeners_)),e=G.next();!e.done;e=G.next()){var r=e.value;e=this.mediaListeners_[r];(r=window.matchMedia(r))&&(r.removeEventListener?r.removeEventListener("change",e):r.removeListener&&r.removeListener(e))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.V.onVisibilityChangedAction_=function(G){var e=this;G.visible&&!this.player_&&(G=_.Ff())&&G.getPlayerPromise().then(function(r){e.setPlayer(r)})};
_.V.setPlayer=function(G){G&&this.set("player_",G)};
_.V.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.V.setUpCanvas_=function(){var G=this.rulerWidth,e=this.devicePixelRatio_,r=this.visible;this.set("canvasReady_",!1);if(r&&e!==0){r=this.aboveRulerHeight+this.rulerHeight;var Z=_.z1(this.hostElement).querySelector("#ticks");Z.width=G*e;Z.height=r*e;Z.style.width=G+"px";Z.style.height=r+"px";Z.getContext("2d").scale(e,e);this.set("canvasReady_",!0)}};
_.V.drawRuler_=function(G,e,r,Z,O,M,T,E,b,w,q,t){G&&r&&e&&(G=_.z1(this.hostElement).querySelector("#ticks"),e=G.getContext("2d"),e.clearRect(0,0,G.width,G.height),e.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),e.lineWidth=2,e.beginPath(),e.moveTo(0,this.aboveRulerHeight),e.lineTo(G.width,this.aboveRulerHeight),e.moveTo(0,G.height),e.lineTo(G.width,G.height),e.stroke(),this.drawRulerTicks_(G,M,O,Z),this.drawStoryboardImages_(G,r,M,O,Z),e.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
e.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(T-M,Z,!1),this.rulerHeight),r=this.timeToPixels_(E-M,Z,!1),e.fillRect(r,this.aboveRulerHeight,G.width-r,this.rulerHeight),this.drawSpeedLines_(G,M,t))};
_.V.drawRulerTicks_=function(G,e,r,Z){var O=G.getContext("2d");O.save();O.lineWidth=1;for(var M=Math.floor(Math.max(0,e-this.tickLabelInterval));M<e+r;M++){O.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var T=(M-e)*Z;O.beginPath();O.moveTo(T,G.height);var E=this.smallTickHeight;M%this.largeTickInterval===0?E=this.largeTickHeight:M%this.mediumTickInterval===0&&(E=this.mediumTickHeight);O.lineTo(T,G.height-E);O.stroke();M%this.tickLabelInterval===0&&(O.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),O.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),O.fillText(oj(M),T+4,12),O.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),O.moveTo(T,0),O.lineTo(T,this.aboveRulerHeight),O.stroke())}O.restore()};
_.V.percentToHex_=function(G){G=Math.round(G*255).toString(16);G.length<2&&(G="0"+G);return G};
_.V.drawSpeedLines_=function(G,e,r){var Z=G.getContext("2d");Z.save();var O=Math.min(25,Math.abs(r)-15)/25,M=G.width*.3*O,T=G.width*-.3,E=G.width*1.3,b=this.aboveRulerHeight;G=G.height;var w=Math.round(4*O),q=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");q.length<7&&(q="#"+q.substring(1,4).repeat(2));var t=this.percentToHex_(.5+O/2);t=q+t;q+="00";if(O>0)for(O=0;O<w;O++){var g=T+Math.random()*(E-T),l=b+Math.random()*(G-b),X=M+e%M,H=Z.createLinearGradient(g,l,g+X,l);
r<0?(H.addColorStop(0,t),H.addColorStop(.4,t),H.addColorStop(.9,q)):(H.addColorStop(.1,q),H.addColorStop(.6,t),H.addColorStop(1,t));Z.strokeStyle=H;Z.lineWidth=1;Z.beginPath();Z.moveTo(g,l);Z.lineTo(g+X,l);Z.stroke()}Z.restore()};
_.V.getStoryboardForTime_=function(G,e,r){r===void 0&&(r=e.getNumberOfStoryboardLevels()-1);G=e.getStoryboardFrameIndex(G,r);return e.getStoryboardFrame(G,r)};
_.V.drawStoryboardImages_=function(G,e,r,Z,O){if(!this.disabled){G=G.getContext("2d");var M=this.getStoryboardForTime_(0,e);if(M){var T=M.width/M.columns;M=M.height/M.rows;var E=T/M,b=this.rulerHeight*E;b=this.tickLabelInterval*(E<this.tickLabelInterval*O/this.rulerHeight?1/Math.floor(this.tickLabelInterval*O/b):Math.round(b/(this.tickLabelInterval*O)));var w=b*O,q=this.rulerHeight,t=w/this.rulerHeight,g=Math.floor(Math.max(0,r-b));for(g-=g%b;g<r+Z;g+=b){var l=this.getStoryboardForTime_(g,e),X=this.getPreloadedStoryboard_(l.url);
if(X){var H=(g-r)*O,I=this.aboveRulerHeight,C=l.column*T,u=l.row*M;if(E<t){var P=q/(w/E);l=T;P*=M;u+=(M-P)/2}else l=w/(q*E)*T,P=M,C+=(T-l)/2;G.drawImage(X,C,u,l,P,H,I,w,q)}else this.fetchStoryboardImage_(l)}}}};
_.V.getPreloadedStoryboard_=function(G){return this.storyboardImages_.find(function(e){if(e.src==G)return!0;var r=e.src.indexOf(G);return r!=-1&&r==e.src.length-G.length})};
_.V.fetchStoryboardImage_=function(G){var e=this,r=this.getPreloadedStoryboard_(G.url),Z=this.pendingStoryboardImages_[G.url];r||Z!==void 0||(r=new Promise(function(O){var M=new Image(G.width,G.height);M.src=G.url;M.onload=function(){O(M)};
M.onerror=function(){O(null)}}),this.pendingStoryboardImages_[G.url]=r,r.then(function(O){O&&e.push("storyboardImages_",O);
return O}).finally(function(){delete e.pendingStoryboardImages_[G.url]}))};
_.V.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.V.timeToPixels_=function(G,e,r){G*=e;return r===void 0||r?G+"px":G};
_.V.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
Cs.prototype.drawRuler_=Cs.prototype.drawRuler_;Cs.prototype.setUpCanvas_=Cs.prototype.setUpCanvas_;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Cs.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);_.B([_.n({value:0}),_.x("design:type",Number)],Cs.prototype,"start",void 0);_.B([_.n({value:30}),_.x("design:type",Number)],Cs.prototype,"end",void 0);
_.B([_.n({value:!1}),_.x("design:type",Boolean)],Cs.prototype,"visible",void 0);_.B([_.n(),_.x("design:type",Object)],Cs.prototype,"player_",void 0);_.B([_.n(),_.x("design:type",Number)],Cs.prototype,"tickSpacing",void 0);_.B([_.n(),_.x("design:type",Number)],Cs.prototype,"windowSizeSec",void 0);_.B([_.n({value:0}),_.x("design:type",Number)],Cs.prototype,"rulerWidth",void 0);_.B([_.n({value:0}),_.x("design:type",Number)],Cs.prototype,"rulerShift",void 0);
_.B([_.n({value:!1}),_.x("design:type",Boolean)],Cs.prototype,"canvasReady_",void 0);_.B([_.n({value:function(){return[]}}),
_.x("design:type",Array)],Cs.prototype,"storyboardImages_",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Cs.prototype,"disabled",void 0);_.B([_.n({value:0}),_.x("design:type",Number)],Cs.prototype,"forceRender_",void 0);_.B([_.n({value:1}),_.x("design:type",Number)],Cs.prototype,"devicePixelRatio_",void 0);_.B([_.n({value:0}),_.x("design:type",Number)],Cs.prototype,"windowSpeed",void 0);
_.B([_.Me("visible","devicePixelRatio_","rulerWidth"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Cs.prototype,"setUpCanvas_",null);
_.B([_.Me("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.x("design:type",Function),_.x("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.x("design:returntype")],Cs.prototype,"drawRuler_",null);_.B([_.aR({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],Cs);
_.A(Cs,"yt-clip-creation-scrubber-canvas",function(){if(g2t===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);g2t=G}G=g2t;return G},
{mode:2});var lGk;var Rzk;var u3=function(){var G=_.m.apply(this,arguments)||this;G.start=0;G.end=30;G.visible=!1;G.draggingLeft_=!1;G.draggingRight_=!1;G.draggingRuler_=!1;G.draggingWindow_=!1;G.seekableStart=0;G.seekableEnd=0;G.rulerWidth_=0;G.rulerShift_=0;G.windowSlideSpeed=0;G.disabled=!1;G.initialized=!1;G.durationAccessibilityLabel="";G.activeLoopRange_=!1;G.rulerDragMouseStart_=0;G.rulerDragRulerStart_=0;G.rulerDragStartTime_=0;G.rulerDragEndTime_=0;G.dragMouseLastX_=0;G.scrollInterval_=null;G.scrubberVe_=null;G.boundHandlers_=
{};G.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return G};
_.K(u3,_.m);_.V=u3.prototype;
_.V.created=function(){var G=this;this.JSC$22970_playerEvents=new Map;this.JSC$22970_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22970_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22970_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(r){G.boundHandlers_[r]=e[r].bind(G)})};
_.V.attached=function(){this.activeLoopRange_=!1;_.z1(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.z1(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.L1(156731)};
_.V.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.z1(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.z1(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.V.onVisibilityChangedAction_=function(G){var e=this;G.visible&&!this.player_&&(G=_.Ff())&&G.getPlayerPromise().then(function(r){e.setPlayer(r)})};
_.V.setPlayer=function(G){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22970_playerEvents);G&&(this.set("player_",G),this.ytPlayerListenerBehavior.listenToPlayerEvents(G,this.JSC$22970_playerEvents))};
_.V.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.V.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.V.beginHandleDrag_=function(G){this.disabled||(G.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=G.clientX,G.target===_.z1(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():G.target===_.z1(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.V.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.V.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.V.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.V.beginRulerDrag_=function(G){this.disabled||(G.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=G.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.V.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.V.beginWindowScroll_=function(){var G=this;this.scrollInterval_=setInterval(function(){var e=G.windowSlideSpeed;if(e=_.n5t(G.start,G.boundedRulerStartLimit_())?e-.1:_.n5t(G.end,G.boundedRulerEndLimit_())?e+.1:0){var r=G.capRulerOffset_(G.rulerShift_+e);r==G.rulerShift_?e=0:(G.set("rulerShift_",r),_.xy(G.hostElement,"set-fixed-length-range",{start:G.start+e,duration:G.end-G.start}))}G.set("windowSlideSpeed",e)},33)};
_.V.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.V.endDrag_=function(){this.logClick();var G=void 0;this.draggingRight_?G=this.end-1:this.draggingLeft_&&(G=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,G);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))};
_.V.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.V.updateRulerSize_=function(){this.set("rulerWidth_",_.z1(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.V.handleMouseDrag_=function(G){G.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(G):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(G):this.draggingWindow_&&this.handleWindowDrag_(G))};
_.V.handleRulerDrag_=function(G){G=this.pixelsToTime_(G.clientX-this.rulerDragMouseStart_);G=this.capRulerOffset_(this.rulerDragRulerStart_-G);this.set("rulerShift_",G);var e=this.rulerDragStartTime_-(this.rulerDragRulerStart_-G);_.xy(this.hostElement,"set-fixed-length-range",{start:e,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-G)-e})};
_.V.handleWindowDrag_=function(G){var e=G.clientX-this.dragMouseLastX_;this.dragMouseLastX_=G.clientX;G=this.pixelsToTime_(e);_.xy(this.hostElement,"set-fixed-length-range",{start:this.start+G,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.V.capRulerOffset_=function(G){var e=this.seekableStart-this.pixelsToTime_(16),r=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(e,G),r)};
_.V.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.V.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.V.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.V.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.V.handleWindowHandleDrag_=function(G){var e=G.clientX-this.dragMouseLastX_;this.dragMouseLastX_=G.clientX;G=this.pixelsToTime_(e);if(this.draggingLeft_){var r=this.start+G;var Z=this.end}else this.draggingRight_&&(r=this.start,Z=this.end+G);_.xy(this.hostElement,"set-range",{start:r,end:Z,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.V.onVideoProgress_=function(G){this.disabled||(G=this.timeToPixels_(G-this.rulerShift_,this.tickSpacing_),_.z1(this.hostElement).querySelector("#playhead").style.transform="translateX("+G+")")};
_.V.onClipCreationDisable_=function(){this.endDrag_()};
_.V.timeToPixels_=function(G,e,r){G*=e;return r===void 0||r?G+"px":G};
_.V.pixelsToTime_=function(G){return G/this.tickSpacing_};
_.V.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.V.centerRuler_=function(G,e,r){this.set("rulerShift_",this.capRulerOffset_(G+(e-G)/2-r/2))};
_.V.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.V.updateLoopRange_=function(G,e,r,Z,O,M,T){G&&(e&&Z&&!r?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(G.pauseVideo(),G.seekTo(O,!1,void 0,void 0,50)):this.draggingRight_?(G.pauseVideo(),G.seekTo(M-.1,!1,void 0,void 0,50)):(T!==void 0?G.seekTo(T,!0,void 0,void 0,50):(e=G.getCurrentTime(),e<O||e>M?G.seekTo(O,!0,void 0,void 0,50):G.seekTo(e,!0,void 0,void 0,50)),G.playVideo()),G.setLoopRange({startTimeMs:O*1E3,endTimeMs:M*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(G.getCurrentTime())):
this.activeLoopRange_&&(G.setLoopRange(null),this.activeLoopRange_=!1))};
_.V.updateHandles_=function(){_.z1(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.z1(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.V.updateRuler_=function(){var G=this.end,e=this.start,r=this.draggableStartLimit_(),Z=this.draggableEndLimit_();(e<r-.001||G>Z+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.V.computeDurationLabel_=function(G,e){return G?G.replace("$clip_length",parseFloat(e).toFixed(1)):""};
_.V.computeDuration_=function(G,e){return this.isValidTime_(G)&&this.isValidTime_(e)&&G<e?e-G:0};
_.V.isValidTime_=function(G){return isNaN(parseFloat(G))||G<0?!1:this.player_?G>=this.seekableStart&&G<=this.seekableEnd:!0};
_.V.computeWindowSizeSec_=function(G,e,r){return Math.min((G||12E4)/1E3,r-e)};
_.V.computeTickSpacing_=function(G,e){return e?e/G:1};
_.V.onDragStateChanged_=function(){_.xy(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.V.centerRangeOnTime_=function(G){var e=this.duration;G=oW$(G-e/2,e,this.seekableStart,this.seekableEnd);_.xy(this.hostElement,"set-fixed-length-range",{start:G.start,duration:G.end-G.start})};
_.V.nearlyLessThan_=function(G,e,r){return G+(r===void 0?1E-6:r)<e};
_.V.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var G=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(G,this.start)||this.nearlyLessThan_(this.end,G))&&this.centerRangeOnTime_(G)}};
_.V.onStateChange_=function(G){this.visible&&!this.disabled&&G==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.V.computeDragState_=function(G,e,r,Z){return G?"left":e?"right":r?"ruler":Z?"window":"none"};
_.V.logClick=function(){var G=_.l4(),e=_.go();G&&e&&this.scrubberVe_&&(_.R("combine_ve_grafts")?_.Xr(_.h_(),this.scrubberVe_,e):_.QU(G,e,this.scrubberVe_),_.n_(G,this.scrubberVe_))};
u3.prototype.onDragStateChanged_=u3.prototype.onDragStateChanged_;u3.prototype.updateRuler_=u3.prototype.updateRuler_;u3.prototype.updateHandles_=u3.prototype.updateHandles_;u3.prototype.onUpdateLoopRange=u3.prototype.onUpdateLoopRange;u3.prototype.onInitializedChanged_=u3.prototype.onInitializedChanged_;u3.prototype.onVisibleChanged_=u3.prototype.onVisibleChanged_;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],u3.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.k(_.GJ.YtPlayerListenerBehavior),_.x("design:type",Object)],u3.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],u3.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],u3.prototype,"start",void 0);_.B([_.n(),_.x("design:type",Object)],u3.prototype,"end",void 0);_.B([_.n({computed:"computeDuration_(start, end)"}),_.x("design:type",Number)],u3.prototype,"duration",void 0);
_.B([_.n(),_.x("design:type",String)],u3.prototype,"lengthTemplate",void 0);_.B([_.n({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.x("design:type",String)],u3.prototype,"durationLabel",void 0);_.B([_.n(),_.x("design:type",Object)],u3.prototype,"visible",void 0);_.B([_.n(),_.x("design:type",Object)],u3.prototype,"player_",void 0);_.B([_.n(),_.x("design:type",Object)],u3.prototype,"draggingLeft_",void 0);_.B([_.n(),_.x("design:type",Object)],u3.prototype,"draggingRight_",void 0);
_.B([_.n(),_.x("design:type",Object)],u3.prototype,"draggingRuler_",void 0);_.B([_.n({value:!1}),_.x("design:type",Object)],u3.prototype,"draggingWindow_",void 0);_.B([_.n({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.x("design:type",Number)],u3.prototype,"tickSpacing_",void 0);_.B([_.n(),_.x("design:type",Object)],u3.prototype,"seekableStart",void 0);_.B([_.n(),_.x("design:type",Object)],u3.prototype,"seekableEnd",void 0);
_.B([_.n(),_.x("design:type",Number)],u3.prototype,"windowSizeMs",void 0);_.B([_.n({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.x("design:type",Number)],u3.prototype,"windowSizeSec_",void 0);_.B([_.n(),_.x("design:type",Object)],u3.prototype,"rulerWidth_",void 0);_.B([_.n(),_.x("design:type",Object)],u3.prototype,"rulerShift_",void 0);_.B([_.n(),_.x("design:type",Object)],u3.prototype,"windowSlideSpeed",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],u3.prototype,"disabled",void 0);_.B([_.n(),_.x("design:type",Object)],u3.prototype,"initialized",void 0);_.B([_.n(),_.x("design:type",Object)],u3.prototype,"durationAccessibilityLabel",void 0);_.B([_.n({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.x("design:type",String)],u3.prototype,"dragState",void 0);
_.B([_.Me("visible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u3.prototype,"onVisibleChanged_",null);_.B([_.Me("initialized"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u3.prototype,"onInitializedChanged_",null);_.B([_.Me("player_","visible","disabled","initialized","start","end"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u3.prototype,"onUpdateLoopRange",null);
_.B([_.Me("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u3.prototype,"updateHandles_",null);_.B([_.Me("start","end"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u3.prototype,"updateRuler_",null);
_.B([_.Me("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u3.prototype,"onDragStateChanged_",null);_.B([_.aR({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],u3);
_.A(u3,"yt-clip-creation-scrubber-view",function(){if(Rzk===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;lGk===void 0&&(lGk=document.createElement("template"));var Z=lGk;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Rzk=G}G=Rzk;return G},{mode:2});var ns=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};G.startHighlightTimeout=0;G.endHighlightTimeout=0;return G};
_.K(ns,_.m);_.V=ns.prototype;_.V.attached=function(){var G=this;this.startInput.addEventListener("input",function(e){return G.handleStartInput_(e)});
this.endInput.addEventListener("input",function(e){return G.handleEndInput_(e)});
this.startInput.addEventListener("focusout",function(e){return G.handleStartBlur_(e)});
this.endInput.addEventListener("focusout",function(e){return G.handleEndBlur_(e)})};
_.V.setPlayer=function(G){this.set("player_",G)};
_.V.onSetFixedLengthRange_=function(G){var e=G.detail;G=e.start;var r=e.duration,Z=e.startLimit;e=e.endLimit;Z||(Z=this.seekableStart_);e||(e=this.seekableEnd_);G=oW$(G,r,Z,e);this.start=G.start;this.end=G.end};
_.V.onSetRange_=function(G){var e=G.detail;G=e.start;var r=e.end,Z=e.startLimit;e=e.endLimit;Z||(Z=this.seekableStart_);e||(e=this.seekableEnd_);if(G=sFX(G,r,Z,e,this.minLengthSec,this.maxLengthSec))this.start=G.start,this.end=G.end};
_.V.updateInputs_=function(){var G=this.end,e=this.start;this.startInput.focused||(this.startInput.value=oj(e,!0));this.endInput.focused||(this.endInput.value=oj(G,!0))};
_.V.handleStartInput_=function(G){G=dMj(G.target.value);if(G===null)this.set("startValid",!1);else{var e=this.end,r=sFX(G,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);r?(this.set("endWillUpdate",r.end!==e),this.set("startValid",r.start===G)):this.set("startValid",!1)}};
_.V.handleEndInput_=function(G){G=dMj(G.target.value);if(G===null)this.set("endValid",!1);else{var e=this.start,r=QFk(this.start,G,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);r?(this.set("startWillUpdate",r.start!==e),this.set("endValid",r.end===G)):this.set("endValid",!1)}};
_.V.handleStartBlur_=function(G){G=dMj(G.target.value);G===null?this.startInput.value=oj(this.start,!0):this.forceUpdateInputs_(sFX(G,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.V.handleEndBlur_=function(G){G=dMj(G.target.value);G===null?this.endInput.value=oj(this.end,!0):this.forceUpdateInputs_(QFk(this.start,G,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.V.forceUpdateInputs_=function(G){G&&(this.start=G.start,this.end=G.end);this.startInput.value=oj(this.start,!0);this.endInput.value=oj(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.V.initializeClipRange_=function(){var G=this.seekableEnd_,e=this.seekableStart_,r=this.visible_,Z=this.player_;if(!Z||!r||e===null||!G)this.set("initialized",!1);else if(!this.initialized){var O=Z.getCurrentTime(),M=this.getDefaultLengthSec_();r=Z.getVideoData();var T=Z.getPlayerState()==1,E=r.isLive;M=Math.min(M,G-e);O=Math.max(0,O);G=E?QFk(O-M,O,e,G,this.minLengthSec,this.maxLengthSec):T?oW$(O-M/2,M,e,G):oW$(O,M,e,G);this.start=G.start;this.end=G.end;this.set("initialized",!0);r.isLive&&Z.seekTo(G.start);
this.startInput.value=oj(this.start,!0);this.endInput.value=oj(this.end,!0)}};
_.V.onStartChanged_=function(){var G=this;_.xy(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(){G.set("highlightStart",!1);G.startHighlightTimeout=0;G.oldStart=G.start},3E3))};
_.V.onEndChanged_=function(){var G=this;_.xy(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(){G.set("highlightEnd",!1);G.endHighlightTimeout=0;G.oldEnd=G.end},3E3))};
_.V.onVisibilityChangedAction_=function(G){var e=this;this.set("visible_",G.visible);this.visible_&&!this.player_&&(G=_.Ff())&&G.getPlayerPromise().then(function(r){e.setPlayer(r)})};
_.V.computeMinLengthSec_=function(G){return G/1E3||5};
_.V.computeMaxLengthSec_=function(G){return G/1E3||60};
_.V.computeDefaultLengthSec_=function(G){return G/1E3};
_.V.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.V.computeSeekableStart_=function(G,e){return G&&e?G.getProgressState(1).seekableStart:0};
_.V.computeSeekableEnd_=function(G,e){return G&&e?G.getProgressState(1).seekableEnd:0};
_.V.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.V.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.V.onDragState_=function(G){this.set("highlightStart",G.detail.startChanging);this.set("highlightEnd",G.detail.endChanging)};
ns.prototype.onDragState_=ns.prototype.onDragState_;ns.prototype.onEndChanged_=ns.prototype.onEndChanged_;ns.prototype.onStartChanged_=ns.prototype.onStartChanged_;ns.prototype.initializeClipRange_=ns.prototype.initializeClipRange_;ns.prototype.updateInputs_=ns.prototype.updateInputs_;ns.prototype.onSetRange_=ns.prototype.onSetRange_;ns.prototype.onSetFixedLengthRange_=ns.prototype.onSetFixedLengthRange_;
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],ns.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ns.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ns.prototype,"data",void 0);_.B([_.n({value:0}),_.x("design:type",Number)],ns.prototype,"start",void 0);_.B([_.n({value:!0}),_.x("design:type",Boolean)],ns.prototype,"startValid",void 0);
_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],ns.prototype,"startWillUpdate",void 0);_.B([_.n({value:30}),_.x("design:type",Number)],ns.prototype,"end",void 0);_.B([_.n({value:!0}),_.x("design:type",Boolean)],ns.prototype,"endValid",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],ns.prototype,"endWillUpdate",void 0);_.B([_.n({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.x("design:type",Number)],ns.prototype,"minLengthSec",void 0);
_.B([_.n({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.x("design:type",Number)],ns.prototype,"maxLengthSec",void 0);_.B([_.n({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.x("design:type",Number)],ns.prototype,"defaultLengthSec",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],ns.prototype,"visible_",void 0);_.B([_.n(),_.x("design:type",Object)],ns.prototype,"player_",void 0);
_.B([_.n({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.x("design:type",Number)],ns.prototype,"seekableStart_",void 0);_.B([_.n({computed:"computeSeekableEnd_(player_, visible_)"}),_.x("design:type",Number)],ns.prototype,"seekableEnd_",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],ns.prototype,"initialized",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],ns.prototype,"disabled",void 0);
_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],ns.prototype,"highlightStart",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],ns.prototype,"highlightEnd",void 0);_.B([_.hs("#start"),_.x("design:type",HTMLInputElement)],ns.prototype,"startInput",void 0);_.B([_.hs("#end"),_.x("design:type",HTMLInputElement)],ns.prototype,"endInput",void 0);
_.B([_.Om("set-fixed-length-range"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ns.prototype,"onSetFixedLengthRange_",null);_.B([_.Om("set-range"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ns.prototype,"onSetRange_",null);_.B([_.Me("start","end"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ns.prototype,"updateInputs_",null);
_.B([_.Me("player_","visible_","seekableStart_","seekableEnd_"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ns.prototype,"initializeClipRange_",null);_.B([_.Me("start"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ns.prototype,"onStartChanged_",null);_.B([_.Me("end"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ns.prototype,"onEndChanged_",null);
_.B([_.Om("clips-drag-state"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ns.prototype,"onDragState_",null);_.B([_.aR({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],ns);
_.A(ns,"yt-clip-creation-scrubber-renderer",function(){if(tS$===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;qut===void 0&&(qut=document.createElement("template"));var Z=qut;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);tS$=G}G=tS$;return G},{mode:2});var m1=function(){var G=_.m.apply(this,arguments)||this;G.player_=null;G.JSC$22984_playerEvents=new Map;G.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return G};
_.K(m1,_.m);_.V=m1.prototype;_.V.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"}}}};
_.V.created=function(){this.JSC$22984_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22984_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22984_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22984_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.V.detached=function(){this.setPlayer(null)};
_.V.onVisibilityChangedAction_=function(G){var e=this,r;if((r=this.data)==null?0:r.externalVideoId){var Z;this.videoId=(Z=this.data)==null?void 0:Z.externalVideoId}this.getPlayer().then(function(O){if(G.visible)e.returnTime=O.getCurrentTime(),e.isAtLiveHead=O.getProgressState().isAtLiveHead;else{var M=e.returnTime;e.isAtLiveHead&&(M=Number.POSITIVE_INFINITY);O.seekTo(M,void 0,void 0,void 0,51)}})};
_.V.getPlayer=function(){var G=this;if(!this.player_){var e=_.Ff();if(e)return e.getPlayerPromise().then(function(r){G.setPlayer(r);return r})}return Promise.resolve(this.player_)};
_.V.setPlayer=function(G){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22984_playerEvents);if(G){this.player_=G;var e;((e=this.data)==null?0:e.externalVideoId)||this.set("videoId",G.getVideoData().video_id||"");var r;(G==null?void 0:(r=G.getPresentingPlayerType)==null?void 0:r.call(G))===2&&(this.set("isAdPlaying",!0),_.Pi(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(G,this.JSC$22984_playerEvents)}};
_.V.ready=function(){_.z1(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.V.onTitleChanged_=function(G){this.set("titleValue",G.detail.title)};
_.V.onStartChanged_=function(G){this.set("start",G.detail.start)};
_.V.onEndChanged_=function(G){this.set("end",G.detail.end)};
_.V.onTitleValidChanged_=function(G){this.set("titleValid",G.detail.valid)};
_.V.onStartValidChanged_=function(G){this.set("startValid",G.detail.valid)};
_.V.onEndValidChanged_=function(G){this.set("endValid",G.detail.valid)};
_.V.onVideoDataChange_=function(){var G;if((G=this.data)==null||!G.externalVideoId){var e;this.set("videoId",((e=this.player_)==null?void 0:e.getVideoData().video_id)||"")}};
_.V.computeFormValid_=function(G,e,r,Z){return!!(G&&e&&r&&Z)};
_.V.computeCancelButton_=function(G,e,r){return G&&_.a(G,_.zM)?{buttonRenderer:Object.assign({},_.a(G,_.zM),{isDisabled:e||r})}:null};
_.V.computeSubmitButton_=function(G,e,r){return G&&_.a(G,_.zM)?{buttonRenderer:Object.assign({},_.a(G,_.zM),{command:void 0,isDisabled:!this.formValid||e||r})}:null};
_.V.computeSubmitCommand_=function(G){return G||null};
_.V.onSubmit_=function(G){var e=this;G.stopPropagation();G.preventDefault();this.submitCommand_&&(G={},G.comment_text=this.titleValue,G.clip_external_video_id=this.videoId,G.clip_offset_ms=parseInt(this.start*1E3,10),G.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.zw(this.hostElement,[this.submitCommand_,G]).then(function(){e.set("isLoading_",!1)},function(){e.set("isLoading_",!1)}))};
_.V.playerAdStartHandler_=function(){_.Pi(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.V.playerAdEndHandler_=function(){_.Pi(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.V.onVideoProgress_=function(){var G=this;this.getPlayer().then(function(e){var r,Z=(e==null?void 0:(r=e.getPresentingPlayerType)==null?void 0:r.call(e))===2;G.isAdPlaying!==Z&&(Z?G.playerAdStartHandler_():G.playerAdEndHandler_())})};
m1.prototype.onEndValidChanged_=m1.prototype.onEndValidChanged_;m1.prototype.onStartValidChanged_=m1.prototype.onStartValidChanged_;m1.prototype.onTitleValidChanged_=m1.prototype.onTitleValidChanged_;m1.prototype.onEndChanged_=m1.prototype.onEndChanged_;m1.prototype.onStartChanged_=m1.prototype.onStartChanged_;m1.prototype.onTitleChanged_=m1.prototype.onTitleChanged_;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],m1.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.k(_.GJ.YtPlayerListenerBehavior),_.x("design:type",Object)],m1.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],m1.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],m1.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],m1.prototype,"data",void 0);_.B([_.n({value:""}),_.x("design:type",String)],m1.prototype,"titleValue",void 0);
_.B([_.n({value:!1}),_.x("design:type",Boolean)],m1.prototype,"titleValid",void 0);_.B([_.n({value:0}),_.x("design:type",Number)],m1.prototype,"start",void 0);_.B([_.n({value:!0}),_.x("design:type",Boolean)],m1.prototype,"startValid",void 0);_.B([_.n({value:0}),_.x("design:type",Number)],m1.prototype,"end",void 0);_.B([_.n({value:!0}),_.x("design:type",Boolean)],m1.prototype,"endValid",void 0);_.B([_.n({value:""}),_.x("design:type",String)],m1.prototype,"videoId",void 0);
_.B([_.n({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.x("design:type",Boolean)],m1.prototype,"formValid",void 0);_.B([_.n({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.x("design:type",Object)],m1.prototype,"submitButton_",void 0);_.B([_.n({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.x("design:type",Object)],m1.prototype,"submitCommand_",void 0);
_.B([_.n({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.x("design:type",Object)],m1.prototype,"cancelButton_",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],m1.prototype,"isLoading_",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],m1.prototype,"isAdPlaying",void 0);_.B([_.n({value:0}),_.x("design:type",Number)],m1.prototype,"returnTime",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],m1.prototype,"isAtLiveHead",void 0);
_.B([_.Om("title-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],m1.prototype,"onTitleChanged_",null);_.B([_.Om("start-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],m1.prototype,"onStartChanged_",null);_.B([_.Om("end-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],m1.prototype,"onEndChanged_",null);
_.B([_.Om("title-valid-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],m1.prototype,"onTitleValidChanged_",null);_.B([_.Om("start-valid-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],m1.prototype,"onStartValidChanged_",null);_.B([_.Om("end-valid-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],m1.prototype,"onEndValidChanged_",null);
_.B([_.aR({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],m1);
_.A(m1,"yt-clip-creation-renderer",function(){if(Suz===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;$az===void 0&&($az=document.createElement("template"));var Z=$az;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Suz=G}G=Suz;return G},{mode:2});var cC=function(){return _.m.apply(this,arguments)||this};
_.K(cC,_.m);cC.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"}}}};
cC.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(G){return G.hasOwnProperty("clipCreationRenderer")})&&_.Pi(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
cC.prototype.onPanelContentVisibleChanged=cC.prototype.onPanelContentVisibleChanged;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],cC.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],cC.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.xB.YtVisibilityBehavior),_.x("design:type",Object)],cC.prototype,"ytVisibilityBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],cC.prototype,"ytdReduxBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],cC.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],cC.prototype,"panelContentVisible",void 0);_.B([_.Me("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cC.prototype,"onPanelContentVisibleChanged",null);_.B([_.c({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],cC);
_.A(cC,"ytd-clip-section-renderer",function(){if(iFZ!==void 0)return iFZ;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return iFZ=G},{mode:1});var jct;var YI=function(){return _.m.apply(this,arguments)||this};
_.K(YI,_.m);_.V=YI.prototype;
_.V.onKeyDown=function(G){if(this.snippetElements.length!==0&&(G=G.keyCode,G===38||G===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);G===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.j0(this.highlightedIndex,-1,this.snippetElements.length);G=this.snippetElements.length;var e=this.highlightedIndex%G;this.highlightedIndex=e*G<0?e+G:e;G=this.snippetElements[this.highlightedIndex];this.highlightSnippet(G);this.ensureVisible(G)}};
_.V.onKeyUp=function(G){var e=this;l2t(G)&&(G.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.A0.cancelJob(this.inputTimerId),this.inputTimerId=_.A0.addLowPriorityJob(function(){e.typedValue&&(e.fetchSnippets(e.typedValue),e.logInputGesture(e.data))},1E3))};
_.V.onClick=function(G){(G=_.of3(G.target,null,"snippet-item"))&&this.selectSnippet(G)};
_.V.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.V.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.V.ready=function(){var G=this;this.inputElement.addEventListener("focus",function(){G.snippetsWrapper.style.removeProperty("display")})};
_.V.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.V.getSourceTimelines=function(){if(!this.data)return[];var G=[];if(this.data.searchInVideoSources)for(var e=_.h(this.data.searchInVideoSources),r=e.next();!r.done;r=e.next())r=r.value,r==="SEARCH_IN_VIDEO_SOURCE_ASR"?G.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):r==="SEARCH_IN_VIDEO_SOURCE_OCR"&&G.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return G};
_.V.fetchSnippets=function(G){var e=_.Pi(this.hostElement,"yt-get-current-video-id-action")[0],r=this.getSourceTimelines();G={getSearchInVideoCommand:{externalVideoId:e,query:G!=null?G:"",sourceTimelines:r},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.v_().resolve(_.$1).resolveCommand(G,{form:{element:this.hostElement}})};
_.V.filterSnippets=function(G,e){var r=this;if(e){this.filteredSnippets=(0,_.c2.unsafeClone)(G);var Z=RegExp(_.H7p(e),"i");this.filteredSnippets=this.filteredSnippets.filter(function(T){return Z.test(r.ytRendererBehavior.getSimpleString(T.snippet))});
G=_.h(this.filteredSnippets);for(var O=G.next();!O.done;O=G.next()){O=O.value;var M=this.ytRendererBehavior.getSimpleString(O.snippet);O.snippet={runs:[{text:M.substring(0,M.toLowerCase().indexOf(e))},{text:M.substring(M.toLowerCase().indexOf(e),M.toLowerCase().indexOf(e)+e.length),bold:!0},{text:M.substring(M.toLowerCase().indexOf(e)+e.length,M.length)}]}}}else this.filteredSnippets=G};
_.V.onUpdateSearchInVideoResults=function(G){if(!(this.snippets.length>0)){var e,r,Z;if((Z=(e=_.a(G,I2w))==null?void 0:(r=e.results)==null?void 0:r.length)!=null&&Z){var O;this.filteredSnippets=this.snippets=((O=_.a(G,I2w))==null?void 0:O.results).map(function(M){var T,E,b;return{startMs:M==null?void 0:(T=M.searchInVideoResultRenderer)==null?void 0:T.startMs,startTimeText:M==null?void 0:(E=M.searchInVideoResultRenderer)==null?void 0:E.startTimeText,snippet:M==null?void 0:(b=M.searchInVideoResultRenderer)==
null?void 0:b.snippet}})}}};
_.V.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};
_.V.highlightSnippet=function(G){G.classList.add("highlighted")};
_.V.removeSnippetHighlight=function(G){G.classList.remove("highlighted")};
_.V.selectSnippet=function(G){this.typedValue=String(G.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(G);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.V.ensureVisible=function(G){var e=this.snippetsWrapper.scrollTop,r=e+this.snippetsWrapper.clientHeight,Z=G.offsetTop-this.snippetsWrapper.offsetTop;G=Z+G.clientHeight;Z<e?this.snippetsWrapper.scrollTop-=e-Z:G>r&&(this.snippetsWrapper.scrollTop+=G-r)};
_.V.seekPlayer=function(G){var e,r;return _.D(function(Z){if(Z.nextAddress==1){if(!G)return Z.jumpTo(0);e=Number(G.dataset.startOffset);return Z.yield(_.Je().getPlayerPromise(),3)}r=Z.yieldResult;r.seekTo(e/1E3,!0);r.wakeUpControls();_.HL(Z)})};
_.V.logInputGesture=function(G){var e=_.l4();e&&(G==null?0:G.trackingParams)&&_.mC(e,_.b1(G.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.V.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eG("typed-value-changed",this.typedValue))};
_.V.updateTypedValueFromBinding=function(G){this.typedValue=G.currentTarget.value};
YI.prototype.typedValueChangedForBinding=YI.prototype.typedValueChangedForBinding;YI.prototype.dataChanged=YI.prototype.dataChanged;YI.prototype.panelContentVisibleChanged=YI.prototype.panelContentVisibleChanged;YI.prototype.onClick=YI.prototype.onClick;YI.prototype.onKeyUp=YI.prototype.onKeyUp;YI.prototype.onKeyDown=YI.prototype.onKeyDown;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],YI.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],YI.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],YI.prototype,"data",void 0);_.B([_.n({value:[]}),_.x("design:type",Array)],YI.prototype,"snippets",void 0);_.B([_.n({value:[]}),_.x("design:type",Array)],YI.prototype,"filteredSnippets",void 0);_.B([_.n({value:[]}),_.x("design:type",Array)],YI.prototype,"snippetElements",void 0);
_.B([_.hs("#siv-input"),_.x("design:type",HTMLElement)],YI.prototype,"inputElement",void 0);_.B([_.hs("#siv-snippets-wrapper"),_.x("design:type",HTMLElement)],YI.prototype,"snippetsWrapper",void 0);_.B([_.n(),_.x("design:type",String)],YI.prototype,"typedValue",void 0);_.B([_.n({value:-1}),_.x("design:type",Number)],YI.prototype,"highlightedIndex",void 0);_.B([_.Om("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[_.t8]),_.x("design:returntype")],YI.prototype,"onKeyDown",null);
_.B([_.Om("keyup"),_.x("design:type",Function),_.x("design:paramtypes",[_.t8]),_.x("design:returntype")],YI.prototype,"onKeyUp",null);_.B([_.Om("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],YI.prototype,"onClick",null);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],YI.prototype,"panelContentVisible",void 0);
_.B([_.Me("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YI.prototype,"panelContentVisibleChanged",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YI.prototype,"dataChanged",null);_.B([_.Me("typedValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YI.prototype,"typedValueChangedForBinding",null);
_.B([_.c({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],YI);
_.A(YI,"ytd-search-in-video-renderer",function(){if(jct!==void 0)return jct;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return jct=G},{mode:1});var aGv;var yg=function(){return _.m.apply(this,arguments)||this};
_.K(yg,_.m);yg.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
yg.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]]"}}}}}};
yg.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var G,e,r,Z,O=(e=_.a((G=this.data)==null?void 0:G.onClickCommand,_.R9P))==null?void 0:(r=e.item)==null?void 0:(Z=r.notificationTextRenderer)==null?void 0:Z.successResponseText;O&&_.tns(this.hostElement,O)}};
_.iY.Object.defineProperties(yg.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var G,e,r,Z;return this.isProductPlaceholder&&((G=this.data)==null?void 0:(e=G.hiddenProductOptions)==null?void 0:e.showDropCountdown)&&!!((r=this.data)==null?0:(Z=r.hiddenProductOptions)==null?0:Z.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var G;return!this.isProductPlaceholder&&!((G=this.data)==null?0:G.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var G,e;return!((G=this.data)==null?0:G.priceReplacementText)&&!((e=this.data)==null||!e.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],yg.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],yg.prototype,"componentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],yg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],yg.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0}),_.d("isProductPlaceholder"),_.x("design:type",Object),_.x("design:paramtypes",[])],yg.prototype,"useCenterLayoutContainer",null);_.B([_.n({computed:"computeButtonOverride(data)"}),_.x("design:type",Object)],yg.prototype,"buttonOverride",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],yg.prototype,"isProductPlaceholder",null);
_.B([_.d("isProductPlaceholder"),_.x("design:type",Object),_.x("design:paramtypes",[])],yg.prototype,"showDropCountdown",null);_.B([_.d("isProductPlaceholder","data"),_.x("design:type",Object),_.x("design:paramtypes",[])],yg.prototype,"showBrandName",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],yg.prototype,"showPriceReplacementText",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],yg.prototype,"showPrice",null);
_.B([_.d("isProductPlaceholder"),_.x("design:type",Object),_.x("design:paramtypes",[])],yg.prototype,"showMetadata",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],yg);
_.A(yg,"ytd-product-list-item-renderer",function(){if(aGv!==void 0)return aGv;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return aGv=G},{mode:1});var XGZ;var AF=function(){return _.m.apply(this,arguments)||this};
_.K(AF,_.m);AF.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
AF.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
AF.prototype.panelContentVisibleChanged=function(){var G=this,e;return _.D(function(r){if(r.nextAddress==1)return G.playerApi?r.jumpTo(2):r.yield(_.Je().getPlayerPromise(),3);r.nextAddress!=2&&(G.playerApi=r.yieldResult);(e=G.playerApi)==null||e.productsInVideoVisibilityUpdated(!!G.panelContentVisible);_.HL(r)})};
AF.prototype.panelContentVisibleChanged=AF.prototype.panelContentVisibleChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],AF.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],AF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],AF.prototype,"panelContentVisible",void 0);_.B([_.n(),_.x("design:type",Object)],AF.prototype,"data",void 0);
_.B([_.Me("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],AF.prototype,"panelContentVisibleChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],AF);
_.A(AF,"ytd-product-list-renderer",function(){if(XGZ!==void 0)return XGZ;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return XGZ=G},{mode:1});var KBX;var F7=function(){var G=_.m.apply(this,arguments)||this;G.hideTimestamps=!!_.SF("hide-transcript-timestamps");G.currentCueIndex=-1;G.flatCues=[];G.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};G.TEST_ONLY={getFlatCues:function(){return G.flatCues}};
return G};
_.K(F7,_.m);_.V=F7.prototype;_.V.hideTimestampsChanged=function(){_.$N("hide-transcript-timestamps",this.hideTimestamps)};
_.V.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.V.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.V.dataChanged=function(){var G;if((G=this.data)!=null&&G.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;G=_.h(this.data.cueGroups);for(var e=G.next();!e.done;e=G.next()){e=_.h(_.a(e.value,pOZ).cues);for(var r=e.next();!r.done;r=e.next())this.flatCues.push(Number(_.a(r.value,CWt).startOffsetMs))}}};
_.V.onYtPlayerTimeChanged=function(G){if(!(G<0)){for(var e=this.currentCueIndex,r=e;;){var Z=r>=0?this.flatCues[r]/1E3:-1;if(G+.5<Z)--r;else if(Z=r+1<this.flatCues.length?this.flatCues[r+1]/1E3:Infinity,G+.5>Z)r+=1;else break}r!==e&&(e>=0&&((G=this.getCueElement(e))&&G.classList.remove("active"),(e=this.getCueGroupElement(e))&&e.classList.remove("active")),(e=this.getCueElement(r))&&e.classList.add("active"),(e=this.getCueGroupElement(r))&&e.classList.add("active"),this.currentCueIndex=r,this.isHovered||
this.scrollElementToTop(r))}};
_.V.scrollElementToTop=function(G){G=this.getCueElement(G>=3?G-3:0);this.hostElement.scrollTop=Math.min(G.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.V.getCueElement=function(G){return _.z1(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[G]+'"]')};
_.V.getCueGroupElement=function(G){return(G=this.getCueElement(G))&&G.parentElement?G.parentElement.parentElement:null};
_.V.onTap=function(G){var e=_.mk(G);G.target.classList.contains("cue")&&this.seekCueElement(e)};
_.V.onKeyPress=function(G){G.keyCode==13&&(G=_.of3(G.target,null,"cue"))&&this.seekCueElement(G)};
_.V.seekCueElement=function(G){G=Number(G.getAttribute("start-offset"));_.Pi(this.hostElement,"yt-transcript-player-seek",[G/1E3])};
_.V.onMouseEnter=function(){this.isHovered=!0};
_.V.onMouseLeave=function(){this.isHovered=!1};
F7.prototype.onMouseLeave=F7.prototype.onMouseLeave;F7.prototype.onMouseEnter=F7.prototype.onMouseEnter;F7.prototype.onKeyPress=F7.prototype.onKeyPress;F7.prototype.onTap=F7.prototype.onTap;F7.prototype.dataChanged=F7.prototype.dataChanged;F7.prototype.hideTimestampsChanged=F7.prototype.hideTimestampsChanged;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],F7.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],F7.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],F7.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],F7.prototype,"hideTimestamps",void 0);_.B([_.n(),_.x("design:type",Boolean)],F7.prototype,"isHovered",void 0);_.B([_.Me("hideTimestamps"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],F7.prototype,"hideTimestampsChanged",null);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],F7.prototype,"dataChanged",null);_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],F7.prototype,"onTap",null);_.B([_.Om("keypress"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],F7.prototype,"onKeyPress",null);
_.B([_.Om("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],F7.prototype,"onMouseEnter",null);_.B([_.Om("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],F7.prototype,"onMouseLeave",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],F7);
_.A(F7,"ytd-transcript-body-renderer",function(){if(KBX!==void 0)return KBX;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return KBX=G},{mode:1});var fG_;var JF=function(){var G=_.m.apply(this,arguments)||this;G.darkerPanels=_.R("web_watch_darker_panels");return G};
_.K(JF,_.m);JF.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],JF.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],JF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],JF.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],JF.prototype,"darkerPanels",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],JF);
_.A(JF,"ytd-transcript-footer-renderer",function(){if(fG_!==void 0)return fG_;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return fG_=G},{mode:1});var kcy;var HFw;var BC=function(){var G=_.m.apply(this,arguments)||this;G.systemIcons=_.R("kevlar_system_icons");G.showClearButton=!1;return G};
_.K(BC,_.m);_.V=BC.prototype;_.V.handleInput=function(G){var e=this;G.target.value.length?_.sm(this,"ytdTranscriptSearchBoxSearch",function(){e.emitSearchEvent(G)},500):(_.KAU(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=G.target.value.length>0};
_.V.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.V.handleClick=function(){var G,e=(G=this.data)==null?void 0:G.trackingParams;e&&_.ke(_.h_(),e)};
_.V.handleClear=function(){_.KAU(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var G,e,r=(e=_.a((G=this.data)==null?void 0:G.clearButton,_.zM))==null?void 0:e.trackingParams;r&&_.ke(_.h_(),r);this.clear()};
_.V.emitSearchEvent=function(G){_.xy(this.hostElement,"yt-transcript-search-box-search",{query:G.target.value});var e,r;(G=(r=_.a((e=this.data)==null?void 0:e.searchButton,_.zM))==null?void 0:r.trackingParams)&&_.ke(_.h_(),G)};
_.V.emitClearEvent=function(){_.xy(this.hostElement,"yt-transcript-search-box-clear")};
_.iY.Object.defineProperties(BC.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.z1(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],BC.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],BC.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],BC.prototype,"systemIcons",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],BC);
_.A(BC,"ytd-transcript-search-box-renderer",function(){if(HFw!==void 0)return HFw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return HFw=G},{mode:1});var daj;var o2t;var xI=function(){return _.m.apply(this,arguments)||this};
_.K(xI,_.m);xI.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var G,e;this.sectionHeaderAriaLabel=(G=this.data)==null?void 0:(e=G.accessibility)==null?void 0:e.accessibilityData.label}};
xI.prototype.fireSelectedEvent=function(G){_.xy(this.hostElement,"ytd-transcript-section-header",{startMs:G})};
xI.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
xI.prototype.handleKeyPress=function(G){this.data&&G.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.iY.Object.defineProperties(xI.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var G,e;return(e=(G=this.data)==null?void 0:G.enableTappableTranscriptHeader)!=null?e:!1}}});
xI.prototype.dataChanged=xI.prototype.dataChanged;_.B([_.n(),_.x("design:type",Object)],xI.prototype,"data",void 0);_.B([_.n(),_.x("design:type",String)],xI.prototype,"sectionHeaderAriaLabel",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],xI.prototype,"enableTappableTranscriptHeader",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xI.prototype,"dataChanged",null);
_.B([_.c({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],xI);
_.A(xI,"ytd-transcript-section-header-renderer",function(){if(o2t!==void 0)return o2t;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return o2t=G},{mode:1});var sct;var Qcq;var PC=function(){var G=_.m.apply(this,arguments)||this;G.isEditMode=!1;G.touchCaptionsEnabled=!1;G.deleteCaptionCorrectionPopupCommand=null;G.voteCaptionCorrectionPopupCommand=null;G.roundedContainer=!0;G.mouseOver=!1;G.textChanged=!1;G.messages={suggest_correction:_.OK("suggest_correction",void 0,"Edit caption"),suggested_caption:_.OK("suggested_caption",void 0,"Suggested caption"),submit_correction:_.OK("submit_correction",void 0,"Submit for review"),cancel_correction:_.OK("cancel_correction",
void 0,"Cancel"),replay_segment:_.OK("replay_segment",void 0,"Re-play segment"),delete_correction:_.OK("delete_correction",void 0,"Delete correction")};G.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return G};
_.K(PC,_.m);_.V=PC.prototype;_.V.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)};
_.V.handleDelete=function(G){if(this.deleteCaptionCorrectionPopupCommand){var e=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);e&&this.ytdOpenPopupBehavior.openPopup(e);G.stopPropagation()}};
_.V.handleSubmit=function(G){if(this.data&&this.data.submitCaptionCorrectionCommand&&(G.stopPropagation(),this.textChanged)){var e;G=(e=_.a(this.data.submitCaptionCorrectionCommand,_.H0S))==null?void 0:e.params;e=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:G,correctionText:String(this.ironTextAreaElement.value),originalText:_.mG(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(e);this.isEditMode=!1}};
_.V.handleUpdateSegmentText=function(G){(G=_.a(G,Nwt))&&G.targetId&&this.data&&G.targetId===this.data.targetId&&(G.userCorrection&&(this.editedText=G.userCorrection),G.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.mG(this.data.snippet)),G.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=G.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=G.voteCaptionCorrectionPopupCommand?
G.voteCaptionCorrectionPopupCommand:null,G.accessibility&&(this.segmentAriaLabel=G.accessibility.accessibilityData.label))};
_.V.handleCancel=function(G){this.isEditMode=!1;G.stopPropagation();this.logClientVe(159409)};
_.V.handleEditSegmentCommand=function(G){(G=_.a(G,WVz))&&G.targetId&&this.data&&G.targetId===this.data.targetId&&this.handleEdit()};
_.V.handleEditButtonClick=function(G){this.data&&(this.handleEdit(),G.stopPropagation())};
_.V.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var G;(G=this.ironTextAreaElement.textarea)==null||G.focus();this.logClientVe(159407)}};
_.V.handleMouseEnter=function(){this.mouseOver=!0};
_.V.handleMouseLeave=function(){this.mouseOver=!1};
_.V.handleReplay=function(G){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),G.stopPropagation(),this.logClientVe(159408))};
_.V.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()))};
_.V.handleKeypress=function(G){this.data&&(this.isEditMode?G.stopPropagation():this.isEnterPress(G)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(G)&&this.logClientVe(138758))};
_.V.handleTextboxClick=function(G){G.stopPropagation()};
_.V.handleTextboxKeydown=function(G){this.isControlEnterPress(G)?this.handleSubmit(G):G.key==="Escape"&&this.handleCancel(G)};
_.V.handleTextboxKeyup=function(){this.textChanged=_.mG(this.latestText)!==String(this.ironTextAreaElement.value)};
_.V.fireSelectedEvent=function(G){_.xy(this.hostElement,"yt-transcript-segment-selected",{startMs:G})};
_.V.fireReplayEvent=function(G,e){_.xy(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(G-100,0),endMs:e})};
_.V.fireEditEvent=function(G,e){_.xy(this.hostElement,"yt-transcript-segment-edit",{startMs:G,endMs:e})};
_.V.isEnterPress=function(G){return G.key==="Enter"||G.code==="Enter"||G.code==="NumpadEnter"||G.keyCode===13?!0:!1};
_.V.isControlEnterPress=function(G){var e=G.key==="Enter"||G.code==="Enter"||G.code==="NumpadEnter"||G.keyCode===13;return(G.ctrlKey||G.metaKey)&&e};
_.V.isCopyPress=function(G){var e=G.ctrlKey;return G.key==="c"&&e};
_.V.logClick=function(){var G,e=(G=this.data)==null?void 0:G.trackingParams;e&&_.ke(_.h_(),e)};
_.V.logClientVe=function(G){_.fE(_.h_(),_.L1(G))};
_.iY.Object.defineProperties(PC.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}}});
PC.prototype.handleMouseLeave=PC.prototype.handleMouseLeave;PC.prototype.handleMouseEnter=PC.prototype.handleMouseEnter;PC.prototype.dataChanged=PC.prototype.dataChanged;_.B([_.k(_.gF.YtActionHandlerBehavior),_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],PC.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h5),_.x("design:type",Object)],PC.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],PC.prototype,"ytRendererBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],PC.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],PC.prototype,"isEditMode",void 0);_.B([_.n(),_.x("design:type",Object)],PC.prototype,"touchCaptionsEnabled",void 0);_.B([_.n(),_.x("design:type",Object)],PC.prototype,"editedText",void 0);_.B([_.n(),_.x("design:type",Object)],PC.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.B([_.n(),_.x("design:type",Object)],PC.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.B([_.n(),_.x("design:type",String)],PC.prototype,"segmentAriaLabel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],PC.prototype,"roundedContainer",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],PC.prototype,"mouseOver",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],PC.prototype,"textChanged",void 0);_.B([_.n(),_.x("design:type",Object)],PC.prototype,"messages",void 0);
_.B([_.hs("#suggestion"),_.x("design:type",Object)],PC.prototype,"ironTextAreaElement",void 0);_.B([_.d("data","editedText"),_.x("design:type",Object),_.x("design:paramtypes",[])],PC.prototype,"latestText",null);_.B([_.d("touchCaptionsEnabled","isEditMode"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],PC.prototype,"enableEditButton",null);
_.B([_.d("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],PC.prototype,"enableUndoButton",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],PC.prototype,"dataChanged",null);_.B([_.Om("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],PC.prototype,"handleMouseEnter",null);
_.B([_.Om("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],PC.prototype,"handleMouseLeave",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],PC);
_.A(PC,"ytd-transcript-segment-renderer",function(){if(Qcq!==void 0)return Qcq;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Qcq=G},{mode:1});var UX=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};G.isError=!1;G.darkerPanels=_.R("web_watch_darker_panels");G.useParentMaxHeight=_.R("web_watch_transscript_use_parent_max_height");G.segmentOffsets=[];G.segmentIndex=-1;return G};
_.K(UX,_.m);_.V=UX.prototype;_.V.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"}}}}};
_.V.segmentsChanged=function(){this.updateOffsets()};
_.V.onYtPlayerTimeChanged=function(G){for(var e=this.segmentIndex,r=e;;){if(r>=0){var Z=this.segmentOffsets[r].start;var O=this.segmentOffsets[r].isAutoScrollable}else Z=-1,O=!0;var M=G+.5;if(!O){Z=r+1<this.segmentOffsets.length?this.segmentOffsets[r+1].start:Infinity;if(M>=Z){r+=1;continue}r=-1;break}if(M<Z)Z=r-1>=0&&this.segmentOffsets[r-1].isAutoScrollable,O=r===0||Z?1:2,r-=O;else if(O=r+1<this.segmentOffsets.length&&this.segmentOffsets[r+1].isAutoScrollable?1:2,Z=r+O<this.segmentOffsets.length?
this.segmentOffsets[r+O].start:Infinity,M>Z)r+=O;else{if(r<0)break;r<this.segmentOffsets.length&&M>this.segmentOffsets[r].end&&(r=-1);break}}if(e!==r){if(e>=0){var T;(T=this.getSegmentElement(e))==null||T.classList.remove("active")}this.segmentIndex=r;if(!(r<0)){var E;(E=this.getSegmentElement(r))==null||E.classList.add("active");this.isHovered||this.scrollElementToTop(r)}}};
_.V.handleSegmentEdit=function(G){G.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=G.target,_.Pi(this.hostElement,"yt-transcript-player-edit",[G.detail.startMs/1E3,G.detail.endMs/1E3]))};
_.V.handleSegmentSelected=function(G){_.Pi(this.hostElement,"yt-transcript-player-seek",[G.detail.startMs/1E3])};
_.V.handleSegmentReplay=function(G){_.Pi(this.hostElement,"yt-transcript-player-replay",[G.detail.startMs/1E3,G.detail.endMs/1E3])};
_.V.handleSectionHeaderSelected=function(G){_.Pi(this.hostElement,"yt-transcript-player-seek",[G.detail.startMs/1E3])};
_.V.onMouseEnter=function(){this.isHovered=!0};
_.V.onMouseLeave=function(){this.isHovered=!1};
_.V.onRetryButtonClick=function(){_.xy(this.hostElement,"transcript-retry-button-click")};
_.V.getSegmentElement=function(G){return _.z1(this.hostElement).querySelector(":nth-child("+(G+1)+")")};
_.V.scrollElementToTop=function(G){G=this.getSegmentElement(G>=2?G-2:0);this.hostElement.scrollTop=Math.min(G.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.V.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(G){var e,r=(e=G.transcriptSegmentRenderer)!=null?e:G.transcriptSectionHeaderRenderer;return{start:Number(r.startMs)/1E3,end:Number(r.endMs)/1E3,isAutoScrollable:G.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.V.clearHighlightedSegments=function(){var G=_.z1(this.hostElement);G=_.h(G.querySelectorAll("ytd-transcript-segment-renderer"));for(var e=G.next();!e.done;e=G.next())e.value.classList.remove("active")};
_.iY.Object.defineProperties(UX.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var G,e;return((G=this.data)==null?void 0:G.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}}});
UX.prototype.onMouseLeave=UX.prototype.onMouseLeave;UX.prototype.onMouseEnter=UX.prototype.onMouseEnter;UX.prototype.handleSectionHeaderSelected=UX.prototype.handleSectionHeaderSelected;UX.prototype.handleSegmentReplay=UX.prototype.handleSegmentReplay;UX.prototype.handleSegmentSelected=UX.prototype.handleSegmentSelected;UX.prototype.handleSegmentEdit=UX.prototype.handleSegmentEdit;UX.prototype.segmentsChanged=UX.prototype.segmentsChanged;
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],UX.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],UX.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],UX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],UX.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],UX.prototype,"isError",void 0);
_.B([_.n(),_.x("design:type",Object)],UX.prototype,"noResultLabel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],UX.prototype,"darkerPanels",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],UX.prototype,"useParentMaxHeight",void 0);_.B([_.d("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],UX.prototype,"segments",null);
_.B([_.d("segments","noResultLabel"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],UX.prototype,"displayNoResults",null);_.B([_.Me("segments"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UX.prototype,"segmentsChanged",null);_.B([_.Om("yt-transcript-segment-edit"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],UX.prototype,"handleSegmentEdit",null);
_.B([_.Om("yt-transcript-segment-selected"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],UX.prototype,"handleSegmentSelected",null);_.B([_.Om("yt-transcript-segment-replay"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],UX.prototype,"handleSegmentReplay",null);
_.B([_.Om("ytd-transcript-section-header"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],UX.prototype,"handleSectionHeaderSelected",null);_.B([_.Om("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UX.prototype,"onMouseEnter",null);_.B([_.Om("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UX.prototype,"onMouseLeave",null);
_.B([_.c({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],UX);
_.A(UX,"ytd-transcript-segment-list-renderer",function(){if(sct!==void 0)return sct;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return sct=G},{mode:1});var zL=function(){var G=_.m.apply(this,arguments)||this;G.hideTimestamps=!!_.SF("hide-transcript-timestamps");G.isLoadingTranscripts=!1;G.darkerPanels=_.R("web_watch_darker_panels");G.isError=!1;G.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return G};
_.K(zL,_.m);_.V=zL.prototype;_.V.headerChanged=function(){var G,e;this.baseGetTranscriptsCommand=(e=_.a((G=this.data)==null?void 0:G.header,LVy))==null?void 0:e.onTextChangeCommand};
_.V.bodyChanged=function(){var G=this.getBodyRenderer();G&&(G.initialSegments&&(this.initialTranscriptsRenderer=G),G.noResultLabel&&(this.noResultLabel=G.noResultLabel),G.retryLabel&&(this.retryLabel=G.retryLabel))};
_.V.detached=function(){this.clearSearchBoxText()};
_.V.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.V.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"}}}};
_.V.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.V.fireSearch=function(G){var e=this;if(G){var r=G.detail.query;if(this.baseGetTranscriptsCommand){var Z;G=(Z=_.a(this.baseGetTranscriptsCommand,_.fOw))==null?void 0:Z.params;var O;Z=_.a((O=this.data)==null?void 0:O.footer,uQy);var M;if((O=(M=_.a(Z==null?void 0:Z.languageMenu,UIw))==null?void 0:M.subMenuItems)&&O.length>0&&(M=O.find(function(b){return b.selected}))){var T,E;
G=(T=M.continuation)==null?void 0:(E=T.reloadContinuationData)==null?void 0:E.continuation}T=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:G,searchQuery:r}});this.ytComponentBehavior.resolveCommand(T,{commandController:{onServerError:function(){e.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});$IX(this.ytContinuationHandlerBehavior,function(){return r===e.getCurrentSearchBoxText()})}}};
_.V.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.V.onRetryButtonClick=function(){this.isError=!1;var G={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:G}))};
_.V.hideTimestampsChanged=function(){_.$N("hide-transcript-timestamps",this.hideTimestamps)};
_.V.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.V.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.V.handleSignalActionCopyTranscript=function(){var G=this,e=this.getBodyRenderer();e&&(e=((e==null?void 0:e.searchResultSegments)||(e==null?void 0:e.initialSegments)||[]).map(function(r){return _.a(r,eNj)}).filter(function(r){return!!r}).map(function(r){return{snippet:r.snippet||{runs:[{text:""}]},
startTimeText:r.startTimeText||{simpleText:""}}}).map(function(r){var Z=(r.snippet.runs||[]).reduce(function(O,M){return O+M.text},"");
return G.hideTimestamps?Z:r.startTimeText.simpleText+" "+Z}).join("\n"),this.copyToClipboard(e))};
_.V.copyToClipboard=function(G){navigator.clipboard&&navigator.clipboard.writeText(G)};
_.V.getCurrentSearchBoxText=function(){var G;return(G=this.searchBox)==null?void 0:G.value};
_.V.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.V.getBodyRenderer=function(){var G;return _.a((G=this.data)==null?void 0:G.body,Gbt)};
_.V.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.iY.Object.defineProperties(zL.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.z1(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
zL.prototype.hideTimestampsChanged=zL.prototype.hideTimestampsChanged;zL.prototype.searchCleared=zL.prototype.searchCleared;zL.prototype.fireSearch=zL.prototype.fireSearch;zL.prototype.onReloadContinuationFinish=zL.prototype.onReloadContinuationFinish;zL.prototype.bodyChanged=zL.prototype.bodyChanged;zL.prototype.headerChanged=zL.prototype.headerChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],zL.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],zL.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],zL.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.eP),_.x("design:type",Object)],zL.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],zL.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],zL.prototype,"hideTimestamps",void 0);
_.B([_.n(),_.x("design:type",Object)],zL.prototype,"isLoadingTranscripts",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],zL.prototype,"darkerPanels",void 0);_.B([_.n(),_.x("design:type",Object)],zL.prototype,"isError",void 0);_.B([_.Me("data.header"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zL.prototype,"headerChanged",null);
_.B([_.iD("data.body"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zL.prototype,"bodyChanged",null);_.B([_.Om("yt-reload-continuation-finish"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zL.prototype,"onReloadContinuationFinish",null);_.B([_.Om("yt-transcript-search-box-search"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],zL.prototype,"fireSearch",null);
_.B([_.Om("yt-transcript-search-box-clear"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zL.prototype,"searchCleared",null);_.B([_.Me("hideTimestamps"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zL.prototype,"hideTimestampsChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],zL);
_.A(zL,"ytd-transcript-search-panel-renderer",function(){if(daj!==void 0)return daj;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return daj=G},{mode:1});var WC=function(){var G=_.m.apply(this,arguments)||this;G.player=null;G.playerPollJobId=0;return G};
_.K(WC,_.m);_.V=WC.prototype;_.V.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.V.onLoadReloadContinuation=function(G){_.R("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:G.target.data.continuation}}):(G={clickTrackingParams:G.target.data.clickTrackingParams,getTranscriptEndpoint:{params:G.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.v_().resolve(_.$1).resolveCommand(G,{form:{element:this.hostElement}}))};
_.V.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"}}}};
_.V.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.V.attached=function(){this.updatePlayerListening()};
_.V.detached=function(){this.updatePlayerListening()};
_.V.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.V.startPlayerListening=function(){var G=this,e;return _.D(function(r){if(r.nextAddress==1)return(e=_.Ff())?r.yield(e.getPlayerPromise(),2):r.return();G.player=r.yieldResult;G.playerPollJobId=_.A0.addLowPriorityJob(function(){G.getPlayerVideoProgress()},1E3);
G.player.addEventListener("onCueRangeEnter",function(Z){G.onCueRangeEnter(Z)});
G.player.addEventListener("onCueRangeExit",function(Z){G.onCueRangeExit(Z)});
G.player.addEventListener("onStateChange",function(Z){G.onPlayerStateChange(Z)});
G.player.addEventListener("SEEK_TO",function(Z){G.onPlayerSeek(Z)});
_.HL(r)})};
_.V.getPlayerVideoProgress=function(){var G=this;_.A0.cancelJob(this.playerPollJobId);if(this.player){var e=this.player.getCurrentTime();_.Pi(this.hostElement,"yt-player-time-changed",[e])}this.playerPollJobId=_.A0.addLowPriorityJob(function(){G.getPlayerVideoProgress()},1E3)};
_.V.stopPlayerListening=function(){this.player=null;_.A0.cancelJob(this.playerPollJobId)};
_.V.onPlayerStateChange=function(G){G===2&&this.removePendingCue()};
_.V.onPlayerSeek=function(G){var e;if(e=this.pendingReplayCueId)e=this.pendingReplayCueId,e=G===(_.R("web_transcript_cue_id_killswitch")?Number(e):Number(e.split("_")[1]));e||this.removePendingCue()};
_.V.onCueRangeEnter=function(G){pp_(G)&&(this.pendingReplayCueId=G)};
_.V.onCueRangeExit=function(G){pp_(G)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.V.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.V.onYtTranscriptPlayerSeek=function(G){this.player&&this.player.seekTo(G,!0)};
_.V.onYtTranscriptPlayerReplay=function(G,e){this.player&&(this.player.addCueRange(IDy(G),G,e),this.player.seekTo(G,!0),this.player.playVideo())};
_.V.onYtTranscriptPlayerEdit=function(G,e){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(IDy(G),G,e),this.player.seekTo(G,!0))};
WC.prototype.onLoadReloadContinuation=WC.prototype.onLoadReloadContinuation;WC.prototype.panelContentVisibleChanged=WC.prototype.panelContentVisibleChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],WC.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],WC.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],WC.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],WC.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],WC.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],WC.prototype,"panelContentVisible",void 0);_.B([_.Me("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WC.prototype,"panelContentVisibleChanged",null);
_.B([_.Om("yt-load-reload-continuation"),_.x("design:type",Function),_.x("design:paramtypes",[Object]),_.x("design:returntype")],WC.prototype,"onLoadReloadContinuation",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],WC);
_.A(WC,"ytd-transcript-renderer",function(){if(kcy!==void 0)return kcy;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return kcy=G},{mode:1});var IGk;var pGv;var Ny=function(){return _.m.apply(this,arguments)||this};
_.K(Ny,_.m);Ny.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.xy(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.Wi(this.hostElement,[this.data.clickCommand],this.hostElement))};
Ny.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.fv)()+_.Cn)+"px)"};
Ny.prototype.updateShouldHideFromBinding=function(G){this.shouldHide=G.detail.value};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Ny.prototype,"rendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Ny.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Boolean)],Ny.prototype,"shouldHide",void 0);_.B([_.c({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],Ny);
_.A(Ny,"ytd-ad-engagement-panel-banner-renderer",function(){if(pGv!==void 0)return pGv;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return pGv=G},{mode:_.Px("kevlar_poly_si_batch_j070")?1:2});var CAq;var Ls=function(){var G=_.m.apply(this,arguments)||this;G.buttonUpdate=_.R("web_modern_buttons");G.adsSemanticText=_.R("enable_ads_web_ep_buenos_aires_and_padding_fix");return G};
_.K(Ls,_.m);Ls.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.B([_.n(),_.x("design:type",Object)],Ls.prototype,"data",void 0);_.B([_.n({computed:"computeHideDefaultAdBadge(data)"}),_.x("design:type",Boolean)],Ls.prototype,"hideDefaultAdBadge",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Ls.prototype,"buttonUpdate",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Ls.prototype,"adsSemanticText",void 0);_.B([_.c({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],Ls);
_.A(Ls,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(CAq!==void 0)return CAq;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return CAq=G},{mode:1});var uF$;var GH=function(){var G=_.m.apply(this,arguments)||this;G.darkerPanels=_.R("web_watch_darker_panels");G.enableSqueezebackPanels=_.R("web_shorts_enable_squeezeback_panels");G.enableAnchoredPanel=_.R("desktop_shorts_v2_anchored_panel");G.headerClickListener=function(e){G.onHeaderClick(e)};
G.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return G};
_.K(GH,_.m);_.V=GH.prototype;_.V.computeAdsInfoButton=function(){if(_.R("web_modern_buttons")){var G,e;return(e=_.a((G=this.data)==null?void 0:G.subtitleComplex,n8$))==null?void 0:e.adInfoRenderer}};
_.V.updateHeaderClickListener=function(){var G,e,r;((G=this.data)==null?0:G.navigationEndpoint)||((e=this.data)==null?0:e.onClickCommand)||_.a((r=this.data)==null?void 0:r.visibilityButton,_.WV)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.V.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}}}}}};
_.V.collapsedChanged=function(){var G;(G=this.data)!=null&&G.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.R("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.V.focus=function(G){var e=this;this.titleElement&&_.A0.addJob(function(){_.Os(e.titleElement,G)},0,500)};
_.V.computeTitleAriaLabel=function(G){var e=[];if(G.title){var r,Z;e.push(this.ytRendererBehavior.getSimpleString(G.title)||((r=G.title.accessibility)==null?void 0:(Z=r.accessibilityData)==null?void 0:Z.label))}G.contextualInfo&&e.push(this.ytRendererBehavior.getSimpleString(G.contextualInfo));return e.join(" ")};
_.V.onHeaderClick=function(G){this.shouldTriggerHeaderClick(G)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.xy(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.Wi(this.hostElement,[this.data.onClickCommand],this.hostElement)):(G=this.getVisibilityToggleButton())&&G.click())};
_.V.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var G=_.a(this.data.visibilityButton,_.zM)||_.a(this.data.visibilityButton,_.WV);G&&this.ytRendererBehavior.logExplicitClick(G)}};
_.V.getVisibilityToggleButton=function(){var G=_.z1(this.hostElement).querySelector("#visibility-button").firstElementChild;return(G==null?void 0:G.is)==="ytd-toggle-button-renderer"?G:null};
_.V.shouldTriggerHeaderClick=function(G){return!_.mO(_.na(G),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.V.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(G){G=_.a(G,_.Ho_);this.targetId&&(G==null?void 0:G.targetId)===this.targetId&&(G=G.navigationButton)&&this.set("data.navigationButton",G)};
_.iY.Object.defineProperties(GH.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.R("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var G;return!!(((G=this.entity)==null?0:G.isActionButtonHidden)||this.hideActionButton)}}});
GH.prototype.collapsedChanged=GH.prototype.collapsedChanged;GH.prototype.updateHeaderClickListener=GH.prototype.updateHeaderClickListener;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],GH.prototype,"actionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],GH.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],GH.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.A5),_.x("design:type",Object)],GH.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],GH.prototype,"data",void 0);_.B([_.n(),_.x("design:type",String)],GH.prototype,"targetId",void 0);_.B([_.n(),_.x("design:type",Boolean)],GH.prototype,"collapsed",void 0);_.B([_.n(),_.x("design:type",Boolean)],GH.prototype,"hideActionButton",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],GH.prototype,"shortsPanel",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],GH.prototype,"liveChatEngagementPanel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],GH.prototype,"learningChatEngagementPanel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],GH.prototype,"darkerPanels",void 0);_.B([_.hs("#title"),_.x("design:type",HTMLElement)],GH.prototype,"titleElement",void 0);_.B([_.hs("#header"),_.x("design:type",HTMLElement)],GH.prototype,"headerElement",void 0);
_.B([_.n({computed:"computeAdsInfoButton(data)"}),_.x("design:type",Object)],GH.prototype,"adsInfoButton",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],GH.prototype,"enableSqueezebackPanels",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],GH.prototype,"enableAnchoredPanel",void 0);_.B([_.n({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(G,e){return _.e6(G.entities,"engagementPanelTitleHeaderEntity",e)}}),
_.x("design:type",Object)],GH.prototype,"entity",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("targetId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],GH.prototype,"adsSemanticText",null);_.B([_.Me("data","data.navigationEndpoint","data.onClickCommand"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],GH.prototype,"updateHeaderClickListener",null);
_.B([_.iD("collapsed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],GH.prototype,"collapsedChanged",null);_.B([_.d("entity","hideActionButton"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],GH.prototype,"isActionButtonHidden",null);_.B([_.c({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],GH);
_.A(GH,"ytd-engagement-panel-title-header-renderer",function(){if(uF$!==void 0)return uF$;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return uF$=G},{mode:1});var n2k;var ei=function(){return _.m.apply(this,arguments)||this};
_.K(ei,_.m);ei.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ei.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],ei.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ei.prototype,"data",void 0);_.B([_.c({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],ei);
_.A(ei,"ytd-macro-markers-info-item-renderer",function(){if(n2k!==void 0)return n2k;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return n2k=G},{mode:1});var maZ;var rV=function(G,e,r,Z,O,M){_.pB.call(this);var T=this;this.JSC$23085_containerElement=G;this.hostElement=e;this.supportedSyncItems=r;this.syncEntityKey=Z;this.options=O;this.renderLazyListItems=M;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;c0q(this);Yuy(this);this.JSC$23085_scrollAnimation=new _.rm(function(E){G.scrollTop=E});
_.Xx(this,this.JSC$23085_scrollAnimation);this.addOnDisposeCallback(function(){y0y(T,!1);T.activeItem&&T.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.K(rV,_.pB);var c0q=function(G){var e=_.IC(_.v_().resolve(_.YB),function(r){return r.entities.markersEngagementPanelSyncEntity||{}},function(r,Z){var O;
if(r[G.syncEntityKey]!==Z[G.syncEntityKey]&&((O=r[G.syncEntityKey])==null?void 0:O.activeItemIndex)!==void 0)if(Z=r[G.syncEntityKey].activeItemIndex,r=G.getItemByIndex(Z)){if(A0t(G,r),G.contentVisible)if(G.browsingMode){var M;((M=G.options)==null?void 0:M.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(M=FBZ(G),r.offsetTop<G.JSC$23085_containerElement.clientHeight+G.JSC$23085_containerElement.scrollTop&&M&&!G.activeItemBelowSyncPosition&&y0y(G,!1));J02(G)}else G.scrollToItem(r)}else _.FH(new _.Cr("Could not find "+
G.supportedSyncItems+" sync child to set active.",Z,G.JSC$23085_containerElement.querySelectorAll(G.supportedSyncItems).length))});
G.unsubscribeFromTimedMarkersListSyncEntity=e;G.addOnDisposeCallback(e);BLw(G)},BLw=function(G){var e=_.v_().resolve(_.YB);
e=_.qdy(e.getState(),G.syncEntityKey);(e==null?void 0:e.activeItemIndex)!==void 0&&(e=G.getItemByIndex(e.activeItemIndex))&&A0t(G,e)},Yuy=function(G){var e=new _.Zp(G.onScroll,50,G);
_.Xx(G,e);var r=function(){e.fire()};
G.JSC$23085_containerElement.addEventListener("scroll",r);G.addOnDisposeCallback(function(){G.JSC$23085_containerElement.removeEventListener("scroll",r)})};
rV.prototype.getItemByIndex=function(G){var e;(e=this.renderLazyListItems)==null||e.call(this,G);e=this.JSC$23085_containerElement.querySelectorAll(this.supportedSyncItems);if(e.length>G)return e[G]};
var A0t=function(G,e){G.activeItem&&G.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}}));G.activeItem=e};
rV.prototype.scrollToItem=function(G){G=this.getScrollPositionForItem(G);this.JSC$23085_containerElement.scrollTop!==G&&this.JSC$23085_scrollAnimation.start(this.JSC$23085_containerElement.scrollTop,G,300)};
rV.prototype.getScrollPositionForItem=function(G){if(this.JSC$23085_containerElement.querySelectorAll(this.supportedSyncItems)[0]===G)return 0;var e,r=((e=this.options)==null?0:e.percentOffset)?this.JSC$23085_containerElement.clientHeight*this.options.percentOffset:0;G=_.Jx(G).y+this.JSC$23085_containerElement.scrollTop-(_.Jx(this.JSC$23085_containerElement).y+r);return Math.max(0,Math.min(G,this.JSC$23085_containerElement.scrollHeight-this.JSC$23085_containerElement.offsetHeight))};
rV.prototype.onScroll=function(){this.activeItemBelowSyncPosition=FBZ(this);if(this.activeItem&&!this.JSC$23085_scrollAnimation.isAnimating()&&Math.abs(this.JSC$23085_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var G;switch((G=this.options)==null?void 0:G.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":xat(this,!PAX(this));J02(this);break;default:xat(this,!0)}}};
var xat=function(G,e){var r,Z;_.D(function(O){if(O.nextAddress==1){if(G.browsingMode)return O.return();G.browsingMode=!0;e&&G.hostElement.classList.add("browsing-mode");G.playerExitBrowsingModeListener=function(){y0y(G,!1)};
return O.yield(_.G_(),2)}r=O.yieldResult;(Z=r)==null||Z.addEventListener("SEEK_TO",G.playerExitBrowsingModeListener);_.HL(O)})},y0y=function(G,e){e=e===void 0?!0:e;
G.browsingMode&&(G.browsingMode=!1,G.hostElement.classList.remove("browsing-mode"),e&&G.scrollToItem(G.activeItem),Uay(G))},Uay=function(G){var e,r;
_.D(function(Z){if(Z.nextAddress==1)return G.playerExitBrowsingModeListener?Z.yield(_.G_(),3):Z.jumpTo(0);e=Z.yieldResult;(r=e)==null||r.removeEventListener("SEEK_TO",G.playerExitBrowsingModeListener);G.playerExitBrowsingModeListener=void 0;_.HL(Z)})},J02=function(G){var e;
((e=G.options)==null?void 0:e.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(PAX(G)?G.hostElement.classList.remove("browsing-mode"):G.activeItem&&G.hostElement.classList.add("browsing-mode"))},FBZ=function(G){if(!G.activeItem)return!1;
var e,r=((e=G.options)==null?0:e.percentOffset)?G.JSC$23085_containerElement.clientHeight*G.options.percentOffset:0;return G.activeItem.offsetTop>=G.JSC$23085_containerElement.scrollTop+r},PAX=function(G){if(!G.activeItem)return!1;
var e=G.activeItem.offsetTop+14<=G.JSC$23085_containerElement.scrollTop+G.JSC$23085_containerElement.clientHeight;return G.activeItem.offsetTop+G.activeItem.clientHeight-14>=G.JSC$23085_containerElement.scrollTop&&e};
rV.prototype.panelContentVisibleChanged=function(G){(this.contentVisible=G)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var zzt=function(G,e){G.syncEntityKey=e;var r;(r=G.unsubscribeFromTimedMarkersListSyncEntity)==null||r.call(G);c0q(G)},WBt=function(G,e){G.options=e};var Zj=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return G};
_.K(Zj,_.m);_.V=Zj.prototype;_.V.detached=function(){var G;(G=this.scrollController)==null||G.dispose();this.scrollController=void 0};
_.V.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"}}}};
_.V.dataChanged=function(){var G=this;_.DE(this,function(){if(G.scrollController){var e;(e=G.scrollController)==null||y0y(e,!1);var r,Z,O;(Z=G.scrollController)==null||zzt(Z,(O=(r=G.data)==null?void 0:r.syncModelEntityKey)!=null?O:"default-macro-markers-list-renderer-entity-key");var M,T,E;(E=G.scrollController)==null||WBt(E,{percentOffset:(M=G.data)==null?void 0:M.selectedItemAlignmentPercentOffset,floatingPillType:(T=G.data)==null?void 0:T.floatingPillType})}else{var b,w,q,t;G.scrollController=
new rV(G.contents,G.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(t=(b=G.data)==null?void 0:b.syncModelEntityKey)!=null?t:"default-macro-markers-list-renderer-entity-key",{percentOffset:(w=G.data)==null?void 0:w.selectedItemAlignmentPercentOffset,floatingPillType:(q=G.data)==null?void 0:q.floatingPillType},function(g){G.renderLazyListItems(g)})}G.scrollController.panelContentVisibleChanged(!!G.panelContentVisible)})};
_.V.computeButtonShape=function(){var G=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){G.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.V.renderLazyListItems=function(G){for(var e=this.contents.children,r=0,Z=0;Z<e.length;Z++){var O=void 0;(O=e[Z].ytLazyListBehavior)==null||O.fillRemainingListItems();var M=void 0,T=void 0;O=_.a((M=this.data)==null?void 0:(T=M.contents)==null?void 0:T[Z],_.TDb);T=M=void 0;if((M=O)==null?0:(T=M.contents)==null?0:T.length)r+=O.contents.length;if(r>=G)break}};
_.V.handleSetActivePanelItemAction=function(G){if((G=_.a(G,o8z))&&this.panelTargetId===G.panelTargetId){G=G.itemIndex;var e,r,Z=(r=(e=this.data)==null?void 0:e.syncModelEntityKey)!=null?r:"default-macro-markers-list-renderer-entity-key",O;((O=this.syncEntity)==null?void 0:O.activeItemIndex)!==G&&this.ytdReduxBehavior.dispatch(_.bt("markersEngagementPanelSyncEntity",Z,{key:Z,activeItemIndex:G}))}};
_.V.onSyncClick=function(){var G;(G=this.scrollController)==null||y0y(G)};
_.V.panelContentVisibleChanged=function(){var G;(G=this.scrollController)==null||G.panelContentVisibleChanged(!!this.panelContentVisible)};
Zj.prototype.panelContentVisibleChanged=Zj.prototype.panelContentVisibleChanged;Zj.prototype.dataChanged=Zj.prototype.dataChanged;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Zj.prototype,"actionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Zj.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Zj.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.A5),_.x("design:type",Object)],Zj.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Zj.prototype,"data",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Zj.prototype,"useCustomColors",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],Zj.prototype,"panelTargetId",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Zj.prototype,"panelContentVisible",void 0);
_.B([_.hs("#contents"),_.x("design:type",HTMLElement)],Zj.prototype,"contents",void 0);_.B([_.n({selectorArgs:["data.syncModelEntityKey"],selector:_.qdy}),_.x("design:type",Object)],Zj.prototype,"syncEntity",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Zj.prototype,"dataChanged",null);
_.B([_.Me("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Zj.prototype,"panelContentVisibleChanged",null);_.B([_.c({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Zj);
_.A(Zj,"ytd-macro-markers-list-renderer",function(){if(maZ!==void 0)return maZ;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return maZ=G},{mode:1});var NLj;var Oq=function(){return _.m.apply(this,arguments)||this};
_.K(Oq,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Oq.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Oq.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Oq.prototype,"data",void 0);_.B([_.c({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],Oq);
_.A(Oq,"ytd-error-corrections-section-item-renderer",function(){if(NLj!==void 0)return NLj;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return NLj=G},{mode:1});var LBZ;var M7=function(){return _.m.apply(this,arguments)||this};
_.K(M7,_.m);M7.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],M7.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],M7.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],M7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],M7.prototype,"data",void 0);_.B([_.c({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],M7);
_.A(M7,"ytd-error-corrections-section-renderer",function(){if(LBZ!==void 0)return LBZ;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return LBZ=G},{mode:1});var Grv;var VZ=function(){return _.m.apply(this,arguments)||this};
_.K(VZ,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],VZ.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],VZ.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],VZ.prototype,"data",void 0);_.B([_.c({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],VZ);
_.A(VZ,"ytd-topic-link-renderer",function(){if(Grv!==void 0)return Grv;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Grv=G},{mode:1});var erv;var hU=function(){var G=_.m.apply(this,arguments)||this;G.modernLockupV2=_.R("modernize_structured_description_playlist_lockups_v2");return G};
_.K(hU,_.m);hU.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"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],hU.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],hU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],hU.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],hU.prototype,"modernLockupV2",void 0);_.B([_.c({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],hU);
_.A(hU,"ytd-video-description-course-section-renderer",function(){if(erv!==void 0)return erv;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return erv=G},{mode:1});var rG$;var TH=function(){return _.m.apply(this,arguments)||this};
_.K(TH,_.m);TH.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"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],TH.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],TH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],TH.prototype,"data",void 0);_.B([_.c({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],TH);
_.A(TH,"ytd-video-description-files-section-renderer",function(){if(rG$!==void 0)return rG$;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return rG$=G},{mode:1});var ZLz;var Dj=function(){return _.m.apply(this,arguments)||this};
_.K(Dj,_.m);Dj.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"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Dj.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Dj.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Dj.prototype,"data",void 0);_.B([_.c({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],Dj);
_.A(Dj,"ytd-video-description-gaming-section-renderer",function(){if(ZLz!==void 0)return ZLz;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return ZLz=G},{mode:1});var OLj;var Eq=function(){var G=_.m.apply(this,arguments)||this;G.isExpanded=!1;return G};
_.K(Eq,_.m);Eq.prototype.computeHasDefaultMetadataEndpoint=function(G){var e;G=G==null?void 0:(e=G.defaultMetadata)==null?void 0:e.runs;return!(!G||G.length!==1||!G[0].navigationEndpoint)};
Eq.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.iY.Object.defineProperties(Eq.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Eq.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Eq.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Eq.prototype,"isExpanded",void 0);_.B([_.n({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Eq.prototype,"hasDefaultMetadataEndpoint",void 0);
_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Eq.prototype,"isExpandable",null);_.B([_.d("data","isExpandable","isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Eq.prototype,"showExpandedMetadata",null);_.B([_.c({is:"ytd-info-row-renderer",disableElementRegistration:!0})],Eq);
_.A(Eq,"ytd-info-row-renderer",function(){if(OLj!==void 0)return OLj;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return OLj=G},{mode:1});var M4_;var ih=function(){var G=_.m.apply(this,arguments)||this;G.currentIndex=0;G.supportComponentResize=!0;G.JSC$23114_lastScrollContainerWidth=NaN;return G};
_.K(ih,_.m);_.V=ih.prototype;
_.V.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"}}}};
_.V.getItemsPath=function(){return"videoLockups"};
_.V.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.V.onIronResize=function(){this.updateVideoLockupStyles()};
_.V.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.V.updateVideoLockupStyles=function(){var G;this.JSC$23114_scrollContainer!==void 0&&(G=this.videoLockups)!=null&&G.length&&(G=this.JSC$23114_scrollContainer.clientWidth,G!==this.JSC$23114_lastScrollContainerWidth&&(this.JSC$23114_lastScrollContainerWidth=G,_.eD(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(G*.8,415)+"px"}),_.xy(this.hostElement,"iron-resize")))};
_.iY.Object.defineProperties(ih.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var G=[],e;if((e=this.data)==null||!e.carouselLockups)return G;e=_.h(this.data.carouselLockups);for(var r=e.next();!r.done;r=e.next()){r=r.value;var Z=void 0;((Z=_.a(r,V1Z))==null?0:Z.videoLockup)&&G.push(_.a(r,V1Z).videoLockup)}return G}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.videoLockups)==null||!G.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var G=[],e;if((e=this.data)==null||!e.carouselLockups)return G;var r;return(r=_.a(this.data.carouselLockups[this.scrollCount],V1Z))==null?void 0:r.infoRows}}});
ih.prototype.dataChanged=ih.prototype.dataChanged;ih.prototype.onIronResize=ih.prototype.onIronResize;ih.prototype.hiddenChanged=ih.prototype.hiddenChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ih.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],ih.prototype,"componentBehavior",void 0);_.B([_.k(_.E1.YtdHorizontalListBehavior),_.x("design:type",Object)],ih.prototype,"ytdHorizontalListBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],ih.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ih.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],ih.prototype,"inlineStructuredDescription",void 0);_.B([_.n({value:2}),_.x("design:type",Number)],ih.prototype,"initialCount",void 0);_.B([_.n(),_.x("design:type",Object)],ih.prototype,"currentIndex",void 0);
_.B([_.n(),_.x("design:type",Number)],ih.prototype,"scrollCount",void 0);_.B([_.n(),_.x("design:type",Object)],ih.prototype,"supportComponentResize",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],ih.prototype,"contentHidden",void 0);_.B([_.hs("#scroll-container"),_.x("design:type",HTMLDivElement)],ih.prototype,"JSC$23114_scrollContainer",void 0);
_.B([_.Me("contentHidden"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ih.prototype,"hiddenChanged",null);_.B([_.d("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],ih.prototype,"videoLockups",null);_.B([_.d("videoLockups"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ih.prototype,"hasVideoLockups",null);
_.B([_.Om("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ih.prototype,"onIronResize",null);_.B([_.d("data","scrollCount"),_.x("design:type",Object),_.x("design:paramtypes",[])],ih.prototype,"infoRows",null);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ih.prototype,"dataChanged",null);_.B([_.c({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],ih);
_.A(ih,"ytd-video-description-music-section-renderer",function(){if(M4_!==void 0)return M4_;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return M4_=G},{mode:_.Px("kevlar_poly_si_batch_j081")?1:2});var V4Z;var bh=function(){return _.m.apply(this,arguments)||this};
_.K(bh,_.m);bh.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],bh.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],bh.prototype,"ytRendererBehavior",void 0);_.B([_.n({}),_.x("design:type",Object)],bh.prototype,"data",void 0);_.B([_.c({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],bh);
_.A(bh,"ytd-video-description-transcript-section-renderer",function(){if(V4Z!==void 0)return V4Z;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return V4Z=G},{mode:1});var hr$;_.J_(_.y(function(G){var e=_.hI(_.jns,function(){return G.data().firstProviderLinkStatusEntityKey}),r=_.hI(_.jns,function(){return G.data().secondProviderLinkStatusEntityKey}),Z=function(){var O,M;
return((O=e())==null?void 0:O.linked)||((M=r())==null?void 0:M.linked)};
return _.v("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.v(_.Wh,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return G.data().sectionTitle}}),_.v(_.Wh,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return Z()?G.data().connectedMessage:G.data().notConnectedMessage}}),_.v(_.S,{cond:Z,
then:function(){return _.v(_.E2,{data:function(){return G.data().connectedButton}},{buttonViewModel:function(O){return _.v(_.wF,{data:O.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.v(_.S,{cond:function(){return!Z()},
then:function(){return _.v(_.E2,{data:function(){return G.data().notConnectedButton}},{buttonViewModel:function(O){return _.v(_.wF,{data:O.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"sn"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.N6}});_.J_(_.y(function(G){var e=G.data;return _.v("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.v("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.v(_.Wh,{text:function(){return e().sectionTitle}})),_.v("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.v(_.Wh,{text:function(){return e().bodyHeader}})),_.v("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.v(_.Wh,{text:function(){return e().bodyText}})),_.v(_.S,{cond:function(){return e().attributionText},
then:function(){return _.v("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.v(_.Wh,{text:function(){return e().attributionText}}))}}))},"tn"),"how-this-was-made-section-view-model",{props:{data:_.N6}});_.J_(_.y(function(G){return _.v("yt-video-description-youchat-section-view-model",{class:_.LC("ytVideoDescriptionYouchatSectionViewModelHost")},_.v("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.v(_.Wh,{text:function(){return G.data().sectionTitle}})),_.v("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.v(_.Wh,{text:function(){return G.data().subHeaderText}})),_.v("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.v(_.wF,{data:function(){return _.a(G.data().primaryButton,
_.G$)}})))},"un"),"yt-video-description-youchat-section-view-model",{props:{data:_.N6}});var wV=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return G};
_.K(wV,_.m);_.V=wV.prototype;
_.V.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}}}}}};
_.V.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.V.dataChanged=function(){var G,e;this.hasDescriptionOnly=!(((G=this.data)==null?void 0:(e=G.items)==null?void 0:e.length)!==1||!_.a(this.data.items[0],Ij))};
_.V.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.V.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.V.autoFocusDescription=function(){var G;((G=_.v_().resolve(_.bq(_.T6)))==null?0:G.isKeyBoardInUse())&&this.description&&_.Mh(this.description)};
_.V.resize=function(){if(_.R("kevlar_disable_sd_resize"))this.JSC$23122_cardList&&_.xy(this.JSC$23122_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.xy(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.xy(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.V.scrollToSection=function(G){if(G=this.getSectionElement(G))_.Pi(this.hostElement,"yt-scroll-to-watch-element",[G]),G.focus()};
_.V.getSectionElement=function(G){switch(G){case "infocards-item-section":var e;return(e=this.infocardsSection)!=null?e:null;case "transcript-item-section":var r;return(r=this.transcriptSection)!=null?r:null;case "how-this-was-made-section-item-section":var Z;return(Z=this.howThisWasMadeSection)!=null?Z:null;case "files-item-section":var O;return(O=this.filesSection)!=null?O:null;default:return null}};
_.V.handleSetActiveItemAction=function(G){var e=_.a(G,o8z),r=e&&(e==null?void 0:e.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$23122_cardList;if(e&&r){G=this.currentActiveChapter;var Z=this.currentActiveProblem;e=r==null?void 0:r.getItemByIndex(e.itemIndex);var O=r=!0;e&&(e.active=!0,e.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(r=G!==e,O=!1,this.currentActiveChapter=e):(e==null?void 0:e.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(r=!1,O=Z!==e,this.currentActiveProblem=e));G&&r&&(G.active=!1);Z&&O&&(Z.active=!1)}};
_.iY.Object.defineProperties(wV.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.R("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
wV.prototype.onYtExpanderMoreTapped=wV.prototype.onYtExpanderMoreTapped;wV.prototype.onHiddenChanged=wV.prototype.onHiddenChanged;wV.prototype.dataChanged=wV.prototype.dataChanged;wV.prototype.panelContentVisibleChanged=wV.prototype.panelContentVisibleChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],wV.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],wV.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],wV.prototype,"actionHandlerBehavior",void 0);_.B([_.k(_.CS),_.x("design:type",Object)],wV.prototype,"ironResizableBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],wV.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Boolean)],wV.prototype,"panelContentVisible",void 0);_.B([_.n(),_.x("design:type",Boolean)],wV.prototype,"hasDescriptionOnly",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],wV.prototype,"inlineStructuredDescription",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],wV.prototype,"hidden",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],wV.prototype,"shortsPanel",void 0);_.B([_.n(),_.x("design:type",Object)],wV.prototype,"videoSummary",void 0);_.B([_.n(),_.x("design:type",Object)],wV.prototype,"merchShelf",void 0);
_.B([_.d("videoSummary"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],wV.prototype,"showVideoSummary",null);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],wV.prototype,"engagementPanel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],wV.prototype,"watchWhileSdp",void 0);_.B([_.hs("ytd-expandable-video-description-body-renderer"),_.x("design:type",Object)],wV.prototype,"description",void 0);
_.B([_.hs("ytd-horizontal-card-list-renderer"),_.x("design:type",Object)],wV.prototype,"JSC$23122_cardList",void 0);_.B([_.hs("ytd-horizontal-card-list-renderer[center-items]"),_.x("design:type",Object)],wV.prototype,"problemWalkthroughCardList",void 0);_.B([_.hs("ytd-shelf-renderer"),_.x("design:type",Object)],wV.prototype,"shelfSection",void 0);_.B([_.hs("ytd-video-description-music-section-renderer"),_.x("design:type",Object)],wV.prototype,"musicMetadataSection",void 0);
_.B([_.hs("ytd-video-description-infocards-section-renderer"),_.x("design:type",Object)],wV.prototype,"infocardsSection",void 0);_.B([_.hs("ytd-video-description-transcript-section-renderer"),_.x("design:type",Object)],wV.prototype,"transcriptSection",void 0);_.B([_.hs("how-this-was-made-section-view-model"),_.x("design:type",Object)],wV.prototype,"howThisWasMadeSection",void 0);_.B([_.hs("ytd-video-description-files-section-renderer"),_.x("design:type",Object)],wV.prototype,"filesSection",void 0);
_.B([_.Me("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wV.prototype,"panelContentVisibleChanged",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wV.prototype,"dataChanged",null);_.B([_.Me("hidden"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wV.prototype,"onHiddenChanged",null);
_.B([_.Om("yt-expander-more-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wV.prototype,"onYtExpanderMoreTapped",null);_.B([_.c({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],wV);
_.A(wV,"ytd-structured-description-content-renderer",function(){if(hr$!==void 0)return hr$;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return hr$=G},{mode:2});var Tlt;var Dhz;var $d=function(){return _.m.apply(this,arguments)||this};
_.K($d,_.m);$d.prototype.computeAriaLabel=function(G){var e,r;return(G==null?void 0:(e=G.accessibility)==null?void 0:(r=e.accessibilityData)==null?void 0:r.label)||_.OK("LOADING",void 0,"Loading")};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],$d.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],$d.prototype,"data",void 0);_.B([_.n({computed:"computeAriaLabel(data)"}),_.x("design:type",String)],$d.prototype,"ariaLabel",void 0);_.B([_.aR({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],$d);
_.A($d,"yt-content-loading-renderer",function(){if(Dhz===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;Tlt===void 0&&(Tlt=document.createElement("template"));var Z=Tlt;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Dhz=G}G=Dhz;return G},{mode:_.Px("kevlar_poly_si_batch_j043")?1:2});_.J_(_.y(function(G){var e=_.h(_.XQ(!1,void 0,"OZMtVb")),r=e.next().value,Z=e.next().value;e=_.h(_.XQ(!1,void 0,"qWERsf"));var O=e.next().value,M=e.next().value;_.yY(function(){var b=_.a(G.data().collaboratePlaylistCollaborationSetting,ztz);b&&Z(b.switchedOnByDefault);var w=_.a(G.data().allowNewCollaboratorsPlaylistCollaborationSetting,ztz);w&&M(w.switchedOnByDefault);if(!b&&!w||!b&&G.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")Z(!0),M(!0)});
var T=function(b){Z(b);M(b);var w=G.data().playlistCollaborationEntityKey||"";var q=_.uD().getState();(q=_.e6(q.entities,"playlistCollaborationEntity",w))&&(q==null?void 0:q.isCollaborative)===b||_.uD().dispatch(_.bt("playlistCollaborationEntity",w,Object.assign({},q,{isCollaborative:b})))},E=function(b){M(b)};
return _.v("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.v("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.v(_.E2,{data:function(){return G.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(b){return _.v(_.SqE,{data:b.data,
onSwitch:T})}})),_.v(_.S,{cond:r,
then:function(){return _.v(_.$Z,null,_.v("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.v(_.E2,{data:function(){return G.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(b){return _.v(_.SqE,{data:b.data,
onSwitch:E,overrideDisabled:!1})}})),_.v(_.S,{cond:O,
then:function(){return _.v("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.v(_.E2,{data:function(){return G.data().copyLinkButton}},{buttonViewModel:_.wF}))}}),_.v("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.v(_.E2,{data:function(){return G.data().playlistCollaborators}},{contentListItemViewModel:_.lHo})))}}))},"vn"),"playlist-collaboration-view-model",{props:{data:_.N6}});var EcX=_.y(function(G){var e=G.data;var r=G.customCommandResolver;return _.v(_.$Z,null,_.v("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.v(_.E2,{data:function(){return e().adAvatar}},{adAvatarViewModel:function(Z){return _.v(_.nkj,{data:Z.data,
customCommandResolver:r})}})),_.v("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.v(_.S,{cond:function(){return e().headline},
then:function(Z){return _.v(_.Wh,{text:Z,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.v("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.v(_.E2,{data:function(){return e().adBadge}},{adBadgeViewModel:function(Z){return _.v(_.tE,{data:Z.data,
hasDot:function(){return e().primaryDetailsLine!==void 0},
customCommandResolver:r,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.v(_.E2,{data:function(){return e().primaryDetailsLine}},{adDetailsLineViewModel:function(Z){return _.v(_.gZ,{data:Z.data,
customCommandResolver:r,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"wn"),iLz=_.y(function(G){var e=G.data;
var r=G.customCommandResolver;return _.v("ad-avatar-lockup-view-model",{class:function(){var Z;return((Z=e().interaction)==null?0:Z.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.cQ(_.vJ({visibilityCallback:function(Z){var O,M=(O=e().interaction)==null?void 0:O.onFirstVisible;Z&&M&&_.HQ(M)},
showOption:_.Ep}),_.fW(function(){return e().interaction},r)),
"aria-label":function(){var Z,O;return(Z=e().interaction)==null?void 0:(O=Z.accessibility)==null?void 0:O.label}},_.v(_.nz,null,_.v(_.pz,{when:function(){return e().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.v(EcX,{data:e,
customCommandResolver:r})}),_.v(_.Cz,null,function(){return null})))},"xn");_.J_(_.y(function(G){var e=G.data;var r=G.panelContentVisibility;G=_.vJ({visibilityCallback:function(M){var T,E=(T=e().interaction)==null?void 0:T.onFirstVisible;M&&E&&_.HQ(E)},
showOption:_.Ep});var Z=_.fW(function(){return e().interaction},CxX);
_.JB(function(){var M,T;if(T=_.Lz("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var E;T=(E=T())==null?void 0:E.onLayoutVisibleCallback}else T=null;(M=T)==null||M()},"yn");
var O=function(){return r()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.v("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.cQ(G,Z)},_.v("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.v("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.v(_.S,{cond:_.SoS("(min-width: "+((0,_.fv)()+_.Cn)+"px) or (max-width: 600px)"),then:function(){return _.v(_.E2,{data:function(){return e().adImage}},{adImageViewModel:function(M){return _.v(_.fw,{data:M.data,
targetHeight:80,customCommandResolver:CxX})}})}})),_.v("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.v("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.v(_.E2,{data:function(){return e().adAvatarLockup}},{adAvatarLockupViewModel:function(M){return _.v(iLz,{data:M.data,
customCommandResolver:CxX})}})),_.v(_.S,{cond:O,
then:function(){return _.v(_.E2,{data:function(){return e().adButton}},{adButtonViewModel:function(M){return _.v(_.bK,{data:M.data,
customCommandResolver:CxX})}})},
else:function(){return _.v(_.E2,{data:function(){return e().menu}},{buttonViewModel:_.wF})}}),_.v("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.v(_.E2,{data:function(){var M=_.a(e().toggleButton,_.rq);
return{toggleButtonViewModel:Object.assign({},M,{isTogglingDisabled:!0,isToggled:O()})}}},{toggleButtonViewModel:_.pb})))))},"zn"),"panel-ad-header-image-lockup-view-model",{props:{data:_.N6,
panelContentVisibility:_.N6}});_.J_(_.y(function(G){var e=function(){return _.a(G.data().inputComposerViewModel,mMt)},r=_.Eb(_.oH.currentPageSubTypeSelector),Z=_.Eb(_.oH.persistentPanelVisibleSelector),O=_.h(_.XQ(!1,void 0,"tZvFae")),M=O.next().value,T=O.next().value;
O=_.h(_.XQ(!1,void 0,"yUp6Be"));var E=O.next().value,b=O.next().value,w=function(){H(!0);var Ry;_.HQ(((Ry=e())==null?void 0:Ry.onSubmitCommand)||{})},q=function(){if(Z()&&!E()){var Ry;
(Ry=_.eV())==null||Ry.removeCueRange("aic-proactive");T(!1);b(!0);w();_.KC(_.WS2(e().endOfVideoContinuation),{form:{formData:_.I1({clientMessageId:"youchat-"+Date.now(),pageContext:Kf()})},commandController:{onSuccess:function(){H(!1)},
onServerError:function(){_.KC(R$2(P()));H(!1)}}})}},t=function(){var Ry=_.eV();
if(Ry&&!M()&&!E()){var nf=Ry.getDuration();nf>60&&(Ry.addCueRange("aic-proactive",nf-60,nf-20),T(!0))}},g=function(){var Ry;
return((Ry=e())==null?void 0:Ry.youchatPendingResponseEntityKey)||""},l=_.hI(_.Tj2,g),X=function(){var Ry;
return!((Ry=l())==null||!Ry.isPendingResponse)},H=function(Ry){_.DWq(g())(Ry)};
O=_.h(_.XQ(!0,void 0,"ypljKe"));var I=O.next().value,C=O.next().value,u=function(){var Ry,nf;var k4=_.a((nf=e())==null?void 0:nf.inputFormField,kyZ);return k4==null?void 0:(Ry=k4.contentProperties)==null?void 0:Ry.placeholderText},P=function(){return e().sectionTargetId||"youchat_messages_section"};
O=_.T2("yt-chat-input-view-model");var F=_.hT("textarea"),J=_.hI(aDZ,"chat_input_view_model_state"),U=Xpy(),e$=function(){var Ry;return!((Ry=J())==null||!Ry.value)},Dq=function(){return G.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},bF=function(){var Ry;
(Ry=_.eV())==null||Ry.removeCueRange("aic-proactive");T(!1);b(!1);var nf;_.R("enable_navigational_proactive_messages_on_ai_companion")&&((nf=e())==null?0:nf.navigationContinuation)&&Z()&&(w(),_.KC(_.WS2(e().navigationContinuation),{form:{formData:_.I1({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:nW$(),pageContext:Kf()})},commandController:{onSuccess:function(){H(!1)},
onServerError:function(){_.KC(R$2(P()));H(!1)}}}))},Kf=function(){var Ry;
return(Ry=_.v_().resolve(_.bq(_.Q8)))==null?void 0:_.P7V(Ry,r())};
_.yY(function(){if(_.R("enable_ai_chat_controller")){var Ry;(Ry=_.v_().resolve(_.bq(_.Q8)))==null||Ry.init(G.data().environment)}else if(Ry=cAZ(G.data()),!e$()&&Ry){var nf;((nf=e())==null?0:nf.setPendingResponseOnWelcome)&&H(!0);_.KC(Ry,{form:{formData:_.I1({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:nW$(),pageContext:Kf()})}});U(!0)}var k4=P(),SE=_.v_().resolve(_.bq(_.X9)),Fn=function(){_.DV.remove(k4);if(_.R("enable_ai_chat_controller")){var Lf;(Lf=_.v_().resolve(_.bq(_.Q8)))!=null&&Lf.environment===
"CHAT_ENVIRONMENT_ENUM_YOUCHAT"&&(Lf.lastWelcomeContinuationSent=void 0)}else U(!1)},kw=function(){_.ah(function(){if(Dq()&&(bF(k4),r()==="watch")){var Lf=_.eV();
Lf&&(Lf.addEventListener("onStateChange",t),Lf.addEventListener("onCueRangeEnter",q))}})};
nf=_.R("enable_ai_companion")?!Dq():!0;SE==null||SE.addEventListener("yt-navigate-start",Fn,{once:nf});SE==null||SE.addEventListener("yt-navigate-finish",kw,{once:nf});_.yD(function(){SE==null||SE.removeEventListener("yt-navigate-start",Fn);SE==null||SE.removeEventListener("yt-navigate-finish",kw);var Lf=_.eV();Lf&&(Lf.removeEventListener("onCueRangeEnter",q),Lf.removeEventListener("onStateChange",t),Lf.removeCueRange("aic-proactive"))})});
_.Y8(function(){if(_.R("enable_ai_chat_controller")){var Ry=cAZ(G.data());if(Ry){var nf,k4=((nf=e())==null?0:nf.setPendingResponseOnWelcome)?H:void 0,SE;(SE=_.v_().resolve(_.bq(_.Q8)))==null||tOw(SE,{command:Ry,setPending:k4})}}},"RZzrCc");
var ti=function(){var Ry=F.value.value;F.value.value="";ux2(F.value);var nf,k4=((nf=e())==null?void 0:nf.enableGradientColorBg)||!1;nf=jFX(P(),Ry,k4);_.KC(nf);w();var SE,Fn,kw;nf=(kw=(SE=G.data())==null?void 0:SE.sendUserQueryCommand)!=null?kw:_.WS2((Fn=e())==null?void 0:Fn.continuation);_.KC(nf,{form:{formData:_.I1({clientMessageId:"youchat-"+Date.now(),userInputText:Ry,playerOffsetMs:nW$(),pageContext:Kf()})},commandController:{onSuccess:function(){H(!1)},
onServerError:function(){_.KC(R$2(P()));H(!1)}}})};
return _.v("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:O},_.v("div",{class:"chatInputViewModelChatInputWrapper"},_.v("form",{class:"chatInputViewModelChatInputForm"},_.v("textarea",{class:"chatInputViewModelChatInput",el:F,"on:keydown":_.ev(function(Ry){var nf=X()||!1;ux2(F.value);nf||Ry.key!=="Enter"||Ry.shiftKey||(Ry.preventDefault(),ti());return!1}),
"on:keyup":_.ev(function(){C(F.value.value.length===0);return!1}),
"aria-label":function(){return X()?G.data().loadingAnimationA11yLabel||"":u()},
placeholder:u,rows:1}),_.v(_.wF,{data:function(){return _.a(G.data().sendButton,_.G$)},
onClick:function(Ry){Ry.preventDefault();ti();C(F.value.value.length===0)},
buttonOverrides:function(){return{disabled:I()||X()}}})),_.v(_.Wh,{className:"chatInputViewModelChatDisclaimer",
text:function(){var Ry;return(Ry=_.a(G.data().disclaimer,_.DCn))==null?void 0:Ry.text}})))},"Bn"),"yt-chat-input-view-model",{props:{data:_.N6}});var bL_=["engagement-panel-clip-create","engagement-panel-clip-view"],vc_=0,Si=function(){var G=_.m.apply(this,arguments)||this;var e;G.headerData=(e=G.data)==null?void 0:e.header;G.darkerPanels=_.R("web_watch_darker_panels");G.matchContentTheme=_.R("web_watch_panel_content_match_theme");G.disableAutoFill=!1;G.isFullscreen=!1;G.isTheaterMode=!1;G.liveChatReplyPanel=!1;G.enableAnchoredPanel=_.R("desktop_shorts_v2_anchored_panel");G.disableBackdropFilter=_.R("web_disable_backdrop_filter");G.isPersistentPanel=
!1;G.trackEngagementPanelVisibility=_.R("web_watch_track_engagement_panel_visibility");G.overscrollContain=!1;G.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 G};
_.K(Si,_.m);_.V=Si.prototype;
_.V.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(G){var e;return(G==null?void 0:(e=G.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]]",overscrollContain:"[[overscrollContain]]"}},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"}}}};
_.V.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var G;if((G=this.hostElement.parentElement)==null?0:G.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.V.detached=function(){this.updateTheaterDisablement()};
_.V.showPanel=function(){var G=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.A0.addJob(function(){G.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.V.maybeScrollToItemSection=function(G){var e=this,r,Z=G==null?void 0:(r=G.sectionListEngagementPanelExtras)==null?void 0:r.scrollToItemSectionIdentifier;Z&&_.A0.addJob(function(){var O;(O=e.sectionListRendererElement)==null||O.scrollToItemSection(Z)},8)};
_.V.hidePanel=function(){var G=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.A0.addJob(function(){G.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.V.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.V.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.V.updatePanel=function(G,e,r,Z){var O=this;if((G=G==null?void 0:G.engagementPanelSectionListRenderer)||Z){if(G){Z=G.header;var M=G.content,T=G.footer;(G=G.targetId)&&this.set("data.targetId",G);Z&&this.set("data.header",Z);M&&this.set("data.content",M);T&&this.set("data.footer",T)}else Z&&(G=Z.content,M=Z.secondaryHeaderContent,T=Z.targetId,Z=Z.loggingDirectives,T&&this.set("data.targetId",T),G&&this.set("data.content",G),Z&&_.R("web_update_panel_visibility_logging_fix")&&this.set("data.loggingDirectives",
Z),M&&(this.secondaryHeaderData=M));this.updateChildVisibilityProperties();if(e){var E;_.R("kevlar_update_panel_focus_scroll_killswitch")||(E={preventScroll:!0});this.focus(E)}_.DE(this,function(){_.xy(O.hostElement,"yt-refit");O.maybeScrollToItemSection(r)})}};
_.V.computeHeaderData=function(){var G,e=(0,_.c2.unsafeClone)((G=this.data)==null?void 0:G.header);if(e){G=new _.L9(Object.keys(e)[0]);var r=_.a(e,G),Z=_.a(this.secondaryHeaderData,G);Z&&_.g2(e,G,Object.assign({},Z,r))}return e};
_.V.getReloadContinuation=function(){var G,e,r,Z=_.h(((G=this.data)==null?void 0:(e=G.content)==null?void 0:(r=e.sectionListRenderer)==null?void 0:r.continuations)||[]);for(G=Z.next();!G.done;G=Z.next())if(G=G.value,G.reloadContinuationData)return G.reloadContinuationData.continuation};
_.V.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var G;((G=this.data)==null?0:G.targetId)&&(G=this.contentElement.firstElementChild)&&G.setAttribute("panel-target-id",this.data.targetId)};
_.V.forwardPopupClosedToFlowRootRenderer=function(){var G=_.z1(this.hostElement).querySelector("ytd-flow-root-renderer");if(G&&this.hostElement.closest("ytd-popup-container"))G.onPopupClosed()};
_.V.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var G;if(!bL_.includes((G=this.theaterDisablementPanelIdentifier)!=null?G:""))if(G=_.R("web_watch_imax_theater_mode")&&this.isTheaterMode,G=_.R("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||G,_.R("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||G){var e;this.visibility=(e=this.data)==null?void 0:e.visibility;var r;this.trackEngagementPanelVisibility&&((r=this.data)==null?void 0:r.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var Z,O,M,T;this.contentEmpty=!!(((Z=this.data)==null?0:(O=Z.content)==null?0:O.structuredDescriptionContentRenderer)&&Object.keys((M=this.data)==null?void 0:(T=M.content)==null?void 0:
T.structuredDescriptionContentRenderer).length===0);(e=_.v_().resolve(_.uB))&&e.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.V.isTheaterModeChanged=function(){_.R("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.V.isFullscreenChanged=function(){_.R("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.V.focus=function(G){if(this.header)this.header.focus(G);else{var e;(e=_.z1(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||e.focus(G)}};
_.V.visibilityChanged=function(){if(!_.R("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var G=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",e=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",r=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Z=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",O=Z||!this.lastVisibility,M,T,E,b=((M=this.data)==null?void 0:(T=M.identifier)==null?void 0:
T.tag)||((E=this.data)==null?void 0:E.panelIdentifier);if(G&&O){var w;((w=this.data)==null?0:w.onShowCommands)&&_.Wi(this.hostElement,this.data.onShowCommands,this.hostElement);b&&_.Yt().dispatch(_.UK({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:b}}))}else if(e&&r){var q;((q=this.data)==null?0:q.onHideCommands)&&_.Wi(this.hostElement,this.data.onHideCommands,this.hostElement);b&&_.Yt().dispatch(_.UK({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:b}}))}G&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*vc_++));_.R("kevlar_watch_focus_on_engagement_panels")&&G&&Z&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.V.notifyVisibilityChanged=function(G){var e;_.UW(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,G,(e=this.data)==null?void 0:e.targetId]);if(_.R("autonav_pause_for_comments_ep")){var r;_.xy(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:G==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(r=this.data)==null?void 0:r.targetId})}};
_.V.updateTheaterDisablement=function(){if(!_.R("kevlar_watch_theater_disablement_killswitch")){var G=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&bL_.includes(G)&&!_.R("watch_next_grid_ignore_disallowed_panels")){var e=_.jv(_.Yt().getState()),r=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";G!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():r?(this.originalTheaterState===void 0&&(this.originalTheaterState=e,this.theaterDisablementPanelIdentifier=
G),e&&_.Pi(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.V.clearTheaterDisablement=function(){_.Pi(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.V.updateChildVisibilityProperties=function(){this.hostElement||_.R("kevlar_panel_property_init_killswitch")||this._enableProperties();var G=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=G);var e,r=(e=this.headerElement)==null?void 0:e.firstElementChild;if(r&&!this.adHeaderImageLockupViewModel){e=G==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";r.collapsed=e;r=_.z1(r).querySelector("#visibility-button");if(!r)return;(r=r.firstElementChild)&&
r.polymerController.is==="ytd-toggle-button-renderer"&&r.polymerController.data.isToggled!==e&&r.polymerController.set("data.isToggled",e)}var Z;if(e=(Z=this.contentElement)==null?void 0:Z.firstElementChild)if(G&&G!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")e.removeAttribute("panel-content-visible");else{e.setAttribute("panel-content-visible","");var O;(O=e.markDirty)==null||O.call(e)}};
_.V.onYtChangeEngagementPanelVisibilityAction=function(G){var e=this,r,Z=(r=this.data)==null?void 0:r.targetId,O,M,T;r=((O=this.data)==null?void 0:(M=O.identifier)==null?void 0:M.tag)||((T=this.data)==null?void 0:T.panelIdentifier);var E=_.a(G,_.QeW),b;G=Z&&(E==null?void 0:E.targetId)===Z||r&&(E==null?void 0:(b=E.panelIdentifier)==null?void 0:b.tag)===r;this.dialog&&G&&(E==null?void 0:E.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(Z==="engagement-panel-comments-section"?_.Pi(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.Pi(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",r]));!_.R("kevlar_use_engagement_panel_management_component")&&G&&(Z=E.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!Z?_.A0.addJob(function(){e.visibility=E.visibility},2,this.hideDelayMs):this.visibility=E.visibility,E.visibility&&this.notifyVisibilityChanged(E.visibility))};
_.V.onYtScrollToEngagementPanelCommand=function(G){var e,r=(e=this.data)==null?void 0:e.targetId,Z,O,M;e=((Z=this.data)==null?void 0:(O=Z.identifier)==null?void 0:O.tag)||((M=this.data)==null?void 0:M.panelIdentifier);G=_.a(G,_.JYC);var T;(r&&(G==null?void 0:G.targetId)===r||e&&(G==null?void 0:(T=G.panelIdentifier)==null?void 0:T.tag)===e)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.Pi(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.V.attachVEs=function(G){var e,r;(G==null?0:(e=G.content)==null?0:(r=e.productListRenderer)==null?0:r.trackingParams)&&_.h_().graftServerVe(G.content.productListRenderer.trackingParams);var Z,O;(G==null?0:(Z=G.content)==null?0:(O=Z.transcriptRenderer)==null?0:O.trackingParams)&&_.h_().graftServerVe(G.content.transcriptRenderer.trackingParams)};
_.V.onYtUpdateEngagementPanelAction=function(G){var e,r=(e=this.data)==null?void 0:e.targetId;G=_.a(G,Qhk);r&&(G==null?void 0:G.targetId)===r&&(this.updatePanel({engagementPanelSectionListRenderer:{header:G==null?void 0:G.header,content:G==null?void 0:G.content}},!1),this.attachVEs(G))};
_.V.onYtShowEngagementPanelScrimAction=function(G){var e,r=(e=this.data)==null?void 0:e.targetId;G=_.a(G,shw);r&&(G==null?void 0:G.engagementPanelTargetId)===r&&(this.scrimmed=!0)};
_.V.onYtHideEngagementPanelScrimAction=function(G){var e,r=(e=this.data)==null?void 0:e.targetId;G=_.a(G,dIz);r&&(G==null?void 0:G.engagementPanelTargetId)===r&&(this.scrimmed=!1)};
_.V.getIdentifier=function(){var G,e,r;return((G=this.data)==null?void 0:G.panelIdentifier)||((e=this.data)==null?void 0:(r=e.identifier)==null?void 0:r.tag)};
_.V.getSurface=function(){var G,e;return(G=this.data)==null?void 0:(e=G.identifier)==null?void 0:e.surface};
_.iY.Object.defineProperties(Si.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var G=this.getIdentifier();return G==="engagement-panel-youchat"||G==="PAyouchat"}}});
Si.prototype.visibilityChanged=Si.prototype.visibilityChanged;Si.prototype.isFullscreenChanged=Si.prototype.isFullscreenChanged;Si.prototype.isTheaterModeChanged=Si.prototype.isTheaterModeChanged;Si.prototype.dataChanged=Si.prototype.dataChanged;Si.prototype.forwardPopupClosedToFlowRootRenderer=Si.prototype.forwardPopupClosedToFlowRootRenderer;Si.prototype.onYtRendererstamperFinished=Si.prototype.onYtRendererstamperFinished;
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Si.prototype,"actionHandlerBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Si.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],Si.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],Si.prototype,"ytEventForwardingBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Si.prototype,"data",void 0);
_.B([_.n({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.x("design:type",Object)],Si.prototype,"headerData",void 0);_.B([_.n(),_.x("design:type",Object)],Si.prototype,"secondaryHeaderData",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Si.prototype,"visibility",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Si.prototype,"contentEmpty",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Si.prototype,"scrimmed",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Si.prototype,"dialog",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Si.prototype,"dropdown",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Si.prototype,"darkerPanels",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Si.prototype,"matchContentTheme",void 0);_.B([_.n(),_.x("design:type",Object)],Si.prototype,"disableAutoFill",void 0);
_.B([_.n({reflectToAttribute:!0,value:_.R("optimal_reading_width_comments_ep")}),_.x("design:type",Boolean)],Si.prototype,"optimalReadingWidthComments",void 0);_.B([_.n(),_.x("design:type",Number)],Si.prototype,"hideDelayMs",void 0);_.B([_.n({selector:_.aV,reflectToAttribute:!0}),_.x("design:type",Object)],Si.prototype,"isFullscreen",void 0);_.B([_.n({selector:_.jv,reflectToAttribute:!0}),_.x("design:type",Object)],Si.prototype,"isTheaterMode",void 0);
_.B([_.n(),_.x("design:type",Number)],Si.prototype,"showDelayMs",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("data.targetId"),_.x("design:type",Object),_.x("design:paramtypes",[])],Si.prototype,"targetId",null);_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Si.prototype,"webSize",null);_.B([_.n(),_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Si.prototype,"hideFooterBorder",null);
_.B([_.n(),_.x("design:type",Object)],Si.prototype,"isWatch",void 0);_.B([_.n(),_.x("design:type",Object)],Si.prototype,"originalTheaterState",void 0);_.B([_.n(),_.x("design:type",Object)],Si.prototype,"theaterDisablementPanelIdentifier",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Si.prototype,"isWatchWhilePanel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Si.prototype,"shortsPanel",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Si.prototype,"liveChatEngagementPanel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Si.prototype,"learningChatEngagementPanel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Si.prototype,"liveChatReplyPanel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Si.prototype,"enableAnchoredPanel",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Si.prototype,"disableBackdropFilter",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Si.prototype,"isPersistentPanel",void 0);_.B([_.n(),_.x("design:type",Object)],Si.prototype,"trackEngagementPanelVisibility",void 0);_.B([_.n(),_.x("design:type",Object)],Si.prototype,"overscrollContain",void 0);_.B([_.hs("#header"),_.x("design:type",HTMLElement)],Si.prototype,"headerElement",void 0);
_.B([_.hs("#header > *"),_.x("design:type",HTMLElement)],Si.prototype,"header",void 0);_.B([_.hs("ytd-section-list-renderer"),_.x("design:type",Object)],Si.prototype,"sectionListRendererElement",void 0);_.B([_.hs("panel-ad-header-image-lockup-view-model"),_.x("design:type",HTMLElement)],Si.prototype,"adHeaderImageLockupViewModel",void 0);_.B([_.hs("#content"),_.x("design:type",HTMLElement)],Si.prototype,"contentElement",void 0);
_.B([_.Om("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Si.prototype,"onYtRendererstamperFinished",null);_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Si.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.B([_.iD("data","isFullscreen","isTheaterMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Si.prototype,"dataChanged",null);
_.B([_.Me("isTheaterMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Si.prototype,"isTheaterModeChanged",null);_.B([_.Me("isFullscreen"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Si.prototype,"isFullscreenChanged",null);_.B([_.Me("visibility"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Si.prototype,"visibilityChanged",null);
_.B([_.c({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],Si);
_.A(Si,"ytd-engagement-panel-section-list-renderer",function(){if(IGk!==void 0)return IGk;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return IGk=G},{mode:_.Px("kevlar_poly_si_batch_j028")?1:2});var wgX;var q7=function(){var G=_.m.apply(this,arguments)||this;G.lastRenderedPanelIds=new Set;G.visiblePanels=[];G.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return G};
_.K(q7,_.m);_.V=q7.prototype;_.V.dataChanged=function(){if(this.data){for(var G=[],e=_.h(this.data),r=e.next();!r.done;r=e.next()){r=r.value;var Z=void 0,O=void 0,M=(Z=r)==null?void 0:(O=Z.engagementPanelSectionListRenderer)==null?void 0:O.visibility;O=Z=void 0;((Z=r)==null?0:(O=Z.engagementPanelSectionListRenderer)==null?0:O.targetId)&&M!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&G.push(r)}this.visiblePanels=G}else this.visiblePanels=[]};
_.V.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}}};
_.V.withoutVisiblePanelById=function(G){return this.visiblePanels.filter(function(e){var r;return((r=e.engagementPanelSectionListRenderer)==null?void 0:r.targetId)!==G})};
_.V.onYtChangeEngagementPanelVisibilityAction=function(G){var e=this,r=_.a(G,_.QeW);if(this.data&&(r==null?0:r.targetId)&&(r==null?0:r.visibility)){var Z,O=(Z=this.data.find(function(T){var E;return((E=T.engagementPanelSectionListRenderer)==null?void 0:E.targetId)===r.targetId}))==null?void 0:Z.engagementPanelSectionListRenderer;
if(O){var M=this.withoutVisiblePanelById(r.targetId);r.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(G=this.data.find(function(T){var E;return((E=T.engagementPanelSectionListRenderer)==null?void 0:E.targetId)===r.targetId}))&&(M=[G].concat(_.mY(M)));
this.hideDelayMs&&r.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&M.length===0?_.A0.addJob(function(){O.visibility=r.visibility;e.visiblePanels=M},10,this.hideDelayMs):(O.visibility=r.visibility,this.visiblePanels=M);
_.UW(this.hostElement,"yt-engagement-panels-visible-changed",[M])}}};
_.V.onRendererstamperFinished=function(){var G=new Set(this.visiblePanels.map(function(e){var r;return(r=e.engagementPanelSectionListRenderer)==null?void 0:r.targetId}));
this.handlePanelVisibilityChange(G,this.lastRenderedPanelIds);this.lastRenderedPanelIds=G};
_.V.handlePanelVisibilityChange=function(G,e){G=G===void 0?new Set:G;e=e===void 0?new Set:e;if(this.data)for(var r=_.h(this.data),Z=r.next();!Z.done;Z=r.next()){Z=Z.value;var O=void 0,M=void 0,T=(O=Z)==null?void 0:(M=O.engagementPanelSectionListRenderer)==null?void 0:M.targetId;if(T&&(O=e.has(T),M=G.has(T),T=void 0,!O&&M?(M=O=void 0,T=(O=Z)==null?void 0:(M=O.engagementPanelSectionListRenderer)==null?void 0:M.onShowCommands):O&&!M&&(M=O=void 0,T=(O=Z)==null?void 0:(M=O.engagementPanelSectionListRenderer)==
null?void 0:M.onHideCommands),T))for(Z=_.h(T),T=Z.next();!T.done;T=Z.next())this.ytComponentBehavior.resolveCommand(T.value)}};
q7.prototype.onRendererstamperFinished=q7.prototype.onRendererstamperFinished;q7.prototype.dataChanged=q7.prototype.dataChanged;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],q7.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],q7.prototype,"actionHandlerBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],q7.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],q7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],q7.prototype,"lastRenderedPanelIds",void 0);_.B([_.n(),_.x("design:type",Number)],q7.prototype,"hideDelayMs",void 0);_.B([_.n(),_.x("design:type",Array)],q7.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Array)],q7.prototype,"visiblePanels",void 0);_.B([_.n(),_.x("design:type",Boolean)],q7.prototype,"isWatchWhilePanel",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],q7.prototype,"dataChanged",null);_.B([_.Om("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],q7.prototype,"onRendererstamperFinished",null);_.B([_.c({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],q7);
_.A(q7,"ytd-watch-engagement-panels",function(){if(wgX!==void 0)return wgX;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return wgX=G},{mode:1});var $hy;var tU=function(){return _.m.apply(this,arguments)||this};
_.K(tU,_.m);tU.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.Te(_.z1(this.hostElement).querySelector("#text"),_.xgc(_.z1P,this.data.companionLegalText))};
tU.prototype.computeAutoScrollEnabled=function(G,e){return G&&!e};
tU.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
tU.prototype.onToggleTap=function(){this.expanded=!this.expanded};
tU.prototype.expandedChanged=tU.prototype.expandedChanged;tU.prototype.dataChanged=tU.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],tU.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.ab_),_.x("design:type",Object)],tU.prototype,"ytdAutoScrollBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],tU.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],tU.prototype,"expanded",void 0);
_.B([_.n({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.x("design:type",Boolean)],tU.prototype,"autoScrollEnabled",void 0);_.B([_.n(),_.x("design:type",String)],tU.prototype,"expanderIcon",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tU.prototype,"dataChanged",null);
_.B([_.Me("expanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tU.prototype,"expandedChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],tU);
_.A(tU,"ytd-companion-legal-text-renderer",function(){if($hy!==void 0)return $hy;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return $hy=G},{mode:1});var Ssw;var gV=function(){var G=_.m.apply(this,arguments)||this;G.buttonUpdate=_.R("web_modern_buttons");G.kevlarWatchGrid=_.R("kevlar_watch_grid");G.centerAlignDescription=_.R("action_companion_center_align_description");G.truncateDomain=_.R("action_companion_truncate_domain");G.enableMonoStyle=_.R("enable_default_mono_cta_migration_web_client");return G};
_.K(gV,_.m);_.V=gV.prototype;_.V.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.V.getOnLayoutVisibleCallback=function(){var G=_.Lz("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.onLayoutVisibleCallback:null};
_.V.getLayoutId=function(){var G=_.Lz("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.layoutId:null};
_.V.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",gV.JSC$23167_DEFAULT_AD_BADGE_RENDERER);var G=this.getOnLayoutVisibleCallback();G&&G()}};
_.V.getButtonRenderer=function(G){return G.actionButton&&_.a(G.actionButton,_.zM)?(delete _.a(G.actionButton,_.zM).navigationEndpoint,_.a(G.actionButton,_.zM)):{}};
_.V.onClick=function(G){var e=this;if((!_.R("web_modern_buttons")||!_.mO(_.na(G),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){G=_.Ff();var r=this.getLayoutId();G&&r&&_.R("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?G.getPlayerPromise().then(function(Z){(new _.nX(Z)).executeCommand(e.data.navigationEndpoint,r)}):_.R("kevlar_companion_resolve_command_killswitch")?_.xy(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.Pi(this.hostElement,"yt-companion-ad-clicked",["action-companion",r])}};
_.iY.Object.defineProperties(gV.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return((G=this.data)==null?0:(e=G.detailsLine)==null?0:(r=e.adRating)==null?0:r.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 G,e,r,Z;return((G=this.data)==null?0:(e=G.detailsLine)==null?0:(r=e.adRating)==null?0:(Z=r.ratingIcon)==null?0:Z.iconType)?_.Ne(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var G,e,r,Z;return((G=this.data)==null?0:(e=G.detailsLine)==null?0:(r=e.texts)==null?0:(Z=r[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 G,e;return((G=this.data)==null?0:(e=G.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 G=_.Lz("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var G=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return G?G.indexOf("/default_banner")!==-1:!0}}});
gV.prototype.onClick=gV.prototype.onClick;gV.prototype.dataChanged=gV.prototype.dataChanged;gV.JSC$23167_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.OK("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],gV.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],gV.prototype,"rendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],gV.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],gV.prototype,"buttonUpdate",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],gV.prototype,"kevlarWatchGrid",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],gV.prototype,"centerAlignDescription",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],gV.prototype,"truncateDomain",void 0);
_.B([_.n({computed:"computeButtonOverride(buttonUpdate)"}),_.x("design:type",Object)],gV.prototype,"buttonOverride",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],gV.prototype,"enableMonoStyle",void 0);_.B([_.d("data.detailsLine.adRating.ratingText"),_.x("design:type",Object),_.x("design:paramtypes",[])],gV.prototype,"getRating",null);_.B([_.d("getRating"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],gV.prototype,"computeRatingHidden",null);
_.B([_.d("data.detailsLine.adRating.ratingIcon.iconType"),_.x("design:type",Object),_.x("design:paramtypes",[])],gV.prototype,"iconType",null);_.B([_.d("data.detailsLine.texts.0.text"),_.x("design:type",Object),_.x("design:paramtypes",[])],gV.prototype,"getDetailsLine",null);_.B([_.d("getDetailsLine"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],gV.prototype,"computeDetailsLineHidden",null);
_.B([_.d("data.description.text"),_.x("design:type",Object),_.x("design:paramtypes",[])],gV.prototype,"getDescriptionText",null);_.B([_.d("getDescriptionText"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],gV.prototype,"computeDescriptionTextHidden",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],gV.prototype,"interactionLoggingClientData",null);
_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],gV.prototype,"hideBanner",null);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gV.prototype,"dataChanged",null);_.B([_.Om("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],gV.prototype,"onClick",null);_.B([_.c({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],gV);
_.A(gV,"ytd-action-companion-ad-renderer",function(){if(Ssw!==void 0)return Ssw;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Ssw=G},{mode:_.Px("kevlar_poly_si_batch_j067")?1:2});var qsZ;var t4X;var lh=function(){var G=_.m.apply(this,arguments)||this;G.buttonUpdate=_.R("web_modern_buttons");G.hideLegacyBanner=_.R("enable_dsa_one_click_ata_translators_infeed_elements");G.adInfoButtonStyle="mono";G.adInfoButtonType="text";G.noDotAdBadge=!0;return G};
_.K(lh,_.m);_.V=lh.prototype;_.V.getOnLayoutVisibleCallback=function(){var G=_.Lz("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.onLayoutVisibleCallback:null};
_.V.getLayoutId=function(){var G=_.Lz("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.layoutId:null};
_.V.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 G=this.data.image.thumbnail.thumbnails[0];this.imageSrc=G.url?_.Fy(G.url):void 0;this.imageWidth=G.width||0;this.imageHeight=G.height||0}this.data.clickthroughEndpoint&&_.a(this.data.clickthroughEndpoint,_.G2)&&(G=_.a(this.data.clickthroughEndpoint,_.G2).url,_.R("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
G||"":G?(G=_.Fy(G),this.clickThroughUrl=_.nj(G)):this.clickThroughUrl=void 0);(G=this.getOnLayoutVisibleCallback())&&G()}};
_.V.onClick=function(G){_.mO(_.na(G),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(G)};
_.V.handleClick=function(){var G=this;this.data&&this.data.clickthroughEndpoint&&(_.xy(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(e){G.macroReplacementBehavior.sendServiceRequestAction([e])}),_.Pi(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.V.onLoad=function(){_.UW(this.hostElement,"yt-refit-popups-action")};
_.iY.Object.defineProperties(lh.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var G=_.Lz("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var G=_.Lz("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.interactionLoggingClientData:null}}});
lh.prototype.onLoad=lh.prototype.onLoad;lh.prototype.onClick=lh.prototype.onClick;lh.prototype.dataChanged=lh.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],lh.prototype,"rendererBehavior",void 0);_.B([_.k(fWX.YtMacroReplacementBehavior),_.x("design:type",Object)],lh.prototype,"macroReplacementBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],lh.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],lh.prototype,"buttonUpdate",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],lh.prototype,"hideLegacyBanner",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],lh.prototype,"adInfoButtonStyle",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],lh.prototype,"adInfoButtonType",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],lh.prototype,"macros",null);
_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],lh.prototype,"interactionLoggingClientData",null);_.B([_.n(),_.x("design:type",String)],lh.prototype,"clickThroughUrl",void 0);_.B([_.n(),_.x("design:type",_.pj)],lh.prototype,"imageSrc",void 0);_.B([_.n(),_.x("design:type",Number)],lh.prototype,"imageWidth",void 0);_.B([_.n(),_.x("design:type",Number)],lh.prototype,"imageHeight",void 0);_.B([_.n(),_.x("design:type",Object)],lh.prototype,"noDotAdBadge",void 0);
_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lh.prototype,"dataChanged",null);_.B([_.Om("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],lh.prototype,"onClick",null);_.B([_.Om("load"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lh.prototype,"onLoad",null);_.B([_.c({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],lh);
_.A(lh,"ytd-image-companion-renderer",function(){if(t4X!==void 0)return t4X;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return t4X=G},{mode:_.Px("kevlar_poly_si_batch_j067")?1:2});var gcj;var R9=function(){return _.m.apply(this,arguments)||this};
_.K(R9,_.m);_.V=R9.prototype;_.V.dataChanged=function(){this.set("data.adBadge",R9.JSC$23176_DEFAULT_AD_BADGE_RENDERER);if(this.data){var G=this.getOnLayoutVisibleCallback();G&&G()}};
_.V.getOnLayoutVisibleCallback=function(){var G=_.Lz("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.onLayoutVisibleCallback:null};
_.V.getLayoutId=function(){var G=_.Lz("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.layoutId:null};
_.V.onCompanionClicked=function(G){this.data&&(G.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.Pi(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.V.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var G=_.Ff(),e=this.getLayoutId(),r=this.data.clickToAdvSiteEndpoint;G&&e&&_.R("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?G.getPlayerPromise().then(function(Z){(new _.nX(Z)).executeCommand(r,e)}):_.xy(this.hostElement,"yt-navigate",{endpoint:r})}};
_.V.sendTrackingPings=function(G){if(G&&G.length!==0&&G[0].loggingUrls&&(G=G[0].loggingUrls.map(this.getBaseUrl)))for(var e=0;e<G.length;e++)_.LF(G[e])};
_.V.getBaseUrl=function(G){return G.baseUrl||""};
_.iY.Object.defineProperties(R9.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var G=_.Lz("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.interactionLoggingClientData:null}}});
R9.prototype.onCompanionClicked=R9.prototype.onCompanionClicked;R9.prototype.dataChanged=R9.prototype.dataChanged;R9.JSC$23176_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.OK("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],R9.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],R9.prototype,"data",void 0);_.B([_.hs("#title"),_.x("design:type",HTMLElement)],R9.prototype,"shopTitle",void 0);
_.B([_.iD("data.impressionEndpoints"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],R9.prototype,"dataChanged",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],R9.prototype,"interactionLoggingClientData",null);_.B([_.Om("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],R9.prototype,"onCompanionClicked",null);
_.B([_.c({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],R9);
_.A(R9,"ytd-shopping-companion-renderer",function(){if(gcj!==void 0)return gcj;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return gcj=G},{mode:1});_.J_(_.y(function(G){var e=G.data;G=_.vJ({visibilityCallback:function(Z){var O,M=(O=e().interaction)==null?void 0:O.onFirstVisible;Z&&M&&_.HQ(M)},
showOption:_.Ep});var r=_.fW(function(){return e().interaction},YQt);
_.JB(function(){var Z,O;O=(O=_.Lz("yt.www.ads.eventcache.getLastCompanionData"))?(O=O())&&O.onLayoutVisibleCallback:null;(Z=O)==null||Z()},"Cn");
return _.v("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.ev(function(Z){_.UW(Z.currentTarget,"yt-refit-popups-action")}),
el:_.cQ(G,r),"aria-label":function(){var Z,O;return(Z=e().interaction)==null?void 0:(O=Z.accessibility)==null?void 0:O.label}},_.v("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.v(_.E2,{data:function(){return e().adImage}},{adImageViewModel:function(Z){return _.v(_.fw,{data:Z.data,
targetHeight:80,customCommandResolver:YQt})}})),_.v("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.v("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.v(_.E2,{data:function(){return e().adBadge}},{adBadgeViewModel:function(Z){return _.v(_.tE,{data:Z.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.v("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.v(_.E2,{data:function(){return e().menu}},{buttonViewModel:_.wF}))))},"Dn"),"banner-image-layout-view-model",{props:{data:_.N6}});_.J_(_.y(function(G){var e=G.data;G=_.vJ({visibilityCallback:function(Z){var O,M=(O=e().interaction)==null?void 0:O.onFirstVisible;Z&&M&&_.HQ(M)},
showOption:_.Ep});var r=_.fW(function(){return e().interaction},yAv);
_.JB(function(){var Z,O;O=(O=_.Lz("yt.www.ads.eventcache.getLastCompanionData"))?(O=O())&&O.onLayoutVisibleCallback:null;(Z=O)==null||Z()},"En");
return _.v("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.cQ(G,r)},_.v("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.v(_.E2,{data:function(){return e().adImage}},{adImageViewModel:function(Z){return _.v(_.fw,{data:Z.data,
targetHeight:80,customCommandResolver:yAv})}})),_.v("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.v("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.v(_.E2,{data:function(){return e().adAvatarLockup}},{adAvatarLockupViewModel:function(Z){return _.v(iLz,{data:Z.data,
customCommandResolver:yAv})}})),_.v(_.E2,{data:function(){return e().adButton}},{adButtonViewModel:function(Z){return _.v(_.bK,{data:Z.data,
customCommandResolver:yAv})}}),_.v("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.v(_.E2,{data:function(){return e().menu}},{buttonViewModel:_.wF}))))},"Fn"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.N6}});var lR2={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"},ji=function(){var G=_.m.apply(this,arguments)||this;G.updateCompanionDataJobId=0;G.contentVideoId=null;G.player=null;G.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return G};
_.K(ji,_.m);_.V=ji.prototype;_.V.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:lR2}}};
_.V.attached=function(){var G=this,e=_.Ff();e&&e.getPlayerPromise().then(function(r){G.getCachedDataAndListen(r)})};
_.V.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.V.updateRendererStamper=function(){var G={};if(this.data)for(var e in lR2)if(this.data[e]){G[e]=this.data[e];break}if(this.oneofRenderer!=void 0||Object.keys(G).length)this.oneofRenderer=G};
_.V.getCachedDataAndListen=function(G){var e=this.retrieveCachedCompanionData();e&&Object.keys(e).length&&this.receiveCompanionData(e);this.ytPlayerListenerBehavior.listenToPlayerEvent(G,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=G};
_.V.retrieveCachedCompanionData=function(){return _.O_.yt&&_.O_.yt.www&&_.O_.yt.www.ads&&_.O_.yt.www.ads.eventcache&&_.O_.yt.www.ads.eventcache.getLastCompanionData?_.O_.yt.www.ads.eventcache.getLastCompanionData():null};
_.V.receiveCompanionData=function(G){G&&Object.keys(G).length?(this.contentVideoId=G.contentVideoId,this.setCompanionData(G)):this.setCompanionData(G)};
_.V.setCompanionData=function(G){this.cancelPendingCompanionAdJobs();if(G){this.updateCompanionDataJobId=0;for(var e in lR2)lR2.hasOwnProperty(e)&&(this.data[e]=void 0);G.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",G.shoppingCompanionCarouselRenderer):G.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",G.imageCompanionAdRenderer):G.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",G.actionCompanionAdRenderer),_.UW(this.hostElement,
"yt-hide-unlimited-offer-module"),_.UW(this.hostElement,"yt-hide-tvfilm-offer-module")):G.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",G.bannerImageLayoutViewModel):G.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",G.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.V.dataChanged=function(){var G=this,e=_.Ff();e?e.getPlayerPromise().then(function(r){G.contentVideoId&&r.getVideoUrl().includes("v="+G.contentVideoId)||(G.cancelPendingCompanionAdJobs(),G.updateRendererStamper())}):_.GG(Error("Zo"))};
_.V.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.A0.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.V.handleCompanionAdClicked=function(G,e){this.player.onAdUxClicked(G,e);this.player.pauseVideo()};
ji.prototype.dataChanged=ji.prototype.dataChanged;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],ji.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],ji.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ji.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],ji.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.GJ.YtPlayerListenerBehavior),_.x("design:type",_.ew)],ji.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ji.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],ji.prototype,"oneofRenderer",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ji.prototype,"dataChanged",null);_.B([_.c({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],ji);
_.A(ji,"ytd-companion-slot-renderer",function(){if(qsZ!==void 0)return qsZ;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return qsZ=G},{mode:_.Px("kevlar_poly_si_batch_j067")?
1:2});var Rrt;var a9=function(){return _.m.apply(this,arguments)||this};
_.K(a9,_.m);a9.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
a9.prototype.dataChanged=a9.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],a9.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],a9.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],a9.prototype,"companionSlotData",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],a9.prototype,"dataChanged",null);
_.B([_.c({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],a9);
_.A(a9,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(Rrt!==void 0)return Rrt;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Rrt=G},{mode:1});var jQq;var Xj=function(){var G=_.m.apply(this,arguments)||this;G.skinnyMode=!1;G.COMPACT_EVENT_COUNT=4;G.onShelfToggleButtonTap=function(){G.logTap(G.data);G.showingMore=!G.showingMore};
G.onShelfToggleButtonFocus=function(){G.showingMore||(G.logTap(G.data),G.showingMore=!0,_.DE(G,function(){var e=G.COMPACT_EVENT_COUNT-1,r;(r=_.z1(G.hostElement).querySelector("#event-"+e))==null||r.focus()}))};
return G};
_.K(Xj,_.m);_.V=Xj.prototype;_.V.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.V.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.V.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.ZQ(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.ZQ(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.ZQ(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.ZQ(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.ZQ(this.infoTooltip,this.infoTooltip.hide))};
_.V.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.ZQ(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.ZQ(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.ZQ(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.ZQ(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.ZQ(this.infoTooltip,this.infoTooltip.hide))};
_.V.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)};
_.V.onShowingMoreChanged=function(){var G;this.showingMoreChanged((G=this.showingMore)!=null?G:!1)};
_.V.showingMoreChanged=function(G){var e=this.get("data.events")||[];this.set("restEvents",e.slice(1,G?e.length:this.COMPACT_EVENT_COUNT).map(function(r){return r.ticketEventRenderer}));
e.slice(0,G?e.length:this.COMPACT_EVENT_COUNT).forEach(function(r){var Z=_.l4();r=r.ticketEventRenderer.trackingParams;_.go()&&Z&&r&&(r=_.b1(r),Z&&_.p_(Z,r))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.V.computeAriaLabel=function(G){return G.subtitle1+", "+G.subtitle2};
_.V.logTap=function(G){_.go()&&this.ytRendererBehavior.logExplicitClick(G)};
_.V.isKeyboardAction=function(G){return this.get("detail.x",G)===0&&this.get("detail.y",G)===0};
_.V.onFirstEventTap=function(G){G.target&&this.handleTap(G.target,this.firstEvent,this.isKeyboardAction(G))};
_.V.onTicketLinkTap=function(G){G.target&&this.handleTap(G.target,G.model.item,this.isKeyboardAction(G))};
_.V.handleTap=function(G,e,r){if(e.buttonCommand)if(e.hasMultipleOffers)Object.assign(_.a(e.buttonCommand,_.sP),{properties:{source:r?"keyboard":"tap"}}),this.logTap(e),this.popupPositionTarget=G,_.Wi(this.hostElement,[e.buttonCommand],this.hostElement);else{var Z;if((Z=_.a(e.buttonCommand,_.G2))==null?0:Z.url)this.logTap(e),_.er(window,_.a(e.buttonCommand,_.G2).url)}};
Xj.prototype.onShowingMoreChanged=Xj.prototype.onShowingMoreChanged;Xj.prototype.dataChanged=Xj.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Xj.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Xj.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],Xj.prototype,"firstEvent",void 0);_.B([_.n(),_.x("design:type",Object)],Xj.prototype,"restEvents",void 0);_.B([_.n(),_.x("design:type",String)],Xj.prototype,"imageUrl",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Xj.prototype,"showingMore",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Xj.prototype,"canShowMore",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Xj.prototype,"skinnyMode",void 0);_.B([_.n(),_.x("design:type",HTMLElement)],Xj.prototype,"popupPositionTarget",void 0);_.B([_.hs("#banner-info-tooltip"),_.x("design:type",Object)],Xj.prototype,"infoTooltip",void 0);
_.B([_.hs("#info-container"),_.x("design:type",HTMLElement)],Xj.prototype,"infoContainer",void 0);_.B([_.hs("#shelf-toggler"),_.x("design:type",HTMLElement)],Xj.prototype,"shelfToggleButton",void 0);_.B([_.hs("#separator"),_.x("design:type",HTMLDivElement)],Xj.prototype,"separator",void 0);_.B([_.n(),_.x("design:type",String)],Xj.prototype,"shelfTogglerLabelText",void 0);_.B([_.n(),_.x("design:type",String)],Xj.prototype,"shelfTogglerIcon",void 0);
_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Xj.prototype,"dataChanged",null);_.B([_.iD("showingMore"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Xj.prototype,"onShowingMoreChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],Xj);
_.A(Xj,"ytd-ticket-shelf-renderer",function(){if(jQq!==void 0)return jQq;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return jQq=G},{mode:1});var aR_;var Xgy;var KfX=function(){return _.m.apply(this,arguments)||this};
_.K(KfX,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],KfX.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],KfX.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],KfX);
_.A(KfX,"ytd-comments-entry-point-message-renderer",function(){if(Xgy!==void 0)return Xgy;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Xgy=G},{mode:1});var fR$;var K3=function(){return _.m.apply(this,arguments)||this};
_.K(K3,_.m);_.iY.Object.defineProperties(K3.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.teaserAvatar)}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],K3.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],K3.prototype,"data",void 0);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],K3.prototype,"hasAvatar",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],K3);
_.A(K3,"ytd-comments-entry-point-teaser-renderer",function(){if(fR$!==void 0)return fR$;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return fR$=G},{mode:1});var krw;var HLk=function(){return _.m.apply(this,arguments)||this};
_.K(HLk,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],HLk.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],HLk.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],HLk);
_.A(HLk,"ytd-comments-simplebox-renderer",function(){if(krw!==void 0)return krw;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return krw=G},{mode:1});var f3=function(){var G=_.m.apply(this,arguments)||this;G.fullHeight=!_.R("comment_teaser_full_height_kill_switch")&&_.R("kevlar_watch_grid");return G};
_.K(f3,_.m);f3.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"}}}};
f3.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
f3.prototype.onTap=function(){var G=this.tapCommand;G&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(G))};
f3.prototype.onKeyUp=function(G){if(G.keyCode===13)this.onTap()};
_.iY.Object.defineProperties(f3.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null?0:G.onTap)return this.data.onTap;var e,r;if(((e=this.data)==null?0:e.teaserContent)||((r=this.data)==null?0:r.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)!=null&&G.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
f3.prototype.onKeyUp=f3.prototype.onKeyUp;f3.prototype.onTap=f3.prototype.onTap;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],f3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],f3.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],f3.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],f3.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],f3.prototype,"fullHeight",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],f3.prototype,"tapCommand",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],f3.prototype,"simpleboxPlaceholder",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],f3.prototype,"hasSimpleboxPlaceholder",null);
_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],f3.prototype,"simpleboxAvatar",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],f3.prototype,"teaserContent",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],f3.prototype,"hasTeaserContent",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],f3.prototype,"teaserAvatar",null);
_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],f3.prototype,"hasTeaserAvatar",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],f3.prototype,"messageText",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],f3.prototype,"contentRenderer",null);_.B([_.d("data"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],f3.prototype,"hasContents",null);
_.B([_.d("data"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],f3.prototype,"hasContentRenderer",null);_.B([_.Om("click"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],f3.prototype,"onTap",null);_.B([_.Om("keypress"),_.x("design:type",Function),_.x("design:paramtypes",[_.t8]),_.x("design:returntype")],f3.prototype,"onKeyUp",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],f3);
_.A(f3,"ytd-comments-entry-point-header-renderer",function(){if(aR_!==void 0)return aR_;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return aR_=G},{mode:1});var dhw;_.J_(_.plW,"yt-animated-rolling-number",{props:{numberText:_.N6,numberValue:_.N6,heightPx:_.N6,fontSizeMultiplier:_.N6,shouldAnimate:_.N6,forceRollUp:_.N6}});var ocZ=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),sQX={numberText:"",heightPx:2*ocZ,shouldAnimate:!1},kd=function(){var G=_.m.apply(this,arguments)||this;G.usingAnimatedComponents=!0;G.wasDetailed=!1;G.JSC$23213_browserSupportsAnimation=_.R("web_supports_animations_api");G.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};G.detailed=!1;G.shouldAnimate=!1;G.viewCountProps=sQX;G.dateTextProps=
sQX;G.metadataBadgesInDescription=_.R("web_metadata_badges_in_description");return G};
_.K(kd,_.m);_.V=kd.prototype;_.V.attached=function(){var G=this;_.v_().resolve(_.TQ).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(e){G.set("videoPrimaryInfoRenderer.subtitle",e)})};
_.V.detached=function(){_.v_().resolve(_.TQ).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.V.resetAnimationState=function(){this.shouldAnimate=!1};
_.V.updateDynamicMetadata=function(){if(this.JSC$23213_browserSupportsAnimation){if(!this.detailed){var G,e,r,Z;var O=(G=this.videoPrimaryInfoRenderer)==null?void 0:(e=G.viewCount)==null?void 0:(r=e.videoViewCountRenderer)==null?void 0:(Z=r.extraShortViewCount)==null?void 0:Z.simpleText;var M,T,E,b;var w=(M=this.videoPrimaryInfoRenderer)==null?void 0:(T=M.viewCount)==null?void 0:(E=T.videoViewCountRenderer)==null?void 0:(b=E.shortViewCount)==null?void 0:b.simpleText}if(!w){var q,t,g,l;O=(q=this.videoPrimaryInfoRenderer)==
null?void 0:(t=q.viewCount)==null?void 0:(g=t.videoViewCountRenderer)==null?void 0:(l=g.unlabeledViewCountValue)==null?void 0:l.simpleText;var X,H,I,C;w=(X=this.videoPrimaryInfoRenderer)==null?void 0:(H=X.viewCount)==null?void 0:(I=H.videoViewCountRenderer)==null?void 0:(C=I.viewCount)==null?void 0:C.simpleText}var u,P,F;G=Number((u=this.videoPrimaryInfoRenderer)==null?void 0:(P=u.viewCount)==null?void 0:(F=P.videoViewCountRenderer)==null?void 0:F.originalViewCount);var J,U;u=(J=this.videoPrimaryInfoRenderer)==
null?void 0:(U=J.relativeDateText)==null?void 0:U.simpleText;var e$;J=!((e$=this.videoPrimaryInfoRenderer)==null||!e$.relativeDateText);if(O&&w&&G&&(u||!J)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;e$=w.split(new RegExp("("+O+")"));O=_.nQ(e$[0]);var Dq;w={numberText:(Dq=e$[1])!=null?Dq:"",numberValue:G,heightPx:2*ocZ,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var bF;Dq=((bF=e$[2])!=null?bF:"")+"  ";this.setViewCount(w,O,_.nQ(Dq));
if(!this.detailed&&J){O=u.split(/(\d+)/);bF=_.nQ(O[0]);var Kf;Dq={numberText:(Kf=O[1])!=null?Kf:"",heightPx:2*ocZ,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var ti;Kf=((ti=O[2])!=null?ti:"")+"  ";this.setDateText(Dq,bF,_.nQ(Kf))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.V.setViewCount=function(G,e,r){_.mG(e)!==_.mG(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=e);this.viewCountProps.numberText!==(G==null?void 0:G.numberText)&&(this.viewCountProps=G||sQX);_.mG(r)!==_.mG(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=r)};
_.V.setDateText=function(G,e,r){_.mG(e)!==_.mG(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=e);this.dateTextProps.numberText!==(G==null?void 0:G.numberText)&&(this.dateTextProps=G||sQX);_.mG(r)!==_.mG(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=r)};
_.V.onYtUpdateViewershipAction=function(G){this.videoPrimaryInfoRenderer&&(_.a(G,Ozt).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.a(G,Ozt).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.a(G,Ozt).viewCount)))};
_.V.onYtUpdateDateTextAction=function(G){if(this.videoPrimaryInfoRenderer){G=_.a(G,_.rHt).dateText;this.shouldAnimate=!0;var e;((e=this.videoPrimaryInfoRenderer)==null?0:e.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",G):this.set("videoPrimaryInfoRenderer.dateText",G)}};
_.iY.Object.defineProperties(kd.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return xMZ(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.mG(xMZ(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.mG(this.viewCountPreNumberText),this.viewCountProps.numberText,_.mG(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.mG(this.dateTextPreNumberText),this.dateTextProps.numberText,_.mG(this.dateTextPostNumberText)].join("")}}});
kd.prototype.updateDynamicMetadata=kd.prototype.updateDynamicMetadata;kd.prototype.resetAnimationState=kd.prototype.resetAnimationState;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],kd.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],kd.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],kd.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],kd.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],kd.prototype,"videoPrimaryInfoRenderer",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kd.prototype,"detailed",void 0);_.B([_.n(),_.x("design:type",Object)],kd.prototype,"shouldAnimate",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kd.prototype,"viewCountPreNumberText",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kd.prototype,"viewCountProps",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kd.prototype,"viewCountPostNumberText",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kd.prototype,"dateTextPreNumberText",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kd.prototype,"dateTextProps",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kd.prototype,"dateTextPostNumberText",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kd.prototype,"metadataBadgesInDescription",void 0);_.B([_.d("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.x("design:type",Object),_.x("design:paramtypes",[])],kd.prototype,"infoText",null);
_.B([_.d("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.x("design:type",String),_.x("design:paramtypes",[])],kd.prototype,"descriptionInfoTooltipText",null);_.B([_.d("detailed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kd.prototype,"showDescriptionInfoTooltip",null);
_.B([_.d("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.x("design:type",String),_.x("design:paramtypes",[])],kd.prototype,"animatedViewCountAccessibilityLabel",null);_.B([_.d("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.x("design:type",String),_.x("design:paramtypes",[])],kd.prototype,"animatedDateTextAccessibilityLabel",null);
_.B([_.Me("videoPrimaryInfoRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kd.prototype,"resetAnimationState",null);_.B([_.Me("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kd.prototype,"updateDynamicMetadata",null);
_.B([_.c({disableElementRegistration:!0,is:"ytd-watch-info-text"})],kd);
_.A(kd,"ytd-watch-info-text",function(){if(dhw!==void 0)return dhw;var G=document.createElement("template");_.f(G,'\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  <template is="dom-if" if="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    </yt-formatted-string>\n  </template>\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return dhw=G},{mode:1});var QQt;var IRv="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var pg2=_.y(function(G){var e=G.data;var r=G.setTapCommand;_.Y8(function(){var Z=_.X0(e().onTap);r(Z)},"CLm0Xe");
return _.v("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.v(_.E2,{data:function(){return e().avatar}},{avatarViewModel:_.yy}),_.v("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.v("span",null,function(){return e().simpleboxText})))},"Hn");var Cj$=_.y(function(G){return _.v("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.v(_.S,{cond:function(){return _.a(G.data().avatar,_.aH)},
then:function(e){return _.v(_.yy,{data:e,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.v("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.v(_.Wh,{text:function(){return G.data().teaserText}})))},"In");var uHX=_.y(function(G){var e=G.data;var r=G.setTapCommand;_.Y8(function(){var Z=_.X0(e().onTap);r(Z)},"qxjCCd");
return _.v("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.v(_.E2,{data:function(){return e().teasers}},{commentsEntryPointTeaserViewModel:Cj$}))},"Kn");var nct=_.y(function(G){var e=G.data;var r=G.setTapCommand;_.Y8(function(){var Z=_.X0(e().onTap);r(Z)},"CRZByf");
return _.v("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.v(_.Wh,{text:function(){return e().messageText}}))},"Mn");var mhk=_.y(function(G){var e=G.data;var r=G.setTapCommand;var Z=G.isDisabled;_.Y8(function(){var O=(Z==null?0:Z())?void 0:_.X0(e().onTap);r(O)},"GZxRqd");
return _.v("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.v(_.V$,{icon:function(){return e().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.v(_.S,{cond:function(){return e().image},
then:function(O){return _.v(_.nC,{data:O,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.v(_.Wh,{text:function(){return e().text},
className:function(){return e().image||e().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.v(_.E2,{data:function(){return e().button}},{buttonViewModel:function(O){return _.v(_.wF,{data:O.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:Z==null?void 0:Z()}}})}}))},"On");var cGX=_.y(function(G){var e=G.data;var r=G.itemIndex;var Z=G.selectedIndex;var O=G.indexUpdatedCallback;var M=G.observer;G=G.title;var T=_.hT("yt-carousel-item-view-model",function(t){M&&M().observe(t)}),E=function(t){r()===Z()&&O(t)},b=_.Eb(tKX),w=_.Eb(_.Vl$),q=function(){var t,g,l,X,H;
return((t=e())==null?void 0:t.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!b()||((g=e())==null?void 0:g.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((l=w())==null?void 0:l.includes("PAposts_by_host"))||((X=e())==null?void 0:X.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((H=w())==null?void 0:H.includes("PAyouchat"))};
return _.v("yt-carousel-item-view-model",{el:T,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":G},_.v(_.E2,{data:function(){var t,g;return(g=(t=_.a(e().carouselItem,f2t))==null?void 0:t.textCarousel)!=null?g:e().carouselItem}},{textCarouselItemViewModel:function(t){return _.v(mhk,{data:t.data,
setTapCommand:E,isDisabled:q})},
commentTeaserCarouselItemViewModel:function(t){return _.v(uHX,{data:t.data,setTapCommand:E})},
commentInputBoxCarouselItemViewModel:function(t){return _.v(pg2,{data:t.data,setTapCommand:E})},
commentsEntryPointMessageViewModel:function(t){return _.v(nct,{data:t.data,setTapCommand:E})}}))},"Pn");var YsX=_.y(function(G){var e=G.numDots;var r=G.activeIndex;return _.v("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.v(_.u6,{each:function(){return Array.from({length:e()})},
keyBy:"INDEX"},function(Z,O){return _.v("div",{class:function(){var M={};return _.qo("ytCarouselDotsShapeDot",(M.ytCarouselDotsShapeDotActive=O===r(),M))}})}))},"Qn");var yG2=_.y(function(G){var e=G.data;var r=G.handleCarouselNavigation;var Z=G.numItems;var O=G.selectedIndex;var M=function(){return{disabled:O()===0}},T=function(){return{disabled:O()===Z()-1}};
return _.v("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.v("div",null,_.v("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return e().title}),_.v(_.S,{cond:function(){return e().subtitle},
then:function(E){return _.v("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return e().subtitleAccessibilityText}},E)}})),_.v(_.S,{cond:function(){return Z()>1},
then:function(){return _.v("div",{class:"ytCarouselTitleViewModelNavigation"},_.v(YsX,{numDots:Z,activeIndex:O}),_.v(_.S,{cond:function(){return e().previousButton},
then:function(E){return _.v(_.E2,{data:E},{buttonViewModel:function(b){return _.v(_.wF,{data:b.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return r(-1)},
buttonOverrides:M})}})}}),_.v(_.S,{cond:function(){return e().nextButton},
then:function(E){return _.v(_.E2,{data:E},{buttonViewModel:function(b){return _.v(_.wF,{data:b.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return r(1)},
buttonOverrides:T})}})}}))}}))},"Rn");_.J_(_.y(function(G){var e=G.data;var r,Z=_.hT("yt-video-metadata-carousel-view-model"),O=_.hT("div",function(J){var U=function(){var e$=J.offsetWidth*H(),Dq=24*(H()-1);g(e$+Dq)};
U();window.ResizeObserver&&(r=new ResizeObserver(U),r.observe(J))}),M=_.xZ("HTML_DIR")==="rtl",T=!1,E=0,b=0;
G=_.h(_.XQ(0,void 0,"M49TDf"));var w=G.next().value,q=G.next().value;G=_.h(_.XQ(0,void 0,"zLIok"));var t=G.next().value,g=G.next().value;G=_.h(_.XQ(!1,void 0,"bhelhc"));var l=G.next().value,X=G.next().value,H=function(){var J,U,e$;return(e$=(J=e())==null?void 0:(U=J.carouselTitles)==null?void 0:U.length)!=null?e$:0},I=function(){O.value&&O.value.scrollLeft!==E&&q((M?O.value.scrollLeft<E:O.value.scrollLeft>E)?Math.min(w()+1,H()-1):Math.max(w()-1,0))},C;
window.IntersectionObserver&&(C=new IntersectionObserver(function(J){J=_.h(J);for(var U=J.next();!U.done;U=J.next())if(U.value.isIntersecting){if(T){T=!1;break}I()}else q(b)},{threshold:.2}));
_.Y8(function(){if(O.value){var J=(M?-1:1)*(t()/H()+12)*(l()&&C?b:w());typeof O.value.scrollTo==="function"?O.value.scrollTo({left:J,behavior:"smooth"}):O.value.scrollLeft=J;E=J;b=l()&&C?b:w()}},"s9rbgc");
var u,P=function(J){u=J};
_.yD(function(){var J;(J=r)==null||J.disconnect();var U;(U=C)==null||U.disconnect()});
var F=function(J){J=w()+J;J>=0&&J<H()&&(T=!0,q(J))};
return _.v("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:Z,"on:click":_.ev(function(J){if(_.g8(_.tI(J),Z.value,["BUTTON".toString()])||!u)return!1;_.v_().resolve(_.$1).resolveCommand(u,{forceClickLogging:!0});return!1}),
"on:touchstart":_.ev(function(){X(!0);return!1}),
"on:touchend":_.ev(function(){C||I();X(!1);return!1}),
hidden:function(){var J,U;return!((J=e())==null?0:(U=J.carouselItems)==null?0:U.length)}},_.v("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.v(_.S,{cond:function(){return e().carouselTitles},
then:function(J){return _.v(_.E2,{data:function(){return J()[l()&&C?b:w()]}},{carouselTitleViewModel:function(U){return _.v(yG2,{data:U.data,
handleCarouselNavigation:F,numItems:H,selectedIndex:w})}})}})),_.v("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:O},_.v("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+t()+"px;"}},_.v(_.S,{cond:function(){return e().carouselItems},
then:function(J){return _.v(_.u6,{each:J},function(U,e$){return _.v(_.E2,{data:function(){return U}},{carouselItemViewModel:function(Dq){return _.v(cGX,{data:Dq.data,
itemIndex:e$,selectedIndex:w,indexUpdatedCallback:P,observer:C,title:function(){a:{var bF=e$();var Kf,ti=(Kf=e())==null?void 0:Kf.carouselTitles;if(ti&&(bF=ti[bF])){var Ry;bF=(Ry=_.a(bF,KVt))==null?void 0:Ry.title;break a}bF=void 0}return bF}})}})})}}))))},"Tn"),"yt-video-metadata-carousel-view-model",{props:{data:_.N6}});var AGy=_.R("web_action_buttons_update_owner_width")?32:12,H8=function(){var G=_.m.apply(this,arguments)||this;G.isHovering=!1;G.enableColorSampling=_.R("web_delhi_colorful_sd");G.metadataBadgesInDescription=_.R("web_metadata_badges_in_description");G.descriptionCollapsed=!0;G.useFadedScrimDescription=_.R("kevlar_enable_faded_scrim_on_description");G.skinnyMode=!1;G.playlist=!1;G.isDark=document.documentElement.hasAttribute("dark");G.disableVideoOwnerOnTap=_.R("swatchie_video_owner_on_tap_ks");G.swatcherooDelayLoad=
_.R("swatcheroo_enable_ghost_cards");G.primaryMenuWidth=0;G.videoId="";G.titleHeadlineXs=_.R("web_watch_typography_title_headline_xs");G.titleHeadlineS=_.R("web_watch_typography_title_headline_s");G.titleHeadlineM=_.R("web_watch_typography_title_headline_m");G.titleHashtagBlackLinkified=_.R("web_title_hashtag_black_linkified");G.titleHashtagGreyLinkified=_.R("web_title_hashtag_grey_linkified");G.actionButtonsUpdateOwnerWidth=_.R("web_action_buttons_update_owner_width");G.shouldForceIconOnly=!1;G.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};G.isFullscreen=!1;G.isTheaterMode=!1;return G};
_.K(H8,_.m);_.V=H8.prototype;_.V.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.V.updateOwnerAndDescriptionPosition=function(){_.R("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.Qz(this.bottomRowElement,this.ownerElement)):(_.Qz(this.bottomRowElement,this.descriptionElement),_.Qz(this.topRowElement,this.ownerElement)))};
_.V.titleOnTap=function(G){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.mO(_.na(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var e;((e=window.getSelection())==null?0:e.toString().length)||this.handleExpandDescriptionCommands()}};
_.V.videoOwnerOnTap=function(G){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.mO(_.na(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.V.detached=function(){var G=this,e;return _.D(function(r){(e=G.resizeObserver)==null||e.disconnect();_.HL(r)})};
_.V.maybeAttachResizeObserver=function(){var G=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.Zp(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){G.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.V.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var G=this.hostElement.clientWidth,e=Math.max(this.largerItemWrap?400:350,G/2-AGy);_.R("web_action_buttons_update_owner_width")&&(e=this.ownerElement.clientWidth+AGy);this.actionsOnSeparateLine=this.primaryMenuWidth>G-e?!0:!1}};
_.V.stripAttributedDescription=function(G){return{content:G.content.replace(/[\r\n]{2,}/g,"\n")}};
_.V.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.R("web_modern_buttons"),forceIconButton:!_.R("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:_.R("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"}}}};
_.V.videoPrimaryInfoRendererChanged=function(){var G;if((G=this.videoPrimaryInfoRenderer)==null?0:G.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.V.videoSecondaryInfoRendererChanged=function(){var G,e;(G=this.descriptionInlineExpander)==null||(e=G.collapse)==null||e.call(G);this.descriptionExpandClientVe=_.L1(110509);this.descriptionCollapseClientVe=_.L1(110510);G=_.l4();e=_.go();G&&e&&(_.R("combine_ve_grafts")?(_.Xr(_.h_(),this.descriptionExpandClientVe,e),_.Xr(_.h_(),this.descriptionCollapseClientVe,e)):_.Il(G,e,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.V.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.V.updateTopLevelIconsOnly=function(){var G=this;_.R("top_level_update_killswitch")||this.menu&&_.A0.addLowPriorityJob(function(){G.menu.topLevelIconsOnly=G.skinnyMode},_.qt("swathceroo_delay_flexible_menu_update",100))};
_.V.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.R("web_action_buttons_minimize_subscribe")};
_.V.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.V.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.V.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.V.onYtTextInlineExpanderExpandedChanged=function(){if(!_.R("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var G,e;(e=(G=this.structuredDescriptionContentRendererElement).resize)==null||e.call(G)}};
_.V.onRenderStamperFinished=function(G){(G==null?void 0:G.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.V.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.V.onYtExpanderLessTapped=function(){var G,e=(G=this.videoSecondaryInfoRenderer)==null?void 0:G.showLessCommand;e&&this.ytComponentBehavior.resolveCommand(e)};
_.V.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.V.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.V.onDescriptionClick=function(G){if(!_.mO(_.na(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var e;((e=window.getSelection())==null?0:e.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.R("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.V.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.V.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.V.logCollapseClick=function(){var G=_.l4();G&&this.descriptionCollapseClientVe&&_.n_(G,this.descriptionCollapseClientVe)};
_.V.logExpandClick=function(){var G=_.l4();G&&this.descriptionExpandClientVe&&_.n_(G,this.descriptionExpandClientVe)};
_.V.collapseDescription=function(){this.descriptionCollapsed=!0};
_.V.scrollToTopOfContainer=function(){_.Pi(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.V.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.V.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.V.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.V.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var G,e;(e=(G=this.descriptionInlineExpander).resize)==null||e.call(G)}else _.FH(new _.Cr("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var r;(r=this.menu)==null||r.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.V.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var G,e,r,Z,O=_.R("web_action_buttons_update_owner_width")?(r=(G=_.z1(this.menu).querySelector("#button-shape"))==null?void 0:G.clientWidth)!=null?r:0:(Z=(e=_.z1(this.menu).querySelector("#button"))==null?void 0:e.clientWidth)!=null?Z:0,M,T;G=((T=(M=_.z1(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:M.clientWidth)!=null?T:0)+8+O;var E,b;O=(b=(E=_.z1(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:E.children.length)!=null?b:2;G<=8*O||(this.primaryMenuWidth=G)}};
_.V.onYtUpdateTitleAction=function(G){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.a(G,ZzZ).title)};
_.V.onYtUpdateDescriptionAction=function(G){if(G=_.a(G,_.IoC)){var e,r=!((e=this.videoSecondaryInfoRenderer)==null||!e.attributedDescription);G.isEmpty||!G.description&&!G.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):G.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",G.attributedDescription):G.description&&(r?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.l1(G.description)):this.set("videoSecondaryInfoRenderer.description",G.description))}};
_.V.onYtDarkModeToggledAction=function(G){this.isDark=G};
_.V.registerPanel=function(){if(!_.R("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var G=_.R("web_watch_imax_theater_mode")&&this.isTheaterMode;G=_.R("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||G;var e=_.v_().resolve(_.uB);e&&!G&&e.registerPanel("engagement-panel-structured-description",this)}};
_.V.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.V.parseColorSamplingData=function(){var G;if(_.R("web_delhi_colorful_sd")&&((G=this.structuredDescriptionContentRenderer)==null?0:G.items)&&(G=this.structuredDescriptionContentRenderer.items.find(function(O){return!!_.a(O,Ij)}))){var e,r;
this.hoverColor={lightTheme:(e=_.a(G,Ij))==null?void 0:e.lightThemeColorPalette,darkTheme:(r=_.a(G,Ij))==null?void 0:r.darkThemeColorPalette};var Z;this.hoverText=(Z=_.a(G,Ij))==null?void 0:Z.colorSampledDescriptionBodyText}};
_.V.updateHoverColor=function(){if(_.R("web_delhi_colorful_sd")){var G=this.hoverColor,e={},r;G=(r=this.isDark?G==null?void 0:G.darkTheme:G==null?void 0:G.lightTheme)!=null?r:{};r=_.h(IRv);for(var Z=r.next();!Z.done;Z=r.next()){Z=Z.value;var O=G[Z];e["--yt-saturated-"+_.Zz(Z)]=O?_.jF(O):"initial"}_.eD(this.hostElement,e)}};
_.V.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.V.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.V.showPanel=function(G){this.expandDescription();var e=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;e.resize();var r,Z=G==null?void 0:(r=G.sectionListEngagementPanelExtras)==null?void 0:r.scrollToItemSectionIdentifier;Z?_.A0.addJob(function(){e==null||e.scrollToSection(Z)},8):this.scrollToTopOfContainer()};
_.V.isVisible=function(){return!this.descriptionCollapsed};
_.V.getReloadContinuation=function(){};
_.V.hidePanel=function(){};
_.V.updatePanel=function(){};
_.iY.Object.defineProperties(H8.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var G;return _.R("web_delhi_colorful_sd")&&(G=this.structuredDescriptionContentRenderer)!=null&&G.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(e){return!_.a(e,Ij)&&!_.a(e,hNj)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.structuredDescriptionContentRendererComputed)!=null&&G.items){var e;G=_.h((e=this.structuredDescriptionContentRendererComputed)==null?void 0:e.items);for(e=G.next();!e.done;e=G.next())if(e=_.a(e.value,_.Xh3))return e}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.videoPrimaryInfoRenderer)==null?0:G.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return!!((G=this.videoSecondaryInfoRenderer)==null?0:(e=G.owner)==null?0:(r=e.videoOwnerRenderer)==null?0:r.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var G,e;if((G=this.videoSecondaryInfoRenderer)==null?0:(e=G.attributedDescription)==null?0:e.content){var r,Z;return(Z=this.stripAttributedDescription((r=this.videoSecondaryInfoRenderer)==null?void 0:r.attributedDescription))!=null?Z:{runs:[]}}}if(_.R("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var O,M,T,E;return(E=(T=(O=this.videoSecondaryInfoRenderer)==
null?void 0:O.description)!=null?T:(M=this.videoSecondaryInfoRenderer)==null?void 0:M.attributedDescription)!=null?E:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var G,e;return(e=(G=this.videoSecondaryInfoRenderer)==null?void 0:G.headerRuns)!=null?e:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.commentsEntryPointHeaderRenderer)==null||!G.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.videoMetadataCarousel)==null||!G.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.qt("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var G,e,r=Object.assign({},(G=this.videoSecondaryInfoRenderer)==null?void 0:(e=G.metadataRowContainer)==null?void 0:e.metadataRowContainerRenderer);if(r&&r.rows&&r.collapsedItemCount!==void 0&&!(r.rows.length<=r.collapsedItemCount))return r.rows=r.rows.slice(r.collapsedItemCount),r.collapsedItemCount=0,r}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var G,e,r=Object.assign({},(G=this.videoSecondaryInfoRenderer)==null?void 0:(e=G.metadataRowContainer)==null?void 0:e.metadataRowContainerRenderer);if(r&&r.rows&&r.collapsedItemCount!==void 0)return r.rows=r.rows.slice(0,r.collapsedItemCount),r.collapsedItemCount=r.rows.length,r}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var G,e;return!!((G=this.structuredDescriptionContentRendererComputed)==null?0:(e=G.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 G;return(G=this.videoSecondaryInfoRenderer)==null?void 0:G.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return((G=this.videoSecondaryInfoRenderer)==null?0:(e=G.owner)==null?0:(r=e.videoOwnerRenderer)==null?0:r.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var G,e,r,Z;return!!((G=this.videoPrimaryInfoRenderer)==null?0:(e=G.videoActions)==null?0:(r=e.menuRenderer)==null?0:(Z=r.flexibleItems)==null?0:Z.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.pC(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.pC(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var G=this;if(_.R("web_title_hashtag_grey_delinkified")){var e,r=_.c2.unsafeClone((e=this.videoPrimaryInfoRenderer)==null?void 0:e.title);(e=r==null?void 0:r.runs)&&e.forEach(function(Z){if(Z==null?0:Z.navigationEndpoint)Z.textColor=4284506208,G.isDark&&(Z.textColor=4289374890)});
return r}return(r=this.videoPrimaryInfoRenderer)==null?void 0:r.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.R("web_title_hashtag_black_delinkified")||_.R("web_title_hashtag_grey_delinkified")}}});
H8.prototype.updateHoverColor=H8.prototype.updateHoverColor;H8.prototype.parseColorSamplingData=H8.prototype.parseColorSamplingData;H8.prototype.resetDescriptionState=H8.prototype.resetDescriptionState;H8.prototype.registerPanel=H8.prototype.registerPanel;H8.prototype.onYtExpanderLessTapped=H8.prototype.onYtExpanderLessTapped;H8.prototype.onYtExpanderMoreTapped=H8.prototype.onYtExpanderMoreTapped;H8.prototype.onRenderStamperFinished=H8.prototype.onRenderStamperFinished;
H8.prototype.onYtTextInlineExpanderExpandedChanged=H8.prototype.onYtTextInlineExpanderExpandedChanged;H8.prototype.onYtTextInlineExpanderCollapseClicked=H8.prototype.onYtTextInlineExpanderCollapseClicked;H8.prototype.onYtTextInlineExpanderExpandClicked=H8.prototype.onYtTextInlineExpanderExpandClicked;H8.prototype.moveActionsElement=H8.prototype.moveActionsElement;H8.prototype.updateShouldForceIconOnly=H8.prototype.updateShouldForceIconOnly;H8.prototype.updateTopLevelIconsOnly=H8.prototype.updateTopLevelIconsOnly;
H8.prototype.structuredDescriptionContentRendererChanged=H8.prototype.structuredDescriptionContentRendererChanged;H8.prototype.videoSecondaryInfoRendererChanged=H8.prototype.videoSecondaryInfoRendererChanged;H8.prototype.videoPrimaryInfoRendererChanged=H8.prototype.videoPrimaryInfoRendererChanged;H8.prototype.maybeUpdateActionsOnSeparateLine=H8.prototype.maybeUpdateActionsOnSeparateLine;H8.prototype.updateOwnerAndDescriptionPosition=H8.prototype.updateOwnerAndDescriptionPosition;
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],H8.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],H8.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],H8.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],H8.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.A5),_.x("design:type",Object)],H8.prototype,"ytdReduxBehavior",void 0);_.B([_.hs("#above-the-fold"),_.x("design:type",HTMLElement)],H8.prototype,"aboveTheFoldContainer",void 0);_.B([_.hs("#menu ytd-menu-renderer"),_.x("design:type",Object)],H8.prototype,"menu",void 0);_.B([_.hs("#description-inline-expander"),_.x("design:type",Object)],H8.prototype,"descriptionInlineExpander",void 0);
_.B([_.hs("#faded-structured-description"),_.x("design:type",Object)],H8.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.B([_.hs("#structured-description"),_.x("design:type",Object)],H8.prototype,"structuredDescriptionContentRendererElement",void 0);_.B([_.hs("#title"),_.x("design:type",HTMLElement)],H8.prototype,"titleElement",void 0);_.B([_.hs("#description"),_.x("design:type",HTMLElement)],H8.prototype,"descriptionElement",void 0);
_.B([_.hs("#description-interaction"),_.x("design:type",Object)],H8.prototype,"descriptionInteraction",void 0);_.B([_.hs("#owner"),_.x("design:type",HTMLElement)],H8.prototype,"ownerElement",void 0);_.B([_.hs("#top-row"),_.x("design:type",HTMLElement)],H8.prototype,"topRowElement",void 0);_.B([_.hs("#bottom-row"),_.x("design:type",HTMLElement)],H8.prototype,"bottomRowElement",void 0);_.B([_.hs("#actions"),_.x("design:type",HTMLElement)],H8.prototype,"actionsElement",void 0);
_.B([_.hs("#bottom-actions"),_.x("design:type",HTMLElement)],H8.prototype,"bottomActionsElement",void 0);_.B([_.hs("#ytd-watch-info-text"),_.x("design:type",Object)],H8.prototype,"watchInfoTextElement",void 0);_.B([_.n(),_.x("design:type",Object)],H8.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],H8.prototype,"videoPrimaryInfoRenderer",void 0);_.B([_.n(),_.x("design:type",Object)],H8.prototype,"videoSecondaryInfoRenderer",void 0);
_.B([_.n(),_.x("design:type",Object)],H8.prototype,"commentsEntryPointHeaderRenderer",void 0);_.B([_.n(),_.x("design:type",Object)],H8.prototype,"videoMetadataCarousel",void 0);_.B([_.n(),_.x("design:type",Object)],H8.prototype,"structuredDescriptionContentRenderer",void 0);_.B([_.d("structuredDescriptionContentRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],H8.prototype,"structuredDescriptionContentRendererComputed",null);
_.B([_.n(),_.x("design:type",Object)],H8.prototype,"videoSummary",void 0);_.B([_.n(),_.x("design:type",Object)],H8.prototype,"merchShelf",void 0);_.B([_.n(),_.x("design:type",Object)],H8.prototype,"infoPanelBelowMetadata",void 0);_.B([_.n(),_.x("design:type",Object)],H8.prototype,"hoverColor",void 0);_.B([_.n(),_.x("design:type",Object)],H8.prototype,"hoverText",void 0);_.B([_.n(),_.x("design:type",Object)],H8.prototype,"isHovering",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],H8.prototype,"enableColorSampling",void 0);_.B([_.d("structuredDescriptionContentRendererComputed"),_.x("design:type",Object),_.x("design:paramtypes",[])],H8.prototype,"productShelf",null);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],H8.prototype,"metadataBadgesInDescription",void 0);_.B([_.d("videoPrimaryInfoRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],H8.prototype,"shouldHideBadges",null);
_.B([_.d("productShelf","descriptionCollapsed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],H8.prototype,"shouldShowProductShelf",null);_.B([_.n(),_.x("design:type",Boolean)],H8.prototype,"isWatchFlexy",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],H8.prototype,"descriptionCollapsed",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],H8.prototype,"useFadedScrimDescription",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],H8.prototype,"skinnyMode",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("videoSecondaryInfoRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],H8.prototype,"largerItemWrap",null);_.B([_.n(),_.x("design:type",Object)],H8.prototype,"playlist",void 0);_.B([_.n(),_.x("design:type",Object)],H8.prototype,"clarifyBox",void 0);_.B([_.n(),_.x("design:type",Object)],H8.prototype,"playerAds",void 0);
_.B([_.n(),_.x("design:type",Boolean)],H8.prototype,"isDark",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],H8.prototype,"actionsOnSeparateLine",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],H8.prototype,"disableVideoOwnerOnTap",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],H8.prototype,"swatcherooDelayLoad",void 0);_.B([_.n(),_.x("design:type",Boolean)],H8.prototype,"suppressTopLevelMetadataRows",void 0);
_.B([_.n(),_.x("design:type",Object)],H8.prototype,"primaryMenuWidth",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],H8.prototype,"videoId",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],H8.prototype,"titleHeadlineXs",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],H8.prototype,"titleHeadlineS",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],H8.prototype,"titleHeadlineM",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],H8.prototype,"titleHashtagBlackLinkified",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],H8.prototype,"titleHashtagGreyLinkified",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],H8.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.B([_.n(),_.x("design:type",Object)],H8.prototype,"shouldForceIconOnly",void 0);
_.B([_.iD("skinnyMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],H8.prototype,"updateOwnerAndDescriptionPosition",null);_.B([_.iD("skinnyMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],H8.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.B([_.d("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.x("design:type",Object),_.x("design:paramtypes",[])],H8.prototype,"descriptionText",null);_.B([_.d("videoSecondaryInfoRenderer.headerRuns"),_.x("design:type",Array),_.x("design:paramtypes",[])],H8.prototype,"headerRuns",null);
_.B([_.n({value:!1}),_.d("commentsEntryPointHeaderRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],H8.prototype,"hasTeaser",null);_.B([_.n({value:!1,reflectToAttribute:!0}),_.d("videoMetadataCarousel"),_.x("design:type",Object),_.x("design:paramtypes",[])],H8.prototype,"hasTeaserCarousel",null);_.B([_.n({value:3}),_.d("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.x("design:type",Object),_.x("design:paramtypes",[])],H8.prototype,"descriptionMaxLines",null);
_.B([_.d("videoSecondaryInfoRenderer.metadataRowContainer"),_.x("design:type",Object),_.x("design:paramtypes",[])],H8.prototype,"collapsibleMetadataRows",null);_.B([_.d("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.x("design:type",Object),_.x("design:paramtypes",[])],H8.prototype,"alwaysVisibleMetadataRows",null);
_.B([_.d("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],H8.prototype,"hasInlineStructuredDescription",null);_.B([_.d("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],H8.prototype,"showInlineStructuredDescription",null);
_.B([_.d("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],H8.prototype,"descriptionExpandCommand",null);_.B([_.d("videoSecondaryInfoRenderer.owner"),_.x("design:type",Object),_.x("design:paramtypes",[])],H8.prototype,"videoOwnerCommand",null);_.B([_.n({reflectToAttribute:!0}),_.d("videoPrimaryInfoRenderer.videoActions"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],H8.prototype,"flexMenuEnabled",null);
_.B([_.n({selector:_.aV,reflectToAttribute:!0}),_.x("design:type",Object)],H8.prototype,"isFullscreen",void 0);_.B([_.n({selector:_.jv,reflectToAttribute:!0}),_.x("design:type",Object)],H8.prototype,"isTheaterMode",void 0);_.B([_.d("descriptionText","useFadedScrimDescription"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],H8.prototype,"showAttributedStringDescription",null);
_.B([_.d("descriptionText","useFadedScrimDescription"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],H8.prototype,"showFormattedStringDescription",null);_.B([_.d("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],H8.prototype,"showFadedStructuredDescription",null);
_.B([_.iD("videoPrimaryInfoRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],H8.prototype,"videoPrimaryInfoRendererChanged",null);_.B([_.d("videoPrimaryInfoRenderer.title"),_.x("design:type",Object),_.x("design:paramtypes",[])],H8.prototype,"videoTitle",null);_.B([_.d("videoPrimaryInfoRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],H8.prototype,"noEndpoints",null);
_.B([_.iD("videoSecondaryInfoRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],H8.prototype,"videoSecondaryInfoRendererChanged",null);_.B([_.Me("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],H8.prototype,"structuredDescriptionContentRendererChanged",null);
_.B([_.Me("skinnyMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],H8.prototype,"updateTopLevelIconsOnly",null);_.B([_.Me("skinnyMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],H8.prototype,"updateShouldForceIconOnly",null);_.B([_.Me("skinnyMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],H8.prototype,"moveActionsElement",null);
_.B([_.Om("yt-text-inline-expander-expand-clicked"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],H8.prototype,"onYtTextInlineExpanderExpandClicked",null);_.B([_.Om("yt-text-inline-expander-collapse-clicked"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],H8.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.B([_.Om("yt-text-inline-expander-expanded-changed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],H8.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.B([_.Om("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],H8.prototype,"onRenderStamperFinished",null);
_.B([_.Om("yt-expander-more-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],H8.prototype,"onYtExpanderMoreTapped",null);_.B([_.Om("yt-expander-less-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],H8.prototype,"onYtExpanderLessTapped",null);
_.B([_.Me("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],H8.prototype,"registerPanel",null);_.B([_.Me("videoSecondaryInfoRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],H8.prototype,"resetDescriptionState",null);
_.B([_.Me("structuredDescriptionContentRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],H8.prototype,"parseColorSamplingData",null);_.B([_.Me("hoverColor","isDark"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],H8.prototype,"updateHoverColor",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-watch-metadata"})],H8);
_.A(H8,"ytd-watch-metadata",function(){if(QQt!==void 0)return QQt;var G=document.createElement("template");_.f(G,'\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    <template is="dom-if" if="[[videoSecondaryInfoRenderer]]" id="description-wrapper" 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]]" detailed-description-override="[[!descriptionCollapsed]]" class="style-scope ytd-watch-metadata">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n            <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden$="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n            </yt-attributed-string>\n            \n            <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            </yt-formatted-string>\n            <ytd-structured-description-content-renderer id="faded-structured-description" data="[[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    </template>\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return QQt=G},{mode:2});_.Wf_=function(G){_.pB.call(this);this.JSC$23238_watchApi=G;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;Ff2(this);JGz(this);Blv(this);xhq(this);PjZ(this);Uht(this);zry(this)};
_.K(_.Wf_,_.pB);var Blv=function(G){var e=function(){_.R("kevlar_is_pupi_enabled")||dV(G)};
G.JSC$23238_watchApi.getRoot().addEventListener("yt-player-updated",e);G.addOnDisposeCallback(function(){G.JSC$23238_watchApi.getRoot().removeEventListener("yt-player-updated",e)})},PjZ=function(G){if(_.R("kevlar_endscreen_auto_theater_mode")){var e=G.JSC$23238_watchApi.subscribeToActiveChanged(function(){Nly(G)},!1);
G.addOnDisposeCallback(e)}},Ff2=function(G){var e,r,Z,O,M;
_.D(function(T){if(T.nextAddress==1)return T.yield(G.JSC$23238_watchApi.playerApi,2);e=T.yieldResult;r=function(E){E=!!E;Lfz(G)&&(E=E?2:1,_.vt.getInstance().setState(E,!0,!1))};
Z=function(E){E&&_.qQt(_.Yt().getState())&&(_.Pi(G.JSC$23238_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),G.temporaryTheaterMode=!0)};
O=function(E){_.R("kevlar_player_update_autonav_on_new_data")&&E.type==="newdata"&&(_.R("kevlar_is_pupi_enabled")||dV(G))};
M=function(E){G.onPlayerStateChange(E)};
_.R("kevlar_endscreen_auto_theater_mode")&&e.addEventListener("onAutonavCancelled",Z);e.addEventListener("onAutonavChangeRequest",r);e.addEventListener("onVideoDataChange",O);e.addEventListener("onStateChange",M);G.addOnDisposeCallback(function(){e.removeEventListener("onAutonavChangeRequest",r);e.removeEventListener("onVideoDataChange",O);e.removeEventListener("onStateChange",M);_.R("kevlar_endscreen_auto_theater_mode")&&e.removeEventListener("onAutonavCancelled",Z)});
_.HL(T)})},JGz=function(G){G.JSC$23238_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){G.autonavCancelledBySignal=!0;
_.R("kevlar_is_pupi_enabled")||dV(G)});
G.JSC$23238_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(e,r,Z){r&&dV(G,Z)});
G.JSC$23238_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){Lfz(G)&&_.vt.getInstance().setState(2,!0,!0)});
G.JSC$23238_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){Lfz(G)&&_.vt.getInstance().setState(1,!0,!0)});
G.addOnDisposeCallback(function(){G.JSC$23238_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");G.JSC$23238_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");G.JSC$23238_watchApi.unregisterActionHandler("yt-enable-autoplay-command");G.JSC$23238_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},xhq=function(G){var e=G.JSC$23238_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){zry(G)}),r=G.JSC$23238_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){Uht(G)});
G.addOnDisposeCallback(function(){G.JSC$23238_watchApi.unsubscribeByKey(e);G.JSC$23238_watchApi.unsubscribeByKey(r)})},zry=function(G){G.autonavCancelledBySignal=!1;
_.R("kevlar_is_pupi_enabled")||dV(G)},Uht=function(G){var e=G.JSC$23238_watchApi.getWatchNextResponse(),r,Z;
var O=(e=(Z=_.a(e==null?void 0:(O=e.playerOverlays)==null?void 0:(r=O.playerOverlayRenderer)==null?void 0:r.autonavToggle,_.nmn))==null?void 0:Z.enabled)?2:1;_.R("kevlar_is_pupi_enabled")?_.vt.getInstance().setState(O,!1,!1):dV(G);_.R("web_persist_server_autonav_state_on_client")&&typeof e==="boolean"&&_.i6N(O===2)},Lfz=function(G){if(G.autonavCancelledBySignal)return!1;
var e,r,Z,O;return!!((e=G.JSC$23238_watchApi.getWatchNextResponse())==null?0:(r=e.contents)==null?0:(Z=r.twoColumnWatchNextResults)==null?0:(O=Z.autoplay)==null?0:O.autoplay)};
_.Wf_.prototype.onPlayerStateChange=function(G){if(G===0){G=!_.vt.getInstance().isAutoplaySetExplicitly();var e=this.JSC$23238_watchApi.getWatchNextResponse(),r,Z,O,M;e=_.a(e==null?void 0:(r=e.contents)==null?void 0:(Z=r.twoColumnWatchNextResults)==null?void 0:(O=Z.autoplay)==null?void 0:(M=O.autoplay)==null?void 0:M.autoplayExplicitChoiceDialogRenderer,_.LcP);Lfz(this)&&G&&e&&_.Ga.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:e},popupType:"DIALOG"}})}else Nly(this)};
var Nly=function(G){G.temporaryTheaterMode&&(G.temporaryTheaterMode=!1,_.Pi(G.JSC$23238_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},dV=function(G,e){e=e===void 0?!1:e;
var r;_.D(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$23238_watchApi.playerApi,2);r=Z.yieldResult;Lfz(G)?r.setAutonavState(_.vt.getInstance().getState(),e):r.setAutonavState(1,e);_.HL(Z)})};var G2v={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"};_.rTt=function(G){_.pB.call(this);var e=this;this.JSC$23243_watchApi=G;var r=this.JSC$23243_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){est(e)});
this.addOnDisposeCallback(function(){e.JSC$23243_watchApi.unsubscribeByKey(r)});
est(this)};
_.K(_.rTt,_.pB);var est=function(G){var e=G.JSC$23243_watchApi.getPlayerResponse(),r=G.JSC$23243_watchApi.getWatchNextResponse();if(!_.ckp(e==null?void 0:e.playabilityStatus,r==null?void 0:r.playerOverlays)){var Z;var O=e==null?void 0:(Z=e.playabilityStatus)==null?void 0:Z.errorScreen}G.JSC$23243_watchApi.provideRenderingData("ERROR_SCREEN",O)};var ZMt=_.y(function(G){var e=G.data;G=_.R("web_watch_video_details_hide_subtitle");var r=_.R("web_watch_video_details_single_line_title"),Z=_.ev(function(){var E=e().onTap;E&&_.v_().resolve(_.$1).resolveCommand(E)}),O={},M={},T={};
return _.v("yt-player-overlay-video-details-renderer",{class:_.LC("ytPlayerOverlayVideoDetailsRendererHost",(O.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.R("web_watch_video_details_transparent_background"),O)),"on:click":Z,role:"button"},_.v("h2",{class:_.LC("ytPlayerOverlayVideoDetailsRendererTitle",(M.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return r},M))},_.v(_.Wh,{text:function(){return e().title}})),_.v("div",{class:_.LC("ytPlayerOverlayVideoDetailsRendererSubtitle",
(T.ytPlayerOverlayVideoDetailsRendererHideSubtitle=G,T))},_.v(_.Wh,{text:function(){return e().subtitle}})))},"Un");var o9={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},OMt=_.y(function(G){var e=G.data;var r=_.Eb(_.aV),Z=_.R("web_watch_action_bar_resize_buttons"),O=_.R("web_watch_video_action_dsdvb"),M=_.R("delhi_modern_web_player_icons")&&!_.R("enable_web_delhi_icons");G=_.R("delhi_modern_web_player_disable_frosted_glass");var T=_.R("delhi_modern_web_player_compact_video_actions_controls"),
E=_.R("web_player_quick_action_buttons_icon_only"),b=function(){var q=Z&&!r(),t={};T?t.size="S":q&&(t.size="M");E&&(t.iconPosition="icon-only");if(Object.keys(t).length!==0)return t},w={};
return _.v("yt-player-quick-action-buttons",{class:_.LC("ytPlayerQuickActionButtonsHost",(w.ytPlayerQuickActionButtonsHostCompactControls=function(){return!r()||T},w.ytPlayerQuickActionButtonsHostDisableBackdropFilter=G,w))},_.v(_.u6,{each:function(){var q=e();
if(M){q=JSON.parse(JSON.stringify(q));for(var t=_.h(q),g=t.next();!g.done;g=t.next()){var l=g.value,X=void 0;g=_.a((X=_.a(l,_.FG))==null?void 0:X.toggleButtonViewModel,_.rq);var H=void 0;X=_.a((H=_.a(l,_.AO))==null?void 0:H.toggleButtonViewModel,_.rq);H=_.a(l,_.G$);l=_.a(l,_.rq);if(g)X=_.a(g.defaultButtonViewModel,_.G$),g=_.a(g.toggledButtonViewModel,_.G$),X&&X.iconName&&(X.iconName=o9[X.iconName]),g&&g.iconName&&(g.iconName=o9[g.iconName]);else if(X)g=_.a(X.defaultButtonViewModel,_.G$),X=_.a(X.toggledButtonViewModel,
_.G$),g&&g.iconName&&(g.iconName=o9[g.iconName]),X&&X.iconName&&(X.iconName=o9[X.iconName]);else if(H)H.iconName&&(H.iconName=o9[H.iconName]);else if(l){g=_.a(l.defaultButtonViewModel,_.G$);X=_.a(l.toggledButtonViewModel,_.G$);l=void 0;if((l=g)==null?0:l.iconName)g.iconName=o9[g.iconName];g=void 0;if((g=X)==null?0:g.iconName)X.iconName=o9[X.iconName]}}}O&&(q=Px_(q));return q}},function(q){return _.v(_.E2,{data:function(){return q}},{buttonViewModel:function(t){return _.v(_.wF,{data:t.data,
buttonOverrides:b})},
likeButtonViewModel:function(t){return _.v(_.BZ,{data:t.data,buttonShapeOverrideables:b})},
dislikeButtonViewModel:function(t){return _.v(_.Jv,{data:t.data,buttonShapeOverrideables:b})},
toggleButtonViewModel:function(t){return _.v(_.pb,{data:t.data,buttonShapeOverrides:b})}})}))},"Vn");_.V8_=function(G){_.pB.call(this);var e=this;this.JSC$23247_watchApi=G;G=_.h(_.XQ({},void 0,"n9wCVe"));this.quickActionsViewModel=G.next().value;this.setQuickActionsViewModel=G.next().value;G=_.h(_.XQ({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=G.next().value;this.setPlayerOverlayVideoDetailsRenderer=G.next().value;var r=this.JSC$23247_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){M8k(e)});
this.addOnDisposeCallback(function(){e.JSC$23247_watchApi.unsubscribeByKey(r)});
M8k(this)};
_.K(_.V8_,_.pB);
var M8k=function(G){var e,r,Z,O,M,T,E,b,w,q,t,g,l,X;_.D(function(H){if(H.nextAddress==1)return H.yield(G.JSC$23247_watchApi.playerApi,2);e=H.yieldResult;r=G.JSC$23247_watchApi.getWatchNextResponse();M=(Z=r)==null?void 0:(O=Z.playerOverlays)==null?void 0:O.playerOverlayRenderer;E=_.a((T=M)==null?void 0:T.fullscreenQuickActionsBar,_.pkn);(w=(b=G).setQuickActionsViewModel)==null||w.call(b,E||{});E&&hsk(G,e);g=(q=M)==null?void 0:(t=q.videoDetails)==null?void 0:t.playerOverlayVideoDetailsRenderer;(X=(l=
G).setPlayerOverlayVideoDetailsRenderer)==null||X.call(l,g||{});g&&Teq(G,e);_.HL(H)})},hsk=function(G,e){if(!G.quickActionButtonsContainer)if(e.setFullscreenQuickActions){G.quickActionButtonsContainer=document.createElement("div");
e.setFullscreenQuickActions(G.quickActionButtonsContainer);var r=function(){return G.quickActionsViewModel().quickActionButtons||[]},Z=_.cX(G.quickActionButtonsContainer,function(){return _.v(OMt,{data:r})},"Wn");
G.addOnDisposeCallback(function(){e.setFullscreenQuickActions(void 0);Z()})}else _.FH(new _.Cr("setFullscreenQuickActions not defined",{playerApi:Object.keys(e),
isReady:e.isReady(),appState:e.getAppState()}))},Teq=function(G,e){if(!G.playerOverlayVideoDetailsRendererContainer)if(e.setPlayerOverlayVideoDetailsRenderer){G.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
e.setPlayerOverlayVideoDetailsRenderer(G.playerOverlayVideoDetailsRendererContainer);var r=_.cX(G.playerOverlayVideoDetailsRendererContainer,function(){return _.v(ZMt,{data:G.playerOverlayVideoDetailsRenderer})},"Xn");
G.addOnDisposeCallback(function(){e.setPlayerOverlayVideoDetailsRenderer(void 0);r()})}else _.FH(new _.Cr("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(e),
isReady:e.isReady(),appState:e.getAppState()}))};_.sq=function(G){_.pB.call(this);var e=this;this.JSC$23253_watchApi=G;this.JSC$23253_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;G=_.IC(_.Yt(),_.aV,function(r){e.onFullscreenChanged(r)});
this.addOnDisposeCallback(G);G=_.IC(_.Yt(),_.dn,function(r){e.onWatchScroll(r)});
this.addOnDisposeCallback(G);_.R("kevlar_watch_while_v2")&&(G=_.IC(_.Yt(),_.j6,function(r){Dx_(e,r)}),this.addOnDisposeCallback(G));
Esw(this);iMz(this);bMz();this.onWatchScroll(_.dn(_.Yt().getState()));_.PX("START_IN_FULL_WINDOW_MODE")&&this.JSC$23253_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.K(_.sq,_.pB);var Esw=function(G){G.JSC$23253_watchApi.registerActionHandler("yt-fullscreen-change-action",function(e){var r=G.JSC$23253_watchApi.isActive();e&&!r||_.Yt().dispatch(_.UK({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!e}}))});
G.addOnDisposeCallback(function(){G.JSC$23253_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},iMz=function(G){var e,r;
_.D(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$23253_watchApi.playerApi,2);e=Z.yieldResult;r=function(){G.onFullerscreenEduClicked()};
e.addEventListener("onFullerscreenEduClicked",r);G.addOnDisposeCallback(function(){e.removeEventListener("onFullerscreenEduClicked",r)});
_.HL(Z)})};
_.sq.prototype.onFullscreenChanged=function(G){var e=this,r;return _.D(function(Z){if(Z.nextAddress==1)return e.isFullscreen=!!_.Ab(),Z.yield(e.JSC$23253_watchApi.playerApi,2);r=Z.yieldResult;e.JSC$23253_miniplayerActive||r.setFauxFullscreen(e.isFullscreen);if(G&&(e.JSC$23253_watchApi.focusOnPlayer(),!e.fullerscreenEduButtonShownThisPlayback)){e.fullerscreenEduButtonShownThisPlayback=!0;var O=_.SF("yt-fullerscreen-edu-button-shown-count")||0;_.$N("yt-fullerscreen-edu-button-shown-count",O+1,31536E3);
e.updateFullerscreenEduButtonSubtleModeState()}_.HL(Z)})};
var Dx_=function(G,e){var r;_.D(function(Z){if(Z.nextAddress==1)return G.JSC$23253_miniplayerActive=e,Z.yield(G.JSC$23253_watchApi.playerApi,2);r=Z.yieldResult;r.setFauxFullscreen(!G.JSC$23253_miniplayerActive&&G.isFullscreen);_.HL(Z)})};
_.sq.prototype.onWatchScroll=function(G){var e=this,r,Z;return _.D(function(O){if(O.nextAddress==1)return _.R("external_fullscreen_with_edu")?O.yield(e.JSC$23253_watchApi.playerApi,2):O.return();r=O.yieldResult;Z=G<=0;e.shouldShowFullerscreenEdu!==Z&&(e.shouldShowFullerscreenEdu=Z,r.updateFullerscreenEduButtonVisibility(!e.shouldShowFullerscreenEdu));_.HL(O)})};
_.sq.prototype.onFullerscreenEduClicked=function(){this.JSC$23253_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var G=_.SF("yt-fullerscreen-edu-button-click-count")||0;_.$N("yt-fullerscreen-edu-button-click-count",G+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.sq.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var G=this,e,r,Z,O,M,T;return _.D(function(E){if(E.nextAddress==1)return e=_.SF("yt-fullerscreen-edu-button-click-count")||0,r=_.SF("yt-fullerscreen-edu-button-shown-count")||0,Z=_.qt("external_fullscreen_button_click_threshold"),O=_.qt("external_fullscreen_button_shown_threshold"),M=e>=Z||r>=O,E.yield(G.JSC$23253_watchApi.playerApi,2);T=E.yieldResult;T.updateFullerscreenEduButtonSubtleModeState(M);_.HL(E)})};
_.sq.prototype.disposeInternal=function(){_.pB.prototype.disposeInternal.call(this);var G=_.Ab();_.R("kevlar_exit_fullscreen_leaving_watch")&&G&&_.FR(G)};
var bMz=function(){if(_.R("web_watch_add_viewport_meta_tag")){var G=document.querySelector("meta[name=viewport]"),e=document.head;e&&!G&&(G=document.createElement("meta"),G.name="viewport",G.content="width=device-width, initial-scale=1.0, viewport-fit=cover",e.appendChild(G))}};_.wJz=function(G){_.pB.call(this);var e=this;this.JSC$23256_watchApi=G;this.jobId=0;this.pendingRequestId=void 0;var r=this.JSC$23256_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){vst(e)});
this.addOnDisposeCallback(function(){e.JSC$23256_watchApi.unsubscribeByKey(r)});
vst(this)};
_.K(_.wJz,_.pB);var $xy=function(G){_.A0.cancelJob(G.jobId);G.pendingRequestId=void 0},vst=function(G){$xy(G);
var e=UMk(G.JSC$23256_watchApi.getWatchNextResponse());if(e){var r=250,Z,O=(Z=_.a(e,_.Q_b))==null?void 0:Z.initialDelayMs;_.R("web_watch_updated_metadata_server_initial_delay")&&O&&(r=O);G.jobId=_.A0.addLowPriorityJob(function(){return G.fetchUpdatedMetadata(e)},r)}};
_.wJz.prototype.fetchUpdatedMetadata=function(G,e){var r=this,Z,O,M,T,E,b,w,q,t,g,l,X,H,I,C;return _.D(function(u){switch(u.nextAddress){case 1:e&&(Z={continuation:e});if(!_.R("web_get_updated_metadata_fantasy_panel_continuation_params")){u.jumpTo(2);break}O=_.v_().resolve(_.uB);M="PAsports_fantasy";return u.yield(O.isVisible(M,!0),3);case 3:u.yieldResult&&(w=(E=(T=O).getUpdatePanelContinuationData)==null?void 0:(b=E.call(T,M))==null?void 0:b.updatePanelContinuationRequest)&&(Z||(Z={}),Z.clientParams=
{panelContinuationParams:{panelContinuation:w}});case 2:q=_.v_().resolve(_.v1);if(!q)return _.yx(Error("$o")),u.return();t={};r.pendingRequestId=t;return u.yield(_.p1(q,G,Z),4);case 4:g=u.yieldResult;if(t!==r.pendingRequestId)return u.return();H=(l=g)==null?void 0:(X=l.continuation)==null?void 0:X.timedContinuationData;((I=H)==null?0:I.continuation)&&((C=H)==null?0:C.timeoutMs)&&(r.jobId=_.A0.addLowPriorityJob(function(){return r.fetchUpdatedMetadata(G,H.continuation)},H.timeoutMs));
_.HL(u)}})};
_.wJz.prototype.disposeInternal=function(){_.pB.prototype.disposeInternal.call(this);$xy(this)};var SHZ=_.y(function(G){var e=_.ev(function(){var Z=G.data().videoId;if(G.active())Z=_.Jy(Z),_.v_().resolve(_.$1).resolveCommand(Z);else{var O=G.playerApi(),M=O.getAvailableAudioTracks(),T,E,b=(T=G.sourceVideoConfig().audioTracks)==null?void 0:(E=T.find(function(w){return w.isDefaultForSource}))==null?void 0:E.id;
if(M=M.find(function(w){return w.getLanguageInfo().getId()===b}))O.setAudioTrack(M,!0),O.setCompositeParam({activeVideoId:Z}),G.setActiveSourceId(Z)}}),r={};
return _.v("ytw-composite-source-video-overlay",{class:_.LC("ytwCompositeSourceVideoOverlayHost",(r.ytwCompositeSourceVideoOverlayActive=G.active,r.ytwCompositeSourceVideoOverlayInteracting=G.interacting,r)),style:_.Mk({left:function(){var Z;return((Z=G.data().topLeftCornerX)!=null?Z:0)*100+"%"},
top:function(){var Z;return((Z=G.data().topLeftCornerY)!=null?Z:0)*100+"%"},
width:function(){var Z;return((Z=G.data().width)!=null?Z:0)*100+"%"},
height:function(){var Z;return((Z=G.data().height)!=null?Z:0)*100+"%"}}),
"on:click":e},_.v("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Yn");var qHv=_.y(function(G){var e=_.h(_.Ob(function(){var T,E=(T=G.data().sources)==null?void 0:T.find(function(b){return b.isActive});
if(E)return E.videoId})),r=e.next().value,Z=e.next().value;
e=_.h(_.XQ(!1,void 0,"rmRJ8d"));var O=e.next().value,M=e.next().value;return _.v("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.ev(function(){M(!0)}),
"on:mouseout":_.ev(function(){M(!1)})},_.v(_.S,{cond:function(){return G.data().sources},
then:function(T){return _.v(_.u6,{each:T},function(E){return _.v(SHZ,{data:E,active:function(){return E.videoId===r()},
setActiveSourceId:Z,interacting:O,playerApi:G.playerApi,sourceVideoConfig:function(){return z$_(G.compositeVideoConfig(),E.videoId)}})})}}))},"Zn");_.lmZ=function(G){_.pB.call(this);this.JSC$23272_watchApi=G;G=_.h(_.XQ({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=G.next().value;this.setCompositeVideoOverlayRenderer=G.next().value;G=_.h(_.XQ({},void 0,"OlaJpc"));this.compositeVideoConfig=G.next().value;this.setCompositeVideoConfig=G.next().value;t8y(this);gs_(this)};
_.K(_.lmZ,_.pB);var t8y=function(G){var e=G.JSC$23272_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){gs_(G)});
G.addOnDisposeCallback(function(){G.JSC$23272_watchApi.unsubscribeByKey(e)})},Rsz=function(G){var e;
return _.D(function(r){if(r.nextAddress==1)return r.yield(G.JSC$23272_watchApi.playerApi,2);e=r.yieldResult;e.setCompositeVideoOverlayRendererComponent(G.container);_.HL(r)})},j5Z=function(G){var e;
return _.D(function(r){if(r.nextAddress==1)return r.yield(G.JSC$23272_watchApi.playerApi,2);e=r.yieldResult;e.setCompositeVideoOverlayRendererComponent(void 0);_.HL(r)})},amz=function(G){var e,r;
return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$23272_watchApi.playerApi,2);e=Z.yieldResult;G.container=document.createElement("div");r=_.cX(G.container,function(){return _.v(qHv,{data:G.compositeVideoOverlayRenderer,compositeVideoConfig:G.compositeVideoConfig,playerApi:e})},"$n");
G.addOnDisposeCallback(r);_.HL(Z)})},gs_=function(G){var e,r,Z,O,M,T,E,b;
_.D(function(w){return w.nextAddress==1?(e=G.JSC$23272_watchApi.getPlayerResponse(),M=_.a((r=e)==null?void 0:(Z=r.overlay)==null?void 0:(O=Z.playerControlsOverlayRenderer)==null?void 0:O.compositeVideoOverlay,PWv),b=(T=e)==null?void 0:(E=T.playerConfig)==null?void 0:E.compositeVideoConfig,M&&G.setCompositeVideoOverlayRenderer(M),b&&G.setCompositeVideoConfig(b),M&&b?G.container?w.jumpTo(6):w.yield(amz(G),6):XJt(G)?w.yield(j5Z(G),0):w.jumpTo(0)):XJt(G)?w.jumpTo(0):w.yield(Rsz(G),0)})},XJt=function(G){var e;
return!((e=G.container)==null||!e.parentElement)};
_.lmZ.prototype.disposeInternal=function(){XJt(this)&&j5Z(this);_.pB.prototype.disposeInternal.call(this)};_.dxZ=function(G){_.pB.call(this);var e=this;this.JSC$23278_watchApi=G;var r=this.JSC$23278_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var Z=e.JSC$23278_watchApi.getPlayerResponse();if(Z){var O,M;if(Z=_.a((O=Z.endscreen)==null?void 0:(M=O.endscreenRenderer)==null?void 0:M.hideButton,_.rq)){var T;(T=e.setEndscreenHideButton)==null||T.call(e,Z);Kut(e)}}});
this.addOnDisposeCallback(function(){e.JSC$23278_watchApi.unsubscribeByKey(r)});
G=_.h(_.XQ({},void 0,"ER3tqb"));this.endscreenHideButton=G.next().value;this.setEndscreenHideButton=G.next().value;fmz(this);k2k(this);HMj(this)};
_.K(_.dxZ,_.pB);
var Kut=function(G){var e,r;_.D(function(Z){if(Z.nextAddress==1)return G.creatorEndscreenHideButtonContainer?Z.return():Z.yield(G.JSC$23278_watchApi.playerApi,2);e=Z.yieldResult;G.creatorEndscreenHideButtonContainer=document.createElement("div");_.Z2(G.creatorEndscreenHideButtonContainer,!1);e.setCreatorEndscreenHideButton(G.creatorEndscreenHideButtonContainer);r=_.cX(G.creatorEndscreenHideButtonContainer,function(){return _.v(_.pb,{data:G.endscreenHideButton,useOutlinedIcon:!0})},"ao");
G.addOnDisposeCallback(function(){r();var O;(O=e)==null||O.setCreatorEndscreenHideButton(void 0)});
_.HL(Z)})},fmz=function(G){var e,r;
_.D(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$23278_watchApi.playerApi,2);e=Z.yieldResult;r=function(){G.creatorEndscreenHideButtonContainer&&_.Z2(G.creatorEndscreenHideButtonContainer,!0)};
e.addEventListener("endscreenelementshown",r);G.addOnDisposeCallback(function(){var O;(O=e)==null||O.removeEventListener("endscreenelementshown",r)});
_.HL(Z)})},k2k=function(G){var e=function(){G.creatorEndscreenHideButtonContainer&&_.Z2(G.creatorEndscreenHideButtonContainer,!1)},r=G.JSC$23278_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",e),Z=G.JSC$23278_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",e);
G.addOnDisposeCallback(function(){G.JSC$23278_watchApi.unsubscribeByKey(r);G.JSC$23278_watchApi.unsubscribeByKey(Z)})},HMj=function(G){G.JSC$23278_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(e){var r=_.a(e,yBt);
G.JSC$23278_watchApi.playerApi.then(function(Z){Z==null||Z.setCreatorEndscreenVisibility(!!r.hide)})});
G.addOnDisposeCallback(function(){G.JSC$23278_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.s5Z=function(G){_.pB.call(this);this.JSC$23284_watchApi=G;ost(this)};
_.K(_.s5Z,_.pB);var ost=function(G){var e,r;_.D(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$23284_watchApi.playerApi,2);e=Z.yieldResult;r=function(O){_.Yt().dispatch(_.UK({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:O}}))};
e.addEventListener("onRetroModeChanged",r);G.addOnDisposeCallback(function(){e.removeEventListener("onRetroModeChanged",r)});
_.HL(Z)})};var Oo2=0,sn=0,VOz=0;var Q5z;Q5z=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.QZ=function(G){_.pB.call(this);this.JSC$23289_watchApi=G;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;ImZ(this)};
_.K(_.QZ,_.pB);
var ImZ=function(G){var e,r,Z;_.D(function(O){if(O.nextAddress==1)return O.yield(G.JSC$23289_watchApi.playerApi,2);e=O.yieldResult;if(G.isDisposed())return O.return();G.sessionStorage=_.W0l("yt-sleep-timer");G.sessionStorage||_.FH(new _.Cr("SessionStorage for Sleep Timer is undefined."));((r=G.sessionStorage)==null?void 0:r.get("yt-sleep-timer"))==="true"&&(DIv(),(Z=G.sessionStorage)==null||Z.remove("yt-sleep-timer"),e.syncVolume());pJq(G,e);CCX(G,e);u1z(G,e);_.HL(O)})},pJq=function(G,e){var r=function(w){G.onSleepTimerSettingsChanged(w,
e)},Z=function(w){G.onPlayerStateChange(w,e)},O=function(){G.onLoopChange(e)},M=function(){G.onCloseMiniplayer(e)},T=function(){Zoy(e,(0,_.vG)(),E8q(e),G.selectedOption==="End of video",e.getPlayerState()!==1)},E=function(){G.onSeekComplete(e)},b=function(){_.A0.cancelJob(sn);
var w=e.getCurrentTime()>=e.getDuration(),q=G.selectedOption==="End of video"||G.selectedOption==="End of playlist"&&!Gyj(G.playlistId);w&&q&&nsq(G,e)};
e.addEventListener("onSleepTimerSettingsChanged",r);e.addEventListener("onLoopChange",O);e.addEventListener("onLoopRangeChange",O);e.addEventListener("onStateChange",Z);e.addEventListener("onCloseMiniplayer",M);e.addEventListener("onSleepTimerFeatureAvailable",T);e.addEventListener("SEEK_COMPLETE",E);e.addEventListener("onAdStart",b);G.addOnDisposeCallback(function(){e.removeEventListener("onSleepTimerSettingsChanged",r);e.removeEventListener("onLoopChange",O);e.removeEventListener("onLoopRangeChange",
O);e.removeEventListener("onStateChange",Z);e.removeEventListener("onCloseMiniplayer",M);e.removeEventListener("onSleepTimerFeatureAvailable",T);e.removeEventListener("SEEK_COMPLETE",E);e.removeEventListener("onAdStart",b)})},CCX=function(G,e){var r=G.JSC$23289_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var Z=e.getVideoData().video_id,O,M=(O=N1q(G.JSC$23289_watchApi))==null?void 0:O.playlistId;
G.pauseAutonavPlayback&&(e.pauseVideo(),e.syncVolume(),G.pauseAutonavPlayback=!1);if(G.selectedOption==="End of video"&&Z!==G.videoId)I9(G,e);else{if(G.selectedOption==="End of playlist"){O=Gyj(G.playlistId);if(M!==G.playlistId){I9(G,e);break a}O?O&&mxt(G,e):cT$(G,e)}G.videoId=Z;G.playlistId=M}}});
G.addOnDisposeCallback(function(){G.JSC$23289_watchApi.unsubscribeByKey(r)})},u1z=function(G,e){var r=_.v_().resolve(_.YB),Z=_.IC(r,_.pkN,function(M){M&&G.selectedOption!=="Off"&&I9(G,e)}),O=G.JSC$23289_watchApi.subscribeToActiveChanged(function(M){var T,E;
return _.D(function(b){if(b.nextAddress==1)return b.yield(_.sI().navigationFinishPromise,2);T=!_.LxW();E=_.v_().resolve(_.fp).isMiniplayerActive();M||!Wlj(G.selectedOption)||E||T||I9(G,e);_.HL(b)})},!1);
r=_.IC(r,function(M){return M.entities.playlistLoopStateEntity||{}},function(M){M=M===void 0?{}:M;
var T=Ll$(G.JSC$23289_watchApi);if(T){var E;((E=M[T])==null?void 0:E.state)==="PLAYLIST_LOOP_STATE_ALL"&&Wlj(G.selectedOption)&&I9(G,e)}});
G.addOnDisposeCallback(Z);G.addOnDisposeCallback(r);G.addOnDisposeCallback(O)};
_.QZ.prototype.onSleepTimerSettingsChanged=function(G,e){switch(G){case "Off":this.selectedOption!=="Off"&&I9(this,e);break;case "End of video":case "End of playlist":YHZ(this,G,e);break;default:YHZ(this,G,e,Q5z.get(G))}};
_.QZ.prototype.onLoopChange=function(G){(G.getLoopVideo()||G.getLoopRange())&&Wlj(this.selectedOption)&&I9(this,G)};
_.QZ.prototype.onCloseMiniplayer=function(G){Wlj(this.selectedOption)&&I9(this,G)};
var YHZ=function(G,e,r,Z){yT$(G,r);G.selectedOption=e;G.videoId=r.getVideoData().video_id;G.playlistId="";var O;(O=G.sessionStorage)==null||O.set("yt-sleep-timer","true");G.adjustmentsCount++;Zoy(r,(0,_.vG)(),E8q(r),G.selectedOption==="End of video");if(G.selectedOption==="End of video")cT$(G,r),ATw(G,r);else if(G.selectedOption==="End of playlist"){ATw(G,r);var M,T;G.playlistId=(T=(M=N1q(G.JSC$23289_watchApi))==null?void 0:M.playlistId)!=null?T:"";Gyj(G.playlistId)||cT$(G,r)}else Z&&(G.presetFadeSchedulerId=
_.w8(_.A0,function(){htt(r,15E3)},Z-15E3),G.presetPauseSchedulerId=_.w8(_.A0,function(){nsq(G,r)},Z),MOZ(r,(0,_.vG)(),Z))},nsq=function(G,e){if(G.JSC$23289_watchApi.isActive()){var r={dismissDialogEndpoint:{}};
var Z={commandExecutorCommand:{commands:[r,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};r={buttonViewModel:{title:_.OK("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:r}}};Z={buttonViewModel:{title:_.OK("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:Z}}};var O={dialogHeaderViewModel:{headline:{content:_.OK("SLEEP_TIMER_ENDED_TITLE")}}},
M={basicContentViewModel:{paragraphs:[{text:{content:_.OK("SLEEP_TIMER_ENDED_TEXT")}}]}};r={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:O,content:M,footer:{panelFooterViewModel:{primaryButton:r,secondaryButton:Z,shouldHideDivider:!0}}}}}}};_.v_().resolve(_.$1).resolveCommand(r,{form:{element:G}})}else DIv();FuX(G,!1);JTz(G,e);e.pauseVideo();_.vt.getInstance().getState()===2&&e.getPlayerState()===5&&(G.pauseAutonavPlayback=!0)},I9=function(G,e){FuX(G,!0);
JTz(G,e);DIv()},JTz=function(G,e){yT$(G,e);
G.selectedOption="Off";G.videoId="";G.playlistId="";G.adjustmentsCount=0;var r;(r=G.sessionStorage)==null||r.remove("yt-sleep-timer");_.A0.cancelJob(Oo2);e.resetSleepTimerMenuSettings()},FuX=function(G,e){e={timer_length_adjustment_times_during_session:G.adjustmentsCount-1,
is_session_cancelled:e};switch(G.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=Q5z.get(G.selectedOption)/6E4}_.cg("sleepTimerSessionFinishEvent",e)};
_.QZ.prototype.onPlayerStateChange=function(G,e){G===1?Zoy(e,(0,_.vG)(),E8q(e),this.selectedOption==="End of video"):G===0?(_.A0.cancelJob(sn),e.setVideoTimeLeft(rBz(0,0))):G===2&&_.A0.cancelJob(sn);this.selectedOption==="End of video"?G===0?nsq(this,e):G===2&&TwZ(e):this.selectedOption!=="End of playlist"||Gyj(this.playlistId)||(G===0?nsq(this,e):G===2&&TwZ(e))};
_.QZ.prototype.onSeekComplete=function(G){G.getPlayerState()===2&&Zoy(G,(0,_.vG)(),E8q(G),this.selectedOption==="End of video",!0)};
_.QZ.prototype.onCueRangeEnter=function(G,e){G==="sleep-timer-fade-audio"&&htt(e,(e.getDuration()-e.getProgressState().current)*1E3)};
_.QZ.prototype.onCueRangeExit=function(G,e){G==="sleep-timer-fade-audio"&&e.getPlayerState()!==0&&TwZ(e,!0)};
var cT$=function(G,e){e.addCueRange("sleep-timer-fade-audio",e.getDuration()-15,e.getDuration());e.addEventListener("onCueRangeEnter",function(r){G.onCueRangeEnter(r,e)});
e.addEventListener("onCueRangeExit",function(r){G.onCueRangeExit(r,e)})},mxt=function(G,e){e.removeCueRange("sleep-timer-fade-audio");
e.removeEventListener("onCueRangeEnter",function(r){G.onCueRangeEnter(r,e)});
e.removeEventListener("onCueRangeExit",function(r){G.onCueRangeExit(r,e)})},yT$=function(G,e){Wlj(G.selectedOption)?mxt(G,e):(_.A0.cancelJob(G.presetPauseSchedulerId),_.A0.cancelJob(G.presetFadeSchedulerId),G.presetPauseSchedulerId=0,G.presetFadeSchedulerId=0);
TwZ(e,!0)},ATw=function(G,e){e.setLoop(!1);
e.setLoopVideo(!1);e.setLoopRange(null);(G=Ll$(G.JSC$23289_watchApi))&&_.v_().resolve(_.YB).dispatch(_.bt("playlistLoopStateEntity",G,{key:G,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.Uxt=function(G){_.pB.call(this);var e=this;this.JSC$23292_watchApi=G;Be_(this);xxt(this);PC$(this);var r=this.JSC$23292_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.qt("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.oZ.get("wide",void 0)==="1"&&_.s5("wide","1",_.qt("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){e.JSC$23292_watchApi.unsubscribeByKey(r)});
G=G.getRoot();if(G.is==="ytd-watch-flexy"||G.is==="ytd-watch-grid")G.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.gWj();_.R("web_watch_log_theater_mode_cookie_state")&&_.oZ.get("wide","0")==="1"&&_.oTp("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.K(_.Uxt,_.pB);var Be_=function(G){var e,r;_.D(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$23292_watchApi.playerApi,2);e=Z.yieldResult;r=function(O){zsv(G,!!O)};
e.addEventListener("SIZE_CLICKED",r);G.addOnDisposeCallback(function(){e.removeEventListener("SIZE_CLICKED",r)});
_.HL(Z)})},xxt=function(G){G.JSC$23292_watchApi.registerActionHandler("yt-toggle-theater-mode",function(e,r){zsv(G,e,r===void 0?!0:r)});
G.addOnDisposeCallback(function(){G.JSC$23292_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.Uxt.prototype.getState=function(){return _.jv(_.Yt().getState())};
var zsv=function(G,e,r){r=r===void 0?!0:r;var Z,O,M,T=_.R("enable_player_resize_transition")&&!!G.JSC$23292_watchApi.getWatchNextResponse()&&!((Z=G.JSC$23292_watchApi.getWatchNextResponse())==null?0:(O=Z.contents)==null?0:(M=O.twoColumnWatchNextResults)==null?0:M.conversationBar);_.RDW(function(){_.Yt().dispatch(_.UK({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:e}}));_.R("theater_mode_scroll_to_top_killswitch")||G.JSC$23292_watchApi.scrollWatchTo(0,!1);_.Ab()&&_.R("external_fullscreen")&&_.FR(document.documentElement);
PC$(G);r&&_.s5("wide",e?"1":"0",_.qt("theater_mode_cookie_max_age_seconds",-1));_.Pi(G.JSC$23292_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);G.JSC$23292_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:e});e&&_.gWj()},{shouldWrap:T})},PC$=function(G){var e;
_.D(function(r){if(r.nextAddress==1)return r.yield(G.JSC$23292_watchApi.playerApi,2);e=r.yieldResult;e.setSizeStyle(!0,G.getState());_.HL(r)})};var Luv=function(G){_.pB.call(this);var e=this;this.playerApi=G;this.timeToPanelSyncKeyMap={};var r;if(G==null?0:(r=G.isReady)==null?0:r.call(G)){r=_.IC(_.v_().resolve(_.YB),function(O){return O.entities.timedMarkersListSyncEntity||{}},function(O,M){O=O===void 0?{}:O;
M=M===void 0?{}:M;for(var T=_.h(Object.keys(M)),E=T.next();!E.done;E=T.next())E=E.value,O[E]!==M[E]&&Wuw(e,M[E]);M=_.h(Object.keys(O));for(T=M.next();!T.done;T=M.next())T=T.value,E=O[T],e.timeToPanelSyncKeyMap[T]&&Ne$(e,E)});
this.addOnDisposeCallback(r);var Z=function(O){e.onCueRangeEnter(O)};
G.addEventListener("onCueRangeEnter",Z);this.addOnDisposeCallback(function(){var O;(O=G.removeEventListener)==null||O.call(G,"onCueRangeEnter",Z)})}};
_.K(Luv,_.pB);
var Ne$=function(G,e){var r,Z;if((r=G.playerApi)==null?0:(Z=r.isReady)==null?0:Z.call(r)){var O;if((r=e==null?void 0:(O=e.timedListData)==null?void 0:O.sections)&&e!=null&&e.key)for(O=_.h(r),r=O.next();!r.done;r=O.next())if(r=r.value,r.timedSyncDataList&&r.sectionId)for(Z=0;Z<r.timedSyncDataList.length;Z++){var M=r.timedSyncDataList[Z];M.syncItemId&&G.playerApi.addCueRange(r.sectionId+"_"+e.key+"_"+M.syncItemId,Number(M.videoTimeMs)/1E3,Z===r.timedSyncDataList.length-1?0x8000000000000:Number(r.timedSyncDataList[Z+
1].videoTimeMs)/1E3)}}},Wuw=function(G,e){var r,Z;
if((r=G.playerApi)==null?0:(Z=r.isReady)==null?0:Z.call(r)){var O;if((r=e==null?void 0:(O=e.timedListData)==null?void 0:O.sections)&&e!=null&&e.key)for(O=_.h(r),r=O.next();!r.done;r=O.next())if(r=r.value,r.timedSyncDataList&&r.sectionId){Z=_.h(r.timedSyncDataList);for(var M=Z.next();!M.done;M=Z.next())M=M.value,M.syncItemId&&G.playerApi.removeCueRange(r.sectionId+"_"+e.key+"_"+M.syncItemId)}}};
Luv.prototype.onCueRangeEnter=function(G){for(var e=_.h(Object.keys(this.timeToPanelSyncKeyMap)),r=e.next();!r.done;r=e.next()){r=r.value;var Z=_.h(G.split("_"+r+"_")),O=Z.next().value;Z=Z.next().value;if(O&&Z){G=_.v_().resolve(_.YB);e=this.timeToPanelSyncKeyMap[r];var M=_.qdy(G.getState(),e);r=GUv(r,O,Z);if(r===-1)break;r={activeSyncId:Z,activeItemIndex:r,activeSectionInfo:{sectionIdentifier:O}};M?G.dispatch(_.g7("markersEngagementPanelSyncEntity",e,r)):G.dispatch(_.bt("markersEngagementPanelSyncEntity",
e,Object.assign({},{key:e},r)));break}}};
var GUv=function(G,e,r){var Z=_.v_().resolve(_.YB),O,M;G=(O=iB_(Z.getState(),G))==null?void 0:(M=O.timedListData)==null?void 0:M.sections;if(!G)return-1;O=0;M=_.h(G);for(G=M.next();!G.done;G=M.next()){G=G.value;Z=G.timedSyncDataList||[];if(G.sectionId===e)return e=Z.findIndex(function(T){return T.syncItemId===r}),e===-1?e:O+e;
O+=Z.length}return-1};_.Ztw=function(G){_.pB.call(this);var e=this;this.JSC$23305_watchApi=G;this.unresolvedCommands=[];this.JSC$23305_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(r){eZj(e,r)});
this.addOnDisposeCallback(function(){e.JSC$23305_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
rPy(this)};
_.K(_.Ztw,_.pB);var rPy=function(G){var e;_.D(function(r){if(r.nextAddress==1)return r.yield(G.JSC$23305_watchApi.playerApi,2);e=r.yieldResult;if(G.isDisposed())return r.return();G.timedSyncObserver=new Luv(e);G.unresolvedCommands.length&&(G.unresolvedCommands.forEach(function(Z){return eZj(G,Z)}),G.unresolvedCommands=[]);
_.Xx(G,G.timedSyncObserver);_.HL(r)})},eZj=function(G,e){if(G.timedSyncObserver){var r=_.a(e,FVZ);
if(r&&r.timedSyncEntityKey&&r.panelSyncEntityKey){G=G.timedSyncObserver;e=r.timedSyncEntityKey;var Z=r.panelSyncEntityKey;r=!!r.isEnabled;r=r===void 0?!0:r;var O=_.v_().resolve(_.YB);O=iB_(O.getState(),e);r?G.timeToPanelSyncKeyMap[e]||(G.timeToPanelSyncKeyMap[e]=Z,Ne$(G,O)):(delete G.timeToPanelSyncKeyMap[e],Wuw(G,O))}}else G.unresolvedCommands.push(e)};var OtZ=_.y(function(G){var e=G.data,r=G.maybeLogSmartSkipClientData,Z=null,O=null,M=_.R("web_enable_auto_focus_for_timely_action_button"),T=function(){Z=document.activeElement},E=function(){e().smartSkipMetadata&&(Z=document.activeElement,_.yij(function(){return O}))},b=function(q){if(e().smartSkipMetadata&&(!q||q.key!=="Enter")){Z&&Z.isConnected&&(_.yij(function(){return Z}),Z=null);
var t;(t=O)==null||t.blur()}};
G=_.ev(function(){r==null||r(!0,e());return!1});
var w=_.cQ(_.jV(function(){return e().rendererContext},{onTap:function(q,t){t({disableClickTracking:!0})}}),_.vJ({visibilityCallback:function(q){if(M)q?O&&e().smartSkipMetadata&&(E(),document.addEventListener("focusin",T)):(document.removeEventListener("focusin",T),b());
else if(q){q=_.lt(e().rendererContext);var t=Number(e().maxVisibleDurationMilliseconds),g,l=(g=_.a(e().rendererContext,_.D9))==null?void 0:g.label;q&&t&&l&&(g={label:l,command:q,durationMs:t},_.v_().resolve(_.rC).enqueue(g))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.YZ(function(){if(M){var q;if((O=(q=w.value)==null?void 0:q.querySelector("button"))&&e().smartSkipMetadata){var t;(t=w.value)==null||t.addEventListener("keydown",b)}}});
_.yD(function(){M&&(O&&e().smartSkipMetadata&&O.removeEventListener("keydown",b),document.removeEventListener("focusin",T),b())});
return _.v("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:w,"on:click":G},_.v(_.E2,{data:function(){return e().content}},{buttonViewModel:_.wF}))},"co");var MCq=_.y(function(G){var e=G.data,r=G.playerApi,Z=_.v_().resolve(_.ldA);G=_.h(_.Ob(function(){e()}));
var O=G.next().value,M=G.next().value,T=function(){return v8w(e(),O())},E=function(w,q){var t,g,l=(t=_.a(q==null?void 0:q.rendererContext,_.Ta))==null?void 0:(g=t.loggingDirectives)==null?void 0:g.trackingParams;
if((q=q==null?void 0:q.smartSkipMetadata)&&q.loggingData&&(g=q.loggingData,q=g.algorithmId,t=g.startMilliseconds,g=g.endMilliseconds,q&&t!==void 0&&g!==void 0)){var X,H;w={smartSkipData:Object.assign({},{versionName:q,startMediaTimeMs:t,endMediaTimeMs:g},w&&{userInteractionMediaTimeMs:(Math.floor(((X=_.Ff())==null?void 0:(H=X.getPlayer())==null?void 0:H.getCurrentTime())||0)*1E3).toString()})};X=_.l4();var I;l&&(I=_.b1(l));X&&I&&_.cn(X,I,w)}},b=function(w,q){var t=v8w(e(),w);
if(t){var g=_.a(t,boy),l;if(l=q)l=r(),t=_.a(t,boy),l=t!=null&&t.smartSkipMetadata?!(l==null?0:l.isSameMarkerTypeVisible((t==null?void 0:t.smartSkipMetadata.markerKey)||"")):!0;if(l){var X,H;(g==null?0:(X=g.smartSkipMetadata)==null?0:(H=X.loggingData)==null?0:H.isCounterfactual)||(E(!1,g),M(w))}else q||O()!==w||M(void 0)}};
_.Y8(function(){var w=e().timelyActions;if(w){w=_.h(w);for(var q=w.next();!q.done;q=w.next()){q=_.a(q.value,boy);var t=void 0;(t=q)!=null&&t.cueRangeId&&Z.timelyActionsMap.set(q.cueRangeId,b)}_.yD(function(){Z.timelyActionsMap.clear()})}},"l2RtC");
return _.v("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.v(_.E2,{data:T},{timelyActionViewModel:function(w){return _.v(OtZ,{data:w.data,maybeLogSmartSkipClientData:function(){E(!0,_.a(T(),boy))}})}}))},"fo");_.hZz=function(G){_.pB.call(this);this.JSC$23317_watchApi=G;G=_.h(_.XQ({},void 0,"UN7k5e"));this.timelyActionsOverlay=G.next().value;this.setTimelyActionsOverlay=G.next().value;VC$(this)};
_.K(_.hZz,_.pB);var VC$=function(G){var e,r,Z,O;_.D(function(M){if(M.nextAddress==1)return TE$(G),DNv(G),G.timelyActionsContainer=document.createElement("div"),M.yield(G.JSC$23317_watchApi.playerApi,2);e=M.yieldResult;(Z=(r=e).insertTimelyActionUi)==null||Z.call(r,G.timelyActionsContainer);O=_.cX(G.timelyActionsContainer,function(){return _.v(MCq,{data:G.timelyActionsOverlay,playerApi:e})},"go");
G.addOnDisposeCallback(O);_.HL(M)})},DNv=function(G){var e=G.JSC$23317_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){TE$(G)});
G.addOnDisposeCallback(function(){G.JSC$23317_watchApi.unsubscribeByKey(e)})},TE$=function(G){var e=G.JSC$23317_watchApi.getWatchNextResponse();
if(e){var r,Z;if(e=_.a((r=e.playerOverlays)==null?void 0:(Z=r.playerOverlayRenderer)==null?void 0:Z.timelyActionsOverlayViewModel,JBj)){var O;(O=G.setTimelyActionsOverlay)==null||O.call(G,e)}}};_.itz=function(G){_.pB.call(this);this.JSC$23321_watchApi=G;Euj(this)};
_.K(_.itz,_.pB);var Euj=function(G){var e,r;_.D(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$23321_watchApi.playerApi,2);e=Z.yieldResult;r=function(O){_.Ga.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.a(O,_.c6w)},popupType:"TOAST"}})};
e.addEventListener("onYtShowToast",r);G.addOnDisposeCallback(function(){e.removeEventListener("onYtShowToast",r)});
_.HL(Z)})};var bt_,$Nt,lEq,vuX,wUX,gu2,q0q,tCy,RZy,aEk;bt_=!1;_.S0k=function(G){_.pB.call(this);this.JSC$23324_watchApi=G;this.fullscreen=this.theater=!1;vuX(this);wUX(this);$Nt(this)};
_.K(_.S0k,_.pB);$Nt=function(G){var e,r,Z;_.D(function(O){if(O.nextAddress==1)return O.yield(G.JSC$23324_watchApi.playerApi,2);e=O.yieldResult;if(G.isDisposed())return O.return();r=G.JSC$23324_watchApi.getElement("CINEMATICS");if(!r)return O.return();G.JSC$23324_cinematicController=new _.gn(r,e);_.Xx(G,G.JSC$23324_cinematicController);_.TSk(G.JSC$23324_cinematicController);q0q(G,_.N4N());Z=G.JSC$23324_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(M){tCy(G,M)});
G.addOnDisposeCallback(function(){G.JSC$23324_watchApi.unsubscribeByKey(Z)});
gu2(G);tCy(G,G.JSC$23324_cinematicController.isAllowed());lEq(G);RZy(G);_.HL(O)})};
lEq=function(G){G.fullscreen=_.aV(_.Yt().getState());G.theater=_.jv(_.Yt().getState());_.jdz(G,G.fullscreen,G.theater);var e=_.IC(_.Yt(),_.aV,function(Z){G.fullscreen=Z;_.jdz(G,G.fullscreen,G.theater)}),r=_.IC(_.Yt(),_.jv,function(Z){G.theater=Z;
_.jdz(G,G.fullscreen,G.theater)});
G.addOnDisposeCallback(e);G.addOnDisposeCallback(r)};
vuX=function(G){var e=G.JSC$23324_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){gu2(G)});
G.addOnDisposeCallback(function(){G.JSC$23324_watchApi.unsubscribeByKey(e)})};
wUX=function(G){var e,r;_.D(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$23324_watchApi.playerApi,2);e=Z.yieldResult;r=function(O){q0q(G,O)};
e.addEventListener("cinematicSettingsToggleChange",r);G.addOnDisposeCallback(function(){e.removeEventListener("cinematicSettingsToggleChange",r)});
_.HL(Z)})};
gu2=function(G){var e=G.JSC$23324_watchApi.getWatchNextResponse(),r;e=_.a(e==null?void 0:(r=e.pageVisualEffects)==null?void 0:r[0],_.LD);var Z;(Z=G.JSC$23324_cinematicController)==null||_.Efk(Z,e)};
q0q=function(G,e){var r;(r=G.JSC$23324_cinematicController)==null||_.DKt(r,e);aEk(G)};
tCy=function(G,e){var r;_.D(function(Z){if(Z.nextAddress==1)return _.R("kevlar_watch_cinematics_invisible")&&(e=!1),Z.yield(G.JSC$23324_watchApi.playerApi,2);r=Z.yieldResult;r.updateCinematicSettings(e);aEk(G);_.HL(Z)})};
RZy=function(G){var e=_.hy();if(_.R("kevlar_measure_ambient_mode_idle")&&!e.getFlag(192)&&!bt_){bt_=!0;var r=_.IQ(_.A0,function(){_.v_().resolve(_.U0Y).start(1E4)},5E3);
G.addOnDisposeCallback(function(){_.A0.cancelJob(r);_.v_().resolve(_.U0Y).stop()})}};
_.jdz=function(G,e,r){G.fullscreen=e;G.theater=r;var Z;(Z=G.JSC$23324_cinematicController)==null||Z.setFullscreen(G.fullscreen,G.theater);if(_.R("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(G.theater||G.fullscreen){var O;(O=G.JSC$23324_cinematicController)==null||_.iNz(O)}else if((G=G.JSC$23324_cinematicController)!=null){var M;(M=G.currentCinematicEffect)==null||M.pause()}};
aEk=function(G){if(_.R("web_cinematic_theater_mode")||_.R("web_cinematic_fullscreen")){var e;G.JSC$23324_watchApi.getRoot().toggleCinematicsActive(!((e=G.JSC$23324_cinematicController)==null||!e.isEnabled()))}};_.kUt=function(G){_.pB.call(this);var e=this;this.JSC$23327_watchApi=G;this.commentsReady=!1;this.setCommentsJobId=0;G=_.IC(_.Yt(),_.dn,function(){XU_(e)});
this.addOnDisposeCallback(G);var r=this.JSC$23327_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){KMk(e)}),Z=this.JSC$23327_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){KMk(e)});
this.addOnDisposeCallback(function(){e.JSC$23327_watchApi.unsubscribeByKey(r);e.JSC$23327_watchApi.unsubscribeByKey(Z)});
var O=function(){_.R("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&fE_(e,"false")};
this.JSC$23327_watchApi.getRoot().addEventListener("yt-page-data-will-update",O);this.addOnDisposeCallback(function(){e.JSC$23327_watchApi.getRoot().removeEventListener("yt-page-data-will-update",O)});
KMk(this)};
_.K(_.kUt,_.pB);var KMk=function(G){G.commentsReady=!1;_.A0.cancelJob(G.setCommentsJobId);G.setCommentsJobId=_.IQ(_.A0,function(){XU_(G)},1E3)},XU_=function(G){if(!G.commentsReady){_.jq("cmi");
_.A0.cancelJob(G.setCommentsJobId);var e,r,Z,O,M=(e=G.JSC$23327_watchApi.getWatchNextResponse())==null?void 0:(r=e.contents)==null?void 0:(Z=r.twoColumnWatchNextResults)==null?void 0:(O=Z.results)==null?void 0:O.results.contents;e=void 0;if(M&&M.length)for(M=_.h(M),r=M.next();!r.done;r=M.next())if(r=r.value,O=Z=void 0,((Z=r)==null?void 0:(O=Z.itemSectionRenderer)==null?void 0:O.sectionIdentifier)==="comment-item-section"){_.R("web_watch_provide_undefined_comments")?e=r.itemSectionRenderer:G.JSC$23327_watchApi.provideRenderingData("COMMENTS",
r.itemSectionRenderer);fE_(G,"true");break}_.R("web_watch_provide_undefined_comments")&&G.JSC$23327_watchApi.provideRenderingData("COMMENTS",e);G.commentsReady=!0;G.JSC$23327_watchApi.dispatchEvent("yt-watch-comments-ready")}},fE_=function(G,e){var r;
(r=G.JSC$23327_watchApi.getElement("COMMENTS"))==null||r.setAttribute("canScheduleJobs",e)};_.Qd_=function(G){_.pB.call(this);var e=this;this.JSC$23330_watchApi=G;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.R("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.R("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.R("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.qt("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)HtZ(this);
else{var r=this.JSC$23330_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){dNy(e);p3(e)}),Z=this.JSC$23330_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){C3(e);
p3(e)});
this.JSC$23330_watchApi.getRoot().is==="ytd-watch-grid"&&_.R("swatcheroo_pbs_load_grid")&&(ou$(this),sdt(this));this.addOnDisposeCallback(function(){e.JSC$23330_watchApi.unsubscribeByKey(r);e.JSC$23330_watchApi.unsubscribeByKey(Z);_.A0.cancelJob(e.provideRichGridJobId)});
dNy(this);C3(this)}};
_.K(_.Qd_,_.pB);var HtZ=function(G){var e=G.JSC$23330_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){G.providePlayerJobId=_.Zk(_.A0,function(){dNy(G);p3(G)},G.provideAllDataDelayMs)}),r=G.JSC$23330_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){G.provideWatchNextJobId=_.Zk(_.A0,function(){C3(G);
p3(G)},G.provideAllDataDelayMs)}),Z=G.JSC$23330_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){G.provideWatchNextJobId=_.Zk(_.A0,function(){C3(G);
p3(G)},G.provideAllDataDelayMs)});
G.JSC$23330_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.IQ(_.A0,function(){dNy(G);C3(G);p3(G)},100)});
G.JSC$23330_watchApi.addPageDisposeJob(function(){_.A0.cancelJob(G.provideWatchNextJobId);_.A0.cancelJob(G.providePlayerJobId)});
G.addOnDisposeCallback(function(){G.JSC$23330_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");G.JSC$23330_watchApi.unsubscribeByKey(e);G.JSC$23330_watchApi.unsubscribeByKey(r);G.JSC$23330_watchApi.unsubscribeByKey(Z);_.A0.cancelJob(G.providePlayerJobId);_.A0.cancelJob(G.provideWatchNextJobId)});
dNy(G);C3(G)},dNy=function(G){var e=G.JSC$23330_watchApi.getPlayerResponse(),r,Z,O=(Z=e==null?void 0:(r=e.playabilityStatus)==null?void 0:r.messageRenderers)!=null?Z:[],M,T;
e=(T=e==null?void 0:(M=e.playabilityStatus)==null?void 0:M.messages)!=null?T:[];M=_.h(e);for(T=M.next();!T.done;T=M.next())O.push({alertRenderer:{text:_.nQ(T.value),type:"WARNING"}});G.JSC$23330_watchApi.provideRenderingData("ALERTS",O)},C3=function(G){var e=[],r,Z,O,M=G.JSC$23330_watchApi.getWatchNextResponse(),T,E,b,w,q=M==null?void 0:(T=M.contents)==null?void 0:(E=T.twoColumnWatchNextResults)==null?void 0:(b=E.results)==null?void 0:(w=b.results)==null?void 0:w.contents;
if(q)for(T=_.h(q),E=T.next();!E.done;E=T.next())if(E=E.value,E.videoPrimaryInfoRenderer)var t=E;else if(E.videoSecondaryInfoRenderer){var g=E;w=b=void 0;E=Object.assign({},(b=E.videoSecondaryInfoRenderer)==null?void 0:(w=b.metadataRowContainer)==null?void 0:w.metadataRowContainerRenderer);if(E.rows&&E.collapsedItemCount!==void 0){E.rows=E.rows.slice(0,E.collapsedItemCount).filter(function(Zl){return!!Zl.richMetadataRowRenderer});
E.collapsedItemCount=E.rows.length;var l={metadataRowContainerRenderer:E}}}else if(E.merchandiseShelfRenderer)var X=E;else if(E.ticketShelfRenderer)var H=E;else if(E.expandableMetadataRenderer)var I=E;else if(E.itemSectionRenderer)if(b=E.itemSectionRenderer.contents,w=void 0,G.directlyProvideComments&&((w=E.itemSectionRenderer)==null?void 0:w.sectionIdentifier)==="comment-item-section")_.jq("cmi"),G.JSC$23330_watchApi.provideRenderingData("COMMENTS",E.itemSectionRenderer);else if(b)for(E=_.h(b),b=
E.next();!b.done;b=E.next())if(b=b.value,b.commentsEntryPointHeaderRenderer)var C=b;else if(b.clarificationRenderer||b.infoPanelContainerRenderer||b.infoPanelContentRenderer||b.emergencyOneboxRenderer){e.push(b);var u=u||!!g}else b.limitedStateMessageRenderer?Z=b:b.videoMetadataCarouselViewModel&&(O=b);if(_.R("web_watch_merch_in_sd_when_ticket_shelf_present")&&X&&H){var P=X;X=void 0}if(G.provideWatchNextSecondaryResults){var F,J,U;G.JSC$23330_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
M==null?void 0:(F=M.contents)==null?void 0:(J=F.twoColumnWatchNextResults)==null?void 0:(U=J.secondaryResults)==null?void 0:U.secondaryResults)}if(G.JSC$23330_watchApi.getRoot().is==="ytd-watch-grid"){var e$,Dq;G.JSC$23330_watchApi.provideRenderingData("LIVE_CHAT",M==null?void 0:(e$=M.contents)==null?void 0:(Dq=e$.twoColumnWatchNextResults)==null?void 0:Dq.conversationBar)}var bF,Kf,ti,Ry;(F=M==null?void 0:(bF=M.contents)==null?void 0:(Kf=bF.twoColumnWatchNextResults)==null?void 0:(ti=Kf.secondaryResults)==
null?void 0:(Ry=ti.secondaryResults)==null?void 0:Ry.offerModule)&&(F.donationShelfRenderer||F.donationUnavailableRenderer)&&G.JSC$23330_watchApi.getRoot().is!=="ytd-watch-grid"&&(r=F);bF=G.JSC$23330_watchApi.getPlayerResponse();if(!bF||!_.ckp(bF.playabilityStatus,M==null?void 0:M.playerOverlays)){var nf;if(M==null?0:(nf=M.contents)==null?0:nf.singleColumnWatchNextResults){var k4,SE;var Fn=M==null?void 0:(k4=M.contents.singleColumnWatchNextResults.results)==null?void 0:(SE=k4.results)==null?void 0:
SE.contents}else{var kw,Lf,vc,IW;nf=!!(q==null?0:(kw=q[0])==null?0:(Lf=kw.itemSectionRenderer)==null?0:(vc=Lf.contents)==null?0:(IW=vc[0])==null?0:IW.backgroundPromoRenderer);var Hc,a8;kw=!!(M==null?0:(Hc=M.contents)==null?0:(a8=Hc.twoColumnWatchNextResults)==null?0:a8.secondaryResults);nf&&!kw&&(Fn=q)}}q=e[0];Hc=e[1];u&&e.length===1&&(Hc=q,q=void 0);G.JSC$23330_watchApi.provideRenderingData("PRIMARY_INFO",t);G.JSC$23330_watchApi.provideRenderingData("SECONDARY_INFO",g);G.JSC$23330_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
C);G.JSC$23330_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",O);G.JSC$23330_watchApi.provideRenderingData("CLARIFICATION",q);G.JSC$23330_watchApi.provideRenderingData("RICH_METADATA",l);G.JSC$23330_watchApi.provideRenderingData("MERCH_SHELF",X);_.R("web_watch_merch_in_sd_when_ticket_shelf_present")&&G.JSC$23330_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",P);G.JSC$23330_watchApi.provideRenderingData("TICKET_SHELF",H);G.JSC$23330_watchApi.provideRenderingData("LIMITED_STATE",Z);G.JSC$23330_watchApi.getRoot().is!==
"ytd-watch-grid"&&G.JSC$23330_watchApi.provideRenderingData("DONATION_SHELF",r);G.JSC$23330_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",Fn);G.JSC$23330_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",Hc);G.JSC$23330_watchApi.provideRenderingData("EXPANDABLE_METADATA",I);if(G.swatcherooProvideAllDataOnScheduledJob){var t2,hi,rj,tS,OV,RW;t=M==null?void 0:(t2=M.contents)==null?void 0:(hi=t2.twoColumnWatchNextResults)==null?void 0:(rj=hi.secondaryResults)==null?void 0:(tS=rj.secondaryResults)==
null?void 0:(OV=tS.results)==null?void 0:(RW=OV[0])==null?void 0:RW.richGridRenderer;G.JSC$23330_watchApi.provideRenderingData("RICH_GRID_RENDERER",t)}};
_.Qd_.prototype.hasCompanionAds=function(G){var e,r;return(r=G==null?void 0:(e=G.adPlacements)==null?void 0:e.some(function(Z){var O,M,T,E;return(Z==null?void 0:(O=Z.adPlacementRenderer)==null?void 0:(M=O.renderer)==null?void 0:M.actionCompanionAdRenderer)||(Z==null?void 0:(T=Z.adPlacementRenderer)==null?void 0:(E=T.renderer)==null?void 0:E.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?r:!1};
var p3=function(G){if(!_.R("swaterdoo_ps_wn_handle_ks")){G.swatcherooProvideAllDataOnScheduledJob||sdt(G,3E3);var e=G.JSC$23330_watchApi.getPlayerResponse(),r,Z,O,M,T,E=(r=G.JSC$23330_watchApi.getWatchNextResponse())==null?void 0:(Z=r.contents)==null?void 0:(O=Z.twoColumnWatchNextResults)==null?void 0:(M=O.secondaryResults)==null?void 0:(T=M.secondaryResults)==null?void 0:T.offerModule;e=G.hasCompanionAds(e);var b,w;r=(E==null?void 0:(b=E.tvfilmOfferModuleRenderer)==null?void 0:b.clientShouldSuppressIfCompanionAdDisplayed)||
(E==null?void 0:(w=E.unlimitedOfferModuleRenderer)==null?void 0:w.suppressIfCompanionAds);b=e&&r;G.JSC$23330_watchApi.getRoot().is==="ytd-watch-grid"&&G.JSC$23330_watchApi.provideRenderingData("OFFER_MODULE",b?void 0:E)}},sdt=function(G,e){_.R("swatcheroo_pbs_load_grid")&&(G.provideRichGridJobId&&_.A0.cancelJob(G.provideRichGridJobId),G.provideRichGridJobId=_.Zk(_.A0,function(){G.provideRichGridJobId=0;
var r,Z,O,M,T,E,b,w=(r=G.JSC$23330_watchApi.getWatchNextResponse())==null?void 0:(Z=r.contents)==null?void 0:(O=Z.twoColumnWatchNextResults)==null?void 0:(M=O.secondaryResults)==null?void 0:(T=M.secondaryResults)==null?void 0:(E=T.results)==null?void 0:(b=E[0])==null?void 0:b.richGridRenderer;w&&G.JSC$23330_watchApi.provideRenderingData("RICH_GRID_RENDERER",w)},e))},ou$=function(G){var e,r;
_.D(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$23330_watchApi.playerApi,2);e=Z.yieldResult;r=function(){G.onPlaybackStart()};
e.addEventListener("onPlaybackStartExternal",r);G.addOnDisposeCallback(function(){e.removeEventListener("onPlaybackStartExternal",r)});
_.HL(Z)})};
_.Qd_.prototype.onPlaybackStart=function(){sdt(this)};_.pUt=function(G){_.pB.call(this);var e=this;this.JSC$23343_watchApi=G;G.playerApi.then(function(r){e.player=r});
this.gestures=new _.TL(this.JSC$23343_watchApi.getRoot(),G.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.$Mq(_.Yt().getState())&&_.dn(_.Yt().getState())<=0)if(_.aV(_.Yt().getState())){var r;(r=e.player)==null||r.toggleFullscreen()}else _.Pi(e.JSC$23343_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
IEX(this)};
_.K(_.pUt,_.pB);var IEX=function(G){var e=_.IC(_.Yt(),_.aV,function(r){G.onFullscreenChanged(r)});
G.addOnDisposeCallback(e);e=_.IC(_.Yt(),_.dn,function(r){G.gestures&&(r>0?G.gestures.detach():G.gestures.attach())});
G.addOnDisposeCallback(e)};
_.pUt.prototype.onFullscreenChanged=function(G){this.gestures&&this.gestures.update(G)};var CYt;CYt=["PLAYLIST"];_.nuv=function(G){_.pB.call(this);var e=this;this.JSC$23346_watchApi=G;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(G.subscribeToActiveChanged(function(r){e.onActiveChanged(r)}));
up$(this)};
_.K(_.nuv,_.pB);var mNz=function(G){G.pageDisposalDataTypes=Object.values(G2v).filter(function(e){return!CYt.includes(e)})},up$=function(G){if(_.R("swatcheroo_enable_ghost_cards")||_.R("web_watch_clear_data_on_page_dispose"))mNz(G),G.JSC$23346_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.A0.cancelJob(G.clearDataJobId);
G.clearDataJobId=0}),G.runPageDisposeJob=function(){var e=_.v_().resolve(_.y$).getDestinationPageType()==="watch";
G.clearDataJobId=_.Zk(_.A0,G.runClearDataJob,e?0:_.qt("web_watch_delay_page_dispose_ms",1E4))},G.runClearDataJob=function(){cPq(G)},G.runOnYtNavigateAwayFinish=function(){G.clearDataJobId&&(_.A0.cancelJob(G.clearDataJobId),G.clearDataJobId=0,cPq(G))},document.addEventListener("yt-navigate-finish",G.runOnYtNavigateAwayFinish),G.JSC$23346_watchApi.addPageDisposeJob(G.runPageDisposeJob),G.addOnDisposeCallback(function(){G.JSC$23346_watchApi.removePageDisposeJob(G.runPageDisposeJob);
G.JSC$23346_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",G.runOnYtNavigateAwayFinish)})},cPq=function(G){G.pageDisposalDataTypes.forEach(function(e){G.JSC$23346_watchApi.provideRenderingData(e,void 0)});
G.clearDataJobId=0};
_.nuv.prototype.onActiveChanged=function(G){G&&((G=document.querySelector("#watch-page-skeleton"))&&_.d1(G),Y0Z(this),document.body.removeAttribute("no-y-overflow"),_.PX("IS_SHELL_LOAD")&&_.Vaz())};
var Y0Z=function(G){_.D(function(e){if(e.nextAddress==1)return e.yield(G.JSC$23346_watchApi.playerApi,2);_.d7();_.HL(e)})};var yPt;yPt=_.R("kevlar_watch_while_counterfactual")?0:.25;_.BEq=function(G){_.pB.call(this);this.JSC$23349_watchApi=G;this.JSC$23349_watchWhileEnabled=_.R("kevlar_watch_while_v2");this.pipEnabled=_.R("web_enable_pip_on_miniplayer");AP$(this);FMk(this);JPX(this)};
_.K(_.BEq,_.pB);var AP$=function(G){G.JSC$23349_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){xNj(G)});
G.addOnDisposeCallback(function(){G.JSC$23349_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},FMk=function(G){var e,r;
_.D(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$23349_watchApi.playerApi,2);e=Z.yieldResult;r=function(){xNj(G)};
e.addEventListener("onCollapseMiniplayer",r);G.addOnDisposeCallback(function(){e.removeEventListener("onCollapseMiniplayer",r)});
_.HL(Z)})},JPX=function(G){var e=G.JSC$23349_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&e&&G.JSC$23349_watchWhileEnabled&&(G.playerIntersectionObserver=new IntersectionObserver(function(r){G.handleIntersect(r)},{threshold:[yPt]}),G.playerIntersectionObserver.observe(e),G.addOnDisposeCallback(function(){var r;
(r=G.playerIntersectionObserver)==null||r.disconnect()}))},xNj=function(G){var e,r,Z;
_.D(function(O){if(O.nextAddress==1){e=_.v_().resolve(_.y$);r=e.data;Z=_.Rr(r.response,!1,r.playerResponse);_.sI().miniplayerButtonActivation=!0;if(G.pipEnabled)return _.sI().watchPipActivation=!0,O.jumpTo(2);_.v_().resolve(_.fp).collapse();return O.yield(_.sI().navigationFinishPromise,2)}if(O.nextAddress!=4)return _.sI().currentEndpoint=Z.watchEndpoint||null,O.yield(_.v_().resolve(_.fp).activate(G.JSC$23349_watchApi.getElement("PLAYER"),Z,r),4);_.sI().userActivation=!0;_.HL(O)})};
_.BEq.prototype.handleIntersect=function(G){PYZ(this,G[G.length-1])};
var PYZ=function(G,e){G.watchWhileJobId&&_.A0.cancelJob(G.watchWhileJobId);G.watchWhileJobId=_.A0.addLowPriorityJob(function(){var r,Z;return _.D(function(O){if(O.nextAddress==1)return G.watchWhileJobId=void 0,r=_.v_().resolve(_.fp),e.intersectionRatio>yPt?r.isMiniplayerActive()?O.yield(r.deactivate(),0):O.jumpTo(0):(Z=!r.isMiniplayerActive())?O.yield(UNy(G),5):O.jumpTo(4);O.nextAddress!=4&&(Z=O.yieldResult);if(!Z)return O.jumpTo(0);_.sI().watchWhileActivation=!0;return O.yield(zZt(G),0)})},100)},
UNy=function(G){return _.D(function(e){return e.nextAddress==1?_.R("kevlar_watch_while_paused")?e.return(!0):e.yield(G.isPlayerPlaying(),2):e.return(e.yieldResult)})};
_.BEq.prototype.isPlayerPlaying=function(){var G=this,e;return _.D(function(r){if(r.nextAddress==1)return r.yield(G.JSC$23349_watchApi.playerApi,2);e=r.yieldResult;return r.return(e.getPlayerStateObject().isPlaying)})};
var zZt=function(G){var e,r;return _.D(function(Z){e=_.v_().resolve(_.y$).data;r=_.Rr(e.response,!1,e.playerResponse);_.sI().currentEndpoint=r.watchEndpoint||null;return Z.yield(_.v_().resolve(_.fp).activate(G.JSC$23349_watchApi.getElement("PLAYER"),r,e),0)})};_.LMk=function(G){_.pB.call(this);this.JSC$23353_watchApi=G;WMw(this);NEz(this)};
_.K(_.LMk,_.pB);var NEz=function(G){var e,r;_.D(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$23353_watchApi.playerApi,2);e=Z.yieldResult;r=function(O){var M;O.sessionData&&O.sessionData.itct&&(M=O.sessionData.itct);var T=O.watchEndpoint;if(T&&O.sessionData&&O.sessionData.autonav)T=_.FUp(T,M);else{var E;T=_.Jy(O.videoId,(E=O.listId)!=null?E:void 0,M)}M={endpoint:T};O.sessionData&&(M.tempData=O.sessionData);G.JSC$23353_watchApi.dispatchEvent("yt-navigate",M)};
e.addEventListener("onPlayVideo",r);G.addOnDisposeCallback(function(){e.removeEventListener("onPlayVideo",r)});
_.HL(Z)})},WMw=function(G){var e=function(r){G.onYtNavigate(r)};
G.JSC$23353_watchApi.getRoot().addEventListener("yt-navigate",e);G.addOnDisposeCallback(function(){G.JSC$23353_watchApi.getRoot().removeEventListener("yt-navigate",e)})};
_.LMk.prototype.onYtNavigate=function(G){var e=this,r,Z,O,M,T,E,b,w,q;return _.D(function(t){if(t.nextAddress==1){if(!((r=G.detail)==null?0:(Z=r.endpoint)==null?0:Z.watchEndpoint))return t.return();O=G.detail.endpoint.watchEndpoint;M=e.JSC$23353_watchApi.getWatchNextResponse();E=_.a((T=M)==null?void 0:T.currentVideoEndpoint,_.u4);if(!E)return t.return();if(O.videoId!==E.videoId||O.playlistId&&O.playlistId!==E.playlistId||typeof O.startTimeSeconds!=="number")return t.jumpTo(0);G.stopPropagation();
(b=_.R("kevlar_watch_while_v2")&&!_.R("kevlar_watch_while_counterfactual"))&&_.v_().resolve(_.fp).isMiniplayerActive()||e.JSC$23353_watchApi.scrollWatchTo(0,!0);return t.yield(e.JSC$23353_watchApi.playerApi,3)}w=t.yieldResult;q=O.startTimeSeconds;w.seekTo(q,void 0,void 0,void 0,84);w.wakeUpControls();q<w.getDuration()&&w.playVideo();_.HL(t)})};_.egv=function(G){_.pB.call(this);var e=this;this.JSC$23356_watchApi=G;var r=this.JSC$23356_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){GwZ(e)});
this.addOnDisposeCallback(function(){e.JSC$23356_watchApi.unsubscribeByKey(r)});
GwZ(this);_.R("enable_ai_companion")&&(G=this.JSC$23356_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.aCW(_.v_().resolve(_.cZ),G,"WATCH")};
_.K(_.egv,_.pB);var GwZ=function(G){var e=G.JSC$23356_watchApi.getWatchNextResponse();if(e){var r,Z=[].concat(_.mY((r=e==null?void 0:e.engagementPanels)!=null?r:[]));Z.unshift.apply(Z,_.mY(rbZ(e)));G.JSC$23356_watchApi.provideRenderingData("ENGAGEMENT_PANELS",Z)}},ZOv=function(G){var e,r,Z,O=(e=G.engagementPanels)==null?void 0:(r=e.find(function(l){var X;
return((X=l.engagementPanelSectionListRenderer)==null?void 0:X.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(Z=r.engagementPanelSectionListRenderer.content)==null?void 0:Z.structuredDescriptionContentRenderer,M;
if(_.a(O==null?void 0:(M=O.items)==null?void 0:M.find(function(l){return!!_.a(l,Txj)}),Txj))return!0;
var T,E,b,w;if(G=(((T=G.contents)==null?void 0:(E=T.twoColumnWatchNextResults)==null?void 0:(b=E.results)==null?void 0:(w=b.results)==null?void 0:w.contents)||[]).find(function(l){return l.videoPrimaryInfoRenderer})){var q,t,g;
return(((q=G.videoPrimaryInfoRenderer)==null?void 0:(t=q.videoActions)==null?void 0:(g=t.menuRenderer)==null?void 0:g.flexibleItems)||[]).some(function(l){l=_.a(l,_.eiP);if(!l)return!1;var X,H;l=(X=l.topLevelButton)==null?void 0:(H=X.buttonViewModel)==null?void 0:H.onTap;if(!l)return!1;X=_.X0(l);if(!X)return!1;var I;return((I=_.a(X,_.gB))==null?void 0:I.panelIdentifier)==="PAyouchat"})}return!1},rbZ=function(G){var e=[];
if(!_.R("web_watch_inject_placeholder_fantasy_panel_killswitch")){var r,Z,O,M=(r=G.engagementPanels)==null?void 0:(Z=r.find(function(E){var b;return((b=E.engagementPanelSectionListRenderer)==null?void 0:b.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(O=Z.engagementPanelSectionListRenderer.content)==null?void 0:O.structuredDescriptionContentRenderer,T;
_.a(M==null?void 0:(T=M.items)==null?void 0:T.find(function(E){return!!_.a(E,mIq)}),mIq)&&(r=_.ggq("PAsports_fantasy"),r.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",e.push(r))}ZOv(G)&&(G=_.ggq("PAyouchat"),G.engagementPanelSectionListRenderer.targetId="PAyouchat",G.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",e.push(G));
return e};_.MWk=function(G){_.pB.call(this);this.JSC$23359_watchApi=G;OOj(this)};
_.K(_.MWk,_.pB);var OOj=function(G){G.JSC$23359_watchApi.registerActionHandler("yt-loop-command",function(e){VWz(G,e)});
G.JSC$23359_watchApi.registerActionHandler("yt-repeat-chapter-command",function(e){hg_(G,e)});
G.addOnDisposeCallback(function(){G.JSC$23359_watchApi.unregisterActionHandler("yt-loop-command");G.JSC$23359_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},VWz=function(G,e){var r;
_.D(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$23359_watchApi.playerApi,2);r=Z.yieldResult;_.a(e,YMz).loop?(r.setLoopRange({startTimeMs:Number(_.a(e,YMz).startTimeMs),endTimeMs:Number(_.a(e,YMz).endTimeMs),postId:_.a(e,YMz).postId,type:"clips"}),r.playVideo()):r.setLoopRange(null);_.HL(Z)})},hg_=function(G,e){var r,Z;
_.D(function(O){if(O.nextAddress==1)return O.yield(G.JSC$23359_watchApi.playerApi,2);r=O.yieldResult;Z=_.a(e,Bw2).repeat;Z==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(r.setLoopRange({startTimeMs:Number(_.a(e,Bw2).startTimeMs),endTimeMs:Number(_.a(e,Bw2).endTimeMs),type:"repeatChapter"}),r.playVideo()):Z==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&r.setLoopRange(null);_.HL(O)})};_.Dzv=function(G){_.pB.call(this);this.JSC$23364_watchApi=G;Tot(this)};
_.K(_.Dzv,_.pB);var Tot=function(G){G.JSC$23364_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(e){Ey$(G,e)});
G.addOnDisposeCallback(function(){G.JSC$23364_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},Ey$=function(G,e){var r,Z,O,M,T,E,b,w,q,t,g;
_.D(function(l){if(l.nextAddress==1)return l.yield(G.JSC$23364_watchApi.playerApi,2);r=l.yieldResult;if(M=(O=(Z=_.a(e,xIw))==null?void 0:Z.highlightedMenuItemKey)!=null?O:"")(E=(T=r).highlightSettingsMenuItem)==null||E.call(T,M);if(q=(w=(b=_.a(e,xIw))==null?void 0:b.openMenuItemKey)!=null?w:"")(g=(t=r).openSettingsMenuItem)==null||g.call(t,q);_.HL(l)})};var iOv=_.GF("/youtube/app/watch/player_state","playerStateEntity");_.uh=function(G){_.pB.call(this);this.JSC$23367_watchApi=G;bO2(this)};
_.K(_.uh,_.pB);var vyX=function(G){switch(G){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"}},bO2=function(G){var e,r,Z,O;
_.D(function(M){if(M.nextAddress==1)return M.yield(G.JSC$23367_watchApi.playerApi,2);e=M.yieldResult;if(G.isDisposed())return M.return();r=function(T){G.onPlayerStateChange(T)};
Z=function(T){G.onAdStateChange(T)};
O=function(){G.onAdSkip()};
e.addEventListener("onStateChange",r);e.addEventListener("onAdStateChange",Z);e.addEventListener("onAdSkip",O);G.addOnDisposeCallback(function(){e.removeEventListener("onStateChange",r);e.removeEventListener("onAdStateChange",Z);e.removeEventListener("onAdSkip",O)});
_.HL(M)})},wi$=function(G){var e=_.uD(),r=e.dispatch;
a:switch(G.adsState){case -1:case 0:var Z="ADS_STATE_NONE";break a;case 1:case 2:case 3:Z="ADS_STATE_PLAYING";break a;default:Z="ADS_STATE_UNKNOWN"}r.call(e,_.bt("playerStateEntity",iOv,{key:iOv,playerState:vyX(G.playerState),adsState:Z,videoId:G.videoId}))};
_.uh.prototype.onPlayerStateChange=function(G){var e=this,r;return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(e.JSC$23367_watchApi.playerApi,2);r=Z.yieldResult;if(e.isDisposed())return Z.return();e.playerState=G;e.videoId=r.getVideoData().video_id;wi$(e);_.HL(Z)})};
_.uh.prototype.onAdStateChange=function(G){this.adsState=G;wi$(this)};
_.uh.prototype.onAdSkip=function(){this.adsState=0;wi$(this)};_.SWy=function(G){_.pB.call(this);var e=this;this.JSC$23371_watchApi=G;this.enableExternalPlaylistPanelInPlayer=_.R("delhi_web_player_use_external_playlist_panel");_.v_().resolve(_.Gt).setPlayer(this.JSC$23371_watchApi.getElement("PLAYER"));G=this.JSC$23371_watchApi.subscribeToActiveChanged(function(r){e.onActiveChanged(r)});
this.addOnDisposeCallback(G);$z$(this)};
_.K(_.SWy,_.pB);var $z$=function(G){var e,r;_.D(function(Z){if(Z.nextAddress==1)return G.enableExternalPlaylistPanelInPlayer?Z.yield(G.JSC$23371_watchApi.playerApi,2):Z.return();e=Z.yieldResult;r=function(){if(G.playlistPanelElement)G.playlistPanelElement.onToggleExpanded()};
e.addEventListener("onToggleExternalPlaylistPanel",r);G.addOnDisposeCallback(function(){e.removeEventListener("onToggleExternalPlaylistPanel",r)});
_.HL(Z)})};
_.SWy.prototype.onActiveChanged=function(G){var e=this,r=_.v_().resolve(_.Gt),Z=function(){qWZ(e)};
G?(this.playlistPanelElement=this.JSC$23371_watchApi.getElement("PLAYLIST_PANEL"))?(r.setPlaylistComponent(this.playlistPanelElement),r.addEventListener("yt-playlist-data-updated",Z),this.addOnDisposeCallback(function(){r.removeEventListener("yt-playlist-data-updated",Z)}),qWZ(this)):_.GG(Error("ap")):(r.removeEventListener("yt-playlist-data-updated",Z),r.cancelVideoSkip())};
var qWZ=function(G){var e=_.v_().resolve(_.Gt);G.JSC$23371_watchApi.provideRenderingData("PLAYLIST",e.getPlaylistData())};_.n3=function(G){_.pB.call(this);var e=this;this.JSC$23374_watchApi=G;this.onPageScroll=function(){e.scrollThrottle.fire();e.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.Zp(this.onThrottledScroll,200,this);_.Xx(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.Zp(this.onMastheadThrottledScroll,50,this);_.Xx(this,this.mastheadScrollThrottle);this.animation=new _.rm(function(r){e.JSC$23374_watchApi.getRoot().setScrollTop(r)});
G=_.IC(_.Yt(),_.aV,function(){e.onFullscreenChanged()});
this.addOnDisposeCallback(G);tWk(this);gyv(this);this.onThrottledScroll()};
_.K(_.n3,_.pB);
_.n3.prototype.onFullscreenChanged=function(){var G=this,e=this.JSC$23374_watchApi.getRoot();!this.pageScrollElement&&e.pageScrollElement?(this.pageScrollElement=e.pageScrollElement,e.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){G.pageScrollElement&&G.pageScrollElement.removeEventListener("scroll",G.onPageScroll)})):this.pageScrollElement&&!e.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var tWk=function(G){window.addEventListener("scroll",G.onPageScroll);G.addOnDisposeCallback(function(){window.removeEventListener("scroll",G.onPageScroll)})},gyv=function(G){G.JSC$23374_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(e){a:{var r;
if(r=G.JSC$23374_watchApi.getRoot().contains(e)&&!G.animation.isAnimating()){r=e.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var Z,O,M=(e==null?void 0:(Z=e.parentElement)==null?void 0:(O=Z.parentElement)==null?void 0:O.id)==="fixed-secondary";r=!(r&&M)}if(r){if(_.R("kevlar_watch_scroll_manager_absolute_offset_killswitch"))Z=e.offsetTop;else for(Z=0,O=e;O!==null;)Z+=O.offsetTop,Z-=O.scrollTop,O=O.offsetParent;O=Z;Z=O-24;e=O+e.offsetHeight+24;O=G.JSC$23374_watchApi.getRoot().getPageScrollingElement();
r=G.JSC$23374_watchApi.getRoot().getScrollTop();M=r+O.clientHeight-56;if(Z<r+56)e=Z-56;else if(e>M)e-=O.clientHeight;else break a;G.scrollWatchTo(Math.max(0,e),!0)}}});
G.addOnDisposeCallback(function(){G.JSC$23374_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.n3.prototype.onThrottledScroll=function(){var G=_.Yt(),e=G.dispatch,r=this.JSC$23374_watchApi.getRoot().getScrollTop();e.call(G,_.UK({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:r}}))};
_.n3.prototype.onMastheadThrottledScroll=function(){this.JSC$23374_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23374_watchApi.getRoot().getScrollTop())};
_.n3.prototype.scrollWatchTo=function(G,e){(e===void 0?0:e)?this.animation.start(this.JSC$23374_watchApi.getRoot().getScrollTop(),Math.max(0,G),500):this.JSC$23374_watchApi.getRoot().setScrollTop(G)};_.jpt=function(G){_.pB.call(this);var e=this;this.JSC$23377_watchApi=G;var r=this.JSC$23377_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){lzq(e)}),Z=this.JSC$23377_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){RgZ(e)});
this.addOnDisposeCallback(function(){e.JSC$23377_watchApi.unsubscribeByKey(r);e.JSC$23377_watchApi.unsubscribeByKey(Z)});
lzq(this);RgZ(this)};
_.K(_.jpt,_.pB);
var lzq=function(G){var e,r,Z,O=(Z=(e=G.JSC$23377_watchApi.getPlayerResponse())==null?void 0:(r=e.videoDetails)==null?void 0:r.title)!=null?Z:"";G.JSC$23377_watchApi.dispatchEvent("yt-update-title",O)},RgZ=function(G){var e,r,Z,O,M,T,E,b=(E=((T=(e=G.JSC$23377_watchApi.getWatchNextResponse())==null?void 0:(r=e.contents)==null?void 0:(Z=r.twoColumnWatchNextResults)==null?void 0:(O=Z.results)==null?void 0:(M=O.results)==null?void 0:M.contents)!=null?T:[]).find(function(w){return!!w.videoPrimaryInfoRenderer}))==null?
void 0:E.videoPrimaryInfoRenderer;
(e=_.mG(b==null?void 0:b.title))&&G.JSC$23377_watchApi.dispatchEvent("yt-update-title",e)};_.Xit=function(G){_.pB.call(this);this.JSC$23380_watchApi=G;az2(this)};
_.K(_.Xit,_.pB);var az2=function(G){var e,r;_.D(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$23380_watchApi.playerApi,2);e=Z.yieldResult;r=function(){G.onYpcContentRequest()};
e.addEventListener("onYpcContentRequest",r);G.addOnDisposeCallback(function(){e.removeEventListener("onYpcContentRequest",r)});
_.HL(Z)})};
_.Xit.prototype.onYpcContentRequest=function(){var G,e,r,Z,O,M=(G=this.JSC$23380_watchApi.getWatchNextResponse())==null?void 0:(e=G.contents)==null?void 0:(r=e.twoColumnWatchNextResults)==null?void 0:(Z=r.secondaryResults)==null?void 0:(O=Z.secondaryResults)==null?void 0:O.offerModule,T,E,b,w;G=(w=(b=(E=(T=M==null?void 0:M.episodeOfferModuleRenderer)!=null?T:M==null?void 0:M.movieOfferModuleRenderer)!=null?E:M==null?void 0:M.unlimitedOfferModuleRenderer)!=null?b:M==null?void 0:M.liveOfferModuleRenderer)!=
null?w:M==null?void 0:M.tvfilmOfferModuleRenderer;var q,t,g;M=(g=M==null?void 0:(q=M.tvfilmOfferModuleRenderer)==null?void 0:(t=q.actionButtons)==null?void 0:t.length)!=null?g:0;t=Math.max(M-1,0);var l,X,H;q=(H=G==null?void 0:(l=G.offerButton)==null?void 0:l.buttonRenderer)!=null?H:G==null?void 0:(X=G.actionButtons)==null?void 0:X[t].buttonRenderer;var I,C;(l=(C=(I=q==null?void 0:q.navigationEndpoint)!=null?I:q==null?void 0:q.serviceEndpoint)!=null?C:q==null?void 0:q.command)&&_.Ga.instance.resolveCommand(l)};
}catch(e){_._DumpException(e)}
try{
var EP8,hcA,MDW;_.VDm=function(){var G=_.c2.clone(ORa),e;return(new _.aQ(function(r,Z){G.onSuccess=function(O){_.Vqa(O)?r(new MDW(O)):Z(new _.m4("Request failed, status="+_.lq(O),"net.badstatus",O))};
G.onError=function(O){Z(new _.m4("Unknown request error","net.unknown",O))};
G.onTimeout=function(O){Z(new _.m4("Request timed out","net.timeout",O))};
e=_.fr("//googleads.g.doubleclick.net/pagead/id",G)})).thenCatch(function(r){if(r instanceof _.fx){var Z;
(Z=e)==null||Z.abort()}return _.Ss(r)})};
_.TvH=function(G){a:{var e="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(e="EMBEDDED_PLAYER_MODE_PFL");var r=G.raw_embedded_player_response;if(!r&&(G=G.embedded_player_response))try{r=JSON.parse(G)}catch(O){break a}if(r)b:for(var Z in hcA)if(hcA[Z]==r.embeddedPlayerMode){e=hcA[Z];break b}}return e==="EMBEDDED_PLAYER_MODE_PFL"};
_.DeA=function(){if(_.R("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("wf");if(!_.BhN())return Error("xf");var G=_.xZ("PLAYER_VARS",{});if(_.c2.get(G,"privembed",!1)=="1")return Error("yf");if(_.TvH(G))return Error("zf")};
EP8=function(G){switch(G){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:_.zC(G,"unknown result type")}};
_.iRY=function(G,e,r){e=_.eU$[e];r={detected:G===0,source:e.zH3,detectionResult:EP8(G),contentCpn:r};_.cg("biscottiBasedDetection",r);_.Jmy.increment(e.zH3,G);e.oX3!==void 0&&_.BX("CATSTAT",_.LNy(G,e))};
_.c7=function(G,e){var r={};r.key=G;r.value=e;return _.jkN().then(function(Z){return new Promise(function(O,M){try{var T=Z.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(r);T.onsuccess=function(){O()};
T.onerror=function(){M()}}catch(E){M(E)}})})};
_.vPW=function(){var G=_.qt("user_engagement_experiments_rate_limit_ms"),e=bRV.get("last-user-engagement-exp-trigger-timestamp");return!e||(0,_.vG)()>=e+G?(bRV.set("last-user-engagement-exp-trigger-timestamp",(0,_.vG)()),!0):!1};
_.Yl=function(G,e,r,Z,O){e=e===void 0?null:e;r=r===void 0?null:r;Z=Z===void 0?null:Z;O=O===void 0?null:O;G={youThereEventType:G};r&&(G.lactThresholdMs=r.lactThresholdMs,G.mediaPosSec=r.promptDelaySec,G.lactServerRequestMs=r.lactServerRequestMs,G.triggerReason=r.triggerReason);O!=null&&(G.renderingMediaPosSec=Math.round(O));e||(e=_.l4());e&&(G.clientScreenNonce=e);Z&&(G.clientPlaybackNonce=Z);_.cg("youThere",G)};
hcA={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"};MDW=function(G){this.xhr=G};
_.m4=function(G,e,r){_.rs.call(this,G+", errorCode="+e);this.errorCode=e;this.xhr=r;this.name="PromiseAjaxError"};
_.K(_.m4,_.rs);var ORa={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var bRV=new _.PG("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.ZRH=function(G){return _.UK({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:G})};
}catch(e){_._DumpException(e)}
try{
var AU,LHz,eBj,ry2,Z_2,O_z,VqX,$nq,SK2,qKk,MqX,Gnk,EJX,DnX,l_w;_.No2=function(){var G=window.location.hash;G.charAt(0)==="#"&&(G=G.charAt(1)==="!"?G.substring(2):G.substring(1));return _.ZW(G)};
AU=function(G,e,r){var Z;return _.D(function(O){if(O.nextAddress==1)return O.yield(e(),2);Z=O.yieldResult;r(Z,G);_.HL(O)})};
LHz=function(){return _.D(function(G){return G.nextAddress==1?G.yield((_.DeA()!==void 0?_.Ss(Error("Af")):_.VDm()).then(function(){return 1},function(e){if(e.message==="Biscotti id is disabled")return 3;
_.FH("Failed fetching bid");return 0}),2):G.return(G.yieldResult)})};
eBj=function(){var G=_.Jh("dmVuLWVtYmVkLXBsYXllciNobm1ycTFrYm56MTJ5dC1oYQ=="),e=_.Jh("Z2xpZnJhbWUjeHJ1OGk5dzVkeA==");return document.querySelector(e+Gnk+G)?0:1};
ry2=function(){return _.cqF(_.Tt)};
Z_2=function(){return _.YEp()===0?0:_.yqq()};
O_z=function(){return _.xm4(_.hvs([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
VqX=function(){return _.sGi(MqX)};
_.hB_=function(G){_.D(function(e){switch(e.nextAddress){case 1:return e.yield(AU("b.f_",LHz,G),2);case 2:return e.yield(AU("j.s_",_.dmN,G),3);case 3:return e.yield(AU("r.s_",_.foi,G),4);case 4:return e.yield(AU("e.h_",VqX,G),5);case 5:if(!_.R("ab_det_sc_inj")){e.jumpTo(6);break}return e.yield(AU("s.i_",_.nmN,G),6);case 6:if(_.R("ab_deg_unex_thr")){e.jumpTo(8);break}return e.yield(AU("a.o_",_.Coi,G),8);case 8:if(_.R("ks_get_o_pp")){e.jumpTo(10);break}return e.yield(AU("g.o_",_.pyf,G),10);case 10:if(_.R("ks_det_gpbl")){e.jumpTo(12);
break}return e.yield(AU("p.i_",_.IoS,G),12);case 12:return e.yield(AU("f.i_",_.$mq,G),14);case 14:return e.yield(AU("a.b_",_.Xy$,G),15);case 15:return e.yield(AU("p.m_",_.tT_,G),16);case 16:if(!_.R("ab_det_el_h_v2")){e.jumpTo(17);break}return e.yield(AU("n.h_",O_z,G),17);case 17:return e.yield(AU("o.p_",ry2,G),19);case 19:return e.yield(AU("e.i_",eBj,G),20);case 20:if(_.R("ab_det_apm"))return e.yield(AU("o.a_",Z_2,G),0);e.jumpTo(0)}})};
_.TJq=function(G,e){G={videoId:G};e&&(G.playlistId=e);return G};
_.i_q=function(){if(_.BhN()){var G=_.xZ("PLAYER_VARS",{});if(_.c2.get(G,"privembed",!1)!="1"&&!_.TvH(G)){var e=function(){DnX=!0;"google_ad_status"in window?_.BX("DCLKSTAT",1):_.BX("DCLKSTAT",2)};
try{_.Hi(_.xZW,e)}catch(r){}EJX.push(_.A0.addLowPriorityJob(function(){if(!(DnX||"google_ad_status"in window)){try{_.n6N(_.xZW.toString(),e)}catch(r){}DnX=!0;_.BX("DCLKSTAT",3)}},5E3))}}};
_.b_2=function(G,e,r){r=r===void 0?!1:r;var Z=Math.max(G.width,_.EZt);if(_.R("kevlar_watch_feed_big_thumbs")&&G.width>=1550-_.fv()&&G.height>=800)Z-=_.S9q;else if(G.width>=_.Cn){var O=_.iz_+_.bzj+_.pn;_.R("kevlar_watch_feed_big_thumbs")&&(O=_.$0q);Z-=O}else Z-=_.iz_;Z=Math.min(Z,_.vZX);O=240;r&&(O=380);e<.5624||(!_.R("kevlar_watch_flexy_disable_small_window_sizing")&&(G.height<630&&G.width>=657||G.height>=630&&G.width>=_.Cn&&G.width<1327)?O=360:!_.R("kevlar_watch_flexy_disable_large_window_sizing")&&
G.height>=630&&G.width>=1327&&(O=480));var M=Math.min(Z*e,G.height-(56+_.D0z+_.wXX));M=Math.max(M,O);e<1?Z=M/e:G.width>=_.Cn&&(Z=_.b_2(G,.5625,r).width);return new _.kf(Math.round(Z),Math.round(M))};
_.vJ2=function(G){var e=0;G.indexOf("h")!=-1&&(G=G.split("h"),e=G[0]*60*60,G=G[1]);G.indexOf("m")!=-1&&(G=G.split("m"),e=G[0]*60+e,G=G[1]);G.indexOf("s")!=-1?(G=G.split("s"),e=G[0]*1+e):e=G*1+e;return e};
_.wn$=function(){_.qt("service_worker_push_logged_out_prompt_watches")!=-1&&_.Hq("WatchCount").then(function(G){G>=100||_.c7("WatchCount",G+1)})};
$nq=function(G){var e=G.externalVideoId||"";return e?G.isShortsEligible?"https://www.youtube.com/shorts/"+e:"https://www.youtube.com/watch?v="+e:""};
SK2=function(G){var e=[];G.viewCount&&e.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:G.viewCount});G.likeCount&&e.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:G.likeCount});return e};
qKk=function(G){var e,r,Z={"@context":"https://schema.org","@type":"VideoObject",description:_.mG(G.description),duration:"PT"+(G.lengthSeconds||"0")+"S",embedUrl:G.embed?G.embed.iframeUrl:"",name:_.mG(G.title),thumbnailUrl:((e=G.thumbnail)==null?void 0:(r=e.thumbnails)==null?void 0:r.map(function(q){return q&&q.url||""}))||[],
uploadDate:G.publishDate};_.R("mweb_video_schema_id_killswitch")||(Z["@id"]=$nq(G));e=SK2(G);e.length&&(Z.interactionStatistic=e);G.category&&(Z.genre=G.category);G.ownerChannelName&&(Z.author=G.ownerChannelName);G.liveBroadcastDetails&&(Z.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:G.liveBroadcastDetails.startTimestamp,endDate:G.liveBroadcastDetails.endTimestamp}]);if(G.learningResource){G=G.learningResource;Z["@type"]=["VideoObject","LearningResource"];var O;if((O=G.learningResourceType)==
null?0:O.length)Z.learningResourceType=G.learningResourceType[0];var M;if((M=G.educationalAlignment)==null?0:M.length)Z.educationalAlignment={"@type":"AlignmentObject",targetName:G.educationalAlignment[0]};var T;if((T=G.educationalLevel)==null?0:T.length){O=G.educationalLevel[0];var E;if((E=G.educationalLevelCountry)==null?0:E.length)O+=" ("+G.educationalLevelCountry+")";Z.educationalLevel=O}var b,w;if(((b=G.learningResourceType)==null?0:b.length)&&G.learningResourceType[0]==="Problem walkthrough"&&
((w=G.problemDescriptions)==null?0:w.length))for(Z.hasPart=[],E=_.h(G.problemDescriptions),b=E.next();!b.done;b=E.next())O=b.value,b=O.problemDescriptionText,w=O.startOffset,O=O.url,b&&w!==void 0&&O&&Z.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:b,text:b,startOffset:w,url:O})}return Z};
_.tqj=function(G){return _.UK({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:G}})};
MqX=[[["bWFyeSN0MW9qeDM4aGVsb2Fwcmk=",null,null],[null,["d28tY29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyI2ZvMnl2bndndW0xM3l0ZC10","dHN0eWxlLXNjb3BlIzF4bGU2d3dncnlj"],null],["bm1hc3RoZWFkLWFkIzdvdTJjZjQ2cG1q",["LWdyaWQtcmVuZGVyZXIjdnZ4ZTB6Zmg1dDEyeXRkLXJpY2g="],null],[null,["LWdyaWQtcmVuZGVyZXIjazV5anJvejdwdDQzeXRkLXJpY2g=","anN0eWxlLXNjb3BlIzNic3pqb2E4ajhj"],null],[null,["cmVuZGVyZXIjc3F3NTVxOHN3a3loeXRkLWJhbm5lci1wcm9tby0=","MnN0eWxlLXNjb3BlI2l5eGVkMzR3c21k"],null],[null,["ZC1hZC1zbG90LXJlbmRlcmVyIzQ4aGxpeXF3NHNwcXl0"],
null]],[["NnAwZHhwbGF5ZXItYWRzI25qcnZuZHo=",null,null]],[[null,null,"YS1yZW5kZXJlciNwNmRsb2xtdjhhZ215dGxyLWJhbm5lci1jdA=="]]];Gnk="#";EJX=[];DnX=!1;_.gJv=["engagement-panel-ads"];l_w=new _.L9("updateSentimentBarStateCommand");_.RBq=new _.L9("showSurveyCommand");_.Fj=new _.L9("changeMarkersVisibilityCommand");var a_t,Xn2,H_Z,knz,f_z,JU;_.jlj=function(G,e){this.playerProvider_=G;this.actionSenderElement_=e;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.jlj.prototype.reset=function(){a_t(this);this.isUserPredictedAbsent_=!1};
a_t=function(G,e){!G.youThereData_||G.showWarningJob_||e!==void 0&&e||(_.Yl("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.l4(),G.youThereData_,G.clientPlaybackNonce_),_.Yc());_.A0.cancelJob(G.showWarningJob_);G.showWarningJob_=0;_.A0.cancelJob(G.showBlockingWarningJob_);G.showBlockingWarningJob_=0;_.A0.cancelJob(G.pausePlaybackJob_);G.pausePlaybackJob_=0;G.youThereData_=null;G.clientPlaybackNonce_=void 0;G.inYouThereFlow_=!1};
_.KCv=function(G,e){var r,Z,O;_.D(function(M){if(M.nextAddress==1)return G.reset(),M.yield(G.playerProvider_().getPlayerPromise(),2);r=M.yieldResult;G.clientPlaybackNonce_=r.getVideoData().cpn;G.youThereData_=e.configData.youThereData;if(!G.youThereData_)return M.return();if(G.youThereData_.triggerReason&&G.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.vPW())return _.Yl("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.l4(),G.youThereData_,G.clientPlaybackNonce_),M.return();Z=G.youThereData_.promptDelaySec;
O=r.getCurrentTime();G.showWarningJob_=_.A0.addLowPriorityJob(function(){return _.D(function(T){G.showWarningJob_=0;return T.yield(Xn2(G),0)})},Math.max(Z-O,0)*1E3);
_.HL(M)})};
Xn2=function(G){var e,r,Z,O,M,T;return _.D(function(E){if(E.nextAddress==1)return E.yield(G.playerProvider_().getPlayerPromise(),2);if(E.nextAddress!=3)return e=E.yieldResult,r=e.getCurrentTime(),E.yield(f_z(G),3);Z=E.yieldResult;if(!Z||!G.youThereData_)return E.return();if(_.R("check_user_lact_at_prompt_shown_time_on_web")&&(O=parseInt(G.youThereData_.lactThresholdMs,10),_.bj()<O))return _.Yl("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.l4(),G.youThereData_,G.clientPlaybackNonce_),E.return();if(G.youThereData_.playbackPauseDelayMs<=
0)return knz(G),E.return();!_.R("external_fullscreen")&&(M=_.Ab())&&(G.ignoreFullscreenExitUserActivity_=!0,_.A0.addLowPriorityJob(function(){G.ignoreFullscreenExitUserActivity_=!1},2E3),_.FR(M));
G.youThereData_.showToastWarningPrompt&&(JU(G,G.youThereData_.showWarningActions),G.inYouThereFlow_=!0,_.Yl("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.l4(),G.youThereData_,G.clientPlaybackNonce_,r),_.Yl("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.l4(),G.youThereData_,G.clientPlaybackNonce_,r));T=0;G.youThereData_.blockingPromptDelayMs&&(T=G.youThereData_.blockingPromptDelayMs);G.showBlockingWarningJob_=_.A0.addLowPriorityJob(function(){return _.D(function(b){G.showBlockingWarningJob_=0;return b.yield(H_Z(G),
0)})},T);
_.HL(E)})};
H_Z=function(G){var e,r,Z;return _.D(function(O){if(O.nextAddress==1)return O.yield(f_z(G),2);e=O.yieldResult;if(!G.youThereData_)return O.return();e&&(G.youThereData_.showBlockingWarningAction&&(_.Yl("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.l4(),G.youThereData_,G.clientPlaybackNonce_),(r=_.a(G.youThereData_.showBlockingWarningAction,_.LO))?JU(G,r.commands):JU(G,[G.youThereData_.showBlockingWarningAction]),G.inYouThereFlow_=!0),Z=G.youThereData_.playbackPauseDelayMs,G.pausePlaybackJob_=
_.A0.addLowPriorityJob(function(){return _.D(function(M){G.pausePlaybackJob_=0;return M.yield(knz(G),0)})},Z));
_.HL(O)})};
knz=function(G){var e;return _.D(function(r){if(r.nextAddress==1)return r.yield(f_z(G),2);e=r.yieldResult;if(!G.youThereData_)return r.return();e&&(_.Yl("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.l4(),G.youThereData_,G.clientPlaybackNonce_),JU(G,G.youThereData_.showPausedActions),G.inYouThereFlow_=!0);_.HL(r)})};
_.jlj.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var G=_.a(this.youThereData_.userActiveDuringFlowAction,_.LO);G?JU(this,G.commands):JU(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.Yl("YOU_THERE_EVENT_TYPE_LACT_RESET",_.l4(),this.youThereData_,this.clientPlaybackNonce_),_.Yc());a_t(this,!0)}_.dn_(this,!1)};
_.oJZ=function(G){_.Yl("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.l4(),G.youThereData_,G.clientPlaybackNonce_)};
f_z=function(G){var e,r;return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(G.playerProvider_().getPlayerPromise(),2);e=Z.yieldResult;r=e.getPlayerState();return Z.return(r==-1||r==1||r==3)})};
_.dn_=function(G,e){var r;_.D(function(Z){if(Z.nextAddress==1){if(G.isUserPredictedAbsent_==e)return Z.jumpTo(0);G.isUserPredictedAbsent_=e;return Z.yield(G.playerProvider_().getPlayerPromise(),3)}r=Z.yieldResult;r.setUserEngagement(e);e&&_.Yl("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.l4(),G.youThereData_,G.clientPlaybackNonce_);_.HL(Z)})};
JU=function(G,e){if(_.R("handle_service_request_actions")||_.R("kevlar_youthere_service_endpoint_actions_killswitch"))_.Wi(G.actionSenderElement_,e,G.actionSenderElement_);else{e=_.h(e);for(var r=e.next();!r.done;r=e.next())r=r.value,r.commandMetadata&&r.commandMetadata.webCommandMetadata&&r.commandMetadata.webCommandMetadata.sendPost?_.zw(G.actionSenderElement_,[r]):_.Wi(G.actionSenderElement_,[r],G.actionSenderElement_)}};var sl$;var Qlk;var B8=function(){var G=_.m.apply(this,arguments)||this;G.systemIcons=_.R("kevlar_system_icons");G.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return G};
_.K(B8,_.m);B8.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var G=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(G=this.data.percentIfLiked||0,this.activated=!0):(G=this.data.percentIfIndifferent||0,this.activated=!1);_.z1(this.hostElement).querySelector("#like-bar").style.width=G+"%"}};
B8.prototype.handleUpdateSentimentBarStateCommand=function(G){this.data&&this.set("data.likeStatus",_.a(G,l_w).likeStatus)};
B8.prototype.observeLikeStatus=B8.prototype.observeLikeStatus;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],B8.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],B8.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],B8.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],B8.prototype,"activated",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],B8.prototype,"systemIcons",void 0);_.B([_.Me("data.likeStatus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B8.prototype,"observeLikeStatus",null);_.B([_.c({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],B8);
_.A(B8,"ytd-sentiment-bar-renderer",function(){if(Qlk!==void 0)return Qlk;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Qlk=G},{mode:1});var I_k;var xd=function(){var G=_.m.apply(this,arguments)||this;G.small=!0;return G};
_.K(xd,_.m);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],xd.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],xd.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],xd.prototype,"small",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],xd);
_.A(xd,"ytd-video-view-count-renderer",function(){if(I_k!==void 0)return I_k;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return I_k=G},{mode:_.Px("kevlar_poly_si_batch_j080")?1:2});var P8=function(){var G=_.m.apply(this,arguments)||this;G.infoFormattedStrings=[];G.wrapVideoActions=_.R("kevar_watch_wrap_video_actions");G.hideSentimentBar=_.R("kevlar_watch_hide_sentiment_bar");G.actionMap={};return G};
_.K(P8,_.m);_.V=P8.prototype;_.V.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.R("web_modern_buttons"),forceIconButton:!_.R("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.V.dataChanged=function(){_.R("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.V.computeInfoFormattedStrings=function(G){if(!G)return[];var e=[];G.dateText&&e.push(G.dateText);G.stationName&&e.push(G.stationName);G.rating&&e.push(G.rating);G.startEndTimeTemplate&&G.startTimeUtcMillis&&G.endTimeUtcMillis&&e.push(_.nQ(_.lDz(_.mG(G.startEndTimeTemplate),Number(G.startTimeUtcMillis),Number(G.endTimeUtcMillis))));G.upNextProgramText&&e.push(G.upNextProgramText);return e};
_.V.scheduleInitialUpdatedMetadataRequest=function(){var G,e=(G=this.data)==null?void 0:G.updatedMetadataEndpoint;if(e){var r;G=Number((r=_.a(e,_.Q_b))==null?void 0:r.initialDelayMs);r=isNaN(G)?250:G;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),r)}};
_.V.setSentimentBarWidth=function(){var G=this;_.DE(this,function(){var e=_.z1(G.hostElement).querySelector("ytd-menu-renderer");if(e){e=e.topLevelButtons;for(var r=0,Z=0;Z<e.length;Z++){var O=e[Z],M=G.get("toggleButtonSupportedData.toggleButtonIdData.id",O.data);if(M==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||M==="TOGGLE_BUTTON_ID_TYPE_LIKE")r+=O.clientWidth+8;else break}r&&(G.sentiment.style.width=r-8+" px")}})};
_.V.fetchUpdatedMetadata=function(G){var e;G&&(e={continuation:G});var r;(G=(r=this.data)==null?void 0:r.updatedMetadataEndpoint)&&_.v_().resolve(_.$1).resolveCommand(G,{form:Object.assign({},e,{element:this.hostElement})})};
_.V.onYtServiceRequestSent=function(G,e){e.endpoint&&_.a(e.endpoint,_.Kx)&&(this.hasUpdateSentimentBarStateCommands()&&!_.R("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.a(e.endpoint,_.Kx).status),this.setSentimentBarWidth())};
_.V.hasUpdateSentimentBarStateCommands=function(){var G,e,r,Z,O=(Z=(G=this.data)==null?void 0:(e=G.videoActions)==null?void 0:(r=e.menuRenderer)==null?void 0:r.topLevelButtons)!=null?Z:[];G=_.h(O);for(e=G.next();!e.done;e=G.next()){e=e.value;O=Z=r=void 0;var M=(r=e.toggleButtonRenderer)==null?void 0:(Z=r.toggleButtonSupportedData)==null?void 0:(O=Z.toggleButtonIdData)==null?void 0:O.id;if(M==="TOGGLE_BUTTON_ID_TYPE_LIKE"||M==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){Z=r=void 0;e=(Z=_.a((r=e.toggleButtonRenderer)==
null?void 0:r.defaultServiceEndpoint,_.LO))==null?void 0:Z.commands;if(!e)break;e=_.h(e);for(r=e.next();!r.done;r=e.next())if(_.a(r.value,l_w))return!0}}return!1};
_.V.onYtServiceRequestCompleted=function(G,e){var r;(G=(r=e.data)==null?void 0:r.loggingDirectives)&&_.Bn4(_.h_(),G);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))};
_.V.computeHasDateText=function(G){return!!G&&!!G.dateText};
_.iY.Object.defineProperties(P8.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var G,e,r,Z;return!((Z=(G=this.data)==null?void 0:(e=G.videoActions)==null?void 0:(r=e.menuRenderer)==null?void 0:r.flexibleItems)==null||!Z.length)}}});
P8.prototype.onYtServiceRequestCompleted=P8.prototype.onYtServiceRequestCompleted;P8.prototype.onYtServiceRequestSent=P8.prototype.onYtServiceRequestSent;P8.prototype.dataChanged=P8.prototype.dataChanged;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],P8.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],P8.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],P8.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.Zs.YtTaskEmitterBehavior),_.x("design:type",Object)],P8.prototype,"ytTaskEmitterBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],P8.prototype,"data",void 0);_.B([_.n({computed:"computeInfoFormattedStrings(data)"}),_.x("design:type",Array)],P8.prototype,"infoFormattedStrings",void 0);
_.B([_.n({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],P8.prototype,"hasDateText",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],P8.prototype,"wrapVideoActions",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],P8.prototype,"hideSentimentBar",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],P8.prototype,"flexMenuEnabled",null);
_.B([_.hs("#sentiment"),_.x("design:type",Object)],P8.prototype,"sentiment",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],P8.prototype,"dataChanged",null);_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.oV]),_.x("design:returntype")],P8.prototype,"onYtServiceRequestSent",null);
_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.n1]),_.x("design:returntype")],P8.prototype,"onYtServiceRequestCompleted",null);
_.A(P8,"ytd-video-primary-info-renderer",function(){if(sl$===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);sl$=G}G=sl$;return G},{mode:1});var pnz;var Uq=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return G};
_.K(Uq,_.m);_.V=Uq.prototype;_.V.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"}}}};
_.V.dataChanged=function(){var G;this.descriptionToggled=!((G=this.data)==null||!G.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=_.L1(110509);this.showLessClientVe=_.L1(110510);G=_.l4();e=_.go();G&&e&&_.Il(G,e,[this.showMoreClientVe,this.showLessClientVe])};
_.V.onYtExpanderMoreTapped=function(){var G,e=(G=this.data)==null?void 0:G.showMoreCommand;e&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(e);(G=_.l4())&&this.showMoreClientVe&&_.n_(G,this.showMoreClientVe)};
_.V.onYtExpanderLessTapped=function(){var G=_.l4();G&&this.showLessClientVe&&_.n_(G,this.showLessClientVe);var e;(G=(e=this.data)==null?void 0:e.showLessCommand)&&this.componentBehavior.resolveCommand(G)};
_.V.handleUpdateDateTextAction=function(G){this.data&&this.data.dateText&&this.set("data.dateText",_.a(G,_.rHt).dateText)};
_.V.handleUpdateDescriptionAction=function(G){if(G=_.a(G,_.IoC))G.isEmpty||!G.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.l1(G.description)):this.set("data.description",G.description)};
_.V.onYtChangeEngagementPanelVisibilityAction=function(G){if(_.R("web_structured_description_show_more")||_.R("web_engagement_panel_open_description")){var e,r=(e=_.a(G,_.QeW))==null?void 0:e.targetId,Z;G=((Z=_.a(G,_.QeW))==null?void 0:Z.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";r==="engagement-panel-structured-description"&&G&&(this.descriptionToggled=!0)}};
_.V.updateCollapsedFromBinding=function(G){this.collapsed=G.detail.value};
_.V.updateDescriptionToggledFromBinding=function(G){this.descriptionToggled=G.detail.value};
_.V.updateCanCollapseFromBinding=function(G){this.canCollapse=G.detail.value};
_.iY.Object.defineProperties(Uq.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var G,e,r=(G=this.data)==null?void 0:(e=G.metadataRowContainer)==null?void 0:e.metadataRowContainerRenderer;return!!r&&!!r.rows&&r.rows.length>r.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.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}}});
Uq.prototype.onYtExpanderLessTapped=Uq.prototype.onYtExpanderLessTapped;Uq.prototype.onYtExpanderMoreTapped=Uq.prototype.onYtExpanderMoreTapped;Uq.prototype.dataChanged=Uq.prototype.dataChanged;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Uq.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Uq.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Uq.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Uq.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Uq.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Boolean)],Uq.prototype,"collapsed",void 0);_.B([_.n(),_.x("design:type",Boolean)],Uq.prototype,"descriptionToggled",void 0);
_.B([_.n(),_.x("design:type",Boolean)],Uq.prototype,"canCollapse",void 0);_.B([_.n(),_.x("design:type",Object)],Uq.prototype,"subscribeButtonData",void 0);_.B([_.n(),_.x("design:type",Number)],Uq.prototype,"descriptionCollapsedHeight",void 0);_.B([_.n(),_.x("design:type",Object)],Uq.prototype,"structuredDescriptionContentRenderer",void 0);_.B([_.n({value:function(){return _.R("web_watch_description_always_collapsed")}}),
_.x("design:type",Boolean)],Uq.prototype,"descriptionAlwaysCollapsed",void 0);_.B([_.hs("#description"),_.x("design:type",HTMLDivElement)],Uq.prototype,"description",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Uq.prototype,"dataChanged",null);_.B([_.Om("yt-expander-more-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Uq.prototype,"onYtExpanderMoreTapped",null);
_.B([_.Om("yt-expander-less-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Uq.prototype,"onYtExpanderLessTapped",null);_.B([_.d("data.metadataRowContainer"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Uq.prototype,"metadataCollapsible",null);_.B([_.d("data","structuredDescriptionContentRenderer"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Uq.prototype,"hasInlineStructuredDescription",null);
_.B([_.d("data.attributedDescription"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Uq.prototype,"hasAttributedDescription",null);_.B([_.d("hasInlineStructuredDescription","collapsed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Uq.prototype,"loadStructuredDescription",null);_.B([_.d("data","structuredDescriptionContentRenderer","collapsed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Uq.prototype,"showInlineStructuredDescription",null);
_.B([_.d("data","hasInlineStructuredDescription","metadataCollapsible"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Uq.prototype,"descriptionAlwaysCollapsible",null);
_.A(Uq,"ytd-video-secondary-info-renderer",function(){if(pnz===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);pnz=G}G=pnz;return G},{mode:2});var CpX;var zH=function(){return _.m.apply(this,arguments)||this};
_.K(zH,_.m);zH.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:_.R("web_modern_buttons"),forceIconButton:!_.R("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
zH.prototype.activate=function(G){G.appendTo(this.player);G.getPlayerPromise().then(function(e){e.setMinimized(!0)});
this.active=!0};
zH.prototype.deactivate=function(){var G=this.player.firstElementChild;G.getPlayerPromise().then(function(e){e.setMinimized(!1)});
this.active=!1;return G};
zH.prototype.onScrollUpTap=function(){var G=_.v_().resolve(_.y$).getCurrentPage();G&&G.setScrollTop(0)};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],zH.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],zH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],zH.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],zH.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],zH.prototype,"active",void 0);
_.B([_.n({reflectToAttribute:!0,value:function(){return _.R("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.x("design:type",Boolean)],zH.prototype,"darkLaunch",void 0);_.B([_.hs("#player"),_.x("design:type",HTMLDivElement)],zH.prototype,"player",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],zH);
_.A(zH,"ytd-miniplayer-bar-renderer",function(){if(CpX!==void 0)return CpX;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return CpX=G},{mode:1});_.J_(_.y(function(G){var e=_.hT("script");_.Y8(function(){var r;if(r=JSON)r=qKk(G.data()),r=_.Of(JSON.stringify(r).replace(/</g,"\\u003C"));var Z=G.data(),O=_.mG(Z.title).trim().length===0,M=!Z.publishDate||Z.publishDate.trim().length===0,T,E,b,w,q=!((T=Z.thumbnail)==null?0:(E=T.thumbnails)==null?0:E.length)||!((b=Z.thumbnail)==null?0:b.thumbnails[0].url)||((w=Z.thumbnail)==null?void 0:w.thumbnails[0].url.trim().length)===0;e.value&&r&&!(O||M||q)&&_.Vw(e.value,r)},"Vy9K7b");
return _.v("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.v("script",{el:e,type:"application/ld+json"}))},"io"),"player-microformat-renderer",{props:{data:_.yb}});
}catch(e){_._DumpException(e)}
try{
var fz2,kwk,dzt;_.KH_=function(G){return G.watch.watchWindowSize};
fz2=function(G,e){var r=document.querySelector(G);r?e(r):setTimeout(function(){fz2(G,e)},1E3)};
kwk=function(G,e,r,Z){if(G.isLockupToWatchTransitionEnabled){if(e){var O={};O=(O["watch-next-appears"]="player-watch-next-loaded",O);O["lockup-to-watch"]=G.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";G.viewTransitionCoordinator.registerElement(e,O)}r&&(e={},G.viewTransitionCoordinator.registerElement(r,(e["lockup-to-watch"]="below-lockup-to-watch",e["watch-next-appears"]="below-watch-next-loaded",e)));Z&&(r={},G.viewTransitionCoordinator.registerElement(Z,
(r["watch-next-appears"]="secondary-watch-next-loaded",r)))}};
_.HOz=function(G){return _.UK({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:G}})};
dzt=new _.L9("webWatchNextResponseExtensionData");var spZ=function(G){_.pB.call(this);var e=this;this.JSC$23384_watchApi=G;this.observer=null;var r=this.JSC$23384_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){oyy(e)});
this.addOnDisposeCallback(function(){e.JSC$23384_watchApi.unsubscribeByKey(r);e.observer&&(e.observer.disconnect(),e.observer=null)});
oyy(this)};
_.K(spZ,_.pB);
var oyy=function(G){var e,r,Z,O;_.D(function(M){if(M.nextAddress==1){G.observer&&(G.observer.disconnect(),G.observer=null);e=G.JSC$23384_watchApi.getWatchNextResponse();if(!e)return M.return();r=_.a(e,dzt);return((Z=r)==null?0:Z.enableCreatorChatbot)&&r.creatorChannelId?M.yield((0,_.Zxp)("NSzT5"),3):M.jumpTo(0)}O=_.aQ8;O(r.creatorChannelId);fz2("ytd-watch-metadata",function(T){G.observer=new MutationObserver(function(){var E,b;(E=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||
(b=E.closest("yt-button-view-model.ytd-menu-renderer"))==null||b.remove()});
G.observer.observe(T,{childList:!0,subtree:!0})});
_.HL(M)})};var me=function(G){_.pB.call(this);this.JSC$23388_watchApi=G;this.isShelfVisible=this.isAdPlaying=this.isSeeking=!1;QpZ(this)};
_.K(me,_.pB);var QpZ=function(G){_.D(function(e){if(e.nextAddress==1)return e.yield(Izq(G),2);piw(G);_.HL(e)})},Izq=function(G){var e,r,Z,O,M,T,E,b;
return _.D(function(w){if(w.nextAddress==1)return w.yield(G.JSC$23388_watchApi.playerApi,2);e=w.yieldResult;G.JSC$23388_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){C4k(G)});
G.JSC$23388_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){G.isShelfVisible?uRz(G):nyk(G)});
r=G.JSC$23388_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){piw(G)});
Z=function(q){G.onCueRangeEnter(q)};
e.addEventListener("onCueRangeEnter",Z);O=function(q){G.onCueRangeExit(q)};
e.addEventListener("onCueRangeExit",O);M=function(){G.isSeeking=!0};
e.addEventListener("SEEK_TO",M);T=function(){G.onSeekComplete()};
e.addEventListener("SEEK_COMPLETE",T);E=function(){G.onAdStart()};
e.addEventListener("onAdStart",E);b=function(){G.onAdComplete()};
e.addEventListener("onAdComplete",b);G.addOnDisposeCallback(function(){G.JSC$23388_watchApi.unsubscribeByKey(r);e.removeEventListener("onCueRangeEnter",Z);e.removeEventListener("onCueRangeExit",O);e.removeEventListener("SEEK_TO",M);e.removeEventListener("SEEK_COMPLETE",T);e.removeEventListener("onAdStart",E);e.removeEventListener("onAdComplete",b)});
_.HL(w)})},mzq=function(G){var e,r,Z,O,M,T,E,b,w;
return(M=(e=G.contents)==null?void 0:(r=e.twoColumnWatchNextResults)==null?void 0:(Z=r.results)==null?void 0:(O=Z.results)==null?void 0:O.contents)==null?void 0:(T=M.find(function(q){var t,g,l;return(t=q.itemSectionRenderer)==null?void 0:(g=t.contents)==null?void 0:(l=g[0])==null?void 0:l.shoppingTimelyShelfViewModel}))==null?void 0:(E=T.itemSectionRenderer)==null?void 0:(b=E.contents)==null?void 0:(w=b[0])==null?void 0:w.shoppingTimelyShelfViewModel},piw=function(G){var e;
_.D(function(r){if(r.nextAddress==1)return(e=G.JSC$23388_watchApi.getWatchNextResponse())?r.yield(C4k(G),2):r.return();G.shoppingTimelyShelfViewModel=mzq(e);cbw(G);YW2(G);_.HL(r)})},cbw=function(G){var e,r=(e=G.shoppingTimelyShelfViewModel)==null?void 0:e.offerIdToVariants;
r&&(e=r.filter(function(Z){return Z.key&&Z.value}).map(function(Z){return[Z.key,
Z.value]}),G.variantsMap=new Map(e))},YW2=function(G){var e,r,Z,O,M,T;
_.D(function(E){if(E.nextAddress==1)return(r=(e=G.shoppingTimelyShelfViewModel)==null?void 0:e.cueRanges)?E.yield(G.JSC$23388_watchApi.playerApi,2):E.return();Z=E.yieldResult;G.cueRanges=r;O=_.h(r);for(M=O.next();!M.done;M=O.next())T=M.value,T.startTime!==void 0&&T.endTime!==void 0&&T.id!==void 0&&Z.addCueRange("shopping_timely_shelf"+T.id,ybk(T.startTime),ybk(T.endTime));_.HL(E)})},ybk=function(G){return Number(G.seconds||0)+(G.nanos||0)/1E9};
me.prototype.onCueRangeEnter=function(G){if(G.startsWith("shopping_timely_shelf")&&(this.activeCueId=G,!this.isSeeking&&!this.isAdPlaying)){G=G.substring(21);var e,r,Z=(e=this.variantsMap)==null?void 0:(r=e.get(G))==null?void 0:r.shelf;Z&&(this.JSC$23388_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",Z),uRz(this))}};
me.prototype.onCueRangeExit=function(G){G.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||nyk(this))};
me.prototype.onSeekComplete=function(){this.isSeeking=!1;Ab_(this)};
var uRz=function(G){G.shoppingTimelyShelfViewModel&&(G.isShelfVisible=!0,_.e8.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},nyk=function(G){G.shoppingTimelyShelfViewModel&&(G.isShelfVisible=!1,_.e8.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},C4k=function(G){var e,r,Z,O,M;
return _.D(function(T){if(T.nextAddress==1)return T.yield(G.JSC$23388_watchApi.playerApi,2);e=T.yieldResult;if(G.cueRanges)for(r=_.h(G.cueRanges),Z=r.next();!Z.done;Z=r.next())O=Z.value,O.id&&(M="shopping_timely_shelf"+O.id,e.removeCueRange(M));G.JSC$23388_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});nyk(G);G.shoppingTimelyShelfViewModel=void 0;G.cueRanges=void 0;G.variantsMap=void 0;G.isSeeking=!1;G.activeCueId=void 0;_.HL(T)})};
me.prototype.onAdStart=function(){this.isAdPlaying=!0;nyk(this)};
me.prototype.onAdComplete=function(){this.isAdPlaying=!1;Ab_(this)};
var Ab_=function(G){if(G.activeCueId)G.onCueRangeEnter(G.activeCueId);else nyk(G)};var P4X=function(G){_.pB.call(this);var e=this;this.JSC$23395_watchApi=G;G=_.IC(_.Yt(),_.MlN,function(){FHk(e)});
this.addOnDisposeCallback(G);G=_.IC(_.Yt(),_.KH_,function(){FHk(e)});
this.addOnDisposeCallback(G);Jbz(this);Boj(this);xzz()};
_.K(P4X,_.pB);var Jbz=function(G){var e=function(Z){_.Yt().dispatch(_.Rty(Z.matches))},r=window.matchMedia("(max-width: "+(999+_.fv())+"px)");
r.addListener(e);G.addOnDisposeCallback(function(){r.removeListener(e)});
e(r)},Boj=function(G){G.JSC$23395_watchApi.registerActionHandler("yt-window-resized",function(){xzz()});
G.addOnDisposeCallback(function(){G.JSC$23395_watchApi.unregisterActionHandler("yt-window-resized")})},xzz=function(){var G=_.T1();
_.Yt().dispatch(_.UK({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:G.width,height:G.height}}}))},FHk=function(G){var e;
_.D(function(r){if(r.nextAddress==1)return r.yield(G.JSC$23395_watchApi.playerApi,2);e=r.yieldResult;e.setSize(NaN,NaN);_.HL(r)})};var Uzz=function(G){_.pB.call(this);var e=_.v_().resolve(_.oY);kwk(e,G.getElement("PLAYER_CONTAINER"),G.getElement("BELOW_THE_PLAYER"),G.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var r=G.getElement("PLAYER_CONTAINER"),Z=G.getElement("BELOW_THE_PLAYER"),O=G.getElement("SECONDARY");e.isLockupToWatchTransitionEnabled&&(r&&_.KW(e.viewTransitionCoordinator,r),Z&&_.KW(e.viewTransitionCoordinator,Z),O&&_.KW(e.viewTransitionCoordinator,O))})};
_.K(Uzz,_.pB);_.c8=function(G){_.Ar.call(this);var e=this;this.rootElement=G;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return e.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(r){e.initOrDisposeActiveModules(r)}));
this.onAttached()};
_.K(_.c8,_.Ar);_.V=_.c8.prototype;_.V.getRoot=function(){return this.rootElement};
_.V.getElement=function(G){return this.rootElement.getElement(G)};
_.V.setPlayerResponse=function(G){this.playerResponse=G;this.publish("PLAYER_RESPONSE_UPDATED",G)};
_.V.getPlayerResponse=function(){return this.playerResponse};
_.V.setWatchNextResponse=function(G){this.watchNextResponse===G?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=G,this.publish("WATCH_NEXT_RESPONSE_UPDATED",G))};
_.V.getWatchNextResponse=function(){return this.watchNextResponse};
_.V.registerActionHandler=function(G,e){var r=this;if(_.R("web_watch_controller_reg_multiple_handlers_killswitch")){var Z={};_.re(_.e8.getInstance(),(Z[G]=e,Z),this.getRoot())}else this.actionHandlers.has(G)||(this.actionHandlers.set(G,[]),Z={},_.re(_.e8.getInstance(),(Z[G]=function(){var O=_.Bw.apply(0,arguments);return(r.actionHandlers.get(G)||[]).map(function(M){return M.apply(null,_.mY(O))})},Z),this.getRoot())),this.actionHandlers.get(G).push(e)};
_.V.unregisterActionHandler=function(G){if(_.R("web_watch_controller_reg_multiple_handlers_killswitch")){var e={};_.Mx(_.e8.getInstance(),(e[G]=!0,e),this.getRoot())}else(e=this.actionHandlers.get(G))?(e.pop(),e.length===0&&(e={},_.Mx(_.e8.getInstance(),(e[G]=!0,e),this.getRoot()),this.actionHandlers.delete(G))):_.FH(new _.Cr("Attempted to unregister an action handler which is not registered.",G))};
_.V.addPageDisposeJob=function(G){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.o4S(this.rootElement.pageDisposeJobs,G)};
_.V.removePageDisposeJob=function(G){this.rootElement.pageDisposeJobs&&_.yp(this.rootElement.pageDisposeJobs,G)};
_.V.dispatchEvent=function(G,e){_.xy(this.rootElement,G,e)};
_.V.provideRenderingData=function(G,e){this.rootElement.provideRenderingData(G,e)};
_.V.scrollWatchTo=function(G,e){var r;(r=this.watchScrollManager)==null||r.scrollWatchTo(G,e)};
_.V.focusOnPlayer=function(){var G=this.getElement("PLAYER");_.DE(G,function(){if(G&&G.firstElementChild){var e=G.querySelector(".html5-video-player");e&&(_.hv(_.v_().resolve(_.bZ)),e.focus())}else _.FH(Error("bp"))})};
_.V.subscribeToActiveChanged=function(G,e){e=e===void 0?!0:e;var r=_.IC(_.Yt(),_.$Mq,function(Z){G(Z)});
e&&G(_.$Mq(_.Yt().getState()));return r};
_.V.isActive=function(){return _.$Mq(_.Yt().getState())};
_.V.onAttached=function(){var G=_.R("external_fullscreen");_.R("use_unified_flag_accessor")&&(G=_.v_().resolve(_.d0A).retriever.getFlag(_.lGl));(G||_.PX("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var zg$=function(G){return G.getRoot().is==="ytd-watch-flexy"||G.getRoot().is==="ytd-watch-grid"},Yd=function(G){return G.getRoot().is==="ytd-watch-fixie"};
_.c8.prototype.initPersistentModules=function(){if(Yd(this)||zg$(this)&&_.R("kevlar_watch_flexy_theater_manager")){var G=new _.Uxt(this);_.Xx(this,G)}G=new _.nuv(this);_.Xx(this,G);G=new _.sq(this);_.Xx(this,G);G=new _.Qd_(this);_.Xx(this,G);G=new _.uh(this);_.Xx(this,G);G=new _.QZ(this);_.Xx(this,G);if(Yd(this)||zg$(this)&&_.R("kevlar_watch_flexy_playlist_manager"))G=new _.SWy(this),_.Xx(this,G);_.R("web_thumbnail_to_watch_transition")&&(G=new Uzz(this),_.Xx(this,G))};
_.c8.prototype.initOrDisposeActiveModules=function(G){G?(this.watchScrollManager=new _.n3(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.LMk(this)),_.R("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new me(this)),this.activeModules.push(new _.Wf_(this)),Yd(this)&&this.activeModules.push(new P4X(this)),this.activeModules.push(new _.jpt(this)),this.activeModules.push(new _.BEq(this)),(Yd(this)||_.R("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.rTt(this)),this.activeModules.push(new _.MWk(this)),(Yd(this)||_.R("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.Xit(this)),(Yd(this)||_.R("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.itz(this)),_.R("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.S0k(this),this.activeModules.push(this.watchCinematicManager)),_.R("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Dzv(this)),_.R("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.pUt(this)),G=_.R("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.R("kevlar_watch_flexy_comments_manager")&&!G&&this.activeModules.push(new _.kUt(this)),_.R("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.wJz(this)),this.activeModules.push(new _.Ztw(this)),this.activeModules.push(new _.egv(this)),_.R("web_enable_timely_actions")&&this.activeModules.push(new _.hZz(this)),_.R("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.dxZ(this)),_.R("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.lmZ(this)),_.R("web_fullscreen_components")&&this.activeModules.push(new _.V8_(this)),_.R("web_player_rtr_ctrls")&&this.activeModules.push(new _.s5Z(this)),_.R("enable_creator_chatbot")&&this.activeModules.push(new spZ(this))):(_.DD(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.c8.prototype.disposeInternal=function(){_.Ar.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.iY.Object.defineProperties(_.c8.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var TW$,ed,DBZ,ECz,bdt,vC_,idj,wYw;TW$=function(){var G=_.D_();G.info||(G.info={});return G.info};
ed=function(G){return Math.round(_.wJ()+G)};
DBZ=function(){var G;if(_.R("csi_use_performance_navigation_timing")){var e,r,Z,O=_.bp==null?void 0:(G=_.bp.getEntriesByType)==null?void 0:(e=G.call(_.bp,"navigation"))==null?void 0:(r=e[0])==null?void 0:(Z=r.toJSON)==null?void 0:Z.call(r);O?(O.requestStart=ed(O.requestStart),O.responseEnd=ed(O.responseEnd),O.redirectStart=ed(O.redirectStart),O.redirectEnd=ed(O.redirectEnd),O.domainLookupEnd=ed(O.domainLookupEnd),O.connectStart=ed(O.connectStart),O.connectEnd=ed(O.connectEnd),O.responseStart=ed(O.responseStart),
O.secureConnectionStart=ed(O.secureConnectionStart),O.domainLookupStart=ed(O.domainLookupStart),O.isPerformanceNavigationTiming=!0,G=O):G=_.bp.timing}else G=_.R("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.bp.timing)):_.bp.timing;return G};
ECz=function(){if(_.bp.getEntriesByType){var G=_.bp.getEntriesByType("paint");if(G=_.Cf(G,function(r){return r.name==="first-paint"}))return ed(G.startTime)}var e;
_.R("csi_use_performance_navigation_timing")?e=_.bp.getEntriesByType("first-paint")[0].startTime:e=_.bp.timing.msFirstPaint;return e?Math.max(0,e):0};
bdt=function(){var G=window.location.protocol,e=_.bp.getEntriesByType("resource");e=_.Pz(e,function(r){return r.name.indexOf(G+"//fonts.gstatic.com/s/")===0});
(e=idj(e,function(r,Z){return Z.duration>r.duration?Z:r}))&&e.startTime>0&&e.responseEnd>0&&(_.$J("wffs",ed(e.startTime)),_.$J("wffe",ed(e.responseEnd)))};
vC_=function(G,e){G=document.querySelector(G);if(!G)return!1;var r="",Z=G.nodeName;Z==="SCRIPT"?(r=G.src,r||(r=G.getAttribute("data-timing-href"))&&(r=window.location.protocol+r)):Z==="LINK"&&(r=G.href);_.rP(document)&&G.setAttribute("nonce",_.rP(document));return r?(G=_.bp.getEntriesByName(r))&&G[0]&&(G=G[0],r=_.wJ(),_.$J("rsf_"+e,r+Math.round(G.fetchStart)),_.$J("rse_"+e,r+Math.round(G.responseEnd)),G.transferSize!==void 0&&G.transferSize===0)?!0:!1:!1};
_.$Bt=function(G,e){_.N0(function(){_.ip("").info.actionType=G;e&&_.BX("TIMING_AFT_KEYS",e);_.BX("TIMING_ACTION",G);var r=_.uGS(_.xZ("TIMING_INFO",{}));Object.keys(r).length>0&&_.Sq(r);r={isNavigation:!0,actionType:_.aLS(_.xZ("TIMING_ACTION"))};var Z=_.xZ("PREVIOUS_ACTION");Z&&(r.previousAction=_.aLS(Z));if(Z=_.xZ("CLIENT_PROTOCOL"))r.httpProtocol=Z;if(Z=_.xZ("CLIENT_TRANSPORT"))r.transportProtocol=Z;(Z=_.l4())&&Z!=="UNDEFINED_CSN"&&(r.clientScreenNonce=Z);Z=_.C9F();if(Z===1||Z===-1)r.isVisible=!0;
Z=_.$8F().loadType==="cold";var O=TW$();Z||(Z=O.yt_lt==="cold");if(Z){r.loadType="cold";Z=TW$();O=DBZ();var M=_.wJ(),T=_.xZ("CSI_START_TIMESTAMP_MILLIS",0);T>0&&!_.R("embeds_web_enable_csi_start_override_killswitch")&&(M=T);M&&(_.$J("srt",O.responseStart),Z.prerender!==1&&_.H6f(M));Z=ECz();Z>0&&_.$J("fpt",Z);Z=DBZ();Z.isPerformanceNavigationTiming&&_.Sq({performanceNavigationTiming:!0},void 0);_.$J("nreqs",Z.requestStart,void 0);_.$J("nress",Z.responseStart,void 0);_.$J("nrese",Z.responseEnd,void 0);
Z.redirectEnd-Z.redirectStart>0&&(_.$J("nrs",Z.redirectStart,void 0),_.$J("nre",Z.redirectEnd,void 0));Z.domainLookupEnd-Z.domainLookupStart>0&&(_.$J("ndnss",Z.domainLookupStart,void 0),_.$J("ndnse",Z.domainLookupEnd,void 0));Z.connectEnd-Z.connectStart>0&&(_.$J("ntcps",Z.connectStart,void 0),_.$J("ntcpe",Z.connectEnd,void 0));Z.secureConnectionStart>=_.wJ()&&Z.connectEnd-Z.secureConnectionStart>0&&(_.$J("nstcps",Z.secureConnectionStart,void 0),_.$J("ntcpe",Z.connectEnd,void 0));_.bp&&"getEntriesByType"in
_.bp&&bdt();Z=[];if(document.querySelector&&_.bp&&_.bp.getEntriesByName)for(var E in wYw)wYw.hasOwnProperty(E)&&(O=wYw[E],vC_(E,O)&&Z.push(O));if(Z.length>0)for(r.resourceInfo=[],E=_.h(Z),Z=E.next();!Z.done;Z=E.next())r.resourceInfo.push({resourceCache:Z.value})}_.Sq(r);r=_.EK();r.preLoggedGelInfos||(r.preLoggedGelInfos=[]);E=r.preLoggedGelInfos;r=_.qPU();Z=void 0;for(O=0;O<E.length;O++)if(M=E[O],M.loadType){Z=M.loadType;break}if(_.$8F().loadType==="cold"&&(r.loadType==="cold"||Z==="cold")){Z=_.SPa();
O=_.EK();O=O.gelTicks?O.gelTicks:O.gelTicks={};for(var b in Z)if(!(b in O))if(typeof Z[b]==="number")_.$J(b,_.qn(b));else if(_.R("log_repeated_ytcsi_ticks"))for(M=_.h(Z[b]),T=M.next();!T.done;T=M.next())T=T.value,_.$J(b.slice(1),T);b={};Z=!1;E=_.h(E);for(O=E.next();!O.done;O=E.next())Z=O.value,_.KO(r,Z),_.KO(b,Z),Z=!0;Z&&_.Sq(b)}_.YPa(!0);b=_.xZ("TIMING_ACTION");_.Lz("ytglobal.timingready_")&&b&&_.zjq()&&_.cO_()&&_.ILU()})()};
idj=function(G,e){return Array.prototype.reduce.call(G,e,{duration:0})};
wYw={'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 SVv={};SVv.YtVisibilityRootBehavior=[_.wa3.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.TX(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.xZ("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var G=_.xZ("INNERTUBE_CLIENT_NAME")!=="WEB";_.R("kevlar_use_vimio_behavior")&&G&&_.prE()}}];_.r$={};_.r$.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(G){G.detail.contextProvider=this;G.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
SVv.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.C1();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(G){var e=this;this.pageCount+=1;_.R("kevlar_use_vimio_behavior")&&(_.xZ("INNERTUBE_CLIENT_NAME")==="WEB"?_.A0.addJob(function(){e.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(G)},
loadPage_:function(G){this.data=G},
ytPageBehaviorActiveObserver_:function(G){var e=this;_.R("kevlar_use_vimio_behavior")&&(G?_.xZ("INNERTUBE_CLIENT_NAME")==="WEB"?_.A0.addJob(function(){e.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(G){if(!this.setScrollTopJobId_){var e=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){e.setScrollTopJobId_=0;var r=_.v_().resolve(_.bq(_.bZ));r&&_.hv(r);this.getPageScrollingElement().scrollTop=G}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.Kl(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var hm_;var Gd=function(){var G=_.m.apply(this,arguments)||this;G.playerListenerConfig=null;G.actionMap={"yt-show-watch-page-survey":"openSurvey"};return G};
_.K(Gd,_.m);_.V=Gd.prototype;_.V.dataChanged=function(){var G=this,e=_.Ff();e&&e.getPlayerPromise().then(function(Z){G.maybeRemovePlayerListeners(Z)});
var r=this.data&&this.data.survey;r&&((r=(r=r.singleOptionSurveyRenderer||r.checkboxSurveyRenderer||r.multiStageSurveyRenderer)&&r.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(e,r):this.openSurvey())};
_.V.triggerWatchPageSurvey=function(G,e){var r=this,Z,O,M,T,E,b,w,q,t;return _.D(function(g){if(g.nextAddress==1)return G?g.yield(G.getPlayerPromise(),2):g.return();r.player=g.yieldResult;if(!r.player)return g.return();Z={};O=_.h(e);for(M=O.next();!M.done;M=O.next())T=M.value,E=_.h(r.createEventListenerPair(T)),b=E.next().value,w=E.next().value,q=b,t=w,q&&t&&(Z[q]=t,r.ytPlayerListenerBehavior.listenToPlayerEvent(r.player,q,t));r.playerListenerConfig=Z;_.HL(g)})};
_.V.createEventListenerPair=function(G){var e=G.playbackEventTrigger;return e?this.handlePlaybackTrigger(e):(G=G.watchTimeTrigger)?this.handleWatchTimeTrigger(G):[void 0,void 0]};
_.V.handleWatchTimeTrigger=function(G){var e=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var r=G.videoWatchFraction,Z=G.watchTimeSec;return Z&&r?["onVideoProgress",function(){e.player&&e.isWatchTimeConditionMet(e.player,r,Z)&&e.showSurvey()}]:[void 0,
void 0]};
_.V.isWatchTimeConditionMet=function(G,e,r){var Z=G.getProgressState(),O=Z.current-this.lastKnownPlaybackPosition;O<5&&(this.accumulatedMediaTime+=O);this.lastKnownPlaybackPosition=Z.current;Z=Math.round(this.accumulatedMediaTime/Z.duration*1E3)/1E3;return G.getPresentingPlayerType&&G.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>r||Z>e)};
_.V.handlePlaybackTrigger=function(G){var e=this;G=G.playbackEvent;if(G==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var r="onStateChange";var Z=function(O){O===0&&e.showSurvey()}}else G==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(r="onVideoProgress",Z=function(O){e.player&&e.player.getPresentingPlayerType&&e.player.getPresentingPlayerType()===1&&O&&e.showSurvey()}):G==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(r="onAdEnd",Z=this.showSurvey);
return[r,Z]};
_.V.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.V.openSurvey=function(){var G=this,e=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.ZRH(!!e));_.A0.addJob(function(){G.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:e}})},0,0)};
_.V.maybeRemovePlayerListeners=function(G){if(this.playerListenerConfig){for(var e=_.h(Object.keys(this.playerListenerConfig)),r=e.next();!r.done;r=e.next())r=r.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(G,r,this.playerListenerConfig[r]);this.playerListenerConfig=null}};
Gd.prototype.dataChanged=Gd.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Gd.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h5),_.x("design:type",Object)],Gd.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.k(_.GJ.YtPlayerListenerBehavior),_.x("design:type",_.ew)],Gd.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Gd.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.k(_.A5),_.x("design:type",Object)],Gd.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Gd.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],Gd.prototype,"playerListenerConfig",void 0);_.B([_.n({value:0}),_.x("design:type",Number)],Gd.prototype,"lastKnownPlaybackPosition",void 0);_.B([_.n({value:0}),_.x("design:type",Number)],Gd.prototype,"accumulatedMediaTime",void 0);_.B([_.n(),_.x("design:type",Object)],Gd.prototype,"player",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gd.prototype,"dataChanged",null);_.B([_.c({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],Gd);
_.A(Gd,"ytd-survey-trigger-renderer",function(){if(hm_!==void 0)return hm_;var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return hm_=G},{mode:1});
}catch(e){_._DumpException(e)}
try{
var zEq=new _.L9("replaceFeedContentAction");var W3w;var Njj;var L3z=function(){return _.m.apply(this,arguments)||this};
_.K(L3z,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],L3z.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],L3z.prototype,"data",void 0);_.B([_.c({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],L3z);
_.A(L3z,"ytd-sub-feed-option-renderer",function(){if(Njj!==void 0)return Njj;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Njj=G},{mode:1});var GA_;var xg=function(){return _.m.apply(this,arguments)||this};
_.K(xg,_.m);xg.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],xg.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],xg.prototype,"ytRendererStamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],xg.prototype,"data",void 0);_.B([_.c({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],xg);
_.A(xg,"ytd-sub-feed-selector-renderer",function(){if(GA_!==void 0)return GA_;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return GA_=G},{mode:1});var Pj=function(){return _.m.apply(this,arguments)||this};
_.K(Pj,_.m);
Pj.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}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Pj.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Pj.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Pj.prototype,"data",void 0);_.B([_.c({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],Pj);
_.A(Pj,"ytd-browse-feed-actions-renderer",function(){if(W3w!==void 0)return W3w;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return W3w=G},{mode:1});var em_;var r2z;var Uy=function(){return _.m.apply(this,arguments)||this};
_.K(Uy,_.m);Uy.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Uy.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Uy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Uy.prototype,"data",void 0);_.B([_.c({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],Uy);
_.A(Uy,"ytd-mini-channel-renderer",function(){if(r2z!==void 0)return r2z;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return r2z=G},{mode:1});var Zdz;var zv=function(){return _.m.apply(this,arguments)||this};
_.K(zv,_.m);zv.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],zv.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],zv.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],zv.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],zv);
_.A(zv,"ytd-vertical-channel-section-renderer",function(){if(Zdz!==void 0)return Zdz;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Zdz=G},{mode:1});var Wj=function(){return _.m.apply(this,arguments)||this};
_.K(Wj,_.m);Wj.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Wj.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Wj.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Wj.prototype,"data",void 0);_.B([_.c({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Wj);
_.A(Wj,"ytd-browse-secondary-contents-renderer",function(){if(em_!==void 0)return em_;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);
return em_=G},{mode:1});var Odv;var NJ=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};G.notActive=!1;G.isConstrainedList=!1;G.marginSettings=0;return G};
_.K(NJ,_.m);_.V=NJ.prototype;
_.V.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]]",marginSettings:"[[marginSettings]]"},matcher:function(G){var e;return(G==null?void 0:(e=G.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}}}}};
_.V.getPath=function(G,e){var r="data.tabs.#"+e+".";G.tabs[e].tabRenderer?r+="tabRenderer.":G.tabs[e].expandableTabRenderer&&(r+="expandableTabRenderer.");return r+"content.sectionListRenderer"};
_.V.computeDisplayedContent=function(G){this.unlinkPaths("content");if(G&&G.tabs)for(var e=G.tabs.length,r=0;r<e;r++){var Z=G.tabs[r].tabRenderer||G.tabs[r].expandableTabRenderer;if(Z.selected&&Z.content)return this.linkPaths("content",this.getPath(G,r)),Z.content}return null};
_.V.computeHasSecondaryColumnData=function(G){return!!G&&!!G.secondaryContents};
_.V.onRetrieveLocation=function(G,e){e.locationRetrieved(e.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);G.stopPropagation()};
_.V.onYtServiceRequestSent=function(G,e){_.R("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(e)};
_.V.onYtServiceRequestCompleted=function(G,e){_.R("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(e)};
_.V.onReplaceFeedContentAction=function(G){if(!_.R("replace_feed_content_action_killswitch")&&!this.notActive){var e;(G=(e=_.a(G,zEq))==null?void 0:e.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(G)}};
_.V.handleServiceRequestActions=function(G){if(G=G.actions){G=_.h(G);for(var e=G.next();!e.done;e=G.next()){e=e.value;var r=void 0;((r=_.a(e,zEq))==null?0:r.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.a(e,zEq).items)}}};
NJ.prototype.onYtServiceRequestCompleted=NJ.prototype.onYtServiceRequestCompleted;NJ.prototype.onYtServiceRequestSent=NJ.prototype.onYtServiceRequestSent;NJ.prototype.onRetrieveLocation=NJ.prototype.onRetrieveLocation;_.B([_.k(_.x9),_.x("design:type",Object)],NJ.prototype,"ytdGridStateAwareBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],NJ.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],NJ.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],NJ.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],NJ.prototype,"data",void 0);_.B([_.n({computed:"computeDisplayedContent(data)"}),_.x("design:type",Object)],NJ.prototype,"content",void 0);
_.B([_.n({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],NJ.prototype,"hasSecondaryColumnData",void 0);_.B([_.n({value:function(){return window.outerHeight>1024?3:2}}),
_.x("design:type",Number)],NJ.prototype,"initialCount",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],NJ.prototype,"pageSubtype",void 0);_.B([_.hs("ytd-section-list-renderer"),_.x("design:type",Object)],NJ.prototype,"listRenderer",void 0);_.B([_.n(),_.x("design:type",Object)],NJ.prototype,"notActive",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],NJ.prototype,"isConstrainedList",void 0);
_.B([_.n(),_.x("design:type",String)],NJ.prototype,"responsiveSizing",void 0);_.B([_.n(),_.x("design:type",Number)],NJ.prototype,"marginSettings",void 0);_.B([_.Om("yt-retrieve-location"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],NJ.prototype,"onRetrieveLocation",null);
_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.oV]),_.x("design:returntype")],NJ.prototype,"onYtServiceRequestSent",null);_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.n1]),_.x("design:returntype")],NJ.prototype,"onYtServiceRequestCompleted",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],NJ);
_.A(NJ,"ytd-two-column-browse-results-renderer",function(){if(Odv!==void 0)return Odv;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Odv=G},{mode:2});
}catch(e){_._DumpException(e)}
try{
var uJz=function(G){if((G==null?void 0:G.value)===void 0||G==null||!G.unit)return"initial";a:{switch(G.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var e="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":e="%";break a}e=void 0}return e?""+G.value+e:"initial"};_.J_(_.y(function(G){var e=G.data;G=_.h(_.XQ(!1,void 0,"cIbvuf"));var r=G.next().value,Z=G.next().value;_.yY(function(){_.e8.getInstance().triggerAction("yt-request-timely-shelf-state")});
_.re(_.e8.getInstance(),{"yt-hide-shopping-timely-shelf":function(){Z(!1)},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){Z(!0)})}});
var O=function(){var T;return((T=e().image)==null?void 0:T.height)||40},M=function(){var T;
return(T=e().image)==null?void 0:T.backgroundColor};
G={};return _.v("yt-shopping-timely-shelf-content-view-model",{el:_.cQ(_.jV(function(){return e().rendererContext})),
class:_.LC("ytShoppingTimelyShelfContentViewModelHost",(G.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(e().image||e().avatar||e().line1)&&r()},G)),
style:_.Mk({"--shopping-timely-shelf-content-padding-top":function(){var T;return uJz((T=e().padding)==null?void 0:T.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var T;return uJz((T=e().padding)==null?void 0:T.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var T;return uJz((T=e().padding)==null?void 0:T.start)},
"--shopping-timely-shelf-content-padding-end":function(){var T;return uJz((T=e().padding)==null?void 0:T.end)},
"--yt-shopping-timely-shelf-background-color":function(){return e().backgroundColor!==void 0?_.jF(e().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var T,E;return((E=(T=e().image)==null?void 0:T.cornerRadius)!=null?E:0)+"px"},
"--yt-shopping-timely-shelf-image-background-color":function(){return M()!==void 0?_.jF(M()):"initial"}})},_.v(_.S,{cond:function(){var T;
return(T=e().image)==null?void 0:T.image},
then:function(T){return _.v(_.nC,{preserveHeight:!0,preserveWidth:!0,height:O,data:T,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.v(_.E2,{data:function(){return e().avatar}},{avatarViewModel:_.yy}),_.v("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.v(_.E2,{data:function(){return e().line1}},{shoppingContentLineViewModel:function(T){return _.v(_.e2,{data:T.data})}}),_.v(_.E2,{data:function(){return e().line2}},{shoppingContentLineViewModel:function(T){return _.v(_.e2,
{data:T.data})}})),_.v("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.v(_.E2,{data:function(){var T;
return(T=e().button)!=null?T:[]}},{buttonViewModel:function(T){var E=T.data;
return _.v(_.wF,{data:E,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(b){E().onTap&&b.stopPropagation()}})}})))},"jo"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.N6}});_.nJt={};
_.nJt.YtdWatchBehavior=[_.W.YtRendererBehavior,_.GJ.YtPlayerListenerBehavior,_.h4.YtRendererstamperBehavior,_.gF.YtActionHandlerBehavior,_.r$.YtPageBehavior,_.t4.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 _.PX("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.R("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 _.PX("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 _.R("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.R("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 _.qt("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.qt("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 _.R("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.R("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.R("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.R("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.R("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.R("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 _.R("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.R("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.R("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.R("swatcheroo_binary_layout")}},
ghostCardsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.R("swatcheroo_enable_ghost_cards")||_.R("web_watch_enable_ghost_cards")}},
showGhostMetadata:{type:Boolean,computed:"computeShowGhostMetadata_(ghostCardsEnabled, loading, videoPrimaryInfoRenderer)"},showGhostRelated:{type:Boolean,computed:"computeShowGhostRelated_(ghostCardsEnabled, loading, watchNextSecondaryResults)"},metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.R("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 _.R("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.R("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 _.R("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0},aiCompanionEnabled:{type:Boolean,value:function(){return _.R("enable_ai_companion")}}},
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);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
computeShowGhostMetadata_:function(G,e,r){return G&&(e||!r)},
computeShowGhostRelated_:function(G,e,r){return G&&(e||!r)},
monitorScroll:!0,configureRendererStamper:function(){var G={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:_.tz(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.tz(["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"||_.R("swa_prov_panels_ks")?G.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(G.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},G.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return G},
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 G=this;this.watchController=void 0;this.pageDisposeJobs=[function(){G.showMetadataPlaceholder_()},
function(){_.R("web_watch_dont_clear_comments")||G.clearComments_()},
function(){G.clearPlayerAds_()},
function(){G.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=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;_.R("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.R("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=
!1);this.youThereManager_=new _.jlj(function(){return _.Ae(G)},this.hostElement);
this.pageDisposeJobs.push(function(){G.youThereManager_.reset()});
_.R("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){G.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.v9;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;_.R("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));_.R("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.ZQ(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(G){G&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:G}),G.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(G){_.R("kevlar_watch_flexy_theater_manager")&&(this.theater=G,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(G){!_.R("kevlar_watch_while_v2")&&!_.R("web_watch_pip")||G||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(G){this.active!==void 0&&(this.fullscreen=G,_.R("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(G){this.active!==void 0&&(_.xy(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.R("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.R("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(G>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(G){this.initCsi_();this.updatePageData_(G)},
updatePageData_:function(G){var e=this;if(G)if(this.data===G){this.onPageLoadWithSameData_();var r;(r=this.watchController)==null||r.setWatchNextResponse(this.data)}else this.data=G;this.playlist&&_.gJ({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.jq("nw");this.loading=!1;_.IQ(_.A0,function(){e.initDclkstatus_();var Z,O=((Z=e.player)==null?void 0:Z.getVideoData().cpn)||"";_.hB_(function(M,T){_.iRY(M,T,O)})})},
onPageLoadWithSameData_:function(){_.R("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 G=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!G);this.set("loadingData.playlistLoading",G&&G!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),G=this.watchNextSkeletonEl_.firstElementChild;G;)G.classList.remove("hidden"),G=G.nextElementSibling;if(_.R("kevlar_watch_frame0_loading_state")){var e,r,Z;G=(e=this.loadingData)==null?void 0:(r=e.endpoint)==null?void 0:(Z=r.watchEndpoint)==null?void 0:Z.videoId;var O;G&&(O="https://i.ytimg.com/vi/"+G+"/frame0.jpg");_.z1(this.hostElement).querySelector("#player").style.backgroundImage=O?"url("+O+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var G=_.z1(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&G&&(G.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var e,r;(r=(e=this.watchMetadata).updateSentimentBarWidth)==
null||r.call(e);var Z,O;(O=(Z=this.watchMetadata).resize)==null||O.call(Z)}_.R("kevlar_watch_frame0_loading_state")&&(_.z1(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(G){var e=_.z1(this.hostElement).querySelector(G);e?_.Jb(e,!1):_.FH(new _.Cr("Overscroll monitor not found for component: ",G))},
removeSplitScrollMouseTrap:function(G){var e=_.z1(this.hostElement).querySelector(G);e?_.Bi(e):_.FH(new _.Cr("Disposal component for  overscroll monitoring not found: ",G))},
onLoadingChanged_:function(G){G?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.R("web_thumbnail_to_watch_transition")&&!_.zwm||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.R("web_thumbnail_to_watch_transition")&&!_.zwm||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(G){var e=this;G?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.A0.addLowPriorityJob(function(){e.onWindowResized_(_.T1(!0))})},
updateTheaterModeState_:function(G){if(!_.R("kevlar_watch_flexy_theater_manager")){G=G||this.fullWindowMode_;if(this.theater!==void 0||G)this.theater=G;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();G&&_.gWj()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var G=this.fullBleedPlayer?_.z1(this.hostElement).querySelector("#player-full-bleed-container"):_.z1(this.hostElement).querySelector("#player-container-inner");var e=this.getPlayerContainer(),r=_.R("kevlar_watch_while_v2")||_.R("web_watch_pip");e.parentElement!==G&&(r&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.Ae(this).appendTo(G,e))},
updateErrorScreenLocation:function(){var G=_.z1(this.hostElement).querySelector("#error-screen"),e=this.fullBleedPlayer?_.z1(this.hostElement).querySelector("#player-full-bleed-container"):_.z1(this.hostElement).querySelector("#player");G.parentElement!==e&&e.appendChild(G)},
deactivateMiniplayerAndResetPlayer:function(){var G=this;return _.D(function(e){if(e.nextAddress==1)return e.yield(_.v_().resolve(_.fp).deactivate(),2);G.updatePlayerLocation();_.HL(e)})},
updateCinematicsLocation:function(){var G=this.getElement("CINEMATICS");if(G){var e=this.getCinematicsLocationContainer();G.parentElement!==e&&e.appendChild(G)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.z1(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.z1(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(G,e,r){var Z=document.documentElement.hasAttribute("dark"),O=Z&&_.R("web_cinematic_theater_mode"),M=Z&&_.R("web_cinematic_fullscreen");Z=!Z&&this.cinematicLightTheme;return r||G&&O||e&&M||(e||G)&&Z},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var G=this,e;(e=this.watchController)==null||e.setWatchNextResponse(this.data);_.R("kevlar_watch_flexy_comments_manager")||this.initComments_();_.R("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.v_().resolve(_.Gt).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,_.R("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.A0.addLowPriorityJob(function(){_.UW(G.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.R("web_watch_start_chat_in_theater_mode")){var r,Z,O;if((r=this.data)==null?0:(Z=r.contents)==null?0:(O=Z.twoColumnWatchNextResults)==null?0:O.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var M,T;((M=this.data)==null?0:(T=M.contents)==null?0:T.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(G){var e;(e=this.watchController)==null||e.setPlayerResponse(this.playerData);G&&G.playabilityStatus&&(e=this.isVideoPlayable_(G.playabilityStatus,this.getPlayerOverlays_(this.data)),G=this.isLiveStreamOffline_(G.playabilityStatus),e&&!G||_.DE(this,function(){_.jq("pbu")}));
this.setPlayerAds_();_.UW(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(G,e){if((_.R("kevlar_watch_while_v2")||_.R("web_watch_pip"))&&this.playerData&&e)return this.playerData.videoDetails},
watchPageActiveChanged_:function(G){_.Yt().dispatch(_.HOz(this.active));G?this.activate_():this.deactivate_()},
attached:function(){var G=this;this.watchController=new _.c8(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);_.R("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var e=_.Ae(this);_.R("kevlar_disable_prepare_player")||
e.preparePlayer();_.R("kevlar_watch_flexy_playlist_manager")||_.v_().resolve(_.Gt).setPlayer(e);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();e={"--ytd-watch-flexy-scrollbar-width":_.fv()+"px"};this.is==="ytd-watch-grid"&&(_.Yt().dispatch(_.UK({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),e["--ytd-watch-flexy-sidebar-width"]=_.bzj+"px",e["--ytd-watch-grid-horizontal-page-margins"]=_.pn+"px",e["--ytd-watch-grid-columns-top-margins"]=
_.D0z+"px",e["--ytd-watch-grid-min-player-height-medium"]="360px");!_.qt("kv_pl_mx_sz_ks")&&_.qt("kevlar_watch_max_player_width")&&(e["--ytd-watch-flexy-max-player-width-wide-screen"]=_.vZX+"px");_.qt("kevlar_watch_flexy_metadata_height")&&(e["--ytd-watch-flexy-space-below-player"]=_.wXX+"px");this.safeUpdateStyles(e);_.R("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.TL(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return G.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.z1(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var G=_.fv(),e=_.Cn+G,r=e;this.fixedPanels&&(e+=_.bzj);var Z=657+G;G=1327+G;_.z1(this.hostElement).querySelector("#two-column-query").query="(min-width: "+e+"px)";_.z1(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: ")+(G+"px)");_.z1(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(G+"px)");
_.z1(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+r+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var G=_.z1(this.hostElement).querySelector("#miniplayer-bar").firstChild,e=this.squeezeback&&!_.R("web_watch_squeezeback_player_size_killswitch");return G&&G.active||this.theater||_.R("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||e||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.kf(NaN,NaN):_.b_2(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.b_2(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.TX(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var G=this;this.onWindowResized_(_.T1());_.R("browse_skeleton_removal_on_watch_killswitch")||_.PX("IS_SHELL_LOAD")&&_.Vaz();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var e=_.Ae(this);e.addEventListener("yt-player-updated",_.ZQ(this,this.onPlayerUpdated_));e.getPlayerPromise().then(function(r){G.playerApiReady_(r)});
_.R("kevlar_watch_flexy_playlist_manager")||(e=_.v_().resolve(_.Gt),_.R("kevlar_watch_observe_playlist_navigations_killswitch")&&e.addEventListener("yt-navigate",_.ZQ(this,this.onYtNavigate_)),e.setPlaylistComponent(_.z1(this.hostElement).querySelector("#playlist")),e.addEventListener("yt-playlist-data-updated",_.ZQ(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.A0.addLowPriorityJob(function(){_.xy(G.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Ae(this).removeEventListener("yt-player-updated",_.ZQ(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.R("kevlar_watch_flexy_playlist_manager")){var G=_.v_().resolve(_.Gt);_.R("kevlar_watch_observe_playlist_navigations_killswitch")&&G.removeEventListener("yt-navigate",_.ZQ(this,this.onYtNavigate_));
G.cancelVideoSkip();G.removeEventListener("yt-playlist-data-updated",_.ZQ(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.R("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.xy(this.hostElement,"yt-autonav-pause-player",!1);G=_.Ab();_.R("kevlar_exit_fullscreen_leaving_watch")&&G&&_.FR(G)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(G){this.player&&this.player.updateVideoData({rvs:G.rvs})},
getPageContents:function(G){return G&&G.contents&&G.contents.twoColumnWatchNextResults&&G.contents.twoColumnWatchNextResults.results&&G.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(G){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",G)},
onRetrieveLocation_:function(G,e){e.hasComments?e.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):e.locationRetrieved("/related_ajax",void 0);G.stopPropagation()},
onSubscriptionChanged_:function(G,e){this.player&&(e?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.$Bt("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.z1(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.z1(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(G){this.player=G;this.setPlayerState(G.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.R("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.R("kevlar_unified_player")||_.R("kevlar_player_new_bootstrap_adoption"))&&_.d7()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(G,e){e=e===void 0?!0:e;_.Ab()&&_.R("external_fullscreen")&&_.FR(document.documentElement);this.theaterRequested_=G;e&&_.s5("wide",G?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.Pi(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.xy(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(G){_.JG(G,typeof this.player),this.player&&_.JG(G,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var G;((G=this.player)==null?0:G.isFullscreen())?this.player.toggleFullscreen():_.Pi(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(G,e){return this.loading?e:!!Object.keys(G).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(G){if(G){G=_.h(G);for(var e=G.next();!e.done;e=G.next())e=e.value,e.youThereRenderer&&_.KCv(this.youThereManager_,e.youThereRenderer)}},
setPlaylistData_:function(G){return G||{}},
userEngagementConfigDataChanged_:function(G){if(G)if(G.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var e=this.youThereManager_;_.bj()<G.lowEngagementThresholdMs||_.dn_(e,!0)}else G.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Pi(this.hostElement,"yt-autonav-pause-user-engagement",[G])},
isPlayerUnavailable_:function(G,e,r){return!!G&&!this.isVideoPlayable_(G,r)&&!e},
getPlayerOverlays_:function(G){return(G==null?void 0:G.playerOverlays)||null},
isVideoPlayable_:function(G,e){if(!G)return!1;var r=G.status==="OK"||G.status==="LIVE_STREAM_OFFLINE",Z=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",G)||this.get("errorScreen.ypcTrailerRenderer",G);G=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",G);var O;e=e==null?void 0:(O=e.playerOverlayRenderer)==null?void 0:O.gatedActionsOverlayRenderer;return!!r||!!Z||!!G||!!e},
hasWatchNextResponseErrorRenderer:function(G){var e=this.getPageContents(G),r,Z,O,M,T;return!(G==null?0:(r=G.contents)==null?0:(Z=r.twoColumnWatchNextResults)==null?0:Z.secondaryResults)&&!!((O=e[0])==null?0:(M=O.itemSectionRenderer)==null?0:(T=M.contents[0])==null?0:T.backgroundPromoRenderer)},
isLiveStreamOffline_:function(G){return G?G.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(G,e,r){var Z=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",e),O=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];O=_.R("web_no_skip_video_on_verification_checks")?(G==null?void 0:G.status)&&O.includes(G.status):G&&G.status==="AGE_CHECK_REQUIRED";var M=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",G);M==void 0&&(M=!0);!r||this.isVideoPlayable_(G,this.getPlayerOverlays_(e))||
Z||O||!M||_.v_().resolve(_.Gt).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.wn$()},
onPlayerFeedbackStartRequest_:function(G){_.Pi(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:G}])},
onPlayerFeedbackArticleRequest_:function(G){_.Pi(this.hostElement,"yt-help-dialog-requested",[G])},
onPlayerYpcContentRequest_:function(){var G,e,r,Z,O,M,T,E,b=((G=this.data)==null?NaN:(e=G.contents)==null?NaN:(r=e.twoColumnWatchNextResults)==null?NaN:(Z=r.secondaryResults)==null?NaN:(O=Z.secondaryResults)==null?NaN:(M=O.offerModule)==null?NaN:(T=M.tvfilmOfferModuleRenderer)==null?NaN:(E=T.actionButtons)==null?NaN:E.length)-1;G=[".offerButton.buttonRenderer.",".actionButtons."+(b>=0?b:0)+".buttonRenderer."];e=_.h(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(r=e.next();!r.done;r=e.next())for(r=r.value,Z=_.h(G),O=Z.next();!O.done;O=Z.next())if(O="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+r+O.value,O=this.get(O+"navigationEndpoint",this.data)||this.get(O+"serviceEndpoint",this.data)||this.get(O+"command",this.data)){_.es(O,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(G){_.xy(this.hostElement,"yt-autonav-pause-player",G)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(G){G()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(G){switch(G){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(G){switch(G){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.xy(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(G)},
setPlayerState:function(G){_.Yt().dispatch(_.Lgl(G))},
onPlayerSubscribe_:function(G){_.Pi(this.hostElement,"yt-player-subscribe",[G])},
onPlayerUnsubscribe_:function(G){_.Pi(this.hostElement,"yt-player-unsubscribe",[G])},
onPlayerAdYtShowToast_:function(G){_.Pi(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:G.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(G){if(G)return G},
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(G){return!_.R("web_watch_move_summary_to_sd")&&!!G},
computeWatchMetadataRefresh:function(){return this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.R("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var G,e,r,Z;this.watchNextSecondaryResults=(G=this.data)==null?void 0:(e=G.contents)==null?void 0:(r=e.twoColumnWatchNextResults)==null?void 0:(Z=r.secondaryResults)==null?void 0:Z.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var G,e=(G=this.data)==null?void 0:G.engagementPanels;if(e==null?0:e.length){G=null;e=_.h(e);for(var r=e.next();!r.done;r=e.next()){r=r.value;var Z=void 0;if(((Z=r.engagementPanelSectionListRenderer)==null?void 0:Z.targetId)==="engagement-panel-structured-description"){G=r;break}}var O,M,T;G=(O=G)==null?void 0:(M=O.engagementPanelSectionListRenderer)==null?void 0:(T=M.content)==null?void 0:T.structuredDescriptionContentRenderer;if(G==null?0:G.items){O=
[];M=_.h(G.items);for(T=M.next();!T.done;T=M.next()){T=T.value;if(!_.R("sd_horizontal_list_show_nav_killswitch")){var E=Z=r=e=G=void 0,b=void 0,w=(G=T.horizontalCardListRenderer)==null?void 0:(e=G.header)==null?void 0:(r=e.richListHeaderRenderer)==null?void 0:(Z=r.navigationButton)==null?void 0:(E=Z.buttonRenderer)==null?void 0:(b=E.command)==null?void 0:b.commandExecutorCommand;w&&w.commands&&(w.commands=w.commands.filter(function(q){return!_.a(q,_.Ho_)}))}(!T.expandableVideoDescriptionBodyRenderer&&
!T.videoDescriptionHeaderRenderer||_.R("web_delhi_colorful_sd"))&&O.push(T)}return{items:O}}}},
constructWarning_:function(G){return{text:_.nQ(G),type:"WARNING"}},
isPlaShelfEnabled_:function(G){if((this.get("adPlacements",G)||[]).length)return!0;G=this.get("playerAds",G)||[];return!(!G.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",G[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var G=this;_.xy(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.R("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var e=this.getScrollTop()>0;this.gestures_&&(e?this.gestures_.detach():this.gestures_.attach());e!==this.showFullerscreenEdu_&&_.R("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=e,_.Ae(this).getPlayerPromise().then(function(r){r.updateFullerscreenEduButtonVisibility(G.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.xy(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var G=this;this.commentsReady=!1;_.A0.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.IQ(_.A0,function(){G.setComments_()},1E3)},
setComments_:function(){if(!_.R("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.jq("cmi");_.A0.cancelJob(this.setCommentsJobId_);var G=this.getPageContents(this.data);if(G&&G.length){G=_.h(G);for(var e=G.next();!e.done;e=G.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&&_.xy(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.R("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.R("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.jq("cmc")},
doRemoveComments_:function(){this.comments={};_.R("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.A0.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.A0.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(G,e){var r=_.a(e.endpoint,_.u4);r&&(!(e=this.get("data.currentVideoEndpoint.watchEndpoint"))||r.videoId!==e.videoId||r.playlistId&&r.playlistId!==e.playlistId||r.index!==void 0&&r.index!==e.index||typeof r.startTimeSeconds!=="number"||(G.stopPropagation(),this.setScrollTop(0),_.Ae(this).getPlayerPromise().then(function(Z){var O=r.startTimeSeconds;Z.seekTo(O);Z.wakeUpControls();O<Z.getDuration()&&Z.playVideo()})))},
updatePlayerStartTime_:function(){var G=_.No2();"t"in G&&(G=_.vJ2(G.t),this.player.seekTo(G,!0))},
updateTitleFromWatchNext:function(G){G=this.getPageContents(G);var e,r;(G=_.mG(G==null?void 0:(e=G[0])==null?void 0:(r=e.videoPrimaryInfoRenderer)==null?void 0:r.title))&&_.xy(this.hostElement,"yt-update-title",G)},
updateTitle_:function(G){G=this.get("videoDetails.title",G)||"";_.xy(this.hostElement,"yt-update-title",G)},
syncWithRemoteVideo_:function(G,e,r){if(this.active&&this.player){var Z=this.player.getVideoData();if(Z.video_id===r&&(r=Z.list,_.R("polymer_enable_mdx_queue")&&r&&r.startsWith("RQ")&&(r=void 0),Z.video_id!==G||r!=e)){var O;_.R("kevlar_player_watch_endpoint_navigation")?O=_.FUp(_.TJq(G,e)):O=this.buildWatchEndpoint_(G,e);_.xy(this.hostElement,"yt-navigate",{endpoint:O,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(G,e,r){return _.Jy(G,e,r)},
initDclkstatus_:function(){_.i_q()},
attachWatchPageSkeleton_:function(){var G=document.querySelector("#watch-page-skeleton");if(G){var e=G.querySelector("#primary-info"),r=G.querySelector("#secondary-info"),Z=G.querySelector("#related");e&&_.z1(this.hostElement).querySelector("#info-skeleton").appendChild(e);r&&_.z1(this.hostElement).querySelector("#meta-skeleton").appendChild(r);Z&&(_.z1(this.hostElement).querySelector("#related-skeleton").appendChild(Z),this.watchNextSkeletonEl_=Z);_.d1(G)}},
handlePlayerUpdated_:function(){_.Ae(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(G,e){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof e!=="undefined"){var r=this.watchNextSkeletonEl_.children,Z=G&&G.indexSplices.length?G.indexSplices[0].index:0;G=Math.min(this.watchNextShownItems.length,r.length);e||(Z=0,G=r.length);if(!this.ghostCardsEnabled)for(e=Z;e<G;e++)r[e].classList.add("hidden")}},
onPlayerFullscreenChange_:function(G){_.R("external_fullscreen")||_.Pi(this.hostElement,"yt-player-fullscreen",[G.fullscreen])},
onFullscreenChange_:function(G){this.fullscreen=G;this.gestures_&&this.gestures_.update(this.fullscreen);var e=_.Ae(this);e.getPlayerPromise().then(function(r){r.setFauxFullscreen(!!_.Ab())});
this.updateFullBleedElementLocations();G&&(e.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(G,e){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!e},
computeIsDonationShelfCollapsed_:function(G){return G},
computeShouldShowMerchShelf:function(G,e){return e&&!!G},
computeResponseHasComments:function(G){var e,r,Z,O,M;return!!(G==null?0:(e=G.contents)==null?0:(r=e.twoColumnWatchNextResults)==null?0:(Z=r.results)==null?0:(O=Z.results)==null?0:(M=O.contents)==null?0:M.some(function(T){var E;return(T==null?void 0:(E=T.itemSectionRenderer)==null?void 0:E.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(G,e,r,Z){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&Z?!1:!!G&&!!Object.keys(G).length&&!e},
identity:_.uF,onWindowResized_:function(G){this.windowSize_=G;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.R("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(G){var e=this;G&&G.type!=="dataloaded"&&G.type!=="dataupdated"||_.Ae(this).getPlayerPromise().then(function(r){var Z=r.getPlayerState();Z!==5&&Z!==0&&(r=1/r.getVideoAspectRatio(),e.videoHeightToWidthRatio_!==r&&(e.videoHeightToWidthRatio_=r))})},
schedulePlayerSizeUpdate_:function(G){var e=this,r=_.R("kevlar_watch_while_v2")||_.R("web_watch_pip"),Z=function(){if(e.watchMetadata){var O,M;(M=(O=e.watchMetadata).resize)==null||M.call(O)}_.Ae(e).getPlayerPromise().then(function(T){if(_.R("kevlar_set_internal_player_size")){if(!r||!e.isMiniplayerActive()){var E=e.calculateCurrentPlayerSize_();T.setInternalSize(E.width,E.height)}}else T.setSize(NaN,NaN);_.R("kevlar_watch_while")&&e.updateWatchWhileScrollThreshold_()})};
G?Z():_.Zk(_.A0,Z)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(G){this.set("data.survey",G.detail)},
onYtShowSurveyCommand_:function(G){this.set("data.survey",_.a(G,_.RBq).survey)},
onDownloadedVideoDeleted:function(G){var e=this,r,Z;return _.D(function(O){if(O.nextAddress==1){if(!e.active||(r=e.playerData)==null||!r.offlineState||e.videoId!==G)return O.return();(Z=e.player)==null||Z.stopVideo();_.sI().navigatingAwayFromWatchDeletedVideo=!0;_.es(_.NbS,e.hostElement);return O.yield(_.sI().navigationFinishPromise,2)}_.sI().navigatingAwayFromWatchDeletedVideo=!1;_.HL(O)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var G;this.theater?G=_.j0(.5625*this.windowSize_.width,480,this.windowSize_.height-185):G=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==G&&(this.watchWhileScrollThreshold_=G,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var G=_.z1(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&G){var e=this.windowSize_.height>=624,r=this.active?this.getScrollTop():0;!G.active&&e&&r>=this.watchWhileScrollThreshold_?(G.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):G.active&&(!e||r<this.watchWhileScrollThreshold_&&!_.Ab())&&(G.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var G=_.z1(this.hostElement).querySelector("#secondary-inner");if(G){var e=_.z1(this.hostElement).querySelector("#below"),r=_.z1(this.hostElement).querySelector("#secondary"),Z=_.z1(this.hostElement).querySelector("#comments");Z&&r&&e&&(this.defaultTwoColumnLayout?(G.appendChild(Z),r.appendChild(G)):(e.appendChild(Z),_.Qz(e,G)))}}},
isTwoColumnsChanged_:function(G,e){if(G!==!0||e!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(G=_.z1(this.hostElement).querySelector("#secondary-inner"))){e=_.z1(this.hostElement).querySelector("#below");var r=_.z1(this.hostElement).querySelector("#secondary"),Z=_.z1(this.hostElement).querySelector("#comments");Z&&r&&e&&(this.isTwoColumns_?(G.appendChild(Z),r.appendChild(G)):(e.appendChild(Z),_.Qz(e,G)))}}else{G=!_.R("web_watch_enable_fs_squeezeback_panels");
e=_.z1(this.hostElement).querySelector("#panels");var O=_.z1(this.hostElement).querySelector("#alerts"),M=_.z1(this.hostElement).querySelector("#shopping-timely-shelf");r=_.z1(this.hostElement).querySelector("#playlist");Z=_.z1(this.hostElement).querySelector("#related");var T=_.z1(this.hostElement).querySelector("#donation-shelf"),E=_.z1(this.hostElement).querySelector("#comments"),b=_.z1(this.hostElement).querySelector("#persistent-panel-container");this.isTwoColumns_?(O=_.z1(this.hostElement).querySelector("#secondary-inner"),
G&&(O.appendChild(e),O.appendChild(r),this.aiCompanionEnabled&&b&&O.appendChild(b)),O.appendChild(T),O.appendChild(Z)):(G&&(_.oi(e,O),_.oi(r,O),this.aiCompanionEnabled&&b&&_.oi(b,O),_.oi(M,r)),_.oi(T,O),E&&_.oi(Z,E));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.R("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.R("web_watch_enable_fs_squeezeback_panels")&&_.R("web_watch_theater_chat")){var G=_.z1(this.hostElement).querySelector("#chat-container"),e=this.theater&&!this.fullscreen||_.R("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&e?(e=_.z1(this.hostElement).querySelector("#columns"),(G==null?void 0:G.parentElement)!==e&&e.append(G),this.fixedPanels=!0):(this.fixedPanels=
!1,e=_.z1(this.hostElement).querySelector("#playlist"),G&&e?_.sg(G,e):_.FH(new _.Cr("Missing element when updating chat location",{"chatContainer defined":!!G,"playlist defined":!!e})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(G,e){return _.R("sw_metadata_vis_toggle_ks")?!0:!!G||!!e},
computeForceDarkPanelTheme:function(G){return _.R("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&G:!1},
safeUpdateStyles:function(G){try{_.eD(this.hostElement,G)}catch(e){_.FH(e)}},
videoHeightToWidthRatioChanged_:function(G,e){e&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(G){this.videoHeightToWidthRatio_=1/G},
computeIsVerticalVideo_:function(G){return G>=1},
computeIsFourThreeToSixteenNineVideo_:function(G){return G<=.7501&&G>=.5624},
computeIsExtraWideVideo_:function(G){return G<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Ae(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Ae(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.oJZ(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(G){var e=_.SF(G)||0;_.$N(G,e+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var G=_.SF("yt-fullerscreen-edu-button-click-count")||0,e=_.SF("yt-fullerscreen-edu-button-shown-count")||0,r=_.qt("external_fullscreen_button_shown_threshold"),Z=G>=_.qt("external_fullscreen_button_click_threshold")||e>=r;_.Ae(this).getPlayerPromise().then(function(O){O.updateFullerscreenEduButtonSubtleModeState(Z)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(G,e){return e},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.v_().resolve(_.Gt).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var G=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.A0.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.A0.addLowPriorityJob(function(){G.fullHeightPanelPositionUpdateJobId=0;var e=_.z1(G.hostElement).querySelector("#secondary"),r=_.z1(G.hostElement).querySelector("#fixed-secondary");e=e.getBoundingClientRect();var Z=e.width;G.swatcherooSqueezeback&&
(Z+=_.pn);if(G.swatcherooSqueezeback){var O=_.z1(G.hostElement).querySelector("#squeezeback-constraining-container");O.style.width=Z+"px";O.style.flex="0 0 "+Z+"px"}r.style.width=Z+"px";r.style.left=e.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var G=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.A0.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.A0.addLowPriorityJob(function(){G.panelMaxHeightUpdateJob_=0;var e;!G.isTwoColumns_||G.theater||G.fullscreen?e=460:e=G.calculateNormalPlayerSize_().height;var r=e+"px";_.R("live_chat_taller_height")&&!G.theater&&(r="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.R("live_chat_medium_height")&&!G.theater&&(r="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.R("live_chat_scaled_height")&&!G.theater&&(r="calc(100vh - var(--ytd-toolbar-height) - 238px)");G.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":e+"px","--ytd-watch-flexy-chat-max-height":r,"--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(G){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",G)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Wi(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(G){var e=_.z1(this.hostElement).querySelector("#engagement-panel-scrim");G?e.addEventListener("tap",_.ZQ(this,this.onEngagementPanelScrimClick_)):e.removeEventListener("tap",_.ZQ(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(G){if(this.hostElement.contains(G)&&!this.scrollToAnimation_.isAnimating()){var e=G.offsetTop-24;G=G.offsetTop+G.offsetHeight+24;var r=this.getPageScrollingElement(),Z=this.getScrollTop(),O=Z+r.clientHeight-56;if(e<Z+56)e-=56;else if(G>O)e=G-r.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,e),500)}},
onYtSignalActionScrollToComments:function(){var G=this.hostElement.querySelector("#comments");if(G&&!this.scrollToAnimation_.isAnimating()){G=G.offsetTop-56-24;if(_.R("kevlar_comment_teaser_scroll_to_midpoint")&&(G-=_.dS().height/3,G<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,G),500)}},
onYtEngagementPanelVisibleChanged:function(G,e,r){if(this.active&&this.trackEngagementPanelVisibility&&!_.gJv.includes(r)){if(e==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.UW(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var Z=_.v_().resolve(_.uB);this.visiblePanelIdentifiers_.forEach(function(O){O!==r&&Z.hidePanel({identifier:O})})}this.visiblePanelIdentifiers_.add(r)}e!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&e!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(r);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(G){return G?"":"watch-active-metadata"},
computeNewMetadataClass:function(G){return G?"watch-active-metadata":""},
computeIsSingleColumn:function(G,e){return e&&!G},
computeFullBleedPlayer:function(G,e,r){return _.R("external_fullscreen")&&G||e||r},
computeDefaultLayout:function(G){return!G},
computeDefaultTwoColumnLayout:function(G,e){return!G&&e},
updatePanelsLocation:function(){if(_.R("web_watch_enable_fs_squeezeback_panels")){var G=_.z1(this.hostElement).querySelector("#below"),e=_.z1(this.hostElement).querySelector("#panels"),r=_.z1(this.hostElement).querySelector("#playlist"),Z=_.z1(this.hostElement).querySelector("#chat-container"),O=_.z1(this.hostElement).querySelector("#panels-full-bleed-container"),M=_.z1(this.hostElement).querySelector("#secondary-inner"),T=_.z1(this.hostElement).querySelector("#shopping-timely-shelf"),E=_.z1(this.hostElement).querySelector("#persistent-panel-container");
if(G&&e&&r&&Z&&O&&M&&T&&(this.aiCompanionEnabled?E:1)){var b=this.fullscreen||this.theater&&this.iMaxTheaterMode,w=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;w?(w=_.z1(this.hostElement).querySelector("#columns"),(Z==null?void 0:Z.parentElement)!==w&&w.append(Z),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):b?O.appendChild(Z):this.isTwoColumns_?_.Qz(M,Z):_.Qz(G,Z);b?(O.appendChild(e),O.appendChild(r),this.aiCompanionEnabled&&
E&&O.appendChild(E)):(this.isTwoColumns_?(_.Qz(M,e),_.Qz(M,r),this.aiCompanionEnabled&&E&&_.Qz(M,E)):(_.Qz(G,e),_.Qz(G,r),this.aiCompanionEnabled&&E&&_.Qz(G,E)),_.Qz(G,T))}}},
swatcherooUpdatePanelsLocation:function(G,e,r,Z,O,M){if(this.is==="ytd-watch-grid"){e=G&&!e;this.swatcherooSplitScroll&&(e?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));r=_.z1(this.hostElement).querySelector("#panels");var T=_.z1(this.hostElement).querySelector("#playlist"),E=_.z1(this.hostElement).querySelector("#persistent-panel-container"),
b=_.z1(this.hostElement).querySelector("#fixed-secondary"),w=_.z1(this.hostElement).querySelector("#fixed-below"),q=_.z1(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),t=_.z1(this.hostElement).querySelector("#chat-container");M&&(G?(b.appendChild(r),this.aiCompanionEnabled&&E&&b.appendChild(E)):(w.appendChild(r),this.aiCompanionEnabled&&E&&w.appendChild(E)));O?G?b.appendChild(t):w.appendChild(t):_.sg(t,q);Z?G?b.appendChild(T):w.appendChild(T):_.sg(T,
q);this.swatcherooSplitScroll&&(G=_.z1(this.hostElement).querySelector("#secondary"),Z=_.z1(this.hostElement).querySelector("#columns"),O=_.z1(this.hostElement).querySelector("#fixed-columns-secondary"),e?O.appendChild(G):Z.appendChild(G))}},
computeMetadataSkinnyMode:function(G,e,r){return this.is!=="ytd-watch-grid"?!1:G?r:e},
computeWatchWhilePanelsActive:function(G,e){return G||e},
computeNoBorderOnChat:function(G){return _.R("web_watch_theater_chat_no_border")&&G},
computeLiveChatPresentAndExpanded:function(G,e){return G&&!e},
computePanelExpanded:function(G,e,r){return G||e||r},
computeSqueezeback:function(G,e,r,Z){if(_.R("web_watch_enable_fs_squeezeback_panels")){var O=this.iMaxTheaterMode&&this.theater,M=this.theater&&!this.iMaxTheaterMode;return(G||e||r)&&(O||Z)||e&&M}},
computeSwatcherooSqueezeback:function(G,e,r){return this.is!=="ytd-watch-grid"||_.R("ww_squeezeback_killswitch")?!1:G&&e&&r},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(G){_.Ae(this).getPlayerPromise().then(function(e){var r;(r=e.changeMarkerVisibility)==null||r.call(e,_.a(G,_.Fj).isVisible||!1,_.a(G,_.Fj).entityKeys||[],_.a(G,_.Fj).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(G){this.liveChatCollapsed=G.detail;_.Yt().dispatch(_.tqj(G.detail));if(!this.liveChatCollapsed&&this.squeezeback){var e=_.v_().resolve(_.uB);this.visiblePanelIdentifiers_.forEach(function(r){e.hidePanel({identifier:r})})}},
onSetPlaylistCollapsed:function(G){_.R("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!G)},
provideRenderingData:function(G,e){switch(G){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=e;break;case "PRIMARY_INFO":_.R("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=e);this.videoPrimaryInfoRendererValue=e==null?void 0:e.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.R("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(G){this.cinematicsActive=G},
isMiniplayerActive:function(){return _.v_().resolve(_.fp).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var $ea;_.wxY=function(G){if(!(0,_.wcW)(G))throw Error("K``"+String(G));};
_.Smm=function(G){return G.findIndex(function(e){return $ea.indexOf(e.tagName)>-1})>-1};
_.qmW=function(){var G=_.v_().resolve(_.gu);_.T2s(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(G.isFullscreenEnabled()?_.FR(document.documentElement):_.Li$(document.documentElement))};
$ea=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.FD=new Map;_.FD.set(32,59972);_.FD.set(27,50765);_.FD.set(70,60102);_.FD.set(76,60221);_.FD.set(77,60222);_.FD.set(74,60223);_.FD.set(84,60224);_.FD.set(38,61941);_.FD.set(40,61942);_.FD.set(73,62521);_.FD.set(67,62522);_.FD.set(80,63390);_.FD.set(78,63397);_.FD.set(75,59972);_.FD.set(188,63385);_.FD.set(190,63384);_.FD.set(36,63387);
_.FD.set(35,63386);_.FD.set(37,63388);_.FD.set(39,63389);_.FD.set(79,63423);_.FD.set(87,63424);_.FD.set(107,63426);_.FD.set(109,63425);_.FD.set(65,63428);_.FD.set(83,63430);_.FD.set(68,63429);_.FD.set(221,63431);_.FD.set(219,63432);_.FD.set(97,63439);_.FD.set(98,63440);_.FD.set(99,63441);_.FD.set(100,63442);_.FD.set(101,63443);_.FD.set(102,63444);_.FD.set(103,63445);_.FD.set(104,63446);_.FD.set(105,63447);_.Jr=new Map;_.Jr.set(80,63390);_.Jr.set(78,63397);_.Jr.set(188,63400);_.Jr.set(190,63401);
_.Jr.set(191,60765);_.Jr.set(13,247917);_.B7=new Map;_.xl=new Map;
}catch(e){_._DumpException(e)}
try{
var QBW,Cfl,uqd,nNC;_.HaH=function(G){return G.ui.guideIsVisibleButNotPersistent};
_.dvB=function(G){return G.ui.tabGesturesIsActive};
_.oNB=function(){var G=_.td("service_worker_scope");try{return navigator.serviceWorker.getRegistration(G)}catch(e){return Promise.reject(e)}};
_.sBH=function(G){return!(!G||!G.pushManager)};
QBW=function(){return _.oNB().then(_.sBH).catch(function(){return!1})};
_.ICo=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?QBW():Promise.resolve(!1)};
_.p1B=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
Cfl=function(){var G,e,r;return _.D(function(Z){switch(Z.nextAddress){case 1:return Z.yield(_.Ye.getInstance(),2);case 2:G=Z.yieldResult;if(!G){e=void 0;Z.jumpTo(3);break}return Z.yield(G.get("lmqf"),4);case 4:e=Z.yieldResult;case 3:switch((r=e)||(r="SD"),r){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")}}})};
uqd=function(G){var e,r,Z;return _.D(function(O){if(O.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.R("disable_av1_setting")){var M=window.localStorage["yt-player-av1-pref"];M=M==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":M==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else M="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(e=G===M)return O.jumpTo(2);Z=r=G;return O.yield(Cfl(),3)}O.nextAddress!=2&&(e=Z===O.yieldResult);return O.return(e)})};var mvW;var cX8=_.dh.IronButtonState,YOH=(0,_.KV)(HTMLElement);
_.ts({_template:function(){if(mvW!==void 0)return mvW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;nNC===void 0&&(nNC=document.createElement("template"));var Z=nNC;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return mvW=G},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[cX8,_.k6,_.o4,_.I4],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(G){var e=(0,_.o5)(this);e.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:G});e.shadowRoot.appendChild(G);return YOH.prototype._attachDom.call(this,G)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var G=this.contentElement;G&&G.selectedItem&&this._setSelectedItem(G.selectedItem)},
get contentElement(){for(var G=_.i4(this.$.content).getDistributedNodes(),e=0,r=G.length;e<r;e++)if(G[e].nodeType===Node.ELEMENT_NODE)return G[e]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(G){this._setSelectedItem(G.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(G){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G)===this&&this.open()},
_selectedItemChanged:function(G){var e="";G?e=G.label||G.getAttribute("label")||G.textContent.trim():e="";this.value=e;this._setSelectedItemLabel(e)},
_computeMenuVerticalOffset:function(G,e){return e?e:G?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var G=this.opened?"true":"false",e=this.contentElement;e&&e.setAttribute("aria-expanded",G)}});_.H7=new _.L9("navigateAction");var yXm=new _.L9("formRenderer");var dI=function(){var G=_.DQ.apply(this,arguments)||this;G.showInput=!1;return G};
_.K(dI,_.DQ);_.V=dI.prototype;_.V.detached=function(){this.showInput&&window.removeEventListener("click",_.ZQ(this,this.closeOnOutsideClick_))};
_.V.stopPropagation_=function(G){this.showInput&&G.stopPropagation()};
_.V.closeOnOutsideClick_=function(G){this.closeOnOutsideClickCondition(G)&&(this.showInput=!1,window.removeEventListener("click",_.ZQ(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.V.closeOnOutsideClickCondition=function(){return!0};
_.V.closeOnOutsideClickHandler=function(){};
_.V.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.ZQ(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.V.openOnClickHandler=function(){};
_.V.showInputChanged=function(){};
_.V.setShowInput=function(G){this.showInput=G};
dI.prototype.setShowInput=dI.prototype.setShowInput;dI.prototype.showInputChanged=dI.prototype.showInputChanged;dI.prototype.openOnClickHandler=dI.prototype.openOnClickHandler;dI.prototype.openOnClick_=dI.prototype.openOnClick_;dI.prototype.closeOnOutsideClickHandler=dI.prototype.closeOnOutsideClickHandler;dI.prototype.closeOnOutsideClickCondition=dI.prototype.closeOnOutsideClickCondition;dI.prototype.closeOnOutsideClick_=dI.prototype.closeOnOutsideClick_;dI.prototype.stopPropagation_=dI.prototype.stopPropagation_;
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],dI.prototype,"showInput",void 0);_.B([_.Om("click"),_.Om("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],dI.prototype,"stopPropagation_",null);_.B([_.Me("showInput"),_.x("design:type",Function),_.x("design:paramtypes",[Boolean]),_.x("design:returntype")],dI.prototype,"showInputChanged",null);_.B([_.Em()],dI);_.AXH=[dI.prototype];var FkW;var JX8;var ox=function(){return _.m.apply(this,arguments)||this};
_.K(ox,_.m);_.V=ox.prototype;_.V.computePreselectedOption=function(G,e){return e===this.itemSelected_?G:void 0};
_.V.dataChanged_=function(){var G=this;this.preselectedSubreason=this.itemSelected_=-1;var e;(e=this.data)!=null&&e.key&&_.DE(this,function(){var r,Z=Number((r=G.data)==null?void 0:r.key);!Number.isNaN(Z)&&(G.itemSelected_=Z,r=(r=(G.data.items||[])[Z])&&r.optionSelectableItemRenderer&&r.optionSelectableItemRenderer.preselectedIndex)&&(G.preselectedSubreason=r)})};
_.V.isSubReasonHidden_=function(G,e){return G!=e};
_.V.onTopItemSelected_=function(G,e){for(var r=_.z1(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),Z=0,O=r.length;Z<O;Z++)r[Z].select(0);_.Pi(this.hostElement,"yt-report-form-update",[e.item.value]);G.stopPropagation()};
_.V.onItemSelected_=function(G,e){_.Pi(this.hostElement,"yt-report-form-update",[e.item.value]);G.stopPropagation()};
_.V.getItem_=function(G){return G.serviceItem?G.serviceItem:G.navigationItem?G.navigationItem:G.optionSelectableItemRenderer?G.optionSelectableItemRenderer:null};
_.V.computeText_=function(G){return(G=this.getItem_(G))?this.ytRendererBehavior.getSimpleString(G.text):null};
_.V.validate=function(){return this.itemSelected_!==-1};
_.V.computeAriaLabel_=function(G){var e=_.mG(G.text);(G=G.accessibility&&G.accessibility.accessibilityData&&G.accessibility.accessibilityData.label)&&(e+=". "+G);return e};
_.V.computeItemSelected_=function(G){return G};
_.V.preventSelection_=function(G){G.stopPropagation();this.tooltipTapped=!0};
_.V.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.V.updateItemSelectedFromBinding=function(G){this.itemSelected_=G.detail.value};
_.V.save=function(){var G;this.validate()&&(G=this.data)!=null&&G.items&&(G=this.data.items[this.itemSelected_],G!=null&&G.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(G.optionSelectableItemRenderer.submitEndpoint)||_.zw(this.hostElement,[G.optionSelectableItemRenderer.submitEndpoint])))};
ox.prototype.onPaperRippleTransitionEnd_=ox.prototype.onPaperRippleTransitionEnd_;ox.prototype.dataChanged_=ox.prototype.dataChanged_;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],ox.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ox.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ox.prototype,"data",void 0);_.B([_.n({value:-1}),_.x("design:type",Number)],ox.prototype,"itemSelected_",void 0);
_.B([_.n({computed:"computeItemSelected_(itemSelected_)"}),_.x("design:type",Number)],ox.prototype,"value",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],ox.prototype,"restoreFocusOnClose",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],ox.prototype,"tooltipTapped",void 0);_.B([_.n({value:-1}),_.x("design:type",Number)],ox.prototype,"preselectedSubreason",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ox.prototype,"dataChanged_",null);_.B([_.Om("transitionend"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ox.prototype,"onPaperRippleTransitionEnd_",null);_.B([_.aR({is:"yt-options-renderer",disableElementRegistration:!0})],ox);
_.A(ox,"yt-options-renderer",function(){if(JX8===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;FkW===void 0&&(FkW=document.createElement("template"));var Z=FkW;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);JX8=G}G=JX8;return G},{mode:2});var B0W;var xva;var PfC;var UvC;var zDY;var Wkd;var s$=function(){return _.m.apply(this,arguments)||this};
_.K(s$,_.m);s$.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
s$.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
s$.prototype.onTap=function(G){if(this.hostElement.classList.contains("selected")||_.Pi(this.hostElement,"yt-share-panel-can-select-contact-action")[0])G&&G.detail&&(G.detail.x||G.detail.y)&&_.z1(this.hostElement).querySelector("#target").blur(),(G=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),G={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:G?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.Pi(this.hostElement,"yt-share-panel-select-contact-action",[G])};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],s$.prototype,"ytRendererBehavior",void 0);_.B([_.n({observer:"onDataChanged"}),_.x("design:type",Object)],s$.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.x("design:type",String)],s$.prototype,"componentTitle",void 0);_.B([_.hs("#thumbnail"),_.x("design:type",Object)],s$.prototype,"thumbnail",void 0);_.B([_.aR({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],s$);
_.A(s$,"yt-enrolled-contact-renderer",function(){if(Wkd===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;zDY===void 0&&(zDY=document.createElement("template"));var Z=zDY;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Wkd=G}G=Wkd;return G},{mode:2});var N08;var Lk8;var QC=function(){return _.m.apply(this,arguments)||this};
_.K(QC,_.m);QC.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
QC.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
QC.prototype.onTap=function(G){if(this.hostElement.classList.contains("selected")||_.Pi(this.hostElement,"yt-share-panel-can-select-contact-action")[0])G&&G.detail&&(G.detail.x||G.detail.y)&&_.z1(this.hostElement).querySelector("#target").blur(),(G=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),G={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:G?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.Pi(this.hostElement,"yt-share-panel-select-contact-action",[G])};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],QC.prototype,"ytRendererBehavior",void 0);_.B([_.n({observer:"onDataChanged"}),_.x("design:type",Object)],QC.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.x("design:type",String)],QC.prototype,"componentTitle",void 0);_.B([_.hs("#thumbnail"),_.x("design:type",Object)],QC.prototype,"thumbnail",void 0);_.B([_.aR({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],QC);
_.A(QC,"yt-suggested-contact-renderer",function(){if(Lk8===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;N08===void 0&&(N08=document.createElement("template"));var Z=N08;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Lk8=G}G=Lk8;return G},{mode:2});var Ix=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-share-panel-reset-action":"onReset"};return G};
_.K(Ix,_.m);Ix.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"}}}}}};
Ix.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.Pi(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
Ix.prototype.onReset=function(){for(var G=_.z1(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),e=G.length-1;e>=0;e--)G[e].classList.toggle("selected")};
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Ix.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Ix.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Ix.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n({observer:"onDataChanged"}),_.x("design:type",Object)],Ix.prototype,"data",void 0);
_.B([_.aR({is:"yt-contact-section-renderer",disableElementRegistration:!0})],Ix);
_.A(Ix,"yt-contact-section-renderer",function(){if(UvC===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;PfC===void 0&&(PfC=document.createElement("template"));var Z=PfC;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);UvC=G}G=UvC;return G},{mode:2});var pv=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return G};
_.K(pv,_.m);_.V=pv.prototype;_.V.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"}}}};
_.V.onYtRefreshFormCommand=function(G){var e;(G=_.a((e=_.a(G,_.AYy))==null?void 0:e.formRenderer,yXm))&&this.set("data",G)};
_.V.reset=function(){var G=_.z1(this.hostElement).querySelector("#fields").children;G=_.h(G);for(var e=G.next();!e.done;e=G.next())e=e.value,e.reset&&e.reset()};
_.V.getForm=function(){var G={},e=_.z1(this.hostElement).querySelector("#fields").children;e=_.h(e);for(var r=e.next();!r.done;r=e.next()){r=r.value;if(!r.validate())return null;G[r.data.key]=r.value}return G};
_.V.submitFormFields=function(){if(this.fields)for(var G=_.h(this.fields),e=G.next();!e.done;e=G.next())e=e.value,e.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?e.save():e.nodeName==="YT-OPTIONS-RENDERER"&&e.save()};
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],pv.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],pv.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],pv.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],pv.prototype,"data",void 0);_.B([_.To("#fields > *"),_.x("design:type",Array)],pv.prototype,"fields",void 0);
_.B([_.aR({is:"yt-form-renderer",disableElementRegistration:!0})],pv);
_.A(pv,"yt-form-renderer",function(){if(xva===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;B0W===void 0&&(B0W=document.createElement("template"));var Z=B0W;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);xva=G}G=xva;return G},{mode:2});var Gom;var Cv=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return G};
_.K(Cv,_.m);Cv.prototype.onCheckboxChange=function(G){this.data&&(G=(this.checked=_.mk(G).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.v_().resolve(_.$1).resolveCommand(G,{form:{element:this.hostElement}})};
Cv.prototype.handleUpdateCheckboxCommand=function(G){(G=_.a(G,_.VjP))&&this.data&&this.data.id===G.id&&(this.set("data.disabled",G.disabled),this.set("data.title",G.title))};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Cv.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Cv.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Cv.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Boolean)],Cv.prototype,"checked",void 0);_.B([_.c({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Cv);
_.A(Cv,"ytd-settings-checkbox-renderer",function(){if(Gom!==void 0)return Gom;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Gom=G},{mode:1});var ecW;var uc=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return G};
_.K(uc,_.m);uc.prototype.dataChanged=function(){var G=this,e;return _.D(function(r){if(r.nextAddress==1)return G.radio.removeAttribute("checked"),!G.data||!G.data.id||G.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.p1B()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(e=G.data&&G.data.id)?r.yield(uqd(G.data.id),4):r.jumpTo(3):(G.set("data.hidden",!0),r.jumpTo(0));r.nextAddress!=3&&(e=r.yieldResult);e&&_.Pi(G.hostElement,"yt-select-settings-radio-option",[G.data.id]);_.HL(r)})};
uc.prototype.onButtonChanged=function(G){_.mk(G).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.v_().resolve(_.$1).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.Pi(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
uc.prototype.onSelectOption=function(G){this.data&&this.data.id&&(this.data.id===G?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
uc.prototype.dataChanged=uc.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],uc.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],uc.prototype,"ytActionHandlerBehavior",void 0);_.B([_.hs("#radio"),_.x("design:type",Object)],uc.prototype,"radio",void 0);_.B([_.n(),_.x("design:type",Object)],uc.prototype,"data",void 0);
_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],uc.prototype,"dataChanged",null);_.B([_.c({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],uc);
_.A(uc,"ytd-settings-radio-option-renderer",function(){if(ecW!==void 0)return ecW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return ecW=G},{mode:1});var rsV;var nv=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return G};
_.K(nv,_.m);
nv.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"}}}};
nv.prototype.handleUpdateTextCommand=function(G){(G=_.a(G,_.h23))&&this.data&&this.data.id===G.id&&this.set("data",G)};
nv.prototype.handleUpdateConnectedAppRendererCommand=function(G){if(_.a(G,_.E6S)&&this.data){var e,r;if(G=(e=_.a(G,_.E6S))==null?void 0:(r=e.newConnectedAppRenderer)==null?void 0:r.connectedAppRenderer)this.data=G}};
nv.prototype.computeConnectedAppStyle=function(G){return G.style?G.style.toLowerCase().replace(/_/g,"-"):""};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],nv.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],nv.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],nv.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],nv.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.x("design:type",String)],nv.prototype,"connectedAppStyle",void 0);_.B([_.c({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],nv);
_.A(nv,"ytd-connected-app-renderer",function(){if(rsV!==void 0)return rsV;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return rsV=G},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.yT("iuT5Oc");

_.AA();
}catch(e){_._DumpException(e)}
try{
_.yT("L3n37");
var JyZ=function(G){return G.watch.isLearningJourneyActive},BJj=_.L1(115994),xnt=_.L1(115993),Ppv=function(G,e,r){var Z=this;
var O=r.dragDownAction;this.layer=0;this.JSC$23463_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Z.dragDownAction()}}}};
this.JSC$23463_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 M=_.h_();_.KE(M,BJj,this.layer);_.KE(M,xnt,this.layer);this.dragDownAction=function(){O();_.sb(M,{visualElement:Z.fullscreen?BJj:xnt})};
this.gesture=new _.uk(G,e,this.getConfig(!1),"pandown");this.attach()};
Ppv.prototype.attach=function(){this.gesture.attach()};
Ppv.prototype.detach=function(){this.gesture.detach()};
Ppv.prototype.update=function(G){this.fullscreen=G;var e=this.gesture;G=this.getConfig(G);e.config=G};
Ppv.prototype.getConfig=function(G){return G?this.JSC$23463_watchFullScreenConfig:this.JSC$23463_watchConfig};var Uny=function(G){_.Ar.call(this);var e=this;this.rootElement=G;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return e.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(r){e.initOrDisposeActiveModules(r)}));
this.onAttached()};
_.K(Uny,_.Ar);_.V=Uny.prototype;_.V.getRoot=function(){return this.rootElement};
_.V.getElement=function(G){return this.rootElement.getElement(G)};
_.V.setPlayerResponse=function(G){this.playerResponse=G;this.publish("PLAYER_RESPONSE_UPDATED",G)};
_.V.getPlayerResponse=function(){return this.playerResponse};
_.V.setWatchNextResponse=function(G){this.watchNextResponse===G?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=G,this.publish("WATCH_NEXT_RESPONSE_UPDATED",G))};
_.V.getWatchNextResponse=function(){return this.watchNextResponse};
_.V.registerActionHandler=function(G,e){var r=this;if(_.R("web_watch_controller_reg_multiple_handlers_killswitch")){var Z={};_.re(_.e8.getInstance(),(Z[G]=e,Z),this.getRoot())}else this.actionHandlers.has(G)||(this.actionHandlers.set(G,[]),Z={},_.re(_.e8.getInstance(),(Z[G]=function(){var O=_.Bw.apply(0,arguments);return(r.actionHandlers.get(G)||[]).map(function(M){return M.apply(null,_.mY(O))})},Z),this.getRoot())),this.actionHandlers.get(G).push(e)};
_.V.unregisterActionHandler=function(G){if(_.R("web_watch_controller_reg_multiple_handlers_killswitch")){var e={};_.Mx(_.e8.getInstance(),(e[G]=!0,e),this.getRoot())}else(e=this.actionHandlers.get(G))?(e.pop(),e.length===0&&(e={},_.Mx(_.e8.getInstance(),(e[G]=!0,e),this.getRoot()),this.actionHandlers.delete(G))):_.FH(new _.Cr("Attempted to unregister an action handler which is not registered.",G))};
_.V.addPageDisposeJob=function(G){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.o4S(this.rootElement.pageDisposeJobs,G)};
_.V.removePageDisposeJob=function(G){this.rootElement.pageDisposeJobs&&_.yp(this.rootElement.pageDisposeJobs,G)};
_.V.dispatchEvent=function(G,e){_.xy(this.rootElement,G,e)};
_.V.provideRenderingData=function(G,e){this.rootElement.provideRenderingData(G,e)};
_.V.scrollWatchTo=function(G,e){var r;(r=this.watchScrollManager)==null||r.scrollWatchTo(G,e)};
_.V.focusOnPlayer=function(){var G=this.getElement("PLAYER");_.DE(G,function(){if(G&&G.firstElementChild){var e=G.querySelector(".html5-video-player");e&&(_.hv(_.v_().resolve(_.bZ)),e.focus())}else _.FH(Error("bp"))})};
var zBj=function(G){var e=!!G.rootElement.theater,r=!!G.rootElement.fullscreen,Z;(Z=G.watchCinematicManager)==null||_.jdz(Z,r,e)};
_.V=Uny.prototype;_.V.subscribeToActiveChanged=function(G,e){e=e===void 0?!0:e;var r=_.IC(_.Yt(),JyZ,function(Z){G(Z)});
e&&G(JyZ(_.Yt().getState()));return r};
_.V.isActive=function(){return JyZ(_.Yt().getState())};
_.V.onAttached=function(){var G=_.R("external_fullscreen");_.R("use_unified_flag_accessor")&&(G=_.v_().resolve(_.d0A).retriever.getFlag(_.lGl));(G||_.PX("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.V.initPersistentModules=function(){if(_.R("kevlar_watch_flexy_theater_manager")){var G=new _.Uxt(this);_.Xx(this,G)}G=new _.nuv(this);_.Xx(this,G);G=new _.sq(this);_.Xx(this,G);G=new _.Qd_(this);_.Xx(this,G);G=new _.uh(this);_.Xx(this,G);G=new _.QZ(this);_.Xx(this,G);_.R("kevlar_watch_flexy_playlist_manager")&&(G=new _.SWy(this),_.Xx(this,G))};
_.V.initOrDisposeActiveModules=function(G){G?(this.watchScrollManager=new _.n3(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.LMk(this)),this.activeModules.push(new _.Wf_(this)),this.activeModules.push(new _.jpt(this)),this.activeModules.push(new _.BEq(this)),_.R("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.rTt(this)),this.activeModules.push(new _.MWk(this)),_.R("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.Xit(this)),
_.R("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.itz(this)),_.R("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.S0k(this),this.activeModules.push(this.watchCinematicManager),zBj(this)),_.R("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Dzv(this)),_.R("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.pUt(this)),G=_.R("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.R("kevlar_watch_flexy_comments_manager")&&
!G&&this.activeModules.push(new _.kUt(this)),_.R("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.wJz(this)),this.activeModules.push(new _.Ztw(this)),this.activeModules.push(new _.egv(this)),_.R("web_enable_timely_actions")&&this.activeModules.push(new _.hZz(this)),_.R("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.dxZ(this)),_.R("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.lmZ(this)),_.R("web_fullscreen_components")&&
this.activeModules.push(new _.V8_(this)),_.R("web_player_rtr_ctrls")&&this.activeModules.push(new _.s5Z(this))):(_.DD(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.V.disposeInternal=function(){_.Ar.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.iY.Object.defineProperties(Uny.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var WCv={},NJt=["learning-journey-engagement-panel","PAlearning_chat"];
WCv.YtdLearningJourneyWatchBehavior=[_.W.YtRendererBehavior,_.GJ.YtPlayerListenerBehavior,_.h4.YtRendererstamperBehavior,_.gF.YtActionHandlerBehavior,_.r$.YtPageBehavior,_.t4.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 _.PX("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.R("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 _.PX("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 _.R("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.R("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.R("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 _.qt("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.qt("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 _.R("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 _.R("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.R("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 _.R("web_watch_rounded_player_large")||_.R("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 _.R("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.R("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.R("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 _.R("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.R("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:_.tz(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.tz(["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 G=this;this.watchController=void 0;this.pageDisposeJobs=[function(){G.showMetadataPlaceholder_()},
function(){_.R("web_watch_dont_clear_comments")||G.clearComments_()},
function(){G.clearPlayerAds_()},
function(){G.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.R("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.R("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new _.jlj(function(){return _.Ae(G)},
this.hostElement);
this.pageDisposeJobs.push(function(){G.youThereManager_.reset()});
_.R("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){G.resetFullerscreenEduButtonForNewPlayback_()}));
_.R("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.v9;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;_.R("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.R("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));_.R("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.ZQ(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(G){G&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:G}),G.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(G){_.R("kevlar_watch_flexy_theater_manager")&&(this.theater=G,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.R("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(G){!_.R("kevlar_watch_while_v2")&&!_.R("web_watch_pip")||G||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(G){this.active!==void 0&&(this.fullscreen=G,_.R("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(G){this.active!==void 0&&(_.xy(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.R("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.R("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(G>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(G){this.initCsi_();this.updatePageData_(G)},
updatePageData_:function(G){var e=this;if(G)if(this.data===G){this.onPageLoadWithSameData_();var r;(r=this.watchController)==null||r.setWatchNextResponse(this.data)}else this.data=G;this.playlist&&_.gJ({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.jq("nw");this.loading=!1;_.IQ(_.A0,function(){e.initDclkstatus_();var Z,O=((Z=e.player)==null?void 0:Z.getVideoData().cpn)||"";_.hB_(function(M,T){_.iRY(M,T,O)})})},
onPageLoadWithSameData_:function(){_.R("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 G=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!G);this.set("loadingData.playlistLoading",G&&G!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),G=this.watchNextSkeletonEl_.firstElementChild;G;)G.classList.remove("hidden"),G=G.nextElementSibling;var e,r,Z;G=(e=this.loadingData)==null?void 0:(r=e.endpoint)==null?void 0:(Z=r.watchEndpoint)==null?void 0:Z.videoId;var O;G&&(O="https://i.ytimg.com/vi/"+G+"/frame0.jpg");_.z1(this.hostElement).querySelector("#player").style.backgroundImage=O?"url("+O+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var G=_.z1(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&G&&(G.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var e,r;(r=(e=this.watchMetadata).updateSentimentBarWidth)==
null||r.call(e);var Z,O;(O=(Z=this.watchMetadata).resize)==null||O.call(Z)}_.z1(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(G){var e=_.z1(this.hostElement).querySelector(G);e?_.Jb(e,!1):_.FH(new _.Cr("Overscroll monitor not found for component: ",G))},
removeSplitScrollMouseTrap:function(G){var e=_.z1(this.hostElement).querySelector(G);e?_.Bi(e):_.FH(new _.Cr("Disposal component for  overscroll monitoring not found: ",G))},
onLoadingChanged_:function(G){G?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(G){var e=this;G?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.A0.addLowPriorityJob(function(){e.onWindowResized_(_.T1(!0))})},
updateTheaterModeState_:function(G){if(!_.R("kevlar_watch_flexy_theater_manager")){G=G||this.fullWindowMode_;if(this.theater!==void 0||G)this.theater=G;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();G&&_.gWj()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var G=this.theater;_.R("external_fullscreen")&&this.fullscreen&&(G=!0);G=G?_.z1(this.hostElement).querySelector("#player-full-bleed-container"):_.z1(this.hostElement).querySelector("#player-container-inner");var e=this.getPlayerContainer(),r=_.R("kevlar_watch_while_v2")||_.R("web_watch_pip");e.parentElement!==G&&(r&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.Ae(this).appendTo(G,e),G.appendChild(_.z1(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var G=this;return _.D(function(e){if(e.nextAddress==1)return e.yield(_.v_().resolve(_.fp).deactivate(),2);G.updatePlayerLocation();_.HL(e)})},
updateCinematicsLocation:function(){var G=this.getElement("CINEMATICS");if(G){var e=this.getCinematicsLocationContainer();G.parentElement!==e&&e.appendChild(G);var r;(r=this.watchController)==null||zBj(r)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.z1(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.z1(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(G,e){var r=document.documentElement.hasAttribute("dark"),Z=r&&_.R("web_cinematic_theater_mode"),O=r&&_.R("web_cinematic_fullscreen");r=!r&&this.cinematicLightTheme;return G&&Z||e&&O||(e||G)&&r},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var G;(G=this.watchController)==null||G.setWatchNextResponse(this.data);_.R("kevlar_watch_flexy_comments_manager")||this.initComments_();_.R("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.v_().resolve(_.Gt).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.R("web_watch_start_chat_in_theater_mode")){var e,
r,Z;if((e=this.data)==null?0:(r=e.contents)==null?0:(Z=r.twoColumnWatchNextResults)==null?0:Z.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var O,M;((O=this.data)==null?0:(M=O.contents)==null?0:M.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(G){var e;(e=this.watchController)==null||e.setPlayerResponse(this.playerData);G&&G.playabilityStatus&&(e=this.isVideoPlayable_(G.playabilityStatus,this.getPlayerOverlays_(this.data)),G=this.isLiveStreamOffline_(G.playabilityStatus),e&&!G||_.DE(this,function(){_.jq("pbu")}));
this.setPlayerAds_();_.UW(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(G){_.Yt().dispatch(_.UK({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));G?this.activate_():this.deactivate_()},
attached:function(){var G=this;this.watchController=new Uny(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.R("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var e=_.Ae(this);_.R("kevlar_disable_prepare_player")||e.preparePlayer();_.R("kevlar_watch_flexy_playlist_manager")||_.v_().resolve(_.Gt).setPlayer(e);this.updatePageMediaQueries();e={"--ytd-watch-flexy-scrollbar-width":_.fv()+
"px"};!_.qt("kv_pl_mx_sz_ks")&&_.qt("kevlar_watch_max_player_width")&&(e["--ytd-watch-flexy-max-player-width-wide-screen"]=_.vZX+"px");_.qt("kevlar_watch_flexy_metadata_height")&&(e["--ytd-watch-flexy-space-below-player"]=_.wXX+"px");this.safeUpdateStyles(e);_.R("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new Ppv(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return G.onPlayerTouchPanDown_()}}));
_.R("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.z1(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var G=_.fv(),e=_.Cn+G,r=e;this.fixedPanels&&(e+=_.bzj);var Z=657+G;G=1327+G;_.z1(this.hostElement).querySelector("#two-column-query").query="(min-width: "+e+"px)";_.z1(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: ")+(G+"px)");_.z1(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(G+"px)");
_.z1(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+r+"px)"},
calculateCurrentPlayerSize_:function(){var G=_.z1(this.hostElement).querySelector("#miniplayer-bar").firstChild;return G&&G.active||this.theater||_.R("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.kf(NaN,NaN):_.b_2(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.b_2(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.TX(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var G=this;this.onWindowResized_(_.T1());_.R("browse_skeleton_removal_on_watch_killswitch")||_.PX("IS_SHELL_LOAD")&&_.Vaz();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var e=_.Ae(this);e.addEventListener("yt-player-updated",_.ZQ(this,this.onPlayerUpdated_));e.getPlayerPromise().then(function(r){G.playerApiReady_(r)});
_.R("kevlar_watch_flexy_playlist_manager")||(e=_.v_().resolve(_.Gt),_.R("kevlar_watch_observe_playlist_navigations_killswitch")&&e.addEventListener("yt-navigate",_.ZQ(this,this.onYtNavigate_)),e.setPlaylistComponent(_.z1(this.hostElement).querySelector("#playlist")),e.addEventListener("yt-playlist-data-updated",_.ZQ(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.A0.addLowPriorityJob(function(){_.xy(G.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Ae(this).removeEventListener("yt-player-updated",_.ZQ(this,this.onPlayerUpdated_));if(!_.R("kevlar_watch_flexy_playlist_manager")){var G=_.v_().resolve(_.Gt);_.R("kevlar_watch_observe_playlist_navigations_killswitch")&&G.removeEventListener("yt-navigate",_.ZQ(this,this.onYtNavigate_));G.cancelVideoSkip();G.removeEventListener("yt-playlist-data-updated",_.ZQ(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.R("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.xy(this.hostElement,"yt-autonav-pause-player",!1);G=_.Ab();_.R("kevlar_exit_fullscreen_leaving_watch")&&G&&_.FR(G)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(G){this.player&&this.player.updateVideoData({rvs:G.rvs})},
getPageContents:function(G){return G&&G.contents&&G.contents.twoColumnWatchNextResults&&G.contents.twoColumnWatchNextResults.results&&G.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(G){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",G)},
onRetrieveLocation_:function(G,e){e.hasComments?e.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):e.locationRetrieved("/related_ajax",void 0);G.stopPropagation()},
onSubscriptionChanged_:function(G,e){this.player&&(e?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.$Bt("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.z1(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.z1(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(G){this.player=G;this.setPlayerState(G.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.R("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.R("kevlar_unified_player")||_.R("kevlar_player_new_bootstrap_adoption"))&&_.d7()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(G,e){e=e===void 0?!0:e;_.Ab()&&_.R("external_fullscreen")&&_.FR(document.documentElement);this.theaterRequested_=G;e&&_.s5("wide",G?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.R("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.Pi(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.xy(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(G){_.JG(G,typeof this.player),this.player&&_.JG(G,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var G;((G=this.player)==null?0:G.isFullscreen())?this.player.toggleFullscreen():_.Pi(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(G,e){return this.loading?e:!!Object.keys(G).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(G){if(G){G=_.h(G);for(var e=G.next();!e.done;e=G.next())e=e.value,e.youThereRenderer&&_.KCv(this.youThereManager_,e.youThereRenderer)}},
setPlaylistData_:function(G){return G||{}},
userEngagementConfigDataChanged_:function(G){if(G)if(G.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var e=this.youThereManager_;_.bj()<G.lowEngagementThresholdMs||_.dn_(e,!0)}else G.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Pi(this.hostElement,"yt-autonav-pause-user-engagement",[G])},
isPlayerUnavailable_:function(G,e,r){return!!G&&!this.isVideoPlayable_(G,r)&&!e},
getPlayerOverlays_:function(G){return(G==null?void 0:G.playerOverlays)||null},
isVideoPlayable_:function(G,e){if(!G)return!1;var r=G.status==="OK"||G.status==="LIVE_STREAM_OFFLINE",Z=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",G)||this.get("errorScreen.ypcTrailerRenderer",G);G=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",G);var O;e=e==null?void 0:(O=e.playerOverlayRenderer)==null?void 0:O.gatedActionsOverlayRenderer;return!!r||!!Z||!!G||!!e},
hasWatchNextResponseErrorRenderer:function(G){var e=this.getPageContents(G),r,Z,O,M,T;return!(G==null?0:(r=G.contents)==null?0:(Z=r.twoColumnWatchNextResults)==null?0:Z.secondaryResults)&&!!((O=e[0])==null?0:(M=O.itemSectionRenderer)==null?0:(T=M.contents[0])==null?0:T.backgroundPromoRenderer)},
isLiveStreamOffline_:function(G){return G?G.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(G,e,r){var Z=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",e),O=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];O=_.R("web_no_skip_video_on_verification_checks")?(G==null?void 0:G.status)&&O.includes(G.status):G&&G.status==="AGE_CHECK_REQUIRED";var M=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",G);M==void 0&&(M=!0);!r||this.isVideoPlayable_(G,this.getPlayerOverlays_(e))||
Z||O||!M||_.v_().resolve(_.Gt).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.wn$()},
onPlayerFeedbackStartRequest_:function(G){_.Pi(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:G}])},
onPlayerFeedbackArticleRequest_:function(G){_.Pi(this.hostElement,"yt-help-dialog-requested",[G])},
onPlayerYpcContentRequest_:function(){var G,e,r,Z,O,M,T,E,b=((G=this.data)==null?NaN:(e=G.contents)==null?NaN:(r=e.twoColumnWatchNextResults)==null?NaN:(Z=r.secondaryResults)==null?NaN:(O=Z.secondaryResults)==null?NaN:(M=O.offerModule)==null?NaN:(T=M.tvfilmOfferModuleRenderer)==null?NaN:(E=T.actionButtons)==null?NaN:E.length)-1;G=[".offerButton.buttonRenderer.",".actionButtons."+(b>=0?b:0)+".buttonRenderer."];e=_.h(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(r=e.next();!r.done;r=e.next())for(r=r.value,Z=_.h(G),O=Z.next();!O.done;O=Z.next())if(O="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+r+O.value,O=this.get(O+"navigationEndpoint",this.data)||this.get(O+"serviceEndpoint",this.data)||this.get(O+"command",this.data)){_.es(O,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(G){_.xy(this.hostElement,"yt-autonav-pause-player",G)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(G){G()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(G){switch(G){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(G){switch(G){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.xy(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(G)},
setPlayerState:function(G){_.Yt().dispatch(_.Lgl(G))},
onPlayerSubscribe_:function(G){_.Pi(this.hostElement,"yt-player-subscribe",[G])},
onPlayerUnsubscribe_:function(G){_.Pi(this.hostElement,"yt-player-unsubscribe",[G])},
onPlayerAdYtShowToast_:function(G){_.Pi(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:G.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(G){if(G)return G},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(G){return!_.R("web_watch_move_summary_to_sd")&&!!G},
computeWatchMetadataRefresh:function(){return _.R("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var G,e,r,Z;this.watchNextSecondaryResults=(G=this.data)==null?void 0:(e=G.contents)==null?void 0:(r=e.twoColumnWatchNextResults)==null?void 0:(Z=r.secondaryResults)==null?void 0:Z.secondaryResults}},
setRichGridRendererData:function(G){this.richGridRendererData=G},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var G,e=(G=this.data)==null?void 0:G.engagementPanels;if(e==null?0:e.length){G=null;e=_.h(e);for(var r=e.next();!r.done;r=e.next()){r=r.value;var Z=void 0;if(((Z=r.engagementPanelSectionListRenderer)==null?void 0:Z.targetId)==="engagement-panel-structured-description"){G=r;break}}var O,M,T;G=(O=G)==null?void 0:(M=O.engagementPanelSectionListRenderer)==null?void 0:(T=M.content)==null?void 0:T.structuredDescriptionContentRenderer;if(G==null?0:G.items){O=
[];M=_.h(G.items);for(T=M.next();!T.done;T=M.next()){T=T.value;if(!_.R("sd_horizontal_list_show_nav_killswitch")){var E=Z=r=e=G=void 0,b=void 0,w=(G=T.horizontalCardListRenderer)==null?void 0:(e=G.header)==null?void 0:(r=e.richListHeaderRenderer)==null?void 0:(Z=r.navigationButton)==null?void 0:(E=Z.buttonRenderer)==null?void 0:(b=E.command)==null?void 0:b.commandExecutorCommand;w&&w.commands&&(w.commands=w.commands.filter(function(q){return!_.a(q,_.Ho_)}))}T.expandableVideoDescriptionBodyRenderer||
T.videoDescriptionHeaderRenderer||O.push(T)}return{items:O}}}},
constructWarning_:function(G){return{text:_.nQ(G),type:"WARNING"}},
isPlaShelfEnabled_:function(G){if((this.get("adPlacements",G)||[]).length)return!0;G=this.get("playerAds",G)||[];return!(!G.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",G[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var G=this;_.xy(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.R("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var e=this.getScrollTop()>0;this.gestures_&&(e?this.gestures_.detach():this.gestures_.attach());e!==this.showFullerscreenEdu_&&_.R("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=e,_.Ae(this).getPlayerPromise().then(function(r){r.updateFullerscreenEduButtonVisibility(G.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.xy(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var G=this;this.commentsReady=!1;_.A0.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.IQ(_.A0,function(){G.setComments_()},1E3)},
setComments_:function(){if(!_.R("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.jq("cmi");_.A0.cancelJob(this.setCommentsJobId_);var G=this.getPageContents(this.data);if(G&&G.length){G=_.h(G);for(var e=G.next();!e.done;e=G.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&&_.xy(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.R("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.R("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.jq("cmc")},
doRemoveComments_:function(){this.comments={};_.R("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.A0.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.A0.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(G,e){var r=_.a(e.endpoint,_.u4);r&&(!(e=this.get("data.currentVideoEndpoint.watchEndpoint"))||r.videoId!==e.videoId||r.playlistId&&r.playlistId!==e.playlistId||r.index!==void 0&&r.index!==e.index||typeof r.startTimeSeconds!=="number"||(G.stopPropagation(),this.setScrollTop(0),_.Ae(this).getPlayerPromise().then(function(Z){var O=r.startTimeSeconds;Z.seekTo(O);Z.wakeUpControls();O<Z.getDuration()&&Z.playVideo()})))},
updatePlayerStartTime_:function(){var G=_.No2();"t"in G&&(G=_.vJ2(G.t),this.player.seekTo(G,!0))},
updateTitleFromWatchNext:function(G){G=this.getPageContents(G);var e,r;(G=_.mG(G==null?void 0:(e=G[0])==null?void 0:(r=e.videoPrimaryInfoRenderer)==null?void 0:r.title))&&_.xy(this.hostElement,"yt-update-title",G)},
updateTitle_:function(G){G=this.get("videoDetails.title",G)||"";_.xy(this.hostElement,"yt-update-title",G)},
syncWithRemoteVideo_:function(G,e,r){if(this.active&&this.player){var Z=this.player.getVideoData();if(Z.video_id===r&&(r=Z.list,_.R("polymer_enable_mdx_queue")&&r&&r.startsWith("RQ")&&(r=void 0),Z.video_id!==G||r!=e)){var O;_.R("kevlar_player_watch_endpoint_navigation")?O=_.FUp(_.TJq(G,e)):O=this.buildWatchEndpoint_(G,e);_.xy(this.hostElement,"yt-navigate",{endpoint:O,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(G,e,r){return _.Jy(G,e,r)},
initDclkstatus_:function(){_.i_q()},
attachWatchPageSkeleton_:function(){var G=document.querySelector("#watch-page-skeleton");if(G){var e=G.querySelector("#primary-info"),r=G.querySelector("#secondary-info"),Z=G.querySelector("#related");e&&_.z1(this.hostElement).querySelector("#info-skeleton").appendChild(e);r&&_.z1(this.hostElement).querySelector("#meta-skeleton").appendChild(r);Z&&(_.z1(this.hostElement).querySelector("#related-skeleton").appendChild(Z),this.watchNextSkeletonEl_=Z);_.d1(G)}},
handlePlayerUpdated_:function(){_.Ae(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(G,e){if(this.watchNextSkeletonEl_&&typeof e!=="undefined"){var r=this.watchNextSkeletonEl_.children,Z=G&&G.indexSplices.length?G.indexSplices[0].index:0;G=Math.min(this.watchNextShownItems.length,r.length);e||(Z=0,G=r.length);for(e=Z;e<G;e++)r[e].classList.add("hidden")}},
onPlayerFullscreenChange_:function(G){_.R("external_fullscreen")||_.Pi(this.hostElement,"yt-player-fullscreen",[G.fullscreen])},
onFullscreenChange_:function(G){this.fullscreen=G;this.gestures_&&this.gestures_.update(this.fullscreen);var e=_.Ae(this);e.getPlayerPromise().then(function(r){r.setFauxFullscreen(!!_.Ab())});
this.updateFullBleedElementLocations();G&&(e.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(G,e){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!e},
computeIsDonationShelfCollapsed_:function(G){return G},
computeShouldShowMerchShelf:function(G,e){return e&&!!G},
computeResponseHasComments:function(G){var e,r,Z,O,M;return!!(G==null?0:(e=G.contents)==null?0:(r=e.twoColumnWatchNextResults)==null?0:(Z=r.results)==null?0:(O=Z.results)==null?0:(M=O.contents)==null?0:M.some(function(T){var E;return(T==null?void 0:(E=T.itemSectionRenderer)==null?void 0:E.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(G,e){this.responseHasComments=this.computeResponseHasComments(this.data);return!!G&&!!Object.keys(G).length&&!e},
identity:_.uF,onWindowResized_:function(G){this.windowSize_=G;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.R("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.R("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(G){var e=this;G&&G.type!=="dataloaded"&&G.type!=="dataupdated"||_.Ae(this).getPlayerPromise().then(function(r){var Z=r.getPlayerState();Z!==5&&Z!==0&&(r=1/r.getVideoAspectRatio(),e.videoHeightToWidthRatio_!==r&&(e.videoHeightToWidthRatio_=r))})},
schedulePlayerSizeUpdate_:function(G){var e=this,r=_.R("kevlar_watch_while_v2")||_.R("web_watch_pip"),Z=function(){if(e.watchMetadata){var O,M;(M=(O=e.watchMetadata).resize)==null||M.call(O)}_.Ae(e).getPlayerPromise().then(function(T){if(_.R("kevlar_set_internal_player_size")){if(!r||!e.isMiniplayerActive()){var E=e.calculateCurrentPlayerSize_();T.setInternalSize(E.width,E.height)}}else T.setSize(NaN,NaN);_.R("kevlar_watch_while")&&e.updateWatchWhileScrollThreshold_()})};
G?Z():_.Zk(_.A0,Z)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(G){this.set("data.survey",G.detail)},
onYtShowSurveyCommand_:function(G){this.set("data.survey",_.a(G,_.RBq).survey)},
onDownloadedVideoDeleted:function(G){var e=this,r,Z;return _.D(function(O){if(O.nextAddress==1){if(!e.active||(r=e.playerData)==null||!r.offlineState||e.videoId!==G)return O.return();(Z=e.player)==null||Z.stopVideo();_.sI().navigatingAwayFromWatchDeletedVideo=!0;_.es(_.NbS,e.hostElement);return O.yield(_.sI().navigationFinishPromise,2)}_.sI().navigatingAwayFromWatchDeletedVideo=!1;_.HL(O)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var G;this.theater?G=_.j0(.5625*this.windowSize_.width,480,this.windowSize_.height-185):G=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==G&&(this.watchWhileScrollThreshold_=G,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var G=_.z1(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&G){var e=this.windowSize_.height>=624,r=this.active?this.getScrollTop():0;!G.active&&e&&r>=this.watchWhileScrollThreshold_?(G.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):G.active&&(!e||r<this.watchWhileScrollThreshold_&&!_.Ab())&&(G.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(G,e){if(G!==!0||e!==void 0){G=!_.R("live_chat_over_engagement_panels");e=_.z1(this.hostElement).querySelector("#chat-container");var r=_.z1(this.hostElement).querySelector("#plj-sidebar"),Z=_.z1(this.hostElement).querySelector("#panels"),O=_.z1(this.hostElement).querySelector("#plj-panels"),M=_.z1(this.hostElement).querySelector("#plj-playlist"),T=_.z1(this.hostElement).querySelector("#alerts"),E=_.z1(this.hostElement).querySelector("#playlist"),b=_.z1(this.hostElement).querySelector("#related"),
w=_.z1(this.hostElement).querySelector("#donation-shelf"),q=_.z1(this.hostElement).querySelector("#comments");this.isTwoColumns_?(T=_.z1(this.hostElement).querySelector("#secondary-inner"),T.appendChild(r),r.appendChild(M),M.appendChild(E),r.appendChild(O),G&&T.appendChild(Z),_.R("web_watch_theater_chat")||T.appendChild(e),G||T.appendChild(Z),T.appendChild(w),T.appendChild(b)):(G&&_.oi(Z,T),_.oi(E,T),_.R("web_watch_theater_chat")||_.oi(e,T),G||_.oi(Z,T),_.oi(w,T),q&&(O&&_.oi(O,q),_.oi(b,q)));_.R("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.R("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.R("web_watch_theater_chat")){var G=_.z1(this.hostElement).querySelector("#chat-container"),e=this.theater&&!this.fullscreen||_.R("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&e?_.R("web_watch_theater_chat_beside_player")?(e=_.z1(this.hostElement).querySelector("#panels-full-bleed-container"),(G==null?void 0:G.parentElement)!==e&&e.append(G),this.panelsBesidePlayer=!0):_.R("web_watch_theater_fixed_chat")&&
(e=_.z1(this.hostElement).querySelector("#columns"),(G==null?void 0:G.parentElement)!==e&&e.append(G),this.fixedPanels=!0):(_.R("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.R("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),e=_.z1(this.hostElement).querySelector("#playlist"),G&&e?_.sg(G,e):_.FH(new _.Cr("Missing element when updating chat location",{"chatContainer defined":!!G,"playlist defined":!!e})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(G,e){return _.R("sw_metadata_vis_toggle_ks")?!0:!!G||!!e},
computeForceDarkPanelTheme:function(G){return _.R("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&G:!1},
safeUpdateStyles:function(G){try{_.eD(this.hostElement,G)}catch(e){_.FH(e)}},
videoHeightToWidthRatioChanged_:function(G,e){e&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.R("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(G){this.videoHeightToWidthRatio_=1/G},
computeIsVerticalVideo_:function(G){return G>=1},
computeIsFourThreeToSixteenNineVideo_:function(G){return G<=.7501&&G>=.5624},
computeIsExtraWideVideo_:function(G){return G<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Ae(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Ae(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.oJZ(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(G){var e=_.SF(G)||0;_.$N(G,e+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var G=_.SF("yt-fullerscreen-edu-button-click-count")||0,e=_.SF("yt-fullerscreen-edu-button-shown-count")||0,r=_.qt("external_fullscreen_button_shown_threshold"),Z=G>=_.qt("external_fullscreen_button_click_threshold")||e>=r;_.Ae(this).getPlayerPromise().then(function(O){O.updateFullerscreenEduButtonSubtleModeState(Z)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(G,e){return e},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.v_().resolve(_.Gt).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var G=this;this.panelMaxHeightUpdateJob_&&_.A0.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.A0.addLowPriorityJob(function(){G.panelMaxHeightUpdateJob_=0;var e;!G.isTwoColumns_||G.theater||G.fullscreen?e=460:e=G.calculateNormalPlayerSize_().height;var r=e+"px";_.R("live_chat_taller_height")&&!G.theater&&(r="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.R("live_chat_medium_height")&&
!G.theater&&(r="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.R("live_chat_scaled_height")&&!G.theater&&(r="calc(100vh - var(--ytd-toolbar-height) - 238px)");G.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":e+"px","--ytd-watch-flexy-chat-max-height":r,"--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(G){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",G)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Wi(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(G){var e=_.z1(this.hostElement).querySelector("#engagement-panel-scrim");G?e.addEventListener("tap",_.ZQ(this,this.onEngagementPanelScrimClick_)):e.removeEventListener("tap",_.ZQ(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(G){if(this.hostElement.contains(G)&&!this.scrollToAnimation_.isAnimating()){var e=G.offsetTop-24;G=G.offsetTop+G.offsetHeight+24;var r=this.getPageScrollingElement(),Z=this.getScrollTop(),O=Z+r.clientHeight-56;if(e<Z+56)e-=56;else if(G>O)e=G-r.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,e),500)}},
onYtSignalActionScrollToComments:function(){var G=this.hostElement.querySelector("#comments");if(G&&!this.scrollToAnimation_.isAnimating()){G=G.offsetTop-56-24;if(_.R("kevlar_comment_teaser_scroll_to_midpoint")&&(G-=_.dS().height/3,G<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,G),500)}},
onYtEngagementPanelVisibleChanged:function(G,e,r){this.active&&this.trackEngagementPanelVisibility&&!_.gJv.includes(r)&&(e==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(r),e!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&e!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(r),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(G){return G?"":"watch-active-metadata"},
computeNewMetadataClass:function(G){return G?"watch-active-metadata":""},
computeFullBleedPlayer:function(G,e){return G||e},
computeDefaultLayout:function(G){return!G},
computeDefaultTwoColumnLayout:function(G,e){return!G&&e},
computeWatchWhilePanelsActive:function(G,e){return G||e},
computeNoBorderOnChat:function(G){return _.R("web_watch_theater_chat_no_border")&&G},
computeLiveChatPresentAndExpanded:function(G,e){return G&&!e},
computePanelExpanded:function(G,e,r){return G||e||r},
onChangeMarkersVisibility:function(G){_.Ae(this).getPlayerPromise().then(function(e){var r;(r=e.changeMarkerVisibility)==null||r.call(e,_.a(G,_.Fj).isVisible||!1,_.a(G,_.Fj).entityKeys||[],_.a(G,_.Fj).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(G){this.liveChatCollapsed=G.detail;_.Yt().dispatch(_.tqj(G.detail))},
provideRenderingData:function(G,e){switch(G){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=e;break;case "PRIMARY_INFO":_.R("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=e);this.videoPrimaryInfoRendererValue=e==null?void 0:e.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.R("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(G){this.cinematicsActive=G},
isMiniplayerActive:function(){return _.v_().resolve(_.fp).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(G){return NJt.map(function(e){return G.find(function(r){var Z;return(r==null?void 0:(Z=r.engagementPanelSectionListRenderer)==null?void 0:Z.targetId)===e})}).filter(function(e){return e!==void 0})},
getNonLearningJourneyEngagementPanels:function(G){return G.filter(function(e){var r;return!NJt.includes((e==null?void 0:(r=e.engagementPanelSectionListRenderer)==null?void 0:r.targetId)||"")})}}];var LCk;var L3=function(){var G=_.m.apply(this,arguments)||this;G.flexy=!0;G.learningJourney=!0;G.viewTransitionEnabled=_.R("enable_player_resize_transition");G.smallerChatMinHeight=_.R("live_chat_smaller_min_height");G.cinematicTheaterMode=_.R("web_cinematic_theater_mode");G.transparentTheaterMode=_.R("web_transparent_theater_mode");G.cinematicFullscreen=_.R("web_cinematic_fullscreen");G.cinematicFullscreenV2=_.R("web_cinematic_fullscreen_v2");G.isDarkTheme=document.documentElement.hasAttribute("dark");
G.theaterLargerPlayer=_.R("web_watch_theater_larger_player");G.defaultCollapsePlaylist=_.R("web_watch_default_collapse_playlist");G.enableCanvasLayout=_.R("web_enable_canvas_on_learning_journey");return G};
_.K(L3,_.m);_.V=L3.prototype;_.V.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.V.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.V.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.V.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.V.ready=function(){var G=this,e=function(){G.onColumnScroll()};
this.primary.addEventListener("scroll",e);this.secondary.addEventListener("scroll",e)};
_.V.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.V.updateIsTwoColumnsFromBinding=function(G){_.R("web_watch_update_narrow_width_killswitch")||_.Yt().dispatch(_.Rty(!G.detail.value));this.ytdWatchBehavior.isTwoColumns_=G.detail.value};
_.V.updateFlexySmallWindowFromBinding=function(G){this.ytdWatchBehavior.flexySmallWindow_=G.detail.value};
_.V.updateFlexyLargeWindowFromBinding=function(G){this.ytdWatchBehavior.flexyLargeWindow_=G.detail.value};
_.V.updateWatchWhileWindowSizeSufficientFromBinding=function(G){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=G.detail.value};
_.V.updateWatchNextCanShowMoreFromBinding=function(G){this.ytdWatchBehavior.watchNextCanShowMore=G.detail.value};
_.V.updateShownItemsFromBinding=function(G){G.detail.path?this.set(G.detail.path,G.detail.value):this.ytdWatchBehavior.watchNextShownItems=G.detail.value};
_.V.getElement=function(G){switch(G){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23472_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23472_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.iY.Object.defineProperties(L3.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 G;if((G=this.data)==null||!G.pageVisualEffects)return!1;for(var e=0;e<this.data.pageVisualEffects.length;e++)if(G=_.a(this.data.pageVisualEffects[e],_.LD))return e=void 0,(e=G.config)==null?void 0:e.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.learningJourneyEngagementPanels)==null?void 0:G.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var G,e=(G=this.learningJourneyEngagementPanels)==null?void 0:G.find(function(g){var l;return(g==null?void 0:(l=g.engagementPanelSectionListRenderer)==null?void 0:l.panelIdentifier)==="learning-journey-engagement-panel"});
if(e){var r,Z,O,M,T,E,b,w,q;if(G=(w=((b=(T=((M=e==null?void 0:(r=e.engagementPanelSectionListRenderer)==null?void 0:(Z=r.content)==null?void 0:(O=Z.sectionListRenderer)==null?void 0:O.contents)!=null?M:[])[0])==null?void 0:(E=T.itemSectionRenderer)==null?void 0:E.contents)!=null?b:[])[0])==null?void 0:(q=w.accordionViewModel)==null?void 0:q.onTitleTap){var t=_.X0(G);if(t)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.Ga.instance.resolveCommand(t)}}}}}}});
_.iY.Object.defineProperties(L3,{template:{configurable:!0,enumerable:!0,get:function(){if(LCk===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);LCk=G}G=LCk;return G}}});
L3.prototype.updateMiniplayerIsActiveValue=L3.prototype.updateMiniplayerIsActiveValue;L3.prototype.updateScrollTopValue=L3.prototype.updateScrollTopValue;L3.prototype.updateFullscreenValue=L3.prototype.updateFullscreenValue;L3.prototype.updateTheaterValue=L3.prototype.updateTheaterValue;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],L3.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],L3.prototype,"ytComponentBehavior",void 0);
_.B([_.k(WCv.YtdLearningJourneyWatchBehavior),_.x("design:type",Object)],L3.prototype,"ytdWatchBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],L3.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],L3.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],L3.prototype,"playerData",void 0);_.B([_.n(),_.x("design:type",Object)],L3.prototype,"browseData",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],L3.prototype,"flexy",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],L3.prototype,"learningJourney",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],L3.prototype,"viewTransitionEnabled",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],L3.prototype,"smallerChatMinHeight",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],L3.prototype,"cinematicTheaterMode",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],L3.prototype,"transparentTheaterMode",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],L3.prototype,"cinematicFullscreen",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],L3.prototype,"cinematicFullscreenV2",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],L3.prototype,"isDarkTheme",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],L3.prototype,"theaterLargerPlayer",void 0);_.B([_.n(),_.x("design:type",Object)],L3.prototype,"defaultCollapsePlaylist",void 0);_.B([_.n(),_.x("design:type",Object)],L3.prototype,"enableCanvasLayout",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("playerData","browseData","enableCanvasLayout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],L3.prototype,"showBrowseResponse",null);
_.B([_.n({reflectToAttribute:!0}),_.d("playerData","enableCanvasLayout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],L3.prototype,"showWatchResponse",null);_.B([_.n({selector:_.jv}),_.x("design:type",Object)],L3.prototype,"theaterValue",void 0);_.B([_.n({selector:_.aV}),_.x("design:type",Object)],L3.prototype,"fullscreenValue",void 0);_.B([_.n({selector:_.dn}),_.x("design:type",Object)],L3.prototype,"scrollTopValue",void 0);
_.B([_.n({selector:_.j6}),_.x("design:type",Object)],L3.prototype,"miniplayerIsActiveValue",void 0);_.B([_.hs("#ytd-plj-player"),_.x("design:type",HTMLElement)],L3.prototype,"ytdPlayer",void 0);_.B([_.hs("#playlist"),_.x("design:type",HTMLElement)],L3.prototype,"JSC$23472_ytdPlaylistPanelRenderer",void 0);_.B([_.yC("ytd-comments"),_.x("design:type",HTMLElement)],L3.prototype,"ytdComments",void 0);_.B([_.hs("#primary"),_.x("design:type",HTMLElement)],L3.prototype,"primary",void 0);
_.B([_.hs("#secondary"),_.x("design:type",HTMLElement)],L3.prototype,"secondary",void 0);_.B([_.hs("#player-container"),_.x("design:type",HTMLElement)],L3.prototype,"playerContainer",void 0);_.B([_.hs("#cinematics"),_.x("design:type",HTMLElement)],L3.prototype,"JSC$23472_cinematics",void 0);_.B([_.Me("theaterValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],L3.prototype,"updateTheaterValue",null);
_.B([_.Me("fullscreenValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],L3.prototype,"updateFullscreenValue",null);_.B([_.Me("scrollTopValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],L3.prototype,"updateScrollTopValue",null);_.B([_.Me("miniplayerIsActiveValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],L3.prototype,"updateMiniplayerIsActiveValue",null);
_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],L3.prototype,"cinematicLightTheme",null);_.B([_.n({reflectToAttribute:!0}),_.d("learningJourneyEngagementPanels"),_.x("design:type",Object),_.x("design:paramtypes",[])],L3.prototype,"hasLearningJourneyPanels",null);_.B([_.d("learningJourneyEngagementPanels"),_.x("design:type",Object),_.x("design:paramtypes",[])],L3.prototype,"backButtonData",null);_.B([_.c({is:"ytd-watch-learning-journey"})],L3);_.F3.registerService(_.b3a,L3);
_.AA();
}catch(e){_._DumpException(e)}
try{
_.yT("Tm0L3c");
var cyw;var YKt;var yyz=function(){return _.m.apply(this,arguments)||this};
_.K(yyz,_.m);_.B([_.c({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],yyz);
_.A(yyz,"ytd-ghost-comments-renderer",function(){if(YKt===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);YKt=G}G=YKt;return G},{mode:1});var Ayw;var FCZ=function(){return _.m.apply(this,arguments)||this};
_.K(FCZ,_.m);_.B([_.c({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],FCZ);
_.A(FCZ,"ytd-ghost-watch-metadata-renderer",function(){if(Ayw===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);Ayw=G}G=Ayw;return G},{mode:1});var N7=function(){var G=_.m.apply(this,arguments)||this;G.ghostGridRenderer={rows:6};G.smallerChatMinHeight=_.R("live_chat_smaller_min_height");G.cinematicTheaterMode=_.R("web_cinematic_theater_mode");G.transparentTheaterMode=_.R("web_transparent_theater_mode");G.darkerPanels=_.R("web_watch_darker_panels");G.cinematicFullscreen=_.R("web_cinematic_fullscreen");G.cinematicFullscreenV2=_.R("web_cinematic_fullscreen_v2");G.isDarkTheme=document.documentElement.hasAttribute("dark");return G};
_.K(N7,_.m);_.V=N7.prototype;_.V.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.V.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.V.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.V.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.V.ready=function(){var G=this,e=function(){G.onColumnScroll()};
this.primary.addEventListener("scroll",e);this.secondary.addEventListener("scroll",e)};
_.V.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.V.updateIsTwoColumnsFromBinding=function(G){this.ytdWatchBehavior.isTwoColumns_=G.detail.value};
_.V.updateFlexySmallWindowFromBinding=function(G){this.ytdWatchBehavior.flexySmallWindow_=G.detail.value};
_.V.updateFlexyLargeWindowFromBinding=function(G){this.ytdWatchBehavior.flexyLargeWindow_=G.detail.value};
_.V.updateWatchWhileWindowSizeSufficientFromBinding=function(G){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=G.detail.value};
_.V.updateWatchNextCanShowMoreFromBinding=function(G){this.ytdWatchBehavior.watchNextCanShowMore=G.detail.value};
_.V.updateShownItemsFromBinding=function(G){_.R("swatcheroo_direct_use_rich_grid")||(G.detail.path?this.set(G.detail.path,G.detail.value):this.ytdWatchBehavior.watchNextShownItems=G.detail.value)};
_.V.getElement=function(G){switch(G){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23460_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23460_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.iY.Object.defineProperties(N7.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.pageVisualEffects)return!1;for(var e=0;e<this.data.pageVisualEffects.length;e++)if(G=_.a(this.data.pageVisualEffects[e],_.LD))return e=void 0,(e=G.config)==null?void 0:e.enableInLightTheme;return!1}}});
N7.prototype.updateMiniplayerIsActiveValue=N7.prototype.updateMiniplayerIsActiveValue;N7.prototype.updateScrollTopValue=N7.prototype.updateScrollTopValue;N7.prototype.updateFullscreenValue=N7.prototype.updateFullscreenValue;N7.prototype.updateTheaterValue=N7.prototype.updateTheaterValue;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],N7.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],N7.prototype,"ytComponentBehavior",void 0);
_.B([_.k(_.nJt.YtdWatchBehavior),_.x("design:type",Object)],N7.prototype,"ytdWatchBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],N7.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],N7.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],N7.prototype,"ghostGridRenderer",void 0);_.B([_.n(),_.x("design:type",Object)],N7.prototype,"playerData",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],N7.prototype,"smallerChatMinHeight",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],N7.prototype,"cinematicTheaterMode",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],N7.prototype,"transparentTheaterMode",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],N7.prototype,"darkerPanels",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],N7.prototype,"cinematicFullscreen",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],N7.prototype,"cinematicFullscreenV2",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],N7.prototype,"isDarkTheme",void 0);_.B([_.n({selector:_.jv}),_.x("design:type",Object)],N7.prototype,"theaterValue",void 0);_.B([_.n({selector:_.aV}),_.x("design:type",Object)],N7.prototype,"fullscreenValue",void 0);_.B([_.n({selector:_.dn}),_.x("design:type",Object)],N7.prototype,"scrollTopValue",void 0);
_.B([_.n({selector:_.j6}),_.x("design:type",Object)],N7.prototype,"miniplayerIsActiveValue",void 0);_.B([_.hs("#ytd-player"),_.x("design:type",HTMLElement)],N7.prototype,"ytdPlayer",void 0);_.B([_.hs("#playlist"),_.x("design:type",HTMLElement)],N7.prototype,"JSC$23460_ytdPlaylistPanelRenderer",void 0);_.B([_.hs("#ytd-comments"),_.x("design:type",HTMLElement)],N7.prototype,"ytdComments",void 0);_.B([_.hs("#primary"),_.x("design:type",HTMLElement)],N7.prototype,"primary",void 0);
_.B([_.hs("#secondary"),_.x("design:type",HTMLElement)],N7.prototype,"secondary",void 0);_.B([_.hs("#player-container"),_.x("design:type",HTMLElement)],N7.prototype,"playerContainer",void 0);_.B([_.hs("#cinematics"),_.x("design:type",HTMLElement)],N7.prototype,"JSC$23460_cinematics",void 0);_.B([_.Me("theaterValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],N7.prototype,"updateTheaterValue",null);
_.B([_.Me("fullscreenValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],N7.prototype,"updateFullscreenValue",null);_.B([_.Me("scrollTopValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],N7.prototype,"updateScrollTopValue",null);_.B([_.Me("miniplayerIsActiveValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],N7.prototype,"updateMiniplayerIsActiveValue",null);
_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],N7.prototype,"cinematicLightTheme",null);
_.A(N7,"ytd-watch-grid",function(){if(cyw===void 0){var G=document.createElement("template");_.f(G,'\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-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" hide-offer-modules="[[hideOfferModules]]" is-two-columns="[[isTwoColumns_]]" is-watch-next-grid="" 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-grid">\n          </ytd-watch-next-secondary-results-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" 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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);cyw=G}G=cyw;return G},{mode:2});_.F3.registerService(_.i3A,N7);
_.AA();
}catch(e){_._DumpException(e)}
try{
_.yT("CF909");
var mny;var W8=function(){var G=_.m.apply(this,arguments)||this;G.viewTransitionEnabled=_.R("enable_player_resize_transition");G.smallerChatMinHeight=_.R("live_chat_smaller_min_height");G.cinematicTheaterMode=_.R("web_cinematic_theater_mode");G.transparentTheaterMode=_.R("web_transparent_theater_mode");G.cinematicFullscreen=_.R("web_cinematic_fullscreen");G.isDarkTheme=document.documentElement.hasAttribute("dark");G.defaultCollapsePlaylist=_.R("web_watch_default_collapse_playlist");G.retroModeReduxValue=
!1;G.persistentPanelVisibleValue=!1;return G};
_.K(W8,_.m);_.V=W8.prototype;_.V.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.V.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.V.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.V.updateRetroModeReduxValue=function(){_.R("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.V.updatePersistentPanelVisibleValue=function(){_.R("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.V.ready=function(){var G=this,e=function(){G.onColumnScroll()};
this.primary.addEventListener("scroll",e);this.secondary.addEventListener("scroll",e)};
_.V.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.V.updateIsTwoColumnsFromBinding=function(G){_.R("web_watch_update_narrow_width_killswitch")||_.Yt().dispatch(_.Rty(!G.detail.value));this.ytdWatchBehavior.isTwoColumns_=G.detail.value};
_.V.updateFlexySmallWindowFromBinding=function(G){this.ytdWatchBehavior.flexySmallWindow_=G.detail.value};
_.V.updateFlexyLargeWindowFromBinding=function(G){this.ytdWatchBehavior.flexyLargeWindow_=G.detail.value};
_.V.updateWatchWhileWindowSizeSufficientFromBinding=function(G){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=G.detail.value};
_.V.updateWatchNextCanShowMoreFromBinding=function(G){this.ytdWatchBehavior.watchNextCanShowMore=G.detail.value};
_.V.updateShownItemsFromBinding=function(G){G.detail.path?this.set(G.detail.path,G.detail.value):this.ytdWatchBehavior.watchNextShownItems=G.detail.value};
_.V.getElement=function(G){switch(G){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23455_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23455_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}};
_.iY.Object.defineProperties(W8.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.pageVisualEffects)return!1;for(var e=0;e<this.data.pageVisualEffects.length;e++)if(G=_.a(this.data.pageVisualEffects[e],_.LD))return e=void 0,(e=G.config)==null?void 0:e.enableInLightTheme;return!1}}});
_.iY.Object.defineProperties(W8,{template:{configurable:!0,enumerable:!0,get:function(){if(mny===void 0){var G=document.createElement("template");_.f(G,'\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" hidden$="[[!showGhostMetadata]]">\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" hidden$="[[!showGhostRelated]]"></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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);mny=G}G=mny;return G}}});
W8.prototype.updatePersistentPanelVisibleValue=W8.prototype.updatePersistentPanelVisibleValue;W8.prototype.updateRetroModeReduxValue=W8.prototype.updateRetroModeReduxValue;W8.prototype.updateScrollTopValue=W8.prototype.updateScrollTopValue;W8.prototype.updateFullscreenValue=W8.prototype.updateFullscreenValue;W8.prototype.updateTheaterValue=W8.prototype.updateTheaterValue;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],W8.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],W8.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.nJt.YtdWatchBehavior),_.x("design:type",Object)],W8.prototype,"ytdWatchBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],W8.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],W8.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],W8.prototype,"playerData",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],W8.prototype,"viewTransitionEnabled",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],W8.prototype,"smallerChatMinHeight",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],W8.prototype,"cinematicTheaterMode",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],W8.prototype,"transparentTheaterMode",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],W8.prototype,"cinematicFullscreen",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],W8.prototype,"isDarkTheme",void 0);_.B([_.n(),_.x("design:type",Object)],W8.prototype,"defaultCollapsePlaylist",void 0);_.B([_.n({selector:_.jv}),_.x("design:type",Object)],W8.prototype,"theaterValue",void 0);_.B([_.n({selector:_.aV}),_.x("design:type",Object)],W8.prototype,"fullscreenValue",void 0);
_.B([_.n({selector:_.dn}),_.x("design:type",Object)],W8.prototype,"scrollTopValue",void 0);_.B([_.n({selector:_.j6}),_.x("design:type",Object)],W8.prototype,"miniplayerIsActive",void 0);_.B([_.n({selector:function(G){return G.watch.isWatchRetroMode}}),
_.x("design:type",Object)],W8.prototype,"retroModeReduxValue",void 0);_.B([_.n({selector:_.oH.persistentPanelVisibleSelector}),_.x("design:type",Object)],W8.prototype,"persistentPanelVisibleValue",void 0);_.B([_.yC("ytd-player"),_.x("design:type",HTMLElement)],W8.prototype,"ytdPlayer",void 0);_.B([_.hs("#playlist"),_.x("design:type",HTMLElement)],W8.prototype,"JSC$23455_ytdPlaylistPanelRenderer",void 0);_.B([_.yC("ytd-comments"),_.x("design:type",HTMLElement)],W8.prototype,"ytdComments",void 0);
_.B([_.hs("#primary"),_.x("design:type",HTMLElement)],W8.prototype,"primary",void 0);_.B([_.hs("#secondary"),_.x("design:type",HTMLElement)],W8.prototype,"secondary",void 0);_.B([_.hs("#player-container"),_.x("design:type",HTMLElement)],W8.prototype,"playerContainer",void 0);_.B([_.hs("#below"),_.x("design:type",HTMLElement)],W8.prototype,"below",void 0);_.B([_.hs("#cinematics"),_.x("design:type",HTMLElement)],W8.prototype,"JSC$23455_cinematics",void 0);
_.B([_.hs("#persistent-panel-container"),_.x("design:type",HTMLElement)],W8.prototype,"persistentPanelContainer",void 0);_.B([_.Me("theaterValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],W8.prototype,"updateTheaterValue",null);_.B([_.Me("fullscreenValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],W8.prototype,"updateFullscreenValue",null);
_.B([_.Me("scrollTopValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],W8.prototype,"updateScrollTopValue",null);_.B([_.Me("retroModeReduxValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],W8.prototype,"updateRetroModeReduxValue",null);_.B([_.Me("persistentPanelVisibleValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],W8.prototype,"updatePersistentPanelVisibleValue",null);
_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],W8.prototype,"cinematicLightTheme",null);_.B([_.c({is:"ytd-watch-flexy"})],W8);_.F3.registerService(_.Edi,W8);
_.AA();
}catch(e){_._DumpException(e)}
try{
_.yT("nmfa2d");
var WH_;var yZ=function(){var G=_.m.apply(this,arguments)||this;G.hidden=!1;G.errorScreen=null;G.playlistData={};return G};
_.K(yZ,_.m);_.V=yZ.prototype;_.V.getPlayer=function(){return this.ytdPlayer};
_.V.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:_.tz(["aa","eocs"])}}};
_.V.onActiveChanged=function(){_.Yt().dispatch(_.HOz(this.ytPageBehavior.active))};
_.V.playerDataChanged=function(){var G;(G=this.watchController)==null||G.setPlayerResponse(this.playerData)};
_.V.dataChanged=function(){var G;(G=this.watchController)==null||G.setWatchNextResponse(this.data)};
_.V.sizeChanged=function(){var G,e;(e=(G=this.metadata).resize)==null||e.call(G)};
_.V.attached=function(){this.watchController=new _.c8(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.V.detached=function(){_.TX(this.watchController);this.watchController=void 0};
_.V.getPlayerContainer=function(){return this.playerContainer};
_.V.getElement=function(G){switch(G){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.V.provideRenderingData=function(G,e){switch(G){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}};
_.iY.Object.defineProperties(yZ.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return!this.hidden&&!!((G=this.data)==null?0:(e=G.contents)==null?0:(r=e.twoColumnWatchNextResults)==null?0:r.conversationBar)}}});
yZ.prototype.sizeChanged=yZ.prototype.sizeChanged;yZ.prototype.dataChanged=yZ.prototype.dataChanged;yZ.prototype.playerDataChanged=yZ.prototype.playerDataChanged;yZ.prototype.onActiveChanged=yZ.prototype.onActiveChanged;_.B([_.k(_.r$.YtPageBehavior),_.x("design:type",Object)],yZ.prototype,"ytPageBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],yZ.prototype,"ytComponentBehavior",void 0);
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],yZ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],yZ.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],yZ.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],yZ.prototype,"playerData",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],yZ.prototype,"hidden",void 0);_.B([_.hs("#ytd-player"),_.x("design:type",HTMLElement)],yZ.prototype,"ytdPlayer",void 0);_.B([_.hs("#player-container"),_.x("design:type",HTMLElement)],yZ.prototype,"playerContainer",void 0);_.B([_.hs("#metadata"),_.x("design:type",Object)],yZ.prototype,"metadata",void 0);_.B([_.hs("#playlist"),_.x("design:type",HTMLElement)],yZ.prototype,"playlistPanel",void 0);
_.B([_.n({selector:_.qQt,reflectToAttribute:!0}),_.x("design:type",Object)],yZ.prototype,"fixie",void 0);_.B([_.n({selector:_.SQX,reflectToAttribute:!0}),_.x("design:type",Object)],yZ.prototype,"singleColumn",void 0);_.B([_.n({selector:function(G){return _.jv(G)&&!_.aV(G)},
reflectToAttribute:!0}),_.x("design:type",Object)],yZ.prototype,"theater",void 0);_.B([_.n({selector:_.aV,reflectToAttribute:!0}),_.x("design:type",Object)],yZ.prototype,"fullscreen",void 0);_.B([_.n({selector:_.KH_}),_.x("design:type",Object)],yZ.prototype,"windowSize",void 0);_.B([_.n(),_.x("design:type",Object)],yZ.prototype,"singleColumnContents",void 0);_.B([_.n(),_.x("design:type",Object)],yZ.prototype,"errorScreen",void 0);_.B([_.n(),_.x("design:type",Object)],yZ.prototype,"playlistData",void 0);
_.B([_.n(),_.x("design:type",Object)],yZ.prototype,"videoPrimaryInfoRenderer",void 0);_.B([_.n(),_.x("design:type",Object)],yZ.prototype,"videoSecondaryInfoRenderer",void 0);_.B([_.n(),_.x("design:type",Object)],yZ.prototype,"richMetadataRowContainer",void 0);_.B([_.n(),_.x("design:type",Object)],yZ.prototype,"clarificationData",void 0);_.B([_.n(),_.x("design:type",Object)],yZ.prototype,"commentsEntryPointHeaderRenderer",void 0);_.B([_.n(),_.x("design:type",Object)],yZ.prototype,"ticketShelf",void 0);
_.B([_.n(),_.x("design:type",Object)],yZ.prototype,"merchShelf",void 0);_.B([_.n(),_.x("design:type",Object)],yZ.prototype,"donationShelf",void 0);_.B([_.n(),_.x("design:type",Object)],yZ.prototype,"limitedState",void 0);_.B([_.n(),_.x("design:type",Object)],yZ.prototype,"alerts",void 0);_.B([_.d("playlistData"),_.x("design:type",Object),_.x("design:paramtypes",[])],yZ.prototype,"hasPlaylistData",null);
_.B([_.d("data","hidden"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],yZ.prototype,"hasChat",null);_.B([_.Me("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yZ.prototype,"onActiveChanged",null);_.B([_.Me("playerData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yZ.prototype,"playerDataChanged",null);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yZ.prototype,"dataChanged",null);_.B([_.Me("windowSize","singleColumn"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yZ.prototype,"sizeChanged",null);
_.A(yZ,"ytd-watch-fixie",function(){if(WH_===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);WH_=G}G=WH_;return G},{mode:1});_.F3.registerService(_.D7U,yZ);
_.AA();
}catch(e){_._DumpException(e)}
try{
_.yT("xwEKAe");
var bNZ=function(G){G=G.command;var e=_.a(G,_.DC);return{command:G,reelPlayerOverlayRenderer:_.a(e==null?void 0:e.overlay,_.POP),thumbnail:e==null?void 0:e.thumbnail,videoId:e.videoId}},vfj=function(G){G=G.command;
var e=_.a(G,_.xA);return{command:G,reelNonVideoContentRenderer:_.a(e==null?void 0:e.renderer,_.UP)}},w2$=function(G){return G.entries?G.entries.map(function(e){return _.a(e==null?void 0:e.command,_.DC)?bNZ(e):vfj(e)}):[]},$K$=function(G){return G.prevEntries?G.prevEntries.map(function(e){return _.a(e==null?void 0:e.command,_.DC)?bNZ(e):vfj(e)}):[]},Swy=function(G){return _.Vx(G)?G.getAttribute("jsname")==="coFSxe":!1},qwj=function(G,e){e.id||(e.id="ow"+_.zS(e));
G.setAttribute("jsowner",e.id);G.__owner=e;var r=_.B2(e,Swy);r&&(_.pic.has(r)||_.pic.set(r,[]),_.pic.get(r).push(G));(r=_.IzC.get(e))||_.IzC.set(e,r=[]);r.includes(G)||r.push(G);e.setAttribute("__IS_OWNER",!0)},tzj=function(){var G=_.Rz_(1);
G=_.D2(G,_.kcN);if(!(_.lG_(G)||G[_.gyq]&&!G.__hasBeenSet))return G.value},gfw=function(G){return(G=_.OGF(G))?_.Vpy(G):0},ldq=function(G){return G.shorts.isSmallScreenSqueezeback},RGZ=function(G){return G.shorts.isPlaybackStarted},jP2=function(G){var e=_.hy();
if(e.getFlag(202))e=e.getFlag(201);else{var r;e=(G==null?void 0:(r=G.config)==null?void 0:r.settingOnByDefault)!==void 0?G.config.settingOnByDefault:!_.R("web_shorts_cinematics_disabled_by_default")}return e},adv=function(G){var e=_.hy();
_.Tn(0,201,G);_.Tn(0,202,!0);e.save()},fdq=function(G){var e=_.Rz_(2),r=new Set;
_.yD(function(){return void r.forEach(function(Z){return void Z()})});
return function(Z){var O=_.Ty(e);try{var M=X2z(Kd$(G),Z);r.add(M);return function(){M();r.delete(M)}}finally{_.Ty(O)}}},kVy=function(G){var e=G.children;
var r=G.root;_.YZ(function(){var Z=fdq(r)(e);_.yD(Z)});
return document.createTextNode("")},X2z=function(G,e){var r=HNw(G);
(G=tzj())&&qwj(r,G);_.ao.setUp();e=_.h(_.AIa(e,!0));G=e.next().value;var Z=e.next().value;e=_.h(G);for(G=e.next();!G.done;G=e.next())r.appendChild(G.value);_.ao.log(r);_.ao.tearDown();return function(){Z();r.remove()}},Kd$=function(G){if(typeof G==="string")return G=document.querySelector(G),_.wxY(G),G;
if(_.q0(G)&&G.nodeType===Node.ELEMENT_NODE)return G;if(!G.__value&&!G.__optional){var e=_.Rg$.USE_ELEMENT_NOT_ASSIGNED(G.__expectedTagName);G.__hasErrored=!0;throw e;}return G.value},HNw=function(G){var e=document.createElementNS(G.namespaceURI,G.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return G.appendChild(e)},dKq=function(G,e,r,Z){G=e-G;
r=Z-r;return Math.sqrt(G*G+r*r)},of_=function(G){var e=G>>8&255,r=G&255;
return"#"+(G>>16&255).toString(16).padStart(2,"0")+e.toString(16).padStart(2,"0")+r.toString(16).padStart(2,"0")},sP$=function(G,e){G&&_.v_().resolve(_.$1).resolveCommand(G,{forceClickLogging:!0,
form:{element:e}})},QP_=function(){return _.v_().resolve(_.gu).dismissedIndices},Id$=function(G,e){var r,Z,O,M,T,E,b,w,q;
return _.D(function(t){if(t.nextAddress==1){r=_.v_().resolve(_.Sp);M=(Z=r)==null?void 0:(O=Z.reelWatchEndpointMap)==null?void 0:O.reelWatchSequence;E=(T=G.innertubeTransportService)!=null?T:_.v_().resolve(_.v1);if(!M)return t.jumpTo(2);b=M();return(w=b.JSC$14171_getRequest(e,{}))?t.yield(_.LE(E,w.innerTubeRequest,w.input,e.clickTrackingParams,w.config),4):t.jumpTo(2)}return t.nextAddress!=2?(q=t.yieldResult,t.return(q)):t.return(void 0)})},p2t=function(G,e,r){var Z,O=(Z=_.a(e,_.DC))==null?void 0:
Z.videoId;
Z=!(!O||!G.find(function(T){return T.videoId&&T.videoId===O}));
var M=!!G.find(function(T){var E;return((E=_.a(T.command,_.DC))==null?void 0:E.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"});
G=!!G.find(function(T){return!!_.a(T.command,_.xA)&&!!_.a(e,_.xA)&&T.command===e});
return r?Z||G:Z||M||G},CLZ=function(G,e,r){var Z=[].concat(_.mY(G)),O=0,M=r?w2$(r):[];
r=r?$K$(r):[];e&&!p2t(G,e.command)&&Z.unshift(e);M.length&&!p2t(G,M[0].command,!0)&&Z.push.apply(Z,_.mY(M));e&&r.length&&!p2t(G,r[0].command)&&(Z.unshift.apply(Z,_.mY(r.reverse())),O=r.length);return{newContentList:Z,indexChange:O}},u$z=function(G){return _.UK({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:G}})},nfz=function(G){return _.UK({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:G}})},mKX=function(G){return _.UK({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:G}})};var ls=function(G,e){if(G instanceof ls)this.array_=G.array_;else{var r;if(r=_.FN(G))a:{for(var Z=r=0;Z<G.length;Z++){if(!_.FN(G[Z])||r>0&&G[Z].length!=r){r=!1;break a}for(var O=0;O<G[Z].length;O++)if(typeof G[Z][O]!=="number"){r=!1;break a}r==0&&(r=G[Z].length)}r=r!=0}if(r)this.array_=_.Ai(G);else if(G instanceof _.kf)this.array_=cxX(G.height,G.width);else if(typeof G==="number"&&typeof e==="number"&&G>0&&e>0)this.array_=cxX(G,e);else throw Error("Po");}this.size_=new _.kf(this.array_[0].length,
this.array_.length)},YwZ=function(G,e,r){for(var Z=0;Z<G.getSize().height;Z++)for(var O=0;O<G.getSize().width;O++)e.call(r,G.array_[Z][O],Z,O,G)},yxy=function(G,e){var r=new ls(G.getSize());
YwZ(G,function(Z,O,M){r.array_[O][M]=e.call(void 0,Z,O,M,G)});
return r},cxX=function(G,e){for(var r=[],Z=0;Z<G;Z++){r[Z]=[];
for(var O=0;O<e;O++)r[Z][O]=0}return r};
ls.prototype.add=function(G){if(!_.mgy(this.size_,G.getSize()))throw Error("Qo");return yxy(this,function(e,r,Z){return e+G.array_[r][Z]})};
ls.prototype.equals=function(G,e){if(this.size_.width!=G.size_.width||this.size_.height!=G.size_.height)return!1;e=e||0;for(var r=0;r<this.size_.height;r++)for(var Z=0;Z<this.size_.width;Z++)if(!_.n5t(this.array_[r][Z],G.array_[r][Z],e))return!1;return!0};
ls.prototype.getSize=function(){return this.size_};
var Rj=function(G,e,r){return e>=0&&e<G.size_.height&&r>=0&&r<G.size_.width?G.array_[e][r]:null};
ls.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var AxZ=function(G,e,r,Z){if(!(e>=0&&e<G.size_.height&&r>=0&&r<G.size_.width))throw Error("Ro`"+e+"`"+r+"`"+G.size_.height+"`"+G.size_.width);G.array_[e][r]=Z};
ls.prototype.multiply=function(G){if(G instanceof ls){if(this.size_.width!=G.getSize().height)throw Error("So");return Fdw(this,G)}if(typeof G==="number")return Jxq(this,G);throw Error("To");};
var Fdw=function(G,e){var r=new ls(G.size_.height,e.getSize().width);YwZ(r,function(Z,O,M){for(var T=Z=0;T<this.size_.width;T++)Z+=Rj(this,O,T)*Rj(e,T,M);AxZ(r,O,M,Z)},G);
return r},Jxq=function(G,e){return yxy(G,function(r){return r*e})};var BSv=new _.L9("inlineSurveyRenderer");var xKv=new _.L9("interstitialViewModel");var PLz=new _.L9("reelNavigateCommand");var UKz=new _.L9("reelNonVideoContentDismissalCommand");var zGw=new _.L9("showReelsCommentsOverlayCommand");var Wdt=new _.L9("videoInteractionPopUpRenderer");var NSX=new _.L9("pollChoiceData");var Ldz;var GXZ;var e$z;var j3=function(){var G=_.m.apply(this,arguments)||this;G.ctaVisualElement=null;G.currentCsn=null;return G};
_.K(j3,_.m);_.V=j3.prototype;_.V.onDataChanged=function(){this.maybeLogShows()};
_.V.computeButtonShape=function(){var G=this;if(this.data)return{buttonText:_.mG(this.data.text),state:"active",onTap:function(){G.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.V.maybeCreateCtaVe=function(){var G;if((G=this.data)!=null&&G.badgeInteractionLogging){var e;if(G=(e=this.data.badgeInteractionLogging)==null?void 0:e.trackingParams)this.ctaVisualElement=_.b1(G)}};
_.V.maybeLogClicks=function(){this.currentCsn=_.l4(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.n_(this.currentCsn,this.ctaVisualElement)};
_.V.maybeLogShows=function(){this.currentCsn=_.l4(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.C_(this.currentCsn,[this.ctaVisualElement])};
_.V.onTap=function(){var G;if((G=this.data)!=null&&G.onClickCommand){var e;this.ytComponentBehavior.resolveCommand((e=this.data)==null?void 0:e.onClickCommand);this.maybeLogClicks()}};
j3.prototype.onDataChanged=j3.prototype.onDataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],j3.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],j3.prototype,"ytComponentBehavior",void 0);_.B([_.n({}),_.x("design:type",Object)],j3.prototype,"data",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],j3.prototype,"onDataChanged",null);
_.B([_.c({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],j3);
_.A(j3,"ytd-shopping-overlay-badge-renderer",function(){if(e$z!==void 0)return e$z;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return e$z=G},{mode:1});_.J_(_.WVW,"reel-sound-metadata-view-model",{props:{data:_.yb,overlayDensity:_.yb}});_.J_(_.xa2,"player-disclosure-view-model",{props:{data:_.N6,extractOverlay:_.N6}});_.J_(_.FJl,"pivot-button-view-model",{props:{data:_.yb,className:_.yb}});_.J_(_.JfC,"reel-action-bar-view-model",{props:{data:_.N6,buttonShapeOverrideables:_.N6}});_.J_(_.NLd,"yt-reel-metapanel-view-model",{props:{data:_.N6,overlayDensity:_.N6,extractOverlay:_.N6}});var rAq=_.y(function(G){var e=G.children;var r=G.region;G=_.h(_.XQ(void 0,void 0,"flxBBc"));var Z=G.next().value,O=G.next().value;G=_.h(_.XQ("0px",void 0,"IAR7k"));var M=G.next().value,T=G.next().value;G=_.h(_.XQ("0px",void 0,"QV4iWb"));var E=G.next().value,b=G.next().value;G=_.h(_.XQ(0,void 0,"Q2oK6b"));var w=G.next().value,q=G.next().value;G=_.h(_.XQ(0,void 0,"hYKowe"));var t=G.next().value,g=G.next().value,l=function(){var P=Z();if(P){var F;if(((F=_.eV())==null?void 0:F.getPlayerState())!==-1){P.style.display=
"inherit";var J;(J=_.eV())==null||J.removeEventListener("onStateChange",l)}else P.style.display="none";H()}},X=function(){var P;
return(P=_.Ff())==null?void 0:P.querySelector("video")},H=function(){var P=X();
if(P){q(P.getBoundingClientRect().width);g(P.getBoundingClientRect().height);var F;T((P==null?void 0:(F=P.style)==null?void 0:F.left)||"0px");var J;b((P==null?void 0:(J=P.style)==null?void 0:J.top)||"0px")}};
_.Y8(function(){var P=Z();if(P){var F,J,U;if(((F=_.eV())==null?void 0:F.getPlayerState())===-1&&Math.round(((U=(J=_.eV())==null?void 0:J.getVideoAspectRatio())!=null?U:0)*100)!==Math.round(w()/t()*100)){P.style.display="none";var e$,Dq;g(w()/((Dq=(e$=_.eV())==null?void 0:e$.getVideoAspectRatio())!=null?Dq:1))}}},"N29KDe");
var I=function(){H()},C;
_.YZ(function(){H();var P;if(!(r==null?0:(P=r())==null?0:P.transformationMatrix))throw Error("Xo");var F;(F=_.eV())==null||F.addEventListener("onStateChange",l);if(window.ResizeObserver){if(P=X())C=new ResizeObserver(I),C.observe(P)}else window.addEventListener("resize",H);_.yD(function(){var J;(J=_.eV())==null||J.removeEventListener("onStateChange",l);C?C.disconnect():window.removeEventListener("resize",H)})});
var u=function(){var P,F,J=(F=r==null?void 0:(P=r())==null?void 0:P.transformationMatrix)!=null?F:[];P=w();F=t();for(var U=[],e$=0,Dq=-1;e$<J.length;e$++)e$%3===0&&(Dq++,U[Dq]=[]),U[Dq].push(J[e$]);J=new ls(U);U=new ls([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);U=J.multiply(U);J=new ls([[0,0],[0,0],[0,0],[0,0]]);for(e$=0;e$<U.getSize().width;e$++){Dq=Rj(U,0,e$);var bF=Rj(U,1,e$);if(Dq===null||bF===null)throw Error("Wo`"+(e$+1).toString());AxZ(J,e$,0,Dq*P);AxZ(J,e$,1,bF*F)}P=Rj(J,0,0);e$=Rj(J,1,0);F=Rj(J,0,
1);Dq=Rj(J,1,1);if(P===null||e$===null||F===null||Dq===null)throw Error("Uo");U=dKq(P,e$,F,Dq);bF=Rj(J,3,0);J=Rj(J,3,1);if(bF===null||J===null)throw Error("Vo");J=dKq(P,bF,F,J);Dq=(Number((Dq*-1).toFixed(2))-Number((F*-1).toFixed(2)))/(Number(e$.toFixed(2))-Number(P.toFixed(2)));bF=Math.atan(Dq)*180/Math.PI;e$=Dq===Number.POSITIVE_INFINITY?-90:Dq===Number.NEGATIVE_INFINITY?90:Object.is(Dq,-0)?180:Dq===0?0:Dq>0?bF*-1:P<e$?bF*-1:Math.abs(bF)+180;return"left:calc("+P+"px + "+M()+"); top:calc("+(F+"px + "+
E()+"); width:")+(U+"px; height:")+(J+"px; transform:rotate(")+(e$+"deg);\n        --sticker-width:"+U+";")};
return _.v(kVy,{root:"#sticker-layer"},function(){return _.v("yt-overlay-sticker",{el:_.cQ(O),style:u,class:"ytOverlayStickerHost"},e)})},"dn");var ZBt=_.y(function(G){function e(){var l,X,H,I,C=(X=_.a((l=b())==null?void 0:l.command,_.R9P))==null?void 0:(H=X.item)==null?void 0:(I=H.notificationTextRenderer)==null?void 0:I.successResponseText;if(C)l=_.Ah(C),_.Pi(Z.value,"yt-open-popup-action",[l,Z.value]);else if(w())sP$(w(),Z.value);else{var u;sP$((u=b())==null?void 0:u.command,Z.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var r=G.data;var Z=_.hT("svg"),O=_.h(_.XQ(!1,void 0,"e9onLe"));G=O.next().value;var M=O.next().value,T=_.h(_.XQ(!1,void 0,"ptnIQd"));O=T.next().value;var E=T.next().value,b=function(){var l;return _.a((l=r())==null?void 0:l.popUp,Wdt)},w=function(){var l;
return(l=r())==null?void 0:l.command},q=function(){return _.a(w(),_.wBF)!==void 0};
T=_.ev(function(){e();return!1});
var t={},g={};return _.v("svg",{"on:mouseover":_.ev(function(){q()&&M(!0);E(!0);return!1}),
"on:mouseout":_.ev(function(){M(!1);E(!1);return!1}),
"on:keydown":_.ev(function(l){l.key==="Enter"&&e();return!1}),
"on:focus":_.ev(function(){q()&&M(!0);return!1}),
"on:blur":_.ev(function(){q()&&M(!1);return!1}),
el:Z,tabindex:0,"aria-label":function(){var l;return(l=r())==null?void 0:l.a11yString},
id:"player-overlay-video-interaction-svg",class:_.LC("ytPlayerOverlayInteractionInteractionsSvg",(t.ytPlayerOverlayInteractionInteractionsSvgHover=G,t),(g.ytPlayerOverlayInteractionInteractionsSvgHideOutline=O,g)),role:"button","on:click":T})},"gn");_.J_(_.y(function(G){var e=G.data;_.YZ(function(){var r;if((r=e())==null?0:r.trackingParams){var Z;_.h_().graftServerVe((Z=e().trackingParams)!=null?Z:"")}});
return _.v("yt-player-overlay-interaction",null,_.v(rAq,{region:function(){var r,Z;return(r=e())==null?void 0:(Z=r.regions)==null?void 0:Z[0]}},_.v(ZBt,Object.assign({},G))))},"fn"),"yt-player-overlay-interaction",{props:{data:_.N6}});var OBX=_.y(function(G){var e=G.data;var r=G.index;var Z=G.selectedChoice;var O=function(){var M;return _.a((M=e())==null?void 0:M.renderer,NSX)};
G={};return _.v("yt-overlay-poll-sticker-choice",{class:_.LC("ytOverlayPollStickerChoiceHost"),style:_.Mk({"--displayed-percentage":function(){var M,T,E,b;return""+Math.ceil(Number((Z==null?void 0:Z())===r()?(M=O())==null?void 0:(T=M.selected)==null?void 0:T.progressBarWidth:(E=O())==null?void 0:(b=E.unselected)==null?void 0:b.progressBarWidth)*100)}})},_.v("div",{class:_.LC("ytOverlayPollStickerChoicePollChoice",(G.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(Z==null?void 0:Z())!==
void 0},G.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(Z==null?void 0:Z())===r()},G))},_.v("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var M;
return((M=O())==null?void 0:M.text)||""}),_.v("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(Z==null?void 0:Z())==="undefined")var M="";
else{var T,E,b,w;M=(Z==null?void 0:Z())===r()?(T=O())==null?void 0:(E=T.selected)==null?void 0:E.votePercentage:(b=O())==null?void 0:(w=b.unselected)==null?void 0:w.votePercentage}return M})))},"hn");var MKt=_.y(function(G){var e=G.data;G=_.h(_.XQ(void 0,void 0,"gY4ktc"));var r=G.next().value,Z=G.next().value;return _.v("yt-overlay-poll-sticker",null,_.v(rAq,{region:function(){var O,M;return(O=e())==null?void 0:(M=O.region)==null?void 0:M.interactionRegion}},_.v("div",{class:_.LC("ytOverlayPollStickerHost"),
style:_.Mk({"--original-height":function(){var O;return""+(((O=e())==null?void 0:O.mainBodyHeight)||1)},
"--original-width":function(){var O;return""+(((O=e())==null?void 0:O.mainBodyWidth)||1)},
"--scaled-width":function(){var O;return""+(((O=e())==null?void 0:O.mainBodyWidth)||1)},
"--primary-surface":function(){var O,M;return of_(((O=e())==null?void 0:(M=O.theme)==null?void 0:M.primarySurface)||0)},
"--raised-surface":function(){var O,M;return of_(((O=e())==null?void 0:(M=O.theme)==null?void 0:M.raisedSurface)||0)},
"--secondary-surface":function(){var O,M;return of_(((O=e())==null?void 0:(M=O.theme)==null?void 0:M.secondarySurface)||0)},
"--primary-text":function(){var O,M;return of_(((O=e())==null?void 0:(M=O.theme)==null?void 0:M.primaryText)||0)},
"--secondary-text":function(){var O,M;return of_(((O=e())==null?void 0:(M=O.theme)==null?void 0:M.secondaryText)||0)}})},_.v("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return e().questionText}," "),_.v(_.u6,{each:function(){return e().pollChoiceConfigs||[]}},function(O,M){return _.v("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.ev(function(){Z(r()===M()?void 0:M())})},_.v(OBX,{data:O,
index:M,selectedChoice:r}))}),_.v("div",{class:"ytOverlayPollStickerVoteCount"},function(){return typeof(r==null?void 0:r())==="undefined"?e().preVoteCountText:e().postVoteCountText}))))},"jn");_.J_(_.y(function(G){var e=G.data;return _.v("yt-stickers-layer",null,_.v(_.u6,{each:function(){var r;return((r=e())==null?void 0:r.stickers)||[]}},function(r){return _.v(_.S,{cond:function(){return _.R("enable_shorts_poll_stickers_web")},
then:function(){return _.v(_.S,{cond:function(){return r==null?void 0:r.pollSticker},
then:function(Z){return _.v(MKt,{data:Z})}})}})}))},"kn"),"yt-stickers-layer",{props:{data:_.N6}});var aj=function(){var G=_.m.apply(this,arguments)||this;G.showScrubber=!1;G.isWatchWhileMode=!1;G.enableAnchoredPanel=_.R("desktop_shorts_v2_anchored_panel");G.enablePollStickers=_.R("enable_shorts_poll_stickers_web");G.enableShortsModernControls=_.R("web_shorts_modern_controls");G.anchoredPanelActive=!1;G.enableLivingroomLayout=_.R("reels_enable_livingroom_layout");G.enablePlayerMetadataContainer=_.R("reels_web_enable_metadata_container");G.enableSqueezebackPanels=_.R("web_shorts_enable_squeezeback_panels");
G.useAspectRatio=_.R("web_use_aspect_ratio");G.isSqueezebackActive=!1;G.smallScreenSqueezeback=!1;G.isPlayerStarted=!1;G.overlayDensity=0;G.extractOverlay=!1;G.extractActionBar=!1;G.isOverlay=!1;G.isImmersive=!1;G.isImmersiveHorizontal=!1;G.isFullscreen=!1;G.onWindowResized=function(){var e;G.set("isImmersive",((e=window.getComputedStyle(G.hostElement))==null?void 0:e.getPropertyValue("--immersive-mode-on"))==="1");G.set("isImmersiveHorizontal",G.isImmersive&&G.enableLivingroomLayout&&!G.isWatchWhileMode)};
return G};
_.K(aj,_.m);_.V=aj.prototype;_.V.updateIsOverlay=function(G){this.isOverlay=G.detail.value};
_.V.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.V.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.V.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.V.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.V.onOverlayDensityChange=function(){var G=_.z1(this.hostElement).querySelector("ytd-info-panel-container-renderer");G&&(G.set("extractOverlay",this.extractOverlay),G.set("roundedContainer",this.extractOverlay))};
_.V.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.V.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.V.ready=function(){(_.R("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"))&&(!_.R("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.td("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.td("reels_action_justified_content")||"flex-start")};
_.V.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}}};
_.V.setFakeLoadingButtons=function(){_.R("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.OK("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.OK("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.OK("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.OK("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.OK("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()};
_.V.setEmptyOverlayMetadata=function(){_.R("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}))};
_.iY.Object.defineProperties(aj.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.infoPanel)}}});
aj.prototype.onOverlayDensityChange=aj.prototype.onOverlayDensityChange;aj.prototype.onIsActiveChanged=aj.prototype.onIsActiveChanged;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],aj.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],aj.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],aj.prototype,"ytdReduxBehavior",void 0);
_.B([_.k(_.UN.YtdGuideStateAwareBehavior),_.x("design:type",Object)],aj.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],aj.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Boolean)],aj.prototype,"isActive",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],aj.prototype,"hidden",void 0);_.B([_.n({value:!0}),_.x("design:type",Boolean)],aj.prototype,"useShortsIcon",void 0);
_.B([_.n({value:"left"}),_.x("design:type",String)],aj.prototype,"buttonTooltipPosition",void 0);_.B([_.n({value:_.R("reels_enable_livingroom_layout")?"top":"left"}),_.x("design:type",String)],aj.prototype,"likeButtonTooltipPosition",void 0);_.B([_.n({value:"none"}),_.x("design:type",String)],aj.prototype,"textTransform",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],aj.prototype,"showScrubber",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],aj.prototype,"isWatchWhileMode",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("data.infoPanel"),_.x("design:type",Object),_.x("design:paramtypes",[])],aj.prototype,"hasInfoPanel",null);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],aj.prototype,"enableAnchoredPanel",void 0);_.B([_.n(),_.x("design:type",Object)],aj.prototype,"enablePollStickers",void 0);
_.B([_.n(),_.x("design:type",Object)],aj.prototype,"enableShortsModernControls",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],aj.prototype,"anchoredPanelActive",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],aj.prototype,"enableLivingroomLayout",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],aj.prototype,"enablePlayerMetadataContainer",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],aj.prototype,"enableSqueezebackPanels",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],aj.prototype,"useAspectRatio",void 0);_.B([_.n({selector:_.WqF,reflectToAttribute:!0}),_.x("design:type",Object)],aj.prototype,"isSqueezebackActive",void 0);_.B([_.n({selector:ldq,reflectToAttribute:!0}),_.x("design:type",Object)],aj.prototype,"smallScreenSqueezeback",void 0);
_.B([_.n({selector:RGZ}),_.x("design:type",Object)],aj.prototype,"isPlayerStarted",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],aj.prototype,"overlayDensity",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],aj.prototype,"extractOverlay",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],aj.prototype,"extractActionBar",void 0);_.B([_.n(),_.x("design:type",Object)],aj.prototype,"isOverlay",void 0);
_.B([_.n(),_.x("design:type",Object)],aj.prototype,"isImmersive",void 0);_.B([_.n(),_.x("design:type",Object)],aj.prototype,"isImmersiveHorizontal",void 0);_.B([_.n({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.x("design:type",Boolean)],aj.prototype,"isShortsImmersive",void 0);_.B([_.n({computed:"computeButtonOverride(extractActionBar)"}),_.x("design:type",Object)],aj.prototype,"buttonOverride",void 0);
_.B([_.n({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.x("design:type",Object)],aj.prototype,"actionBarButtonOverride",void 0);_.B([_.n({selector:_.JI,reflectToAttribute:!0}),_.x("design:type",Object)],aj.prototype,"isFullscreen",void 0);_.B([_.Me("isActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aj.prototype,"onIsActiveChanged",null);
_.B([_.Me("extractOverlay"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aj.prototype,"onOverlayDensityChange",null);_.B([_.c({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],aj);
_.A(aj,"ytd-reel-player-overlay-renderer",function(){if(GXZ!==void 0)return GXZ;var G=document.createElement("template");_.f(G,'\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="[[!data.videoInteractions.elementsInteractionsLayer]]" 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"> </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enablePollStickers &amp;&amp; data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <yt-stickers-layer data="[[data.videoInteractions.elementsInteractionsLayer.stickersLayerRenderer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      </yt-stickers-layer>\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]]" extract-overlay="[[extractOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableShortsModernControls]]" 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>\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return GXZ=G},{mode:1});var VKz;var Xe=function(){var G=_.m.apply(this,arguments)||this;G.videoDuration=0;G.playedTime=0;G.isActive=!1;G.JSC$22663_playerEvents=new Map;return G};
_.K(Xe,_.m);_.V=Xe.prototype;_.V.created=function(){this.JSC$22663_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22663_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.V.attached=function(){this.getPlayerAndInitializeListeners()};
_.V.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22663_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.ZQ(this,this.onPageChanged))};
_.V.getPlayerAndInitializeListeners=function(){var G=this,e;return _.D(function(r){if(r.nextAddress==1)return e=_.Ff(),e?r.yield(e.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.ZQ(G,G.onPageChanged)),r.jumpTo(0));G.player=r.yieldResult;G.initializePlayerListeners();_.HL(r)})};
_.V.onPageChanged=function(G){var e=this;return _.D(function(r){if(r.nextAddress==1)return G.detail.newPageType!=="ytd-shorts"?r.return():r.yield(_.Je().getPlayerPromise(),2);e.player=r.yieldResult;e.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.ZQ(e,e.onPageChanged));_.HL(r)})};
_.V.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22663_playerEvents)};
_.V.onVideoDataChange=function(G){var e=this;return _.D(function(r){if(!e.player||G.type!=="newdata")return r.return();e.videoDuration=_.R("web_shorts_use_progress_state_for_gapless")?e.player.getProgressState(G.playertype).seekableEnd:e.player.getDuration(G.playertype);e.playedTime=0;_.HL(r)})};
_.V.onVideoProgress=function(G){var e=this,r,Z;return _.D(function(O){if(!e.player)return O.return();r=e.player.getPresentingPlayerType();Z=e.player.getPlayerState();e.videoDuration=_.R("web_shorts_use_progress_state_for_gapless")?e.player.getProgressState(r).seekableEnd:e.player.getDuration(r);e.playedTime=Z===0?e.videoDuration:G;_.HL(O)})};
_.V.getPercentPlayed=function(G,e){return G?_.j0(e/G,0,1):0};
_.iY.Object.defineProperties(Xe.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 G="";return G=this.videoDuration&&this.playedTime?G+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):G+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Xe.prototype,"componentBehavior",void 0);_.B([_.k(_.GJ.YtPlayerListenerBehavior),_.x("design:type",_.ew)],Xe.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Xe.prototype,"player",void 0);_.B([_.n(),_.x("design:type",Object)],Xe.prototype,"videoDuration",void 0);_.B([_.n(),_.x("design:type",Object)],Xe.prototype,"playedTime",void 0);_.B([_.n(),_.x("design:type",Object)],Xe.prototype,"isActive",void 0);
_.B([_.d("videoDuration","playedTime"),_.x("design:type",Number),_.x("design:paramtypes",[])],Xe.prototype,"percentPlayed",null);_.B([_.d("videoDuration","playedTime"),_.x("design:type",Object),_.x("design:paramtypes",[])],Xe.prototype,"percentPlayedStyle",null);_.B([_.d("videoDuration","isActive"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Xe.prototype,"hideProgressBar",null);
_.A(Xe,"ytd-progress-bar-line",function(){if(VKz===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);VKz=G}G=VKz;return G},{mode:_.Px("kevlar_poly_si_batch_j028")?1:2});var h$_;_.J_(_.RsH,"ytm-closed-captioning-button",{props:{captionIconType:_.N6,onClick:_.yb,ariaLabel:_.N6,ariaPressed:_.N6,isOverlay:_.yb,isModern:_.yb}});_.J_(_.BLY,"desktop-shorts-volume-controls",{props:{orientation:_.N6}});var Kn=function(){var G=_.m.apply(this,arguments)||this;G.playerState=null;G.isMuted=!1;G.shortsModernControlsEnabled=_.R("web_shorts_modern_controls");G.volumeControlsOrientationState="horizontal_right";G.isOverlay=!0;G.isAdsOverlay=!1;G.captionIconType=-1;G.ariaLabel="";G.overlayDensity=0;G.JSC$22666_playerEvents=new Map;G.onClosedCaptionsButtonClick=function(){G.player&&_.RJ(G.player)&&(G.player.toggleSubtitles(),G.updateCaptionIconType())};
return G};
_.K(Kn,_.m);_.V=Kn.prototype;_.V.created=function(){this.JSC$22666_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22666_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22666_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.V.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.L1(28662);this.playPauseButtonClientVE=_.L1(36842);this.fullscreenButtonToggleOffClientVE=_.L1(222256);this.fullscreenButtonToggleOnClientVE=_.L1(222257);var G=_.l4(),e=_.go();G&&e&&(_.R("combine_ve_grafts")?(_.Xr(_.h_(),this.muteButtonClientVE,e),_.Xr(_.h_(),this.playPauseButtonClientVE,e)):_.Il(G,e,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.V.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22666_playerEvents),this.player=null)};
_.V.updateCaptionIconType=function(){var G=-1,e=void 0,r=_.OK("CLOSED_CAPTIONS_DISABLED");this.player&&_.RJ(this.player)&&(_.Dx8(this.player)?(e=!0,r=_.OK("CLOSED_CAPTIONS_ON"),G=1):(e=!1,r=_.OK("CLOSED_CAPTIONS_OFF"),G=0));this.captionIconType=G;this.ariaPressedState=e;this.ariaLabel=r};
_.V.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-static-overlay-icon-active-other)"}}};
_.V.getPlayerAndInitializeListeners=function(){var G=this,e;return _.D(function(r){if(r.nextAddress==1)return e=_.Ff(),e?r.yield(e.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.ZQ(G,G.onPageChanged)),r.jumpTo(0));G.player=r.yieldResult;G.initializePlayerListeners();_.HL(r)})};
_.V.onPageChanged=function(G){var e=this;return _.D(function(r){if(r.nextAddress==1)return G.detail.newPageType!=="ytd-shorts"?r.return():r.yield(_.Je().getPlayerPromise(),2);e.player=r.yieldResult;e.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.ZQ(e,e.onPageChanged));_.HL(r)})};
_.V.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22666_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.V.onPlayerStateChange=function(G){this.playerState=G};
_.V.onPlayerVolumeChange=function(G){this.isMuted=G.muted};
_.V.onPlayPauseButtonClick=function(){var G=this,e,r;return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(_.Je().getPlayerPromise(),2);e=Z.yieldResult;(r=_.l4())&&G.playPauseButtonClientVE&&_.n_(r,G.playPauseButtonClientVE);e.getPlayerState()!==1?e.playVideo():e.pauseVideo();_.HL(Z)})};
_.V.computePlayPauseIcon=function(G){return G===2||G===-1||G===5?_.R("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.R("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.R("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.V.computeFullscreenLabel=function(G){return G?_.OK("FULLSCREEN_EXIT_LABEL"):_.OK("FULLSCREEN_ENTER_LABEL")};
_.V.computePlayPauseLabel=function(G){return G===1||G===3?_.OK("PLAYER_LABEL_PAUSE"):_.OK("PLAYER_LABEL_PLAY")};
_.V.onMuteButtonClick=function(){var G=this,e,r;return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(_.Je().getPlayerPromise(),2);e=Z.yieldResult;(r=_.l4())&&G.muteButtonClientVE&&_.n_(r,G.muteButtonClientVE);e.isMuted()?e.unMute(!0):e.mute(!0);_.HL(Z)})};
_.V.computeMuteIcon=function(G){return G?"miniplayer:volume-off":"miniplayer:volume-up"};
_.V.computeMuteLabel=function(G){return G?_.OK("PLAYER_LABEL_UNMUTE"):_.OK("PLAYER_LABEL_MUTE")};
_.V.onFullscreenButtonClick=function(){var G=_.l4();G&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.n_(G,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.n_(G,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.qmW()};
_.iY.Object.defineProperties(Kn.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var G=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(){G.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-background-medium-light)"}:{}}}},
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?_.R("web_shorts_modern_controls")?"player_full_exit_alt":_.R("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.R("web_shorts_modern_controls")?"player_full_enter_alt":_.R("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Kn.prototype,"componentBehavior",void 0);_.B([_.k(_.GJ.YtPlayerListenerBehavior),_.x("design:type",_.ew)],Kn.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],Kn.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Kn.prototype,"player",void 0);_.B([_.n(),_.x("design:type",Object)],Kn.prototype,"playerState",void 0);_.B([_.n(),_.x("design:type",Object)],Kn.prototype,"isMuted",void 0);
_.B([_.n({computed:"computePlayPauseIcon(playerState)"}),_.x("design:type",String)],Kn.prototype,"playPauseIcon",void 0);_.B([_.n({computed:"computeMuteIcon(isMuted)"}),_.x("design:type",String)],Kn.prototype,"muteIcon",void 0);_.B([_.n({selector:_.JI}),_.x("design:type",Boolean)],Kn.prototype,"isFullscreen",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Kn.prototype,"shortsModernControlsEnabled",void 0);
_.B([_.n(),_.x("design:type",Object)],Kn.prototype,"volumeControlsOrientationState",void 0);_.B([_.n(),_.x("design:type",Object)],Kn.prototype,"isOverlay",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Kn.prototype,"isAdsOverlay",void 0);_.B([_.n(),_.x("design:type",Object)],Kn.prototype,"captionIconType",void 0);_.B([_.n(),_.x("design:type",Object)],Kn.prototype,"ariaLabel",void 0);_.B([_.n(),_.x("design:type",Object)],Kn.prototype,"ariaPressedState",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Kn.prototype,"overlayDensity",void 0);_.B([_.n(),_.x("design:type",Object)],Kn.prototype,"data",void 0);_.B([_.n({computed:"computeActionBarButtonOverride()"}),_.x("design:type",Object)],Kn.prototype,"actionBarButtonOverride",void 0);_.B([_.d("playerState"),_.x("design:type",Object),_.x("design:paramtypes",[])],Kn.prototype,"playPauseButtonData",null);
_.B([_.d("isFullscreen"),_.x("design:type",Object),_.x("design:paramtypes",[])],Kn.prototype,"fullscreenButtonData",null);_.B([_.n(),_.x("design:type",Object)],Kn.prototype,"onClosedCaptionsButtonClick",void 0);_.B([_.d("isFullscreen"),_.x("design:type",String),_.x("design:paramtypes",[])],Kn.prototype,"fullscreenIcon",null);
_.A(Kn,"ytd-shorts-player-controls",function(){if(h$_===void 0){var G=document.createElement("template");_.f(G,'\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<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="left-controls" class="style-scope ytd-shorts-player-controls">\n    <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  </div>\n  <div id="right-controls" class="style-scope ytd-shorts-player-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    <div id="menu-button" class="button-container style-scope ytd-shorts-player-controls">\n      <ytd-menu-renderer data="[[data]]" is-overlay="[[isOverlay]]" three-dot-button-override="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-shorts-player-controls"></ytd-menu-renderer>\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  <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);h$_=G}G=h$_;return G},{mode:1});var T1w;_.J_(_.ctY,"yt-interstitial-view-model",{props:{data:_.N6}});var DMz=_.y(function(G){var e=G.data;return _.v("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.v("h1",{class:"reelWatchBreakViewModelHostTitle"},_.v(_.Wh,{text:function(){return e().title}})),_.v("h2",{class:"reelWatchBreakViewModelHostBody"},_.v(_.Wh,{text:function(){return e().body},
isOverlay:!0})),_.v(_.E2,{data:function(){return e().buttons}},{buttonViewModel:function(r,Z){return _.v("div",{class:function(){return Z()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.v(_.wF,{data:r.data}))}}))},"ln");
DMz.idomCompat=!0;_.J_(DMz,"reel-watch-break-view-model",{props:{data:_.N6}});var fn=function(){return _.m.apply(this,arguments)||this};
_.K(fn,_.m);fn.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}}};
_.iY.Object.defineProperties(fn.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var G;return!!_.a((G=this.data)==null?void 0:G.renderer,BSv)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var G;return!!_.a((G=this.data)==null?void 0:G.renderer,xKv)}}});
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],fn.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],fn.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],fn.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],fn.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0}),_.d("data.renderer"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],fn.prototype,"isSurvey",null);_.B([_.n({reflectToAttribute:!0}),_.d("data.renderer"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],fn.prototype,"isInterstitialViewModel",null);_.B([_.c({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],fn);
_.A(fn,"ytd-reel-non-video-content-renderer",function(){if(T1w!==void 0)return T1w;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);
return T1w=G},{mode:_.Px("kevlar_poly_si_batch_j028")?1:2});var EWw;_.J_(_.J08,"desktop-shorts-player-controls",{});var kY=function(){var G=_.m.apply(this,arguments)||this;G.isPlayerPaused=!1;G.isPlayerStarted=!1;G.showPlayerControls=!1;G.showScrubber=!1;G.autoHideJobId=0;G.overlayType=_.td("web_shorts_expanded_overlay_type");G.panelData=void 0;G.isWatchWhileMode=!1;G.hasError=!1;G.panelShowDelayMs=1;G.scrubberComponent={};G.isFullscreen=!1;G.shouldHideOverlay=!1;G.enableAnchoredPanel=_.R("desktop_shorts_v2_anchored_panel");G.enablePersistentAnchoredPanel=_.R("desktop_shorts_v2_persistent_anchored_panel");G.hideWatchWhilePanel=
_.R("web_shorts_hide_watch_while_panel");G.useAspectRatio=_.R("web_use_aspect_ratio");G.enableShortsModernControls=_.R("web_shorts_modern_controls");G.isPersistentPanelActive=!1;G.anchoredPanelActive=!1;G.isShortsPipActive=!1;G.smallScreenSqueezeback=!1;G.enableFlexibleOverlay=_.R("web_enable_flexible_overlay");G.overlayDensity=0;G.extractOverlay=!1;G.extractActionBar=!1;G.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
G.onWindowResized=function(){_.sm(G,"calculateOverlayDensity",function(){G.calculateOverlayDensity()},100)};
return G};
_.K(kY,_.m);_.V=kY.prototype;_.V.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.V.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.V.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var G=_.v_().resolve(_.uB);this.isWatchWhileMode&&_.A0.addJob(function(){G.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.V.handleShowReelsCommentsOverlayCommand=function(G){G=_.a(G,zGw);this.isActive&&(G==null?0:G.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))};
_.V.updateEngagementPanelVisibility=function(G,e){G&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:e?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:G}})};
_.V.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.V.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.v_().resolve(_.gu).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.V.handleWatchWhilePanelScrimClick=function(){var G=_.v_().resolve(_.uB);this.activeWatchWhilePanel&&(G.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.V.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.V.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}}};
_.V.handlePlayerClick=function(G){var e=this,r,Z;if((Z=(r=window).matchMedia)!=null&&Z.call(r,"(any-pointer: coarse)").matches||!G)this.showPlayerControls=!0,_.A0.cancelJob(this.autoHideJobId),this.autoHideJobId=_.IQ(_.A0,function(){e.showPlayerControls=!1},4E3)};
_.V.isFirstReel=function(){return this.index===0};
_.V.handleMouseenter=function(){_.A0.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.V.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.V.handleScrubberEnter=function(){this.showScrubber=!0};
_.V.handleScrubberLeave=function(){this.showScrubber=!1};
_.V.maybeLogNonDefaultAspectRatio=function(){var G;(G=this.data)!=null&&G.thumbnail&&this.isActive&&.5625!==gfw(this.data.thumbnail)&&_.oTp("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.V.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var G=document.querySelector("#shorts-container");if(G){var e=!1,r,Z=this.playerContainer.offsetWidth,O=this.playerContainer.offsetHeight;G=G.offsetWidth/2-Z/2;G>=368?(G=1,e=r=!0):G>=72?(G=0,r=!0):(G=2,r=!1);Z>=600&&O>=840?G=1:window.innerWidth<=599&&(G=2,r=e=!1);this.isPersistentPanelActive&&(G=0,e=!1);this.extractActionBar=r;_.R("web_enable_flexible_overlay")&&(this.overlayDensity=G,this.extractOverlay=
e);var M;(M=this.onOverlayDensityChanged)==null||M.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}}};
_.V.onOverlayDensityChange=function(){var G;(G=this.onOverlayDensityChanged)==null||G.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(G=_.z1(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))G.set("overlayDensity",this.overlayDensity),G.set("extractOverlay",this.extractOverlay),G.set("extractActionBar",this.extractActionBar);if(G=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))G.overlayDensity=this.overlayDensity,G.extractOverlay=
this.extractOverlay,G.extractActionBar=this.extractActionBar};
_.V.isVideoContent=function(G){_.v_().resolve(_.gu);return!!_.a(G,_.DC)};
_.V.isNonVideoContent=function(G){_.v_().resolve(_.gu);return!!_.a(G,_.xA)};
_.V.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.iY.Object.defineProperties(kY.prototype,{isAdsOverlay:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.adsOverlay)}},
enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var G,e;return _.R("web_enable_format_first")||((G=this.data)==null?void 0:G.adsOverlay)&&_.R("web_enable_format_first_ads_only")||((e=this.data)==null?void 0:e.reelPlayerOverlayRenderer)&&_.R("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.R("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var G;return!this.isActive||!this.isPlayerStarted||(G=this.data)!=null&&G.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var G;if(((G=this.data)==null?0:G.command)&&this.isVideoContent(this.data.command)){var e,r;if(((e=this.data)==null?0:e.adsOverlay)&&Object.keys((r=this.data)==null?void 0:r.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var Z,O;if(((Z=this.data)==null?0:Z.reelPlayerOverlayRenderer)&&Object.keys((O=this.data)==null?void 0:O.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
kY.prototype.onOverlayDensityChange=kY.prototype.onOverlayDensityChange;kY.prototype.calculateOverlayDensity=kY.prototype.calculateOverlayDensity;kY.prototype.maybeLogNonDefaultAspectRatio=kY.prototype.maybeLogNonDefaultAspectRatio;kY.prototype.onEngagementPanelsChanged=kY.prototype.onEngagementPanelsChanged;kY.prototype.onScrubberDataChange=kY.prototype.onScrubberDataChange;kY.prototype.updateShouldHideOverlay=kY.prototype.updateShouldHideOverlay;
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],kY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],kY.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.UN.YtdGuideStateAwareBehavior),_.x("design:type",Object)],kY.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],kY.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Number)],kY.prototype,"index",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],kY.prototype,"isActive",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],kY.prototype,"isHiddenInDom",void 0);_.B([_.n(),_.x("design:type",Object)],kY.prototype,"isPlayerPaused",void 0);_.B([_.n({selector:RGZ}),_.x("design:type",Object)],kY.prototype,"isPlayerStarted",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kY.prototype,"showPlayerControls",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kY.prototype,"showScrubber",void 0);_.B([_.n(),_.x("design:type",Object)],kY.prototype,"autoHideJobId",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kY.prototype,"overlayType",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],kY.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],kY.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],kY.prototype,"watchWhileEngagementPanels",void 0);_.B([_.n(),_.x("design:type",Object)],kY.prototype,"panelData",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kY.prototype,"isWatchWhileMode",void 0);_.B([_.n(),_.x("design:type",String)],kY.prototype,"activeWatchWhilePanel",void 0);_.B([_.n(),_.x("design:type",Object)],kY.prototype,"hasError",void 0);_.B([_.n(),_.x("design:type",Object)],kY.prototype,"panelShowDelayMs",void 0);
_.B([_.n(),_.x("design:type",Object)],kY.prototype,"scrubberComponent",void 0);_.B([_.n({selector:_.JI,reflectToAttribute:!0}),_.x("design:type",Object)],kY.prototype,"isFullscreen",void 0);_.B([_.n(),_.x("design:type",Object)],kY.prototype,"shouldHideOverlay",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kY.prototype,"enableAnchoredPanel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kY.prototype,"enablePersistentAnchoredPanel",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kY.prototype,"hideWatchWhilePanel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kY.prototype,"useAspectRatio",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kY.prototype,"enableShortsModernControls",void 0);_.B([_.n({selector:_.WqF,reflectToAttribute:!0}),_.x("design:type",Object)],kY.prototype,"isPersistentPanelActive",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kY.prototype,"anchoredPanelActive",void 0);_.B([_.n({selector:_.Be,reflectToAttribute:!0}),_.x("design:type",Object)],kY.prototype,"isShortsPipActive",void 0);_.B([_.n({selector:ldq,reflectToAttribute:!0}),_.x("design:type",Object)],kY.prototype,"smallScreenSqueezeback",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("data.adsOverlay"),_.x("design:type",Object),_.x("design:paramtypes",[])],kY.prototype,"isAdsOverlay",null);
_.B([_.n({reflectToAttribute:!0}),_.d("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],kY.prototype,"enableFormatFirst",null);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kY.prototype,"enableFlexibleOverlay",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kY.prototype,"overlayDensity",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kY.prototype,"extractOverlay",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],kY.prototype,"extractActionBar",void 0);_.B([_.n(),_.x("design:type",Function)],kY.prototype,"onOverlayDensityChanged",void 0);_.B([_.n(),_.d("isActive","hasError","isPlayerStarted"),_.x("design:type",Object),_.x("design:paramtypes",[])],kY.prototype,"shouldRenderPlayerElements",null);_.B([_.n(),_.d("isActive","isWatchWhileMode"),_.x("design:type",Object),_.x("design:paramtypes",[])],kY.prototype,"watchWhileOrPersistentActive",null);
_.B([_.Me("isActive","hasError","showingExpandedOverlay"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kY.prototype,"updateShouldHideOverlay",null);_.B([_.n({reflectToAttribute:!0}),_.d("isActive","isPlayerStarted","data"),_.x("design:type",Object),_.x("design:paramtypes",[])],kY.prototype,"shouldRenderScrubber",null);
_.B([_.Me("shouldRenderScrubber"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kY.prototype,"onScrubberDataChange",null);_.B([_.d("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],kY.prototype,"overlayComponent",null);_.B([_.Me("watchWhileEngagementPanels"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kY.prototype,"onEngagementPanelsChanged",null);
_.B([_.hs("#player-container"),_.x("design:type",HTMLElement)],kY.prototype,"playerContainer",void 0);_.B([_.hs("#cinematic-container"),_.x("design:type",HTMLElement)],kY.prototype,"cinematicContainer",void 0);_.B([_.Me("isPersistentPanelActive","data.thumbnail"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kY.prototype,"maybeLogNonDefaultAspectRatio",null);
_.B([_.Me("isPersistentPanelActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kY.prototype,"calculateOverlayDensity",null);_.B([_.Me("overlayDensity","extractOverlay","extractActionBar"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kY.prototype,"onOverlayDensityChange",null);_.B([_.c({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],kY);
_.A(kY,"ytd-reel-video-renderer",function(){if(EWw!==void 0)return EWw;var G=document.createElement("template");_.f(G,'\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 data="[[data.reelPlayerOverlayRenderer.menu.menuRenderer]]" disable-upgrade="[[!isActive]]" is-ads-overlay="[[isAdsOverlay]]" 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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return EWw=G},{mode:_.Px("kevlar_poly_si_batch_j028")?1:2});var Hm=function(){var G=_.m.apply(this,arguments)||this;G.isPreviousPageShorts=!1;G.index=0;G.delayedActiveIndex=0;G.playablePreviousIndex=null;G.isPlayerPaused=!1;G.isPlayerStarted=!1;G.intersectionObserverThreshold=.6;G.fitToVisibleBounds=!1;G.pageSubtype="shorts";G.enablePreviousContinuation=_.R("shorts_in_playlists_web");G.shortsPipEnabled=_.R("web_shorts_pip");G.isDark=document.documentElement.hasAttribute("dark");G.shortsViewTransitions=_.R("web_shorts_view_transitions");G.isFullscreen=!1;G.isShortsPipActive=
!1;G.buttonOverride={iconPosition:"icon-only",size:"XL"};G.anchoredPanelActive=!1;G.isActive=!1;G.smallScreenPersistentPanel=!1;G.isPersistentPanelActive=!1;G.smallScreenSqueezeBack=!1;G.enableScrollIntoViewCenter=_.R("web_scroll_into_view_center");G.formatFirst=_.R("web_enable_format_first")||_.R("web_enable_format_first_ads_only")||_.R("web_enable_format_first_organic_only");G.enableFlexibleOverlay=_.R("web_enable_flexible_overlay");G.extractOverlay=!1;G.useAspectRatio=_.R("web_use_aspect_ratio");
G.enableShortsSequenceRefactorUnify=_.R("web_enable_shorts_sequence_refactor_unify");G.isShortsInitialized=!1;G.shortsContentList=[];G.hasDataUpdated=!1;G.playerInPosition=!1;G.hidePreviousButtonImmediately=!1;G.showPreviousButtonImmediately=!1;G.endOfNextContinuation=!1;G.currentPlayerIndex=0;G.nextReelVe=_.L1(56921);G.prevReelVe=_.L1(56922);G.loopToggleOffVe=_.L1(198013);G.loopToggleOnVe=_.L1(198014);G.ambientModeToggleVe=_.L1(227860);G.reelPlayerPausedStateRendererVe=_.L1(141313);G.storedPlaybackSpeed=
null;G.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"};G.onOverlayDensityChanged=function(e,r,Z,O){e=G.getActiveReelVideo(e);G.extractOverlay=!!Z;e==null||e.setAttribute("overlay-density",String(r));Z===void 0||e!=null&&e.toggleAttribute("extract-overlay",
Z);O===void 0||e!=null&&e.toggleAttribute("extract-action-bar",O)};
return G};
_.K(Hm,_.m);_.V=Hm.prototype;_.V.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.V.setShortsContentList=function(){var G=this,e=this.shortsContentList?[].concat(_.mY(this.shortsContentList)):[],r=this.firstShortsData,Z=this.reelWatchSequenceResponse;if(r=this.shortsController==null?void 0:CLZ(e,r,Z!=null?Z:null)){Z=r.newContentList;var O=r.indexChange;if(Z.length!==e.length){var M;(M=this.intersectionObserver)==null||M.disconnect();this.shortsContentList=Z;_.DE(this,function(){O!==0&&(G.index=O,G.scrollToVideoThrottle.fire(G.index,"instant"),G.movePlayerToVideo(G.index));_.A0.addLowPriorityJob(function(){G.observeShorts()})})}}};
_.V.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.V.onResize=function(){var G=_.Yt(),e=G.dispatch,r=this.calculateIsSmallWidth();e.call(G,_.UK({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:r}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.V.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}}};
_.V.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var G=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,e=G,r=0;G<250&&(e=G+this.shortsInnerContainer.clientWidth,r=24);_.eD(this.hostElement,{"--ytd-shorts-header-width":e+"px","--ytd-shorts-top-spacing":r+"px"})}};
_.V.isFirstShorts=function(G){return G&&!this.enableShortsSequenceRefactorUnify?this.index===-G.length:this.index===0};
_.V.isActiveReel=function(G,e,r){r&&(e=this.calculatePrevIndex(e,r));return G===e};
_.V.onFullscreenChange=function(){_.R("web_fullscreen_shorts")&&(this.scrollToVideoThrottle.fire(this.activeIndex,"instant"),this.isFullscreen&&this.isShortsPipActive&&_.v_().resolve(_.fp).close(!0))};
_.V.engagementPanelsChanged=function(){var G;this.watchWhileEngagementPanels=(G=this.data)==null?void 0:G.engagementPanels};
_.V.unregisterPanels=function(){var G=_.v_().resolve(_.uB);if(this.watchWhileEngagementPanels)for(var e=_.h(this.watchWhileEngagementPanels),r=e.next();!r.done;r=e.next()){var Z=r.value,O=void 0,M=void 0;r=(O=Z.engagementPanelSectionListRenderer)==null?void 0:(M=O.identifier)==null?void 0:M.tag;Z=this.getPanelIdentifier(Z.engagementPanelSectionListRenderer);G&&(r&&G.panelMap.delete(r),Z&&_.R("web_shorts_panel_caching_bugfix")&&(O=r=void 0,(O=(r=G).unregisterPanelContent)==null||O.call(r,Z)))}};
_.V.isVideoContent=function(G){return this.isVideoContentCommand(G==null?void 0:G.command)};
_.V.getActiveReelVideo=function(G){return _.z1(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+G+'"]')};
_.V.calculatePrevIndex=function(G,e){return e?G-((e==null?void 0:e.length)||0):-1};
_.V.onKeydown=function(G){var e=_.na(G)||[];if(!_.Smm(e))if(G.code==="ArrowUp")G.preventDefault(),this.handlePrevButtonClick();else if(G.code==="ArrowDown")G.preventDefault(),this.handleNextButtonClick();else if(G.code==="KeyM")this.toggleMuteUnmuteVideo();else if(G.code==="KeyK"||G.code==="Space")this.togglePlayPauseVideo();else if((G.code==="KeyA"||G.code==="ArrowLeft")&&_.R("web_shorts_keyboard_enable_seek_shortcuts")){var r;(r=this.player)==null||r.seekBy(-5)}else if((G.code==="KeyD"||G.code===
"ArrowRight")&&_.R("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var Z;(Z=this.player)==null||Z.seekBy(5)}};
_.V.onServiceRequestCompleted=function(G,e){G=e.data;this.enableShortsSequenceRefactorUnify?G.continuationEndpoint||G.prevContinuationEndpoint?this.reelWatchSequenceResponse=G:this.endOfNextContinuation=!0:G.continuationEndpoint&&G.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:G.entries,continuationEndpoint:G.continuationEndpoint}}),_.R("web_enable_shorts_sequence_cache_fix")&&(this.cachedReelWatchSequenceResponse=
G)):G.prevContinuationEndpoint&&G.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:G.prevEntries,prevContinuationEndpoint:G.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.V.handleEngagementPanelVisibilityChanged=function(G,e){var r=_.v_().resolve(_.uB);if(G&&r){var Z=this.getPanelIdentifier(G);if(e==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==Z){r.hidePanel({identifier:this.activePanel});var O;this.activePanel=((O=G.identifier)==null?void 0:O.tag)||G.panelIdentifier}else this.isPersistentPanelActive=!0,_.Yt().dispatch(u$z(!0)),this.anchoredPanelActive=!0,this.activePanel=Z;else e==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===Z&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Yt().dispatch(u$z(!1)))}};
_.V.handlePanelScrimClick=function(){var G=_.v_().resolve(_.uB);this.activePanel&&(G.hidePanel({identifier:this.activePanel}),_.Yt().dispatch(u$z(!1)))};
_.V.getShortsLoopSetting=function(){var G,e,r,Z,O;return _.D(function(M){switch(M.nextAddress){case 1:return _.R("kevlar_shorts_auto_advance")?M.yield(_.Ye.getInstance(),2):M.return(!0);case 2:return(G=M.yieldResult)?M.yield(G.get("sfvles"),3):M.return(!0);case 3:return r=(e=M.yieldResult)!=null?e:!1,M.yield(G.get("sfvle"),4);case 4:return O=(Z=M.yieldResult)!=null?Z:!0,r?M.return(O):M.return(!0)}})};
_.V.handleSignalActionToggleLoopShortsOff=function(){var G=this,e,r,Z;return _.D(function(O){switch(O.nextAddress){case 1:if(!G.player)return O.return();G.player.setLoopVideo(!1);e=_.h_();_.fE(e,G.loopToggleOffVe);return O.yield(_.Ye.getInstance(),2);case 2:return(r=O.yieldResult)?O.yield(r.set("sfvle",!1),3):O.return();case 3:return O.yield(r.set("sfvles",!0),4);case 4:Z=_.hy(),_.Tn(0,203,!1),_.Tn(0,204,!0),Z.save(),_.HL(O)}})};
_.V.handleSignalActionToggleLoopShortsOn=function(){var G=this,e,r,Z;return _.D(function(O){switch(O.nextAddress){case 1:if(!G.player)return O.return();G.player.setLoopVideo(!0);e=_.h_();_.fE(e,G.loopToggleOnVe);return O.yield(_.Ye.getInstance(),2);case 2:return(r=O.yieldResult)?O.yield(r.set("sfvle",!0),3):O.return();case 3:return O.yield(r.set("sfvles",!0),4);case 4:Z=_.hy(),_.Tn(0,203,!0),_.Tn(0,204,!0),Z.save(),_.HL(O)}})};
_.V.handleSignalActionToggleCinematicShortsOn=function(){adv(!0);var G;(G=this.JSC$22690_cinematicController)==null||_.DKt(G,!0);_.fE(_.h_(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.V.handleSignalActionToggleCinematicShortsOff=function(){adv(!1);var G;(G=this.JSC$22690_cinematicController)==null||_.DKt(G,!1);_.fE(_.h_(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.V.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.V.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.V.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var G=this.overlayContainer.querySelector("#experiment-overlay");G&&_.A0.addLowPriorityJob(function(){G.style.display="unset"},100)}};
_.V.getCurrentShort=function(){if(this.currentEndpoint){var G=this.currentEndpoint;if(this.isNonVideoContentCommand(G)){var e=_.a(G,_.xA);return{reelNonVideoContentRenderer:_.a(e==null?void 0:e.renderer,_.UP),command:G}}if(this.data){var r;e=(r=_.a(this.currentEndpoint,_.DC))==null?void 0:r.thumbnail;var Z;r=(Z=this.data.overlay)==null?void 0:Z.reelPlayerOverlayRenderer;_.v_().resolve(_.gu);G=this.data;var O,M;Z=(O=G.overlay)==null?void 0:(M=O.shortsAdsRenderer)==null?void 0:M.adSlots;if(Z!==void 0)Z.length===
0?(_.s2("Shorts ads returned no ad slots."),G=void 0):(Z.length>1&&_.s2("Shorts ads has more than one ad slots."),G=_.a(Z[0],_.ovP));else{var T,E;G=_.a((T=G.overlay)==null?void 0:(E=T.shortsAdsRenderer)==null?void 0:E.overlay,_.ovP)}T=G;G=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.a(this.currentEndpoint,_.DC),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var b;return{reelPlayerOverlayRenderer:r,thumbnail:e,command:G,adsOverlay:T,
videoId:(b=_.a(this.currentEndpoint,_.DC))==null?void 0:b.videoId}}}};
_.V.created=function(){var G=this;this.scrollToVideoThrottle=new _.Zp(function(e,r){r=r===void 0?"smooth":r;var Z;(Z=G.getActiveReelVideo(e))==null||Z.scrollIntoView({behavior:r,block:"nearest",inline:G.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.shortsController=_.v_().resolve(_.gu);this.maybeCreateIntersectionObserver()};
_.V.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.V.attached=function(){var G=this;_.v_().resolve(_.gu).registerRootElement(this);this.pageScrollElement=_.z1(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.ZQ(this,this.processResetAction));_.R("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){G.maybeCreateIntersectionObserver();G.scrollToVideoThrottle.fire(G.activeIndex,"instant");G.shortsContainer.style.overflowY=
"scroll"}))};
_.V.updateReelWatchSequenceResponse=function(){var G=this,e;if(_.R("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((e=_.a(this.currentEndpoint,_.DC))==null?0:e.sequenceParams)&&!this.reelWatchSequenceResponse){var r;(r=this.shortsController)==null||Id$(r,this.currentEndpoint).then(function(Z){Z&&(G.reelWatchSequenceResponse=Z,_.A0.addLowPriorityJob(function(){G.observeShorts()}))})}};
_.V.calculateSqueezebackPanelSize=function(){var G=this,e=window.innerWidth-456-(window.innerHeight-106)*.5625;_.A0.addLowPriorityJob(function(){e<360?_.Yt().dispatch(nfz(!0)):(G.hostElement.style.setProperty("--anchored-panel-width",Math.min(e,480)+"px"),_.Yt().dispatch(nfz(!1)))})};
_.V.detached=function(){var G=_.v_().resolve(_.gu);G.rootElement=void 0;var e;(e=G.unsubscribeFromStore)==null||e.call(G);G.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.ZQ(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.V.onResizeFinished=function(G,e){var r=this,Z=new ResizeObserver(function(){r.shortsContainer.style.overflowY="hidden";_.A0.addLowPriorityJob(function(){e()},100)});
Z.observe(G);return Z};
_.V.resetDocumentScrollTop=function(){var G,e;if((G=document)==null?0:(e=G.scrollingElement)==null?0:e.scrollTop)document.scrollingElement.scrollTop=0};
_.V.loadPage_=function(G){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),G){var r;!_.R("web_enable_delay_shorts_sequence_call")&&((r=_.a(this.currentEndpoint,_.DC))==null?0:r.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=G;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){e.isPlayerStarted&&(e.handleOnPlaybackCommand(),e.afterPlayerStarted=function(){})};
this.registerPanel(G)}};
_.V.afterPlayerStarted=function(){};
_.V.handleOnPlaybackCommand=function(){if(_.R("web_shorts_comment_stickers")&&this.isPlayerStarted){var G,e=(G=_.a(this.currentEndpoint,_.DC))==null?void 0:G.onPlaybackCommand;e&&this.ytComponentBehavior.resolveCommand(e)}};
_.V.maybeCreateIntersectionObserver=function(){var G=this,e=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==e){this.intersectionObserverThreshold=e;var r={rootMargin:"0px",threshold:e},Z;(Z=this.intersectionObserver)==null||Z.disconnect();this.intersectionObserver=new IntersectionObserver(function(O){O=_.h(O);for(var M=O.next();!M.done;M=O.next())if(M=M.value,M.intersectionRatio>e){M=Number(M.target.id);if(isNaN(M))break;if(M===G.index)break;
_.x8p();G.loadVideo(M);_.f_("r_vtc")}},r);
this.enableShortsSequenceRefactorUnify||this.observeShorts()}};
_.V.observeShorts=function(){var G=[].concat(_.mY(_.z1(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));G=_.h(G);for(var e=G.next();!e.done;e=G.next()){e=e.value;var r=void 0;(r=this.intersectionObserver)==null||r.observe(e)}};
_.V.initCsi=function(){_.$Bt("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var G={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,r;if((e=this.playerData)==null?0:(r=e.cacheMetadata)==null?0:r.isCacheHit)G.isCacheHit=!0;var Z;if(e=(Z=_.a(this.currentEndpoint,_.DC))==null?void 0:
Z.prefetchTaskId)G.prefetchInfo={taskId:e};_.gJ(G)};
_.V.isAd=function(){var G,e;return!!((G=_.a(this.currentEndpoint,_.DC))==null?0:(e=G.adClientParams)==null?0:e.isAd)};
_.V.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.V.getPlayerContainer=function(){var G;return(G=_.z1(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:G.playerContainer};
_.V.onPlayerStateChange=function(G){var e=this;this.isPlayerPaused=G===2;G!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?G===1&&this.index===0&&(this.isPlayerStarted||_.Yt().dispatch(mKX(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Yt().dispatch(mKX(!0)));this.player&&!this.player.getLoopVideo()&&_.A0.addLowPriorityJob(function(){e.getShortsLoopSetting().then(function(r){var Z;(Z=e.player)==null||Z.setLoopVideo(r)})});
this.isPlayerPaused&&_.R("web_shorts_paused_state_logging")&&_.C_(_.l4(),[this.reelPlayerPausedStateRendererVe])};
_.V.isShortPlayable=function(){if(_.R("kevlar_playable_short_killswitch"))return!0;var G;return(G=this.playerData)!=null&&G.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.V.setNormalPlaybackSpeed=function(){var G=this,e,r;return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(G.getPlayer().getPlayerPromise(),2);e=Z.yieldResult;r=e.getPlaybackRate();r!==1&&(G.storedPlaybackSpeed=r,e.setPlaybackRate(1));_.HL(Z)})};
_.V.restorePlaybackSpeed=function(){var G=this,e;return _.D(function(r){if(r.nextAddress==1)return G.storedPlaybackSpeed===null?r.jumpTo(0):r.yield(G.getPlayer().getPlayerPromise(),3);e=r.yieldResult;e.setPlaybackRate(G.storedPlaybackSpeed);G.storedPlaybackSpeed=null;_.HL(r)})};
_.V.playerDataChanged=function(){var G=this,e,r,Z,O,M,T,E,b,w;return _.D(function(q){if(q.nextAddress==1){e=G.getPlayer();G.enableShortsSequenceRefactorUnify||(r=G.intersectionObserver)==null||r.disconnect();if(G.playerData){if(((Z=G.playerData.videoDetails)==null?void 0:Z.videoId)!==((O=e.getPlayer())==null?void 0:O.getVideoData().video_id)){M={};if(T=_.a(G.currentEndpoint,_.DC))M.watch_endpoint=T,T.endTimeSeconds&&(M.end=T.endTimeSeconds);e.loadVideoWithPlayerResponse(G.playerData,M)}}else return q.return();
return G.player?q.jumpTo(2):q.yield(e.getPlayerPromise(),3)}q.nextAddress!=2&&(G.player=q.yieldResult,G.JSC$22690_playerStateChangeListener=G.onPlayerStateChange.bind(G),G.player.addEventListener("onStateChange",G.JSC$22690_playerStateChangeListener),_.R("kevlar_client_enable_shorts_player_bootstrap")&&_.d7(),G.scrollToVideoThrottle.fire(G.index),G.movePlayerToVideo(G.index),_.A0.addLowPriorityJob(function(){G.getShortsLoopSetting().then(function(t){var g;(g=G.player)==null||g.setLoopVideo(t)})}),
_.A$W.resolve(G.player),G.player.syncVolume(),G.getPlayer().focusOnPlayer());
G.enableShortsSequenceRefactorUnify||_.A0.addLowPriorityJob(function(){G.observeShorts()},100);
E=G.player.getPlayerState(G.player.getPresentingPlayerType());E!==1||G.isPlayerStarted||_.Yt().dispatch(mKX(!0));G.updateBackNavContainerWidth();b=_.a(G.currentEndpoint,_.DC);((w=b)==null?0:w.startTimeSeconds)&&G.player.seekTo(b.startTimeSeconds);if(G.JSC$22690_cinematicController||G.cinematicsInitializeJobId)return q.return();G.cinematicsInitializeJobId=_.A0.addLowPriorityJob(function(){G.initCinematicController();G.cinematicsInitializeJobId=void 0});
_.HL(q)})};
_.V.onShortUndoDismiss=function(){var G=this,e=QP_().pop();e!==void 0&&(_.DE(this,function(){G.showCardWithIndex(e)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.V.onShortsDismiss=function(G){if(G=G.detail.reelDismissalActionRenderer)(G=_.a(G.onDismissalCompletionRenderer,_.c6w))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:G}}}),this.scrollAndDismissCard()};
_.V.processReelNonVideoContentDismissalCommand=function(G){var e=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);G=_.a(G,UKz);this.activeDimissalTimeout=setTimeout(function(){e.scrollAndDismissCard()},Number(G==null?void 0:G.delayMs))};
_.V.scrollAndDismissCard=function(){var G=this,e=this.index;QP_().push(e);_.DE(this,function(){var r=G.getPlayableNextIndex();r!==null&&(G.hideCardWithIndex(e),G.scrollToVideoThrottle.fire(r))})};
_.V.hideCardWithIndex=function(G){if(G=this.getActiveReelVideo(G))G.hidden=!0};
_.V.showCardWithIndex=function(G){if(G=this.getActiveReelVideo(G))G.hidden=!1};
_.V.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.V.activeChanged=function(G){_.Yt().dispatch(_.UK({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:G}}));if(G)document.addEventListener("keydown",_.ZQ(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 r;(r=this.player)==null||r.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.ZQ(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.V.graftClientVisualElements=function(){if(this.data){var G=_.h_();_.mcj(G,_.Nz({response:this.reelWatchSequenceResponse}));_.Xr(G,this.nextReelVe);_.Xr(G,this.prevReelVe);_.R("kevlar_shorts_auto_advance")&&(_.Xr(G,this.loopToggleOffVe),_.Xr(G,this.loopToggleOnVe));_.Xr(G,this.ambientModeToggleVe);_.C_(_.l4(),[this.nextReelVe,this.prevReelVe]);_.R("web_shorts_paused_state_logging")&&_.Xr(G,this.reelPlayerPausedStateRendererVe)}};
_.V.graftNvcRenderer=function(){var G,e,r,Z,O,M,T=this.enableShortsSequenceRefactorUnify?(G=this.shortsContentList)==null?void 0:(e=G[this.index])==null?void 0:e.command:this.index<0?(r=this.shortsProcessedPrevSequence)==null?void 0:(Z=r[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:Z.command:(O=this.shortsProcessedSequence)==null?void 0:(M=O[this.index])==null?void 0:M.command;if(T&&this.isNonVideoContentCommand(T)){G=_.a(T,_.xA);var E,b;(G=(E=_.a(G==null?void 0:G.renderer,_.UP))==
null?void 0:(b=E.loggingDirectives)==null?void 0:b.trackingParams)&&_.h_().graftServerVe(G)}};
_.V.setActiveIndex=function(){_.v_().resolve(_.gu).setActiveIndex(this.index)};
_.V.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.V.lazyUpdateMiniplayerData=function(){var G=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.A0.addLowPriorityJob(function(){G.updateMiniplayerData();G.updateMiniplayerDataJobId=void 0}))};
_.V.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.A0.cancelJob(this.updateMiniplayerDataJobId)};
_.V.updateMiniplayerData=function(){var G,e,r,Z=_.v_().resolve(_.fp),O={shortsData:this.getCurrentShort(),previousButtonDisabled:!((G=this.prevButtonData)==null||!G.isDisabled),nextButtonDisabled:!((e=this.nextButtonData)==null||!e.isDisabled),playabilityStatus:(r=this.playerData)==null?void 0:r.playabilityStatus};_.Sl(Z,O)};
_.V.resetPlayerLocation=function(){var G=this.getPlayer();this.initialPlayerContainer&&G.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.V.movePlayerToVideo=function(G,e){var r=this;e=e===void 0?!0:e;var Z=this.getActiveReelVideo(G),O=this.getPlayer();if(Z){this.overlayContainer?Z.appendChild(this.overlayContainer):(this.overlayContainer=_.z1(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,Z.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||O.appendTo(this.overlayContainer.playerContainer,void 0,!0));var M;(M=this.player)==null||M.setSize(NaN,NaN);this.isActive||_.IQ(_.A0,function(){r.isActive=
!0});
O.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.R("reels_web_disable_rtr_tick")||_.R("reels_web_use_pbs_first_shorts")&&G===0||_.jq("r_tr");this.currentPlayerIndex=G;Z.appendChild(this.errorScreenContainer);var T;(T=this.JSC$22690_cinematicController)==null||_.iNz(T)}else e?_.A0.addLowPriorityJob(function(){r.movePlayerToVideo(r.index,!1)}):Math.random()<=_.qt("web_shorts_error_logging_threshold")&&_.AG(new _.Cr("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:e,
index:G}))};
_.V.enableFormatFirst=function(G){return _.R("web_enable_format_first")||G.adsOverlay&&_.R("web_enable_format_first_ads_only")||G.reelPlayerOverlayRenderer&&_.R("web_enable_format_first_organic_only")};
_.V.getAspectRatio=function(G){if(this.enableFormatFirst(G))return(G==null?0:G.thumbnail)&&gfw(G.thumbnail)?"--ytd-shorts-player-ratio: "+gfw(G.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.V.getBackgroundImage=function(G){if(G!=null&&G.thumbnail)return(G=_.xh(G.thumbnail.thumbnails))?'background-image:url("'+G+'");':"background-color:black;"};
_.V.onPersistentPanelActiveChanged=function(){var G=this.getCurrentShort();if(G&&this.enableFormatFirst(G)&&(G==null?0:G.thumbnail)&&gfw(G.thumbnail)!==.5625){var e;(e=this.player)==null||e.setSize(NaN,NaN)}};
_.V.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.V.moveCinematicsToVideo=function(){var G=_.z1(this.hostElement).querySelector("ytd-reel-video-renderer");(G==null?0:G.cinematicContainer)&&G.cinematicContainer!==this.shortsCinematicContainer.parentElement&&G.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.V.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.V.updatePrevButtonData=function(){var G=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(G){var e;this.prevButtonData=G=Object.assign({},G,{accessibility:{label:_.OK("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:G.isDisabled||this.index===-(((e=this.shortsProcessedPrevSequence)==null?void 0:e.length)||0),tooltip:this.isUpArrowHidden?"":_.OK("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=G=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.V.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.V.updateNextButtonData=function(){var G=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(G){var e;this.nextButtonData=G=Object.assign({},G,{accessibility:{label:_.OK("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:G.isDisabled||this.index===((e=this.shortsProcessedSequence)==null?void 0:e.length),tooltip:_.OK("NEXT_VIDEO_LABEL")||""})}};
_.V.getPlayablePreviousIndex=function(){for(var G,e=this.index-1;e>=-(((G=this.prevShortsSequence)==null?void 0:G.length)||0);e--)if(!QP_().includes(e))return e;return null};
_.V.getIndexInSequence=function(G,e){return G.findIndex(function(r){var Z;return((Z=_.a(r.command,_.DC))==null?void 0:Z.videoId)===e})};
_.V.handlePrevButtonClick=function(G){var e=this,r,Z;return _.D(function(O){r=e.getPlayablePreviousIndex();if(r===null)return O.return();e.gestureType=((Z=G)==null?void 0:Z.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";r===0&&(e.hidePreviousButtonImmediately=!0);if(e.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){e.scrollToVideoThrottle.fire(r,"auto")}),O.return();
e.scrollToVideoThrottle.fire(r);_.HL(O)})};
_.V.getPlayableNextIndex=function(){for(var G,e,r=this.index+1;r<(this.enableShortsSequenceRefactorUnify?(G=this.shortsContentList)==null?void 0:G.length:((e=this.shortsProcessedSequence)==null?void 0:e.length)||0);r++)if(!QP_().includes(r))return r;return null};
_.V.handleNextButtonClick=function(G,e){var r=this,Z,O;return _.D(function(M){Z=r.getPlayableNextIndex();if(Z===null)return M.return();Z===1&&(r.showPreviousButtonImmediately=!0);r.gestureType=((O=G)==null?void 0:O.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";e&&(r.gestureType=e);if(r.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){r.scrollToVideoThrottle.fire(Z,"auto")}),M.return();
r.scrollToVideoThrottle.fire(Z);_.HL(M)})};
_.V.handleReelNavigateCommand=function(G,e,r){(G=_.a(G,PLz))&&e&&G.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(r)};
_.V.loadVideo=function(G,e){e=e===void 0?!1:e;if(G!==this.currentPlayerIndex){_.Yt().dispatch(mKX(!1));if(this.isAd()&&!e){var r;(r=this.player)==null||r.notifyShortsAdSwipeEvent()}if((e=this.JSC$22690_cinematicController)!=null){var Z;(Z=e.currentCinematicEffect)==null||Z.pause()}if((Z=this.JSC$22690_cinematicController)!=null){var O;(O=Z.currentCinematicEffect)==null||O.clear()}Z=G>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(Z));
this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var M,T,E,b,w,q;O=this.enableShortsSequenceRefactorUnify?(M=this.shortsContentList)==null?void 0:(T=M[G])==null?void 0:T.command:G<0?(E=this.shortsProcessedPrevSequence)==null?void 0:(b=E[this.shortsProcessedPrevSequence.length+G])==null?void 0:b.command:(w=this.shortsProcessedSequence)==null?void 0:(q=w[G])==
null?void 0:q.command;this.index=G;this.gestureType||(this.gestureType=Z?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");O&&this.isVideoContentCommand(O)&&(this.ytComponentBehavior.resolveCommand(O,{form:{createScreenConfig:{clickedVisualElement:Z?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(O&&this.isNonVideoContentCommand(O)){this.currentEndpoint=O;this.data=void 0;M=_.h_();T=_.a(O,_.xA);var t,g;(T=(t=
_.a(T==null?void 0:T.renderer,_.UP))==null?void 0:(g=t.screenLoggingData)==null?void 0:g.screenVeType)&&_.aC(M,T);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(t=this.getActiveReelVideo(G))&&t.appendChild(this.overlayContainer)}var l,X;t=this.enableShortsSequenceRefactorUnify?((l=this.shortsContentList)==null?void 0:l.length)===G+1:((X=this.reelWatchSequenceResponse)==null?void 0:X.entries)&&G===this.reelWatchSequenceResponse.entries.length-1;var H;if(((H=
this.reelWatchSequenceResponse)==null?0:H.continuationEndpoint)&&t){var I,C;l={contentPlaybackContext:_.B4({},(C=_.a((I=this.currentEndpoint)==null?void 0:I.commandMetadata,_.rJ))==null?void 0:C.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:l})}var u,P;G=this.enableShortsSequenceRefactorUnify?G===0:G===-(((u=this.reelWatchSequenceResponse)==null?void 0:(P=u.prevEntries)==null?void 0:P.length)||0);var F,J;((F=this.reelWatchSequenceResponse)==
null?0:F.prevContinuationEndpoint)&&((J=this.reelWatchSequenceResponse)==null?0:J.prevEntries)&&G&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.V.setMiniplayerPreview=function(G){G=(G===void 0?0:G)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var e,r,Z,O,M=_.v_().resolve(_.fp),T={shortsData:void 0,shortsPreviewThumbnail:G?this.enableShortsSequenceRefactorUnify?(e=this.shortsContentList)==null?void 0:(r=e[G])==null?void 0:r.thumbnail:(Z=this.shortsProcessedSequence)==null?void 0:(O=Z[G])==null?void 0:O.thumbnail:void 0};_.Sl(M,T)};
_.V.updateTitle=function(G){var e,r;G=(G==null?0:G.adSlots)?"":(r=G==null?void 0:(e=G.videoDetails)==null?void 0:e.title)!=null?r:"";_.xy(this.hostElement,"yt-update-title",G)};
_.V.registerPanel=function(G){var e=_.v_().resolve(_.uB);if(e){G=_.h(G.engagementPanels||[]);for(var r=G.next();!r.done;r=G.next()){r=r.value;var Z=this.getPanelIdentifier(r.engagementPanelSectionListRenderer),O=void 0,M=void 0;(M=(O=e).registerPanelContent)==null||M.call(O,Z,r)}}};
_.V.getPanelIdentifier=function(G){var e;return(G==null?void 0:(e=G.identifier)==null?void 0:e.tag)||(G==null?void 0:G.panelIdentifier)||(G==null?void 0:G.targetId)};
_.V.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.reelWatchSequenceResponse=this.data=void 0;this.shortsContentList=[];this.currentEndpoint=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.Yt().dispatch(mKX(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.firstShortsData=void 0;_.Yt().dispatch(u$z(!1));var G;(G=this.shortsController)!=
null&&(G.dismissedIndices=[]);var e;(e=this.shortsController)!=null&&e.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.v_().resolve(_.fp).close(!0)};
_.V.processAppendReelWatchSequenceContinuationEntriesAction=function(G){var e=this,r;(r=this.intersectionObserver)==null||r.disconnect();G=G.appendReelWatchSequenceContinuationEntriesAction;if(G==null?0:G.entries){var Z;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.mY(((Z=this.reelWatchSequenceResponse)==null?void 0:Z.entries)||[]),_.mY(G.entries)),continuationEndpoint:G.continuationEndpoint})}else if(G==null?0:G.prevEntries){var O;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.mY(((O=this.reelWatchSequenceResponse)==null?void 0:O.prevEntries)||[]),_.mY(G.prevEntries)),prevContinuationEndpoint:G.prevContinuationEndpoint});_.A0.addLowPriorityJob(function(){e.movePlayerToVideo(e.index);e.scrollToVideoThrottle.fire(e.index,"instant")})}else return;
_.A0.addLowPriorityJob(function(){e.observeShorts()},100)};
_.V.processWatchSequence=function(G){var e=this;return G.map(function(r){r=r.command;if(e.isVideoContentCommand(r)){var Z=_.a(r,_.DC);return{reelPlayerOverlayRenderer:_.a(Z==null?void 0:Z.overlay,_.POP),thumbnail:Z.thumbnail,command:r}}return e.isNonVideoContentCommand(r)?(Z=_.a(r,_.xA),{reelNonVideoContentRenderer:_.a(Z==null?void 0:Z.renderer,_.UP),command:r}):{command:r}})};
_.V.calculateIntersectionObserverThreshold=function(){var G=_.z1(this.hostElement).querySelector("ytd-reel-video-renderer"),e=1;(G==null?0:G.offsetHeight)&&(G==null?0:G.offsetWidth)&&(e=Math.min(G.offsetHeight,this.shortsContainer.offsetHeight)/G.offsetHeight*(Math.min(G.offsetWidth,this.shortsContainer.offsetWidth)/G.offsetWidth));return Math.round(e*.6*10)/10};
_.V.isVideoContentCommand=function(G){_.v_().resolve(_.gu);return!!_.a(G,_.DC)};
_.V.isNonVideoContentCommand=function(G){_.v_().resolve(_.gu);return!!_.a(G,_.xA)};
_.V.initCinematicController=function(){var G=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22690_cinematicController=new _.gn(this.shortsCinematicContainer,this.player);var e,r=_.a((e=this.data)==null?void 0:e.background,_.LD);_.Efk(this.JSC$22690_cinematicController,r);_.DKt(this.JSC$22690_cinematicController,jP2(r));_.TSk(this.JSC$22690_cinematicController);_.A0.addLowPriorityJob(function(){G.moveCinematicsToVideo()})}};
_.V.handleMiniplayerNavigateShorts=function(G){G==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():G==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.V.handleSignalActionToggleShortsPictureInPicture=function(){if(_.v_().resolve(_.fp).pictureInPictureSupported()){var G=_.v_().resolve(_.gu);if(_.R("web_shorts_pip")){var e=_.v_().resolve(_.fp);G.isShortsPipActive()?e.deactivate():e.isMiniplayerActive()||(_.sI().shortsPipActivation=!0,_.rGC(e))}}else(G=this.player)==null||G.togglePictureInPicture()};
_.iY.Object.defineProperties(Hm.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.reelWatchSequenceResponse)!=null&&G.prevEntries)return this.processWatchSequence([].concat(_.mY(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence)return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.mY(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.reelWatchSequenceResponse)!=null&&G.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var G=this;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 r;e=_.a((r=this.firstShortsData)==null?void 0:r.command,_.DC);if(e==null||!e.videoId)return this.shortsProcessedSequence;r=this.getIndexInSequence(this.shortsSequence,
e.videoId);if(r!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=r,_.A0.addLowPriorityJob(function(){G.scrollToVideoThrottle.fire(G.index,"auto");G.movePlayerToVideo(G.index)}));
return[].concat(_.mY(this.shortsSequence))}return[this.firstShortsData].concat(_.mY(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var G=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;G&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(G)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 G,e;return this.index===((G=this.reelWatchSequenceResponse)==null?void 0:(e=G.entries)==null?void 0:e.length)}var r;return!((r=this.reelWatchSequenceResponse)==null?0:r.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var G;(G=this.delayedActiveIndexUpdateDebouncer)==null||G.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return this.isShortPlayable()||((e=_.a((G=this.data)==null?void 0:G.watchStatus,_.ZKc))==null?void 0:(r=e.style)==null?void 0:r.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var G=this,e=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),r;if((this.data||e)&&(((r=this.data)==null?0:r.engagementPanels)||this.isAd()||e)){e=!1;this.activePanel="shorts-comments-panel";var Z;r=_.h(((Z=this.data)==null?void 0:Z.engagementPanels)||[]);for(Z=r.next();!Z.done;Z=r.next())if(this.getPanelIdentifier(Z.value.engagementPanelSectionListRenderer)===this.activePanel){e=!0;break}if(this.isPersistentPanelActive){var O=
_.v_().resolve(_.uB);_.IQ(_.A0,function(){O.showPanel({identifier:G.activePanel,target:null})},100)}var M;
Z=[].concat(_.mY(Object.values(((M=this.data)==null?void 0:M.engagementPanels)||{})));M=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);r=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return M===void 0&&r===void 0||(M==null?0:M.isDisabled)||(r==null?void 0:r.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!e?(e=Z==null?void 0:Z.findIndex(function(T){var E,b;return((E=T.engagementPanelSectionListRenderer)==null?void 0:(b=E.identifier)==null?void 0:b.tag)==="shorts-comments-panel"}),e===-1||e===void 0||Z!=null&&Z.splice(e,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.OK("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.OK("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:_.OK("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.OK("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(_.mY(Object.values(Z||
{})))):Z}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var G=this,e,r,Z;if((e=this.playerData)==null?0:(r=e.playabilityStatus)==null?0:(Z=r.errorScreen)==null?0:Z.playerInterstitialRenderer)return _.A0.addLowPriorityJob(function(){G.movePlayerToVideo(G.index)}),this.playerData.playabilityStatus.errorScreen;
var O,M;return((O=this.data)==null?void 0:O.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((M=this.data)==null?0:M.watchStatus)&&_.a(this.data.watchStatus,_.XVb)?(_.A0.addLowPriorityJob(function(){G.movePlayerToVideo(G.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.iY.Object.defineProperties(Hm,{template:{configurable:!0,enumerable:!0,get:function(){if(Ldz===void 0){var G=document.createElement("template");_.f(G,'\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="[[!enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n        <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n          <template class="style-scope ytd-shorts">\n            <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n              <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n              </div>\n            </div>\n          </template>\n        </dom-repeat>\n      </template>\n      <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <template is="dom-if" if="[[enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsContentList]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);Ldz=G}G=Ldz;return G}}});
Hm.prototype.onNextButtonDataChange=Hm.prototype.onNextButtonDataChange;Hm.prototype.onPrevButtonDataChange=Hm.prototype.onPrevButtonDataChange;Hm.prototype.onPersistentPanelActiveChanged=Hm.prototype.onPersistentPanelActiveChanged;Hm.prototype.lazyUpdateMiniplayerData=Hm.prototype.lazyUpdateMiniplayerData;Hm.prototype.onShortsPipActiveChanged=Hm.prototype.onShortsPipActiveChanged;Hm.prototype.setActiveIndex=Hm.prototype.setActiveIndex;Hm.prototype.graftNvcRenderer=Hm.prototype.graftNvcRenderer;
Hm.prototype.graftClientVisualElements=Hm.prototype.graftClientVisualElements;Hm.prototype.onActiveChanged=Hm.prototype.onActiveChanged;Hm.prototype.onShortsDismiss=Hm.prototype.onShortsDismiss;Hm.prototype.onShortUndoDismiss=Hm.prototype.onShortUndoDismiss;Hm.prototype.playerDataChanged=Hm.prototype.playerDataChanged;Hm.prototype.afterPlayerStarted=Hm.prototype.afterPlayerStarted;Hm.prototype.updateReelWatchSequenceResponse=Hm.prototype.updateReelWatchSequenceResponse;
Hm.prototype.unhideCurrentOverlay=Hm.prototype.unhideCurrentOverlay;Hm.prototype.onServiceRequestCompleted=Hm.prototype.onServiceRequestCompleted;Hm.prototype.engagementPanelsChanged=Hm.prototype.engagementPanelsChanged;Hm.prototype.onFullscreenChange=Hm.prototype.onFullscreenChange;Hm.prototype.onResize=Hm.prototype.onResize;Hm.prototype.setShortsContentList=Hm.prototype.setShortsContentList;Hm.prototype.setFirstShortsData=Hm.prototype.setFirstShortsData;
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Hm.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.r$.YtPageBehavior),_.x("design:type",Object)],Hm.prototype,"ytPageBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Hm.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.CS),_.x("design:type",Object)],Hm.prototype,"ironResizableBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Hm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],Hm.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.k(_.UN.YtdGuideStateAwareBehavior),_.x("design:type",Object)],Hm.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],Hm.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"playerData",void 0);_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"reelWatchSequenceResponse",void 0);_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"cachedReelWatchSequenceResponse",void 0);_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"cachedSequenceParams",void 0);_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"cachedSequenceProvider",void 0);_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"currentEndpoint",void 0);
_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"nextButtonData",void 0);_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"prevButtonData",void 0);_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"isPreviousPageShorts",void 0);_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"index",void 0);_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"delayedActiveIndex",void 0);_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"playablePreviousIndex",void 0);
_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"player",void 0);_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"isPlayerPaused",void 0);_.B([_.n({selector:RGZ}),_.x("design:type",Object)],Hm.prototype,"isPlayerStarted",void 0);_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"intersectionObserver",void 0);_.B([_.n(),_.x("design:type",Number)],Hm.prototype,"cinematicsInitializeJobId",void 0);_.B([_.n(),_.x("design:type",Number)],Hm.prototype,"updateMiniplayerDataJobId",void 0);
_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"fitToVisibleBounds",void 0);_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"pageSubtype",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Hm.prototype,"enablePreviousContinuation",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Hm.prototype,"shortsPipEnabled",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Hm.prototype,"isDark",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Hm.prototype,"shortsViewTransitions",void 0);_.B([_.n({selector:_.JI,reflectToAttribute:!0}),_.x("design:type",Object)],Hm.prototype,"isFullscreen",void 0);_.B([_.n({selector:_.Be,reflectToAttribute:!0}),_.x("design:type",Object)],Hm.prototype,"isShortsPipActive",void 0);_.B([_.hs("#shorts-inner-container"),_.x("design:type",HTMLElement)],Hm.prototype,"shortsInnerContainer",void 0);
_.B([_.hs("#back-nav-button ytd-button-renderer"),_.x("design:type",_.Dt)],Hm.prototype,"backNavButton",void 0);_.B([_.hs("#shorts-container"),_.x("design:type",HTMLElement)],Hm.prototype,"shortsContainer",void 0);_.B([_.yC("error-screen"),_.x("design:type",HTMLElement)],Hm.prototype,"errorScreenContainer",void 0);_.B([_.yC("player"),_.x("design:type",Object)],Hm.prototype,"playerElement",void 0);
_.B([_.yC("shorts-cinematic-container"),_.x("design:type",HTMLElement)],Hm.prototype,"shortsCinematicContainer",void 0);_.B([_.yC("initial-player-container"),_.x("design:type",HTMLElement)],Hm.prototype,"initialPlayerContainer",void 0);_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"buttonOverride",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Hm.prototype,"anchoredPanelActive",void 0);_.B([_.n(),_.x("design:type",String)],Hm.prototype,"activePanel",void 0);
_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"isActive",void 0);_.B([_.n({selector:ldq,reflectToAttribute:!0}),_.x("design:type",Object)],Hm.prototype,"smallScreenPersistentPanel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Hm.prototype,"isPersistentPanelActive",void 0);_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"smallScreenSqueezeBack",void 0);_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"enableScrollIntoViewCenter",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Hm.prototype,"formatFirst",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Hm.prototype,"enableFlexibleOverlay",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Hm.prototype,"extractOverlay",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Hm.prototype,"useAspectRatio",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Hm.prototype,"enableShortsSequenceRefactorUnify",void 0);_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"shortsController",void 0);_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"panelContainer",void 0);_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"overlayContainer",void 0);_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"isShortsInitialized",void 0);_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"firstShortsData",void 0);
_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"firstShortsDataModel",void 0);_.B([_.n(),_.x("design:type",Array)],Hm.prototype,"shortsContentList",void 0);_.B([_.d("reelWatchSequenceResponse"),_.x("design:type",Object),_.x("design:paramtypes",[])],Hm.prototype,"prevShortsSequence",null);_.B([_.d("data","prevShortsSequence"),_.d("data","prevShortsSequence"),_.x("design:type",Object),_.x("design:paramtypes",[])],Hm.prototype,"shortsProcessedPrevSequence",null);
_.B([_.d("reelWatchSequenceResponse"),_.x("design:type",Object),_.x("design:paramtypes",[])],Hm.prototype,"shortsSequence",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hm.prototype,"setFirstShortsData",null);_.B([_.Me("reelWatchSequenceResponse","firstShortsData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hm.prototype,"setShortsContentList",null);
_.B([_.d("data","shortsSequence","firstShortsData"),_.x("design:type",Object),_.x("design:paramtypes",[])],Hm.prototype,"shortsProcessedSequence",null);_.B([_.n({reflectToAttribute:!0}),_.d("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Hm.prototype,"isUpArrowHidden",null);
_.B([_.n({reflectToAttribute:!0}),_.d("reelWatchSequenceResponse","index","endOfNextContinuation"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Hm.prototype,"isDownArrowHidden",null);_.B([_.n(),_.d("index"),_.x("design:type",Number),_.x("design:paramtypes",[])],Hm.prototype,"activeIndex",null);_.B([_.d("isShortPlayable","data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Hm.prototype,"shouldRenderOfflineContent",null);
_.B([_.Om("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hm.prototype,"onResize",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Hm.prototype,"anchoredEngagementPanels",null);_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"watchWhileEngagementPanels",void 0);_.B([_.Me("isFullscreen"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hm.prototype,"onFullscreenChange",null);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hm.prototype,"engagementPanelsChanged",null);_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.n1]),_.x("design:returntype")],Hm.prototype,"onServiceRequestCompleted",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hm.prototype,"unhideCurrentOverlay",null);
_.B([_.Me("currentEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hm.prototype,"updateReelWatchSequenceResponse",null);_.B([_.Me("isPlayerStarted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hm.prototype,"afterPlayerStarted",null);_.B([_.d("playerData","reelWatchSequenceResponse","data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Hm.prototype,"errorScreen",null);
_.B([_.d("errorScreen"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Hm.prototype,"hasError",null);_.B([_.Me("playerData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],Hm.prototype,"playerDataChanged",null);_.B([_.Om("yt-dismissible-item-undo-feedback"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hm.prototype,"onShortUndoDismiss",null);
_.B([_.Om("yt-disable-lockup-interaction"),_.x("design:type",Function),_.x("design:paramtypes",[Object]),_.x("design:returntype")],Hm.prototype,"onShortsDismiss",null);_.B([_.iD("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hm.prototype,"onActiveChanged",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hm.prototype,"graftClientVisualElements",null);
_.B([_.Me("currentPlayerIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hm.prototype,"graftNvcRenderer",null);_.B([_.Me("index"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hm.prototype,"setActiveIndex",null);_.B([_.Me("isShortsPipActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hm.prototype,"onShortsPipActiveChanged",null);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hm.prototype,"lazyUpdateMiniplayerData",null);_.B([_.n(),_.x("design:type",Object)],Hm.prototype,"onOverlayDensityChanged",void 0);_.B([_.Me("isPersistentPanelActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hm.prototype,"onPersistentPanelActiveChanged",null);
_.B([_.Me("index","data","isUpArrowHidden"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hm.prototype,"onPrevButtonDataChange",null);_.B([_.Me("index","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hm.prototype,"onNextButtonDataChange",null);_.B([_.c({is:"ytd-shorts"})],Hm);_.F3.registerService(_.TVN,Hm);
_.AA();
}catch(e){_._DumpException(e)}
try{
_.yT("JzFVk");
var Dg2;var E5Z;var NV=function(){return _.m.apply(this,arguments)||this};
_.K(NV,_.m);NV.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
NV.prototype.computeBlueBottomLink=function(G){return G};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],NV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],NV.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],NV.prototype,"data",void 0);_.B([_.n({computed:"computeIcon_(data.bottomIcon)"}),_.x("design:type",String)],NV.prototype,"bottomIcon",void 0);
_.B([_.n({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.x("design:type",Boolean)],NV.prototype,"enableBlueBottomLink",void 0);_.B([_.c({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],NV);
_.A(NV,"ytd-web-answer-renderer",function(){if(E5Z!==void 0)return E5Z;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return E5Z=G},{mode:_.Px("kevlar_poly_si_batch_j035")?1:2});var imz;var L4=function(){var G=_.m.apply(this,arguments)||this;G.hasChipBar=!1;return G};
_.K(L4,_.m);L4.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}}};
L4.prototype.computeHasChipBar=function(G){return!(G==null||!G.chipBar)};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],L4.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],L4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],L4.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.x("design:type",Object)],L4.prototype,"hasChipBar",void 0);_.B([_.c({is:"ytd-search-header-renderer",disableElementRegistration:!0})],L4);
_.A(L4,"ytd-search-header-renderer",function(){if(imz!==void 0)return imz;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return imz=G},{mode:1});var bmy;var G9=function(){return _.m.apply(this,arguments)||this};
_.K(G9,_.m);G9.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],G9.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],G9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],G9.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-page-continuation"})],G9);
_.A(G9,"ytd-page-continuation",function(){if(bmy!==void 0)return bmy;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return bmy=G},{mode:1});var v5Z;var wLZ;var $g2;var Sft=function(){return _.m.apply(this,arguments)||this};
_.K(Sft,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Sft.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Sft.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],Sft);
_.A(Sft,"ytd-watch-card-one-vs-one-event",function(){if($g2!==void 0)return $g2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return $g2=G},{mode:1});var qf_=function(){return _.m.apply(this,arguments)||this};
_.K(qf_,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],qf_.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],qf_.prototype,"data",void 0);_.B([_.c({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],qf_);
_.A(qf_,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(wLZ!==void 0)return wLZ;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return wLZ=G},{mode:1});var tr2;var g5y=function(){return _.m.apply(this,arguments)||this};
_.K(g5y,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],g5y.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],g5y.prototype,"data",void 0);_.B([_.c({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],g5y);
_.A(g5y,"ytd-banner-and-box-hero-image-renderer",function(){if(tr2!==void 0)return tr2;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return tr2=G},{mode:1});var lf$;var e3=function(){var G=_.m.apply(this,arguments)||this;G.modern=_.R("web_modern_buttons");return G};
_.K(e3,_.m);e3.prototype.computeIcon=function(){var G,e,r=(G=this.data)==null?void 0:(e=G.icon)==null?void 0:e.iconType;if(r)return _.Ne(r)};
e3.prototype.computeButtonShape=function(){var G;return{buttonText:_.mG((G=this.data)==null?void 0:G.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.iY.Object.defineProperties(e3.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"}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],e3.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],e3.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],e3.prototype,"modern",void 0);_.B([_.n({type:_.R("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.d("data.style"),_.x("design:type",Object),_.x("design:paramtypes",[])],e3.prototype,"buttonColor",null);
_.B([_.c({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],e3);
_.A(e3,"ytd-call-to-action-button-renderer",function(){if(lf$!==void 0)return lf$;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return lf$=G},{mode:1});var R1w;var rn=function(){return _.m.apply(this,arguments)||this};
_.K(rn,_.m);rn.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.z1(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.BQ(this.data.leftThumbnail.thumbnails,216)+")")};
rn.prototype.onLeftThumbnailChanged=rn.prototype.onLeftThumbnailChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],rn.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],rn.prototype,"data",void 0);_.B([_.Me("data.leftThumbnail"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rn.prototype,"onLeftThumbnailChanged",null);_.B([_.c({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],rn);
_.A(rn,"ytd-collage-hero-image-renderer",function(){if(R1w!==void 0)return R1w;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return R1w=G},{mode:1});var jLt;var Zc=function(){return _.m.apply(this,arguments)||this};
_.K(Zc,_.m);Zc.prototype.computeStyle=function(G){return G};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Zc.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Zc.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],Zc.prototype,"componentStyle",void 0);_.B([_.c({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],Zc);
_.A(Zc,"ytd-single-hero-image-renderer",function(){if(jLt!==void 0)return jLt;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return jLt=G},{mode:1});var afj;var On=function(){return _.m.apply(this,arguments)||this};
_.K(On,_.m);_.V=On.prototype;
_.V.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:_.R("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.V.computeSubtitle=function(G){if(this.data){var e;if(this.data.upcomingEventData){G=_.mG(G.subtitle);var r=Number(this.data.upcomingEventData.startTime);isNaN(r)||(e=_.nQ(_.$b(G,r)))}else e=G.subtitle;return e}};
_.V.onHeroTap=function(G){G.preventDefault();var e=this.data&&this.data.navigationEndpoint;!e||!_.mO(_.na(G),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.mO(_.na(G),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.R("kevlar_watchcard_hero_video_renderer_killswitch")?_.xy(this.hostElement,"yt-navigate",{navigationEndpoint:e}):this.ytComponentBehavior.resolveCommand(e))};
_.V.computeHeroTabIndex=function(G){return G&&G.simpleText?-1:0};
_.V.computeHeroRole=function(G){return G&&G.simpleText?"":"link"};
_.V.computeIsReminderButtonPresent=function(G){return!(!G||!G.reminderButton)};
_.V.computeHideBottomItems=function(G){return!(this.computeIsReminderButtonPresent(G)||G.subtitle)};
_.V.dataChanged=function(){var G=this.get("data.buttons.buttonRenderer.serviceEndpoint"),e;((e=_.a(G==null?void 0:G.commandMetadata,_.QJ))==null?0:e.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(G)};
On.prototype.dataChanged=On.prototype.dataChanged;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],On.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],On.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],On.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],On.prototype,"data",void 0);
_.B([_.n({computed:"computeSubtitle(data)"}),_.x("design:type",String)],On.prototype,"subtitle",void 0);_.B([_.n({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],On.prototype,"isReminderButtonPresent",void 0);_.B([_.n({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],On.prototype,"hideBottomItems",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],On.prototype,"dataChanged",null);_.B([_.c({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],On);
_.A(On,"ytd-watch-card-hero-video-renderer",function(){if(afj!==void 0)return afj;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return afj=G},{mode:1});var XL_;var MP=function(){return _.m.apply(this,arguments)||this};
_.K(MP,_.m);_.V=MP.prototype;_.V.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"}}}};
_.V.computeTitleBadges=function(G){return G?[G]:[]};
_.V.computeHeaderStyle=function(G){return G?G.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.V.computeAvatarAriaLabel=function(G){if(G){var e,r,Z,O;return(O=(e=G.avatar)==null?void 0:(r=e.accessibility)==null?void 0:(Z=r.accessibilityData)==null?void 0:Z.label)!=null?O:_.mG(G==null?void 0:G.title)}};
_.V.computeAvatarHeight=function(G){return G==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.V.computeBadgeRowClass=function(G){return(G==null?0:G[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],MP.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],MP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],MP.prototype,"data",void 0);_.B([_.n({computed:"computeTitleBadges(data.titleBadge)"}),_.x("design:type",Array)],MP.prototype,"titleBadges",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.x("design:type",String)],MP.prototype,"headerStyle",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.x("design:type",String)],MP.prototype,"badgeRowClass",void 0);_.B([_.c({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],MP);
_.A(MP,"ytd-watch-card-rich-header-renderer",function(){if(XL_!==void 0)return XL_;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return XL_=G},{mode:1});var KYz;var ffZ;var Vz=function(){return _.m.apply(this,arguments)||this};
_.K(Vz,_.m);Vz.prototype.onMetadataTap=function(G){var e=this.data&&this.data.navigationEndpoint;e&&!_.mO(_.na(G),this.hostElement,["A".toString()])&&_.xy(this.hostElement,"yt-navigate",{endpoint:e})};
_.iY.Object.defineProperties(Vz.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 G;if(this.data.upcomingEventData){var e=_.mG(this.data.subtitle),r=Number(this.data.upcomingEventData.startTime);isNaN(r)||(G=_.nQ(_.$b(e,r)))}else G=this.data.subtitle;return G}}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Vz.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Vz.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("data.style"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Vz.prototype,"isCondensed",null);_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Vz.prototype,"subtitle",null);
_.B([_.c({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],Vz);
_.A(Vz,"ytd-watch-card-compact-video-renderer",function(){if(ffZ!==void 0)return ffZ;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return ffZ=G},{mode:1});var kez;var Hm_=function(){return _.m.apply(this,arguments)||this};
_.K(Hm_,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Hm_.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Hm_.prototype,"data",void 0);_.B([_.c({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],Hm_);
_.A(Hm_,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(kez!==void 0)return kez;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return kez=G},{mode:1});var h7=function(){return _.m.apply(this,arguments)||this};
_.K(h7,_.m);h7.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}}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],h7.prototype,"ytRendererStamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],h7.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],h7.prototype,"data",void 0);_.B([_.c({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],h7);
_.A(h7,"ytd-vertical-watch-card-list-renderer",function(){if(KYz!==void 0)return KYz;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return KYz=G},{mode:1});var dgk;var T9=function(){var G=_.m.apply(this,arguments)||this;G.ariaExpanded="false";return G};
_.K(T9,_.m);_.V=T9.prototype;_.V.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.V.dataChanged=function(){var G;this.currentSeasonIndex=((G=this.data)==null?void 0:G.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.V.computeEpisodesInfo=function(G,e,r){if(G!==void 0&&e.length===G.length)return G[r]};
_.V.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.V.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.V.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.V.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.V.getUppercaseSimpleString=function(G){return this.ytRendererBehavior.getSimpleString(G).toUpperCase()};
_.V.updateCurrentSeasonIndexFromBinding=function(G){this.currentSeasonIndex=G.detail.value};
T9.prototype.onIronOverlayClosed=T9.prototype.onIronOverlayClosed;T9.prototype.currentSeasonIndexChanged=T9.prototype.currentSeasonIndexChanged;T9.prototype.dataChanged=T9.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],T9.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],T9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],T9.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",String)],T9.prototype,"label",void 0);_.B([_.n({value:0}),_.x("design:type",Number)],T9.prototype,"currentSeasonIndex",void 0);_.B([_.n({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.x("design:type",Object)],T9.prototype,"episodesInfo",void 0);_.B([_.n({value:"false"}),_.x("design:type",Object)],T9.prototype,"ariaExpanded",void 0);_.B([_.hs("#lists"),_.x("design:type",Object)],T9.prototype,"lists",void 0);
_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],T9.prototype,"dataChanged",null);_.B([_.iD("currentSeasonIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],T9.prototype,"currentSeasonIndexChanged",null);_.B([_.Om("iron-overlay-closed"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],T9.prototype,"onIronOverlayClosed",null);
_.B([_.c({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],T9);
_.A(T9,"ytd-watch-card-section-dropdown-renderer",function(){if(dgk!==void 0)return dgk;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return dgk=G},{mode:1});var o5k;var Dc=function(){var G=_.m.apply(this,arguments)||this;G.isSearch=!1;return G};
_.K(Dc,_.m);Dc.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}}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Dc.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Dc.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Dc.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],Dc.prototype,"isSearch",void 0);_.B([_.c({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],Dc);
_.A(Dc,"ytd-watch-card-section-sequence-renderer",function(){if(o5k!==void 0)return o5k;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);
return o5k=G},{mode:1});var sLq=_.y(function(G){return _.v("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.v(_.E2,{data:function(){return G.data().ctaButton}},{buttonViewModel:_.wF}),_.v(_.Wh,{text:function(){return G.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"Ym");
sLq.idomCompat=!0;_.J_(sLq,"ytd-button-banner-view-model",{props:{data:_.N6}});var En=function(){var G=_.m.apply(this,arguments)||this;G.isSearch=!1;return G};
_.K(En,_.m);
En.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"}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],En.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],En.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],En.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],En.prototype,"rounded",void 0);_.B([_.n(),_.x("design:type",Object)],En.prototype,"isSearch",void 0);
_.B([_.c({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],En);
_.A(En,"ytd-universal-watch-card-renderer",function(){if(v5Z!==void 0)return v5Z;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return v5Z=G},{mode:1});var QLt;_.J_(_.y(function(G){var e=G.data;var r;G=!((r=_.v_().resolve(_.bq(_.Ig)))==null||!r());r={};return _.v("overview-message-view-model",{class:_.LC("ytwOverviewMessageViewModelHost",(r.ytwOverviewMessageViewModelDarkBackground=G,r.ytwOverviewMessageViewModelLightBackground=!G,r))},_.v(_.S,{cond:function(){return e().primaryImage},
then:function(Z){return _.v(_.nC,{data:Z,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.v(_.S,{cond:function(){return e().primaryText},
then:function(){return _.v("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.v(_.Wh,{text:function(){return e().primaryText}}))}}),_.v(_.S,{cond:function(){return e().secondaryText},
then:function(){return _.v("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.v(_.Wh,{text:function(){return e().secondaryText}}))}}))},"Zm"),"overview-message-view-model",{props:{data:_.N6}});_.J_(_.haV,"ytd-overview-answer-view-model",{props:{data:_.N6}});var is=function(){return _.m.apply(this,arguments)||this};
_.K(is,_.m);is.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"}}}};
is.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],is.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],is.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.eP),_.x("design:type",Object)],is.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],is.prototype,"data",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],is.prototype,"isSearch",void 0);
_.B([_.c({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],is);
_.A(is,"ytd-secondary-search-container-renderer",function(){if(QLt!==void 0)return QLt;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);
return QLt=G},{mode:1});var IfZ;var bs=function(){var G=_.m.apply(this,arguments)||this;G.renderSecondarySearchContainer=!1;G.isSearch=!1;return G};
_.K(bs,_.m);_.V=bs.prototype;_.V.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"}}}};
_.V.created=function(){var G=this;this.boundStampSecondarySearchContainerIfFits=function(){G.stampSecondarySearchContainerIfFits()};
_.BX("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.V.computeIsSearchFrictionPage=function(G){var e,r,Z,O,M;G=G==null?void 0:(e=G.primaryContents)==null?void 0:(r=e.sectionListRenderer)==null?void 0:(Z=r.contents)==null?void 0:(O=Z[0])==null?void 0:(M=O.itemSectionRenderer)==null?void 0:M.contents;if(!G)return!1;e=_.h(G);for(r=e.next();!r.done;r=e.next())if(Z=void 0,(Z=r.value)==null?0:Z.searchFrictionViewModel)return!0;return!1};
_.V.computeShowSecondaryColumn=function(G,e){return!!(e&&e.secondaryContents&&G)};
_.V.activeChanged=function(){var G=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.ZQ(this,this.debounceStampSecondarySearchContainerIfFits)),_.oR(function(){G.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.ZQ(this,this.debounceStampSecondarySearchContainerIfFits))};
_.V.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.V.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.V.debounceStampSecondarySearchContainerIfFits=function(){_.sm(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.V.onRetrieveLocation=function(G,e){e.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);G.stopPropagation()};
_.V.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
bs.prototype.dataChanged=bs.prototype.dataChanged;bs.prototype.onRetrieveLocation=bs.prototype.onRetrieveLocation;bs.prototype.persistentGuideChanged=bs.prototype.persistentGuideChanged;bs.prototype.activeChanged=bs.prototype.activeChanged;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],bs.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],bs.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.UN.YtdGuideStateAwareBehavior),_.x("design:type",Object)],bs.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.k(_.CS),_.x("design:type",Object)],bs.prototype,"ironResizableBehavior",void 0);_.B([_.n(),_.x("design:type",Boolean)],bs.prototype,"active",void 0);_.B([_.n(),_.x("design:type",Object)],bs.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,value:function(){return _.R("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],bs.prototype,"useBiggerThumbs",void 0);_.B([_.n({reflectToAttribute:!0,value:function(){return _.td("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],bs.prototype,"biggerThumbsStyle",void 0);_.B([_.n(),_.x("design:type",Object)],bs.prototype,"renderSecondarySearchContainer",void 0);_.B([_.n({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.x("design:type",Boolean)],bs.prototype,"showSecondaryColumn",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.x("design:type",Boolean)],bs.prototype,"isSearchFrictionPage",void 0);
_.B([_.n(),_.x("design:type",Object)],bs.prototype,"isSearch",void 0);_.B([_.Me("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bs.prototype,"activeChanged",null);_.B([_.Me("guidePersistentAndVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bs.prototype,"persistentGuideChanged",null);
_.B([_.Om("yt-retrieve-location"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],bs.prototype,"onRetrieveLocation",null);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bs.prototype,"dataChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],bs);
_.A(bs,"ytd-two-column-search-results-renderer",function(){if(IfZ!==void 0)return IfZ;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return IfZ=G},{mode:1});var wn=function(){var G=_.m.apply(this,arguments)||this;G.hasSearchHeader=!1;G.hasSecondaryContent=!1;G.hasBiggerThumbs=_.R("enable_desktop_search_bigger_thumbs");G.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return G};
_.K(wn,_.m);_.V=wn.prototype;_.V.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:_.tz(["aa","eocs"])}}};
_.V.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.V.loadPage_=function(G){this.initCsi();G&&(this.data=G,_.BX("REFINEMENTS_TUPLE",["FromSearchResponse",G.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Mh(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.V.initCsi=function(){_.$Bt("results",["ol","cpt"])};
_.V.updateTitle=function(){var G=_.Wp(window.location.href,"q");G||(G=_.Wp(window.location.href,"search_query"));_.xy(this.hostElement,"yt-update-title",G||"")};
_.V.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.V.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.R("web_srp_data_changed_terminate_imp_killswitch")||_.Pi(this.hostElement,"yt-terminate-video-preview-action")};
_.V.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.V.computeHasSearchHeader=function(G){var e;G=G==null?void 0:(e=G.header)==null?void 0:e.searchHeaderRenderer;return!!G&&(!!G.searchFilterButton||!!G.chipBar)};
_.V.computeHasSecondaryContent=function(G){var e,r;return!!(G==null?0:(e=G.contents)==null?0:(r=e.twoColumnSearchResultsRenderer)==null?0:r.secondaryContents)};
_.iY.Object.defineProperties(wn,{template:{configurable:!0,enumerable:!0,get:function(){if(Dg2===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);Dg2=G}G=Dg2;return G}}});
wn.prototype.onReloadContinuationFinish=wn.prototype.onReloadContinuationFinish;wn.prototype.dataChanged=wn.prototype.dataChanged;_.B([_.k(_.r$.YtPageBehavior),_.x("design:type",Object)],wn.prototype,"ytPageBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],wn.prototype,"actionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],wn.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],wn.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.eP),_.x("design:type",Object)],wn.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],wn.prototype,"data",void 0);_.B([_.n({value:!0}),_.x("design:type",Boolean)],wn.prototype,"monitorScroll",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],wn.prototype,"hasSearchHeader",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],wn.prototype,"hasSecondaryContent",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],wn.prototype,"hasBiggerThumbs",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wn.prototype,"dataChanged",null);
_.B([_.Om("yt-reload-continuation-finish"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wn.prototype,"onReloadContinuationFinish",null);_.B([_.c({is:"ytd-search"})],wn);_.F3.registerService(_.hAU,wn);
_.AA();
}catch(e){_._DumpException(e)}
try{
_.yT("h8y2qb");
var qVw=function(G){if(G=_.OGF(G)){var e;(e=G.sources)!=null&&e[0]?(e=_.Vpy(G),e=e<1?"VERTICAL":e>1?"HORIZONTAL":"SQUARE"):e=void 0;return e}},Za=function(G){_.jg.call(this,"upload");
this.opts.query=G},gCt=function(G,e){return _.v(ta2,{data:G,
onYtNavigate:e})},llz=function(G,e){return _.e6(G.entities,"pageHeaderEntity",e)},j8$=function(G,e){return G.map(function(r){if(r.tabRenderer)return Rmt(r.tabRenderer);
if(r.expandableTabRenderer&&e){var Z=r.expandableTabRenderer;return{customTabRenderable:function(){return e(Z)}}}return{}})},Rmt=function(G){return{identifier:G.tabIdentifier,
aTagConfig:_.fC({innertubeCommand:G.endpoint,forceNewState:!0}),title:G.title,selected:G.selected,disabled:G.unselectable,icon:G.icon}},alz=function(G){return _.UK({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:G})},XYy=function(G){if(!_.B5(document,"gtm-noscript")){var e=document.createElement("noscript");
e.id="gtm-noscript";e.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+G+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(e)}};_.Bz(Za,_.jg);Za.prototype.JSC$10083_setLabel=function(G){Za.superClass_.JSC$10083_setLabel.call(this,G);return this};
Za.prototype.addUploadMetadata=function(G,e){Za.superClass_.addUploadMetadata.call(this,G,e);return this};var K8k=function(G){if(G!=="youtubebanner"&&G!=="youtube-channel-banner")throw Error("Lo");Za.call(this,G)};
_.K(K8k,Za);K8k.prototype.JSC$10083_setLabel=function(G){Za.prototype.JSC$10083_setLabel.call(this,G);return this};
K8k.prototype.addUploadMetadata=function(G,e){Za.prototype.addUploadMetadata.call(this,G,e);return this};var flt=[_.CS,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(G){_.i4(G).path[0]!==this&&(this.resetLayout(),G.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var G=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.id(this._layoutDebouncer,_.$h,G);_.bd(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var G=this;requestAnimationFrame(function(){G.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(G){this.resizerShouldNotify(G)&&this._notifyDescendant(G)},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 kAz=[_.PMv,{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(G,e){var r=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[G];if(!r)throw new ReferenceError(this._getUndefinedMsg(G));G=this._boundEffect(r,e||{});G.setUp();return G},
_effectsChanged:function(G,e,r){this._tearDownEffects();G&&r&&(G.split(" ").forEach(function(Z){var O;Z!==""&&((O=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[Z])?this._effects.push(this._boundEffect(O,e[Z])):console.warn(this._getUndefinedMsg(Z)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(G,e){e=e||{};var r=parseFloat(e.startsAt||0),Z=parseFloat(e.endsAt||1),O=Z-r,M=function(){};
Z=r===0&&Z===1?G.run:function(T,E){G.run.call(this,Math.max(0,(T-r)/O),E)};
return{setUp:G.setUp?G.setUp.bind(this,e):M,run:G.run?Z.bind(this):M,tearDown:G.tearDown?G.tearDown.bind(this):M}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(G){G.setUp()!==!1&&this._effectsRunFn.push(G.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(G){G.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(G,e){this._effectsRunFn&&this._effectsRunFn.forEach(function(r){r(G,e)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var G=this._clampedScrollTop;this._updateScrollState(G);this.threshold>0&&this._setThresholdTriggered(G>=this.threshold)}},
_getDOMRef:function(G){console.warn("_getDOMRef","`"+G+"` is undefined")},
_getUndefinedMsg:function(G){return"Scroll effect `"+G+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+G+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Mo`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(G){var e={};G=parseFloat(G.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(G)&&(G=.8),e.deltaBg=(this._dHeight||0)*G):(isNaN(G)&&(G=
1),e.deltaBg*=G);this._fxParallaxBackground=e},
run:function(G){var e=this._fxParallaxBackground;this.transform("translate3d(0px, "+e.deltaBg*Math.min(1,G)+"px, 0px)",e.backgroundFrontLayer);e.backgroundRearLayer&&this.transform("translate3d(0px, "+e.deltaBg*Math.min(1,G)+"px, 0px)",e.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var Hdz;var dBy;var oC$=function(){};
_.V=oC$.prototype;_.V._scrollTargetChanged=function(){};
_.V.scroll=function(){};
_.V._isValidScrollTarget=function(){};
_.V._toggleScrollListener=function(){};
_.V.toggleScrollListener=function(){};
_.V.createEffect=function(){};
_.V._effectsChanged=function(){};
_.V._layoutIfDirty=function(){};
_.V._boundEffect=function(){};
_.V._setUpEffect=function(){};
_.V._tearDownEffects=function(){};
_.V._runEffects=function(){};
_.V._scrollHandler=function(){};
_.V._scrollStateChanged=function(){};
_.V._getUndefinedMsg=function(){};
_.V.notifyResize=function(){};
_.V.assignParentResizable=function(){};
_.V.stopResizeNotificationsFor=function(){};
_.V._subscribeIronResize=function(){};
_.V._unsubscribeIronResize=function(){};
_.V.resizerShouldNotify=function(){};
_.V._onDescendantIronResize=function(){};
_.V._fireResize=function(){};
_.V._onIronRequestResizeNotifications=function(){};
_.V._parentResizableChanged=function(){};
_.V._notifyDescendant=function(){};
_.V._requestResizeNotifications=function(){};
_.V._findParent=function(){};
_.V._appResetLayoutHandler=function(){};
_.V.resetLayout=function(){};
_.V._notifyLayoutChanged=function(){};
_.V._notifyDescendantResize=function(){};
_.V._setThresholdTriggered=function(){};
oC$=_.ts({_template:function(){if(dBy!==void 0)return dBy;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;Hdz===void 0&&(Hdz=document.createElement("template"));var Z=Hdz;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return dBy=G},
is:"tp-yt-app-header",behaviors:[kAz,flt],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 G=_.i4(this.$.slot).getDistributedNodes(),e=0,r;r=G[e];e++)if(r.nodeType===Node.ELEMENT_NODE)if(r.hasAttribute("sticky")){this._stickyElRef=r;break}else this._stickyElRef||(this._stickyElRef=r);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var G=this._clampedScrollTop,e=this._height===0||G===0,r=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(G,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=r}},
_updateScrollState:function(G,e){if(this._height!==0){var r=0,Z=this._top;var O=this._maxHeaderTop;var M=G-this._lastScrollTop,T=Math.abs(M),E=G>this._lastScrollTop,b=performance.now();this._mayMove()&&(r=this._clamp(this.reveals?Z+M:G,0,O));G>=this._dHeight&&(r=this.condenses&&!this.fixed?Math.max(this._dHeight,r):r,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&T<100){if(b-this._initTimestamp>300||this._wasScrollingDown!==E)this._initScrollTop=G,this._initTimestamp=b;G>=O&&
(Math.abs(this._initScrollTop-G)>30||T>10?(E&&G>=O?r=O:!E&&G>=this._dHeight&&(r=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((r-Z)/(M/(b-this._lastTimestamp)),0,300)+"ms"):r=this._top)}O=this._dHeight===0?G>0?1:0:r/this._dHeight;e||(this._lastScrollTop=G,this._top=r,this._wasScrollingDown=E,this._lastTimestamp=b);if(e||O!==this._progress||Z!==r||G===0)this._progress=O,this._runEffects(O,r),this._transformHeader(r)}},
_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(G){this.translate3d(0,-G+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&G>=this._stickyElTop?Math.min(G,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(G,e,r){return Math.min(r,Math.max(e,G))},
_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),_.i4(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(G){switch(G){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.i4(this).querySelector("[main-title]");case "condensedTitle":return _.i4(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var s8z;var Q8z;_.ts({_template:function(){if(Q8z!==void 0)return Q8z;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;s8z===void 0&&(s8z=document.createElement("template"));var Z=s8z;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return Q8z=G},
is:"tp-yt-app-header-layout",behaviors:[flt],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.i4(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var G=this.header;if(this.isAttached&&G){this.$.wrapper.classList.remove("initializing");G.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)G.style.left=
"",G.style.right="";else{var e=this.getBoundingClientRect(),r=document.documentElement.clientWidth-e.right;G.style.left=e.left+"px";G.style.right=r+"px"}e=this.$.contentContainer.style;r=G.offsetHeight;G.fixed&&!G.condenses&&this.hasScrollingRegion?(e.marginTop=r+"px",e.paddingTop=""):(e.paddingTop=r+"px",e.marginTop="")}}});var Ilt=new _.L9("alertCommand");var pYw=new _.L9("manageLabsStateCommand");var CHy=new _.L9("inlineFormRenderer");var uow=new _.L9("playlistSidebarPrimaryInfoRenderer");var nCk=new _.L9("productDetailsThumbnailRenderer"),mBq=new _.L9("productDetailsVariantRenderer"),c2Z=new _.L9("productDetailsVariantOptionRenderer"),YV_=new _.L9("productDetailsOffersContainerRenderer"),y2q=new _.L9("productDetailsOfferRenderer");var A2z=new _.L9("shoppingFlaggingRenderer");var F8Z=new _.L9("playlistBylineRenderer");var J2k=new _.L9("insertChannelTabCommand");var Ot=function(){return _.DQ.apply(this,arguments)||this};
_.K(Ot,_.DQ);_.V=Ot.prototype;_.V.activeChanged=function(){if(this.active){var G=_.z1(this.hostElement).querySelector("#header");G&&_.xy(G,"iron-resize");window.addEventListener("scroll",_.ZQ(this,this.onScroll))}else window.removeEventListener("scroll",_.ZQ(this,this.onScroll)),_.xy(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.V.guideVisibleChanged=function(){var G=_.z1(this.hostElement).querySelector("#header");G&&_.xy(G,"iron-resize")};
_.V.onScroll=function(){var G=this;_.sm(this,"onScroll",function(){var e=_.z1(G.hostElement).querySelector("#header");e&&e.polymerController&&(e=e.polymerController.getScrollState().progress===1?"standard":"seamed",_.xy(G.hostElement,"yt-request-panel-mode-change",{mode:e}))},10)};
_.V.tabsChanged=function(){if(this.tabs){for(var G=null,e=0,r=this.tabs.length;e<r;++e){var Z=this.tabs[e].tabRenderer;if(Z&&Z.selected){G=e;break}}this.selected=G}};
_.V.onTabsActivate=function(G){_.xy(this.hostElement,"yt-navigate",{endpoint:this.tabs[G.detail.selected].tabRenderer.endpoint})};
Ot.prototype.tabsChanged=Ot.prototype.tabsChanged;Ot.prototype.guideVisibleChanged=Ot.prototype.guideVisibleChanged;Ot.prototype.activeChanged=Ot.prototype.activeChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Ot.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.UN.YtdGuideStateAwareBehavior),_.x("design:type",Object)],Ot.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.n(),_.x("design:type",Array)],Ot.prototype,"tabs",void 0);
_.B([_.n(),_.x("design:type",Object)],Ot.prototype,"selected",void 0);_.B([_.n(),_.x("design:type",Boolean)],Ot.prototype,"active",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ot.prototype,"disableHeaderFluidWidth",void 0);_.B([_.Me("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ot.prototype,"activeChanged",null);
_.B([_.Me("guidePersistentAndVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ot.prototype,"guideVisibleChanged",null);_.B([_.Me("tabs"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ot.prototype,"tabsChanged",null);_.B([_.Em()],Ot);var BWt=[_.W.YtRendererBehavior,_.UN.YtdGuideStateAwareBehavior,Ot.prototype];var xBy=2/3,PHt=_.L1(130749),UBq=function(G,e){var r=this;this.element=G;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){r.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:xBy,moveAction:function(Z){r.moveAction(Z)},
triggerAction:function(){r.element.isReloading=!0;_.sb(_.h_(),{visualElement:PHt});_.Ga.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:r.element}})}}}};
_.KE(_.h_(),PHt,this.layer);this.gesture=new _.uk(G,e,this.refreshConfig,"pan-down");this.attach()};
_.V=UBq.prototype;_.V.attach=function(){this.gesture.attach()};
_.V.detach=function(){this.gesture.detach()};
_.V.reset=function(){this.element.close()};
_.V.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.V.moveAction=function(G){this.element.rotation=G*360};var zmz=_.L1(130750),NWy=function(G,e,r,Z,O){var M=this;this.element=G;this.parent=r;this.channelHeader=Z;this.ytdReduxDispatch=O;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){M.tabsStartAtInPx=M.channelHeader.clientHeight-48;var T;(T=M.selectedTab)!=null&&T.title&&(T=_.v_().resolve(_.bq(_.y$)))&&(T=T.getCurrentPage(),M.lastVisitedTabScrollPosition=T.getScrollTop(),M.previousTab&&
((M.lastVisitedTabScrollPosition===void 0?0:M.lastVisitedTabScrollPosition<M.channelHeader.clientHeight-48)?M.scrollPositionForTabs.has(M.selectedTab.title)&&M.scrollPositionForTabs.delete(M.selectedTab.title):M.scrollPositionForTabs.set(M.selectedTab.title,T.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:W8z(),triggerAction:function(){M.navigate(M.previousTab)},
moveAction:function(T,E){M.moveAction(T,E)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-W8z(),triggerAction:function(){M.navigate(M.nextTab)},
moveAction:function(T,E){M.moveAction(T,E)}}}};
_.KE(_.h_(),zmz,this.layer);this.gesture=new _.uk(G,e,this.tabConfig);this.attach()};
_.V=NWy.prototype;_.V.attach=function(){this.gesture.attach()};
_.V.detach=function(){this.gesture.detach()};
_.V.tabsChanged=function(G){if(G){var e=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;G=_.h(G);for(var r=G.next();!r.done;r=G.next()){r=r.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=r);var Z=void 0;if((Z=r)==null?0:Z.selected)this.previousTab=e,this.selectedTab=r;e=r}e=this.gesture;G=this.getConfig();e.config=G;this.scrollPositionNeedsUpdate=!0}};
_.V.getConfig=function(){return 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}})};
_.V.moveAction=function(G,e){if(!this.tabsElement){var r;this.tabsElement=(r=this.parent.header)==null?void 0:r.tabsElement;e==="right"&&this.previousTab?(r=this.previousTab.endpoint,_.rAA(_.v_().resolve(_.vz),r,{},"")):e==="left"&&this.nextTab&&(r=this.nextTab.endpoint,_.rAA(_.v_().resolve(_.vz),r,{},""));if(!this.tabsElement)return}r=this.tabsElement._pos;e==="right"&&(G*=-1);this.tabsElement._positionBar(r.width,r.left*1+r.width*G)};
var W8z=function(){var G,e;return(e=(G=_.v_().resolve(_.y$).getCurrentPage())==null?void 0:G.clientWidth)!=null?e:0};
NWy.prototype.navigate=function(G){this.element.data=void 0;if(G=G==null?void 0:G.endpoint)this.ytdReduxDispatch(alz(!0)),_.sb(_.h_(),{visualElement:zmz}),_.Ga.instance.resolveCommand({navigateAction:{endpoint:G}},{form:{element:this.element}})};var L8$;var GqX;var MV=function(){return _.m.apply(this,arguments)||this};
_.K(MV,_.m);MV.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],MV.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],MV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],MV.prototype,"data",void 0);_.B([_.c({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],MV);
_.A(MV,"ytd-labs-edit-renderer",function(){if(GqX!==void 0)return GqX;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return GqX=G},{mode:1});var eXw;var VG=function(){var G=_.m.apply(this,arguments)||this;G.dark=!1;G.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";G.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.K(VG,_.m);VG.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
VG.prototype.ready=function(){var G=document.documentElement.hasAttribute("dark");this.setBackgroundImage(G);this.dark=G};
VG.prototype.onDarkModeToggledAction=function(G){this.setBackgroundImage(G);this.dark=G};
VG.prototype.setBackgroundImage=function(G){_.eD(this.hostElement,{"--yt-labs-header-background":"url("+(G?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],VG.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],VG.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],VG.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],VG.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],VG.prototype,"dark",void 0);
_.B([_.c({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],VG);
_.A(VG,"ytd-labs-header-renderer",function(){if(eXw!==void 0)return eXw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return eXw=G},{mode:1});var rtZ;var hk=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return G};
_.K(hk,_.m);hk.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"}}}}}};
hk.prototype.onYtToggleButton=function(G){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",G.detail.toggled)};
hk.prototype.onManageLabsState=function(G){if(G=_.a(G,pYw))G.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?G.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&G.labsItemId===this.data.labsItemId&&(G.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.Pi(this.hostElement,"yt-check-labs-opted-in-state").some(function(e){return e})&&this.data.confirmationDialogCommand?_.Wi(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.v_().resolve(_.$1).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&G.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.v_().resolve(_.$1).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
hk.prototype.onCheckLabsOptedInState=function(){var G=this.get("data.primaryButton.toggleButtonRenderer");return G?G.isToggled:!1};
_.iY.Object.defineProperties(hk.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
hk.prototype.onYtToggleButton=hk.prototype.onYtToggleButton;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],hk.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],hk.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],hk.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],hk.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],hk.prototype,"itemStyle",null);_.B([_.Om("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],hk.prototype,"onYtToggleButton",null);_.B([_.c({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],hk);
_.A(hk,"ytd-labs-item-renderer",function(){if(rtZ!==void 0)return rtZ;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return rtZ=G},{mode:1});var Zjy;var Ojt;var MZv=function(){return _.m.apply(this,arguments)||this};
_.K(MZv,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],MZv.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],MZv.prototype,"data",void 0);_.B([_.c({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],MZv);
_.A(MZv,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(Ojt!==void 0)return Ojt;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Ojt=G},{mode:1});var VZt;var Td=function(){return _.m.apply(this,arguments)||this};
_.K(Td,_.m);Td.prototype.observeSuperchatChip=function(){if(this.data){var G={"--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)};_.eD(this.hostElement,G)}};
Td.prototype.colorFromDecimal=function(G){return _.jF(Number(G||0))};
Td.prototype.observeSuperchatChip=Td.prototype.observeSuperchatChip;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Td.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Td.prototype,"data",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Td.prototype,"observeSuperchatChip",null);_.B([_.c({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],Td);
_.A(Td,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(VZt!==void 0)return VZt;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return VZt=G},{mode:1});var Da=function(){return _.m.apply(this,arguments)||this};
_.K(Da,_.m);Da.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"}}}};
_.iY.Object.defineProperties(Da.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Da.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Da.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.J5),_.x("design:type",Object)],Da.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Da.prototype,"data",void 0);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Da.prototype,"hideMessageBlock",null);
_.B([_.c({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Da);
_.A(Da,"ytd-live-chat-history-entry-renderer",function(){if(Zjy!==void 0)return Zjy;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Zjy=G},{mode:1});var hXk;var Tzz=function(){return _.m.apply(this,arguments)||this};
_.K(Tzz,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Tzz.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Tzz.prototype,"data",void 0);_.B([_.c({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],Tzz);
_.A(Tzz,"ytd-channel-options-renderer",function(){if(hXk!==void 0)return hXk;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return hXk=G},{mode:1});var DZ2;var Et=function(){return _.m.apply(this,arguments)||this};
_.K(Et,_.m);Et.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Et.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Et.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Et.prototype,"data",void 0);_.B([_.c({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],Et);
_.A(Et,"ytd-settings-email-item-renderer",function(){if(DZ2!==void 0)return DZ2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return DZ2=G},{mode:1});var E$X;var iP=function(){return _.m.apply(this,arguments)||this};
_.K(iP,_.m);iP.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"}}}};
iP.prototype.getExpansionIcon=function(G){return G?"COLLAPSE":"EXPAND"};
iP.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.iY.Object.defineProperties(iP.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],iP.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],iP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],iP.prototype,"data",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],iP.prototype,"expanded",void 0);_.B([_.d("expanded"),_.x("design:type",String),_.x("design:paramtypes",[])],iP.prototype,"emailListExpanded",null);
_.B([_.hs("#options"),_.x("design:type",Object)],iP.prototype,"options",void 0);_.B([_.c({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],iP);
_.A(iP,"ytd-settings-email-list-renderer",function(){if(E$X!==void 0)return E$X;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return E$X=G},{mode:1});var ij2;var bP=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return G};
_.K(bP,_.m);bP.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"}}}};
bP.prototype.handleSignalActionSubmitForm=function(){var G,e=(G=this.formRenderer)==null?void 0:G.getForm();e&&this.data.serviceEndpoint&&_.v_().resolve(_.$1).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},e,{element:this.hostElement})})};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],bP.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],bP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],bP.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],bP.prototype,"data",void 0);_.B([_.hs("yt-form-renderer"),_.x("design:type",Object)],bP.prototype,"formRenderer",void 0);
_.B([_.c({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],bP);
_.A(bP,"ytd-settings-gaia-link-renderer",function(){if(ij2!==void 0)return ij2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return ij2=G},{mode:1});var bjz;var vI=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return G};
_.K(vI,_.m);vI.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.p1B()&&this.set("data.hidden",!1)};
vI.prototype.onSwitchReady=function(){var G=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.R("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.ICo().then(function(e){e&&(Notification.permission==="default"?G.set("data.hidden",!1):Notification.permission==="granted"&&_.Hq("NotificationsDisabled").then(function(r){r||_.Pi(G.hostElement,"yt-toggle-settings-switch",[G.data.id,!r]);G.set("data.hidden",!1)}).catch(function(){}))})})};
vI.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}}}}};
vI.prototype.handleUpdateOptionsCommand=function(G){(G=_.a(G,_.ThS))&&this.data&&this.data.id===G.id&&(this.set("data.hidden",G.hidden),G.text!==void 0&&this.set("data.text",G.text),G.clearOptions&&this.set("data.options",[]))};
vI.prototype.onSwitchReady=vI.prototype.onSwitchReady;vI.prototype.dataChanged=vI.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],vI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],vI.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],vI.prototype,"data",void 0);
_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vI.prototype,"dataChanged",null);_.B([_.Om("yt-settings-switch-ready"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vI.prototype,"onSwitchReady",null);_.B([_.c({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],vI);
_.A(vI,"ytd-settings-options-renderer",function(){if(bjz!==void 0)return bjz;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return bjz=G},{mode:1});var v$y;var w$=function(){return _.m.apply(this,arguments)||this};
_.K(w$,_.m);w$.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
w$.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
w$.prototype.onYtExpanderMoreTapped=w$.prototype.onYtExpanderMoreTapped;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],w$.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],w$.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],w$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],w$.prototype,"data",void 0);
_.B([_.Om("yt-expander-more-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],w$.prototype,"onYtExpanderMoreTapped",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],w$);
_.A(w$,"ytd-product-details-description-renderer",function(){if(v$y!==void 0)return v$y;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return v$y=G},{mode:1});var ww_;var $n=function(){var G=_.m.apply(this,arguments)||this;G.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";G.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";G.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";G.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return G};
_.K($n,_.m);$n.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.iY.Object.defineProperties($n.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var G,e;return((G=this.data)==null?void 0:(e=G.offerData)==null?void 0:e.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var G,e;return((G=this.data)==null?void 0:G.purchaseButtonRenderers)!==void 0&&((e=this.data)==null?void 0:e.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var G,e;return!((G=this.data)==null||!G.formattedFromMerchantText)&&(!((e=this.data)==null||!e.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],$n.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],$n.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],$n.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],$n.prototype,"data",void 0);
_.B([_.n({type:_.R("kevlar_property_type_migration_killswitch")?String:void 0}),_.x("design:type",Object)],$n.prototype,"shippingIcon",void 0);_.B([_.n({type:_.R("kevlar_property_type_migration_killswitch")?String:void 0}),_.x("design:type",Object)],$n.prototype,"shippingAddressIcon",void 0);_.B([_.n({type:_.R("kevlar_property_type_migration_killswitch")?String:void 0}),_.x("design:type",Object)],$n.prototype,"googleGuaranteeIcon",void 0);
_.B([_.n({type:_.R("kevlar_property_type_migration_killswitch")?String:void 0}),_.x("design:type",Object)],$n.prototype,"returnPolicyIcon",void 0);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],$n.prototype,"showAdditionalFees",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],$n.prototype,"showMultiPurchaseButtons",null);
_.B([_.d("data","showMultiPurchaseButtons"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],$n.prototype,"showPurchaseData",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],$n);
_.A($n,"ytd-product-details-hero-offer-renderer",function(){if(ww_!==void 0)return ww_;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return ww_=G},{mode:1});var $ZX;var Skj;var Sd=function(){return _.m.apply(this,arguments)||this};
_.K(Sd,_.m);_.V=Sd.prototype;_.V.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.V.onKeyDown=function(G){G=G.keyCode;G!==13&&G!==32||this.handleSelection()};
_.V.onMouseEnterImage=function(){var G;((G=this.data)==null?void 0:G.thumbnailDetails)!==void 0&&_.UW(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.V.onMouseLeaveImage=function(){_.UW(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.V.handleSelection=function(){this.data&&_.xy(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.iY.Object.defineProperties(Sd.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.isSelected)}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Sd.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Sd.prototype,"data",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Sd.prototype,"isSelected",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],Sd);
_.A(Sd,"ytd-product-details-thumbnail-renderer",function(){if(Skj!==void 0)return Skj;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Skj=G},{mode:1});var qV=function(){var G=_.m.apply(this,arguments)||this;var e={};G.actionMap=(e["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",e["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",e);G.selectedThumbnailIndex=0;G.selectItem=function(r){r.target.onKeyDown(r)};
return G};
_.K(qV,_.m);_.V=qV.prototype;_.V.handlePreviewImageSelect=function(G){this.hoverThumbnail=G};
_.V.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.V.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.V.onThumbnailSelected=function(G,e){this.selectedThumbnailIndex=e};
_.V.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.V.updateOffset=function(){var G=_.z1(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-G));this.ytdHorizontalListBehavior.reposition_()};
_.iY.Object.defineProperties(qV.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null?0:G.imageRenderer){var e,r;return((e=this.data)==null?void 0:(r=e.imageRenderer)==null?void 0:r.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var G;if((G=this.data)==null?0:G.imageRenderer){var e;return(e=_.a(this.data.imageRenderer[this.selectedThumbnailIndex],nCk))==null?void 0:e.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var G=this,e,r,Z,O=(Z=(e=this.data)==null?void 0:(r=e.imageRenderer)==null?void 0:r.map(function(M,T){return{productDetailsThumbnailRenderer:Object.assign({},_.a(M,nCk),{index:T,isSelected:T===G.selectedThumbnailIndex})}}))!=null?Z:[];
return Object.assign({},this.data,{imageRenderer:O})}}});
qV.prototype.updateOffset=qV.prototype.updateOffset;qV.prototype.dataChanged=qV.prototype.dataChanged;qV.prototype.onThumbnailSelected=qV.prototype.onThumbnailSelected;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],qV.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],qV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.E1.YtdHorizontalListBehavior),_.x("design:type",Object)],qV.prototype,"ytdHorizontalListBehavior",void 0);
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],qV.prototype,"componentBehavior",void 0);_.B([_.k([_.gF.YtActionHandlerBehavior]),_.x("design:type",Object)],qV.prototype,"actionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],qV.prototype,"data",void 0);_.B([_.n({value:"$.items.children"}),_.x("design:type",String)],qV.prototype,"itemsPath",void 0);_.B([_.n({value:3}),_.x("design:type",Number)],qV.prototype,"initialCount",void 0);
_.B([_.hs("#items"),_.x("design:type",Object)],qV.prototype,"items",void 0);_.B([_.n(),_.x("design:type",Object)],qV.prototype,"selectedThumbnailIndex",void 0);_.B([_.n(),_.x("design:type",Object)],qV.prototype,"hoverThumbnail",void 0);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],qV.prototype,"showThumbnails",null);
_.B([_.Om("ytd-product-details-thumbnail-renderer-selected"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Number]),_.x("design:returntype")],qV.prototype,"onThumbnailSelected",null);_.B([_.d("data","selectedThumbnailIndex","hoverThumbnail"),_.x("design:type",Object),_.x("design:paramtypes",[])],qV.prototype,"thumbnailDetails",null);_.B([_.d("data","selectedThumbnailIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],qV.prototype,"populatedData",null);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qV.prototype,"dataChanged",null);_.B([_.Om("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qV.prototype,"updateOffset",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],qV);
_.A(qV,"ytd-product-details-image-carousel-renderer",function(){if($ZX!==void 0)return $ZX;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return $ZX=G},{mode:_.Px("kevlar_poly_si_batch_j079")?1:2});var qkz;var tk=function(){return _.m.apply(this,arguments)||this};
_.K(tk,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],tk.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],tk.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],tk.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],tk.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],tk);
_.A(tk,"ytd-product-details-offer-renderer",function(){if(qkz!==void 0)return qkz;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return qkz=G},{mode:1});var tZX;var g$=function(){var G=_.m.apply(this,arguments)||this;G.isOffersHidden=!0;return G};
_.K(g$,_.m);g$.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var G,e=_.a((G=this.data)==null?void 0:G.viewOffersButton,_.zM);e&&this.ytRendererBehavior.logExplicitClick(e)};
g$.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.iY.Object.defineProperties(g$.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var G,e,r,Z;return(r=_.a((G=this.data)==null?void 0:(e=G.offers)==null?void 0:e[0],y2q))==null?void 0:(Z=r.offerData)==null?void 0:Z.vendorLogoUrl}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],g$.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],g$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],g$.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],g$.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],g$.prototype,"isOffersHidden",void 0);
_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],g$.prototype,"firstOfferVendorLogoUrl",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],g$);
_.A(g$,"ytd-product-details-offers-container-renderer",function(){if(tZX!==void 0)return tZX;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return tZX=G},{mode:1});var g$_;var lvk;var lP=function(){return _.m.apply(this,arguments)||this};
_.K(lP,_.m);lP.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
lP.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.UW(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
lP.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.UW(this,"ytd-product-details-variant-image-unselect")};
_.iY.Object.defineProperties(lP.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 G;return((G=this.data)==null?void 0:G.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return((G=this.data)==null?void 0:G.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((e=this.data)==null?void 0:e.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((r=this.data)==null?void 0:r.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var G;if(((G=this.data)==null?void 0:G.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var G,e;return this.isUnavailable?(G=this.data)==null?void 0:G.variantOptionUnavailableAccessibilityLabel:(e=this.data)==null?void 0:e.variantOptionAccessibilityLabel}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],lP.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],lP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],lP.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],lP.prototype,"data",void 0);_.B([_.n(),_.x("design:type",String)],lP.prototype,"displayType",void 0);
_.B([_.d("displayType","data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],lP.prototype,"isImageButton",null);_.B([_.d("displayType","data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],lP.prototype,"isPillButton",null);_.B([_.d("data"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],lP.prototype,"isActive",null);
_.B([_.d("data"),_.n({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],lP.prototype,"isUnavailable",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],lP.prototype,"thumbnailDetails",null);_.B([_.d("isUnavailable","data"),_.x("design:type",Object),_.x("design:paramtypes",[])],lP.prototype,"accessibilityLabel",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],lP);
_.A(lP,"ytd-product-details-variant-option-renderer",function(){if(lvk!==void 0)return lvk;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return lvk=G},{mode:1});var RXz;var Rt=function(){var G=_.m.apply(this,arguments)||this;G.variantsExpanded=!1;G.hideShowMoreLessVariantButton=!0;G.initialized=!1;G.computeVariantsDebouncer=null;G.computeVariants=function(e){e=e===void 0?!1:e;G.variantsExpanded||G.showOptions()||!e||(G.variantsExpanded=!0);if(G.variantsExpanded){e=_.h(G.items.children);for(var r=e.next();!r.done;r=e.next())r.value.hidden=!1}G.initialized=!0};
return G};
_.K(Rt,_.m);_.V=Rt.prototype;_.V.ready=function(){var G=this;setTimeout(function(){G.computeVariants(!0)})};
_.V.showOptions=function(){for(var G=_.h(this.items.children),e=G.next();!e.done;e=G.next())e.value.hidden=!0;var r=this.container.getBoundingClientRect().width,Z=0,O=G=0;e=!1;for(var M=_.h(this.items.children),T=M.next();!T.done;T=M.next()){T=T.value;T.hidden=!1;var E=T.getBoundingClientRect().width;if(Z+E<r)Z+=E;else if(++O<2)Z=E;else break;G+=1;T.hasAttribute("is-active")&&(e=!0)}for(r=G;r<this.items.children.length;r++)this.items.children[r].hidden=!0;this.hideShowMoreLessVariantButton=G===this.items.children.length;
return e};
_.V.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.id(this.computeVariantsDebouncer,_.L7.after(100),this.computeVariants)};
_.V.onShowMoreLessVariantsButtonClick=function(){var G;(G=this.data)!=null&&G.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.V.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.iY.Object.defineProperties(Rt.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var G,e,r=(G=this.data)==null?void 0:(e=G.variantOptionRenderers)==null?void 0:e.find(function(M){return _.a(M,c2Z).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),Z,O;
return(O=(Z=_.a(r,c2Z))==null?void 0:Z.name)!=null?O:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.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"}}}});
Rt.prototype.debouncedComputeVariants=Rt.prototype.debouncedComputeVariants;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Rt.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Rt.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Rt.prototype,"componentBehavior",void 0);_.B([_.k(_.CS),_.x("design:type",Object)],Rt.prototype,"ironResizableBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],Rt.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],Rt.prototype,"variantsExpanded",void 0);_.B([_.n(),_.x("design:type",Object)],Rt.prototype,"hideShowMoreLessVariantButton",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Rt.prototype,"initialized",void 0);_.B([_.hs("#items"),_.x("design:type",HTMLDivElement)],Rt.prototype,"items",void 0);_.B([_.hs("#container"),_.x("design:type",HTMLDivElement)],Rt.prototype,"container",void 0);
_.B([_.hs("#more-variants-button"),_.x("design:type",HTMLElement)],Rt.prototype,"moreVariantsButton",void 0);_.B([_.d("data"),_.x("design:type",String),_.x("design:paramtypes",[])],Rt.prototype,"selectedOptionName",null);_.B([_.Me("data","variantsExpanded"),_.Om("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Rt.prototype,"debouncedComputeVariants",null);
_.B([_.d("data"),_.x("design:type",String),_.x("design:paramtypes",[])],Rt.prototype,"displayType",null);_.B([_.d("displayType"),_.x("design:type",Object),_.x("design:paramtypes",[])],Rt.prototype,"variantItemsClassname",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],Rt);
_.A(Rt,"ytd-product-details-variant-renderer",function(){if(RXz!==void 0)return RXz;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return RXz=G},{mode:1});var jd=function(){return _.m.apply(this,arguments)||this};
_.K(jd,_.m);
jd.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"}}}};
_.iY.Object.defineProperties(jd.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var G,e,r=(e=_.a((G=this.data)==null?void 0:G.offersContainerRenderer,YV_))==null?void 0:e.offers;return r!==void 0&&(r==null?void 0:r.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 G,e,r;return((r=(G=this.data)==null?void 0:(e=G.variants)==null?void 0:e.map(function(Z){var O,M;Z=(M=(O=_.a(Z,mBq))==null?void 0:O.variantOptionRenderers)==null?void 0:M.find(function(E){var b;return((b=_.a(E,c2Z))==null?void 0:b.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var T;return(T=_.a(Z,c2Z))==null?void 0:T.name}).filter(function(Z){return typeof Z==="string"}))!=null?r:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var G,e,r,Z=(e=_.a((G=this.data)==null?void 0:G.shoppingFlaggingRenderer,A2z))==null?void 0:(r=e.reportButton)==null?void 0:r.buttonRenderer;if(Z)return{text:Z.text,command:Z.command,icon:{iconType:"FLAG"},accessibilityData:Z.accessibilityData,trackingParams:Z.trackingParams,loggingDirectives:Z.loggingDirectives}}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],jd.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],jd.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],jd.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],jd.prototype,"data",void 0);_.B([_.hs("#image-carousel-renderer"),_.x("design:type",Object)],jd.prototype,"imageCarouselRenderer",void 0);
_.B([_.hs("#hero-offer-renderer"),_.x("design:type",Object)],jd.prototype,"productDetailsHeroOfferRenderer",void 0);_.B([_.hs("#variants"),_.x("design:type",Object)],jd.prototype,"productDetailsVariantRenderer",void 0);_.B([_.hs("#offers"),_.x("design:type",Object)],jd.prototype,"productDetailsOffersContainerRenderer",void 0);_.B([_.hs("#description-renderer"),_.x("design:type",Object)],jd.prototype,"productDetailsDescriptionRenderer",void 0);
_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jd.prototype,"showPurchaseData",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jd.prototype,"showHeroOfferRenderer",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jd.prototype,"showBrandText",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jd.prototype,"showOffers",null);
_.B([_.d("showOffers","showPurchaseData"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jd.prototype,"showBuySeparator",null);_.B([_.d("showOffers","showPurchaseData"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jd.prototype,"showBuyCard",null);_.B([_.d("data"),_.x("design:type",String),_.x("design:paramtypes",[])],jd.prototype,"selectedVariantsText",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],jd.prototype,"shoppingReportingButtonData",null);
_.B([_.c({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],jd);
_.A(jd,"ytd-product-details-renderer",function(){if(g$_!==void 0)return g$_;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return g$_=G},{mode:1});var j2w;var avw;var XwZ;var at=function(){return _.m.apply(this,arguments)||this};
_.K(at,_.m);at.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.iY.Object.defineProperties(at.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],at.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],at.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],at.prototype,"data",void 0);_.B([_.n(),_.x("design:type",String)],at.prototype,"formattedAmount",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],at.prototype,"ariaLabel",void 0);
_.B([_.n({reflectToAttribute:!0}),_.d("data.style"),_.x("design:type",String),_.x("design:paramtypes",[])],at.prototype,"vcBalanceWidgetStyle",null);_.B([_.aR({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],at);
_.A(at,"yt-vc-balance-renderer",function(){if(XwZ===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;avw===void 0&&(avw=document.createElement("template"));var Z=avw;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);XwZ=G}G=XwZ;return G},{mode:2});_.te("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var XU=function(){return _.m.apply(this,arguments)||this};
_.K(XU,_.m);_.iY.Object.defineProperties(XU.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:""}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],XU.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],XU.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],XU.prototype,"data",void 0);_.B([_.n({selectorArgs:["data.vcBalanceEntityKey"],selector:function(G,e){return _.e6(G.entities,"vcBalanceEntity",e)}}),
_.x("design:type",Object)],XU.prototype,"vcBalanceEntity",void 0);_.B([_.d("vcBalanceEntity"),_.x("design:type",String),_.x("design:paramtypes",[])],XU.prototype,"formattedAmount",null);_.B([_.d("vcBalanceEntity"),_.x("design:type",String),_.x("design:paramtypes",[])],XU.prototype,"vcBalanceAriaLabel",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],XU);
_.A(XU,"ytd-vc-balance-renderer",function(){if(j2w!==void 0)return j2w;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return j2w=G},{mode:1});var K_$;var K4=function(){var G=_.m.apply(this,arguments)||this;G.rotation=0;G.isReloading=!1;return G};
_.K(K4,_.m);K4.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
K4.prototype.reset=function(){this.hostElement.style.opacity=""};
K4.prototype.close=function(){var G=this;return _.D(function(e){if(e.nextAddress==1)return e.yield(G.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);G.hostElement.style.opacity="0";_.HL(e)})};
K4.prototype.rotationChanged=K4.prototype.rotationChanged;_.B([_.n(),_.x("design:type",Object)],K4.prototype,"rotation",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],K4.prototype,"isReloading",void 0);_.B([_.hs("#icon"),_.x("design:type",HTMLElement)],K4.prototype,"icon",void 0);_.B([_.Me("rotation"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],K4.prototype,"rotationChanged",null);
_.B([_.c({disableElementRegistration:!0,is:"ytd-refresh"})],K4);
_.A(K4,"ytd-refresh",function(){if(K_$!==void 0)return K_$;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return K_$=G},{mode:1});var fvt;var f4=function(){return _.m.apply(this,arguments)||this};
_.K(f4,_.m);f4.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"}}}};
f4.prototype.dataChanged=function(){if(this.data){var G=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var e=_.BQ(this.data.banner.thumbnails,this.hostElement.clientWidth);e&&(e.indexOf("//")===0&&(e="https:"+e),this.hasBannerArt=!0,_.eD(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+e+")"}))}this.hasBannerArt!==G&&_.z1(this.hostElement).querySelector("#header").fire("iron-resize")}};
f4.prototype.updateSelectedFromBinding=function(G){this.selected=G.detail.value};
f4.prototype.dataChanged=f4.prototype.dataChanged;_.B([_.k(BWt),_.x("design:type",Object)],f4.prototype,"ytdTabbedHeaderBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],f4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.x9),_.x("design:type",Object)],f4.prototype,"ytdGridStateAwareBehavior",void 0);_.B([_.k(_.UN.YtdGuideStateAwareBehavior),_.x("design:type",Object)],f4.prototype,"ytdGuideStateAwareBehavior",void 0);
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],f4.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],f4.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Number)],f4.prototype,"selected",void 0);_.B([_.n(),_.x("design:type",Boolean)],f4.prototype,"active",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],f4.prototype,"hasBannerArt",void 0);
_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],f4.prototype,"dataChanged",null);_.B([_.c({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],f4);
_.A(f4,"ytd-interactive-tabbed-header-renderer",function(){if(fvt!==void 0)return fvt;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return fvt=G},{mode:1});var kqX;var kn=function(){return _.m.apply(this,arguments)||this};
_.K(kn,_.m);kn.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
kn.prototype.computeActionsAlignment=function(G){return(G==null?void 0:G.actionsAlignment)||""};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],kn.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],kn.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],kn.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.x("design:type",String)],kn.prototype,"actionsAlignment",void 0);_.B([_.c({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],kn);
_.A(kn,"ytd-page-footer-renderer",function(){if(kqX!==void 0)return kqX;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return kqX=G},{mode:1});var Hjt;var dZv;var HI=function(){var G=_.m.apply(this,arguments)||this;G.isEditing=!1;G.useSlot=!1;G.isMultiline=!1;return G};
_.K(HI,_.m);_.V=HI.prototype;_.V.onKeydown=function(G){if(G.keyCode===13&&!this.isMultiline)this.onSave();else if(G.keyCode===27)this.onCancel()};
_.V.computeComponentStyle=function(G){return(G==null?0:G.style)?G.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.V.computeisMultiline=function(G){if(this.multilineOverride!==void 0)return this.multilineOverride;var e,r;return!!(G==null?0:(e=G.formField)==null?0:(r=e.textInputFormFieldRenderer)==null?0:r.isMultiline)};
_.V.computeTextDisplayed=function(G,e){if(G)return G;if(e)return e};
_.V.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.V.onSave=function(){if(this.textForm.validate()){this.textForm.save();var G=this.textForm.value;if(G)this.set("data.textDisplayed",_.nQ(G));else{var e;((e=this.data)==null?0:e.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.eG("inline-form-changed",this.data));this.isEditing=!1}};
_.V.onCancel=function(){var G=_.mG(this.data.textDisplayed);G===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(G);this.isEditing=!1};
HI.prototype.onKeydown=HI.prototype.onKeydown;_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],HI.prototype,"ytEventForwardingBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],HI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],HI.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],HI.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],HI.prototype,"isEditing",void 0);_.B([_.n(),_.x("design:type",Object)],HI.prototype,"useSlot",void 0);_.B([_.n(),_.x("design:type",Boolean)],HI.prototype,"multilineOverride",void 0);_.B([_.n(),_.x("design:type",Boolean)],HI.prototype,"enableOverlayTheme",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.x("design:type",String)],HI.prototype,"componentStyle",void 0);
_.B([_.n({computed:"computeisMultiline(data)"}),_.x("design:type",Object)],HI.prototype,"isMultiline",void 0);_.B([_.hs("#text-form"),_.x("design:type",Object)],HI.prototype,"textForm",void 0);_.B([_.Om("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],HI.prototype,"onKeydown",null);_.B([_.c({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],HI);
_.A(HI,"ytd-inline-form-renderer",function(){if(dZv!==void 0)return dZv;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return dZv=G},{mode:1});var o$Z;var d$=function(){var G=_.m.apply(this,arguments)||this;G.previousSelectValue=void 0;G.selectedItemMessage=void 0;return G};
_.K(d$,_.m);d$.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
d$.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var G,e,r,Z,O=(G=this.data)==null?void 0:(e=G.dropdown)==null?void 0:(r=e.dropdownRenderer)==null?void 0:(Z=r.entries)==null?void 0:Z.map(function(E){return E.privacyDropdownItemRenderer});
G=_.h(O!=null?O:[]);for(e=G.next();!e.done;e=G.next())if((e=e.value)&&e.int32Value===this.selectedValue){this.selectedItemMessage=e.itemMessage;break}}else this.selectedItemMessage=void 0;var M;(M=this.onValueChanged)==null||M.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var T;(T=this.data)!=null&&T.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
d$.prototype.onValueChangedForSelectedValue=function(G){this.selectedValue=G.detail.value};
d$.prototype.selectedValueChanged=d$.prototype.selectedValueChanged;_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],d$.prototype,"ytEventForwardingBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],d$.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],d$.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],d$.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],d$.prototype,"data",void 0);_.B([_.n(),_.x("design:type",String)],d$.prototype,"theme",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Number)],d$.prototype,"selectedValue",void 0);_.B([_.n(),_.x("design:type",Function)],d$.prototype,"onValueChanged",void 0);
_.B([_.iD("selectedValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],d$.prototype,"selectedValueChanged",null);_.B([_.c({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],d$);
_.A(d$,"ytd-dropdown-form-field-renderer",function(){if(o$Z!==void 0)return o$Z;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return o$Z=G},{mode:_.Px("kevlar_poly_si_batch_j025")?1:2});var s2k;var ot=function(){return _.m.apply(this,arguments)||this};
_.K(ot,_.m);_.iY.Object.defineProperties(ot.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var G=[],e=_.h(this.data||[]),r=e.next();!r.done;r=e.next())(r=_.a(r.value,F8Z))&&G.push(r);return G}}});
_.B([_.n(),_.x("design:type",Array)],ot.prototype,"data",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ot.prototype,"byline",null);_.B([_.c({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],ot);
_.A(ot,"ytd-playlist-byline-renderer",function(){if(s2k!==void 0)return s2k;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return s2k=G},{mode:1});var Q2t;var st=function(){var G=_.m.apply(this,arguments)||this;G.rtlBullet=_.R("web_playlist_stats_rtl_bullet_icon_killswitch");G.modern=_.R("web_modern_buttons");G.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return G};
_.K(st,_.m);_.V=st.prototype;_.V.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"}}}}};
_.V.attached=function(){};
_.V.computeIsCustomThumbnail=function(G){return G?!!G.playlistCustomThumbnailRenderer:!1};
_.V.onYtNavigate=function(G,e){if(e&&e.actions&&e.actions.indexOf("shuffle")>-1){G=_.v_().resolve(_.Gt);var r=e.tempData||{};r.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);e.tempData=r;G.isShuffleNextPlaylist=!0}};
_.V.onUpdatePlaylistAction=function(G){var e;G=(e=_.a(G,_.nMl))==null?void 0:e.updatedRenderer;if(e=_.a(G,uow))this.data=e};
_.V.computeStyleType=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.V.computeThumbnailWidth=function(G){return G==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.V.computeHideThumbnailAria=function(G){if(G==null?0:G.thumbnailOverlays)for(var e=0;e<G.thumbnailOverlays.length;e++){var r=void 0;if((r=G.thumbnailOverlays[e])==null?0:r.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
st.prototype.onYtNavigate=st.prototype.onYtNavigate;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],st.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],st.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],st.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],st.prototype,"ytComponentBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],st.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],st.prototype,"rtlBullet",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.x("design:type",String)],st.prototype,"styleType",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.x("design:type",Number)],st.prototype,"thumbnailWidth",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],st.prototype,"modern",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.x("design:type",Boolean)],st.prototype,"isCustomThumbnail",void 0);_.B([_.Om("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[Event,Object]),_.x("design:returntype")],st.prototype,"onYtNavigate",null);_.B([_.c({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],st);
_.A(st,"ytd-playlist-sidebar-primary-info-renderer",function(){if(Q2t!==void 0)return Q2t;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Q2t=G},{mode:1});var Ivy;var QG=function(){return _.m.apply(this,arguments)||this};
_.K(QG,_.m);QG.prototype.computeOwnerVisibility=function(G){return!(!G.videoOwner&&!G.button)};
QG.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"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],QG.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],QG.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],QG.prototype,"data",void 0);_.B([_.c({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],QG);
_.A(QG,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(Ivy!==void 0)return Ivy;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Ivy=G},{mode:1});var pw2;var It=function(){var G=_.m.apply(this,arguments)||this;G.expanded=!1;G.isCompact=!1;return G};
_.K(It,_.m);_.V=It.prototype;_.V.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.V.dataChanged=function(){this.data&&_.Te(_.z1(this.text),_.xgc(_.z1P,_.mG(this.data.text||null)))};
_.V.computeAutoScrollEnabled=function(G,e){return G&&!e};
_.V.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.V.toggleOnTap=function(){this.expanded=!this.expanded};
It.prototype.expandedChanged=It.prototype.expandedChanged;It.prototype.dataChanged=It.prototype.dataChanged;_.B([_.k(_.ab_),_.x("design:type",Object)],It.prototype,"ytdAutoScrollBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],It.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],It.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],It.prototype,"expanded",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],It.prototype,"isCompact",void 0);_.B([_.n({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.x("design:type",Boolean)],It.prototype,"autoScrollEnabled",void 0);_.B([_.hs("#text"),_.x("design:type",Object)],It.prototype,"text",void 0);_.B([_.hs("#expander-icon"),_.x("design:type",Object)],It.prototype,"expanderIcon",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],It.prototype,"dataChanged",null);_.B([_.Me("expanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],It.prototype,"expandedChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],It);
_.A(It,"ytd-channel-legal-info-renderer",function(){if(pw2!==void 0)return pw2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return pw2=G},{mode:1});var Czw;var uyZ=_.OK("DOWNLOAD",{},"Download"),n$X=_.OK("DOWNLOADING",{},"Downloading"),mZq=_.OK("DOWNLOADED",{},"Downloaded"),p4=function(){var G=_.m.apply(this,arguments)||this;G.downloadProgress=0;G.isDownloadComplete=!1;G.transferState="TRANSFER_STATE_UNKNOWN";return G};
_.K(p4,_.m);_.V=p4.prototype;_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.dataChanged=function(){var G;(G=this.data)!=null&&G.tooltip||(G=_.fQ(_.Yt().getState(),this.playlistId),this.updateButtonState(G))};
_.V.computePlaylistId=function(G){return G};
_.V.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.V.updateButtonState=function(G){if(this.data&&(this.data.tooltip!==n$X||!_.E6(G))){this.isDownloadComplete=!1;switch(G){case "TRANSFER_STATE_UNKNOWN":G=uyZ;var e="OFFLINE_DOWNLOAD";var r="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":G=mZq;e="OFFLINE_PIN";r="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":G=n$X;e="OFFLINE_DOWNLOADING_ZERO";r="ACTION_REMOVE_WITH_PROMPT";
break;default:G=uyZ,e="OFFLINE_DOWNLOAD",r="ACTION_ADD"}var Z=Object.assign({},this.data);Z.tooltip=G;Z.accessibilityData={accessibilityData:{label:G}};Z.icon={iconType:e};Z.size="SIZE_DEFAULT";_.a(Z.command,_.Mo)&&(_.a(Z.command,_.Mo).action=r);this.set("data",Z)}};
_.V.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var G="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?G="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?G="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?G="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?G="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?G="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(G="OFFLINE_PIN",this.isDownloadComplete=!0);var e;G!==((e=this.data.icon)==null?void 0:e.iconType)&&(e=Object.assign({},this.data),e.tooltip=n$X,e.accessibilityData={accessibilityData:{label:n$X}},e.icon={iconType:G},_.a(e.command,_.Mo)&&(_.a(e.command,_.Mo).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",e))}};
p4.prototype.updateProgress=p4.prototype.updateProgress;p4.prototype.onTransferStateChanged=p4.prototype.onTransferStateChanged;p4.prototype.dataChanged=p4.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],p4.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],p4.prototype,"ytdReduxBehavior",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],p4.prototype,"forceIconButton",void 0);
_.B([_.n({value:!0}),_.x("design:type",Boolean)],p4.prototype,"forceIconOnly",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],p4.prototype,"overrides",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],p4.prototype,"buttonTooltipPosition",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],p4.prototype,"styleActionButton",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],p4.prototype,"disableTextTransform",void 0);
_.B([_.n({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.x("design:type",String)],p4.prototype,"playlistId",void 0);_.B([_.n(),_.x("design:type",Object)],p4.prototype,"data",void 0);_.B([_.n({selector:_.J4s,selectorArgs:["playlistId"]}),_.x("design:type",Object)],p4.prototype,"downloadProgress",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],p4.prototype,"isDownloadComplete",void 0);
_.B([_.n({selector:_.fQ,selectorArgs:["playlistId"]}),_.x("design:type",String)],p4.prototype,"transferState",void 0);_.B([_.n({value:!0}),_.x("design:type",Boolean)],p4.prototype,"showTooltips",void 0);_.B([_.n({value:!0}),_.x("design:type",Boolean)],p4.prototype,"sendCommandWhenDisabled",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],p4.prototype,"disabled",void 0);
_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],p4.prototype,"dataChanged",null);_.B([_.iD("transferState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],p4.prototype,"onTransferStateChanged",null);_.B([_.iD("downloadProgress"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],p4.prototype,"updateProgress",null);
_.B([_.c({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],p4);
_.A(p4,"ytd-download-playlist-button-renderer",function(){if(Czw!==void 0)return Czw;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Czw=G},{mode:1});var ctw;_.J_(_.w3W,"thumbnail-overlay-button-view-model",{props:{data:_.N6,lockupExperiments:_.N6}});var C4=function(){var G=_.m.apply(this,arguments)||this;G.isSquare=!1;G.isVertical=!1;return G};
_.K(C4,_.m);C4.prototype.computeIsSquare=function(G){return G!=null&&G.thumbnail?qVw(G.thumbnail)==="SQUARE":!1};
C4.prototype.computeIsVertical=function(G){return G!=null&&G.thumbnail?qVw(G.thumbnail)==="VERTICAL":!1};
C4.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],C4.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],C4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.x("design:type",Object)],C4.prototype,"isSquare",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.x("design:type",Object)],C4.prototype,"isVertical",void 0);
_.B([_.n(),_.x("design:type",Object)],C4.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],C4);
_.A(C4,"ytd-hero-playlist-thumbnail-renderer",function(){if(ctw!==void 0)return ctw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return ctw=G},{mode:1});var uP=function(){var G=_.m.apply(this,arguments)||this;G.isDarkTheme=!1;G.isUltraWide=!1;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return G};
_.K(uP,_.m);_.V=uP.prototype;_.V.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.v_();var G;(G=_.v_().resolve(_.bq(_.ka)))!=null&&(G.headerElement=this.hostElement)};
_.V.detached=function(){var G;(G=_.v_().resolve(_.bq(_.ka)))!=null&&(G.headerElement=void 0)};
_.V.onUpdateHeader=function(G){(G=G.detail)&&this.set("data",G)};
_.V.computeTextDisplayed=function(G){if(G)return G.textDisplayed?G.textDisplayed:G.placeholder};
_.V.gradientColorToLinearGradientStop=function(G){var e=this.isDarkTheme?G.darkThemeColor:G.lightThemeColor;return e?_.jF(e)+" "+((G==null?void 0:G.startLocation)||0)*100+"%":"transparent"};
_.V.onWindowResize=function(){var G;((G=this.data)==null?0:G.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.V.onIronResize=function(G){this.isUltraWide=!G.detail.value};
_.V.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.V.onUpdatePlaylistName=function(G){var e=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},G.detail.value));_.DE(this,function(){var r;(r=e.editableTitle)==null||r.resize()})};
_.V.onUpdatePlaylistDescription=function(G){var e=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},G.detail.value));_.DE(this,function(){var r;(r=e.editableDescriptionInlineExpander)==null||r.resize()})};
_.V.getCinematicData=function(G){return _.a(G==null?void 0:G.cinematicContainer,_.LD)};
_.iY.Object.defineProperties(uP.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 G,e=(G=this.getCinematicData(this.data))==null?void 0:G.config;return(G=this.isDarkTheme?e==null?void 0:e.darkThemeBackgroundColor:e==null?void 0:e.lightThemeBackgroundColor)?"background-color:"+_.RB(G)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var G;return _.a((G=this.data)==null?void 0:G.descriptionForm,CHy)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var G=this,e,r,Z;return"background:linear-gradient(to bottom, "+(((Z=(e=this.getCinematicData(this.data))==null?void 0:(r=e.gradientColorConfig)==null?void 0:r.map(function(O){return G.gradientColorToLinearGradientStop(O)}))==null?void 0:Z.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var G;return _.mG((G=this.data)==null?void 0:G.descriptionTapText)}}});
uP.prototype.onUpdateHeader=uP.prototype.onUpdateHeader;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],uP.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],uP.prototype,"actionHandlerBehavior",void 0);_.B([_.hs("#description-inline-expander"),_.x("design:type",Object)],uP.prototype,"descriptionInlineExpander",void 0);
_.B([_.hs("#editable-description-inline-expander"),_.x("design:type",Object)],uP.prototype,"editableDescriptionInlineExpander",void 0);_.B([_.n(),_.x("design:type",Object)],uP.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],uP.prototype,"isUltraWide",void 0);_.B([_.hs("#editable-title-display"),_.x("design:type",Object)],uP.prototype,"editableTitle",void 0);_.B([_.d("isUltraWide"),_.x("design:type",Object),_.x("design:paramtypes",[])],uP.prototype,"maxDescriptionLines",null);
_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],uP.prototype,"noCinematicData",null);_.B([_.Om("yt-new-playlist-header"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],uP.prototype,"onUpdateHeader",null);_.B([_.d("data","isDarkTheme"),_.x("design:type",Object),_.x("design:paramtypes",[])],uP.prototype,"backgroundStyle",null);
_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],uP.prototype,"descriptionFormData",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],uP.prototype,"getDropdownTheme",null);_.B([_.d("data","isDarkTheme"),_.x("design:type",String),_.x("design:paramtypes",[])],uP.prototype,"gradientStyle",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],uP.prototype,"descriptionTapText",null);
_.B([_.c({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],uP);
_.A(uP,"ytd-playlist-header-renderer",function(){if(Hjt!==void 0)return Hjt;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Hjt=G},{mode:_.Px("kevlar_poly_si_batch_j078")?1:2});var Yk_;var yty;var n4=function(){return _.m.apply(this,arguments)||this};
_.K(n4,_.m);n4.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],n4.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],n4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],n4.prototype,"data",void 0);_.B([_.c({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],n4);
_.A(n4,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(yty!==void 0)return yty;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return yty=G},{mode:1});var mD=function(){return _.m.apply(this,arguments)||this};
_.K(mD,_.m);
mD.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}}}}};
mD.prototype.computeUsePremiumShowStyle=function(G){if(!G||!G.items)return!1;for(var e=0;e<G.items.length;e++)if(_.a(G.items[e],uow)){var r=void 0;return((r=_.a(G.items[e],uow))==null?void 0:r.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],mD.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],mD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],mD.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.x("design:type",Boolean)],mD.prototype,"usePremiumShowStyle",void 0);
_.B([_.c({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],mD);
_.A(mD,"ytd-playlist-sidebar-renderer",function(){if(Yk_!==void 0)return Yk_;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Yk_=G},{mode:1});var AtX;var F_Z;var Jtt=function(G,e,r,Z,O,M,T,E){this.minWidth=G;this.minHeight=e;this.recommendedWidth=r;this.recommendedHeight=Z;this.JSC$22471_maxFileSize=O;this.title=M;this.bannerGalleryTitle=T;this.channelId=E;this.picker_=null;G=_.vrS("yt-banner");e=G.addView;r=(new K8k("youtubebanner")).addUploadMetadata("silo_id","19");r.opts.ytMaxFileSize=this.JSC$22471_maxFileSize;Z=this.recommendedHeight;r.opts.ytRecWidth=this.recommendedWidth;r.opts.ytRecHeight=Z;e.call(G,r);G.addView(new _.K9);e=G.addView;r=new _.K9;
r.opts.type="ytbanner";e.call(G,r.JSC$10083_setLabel(this.bannerGalleryTitle));e=G.setTitle(this.title).setSize(1E3);e.urlParamMap_.set("thumbs","orig");r=this.minWidth;Z=this.minHeight;if(isNaN(r)||isNaN(Z))throw Error("gb`"+r+"`"+Z);e.urlParamMap_.set("minSize",r+"x"+Z);e.urlParamMap_.set("cropMode","ytcb");this.builder_=G};
Jtt.prototype.open=function(){var G=this;return new _.aQ(function(e,r){_.Q5j(G.builder_,function(Z){Z.action=="picked"?e(Z):Z.action=="cancel"&&r(Error("No"))});
G.picker_&&G.picker_.dispose();G.picker_=G.builder_.build();G.picker_.setVisible(!0)})};
Jtt.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var Bzt=function(G){this.channelId=G};
Bzt.prototype.upload=function(G){var e="";G.viewToken&&(e=G.viewToken[2].type);var r=G.docs[0];G=r.crop;e={channel_id:this.channelId,fife_url:r.thumbnails[0].url,photo_id:r.id,is_gallery_image:e=="ytbanner"};G&&(e.crop_top=G.top,e.crop_right=G.right,e.crop_bottom=G.bottom,e.crop_left=G.left);return _.vHS("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:e})};var cI=function(){var G=_.m.apply(this,arguments)||this;G.ariaLabel=null;return G};
_.K(cI,_.m);_.V=cI.prototype;_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.V.detached=function(){this.picker&&this.picker.dispose()};
_.V.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.V.computeAriaLabel=function(G){return G};
_.V.onTap=function(){var G=this,e;if((e=this.data)==null||!e.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new Jtt(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 r;(r=this.picker)==null||r.open().then(function(Z){G.handleBannerPicked(Z)},function(){})}};
_.V.handleBannerPicked=function(G){var e=this;this.uploader||(this.uploader=new Bzt(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(G).then(function(r){e.handleBannerUploadSucceeded(r)},function(r){e.handleBannerUploadFailed(r)})};
_.V.handleBannerUploadSucceeded=function(G){G&&G.errors?this.handleBannerUploadFailed(G):(_.xy(this.hostElement,"yt-banner-updated",G),this.message=null)};
_.V.handleBannerUploadFailed=function(G){this.message=G&&G.errors&&G.errors.length?G.errors[0]:null};
cI.prototype.dataChanged=cI.prototype.dataChanged;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],cI.prototype,"componentBehavior",void 0);_.B([_.k(_.nS),_.x("design:type",Object)],cI.prototype,"ironButtonState",void 0);_.B([_.n(),_.x("design:type",Object)],cI.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.x("design:type",Object)],cI.prototype,"ariaLabel",void 0);
_.B([_.n(),_.x("design:type",Object)],cI.prototype,"message",void 0);_.B([_.n(),_.x("design:type",Object)],cI.prototype,"picker",void 0);_.B([_.n(),_.x("design:type",Object)],cI.prototype,"uploader",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cI.prototype,"dataChanged",null);_.B([_.c({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],cI);
_.A(cI,"ytd-channel-banner-editor-renderer",function(){if(F_Z!==void 0)return F_Z;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return F_Z=G},{mode:1});var xZt;var Pz_=_.Cp(["#"]),Yn=function(){return _.m.apply(this,arguments)||this};
_.K(Yn,_.m);Yn.prototype.computeHrefWithDefault=function(G){return this.ytComponentBehavior.computeHref_(G,!0)||_.h1F(Pz_)};
Yn.prototype.dataChanged=function(){var G=this.data;G&&G.targetId&&_.Kty(_.Kh(),G.targetId,this.moreIcon)};
Yn.prototype.dataChanged=Yn.prototype.dataChanged;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Yn.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Yn.prototype,"data",void 0);_.B([_.hs("#more-icon"),_.x("design:type",Object)],Yn.prototype,"moreIcon",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Yn.prototype,"dataChanged",null);
_.B([_.c({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],Yn);
_.A(Yn,"ytd-channel-tagline-renderer",function(){if(xZt!==void 0)return xZt;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return xZt=G},{mode:1});var UZ2;var yG=function(){return _.m.apply(this,arguments)||this};
_.K(yG,_.m);_.V=yG.prototype;_.V.ready=function(){var G=this;_.z1(this.hostElement).querySelector("#form").addEventListener("submit",function(e){G.onSubmit(e)})};
_.V.onDataChanged=function(){var G;((G=this.data)==null?0:G.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.V.onIconButtonKeydown=function(G){G.keyCode===13&&this.iconButton.click()};
_.V.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.V.openOnClickHandler=function(){this.input.focus()};
_.V.onSubmit=function(G){G.preventDefault();return!1};
_.V.submitOnEnterKeyUp=function(G){var e;if(G.keyCode===13&&((e=this.data)==null?0:e.expandedText)){G=this.data.endpoint;e=_.c2.unsafeClone(G);var r;((r=_.a(e==null?void 0:e.commandMetadata,_.rJ))==null?0:r.url)?(_.a(e.commandMetadata,_.rJ).url=_.Pg(_.a(e.commandMetadata,_.rJ).url,"query",this.data.expandedText),_.a(e,_.Mv)&&(_.a(e,_.Mv).query=this.data.expandedText),_.xy(this.hostElement,"yt-navigate",{endpoint:e,tempData:{disableCache:!0}})):(r=new _.Cr("Error: Trying to navigate to an endpoint without url",
G),_.yx(r))}};
_.V.updateDataExpandedTextFromBinding=function(G){this.set("data.expandedText",G.detail.value)};
_.iY.Object.defineProperties(yG.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.R("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
yG.prototype.onDataChanged=yG.prototype.onDataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],yG.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.AXH),_.x("design:type",Object)],yG.prototype,"ytdExpandableInputBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],yG.prototype,"data",void 0);_.B([_.hs("#input"),_.x("design:type",Object)],yG.prototype,"input",void 0);_.B([_.hs("#icon-button"),_.x("design:type",HTMLElement)],yG.prototype,"iconButton",void 0);
_.B([_.n(),_.x("design:type",String),_.x("design:paramtypes",[])],yG.prototype,"searchIcon",null);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yG.prototype,"onDataChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],yG);
var ta2=_.xP()(yG,"ytd-expandable-tab-renderer",function(){if(UZ2===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);UZ2=G}G=UZ2;return G},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var zXy;var Ak=function(){var G=_.m.apply(this,arguments)||this;G.avatarSize=80;G.ariaLabel=_.OK("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return G};
_.K(Ak,_.m);Ak.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Ak.prototype.computeHref=function(G){var e;return((e=_.a(G,_.G2))==null?0:e.url)?this.componentBehavior.computeHref_(G):null};
Ak.prototype.onTap=function(){var G,e;(G=this.data)==null||!G.editAvatarServiceEndpoint||((e=_.a(this.data.editAvatarServiceEndpoint,_.G2))==null?0:e.url)||_.v_().resolve(_.$1).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.B([_.k(_.nS),_.x("design:type",Object)],Ak.prototype,"ironButtonState",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Ak.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Ak.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],Ak.prototype,"avatarSize",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],Ak.prototype,"ariaLabel",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],Ak);
_.A(Ak,"ytd-channel-avatar-editor",function(){if(zXy!==void 0)return zXy;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return zXy=G},{mode:1});var W_2=_.y(function(G){var e=G.data;var r=G.noPadding;var Z=G.enableBanner;var O=G.cinematicContainerTopbarOffset;var M=G.allowCinematicContainerOverflow;var T=G.displayAsSidebar;G=G.className;_.Y8(function(){e().tagManagerId&&(_.sZ(e().tagManagerId,_.xZ("GL")),XYy(e().tagManagerId))},"vUc8md");
var E=_.hI(llz,function(){return e().pageHeaderEntityKey});
return _.v("yt-page-header-renderer",{class:_.LC("pageHeaderRendererHost",G)},_.v(_.E2,{data:function(){var b;return((b=E())==null?0:b.header)?E().header:(T==null?0:T())&&e().sidebarContent?e().sidebarContent:e().content}},{pageHeaderViewModel:function(b){return _.v(_.eaa,{data:b.data,
noPadding:r,enableBanner:Z,cinematicContainerTopbarOffset:O,allowCinematicContainerOverflow:M,displayAsSidebar:function(){return(T==null?void 0:T())&&e().enableSidebarView}})}}))},"Wm");
W_2.idomCompat=!0;_.J_(W_2,"yt-page-header-renderer",{props:{data:_.N6,noPadding:_.N6,enableBanner:_.N6,cinematicContainerTopbarOffset:_.N6,allowCinematicContainerOverflow:_.N6,displayAsSidebar:_.N6,className:_.N6}});_.J_(_.ND,"yt-image-banner-view-model",{props:{data:_.N6,isPositionRelative:_.N6}});_.J_(_.lqd,"yt-tab-group-shape",{props:{shape:_.N6}});var Nzz=_.oH.persistentPanelVisibleSelector,FU=function(){var G=_.m.apply(this,arguments)||this;G.expandableCustomTabRenderable=function(e){return gCt(e,function(){return void G.onSearchNavigate()})};
G.isRichGrid=!1;G.isConstrainedList=!1;G.richGridMiniMode=!1;G.richGridStyle="RICH_GRID_STYLE_UNKNOWN";G.isRichGridShorts=!1;G.responsiveSizing="COMPACT";G.disableGridStateAware=!1;G.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return G};
_.K(FU,_.m);_.V=FU.prototype;_.V.computeHeaderDisabled=function(G,e){return e||!G||this.tabsHidden};
_.V.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.V.computeIsRichGridShorts=function(G){return G==="RICH_GRID_STYLE_SHORTS_GRID"||G==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.V.computeImageBannerViewModel=function(){var G,e;return _.a((e=_.a((G=this.data)==null?void 0:G.content,_.SEl))==null?void 0:e.banner,_.DmW)};
_.V.computeHasCinematicContainer=function(){var G,e;return!((e=_.a((G=this.data)==null?void 0:G.content,_.SEl))==null||!e.background)};
_.V.handleHeaderResize=function(){var G=_.z1(this.hostElement).querySelector("#header");G&&_.xy(G,"iron-resize")};
_.V.handleInsertTabCommand=function(G){var e=_.a(G,J2k);e&&(e.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(r){return r.tabRenderer&&r.tabRenderer.tabIdentifier===e.tabIdentifier})||this.splice("tabs",e.tabIndex||-1,0,e.tab))};
_.V.handleRefreshChannelTabAction=function(G){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===G&&_.xy(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.V.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.V.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.eD(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.V.observerRichGridSlimItemsPerRow=function(){_.eD(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.V.updateCssVars=function(){this.richGridItemsPerRow&&_.eD(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.qt("rich_grid_max_item_width",500))+16)-16+"px"})};
_.V.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.eD(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.V.onDataChanged=function(){this.handleHeaderResize()};
_.V.onWindowResize=function(){this.handleHeaderResize()};
_.V.onFocusedChanged=function(G){(G=_.mk(G))&&G.is==="tp-yt-paper-tab"&&G.hasRipple()&&(G.getRipple().holdDown=!G.pointerDown&&G.focused)};
_.V.updateSelectedFromBinding=function(G){this.ytdTabbedHeaderBehavior.selected=G.detail.value};
_.V.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.iY.Object.defineProperties(FU.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:j8$(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.imageBannerViewModel)==null?void 0:G.style)==="IMAGE_BANNER_STYLE_INSET"}}});
FU.prototype.onDataChanged=FU.prototype.onDataChanged;FU.prototype.updateCssVarsForResponsiveGrid=FU.prototype.updateCssVarsForResponsiveGrid;FU.prototype.updateCssVars=FU.prototype.updateCssVars;FU.prototype.observerRichGridSlimItemsPerRow=FU.prototype.observerRichGridSlimItemsPerRow;FU.prototype.observerRichGridItemsPerRow=FU.prototype.observerRichGridItemsPerRow;FU.prototype.persistentPanelVisibleChanged=FU.prototype.persistentPanelVisibleChanged;
_.B([_.k(_.x9),_.x("design:type",Object)],FU.prototype,"ytdGridStateAwareBehavior",void 0);_.B([_.k(BWt),_.x("design:type",Object)],FU.prototype,"ytdTabbedHeaderBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],FU.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],FU.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.UN.YtdGuideStateAwareBehavior),_.x("design:type",Object)],FU.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],FU.prototype,"ytdReduxBehavior",void 0);_.B([_.hs("#tabs"),_.x("design:type",Object)],FU.prototype,"tabsElement",void 0);_.B([_.n(),_.x("design:type",Array)],FU.prototype,"tabs",void 0);_.B([_.n(),_.x("design:type",Object)],FU.prototype,"expandableCustomTabRenderable",void 0);
_.B([_.d("tabs.*"),_.x("design:type",Object),_.x("design:paramtypes",[])],FU.prototype,"tabGroupShape",null);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],FU.prototype,"isRichGrid",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],FU.prototype,"isConstrainedList",void 0);_.B([_.n({reflectToAttribute:!0,selector:_.lw}),_.x("design:type",Object)],FU.prototype,"richGridMiniMode",void 0);_.B([_.n({selector:function(G){return G.ui.richGridStyle}}),
_.x("design:type",Object)],FU.prototype,"richGridStyle",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.x("design:type",Object)],FU.prototype,"isRichGridShorts",void 0);_.B([_.n({selector:_.RI}),_.x("design:type",Number)],FU.prototype,"richGridItemsPerRow",void 0);_.B([_.n({selector:function(G){return G.ui.richGridContainerWidth}}),
_.x("design:type",Number)],FU.prototype,"richGridContainerWidth",void 0);_.B([_.n({selector:_.o0i}),_.x("design:type",Number)],FU.prototype,"richGridSlimItemsPerRow",void 0);_.B([_.n(),_.x("design:type",Object)],FU.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],FU.prototype,"responsiveSizing",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],FU.prototype,"disableGridStateAware",void 0);
_.B([_.n({computed:"computeImageBannerViewModel(data)"}),_.x("design:type",Object)],FU.prototype,"imageBannerViewModel",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.x("design:type",Boolean)],FU.prototype,"hasCinematicContainer",void 0);_.B([_.n({selector:_.HaH,reflectToAttribute:!0}),_.x("design:type",Boolean)],FU.prototype,"guideIsVisibleButNotPersistent",void 0);
_.B([_.n({selector:Nzz}),_.x("design:type",Boolean)],FU.prototype,"persistentPanelVisible",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("imageBannerViewModel"),_.x("design:type",Object),_.x("design:paramtypes",[])],FU.prototype,"hasBanner",null);_.B([_.n({reflectToAttribute:!0}),_.d("imageBannerViewModel"),_.x("design:type",Object),_.x("design:paramtypes",[])],FU.prototype,"hasInsetBanner",null);
_.B([_.n({computed:"computeTabsHidden(tabs)",value:!0}),_.x("design:type",Boolean)],FU.prototype,"tabsHidden",void 0);_.B([_.Me("persistentPanelVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FU.prototype,"persistentPanelVisibleChanged",null);_.B([_.Me("richGridItemsPerRow","isRichGrid"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FU.prototype,"observerRichGridItemsPerRow",null);
_.B([_.Me("richGridSlimItemsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FU.prototype,"observerRichGridSlimItemsPerRow",null);_.B([_.Me("richGridItemsPerRow","richGridMiniMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FU.prototype,"updateCssVars",null);
_.B([_.Me("richGridContainerWidth"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FU.prototype,"updateCssVarsForResponsiveGrid",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FU.prototype,"onDataChanged",null);_.B([_.c({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],FU);
_.A(FU,"ytd-tabbed-page-header",function(){if(AtX!==void 0)return AtX;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return AtX=G},{mode:1});var L_Z;var Jk=function(){return _.m.apply(this,arguments)||this};
_.K(Jk,_.m);Jk.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.eD(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.iY.Object.defineProperties(Jk.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var G,e;return this.componentBehavior.computeIcon_(((e=_.a((G=this.data)==null?void 0:G.badge,_.lOE))==null?void 0:e.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var G,e;return(e=_.a((G=this.data)==null?void 0:G.badge,_.lOE))==null?void 0:e.label}}});
Jk.prototype.observerRichGridItemsPerRow=Jk.prototype.observerRichGridItemsPerRow;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Jk.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Jk.prototype,"componentBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],Jk.prototype,"ytdReduxBehavior",void 0);_.B([_.n({reflectToAttribute:!0,selector:_.lw}),_.x("design:type",Boolean)],Jk.prototype,"richGridMiniMode",void 0);
_.B([_.n({selector:_.RI}),_.x("design:type",Number)],Jk.prototype,"richGridItemsPerRow",void 0);_.B([_.n(),_.x("design:type",Object)],Jk.prototype,"data",void 0);_.B([_.Me("richGridItemsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Jk.prototype,"observerRichGridItemsPerRow",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Jk.prototype,"badgeIconName",null);
_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Jk.prototype,"badgeLabel",null);_.B([_.c({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],Jk);
_.A(Jk,"ytd-member-hub-profile-renderer",function(){if(L_Z!==void 0)return L_Z;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return L_Z=G},{mode:1});var Ge$;var BI=function(){return _.m.apply(this,arguments)||this};
_.K(BI,_.m);BI.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],BI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],BI.prototype,"data",void 0);_.B([_.c({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],BI);
_.A(BI,"ytd-settings-sidebar-renderer",function(){if(Ge$!==void 0)return Ge$;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Ge$=G},{mode:1});var e12;var xn=function(){var G=_.m.apply(this,arguments)||this;G.expandableCustomTabRenderable=function(e){return gCt(e,function(){return void G.onSearchNavigate()})};
return G};
_.K(xn,_.m);xn.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
xn.prototype.onSearchNavigate=function(){this.selected=void 0};
xn.prototype.onTabsChange=function(){var G,e=(G=this.tabs)==null?void 0:G.findIndex(function(r){var Z;return r==null?void 0:(Z=r.tabRenderer)==null?void 0:Z.selected});
e!==void 0&&(this.selected=e)};
xn.prototype.onTabsActive=function(G){if(this.tabs!==void 0){var e,r;(G=(e=this.tabs[G.detail.selected])==null?void 0:(r=e.tabRenderer)==null?void 0:r.endpoint)&&_.xy(this.hostElement,"yt-navigate",{endpoint:G})}};
_.iY.Object.defineProperties(xn.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:j8$(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
xn.prototype.onTabsChange=xn.prototype.onTabsChange;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],xn.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.x9),_.x("design:type",Object)],xn.prototype,"ytdGridStateAwareBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],xn.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.UN.YtdGuideStateAwareBehavior),_.x("design:type",Object)],xn.prototype,"ytdGuideStateAwareBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],xn.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Array)],xn.prototype,"tabs",void 0);_.B([_.n(),_.x("design:type",Number)],xn.prototype,"selected",void 0);_.B([_.d("tabs.*"),_.x("design:type",Object),_.x("design:paramtypes",[])],xn.prototype,"tabGroupShape",null);_.B([_.n(),_.x("design:type",Object)],xn.prototype,"expandableCustomTabRenderable",void 0);
_.B([_.d("tabs"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],xn.prototype,"tabsEnabled",null);_.B([_.iD("tabs"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xn.prototype,"onTabsChange",null);_.B([_.c({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],xn);
_.A(xn,"ytd-topic-channel-details-renderer",function(){if(e12!==void 0)return e12;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return e12=G},{mode:1});var r6k;var PI=function(){var G=_.m.apply(this,arguments)||this;G.disableGridStateAware=!1;return G};
_.K(PI,_.m);PI.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]]"}}}}}};
PI.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
PI.prototype.updateCssVars=function(){_.eD(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.qt("rich_grid_max_item_width",500))+16)-16+"px"})};
PI.prototype.updateCssVars=PI.prototype.updateCssVars;PI.prototype.activeChanged=PI.prototype.activeChanged;_.B([_.k(_.UN.YtdGuideStateAwareBehavior),_.x("design:type",Object)],PI.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],PI.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],PI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],PI.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Array)],PI.prototype,"tabs",void 0);_.B([_.n(),_.x("design:type",Boolean)],PI.prototype,"active",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],PI.prototype,"disableGridStateAware",void 0);
_.B([_.n({selector:_.RI}),_.x("design:type",Number)],PI.prototype,"richGridItemsPerRow",void 0);_.B([_.n({selector:_.lw}),_.x("design:type",Boolean)],PI.prototype,"richGridMiniMode",void 0);_.B([_.hs("ytd-carousel-item-renderer"),_.x("design:type",Object)],PI.prototype,"carousel",void 0);_.B([_.Me("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],PI.prototype,"activeChanged",null);
_.B([_.Me("richGridItemsPerRow","richGridMiniMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],PI.prototype,"updateCssVars",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],PI);
_.A(PI,"ytd-carousel-header-renderer",function(){if(r6k!==void 0)return r6k;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return r6k=G},{mode:1});var Zmy;var Om$=_.Cp(["https://www.google-analytics.com/analytics.js"]),Ut=function(){var G=_.m.apply(this,arguments)||this;G.scriptAnalyticsAdded=!1;return G};
_.K(Ut,_.m);Ut.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var G,e=(G=this.data)==null?void 0:G.tagManagerId;e&&(_.sZ(e,_.xZ("GL")),XYy(e))};
Ut.prototype.sendGoogleAnalyticsPageview=function(G){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var r=_.Bw.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(r)};
var e=window.ga;e("set","page",window.location.pathname);e.l=+new Date;e("set","forceSSL",!0);e("create",G,"'auto'");e("send","pageview")};
Ut.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var G=_.Hp("SCRIPT");G.name="ga-analytics";var e=_.qK(Om$);_.h6(G,e);G.async=!0;_.z1(this.hostElement).appendChild(G)};
Ut.prototype.dataChanged=Ut.prototype.dataChanged;_.B([_.n(),_.x("design:type",Object)],Ut.prototype,"data",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ut.prototype,"dataChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],Ut);
_.A(Ut,"ytd-channel-metadata-renderer",function(){if(Zmy!==void 0)return Zmy;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Zmy=G},{mode:1});var MrZ;var Vr_;var zd=function(){var G=_.m.apply(this,arguments)||this;G.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"]);G.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"]);G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return G};
_.K(zd,_.m);_.V=zd.prototype;_.V.attached=function(){this.requestElementsPerRow()};
_.V.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_]]"}}}}}};
_.V.onUpdateElementsPerRowAction=function(G){G&&this.elementsPerRow!==G&&(this.elementsPerRow=G)};
_.V.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.V.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.V.computeAlertStyle_=function(G){return G};
_.V.observerElementsPerRow=function(){this.elementsPerRow&&_.eD(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.V.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.V.requestElementsPerRow=function(){_.xy(this.hostElement,"yt-request-elements-per-row")};
zd.prototype.onIsVisibleChanged_=zd.prototype.onIsVisibleChanged_;zd.prototype.observerElementsPerRow=zd.prototype.observerElementsPerRow;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],zd.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],zd.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],zd.prototype,"actionHandlerBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],zd.prototype,"data",void 0);_.B([_.n({value:6,reflectToAttribute:!0}),_.x("design:type",Number)],zd.prototype,"elementsPerRow",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],zd.prototype,"wrapButtons",void 0);_.B([_.n({value:_.xZ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.x("design:type",Boolean)],zd.prototype,"isMusic",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.x("design:type",String)],zd.prototype,"alertStyle",void 0);_.B([_.n({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.x("design:type",Function)],zd.prototype,"dismissBoundButtonTap_",void 0);_.B([_.n({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.x("design:type",Function)],zd.prototype,"acceptBoundButtonTap_",void 0);_.B([_.Me("elementsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zd.prototype,"observerElementsPerRow",null);_.B([_.Me("data.isVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zd.prototype,"onIsVisibleChanged_",null);_.B([_.aR({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],zd);
_.A(zd,"yt-alert-with-actions-renderer",function(){if(Vr_===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;MrZ===void 0&&(MrZ=document.createElement("template"));var Z=MrZ;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Vr_=G}G=Vr_;return G},{mode:2});_.J_(_.y(function(G){function e(g){var l={};return _.v(_.Wh,{text:g,className:_.LC("ytPersonalGreetingViewModelHeadline",(l.ytPersonalGreetingViewModelHeadlineSmall=function(){return E()===48},l))})}
function r(g,l){return _.v("span",{el:g,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},e(l))}
var Z=_.cQ(_.jV(function(){var g;return(g=G.data())==null?void 0:g.rendererContext},void 0,void 0,void 0,!0)),O=_.hT("span"),M=_.hT("span"),T=function(){return G.data().canvasPromoData},E=function(){var g;
return(g=G.data().bannerHeight)!=null?g:56},b=_.T4(Z,{throttleMs:100}),w=_.T4(O,{throttleMs:100}),q=_.T4(M,{throttleMs:100}),t=function(){return w.width()-b.width()>1};
return _.v("yt-personal-greeting-view-model",{el:Z,"aria-hidden":t,class:_.LC(G.className,"ytPersonalGreetingViewModelHost"),style:_.Mk({height:(0,_.Jm)(function(){return t()?0:E()})})},_.v(_.S,{cond:function(){return G.data().avatar&&!(q.width()+(G.data().avatar?48:0)-b.width()>1)},
then:function(){return _.v(_.E2,{data:function(){return G.data().avatar}},{decoratedAvatarViewModel:function(g){return _.v(_.Aq,{data:g.data,
className:_.LC("ytPersonalGreetingViewModelAvatar")})}})}}),_.v("h1",null,e(function(){var g;
return(T==null?void 0:(g=T())==null?void 0:g.headline)||(q.width()+(G.data().avatar?48:0)-b.width()>1?G.data().shorterGreeting:G.data().greeting)})),r(M,function(){return G.data().greeting}),r(O,function(){return G.data().shorterGreeting}))},"Xm"),"yt-personal-greeting-view-model",{props:{data:_.N6,
className:_.N6}});var WI=function(){var G=_.m.apply(this,arguments)||this;G.hidden=!1;G.isConstrainedList=!1;G.responsiveSizing="COMPACT";G.attachedPlayers=_.R("kevlar_channel_trailer_multi_attach")?[]:void 0;G.player=null;G.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return G};
_.K(WI,_.m);_.V=WI.prototype;
_.V.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}}}}};
_.V.created=function(){var G=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){G.disposeMastheadAd()}]};
_.V.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new UBq(this.refresh,this.contents))};
_.V.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.V.activeChanged=function(){var G=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=G)};
_.V.tabsChanged=function(){var G=this,e,r;if(this.pageSubtype==="channels"||_.R("kevlar_tab_gestures_for_tabbed_header_data")&&((e=this.data)==null?0:(r=e.header)==null?0:r.carouselHeaderRenderer))this.tabGestures=new NWy(this.contents,this.contents,this.hostElement,this.header,function(T){G.ytdReduxBehavior.dispatch(T)});
var Z,O,M;e=(Z=this.data)==null?void 0:(O=Z.contents)==null?void 0:(M=O.twoColumnBrowseResultsRenderer)==null?void 0:M.tabs;this.tabGestures&&this.tabGestures.tabsChanged(e)};
_.V.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.V.engagementPanelsChanged=function(){var G=_.v_().resolve(_.uB);if(G){if(this.engagementPanels)for(var e=_.h(this.engagementPanels),r=e.next();!r.done;r=e.next()){var Z=void 0;(r=(Z=r.value.identifier)==null?void 0:Z.tag)&&G.panelMap.delete(r)}this.engagementPanels=[];var O;e=_.h(((O=this.data)==null?void 0:O.panels)||[]);for(O=e.next();!O.done;O=e.next()){O=_.a(O.value,_.SlX);var M=r=void 0,T=void 0,E=void 0;if(Z=((r=O)==null?void 0:r.targetId)||((M=O)==null?void 0:M.panelIdentifier)||((T=O)==
null?void 0:(E=T.identifier)==null?void 0:E.tag))M=r=void 0,(M=(r=G).registerPanelContent)==null||M.call(r,Z,{engagementPanelSectionListRenderer:O}),this.engagementPanels.push(O)}}};
_.V.onStampFinished=function(){var G=this;_.DE(this,function(){if(G.tabGestures){var e=G.tabGestures;if(e.scrollPositionNeedsUpdate){var r=_.v_().resolve(_.bq(_.y$)),Z;if((Z=e.selectedTab)!=null&&Z.title&&r&&(Z=r.getCurrentPage())){if(e.scrollPositionForTabs.has(e.selectedTab.title)){var O,M;r=(M=(O=r.getCurrentPage())==null?void 0:O.clientHeight)!=null?M:0;O=e.scrollPositionForTabs.get(e.selectedTab.title);Z.setScrollTop(O);r>O+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(alz(!1))}}}})};
_.V.loadPage_=function(G){this.initCsi();G&&(this.data=G);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.V.getTitle=function(G){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",G))return this.get("microformat.microformatDataRenderer.title",G);if(this.get("header.feedTabbedHeaderRenderer.title",G))return _.mG(this.get("header.feedTabbedHeaderRenderer.title",G));if(this.get("header.interactiveTabbedHeaderRenderer.title",G))return this.get("header.interactiveTabbedHeaderRenderer.title",G);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
G))return _.mG(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",G));var e,r;return(G==null?0:(e=G.header)==null?0:(r=e.pageHeaderRenderer)==null?0:r.pageTitle)?G.header.pageHeaderRenderer.pageTitle:""};
_.V.updateTitle=function(G){_.xy(this.hostElement,"yt-update-title",this.getTitle(G))};
_.V.initCsi=function(){_.$Bt(this.pageSubtype||"browse",["ol","cpt"])};
_.V.getPlayer=function(){if(_.R("kevlar_channel_trailer_multi_attach")){for(var G=_.h(this.attachedPlayers),e=G.next();!e.done;e=G.next())if(e=e.value,e.isConnected||_.zX(this.hostElement,e))return e;return null}return this.player};
_.V.getPlayerContainer=function(){return null};
_.V.onPlayerAttached=function(G,e){_.R("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(e):this.player=e};
_.V.onPlayerDetached=function(G,e){_.R("kevlar_channel_trailer_multi_attach")?(G=this.attachedPlayers.indexOf(e),G<0||this.attachedPlayers.splice(G,1)):this.player=null};
_.V.getServiceTrackingParams=function(){var G,e;return((G=this.data)==null?void 0:(e=G.responseContext)==null?void 0:e.serviceTrackingParams)||[]};
_.V.setMastheadAd=function(G){G&&G.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=G&&G.mastheadAd};
_.V.dataChanged=function(){var G=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.Vaz();_.DE(this,function(){_.UW(G.hostElement,"ytd-update-grid-state-action")})};
_.V.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.V.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var G=this.data.alerts;return G&&G.find(function(e){return!!e.alertWithActionsRenderer})}};
_.V.computeGreetingData=function(){if(this.data&&this.data.alerts){var G=this.data.alerts;return G&&G.find(function(e){return!!e.personalGreetingViewModel})}};
_.V.computeHasMemberHubProfileRenderer=function(G){var e;return!!(G==null?0:(e=G.header)==null?0:e.memberHubProfileRenderer)};
_.V.handleAlertCommand=function(G){this.get("alertCommand.alert.alertWithActionsRenderer",G)&&(G=_.a(G,Ilt),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",G.alert))};
_.V.handleYtPlaylistDeletionRedirect=function(G){G=this.get("playlistDeletionRedirectCommand.redirectEndpoint",G);_.xy(this.hostElement,"yt-navigate",{endpoint:G})};
_.V.computeFluidWidth=function(G,e,r){if(e==="mini_app"||r)return!0;var Z,O,M;G=G==null?void 0:(Z=G.contents)==null?void 0:(O=Z.twoColumnBrowseResultsRenderer)==null?void 0:(M=O.tabs)==null?void 0:M.find(function(b){var w;return b==null?void 0:(w=b.tabRenderer)==null?void 0:w.selected});
if(!G)return!1;var T,E;return!!((T=G.tabRenderer)==null?0:(E=T.content)==null?0:E.richGridRenderer)&&!["channel","channels","playables"].includes(e)};
_.V.computeHeaderFluidWidth=function(G){return G==="hashtag-landing-page"};
_.V.computeHasSidebar=function(G){var e;return!!(G.sidebar||((e=G.header)==null?0:e.playlistHeaderRenderer))};
_.V.computeHasPageHeaderSidebar=function(G){var e,r;return!!((e=G.header)==null?0:(r=e.pageHeaderRenderer)==null?0:r.enableSidebarView)};
_.V.computeUseUnifiedShowPageLayout=function(G){if(!G||this.pageSubtype!=="show"||!G.sidebar||!G.sidebar.playlistSidebarRenderer)return!1;G=G.sidebar.playlistSidebarRenderer;if(!G.items)return!1;for(var e=0;e<G.items.length;e++)if(_.a(G.items[e],uow)){var r=void 0;return((r=_.a(G.items[e],uow))==null?void 0:r.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.V.computeIsConstrainedList=function(G){return _.R("web_enable_constrained_list_subscriptions_channels")&&G==="subscriptions-channels"};
_.V.computeResponsiveSizing=function(G){return G==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.iY.Object.defineProperties(WI.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var G,e;return((G=this.data)==null?0:(e=G.header)==null?0:e.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var G,e;if(!((G=this.data)==null?0:(e=G.sidebar)==null?0:e.playlistSidebarRenderer))return!1;var r;return(r=this.data)!=null&&r.header?!1:!0}}});
_.iY.Object.defineProperties(WI,{template:{configurable:!0,enumerable:!0,get:function(){if(L8$===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);L8$=G}G=L8$;return G}}});
WI.prototype.dataChanged=WI.prototype.dataChanged;WI.prototype.onPlayerDetached=WI.prototype.onPlayerDetached;WI.prototype.onPlayerAttached=WI.prototype.onPlayerAttached;WI.prototype.onStampFinished=WI.prototype.onStampFinished;WI.prototype.engagementPanelsChanged=WI.prototype.engagementPanelsChanged;WI.prototype.scrollAtTopChanged=WI.prototype.scrollAtTopChanged;WI.prototype.tabsChanged=WI.prototype.tabsChanged;WI.prototype.activeChanged=WI.prototype.activeChanged;
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],WI.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.h5),_.x("design:type",Object)],WI.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],WI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],WI.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.r$.YtPageBehavior),_.x("design:type",Object)],WI.prototype,"ytPageBehavior",void 0);
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],WI.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.UN.YtdGuideStateAwareBehavior),_.x("design:type",Object)],WI.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],WI.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],WI.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],WI.prototype,"hidden",void 0);
_.B([_.n(),_.x("design:type",Object)],WI.prototype,"mastheadAdData",void 0);_.B([_.n({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.x("design:type",Object)],WI.prototype,"alertBannerData",void 0);_.B([_.n({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.x("design:type",Object)],WI.prototype,"greetingData",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],WI.prototype,"pageSubtype",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.x("design:type",Boolean)],WI.prototype,"hasMemberHubProfileRenderer",void 0);_.B([_.n({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],WI.prototype,"hasSidebar",void 0);_.B([_.n({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],WI.prototype,"hasPageHeaderSidebar",void 0);
_.B([_.n({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],WI.prototype,"roundedContainer",void 0);_.B([_.n({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],WI.prototype,"useUnifiedShowPageLayout",void 0);_.B([_.n({computed:"computeIsConstrainedList(pageSubtype)"}),_.x("design:type",Object)],WI.prototype,"isConstrainedList",void 0);
_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],WI.prototype,"usePlaylistHeaderRenderer",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],WI.prototype,"useOldPlaylistSidebarRenderer",null);_.B([_.n({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.x("design:type",Boolean)],WI.prototype,"fluidWidth",void 0);_.B([_.n({selector:function(G){return G.ui.scrollAtTop}}),
_.x("design:type",Boolean)],WI.prototype,"scrollAtTop",void 0);_.B([_.n({selector:_.dvB}),_.x("design:type",Boolean)],WI.prototype,"tabGesturesIsActive",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.x("design:type",Boolean)],WI.prototype,"disableHeaderFluidWidth",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.x("design:type",String)],WI.prototype,"responsiveSizing",void 0);
_.B([_.hs("ytd-two-column-browse-results-renderer"),_.x("design:type",HTMLElement)],WI.prototype,"contents",void 0);_.B([_.hs("#header"),_.x("design:type",HTMLElement)],WI.prototype,"header",void 0);_.B([_.hs("ytd-refresh"),_.x("design:type",Object)],WI.prototype,"refresh",void 0);_.B([_.Me("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WI.prototype,"activeChanged",null);
_.B([_.Me("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WI.prototype,"tabsChanged",null);_.B([_.Me("scrollAtTop"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WI.prototype,"scrollAtTopChanged",null);_.B([_.n(),_.x("design:type",Object)],WI.prototype,"engagementPanels",void 0);
_.B([_.Me("data.panels"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WI.prototype,"engagementPanelsChanged",null);_.B([_.Om("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WI.prototype,"onStampFinished",null);_.B([_.Om("yt-player-attached"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Element]),_.x("design:returntype")],WI.prototype,"onPlayerAttached",null);
_.B([_.Om("yt-player-detached"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Element]),_.x("design:returntype")],WI.prototype,"onPlayerDetached",null);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WI.prototype,"dataChanged",null);_.B([_.c({is:"ytd-browse"})],WI);_.F3.registerService(_.ViS,WI);
_.AA();
}catch(e){_._DumpException(e)}
try{
_.yT("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 Gp,IQl,pxB,CDW,u68,nPa,mea,csW,Ym8,ysH,Asa,Frm,Bvd,xeW,UeW,zcm,Wro,Lrl,Gaa,eId,r_W,ex,OCm,ry,Ms8,Vs8,hIH,T2W,Dq8,iCW,vhA,Ehm,JsW,wQW,$qa,SYV,qY8,tsm,ghY,lMa,RIm,jgo,XQH,K2a,ka2,dqd,ohA,sgV,IMC,C1Y,u0d,nha,mqC,c_Y,YYW,y_W,A_W,F2Y,J_C,B2W,xq2,Uq2,zIB,W2V,N28,L2m,GhB,ePB,re8,O12,Mv8,Vvd,hPW,TpA,DkY,EOo,i12,b1A,vOC,w58,$kA,Sbl,qb8,tv2,gO8,lpC,RP2,jVl,apH,X5o,KOY,fp2,kh8,iS,H18,dkd,QVo,ye2,Bpd,xkd,NpW,LOa,WOm,UkW,ZW8,VVo,bWY,PZo,T8o,OWd,qX,wea,q28,lVV,tVm,gba,RLd,KvH,aVm,fVm,k_2,XeW,jH2,HWd,RX,jx,
pea,CtW,aX,uK2,nbH,mo8,JIA,B8B,XZ,Ki,Pt8,xo8,UoB,zLY,WvW,fi,kL,HR,dy,MMW,VMH,hdl,sh,bx8,T7A,ixW,viW,D$W,$$C,EiY,tMo,Szm,qzo,QV,l9B,gid,X4Y,HxW,uS,ni,f92,oiH,k4C,d$8,cR,yV,An,FZ,N78,yZo,epY,rVV,Zpd,OpB,V0a,uT2,nid,xL,cZ8,Jn,BR,YzB,M0l,LLC,m$8,Uh,wzW,Sel,qeB,$S8,EU8,gUW,jrC,Gf,NX,Li,K$W,DSB,ra,Rpa,ipW,lkC,vUl,TBH,bpm,kxo,Hp2,dSd,srC,IkC,pzo,CMH,ub2,mSB,nUV,Ye2,yVd,F$H,JVV,xSa,PMW,USo,zp2,W$W,NBo,L$C,e58,GBA,r3Y,O2d,Mc8,Mf,Vcl,h5W,V6,TUa,D_V,EjY,i2o,b22,vjV,ws2,$_m,qiH,hj,tc2,gjl,j$H,XsB,KKd,kBo,fgY,
H2W,d_m,ojV,Q$C,Igl,psW,Cgd,uC8,njl,m_2,c3o,YiW,y3W,A3W,FK8,PgH,U_H,BUW,x_8,J32,z5C,LKa,WKV,NUa,rDY,GDA,e3W,Zl2,Olm,M_V,V_C,Tc2,Duo,ESW,blY,vSd,$uo,qgV,gSV,R3A,aw8,KZV,kDB,duH,QiC,IwH,poB,uko,CEm,mu8,cDV,YgW,yDd,DJ,AD8,FZl,JDa,eFa,ZY8,OYW,TTW,wa,DQm,EVA,iYY,vVC,bYW,wKW,$QH,SSo,qSV,t78,bS,gVo,lS2,lwY,RFm,jbC,HCC,aSm,XKC,KTB,fSl,kiV,HYH;
Gp=function(G){if(!G)return"browse";var e=G.page,r=G.url,Z,O,M,T=(Z=G.response)==null?void 0:(O=Z.responseContext)==null?void 0:(M=O.webResponseContextExtensionData)==null?void 0:M.pageTheme;if(T)e=T.toLowerCase().replace(/_/g,"-");else if(e!=="watch"&&e!=="learning_journey_watch"){var E,b;if((e==="browse"||e==="settings")&&((E=G.response)==null?0:(b=E.sidebar)==null?0:b.settingsSidebarRenderer))e="WEB_PAGE_TYPE_SETTINGS";else{var w,q;e==="browse"&&((w=G.response)==null?0:(q=w.metadata)==null?0:q.channelMetadataRenderer)?
e="channel":r&&(e=_.hUU(r)||e)}}return e};
IQl=function(){var G=_.Lz("yt.aba.att");return G?G:_.jB.instance!==void 0?_.jB.instance.ps0.bind(_.jB.instance):null};
pxB=function(G,e){var r;return _.D(function(Z){return(r=IQl())?Z.return(r(G,e,6E4)):Z.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
CDW=function(G,e,r,Z,O){e=e===void 0?[]:e;O=O?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:O}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Bn(G),dialogMessages:e.map(function(M){return _.Bn(M)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Bn(r),serviceEndpoint:O}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Bn(Z)}}}}}};
u68=function(G,e,r){r=r===void 0?!1:r;var Z=_.sI(),O=!!_.M6().queueProxy,M,T,E;G=G==null?void 0:(M=G.response)==null?void 0:(T=M.currentVideoEndpoint)==null?void 0:(E=T.watchEndpoint)==null?void 0:E.playlistId;if((O||G)&&!_.R("web_watch_disable_playlist_auto_miniplayer"))return r&&(Z.playlistWatchPageActivation=!0),!0;switch(Gp(e)){case "yts-products":return r&&(Z.productDetailsPageActivation=!0),!0;case "mini_app":return r&&(Z.miniAppPageActivation=!0),!0;case "playables":return r&&(Z.playablesDestPageActivation=
!0),!0;case "companion-canvas":return r&&(Z.companionCanvasActivation=!0),!0;default:return!1}};
nPa=function(G){G=_.ha_(G);G.length>0&&G[0].focus()};
mea=function(G,e,r){for(var Z=typeof G==="string"?G.split(""):G,O=G.length-1;O>=0;--O)O in Z&&e.call(r,Z[O],O,G)};
csW=function(G,e){e=_.HfF(G,e);e>=0&&_.sys(G,e)};
Ym8=function(G){return Array.prototype.concat.apply([],arguments)};
ysH=function(G){var e=0;e=e===void 0?0:e;if(!_.rW(G))throw _.eE("uint64");var r=typeof G;switch(e){case 512:switch(r){case "string":return _.sWS(G);case "bigint":return String((0,_.qB)(64,G));default:return _.dWa(G)}case 1024:switch(r){case "string":return _.QWa(G);case "bigint":return _.nP((0,_.qB)(64,G));default:return _.owp(G)}case 0:switch(r){case "string":return _.sWS(G);case "bigint":return _.nP((0,_.qB)(64,G));default:return _.HPS(G)}default:return _.zC(e,"Unknown format requested type for int64")}};
Asa=function(G){G!=null&&(G=G.JSC$8829_value_||"",G=typeof G==="string"?G:new Uint8Array(G));return G};
Frm=function(G,e){if(/-[a-z]/.test(e))return null;if(_.DMj&&G.dataset){if(_.g4p()&&!(e in G.dataset))return null;G=G.dataset[e];return G===void 0?null:G}return G.getAttribute("data-"+_.Zz(e))};
Bvd=function(){var G=JsW;_.Lz("yt.ads.biscotti.getId_")||_.Eu("yt.ads.biscotti.getId_",G)};
xeW=function(G){_.Eu("yt.ads.biscotti.lastId_",G)};
UeW=function(){var G={};for(_.Y1=new PDB(G.handleError===void 0?_.AG:G.handleError,G.logEvent===void 0?_.cg:G.logEvent);_.yi.length>0;)switch(G=_.yi.shift(),G.type){case "ERROR":_.Y1.logError(G.payload);break;case "EVENT":_.Y1.logEvent(G.eventType,G.payload)}};
zcm=function(G,e,r){return _.DrA(function(Z){return r?Z.userIdentifier!==void 0&&!G.includes(Z.userIdentifier)&&r.includes(Z.publicName):Z.userIdentifier!==void 0&&!G.includes(Z.userIdentifier)},e)};
Wro=function(G){var e,r;return _.D(function(Z){if(Z.nextAddress==1)return e=_.IZ("YtIdbMeta hasAnyMeta other"),Z.yield(_.DrA(function(O){return O.userIdentifier!==void 0&&O.userIdentifier!==e},G),2);
r=Z.yieldResult;return Z.return(r.length>0)})};
Lrl=function(G,e){Nvl||(Nvl=_.A0.addLowPriorityJob(function(){var r,Z,O,M,T;return _.D(function(E){switch(E.nextAddress){case 1:return E.yield(_.iA(),2);case 2:r=E.yieldResult;if(!r)return E.return();Z=!0;_.jr(E,3);return E.yield(zcm(G,r,e),5);case 5:O=E.yieldResult;if(!O.length){Z=!1;E.jumpTo(6);break}M=O[0];return E.yield(_.ZG(M.actualName),7);case 7:return E.yield(_.Vr(M.actualName,r),6);case 6:_.rL(E,4);break;case 3:T=_.k5(E),_.Ad(T),Z=!1;case 4:_.A0.cancelJob(Nvl),Nvl=0,Z&&Lrl(G,e),_.HL(E)}})}))};
Gaa=function(){var G;return _.D(function(e){return e.nextAddress==1?e.yield(_.iA(),2):(G=e.yieldResult)?e.return(Wro(G)):e.return(!1)})};
eId=function(G){var e=100;e=e===void 0?500:e;var r,Z,O,M,T,E;return _.D(function(b){return b.nextAddress==1?(r=_.xZ("INNERTUBE_CONTEXT_CLIENT_NAME",0),Z=[r,(0,_.vG)()-2592E6],O=[r,(0,_.vG)()],M=IDBKeyRange.bound(Z,O),b.yield(_.CDs(G),2)):b.nextAddress!=3?(T=b.yieldResult,E=[],b.yield(_.Ma(T,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(w){E.length=0;return _.wL(w.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:M,direction:"prev"},function(q){if(q.getValue()&&E.length<
e)return E.push(q.getValue()),q.delete().then(function(){return q.continue()})})}),3)):b.return(E)})};
r_W=function(){var G;return _.D(function(e){if(e.nextAddress==1)return e.yield(_.iA(),2);G=e.yieldResult;if(!G||!_.pr()&&!_.R("nwl_init_require_datasync_id_killswitch")||!_.eIf())return e.jumpTo(0);_.ZC_=!0;_.r_p.isNwlInitialized=_.ZC_;return e.yield(_.KGP().awaitInitialization(),0)})};
ex=function(G,e){_.lM$[G]=!0;var r=_.vg();r&&r.publish.apply(r,arguments);_.lM$[G]=!1};
OCm=function(){if(_.Wkf()&&!ZCV){var G=function(r){r=r.data;if(r.op==="serializedGelBatch"){var Z=_.RPi.get(r.key);Z&&(_.apF(r.serializedBatch,Z.client,Z.resolve,Z.networklessOptions,Z.isIsolated,Z.useVSSEndpoint,Z.dangerousLogToVisitorSession,Z.requestsOutstanding),_.RPi.delete(r.key))}},e=_.zDA();
e&&(e.addEventListener("message",G),e.onerror=function(){_.RPi.clear()});
ZCV=!0}};
ry=function(){this.relativeTimeStart_=_.JV()};
Ms8=function(G,e){G!=null&&this.append.apply(this,arguments)};
Vs8=function(){return _.fO("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
hIH=function(G,e,r){r=r===void 0?!1:r;var Z,O,M,T,E;return _.D(function(b){switch(b.nextAddress){case 1:_.s5("SOCS",G,34128E3,"youtube.com",!0);if(_.GB)return O=fetch(e,{method:"POST",mode:_.Ip(e),credentials:_.Q5(e),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),M=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.Ip("/upgrade_visitor_cookie?eom=1"),credentials:_.Q5("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),b.yield(Promise.all([O,M]).then(function(w){return w[1]}),5);
fetch(e,{method:"POST",mode:_.Ip(e),credentials:_.Q5(e),cache:"no-store",headers:{"Content-Type":"text/plain"}});return b.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.Ip("/upgrade_visitor_cookie?eom=1"),credentials:_.Q5("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:Z=b.yieldResult;b.jumpTo(3);break;case 5:Z=T=b.yieldResult;case 3:if(!Z.ok)throw Error("vf");return b.yield(Z.text(),7);case 7:E=b.yieldResult,
!E.includes('"state_switch":true')&&!r||E.includes("skip_reload_for_test")||window.location.reload(),_.HL(b)}})};
T2W=function(G){return _.D(function(e){return e.nextAddress==1?e.yield(hIH(G.socsCookie,G.savePreferenceUrl,!0),2):e.return()})};
Dq8=function(G){return _.D(function(e){return e.nextAddress==1?e.yield(hIH(G.socsCookie,G.savePreferenceUrl),2):e.return()})};
iCW=function(G){G=G.xhr.responseText;if(!_.Vp(G,")]}'"))throw new Zx;G=JSON.parse(G.substr(4));if((G.type||1)>1)throw new Zx;G=G.id;xeW(G);Oh=_.ho(G);Ehm(18E5,2);return G};
vhA=function(G,e){e=new bCB(e);xeW("");Oh=_.orj(e);G>0&&Ehm(12E4,G-1);throw e;};
Ehm=function(G,e){_.jm(function(){_.VDm().then(iCW,function(r){return vhA(e,r)}).thenCatch(_.qu)},G)};
JsW=function(){var G=_.DeA();if(G!==void 0)return _.Ss(G);Oh||(Oh=_.VDm().then(iCW).thenCatch(function(e){return vhA(2,e)}));
return Oh};
wQW=function(){var G=document;return _.Cf(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(e){return"on"+e.toLowerCase()in G})};
$qa=function(G){G.addEventListener("click",function(e){var r=e.target;r&&r.getAttribute("href")&&(r=r.getAttribute("href"),_.er(window,r,"_blank"),e.preventDefault(),e.stopImmediatePropagation())})};
SYV=function(G){var e,r,Z,O=(Z=(r=((e=G.mainDownloadsListEntity)!=null?e:{})[_.jqA])==null?void 0:r.refresh)!=null?Z:"",M;G=(M=G.refresh)==null?void 0:M[O];O=G!=null?G:{};return(O==null?0:O.refreshTime)?Number(O==null?void 0:O.refreshTime):0};
qY8=function(G,e){var r=_.$t(G);return e.every(function(Z){var O;Z=Z==null?void 0:(O=Z.playbackDataEntity)==null?void 0:O.key;if(!Z)return!1;O=_.GF(_.Wn(Z).entityId,"mainVideoEntity");return!!r[O]})};
tsm=function(G){G=_.bw(G.entities);return _.u9$(G).length};
ghY=function(G,e){if(e){var r;G=(r=_.e6(G.entities,"downloadQualityPickerEntity",e))!=null?r:void 0}else G=void 0;return G};
lMa=function(G){var e=document.getElementsByTagName("ytd-enforcement-message-view-model");e.length===0||getComputedStyle(e[0]).display==="none"?G(0,"p.h_"):G(1,"p.h_")};
RIm=function(){MX=0;var G=[_.T1(!0)];VV&&_.UW(VV,"yt-window-resized",G)};
jgo=function(){MX||(MX=_.A0.addLowPriorityJob(RIm,200))};
XQH=function(){hn=0;aMa=_.Efl(document);var G=[aMa];VV&&_.UW(VV,"yt-window-scrolled",G)};
K2a=function(){hn||(hn=_.A0.addLowPriorityJob(XQH,200))};
ka2=function(G){G=G===void 0?null:G;fMl.push(_.DR(window,"resize",jgo));fMl.push(_.DR(window,"scroll",K2a));G&&(VV=G)};
dqd=function(){var G=_.w0.getLocalStorage();G&&HCC(G,G.mechanism.__iterator__(!0))};
ohA=function(G){_.D(function(e){if(e.nextAddress==1)return e.yield(G.delete("yt-appshell-assets"),2);_.HL(e)})};
sgV=function(G){return _.Ou((0,_.pEW)(),G)};
IMC=function(){var G;_.D(function(e){return e.nextAddress==1?e.yield(Tp.getInstance(),2):(G=e.yieldResult)?e.yield(QgB(G),0):e.jumpTo(0)})};
C1Y=function(){var G;_.D(function(e){return e.nextAddress==1?e.yield(Dx.getInstance(),2):(G=e.yieldResult)?e.yield(pQW(G),0):e.jumpTo(0)})};
u0d=function(G){ohA(G);IMC();C1Y()};
nha=function(G){var e,r;return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(_.dRp(G),2);if(e=Z.yieldResult){var O;a:{if(e.headers&&(O=e.headers.get("date"))&&(O=Date.parse(O),!isNaN(O))){O=Math.round((0,_.vG)()-O);break a}O=-1}r=O;if(r>-1)return Z.return(r)}return Z.return(-1)})};
mqC=function(){var G=_.O_.caches,e=_.PX("IS_SHELL_LOAD"),r,Z;_.D(function(O){if(O.nextAddress==1)return r=-1,e?O.yield(nha(G),3):(Z=_.wJ(),r=Math.round((0,_.vG)()-Z),O.jumpTo(2));O.nextAddress!=2&&(r=O.yieldResult);r>=0&&r<2147483648&&_.gJ({appInstallDataAgeMs:r});_.HL(O)})};
c_Y=function(G){var e=_.LB(_.O_.location.href),r={};"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 O=e.JSC$10041_queryData_.getValues(Z);if(O==null?0:O.length)r[Z]=O});
return _.tx(G,new Map(Object.entries(r)))};
YYW=function(G){G=G.match(/(.*)::.*::.*/);if(G!==null)return G[1]};
y_W=function(G){if(_.PK4()){var e=Object.keys(window.localStorage);e=_.h(e);for(var r=e.next();!r.done;r=e.next()){r=r.value;var Z=YYW(r);Z===void 0||G.includes(Z)||self.localStorage.removeItem(r)}}};
A_W=function(){if(!_.PK4())return!1;var G=_.IZ(),e=Object.keys(window.localStorage);e=_.h(e);for(var r=e.next();!r.done;r=e.next())if(r=YYW(r.value),r!==void 0&&r!==G)return!0;return!1};
F2Y=function(G){return _.c7("NotificationsDisabled",G)};
J_C=function(){return Notification.permission!="granted"?Promise.resolve():_.oNB().then(function(G){return G?G.pushManager.getSubscription().then(function(e){if(e)return Promise.resolve();e={userVisibleOnly:!0,applicationServerKey:_.NU("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return G.pushManager.subscribe(e).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
B2W=function(G){return _.oNB().then(function(e){if(!e||!e.active)return Promise.reject(new _.Cr("serviceworker.postMessage",G,e));try{return e.active.postMessage(G),Promise.resolve()}catch(r){return Promise.reject(r)}})};
xq2=function(){B2W({type:"notifications_register",data:_.xZ("ID_TOKEN")})};
Uq2=function(){var G={isWide:_.oZ.get("wide","0")==="1"},e=_.hy();if(e=e.getFlag(165)||e.getFlag(174))G.theme=_.d0(!0);if(_.bwy()){var r=_.H1()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";G.systemTheme=r}!e&&_.R("parent_tools_enable_app_settings")&&_.O5(window.location.href).theme!==void 0&&(G.theme=_.d0());if((e=Eh)?!_.c2.equals(e,G):G)e={currentValue:G},P1H&&(e.timeSinceLastSnapshotSecs=Math.round(((0,_.vG)()-P1H)/1E3)),Eh&&(e.previousValue=Eh),_.cg("appSettingsCaptured",e),Eh=G,P1H=
(0,_.vG)()};
zIB=function(){if(!_.PX("LOGGED_IN"))return Promise.resolve(!1);var G=_.td("service_worker_push_force_notification_prompt_tag");return G?_.Hq("PromptTags").then(function(e){if(!e)return!0;var r=[];try{r=JSON.parse(e)}catch(Z){return!1}return r&&r.indexOf(G)==-1}):Promise.resolve(!1)};
W2V=function(){var G=_.qt("service_worker_push_prompt_delay_microseconds");return G?_.Hq("PromptTime").then(function(e){return Promise.resolve(Date.now()-G>(e||0))}):Promise.resolve(!0)};
N28=function(){var G=_.qt("service_worker_push_logged_out_prompt_watches");return G==-1?Promise.resolve(!1):_.Hq("WatchCount").then(function(e){return e>=G})};
L2m=function(){var G=_.B5(document,"yt-push-prompt-modal-bg");G&&_.d1(G)};
GhB=function(){return _.qt("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.Hq("PromptCount").then(function(G){G||(G=0);return Promise.resolve(G<_.qt("service_worker_push_prompt_cap"))})};
ePB=function(G){return _.PX("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.PX("LOGGED_IN")&&(G===void 0?0:G)?zIB().then(function(e){if(e)return!0;e=[GhB(),W2V()];_.PX("LOGGED_IN")||e.push(N28());return Promise.all(e).then(function(r){return r.every(function(Z){return Z})})}):Promise.resolve(!1)};
re8=function(){_.Hq("PromptCount").then(function(G){return _.c7("PromptCount",G+1)}).then(function(){return _.c7("PromptTime",Date.now())}).then(function(){var G=_.td("service_worker_push_force_notification_prompt_tag");
if(G)return _.Hq("PromptTags").then(function(e){var r=[];if(e)try{r=JSON.parse(e)}catch(Z){return!1}r||(r=[]);r.push(G);return _.c7("PromptTags",JSON.stringify(r))})})};
O12=function(){Z1W||L2m()};
Mv8=function(G){G.style.zIndex=2147483648;G.style.pointerEvents="auto";G.style.backgroundColor="rgba(0, 0, 0, 0.6)";G.style.width="100%";G.style.height="100vh";G.style.position="absolute";G.style.top="0";G.style.left="0";G.style.border="none"};
Vvd=function(){var G=_.B5(document,"yt-push-prompt-modal-bg");Z1W=_.R("service_worker_push_prompt_modal_ignore_click");G?Mv8(G):(G=_.fl("div",{id:"yt-push-prompt-modal-bg"}),Mv8(G),document.body.appendChild(G),_.$q$(document,"click",O12))};
hPW=function(){var G=arguments;_.R("service_worker_push_prompt_modal_enable")&&Vvd();return Notification.requestPermission().then(function(e){L2m();var r=document.getElementById("ticker");r&&(r.className=r.classList.remove("show"));if(e=="granted")return J_C().then(function(){F2Y(!1);xq2();return Promise.resolve(!0)});
e=="denied"&&xq2();return Promise.resolve(!1)}).catch(function(){L2m();
return Promise.reject.apply(Promise,_.mY(G))})};
TpA=function(G){G=G===void 0?!1:G;var e=_.qUF().client;if(e&&e.browserVersion){var r=e.browserVersion,Z=e.browserName=="CHROME"&&_.S$(r,"50.0.0")<0;e=e.browserName=="OPERA"&&_.S$(r,"42.0.0")<0;if(Z||e)return Promise.resolve()}return _.ICo().then(function(O){if(!O)return Promise.resolve();O=J_C().then(function(){return B2W({type:"notifications_check_registration",data:_.xZ("ID_TOKEN")})});
return Notification.permission!="default"?O.catch(function(){}):O.then(function(){return ePB(G)}).then(function(M){if(M)return re8(),hPW().then(function(){})}).catch(function(){})})};
DkY=function(G){return _.sBH(G)?TpA():Promise.resolve()};
EOo=function(G){var e=G.installing||G.waiting;return G.active||!e?Promise.resolve(G):new Promise(function(r){var Z=function(O){O=O.target;if(O.state==="activated"||O.state==="redundant")e.removeEventListener("statechange",Z),r(G)};
e.addEventListener("statechange",Z)})};
i12=function(){var G=new _.X9$("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.Gx(G,{mainAppWeb:_.IB()});var e=_.eyv;_.R("service_worker_forward_exp_params")&&(e=c_Y(e));try{var r=_.l5$(e).catch(function(){_.e0(G,"FAILURE");return new Promise(function(){})});
_.R("service_worker_push_enabled")&&r.then(function(Z){_.e0(G,"SUCCESS");return Z}).then(EOo).then(DkY)}catch(Z){if(_.e0(G,"FAILURE"),Z.name!=="SecurityError")throw Z;
}};
b1A=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&i12()};
vOC=function(G,e){var r={};e&&(r.serializedYpcFamilyCreateLoggingParams=e);_.cg(G,r);_.Yc()};
w58=function(G,e){var r={};r.serializedYpcRefundFlowLoggingParams=e;G&&(r.eventType=G);_.cg("ypcRefundFlowEvent",r);_.Yc()};
$kA=function(G){G&&_.juS("transactionFlowSucceeded",G)};
Sbl=function(G){G&&_.qd("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",G,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
qb8=function(G){var e,r,Z,O,M,T,E;_.D(function(b){if(b.nextAddress==1)return b.yield(_.Ze_(),2);if(b.nextAddress!=3){if(!b.yieldResult)return b.return(!1);e=[];return b.yield(_.WQ.keys(),3)}r=b.yieldResult;Z=_.h(r);for(O=Z.next();!O.done;O=Z.next())M=O.value,T=_.elp(M),E=T.datasyncId,!E||G.includes(E)||e.push(_.WQ.delete(M));return b.return(Promise.all(e).then(function(w){return w.some(function(q){return q})}))})};
tv2=function(){var G,e,r,Z,O,M,T;return _.D(function(E){if(E.nextAddress==1)return E.yield(_.Ze_(),2);if(E.nextAddress!=3){if(!E.yieldResult)return E.return(!1);G=_.IZ("cache contains other");return E.yield(_.WQ.keys(),3)}e=E.yieldResult;r=_.h(e);for(Z=r.next();!Z.done;Z=r.next())if(O=Z.value,M=_.elp(O),(T=M.datasyncId)&&T!==G)return E.return(!0);return E.return(!1)})};
gO8=function(){var G=_.v_().resolve(_.bq(_.eCE));return G?G.getCurrentTime():0};
lpC=function(){var G,e,r,Z,O,M,T,E,b,w,q,t,g,l;return _.D(function(X){switch(X.nextAddress){case 1:G={},e=_.TIN(),r=_.h(Object.entries(e)),Z=r.next();case 4:if(Z.done){X.jumpTo(3);break}O=Z.value;M=_.h(O);T=M.next().value;E=M.next().value;b=T;w=E;if(!w){X.jumpTo(5);break}return X.yield(w(),8);case 8:G[b]=X.yieldResult;case 5:Z=r.next();X.jumpTo(4);break;case 2:q=_.h(),t=q.next();case 9:if(t.done){X.jumpTo(3);break}g=t.value;l=e[g];if(!l){X.jumpTo(10);break}return X.yield(l(),13);case 13:G[g]=X.yieldResult;
case 10:t=q.next();X.jumpTo(9);break;case 3:return X.return(G)}})};
RP2=function(){var G;_.D(function(e){if(e.nextAddress==1)return e.yield(lpC(),2);G=e.yieldResult;return e.yield(navigator.clipboard.writeText(JSON.stringify(G,null,2)),0)})};
jVl=function(G,e){return _.e6(G.entities,"superThanksSelectedTierEntity",e)};
apH=function(G,e){return{popup:{searchSuggestionReportDialog:{searchQuery:G,title:_.OK("SBOX_INAPPROPRIATE_TITLE"),suggestions:e,categoryLabel:_.OK("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.OK("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.OK("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.OK("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.OK("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.OK("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.OK("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.OK("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.OK("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.OK("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
X5o=function(G){var e,r,Z,O,M,T,E,b,w,q,t,g,l,X,H,I,C,u,P;return _.D(function(F){switch(F.nextAddress){case 1:return F.yield(_.O6(),2);case 2:return(e=F.yieldResult)?F.yield(_.b4f(e),3):F.return();case 3:r=F.yieldResult;if(!r)return F.return();O=((Z=r.offlineVideos)==null?void 0:Z.length)||0;T=((M=r.offlinePlaylists)==null?void 0:M.length)||0;if(O===0&&T===0)return F.return();E=0;if(r.offlineVideos)for(b=_.h(r.offlineVideos),w=b.next();!w.done;w=b.next())q=w.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
q.videoState&&(E+=1);G.offline_videos_count=O.toString();_.R("kevlar_log_offline_current_network_type_ks")||(G.offline_current_network_type=(t=_.nJi())!=null?t:"CONN_INVALID");_.R("kevlar_log_updated_time_for_smart_downloads")&&(g=_.Yt().getState().entities,l=_.gf(g),X=SYV(g),G.offline_smart_downloads_last_sync_time_ms=l.toString(),G.offline_smart_downloads_next_sync_time_ms=X.toString());G.offline_videos_playable=E.toString();G.offline_playlists_count=T.toString();r.offlineVideos&&(H=r.offlineVideos.reduce(function(J,
U){U.downloadedBytes&&(J+=Number(U.downloadedBytes));return J},0).toString())&&(G.offline_used_disk_space_bytes=H);
if(!((I=navigator)==null?0:(C=I.storage)==null?0:C.estimate)){F.jumpTo(4);break}return F.yield(navigator.storage.estimate(),5);case 5:u=F.yieldResult,G.offline_free_disk_space_bytes=(((P=u)==null?void 0:P.quota)||0).toString();case 4:G.offline_client_state=JSON.stringify(r),_.HL(F)}})};
KOY=function(G){G=G.match(/(.*)::.*::.*/);if(G!==null)return G[1]};
fp2=function(G){if(_.QjA()){var e=Object.keys(window.sessionStorage);e=_.h(e);for(var r=e.next();!r.done;r=e.next()){r=r.value;var Z=KOY(r);Z===void 0||G.includes(Z)||self.sessionStorage.removeItem(r)}}};
kh8=function(){if(!_.QjA())return!1;var G=_.IZ(),e=Object.keys(window.sessionStorage);e=_.h(e);for(var r=e.next();!r.done;r=e.next())if(r=KOY(r.value),r!==void 0&&r!==G)return!0;return!1};
iS=function(G,e,r){(_.R("desktop_keyboard_shortcut_usage_log")||r&&_.R("web_shorts_keyboard_shortcut_usage_log"))&&(e?_.Jr.get(G):_.FD.get(G))&&(G=e?_.xl.get(G):_.B7.get(G))&&_.n_(_.l4(),G)};
H18=function(G,e){return G.findIndex(function(r){return r.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(e.keyCode):!1};
dkd=function(G,e){e.stack&&(G.stack+="\n"+e.stack);return G};
QVo=function(G){var e=bS(G,"Content-Type");if(!e)return null;e=e.toLowerCase();if(e.startsWith("application/json"))return e.startsWith("application/json+protobuf")?new oOH:new _.E4;if(e.startsWith("application/x-protobuf")){G=bS(G,"Content-Transfer-Encoding");if(!G)return new vR;if(G.toLowerCase()=="base64")return new sVY}return null};
ye2=function(G,e,r,Z){var O=new Ip8(function(E,b){return p5V.has(b)?E.sentinel==="gal"&&E.event!==void 0:!1},function(E){E.event?(E=CZo(E.event),E=!E||ufm(Z,E)?!0:_.TB(G.lastEvent,wy,2,$L)?!_.TB(E,Sx,1,$L)&&!_.TB(E,wy,2,$L):!_.TB(E,Sx,1,$L)&&!_.TB(E,wy,3,$L)):E=!0;
return E});
r=_.tx(G.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",nOm(r)]]));if(G.nestedOrigins!==void 0)for(var M=_.h(G.nestedOrigins),T=M.next();!T.done;T=M.next())r=_.tx(r,new Map([["origin",T.value]]));return mko(O,r,e).then(function(E){E=ceA(E.event);if(_.TB(E,Sx,1,$L)){var b,w=(b=_.a$(E,Sx,1,$L))==null?void 0:_.lg(b,2);w&&Z.JSC$19703_logErrorEvent(YbC(w));b=_.a$(E,Sx,1,$L);_.lg(b,2)===4?(E=_.a$(E,Sx,1,$L),E={statusCode:11,statusMessage:_.gU(E,
3)}):(E=_.a$(E,Sx,1,$L),E={statusCode:12,statusMessage:_.gU(E,3)});return E}_.TB(E,wy,3,$L)?(E=_.a$(E,wy,3,$L),E={statusCode:1,consentLanguageKeys:_.gU(E,2)}):E={statusCode:1};return E}).catch(function(E){return E.errorCode!==void 0?{statusCode:E.errorCode,
statusMessage:E.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
Bpd=function(G){var e={};if(G===void 0||G===null)return e;G.getToken()!==void 0&&Aed(G.getToken())&&Aed(G.getToken()).length>0&&(e.scopes=new Set(Aed(G.getToken())));G.getToken()!==void 0&&FOd(G.getToken())&&FOd(G.getToken()).length>0&&(e.capabilities=new Set(FOd(G.getToken())));_.gU(G,3)!==void 0&&(e.consistencyKey=_.gU(G,3));G.getName()!==void 0&&G.getName()!==""&&(e.linkName=G.getName());_.h3(G,Jel,4)&&(G=_.SS(G,Jel,4),G=Object.assign({},_.gU(G,1)&&{userId:_.gU(G,1)},_.gU(G,2)&&{displayName:_.gU(G,
2)},_.gU(G,3)&&{email:_.gU(G,3)},_.gU(G,5)&&{username:_.gU(G,5)},_.gU(G,4)&&{profilePicture:_.gU(G,4)}),e.profile=G);return e};
xkd=function(G,e){var r=G.flowParams,Z;return{serviceId:r.serviceId,sessionId:r.sessionId,currentFlow:G.currentFlow,googleScopesString:e,linkingSessionSerialized:G.session.serialize(),consentLanguageKeys:r.consentLanguageKeys,callerState:G.callerState,dynamicUrlParameters:r.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(Z=r.partnerConfigMinReadTimestamp)==null?void 0:Z.serialize()}};
NpW=function(G){var e=G.googleScopes!==void 0?Array.from(G.googleScopes).join(","):"";PZo(xkd(G,e));e=UkW(G);return e===null?Promise.resolve(zPa):e.start().then(function(r){var Z,O=(Z=r.link)==null?void 0:Z.consistencyKey;return r.statusCode===1&&G.googleScopes!==void 0&&G.googleScopes.size>0&&O!==void 0?(Z=G.flowParams,WOm(Z.serviceId,Z.sessionId,G.googleScopes,O,Z.galService,G.config,r)):r})};
LOa=function(G){var e=UkW(G);return e===null?Promise.resolve(qX({statusCode:7,statusMessage:"Failed to create flow object"},G.callerState)):e.complete().then(function(r){var Z,O=(Z=r.link)==null?void 0:Z.consistencyKey;return r.statusCode===1&&G.googleScopes!==void 0&&G.googleScopes.size>0&&O!==void 0?(Z=G.flowParams,WOm(Z.serviceId,Z.sessionId,G.googleScopes,O,Z.galService,G.config,r)):qX(r,G.callerState)},function(r){return qX({statusCode:12,
statusMessage:"Failed to complete the flow: "+r.message},G.callerState)})};
WOm=function(G,e,r,Z,O,M,T){return G_W(O,{serviceId:G,sessionId:e,googleScopes:r,consistencyKey:Z}).then(function(){return T},function(E){return O.deleteLink({serviceId:G,
sessionId:e,accountLinkingEntryPoint:M.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+E.message}},function(b){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+b.message}})})};
UkW=function(G){switch(G.currentFlow){case 1:var e=G.flowParams;G=_.SS(G.session,eLo,1);return tn.createOAuthFlow(e,G);case 2:case 3:return e=G.flowParams,G=_.SS(G.session,rIl,6),gy.createStreamlinedFlow(e,G);default:return null}};
ZW8=function(G,e){G===2&&(G=3);var r=0;lS.indexOf(G)!==-1&&(r=lS.indexOf(G)+1);for(G=r;G<lS.length;G++)if(e.has(lS[G]))return lS[G]};
VVo=function(G){var e=G.serviceId;var r=G.sessionId;var Z=G.config;var O=G.galService;var M=G.capabilities;var T=G.scopes;var E=G.loginHint;var b=G.callerState;var w=G.consentLanguageKeys;var q=G.linkName;var t=G.dynamicUrlParameters;var g=G.partnerConfigMinReadTimestamp;G=Z.dataUsageNoticeConfig?Z.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return O.startLinkingSession({serviceId:e,sessionId:r,capabilities:M,scopes:T,loginHint:E,callerState:b,supportedFlows:OWd(Z.supportedFlows),completionUrl:Z.completionUrl,
accountLinkingEntryPoint:Z.accountLinkingEntryPoint,consentLanguageKeys:w,dataUsageNoticeConfig:G,linkName:q,dynamicUrlParameters:t,partnerConfigMinReadTimestamp:g}).then(function(l){return new MVo(e,r,Z,O,l,void 0,b,w,t,g)})};
bWY=function(G,e,r){var Z=(new hLY).getSession(G);if(Z===null)return Promise.resolve({statusCode:2});T8o(G);var O=DoC(Z.linkingSessionSerialized),M=Z.googleScopesString!==""&&Z.googleScopesString!==void 0?new Set(Z.googleScopesString.split(",")):void 0,T=Z.partnerConfigMinReadTimestampSerialized?EbC(Z.partnerConfigMinReadTimestampSerialized):void 0;return iW8(new MVo(G,Z.sessionId,e,r,O,M,Z.callerState,Z.consentLanguageKeys,Z.dynamicUrlParameters,T),Z.currentFlow,Z.consentLanguageKeys)};
PZo=function(G){var e=new hLY;e.storage!==null&&e.storage.set("SAVED_SESSION",G)};
T8o=function(G){var e=new hLY;if(e.storage!==null){var r=e.storage.get("SAVED_SESSION");r!==void 0&&r.serviceId===G&&e.storage.remove("SAVED_SESSION")}};
OWd=function(G){var e=new Set;G=_.h(G);for(var r=G.next();!r.done;r=G.next())r=r.value,r!==1&&vb2.has(r)&&e.add(vb2.get(r));return e};
qX=function(G,e){e!==void 0&&(G.callerState=e);return G};
wea=function(G){switch(G){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
q28=function(G){return new $od(G,new S2A(G))};
lVV=function(G,e){e=e===void 0?!1:e;var r=document.createElement("div");G&&(r.style.transform="scaleX(-1)");r.style.backgroundColor=e?"rgba(138,180,248,.24)":"#e8f0fe";r.style.height="4px";r.style.overflow="hidden";r.style.position="absolute";r.style.top="0";r.style.width="100%";r.style.zIndex="1500";r.setAttribute("aria-label","Loading");r.setAttribute("aria-live","polite");G=document.createElement("style");G.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  }";
r.appendChild(G);G=tVm();G.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";G.style.left="-145.166611%";var Z=gba(e);Z.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";G.appendChild(Z);r.appendChild(G);G=tVm();G.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";G.style.left="-54.888891%";e=gba(e);e.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
G.appendChild(e);r.appendChild(G);return r};
tVm=function(){var G=document.createElement("div");G.style.height="100%";G.style.position="absolute";G.style.transformOrigin="top left";G.style.width="100%";return G};
gba=function(G){var e=document.createElement("span");e.style.borderTop=G?"4px solid #669df6":"4px solid #4285f4";e.style.display="inline-block";e.style.position="absolute";e.style.width="100%";return e};
RLd=function(G){return G==null?void 0:_.qQv(G).valueOf()};
KvH=function(G){var e=document.body,r=!1,Z=function(){r||(r=!0,jH2(O,M),setTimeout(function(){e.removeChild(M);e.removeChild(O)},150))},O=aVm(G,getComputedStyle(e).direction==="rtl",Z),M=XeW(Z);
jH2(O,M);e.appendChild(M);e.appendChild(O);window.requestAnimationFrame(function(){M.style.opacity="1";O.style.opacity="1";O.style.transform="translate(-50%, -50%) scale(1)";O.children[0].focus()})};
aVm=function(G,e,r){var Z=document.createElement("div");Z.style.position="fixed";Z.style.alignItems="center";Z.style.backgroundColor=G?"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(M){M.key==="Escape"&&r()});
e=fVm(G,e,r);Z.appendChild(k_2(e));Z.appendChild(e);var O=document.createElement("img");O.src=G?"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";O.style.height="72px";O.style.width="72px";O.style.color="#9aa0a6";O.setAttribute("alt","");Z.appendChild(O);O=document.createElement("h1");O.textContent="Something went wrong.  Try again.";
O.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";O.style.lineHeight="24px";O.style.fontSize="16px";O.style.textAlign="center";O.style.letterSpacing="0.1px";O.style.color=G?"rgb(232,234,237)":"#3c4043";Z.appendChild(O);Z.appendChild(k_2(e));return Z};
fVm=function(G,e,r){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=G?"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=G?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
Z.addEventListener("mouseleave",function(){Z.style.backgroundColor="transparent"});
Z.addEventListener("click",r);Z.addEventListener("keydown",function(O){O.key!=="Enter"&&O.key!=="Space"||r()});
e=document.createElement("img");e.src=G?"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};
k_2=function(G){var e=document.createElement("div");e.setAttribute("tabindex","0");e.setAttribute("aria-hidden","true");e.addEventListener("focus",function(){return void G.focus()});
return e};
XeW=function(G){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",G);return e};
jH2=function(G,e){e.style.opacity="0";G.style.opacity="0";G.style.transform="translate(-50%, -50%) scale(0.8)"};
HWd=function(G,e){G.sandbox&&G.sandbox.add&&(G.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),G.sandbox.add("allow-downloads"));G.src=e};
RX=function(G){doA.call(this,G)};
jx=function(G,e){e=e===void 0?!1:e;this.parsedImageUrl_=null;G instanceof obH||(sHo==void 0&&(sHo=new QHo),G=sHo.parse(G.toString(),e));G=this.parsedImageUrl_=G;G.JSC$19915_parsedOptions_==void 0&&((e=G.getOptions())||(e=""),G.JSC$19915_parsedOptions_=(new IVV).parse(e));doA.call(this,G.JSC$19915_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;G=this.parsedImageUrl_;e=G.uri_.JSC$10041_port_;this.JSC$19917_domain_=G.uri_.JSC$10041_domain_+(e?":"+e:"");this.JSC$19917_query_=
this.parsedImageUrl_.uri_.JSC$10041_queryData_.toString()};
pea=function(G){this.mode=4;this.data=G;this.parsedData=[];G=0;for(var e=this.data.length;G<e;G++){var r=[],Z=this.data.charCodeAt(G);Z>65536?(r[0]=240|(Z&1835008)>>>18,r[1]=128|(Z&258048)>>>12,r[2]=128|(Z&4032)>>>6,r[3]=128|Z&63):Z>2048?(r[0]=224|(Z&61440)>>>12,r[1]=128|(Z&4032)>>>6,r[2]=128|Z&63):Z>128?(r[0]=192|(Z&1984)>>>6,r[1]=128|Z&63):r[0]=Z;this.parsedData.push(r)}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))};
CtW=function(G){this.typeNumber=0;this.errorCorrectLevel=G===void 0?2:G;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
aX=function(G,e){if(G.length==void 0)throw Error("Pk`"+G.length+"`"+e);for(var r=0;r<G.length&&G[r]==0;)r++;this.num=Array(G.length-r+e);for(e=0;e<G.length-r;e++)this.num[e]=G[e+r]};
uK2=function(G,e){this.totalCount=G;this.dataCount=e};
nbH=function(){this.buffer=[];this.length=0};
mo8=function(){var G=!1;if(_.aq4()){G=_.gs();var e="";_.fq_()?(e=/Windows (?:NT|Phone) ([0-9.]+)/,e=(G=e.exec(G))?G[1]:"0.0"):_.Qp()?(e=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,e=(G=e.exec(G))&&G[1].replace(/_/g,".")):_.KSq()?(e=/Mac OS X ([0-9_.]+)/,e=(G=e.exec(G))?G[1].replace(/_/g,"."):"10"):_.ws(_.gs(),"KaiOS")?(e=/(?:KaiOS)\/(\S+)/i,e=(G=e.exec(G))&&G[1]):_.aq4()?(e=/Android\s+([^\);]+)(\)|;)/,e=(G=e.exec(G))&&G[1]):_.kSp()&&(e=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,e=(G=e.exec(G))&&G[1]);G=
e||""}return G};
JIA=function(G,e){this.JSC$19940__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(e)for(var r in e)this.JSC$19940__htOption[r]=e[r];this.JSC$19940__htOption.useSVG&&(cIW=Y28);this.JSC$19940__android=mo8();this.JSC$19940__el=G;this._oQRCode=null;this._oDrawing=new cIW(this.JSC$19940__el,this.JSC$19940__htOption);this.JSC$19940__htOption.text&&(G=this.JSC$19940__htOption.text,this._oQRCode=new CtW(this.JSC$19940__htOption.correctLevel),yIW(this._oQRCode,
G),e=this._oQRCode,AIm(e,!1,FvH(e)),this.JSC$19940__el.title=G,this._oDrawing.draw(this._oQRCode),this.makeImage())};
B8B=function(G,e,r,Z,O){G.save();var M=new Path2D;M.roundRect(e,r,Z*7,Z*7,Z*2);M.roundRect(e+Z,r+Z,Z*5,Z*5,Z*1.3);M.roundRect(e+2*Z,r+2*Z,Z*3,Z*3,Z);G.clip(M,"evenodd");G.fillStyle=O;G.fillRect(0,0,G.canvas.width,G.canvas.height);G.restore()};
XZ=function(G,e){if(typeof G!=="function")throw Error("Sk");return _.O_.setTimeout(function(){G()},e)};
Ki=function(){};
Pt8=function(G,e,r,Z,O){(new Ki).debug("TestLoadImageWithRetries: "+O);if(Z==0)r(!1);else{var M=O||0;Z--;xo8(G,e,function(T){T?r(!0):_.O_.setTimeout(function(){Pt8(G,e,r,Z,M)},M)})}};
xo8=function(G,e,r){var Z=new Ki;Z.debug("TestLoadImage: loading "+G);var O=new Image;O.onload=function(){try{Z.debug("TestLoadImage: loaded"),UoB(O),r(!0)}catch(M){}};
O.onerror=function(){try{Z.debug("TestLoadImage: error"),UoB(O),r(!1)}catch(M){}};
O.onabort=function(){try{Z.debug("TestLoadImage: abort"),UoB(O),r(!1)}catch(M){}};
O.ontimeout=function(){try{Z.debug("TestLoadImage: timeout"),UoB(O),r(!1)}catch(M){}};
_.O_.setTimeout(function(){if(O.ontimeout)O.ontimeout()},e);
O.src=G};
UoB=function(G){G.onload=null;G.onerror=null;G.onabort=null;G.ontimeout=null};
zLY=function(){this.front_=[];this.back_=[]};
WvW=function(G,e){this.action=G;this.params=e||{}};
fi=function(G,e){_.pB.call(this);this.delay_=new _.ux(this.JSC$20066_onTick_,0,this);_.Xx(this,this.delay_);this.JSC$20064_interval_=5E3;this.nextTickTime_=0;if(typeof G==="function")e&&(G=(0,_.CB)(G,e));else if(G&&typeof G.handleEvent==="function")G=(0,_.CB)(G.handleEvent,G);else throw Error("ya");this.JSC$20066_listener_=G};
kL=function(G,e,r,Z,O,M,T,E,b,w,q,t,g,l,X){var H=this;r=r===void 0?!1:r;Z=Z===void 0?function(){return""}:Z;
O=O===void 0?!1:O;M=M===void 0?!1:M;T=T===void 0?!1:T;E=E===void 0?function(){return _.Nz({})}:E;
b=b===void 0?!1:b;q=q===void 0?!1:q;t=t===void 0?!1:t;g=g===void 0?!1:g;l=l===void 0?!1:l;this.JSC$20067_pathPrefix_=G;this.defaultQueryParams_=e;this.pubsub_=new _.H_;this.reconnectTimer_=(this.isInitialReconnectTimer_=!!X)?X(function(){H.safeReconnect_()}):new fi(this.safeReconnect_,this);
this.JSC$20067_channel_=null;this.JSC$20067_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$20067_pendingMessages_=[];this.enableAsyncTest_=r;this.JSC$20067_getXsrfToken_=Z;this.useAsyncBrowserChannelHandler_=M;this.getAuthorizationHeader_=E;this.getAuthorizationHeaderSync_=w;this.enableCachedUpdateAuthorizationHeader_=T;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.Nz();this.enableLoungeTokenRefresh_=O;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=
b;this.disableMdxAuthForNonPlaybackMessages_=q;this.disableMdxAuthForAdMessages_=t;this.enableMdxAuthForConnectionOnly_=g;this.disableMdxAuthForShortsMessages_=l;this.JSC$20067_channelOpenedCounter=new N8Y;this.JSC$20067_channelClosedCounter=new Lvm;this.channelMessageSentCounter=new G48;this.JSC$20067_channelMessageReceivedCounter=new ed8;this.JSC$20067_channelErrorCounter=new rZo;this.pendingMapsOnClosedCounter=new ZxW;this.undeliveredMapsOnClosedCounter=new OxA};
HR=function(G){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;G=G||document.location.href;var e=Number(_.hd(G)[4]||null)||"";e&&(this.port=":"+e);this.domain=_.TG(G)||"";G=_.gs();G.search("MSIE")>=0&&_.S$(G.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
dy=function(G){G=G||{};this.name=G.name||"";this.id=G.id||G.screenId||"";this.token=G.token||G.loungeToken||"";this.uuid=G.uuid||G.dialId||"";this.idType=G.screenIdType||"normal";this.secret=G.screenIdSecret||""};
MMW=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(G){var e=Math.random()*16|0;return(G=="x"?e:e&3|8).toString(16)})};
VMH=function(G){return _.Yf(G,function(e){return{key:e.id,name:e.name}})};
hdl=function(G,e){return _.Cf(G,function(r){return r||e?!r!=!e?!1:r.id==e.id:!0})};
sh=function(G,e){return _.Cf(G,function(r){return oX(r,e)})};
bx8=function(){var G=T7A(),e=D$W();if(EiY()){var r=G,Z=_.uNS(r,e);Z<0&&_.Iqp(r,-(Z+1),0,e)}G=ixW(G);if(G.length==0)try{_.I__("remote_sid")}catch(O){}else try{_.s5("remote_sid",G.join(","),-1)}catch(O){}};
T7A=function(){var G=_.SF("yt-remote-connected-devices")||[];G.sort(_.CFA);return G};
ixW=function(G){if(G.length==0)return[];var e=G[0].indexOf("#"),r=e==-1?G[0]:G[0].substring(0,e);return _.Yf(G,function(Z,O){return O==0?Z:Z.substring(r.length)})};
viW=function(G){_.$N("yt-remote-connected-devices",G,86400)};
D$W=function(){if(w4W)return w4W;var G=_.SF("yt-remote-device-id");G||(G=MMW(),_.$N("yt-remote-device-id",G,31536E3));for(var e=T7A(),r=1,Z=G;_.Y4(e,Z);)r++,Z=G+"#"+r;return w4W=Z};
$$C=function(){return _.SF("yt-remote-session-browser-channel")};
EiY=function(){return _.SF("yt-remote-session-screen-id")};
tMo=function(G){G.length>5&&(G=G.slice(G.length-5));var e=_.Yf(Szm(),function(Z){return Z.loungeToken}),r=_.Yf(G,function(Z){return Z.loungeToken});
_.JES(r,function(Z){return!_.Y4(e,Z)})&&qzo();
_.$N("yt-remote-local-screens",G,31536E3)};
Szm=function(){return _.SF("yt-remote-local-screens")||[]};
qzo=function(){_.$N("yt-remote-lounge-token-expiration",!0,86400)};
QV=function(G){G||(_.qv("yt-remote-session-screen-id"),_.qv("yt-remote-session-video-id"));bx8();G=T7A();_.yp(G,D$W());viW(G)};
l9B=function(){gid();return IX?!!IX.get("yt-remote-use-staging-server"):!1};
gid=function(){if(!IX){var G=_.AyA();G&&(IX=new _.uq(G))}};
X4Y=function(G,e,r,Z,O){r=r===void 0?function(){return""}:r;
var M=function(){return new kL(pi(G,"/bc"),e,!1,r,Z)};
return _.R("enable_mdx_web_channel_desktop")?new RdA(function(){return new jNW(pi(G,"/wc"),e,r)}):new a9W(M,O)};
HxW=function(){var G=KLY;f92();Ci.push(G);k4C()};
uS=function(G,e){f92();var r=d$8(G,String(e));Ci.length==0?oiH(r):(k4C(),_.rR(Ci,function(Z){Z(r)}))};
ni=function(G){uS("CP",G)};
f92=function(){Ci||(Ci=_.Lz("yt.mdx.remote.debug.handlers_")||[],_.Eu("yt.mdx.remote.debug.handlers_",Ci))};
oiH=function(G){var e=(mp+1)%50;mp=e;sNY[e]=G;QN8||(QN8=e==49)};
k4C=function(){var G=Ci;if(sNY[0]){var e=QN8?mp:-1,r={};do r={record$jscomp$15:void 0},e=(e+1)%50,r.record$jscomp$15=sNY[e],_.rR(G,function(Z){return function(O){O(Z.record$jscomp$15)}}(r));
while(e!=mp);sNY=Array(50);mp=-1;QN8=!1}};
d$8=function(G,e){var r=(Date.now()-I9C)/1E3;r.toFixed&&(r=r.toFixed(3));var Z=[];Z.push("[",r+"s","] ");Z.push("[","yt.mdx.remote","] ");Z.push(G+": "+e,"\n");return Z.join("")};
cR=function(G){_.Ar.call(this);this.JSC$20092_logName_=G;this.screens=[]};
yV=function(G){cR.call(this,"LocalScreenService");this.JSC$20099_http_=G;this.loungeTokenRefreshTimer_=NaN;YL(this);this.info("Initializing with "+p42(this.screens))};
An=function(G,e){e=e===void 0?!1:e;cR.call(this,"ScreenService");this.JSC$20105_http_=G;this.disableAutomaticScreenCache_=e;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};CnB(this)};
FZ=function(G,e,r){_.Ar.call(this);this.JSC$20109_logName_=r;this.JSC$20109_screenService_=G;this.receiver_=e;this.screen_=null};
N78=function(G,e,r){r.disableCastApi?Jn("Cannot initialize because disabled by Mdx config."):uT2()?nid(G,r)&&(m$8(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?cZ8(e):(window.__onGCastApiAvailable=function(Z,O){Z?cZ8(e):(BR("Failed to load cast API: "+O),YzB(!1),m$8(!1),_.qv("yt-remote-cast-available"),_.qv("yt-remote-cast-receiver"),yZo(),e(!1))},r.loadCastApiSetupScript?_.Hi(AZY):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
FLa()>=60&&JZW():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?B7A():FLa()>=89?x$Y():(Pnl(),U$a(zda.map(WLW))))):Jn("Cannot initialize because not running Chrome")};
yZo=function(){Jn("dispose");var G=xL();G&&G.dispose();_.Eu("yt.mdx.remote.cloudview.instance_",null);LLC(!1);_.RIa(Gxd);Gxd.length=0};
epY=function(){return!!_.SF("yt-remote-cast-installed")};
rVV=function(){var G=_.SF("yt-remote-cast-receiver");return G?G.friendlyName:null};
Zpd=function(){Jn("clearCurrentReceiver");_.qv("yt-remote-cast-receiver")};
OpB=function(){return epY()?xL()?xL().getCastSession():(BR("getCastSelector: Cast is not initialized."),null):(BR("getCastSelector: Cast API is not installed!"),null)};
V0a=function(G,e){M0l()?xL().setConnectedScreenStatus(G,e):BR("setConnectedScreenStatus called before ready.")};
uT2=function(){var G=_.gs().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.ec||G};
nid=function(G,e){var r=!1;xL()||(G=new PR(G,e),G.subscribe("yt-remote-cast2-availability-change",function(Z){_.$N("yt-remote-cast-available",Z);ex("yt-remote-cast2-availability-change",Z)}),G.subscribe("yt-remote-cast2-receiver-selected",function(Z){Jn("onReceiverSelected: "+Z.friendlyName);
_.$N("yt-remote-cast-receiver",Z);ex("yt-remote-cast2-receiver-selected",Z)}),G.subscribe("yt-remote-cast2-receiver-resumed",function(Z){Jn("onReceiverResumed: "+Z.friendlyName);
_.$N("yt-remote-cast-receiver",Z);ex("yt-remote-cast2-receiver-resumed",Z)}),G.subscribe("yt-remote-cast2-session-change",function(Z){Jn("onSessionChange: "+hp8(Z));
Z||_.qv("yt-remote-cast-receiver");ex("yt-remote-cast2-session-change",Z)}),_.Eu("yt.mdx.remote.cloudview.instance_",G),r=!0);
Jn("cloudview.createSingleton_: "+r);return r};
xL=function(){return _.Lz("yt.mdx.remote.cloudview.instance_")};
cZ8=function(G){YzB(!0);m$8(!1);xL().init(!1,function(e){e?(LLC(!0),_.jgN("yt-remote-cast2-api-ready")):(BR("Failed to initialize cast API."),YzB(!1),_.qv("yt-remote-cast-available"),_.qv("yt-remote-cast-receiver"),yZo());G(e)})};
Jn=function(G){uS("cloudview",G)};
BR=function(G){uS("cloudview",G)};
YzB=function(G){Jn("setCastInstalled_ "+G);_.$N("yt-remote-cast-installed",G)};
M0l=function(){return!!_.Lz("yt.mdx.remote.cloudview.apiReady_")};
LLC=function(G){Jn("setApiReady_ "+G);_.Eu("yt.mdx.remote.cloudview.apiReady_",G)};
m$8=function(G){_.Eu("yt.mdx.remote.cloudview.initializing_",G)};
Uh=function(G){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(G)};
wzW=function(G){gid();if(!IX||!IX.get("yt-remote-disable-remote-module-for-dev")){G=_.xZ("MDX_CONFIG")||G;dqd();bx8();zp||(zp=new HR(G?G.loungeApiHost:void 0),l9B()&&(zp.basePath="/api/loungedev"));WR||(WR=_.Lz("yt.mdx.remote.deferredProxies_")||[],_.Eu("yt.mdx.remote.deferredProxies_",WR));TBH();var e=NX();if(!e){var r=new An(zp,G?G.disableAutomaticScreenCache||!1:!1);_.Eu("yt.mdx.remote.screenService_",r);e=NX();var Z={};G&&(Z={appId:G.appId,disableDial:G.disableDial,theme:G.theme,loadCastApiSetupScript:G.loadCastApiSetupScript,
disableCastApi:G.disableCastApi,enableDialLoungeToken:G.enableDialLoungeToken,enableCastLoungeToken:G.enableCastLoungeToken,forceMirroring:G.forceMirroring});_.Eu("yt.mdx.remote.enableConnectWithInitialState_",G?G.enableConnectWithInitialState||!1:!1);N78(r,function(M){M?Li()&&V0a(Li(),"YouTube TV"):r.subscribe("onlineScreenChange",function(){ex("yt-remote-receiver-availability-change")})},Z)}if(G&&!_.Lz("yt.mdx.remote.initialized_")){_.Eu("yt.mdx.remote.initialized_",!0);
Gf("Initializing: "+(0,_.dT)(G));eA.push(_.S4("yt-remote-cast2-api-ready",function(){ex("yt-remote-api-ready")}));
eA.push(_.S4("yt-remote-cast2-availability-change",function(){ex("yt-remote-receiver-availability-change")}));
eA.push(_.S4("yt-remote-cast2-receiver-selected",function(){DSB();ex("yt-remote-auto-connect","cast-selector-receiver")}));
eA.push(_.S4("yt-remote-cast2-receiver-resumed",function(){ex("yt-remote-receiver-resumed","cast-selector-receiver")}));
eA.push(_.S4("yt-remote-cast2-session-change",EU8));eA.push(_.S4("yt-remote-connection-change",function(M){M?V0a(Li(),"YouTube TV"):ipW()||(V0a(null,null),Zpd())}));
eA.push(_.S4("yt-remote-cast2-session-failed",function(){ex("yt-remote-connection-failed")}));
Z=bpm();G.isAuto&&(Z.id+="#dial");var O=G.capabilities||[];O.length>0&&(Z.capabilities=O);Z.name=G.device;Z.app=G.app;(G=G.theme)&&(Z.theme=G);Gf(" -- with channel params: "+(0,_.dT)(Z));Z?(_.$N("yt-remote-session-app",Z.app),_.$N("yt-remote-session-name",Z.name)):(_.qv("yt-remote-session-app"),_.qv("yt-remote-session-name"));_.Eu("yt.mdx.remote.channelParams_",Z);e.start();Li()||vUl()}}};
Sel=function(){var G=NX().instance_.$_gos();var e=$S8();e&&ra()&&(hdl(G,e)||G.push(e));return VMH(G)};
qeB=function(){var G=Sel(),e=$S8();e||(e=ipW());return _.Cf(G,function(r){return e&&oX(e,r.key)?!0:!1})};
$S8=function(){var G=Li();if(!G)return null;var e=NX().getScreens();return sh(e,G)};
EU8=function(G){Gf("remote.onCastSessionChange_: "+hp8(G));if(G){var e=$S8();if(e&&e.id==G.id){if(V0a(e.id,"YouTube TV"),G.idType=="shortLived"&&(G=G.token))t08&&(t08.token=G),(e=ra())&&e.setLoungeToken(G)}else e&&gUW(),lkC(G,1)}else ra()&&gUW()};
gUW=function(){M0l()?xL().stopSession():BR("stopSession called before API ready.");var G=ra();G&&(G.disconnect(1),Rpa(null))};
jrC=function(){var G=ra();return G&&G.getProxyState()!=3?new ZJ(ra(),void 0):null};
Gf=function(G){uS("remote",G)};
NX=function(){if(!akW){var G=_.Lz("yt.mdx.remote.screenService_");akW=G?new Xzo(G):null}return akW};
Li=function(){return _.Lz("yt.mdx.remote.currentScreenId_")};
K$W=function(G){_.Eu("yt.mdx.remote.currentScreenId_",G)};
DSB=function(){_.Eu("yt.mdx.remote.connectData_",null)};
ra=function(){return _.Lz("yt.mdx.remote.connection_")};
Rpa=function(G){var e=ra();DSB();G||K$W("");_.Eu("yt.mdx.remote.connection_",G);WR&&(_.rR(WR,function(r){r(G)}),WR.length=0);
e&&!G?ex("yt-remote-connection-change",!1):!e&&G&&ex("yt-remote-connection-change",!0)};
ipW=function(){var G=EiY();if(!G)return null;var e=NX();if(!e)return null;e=e.getScreens();return sh(e,G)};
lkC=function(G,e){fkV?t08=G:(K$W(G.id),G=new OC(zp,G,bpm(),_.Lz("yt.mdx.remote.enableConnectWithInitialState_")||!1),G.connect(e,_.Lz("yt.mdx.remote.connectData_")),G.subscribe("beforeDisconnect",function(r){ex("yt-remote-before-disconnect",r)}),G.subscribe("beforeDispose",function(){ra()&&Rpa(null)}),G.subscribe("browserChannelAuthError",function(){var r=$S8();
r&&r.idType=="shortLived"&&(M0l()?xL().handleBrowserChannelAuthError():BR("refreshLoungeToken called before API ready."))}),Rpa(G))};
vUl=function(){var G=ipW();G?(Gf("Resume connection to: "+hp8(G)),lkC(G,0)):(QV(),Zpd(),Gf("Skipping connecting because no session screen found."))};
TBH=function(){var G=bpm();if(_.c2.isEmpty(G)){G=D$W();var e=_.SF("yt-remote-session-name")||"",r=_.SF("yt-remote-session-app")||"";G={device:"REMOTE_CONTROL",id:G,name:e,app:r,mdxVersion:3};G.authuser=String(_.xZ("SESSION_INDEX","0"));(e=_.xZ("DELEGATED_SESSION_ID"))&&(G.pageId=String(e));_.Eu("yt.mdx.remote.channelParams_",G)}};
bpm=function(){return _.Lz("yt.mdx.remote.channelParams_")||{}};
kxo=function(){var G,e;return _.D(function(r){if(r.nextAddress==1)return(_.OCa()||_.R("use_new_nwl"))&&_.Ga$().isNetworkAvailable()?r.yield(_.iA(),2):r.return();if(r.nextAddress!=3)return(G=r.yieldResult)?r.yield(eId(G),3):r.return();e=r.yieldResult;if(!e.length)return r.return();e.forEach(function(Z){var O={timestamp:Z.timestamp};Z=Z.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:Z.appShellAssetLoadReport,options:O}:Z.clientError?{payloadName:"clientError",payload:Z.clientError,
options:O}:void 0;Z&&_.cg(Z.payloadName,Z.payload,Z.options)});
e.length===100&&_.A0.addLowPriorityJob(kxo);_.HL(r)})};
Hp2=function(G){if(G.playerResponse){if(G=G.playerResponse,G.messages&&G.messages.length>0&&(G=G.messages.find(function(e){return!(!e||!e.mealbarPromoRenderer)}))&&G.mealbarPromoRenderer)return G.mealbarPromoRenderer}else if(G.response&&(G=G.response)&&G.overlay&&G.overlay.mealbarPromoRenderer)return G.overlay.mealbarPromoRenderer};
dSd=function(G){if(G.response){var e=G.response;if(e&&e.overlay&&e.overlay.tooltipRenderer)return e.overlay.tooltipRenderer}if(G.playerResponse&&(G=G.playerResponse,G.messages&&G.messages.length>0&&(G=G.messages.find(function(r){return!(!r||!r.tooltipRenderer)}))&&G.tooltipRenderer))return G.tooltipRenderer};
srC=function(G){if(!oUW&&(G=G||_.xZ("ZWIEBACK_PING_URLS"))&&G.length){oUW=!0;for(var e=0;e<G.length;e++)_.LF(G[e])}};
IkC=function(G){if(_.c2.get(_.xZ("PLAYER_VARS",{}),"privembed",!1)!="1"){G&&Bvd();try{Qro().then(function(){},function(){}),_.jm(IkC,18E5)}catch(e){_.WX(e)}}};
pzo=function(){var G=_.hy(),e=G.getFlag(119),r=window.devicePixelRatio>1;document.body&&_.yE(document.body,"exp-invert-logo")&&(r&&!_.yE(document.body,"inverted-hdpi")?_.m2(document.body,"inverted-hdpi"):!r&&_.yE(document.body,"inverted-hdpi")&&_.u1(document.body,"inverted-hdpi"));e!=r&&(_.Tn(0,119,r),G.save())};
CMH=function(G){return G.filter(function(e){return"ypcGetCartEndpoint"in e||"ypcFixInstrumentEndpoint"in e})};
ub2=function(G){return G.filter(function(e){return!_.a(e,_.$RS)})};
mSB=function(G,e){var r,Z,O,M,T,E,b;_.D(function(w){switch(w.nextAddress){case 1:r=_.Ql.getInstance();Z=_.Ga.instance;O=_.Q$.instance;if(!O)return nUV(G,Z,e),w.return();_.jr(w,2);G.onLoadingCommand&&Z.resolveCommand(G.onLoadingCommand);return w.yield(r.getCurrentPositionFromGeolocation(),4);case 4:M=w.yieldResult;if(!G.resolveLocationCommand){w.jumpTo(5);break}T=r.createLocationInfo(M);return w.yield(_.p1(O,G.resolveLocationCommand,{locationInfo:T}),6);case 6:E=w.yieldResult;if(!E||"error"in E&&E.error||
E.errorMetadata)return nUV(G,Z,e),w.return();var q;if(E==null?0:(q=E.onResponseReceivedActions)==null?0:q.length){q=_.h(E.onResponseReceivedActions);for(var t=q.next();!t.done;t=q.next())Z.resolveCommand(t.value)}(_.a(G.onSuccessCommand,_.u4)||_.a(G.onSuccessCommand,_.Mv))&&_.xy(e.hostElement,"yt-navigate",{endpoint:G.onSuccessCommand,reload:!0});case 5:_.rL(w,0);break;case 2:b=_.k5(w);if(b instanceof GeolocationPositionError&&b.code===GeolocationPositionError.PERMISSION_DENIED)return G.onDeniedCommand&&
Z.resolveCommand(G.onDeniedCommand),w.return();nUV(G,Z,e);_.HL(w)}})};
nUV=function(G,e,r){G.onFailureCommand&&(e.resolveCommand(G.onFailureCommand),_.Pi(r.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
Ye2=function(G,e){var r=_.a(G,_.m4c);if(r&&e){G=r.videoIds||[r.videoId];var Z;e=(Z=_.xy(e,"yt-lockup-requested",{videoIds:G}).detail)==null?void 0:Z.returnValue;var O;r.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?O=e?e:G.map(function(M){return{videoId:M,navigationEndpoint:r.videoCommand}}):e&&(O=e);
O&&(Z=O.map(function(M){var T=Object,E=T.assign;var b=M.navigationEndpoint;if(!_.a(b,_.DC)){var w=_.a(b,_.u4);if(w){if(delete w.index,delete w.playlistId,w=_.a(b==null?void 0:b.commandMetadata,_.rJ),w==null?0:w.url){var q=w.url;q=_.y5(q,"list");q=_.y5(q,"index");w.url=q}}else b=void 0}return E.call(T,{},M,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:b})}),cVW(Z,r))}};
yVd=function(G){var e=_.M6();if(G=_.a(G,_.cYW))G.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&e.clearQueue(),G.closeMiniplayer&&_.v_().resolve(_.fp).close(!0)};
F$H=function(G){AVA(_.M6(),G)};
JVV=function(G){var e;(G=(e=_.a(G,_.u5P))==null?void 0:e.setVideoIds)&&G.forEach(function(r){_.dDC(_.M6(),r)})};
xSa=function(G){BBd(_.M6(),G)};
PMW=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(G){return!1}};
USo=function(G){var e=["h","m","s"],r=_.Ai(e);r.reverse();var Z={};G=(G.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(T){var E=(T.match(/[hms]/)||[""])[0];return E?(Z[E]=parseInt(T.match(/\d+/)[0],10),!1):!0});
for(G.reverse();G.length&&r.length;){var O=r.shift();O in Z||(Z[O]=parseInt(G.shift(),10))}if(G.length||Z.s>59||Z.m>59||Z.h>9)return null;var M="";e.forEach(function(T){Z[T]&&(M+=""+Z[T]+T)});
return M||null};
zp2=function(G,e){var r=_.MfW(e,{},G,!0);return new Promise(function(Z,O){r.listenOnce("n",function(){O(Error("Dl`"+r.JSC$29791_getErrorDescription()))});
r.listenOnce("l",function(){var M=r.getResponseCode();if(M!==200)O(Error("El`"+e+"`"+G.type+"`"+G.size+"`"+M));else try{Z(JSON.parse(r.getResponseText()).encryptedBlobId)}catch(T){O(T)}});
r.run()})};
W$W=function(G){return G.substring(G.indexOf(":")+1,G.indexOf(";"))};
NBo=function(G){return new Promise(function(e,r){var Z=new FileReader;Z.onloadend=function(){try{var O=new Uint8Array(Z.result);O.length<8&&r(void 0);var M=O.subarray(0,8);O="";for(var T=0;T<M.length;T++)O+=("0"+M[T].toString(16)).substr(-2);O.startsWith("ffd8ff")?e("image/jpeg"):O.startsWith("47494638")?e("image/gif"):O.startsWith("89504e470d0a1a0a")?e("image/png"):O.startsWith("424d")?e("image/bmp"):e(void 0)}catch(E){r(E)}};
Z.onerror=r;Z.readAsArrayBuffer(G)})};
L$C=function(G){return new Promise(function(e,r){var Z=new Image;Z.crossOrigin="anonymous";Z.onload=function(){var O=document.createElement("canvas");O.width=Z.naturalWidth;O.height=Z.naturalHeight;var M=O.getContext("2d");if(!M)throw Error("Fl");M.drawImage(Z,0,0);M=W$W(G);O.toBlob(function(T){T?e(T):r()},M)};
Z.src=G})};
e58=function(G,e){var r;if(((r=_.a(G,_.DC))==null?void 0:r.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var Z;_.xy((Z=e.hostElement)!=null?Z:e,"yt-shorts-reset");_.LdH(_.v_().resolve(_.gu),G).then(function(M){GBA(M,e,G)})}else{var O;
_.zw((O=e.hostElement)!=null?O:e,[G]).then(function(M){M&&GBA(M.data,e,G)})}};
GBA=function(G,e,r){if(G){var Z=_.a(G.replacementEndpoint,_.DC);if(Z){G.sequenceContinuation&&(Z.sequenceParams=G.sequenceContinuation);var O;_.xy((O=e.hostElement)!=null?O:e,"yt-navigate",{endpoint:G.replacementEndpoint})}else if((G==null?void 0:G.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(G==null?0:G.watchStatus)&&_.a(G.watchStatus,_.XVb)){var M;_.xy((M=e.hostElement)!=null?M:e,"yt-navigate",{endpoint:r})}}};
r3Y=function(G){var e=_.v_().resolve(_.YB),r=_.oH.currentPageTypeSelector(e.getState())||"";e=_.oH.currentPageSubTypeSelector(e.getState())||"";r=r==="ytd-browse"&&e==="home";return _.R("web_guide_entry_enable_cache_for_non_home_pages")?(G=(G==null?void 0:G.navigationEndpoint)&&_.OO(G.navigationEndpoint)==="home",{disableCache:r&&G}):{disableCache:r}};
O2d=function(G,e,r){if(e!=null&&e.isPrimary){a:{if(r&&r.length){var Z=e.formattedTitle;var O={};Z&&(O.header={panelHeaderViewModel:{title:_.l1(Z)}});Z=[];r=_.h(r);for(var M=r.next();!M.done;M=r.next()){M=_.a(M.value,Z2V);var T=void 0,E=void 0,b=((T=M)==null?0:T.formattedTitle)?_.l1((E=M)==null?void 0:E.formattedTitle):void 0;T=void 0;E=(T=M)==null?void 0:T.isPrimary;if(M&&b&&!E){b={title:b};M.navigationEndpoint&&(b.rendererContext={commandContext:{onTap:{innertubeCommand:M.navigationEndpoint}}});
T=[];var w=E=void 0;if(((E=M)==null?0:(w=E.thumbnail)==null?0:w.thumbnails)&&M.thumbnail.thumbnails.length>0){E=_.h(M.thumbnail.thumbnails);for(w=E.next();!w.done;w=E.next())T.push({url:w.value.url});b.leadingAccessory={avatarViewModel:{image:{sources:T},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(E=void 0,(E=M.icon)==null?0:E.iconType)T.push({clientResource:{imageName:M.icon.iconType||""}}),b.leadingImage={sources:T};E=T=void 0;((T=M)==null?0:(E=T.badges)==null?0:E.liveBroadcasting)?b.trailingImage=
{sources:[{clientResource:{imageName:"live"}}]}:M.count&&(b.trailingLabel={content:M.count.toString()});Z.push({listItemViewModel:b})}}Z.length!==0?(O.content={listViewModel:{listItems:Z}},O.rendererContext={commandContext:{onHoverEnd:{hideSheetCommand:{}}}}):O=void 0;if(O){O={showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:O}},contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT",hoverConfig:{preventCloseWhileHovered:!0,hideDelayMs:3E3}}}};break a}}O=void 0}O&&
(e.mouseEnterEndpoint=O,e.mouseLeaveEndpoint={hideSheetCommand:{}});G.push({guideEntryRenderer:e})}};
Mc8=function(G){if(!G)return!1;try{if(G.host&&G.host.tagName==="YT-FORMATTED-STRING"&&G.host.id==="contenteditable-textarea"||G.nodeType===Node.ELEMENT_NODE&&G.tagName==="YTD-COMMENT-INPUT")return!0}catch(e){return!1}return Mc8(G.parentNode)};
Mf=function(G){return G?G.tagName==="A"&&G.href&&G.classList.contains("yt-simple-endpoint"):!1};
Vcl=function(G){return G?G.tagName==="IMG"&&G.classList.contains("emoji"):!1};
h5W=function(G,e,r){if(!G)return null;var Z=Mf(G);if(Z&&r)return e=G.pathname.substring(G.pathname.indexOf("/channel/")+9),document.createTextNode("@"+e);if(Z&&!r)return document.createTextNode("");if(Vcl(G))return r=G.alt,G=G.dataset.emojiId,!G&&e&&(e=_.Pe(e,r))&&e.isCustomEmoji&&(G=e.emojiId),G?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+G+">"):document.createTextNode(r);Z=G.cloneNode(!1);for(var O=0;O<G.childNodes.length;++O){var M=h5W(G.childNodes[O],e,r);M&&Z.appendChild(M)}return Z};
V6=function(G){return G?Mf(G)?G:V6(G.lastChild):null};
TUa=function(G){return G?Mf(G)?G:TUa(G.firstChild):null};
D_V=function(G){if(!G)return null;for(var e=G.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=V6(e))?G=e:G=(G=G.parentNode)?V6(G.previousElementSibling):null;return G};
EjY=function(G){if(!G)return null;for(var e=G.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=TUa(e))?e:EjY(G.parentNode)};
i2o=function(G){var e=_.z_(),r=e.JSC$11352_getStartNode();if(!Mc8(r.parentNode))return null;e=e.JSC$11352_getStartOffset();if(r.nodeType===Node.TEXT_NODE){var Z=_.B2(r,Mf);if(Z){if(G&&e===0||!G&&e===r.length)return Z}else{if(G&&e===r.length)return!r||r.nodeName==="BR"||r.nextElementSibling&&_.We(r.nextElementSibling,"display")==="block"?null:TUa(r.nextElementSibling);if(!G&&e===0)return r?V6(r.previousElementSibling):null}}if(r.nodeType===Node.ELEMENT_NODE)if(G){if(0<=e&&e<r.childNodes.length)return TUa(r.childNodes[e])}else if(0<
e&&e<=r.childNodes.length)return V6(r.childNodes[e-1]);return null};
b22=function(G,e,r){if(!G)return null;if(G.nodeType===Node.TEXT_NODE)if(r){var Z=D_V(G);if(Z&&!/^\s+\S/.test(G.wholeText.substr(0,e)))return Z}else if((Z=EjY(G))&&!/\S\s+/.test(G.wholeText.substr(e,G.wholeText.length)))return Z;return G.nodeType===Node.ELEMENT_NODE?r?D_V(G.childNodes[e]):EjY(G.childNodes[e]):b22(G.parentNode,e,r)};
vjV=function(G){if(G.hasChildNodes())switch(G.tagName){case "DIV":case "A":case "SPAN":var e="";for(G=G.firstChild;G;G=G.nextSibling)e+=vjV(G);return e;default:return""}else switch(G.nodeType){case 3:return G.textContent;default:return""}};
ws2=function(G){switch(G){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"}};
$_m=function(G){return G.map(function(e){return{settingsRadioOptionRenderer:{title:_.Pn(e.name),asideText:_.Pn(e.approximateSize),id:ws2(e.format)}}})};
qiH=function(G){if(G&&G.length!==0)return G.filter(Sio()).map(function(e){return{settingsRadioOptionRenderer:{title:e.name,asideText:e.approximateSize,id:ws2(e.formatType)}}})};
hj=function(G){if(G)return G.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
tc2=function(G,e){G=new Set(G!=null?G:[]);if(G.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(G.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(G.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(G.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(G.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(e)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
gjl=function(G){var e=G.indexOf("(");return e!==-1?G.substring(e+1,G.length-1):G};
_.R5W=function(G,e,r,Z,O,M){r||(r=lgA);var T;(T=_.a(r.commandMetadata,_.rJ))!=null&&T.url||(r=Error("Kl`"+JSON.stringify(r)),_.yx(r),r=lgA);r=_.c2.unsafeClone(r);T=_.Pg(_.a(r.commandMetadata,_.rJ).url,"search_query",G);_.Wp(location.href,"sv")==="1"&&(_.a(r,_.Vl).params="EgOAAgE%3D",T=_.Pg(T,"sv","1"));_.a(r,_.Vl)&&(_.a(r,_.Vl).query=G);T=T.replace(/%20/g,"+");_.a(r.commandMetadata,_.rJ).url=T;O=_.R("desktop_enable_entity_suggest")?{entityMid:O}:{};_.v_().resolve(_.$1).resolveCommand(r,{form:{tempData:Object.assign({},
{gs_l:e,oq:Z!=null?Z:G},O,{isFromShorts:M})}})};
j$H=function(G){switch(G){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
XsB=function(G,e,r,Z,O,M){var T=_.c2.clone(agC);T.locale=_.xZ("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;T.report={description:O||"<empty>"};O=_.xZ("SBOX_SETTINGS",{});e=e.join(",");var E=Date.now();G={choice_cc:Z,choice_id_cc:r,choices_sc:e,gl:O.REQUEST_DOMAIN,hl:O.REQUEST_LANGUAGE,query:G,time:E};M&&(G.choice_additional_comment_cc=M);_.i7W(T,G)};
KKd=function(G){var e=new Map;e.set("authuser",_.xZ("SESSION_INDEX","0"));return _.tx(G,e)};
kBo=function(G){var e;return _.D(function(r){switch(r.nextAddress){case 1:if(!G||!fgY(G))return r.return(null);e=null;switch(_.xZ("INNERTUBE_CLIENT_NAME")){case "WEB":return r.jumpTo(2);case "WEB_REMIX":e=G.getPlayer()}r.jumpTo(3);break;case 2:return r.yield(G.getPlayerPromise(),4);case 4:e=r.yieldResult;r.jumpTo(3);break;case 3:return r.return(e)}})};
fgY=function(G){return["ytd-player","ytmusic-player"].includes(String(G.tagName||"").toLowerCase())};
H2W=function(G){G=Math.round(G);return G%2?G-1:G};
d_m=function(G){G=Math.round(G);return G%2===0?G-1:G};
ojV=function(G){var e,r,Z;if(G=(e=G.createPlaylistDialogFormSchema)==null?void 0:(r=e.fieldSchemas)==null?void 0:(Z=r.title)==null?void 0:Z.validationSchema)for(e=[G.syncStep,G.asyncStep].filter(function(O){return O!==void 0}),e=_.h(e),r=e.next();!r.done;r=e.next()){r=r.value.rules;
if(!r)break;r=_.h(r);for(r=r.next();!r.done;r=r.next())return _.a(r.value,_.q0A)}};
Q$C=function(G){var e,r,Z;if(G=(e=G.createPlaylistDialogFormSchema)==null?void 0:(r=e.fieldSchemas)==null?void 0:(Z=r.visibility)==null?void 0:Z.validationSchema)for(e=[G.syncStep,G.asyncStep].filter(function(O){return O!==void 0}),e=_.h(e),r=e.next();!r.done;r=e.next()){r=r.value.rules;
if(!r)break;r=_.h(r);for(Z=r.next();!Z.done;Z=r.next())if(Z=_.a(Z.value,s$C))return e=void 0,(e=Z.translations)==null?void 0:e.visibilityNotValidErrorMessage}};
Igl=function(){var G,e;return(e=(G=_.v_().resolve(_.bq(_.Ig)))==null?void 0:G())!=null?e:!1};
psW=function(G){var e=21;if(!G)return e;e+=G.headerTitle?27:0;e+=G.headerTitle&&G.hasHeaderActionHeader?4:0;return e+=G.headerTitle&&G.headerSubtitle?16:0};
Cgd=function(G){var e=0;if(!G)return e;e+=G.hasFooterPrimaryButton||G.hasFooterSecondaryButton?48:0;e+=G.footerTrailingLabel||G.footerLeadingLabel?30:0;return e+=G.hasFooterPrimaryButton||G.hasFooterSecondaryButton||!G.footerTrailingLabel&&!G.footerLeadingLabel?0:12};
uC8=function(G){var e=new _.H_,r=G;return{subscribe:function(Z){e.subscribe("changed",Z)},
dispatch:function(Z,O){var M=r;if(Z==="Touch Start")r=Object.assign({},M,{isAnimating:!1,initialY:O.event.touches[0].clientY});else if(Z==="Touch Move"){Z=O.contentScrollable?-1*(M.initialY-24):0;var T,E=(T=O.headerDivHeight)!=null?T:psW(O.header),b;T=(b=O.footerDivHeight)!=null?b:Cgd(O.footer);b=Math.min(O.fullContentWrapperHeight,O.heightMap[O.contentWrapperId]+E-T);r=Object.assign({},M,{currentY:Math.max(Z,O.event.touches[0].clientY-M.initialY),maxHeightForContentWrapper:Math.min(b,Math.max(0,
(M.isFullScreen?b:O.contentWrapperHeight)-M.currentY))})}else r=Z==="Snap To Full Screen"?Object.assign({},M,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:O.maxHeight}):Z==="Snap To Neutral Position"?Object.assign({},M,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:O.maxHeight}):Z==="Close Sheet"?Object.assign({},M,{isAnimating:!0,currentY:O.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:O.maxHeight}):M;e.publish("changed",r)}}};
njl=function(G){return _.ev(function(e){G(e);return!1})};
m_2=function(){_.v_().resolve(_.nJ).closeSheet()};
c3o=function(G){var e,r,Z,O,M,T,E,b,w,q,t;return{headerTitle:(e=G.headerTitle)==null?void 0:e.call(G),headerSubtitle:(r=G.headerSubtitle)==null?void 0:r.call(G),headerActionHeader:G.headerActionHeader,footerPrimaryButton:G.footerPrimaryButton,footerSecondaryButton:G.footerSecondaryButton,footerButtonType:(Z=G.footerButtonType)==null?void 0:Z.call(G),footerLeadingLabel:(O=G.footerLeadingLabel)==null?void 0:O.call(G),footerTrailingLabel:(M=G.footerTrailingLabel)==null?void 0:M.call(G),shouldShowIcons:(T=
G.shouldShowIcons)==null?void 0:T.call(G),skipContentClick:(E=G.skipContentClick)==null?void 0:E.call(G),additionalClassName:(b=G.additionalClassName)==null?void 0:b.call(G),onClosedCallback:G.onClosedCallback,focusOnClose:(w=G.focusOnClose)==null?void 0:w.call(G),isDisabled:(q=G.isDisabled)==null?void 0:q.call(G),disabledCommand:(t=G.disabledCommand)==null?void 0:t.call(G),headerFn:G.headerFn,contentFn:G.contentFn,footerFn:G.footerFn,hasHeaderFn:G.hasHeaderFn(),hasContentFn:G.hasContentFn(),hasFooterFn:G.hasFooterFn(),
hasFooterPrimaryButton:G.hasFooterPrimaryButton(),hasFooterSecondaryButton:G.hasFooterSecondaryButton(),hasHeaderActionHeader:G.hasHeaderActionHeader()}};
YiW=function(G){switch(G){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""}};
y3W=function(G){switch(G){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""}};
A3W=function(G){switch(G){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""}};
FK8=function(G,e,r){e.forEach(function(Z){_.ke(_.v_().resolve(_.Qf),Z)});
_.Pi(G,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",r])};
PgH=function(G,e,r,Z){var O=_.a(r,_.ZZ).commandLifeCycleConfig;O&&O.onStartCommand&&_.Wi(G,[O.onStartCommand],e);_.ki(e);var M=_.Q$.instance;M&&_.IV(M,r)?_.p1(M,r,Z).then(function(T){if(!T||(T==null?0:T.error))return T=_.a(r,_.ZZ).serializedTransactionFlowLoggingParams,_.H4(e),_.Ss(new Tf("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",T));_.H4(e);return{data:T}}).then(function(T){_.H4(e);
J32(T.data);var E=T.data.command;E&&_.Wi(G,[E],e);E=BUW(r,T.data);if(!E){var b=T.data;T=!1;if(b&&b.command&&_.a(b.command,_.LO)){var w;b=((w=_.a(b.command,_.LO))==null?void 0:w.commands)||[];for(w=0;w<b.length;w++)if(_.a(b[w],_.NHW)){T=!0;break}}T||_.Q9('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!E&&O&&O.onSuccessCommand?_.Wi(G,[O.onSuccessCommand],e):E&&O&&O.onFailureCommand&&_.Wi(G,[O.onFailureCommand],e)},function(){_.H4(e);
O&&O.onFailureCommand&&_.Wi(G,[O.onFailureCommand],e);x_8(r)}):_.yx(Error("Wl"),"ERROR")};
U_H=function(G,e,r){var Z=[e];r&&Z.push(r);return _.zw(G,Z).then(function(O){var M=_.a(e,_.ZZ).serializedTransactionFlowLoggingParams,T=O.data,E=BUW(e,T);E?O=_.Ss(new Tf(E,M)):J32(T);return O},function(){var O=_.a(e,_.ZZ).serializedTransactionFlowLoggingParams;
x_8(e);return _.Ss(new Tf("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",O))})};
BUW=function(G,e){G=_.a(G,_.ZZ).serializedTransactionFlowLoggingParams;var r=null;switch(e.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":r="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":r="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":r="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}r?_.Ca(r,G):$kA(G);return r};
x_8=function(G){_.Ca("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.a(G,_.ZZ).serializedTransactionFlowLoggingParams)};
J32=function(G){if(G.trackingParams){var e=_.l4(),r=_.go();e&&r&&_.QU(e,r,_.b1(G.trackingParams))}};
z5C=function(G,e,r){var Z=_.Q$.instance,O=_.pjA(_.xZ("YPC_MB_URL")),M=(new _.Q1_).init(),T=_.IBU(),E=_.a(r,_.Pon).languageCode;E===void 0?_.yx(Error("Ii"),"ERROR"):_.KY([M,O]).then(function(){var b={ctk:_.c4.payments.business.integration.ClientTokenFactory.createClientToken(E,T)};Z&&_.IV(Z,r)?_.p1(Z,r,b).then(function(w){return{data:w}}).then(function(w){_.xy(e,"yt-service-request-completed",w);
w.code!=="ERROR"&&(w=w.data.command)&&_.Wi(G,[w],e)}):_.yx(Error("Wl"),"ERROR")})};
LKa=function(G,e,r,Z){var O=_.Q$.instance;O&&_.IV(O,r)?_.p1(O,r,Z).then(function(M){return{data:M}}).then(function(M){WKV(G,e,r,M)},function(){NUa(r)}):(O=_.v_().resolve(_.bq(_.bf)))&&O.requestDataForServiceEndpoint(r,Z).then(function(M){WKV(G,e,r,M)},function(){NUa(r)})};
WKV=function(G,e,r,Z){_.xy(e,"yt-service-request-completed",Z);if(Z.code&&Z.code=="ERROR")NUa(r);else{(Z=Z.data.commands)&&_.Wi(G,Z,e);var O;(G=(O=_.a(r,_.GZy))==null?void 0:O.serializedYpcPauseFlowLoggingParams)&&G&&_.qd("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",G)}};
NUa=function(G){var e;(G=(e=_.a(G,_.GZy))==null?void 0:e.serializedYpcPauseFlowLoggingParams)&&G&&_.qd("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",G,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
rDY=function(G,e,r){var Z=_.Q$.instance;Z&&_.IV(Z,r)?_.p1(Z,r).then(function(O){return{data:O}}).then(function(O){GDA(G,e,r,O)},function(){e3W(r)}):(Z=_.v_().resolve(_.bq(_.bf)))&&Z.requestDataForServiceEndpoint(r).then(function(O){GDA(G,e,r,O)},function(){e3W(r)})};
GDA=function(G,e,r,Z){_.xy(e,"yt-service-request-completed",Z);Z.code&&Z.code=="ERROR"?e3W(r):((Z=Z.data.commands)&&_.Wi(G,Z,e),(G=_.a(r,_.eUE).serializedYpcResumeFlowLoggingParams)&&G&&_.qd("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",G))};
e3W=function(G){(G=_.a(G,_.eUE).serializedYpcResumeFlowLoggingParams)&&G&&_.qd("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",G,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
Zl2=function(G){G=G===void 0?{}:G;_.v_().resolve(_.Q22).showFeedbackDialog(G.customProductData,G.feedbackContent,G.onFeedbackSubmitted,G.bucket)};
Olm=function(G){G=G===void 0?{}:G;_.v_().resolve(_.Q22).showHelpDialog(G.helpContext,G.articleId,G.productData)};
M_V=function(){Olm()};
V_C=function(){Zl2()};
Tc2=function(G,e,r){var Z,O,M,T,E,b,w;return _.D(function(q){switch(q.nextAddress){case 1:Z=_.a(G,h3W);if((O=Z)==null?0:O.productId){b={productId:Z.productId,bucket:Z.bucket,enableAnonymousFeedback:(E=Z.enableAnonymousFeedback)!=null?E:!0,allowNonLoggedInFeedback:!0};w={feedbackChoice:r.feedbackChoice};if(!_.R("web_collect_offline_state")){q.jumpTo(8);break}_.jr(q,9);return q.yield(X5o(w),11)}T={bucket:(M=Z)==null?void 0:M.bucket};if(!_.R("web_collect_offline_state")){q.jumpTo(4);break}T.customProductData=
{};_.jr(q,5);return q.yield(X5o(T.customProductData),7);case 7:_.rL(q,4);break;case 5:_.k5(q);case 4:Zl2(T);q.jumpTo(0);break;case 11:_.rL(q,8);break;case 9:_.k5(q);case 8:_.lIS(w),_.gHf("GFEEDBACK",w),Z.productId==="5295751"&&(w.client_attestation=Number(_.xZ("CATSTAT",0))),Z.productId==="5295751"&&(w.client_time=Date.now()/1E3/3600),Z.productId==="5295751"&&(w.original_playback_id=_.YLv||""),_.i7W(b,w),_.HL(q)}})};
Duo=function(G){if(G=_.a(G,_.f1S)){var e={bucket:G.bucketIdentifier};G.additionalDatas&&(e.customProductData={},G.additionalDatas.forEach(function(r){if(r=r.userFeedbackEndpointProductSpecificValueData)e.customProductData[r.key]=r.value}));
Zl2(e)}};
ESW=function(G){var e=_.e8.getInstance();var r=_.OK("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var Z=_.OK("DELETE",void 0,"Delete"),O=_.OK("CANCEL",void 0,"Cancel");r=CDW(r,void 0,Z,O,{signal:"DELETE_ALL_DOWNLOADS"});_.ul(e,[{openPopupAction:r}],G)};
blY=function(){return _.D(function(G){return G.nextAddress==1?G.yield(_.v_().resolve(_.Au),2):G.yield(il2(),0)})};
vSd=function(G){var e,r;return _.D(function(Z){return Z.nextAddress==1?(r=(e=_.a(G,_.zr))==null?void 0:e.targetId)?Z.yield(_.v_().resolve(_.Au),3):Z.jumpTo(0):Z.yield(_.v_().resolve(_.y2).deleteVideo(r),0)})};
$uo=function(G){var e,r;return _.D(function(Z){return Z.nextAddress==1?(r=(e=_.a(G,_.zr))==null?void 0:e.targetId)?Z.yield(_.v_().resolve(_.Au),3):Z.jumpTo(0):Z.yield(woW(_.v_().resolve(_.y2),r),0)})};
qgV=function(G){var e,r;return _.D(function(Z){return(r=(e=_.a(G,_.zr))==null?void 0:e.targetId)?Z.yield(SgC(r),0):Z.jumpTo(0)})};
gSV=function(){_.R("kevlar_woffle_refresh_dl_load_killswitch")||t_o()};
R3A=function(){_.R("kevlar_woffle")&&_.sO.instance&&lwY()};
aw8=function(G){var e;if((e=_.a(G,_.O2))==null||!e.videoId)return!1;jia(_.v_().resolve(_.y2),_.a(G,_.O2),G.clickTrackingParams);return!0};
KZV=function(G){var e;if((e=_.a(G,_.Mo))==null||!e.playlistId)return!1;XoA(_.v_().resolve(_.y2),_.a(G,_.Mo),G.clickTrackingParams);return!0};
kDB=function(G){var e=_.a(G,_.pbE);(e==null?void 0:e.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(e==null?void 0:e.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||fwW(_.v_().resolve(_.y2),_.a(G,_.pbE))};
duH=function(G){G=_.a(G,_.bbc);var e;(G==null?0:(e=G.actions)==null?0:e.length)&&Hl8(G)};
QiC=function(G){var e,r;return _.D(function(Z){e=_.a(G,oSo);return(r=e)!=null&&r.localWatchHistoryCommandType?Z.yield(siW(e),0):Z.return()})};
IwH=function(G){setTimeout(function(){requestAnimationFrame(G)},80)};
poB=function(G){return Object.entries(G).map(function(e){return e.join(":")}).join(";")};
uko=function(G){var e,r,Z;_.D(function(O){if(O.nextAddress==1)return O.yield(CEm(),2);e=O.yieldResult;r=_.Ga.instance;switch(e){case "granted":Z=G.getLocationCommand;break;case "denied":Z=G.openDeniedDialogAction;break;case "prompt":Z=G.openCollectionDialogAction;break;default:Z=G.openCollectionDialogAction}Z&&r.resolveCommand(Z);_.HL(O)})};
CEm=function(){var G,e;return _.D(function(r){if(r.nextAddress==1)return G="prompt",navigator.permissions?r.yield(navigator.permissions.query({name:"geolocation"}),3):r.jumpTo(2);r.nextAddress!=2&&(e=r.yieldResult,G=e.state);return r.return(G)})};
mu8=function(){_.D(function(G){return G.yield(_.nSW(),0)})};
cDV=function(){var G,e,r;return _.D(function(Z){if(Z.nextAddress==1)return G=_.v_().resolve(_.v1),G?Z.yield(_.p1(G,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.FH(Error("Zl")),Z.return(void 0));if(e=Z.yieldResult){if(e.errorMetadata)return _.FH(Error("$l`"+e.errorMetadata.status+"`"+e.error)),Z.return(void 0);r=e.datasyncIds;_.BP8=r.length;return Z.return(r)}_.FH(Error("am"));return Z.return(void 0)})};
YgW=function(){cDV().then(function(G){G&&(Lrl(G),qb8(G),y_W(G),fp2(G))})};
yDd=function(G){_.A0.addLowPriorityJob(function(){var e,r,Z,O,M;return _.D(function(T){switch(T.nextAddress){case 1:if(_.R("ytidb_clear_optimizations_killswitch")){T.jumpTo(2);break}e=_.IZ("clear");if(e.startsWith("V")&&e.endsWith("||")){var E=[e];Lrl(E);qb8(E);y_W(E);fp2(E);return T.return()}r=A_W();Z=kh8();return T.yield(tv2(),3);case 3:return O=T.yieldResult,T.yield(Gaa(),4);case 4:if(M=T.yieldResult,!(r||Z||O||M))return T.return();case 2:G.isNetworkAvailable()?YgW():G.listenOnce("publicytnetworkstatus-online",
YgW),_.HL(T)}})})};
DJ=function(G){G={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.nQ(G)}}}};_.Ga.instance&&_.Ga.instance.resolveCommand(G)};
AD8=function(G){if(G){var e=_.h_();_.aC(e,3854,void 0,{layer:0,parentLayer:4});switch(G){case 1:var r=238708;break;case 2:r=238715;break;case 3:r=238710;break;case 6:r=238709}r&&(G=_.OY(e,{veType:r}))&&_.fE(e,G)}};
FZl=function(G){if(G){var e=_.h_();_.aC(e,3854,void 0,{layer:0,parentLayer:4});switch(G){case 1:var r=238714;break;case 2:r=238711;break;case 8:r=238709;break;case 7:r=238713;break;case 3:case 4:case 5:r=238712}r&&(G=_.OY(e,{veType:r}))&&_.fE(e,G)}};
JDa=function(G){switch(G.latencyType){case 0:_.Rl("consent_primitive_flow");_.jq("cpit",G.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.jq("cpist",G.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.jq("cprtif",G.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.jq("cprtli",G.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.jq("cprt",G.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.jq("cpdt",G.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.jq("cpjct",G.timestampEpochMillis,"consent_primitive_flow")}};
eFa=function(G,e){var r,Z,O,M,T,E,b,w,q,t,g,l,X,H,I,C,u,P,F,J;return _.D(function(U){switch(U.nextAddress){case 1:_.jr(U,2);(Z=(r=_.a(G,Bcl))==null?void 0:r.serializedConsentRequest)||(Z=(O=_.a(G,xuB))==null?void 0:O.serializedConsentRequest);Z&&(M=PEd(_.NU(Z)));if(M===void 0)return U.return();T=Uuo(M);T.latencyCallback=JDa;e&&z3d(T,function(){e.then(function(e$){e$.pauseVideo();(new WZm).increment()})});
return((E=_.a(G,Bcl))==null?void 0:E.consentAction)==="CONSENT_ACTION_PREWARM"||((b=_.a(G,xuB))==null?void 0:b.consentAction)==="CONSENT_ACTION_PREWARM"?U.yield(Ncm(T),5):U.yield(LZA(T),6);case 6:w=U.yieldResult;q=_.ig(w,EC);if(q===1){if(((t=_.a$(w,iu,1,EC))==null?void 0:_.lg(t,1))===1||((g=_.a$(w,iu,1,EC))==null?void 0:_.lg(g,1))===2||((l=_.a$(w,iu,1,EC))==null?void 0:_.lg(l,1))===3)_.a(G,xuB)?DJ(_.OK("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
DJ(_.OK("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));AD8((X=_.a$(w,iu,1,EC))==null?void 0:_.lg(X,1),_.ix(w,Gim,3,_.bx()))}else q===2?(((H=bu(w))==null?void 0:_.lg(H,1))===5?_.a(G,xuB)?DJ(_.OK("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):DJ(_.OK("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((I=bu(w))==null?void 0:_.lg(I,1))===1||((C=bu(w))==null?void 0:_.lg(C,1))===4?DJ(_.OK("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((u=bu(w))==null?void 0:_.lg(u,1))===7&&((P=M)==null?void 0:(F=_.SS(P,vB,4))==null?void 0:_.lg(F,4))!==1&&DJ(_.OK("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),FZl((J=bu(w))==null?void 0:_.lg(J,1))):DJ(_.OK("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));U.jumpTo(5);break;case 5:_.rL(U,0);break;case 2:_.k5(U),DJ(_.OK("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.HL(U)}})};
ZY8=function(){if(!r8d.has("Worker")){r8d.set("Worker",!0);var G={api:"BROWSER_API_WEB_WORKER"};G.available="Worker"in window?!0:!1;_.cg("apiTest",G)}};
OYW=function(G){return typeof G==="undefined"?"-1":String(Math.ceil(G/1048576))};
TTW=function(G,e){M7d(new V78(_.a(e,hFW).addToken,_.a(e,hFW).commonToken)).then(function(){_.xy(G,"yt-invoke-instrument-manager-action-completed")},function(r){_.xy(G,"yt-invoke-instrument-manager-action-error",r)})};
wa=function(){return _.xZ("HTML_DIR")==="rtl"};
DQm=function(){var G,e;return(e=(G=window).matchMedia)==null?void 0:e.call(G,"(prefers-reduced-motion: reduce)").matches};
EVA=function(G){var e=_.v_().resolve(_.bq(_.oY));if(e&&e.isAnyTransitionEnabled){var r={};e.viewTransitionCoordinator.registerElement(G,(r.slide="miniplayer-page-transition",r["lockup-to-watch"]="miniplayer-page-transition",r["learning-journey"]="miniplayer-page-transition",r))}};
iYY=function(G,e,r){return{horizontalAlignment:G.x+r.width/2<e.width/2?"west":"east",verticalAlignment:G.y+r.height/2<e.height/2?"north":"south"}};
vVC=function(G,e,r,Z,O){O=O===void 0?new _.yB(0,0):O;G=bYW(G,e,r,Z,!1);return new _.yB(G.x+O.x,G.y+O.y)};
bYW=function(G,e,r,Z,O){O=(O===void 0?0:O)?400:0;return new _.yB(G==="west"?16+(wa()?O:0):r.width-Z.width-16-(wa()?0:O),e==="north"?16:r.height-Z.height-16)};
wKW=function(G,e){var r=0;G&&(r+=76);e&&(r+=285);return r};
$QH=function(G){return _.Hs(G)};
SSo=function(G){var e=1;G=G.split(":");for(var r=[];e>0&&G.length;)r.push(G.shift()),e--;G.length&&r.push(G.join(":"));return r};
qSV=function(G){var e=new _.ES;return _.XC(e,11,G)};
t78=function(G){var e={};G=G.getAllResponseHeaders().split("\r\n");for(var r=0;r<G.length;r++)if(!_.iF(G[r])){var Z=SSo(G[r]),O=Z[0];Z=Z[1];if(typeof Z==="string"){Z=Z.trim();var M=e[O]||[];e[O]=M;M.push(Z)}}return _.c2.map(e,function(T){return T.join(", ")})};
bS=function(G,e){return G.JSC$9805_xhr_?G.JSC$9805_xhr_.getResponseHeader(e):null};
gVo=function(G,e){if(G.isDisposed())throw Error("Ea");G.xn.tC("n");var r=_.Ib(G.xn,function(){return G.kVB([e.j0,e.xwg,e.bPJ,e.wXI])},"n");
G.xn.wD0(r.length);G.xn.pW();return r};
lS2=function(G,e,r){Array.isArray(r)||(r=[String(r)]);_.$hn(G.JSC$10041_queryData_,e,r);return G};
lwY=function(){var G=_.sO.instance;_.D(function(e){return G.deferredInstallPrompt?e.yield(G.deferredInstallPrompt.prompt(),0):e.jumpTo(0)})};
RFm=function(G,e,r){if(_.FN(G))_.rR(G,e,r);else for(G=_.XnW(G);;){var Z=G.next();if(Z.done)break;e.call(r,Z.value,void 0,G)}};
jbC=function(G,e){var r=[];RFm(e,function(Z){try{var O=_.lY.prototype.getWrapper.call(this,Z,!0)}catch(M){if(M=="Storage: Invalid value was encountered")return;throw M;}O===void 0?r.push(Z):_.a_v(O)&&r.push(Z)},G);
return r};
HCC=function(G,e){jbC(G,e).forEach(function(r){_.lY.prototype.remove.call(this,r)},G)};
aSm=function(G){var e=_.z8;e._minimumZ=Math.max(e._minimumZ,G)};
XKC=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];KTB=function(G,e){_.TX(G.vm);G.vm=e};
fSl=function(G,e,r,Z){G.setState(5);var O=!!G.lFw&&XKC.includes(_.TG(G.lFw)||"");try{var M=new _.pY({program:e,globalName:r,v0O:{disable:!_.R("att_web_record_metrics")||!_.R("att_skip_metrics_for_cookieless_domains_ks")&&O,j5:"aGIf"}});M.uwM.then(function(){G.setState(6);Z&&Z(e)});
KTB(G,M)}catch(T){G.setState(7),T instanceof Error&&_.FH(T)}};
kiV=function(G,e,r,Z,O,M){var T=T===void 0?"trayride":T;r?(G.setState(2),_.Hi(_.nB(r),function(){if(window[T])fSl(G,Z,T,O);else{G.setState(3);var E=_.mws(r),b=document.getElementById(E);b&&(_.XQF(E),b.parentNode.removeChild(b));_.FH(new _.Cr("BL:ULB",r))}},M)):e?(M=_.Hp("SCRIPT"),e instanceof _.Zf?_.Vw(M,e):M.textContent=e,M.nonce=_.rP(document),document.head.appendChild(M),document.head.removeChild(M),window[T]?fSl(G,Z,T,O):(G.setState(4),_.FH(new _.Cr("BL:ULBJ")))):_.FH(new _.Cr("BL:ULV"))};
HYH=function(){this.state=1;this.vm=null;this.lFw=void 0};
_.V=HYH.prototype;_.V.initialize=function(G,e,r,Z){this.lFw=Z;if(G.program){var O;Z=(O=G.interpreterUrl)!=null?O:null;if(G.interpreterSafeScript)O=_.B0p(G.interpreterSafeScript);else{var M;O=(M=G.interpreterScript)!=null?M:null}G.interpreterSafeUrl&&(Z=_.FF(G.interpreterSafeUrl).toString());kiV(this,O,Z,G.program,e,r)}else _.FH(Error("tf"))};
_.V.isInitialized=function(){return!!this.vm};
_.V.getState=function(){return this.state};
_.V.isLoading=function(){return this.state===2};
_.V.invoke=function(G){G=G===void 0?{}:G;var e;this.vm?e=gVo(this.vm,{j0:G}):e=null;return e};
_.V.dispose=function(){KTB(this,null);this.setState(8)};
_.V.setState=function(G){this.state=G};
var dQY=function(G,e){return G.vm.snapshot(e)},oVC=function(G,e){var r=_.qt("botguard_async_snapshot_timeout_ms",3E3);
e=e===void 0?{}:e;r=r===void 0?3E3:r;return G.vm?new Promise(function(Z,O){var M=!1,T=_.A0.addJob(function(){M=!0;O(Error("uf"))},1,r);
G.vm?dQY(G,{j0:e}).then(function(E){_.A0.cancelJob(T);M||Z(E)}).catch(function(E){_.A0.cancelJob(T);
M||O(E)}):(_.A0.cancelJob(T),Z(null))}):Promise.resolve(null)},sbW=["att/log"],lgA;
lgA={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var QbV={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},ISC=function(G,e){return _.hh(G,{mode:"readwrite",enableRetries:!0},function(r){return _.RJy(r,e,"settingEntity")})},pKW=function(G,e,r){return _.hh(G,{mode:"readonly",
enableRetries:!0},function(Z){return _.jYb(Z,e,r)})},CGA=function(G){if(!G.storage)return!1;
a:{if(G.storage){try{var e=G.storage.get("TLPQtimestamp")}catch(r){}G=Number(e);if(!isNaN(G))break a}G=void 0}return G?Date.now()-G<864E5:!1},uXA=function(G){if(G.storage){try{var e=G.storage.get("TLPQindex")}catch(r){}G=Number(e);
if(!isNaN(G))return G}},nVW=function(G,e){G.queueProxy&&e.forEach(function(r){if(r.videoId&&r.trackingParams&&G.queueProxy instanceof _.Wt){var Z=_.l4();
G.queueProxy.attributionData.set(r.videoId,{enqueueingVe:_.b1(r.trackingParams).getAsJson(),enqueueingCsn:Z?Z:void 0,clientEnqueueingTimeMs:Math.floor((0,_.vG)()).toString()})}})},mQ8=function(G){var e=_.M23(G);
e!=G.currentSnapState_&&(G.currentSnapState_=e,G.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},$T=function(G){this.JSC$13224_networkManager_=G;
this.partCallbacks_=[]};
$T.prototype.getCacheKeyForEndpoint=function(G){return _.bXf(G,!1)};
$T.prototype.onPartsCallback_=function(G){this.partCallbacks_.forEach(function(e){G&&e(G)})};
var SA=function(G,e,r){$T.call(this,G);this.player_=e;this.autoplayData_=r};
_.K(SA,$T);SA.prototype.getCacheKeyForEndpoint=function(G){return _.bXf(G,!!this.autoplayData_)};
SA.prototype.getTempData=function(G,e){e=e.timeBeforeNextVideo;G={itct:G.clickTrackingParams,lact:_.bj(),pbis:e,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(G.autonav=1);return G};
SA.prototype.getXhrParams=function(G){return Object.assign({pbj:"prefetch"},G)};
SA.prototype.getParams=function(G){G={frags:G.fragmentsRequested.join(",")};_.R("kevlar_droppable_prefetchable_requests")&&(G.prefetch=1);return G};
var c88=function(G){G.playerEvents_.forEach(function(e){G.player.removeEventListener(e.eventName,e.callback)});
G.playerEvents_.length=0},YSA=function(G,e,r){this.player=G;
this.JSC$13234_taskManager=e;this.prefetchDelay=r;this.completionResolver_=null;this.playerEvents_=[]};
YSA.prototype.start=function(){var G=this;this.completionResolver_=_.C1();_.fY(this.completionResolver_.promise,function(){c88(G);G.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var y8V=function(G,e,r){G.player.addEventListener(e,r);G.playerEvents_.push({eventName:e,callback:r})},A8a={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},FTd={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},J8W=function(G,e,r){YSA.call(this,G,e,r);this.cueId_="playbackTrigger-"+Math.random()};
_.K(J8W,YSA);
J8W.prototype.prepareTrigger=function(G){var e=this,r=this.player.getDuration(),Z=this.player.getVideoData(),O=Z.isLive&&Z.hasProgressBarBoundaries;if(O&&Z.progressBarEndPositionUtcTimeMillis){var M=Z.progressBarEndPositionUtcTimeMillis/1E3;isNaN(M)||(r=M)}var T=0;this.prefetchDelay>=0?O?Z.progressBarStartPositionUtcTimeMillis&&(Z=Z.progressBarStartPositionUtcTimeMillis/1E3,isNaN(Z)||(T=Z+this.prefetchDelay)):T=this.prefetchDelay:T=r+this.prefetchDelay;O?this.player.addUtcCueRange(this.cueId_,T,r):
this.player.addCueRange(this.cueId_,T,r);_.fY(G.promise,function(){e.player.removeCueRange(e.cueId_)});
y8V(this,"onCueRangeEnter",function(E){E==e.cueId_&&G.resolve(r-T)})};
var BTd=function(G,e){G.fragmentConfiguration_[e].requiredKeys.every(function(r){return!!G.prefetchedData_[r]})&&(G.validatedFragments_.push(e),e=G.missingFragments_.indexOf(e),e!==-1&&G.missingFragments_.splice(e,1))},xQV=function(G){G.prefetchedFragments_.forEach(function(e){BTd(G,e)})},PGH=function(G,e,r){this.pageFragments_=G;
this.prefetchedFragments_=e;this.fragmentConfiguration_=FTd;this.prefetchedData_=r;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;xQV(this)},UQB=function(){},zF2=function(G){this.JSC$13248_playlistManager_=G};
_.K(zF2,UQB);zF2.prototype.getPrefetchEndpoint=function(){return this.JSC$13248_playlistManager_.getAutoplayEndpoint()};
var WTo=function(G){this.autonavEndpoints_=G};
_.K(WTo,UQB);WTo.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var NTd=function(G,e,r,Z,O){this.autonavEndpoints=G;this.foregroundTrigger=e;this.backgroundTrigger=r;this.pageType=Z;this.isInPlaylist=O},LTA=function(G,e){if(G.webPrefetchData&&G.webPrefetchData.navigationEndpoints&&G.webPrefetchData.navigationEndpoints.length){G=G.webPrefetchData.navigationEndpoints;
var r=_.a(G[0],_.u4);if(r.watchEndpointSupportedPrefetchConfig&&r.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var Z=r.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;r=Z.playbackRelativeSecondsPrefetchCondition;r=typeof r==="number"&&Math.abs(r)<e.videoDuration?r:void 0;Z=Z.countdownUiRelativeSecondsPrefetchCondition;Z=typeof Z!=="number"||_.R("prefetch_job_config_cleanup_ks")&&e.inPlaylist?void 0:Z;if(typeof Z==="number")return new NTd(G,e.makeUpNextTrigger(Z),e.makePlaybackTrigger(Z),
"watch",e.inPlaylist);if(typeof r==="number")return new NTd(G,e.makePlaybackTrigger(r),null,"watch",e.inPlaylist)}}},Gjl=function(G){return G.prefetchJobConfig_.backgroundTrigger?_.N0(_.C9F)()==0?G.prefetchJobConfig_.backgroundTrigger:G.prefetchJobConfig_.foregroundTrigger:G.prefetchJobConfig_.foregroundTrigger},ekd=function(G){_.Rb(document,"visibilitychange",G.onVisibilityChange_,!1,G)},qf=function(G){$T.call(this,G)};
_.K(qf,$T);qf.prototype.getCacheKeyForEndpoint=function(G){return $T.prototype.getCacheKeyForEndpoint.call(this,G)};
qf.prototype.getTempData=function(){return{}};
qf.prototype.getXhrParams=function(G){return G};
qf.prototype.getParams=function(){return{}};
var rKW=function(G,e,r){var Z=G.prefetchDelay*1E3;if(Math.abs(Z)>e)r.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var O=Z,M=e-Z;Z<0&&(O=e+Z,M=Math.abs(Z));var T=G.JSC$13234_taskManager.addJob(function(){r.resolve(M/1E3)},10,O);
r.promise.thenCatch(function(){G.JSC$13234_taskManager.cancelJob(T)})}},Z98=function(G,e,r){YSA.call(this,G,e,r)};
_.K(Z98,YSA);Z98.prototype.prepareTrigger=function(G){var e=this;y8V(this,"onAutonavCoundownStarted",function(r){rKW(e,r,G)})};
var O9W=function(G){G.pendingPrefetchJob_&&(G.pendingPrefetchJob_.cancel(),G.pendingPrefetchJob_=null)},Mgm=function(G,e,r){if(!G.triggeredTargets.has(e)){var Z=_.XEC(G,e);
Z.action=r;_.j6y(G,e,Z)}},VgB=function(G){_.wlE();
_.U8A("cpt")&&_.FH(Error("lh"));_.O_.requestAnimationFrame(function(){_.O_.setTimeout(function(){_.jq("cpt");var e=_.kJ("vpl"),r=_.kJ("cpt");e&&r&&_.jq("ol",Math.max(e,r))})});
try{_.jq("fr_s"),G()}catch(e){_.yx(e)}_.O_.requestAnimationFrame(function(){_.jq("bcp")})},hkC=function(G,e){G.serviceEndpointHandlers.push(e)},TdW=function(G,e){e=G.pendingPages_.indexOf(e);
e>-1&&G.pendingPages_.splice(e,1)},D1d=function(G,e){var r=_.yrn.indexOf(e);
r>-1&&_.yrn.splice(r,1);G.targetPage_==e?(G.abort(),_.F4C(G)):TdW(G,e)},Epm=function(G,e,r,Z){e={challenge:e};
r&&(e.webResponse=r);return _.LE(G.innertubeTransportService,e,_.y4(sbW),Z)},i9H=function(G,e,r){if(!e.challenge)throw Error("qi");
if(e.botguardData&&e.botguardData.program){var Z=new HYH;Z.initialize(e.botguardData,function(){oVC(Z,{atr_challenge:e.challenge}).then(function(O){if(!O)throw Error("ri");return Epm(G,e.challenge,O,r)}).catch(function(O){_.FH(O);
return Epm(G,e.challenge,void 0,r)})},void 0)}else Epm(G,e.challenge,void 0,r)},b9C=function(G,e,r){var Z={};
e.ids&&(Z.ids=[].concat(_.mY(e.ids)));e.engagementType&&(Z.engagementType=e.engagementType);return _.LE(G.innertubeTransportService,Z,_.y4(_.cEj),r).then(function(O){if(!O)throw new _.Cr("GetAttestationChallenge returned falsy");i9H(G,O,r)}).thenCatch(function(O){_.yx(O)})},vpW=function(G,e,r){return new _.aQ(function(Z,O){var M;
return _.D(function(T){if(T.nextAddress==1){var E=T.yield,b=e.engagementType,w=e.ids,q={};w=_.h(w!=null?w:[]);for(var t=w.next();!t.done;t=w.next())t=t.value,t.encryptedVideoId?q.encryptedVideoId=t.encryptedVideoId:t.externalChannelId?q.externalChannelId=t.externalChannelId:t.commentId?q.commentId=t.commentId:t.externalOwnerId?q.externalOwnerId=t.externalOwnerId:t.artistId?q.artistId=t.artistId:t.playlistId?q.playlistId=t.playlistId:t.externalPostId?q.externalPostId=t.externalPostId:t.shareId&&(q.shareId=
t.shareId);return E.call(T,pxB(b,q),2)}M=T.yieldResult;if(!M.challenge)return _.FH(Error("si")),b9C(G,e,r).then(Z,O),T.return();E=M;b={challenge:E.challenge};b.webResponse=E.webResponse;b.engagementType=e.engagementType;b.ids=e.ids;_.LE(G.innertubeTransportService,b,_.y4(sbW),r).then(Z,O);_.HL(T)})})},BBd=function(G,e){var r,Z,O,M;
_.D(function(T){if(T.nextAddress==1){r=_.a(e,_.yYb);if(!(r&&r.listId&&G.response&&G.response.playingVideoId)||G.listId!==r.listId)return T.return();G.index===void 0&&(G.index=0);return T.yield(_.hH3(G.JSC$13087_playlistNetworkManager,r.listId,G.index,G.response.playingVideoId),2)}Z=T.yieldResult;if(!Z)return T.return();O=Z.playlistId;M=Z.playlistPanelRenderer;G.setPlaylistData(O,M,Z.autoplayRenderer);_.HL(T)})},wfC=function(G,e,r){var Z=G.getParams(r),O=_.eLN(e,Z),M=G.getTempData(e,r);
M.endpoint=JSON.stringify(e);_.R("enable_unknown_lact_fix_on_html5")&&(_.v_().resolve(_.bZ),M.lact=_.bj());var T={headers:{"X-YouTube-STS":_.xZ("STS"),"x-youtube-csoc":1}};_.Yy(O,M);return new _.aQ(function(E,b){var w=G.getXhrParams(Z),q;_.R("kevlar_cache_on_ttl_player")&&(q=_.v_().resolve(_.vz));q&&_.zGY(q,e)?_.rAA(q,e,M,window.location.href).then(function(t){t?E(t):b()},b):_.nF3(G.JSC$13224_networkManager_,e,w,G.onPartsCallback_.bind(G),T).then(function(t){t?E(t):b()},b)})},$18=function(G,e){G.triggerPromise_=
e.start();
G.triggerPromise_.then(function(r){var Z=G.prefetchEndpointProvider_.getPrefetchEndpoint();if(Z){var O=A8a[G.prefetchJobConfig_.pageType].prefetchedFragments;G.prefetchRequestPromise_=wfC(G.JSC$13260_networkPrefetchRequest_,Z,{fragmentsRequested:O,timeBeforeNextVideo:r});G.prefetchResponseCacheKey_=G.JSC$13260_networkPrefetchRequest_.getCacheKeyForEndpoint(Z);ekd(G);G.prefetchRequestPromise_.then(function(M){G.storePrefetchedDataCallback_(G.prefetchResponseCacheKey_,M);if(_.R("web_prefetch_preload_video")&&
O.length===1&&O[0]==="pl"&&M&&!M.playerAds&&!M.adPlacements){var T=_.a(Z,_.DC),E=T!=null,b={raw_player_response:M,watch_endpoint:T};(M=_.v_().resolve(E?_.FgC:_.Ub))&&Z&&M.then(function(w){E&&_.R("web_queue_preload_video")?(b.prefer_gapless=!0,w.queueNextVideo(b)):w.preloadVideoByPlayerVars(b)})}})}})},tj=function(G,e,r,Z){this.prefetchEndpointProvider_=G;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=e;this.prefetchJobConfig_=r;this.JSC$13260_networkPrefetchRequest_=Z;this.prefetchResponseCacheKey_=null};
tj.prototype.enqueue=function(){this.triggerPromise_||($18(this,Gjl(this)),_.w2(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
tj.prototype.resolve=function(){this.cancel()};
tj.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.");ekd(this)};
tj.prototype.onVisibilityChange_=function(){var G=this;_.N0(_.C9F)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){G.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||$18(this,Gjl(this))};
var SAl=function(G,e,r,Z,O){e&&(e==null?0:e.videoId)&&r&&r.entries&&_.R("kevlar_enable_shorts_prefetch_in_sequence")&&(O9W(G),e=r.entries.map(function(M){var T;return(T=_.a(M.command,_.DC))==null?void 0:T.videoId}).indexOf(e.videoId),r=r.entries[e+1],r!=null&&r.command&&!_.a(r==null?void 0:r.command,_.xA)&&(Z=new NTd([r.command],new J8W(Z,_.A0,1),null,"shorts",!1),G.pendingPrefetchJob_=new tj(new WTo(Z.autonavEndpoints),function(){return!1},Z,new qf(O)),G.pendingPrefetchJob_.enqueue()))},qAd=function(G,
e,r,Z,O,M){var T=_.vt.getInstance();
if(!_.R("block_all_player_prefetch_requests")){O9W(G);var E=!!r.getPlaylistId(),b=r.getVideoData().isLive&&r.getVideoData().hasProgressBarBoundaries;if((T.getState()==2||E||b)&&(!r.getVideoData().isLive||b)){T={inPlaylist:E,videoDuration:r.getDuration(),makeUpNextTrigger:function(q){return new Z98(r,_.A0,q)},
makePlaybackTrigger:function(q){return new J8W(r,_.A0,q)}};
var w=LTA(e,T);w&&(G.pendingPrefetchJob_=new tj(w.isInPlaylist?new zF2(O):new WTo(w.autonavEndpoints),function(q,t){t=new PGH(A8a[w.pageType].pageFragments,A8a[w.pageType].prefetchedFragments,t);return _.v3S(t)?(G.prefetchCache_.set(q,t),!0):!1},w,new SA(Z,r,M,O)),G.pendingPrefetchJob_.enqueue())}}},tgo=function(){var G=_.M6();
G.signals.parkOrScheduleJob(function(){var e=G.storage;if(e.storage)if(CGA(e)){var r=e.getPlaylistId();e=uXA(e);r=!!r&&e!==void 0}else e.clear(),r=!1;else r=!1;if(r){r=G.JSC$13087_pageManager.isOnWatch();a:{var Z=G.storage;if(Z.storage&&CGA(Z)&&(e=Z.getPlaylistId(),Z=uXA(Z),e&&Z!==void 0)){r={recoverPlaylistCommand:{listId:e,index:Z,openMiniplayer:!r,openListPanel:r,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}r=void 0}r&&_.ul(G.JSC$13087_actionRouter,[r],null)}},0,"ma")},gpV=function(G,e,r,
Z,O,M){var T=_.L1(7111);
_.Xr(G.JSC$18588_screenManager,T,M?_.b1(M):void 0);_.fE(G.JSC$18588_screenManager,T,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:Z,offlineId:e,offlineabilityFormatType:r,isDefaultFormatType:O==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:O}})},lXW=function(G,e,r,Z,O){var M,T,E,b,w;
return _.D(function(q){if(q.nextAddress==1)return q.yield(G.JSC$18588_playerApiPromise,2);M=q.yieldResult;gpV(G,e,r,"OFFLINE_OBJECT_TYPE_PLAYLIST",Z,O);if(E=_.dYE[G.entityTypeMap.listEntityType])w={},T=(w[E]={maximumDownloadQuality:(b=r)!=null?b:void 0},w);return q.yield(M.queueOfflineAction(e,G.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",T),0)})},RkY=function(G,e){var r,Z,O,M;
return _.D(function(T){if(T.nextAddress==1)return T.yield(G.JSC$18588_persistentStorePromiseAccessor(),2);if(T.nextAddress!=3){r=T.yieldResult;if(!r)return _.FH(new _.Cr("PES is undefined")),T.return();Z=_.GF(e,"downloadStatusEntity");return T.yield(pKW(r,Z,"downloadStatusEntity"),3)}O=T.yieldResult;return T.return((M=O)==null?void 0:M.downloadState)})},jUa=function(G,e,r,Z,O){var M,T,E,b,w,q;
return _.D(function(t){switch(t.nextAddress){case 1:return t.yield(G.JSC$18588_playerApiPromise,2);case 2:M=t.yieldResult;gpV(G,e,r,"OFFLINE_OBJECT_TYPE_VIDEO",Z,O);if(E=_.dYE[G.entityTypeMap.singleEntityType])w={},T=(w[E]={maximumDownloadQuality:(b=r)!=null?b:void 0},w);return t.yield(RkY(G,e),3);case 3:q=t.yieldResult;if(q!=="DOWNLOAD_STATE_USER_DELETED"){t.jumpTo(4);break}return t.yield(G.deleteVideo(e),4);case 4:return t.yield(M.queueOfflineAction(e,G.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
T),0)}})},aX8=function(G,e,r,Z,O){return _.D(function(M){return M.nextAddress==1?M.yield(G.deleteVideo(e,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):M.yield(jUa(G,e,r,Z,O),0)})},Xf8=function(G,e,r){var Z,O;
return _.D(function(M){if(M.nextAddress==1)return M.yield(G.JSC$18588_playerApiPromise,2);Z=M.yieldResult;O=_.GF(e,"mainVideoDownloadStateEntity");return M.yield(Z.updateDownloadState(O,r),0)})},SgC=function(G){var e=_.v_().resolve(_.y2);
return _.D(function(r){if(r.nextAddress==1)return e.previousDownloadStateForVideo[G]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&e.previousDownloadStateForVideo[G]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?r.jumpTo(2):r.yield(e.resumeVideoDownload(G),2);if(r.nextAddress!=4)return r.yield(Xf8(e,G,e.previousDownloadStateForVideo[G]),4);delete e.previousDownloadStateForVideo[G];_.HL(r)})},woW=function(G,e){var r;
return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$18588_playerApiPromise,2);r=Z.yieldResult;return Z.yield(r.queueOfflineAction(e,G.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},il2=function(){var G=_.v_().resolve(_.y2),e,r;
return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$18588_playerApiPromise,2);if(Z.nextAddress!=3)return e=Z.yieldResult,r={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},Z.yield(e.queueOfflineAction("!*$_ALL_ENTITIES_!*$",G.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",r),3);var O=G.JSC$18588_commandHandler,M=O.resolveCommand,T=_.OK("DELETING_ALL",void 0,"Downloads are being deleted");M.call(O,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Bn(T)}},
popupType:"TOAST"}});_.HL(Z)})},KIl=function(G,e){var r,Z,O,M,T,E;
return _.D(function(b){if(b.nextAddress==1)return b.yield(G.JSC$18588_persistentStorePromiseAccessor(),2);if(b.nextAddress!=3)return r=b.yieldResult,r?b.yield(pKW(r,_.S6,"downloadsPageViewConfigurationEntity"),3):(_.FH(new _.Cr("PES is undefined")),b.return());O=(Z=b.yieldResult)!=null?Z:{};E=(T=(M=O)==null?void 0:M.downloadsUpsellBannerVisibility)!=null?T:{};return E.visibleWithConnection?b.yield(e.refreshAllStaleEntities(0),0):b.jumpTo(0)})},fXC=function(G){var e,r;
return _.D(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$18588_prefStorage,2);e=Z.yieldResult;return Z.return((r=e)==null?void 0:r.get("sdois"))})},kjm=function(G){var e,r,Z,O,M,T;
return _.D(function(E){if(E.nextAddress==1)return E.yield(G.JSC$18588_persistentStorePromiseAccessor(),2);if(E.nextAddress!=3){e=E.yieldResult;if(!e)return _.FH(new _.Cr("PES is undefined")),E.return();r=_.GF("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return E.yield(pKW(e,r,"settingEntity"),3)}Z=E.yieldResult;return E.return((T=(O=Z)==null?void 0:(M=O.settingOptionValue)==null?void 0:M.boolValue)!=null?T:!1)})},H98=function(G,e){var r,Z,O,M;
return _.D(function(T){switch(T.nextAddress){case 1:return((r=e)==null?void 0:r.formatType)===void 0?T.return():T.yield(G.JSC$18588_prefStorage,2);case 2:Z=T.yieldResult;if(Z===void 0)return T.return();if(((O=e)==null?void 0:O.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return T.yield(Z.set("lmqf",e.formatType),8);if(((M=e)==null?void 0:M.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){T.jumpTo(0);break}return T.yield(Z.set("lmqf",e.formatType),6);case 6:return T.yield(Z.set("lmqflst",
Math.floor((0,_.vG)())),0);case 8:return T.yield(Z.remove("lmqflst"),0)}})},d1C=function(G){var e,r;
return _.D(function(Z){switch(Z.nextAddress){case 1:return Z.yield(G.JSC$18588_prefStorage,2);case 2:e=Z.yieldResult;if(!e){Z.jumpTo(3);break}return Z.yield(e.get("lmqflst"),4);case 4:if(r=Z.yieldResult,r!==void 0)return Z.return(r);case 3:return Z.return(0)}})},opa=function(G){var e,r;
return _.D(function(Z){switch(Z.nextAddress){case 1:return Z.yield(G.JSC$18588_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(r=Z.yieldResult,r!==void 0)return Z.return(r);case 3:return Z.return("SD")}})},XoA=function(G,e,r){var Z,O,M,T,E,b,w,q;
_.D(function(t){switch(t.nextAddress){case 1:return t.yield(H98(G,(Z=e)==null?void 0:Z.actionParams),2);case 2:O=e.playlistId;if(!O)return t.return();if(e.action==="ACTION_ADD")return((T=e.actionParams)==null?0:T.formatType)?t.yield(lXW(G,O,e.actionParams.formatType,(q=e.actionParams)==null?void 0:q.settingsAction,r),0):t.yield(G.offlineWebClientEligibility,14);if(e.action==="ACTION_REMOVE_WITH_PROMPT"){var g=G.JSC$18588_commandHandler,l=g.resolveCommand,X=_.xZ("INNERTUBE_CLIENT_NAME");var H=X===
"WEB_REMIX"?_.OK("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.OK("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var I=X==="WEB_REMIX"?[_.OK("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];X=X==="WEB_REMIX"?_.OK("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.OK("DELETE",void 0,"Delete");var C=_.OK("CANCEL",void 0,"Cancel");H=CDW(H,I,X,C,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:O});l.call(g,{openPopupAction:H});return t.return()}if(e.action===
"ACTION_REMOVE")return t.yield(woW(G,O),0);if(e.action!=="ACTION_SYNC"){t.jumpTo(0);break}return t.yield(G.JSC$18588_playerApiPromise,9);case 9:return M=t.yieldResult,t.yield(M.queueOfflineAction(O,G.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return E=t.yieldResult,t.yield(opa(G),15);case 15:return b=t.yieldResult,t.yield(d1C(G),16);case 16:w=t.yieldResult,e.onAddCommand&&G.JSC$18588_commandHandler.resolveCommand(e.onAddCommand,{form:{preferredFormatType:b,
offlineWebClientEligibility:E,lastOfflineQualitySettingsSavedMs:w.toString()}}),t.jumpTo(0)}})},jia=function(G,e,r){var Z,O,M,T,E,b,w,q,t,g,l,X,H,I;
_.D(function(C){switch(C.nextAddress){case 1:return C.yield(H98(G,(Z=e)==null?void 0:Z.actionParams),2);case 2:O=e.videoId;if(!O)return C.return();if(e.action==="ACTION_REMOVE_WITH_PROMPT"){var u=G.JSC$18588_commandHandler,P=u.resolveCommand,F=_.xZ("INNERTUBE_CLIENT_NAME");var J=F==="WEB_REMIX"?_.OK("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.OK("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var U=F==="WEB_REMIX"?[_.OK("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];F=F==="WEB_REMIX"?_.OK("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.OK("DELETE",void 0,"Delete");var e$=_.OK("CANCEL",void 0,"Cancel");J=CDW(J,U,F,e$,{signal:"DELETE_DOWNLOAD",targetId:O});P.call(u,{openPopupAction:J});return C.return()}if(e.action==="ACTION_ADD")return((g=e.actionParams)==null?0:g.formatType)?C.yield(jUa(G,O,e.actionParams.formatType,(I=e.actionParams)==null?void 0:I.settingsAction,r),0):C.yield(G.offlineWebClientEligibility,23);if(e.action==="ACTION_RETRY")return C.yield(opa(G),
19);if(e.action==="ACTION_PAUSE")return C.yield(G.pauseVideoDownload(O),0);if(e.action==="ACTION_RESUME")return C.yield(G.resumeVideoDownload(O),0);if(e.action!=="ACTION_REMOVE"){C.jumpTo(0);break}return C.yield(RkY(G,O),13);case 13:return M=C.yieldResult,G.previousDownloadStateForVideo[O]=(T=M)!=null?T:"DOWNLOAD_STATE_UNKNOWN",C.yield(Xf8(G,O,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(G.previousDownloadStateForVideo[O]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&G.previousDownloadStateForVideo[O]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){C.jumpTo(15);break}return C.yield(G.pauseVideoDownload(O),15);case 15:u=_.OK("DELETED_VIDEO",void 0,"Video deleted from downloads.");P=_.OK("UNDO_ACTION",void 0,"Undo");J=_.OK("CLOSE",void 0,"Close");E={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Bn(u),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Bn(P),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:O}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:u+" "+P}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:O}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:J}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};G.JSC$18588_commandHandler.resolveCommand(E);
C.jumpTo(0);break;case 19:b=C.yieldResult;b==="UNKNOWN_FORMAT_TYPE"&&(b="SD");w="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((q=e.actionParams)==null?0:q.formatType)b=e.actionParams.formatType,w=(t=e.actionParams)==null?void 0:t.settingsAction;return C.yield(aX8(G,O,b,w,r),20);case 20:return C.return();case 23:return l=C.yieldResult,C.yield(opa(G),24);case 24:return X=C.yieldResult,C.yield(d1C(G),25);case 25:H=C.yieldResult,e.onAddCommand&&G.JSC$18588_commandHandler.resolveCommand(e.onAddCommand,
{form:{preferredFormatType:X,offlineWebClientEligibility:l,lastOfflineQualitySettingsSavedMs:H.toString()}}),C.jumpTo(0)}})},sU8=function(G,e){var r,Z,O,M,T,E,b;
return _.D(function(w){if(w.nextAddress==1)return w.yield(G.JSC$18588_persistentStorePromiseAccessor(),2);r=w.yieldResult;if(!r)return _.FH(new _.Cr("PES is undefined")),w.return();if((Z=e)==null||!Z.settingItemId)return w.return();O=e;M=O.settingItemId;T=O.boolValue;E=_.GF(M,"settingEntity");b={key:E,settingOptionValue:{boolValue:T}};return w.yield(ISC(r,b),0)})},QUY=function(G,e){var r,Z,O,M,T,E,b;
return _.D(function(w){switch(w.nextAddress){case 1:return w.yield(G.JSC$18588_prefStorage,2);case 2:return r=w.yieldResult,Z=_.hy(),w.yield(G.JSC$18588_persistentStorePromiseAccessor(),3);case 3:return O=w.yieldResult,r?O?w.yield(r.get("sdois"),4):(_.FH(new _.Cr("PES is undefined")),w.return()):(_.FH(new _.Cr("prefStorage is undefined")),w.return());case 4:M=w.yieldResult;E=(T=e)==null?void 0:T.boolValue;E===void 0||_.R("kevlar_set_sd_enabled_flag_killswitch")||_.Tn(0,197,!0);M===void 0&&E===void 0&&
(E=!1);if(E===void 0){w.jumpTo(0);break}return w.yield(r.set("sdois",E),6);case 6:return _.R("kevlar_set_sd_enabled_flag_killswitch")||(_.Tn(0,196,E),Z.save()),b={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:E},w.yield(sU8(G,b),0)}})},IXl=function(G,e,r){var Z,O,M,T,E;
return _.D(function(b){switch(b.nextAddress){case 1:return b.yield(fXC(G),2);case 2:return Z=b.yieldResult,b.yield(QUY(G,r),3);case 3:return b.yield(fXC(G),4);case 4:return O=b.yieldResult,M=O!==Z,b.yield(kjm(G),5);case 5:T=b.yieldResult&&!_.R("kevlar_modern_downloads_page");if((E=!O&&!T)||M)return b.yield(e.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);b.jumpTo(0)}})},t_o=function(){var G=_.v_().resolve(_.y2),
e;
_.D(function(r){switch(r.nextAddress){case 1:return r.yield(G.JSC$18588_playerApiPromise,2);case 2:e=r.yieldResult;if(!_.R("kevlar_force_refresh_smart_downloads")){r.jumpTo(3);break}return r.yield(e.refreshAllStaleEntities(0),4);case 4:return r.return();case 3:return r.yield(e.refreshAllStaleEntities(),5);case 5:return r.yield(IXl(G,e),6);case 6:if(_.R("enable_download_pep_for_premium_countries_web"))return r.yield(KIl(G,e),0);r.jumpTo(0)}})},fwW=function(G,e){var r,Z;
_.D(function(O){switch(O.nextAddress){case 1:return O.yield(G.JSC$18588_playerApiPromise,2);case 2:r=O.yieldResult;switch((Z=e)==null?void 0:Z.settingItemId){case "SMART_DOWNLOADS_ENABLED":return O.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return O.jumpTo(4)}O.jumpTo(0);break;case 3:return O.yield(IXl(G,r,e),6);case 6:O.jumpTo(0);break;case 4:return O.yield(sU8(G,e),7);case 7:O.jumpTo(0)}})},pf8=function(G,e){var r,Z,O;
return _.D(function(M){if(M.nextAddress==1)return M.yield(G.JSC$18588_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3){r=M.yieldResult;if(!r)return _.FH(new _.Cr("PES is undefined")),M.return(!1);if(!e)return M.return(!1);Z=_.GF(e,"mainVideoEntity");return M.yield(pKW(r,Z,"mainVideoEntity"),3)}O=M.yieldResult;return M.return(O!==void 0)})},Hl8=function(G){var e=_.v_().resolve(_.y2),r,Z,O,M,T,E,b,w,q,t,g;
_.D(function(l){switch(l.nextAddress){case 1:return l.yield(e.JSC$18588_playerApiPromise,2);case 2:r=l.yieldResult;O=(Z=G)==null?void 0:Z.actions;if(!O)return l.return();M=_.h(O);T=M.next();case 3:if(T.done){l.jumpTo(0);break}E=T.value;w=b=void 0;if(!(((b=E)==null?0:b.entityKey)&&((w=E)==null?0:w.actionType))){l.jumpTo(4);break}q=_.Wn(E.entityKey);t=q.entityId;g=q.entityType;return l.yield(r.queueOfflineAction(t,g,E.actionType),4);case 4:T=M.next(),l.jumpTo(3)}})},CmB=function(G,e){var r,Z,O,M,T;
return _.D(function(E){if(E.nextAddress==1)return E.yield(G.JSC$18588_prefStorage,2);if(E.nextAddress!=3)return(r=E.yieldResult)?E.yield(r.get("psi"),3):E.return();Z=E.yieldResult;T={isPaused:e,lastSyncTimestamp:(M=(O=Z)==null?void 0:O.lastSyncTimestamp)!=null?M:"0"};return E.yield(r.set("psi",T),0)})},siW=function(G){var e=_.v_().resolve(_.y2),r,Z,O,M,T,E,b,w;
return _.D(function(q){switch(q.nextAddress){case 1:return q.yield(e.JSC$18588_playerApiPromise,2);case 2:r=q.yieldResult;O=((Z=G)==null?void 0:Z.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((E=G)==null?void 0:E.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":M="!*$_ALL_ENTITIES_!*$";T="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return q.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return q.jumpTo(4)}q.jumpTo(5);break;case 3:return q.yield(CmB(e,O),6);case 6:q.jumpTo(5);break;case 4:return q.yield(pf8(e,(b=G)==null?void 0:b.videoId),7);case 7:q.yieldResult&&(M=(w=G)==null?void 0:w.videoId,T="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");q.jumpTo(5);break;case 5:if(M&&T)return q.yield(r.queueOfflineAction(M,"videoPlaybackPositionEntity",T),0);q.jumpTo(0)}})},ul8=function(G,e){var r;
e!==1||((r=G.currentPersistentToast)==null?0:r.isOpened())?G.openToast():G.currentPersistentToast=void 0},npC=function(G,e){var r;
return(r=G.transitionTasksMap.get(e))!=null?r:[]},m1a=function(G,e){var r=[];
G.elementTasksMap.forEach(function(Z){(Z=Z.get(e))&&r.push(Z)});
return r},cKm=function(G,e,r,Z,O){O=O===void 0?{}:O;
var M=e.defaultViewTransitionOptions;return Object.assign({},M,O,{beforeTransition:function(){Z.forEach(function(w){w.beforeTransition()});
var T;(T=M.beforeTransition)==null||T.call(M);var E,b;(b=(E=O).beforeTransition)==null||b.call(E);r.forEach(function(w){w.beforeTransition()})},
afterTransition:function(){Z.forEach(function(w){w.afterTransition()});
var T;(T=M.afterTransition)==null||T.call(M);var E,b;(b=(E=O).afterTransition)==null||b.call(E);r.forEach(function(w){w.afterTransition()})},
ignoredErrors:G.config.ignoredErrors})},YAl=function(G,e,r){G.transitionTasksMap.has(e)?G.transitionTasksMap.get(e).push(r):(G=new _.Cr("Transition task registered for unknown transition type",e),_.yx(G))},yK8=function(G,e,r){if(G.transitionTasksMap.has(e)){var Z=G.transitionTasksMap.get(e).filter(function(O){return O!==r});
G.transitionTasksMap.set(e,Z)}},AKW=function(G,e){var r=npC(G,e);
r=_.h(r);for(var Z=r.next();!Z.done;Z=r.next())Z=Z.value,Z.runOnce&&yK8(G,e,Z);G.elementTasksMap.forEach(function(O,M){O.forEach(function(T,E){T.runOnce&&e===E&&(O.delete(E),O.size===0&&G.elementTasksMap.delete(M))})})},FIl=function(G,e,r){var Z,O,M,T,E,b,w,q,t;
_.D(function(g){if(g.nextAddress==1){if(G.config.disableAllTransitions)return g.return(e());if((Z=r)==null||!Z.transitionType)return g.return(_.RDW(e,Object.assign({},(O=r)==null?void 0:O.viewTransitionOptions,{ignoredErrors:G.config.ignoredErrors})));M=r;T=M.transitionType;E=M.viewTransitionOptions;b=G.config.transitionConfigs.get(T);if(!b)return g.return(e());w=npC(G,T);q=m1a(G,T);t=_.RDW(e,cKm(G,b,w,q,E));return g.yield(t,2)}AKW(G,T);_.HL(g)})},JKW=function(){var G,e,r,Z;
return _.D(function(O){if(O.nextAddress==1)return G=navigator,(e=G.storage)!=null&&e.persisted?O.yield((r=G.storage)==null?void 0:r.persisted(),2):O.return("PERSISTED_STATE_NOT_SUPPORTED");Z=O.yieldResult;return O.return(Z?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},Bdd=function(){var G,e,r,Z;
return _.D(function(O){if(O.nextAddress==1)return G=navigator,(e=G.storage)!=null&&e.persist?O.yield((r=G.storage)==null?void 0:r.persist(),2):O.return("PERSISTED_STATE_NOT_SUPPORTED");Z=O.yieldResult;return O.return(Z?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},x1a=function(){var G,e;
return _.D(function(r){switch(r.nextAddress){case 1:return G="PERSISTED_STATE_NOT_SUPPORTED",_.jr(r,2),r.yield(JKW(),4);case 4:G=r.yieldResult;if(G!=="PERSISTED_STATE_NOT_GRANTED"){r.jumpTo(5);break}return r.yield(Bdd(),6);case 6:G=r.yieldResult;case 5:_.rL(r,3);break;case 2:e=_.k5(r),e instanceof Error&&_.yx(e);case 3:return _.cg("persistentStorageStateChecked",{persistedState:G}),r.return(G)}})},Pma=function(G,e){var r=[],Z=!1;
e=_.h(e);for(var O=e.next();!O.done;O=e.next()){O=G.moduleRegistry[O.value];var M=void 0,T=void 0;((M=O)==null?0:M.isFetching)&&((T=O)==null?0:T.resolver)?(r.push(O.resolver.promise),Z=!0):(O=new _.G1,O.resolve(void 0),r.push(O.promise))}return Z?Promise.all(r):void 0},U1B=function(G,e,r){if(G.isAnyTransitionEnabled){var Z={beforeTransition:function(){r(!0);
e.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){e.style.viewTransitionName&&(e.style.viewTransitionName="",r(!1))}};
YAl(G.viewTransitionCoordinator,"slide",Z);YAl(G.viewTransitionCoordinator,"lockup-to-watch",Z);YAl(G.viewTransitionCoordinator,"watch-next-appears",Z);YAl(G.viewTransitionCoordinator,"learning-journey",Z)}},zka=function(G,e){G.isBrowseTransitionEnabled?FIl(G.viewTransitionCoordinator,e,{transitionType:"slide"}):(e(),Promise.resolve())},WIm=function(G,e){G.isLockupToWatchTransitionEnabled?FIl(G.viewTransitionCoordinator,e,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){G.registeredLockupThumbnail=void 0;G.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(e(),Promise.resolve())},Nd8=function(G,e){G.isLockupToWatchTransitionEnabled?FIl(G.viewTransitionCoordinator,e,{transitionType:"watch-next-appears"}):(e(),Promise.resolve())},LI8=function(G,e){G.isLearningJourneyTransitionEnabled?FIl(G.viewTransitionCoordinator,e,{transitionType:"learning-journey"}):(e(),Promise.resolve())},Gzo=function(G,e,r){if(G.isInitialized()){var Z=
Gp(r),O=Z==="watch";
Z=Z==="shorts";var M=Gp(e)==="watch";if(O)M||(G.backgroundPageData=e),G.watchPipMode&&M||G.deactivate(r.endpoint);else if(Z){if(Gp(e)!=="shorts"){var T;(T=G.getPlayerElement())==null||T.pause()}}else M&&!G.watchPipMode&&(u68(e,r,!0)?(G.watchWhileMode&&_.hrC(G,!1),_.erl(G,e)):G.isMiniplayerActive()&&G.watchWhileMode&&G.deactivate());M&&_.DhH(G);G.shortsPipMode&&!Z&&(window.focus(),G.deactivate());if(G.pictureInPictureEnabled())if(Z&&G.shortsPipEnabled||O&&G.watchPipEnabled)_.RMS(G.handleMediaSessionPipActivation);
else if(!G.isMiniplayerActive()&&(G.shortsPipEnabled||G.watchPipEnabled)&&window.documentPictureInPicture&&_.oy()&&_.jyS("Chromium")>=120){G=_.laS().mediaSession;try{G.setActionHandler("enterpictureinpicture",null)}catch(E){}}}},e9d=function(G,e){var r,Z;
_.D(function(O){if(O.nextAddress==1){if(!G||!G.navigationEndpoint)return O.return();_.sI().lockupActivation=!0;var M;e?M=_.nQ(_.OK("QUEUE",void 0,"Queue")):M=G.longBylineText;Z=(r=M)&&G.title?{miniplayerTitle:G.title,miniplayerSubtitle:r,playlistData:null}:void 0;return O.yield(_.c7j(_.v_().resolve(_.fp),G.navigationEndpoint,!0,Z),2)}_.sI().userActivation=!0;_.HL(O)})},AVA=function(G,e){var r,Z,O,M,T,E;
_.D(function(b){if(b.nextAddress==1){r=_.a(e,_.Y3W);if(!r||!r.listId)return b.return();G.index=r.index||G.index||0;Z=G.response&&G.response.playingVideoId||void 0;return b.yield(_.hH3(G.JSC$13087_playlistNetworkManager,r.listId,G.index,Z),2)}O=b.yieldResult;if(!O)return b.return();M=O.playlistId;T=O.playlistPanelRenderer;!G.queueProxy&&M&&T&&M.startsWith("TLPQ")&&(G.queueProxy=new _.Wt(G.JSC$13087_playlistNetworkManager,M,G.setPlaylistData.bind(G),G.clearQueue.bind(G),_.rqA(T),G.storage));if(r.openMiniplayer&&
(E=_.Z0_(T))&&!G.JSC$13087_pageManager.isOnWatch()){var w=E,q=r.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";G.isMiniplayerActive()?G.openToast(w):e9d(w,q)}G.setPlaylistData(M,T,O.autoplayRenderer);_.HL(b)})},cVW=function(G,e){var r=_.M6();
r.index===void 0&&(r.index=0);r.temporaryItems.push.apply(r.temporaryItems,_.mY(G));if((e.videoId||e.videoIds)&&r.index!==void 0&&e.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!r.queueProxy){var Z=[];if(r.response){var O=_.v_().resolve(_.fp).isMiniplayerActive();if(r.response.playlistPanelRenderer&&r.response.playlistId&&!r.response.playlistId.startsWith("TLPQ")){if(r.JSC$13087_pageManager.isOnWatch()||O)Z=_.rqA(r.response.playlistPanelRenderer)}else r.response.playingVideoId&&!e.openMiniplayer?
Z.push(r.response.playingVideoId):O&&r.response.playingVideoId&&e.openMiniplayer&&Z.push(r.response.playingVideoId)}r.queueProxy=new _.Wt(r.JSC$13087_playlistNetworkManager,"",r.setPlaylistData.bind(r),r.clearQueue.bind(r),Z,r.storage);r.queueProxy.JSC$13033_setCurrentIndex(r.index)}r.queueProxy.addVideos(e.videoIds||[e.videoId],e)}nVW(r,G);r.response&&_.V9(r,_.hL(r,r.response.autoplayRenderer));r.JSC$13087_pageManager.isOnWatch()?r.isMiniplayerActive()&&r.openToast(G[0]):(G=G[0],e=e.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",
r.isMiniplayerActive()?r.openToast(G):e9d(G,e))},rQa=function(G){var e=_.LP(G);
if(e=="object"||e=="array"){if(typeof G.clone==="function")return G.clone();if(typeof Map!=="undefined"&&G instanceof Map)return new Map(G);if(typeof Set!=="undefined"&&G instanceof Set)return new Set(G);e=e=="array"?[]:{};for(var r in G)e[r]=rQa(G[r]);return e}return G},lu=function(G,e){return _.tEF(_.Va(G,e,void 0,_.M_))},Rn=function(G,e){return _.Dl(_.Va(G,e,void 0,_.M_))},jA=function(G,e){return _.un$(_.Va(G,e,void 0,_.M_))},an=function(G,e){return _.Va(G,e,void 0,_.M_,_.NW)},Z7a=_.iz(function(G,
e,r,Z){if(G.nextWireType_!==0)return!1;
_.Ei(e,r,Z,_.kj(G.decoder_,_.Sla));return!0},_.SZ,_.Qa),O7l=_.iz(function(G,e,r){if(G.nextWireType_!==1)return!1;
var Z=G.decoder_;G=_.dU(Z);Z=_.dU(Z);G=_.yv(G,Z);_.bz(e,r,G);return!0},_.uyU,_.r2y),MfB=_.iz(function(G,e,r){if(G.nextWireType_!==2)return!1;
G=_.cSw(G);_.bz(e,r,G===_.sl()?void 0:G);return!0},_.ytN,_.Mal),Vf2=_.kqa(function(G,e,r){if(G.nextWireType_!==0&&G.nextWireType_!==2)return!1;
e=_.rz(e,e[_.MW]|0,r);G.nextWireType_==2?_.Yll(G,$QH,e):e.push(_.Hs(G.decoder_));return!0},function(G,e,r){e=_.fvi(_.Dl,e,!0);
if(e!=null&&e.length){r=_.xWW(G,r);for(var Z=0;Z<e.length;Z++)_.IvN(G.encoder_,e[Z]);_.PyW(G,r)}},_.Vay),h9C=_.iz(function(G,e,r,Z){if(G.nextWireType_!==0)return!1;
_.Ei(e,r,Z,_.Hs(G.decoder_));return!0},_.F_$,_.Vay),Tg2=function(G){return G.previousElementSibling!==void 0?G.previousElementSibling:_.qwP(G.previousSibling,!1)},DpA=function(G,e){var r=[];
for(e=e||0;e<G.length;e+=2)_.VKj(G[e],G[e+1],r);return r.join("&")},Ev8=function(G,e){var r=arguments.length==2?DpA(arguments[1],0):DpA(arguments,1);
return _.MKv(G,r)},EbC=_.a2(_.ln),i78=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(i78,_.Tq);i78.prototype.getTypeName=function(){return _.gU(this,1).split("/").pop()};
i78.prototype.getValue=function(){var G=_.Va(this,2);if(Array.isArray(G)||G instanceof _.Tq)throw Error("W");return _.Dg(this,2)};
var N8Y=function(){var G=_.zF();this.JSC$9926_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.SK("channel_type"))};
N8Y.prototype.increment=function(G){this.JSC$9926_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",G)};
var Lvm=function(){var G=_.zF();this.JSC$9929_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.SK("channel_type"))};
Lvm.prototype.increment=function(G){this.JSC$9929_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",G)};
var ed8=function(){var G=_.zF();this.JSC$9932_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.SK("channel_type"))};
ed8.prototype.increment=function(G){this.JSC$9932_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",G)};
var G48=function(){var G=_.zF();this.JSC$9935_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
G48.prototype.increment=function(){this.JSC$9935_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var rZo=function(){var G=_.zF();this.JSC$9938_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.SK("channel_type"),_.SK("error_type"))};
rZo.prototype.increment=function(G,e){this.JSC$9938_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",G,e)};
var ZxW=function(){var G=_.zF();this.JSC$9941_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
ZxW.prototype.increment=function(){this.JSC$9941_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var OxA=function(){var G=_.zF();this.JSC$9944_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
OxA.prototype.increment=function(){this.JSC$9944_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var WZm=function(){var G=_.zF();this.JSC$9950_streamzService=G;G.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
WZm.prototype.increment=function(){this.JSC$9950_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var b7B=function(G){return G.getCount&&typeof G.getCount=="function"?G.getCount():_.FN(G)||typeof G==="string"?G.length:_.c2.getCount(G)},vv2=function(G,e){if(typeof G.every=="function")return G.every(e,void 0);
if(_.FN(G)||typeof G==="string")return Array.prototype.every.call(G,e,void 0);for(var r=_.V4W(G),Z=_.NQ(G),O=Z.length,M=0;M<O;M++)if(!e.call(void 0,Z[M],r&&r[M],G))return!1;return!0},wvo=function(G,e,r,Z){var O=new _.nO(null);
G&&_.LY(O,G);e&&_.Gj(O,e);r&&_.eg(O,r);Z&&_.rd(O,Z);return O},$pH=function(){var G=_.U5&&_.S$(_.lEC,10)>=0,e;
if(e=_.xUv)e=_.S$(_.guW,10)>=0;var r=_.ec&&_.S$(_.lEC,85)>=0;return _.Wz||G||e||r},SBC=function(G){var e=_.cxE(G);
return e&&$pH()?-G.scrollLeft:e&&_.UQ(G,"overflowX")!="visible"?G.scrollWidth-G.clientWidth-G.scrollLeft:G.scrollLeft},qB2=function(G,e){e=Math.max(e,0);
_.cxE(G)?$pH()?G.scrollLeft=-e:G.scrollLeft=G.scrollWidth-e-G.clientWidth:G.scrollLeft=e},Nvl=0,ZCV=!1;
ry.prototype.set=function(G){this.relativeTimeStart_=G};
ry.prototype.reset=function(){this.set(_.JV())};
ry.prototype.get=function(){return this.relativeTimeStart_};
var tfB=null,gvV=function(){tfB||(tfB=new ry)},lFW=function(){tfB||(tfB=new ry)};
_.Bz(lFW,gvV);_.V=Ms8.prototype;_.V.JSC$11361_buffer_="";_.V.set=function(G){this.JSC$11361_buffer_=""+G};
_.V.append=function(G,e,r){this.JSC$11361_buffer_+=String(G);if(e!=null)for(var Z=1;Z<arguments.length;Z++)this.JSC$11361_buffer_+=arguments[Z];return this};
_.V.clear=function(){this.JSC$11361_buffer_=""};
_.V.getLength=function(){return this.JSC$11361_buffer_.length};
_.V.toString=function(){return this.JSC$11361_buffer_};
var R9d=!1,bCB=function(G){_.rs.call(this,G.message||G.description||G.name);this.isMissing=G instanceof Zx;this.isTimeout=G instanceof _.m4&&G.errorCode=="net.timeout";this.isCanceled=G instanceof _.fx};
_.K(bCB,_.rs);bCB.prototype.name="BiscottiError";var Zx=function(){_.rs.call(this,"Biscotti ID is missing from server")};
_.K(Zx,_.rs);Zx.prototype.name="BiscottiMissingError";var Oh=null,Qro=function(){try{var G=_.Lz("yt.ads.biscotti.getId_");return G?G():JsW()}catch(e){return _.Ss(e)}},jsY=function(G,e){return _.UK({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:G,command:e}})},aFA=function(G){return _.UK({type:"SET_GUIDE_IS_EXPANDED",
payload:G})},Xvm=function(G){return _.UK({type:"SET_ONLINE_STATUS",
payload:G})},K9W=function(G,e){return _.UK({type:"SET_TRANSCRIPTION_STATE",
payload:{high:G,low:e}})},fFB=function(G){return _.UK({type:"SET_OVERLAY_STATE",
payload:G})},kz2=0,H7W=function(G,e,r){var Z=this;
this.priority=e;this.delay=r;this.jobId=0;this.completionCallback=_.qu;this.wrappedJob=function(){G();Z.completionCallback()};
this.id=++kz2};
H7W.prototype.enqueue=function(G){this.completionCallback=G;this.jobId=_.A0.addJob(this.wrappedJob,this.priority,this.delay)};
var Xi=function(){_.ZF.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.K(Xi,_.ZF);Xi.prototype.addJob=function(G,e,r){G=new H7W(G,e,r);this.taskIdToTask.set(G.id,G);this.isActive?dpW(this,G):this.suspendedTasks.add(G);return G.id};
var dpW=function(G,e){G.scheduledTasks.add(e);e.enqueue(function(){G.scheduledTasks.delete(e)})};
Xi.prototype.cancelJob=function(G){(G=this.taskIdToTask.get(G))&&(this.scheduledTasks.delete(G)?_.A0.cancelJob(G.jobId):this.suspendedTasks.delete(G))};
Xi.prototype.pause=function(){var G=this;this.isActive=!1;this.scheduledTasks.forEach(function(e){_.A0.cancelJob(e.jobId);G.suspendedTasks.add(e)});
this.scheduledTasks.clear()};
Xi.prototype.start=function(){var G=this;this.isActive=!0;this.suspendedTasks.forEach(function(e){dpW(G,e)});
this.suspendedTasks.clear()};
Xi.prototype.reset=function(){this.scheduledTasks.forEach(function(G){_.A0.cancelJob(G.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var ovd=function(G,e){this.JSC$13213_networkService_=G;this.pageRequestPromise=e};
ovd.prototype.fetchData=function(G){ss8(this,this.JSC$13213_networkService_.fetchData(G))};
ovd.prototype.postData=function(G,e){ss8(this,this.JSC$13213_networkService_.postData(G,e))};
ovd.prototype.requestDataForServiceEndpoint=function(G,e){ss8(this,this.JSC$13213_networkService_.requestDataForServiceEndpoint(G,e))};
var ss8=function(G,e){e.then(G.pageRequestPromise.onSuccess,G.pageRequestPromise.onFailure,G.pageRequestPromise)};
ovd.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var Qs8=function(G){this.buildNetworkRequest_=G;this.pendingRequests_=new Set};
Qs8.prototype.reset=function(){this.pendingRequests_.forEach(function(G){G.cancel()});
this.pendingRequests_.clear()};
Qs8.prototype.fetchData=function(G){var e=IFV(this);e.fetchData(G);return e.pageRequestPromise};
Qs8.prototype.postData=function(G,e){var r=IFV(this);r.postData(G,e);return r.pageRequestPromise};
Qs8.prototype.requestDataForServiceEndpoint=function(G,e){var r=IFV(this);r.requestDataForServiceEndpoint(G,e);return r.pageRequestPromise};
var IFV=function(G){var e=G.buildNetworkRequest_();G.pendingRequests_.add(e);var r=function(){G.pendingRequests_.delete(e)};
e.pageRequestPromise.then(r,r);return e},pvB=function(G){var e=new Xi;
this.JSC$13220_networkService_=G;this.JSC$13220_taskManager_=e;this.JSC$13220_networkManager_=new Qs8(this.networkRequestFactory_.bind(this))};
_.V=pvB.prototype;_.V.networkRequestFactory_=function(){return new ovd(this.JSC$13220_networkService_,new _.jX(this.JSC$13220_taskManager_))};
_.V.reset=function(){this.JSC$13220_taskManager_.reset();this.JSC$13220_networkManager_.reset()};
_.V.start=function(){this.JSC$13220_taskManager_.start()};
_.V.pause=function(){this.JSC$13220_taskManager_.pause()};
_.V.getTaskManager=function(){return this.JSC$13220_taskManager_};
_.V.getNetworkManager=function(){return this.JSC$13220_networkManager_};
var aMa=null,fMl=[],MX=0,hn=0,VV=null,Dx=function(G){this.token=G};
Dx.getInstance=function(){var G;return _.D(function(e){if(e.nextAddress==1)return e.yield(_.iA(),2);G=e.yieldResult;if(!G)return e.return();Dx.instance||(Dx.instance=new Dx(G));return e.return(Dx.instance)})};
var pQW=function(G){var e;return _.D(function(r){if(r.nextAddress==1)return r.yield(sgV(G.token),2);e=r.yieldResult;return r.return(e.clear("resource-manifest-assets"))})},Tp=function(G){this.token=G};
Tp.getInstance=function(){var G;return _.D(function(e){if(e.nextAddress==1)return e.yield(_.iA(),2);G=e.yieldResult;if(!G)return e.return();Tp.instance||(Tp.instance=new Tp(G));return e.return(Tp.instance)})};
var QgB=function(G){var e;return _.D(function(r){if(r.nextAddress==1)return r.yield(sgV(G.token),2);e=r.yieldResult;return r.yield(e.clear("auth"),0)})},Cll=!1,Eh=null,P1H=void 0,Z1W=!1,uWW=function(G){_.rs.call(this,G)};
_.K(uWW,_.Iyl);var FLa=function(){var G=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return G?parseInt(G[1],10):0},nvC=function(G){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+G)!=-1||document.currentScript.src.indexOf("&"+G)!=-1)},mpW=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},U$a=function(G){G.length?cQo(G.shift(),function(){U$a(G)}):B7A()},WLW=function(G){return"chrome-extension://"+G+"/cast_sender.js"},cQo=function(G,
e,r){var Z=document.createElement("script");
Z.onerror=e;r&&(Z.onload=r);_.h6(Z,_.nB(G));(document.head||document.documentElement).appendChild(Z)},YBB=function(){var G=FLa(),e=[];
if(G>1){var r=G-1;e.push("//www.gstatic.com/eureka/clank/"+G+"/cast_sender.js");e.push("//www.gstatic.com/eureka/clank/"+r+"/cast_sender.js")}return e},B7A=function(){var G=mpW();
G&&G(!1,"No cast extension found")},Pnl=function(){if(yQl){var G=2,e=mpW(),r=function(){G--;
G==0&&e&&e(!0)};
window.__onGCastApiAvailable=r;cQo("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",B7A,r)}},JZW=function(){Pnl();
var G=YBB();G.push("//www.gstatic.com/eureka/clank/cast_sender.js");U$a(G)},x$Y=function(){Pnl();
var G=YBB();G.push.apply(G,_.mY(zda.map(WLW)));G.push("//www.gstatic.com/eureka/clank/cast_sender.js");U$a(G)},yQl=nvC("loadCastFramework")||nvC("loadCastApplicationFramework"),zda=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var AQ2=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(AQ2,_.Tq);var F9a=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(F9a,_.Tq);var JQl=function(){var G=new F9a;return _.K2(G,1,3)};var KA=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(KA,_.Tq);var Jel=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(Jel,_.Tq);var BgW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(BgW,_.Tq);BgW.prototype.getToken=function(){return _.gU(this,1)};
BgW.prototype.setToken=function(G){return _.sz(this,1,G)};
var Aed=function(G){return _.WY(G,3,_.Xo,_.bx())},FOd=function(G){return _.WY(G,6,_.Xo,_.bx())};var fA=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(fA,_.Tq);fA.prototype.getToken=function(){return _.SS(this,BgW,2)};
fA.prototype.setToken=function(G){return _.Kj(this,2,G)};
fA.prototype.getName=function(){return _.gU(this,6)};
var xpV=_.a2(fA);var PlA=function(G,e,r){this.requestMessage=G;this.methodDescriptor=e;this.metadata=r};
PlA.prototype.getMetadata=function(){return this.metadata};var UpY=function(G,e){e=e===void 0?{}:e;this.responseMessage=G;this.metadata=e;this.status=null};
UpY.prototype.getMetadata=function(){return this.metadata};
UpY.prototype.getStatus=function(){return this.status};var kT=function(G,e,r,Z,O){this.name=G;this.methodType="unary";this.requestType=e;this.responseType=r;this.requestSerializeFn=Z;this.responseDeserializeFn=O},z9o=function(G,e,r){r=r===void 0?{}:r;
return new PlA(e,G,r)};
kT.prototype.getName=function(){return this.name};var HB=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(HB,_.Tq);HB.prototype.getHeader=function(){return _.SS(this,KA,1)};
HB.prototype.setHeader=function(G){return _.Kj(this,1,G)};
HB.prototype.hasHeader=function(){return _.h3(this,KA,1)};var W9Y=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(W9Y,_.Tq);var NgV=new kT("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",HB,W9Y,function(G){return G.serialize()},_.a2(W9Y));var da=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(da,_.Tq);da.prototype.getHeader=function(){return _.SS(this,KA,1)};
da.prototype.setHeader=function(G){return _.Kj(this,1,G)};
da.prototype.hasHeader=function(){return _.h3(this,KA,1)};var L9H=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(L9H,_.Tq);var GR8=new kT("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",da,L9H,function(G){return G.serialize()},_.a2(L9H));var on=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(on,_.Tq);on.prototype.getHeader=function(){return _.SS(this,KA,1)};
on.prototype.setHeader=function(G){return _.Kj(this,1,G)};
on.prototype.hasHeader=function(){return _.h3(this,KA,1)};var e7A=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(e7A,_.Tq);e7A.prototype.getLink=function(){return _.SS(this,fA,1)};var rYW=new kT("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",on,e7A,function(G){return G.serialize()},_.a2(e7A));var sC=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(sC,_.Tq);sC.prototype.getHeader=function(){return _.SS(this,KA,1)};
sC.prototype.setHeader=function(G){return _.Kj(this,1,G)};
sC.prototype.hasHeader=function(){return _.h3(this,KA,1)};var ZV2=new kT("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",sC,fA,function(G){return G.serialize()},xpV);var OVH=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(OVH,_.Tq);var Mkm=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(Mkm,_.Tq);Mkm.prototype.getUrl=function(){return _.gU(this,2)};
Mkm.prototype.setUrl=function(G){return _.sz(this,2,G)};var VkV=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(VkV,_.Tq);var h7C=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(h7C,_.Tq);var T_8=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(T_8,_.Tq);var rIl=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(rIl,_.Tq);var eLo=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(eLo,_.Tq);var D42=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(D42,_.Tq);var DoC=_.a2(D42);var EMm=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(EMm,_.Tq);var iVC=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(iVC,_.Tq);_.V=iVC.prototype;_.V.getHeader=function(){return _.SS(this,KA,1)};
_.V.setHeader=function(G){return _.Kj(this,1,G)};
_.V.hasHeader=function(){return _.h3(this,KA,1)};
_.V.getCompletionUrl=function(){return _.gU(this,6)};
_.V.getDeviceId=function(){return _.gU(this,11)};var bVB=new kT("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",iVC,D42,function(G){return G.serialize()},DoC);var vM8=new Set(["SAPISIDHASH","APISIDHASH"]);var wuH=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(wuH,_.Tq);wuH.prototype.getMessage=function(){return _.gU(this,2)};
var $4B=_.a2(wuH);var q3Y=function(G,e){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=G.nodeReadableStream;this.grpcResponseDeserializeFn=e;this.xhr=G.xhr;this.xhrNodeReadableStream&&S3l(this)},XuW=function(G,e){var r=new tkl;
_.w2(G.xhr,"complete",function(){if(G.xhr.isSuccess()){var Z=G.xhr.getResponseText();var O;if(O=e)O=G.xhr,O.JSC$9805_xhr_&&O.isComplete()?(O=O.JSC$9805_xhr_.getResponseHeader("Content-Type"),O=O===null?void 0:O):O=void 0,O=O==="text/plain";if(O){if(!atob)throw Error("ik");Z=atob(Z)}try{var M=G.grpcResponseDeserializeFn(Z)}catch(E){gMH(G,dkd(new _.HK(13,"Error when deserializing response data; error: "+E+(", response: "+Z)),r));return}Z=_.ir$(G.xhr.getStatus());liY(G,R7a(G));Z===0?jeH(G,M):gMH(G,dkd(new _.HK(Z,
"Xhr succeeded but the status code is not 200"),r))}else{Z=G.xhr.getResponseText();M=R7a(G);if(Z){var T=aim(G,Z);Z=T.code;O=T.details;T=T.metadata}else Z=2,O="Rpc failed due to xhr error. uri: "+String(G.xhr.JSC$9805_lastUri_)+", error code: "+(G.xhr.JSC$9805_lastErrorCode_+", error: ")+G.xhr.getLastError(),T=M;liY(G,M);gMH(G,dkd(new _.HK(Z,O,T),r))}})},S3l=function(G){G.xhrNodeReadableStream.on("data",function(e){if("1"in e){var r=e["1"];
try{var Z=G.grpcResponseDeserializeFn(r)}catch(O){gMH(G,new _.HK(13,"Error when deserializing response data; error: "+O+(", response: "+r)))}Z&&jeH(G,Z)}if("2"in e)for(e=aim(G,e["2"]),r=0;r<G.onStatusCallbacks.length;r++)G.onStatusCallbacks[r](e)});
G.xhrNodeReadableStream.on("end",function(){liY(G,R7a(G));for(var e=0;e<G.onEndCallbacks.length;e++)G.onEndCallbacks[e]()});
G.xhrNodeReadableStream.on("error",function(){if(G.onErrorCallbacks.length!==0){var e=G.xhr.JSC$9805_lastErrorCode_;e!==0||G.xhr.isSuccess()||(e=6);var r=-1;switch(e){case 0:var Z=2;break;case 7:Z=10;break;case 8:Z=4;break;case 6:r=G.xhr.getStatus();Z=_.ir$(r);break;default:Z=14}liY(G,R7a(G));e=_.nZn(e)+", error: "+G.xhr.getLastError();r!==-1&&(e+=", http status code: "+r);gMH(G,new _.HK(Z,e))}})},R7a=function(G){var e={},r=t78(G.xhr);
Object.keys(r).forEach(function(Z){e[Z]=r[Z]});
return e},aim=function(G,e){var r=2,Z={};
try{var O=$4B(e);r=_.vp(O,1);var M=O.getMessage();_.ix(O,i78,3,_.bx()).length&&(Z["grpc-web-status-details-bin"]=e)}catch(T){G.xhr&&G.xhr.getStatus()===404?(r=5,M="Not Found: "+String(G.xhr.JSC$9805_lastUri_)):(r=14,M="Unable to parse RpcStatus: "+T)}return{code:r,details:M,metadata:Z}};
q3Y.prototype.on=function(G,e){G==="data"?this.onDataCallbacks.push(e):G==="metadata"?this.onMetadataCallbacks.push(e):G==="status"?this.onStatusCallbacks.push(e):G==="end"?this.onEndCallbacks.push(e):G==="error"&&this.onErrorCallbacks.push(e);return this};
var KyW=function(G,e){e=G.indexOf(e);e>-1&&G.splice(e,1)};
q3Y.prototype.removeListener=function(G,e){G==="data"?KyW(this.onDataCallbacks,e):G==="metadata"?KyW(this.onMetadataCallbacks,e):G==="status"?KyW(this.onStatusCallbacks,e):G==="end"?KyW(this.onEndCallbacks,e):G==="error"&&KyW(this.onErrorCallbacks,e);return this};
q3Y.prototype.cancel=function(){this.xhr.abort()};
var jeH=function(G,e){for(var r=0;r<G.onDataCallbacks.length;r++)G.onDataCallbacks[r](e)},liY=function(G,e){for(var r=0;r<G.onMetadataCallbacks.length;r++)G.onMetadataCallbacks[r](e)},gMH=function(G,e){for(var r=0;r<G.onErrorCallbacks.length;r++)G.onErrorCallbacks[r](e)},tkl=function(){var G=Error.call(this);
this.message=G.message;"stack"in G&&(this.stack=G.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.K(tkl,Error);var fiH=function(G){this.JSC$19638_worker_=G.worker||null;this.JSC$19638_streamBinaryChunks_=G.streamBinaryChunks||!1;this.JSC$19638_credentialsMode_=void 0};
_.Bz(fiH,_.v1S);fiH.prototype.createInstance=function(){var G=new Q6(this.JSC$19638_worker_,this.JSC$19638_streamBinaryChunks_);this.JSC$19638_credentialsMode_&&G.setCredentialsMode(this.JSC$19638_credentialsMode_);return G};
fiH.prototype.setCredentialsMode=function(G){this.JSC$19638_credentialsMode_=G};
var Q6=function(G,e){_.j7.call(this);this.JSC$19642_worker_=G;this.JSC$19642_streamBinaryChunks_=e;this.JSC$19642_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$19642_responseHeaders_=null;this.JSC$19642_method_="GET";this.JSC$19642_url_="";this.inProgress_=!1;this.JSC$19642_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.Bz(Q6,_.j7);Q6.prototype.open=function(G,e){if(this.readyState!=0)throw this.abort(),Error("jk");this.JSC$19642_method_=G;this.JSC$19642_url_=e;this.readyState=1;kR8(this)};
Q6.prototype.send=function(G){if(this.readyState!=1)throw this.abort(),Error("kk");if(this.abortController_.signal.aborted)throw this.abort(),Error("lk");this.inProgress_=!0;var e={headers:this.requestHeaders_,method:this.JSC$19642_method_,credentials:this.JSC$19642_credentialsMode_,cache:void 0,signal:this.abortController_.signal};G&&(e.body=G);(this.JSC$19642_worker_||_.O_).fetch(new Request(this.JSC$19642_url_,e)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
Q6.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,HVH(this));this.readyState=0};
Q6.prototype.handleResponse_=function(G){if(this.inProgress_&&(this.fetchResponse_=G,this.JSC$19642_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19642_responseHeaders_=G.headers,this.readyState=2,kR8(this)),this.inProgress_&&(this.readyState=3,kR8(this),this.inProgress_)))if(this.responseType==="arraybuffer")G.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.O_.ReadableStream!==
"undefined"&&"body"in G){this.currentReader_=G.body.getReader();if(this.JSC$19642_streamBinaryChunks_){if(this.responseType)throw Error("mk");this.response=[]}else this.response=this.responseText="",this.JSC$19642_textDecoder_=new TextDecoder;d4o(this)}else G.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var d4o=function(G){G.currentReader_.read().then(G.handleDataFromStream_.bind(G)).catch(G.handleSendFailure_.bind(G))};
Q6.prototype.handleDataFromStream_=function(G){if(this.inProgress_){if(this.JSC$19642_streamBinaryChunks_&&G.value)this.response.push(G.value);else if(!this.JSC$19642_streamBinaryChunks_){var e=G.value?G.value:new Uint8Array(0);if(e=this.JSC$19642_textDecoder_.decode(e,{stream:!G.done}))this.response=this.responseText+=e}G.done?HVH(this):kR8(this);this.readyState==3&&d4o(this)}};
Q6.prototype.handleResponseText_=function(G){this.inProgress_&&(this.response=this.responseText=G,HVH(this))};
Q6.prototype.handleResponseArrayBuffer_=function(G){this.inProgress_&&(this.response=G,HVH(this))};
Q6.prototype.handleSendFailure_=function(){this.inProgress_&&HVH(this)};
var HVH=function(G){G.readyState=4;G.fetchResponse_=null;G.currentReader_=null;G.JSC$19642_textDecoder_=null;kR8(G)};
Q6.prototype.setRequestHeader=function(G,e){this.requestHeaders_.append(G,e)};
Q6.prototype.getResponseHeader=function(G){return this.JSC$19642_responseHeaders_?this.JSC$19642_responseHeaders_.get(G.toLowerCase())||"":""};
Q6.prototype.getAllResponseHeaders=function(){if(!this.JSC$19642_responseHeaders_)return"";for(var G=[],e=this.JSC$19642_responseHeaders_.entries(),r=e.next();!r.done;)r=r.value,G.push(r[0]+": "+r[1]),r=e.next();return G.join("\r\n")};
Q6.prototype.setCredentialsMode=function(G){this.JSC$19642_credentialsMode_=G};
var kR8=function(G){G.onreadystatechange&&G.onreadystatechange.call(G)};
Object.defineProperty(Q6.prototype,"withCredentials",{get:function(){return this.JSC$19642_credentialsMode_==="include"},
set:function(G){this.setCredentialsMode(G?"include":"same-origin")}});var oMo=function(G){var e="";_.c2.forEach(G,function(r,Z){e+=Z;e+=":";e+=r;e+="\r\n"});
return e},sel=function(G,e,r){if(_.c2.isEmpty(r))return G;
r=oMo(r);if(typeof G==="string")return _.yS(G,_.em(e),r);_.eO(G,e,r);return G};var QeB=function(){this.isInputValid_=!0;this.JSC$19648_streamPos_=0;this.leftoverInput_=""};
QeB.prototype.isInputValid=function(){return this.isInputValid_};
QeB.prototype.decode=function(G){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("nk`"+this.JSC$19648_streamPos_+"`stream already broken`"+G);this.leftoverInput_+=G;G=Math.floor(this.leftoverInput_.length/4);if(G==0)return null;try{var e=_.Ce$(this.leftoverInput_.slice(0,G*4))}catch(r){throw e=this.leftoverInput_,G=r.message,this.isInputValid_=!1,Error("nk`"+this.JSC$19648_streamPos_+"`"+G+"`"+e);}this.JSC$19648_streamPos_+=G*4;this.leftoverInput_=this.leftoverInput_.slice(G*4);return e};var vR=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19651_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
vR.prototype.isInputValid=function(){return this.state_!=3};
var IiA=function(G,e,r,Z){G.state_=3;G.errorMessage_="The stream is broken @"+G.JSC$19651_streamPos_+"/"+r+". Error: "+Z+". With input:\n"+e;throw Error(G.errorMessage_);};
vR.prototype.acceptsBinaryInput=function(){return!0};
vR.prototype.parse=function(G){function e(b){b&128&&IiA(M,T,E,"invalid tag");(b&7)!=2&&IiA(M,T,E,"invalid wire type");M.tag_=b>>>3;M.tag_!=1&&M.tag_!=2&&M.tag_!=15&&IiA(M,T,E,"unexpected tag");M.state_=1;M.length_=0;M.countLengthBytes_=0}
function r(b){M.countLengthBytes_++;M.countLengthBytes_==5&&b&240&&IiA(M,T,E,"message length too long");M.length_|=(b&127)<<(M.countLengthBytes_-1)*7;b&128||(M.state_=2,M.countMessageBytes_=0,typeof Uint8Array!=="undefined"?M.messageBuffer_=new Uint8Array(M.length_):M.messageBuffer_=Array(M.length_),M.length_==0&&O())}
function Z(b){M.messageBuffer_[M.countMessageBytes_++]=b;M.countMessageBytes_==M.length_&&O()}
function O(){if(M.tag_<15){var b={};b[M.tag_]=M.messageBuffer_;M.result_.push(b)}M.state_=0}
for(var M=this,T=G instanceof Array?G:new Uint8Array(G),E=0;E<T.length;){switch(M.state_){case 3:IiA(M,T,E,"stream already broken");break;case 0:e(T[E]);break;case 1:r(T[E]);break;case 2:Z(T[E]);break;default:throw Error("ok`"+M.state_);}M.JSC$19651_streamPos_++;E++}G=M.result_;M.result_=[];return G.length>0?G:null};var sVY=function(){this.errorMessage_=null;this.JSC$19654_streamPos_=0;this.base64Decoder_=new QeB;this.pbParser_=new vR};
sVY.prototype.isInputValid=function(){return this.errorMessage_===null};
var puW=function(G,e,r){G.errorMessage_="The stream is broken @"+G.JSC$19654_streamPos_+". Error: "+r+". With input:\n"+e;throw Error(G.errorMessage_);};
sVY.prototype.acceptsBinaryInput=function(){return!1};
sVY.prototype.parse=function(G){this.errorMessage_!==null&&puW(this,G,"stream already broken");var e=null;try{var r=this.base64Decoder_.decode(G);e=r===null?null:this.pbParser_.parse(r)}catch(Z){puW(this,G,Z.message)}this.JSC$19654_streamPos_+=G.length;return e};var oOH=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19657_streamPos_=0;this.result_=[];this.statusParsed_=!1};
oOH.prototype.isInputValid=function(){return this.errorMessage_===null};
oOH.prototype.acceptsBinaryInput=function(){return!1};
oOH.prototype.parse=function(G){function e(b){M.state_=6;M.errorMessage_="The stream is broken @"+M.JSC$19657_streamPos_+"/"+T+". Error: "+b+". With input:\n";throw Error(M.errorMessage_);}
function r(){M.jsonStreamParser_=new _.E4({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function Z(b){if(b)for(var w=0;w<b.length;w++){var q={};q[1]=b[w];M.result_.push(q)}}
function O(b){if(b){(M.statusParsed_||b.length>1)&&e("extra status: "+b);M.statusParsed_=!0;var w={};w[2]=b[0];M.result_.push(w)}}
for(var M=this,T=0;T<G.length;){var E;if(E=M.state_!==2){a:{for(;T<G.length;){if(!_.DO(G[T])){E=!0;break a}T++;M.JSC$19657_streamPos_++}E=!1}E=!E}if(E)return null;switch(M.state_){case 6:e("stream already broken");break;case 0:G[T]==="["?(M.state_=1,T++,M.JSC$19657_streamPos_++):e("unexpected input token");break;case 1:G[T]==="["?(M.state_=2,r()):G[T]===","||G.slice(T,T+5)=="null,"?M.state_=3:G[T]==="]"?(M.state_=5,T++,M.JSC$19657_streamPos_++):e("unexpected input token");break;case 2:E=M.jsonStreamParser_.parse(G.substring(T));
Z(E);M.jsonStreamParser_.done()?(M.state_=3,E=M.jsonStreamParser_.JSC$11488_buffer_,M.JSC$19657_streamPos_+=G.length-T-E.length,G=E,T=0):(M.JSC$19657_streamPos_+=G.length-T,T=G.length);break;case 3:G[T]===","||G.slice(T,T+5)=="null,"?(M.state_=4,r(),M.jsonStreamParser_.parse("["),T+=G[T]===","?1:5,M.JSC$19657_streamPos_++):G[T]==="]"&&(M.state_=5,T++,M.JSC$19657_streamPos_++);break;case 4:E=M.jsonStreamParser_.parse(G.substring(T));O(E);M.jsonStreamParser_.done()?(M.state_=5,E=M.jsonStreamParser_.JSC$11488_buffer_,
M.JSC$19657_streamPos_+=G.length-T-E.length,G=E,T=0):(M.JSC$19657_streamPos_+=G.length-T,T=G.length);break;case 5:e("extra input after stream end")}}return M.result_.length>0?(G=M.result_,M.result_=[],G):null};var CdW=function(G){this.JSC$19660_xhr_=G;this.JSC$19660_parser_=null;this.status_=this.JSC$19660_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19660_textDecoder_=null;this.JSC$19660_eventHandler_=new _.tP(this);this.JSC$19660_eventHandler_.listen(this.JSC$19660_xhr_,"readystatechange",this.JSC$19662_readyStateChangeHandler_)},In=function(G,e){G.status_!=e&&(G.status_=e,G.statusHandler_&&G.statusHandler_())},u5d=function(G){G.JSC$19660_eventHandler_.removeAll();
if(G.JSC$19660_xhr_){var e=G.JSC$19660_xhr_;G.JSC$19660_xhr_=null;e.abort();e.dispose()}};
CdW.prototype.getStatus=function(){return this.status_};
CdW.prototype.JSC$19662_readyStateChangeHandler_=function(G){G=G.target;try{if(G==this.JSC$19660_xhr_)a:{var e=_.sS(this.JSC$19660_xhr_),r=this.JSC$19660_xhr_.JSC$9805_lastErrorCode_,Z=this.JSC$19660_xhr_.getStatus(),O=this.JSC$19660_xhr_.getResponseText();G=[];if(this.JSC$19660_xhr_.getResponse()instanceof Array){var M=this.JSC$19660_xhr_.getResponse();M.length>0&&M[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,G=M)}if(!(e<3||e==3&&!O&&G.length==0))if(Z=Z==200||Z==206,e==4&&(r==8?In(this,
7):r==7?In(this,8):Z||In(this,3)),this.JSC$19660_parser_||(this.JSC$19660_parser_=QVo(this.JSC$19660_xhr_),this.JSC$19660_parser_==null&&In(this,5)),this.status_>2)u5d(this);else{if(G.length>this.JSC$19660_pos_){var T=G.length;r=[];try{if(this.JSC$19660_parser_.acceptsBinaryInput())for(var E=0;E<T;E++){var b=this.JSC$19660_parser_.parse(Array.from(G[E]));b&&(r=r.concat(b))}else{b="";if(!this.JSC$19660_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("pk");this.JSC$19660_textDecoder_=
new TextDecoder}for(E=0;E<T;E++)b+=this.JSC$19660_textDecoder_.decode(G[E],{stream:e==4&&E==T-1});r=this.JSC$19660_parser_.parse(b)}G.splice(0,T);r&&this.dataHandler_(r)}catch(q){In(this,5);u5d(this);break a}}else if(O.length>this.JSC$19660_pos_){E=O.slice(this.JSC$19660_pos_);this.JSC$19660_pos_=O.length;try{var w=this.JSC$19660_parser_.parse(E);w!=null&&this.dataHandler_&&this.dataHandler_(w)}catch(q){In(this,5);u5d(this);break a}}e==4?(O.length!=0||this.hasStreamingResponseData_?In(this,2):In(this,
4),u5d(this)):In(this,1)}}}catch(q){In(this,6),u5d(this)}};var nMV=function(G){G=this.xhrReader_=G;var e=(0,_.CB)(this.onData_,this);G.dataHandler_=e;G=this.xhrReader_;e=(0,_.CB)(this.onStatusChange_,this);G.statusHandler_=e;this.JSC$19664_callbackMap_={};this.callbackOnceMap_={}};
_.V=nMV.prototype;_.V.on=function(G,e){var r=this.JSC$19664_callbackMap_[G];r||(r=[],this.JSC$19664_callbackMap_[G]=r);r.push(e);return this};
_.V.addListener=function(G,e){this.on(G,e);return this};
_.V.removeListener=function(G,e){var r=this.JSC$19664_callbackMap_[G];r&&_.yp(r,e);(G=this.callbackOnceMap_[G])&&_.yp(G,e);return this};
_.V.once=function(G,e){var r=this.callbackOnceMap_[G];r||(r=[],this.callbackOnceMap_[G]=r);r.push(e);return this};
_.V.onData_=function(G){var e=this.JSC$19664_callbackMap_.data;e&&m4Y(G,e);(e=this.callbackOnceMap_.data)&&m4Y(G,e);this.callbackOnceMap_.data=[]};
var m4Y=function(G,e){for(var r={},Z=0;Z<G.length;r={message$jscomp$1008:void 0},Z++)r.message$jscomp$1008=G[Z],e.forEach(function(O){return function(M){try{M(O.message$jscomp$1008)}catch(T){}}}(r))};
nMV.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:cYB(this,"readable");break;case 5:case 6:case 4:case 7:case 3:cYB(this,"error");break;case 8:cYB(this,"close");break;case 2:cYB(this,"end")}};
var cYB=function(G,e){var r=G.JSC$19664_callbackMap_[e];r&&r.forEach(function(Z){try{Z()}catch(O){}});
(r=G.callbackOnceMap_[e])&&r.forEach(function(Z){Z()});
G.callbackOnceMap_[e]=[]};var Y38=function(){var G={format:"jspb"};G=G===void 0?{}:G;this.suppressCorsPreflight=G.suppressCorsPreflight||_.Lz("suppressCorsPreflight",G)||!1;this.withCredentials=G.withCredentials||_.Lz("withCredentials",G)||!1;this.streamInterceptors=G.streamInterceptors||[];this.unaryInterceptors=G.unaryInterceptors||[];this.workerScope=G.workerScope;this.chunkedServerStreaming=G.useFetchDownloadStreams||!1},Fyo=function(G,e,r,Z,O,M){M=M===void 0?{}:M;
var T=e.substring(0,e.length-O.name.length),E,b=(E=M)==null?void 0:E.signal;return yYl(function(w){return new Promise(function(q,t){if(b==null?0:b.aborted){var g=new _.HK(1,"Aborted");g.cause=b.reason;t(g)}else{var l={},X=AYH(G,w,T);X.on("error",function(H){return void t(H)});
X.on("metadata",function(H){l=H});
X.on("data",function(H){var I=l;I=I===void 0?{}:I;q(new UpY(H,I))});
b&&b.addEventListener("abort",function(){X.cancel();var H=new _.HK(1,"Aborted");H.cause=b.reason;t(H)})}})},G.unaryInterceptors).call(G,z9o(O,r,Z)).then(function(w){return w.responseMessage})},JYA=function(G,e,r,Z,O,M){M=M===void 0?{}:M;
return Fyo(G,e,r,Z,O,M)};
Y38.prototype.serverStreaming=function(G,e,r,Z){var O=this,M=G.substring(0,G.length-Z.name.length);return B_8(function(T){var E=T.methodDescriptor,b=T.getMetadata(),w=x4W(O,!1);b=PdY(O,b,w,M+E.getName());var q=U4H(w,E.responseDeserializeFn,!0);T=E.requestSerializeFn(T.requestMessage);w.send(b,"POST",T);return q},this.streamInterceptors).call(this,z9o(Z,e,r))};
var AYH=function(G,e,r){var Z=e.methodDescriptor,O=e.getMetadata(),M=x4W(G,!0);G=PdY(G,O,M,r+Z.getName());r=U4H(M,Z.responseDeserializeFn,!1);XuW(r,O["X-Goog-Encode-Response-If-Executable"]==="base64");e=Z.requestSerializeFn(e.requestMessage);M.send(G,"POST",e);return r},x4W=function(G,e){e=G.chunkedServerStreaming&&!e;
return G.workerScope||e?new _.ob(new fiH({worker:G.workerScope,streamBinaryChunks:e})):new _.ob},PdY=function(G,e,r,Z){e["Content-Type"]="application/json+protobuf";
e["X-User-Agent"]="grpc-web-javascript/0.1";var O=e.Authorization;if(O&&vM8.has(O.split(" ")[0])||G.withCredentials)r.JSC$9805_withCredentials_=!0;if(G.suppressCorsPreflight)Z=sel(Z,"$httpHeaders",e);else for(G=_.h(Object.keys(e)),O=G.next();!O.done;O=G.next())O=O.value,r.headers.set(O,e[O]);return Z},U4H=function(G,e,r){if(r){r=new CdW(G);
var Z=new nMV(r)}return new q3Y({xhr:G,nodeReadableStream:Z},e)},B_8=function(G,e){return e.reduce(function(r,Z){return function(O){return Z.intercept(O,r)}},G)},yYl=function(G,e){return e.reduce(function(r,Z){return function(O){return Z.intercept(O,r)}},G)};var z7a=function(G){this.client_=new Y38;this.hostname_=G==void 0?G:G.replace(/\/+$/,"")};
_.V=z7a.prototype;_.V.JSC$19682_depositGoogleCredential=function(G,e,r){return JYA(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",G,e||{},GR8,r)};
_.V.deleteLink=function(G,e,r){return JYA(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",G,e||{},NgV,r)};
_.V.JSC$19682_finishOAuth=function(G,e,r){return JYA(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",G,e||{},rYW,r)};
_.V.getLink=function(G,e,r){return JYA(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",G,e||{},ZV2,r)};
_.V.startLinkingSession=function(G,e,r){return JYA(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",G,e||{},bVB,r)};var WyW=[0,_.cs,1,Vf2,[0,_.J3,[0,_.ya,-1]],[0,MfB],[0,_.zB,-1],[0,MfB]];var N_o=function(){this.storage=new Map},G8o=function(G,e,r,Z,O){if(!G.storage.has(e))return null;
G=_.h(G.storage.get(e));for(e=G.next();!e.done;e=G.next())if(e=e.value,!O||e.linkName===O)if(r&&e.scopes&&Ly2(e.scopes,r)||Z&&e.capabilities&&Ly2(e.capabilities,Z))return e;return null},e2H=function(G,e,r){if(!r)G.storage.delete(e);
else if(G.storage.has(e)){var Z=G.storage.get(e).filter(function(O){return O.linkName!==r});
Z.length>0?G.storage.set(e,Z):G.storage.delete(e)}},Ly2=function(G,e){e=_.h(e);
for(var r=e.next();!r.done;r=e.next())if(!G.has(r.value))return!1;return!0};var r98=function(){var G=_.xZ("LINK_GAL_DOMAIN");this.alsDomain1p=_.xZ("LINK_GAL_DOMAIN");this.alsDomain3p=G;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},ZSA=function(G,e){G.apiKey=e;
return G};
r98.prototype.build=function(){var G={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("qk");G.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("rk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("sk");G.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(G.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)G.apiKey=
this.apiKey,G.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("tk");G.oauthToken=this.oauthToken;G.alsDomain=this.alsDomain3p}G.clientXd3=this.clientXd3;G.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(G.authUser=this.authUser);this.bucket!==void 0&&(G.bucket=this.bucket);this.completionUrl!==void 0&&(G.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(G.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(G.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(G.locale=this.locale);G.loggerType=this.loggerType;G.clientEnvironment=this.clientEnvironment;G.colorScheme=this.colorScheme;G.showCloseOption=this.showCloseOption;return G};var wy=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(wy,_.Tq);var OSV=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(OSV,_.Tq);var MjY=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(MjY,_.Tq);var Sx=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(Sx,_.Tq);var Vjd=function(G){return _.lg(G,1)};var h28=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(h28,_.Tq);var ceA=_.a2(h28),$L=[1,2,3,4,5];var CZo=function(G){try{return ceA(G)}catch(e){return null}},Th2=function(){},ufm=function(G,e){switch(_.ig(e,$L)){case 4:return(e=_.a$(e,MjY,4,$L))&&G.logStateTransition(_.lg(e,1)),!0;
case 5:return(e=_.a$(e,OSV,5,$L))&&G.logInternalEvent(_.lg(e,1)),!0}return!1},YbC=function(G){switch(G){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.zC(G)}};var Ip8=function(G,e){var r=this;this.validator=G;this.messageListener=e;this.dismissCallback=function(){Dwa(r,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19711_receiveMessage=function(Z){Z.type==="message"&&(Z=Z.event_,Z!==null&&(new URL(r.iframe.src)).origin===Z.origin&&r.validator(Z.data,Z.origin)&&!r.messageListener(Z.data)&&(r.JSC$19711_resolveCb!==void 0&&r.JSC$19711_resolveCb(Z.data),E62(r)))}},mko=function(G,e,r){G.uiHandler!==void 0&&Dwa(G,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(Z,O){G.JSC$19711_resolveCb=Z;G.JSC$19711_rejectCb=O;G.iframe=document.createElement("iframe");_.Ge(G.iframe,e);G.uiHandler=r.displayContent(G.iframe,G.dismissCallback);_.w2(window,"message",G.JSC$19711_receiveMessage,!1,G)})},Dwa=function(G,e){G.JSC$19711_rejectCb!==void 0&&G.JSC$19711_rejectCb(e);
E62(G)},E62=function(G){G.uiHandler!==void 0&&G.uiHandler.hideContent();
_.Rb(window,"message",G.JSC$19711_receiveMessage,!1,G);G.JSC$19711_resolveCb=void 0;G.JSC$19711_rejectCb=void 0;G.uiHandler=void 0;G.iframe=void 0};var iS2=function(G){if(G===2){var e;G=((e=window)==null?0:e.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return G},nOm=function(G){G=iS2(G);
switch(G){case 0:return"light";case 1:return"dark";default:_.zC(G)}};var p5V=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),bS8=function(G,e){this.JSC$19723_linkingSession=G;this.noticeConfig=e;this.displayInfoMap=new Map;var r=new Map;if(_.h3(this.JSC$19723_linkingSession,VkV,7))for(G=_.SS(this.JSC$19723_linkingSession,VkV,7),G=_.ix(G,Mkm,1,_.bx()),G=_.h(G),e=G.next();!e.done;e=G.next())e=e.value,r.set(_.lg(e,1),_.kGN(_.SS(e,_.YjA,3)));if(r.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){e=this.noticeConfig.enabledDataUsageNoticeUis;G=e.has(0)?r.get(1):void 0;e=e.has(1)?r.get(2):void 0;r=G!==void 0&&e!==void 0?r.get(3):void 0;var Z=this.noticeConfig.nestedOrigins;var O=new h28;var M=new wy;O=_.fj(O,2,$L,M);M=new h28;var T=new wy;M=_.fj(M,3,$L,T);T=[];G!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:G,lastEvent:O,nestedOrigins:Z}]),T.push({trustedUrl:G,lastEvent:O,nestedOrigins:Z}));e!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:e,lastEvent:M,nestedOrigins:Z}]),T.push({trustedUrl:e,lastEvent:M,nestedOrigins:Z}));r!==void 0?this.displayInfoMap.set(3,[{trustedUrl:r,lastEvent:M,nestedOrigins:Z}]):this.displayInfoMap.set(3,T)}};var v68=function(G){var e=new N_o;this.galService=G;this.galCache=e};
v68.prototype.getLink=function(G){var e=G.serviceId;var r=G.scopes;var Z=G.capabilities;var O=G.linkName;var M=this,T;return _.D(function(E){if(Z!==void 0&&r!==void 0)throw Error("uk");T=G8o(M.galCache,e,r,Z,O);return T!==null?E.return(T):E.return(M.galService.getLink({serviceId:e,sessionId:Math.floor(Math.random()*2147483648),scopes:r,capabilities:Z,linkName:O}).then(function(b){b=Bpd(b);var w=M.galCache;w.storage.has(e)?w.storage.get(e).push(b):w.storage.set(e,[b]);return b}))})};
v68.prototype.deleteLink=function(G,e,r){var Z=this;return _.D(function(O){e2H(Z.galCache,G,r);return O.return(Z.galService.deleteLink({serviceId:G,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:e,linkName:r}).then(function(){return!0}))})};var $wW=function(G,e){var r=this;this.validator=G;this.msgHandler=e;this.closedPopupTimeout=this.JSC$19745_rejectCb=this.JSC$19745_resolveCb=this.popup=null;this.JSC$19745_receiveMessage=function(Z){if(Z!==null&&(Z=Z.event_,Z.source===r.popup)){var O=Z.data;if(r.validator(O,Z.origin)){var M;(M=r.msgHandler)!=null&&M.call(r,O)||(r.JSC$19745_resolveCb!==null&&r.JSC$19745_resolveCb(O),w9W(r))}}}};
$wW.prototype.open=function(G,e){var r=this;this.popup!==null&&S48(this);return new Promise(function(Z,O){r.JSC$19745_resolveCb=Z;r.JSC$19745_rejectCb=O;r.popup=_.er(window,G,"",e);_.w2(window,"message",r.JSC$19745_receiveMessage,!1,r);q4W(r)})};
var S48=function(G,e){G.JSC$19745_rejectCb!==null&&G.JSC$19745_rejectCb(e);w9W(G)},w9W=function(G){G.closedPopupTimeout&&(G.closedPopupTimeout.cancel(),G.closedPopupTimeout=null);
G.popup&&G.popup.close();_.Rb(window,"message",G.JSC$19745_receiveMessage,!1,G);G.popup=null;G.JSC$19745_resolveCb=null;G.JSC$19745_rejectCb=null},q4W=function(G){G.closedPopupTimeout=_.QoE(100).then(function(){G.popup?G.popup.closed?tja(G):q4W(G):S48(G,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},tja=function(G){G.closedPopupTimeout=_.QoE(100).then(function(){S48(G,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var g6a=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),lOm=function(G,e,r,Z,O,M,T,E,b,w){var q=this;this.serviceId=G;this.sessionId=e;this.galService=r;this.oauthDetails=Z;this.galLogger=O;this.interactionMode=M;this.redirectServiceUrl=T;this.consentLanguageKeys=E;this.dynamicUrlParameters=b;this.partnerConfigMinReadTimestamp=w;this.started=!1;this.JSC$19751_dataValidator=function(t,
g){var l=g6a.has(g);l||q.redirectServiceUrl===void 0||(l=q.redirectServiceUrl===g);return l?t.sentinel==="gdi":!1}};
lOm.prototype.complete=function(){var G=this,e;return _.D(function(r){if(G.interactionMode!==1)return r.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));e=tn.getRedirectStateFromUri();return e===null?r.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):r.return(R2V(G,e))})};
lOm.prototype.start=function(){var G=this,e;return _.D(function(r){if(G.started)return r.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.gU(G.oauthDetails,1))return r.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(G.interactionMode===1)return tn.setLocation(_.gU(G.oauthDetails,1)),r.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));G.started=!0;G.galLogger.logStateTransition(5);
e=tn.getPostMessagePopup(G.JSC$19751_dataValidator);return r.return(e.open(_.gU(G.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){G.started=!1;var O=G.galLogger;if((Z==null?void 0:Z.error)!==void 0)throw O.logInternalEvent(59),Error("vk");if((Z==null?void 0:Z.redirect_state)===void 0)throw O.logInternalEvent(131),Error("wk");return R2V(G,Z.redirect_state)}).catch(function(Z){G.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 R2V=function(G,e){return _.D(function(r){return r.return(j4Y(G.galService,{serviceId:G.serviceId,sessionId:G.sessionId,dynamicUrlParameters:G.dynamicUrlParameters,redirectState:e,consentLanguageKeys:G.consentLanguageKeys,partnerConfigMinReadTimestamp:G.partnerConfigMinReadTimestamp}).then(function(Z){var O={statusCode:1,link:Bpd(Z.getLink())};Asa(_.Dg(Z,3))!==void 0&&(O.callerState=Asa(_.Dg(Z,3)));G.galLogger.logInternalEvent(134);return O}))})},tn={getPostMessagePopup:function(G){return new $wW(G)},
getRedirectStateFromUri:function(){var G=_.LB(tn.getLocation()).fragment_;return(new _.Vj(G)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(G){_.g5N(window.location,_.Fy(G))},
createOAuthFlow:function(G,e){return new lOm(G.serviceId,G.sessionId,G.galService,e,G.galLogger,G.interactionMode,G.redirectServiceUrl,G.consentLanguageKeys,G.dynamicUrlParameters,G.partnerConfigMinReadTimestamp)}};var aOl=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(aOl,_.Tq);var X9a=_.a2(aOl);var KiW=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),fOC=function(G,e,r,Z,O,M,T,E,b){var w=this;this.serviceId=G;this.sessionId=e;this.galService=r;this.gsiWebFlowDetails=Z;this.colorScheme=O;this.showCloseOption=M;this.galLogger=T;this.interactionMode=E;this.redirectServiceUrl=b;this.started=!1;this.JSC$19763_dataValidator=function(q,t){var g=KiW.has(t);g||w.redirectServiceUrl===
void 0||(g=w.redirectServiceUrl===t);return g?q.sentinel==="gal":!1};
this.logEventProcessor=function(q){return q.result?(q=CZo(q.result))?ufm(w.galLogger,q):!1:!1}};
fOC.prototype.complete=function(){var G=this,e,r;return _.D(function(Z){if(G.interactionMode!==1)return Z.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));e=gy.getRedirectStateFromUri();if(e===void 0)return G.galLogger.JSC$19703_logErrorEvent(131),Z.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return r=k8B(G,e),Z.return(HS8(G,r))}catch(O){return Z.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
fOC.prototype.start=function(){var G=this,e;return _.D(function(r){if(G.started)return r.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.gU(G.gsiWebFlowDetails,1))return r.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(G.interactionMode===1)return gy.setLocation(dwd(G,_.gU(G.gsiWebFlowDetails,1))),r.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
G.started=!0;e=gy.getPostMessagePopup(G.JSC$19763_dataValidator,G.logEventProcessor);return r.return(e.open(dwd(G,_.gU(G.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){G.started=!1;if((Z==null?void 0:Z.result)===void 0)throw G.galLogger.JSC$19703_logErrorEvent(131),Error("wk");Z=k8B(G,Z.result);return HS8(G,Z)}).catch(function(Z){G.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 dwd=function(G,e){G=["result_channel",G.interactionMode===1?"2":"1","color_scheme",nOm(G.colorScheme),"show_close_option",G.showCloseOption];return Ev8(e,G)},HS8=function(G,e){if(e!==null&&_.h3(e,Sx,2)){var r,Z=e==null?void 0:(r=_.SS(e,Sx,2))==null?void 0:_.lg(r,2);
Z&&G.galLogger.JSC$19703_logErrorEvent(YbC(Z));return Vjd(_.SS(e,Sx,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 G.galService.getLink({serviceId:G.serviceId,sessionId:G.sessionId,consistencyKey:_.gU(e,1)}).then(function(O){O=Bpd(O);G.galLogger.logInternalEvent(134);return{statusCode:1,link:O}})},k8B=function(G,e){e=X9a(e);
if(!_.h3(e,Sx,2)&&_.gU(e,1)==="")throw G.galLogger.JSC$19703_logErrorEvent(5),Error("xk");return e},gy={getPostMessagePopup:function(G,e){return new $wW(G,e)},
getRedirectStateFromUri:function(){return _.Gy(_.LB(gy.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(G){_.g5N(window.location,_.Fy(G))},
createStreamlinedFlow:function(G,e){return new fOC(G.serviceId,G.sessionId,G.galService,e,G.colorScheme,G.showCloseOption,G.galLogger,G.interactionMode,G.redirectServiceUrl)}};var hLY=function(){var G=_.FCU("GAL");this.storage=G?new _.uq(G):null};
hLY.prototype.getSession=function(G){if(this.storage!==null)try{var e=this.storage.get("SAVED_SESSION");if(e===void 0)return null;if(e.serviceId===G)return e}catch(r){}return null};var o6V=function(){};
_.K(o6V,Th2);o6V.prototype.logStateTransition=function(){};
o6V.prototype.logInternalEvent=function(){};
o6V.prototype.JSC$19703_logErrorEvent=function(){};var s4d=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(s4d,_.Tq);s4d.prototype.getCompletionUrl=function(){return _.gU(this,15)};var pA=function(G,e,r,Z,O,M){this.serviceId=G;this.environment=e;this.sessionId=r;this.colorSchemeSelected=Z;this.colorThemeDisplayed=O;this.JSC$19776_transport=M;this.currentState=1};
_.K(pA,Th2);pA.prototype.logStateTransition=function(G){var e=Q4W(this);e=_.qa(e,3,this.currentState);e=_.qa(e,1,G);this.currentState=G;G=qSV(1);this.dispatch(e,G)};
pA.prototype.logInternalEvent=function(G){G=qSV(G);this.dispatch(Q4W(this),G)};
pA.prototype.JSC$19703_logErrorEvent=function(G){var e=Q4W(this);e=_.qa(e,1,10);G=qSV(G);this.dispatch(e,G)};
var Q4W=function(G){var e=new s4d;e=_.qa(e,1,G.currentState);e=_.QB(e,7,G.serviceId);var r,Z;var O=((r=window)==null?0:(Z=r.location)==null?0:Z.href)?_.LB(window.location.href).JSC$10041_domain_:"NO_PACKAGE_NAME";r=_.QB(e,8,O);r=_.qa(r,6,G.environment);r=_.QB(r,5,"100");r=_.qa(r,11,G.colorSchemeSelected);return _.qa(r,12,G.colorThemeDisplayed)};
pA.prototype.dispatch=function(G,e){e===void 0&&(e=new _.ES);var r=e;G=G.serialize();r=_.QB(r,8,G);_.ss(r,12,this.sessionId);this.JSC$19776_transport.dispatch(e)};var IOV=function(G,e){this.loggerType=G;this.sessionIndex=e!=null?e:0},p9H;
IOV.prototype.create=function(G,e,r,Z,O){switch(this.loggerType){case 0:return new o6V;case 1:return p9H||(p9H=(new _.jK(555,this.sessionIndex.toString())).build()),new pA(G,e,r,Z,O,p9H);default:_.zC(this.loggerType,"unknown logger type")}};var lS=[6,2,3,1],vb2=new Map([[4,1],[1,6],[2,2],[3,3]]),zPa={statusCode:7,statusMessage:"Failed to create flow object"},MVo=function(G,e,r,Z,O,M,T,E,b,w){this.serviceId=G;this.sessionId=e;this.config=r;this.galService=Z;this.JSC$19783_linkingSession=O;this.googleScopes=M;this.callerState=T;this.consentLanguageKeys=E;this.dynamicUrlParameters=b;this.partnerConfigMinReadTimestamp=w;this.currentFlow=0;Z=this.JSC$19783_linkingSession;O=new Set;_.h3(Z,eLo,1)&&O.add(1);_.h3(Z,T_8,2)&&_.h3(Z,rIl,6)&&O.add(2);
_.h3(Z,h7C,3)&&_.h3(Z,rIl,6)&&O.add(3);_.h3(Z,OVH,4)&&O.add(6);this.supportedFlows=O;Z=r.loggerType;O=r.clientEnvironment;a:{M=r.colorScheme;switch(M){case 0:M=1;break a;case 1:M=2;break a;case 2:M=3;break a;default:_.zC(M)}M=void 0}a:{T=r.colorScheme;T=iS2(T);switch(T){case 0:T=1;break a;case 1:T=2;break a;default:_.zC(T)}T=void 0}this.galLogger=(new IOV(Z,r.authUser)).create(G,O,e,M,T)},ugm=function(G){return new Promise(function(e){var r,Z,O,M,T,E,b,w,q,t;
return _.D(function(g){switch(g.nextAddress){case 1:r=ZW8(G.currentFlow,G.supportedFlows),Z=!1,O=new bS8(G.JSC$19783_linkingSession,G.config.dataUsageNoticeConfig);case 2:if(r===void 0){g.jumpTo(4);break}_.jr(g,5);var l=O,X=r,H=void 0;Z?X===1&&(H=l.displayInfoMap.get(2)):X===2||X===3?H=l.displayInfoMap.get(1):X===1&&(H=l.displayInfoMap.get(3));M=H?H:[];T=G.consentLanguageKeys;E=_.h(M);b=E.next();case 7:if(b.done)return G.currentFlow=r,g.yield(NpW(C_l(G,T)),11);w=b.value;return g.yield(ye2(w,G.config.dataUsageNoticeConfig.uiAdapter,
G.config.colorScheme,G.galLogger),10);case 10:q=g.yieldResult;if(q.statusCode!==1)return T8o(G.serviceId),G.currentFlow=0,e(qX({statusCode:q.statusCode,statusMessage:q.statusMessage},G.callerState)),g.return();q.consentLanguageKeys!==void 0&&(T=q.consentLanguageKeys);b=E.next();g.jumpTo(7);break;case 11:t=g.yieldResult;if(t.statusCode!==10)return t.statusCode!==6&&(T8o(G.serviceId),G.currentFlow=0),t.statusCode!==1&&G.callerState!==void 0&&(t.callerState=G.callerState),e(t),g.return();_.rL(g,6);break;
case 5:_.k5(g);case 6:r=ZW8(G.currentFlow,G.supportedFlows);Z=!0;g.jumpTo(2);break;case 4:T8o(G.serviceId),G.currentFlow=0,e(qX({statusCode:12,statusMessage:"Linking failed"},G.callerState)),_.HL(g)}})})},iW8=function(G,e,r){G.currentFlow=e;
return LOa(C_l(G,r)).then(function(Z){return Z.statusCode===10&&G.config.interactionMode===1&&ZW8(G.currentFlow,G.supportedFlows)!==void 0?ugm(G):Z})},C_l=function(G,e){return{flowParams:{serviceId:G.serviceId,
sessionId:G.sessionId,galService:G.galService,galLogger:G.galLogger,interactionMode:G.config.interactionMode,redirectServiceUrl:G.config.redirectServiceUrl,colorScheme:G.config.colorScheme,consentLanguageKeys:e,dynamicUrlParameters:G.dynamicUrlParameters,showCloseOption:G.config.showCloseOption,partnerConfigMinReadTimestamp:G.partnerConfigMinReadTimestamp},currentFlow:G.currentFlow,config:G.config,session:G.JSC$19783_linkingSession,googleScopes:G.googleScopes,callerState:G.callerState}};var $od=function(G,e){this.config=G;this.galService=e.getService();this.JSC$19796_galRepository=e.JSC$19814_galRepository};
$od.prototype.getLink=function(G,e){return n6o(this,G,e)};
var n6o=function(G,e,r){return G.JSC$19796_galRepository.getLink({serviceId:e,scopes:void 0,capabilities:void 0,linkName:r}).then(function(Z){return{statusCode:1,link:Z}}).catch(function(Z){return{statusCode:wea(Z.code),
statusMessage:Z.message}})};
$od.prototype.deleteLink=function(G,e){return this.JSC$19796_galRepository.deleteLink(G,this.config.accountLinkingEntryPoint,e).then(function(){return{statusCode:1}}).catch(function(r){return{statusCode:wea(r.code),
statusMessage:r.message}})};
$od.prototype.startLinkingSession=function(G){var e=G.serviceId;var r=G.sessionId;return VVo({serviceId:e,sessionId:r!==void 0?r:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:G.loginHint,callerState:G.callerState,consentLanguageKeys:G.consentLanguageKeys,linkName:G.linkName,dynamicUrlParameters:G.dynamicUrlParameters,partnerConfigMinReadTimestamp:G.partnerConfigMinReadTimestamp})};var CA=function(G,e,r,Z,O,M,T){this.apiKey=e;this.authUser=r;this.oauthToken=Z;this.bucket=O;this.locale=M;this.galSdkEventHandler=T;if(Z===void 0){if(e===void 0)throw Error("yk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new z7a(G)};
CA.prototype.deleteLink=function(G){var e=G.serviceId;var r=G.sessionId;var Z=G.accountLinkingEntryPoint;var O=G.linkName;var M=this,T;return _.D(function(E){var b=(new HB).setHeader(M.getHeader(r));var w=mwW({serviceId:e,linkName:O});b=_.Kj(b,2,w);T=_.K2(b,3,Z);return E.return(M.makeRequest(M.galServiceClient.deleteLink,T,[1,3],[2,4]))})};
var j4Y=function(G,e){var r=e.serviceId;var Z=e.sessionId;var O=e.dynamicUrlParameters;var M=e.redirectState;var T=e.consentLanguageKeys;var E=e.partnerConfigMinReadTimestamp;var b;return _.D(function(w){var q=(new on).setHeader(G.getHeader(Z,O));q=_.sz(q,2,r);b=_.sz(q,4,M);T!==void 0&&_.sz(b,5,T);E!==void 0&&_.Kj(b,6,E);return w.return(G.makeRequest(G.galServiceClient.JSC$19682_finishOAuth,b,[1,3],[2,4]))})};
CA.prototype.getLink=function(G){var e=G.serviceId;var r=G.sessionId;var Z=G.scopes;var O=G.capabilities;var M=G.consistencyKey;var T=G.linkName;var E=this,b;return _.D(function(w){var q=(new sC).setHeader(E.getHeader(r)),t=mwW({serviceId:e,scopes:Z,capabilities:O,linkName:T});b=_.Kj(q,2,t);M!==void 0&&(q=JQl(),q=_.sz(q,2,M),_.Kj(b,3,q));return w.return(E.makeRequest(E.galServiceClient.getLink,b,[1,3],[2,4]))})};
var G_W=function(G,e){var r=e.serviceId;var Z=e.sessionId;var O=e.googleScopes;var M=e.consistencyKey;var T;return _.D(function(E){var b=(new da).setHeader(G.getHeader(Z));b=_.sz(b,2,r);var w=Array.from(O.values());b=_.Gq(b,3,w,_.R8);w=JQl();w=_.sz(w,2,M);T=_.Kj(b,4,w);return E.return(G.makeRequest(G.galServiceClient.JSC$19682_depositGoogleCredential,T,[1,3],[2,4]))})};
CA.prototype.startLinkingSession=function(G){var e=G.serviceId;var r=G.sessionId;var Z=G.scopes;var O=G.capabilities;var M=G.loginHint;var T=G.supportedFlows;var E=G.completionUrl;var b=G.usePingPong;var w=G.twoWayLinking;var q=G.accountLinkingEntryPoint;var t=G.callerState;var g=G.consentLanguageKeys;var l=G.googleScopes;var X=G.dataUsageNoticeConfig;var H=G.linkName;var I=G.dynamicUrlParameters;var C=G.partnerConfigMinReadTimestamp;var u=this,P,F;return _.D(function(J){if(O!==void 0&&Z!==void 0)throw Error("uk");
var U=(new iVC).setHeader(u.getHeader(r,I));P=_.sz(U,2,e);H!==void 0&&_.sz(P,14,H);if(O!==void 0){U=P;var e$=Array.from(O.values());_.Gq(U,5,e$,_.R8)}else Z!==void 0&&(U=P,e$=Array.from(Z.values()),_.Gq(U,3,e$,_.R8));E!==void 0&&_.sz(P,6,E);b!==void 0&&_.$y(P,15,b);T!==void 0&&(U=P,e$=Array.from(T.values()),_.Gq(U,4,e$,_.MB));if(w!==void 0){if(w&&(!l||l.size===0))throw Error("zk");_.$y(P,8,w)}q!==void 0&&_.K2(P,9,q);M!==void 0&&_.sz(P,13,M);t!==void 0&&(U=P,e$=(new TextEncoder).encode(t),_.eZ(U,12,
_.Qv(e$,!1),_.sl()));g!==void 0&&_.sz(P,16,g);C!==void 0&&_.Kj(P,18,C);if(X!==void 0&&X.size>0||l!==void 0&&l.size>0)F=new EMm,l!==void 0&&l.size>0&&(U=F,e$=Array.from(l.values()),_.Gq(U,1,e$,_.R8)),X!==void 0&&(X.has(0)&&_.YVS(F,2,_.MB,1,_.VW),X.has(1)&&_.YVS(F,2,_.MB,2,_.VW)),_.Kj(P,17,F);return J.return(u.makeRequest(u.galServiceClient.startLinkingSession,P,[1],[2]))})};
CA.prototype.getMetadata=function(){var G=this,e,r;return _.D(function(Z){e={};G.useFpa?(e["X-Goog-Api-Key"]=G.apiKey,e["X-Goog-AuthUser"]=G.authUser!==void 0?G.authUser.toString():"0",(r=_.$e$([]))&&(e.Authorization=r)):e.Authorization="Bearer "+G.oauthToken;G.locale&&(e["accept-language"]=G.locale);return Z.return(e)})};
CA.prototype.makeRequest=function(G,e,r,Z){var O=this,M;return _.D(function(T){if(T.nextAddress==1)return T.yield(O.getMetadata(),2);M=T.yieldResult;c9m(O,r);return T.return(G.bind(O.galServiceClient)(e,M).finally(function(){c9m(O,Z)}))})};
var c9m=function(G,e){G.galSdkEventHandler!==void 0&&e.forEach(function(r){G.galSdkEventHandler.onEvent(r)})};
CA.prototype.getHeader=function(G,e){var r=new KA;G=_.eZ(r,2,_.TA(G),0);G=_.K2(G,5,3);e=_.Gq(G,8,e,_.R8);this.bucket!==void 0&&_.sz(e,1,this.bucket);return e};
var mwW=function(G){var e=G.serviceId;var r=G.scopes;var Z=G.capabilities;G=G.linkName;if(Z!==void 0&&r!==void 0)throw Error("uk");var O=new AQ2;e=_.sz(O,1,e);Z!==void 0?(r=Array.from(Z.values()),_.Gq(e,5,r,_.R8)):r!==void 0&&(r=Array.from(r.values()),_.Gq(e,3,r,_.R8));G!==void 0&&_.sz(e,6,G);return e};var S2A=function(G){this.galService=new CA(G.alsDomain,G.apiKey,G.authUser,G.oauthToken,G.bucket,G.locale,G.galSdkEventHandler);this.JSC$19814_galRepository=new v68(this.galService)};
S2A.prototype.getService=function(){return this.galService};var Y48=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(Y48,_.Tq);var y9d=function(G){var e=new Y48;return _.qa(e,1,G)};
Y48.prototype.setErrorMessage=function(G){return _.QB(this,2,G)};var A98=[0,_.Ui,_.Yj,_.Ui];var uu=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(uu,_.Tq);var FiW=[0,[1,2,3],_.Bs,[0,_.bdv,_.jp2,-1],_.Bs,[0,O7l,-1],_.FC];var J9A=[0,_.n2,1,_.Ui,_.Yj,-1,1,_.xj,_.p2,_.Ui,-1,FiW];var Bho=[0,_.Ui,[0,_.xj,_.p2,[0,_.Yj]],_.mK,[0,_.Ui,-1]];var vB=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(vB,_.Tq);var xwC=[0,_.Yj,_.Ui,-2,_.n2,_.Ui,_.n2,_.Ui,-2,1,_.mK];var P_2=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(P_2,_.Tq);var UwA=[0,_.n2];var z2m=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(z2m,_.Tq);var WiY=[0,_.Ui,Bho,UwA,xwC,J9A];var PEd=_.tt(z2m,WiY);var Nhl=[0,WyW];var Gim=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(Gim,_.Tq);var Lia=[0,[1,3],h9C,_.Ui,h9C];var iu=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(iu,_.Tq);var GMd=[0,_.Ui];var ejV=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(ejV,_.Tq);var bu=function(G){return _.a$(G,Y48,2,EC)},rOo=function(G){var e=new ejV;
return _.fj(e,2,EC,G)},EC=[1,
2];var Z6W=[0,EC,_.Bs,GMd,_.Bs,A98,_.J3,Lia,1,_.Ui,Nhl];var O6H=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(O6H,_.Tq);var VJB=function(G){var e=new O6H;return _.fj(e,3,MJB,G)},MJB=[2,
3];var hjd=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(hjd,_.Tq);var TQm=function(G,e){return _.Kj(G,2,e)},D8C=function(G,e){return _.Kj(G,8,e)},EA8=function(G,e){return _.Kj(G,3,e)};var i6o=[0,_.Ui,Z6W,WiY,_.Gi,[0,[5,6,7],[0,_.Ui,-2],[0,_.n2,_.Ui,_.Yj],[0,FiW],[0,_.Yj,_.Ui,-1,_.Ll,_.Ui],_.Bs,[0,[0,_.n2],_.Ui,-1],_.Bs,[0,[3,4],_.Ui,-1,_.Bs,[0,[0,_.Ui,_.mK]],_.Bs,[0,[0,[0,[1,2,3],_.Bs,[0],_.Bs,[0],_.Bs,[0]]]]],_.Bs,[0,_.Ui]],_.Gi,-1,[0,MJB,_.Ui,_.Bs,GMd,_.Bs,A98,_.J3,Lia,[0,WyW]]];var b6Y=_.tt(hjd,i6o),vAW=_.lz(i6o);var wVY=function(){_.pB.call(this)};
_.K(wVY,_.pB);wVY.prototype.init=function(){};
new wVY;var $8H=_.Cp(["data-"]),SPm=_.Cp(["aria-"]),qPB=_.Cp(["aria-"]),nA=function(G,e){this.isLatencyMeasurementExperiment=G===void 0?!1:G;this.enableDialogA11yFix=e===void 0?!1:e;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.e$y(_.O_.location.href)},z3d=function(G,e){G.onConsentPrimitiveShownCallback=e},tJ8=function(G,e){return G.overriddenIframeLoadTimeout?G.overriddenIframeLoadTimeout:e!==void 0?e:5E3},Ncm=function(G){if(G.prewarmPromise!==void 0)return G.prewarmPromise;
G.prewarmPromise=new Promise(function(e,r){mR(G,1);gAB(G,lLo(G,!0),Rja(G));G.iframe?G.prewarmChannel||jal(G,G.iframe,e):r(Error("Ak"))});
G.prewarmPromise.finally(function(){G.prewarmPromise=void 0});
return G.prewarmPromise};
nA.prototype.showPrimitive=function(){var G=this;if(this.consentPromise!==void 0)return this.consentPromise;var e=Date.now();aL8(this,e);this.consentPromise=new Promise(function(r,Z){mR(G,0,e);var O=G.isDarkTheme();G.isLatencyMeasurementExperiment||G.initialLoadingStrategy===1||G.initialLoadingStrategy===2||(G.loadingBar||(G.loadingBar=lVV(getComputedStyle(document.body).direction==="rtl",O),G.loadingBar.style.position="fixed",G.loadingBar.style.zIndex="15000"),document.body.appendChild(G.loadingBar));
gAB(G,lLo(G),Rja(G));G.iframe?G.channel||XVl(G,G.iframe,r,Z):(K5a(G),Z(Error("Ak")))});
this.consentPromise.finally(function(){G.consentPromise=void 0});
return this.consentPromise};
var XVl=function(G,e,r,Z){var O,M;_.D(function(T){switch(T.nextAddress){case 1:mR(G,3);O=!1;setTimeout(function(){if(!O){K5a(G);fLm(G);kMm(G);var E=y9d(7).setErrorMessage("Timeout connecting to iframe");r(D8C(TQm(new hjd,rOo(E)),VJB(E)))}},tJ8(G,H6d(G)));
if(!G.prewarmPromise){T.jumpTo(2);break}_.jr(T,3);return T.yield(G.prewarmPromise,5);case 5:_.rL(T,2);break;case 3:_.k5(T),M=y9d(4).setErrorMessage("Error while prewarming."),r(D8C(TQm(new hjd,rOo(M)),VJB(M)));case 2:G.prewarmChannel&&G.prewarmChannel.send(vAW(EA8(new hjd,G.consentPrimitiveRequest))),G.channel=_.L2({destination:G.win,iframe:e,origin:d82(G),channelName:"cpw",onEstablished:function(){O=!0;K5a(G);G.isLatencyMeasurementExperiment||(G.JSC$19843_previousBodyOverflow=document.body.style.overflow,
G.JSC$19843_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,G.JSC$19843_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",G.enableDialogA11yFix&&window.addEventListener("blur",G.focusChangeListener));var E=G.iframe;E.style.bottom="0";E.style.position="fixed";E.style.right="0";E.style.border="none";E.style.left="0";E.style.top=
"0";E.style.zIndex="5000";E.style.pointerEvents="";E.style.visibility="";G.initialLoadingStrategy===2||G.initialLoadingStrategy===3?mR(G,4):mR(G,6);var b;(b=G.onConsentPrimitiveShownCallback)==null||b.call(G)},
onMessage:function(E){E=b6Y(E.data);switch(_.lg(E,1)){case 1:fLm(G);var b=RLd(_.SS(E,_.ln,7));b&&(G.initialLoadingStrategy!==2&&G.initialLoadingStrategy!==3||mR(G,6,b),mR(G,5,b));if(b=RLd(_.SS(E,_.ln,6)))mR(G,7,b),mR(G,8);var w,q;((w=_.SS(E,ejV,2))==null?void 0:_.ig(w,EC))!==0&&((q=_.SS(E,O6H,8))==null?void 0:_.ig(q,MJB))!==0||Z(Error("Bk"));r(E);break;case 2:kMm(G)}}}),_.HL(T)}})},jal=function(G,e,r){G.prewarmChannel=_.L2({destination:G.win,
iframe:e,origin:d82(G),channelName:"pwcp",onEstablished:function(){mR(G,2);r()}})},d82=function(G){var e=_.Qt(G.src).toString();
return e&&e.indexOf("://")<0&&e.indexOf("//")!==0?G.origin:_.e$y(e)},lLo=function(G,e){e=e===void 0?!1:e;
var r,Z=new Map([["origin",G.origin],["hl",(r=oAd(G))!=null?r:null]]);e&&Z.set("pw","1");e=_.h([["cpr",G.consentPrimitiveRequest.serialize()]]);for(r=e.next();!r.done;r=e.next()){var O=_.h(r.value);r=O.next().value;O=O.next().value;Z.set(r,O)}G.isDarkTheme()&&Z.set("color_scheme","dark");return _.tx(G.src,Z)},K5a=function(G){G.isLatencyMeasurementExperiment||G.loadingBar&&document.body.removeChild(G.loadingBar)};
nA.prototype.getSrc=function(){var G=_.TG(this.origin),e;var r=(e=_.SS(this.consentPrimitiveRequest,P_2,3))==null?void 0:_.vp(e,1);e="consent.google.com";r=r?"/u/"+encodeURIComponent(r.toString()):"";(G==null?0:G.endsWith("youtube.com"))?e="consent.youtube.com":(G=G==null?void 0:G.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(e="consent.google."+((G[1]?"co.":"")+encodeURIComponent(G[2])));return _.sk("https://"+e+"/signedin"+r+"/landing")};
var gAB=function(G,e,r){G.iframe||(G.iframe=document.createElement("iframe"),G.iframe.style.width="100%",G.iframe.style.height="100%",r!==112496729&&(G.iframe.style.colorScheme="auto"),G.isLatencyMeasurementExperiment&&(G.iframe.style.display="none"),_.Ge(G.iframe,e),G.iframe.setAttribute("jsname","C5o1O"),sa2(G.iframe),document.body.appendChild(G.iframe))},sa2=function(G){G.style.bottom="-200vh";
G.style.position="fixed";G.style.right="-200vw";G.style.border="";G.style.left="";G.style.top="";G.style.zIndex="";G.style.pointerEvents="none";G.style.visibility="hidden"},fLm=function(G){G.iframe&&(G.isLatencyMeasurementExperiment||(G.JSC$19843_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=G.JSC$19843_previousHtmlOverscroll),G.JSC$19843_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=G.JSC$19843_previousBodyOverscroll),G.JSC$19843_previousBodyOverflow!==
void 0&&(document.body.style.overflow=G.JSC$19843_previousBodyOverflow),G.enableDialogA11yFix&&QaH(G,!1)),sa2(G.iframe))};
nA.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(QaH(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var QaH=function(G,e){var r,Z,O=(r=G.iframe)==null?void 0:(Z=r.parentElement)==null?void 0:Z.children;if(O)for(r=0;r<O.length;r++)Z=O[r],Z!==G.iframe&&(e?(Z.hasAttribute("aria-hidden")&&_.Df([_.wS($8H)],Z,"data-old-aria-hidden",Z.getAttribute("aria-hidden")),_.Df([_.wS(SPm)],Z,"aria-hidden","true")):(Z.removeAttribute("aria-hidden"),Z.hasAttribute("data-old-aria-hidden")&&(_.Df([_.wS(qPB)],Z,"aria-hidden",Z.getAttribute("data-old-aria-hidden")),Z.removeAttribute("data-old-aria-hidden"))))},mR=function(G,
e,r){var Z;
(Z=G.latencyCallback)==null||Z.call(G,{latencyType:e,timestampEpochMillis:r!=null?r:Date.now()})};var ILB=function(G,e,r){nA.call(this,e,r===void 0?!1:r);this.consentPrimitiveRequest=G;G=oAd(this);_.wxY(G);this.src=this.getSrc();var Z;this.initialLoadingStrategy=(Z=_.SS(this.consentPrimitiveRequest,vB,4))==null?void 0:_.lg(Z,4)},pVm;
_.K(ILB,nA);var Uuo=function(G){var e=_.R("enable_primitive_dialog_aria_hide_siblings");G={request:G,enableDialogA11yFix:e===void 0?!1:e};pVm||(pVm=new ILB(G.request,G.isLatencyMeasurementExperiment||_.lg(G.request,1)===2,G.enableDialogA11yFix));return pVm},oAd=function(G){var e;
return(e=_.SS(G.consentPrimitiveRequest,vB,4))==null?void 0:_.gU(e,1)},aL8=function(G,e){if(!_.h3(G.consentPrimitiveRequest,uu,5)){var r=G.consentPrimitiveRequest,Z=new uu;
_.Kj(r,5,Z)}var O;if((O=_.SS(G.consentPrimitiveRequest,uu,5))==null||_.pcs(_.Va(O,8))==null){var M;(M=_.SS(G.consentPrimitiveRequest,uu,5))!=null&&_.ss(M,8,e)}},Rja=function(G){var e;
return(e=_.SS(G.consentPrimitiveRequest,uu,5))==null?void 0:_.vp(e,1)};
ILB.prototype.isDarkTheme=function(){var G;return((G=_.SS(this.consentPrimitiveRequest,vB,4))==null?void 0:_.lg(G,2))===2};
var H6d=function(G){var e;return((e=_.SS(G.consentPrimitiveRequest,vB,4))==null?void 0:_.vp(e,5))||void 0},kMm=function(G){G.channel=void 0;
G.prewarmChannel=void 0;G.iframe&&(document.body.contains(G.iframe)&&document.body.removeChild(G.iframe),G.iframe=void 0);pVm=void 0},LZA=function(G){return nA.prototype.showPrimitive.call(G).then(function(e){return _.SS(e,ejV,2)})};for(var cB={},C9H=(cB[64]="ma",cB[73]="ogb",cB[89]="cr",cB[21]="test",cB[0]="unkn",cB[137]="con",cB[155]="hl",cB[78]="yt",cB[171]="lp",cB[172]="ap",cB[177]="amo",cB[178]="pqe",cB[74]="gg",cB[1]="gm",cB[140]="am",cB[193]="sc",cB),uGA=_.h(Object.keys(C9H)),nAH=uGA.next();!nAH.done;nAH=uGA.next());var m8d=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(m8d,_.Tq);var cOV=[0,[2,3,4],_.Ui,Z7a,h9C,_.FC];var YPm=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(YPm,_.Tq);var yOY=_.tt(YPm,[0,_.zB,_.Yj,_.Ui,_.Yj,_.Ui,cOV]);var AOm=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(AOm,_.Tq);AOm.prototype.getCommand=function(){return _.lg(this,1)};
var F52=function(){var G=new AOm;return _.K2(G,1,0)};var JOV=_.lz([0,_.zB,_.Yj,[0,_.Ui,_.Yj,-1]]);var BQV=new _.S7("s"),x8W=new _.S7("t"),P9a=new _.S7("u"),U8Y=new _.S7("v"),zjl=function(G,e,r){_.qQ.call(this,BQV);this.mediaKey=G;this.photoUrl=e;this.photoSource=r};
_.K(zjl,_.qQ);var W5l=function(){_.qQ.call(this,x8W)};
_.K(W5l,_.qQ);var NQ2=function(G){G=G===void 0?!1:G;_.qQ.call(this,P9a);this.isError=G};
_.K(NQ2,_.qQ);var L58=function(){_.qQ.call(this,U8Y)};
_.K(L58,_.qQ);var G$W=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,OEW=function(G){if(typeof G=="string"){if(G.charAt(0)==".")return ee8(G.substr(1));if(G.charAt(0)=="["){var e=G$W.exec(G);G=G.indexOf("=")==-1?void 0:e[3];return roW(e[1],G)}return ZEl(G)}return G},ee8=function(G){return function(e){return e.getAttribute&&_.yE(e,G)}},roW=function(G,e){return function(r){return e!==void 0?r.getAttribute&&r.getAttribute(G)==e:r.hasAttribute&&r.hasAttribute(G)}},ZEl=function(G){G=G.toUpperCase();
return function(e){return(e=e.tagName)&&e.toUpperCase()==G}},MRd=function(){return!0};var y6=function(G,e){this.JSC$19871_key_=G;this.JSC$19871_value_=e},VRW=function(G){throw Error("Ck`"+G.JSC$19871_key_);
},he8=function(G,e){return new TypeError("Dk`"+e+"`"+G.JSC$19871_key_+"`"+G.JSC$19871_value_+"`"+typeof G.JSC$19871_value_)};
y6.prototype.string=function(G){return arguments.length==0?TqY(this):Dla(this,G)};
var Dla=function(G,e){var r;return(r=Ee2(G))!=null?r:e},TqY=function(G){var e=Ee2(G);
e===null&&VRW(G);return e},Ee2=function(G){var e=G.JSC$19871_value_;
if(e==null)return null;if(typeof e==="string")return e;throw he8(G,"string");};
y6.prototype.bool=function(G){if(arguments.length==0){var e=this.optionalBool();e===null&&VRW(this)}else{var r;e=(r=this.optionalBool())!=null?r:G}return e};
y6.prototype.optionalBool=function(){var G=this.JSC$19871_value_;if(G==null)return null;if(typeof G==="boolean")return G;if(typeof G==="string"){G=G.toLowerCase();if(G==="true"||G==="1")return!0;if(G==="false"||G==="0")return!1}throw he8(this,"boolean");};
y6.prototype.number=function(G){if(arguments.length==0){var e=iE8(this);e===null&&VRW(this)}else e=bEl(this,G);return e};
var bEl=function(G,e){var r;return(r=iE8(G))!=null?r:e},iE8=function(G){var e=G.JSC$19871_value_;
if(e==null)return null;if(typeof e==="number")return e;if(typeof e==="string"){var r=Number(e);if(!isNaN(r)&&(r!==0||e.trim().length!==0))return r}throw he8(G,"number");};
y6.prototype.toString=function(){return TqY(this)};
y6.prototype.enum=function(G,e){var r=!0,Z=void 0,O;for(O in G){var M=G[O];r&&(r=!1,Z=typeof M==="number"?bEl(this,e):Dla(this,e));if(M==Z)return Z}JSON.stringify(G);return Z};
y6.prototype.array=function(G){if(arguments.length==0){var e=veB(this);e===null&&VRW(this);return e}e=veB(this);return e==null?G:e};
var veB=function(G){var e=G.JSC$19871_value_;if(e==null)return null;Array.isArray(e)||(typeof e!=="string"?e=[e]:(e=e.trim(),e=e==""?[]:e.split(",").map(function(r){return r.trim()})));
return wtA(G,e)},wtA=function(G,e){var r=G.JSC$19871_key_+"[";
return Array.from(e,function(Z,O){return new y6(r+O+"]",Z)})};
y6.prototype.object=function(G){var e=this.JSC$19871_value_;if(e==null)return G===void 0&&VRW(this),G;if(typeof e==="object"&&e.constructor===Object){G={};var r=this.JSC$19871_key_+".",Z;for(Z in e)G[Z]=new y6(r+Z,e[Z]);return G}throw he8(this,"object");};var Aj=function(G){this.list_=$lW(G)},$lW=function(G){if(G instanceof Aj)G=G.list_;
else if(G[0]instanceof Aj){for(var e=new Set,r=0;r<G.length;r++)for(var Z=_.h(G[r].list_),O=Z.next();!O.done;O=Z.next())e.add(O.value);G=e}return[].concat(_.mY(G))};
_.V=Aj.prototype;_.V.each=function(G,e,r){((r===void 0?0:r)?mea:_.rR)(this.list_,G,e);return this};
_.V.size=function(){return this.list_.length};
_.V.isEmpty=function(){return this.list_.length===0};
_.V.get=function(G){return this.list_[G]||null};
_.V.el=function(){return this.list_[0]||null};
_.V.map=function(G,e){return _.Yf(this.list_,G,e)};
_.V.equals=function(G){return this===G||_.WA(this.list_,G.list_)};
_.V.first=function(){return this.list_.length==0?null:new Fi(this.list_[0])};
_.V.last=function(){return this.list_.length==0?null:new Fi(this.list_[this.list_.length-1])};
_.V.find=function(G){var e=[];this.each(function(r){r=r.querySelectorAll(String(G));for(var Z=0;Z<r.length;Z++)e.push(r[Z])});
return new Aj(e)};
_.V.parent=function(){var G=[];this.each(function(e){(e=e.parentElement||null)&&!_.Y4(G,e)&&G.push(e)});
return new Aj(G)};
_.V.children=function(){var G=[];this.each(function(e){e=_.QS(e);for(var r=0;r<e.length;r++)G.push(e[r])});
return new Aj(G)};
_.V.filter=function(G){G=_.Pz(this.list_,OEW(G));return new Aj(G)};
_.V.closest=function(G){var e=[],r=OEW(G),Z=function(O){return _.Vx(O)&&r(O)};
this.each(function(O){(O=_.B2(O,Z,!0))&&!_.Y4(e,O)&&e.push(O)});
return new Aj(e)};
_.V.next=function(G){return SIY(this,_.tzP,G)};
_.V.prev=function(G){return SIY(this,Tg2,G)};
var SIY=function(G,e,r){var Z=[];var O=r?OEW(r):MRd;G.each(function(M){(M=e(M))&&O(M)&&Z.push(M)});
return new Aj(Z)};
Aj.prototype.setClass=function(G){return this.each(function(e){_.YV(e,G)})};
var qIV=function(G,e){return G.each(function(r){_.m2(r,e)})},tRA=function(G,e){return G.each(function(r){_.u1(r,e)})};
Aj.prototype.toggleClass=function(G,e){return e===!0?qIV(this,G):e===!1?tRA(this,G):this.each(function(r){_.yE(r,G)?_.u1(r,G):_.m2(r,G)})};
Aj.prototype.setText=function(G){return this.each(function(e){_.Ii(e,G)})};
var geo=function(G){G.each(function(e){e.removeAttribute("aria-hidden")})};
Aj.prototype.getStyle=function(G){if(this.list_.length>0){var e=this.list_[0],r=e.style[_.OW(G)];return typeof r!=="undefined"?r:e.style[_.sPw(e,G)]||""}};
Aj.prototype.getData=function(G){if(this.list_.length===0)return new y6(G,null);var e=Frm(this.list_[0],G);return new y6(G,e)};
Aj.prototype.focus=function(G){try{G?this.el().focus(G):this.el().focus()}catch(e){}return this};
Aj.prototype.click=function(){var G=_.F$(this.el());if(G.createEvent){var e=G.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,G.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(e)}else G=G.createEventObject(),G.clientX=0,G.clientY=0,G.screenX=0,G.screenY=0,G.altKey=!1,G.ctrlKey=!1,G.shiftKey=!1,G.button=0,this.el().fireEvent("onclick",G)};
var Jj=function(G,e,r,Z){function O(E,b,w){var q=b;b&&b.parentNode&&(q=b.cloneNode(!0));E(q,w)}
Z=Z===void 0?!1:Z;if(G.list_.length==1){var M=G.list_[0],T=function(E){return e(E,M)};
r instanceof Aj?r.each(T,void 0,Z):Array.isArray(r)?(Z?mea:_.rR)(r,T):T(r);return G}return G.each(function(E){r instanceof Aj?r.each(function(b){O(e,b,E)}):Array.isArray(r)?_.rR(r,function(b){O(e,b,E)}):O(e,r,E)})};
_.V=Aj.prototype;_.V.append=function(G){return Jj(this,function(e,r){e&&r.appendChild(e)},G)};
_.V.appendTo=function(G){(new Aj([G])).append(this);return this};
_.V.remove=function(){return Jj(this,function(G,e){_.d1(e)},null)};
_.V.empty=function(){return Jj(this,function(G,e){_.dc(e)},null)};
_.V.after=function(G,e){return Jj(this,function(r,Z){r&&_.sg(r,Z)},G,!(e===void 0||e))};
_.V.before=function(G){return Jj(this,function(e,r){e&&_.oi(e,r)},G)};
_.V.replaceWith=function(G){return Jj(this,function(e,r){e&&_.$Kw(e,r)},G)};
_.V.toggle=function(G){return this.each(function(e){_.Z2(e,G)})};
_.V.show=function(){return this.toggle(!0)};
_.V.hide=function(){return this.toggle(!1)};
_.V.trigger=function(G,e,r,Z){return lZ2(this,G,e,r,Z)};
var lZ2=function(G,e,r,Z,O){return G.each(function(M){_.tS4(_.F$(M)).triggerWizEventInternal(M,e,r,Z,O)})},Fi=function(G,e){G instanceof Aj&&(e=G.list_,G=null);
this.list_=$lW(G!=null?[G]:e)};
_.Bz(Fi,Aj);_.V=Fi.prototype;_.V.children=function(){return new Aj(Array.prototype.slice.call(_.QS(this.list_[0])))};
_.V.each=function(G,e){G.call(e,this.list_[0],0);return this};
_.V.size=function(){return 1};
_.V.el=function(){return this.list_[0]};
_.V.first=function(){return this};var BB=function(G,e){e=e===void 0?window:e;this.hostId=G;this.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$19882_previousHtmlOverscroll=this.JSC$19882_previousBodyOverscroll=this.JSC$19882_previousBodyOverflow="";this.eventTarget=new _.j7;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},aZH=function(G){var e=
Reo(Reo(Reo(new jCo(78),"po"),"hppp"),"hhc");
e.authUser=Number(_.xZ("SESSION_INDEX","0"));e.colorScheme=G;return e};
BB.prototype.getOrigin=function(){return this.origin?this.origin:_.eg(_.Gj(_.LY(new _.nO,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
BB.prototype.getTargetOrigin=function(){return _.eg(_.Gj(_.LY(new _.nO,this.scheme),this.domain),this.port)};
BB.prototype.preloadIframe=function(G){var e=this;if(this.iframeLoadPromise===void 0){var r=document.createElement("iframe");this.iframe=r;HWd(r,G);this.iframeLoadPromise=new Promise(function(Z,O){var M=!1,T=function(E){E.stopPropagation();r.removeEventListener("error",T);r.removeEventListener("securitypolicyviolation",T);O(Error("Ek",{cause:E}))};
r.addEventListener("error",T);r.addEventListener("securitypolicyviolation",T);setTimeout(function(){M||O(Error("Fk"))},3E4);
Xta(e,r,function(){M=!0;r.removeEventListener("error",T);r.removeEventListener("securitypolicyviolation",T);Z()})});
KEo(this);G=this.getTargetOrigin().toString();r.setAttribute("allow","camera "+G+"; display-capture "+G);this.parentElement.appendChild(r)}return this.iframeLoadPromise};
var HEW=function(G,e){var r,Z;return _.D(function(O){if(O.nextAddress==1)return r=lVV(getComputedStyle(G.parentElement).direction==="rtl"),G.parentElement.appendChild(r),document.activeElement instanceof HTMLElement&&(G.elementToFocusAfterClose=document.activeElement),_.jr(O,2),O.yield(G.preloadIframe(e),4);if(O.nextAddress!=2){G.parentElement.removeChild(r);G.JSC$19882_previousBodyOverflow=G.parentElement.style.overflow;G.JSC$19882_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
G.JSC$19882_previousBodyOverscroll=G.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";G.parentElement.style.overscrollBehavior="contain";G.parentElement.style.overflow="hidden";var M=G.iframe;M.style.bottom="0";M.style.border="none";M.style.height="100%";M.style.left="0";M.style.position=G.iframePosition;M.style.right="0";M.style.top="0";M.style.width="100%";M.style.zIndex="2202";M.setAttribute("aria-hidden","false");M.setAttribute("aria-modal","true");
G.opened=!0;fZA(G);return _.rL(O,0)}Z=_.k5(O);G.parentElement.removeChild(r);KvH(G.isDarkTheme());k$A(G,!1);throw Error("Gk",{cause:Z});})},k$A=function(G,e){e=e===void 0?!0:e;
G.iframe!==void 0&&(dlY(G),document.documentElement.style.overscrollBehavior=G.JSC$19882_previousHtmlOverscroll,G.parentElement.style.overscrollBehavior=G.JSC$19882_previousBodyOverscroll,G.parentElement.style.overflow=G.JSC$19882_previousBodyOverflow,G.elementToFocusAfterClose!==void 0&&(G.elementToFocusAfterClose.focus(),G.elementToFocusAfterClose=void 0),e?KEo(G):(G.parentElement.removeChild(G.iframe),G.iframe=void 0,G.iframeLoadPromise=void 0,G.mainChannel=void 0),G.opened=!1)},dlY=function(G){G.backgroundElementsAriaHiddenIsNull&&
(geo(G.backgroundElementsAriaHiddenIsNull),G.backgroundElementsAriaHiddenIsNull=void 0);
G.backgroundElementsAriaHiddenIsFalse&&(G.backgroundElementsAriaHiddenIsFalse.each(function(e){e.setAttribute("aria-hidden","false")}),G.backgroundElementsAriaHiddenIsFalse=void 0);
G.backgroundElementsWithoutInert&&(G.backgroundElementsWithoutInert.each(function(e){e.removeAttribute("inert")}),G.backgroundElementsWithoutInert=void 0)},fZA=function(G){G.backgroundElementsAriaHiddenIsNull=(new Fi(G.iframe.parentElement)).children().filter(function(e){return e.getAttribute("aria-hidden")===null&&e!==G.iframe});
G.backgroundElementsAriaHiddenIsNull.each(function(e){e.setAttribute("aria-hidden","true")});
G.backgroundElementsAriaHiddenIsFalse=(new Fi(G.iframe.parentElement)).children().filter(function(e){return e.getAttribute("aria-hidden")==="false"&&e!==G.iframe});
G.backgroundElementsAriaHiddenIsFalse.each(function(e){e.setAttribute("aria-hidden","true")});
G.backgroundElementsWithoutInert=(new Fi(G.iframe.parentElement)).children().filter(function(e){return!e.hasAttribute("inert")&&e!==G.iframe});
G.backgroundElementsWithoutInert.each(function(e){e.setAttribute("inert","true")})},KEo=function(G){G=G.iframe;
G.style.bottom="-1000px";G.style.position="fixed";G.style.right="-1000px";G.style.border="";G.style.height="";G.style.left="";G.style.top="";G.style.width="";G.style.zIndex="";G.setAttribute("aria-hidden","true");G.setAttribute("aria-modal","false")};
BB.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var jCo=function(G,e){BB.call(this,C9H[G],e);this.options=[];this.style=""};
_.K(jCo,BB);var oed=function(G){G.style="youtube";return G},sCo=function(G,e){G.eventTarget.listen(P9a,e);
return G},QCB=function(G,e){G.eventTarget.listen(BQV,e);
return G},Reo=function(G,e){G.options.push(e);
return G},IZA=function(G){var e=[G.getOrigin()];
G.ancestorOrigins&&e.push.apply(e,_.mY(G.ancestorOrigins));var r=new _.nO(G.win.location.href),Z=G.startUrl?G.startUrl:G.options.includes("po")?"profile-picture/art":"profile-picture";e=lS2(_.rd(G.getTargetOrigin(),Z),"origin",e);G.startUrl&&_.eO(e,"startPath",G.startUrl);G.authUser>0&&_.eO(e,"authuser",G.authUser);G.pageId!==void 0&&_.eO(e,"pageId",G.pageId);_.eO(e,"hostId",G.hostId);G.jsMode!==void 0&&_.eO(e,"jsmode",G.jsMode);G.rectangleRatio!==void 0&&_.eO(e,"rectangleRatio",G.rectangleRatio);
G.options.length>0&&_.eO(e,"opts",G.options.join(","));try{for(var O=_.h(["utm_source","utm_medium","utm_campaign","utm_content"]),M=O.next();!M.done;M=O.next()){var T=M.value;_.Gy(r,T)&&_.eO(e,T,_.Gy(r,T))}var E,b=(E=G.hl)!=null?E:_.Gy(r,"hl");b!==void 0&&_.eO(e,"hl",b)}catch(w){if(!(w instanceof URIError))throw w;}G.colorScheme&&_.eO(e,"theme",G.colorScheme);G.style&&_.eO(e,"style",G.style);return e},ptC=function(G,e){G.mainChannel=_.L2({destination:G.win,
iframe:e,origin:G.getTargetOrigin().toString(),channelName:"ow",onMessage:function(r){r=yOY(r.data);if(e===G.iframe)switch(_.lg(r,1)){case 1:G.eventTarget.dispatchEvent(new NQ2);k$A(G);break;case 2:G.eventTarget.dispatchEvent(new zjl(_.gU(r,4),_.gU(r,2),_.lg(r,5),_.SS(r,m8d,6)));break;case 0:var Z;G.eventTarget.dispatchEvent(new W5l(_.gU(r,2),(Z=_.lg(r,3))!=null?Z:0));break;case 3:G.eventTarget.dispatchEvent(new NQ2(!0));k$A(G,!1);break;case 4:G.eventTarget.dispatchEvent(new L58)}}})},Xta=function(G,
e,r){_.L2({destination:G.win,
iframe:e,origin:_.eg(_.Gj(_.LY(new _.nO,G.scheme),G.domain),G.port).toString(),channelName:"owi",onMessage:function(Z){e===G.iframe&&(r!==void 0&&r(),ptC(G,e),G.opened&&G.mainChannel.send(JOV(F52())),Z.reply(),Xta(G,e))}})};
jCo.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?BB.prototype.preloadIframe.call(this,IZA(this).toString()):this.iframeLoadPromise};
jCo.prototype.openPicker=function(G){var e=this;return _.D(function(r){if(r.nextAddress==1)return e.startUrl=G?G:e.options.includes("po")?"profile-picture/art":"profile-picture",r.yield(HEW(e,IZA(e).toString()),2);if(e.mainChannel){var Z=e.mainChannel,O=Z.send;var M=F52();M=_.QB(M,2,e.startUrl);O.call(Z,JOV(M))}_.HL(r)})};var CJ2=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(CJ2,_.Tq);_.V=CJ2.prototype;_.V.getSize=function(){return Rn(this,1)};
_.V.setSize=function(G){return _.XC(this,1,G)};
_.V.getWidth=function(){return Rn(this,12)};
_.V.getHeight=function(){return Rn(this,13)};
_.V.setCenterCrop=function(G){return _.qM(this,20,G)};
_.V.getHtml=function(){return _.Sc(this,4)};
_.V.getToken=function(){return _.kW(this,24)};
_.V.setToken=function(G){return _.QB(this,24,G)};
_.V.getBackgroundColor=function(){return Rn(this,87)};
_.V.hasBackgroundColor=function(){return _.Dl(_.Va(this,87))!=null};
_.V.getStoryboardLevel=function(){return Rn(this,109)};var xT=function(G){this.JSC$19890_value_=void 0;this.childNodes_={};if(G){var e=_.V4W(G);G=_.NQ(G);for(var r=0;r<e.length;r++)this.set(e[r],G[r])}};
xT.prototype.set=function(G,e){urW(this,G,e,!1)};
xT.prototype.add=function(G,e){urW(this,G,e,!0)};
var urW=function(G,e,r,Z){for(var O=0;O<e.length;O++){var M=e.charAt(O);G.childNodes_[M]||(G.childNodes_[M]=new xT);G=G.childNodes_[M]}if(Z&&G.JSC$19890_value_!==void 0)throw Error("Hk`"+e);G.JSC$19890_value_=r},ne8=function(G,e){for(var r=0;r<e.length;r++)if(G=G.childNodes_[e.charAt(r)],!G)return;
return G};
xT.prototype.get=function(G){return(G=ne8(this,G))?G.JSC$19890_value_:void 0};
xT.prototype.getValues=function(){var G=[];mlB(this,G);return G};
var mlB=function(G,e){G.JSC$19890_value_!==void 0&&e.push(G.JSC$19890_value_);for(var r in G.childNodes_)mlB(G.childNodes_[r],e)};
xT.prototype.getKeys=function(G){var e=[];if(G){for(var r=this,Z=0;Z<G.length;Z++){var O=G.charAt(Z);if(!r.childNodes_[O])return[];r=r.childNodes_[O]}coY(r,G,e)}else coY(this,"",e);return e};
var coY=function(G,e,r){G.JSC$19890_value_!==void 0&&r.push(e);for(var Z in G.childNodes_)coY(G.childNodes_[Z],e+Z,r)};
_.V=xT.prototype;_.V.containsKey=function(G){return this.get(G)!==void 0};
_.V.containsValue=function(G){if(this.JSC$19890_value_===G)return!0;for(var e in this.childNodes_)if(this.childNodes_[e].containsValue(G))return!0;return!1};
_.V.clear=function(){this.childNodes_={};this.JSC$19890_value_=void 0};
_.V.remove=function(G){for(var e=this,r=[],Z=0;Z<G.length;Z++){var O=G.charAt(Z);if(!e.childNodes_[O])throw Error("Ik`"+G);r.push([e,O]);e=e.childNodes_[O]}G=e.JSC$19890_value_;for(delete e.JSC$19890_value_;r.length>0;)if(Z=r.pop(),e=Z[0],Z=Z[1],e.childNodes_[Z].isEmpty())delete e.childNodes_[Z];else break;return G};
_.V.clone=function(){return new xT(this)};
_.V.getCount=function(){return b7B(this.getValues())};
_.V.isEmpty=function(){return this.JSC$19890_value_===void 0&&_.c2.isEmpty(this.childNodes_)};var IVV=function(){if(!YIl){var G=YIl=new xT,e;for(e in yod)G.add(e,yod[e])}},YIl,PB=function(G,e){this.types=G;
this.setters=e},yod={a:new PB([3,
0],[function(G,e){_.qM(G,21,e)},
function(G,e){_.XC(G,56,e)}]),
al:new PB([3],[function(G,e){_.qM(G,74,e)}]),
b:new PB([3,0],[function(G,e){_.qM(G,23,e)},
function(G,e){_.XC(G,38,e)}]),
ba:new PB([0],[function(G,e){_.XC(G,85,e)}]),
bc:new PB([0],[function(G,e){_.XC(G,87,e)}]),
br:new PB([0],[function(G,e){_.XC(G,86,e)}]),
c:new PB([3,0],[function(G,e){_.qM(G,2,e)},
function(G,e){_.XC(G,39,e)}]),
cc:new PB([3],[function(G,e){_.qM(G,51,e)}]),
ci:new PB([3],[function(G,e){_.qM(G,32,e)}]),
ckm:new PB([3],[function(G,e){_.qM(G,104,e)}]),
cp:new PB([0],[function(G,e){_.XC(G,92,e)}]),
cr:new PB([3],[function(G,e){_.qM(G,108,e)}]),
cv:new PB([0],[function(G,e){_.XC(G,94,e)}]),
d:new PB([3],[function(G,e){_.qM(G,3,e)}]),
dc:new PB([5],[function(G,e){_.QB(G,99,e)}]),
df:new PB([3],[function(G,e){_.qM(G,80,e)}]),
dv:new PB([3],[function(G,e){_.qM(G,90,e)}]),
e:new PB([0],[function(G,e){_.XC(G,15,e)}]),
em:new PB([0],[function(G,e){_.XC(G,107,e)}]),
f:new PB([4],[function(G,e){_.QB(G,16,e)}]),
fg:new PB([3],[function(G,e){_.qM(G,34,e)}]),
fh:new PB([3],[function(G,e){_.qM(G,30,e)}]),
fm:new PB([3],[function(G,e){_.qM(G,84,e)}]),
fo:new PB([2],[function(G,e){_.t0(G,79,_.Wc(e))}]),
ft:new PB([3],[function(G,e){_.qM(G,50,e)}]),
fv:new PB([3],[function(G,e){_.qM(G,31,e)}]),
g:new PB([3],[function(G,e){_.qM(G,14,e)}]),
gce:new PB([4],[function(G,e){_.QB(G,112,e)}]),
gd:new PB([3],[function(G,e){_.qM(G,83,e)}]),
gm:new PB([3],[function(G,e){_.qM(G,105,e)}]),
h:new PB([3,0],[function(G,e){_.qM(G,4,e)},
function(G,e){_.XC(G,13,e)}]),
i:new PB([3],[function(G,e){_.qM(G,22,e)}]),
ic:new PB([0],[function(G,e){_.XC(G,71,e)}]),
id:new PB([3],[function(G,e){_.qM(G,70,e)}]),
il:new PB([3],[function(G,e){_.qM(G,96,e)}]),
ip:new PB([3],[function(G,e){_.qM(G,54,e)}]),
iv:new PB([0],[function(G,e){_.ss(G,75,e)}]),
j:new PB([1],[function(G,e){e=e==null?e:ysH(e);_.t0(G,29,e)}]),
k:new PB([3,0],[function(G,e){_.qM(G,17,e)},
function(G,e){_.XC(G,42,e)}]),
l:new PB([0],[function(G,e){_.XC(G,44,e)}]),
lf:new PB([3],[function(G,e){_.qM(G,65,e)}]),
lo:new PB([3],[function(G,e){_.qM(G,97,e)}]),
m:new PB([0],[function(G,e){_.XC(G,63,e)}]),
md:new PB([3],[function(G,e){_.qM(G,91,e)}]),
mm:new PB([4],[function(G,e){_.QB(G,81,e)}]),
mo:new PB([3],[function(G,e){_.qM(G,73,e)}]),
mp:new PB([0],[function(G,e){_.XC(G,115,e)}]),
mv:new PB([3],[function(G,e){_.qM(G,66,e)}]),
n:new PB([3],[function(G,e){G.setCenterCrop(e)}]),
nc:new PB([3],[function(G,e){_.qM(G,55,e)}]),
nd:new PB([3],[function(G,e){_.qM(G,53,e)}]),
ng:new PB([3],[function(G,e){_.qM(G,95,e)}]),
ngm:new PB([3],[function(G,e){_.qM(G,106,e)}]),
no:new PB([3],[function(G,e){_.qM(G,37,e)}]),
ns:new PB([3],[function(G,e){_.qM(G,40,e)}]),
nt0:new PB([4],[function(G,e){_.QB(G,36,e)}]),
ntm:new PB([3],[function(G,e){_.qM(G,114,e)}]),
nu:new PB([3],[function(G,e){_.qM(G,46,e)}]),
nw:new PB([3],[function(G,e){_.qM(G,48,e)}]),
o:new PB([1,3],[function(G,e){e=e==null?e:ysH(e);_.t0(G,7,e)},
function(G,e){_.qM(G,27,e)}]),
p:new PB([3,0],[function(G,e){_.qM(G,19,e)},
function(G,e){_.XC(G,43,e)}]),
pa:new PB([3],[function(G,e){_.qM(G,61,e)}]),
pc:new PB([0],[function(G,e){_.XC(G,88,e)}]),
pd:new PB([3],[function(G,e){_.qM(G,60,e)}]),
pf:new PB([3],[function(G,e){_.qM(G,67,e)}]),
pg:new PB([3],[function(G,e){_.qM(G,72,e)}]),
pi:new PB([2],[function(G,e){_.t0(G,76,_.Wc(e))}]),
pp:new PB([3],[function(G,e){_.qM(G,52,e)}]),
pt:new PB([4],[function(G,e){_.QB(G,111,e)}]),
q:new PB([4],[function(G,e){_.QB(G,28,e)}]),
r:new PB([3,0],[function(G,e){_.qM(G,6,e)},
function(G,e){_.XC(G,26,e)}]),
ra:new PB([3],[function(G,e){_.qM(G,103,e)}]),
rf:new PB([3],[function(G,e){_.qM(G,100,e)}]),
rg:new PB([3],[function(G,e){_.qM(G,59,e)}]),
rh:new PB([3],[function(G,e){_.qM(G,49,e)}]),
rj:new PB([3],[function(G,e){_.qM(G,57,e)}]),
ro:new PB([2],[function(G,e){_.t0(G,78,_.Wc(e))}]),
rp:new PB([3],[function(G,e){_.qM(G,58,e)}]),
rw:new PB([3],[function(G,e){_.qM(G,35,e)}]),
rwa:new PB([3],[function(G,e){_.qM(G,64,e)}]),
rwu:new PB([3],[function(G,e){_.qM(G,41,e)}]),
s:new PB([3,0],[function(G,e){_.qM(G,33,e)},
function(G,e){G.setSize(e)}]),
sb:new PB([0],[function(G,e){_.XC(G,110,e)}]),
sc:new PB([0],[function(G,e){_.XC(G,89,e)}]),
sg:new PB([3],[function(G,e){_.qM(G,82,e)}]),
sl:new PB([0],[function(G,e){_.XC(G,109,e)}]),
sm:new PB([3],[function(G,e){_.qM(G,93,e)}]),
t:new PB([4],[function(G,e){G.setToken(e)}]),
tm:new PB([3],[function(G,e){_.qM(G,113,e)}]),
u:new PB([3],[function(G,e){_.qM(G,18,e)}]),
ut:new PB([3],[function(G,e){_.qM(G,45,e)}]),
v:new PB([0],[function(G,e){_.XC(G,62,e)}]),
vb:new PB([0],[function(G,e){_.ss(G,68,e)}]),
vf:new PB([4],[function(G,e){_.QB(G,102,e)}]),
vl:new PB([0],[function(G,e){_.ss(G,69,e)}]),
vm:new PB([3],[function(G,e){_.qM(G,98,e)}]),
w:new PB([0],[function(G,e){_.XC(G,12,e)}]),
x:new PB([0],[function(G,e){_.XC(G,9,e)}]),
y:new PB([0],[function(G,e){_.XC(G,10,e)}]),
ya:new PB([2],[function(G,e){_.t0(G,77,_.Wc(e))}]),
z:new PB([0],[function(G,e){_.XC(G,11,e)}])};
IVV.prototype.parse=function(G){var e=new CJ2,r=new CJ2;if(G=="")G=!0;else{G=G.split("-");for(var Z=!0,O=0;O<G.length;O++){var M=G[O];if(M.length==0)Z=!1;else{var T=M,E=!1;var b=T;var w=T.charAt(0);w!=w.toLowerCase()&&(E=!0,b=T.charAt(0).toLowerCase()+T.substring(1));var q=YIl;for(w=1;w<=b.length;++w){var t=q,g=b.substring(0,w);if(g.length==0?t.isEmpty():!ne8(t,g))break}b=w==1?null:(b=q.get(b.substring(0,w-1)))?{option:T.substring(0,w-1),value:T.substring(w-1),signed:E,attributes:b}:null;if(b){T=
[];E=[];w=!1;for(q=0;q<b.attributes.types.length;q++){t=b.attributes.types[q];var l=b.value;g=O;if(b.signed&&t==1)for(var X=l.length;X<12&&g<G.length-1;)l+="-"+G[g+1],X=l.length,++g;else if(t==2)for(;g<G.length-1&&G[g+1].match(/^[\d\.]/);)l+="-"+G[g+1],++g;X=b.attributes.setters[q];l=Aod(this,t)(b.option,l,e,r,X);if(l===null){w=!0;O=g;break}else T.push(t),E.push(l)}if(!w)for(b=0;b<E.length;b++)q=T[b],l=E[b],FEY(this,q)(M,l);Z=Z&&w}else Z=!1}}G=Z}return new Jol(e,r,G)};
var BqW=function(G,e,r,Z,O,M){O(r,e);G=G.charAt(0);M=M(G==G.toUpperCase());O(Z,M)};
_.V=IVV.prototype;_.V.parseAndSetIntOption_=function(G,e,r,Z,O){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;BqW(G,e,r,Z,O,Number);return null};
_.V.logIntParseError_=function(){};
_.V.parseAndSetFloatOption_=function(G,e,r,Z,O){if(e=="")return 0;var M=Number(e);e=M==0&&_.iF(e)?NaN:M;if(isNaN(e))return 1;BqW(G,e,r,Z,O,Number);return null};
_.V.logFloatParseError_=function(){};
_.V.parseAndSetBoolOption_=function(G,e,r,Z,O){if(e!="")return 2;BqW(G,!0,r,Z,O,Boolean);return null};
_.V.logBoolParseError_=function(){};
_.V.parseAndSetStringOption_=function(G,e,r,Z,O){if(e=="")return 0;BqW(G,e,r,Z,O,function(M){return M?"1":""});
return null};
_.V.logStringParseError_=function(){};
_.V.parseAndSetUint64Base64Option_=function(G,e,r,Z,O){if(e=="")return 0;BqW(G,e,r,Z,O,function(M){return M?1:0});
return null};
var Aod=function(G,e){switch(e){case 0:return(0,_.CB)(G.parseAndSetIntOption_,G);case 2:return(0,_.CB)(G.parseAndSetFloatOption_,G);case 3:return(0,_.CB)(G.parseAndSetBoolOption_,G);case 4:return(0,_.CB)(G.parseAndSetStringOption_,G);case 1:return(0,_.CB)(G.parseAndSetUint64Base64Option_,G);default:return function(){}}},FEY=function(G,e){switch(e){case 0:return(0,_.CB)(G.logIntParseError_,G);
case 2:return(0,_.CB)(G.logFloatParseError_,G);case 3:return(0,_.CB)(G.logBoolParseError_,G);case 4:case 1:return(0,_.CB)(G.logStringParseError_,G);default:return function(){}}},Jol=function(G,e,r){this.valueProto_=G;
this.signatureFlagProto_=e;this.JSC$19902_valid_=r};
Jol.prototype.isValid=function(){return this.JSC$19902_valid_};var doA=function(G){this.JSC$19903_parser_=null;this.JSC$19903_components_=[];this.JSC$19903_parsedOptions_=null;xlm(this,G)},PJm=function(G){G.JSC$19903_parser_==null&&(G.JSC$19903_parser_=new IVV);
return G.JSC$19903_parser_},xlm=function(G,e){G.JSC$19903_parsedOptions_=e?typeof e==="string"?PJm(G).parse(e):e:PJm(G).parse("")},UC=function(G,e){return G==e?!1:!0};
_.V=doA.prototype;_.V.JSC$19905_setCrop=function(G){G=G||void 0;var e=this.JSC$19903_parsedOptions_,r=e.valueProto_;UC(G,_.Sc(r,2),_.Sc(e.signatureFlagProto_,2))&&_.qM(r,2,G);return this};
_.V.JSC$19905_setCircleCrop=function(G){G=G||void 0;var e=this.JSC$19903_parsedOptions_,r=e.valueProto_;UC(G,lu(r,51),lu(e.signatureFlagProto_,51))&&_.qM(r,51,G);return this};
_.V.JSC$19905_setImageCrop=function(G){G=G||void 0;var e=this.JSC$19903_parsedOptions_,r=e.valueProto_;UC(G,lu(r,32),lu(e.signatureFlagProto_,32))&&_.qM(r,32,G);return this};
_.V.JSC$19905_setHeight=function(G){var e=this.JSC$19903_parsedOptions_,r=e.valueProto_;UC(G,r.getHeight(),e.signatureFlagProto_.getHeight())&&_.XC(r,13,G);return this};
_.V.setCenterCrop=function(G){G=G||void 0;var e=this.JSC$19903_parsedOptions_,r=e.valueProto_;UC(G,_.Sc(r,20),_.Sc(e.signatureFlagProto_,20))&&r.setCenterCrop(G);return this};
_.V.JSC$19905_setSmartCrop=function(G){G=G||void 0;var e=this.JSC$19903_parsedOptions_,r=e.valueProto_;UC(G,_.Sc(r,19),_.Sc(e.signatureFlagProto_,19))&&_.qM(r,19,G);return this};
_.V.JSC$19905_setPad=function(G){G=G||void 0;var e=this.JSC$19903_parsedOptions_,r=e.valueProto_;UC(G,lu(r,60),lu(e.signatureFlagProto_,60))&&_.qM(r,60,G);return this};
_.V.JSC$19905_setSmartCropUseFace=function(G){G=G||void 0;var e=this.JSC$19903_parsedOptions_,r=e.valueProto_;UC(G,_.Sc(r,67),_.Sc(e.signatureFlagProto_,67))&&_.qM(r,67,G);return this};
_.V.JSC$19905_setSmartCropNoClip=function(G){G=G||void 0;var e=this.JSC$19903_parsedOptions_,r=e.valueProto_;UC(G,_.Sc(r,52),_.Sc(e.signatureFlagProto_,52))&&_.qM(r,52,G);return this};
_.V.setSize=function(G){var e=this.JSC$19903_parsedOptions_,r=e.valueProto_;UC(G,r.getSize(),e.signatureFlagProto_.getSize())&&r.setSize(G);return this};
_.V.setToken=function(G){G=G||void 0;var e=this.JSC$19903_parsedOptions_,r=e.valueProto_;UC(G,r.getToken(),e.signatureFlagProto_.getToken())&&r.setToken(G);return this};
_.V.JSC$19905_setWidth=function(G){var e=this.JSC$19903_parsedOptions_,r=e.valueProto_;UC(G,r.getWidth(),e.signatureFlagProto_.getWidth())&&_.XC(r,12,G);return this};
_.V.clearOptions=function(){xlm(this,"");return this};
_.V.build=function(){this.JSC$19903_components_.length=0;var G=this.JSC$19903_parsedOptions_,e=G.valueProto_;G=G.signatureFlagProto_;zf(this,"s",e.getSize(),G.getSize());zf(this,"w",e.getWidth(),G.getWidth());WB(this,"c",_.Sc(e,2),_.Sc(G,2));WB(this,"d",_.Sc(e,3),_.Sc(G,3));zf(this,"h",e.getHeight(),G.getHeight());WB(this,"s",lu(e,33),lu(G,33));WB(this,"h",e.getHtml(),G.getHtml());WB(this,"p",_.Sc(e,19),_.Sc(G,19));WB(this,"pp",_.Sc(e,52),_.Sc(G,52));WB(this,"pf",_.Sc(e,67),_.Sc(G,67));WB(this,"n",
_.Sc(e,20),_.Sc(G,20));zf(this,"r",Rn(e,26),Rn(G,26));WB(this,"r",_.Sc(e,6),_.Sc(G,6));WB(this,"o",lu(e,27),lu(G,27));var r=_.wU(e,7,_.M_);Nf(this,"o",r,_.wU(G,7,_.M_));r=_.wU(e,29,_.M_);Nf(this,"j",r,_.wU(G,29,_.M_));zf(this,"x",Rn(e,9),Rn(G,9));zf(this,"y",Rn(e,10),Rn(G,10));zf(this,"z",Rn(e,11),Rn(G,11));WB(this,"g",_.Sc(e,14),_.Sc(G,14));zf(this,"e",Rn(e,15),Rn(G,15));Nf(this,"f",_.kW(e,16),_.kW(G,16));WB(this,"k",lu(e,17),lu(G,17));WB(this,"u",lu(e,18),!0);WB(this,"ut",lu(e,45),!0);WB(this,"i",
lu(e,22),!0);WB(this,"a",lu(e,21),lu(G,21));WB(this,"b",_.Sc(e,23),_.Sc(G,23));zf(this,"b",Rn(e,38),Rn(G,38));zf(this,"c",Rn(e,39),Rn(G,39),16,8);Nf(this,"q",_.kW(e,28),_.kW(G,28));WB(this,"fh",lu(e,30),lu(G,30));WB(this,"fv",lu(e,31),lu(G,31));WB(this,"fg",_.Sc(e,34),_.Sc(G,34));WB(this,"ci",lu(e,32),lu(G,32));Nf(this,"t",e.getToken(),G.getToken());Nf(this,"nt0",_.kW(e,36),_.kW(G,36));WB(this,"rw",_.Sc(e,35),_.Sc(G,35));WB(this,"rwu",_.Sc(e,41),_.Sc(G,41));WB(this,"rwa",_.Sc(e,64),_.Sc(G,64));WB(this,
"nw",_.Sc(e,48),_.Sc(G,48));WB(this,"rh",_.Sc(e,49),_.Sc(G,49));WB(this,"no",_.Sc(e,37),_.Sc(G,37));WB(this,"ns",lu(e,40),lu(G,40));zf(this,"k",Rn(e,42),Rn(G,42));zf(this,"p",Rn(e,43),Rn(G,43));zf(this,"l",Rn(e,44),Rn(G,44));zf(this,"v",Rn(e,62),Rn(G,62));WB(this,"nu",lu(e,46),lu(G,46));WB(this,"ft",lu(e,50),lu(G,50));WB(this,"cc",lu(e,51),lu(G,51));WB(this,"nd",lu(e,53),lu(G,53));WB(this,"ip",lu(e,54),lu(G,54));WB(this,"nc",lu(e,55),lu(G,55));zf(this,"a",Rn(e,56),Rn(G,56));WB(this,"rj",lu(e,57),
lu(G,57));WB(this,"rp",lu(e,58),lu(G,58));WB(this,"rg",lu(e,59),lu(G,59));WB(this,"pd",lu(e,60),lu(G,60));WB(this,"pa",lu(e,61),lu(G,61));zf(this,"m",Rn(e,63),Rn(G,63));zf(this,"vb",jA(e,68),jA(G,68));zf(this,"vl",jA(e,69),jA(G,69));WB(this,"lf",lu(e,65),lu(G,65));WB(this,"mv",lu(e,66),lu(G,66));WB(this,"id",lu(e,70),lu(G,70));zf(this,"ic",Rn(e,71),!0);WB(this,"pg",_.Sc(e,72),_.Sc(G,72));WB(this,"mo",lu(e,73),lu(G,73));WB(this,"al",lu(e,74),lu(G,74));zf(this,"iv",jA(e,75),jA(G,75));zf(this,"pi",an(e,
76),an(G,76));zf(this,"ya",an(e,77),an(G,77));zf(this,"ro",an(e,78),an(G,78));zf(this,"fo",an(e,79),an(G,79));WB(this,"df",lu(e,80),lu(G,80));Nf(this,"mm",_.kW(e,81),_.kW(G,81));WB(this,"sg",lu(e,82),lu(G,82));WB(this,"gd",lu(e,83),lu(G,83));WB(this,"fm",lu(e,84),lu(G,84));zf(this,"ba",Rn(e,85),Rn(G,85));zf(this,"br",Rn(e,86),Rn(G,86));zf(this,"bc",e.getBackgroundColor(),G.getBackgroundColor(),16,8);zf(this,"pc",Rn(e,88),Rn(G,88),16,8);zf(this,"sc",Rn(e,89),Rn(G,89),16,8);WB(this,"dv",lu(e,90),lu(G,
90));WB(this,"md",lu(e,91),lu(G,91));zf(this,"cp",Rn(e,92),Rn(G,92));WB(this,"sm",lu(e,93),lu(G,93));zf(this,"cv",Rn(e,94),Rn(G,94));WB(this,"ng",lu(e,95),lu(G,95));WB(this,"il",lu(e,96),lu(G,96));WB(this,"lo",lu(e,97),lu(G,97));WB(this,"vm",lu(e,98),lu(G,98));Nf(this,"dc",_.kW(e,99),_.kW(G,99));WB(this,"rf",lu(e,100),lu(G,100));Nf(this,"vf",_.kW(e,102),_.kW(G,102));WB(this,"ra",_.Sc(e,103),_.Sc(G,103));WB(this,"ckm",lu(e,104),lu(G,104));WB(this,"gm",lu(e,105),lu(G,105));WB(this,"ngm",lu(e,106),lu(G,
106));zf(this,"em",Rn(e,107),Rn(G,107));WB(this,"cr",lu(e,108),lu(G,108));zf(this,"sl",e.getStoryboardLevel(),G.getStoryboardLevel());zf(this,"sb",Rn(e,110),Rn(G,110));Nf(this,"pt",_.kW(e,111),_.kW(G,111));Nf(this,"gce",_.kW(e,112),_.kW(G,112));WB(this,"tm",lu(e,113),lu(G,113));WB(this,"ntm",lu(e,114),lu(G,114));zf(this,"mp",Rn(e,115),Rn(G,115));return this.JSC$19903_components_.join("-")};
var zf=function(G,e,r,Z,O,M){if(r!=null){var T=O==void 0||O!=10&&O!=16?10:O;r=Number(r).toString(T);O=new Ms8;O.append(T==16?"0x":"");T=O.append;M==void 0?M="":(M-=r.length,M=M<=0?"":(0,_.Zmn)("0",M));T.call(O,M);O.append(r);Ul8(G,e,O.toString(),!!Number(Z))}},WB=function(G,e,r,Z){r&&Ul8(G,e,"",!!Z)},Nf=function(G,e,r,Z){r&&Ul8(G,e,String(r),!!Number(Z))},Ul8=function(G,e,r,Z){Z&&(e=e.charAt(0).toUpperCase()+e.substring(1));
G.JSC$19903_components_.push(e+r)};_.Bz(RX,doA);_.V=RX.prototype;_.V.JSC$19905_setCrop=function(G){G&&LA(this);return RX.superClass_.JSC$19905_setCrop.call(this,G)};
_.V.JSC$19905_setHeight=function(G){G=G==null||G<0?void 0:G;G!=null&&this.setSize();return RX.superClass_.JSC$19905_setHeight.call(this,G)};
_.V.JSC$19905_setImageCrop=function(G){G&&LA(this);return RX.superClass_.JSC$19905_setImageCrop.call(this,G)};
_.V.JSC$19905_setCircleCrop=function(G){G&&LA(this);return RX.superClass_.JSC$19905_setCircleCrop.call(this,G)};
_.V.setSize=function(G){_.PA(G)&&(G=Math.max(G.width,G.height));G=G==null||G<0?void 0:G;G!=null&&(this.JSC$19905_setWidth(),this.JSC$19905_setHeight());return RX.superClass_.setSize.call(this,G)};
_.V.JSC$19905_setSmartCrop=function(G){G&&LA(this);return RX.superClass_.JSC$19905_setSmartCrop.call(this,G)};
_.V.JSC$19905_setSmartCropNoClip=function(G){G&&LA(this);return RX.superClass_.JSC$19905_setSmartCropNoClip.call(this,G)};
_.V.JSC$19905_setSmartCropUseFace=function(G){G&&LA(this);return RX.superClass_.JSC$19905_setSmartCropUseFace.call(this,G)};
_.V.setCenterCrop=function(G){G&&LA(this);return RX.superClass_.setCenterCrop.call(this,G)};
_.V.JSC$19905_setPad=function(G){G&&LA(this);return RX.superClass_.JSC$19905_setPad.call(this,G)};
_.V.JSC$19905_setWidth=function(G){G=G==null||G<0?void 0:G;G!=null&&this.setSize();return RX.superClass_.JSC$19905_setWidth.call(this,G)};
var zeH=function(G){G.clearOptions();var e=G.JSC$19903_parsedOptions_,r=e.valueProto_;UC(!0,_.Sc(r,3),_.Sc(e.signatureFlagProto_,3))&&_.qM(r,3,!0);return G},LA=function(G){G.setCenterCrop();
G.JSC$19905_setCircleCrop();G.JSC$19905_setCrop();G.JSC$19905_setImageCrop();G.JSC$19905_setPad();G.JSC$19905_setSmartCrop();G.JSC$19905_setSmartCropNoClip();G.JSC$19905_setSmartCropUseFace()};
RX.prototype.build=function(){var G=this.JSC$19903_parsedOptions_.valueProto_;lu(G,18)||lu(G,45)?G.getSize()||this.setSize(0):(G=this.JSC$19903_parsedOptions_.valueProto_,G.getSize()||G.getWidth()||G.getHeight()||(this.setSize(),this.JSC$19905_setHeight(),this.JSC$19905_setWidth(),LA(this)));return RX.superClass_.build.call(this)};var WEB=/^[^\/]*\/\//,Nq8=function(G,e){e=e===void 0?!1:e;this.original_=G;this.originalPrefix_="";(G=this.original_.match(WEB))&&G[0]?(this.originalPrefix_=G[0],G=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):G="http://"+this.original_;this.uri_=_.LB(G,!0);this.isFreeformUrl_=e;this.JSC$19909_valid_=!0;this.obfuscated_=!1},LEW=function(G,e){G.JSC$19911_pathPrefix_=G.JSC$19911_pathPrefix_?G.JSC$19911_pathPrefix_+("/"+e):e},GY=function(G){if(G.JSC$19911_components_==
void 0){var e=G.uri_.getPath().substring(1);
G.JSC$19911_pathPrefix_=null;if(G.isFreeformUrl_){G.JSC$19911_components_=[];if((e.match(/=/g)||[]).length>1)return G.JSC$19909_valid_=!1,G.JSC$19911_components_;var r=e.indexOf("=");r!=-1?(G.JSC$19911_components_.push(e.substr(0,r)),G.JSC$19911_components_.push(e.substr(r+1))):G.JSC$19911_components_.push(e);return G.JSC$19911_components_}G.JSC$19911_components_=e.split("/");e=G.JSC$19911_components_.length;e>2&&G.JSC$19911_components_[0]=="u"&&(LEW(G,G.JSC$19911_components_[0]+"/"+G.JSC$19911_components_[1]),
G.JSC$19911_components_.shift(),G.JSC$19911_components_.shift(),e-=2);if(e==0||e==4||e>7)return G.JSC$19909_valid_=!1,G.JSC$19911_components_;if(e==2)LEW(G,G.JSC$19911_components_[0]);else if(G.JSC$19911_components_[0]=="image")LEW(G,G.JSC$19911_components_[0]);else if(e==7||e==3)return G.JSC$19909_valid_=!1,G.JSC$19911_components_;if(e<=3){G.obfuscated_=!0;e==3&&(LEW(G,G.JSC$19911_components_[1]),G.JSC$19911_components_.shift(),--e);--e;r=G.JSC$19911_components_[e];var Z=r.indexOf("=");Z!=-1&&(G.JSC$19911_components_[e]=
r.substr(0,Z),G.JSC$19911_components_.push(r.substr(Z+1)))}}return G.JSC$19911_components_};
Nq8.prototype.isValid=function(){GY(this);return this.JSC$19909_valid_};
Nq8.prototype.isObfuscated=function(){GY(this);return this.obfuscated_};
var GtB=function(G){GY(G);return G.isFreeformUrl_},ey=function(G){GY(G);
G.JSC$19911_pathPrefix_==void 0&&(G.JSC$19911_pathPrefix_=null);return G.JSC$19911_pathPrefix_},eJo=function(G){switch(GY(G).length){case 7:return!0;
case 6:return ey(G)==null;case 5:return!1;case 3:return!0;case 2:return ey(G)==null;case 1:return!1;default:return!1}},rO=function(G,e){if(GtB(G))a:{switch(e){case 7:e=0;
break;case 4:if(!eJo(G)){G=null;break a}e=1;break;default:G=null;break a}G=GY(G)[e]}else if(G.isObfuscated())a:{var r=ey(G)!=null?1:0;switch(e){case 6:e=r;break;case 4:if(!eJo(G)){G=null;break a}e=1+r;break;default:G=null;break a}G=GY(G)[e]}else a:{r=ey(G)!=null?1:0;switch(e){case 0:e=r;break;case 1:e=1+r;break;case 2:e=2+r;break;case 3:e=3+r;break;case 4:if(!eJo(G)){G=null;break a}e=4+r;break;case 5:e=eJo(G)?1:0;e=4+r+e;break;default:G=null;break a}G=GY(G)[e]}return G};
Nq8.prototype.getOptions=function(){this.options_==void 0&&(this.options_=rO(this,4));return this.options_};var QHo=function(){};
QHo.prototype.parse=function(G,e){return new obH(G,e===void 0?!1:e)};
var obH=function(G,e){Nq8.call(this,G,e===void 0?!1:e)};
_.K(obH,Nq8);_.Bz(jx,RX);var sHo;jx.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
jx.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var G=jx.superClass_.build.call(this),e=[];ey(this.parsedImageUrl_)!=null&&e.push(ey(this.parsedImageUrl_));var r=GtB(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var Z=this.parsedImageUrl_;Z.obfuscatedData_==void 0&&(Z.obfuscatedData_=rO(Z,6));e.push(Z.obfuscatedData_+(G?"="+G:""))}else if(r){Z=e.push;var O=this.parsedImageUrl_;O.freeformUrlPath_===void 0&&(O.freeformUrlPath_=rO(O,
7));Z.call(e,O.freeformUrlPath_);G&&e.push(G)}else Z=e.push,O=this.parsedImageUrl_,O.obfuscatedGaiaId_==void 0&&(O.obfuscatedGaiaId_=rO(O,0)),Z.call(e,O.obfuscatedGaiaId_),Z=e.push,O=this.parsedImageUrl_,O.photoId_==void 0&&(O.photoId_=rO(O,1)),Z.call(e,O.photoId_),Z=e.push,O=this.parsedImageUrl_,O.imageVersion_==void 0&&(O.imageVersion_=rO(O,2)),Z.call(e,O.imageVersion_),Z=e.push,O=this.parsedImageUrl_,O.signature_==void 0&&(O.signature_=rO(O,3)),Z.call(e,O.signature_),G&&e.push(G),G=e.push,Z=this.parsedImageUrl_,
Z.filename_==void 0&&(Z.filename_=rO(Z,5)),G.call(e,Z.filename_);e=r?e.join("="):e.join("/");e=_.LB(this.protocolPrefix_+this.JSC$19917_domain_+"/"+e+(this.JSC$19917_query_?"?"+this.JSC$19917_query_:"")).toString();e.startsWith("%3a//")&&(e=e.replace("%3a//","://"));return e};var rLV=_.Cp(["viewBox"]),Zhd=_.Cp(["width"]),OhW=_.Cp(["height"]),MX8=_.Cp(["fill"]),VXC=_.Cp(["id"]),hJd=_.Cp(["x"]),TkV=_.Cp(["y"]);pea.prototype.getLength=function(){return this.parsedData.length};
pea.prototype.write=function(G){for(var e=0,r=this.parsedData.length;e<r;e++)G.put(this.parsedData[e],8)};
var yIW=function(G,e){var r=new pea(e);G.dataList.push(r);r=G.errorCorrectLevel;var Z=1,O=encodeURI(e).toString().replace(/%[0-9a-fA-F]{2}/g,"a");e=O.length+(O.length!=e?3:0);O=0;for(var M=ZN.length;O<=M;O++){var T=0;switch(r){case 1:T=ZN[O][0];break;case 0:T=ZN[O][1];break;case 3:T=ZN[O][2];break;case 2:T=ZN[O][3]}if(e<=T)break;else Z++}if(Z>ZN.length)throw Error("Rk");G.typeNumber=Z;G.dataCache=null};
CtW.prototype.isDark=function(G,e){if(G<0||this.moduleCount<=G||e<0||this.moduleCount<=e)throw Error("Jk`"+G+"`"+e);return this.modules[G][e]};
for(var AIm=function(G,e,r){G.moduleCount=G.typeNumber*4+17;G.modules=Array(G.moduleCount);for(var Z=0;Z<G.moduleCount;Z++){G.modules[Z]=Array(G.moduleCount);for(var O=0;O<G.moduleCount;O++)G.modules[Z][O]=null}D6H(G,0,0);D6H(G,G.moduleCount-7,0);D6H(G,0,G.moduleCount-7);Z=EB8[G.typeNumber-1];for(O=0;O<Z.length;O++)for(var M=0;M<Z.length;M++){var T=Z[O],E=Z[M];if(G.modules[T][E]==null)for(var b=-2;b<=2;b++)for(var w=-2;w<=2;w++)G.modules[T+b][E+w]=b==-2||b==2||w==-2||w==2||b==0&&w==0?!0:!1}for(Z=
8;Z<G.moduleCount-8;Z++)G.modules[Z][6]==null&&(G.modules[Z][6]=Z%2==0);for(Z=8;Z<G.moduleCount-8;Z++)G.modules[6][Z]==null&&(G.modules[6][Z]=Z%2==0);Z=G.errorCorrectLevel<<3|r;for(O=Z<<10;OG(O)-OG(1335)>=0;)O^=1335<<OG(O)-OG(1335);Z=(Z<<10|O)^21522;for(O=0;O<15;O++)M=!e&&(Z>>O&1)==1,O<6?G.modules[O][8]=M:O<8?G.modules[O+1][8]=M:G.modules[G.moduleCount-15+O][8]=M;for(O=0;O<15;O++)M=!e&&(Z>>O&1)==1,O<8?G.modules[8][G.moduleCount-O-1]=M:O<9?G.modules[8][15-O-1+1]=M:G.modules[8][15-O-1]=M;G.modules[G.moduleCount-
8][8]=!e;if(G.typeNumber>=7){Z=G.typeNumber;for(O=Z<<12;OG(O)-OG(7973)>=0;)O^=7973<<OG(O)-OG(7973);Z=Z<<12|O;for(O=0;O<18;O++)M=!e&&(Z>>O&1)==1,G.modules[Math.floor(O/3)][O%3+G.moduleCount-8-3]=M;for(O=0;O<18;O++)M=!e&&(Z>>O&1)==1,G.modules[O%3+G.moduleCount-8-3][Math.floor(O/3)]=M}if(G.dataCache==null){O=G.typeNumber;M=G.dataList;e=G.errorCorrectLevel;Z=ih8(O,e);if(Z==void 0)throw Error("Qk`"+O+"`"+e);T=Z.length/3;e=[];for(E=0;E<T;E++){b=Z[E*3];w=Z[E*3+1];for(var q=Z[E*3+2],t=0;t<b;t++)e.push(new uK2(w,
q))}Z=new nbH;for(T=0;T<M.length;T++)E=M[T],Z.put(E.mode,4),Z.put(E.getLength(),bhl(E.mode,O)),E.write(Z);for(T=O=0;T<e.length;T++)O+=e[T].dataCount;if(Z.length>O*8)throw Error("Kk`"+Z.length+"`"+O*8);for(Z.length+4<=O*8&&Z.put(0,4);Z.length%8!=0;)vBC(Z,!1);for(;!(Z.length>=O*8);){Z.put(236,8);if(Z.length>=O*8)break;Z.put(17,8)}M=O=w=0;T=Array(e.length);E=Array(e.length);for(b=0;b<e.length;b++){t=e[b].dataCount;var g=e[b].totalCount-t;O=Math.max(O,t);M=Math.max(M,g);T[b]=Array(t);for(q=0;q<T[b].length;q++)T[b][q]=
255&Z.buffer[q+w];w+=t;q=g;t=new aX([1],0);for(g=0;g<q;g++)t=t.multiply(new aX([1,wha(g)],0));q=t;t=(new aX(T[b],q.getLength()-1)).mod(q);E[b]=Array(q.getLength()-1);for(q=0;q<E[b].length;q++)g=q+t.getLength()-E[b].length,E[b][q]=g>=0?t.get(g):0}for(q=Z=0;q<e.length;q++)Z+=e[q].totalCount;Z=Array(Z);for(q=w=0;q<O;q++)for(b=0;b<e.length;b++)q<T[b].length&&(Z[w++]=T[b][q]);for(q=0;q<M;q++)for(b=0;b<e.length;b++)q<E[b].length&&(Z[w++]=E[b][q]);G.dataCache=Z}e=G.dataCache;Z=-1;O=G.moduleCount-1;M=7;T=
0;for(E=G.moduleCount-1;E>0;E-=2)for(E==6&&E--;;){for(b=0;b<2;b++)G.modules[O][E-b]==null&&(w=!1,T<e.length&&(w=(e[T]>>>M&1)==1),$6o(r,O,E-b)&&(w=!w),G.modules[O][E-b]=w,M--,M==-1&&(T++,M=7));O+=Z;if(O<0||G.moduleCount<=O){O-=Z;Z=-Z;break}}},D6H=function(G,e,r){for(var Z=-1;Z<=7;Z++)if(!(e+Z<=-1||G.moduleCount<=e+Z))for(var O=-1;O<=7;O++)r+O<=-1||G.moduleCount<=r+O||(G.modules[e+Z][r+O]=0<=Z&&Z<=6&&(O==0||O==6)||0<=O&&O<=6&&(Z==0||Z==6)||2<=Z&&Z<=4&&2<=O&&O<=4?!0:!1)},FvH=function(G){for(var e=0,
r=0,Z=0;Z<8;Z++){AIm(G,!0,Z);
var O=G;for(var M=O.moduleCount,T=0,E=0;E<M;E++)for(var b=0;b<M;b++){for(var w=0,q=O.isDark(E,b),t=-1;t<=1;t++)if(!(E+t<0||M<=E+t))for(var g=-1;g<=1;g++)b+g<0||M<=b+g||(t!=0||g!=0)&&q==O.isDark(E+t,b+g)&&w++;w>5&&(T+=3+w-5)}for(E=0;E<M-1;E++)for(b=0;b<M-1;b++)if(w=0,O.isDark(E,b)&&w++,O.isDark(E+1,b)&&w++,O.isDark(E,b+1)&&w++,O.isDark(E+1,b+1)&&w++,w==0||w==4)T+=3;for(E=0;E<M;E++)for(b=0;b<M-6;b++)O.isDark(E,b)&&!O.isDark(E,b+1)&&O.isDark(E,b+2)&&O.isDark(E,b+3)&&O.isDark(E,b+4)&&!O.isDark(E,b+5)&&
O.isDark(E,b+6)&&(T+=40);for(b=0;b<M;b++)for(E=0;E<M-6;E++)O.isDark(E,b)&&!O.isDark(E+1,b)&&O.isDark(E+2,b)&&O.isDark(E+3,b)&&O.isDark(E+4,b)&&!O.isDark(E+5,b)&&O.isDark(E+6,b)&&(T+=40);for(b=w=0;b<M;b++)for(E=0;E<M;E++)O.isDark(E,b)&&w++;O=T+=Math.abs(100*w/M/M-50)/5*10;if(Z==0||e>O)e=O,r=Z}return r},EB8=[[],
[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]],OG=function(G){for(var e=0;G!=0;)e++,G>>>=1;return e},$6o=function(G,e,r){switch(G){case 0:return(e+r)%2==0;
case 1:return e%2==0;case 2:return r%3==0;case 3:return(e+r)%3==0;case 4:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case 5:return e*r%2+e*r%3==0;case 6:return(e*r%2+e*r%3)%2==0;case 7:return(e*r%3+(e+r)%2)%2==0;default:throw Error("Lk`"+G);}},bhl=function(G,e){if(1<=e&&e<10)switch(G){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Mk`"+G);}else if(e<27)switch(G){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Mk`"+G);}else if(e<41)switch(G){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Mk`"+G);}else throw Error("Nk`"+e);},qZd=function(G){if(G<1)throw Error("Ok`"+G);
return SZV[G]},wha=function(G){for(;G<0;)G+=255;
for(;G>=256;)G-=255;return ML[G]},ML=Array(256),SZV=Array(256),tXa=0;tXa<8;tXa++)ML[tXa]=1<<tXa;
for(var V0=8;V0<256;V0++)ML[V0]=ML[V0-4]^ML[V0-5]^ML[V0-6]^ML[V0-8];for(var gBW=0;gBW<255;gBW++)SZV[ML[gBW]]=gBW;aX.prototype.get=function(G){return this.num[G]};
aX.prototype.getLength=function(){return this.num.length};
aX.prototype.multiply=function(G){for(var e=Array(this.getLength()+G.getLength()-1),r=0;r<this.getLength();r++)for(var Z=0;Z<G.getLength();Z++)e[r+Z]^=wha(qZd(this.get(r))+qZd(G.get(Z)));return new aX(e,0)};
aX.prototype.mod=function(G){if(this.getLength()-G.getLength()<0)return this;for(var e=qZd(this.get(0))-qZd(G.get(0)),r=Array(this.getLength()),Z=0;Z<this.getLength();Z++)r[Z]=this.get(Z);for(Z=0;Z<G.getLength();Z++)r[Z]^=wha(qZd(G.get(Z))+e);return(new aX(r,0)).mod(G)};
var l7W=[[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]],ih8=function(G,e){switch(e){case 1:return l7W[(G-1)*4];case 0:return l7W[(G-1)*4+1];case 3:return l7W[(G-1)*4+2];case 2:return l7W[(G-1)*4+3]}};
nbH.prototype.get=function(G){return(this.buffer[Math.floor(G/8)]>>>7-G%8&1)==1};
nbH.prototype.put=function(G,e){for(var r=0;r<e;r++)vBC(this,(G>>>e-r-1&1)==1)};
var vBC=function(G,e){var r=Math.floor(G.length/8);G.buffer.length<=r&&G.buffer.push(0);e&&(G.buffer[r]|=128>>>G.length%8);G.length++},ZN=[[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]],Y28=function(){var G=function(e,r){this.JSC$19937__el=e;this.JSC$19937__htOption=r};
G.prototype.draw=function(e){function r(q,t){q=document.createElementNS("http://www.w3.org/2000/svg",q);for(var g in t)t.hasOwnProperty(g)&&(g==="href"?_.jB2(q,t[g]):_.Df([_.wS(rLV),_.wS(Zhd),_.wS(OhW),_.wS(MX8),_.wS(VXC),_.wS(hJd),_.wS(TkV)],q,g,t[g]));return q}
var Z=this.JSC$19937__htOption,O=this.JSC$19937__el,M=e.moduleCount;this.clear();var T=r("svg",{viewBox:"0 0 "+String(M)+" "+String(M),width:"100%",height:"100%",fill:Z.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});O.appendChild(T);T.appendChild(r("rect",{fill:Z.colorLight,width:"100%",height:"100%"}));T.appendChild(r("rect",{fill:Z.colorDark,width:"1",height:"1",id:"template"}));for(var E=0;E<M;E++)for(var b=0;b<M;b++)if(e.isDark(E,b)){var w=r("use",{x:String(E),y:String(b),href:"#template"});
T.appendChild(w)}};
G.prototype.clear=function(){for(;this.JSC$19937__el.hasChildNodes();)this.JSC$19937__el.removeChild(this.JSC$19937__el.lastChild)};
return G}(),cIW=document.documentElement.tagName.toLowerCase()==="svg"?Y28:typeof CanvasRenderingContext2D!="undefined"?function(){var G=function(e,r){this._bIsPainted=!1;
mo8();this.JSC$19937__htOption=r;this._elCanvas=document.createElement("canvas");this._elCanvas.width=r.width;this._elCanvas.height=r.height;e.appendChild(this._elCanvas);this.JSC$19937__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$19937__el.appendChild(this._elImage);this._bSupportDataURI=null};
G.prototype._onMakeImage=function(){var e=this._elCanvas.toDataURL("image/png");this._elImage.src=e;this._elImage.style.display="block";this._elCanvas.style.display="none"};
G.prototype._safeSetDataURI=function(e,r){var Z=this;Z._fFail=r;Z._fSuccess=e;Z._bSupportDataURI===null?(e=_.Hp("IMG"),r=function(){Z._bSupportDataURI=!1;Z._fFail&&Z._fFail.call(Z)},e.onabort=r,e.onerror=r,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)};
G.prototype.draw=function(e){var r=this._oContext,Z=this.JSC$19937__htOption,O=e.moduleCount,M=Z.width/O,T=Z.height/O,E=Math.round(M),b=Math.round(T);this._elImage.style.display="none";this.clear();for(var w=0;w<O;w++)for(var q=0;q<O;q++){var t=e.isDark(w,q),g=q*M,l=w*T;r.strokeStyle=t?Z.colorDark:Z.colorLight;r.lineWidth=1;r.fillStyle=t?Z.colorDark:Z.colorLight;r.fillRect(g,l,M,T);r.strokeRect(Math.floor(g)+.5,Math.floor(l)+.5,E,b);r.strokeRect(Math.ceil(g)-.5,Math.ceil(l)-.5,E,b)}this._bIsPainted=
!0};
G.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
G.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
G.prototype.round=function(e){return e?Math.floor(e*1E3)/1E3:e};
return G}():function(){var G=function(e,r){this.JSC$19937__el=e;
this.JSC$19937__htOption=r};
G.prototype.draw=function(e){for(var r=this.JSC$19937__htOption,Z=this.JSC$19937__el,O=e.moduleCount,M=Math.floor(r.width/O),T=Math.floor(r.height/O),E=['<table style="border:0;border-collapse:collapse;">'],b=0;b<O;b++){E.push("<tr>");for(var w=0;w<O;w++)E.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+M+"px;height:"+T+"px;background-color:"+(e.isDark(b,w)?r.colorDark:r.colorLight)+';"></td>');E.push("</tr>")}E.push("</table>");e=E.join("");e=_.xgc(_.Ugw,e);_.Te(Z,e);
e=Z.childNodes[0];O=(r.width-e.offsetWidth)/2;M=(r.height-e.offsetHeight)/2;O>0&&M>0&&(e.style.margin=M+"px "+O+"px")};
G.prototype.clear=function(){this.JSC$19937__el.textContent=""};
return G}();
JIA.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19940__android||this.JSC$19940__android>=3)&&this._oDrawing.makeImage()};
JIA.prototype.clear=function(){this._oDrawing.clear()};
_.O_.QRCode=JIA;var RJ8={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var jT8=function(){};
jT8.prototype.stringify=function(G){return _.O_.JSON.stringify(G,void 0)};
jT8.prototype.parse=function(G){return _.O_.JSON.parse(G,void 0)};var a7d=function(){_.qQ.call(this,"z")};
_.Bz(a7d,_.qQ);var Xh8=function(){_.qQ.call(this,"y")};
_.Bz(Xh8,_.qQ);var KFW=null,f7H=function(){return KFW=KFW||new _.j7},kta=function(G){_.qQ.call(this,"serverreachability",G)};
_.Bz(kta,_.qQ);var HhV=function(G){var e=f7H();e.dispatchEvent(new kta(e,G))},d6W=function(G,e){_.qQ.call(this,"statevent",G);
this.stat=e};
_.Bz(d6W,_.qQ);var hC=function(G){var e=f7H();e.dispatchEvent(new d6W(e,G))},oBW=function(G,e,r,Z){_.qQ.call(this,"timingevent",G);
this.size=e;this.rtt=r;this.retries=Z};
_.Bz(oBW,_.qQ);var sTA=function(G,e,r){var Z=f7H();Z.dispatchEvent(new oBW(Z,G,e,r))},QTo=function(G,e){if(typeof G!=="function")throw Error("Sk");
return _.O_.setTimeout(function(){G()},e)};var TY=function(){this.redactEnabled_=!0};
TY.prototype.disableRedact=function(){this.redactEnabled_=!1};
var I7C=function(G,e,r,Z,O,M){G.info(function(){if(G.redactEnabled_)if(M){var T="";for(var E=M.split("&"),b=0;b<E.length;b++){var w=E[b].split("=");if(w.length>1){var q=w[0];w=w[1];var t=q.split("_");T=t.length>=2&&t[1]=="type"?T+(q+"="+w+"&"):T+(q+"=redacted&")}}}else T=null;else T=M;return"XMLHTTP REQ ("+Z+") [attempt "+O+"]: "+e+"\n"+r+"\n"+T})},phd=function(G,e,r,Z,O,M,T){G.info(function(){return"XMLHTTP RESP ("+Z+") [ attempt "+O+"]: "+e+"\n"+r+"\n"+M+" "+T})},DN=function(G,e,r,Z){G.info(function(){return"XMLHTTP TEXT ("+
e+"): "+CrA(G,r)+(Z?" "+Z:"")})},u9a=function(G,e){G.info(function(){return"TIMEOUT: "+e})};
TY.prototype.debug=function(){};
TY.prototype.info=function(){};
TY.prototype.warning=function(){};
var CrA=function(G,e){if(!G.redactEnabled_)return e;if(!e)return null;try{var r=JSON.parse(e);if(r)for(var Z=0;Z<r.length;Z++)if(Array.isArray(r[Z])){var O=r[Z];if(!(O.length<2)){var M=O[1];if(Array.isArray(M)&&!(M.length<1)){var T=M[0];if(T!="noop"&&T!="stop"&&T!="close")for(var E=1;E<M.length;E++)M[E]=""}}}return(0,_.dT)(r)}catch(b){return G.debug("Exception parsing expected JS array - probably was not JS"),e}};var EG=function(G,e,r,Z,O){this.JSC$19962_channel_=G;this.JSC$19962_channelDebug_=e;this.sid_=r;this.JSC$19962_rid_=Z;this.JSC$19962_retryId_=O||1;this.JSC$19962_eventHandler_=new _.tP(this);this.timeout_=45E3;this.JSC$19962_extraHeaders_=null;this.JSC$19962_successful_=!1;this.JSC$19962_postData_=this.JSC$19962_requestUri_=this.JSC$19962_baseUri_=this.JSC$19962_type_=this.JSC$19962_requestStartTime_=this.JSC$19962_watchDogTimeoutTime_=this.JSC$19962_watchDogTimerId_=null;this.JSC$19962_pendingMessages_=
[];this.JSC$19962_xmlHttp_=null;this.JSC$19962_xmlHttpChunkStart_=0;this.JSC$19962_lastError_=this.JSC$19962_verb_=null;this.JSC$19962_lastStatusCode_=-1;this.JSC$19962_cancelled_=!1;this.JSC$19962_readyStateChangeThrottleMs_=0;this.JSC$19962_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new nB8},nB8=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},m6V=function(G,e){switch(G){case 0:return"Non-200 return code ("+e+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},cLB={},YZl={};
EG.prototype.setTimeout=function(G){this.timeout_=G};
var AL8=function(G,e,r){G.JSC$19962_type_=1;G.JSC$19962_baseUri_=_.Tj(e.clone());G.JSC$19962_postData_=r;G.decodeChunks_=!0;yLl(G,null)},yLl=function(G,e){G.JSC$19962_requestStartTime_=Date.now();
FFB(G);G.JSC$19962_requestUri_=G.JSC$19962_baseUri_.clone();lS2(G.JSC$19962_requestUri_,"t",G.JSC$19962_retryId_);G.JSC$19962_xmlHttpChunkStart_=0;var r=G.JSC$19962_channel_.JSC$19981_supportsCrossDomainXhrs_;G.fetchResponseState_=new nB8;G.JSC$19962_xmlHttp_=JLV(G.JSC$19962_channel_,r?e:null,!G.JSC$19962_postData_);G.JSC$19962_readyStateChangeThrottleMs_>0&&(G.JSC$19962_readyStateChangeThrottle_=new _.Zp((0,_.CB)(G.JSC$19966_xmlHttpHandler_,G,G.JSC$19962_xmlHttp_),G.JSC$19962_readyStateChangeThrottleMs_));
G.JSC$19962_eventHandler_.listen(G.JSC$19962_xmlHttp_,"readystatechange",G.JSC$19966_readyStateChangeHandler_);e=G.JSC$19962_extraHeaders_?_.c2.clone(G.JSC$19962_extraHeaders_):{};G.JSC$19962_postData_?(G.JSC$19962_verb_||(G.JSC$19962_verb_="POST"),e["Content-Type"]="application/x-www-form-urlencoded",G.JSC$19962_xmlHttp_.send(G.JSC$19962_requestUri_,G.JSC$19962_verb_,G.JSC$19962_postData_,e)):(G.JSC$19962_verb_="GET",G.JSC$19962_xmlHttp_.send(G.JSC$19962_requestUri_,G.JSC$19962_verb_,null,e));HhV(1);
I7C(G.JSC$19962_channelDebug_,G.JSC$19962_verb_,G.JSC$19962_requestUri_,G.JSC$19962_rid_,G.JSC$19962_retryId_,G.JSC$19962_postData_)};
EG.prototype.JSC$19966_readyStateChangeHandler_=function(G){G=G.target;var e=this.JSC$19962_readyStateChangeThrottle_;e&&_.sS(G)==3?(this.JSC$19962_channelDebug_.debug("Throttling readystatechange."),e.fire()):this.JSC$19966_xmlHttpHandler_(G)};
EG.prototype.JSC$19966_xmlHttpHandler_=function(G){try{G==this.JSC$19962_xmlHttp_?BkV(this):this.JSC$19962_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(e){this.JSC$19962_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),x6V(this)}finally{}};
var BkV=function(G){var e=_.sS(G.JSC$19962_xmlHttp_),r=G.JSC$19962_xmlHttp_.JSC$9805_lastErrorCode_,Z=G.JSC$19962_xmlHttp_.getStatus();if(!(e<3||e==3&&!x6V(G))){G.JSC$19962_cancelled_||e!=4||r==7||(r==8||Z<=0?HhV(3):HhV(2));Pr2(G);var O=G.JSC$19962_xmlHttp_.getStatus();G.JSC$19962_lastStatusCode_=O;r=U68(G);x6V(G)||G.JSC$19962_channelDebug_.debug(function(){return"No response text for uri "+G.JSC$19962_requestUri_+" status "+O});
G.JSC$19962_successful_=O==200;phd(G.JSC$19962_channelDebug_,G.JSC$19962_verb_,G.JSC$19962_requestUri_,G.JSC$19962_rid_,G.JSC$19962_retryId_,e,O);if(G.JSC$19962_successful_){if(G.decodeInitialResponse_&&!G.initialResponseDecoded_)if(Z=zJA(G))DN(G.JSC$19962_channelDebug_,G.JSC$19962_rid_,Z,"Initial handshake response via X-HTTP-Initial-Response"),G.initialResponseDecoded_=!0,WF8(G,Z);else{G.JSC$19962_successful_=!1;G.JSC$19962_lastError_=3;hC(12);G.JSC$19962_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
G.JSC$19962_rid_+")");iT(G);Nk8(G);return}G.decodeChunks_?LFB(G,e,r):(DN(G.JSC$19962_channelDebug_,G.JSC$19962_rid_,r,null),WF8(G,r));e==4&&iT(G);G.JSC$19962_successful_&&!G.JSC$19962_cancelled_&&(e==4?G6C(G.JSC$19962_channel_,G):(G.JSC$19962_successful_=!1,FFB(G)))}else t78(G.JSC$19962_xmlHttp_),O==400&&r.indexOf("Unknown SID")>0?(G.JSC$19962_lastError_=3,hC(12),G.JSC$19962_channelDebug_.warning("XMLHTTP Unknown SID ("+G.JSC$19962_rid_+")")):(G.JSC$19962_lastError_=0,hC(13),G.JSC$19962_channelDebug_.warning("XMLHTTP Bad status "+
O+" ("+G.JSC$19962_rid_+")")),iT(G),Nk8(G)}},zJA=function(G){return G.JSC$19962_xmlHttp_&&(G=bS(G.JSC$19962_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.iF(G)?G:null},U68=function(G){if(!ehB(G))return G.JSC$19962_xmlHttp_.getResponseText();
var e=G.JSC$19962_xmlHttp_.getResponse();if(e==="")return"";var r="",Z=e.length,O=_.sS(G.JSC$19962_xmlHttp_)==4;if(!G.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return iT(G),Nk8(G),"";G.fetchResponseState_.textDecoder=new _.O_.TextDecoder}for(var M=0;M<Z;M++)G.fetchResponseState_.responseArrivedForFetch=!0,r+=G.fetchResponseState_.textDecoder.decode(e[M],{stream:!(O&&M==Z-1)});e.length=0;G.fetchResponseState_.responseBuffer+=r;G.JSC$19962_xmlHttpChunkStart_=0;return G.fetchResponseState_.responseBuffer},
x6V=function(G){return G.JSC$19962_xmlHttp_?G.fetchResponseState_.responseArrivedForFetch?!0:!(!G.JSC$19962_xmlHttp_.getResponseText()&&!G.JSC$19962_xmlHttp_.getResponse()):!1},ehB=function(G){return G.JSC$19962_xmlHttp_?G.JSC$19962_verb_=="GET"&&G.JSC$19962_type_!=2&&G.JSC$19962_channel_.usesFetchStreams_:!1},LFB=function(G,e,r){for(var Z=!0,O;!G.JSC$19962_cancelled_&&G.JSC$19962_xmlHttpChunkStart_<r.length;)if(O=r4C(G,r),O==YZl){e==4&&(G.JSC$19962_lastError_=4,hC(14),Z=!1);
DN(G.JSC$19962_channelDebug_,G.JSC$19962_rid_,null,"[Incomplete Response]");break}else if(O==cLB){G.JSC$19962_lastError_=4;hC(15);DN(G.JSC$19962_channelDebug_,G.JSC$19962_rid_,r,"[Invalid Chunk]");Z=!1;break}else DN(G.JSC$19962_channelDebug_,G.JSC$19962_rid_,O,null),WF8(G,O);ehB(G)&&G.JSC$19962_xmlHttpChunkStart_!=0&&(G.fetchResponseState_.responseBuffer=G.fetchResponseState_.responseBuffer.slice(G.JSC$19962_xmlHttpChunkStart_),G.JSC$19962_xmlHttpChunkStart_=0);e!=4||r.length!=0||G.fetchResponseState_.responseArrivedForFetch||
(G.JSC$19962_lastError_=1,hC(16),Z=!1);G.JSC$19962_successful_=G.JSC$19962_successful_&&Z;Z?r.length>0&&!G.firstByteReceived_&&(G.firstByteReceived_=!0,e=G.JSC$19962_channel_,e.JSC$19981_backChannelRequest_==G&&e.detectBufferingProxy_&&!e.bpDetectionDone_&&(e.JSC$19981_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+r.length),Zbo(e),e.bpDetectionDone_=!0,hC(11))):(DN(G.JSC$19962_channelDebug_,G.JSC$19962_rid_,r,"[Invalid Chunked Response]"),iT(G),Nk8(G))},r4C=function(G,
e){var r=G.JSC$19962_xmlHttpChunkStart_,Z=e.indexOf("\n",r);
if(Z==-1)return YZl;r=Number(e.substring(r,Z));if(isNaN(r))return cLB;Z+=1;if(Z+r>e.length)return YZl;e=e.slice(Z,Z+r);G.JSC$19962_xmlHttpChunkStart_=Z+r;return e};
EG.prototype.cancel=function(){this.JSC$19962_cancelled_=!0;iT(this)};
var FFB=function(G){G.JSC$19962_watchDogTimeoutTime_=Date.now()+G.timeout_;Obl(G,G.timeout_)},Obl=function(G,e){if(G.JSC$19962_watchDogTimerId_!=null)throw Error("Tk");
G.JSC$19962_watchDogTimerId_=QTo((0,_.CB)(G.JSC$19966_onWatchDogTimeout_,G),e)},Pr2=function(G){G.JSC$19962_watchDogTimerId_&&(_.O_.clearTimeout(G.JSC$19962_watchDogTimerId_),G.JSC$19962_watchDogTimerId_=null)};
EG.prototype.JSC$19966_onWatchDogTimeout_=function(){this.JSC$19962_watchDogTimerId_=null;var G=Date.now();G-this.JSC$19962_watchDogTimeoutTime_>=0?(u9a(this.JSC$19962_channelDebug_,this.JSC$19962_requestUri_),this.JSC$19962_type_!=2&&(HhV(3),hC(17)),iT(this),this.JSC$19962_lastError_=2,Nk8(this)):(this.JSC$19962_channelDebug_.warning("WatchDog timer called too early"),Obl(this,this.JSC$19962_watchDogTimeoutTime_-G))};
var Nk8=function(G){G.JSC$19962_channel_.state_==0||G.JSC$19962_cancelled_||G6C(G.JSC$19962_channel_,G)},iT=function(G){Pr2(G);
_.TX(G.JSC$19962_readyStateChangeThrottle_);G.JSC$19962_readyStateChangeThrottle_=null;G.JSC$19962_eventHandler_.removeAll();if(G.JSC$19962_xmlHttp_){var e=G.JSC$19962_xmlHttp_;G.JSC$19962_xmlHttp_=null;e.abort();e.dispose()}};
EG.prototype.getLastError=function(){return this.JSC$19962_lastError_};
var WF8=function(G,e){try{var r=G.JSC$19962_channel_;if(r.state_!=0&&(r.JSC$19981_backChannelRequest_==G||MUB(r.forwardChannelRequestPool_,G)))if(!G.initialResponseDecoded_&&MUB(r.forwardChannelRequestPool_,G)&&r.state_==3){try{var Z=r.wireCodec_.JSC$19976_parser_.parse(e)}catch(E){Z=null}if(Array.isArray(Z)&&Z.length==3){e=Z;if(e[0]==0)a:if(r.JSC$19981_channelDebug_.debug("Server claims our backchannel is missing."),r.JSC$19981_backChannelTimerId_)r.JSC$19981_channelDebug_.debug("But we are currently starting the request.");
else{if(r.JSC$19981_backChannelRequest_)if(r.JSC$19981_backChannelRequest_.JSC$19962_requestStartTime_+3E3<G.JSC$19962_requestStartTime_)VU8(r),hhA(r);else break a;else r.JSC$19981_channelDebug_.warning("We do not have a BackChannel established");TFW(r);hC(18)}else{r.JSC$19981_lastPostResponseArrayId_=e[1];var O=r.JSC$19981_lastPostResponseArrayId_-r.JSC$19981_lastArrayId_;if(0<O){var M=e[2];r.JSC$19981_channelDebug_.debug(M+" bytes (in "+O+" arrays) are outstanding on the BackChannel");M<37500&&
r.enableStreaming_&&r.JSC$19981_backChannelRetryCount_==0&&!r.JSC$19981_deadBackChannelTimerId_&&(r.JSC$19981_deadBackChannelTimerId_=QTo((0,_.CB)(r.JSC$19983_onBackChannelDead_,r),6E3))}}if(DG8(r.forwardChannelRequestPool_)<=1&&r.forwardChannelFlushedCallback_){try{r.forwardChannelFlushedCallback_()}catch(E){}r.forwardChannelFlushedCallback_=void 0}}else r.JSC$19981_channelDebug_.debug("Bad POST response data returned"),bT(r,11)}else if((G.initialResponseDecoded_||r.JSC$19981_backChannelRequest_==
G)&&VU8(r),!_.iF(e)){var T=r.wireCodec_.JSC$19976_parser_.parse(e);r.onInput_(T,G)}HhV(4)}catch(E){}};var E0o=function(G,e){this.JSC$19969_mapId=G;this.map=e;this.context=null};var iba=function(G){this.maxPoolSizeConfigured_=G||10;_.O_.PerformanceNavigationTiming?(G=_.O_.performance.getEntriesByType("navigation"),G=G.length>0&&(G[0].nextHopProtocol=="hq"||G[0].nextHopProtocol=="h2")):G=!!(_.O_.chrome&&_.O_.chrome.loadTimes&&_.O_.chrome.loadTimes()&&_.O_.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19972_maxSize_=G?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19972_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19972_request_=null;this.JSC$19972_pendingMessages_=
[]},bbY=function(G){return G.JSC$19972_request_?!0:G.requestPool_?G.requestPool_.size>=G.JSC$19972_maxSize_:!1},DG8=function(G){return G.JSC$19972_request_?1:G.requestPool_?G.requestPool_.size:0},MUB=function(G,e){return G.JSC$19972_request_?G.JSC$19972_request_==e:G.requestPool_?G.requestPool_.has(e):!1},v0l=function(G,e){G.requestPool_?G.requestPool_.add(e):G.JSC$19972_request_=e},wkd=function(G,e){G.JSC$19972_request_&&G.JSC$19972_request_==e?G.JSC$19972_request_=null:G.requestPool_&&G.requestPool_.has(e)&&
G.requestPool_.delete(e)};
iba.prototype.cancel=function(){this.JSC$19972_pendingMessages_=$Gl(this);if(this.JSC$19972_request_)this.JSC$19972_request_.cancel(),this.JSC$19972_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var G=_.h(this.requestPool_.values()),e=G.next();!e.done;e=G.next())e.value.cancel();this.requestPool_.clear()}};
var $Gl=function(G){if(G.JSC$19972_request_!=null)return G.JSC$19972_pendingMessages_.concat(G.JSC$19972_request_.JSC$19962_pendingMessages_);if(G.requestPool_!=null&&G.requestPool_.size!==0){var e=G.JSC$19972_pendingMessages_;G=_.h(G.requestPool_.values());for(var r=G.next();!r.done;r=G.next())e=e.concat(r.value.JSC$19962_pendingMessages_);return e}return _.Ai(G.JSC$19972_pendingMessages_)},SD8=function(G,e){G.JSC$19972_pendingMessages_=G.JSC$19972_pendingMessages_.concat(e)};var qD8=function(G,e){var r=new TY;r.debug("TestLoadImage: loading "+G);if(_.O_.Image){var Z=new Image;Z.onload=_.VU(vT,r,"TestLoadImage: loaded",!0,e,Z);Z.onerror=_.VU(vT,r,"TestLoadImage: error",!1,e,Z);Z.onabort=_.VU(vT,r,"TestLoadImage: abort",!1,e,Z);Z.ontimeout=_.VU(vT,r,"TestLoadImage: timeout",!1,e,Z);_.O_.setTimeout(function(){if(Z.ontimeout)Z.ontimeout()},1E4);
Z.src=G}else e(!1)},tUo=function(G,e){var r=new TY,Z=new AbortController,O=setTimeout(function(){Z.abort();
vT(r,"TestPingServer: timeout",!1,e)},1E4);
fetch(G,{signal:Z.signal}).then(function(M){clearTimeout(O);M.ok?vT(r,"TestPingServer: ok",!0,e):vT(r,"TestPingServer: server error",!1,e)}).catch(function(){clearTimeout(O);
vT(r,"TestPingServer: error",!1,e)})},vT=function(G,e,r,Z,O){try{G.debug(e),O&&(O.onload=null,O.onerror=null,O.onabort=null,O.ontimeout=null),Z(r)}catch(M){}};var g0o=function(){this.JSC$19976_parser_=new jT8};var lsd=function(G,e,r){return r&&r.internalChannelParams?r.internalChannelParams[G]||e:e},wO=function(G){this.serverVersion_=0;
this.JSC$19981_outgoingMaps_=[];this.JSC$19981_channelDebug_=new TY;this.JSC$19981_hostPrefix_=this.JSC$19981_backChannelUri_=this.JSC$19981_forwardChannelUri_=this.JSC$19981_path_=this.JSC$19981_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19981_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19981_extraHeaders_=null;this.JSC$19981_nextMapId_=this.JSC$19981_nextRid_=0;this.JSC$19981_failFast_=lsd("failFast",!1,G);this.enableStreaming_=this.JSC$19981_deadBackChannelTimerId_=
this.JSC$19981_backChannelTimerId_=this.JSC$19981_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19981_lastPostResponseArrayId_=this.JSC$19981_lastArrayId_=-1;this.JSC$19981_backChannelAttemptId_=this.JSC$19981_backChannelRetryCount_=this.JSC$19981_forwardChannelRetryCount_=0;this.JSC$19981_baseRetryDelayMs_=lsd("baseRetryDelayMs",5E3,G);this.JSC$19981_retryDelaySeedMs_=lsd("retryDelaySeedMs",1E4,G);this.JSC$19981_forwardChannelMaxRetries_=
lsd("forwardChannelMaxRetries",2,G);this.JSC$19981_forwardChannelRequestTimeoutMs_=lsd("forwardChannelRequestTimeoutMs",2E4,G);this.JSC$19981_xmlHttpFactory_=G&&G.xmlHttpFactory||void 0;this.networkTestUrl_=G&&G.networkTestUrl||void 0;this.usesFetchStreams_=G&&G.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19981_supportsCrossDomainXhrs_=G&&G.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new iba(G&&G.concurrentRequestLimit);this.wireCodec_=new g0o;
this.fastHandshake_=G&&G.fastHandshake||!1;this.encodeInitMessageHeaders_=G&&G.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19981_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=G&&G.blockingHandshake||!1;G&&G.disableRedact&&this.JSC$19981_channelDebug_.disableRedact();G&&G.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&
this.allowStreamingMode_&&G&&G.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;G&&G.longPollingTimeout&&G.longPollingTimeout>0&&(this.longPollingTimeout_=G.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
wO.prototype.JSC$19983_channelVersion_=8;wO.prototype.state_=1;
wO.prototype.connect=function(G,e,r,Z){this.JSC$19981_channelDebug_.debug("connect()");hC(0);this.JSC$19981_path_=G;this.JSC$19981_extraParams_=e||{};r&&Z!==void 0&&(this.JSC$19981_extraParams_.OSID=r,this.JSC$19981_extraParams_.OAID=Z);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19981_channelDebug_.debug("connectChannel_()");G=Rhm(this,null,this.JSC$19981_path_);this.JSC$19981_channelDebug_.debug("GetForwardChannelUri: "+G);this.JSC$19981_forwardChannelUri_=G;jqY(this)};
wO.prototype.disconnect=function(){this.JSC$19981_channelDebug_.debug("disconnect()");asY(this);if(this.state_==3){var G=this.JSC$19981_nextRid_++,e=this.JSC$19981_forwardChannelUri_.clone();_.eO(e,"SID",this.sid_);_.eO(e,"RID",G);_.eO(e,"TYPE","terminate");XkA(this,e);G=new EG(this,this.JSC$19981_channelDebug_,this.sid_,G);G.JSC$19962_type_=2;G.JSC$19962_baseUri_=_.Tj(e.clone());e=!1;if(_.O_.navigator&&_.O_.navigator.sendBeacon)try{e=_.O_.navigator.sendBeacon(G.JSC$19962_baseUri_.toString(),"")}catch(r){}!e&&
_.O_.Image&&((new Image).src=G.JSC$19962_baseUri_,e=!0);e||(G.JSC$19962_xmlHttp_=JLV(G.JSC$19962_channel_,null),G.JSC$19962_xmlHttp_.send(G.JSC$19962_baseUri_));G.JSC$19962_requestStartTime_=Date.now();FFB(G)}Kco(this)};
var hhA=function(G){G.JSC$19981_backChannelRequest_&&(Zbo(G),G.JSC$19981_backChannelRequest_.cancel(),G.JSC$19981_backChannelRequest_=null)},asY=function(G){hhA(G);
G.JSC$19981_backChannelTimerId_&&(_.O_.clearTimeout(G.JSC$19981_backChannelTimerId_),G.JSC$19981_backChannelTimerId_=null);VU8(G);G.forwardChannelRequestPool_.cancel();G.JSC$19981_forwardChannelTimerId_&&(typeof G.JSC$19981_forwardChannelTimerId_==="number"&&_.O_.clearTimeout(G.JSC$19981_forwardChannelTimerId_),G.JSC$19981_forwardChannelTimerId_=null)};
wO.prototype.getState=function(){return this.state_};
var jqY=function(G){bbY(G.forwardChannelRequestPool_)||G.JSC$19981_forwardChannelTimerId_||(G.JSC$19981_forwardChannelTimerId_=!0,_.XX(G.JSC$19983_onStartForwardChannelTimer_,G),G.JSC$19981_forwardChannelRetryCount_=0)},k6V=function(G,e){if(DG8(G.forwardChannelRequestPool_)>=G.forwardChannelRequestPool_.JSC$19972_maxSize_-(G.JSC$19981_forwardChannelTimerId_?1:0))return!1;
if(G.JSC$19981_forwardChannelTimerId_)return G.JSC$19981_channelDebug_.debug("Use the retry request that is already scheduled."),G.JSC$19981_outgoingMaps_=e.JSC$19962_pendingMessages_.concat(G.JSC$19981_outgoingMaps_),!0;if(G.state_==1||G.state_==2||G.JSC$19981_forwardChannelRetryCount_>=(G.JSC$19981_failFast_?0:G.JSC$19981_forwardChannelMaxRetries_))return!1;G.JSC$19981_channelDebug_.debug("Going to retry POST");G.JSC$19981_forwardChannelTimerId_=QTo((0,_.CB)(G.JSC$19983_onStartForwardChannelTimer_,
G,e),fsV(G,G.JSC$19981_forwardChannelRetryCount_));G.JSC$19981_forwardChannelRetryCount_++;return!0};
wO.prototype.JSC$19983_onStartForwardChannelTimer_=function(G){if(this.JSC$19981_forwardChannelTimerId_)if(this.JSC$19981_forwardChannelTimerId_=null,this.JSC$19981_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!G){this.JSC$19981_channelDebug_.debug("open_()");this.JSC$19981_nextRid_=Math.floor(Math.random()*1E5);G=this.JSC$19981_nextRid_++;var e=new EG(this,this.JSC$19981_channelDebug_,"",G),r=this.JSC$19981_extraHeaders_;this.initHeaders_&&(r?(r=_.c2.clone(r),_.c2.extend(r,this.initHeaders_)):
r=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(e.JSC$19962_extraHeaders_=r,r=null);var Z;if(this.fastHandshake_)a:{for(var O=Z=0;O<this.JSC$19981_outgoingMaps_.length;O++){b:{var M=this.JSC$19981_outgoingMaps_[O];if("__data__"in M.map&&(M=M.map.__data__,typeof M==="string")){M=M.length;break b}M=void 0}if(M===void 0)break;Z+=M;if(Z>4096){Z=O;break a}if(Z===4096||O===this.JSC$19981_outgoingMaps_.length-1){Z=O+1;break a}}Z=1E3}else Z=1E3;Z=Hb8(this,e,Z);
O=this.JSC$19981_forwardChannelUri_.clone();_.eO(O,"RID",G);_.eO(O,"CVER",22);this.httpSessionIdParam_&&_.eO(O,"X-HTTP-Session-Id",this.httpSessionIdParam_);XkA(this,O);r&&(this.encodeInitMessageHeaders_?Z="headers="+_.em(oMo(r))+"&"+Z:this.httpHeadersOverwriteParam_&&sel(O,this.httpHeadersOverwriteParam_,r));v0l(this.forwardChannelRequestPool_,e);this.blockingHandshake_&&_.eO(O,"TYPE","init");this.fastHandshake_?(_.eO(O,"$req",Z),_.eO(O,"SID","null"),e.decodeInitialResponse_=!0,AL8(e,O,null)):AL8(e,
O,Z);this.state_=2}}else this.state_==3&&(G?dGd(this,G):this.JSC$19981_outgoingMaps_.length==0?this.JSC$19981_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):bbY(this.forwardChannelRequestPool_)||(dGd(this),this.JSC$19981_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var dGd=function(G,e){var r;e?r=e.JSC$19962_rid_:r=G.JSC$19981_nextRid_++;var Z=G.JSC$19981_forwardChannelUri_.clone();_.eO(Z,"SID",G.sid_);_.eO(Z,"RID",r);_.eO(Z,"AID",G.JSC$19981_lastArrayId_);XkA(G,Z);G.httpHeadersOverwriteParam_&&G.JSC$19981_extraHeaders_&&sel(Z,G.httpHeadersOverwriteParam_,G.JSC$19981_extraHeaders_);r=new EG(G,G.JSC$19981_channelDebug_,G.sid_,r,G.JSC$19981_forwardChannelRetryCount_+1);G.httpHeadersOverwriteParam_===null&&(r.JSC$19962_extraHeaders_=G.JSC$19981_extraHeaders_);
e&&(G.JSC$19981_outgoingMaps_=e.JSC$19962_pendingMessages_.concat(G.JSC$19981_outgoingMaps_));e=Hb8(G,r,1E3);r.setTimeout(Math.round(G.JSC$19981_forwardChannelRequestTimeoutMs_*.5)+Math.round(G.JSC$19981_forwardChannelRequestTimeoutMs_*.5*Math.random()));v0l(G.forwardChannelRequestPool_,r);AL8(r,Z,e)},XkA=function(G,e){G.JSC$19981_extraParams_&&_.c2.forEach(G.JSC$19981_extraParams_,function(r,Z){_.eO(e,Z,r)});
G.handler_&&_.c2.forEach({},function(r,Z){_.eO(e,Z,r)})},Hb8=function(G,e,r){r=Math.min(G.JSC$19981_outgoingMaps_.length,r);
var Z=G.handler_?(0,_.CB)(G.handler_.JSC$19987_badMapError,G.handler_,G):null;a:{for(var O=G.JSC$19981_outgoingMaps_,M=-1;;){var T=["count="+r];M==-1?r>0?(M=O[0].JSC$19969_mapId,T.push("ofs="+M)):M=0:T.push("ofs="+M);for(var E=!0,b=0;b<r;b++){var w=O[b].JSC$19969_mapId,q=O[b].map;w-=M;if(w<0)M=Math.max(0,O[b].JSC$19969_mapId-100),E=!1;else try{w="req"+w+"_"||"";try{var t=q instanceof Map?q:Object.entries(q);for(var g=_.h(t),l=g.next();!l.done;l=g.next()){var X=_.h(l.value),H=X.next().value,I=X.next().value,
C=I;_.PA(I)&&(C=(0,_.dT)(I));T.push(w+H+"="+encodeURIComponent(C))}}catch(u){throw T.push(w+"type="+encodeURIComponent("_badmap")),u;}}catch(u){Z&&Z(q)}}if(E){t=T.join("&");break a}}t=void 0}G=G.JSC$19981_outgoingMaps_.splice(0,r);e.JSC$19962_pendingMessages_=G;return t},o02=function(G){G.JSC$19981_backChannelRequest_||G.JSC$19981_backChannelTimerId_||(G.JSC$19981_backChannelAttemptId_=1,_.XX(G.JSC$19983_onStartBackChannelTimer_,G),G.JSC$19981_backChannelRetryCount_=0)},TFW=function(G){if(G.JSC$19981_backChannelRequest_||
G.JSC$19981_backChannelTimerId_||G.JSC$19981_backChannelRetryCount_>=3)return!1;
G.JSC$19981_channelDebug_.debug("Going to retry GET");G.JSC$19981_backChannelAttemptId_++;G.JSC$19981_backChannelTimerId_=QTo((0,_.CB)(G.JSC$19983_onStartBackChannelTimer_,G),fsV(G,G.JSC$19981_backChannelRetryCount_));G.JSC$19981_backChannelRetryCount_++;return!0};
wO.prototype.JSC$19983_onStartBackChannelTimer_=function(){this.JSC$19981_backChannelTimerId_=null;sqa(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19981_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19981_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19981_backChannelRequest_+" "+this.handshakeRttMs_);else{var G=4*this.handshakeRttMs_;this.JSC$19981_channelDebug_.info("BP detection timer enabled: "+G);this.bpDetectionTimerId_=QTo((0,_.CB)(this.onBpDetectionTimer_,
this),G)}};
wO.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19981_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19981_backChannelRequest_.JSC$19962_xmlHttp_!=null){var G=this.JSC$19981_backChannelRequest_.JSC$19962_xmlHttp_.getResponseText();G&&this.JSC$19981_channelDebug_.warning("Timer should have been cancelled : "+G)}this.JSC$19981_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;hC(10);hhA(this);sqa(this)}else this.JSC$19981_channelDebug_.warning("Invalid operation.")};
var Zbo=function(G){G.bpDetectionTimerId_!=null&&(G.JSC$19981_channelDebug_.debug("Cancel the BP detection timer."),_.O_.clearTimeout(G.bpDetectionTimerId_),G.bpDetectionTimerId_=null)},sqa=function(G){G.JSC$19981_channelDebug_.debug("Creating new HttpRequest");
G.JSC$19981_backChannelRequest_=new EG(G,G.JSC$19981_channelDebug_,G.sid_,"rpc",G.JSC$19981_backChannelAttemptId_);G.httpHeadersOverwriteParam_===null&&(G.JSC$19981_backChannelRequest_.JSC$19962_extraHeaders_=G.JSC$19981_extraHeaders_);G.JSC$19981_backChannelRequest_.JSC$19962_readyStateChangeThrottleMs_=0;var e=G.JSC$19981_backChannelUri_.clone();_.eO(e,"RID","rpc");_.eO(e,"SID",G.sid_);_.eO(e,"AID",G.JSC$19981_lastArrayId_);_.eO(e,"CI",G.enableStreaming_?"0":"1");!G.enableStreaming_&&G.longPollingTimeout_&&
_.eO(e,"TO",G.longPollingTimeout_);_.eO(e,"TYPE","xmlhttp");XkA(G,e);G.httpHeadersOverwriteParam_&&G.JSC$19981_extraHeaders_&&sel(e,G.httpHeadersOverwriteParam_,G.JSC$19981_extraHeaders_);G.backChannelRequestTimeoutMs_&&G.JSC$19981_backChannelRequest_.setTimeout(G.backChannelRequestTimeoutMs_);var r=G.JSC$19981_backChannelRequest_,Z=G.JSC$19981_hostPrefix_;r.JSC$19962_type_=1;r.JSC$19962_baseUri_=_.Tj(e.clone());r.JSC$19962_postData_=null;r.decodeChunks_=!0;yLl(r,Z);G.JSC$19981_channelDebug_.debug("New Request created")};
wO.prototype.JSC$19983_onBackChannelDead_=function(){this.JSC$19981_deadBackChannelTimerId_!=null&&(this.JSC$19981_deadBackChannelTimerId_=null,hhA(this),TFW(this),hC(19))};
var VU8=function(G){G.JSC$19981_deadBackChannelTimerId_!=null&&(_.O_.clearTimeout(G.JSC$19981_deadBackChannelTimerId_),G.JSC$19981_deadBackChannelTimerId_=null)},G6C=function(G,e){G.JSC$19981_channelDebug_.debug("Request complete");
var r=null;if(G.JSC$19981_backChannelRequest_==e){VU8(G);Zbo(G);G.JSC$19981_backChannelRequest_=null;var Z=2}else if(MUB(G.forwardChannelRequestPool_,e))r=e.JSC$19962_pendingMessages_,wkd(G.forwardChannelRequestPool_,e),Z=1;else return;if(G.state_!=0)if(e.JSC$19962_successful_)Z==1?(sTA(e.JSC$19962_postData_?e.JSC$19962_postData_.length:0,Date.now()-e.JSC$19962_requestStartTime_,G.JSC$19981_forwardChannelRetryCount_),jqY(G)):o02(G);else{var O=e.JSC$19962_lastStatusCode_,M=e.getLastError();if(M==3||
M==0&&O>0)G.JSC$19981_channelDebug_.debug("Not retrying due to error type"),O>200&&(G.errorResponseStatusCode_=e.JSC$19962_lastStatusCode_);else{G.JSC$19981_channelDebug_.debug(function(){return"Maybe retrying, last error: "+m6V(M,G.errorResponseStatusCode_)});
if(Z==1&&k6V(G,e)||Z==2&&TFW(G))return;G.JSC$19981_channelDebug_.debug("Exceeded max number of retries")}r&&r.length>0&&SD8(G.forwardChannelRequestPool_,r);G.JSC$19981_channelDebug_.debug("Error: HTTP request failed");switch(M){case 1:bT(G,5);break;case 4:bT(G,10);break;case 3:bT(G,6);break;default:bT(G,2)}}},fsV=function(G,e){var r=G.JSC$19981_baseRetryDelayMs_+Math.floor(Math.random()*G.JSC$19981_retryDelaySeedMs_);
G.isActive()||(G.JSC$19981_channelDebug_.debug("Inactive channel"),r*=2);return r*e};
wO.prototype.onInput_=function(G,e){for(var r=0;r<G.length;r++){var Z=G[r],O=Z[0];if(O<=this.JSC$19981_lastArrayId_)this.JSC$19981_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+O+", lastArrayId: "+this.JSC$19981_lastArrayId_);else if(O>this.JSC$19981_lastArrayId_+1&&this.JSC$19981_lastArrayId_>-1&&this.JSC$19981_channelDebug_.warning("Received non-consecutive message with arrayId: "+O+", lastArrayId: "+this.JSC$19981_lastArrayId_),this.JSC$19981_lastArrayId_=O,
Z=Z[1],this.state_==2)if(Z[0]=="c"){this.sid_=Z[1];this.JSC$19981_hostPrefix_=Z[2];O=Z[3];O!=null&&(this.JSC$19983_channelVersion_=O,this.JSC$19981_channelDebug_.info("VER="+this.JSC$19983_channelVersion_));O=Z[4];O!=null&&(this.serverVersion_=O,this.JSC$19981_channelDebug_.info("SVER="+this.serverVersion_));Z=Z[5];Z!=null&&typeof Z==="number"&&Z>0&&(this.backChannelRequestTimeoutMs_=Z*=1.5,this.JSC$19981_channelDebug_.info("backChannelRequestTimeoutMs_="+Z));if(Z=e.JSC$19962_xmlHttp_){var M=bS(Z,
"X-Client-Wire-Protocol");M&&(O=this.forwardChannelRequestPool_,!O.requestPool_&&(_.vA(M,"spdy")||_.vA(M,"quic")||_.vA(M,"h2"))&&(O.JSC$19972_maxSize_=O.maxPoolSizeConfigured_,O.requestPool_=new Set,O.JSC$19972_request_&&(v0l(O,O.JSC$19972_request_),O.JSC$19972_request_=null)));this.httpSessionIdParam_&&((Z=bS(Z,"X-HTTP-Session-Id"))?(this.httpSessionId_=Z,_.eO(this.JSC$19981_forwardChannelUri_,this.httpSessionIdParam_,Z)):this.JSC$19981_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$19987_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-e.JSC$19962_requestStartTime_,this.JSC$19981_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));Z=e;O=Rhm(this,this.JSC$19981_supportsCrossDomainXhrs_?this.JSC$19981_hostPrefix_:null,this.JSC$19981_path_);this.JSC$19981_channelDebug_.debug("GetBackChannelUri: "+O);this.JSC$19981_backChannelUri_=O;Z.initialResponseDecoded_?(this.JSC$19981_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
wkd(this.forwardChannelRequestPool_,Z),O=Z,(M=this.backChannelRequestTimeoutMs_)&&O.setTimeout(M),O.JSC$19962_watchDogTimerId_&&(Pr2(O),FFB(O)),this.JSC$19981_backChannelRequest_=Z):o02(this);this.JSC$19981_outgoingMaps_.length>0&&jqY(this)}else Z[0]!="stop"&&Z[0]!="close"||bT(this,7);else this.state_==3&&(Z[0]=="stop"||Z[0]=="close"?Z[0]=="stop"?bT(this,7):this.disconnect():Z[0]!="noop"&&this.handler_&&this.handler_.JSC$19987_channelHandleArray(Z),this.JSC$19981_backChannelRetryCount_=0)}};
var bT=function(G,e){G.JSC$19981_channelDebug_.info("Error code "+e);if(e==2){var r=(0,_.CB)(G.testNetworkCallback_,G),Z=G.networkTestUrl_,O=!Z;Z=new _.nO(Z||"//www.google.com/images/cleardot.gif");_.O_.location&&_.O_.location.protocol=="http"||_.LY(Z,"https");_.Tj(Z);O?qD8(Z.toString(),r):tUo(Z.toString(),r)}else hC(2);G.onError_(e)};
wO.prototype.testNetworkCallback_=function(G){G?(this.JSC$19981_channelDebug_.info("Successfully pinged google.com"),hC(2)):(this.JSC$19981_channelDebug_.info("Failed to ping google.com"),hC(1))};
wO.prototype.onError_=function(G){this.JSC$19981_channelDebug_.debug("HttpChannel: error - "+G);this.state_=0;this.handler_&&this.handler_.JSC$19987_channelError(G);Kco(this);asY(this)};
var Kco=function(G){G.state_=0;G.nonAckedMapsAtChannelClose_=[];if(G.handler_){var e=$Gl(G.forwardChannelRequestPool_);if(e.length!=0||G.JSC$19981_outgoingMaps_.length!=0)G.JSC$19981_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+e.length+", outgoing: "+G.JSC$19981_outgoingMaps_.length}),_.Ji(G.nonAckedMapsAtChannelClose_,e),_.Ji(G.nonAckedMapsAtChannelClose_,G.JSC$19981_outgoingMaps_),G.forwardChannelRequestPool_.JSC$19972_pendingMessages_.length=0,_.Ai(G.JSC$19981_outgoingMaps_),
G.JSC$19981_outgoingMaps_.length=0;
G.handler_.JSC$19987_channelClosed()}},Qqm=function(G){if(G.state_==0)return G.nonAckedMapsAtChannelClose_;
var e=[];_.Ji(e,$Gl(G.forwardChannelRequestPool_));_.Ji(e,G.JSC$19981_outgoingMaps_);return e},Rhm=function(G,e,r){var Z=_.LB(r);
Z.JSC$10041_domain_!=""?(e&&_.Gj(Z,e+"."+Z.JSC$10041_domain_),_.eg(Z,Z.JSC$10041_port_)):(Z=_.O_.location,Z=wvo(Z.protocol,e?e+"."+Z.hostname:Z.hostname,+Z.port,r));e=G.httpSessionIdParam_;r=G.httpSessionId_;e&&r&&_.eO(Z,e,r);_.eO(Z,"VER",G.JSC$19983_channelVersion_);XkA(G,Z);return Z},JLV=function(G,e,r){if(e&&!G.JSC$19981_supportsCrossDomainXhrs_)throw Error("Uk");
e=G.usesFetchStreams_&&!G.JSC$19981_xmlHttpFactory_?new _.ob(new fiH({streamBinaryChunks:r})):new _.ob(G.JSC$19981_xmlHttpFactory_);e.JSC$9805_withCredentials_=G.JSC$19981_supportsCrossDomainXhrs_;return e};
wO.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var IsW=function(){};
_.V=IsW.prototype;_.V.JSC$19987_channelOpened=function(){};
_.V.JSC$19987_channelHandleArray=function(){};
_.V.JSC$19987_channelError=function(){};
_.V.JSC$19987_channelClosed=function(){};
_.V.isActive=function(){return!0};
_.V.JSC$19987_badMapError=function(){};var pko=function(){},Sy=function(G,e){_.j7.call(this);
this.JSC$19990_channel_=new wO(e);this.JSC$19990_url_=G;this.messageUrlParams_=e&&e.messageUrlParams||null;G=e&&e.messageHeaders||null;e&&e.clientProtocolHeaderRequired&&(G?_.c2.set(G,"X-Client-Protocol","webchannel"):G=_.c2.create("X-Client-Protocol","webchannel"));this.JSC$19990_channel_.JSC$19981_extraHeaders_=G;G=e&&e.initMessageHeaders||null;e&&e.messageContentType&&(G?_.c2.set(G,"X-WebChannel-Content-Type",e.messageContentType):G=_.c2.create("X-WebChannel-Content-Type",e.messageContentType));
e&&e.clientProfile&&(G?_.c2.set(G,"X-WebChannel-Client-Profile",e.clientProfile):G=_.c2.create("X-WebChannel-Client-Profile",e.clientProfile));this.JSC$19990_channel_.initHeaders_=G;(G=e&&e.httpHeadersOverwriteParam)&&!_.iF(G)&&(this.JSC$19990_channel_.httpHeadersOverwriteParam_=G);this.supportsCrossDomainXhr_=e&&e.supportsCrossDomainXhr||!1;this.sendRawJson_=e&&e.sendRawJson||!1;(e=e&&e.httpSessionIdParam)&&!_.iF(e)&&(this.JSC$19990_channel_.httpSessionIdParam_=e,_.c2.containsKey(this.messageUrlParams_,
e)&&_.c2.remove(this.messageUrlParams_,e));this.channelHandler_=new $D(this)};
_.Bz(Sy,_.j7);Sy.prototype.open=function(){this.JSC$19990_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19990_channel_.JSC$19981_supportsCrossDomainXhrs_=!0);this.JSC$19990_channel_.connect(this.JSC$19990_url_,this.messageUrlParams_||void 0)};
Sy.prototype.close=function(){this.JSC$19990_channel_.disconnect()};
Sy.prototype.send=function(G){var e=this.JSC$19990_channel_;if(typeof G==="string"){var r={};r.__data__=G;G=r}else this.sendRawJson_&&(r={},r.__data__=(0,_.dT)(G),G=r);e.JSC$19981_outgoingMaps_.push(new E0o(e.JSC$19981_nextMapId_++,G));e.state_==3&&jqY(e)};
Sy.prototype.disposeInternal=function(){this.JSC$19990_channel_.handler_=null;delete this.channelHandler_;this.JSC$19990_channel_.disconnect();delete this.JSC$19990_channel_;Sy.superClass_.disposeInternal.call(this)};
var COW=function(G){a7d.call(this);G.__headers__&&(this.headers=G.__headers__,this.statusCode=G.__status__,delete G.__headers__,delete G.__status__);var e=G.__sm__;e?this.data=(this.metadataKey=_.c2.getAnyKey(e))?_.c2.get(e,this.metadataKey):e:this.data=G};
_.Bz(COW,a7d);var u3H=function(G){Xh8.call(this);this.status=1;this.errorCode=G};
_.Bz(u3H,Xh8);var $D=function(G){this.JSC$19997_channel_=G};
_.Bz($D,IsW);$D.prototype.JSC$19987_channelOpened=function(){this.JSC$19997_channel_.dispatchEvent("w")};
$D.prototype.JSC$19987_channelHandleArray=function(G){this.JSC$19997_channel_.dispatchEvent(new COW(G))};
$D.prototype.JSC$19987_channelError=function(G){this.JSC$19997_channel_.dispatchEvent(new u3H(G))};
$D.prototype.JSC$19987_channelClosed=function(){this.JSC$19997_channel_.dispatchEvent("x")};
var n0H=function(G,e){this.transportChannel_=G;this.JSC$20000_channel_=e},mGY=function(G){return Qqm(G.JSC$20000_channel_).map(function(e){var r=G.transportChannel_;
e=e.map;"__data__"in e?(e=e.__data__,r=r.sendRawJson_?(0,_.utw)(e):e):r=e;return r})};
n0H.prototype.commit=function(G){this.JSC$20000_channel_.forwardChannelFlushedCallback_=G};var qL=function(G){c4a.dispatchEvent(new YDY(c4a,G))},c4a=new _.j7,YDY=function(G,e){_.qQ.call(this,"statevent",G);
this.stat=e};
_.K(YDY,_.qQ);var tC=function(G,e,r,Z,O){this.JSC$20005_channel_=G;this.JSC$20005_channelDebug_=e;this.sid_=r;this.JSC$20005_rid_=Z;this.JSC$20005_retryId_=O||1;this.timeout_=45E3;this.JSC$20005_eventHandler_=new _.tP(this);this.pollingTimer_=new _.qN;this.pollingTimer_.setInterval(250)};
_.V=tC.prototype;_.V.JSC$20007_extraHeaders_=null;_.V.JSC$20007_successful_=!1;_.V.JSC$20007_watchDogTimerId_=null;_.V.JSC$20007_watchDogTimeoutTime_=null;_.V.JSC$20007_requestStartTime_=null;_.V.JSC$20007_type_=null;_.V.JSC$20007_baseUri_=null;_.V.JSC$20007_requestUri_=null;_.V.JSC$20007_postData_=null;_.V.JSC$20007_xmlHttp_=null;_.V.JSC$20007_xmlHttpChunkStart_=0;_.V.trident_=null;_.V.JSC$20007_verb_=null;_.V.JSC$20007_lastError_=null;_.V.JSC$20007_lastStatusCode_=-1;_.V.sendClose_=!0;
_.V.JSC$20007_cancelled_=!1;_.V.JSC$20007_readyStateChangeThrottleMs_=0;_.V.JSC$20007_readyStateChangeThrottle_=null;var y4C=function(G,e){switch(G){case 0:return"Non-200 return code ("+e+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},A4H={},FcA={};
tC.prototype.setTimeout=function(G){this.timeout_=G};
var BFd=function(G,e,r){G.JSC$20007_type_=1;G.JSC$20007_baseUri_=_.Tj(e.clone());G.JSC$20007_postData_=r;G.decodeChunks_=!0;J4W(G,null)},xGW=function(G,e,r,Z,O){G.JSC$20007_type_=1;
G.JSC$20007_baseUri_=_.Tj(e.clone());G.JSC$20007_postData_=null;G.decodeChunks_=r;O&&(G.sendClose_=!1);J4W(G,Z)},J4W=function(G,e){G.JSC$20007_requestStartTime_=Date.now();
POd(G);G.JSC$20007_requestUri_=G.JSC$20007_baseUri_.clone();lS2(G.JSC$20007_requestUri_,"t",G.JSC$20005_retryId_);G.JSC$20007_xmlHttpChunkStart_=0;G.JSC$20007_xmlHttp_=G.JSC$20005_channel_.JSC$20014_createXhrIo(G.JSC$20005_channel_.JSC$20014_shouldUseSecondaryDomains()?e:null);G.JSC$20007_readyStateChangeThrottleMs_>0&&(G.JSC$20007_readyStateChangeThrottle_=new _.Zp((0,_.CB)(G.JSC$20007_xmlHttpHandler_,G,G.JSC$20007_xmlHttp_),G.JSC$20007_readyStateChangeThrottleMs_));G.JSC$20005_eventHandler_.listen(G.JSC$20007_xmlHttp_,
"readystatechange",G.JSC$20007_readyStateChangeHandler_);e=G.JSC$20007_extraHeaders_?_.c2.clone(G.JSC$20007_extraHeaders_):{};G.JSC$20007_postData_?(G.JSC$20007_verb_="POST",e["Content-Type"]="application/x-www-form-urlencoded",G.JSC$20007_xmlHttp_.send(G.JSC$20007_requestUri_,G.JSC$20007_verb_,G.JSC$20007_postData_,e)):(G.JSC$20007_verb_="GET",G.sendClose_&&!_.NS&&(e.Connection="close"),G.JSC$20007_xmlHttp_.send(G.JSC$20007_requestUri_,G.JSC$20007_verb_,null,e));G.JSC$20005_channel_.notifyServerReachabilityEvent(1);
e=G.JSC$20005_channelDebug_;var r=G.JSC$20007_postData_;if(r){var Z="";r=r.split("&");for(var O=0;O<r.length;O++){var M=r[O].split("=");if(M.length>1){var T=M[0];M=M[1];var E=T.split("_");Z=E.length>=2&&E[1]=="type"?Z+(T+"="+M+"&"):Z+(T+"=redacted&")}}}else Z=null;e.info("XMLHTTP REQ ("+G.JSC$20005_rid_+") [attempt "+G.JSC$20005_retryId_+"]: "+G.JSC$20007_verb_+"\n"+G.JSC$20007_requestUri_+"\n"+Z)};
tC.prototype.JSC$20007_readyStateChangeHandler_=function(G){G=G.target;var e=this.JSC$20007_readyStateChangeThrottle_;e&&_.sS(G)==3?(this.JSC$20005_channelDebug_.debug("Throttling readystatechange."),e.fire()):this.JSC$20007_xmlHttpHandler_(G)};
tC.prototype.JSC$20007_xmlHttpHandler_=function(G){try{if(G==this.JSC$20007_xmlHttp_)a:{var e=_.sS(this.JSC$20007_xmlHttp_),r=this.JSC$20007_xmlHttp_.JSC$9805_lastErrorCode_,Z=this.JSC$20007_xmlHttp_.getStatus();if(_.NS&&!_.Lp("420+")){if(e<4)break a}else if(e<3||e==3&&!this.JSC$20007_xmlHttp_.getResponseText())break a;this.JSC$20007_cancelled_||e!=4||r==7||(r==8||Z<=0?this.JSC$20005_channel_.notifyServerReachabilityEvent(3):this.JSC$20005_channel_.notifyServerReachabilityEvent(2));UG8(this);var O=
this.JSC$20007_xmlHttp_.getStatus();this.JSC$20007_lastStatusCode_=O;var M=this.JSC$20007_xmlHttp_.getResponseText();M||this.JSC$20005_channelDebug_.debug("No response text for uri "+this.JSC$20007_requestUri_+" status "+O);this.JSC$20007_successful_=O==200;this.JSC$20005_channelDebug_.info("XMLHTTP RESP ("+this.JSC$20005_rid_+") [ attempt "+this.JSC$20005_retryId_+"]: "+this.JSC$20007_verb_+"\n"+this.JSC$20007_requestUri_+"\n"+e+" "+O);if(this.JSC$20007_successful_){e==4&&zh2(this);if(this.decodeChunks_){for(G=
!0;!this.JSC$20007_cancelled_&&this.JSC$20007_xmlHttpChunkStart_<M.length;){var T=WcW(this,M);if(T==FcA){e==4&&(this.JSC$20007_lastError_=4,qL(15),G=!1);NFa(this.JSC$20005_channelDebug_,this.JSC$20005_rid_,null,"[Incomplete Response]");break}else if(T==A4H){this.JSC$20007_lastError_=4;qL(16);NFa(this.JSC$20005_channelDebug_,this.JSC$20005_rid_,M,"[Invalid Chunk]");G=!1;break}else NFa(this.JSC$20005_channelDebug_,this.JSC$20005_rid_,T,null),Lcd(this,T)}e==4&&M.length==0&&(this.JSC$20007_lastError_=
1,qL(17),G=!1);this.JSC$20007_successful_=this.JSC$20007_successful_&&G;G||(NFa(this.JSC$20005_channelDebug_,this.JSC$20005_rid_,M,"[Invalid Chunked Response]"),zh2(this),Gsa(this))}else NFa(this.JSC$20005_channelDebug_,this.JSC$20005_rid_,M,null),Lcd(this,M);this.JSC$20007_successful_&&!this.JSC$20007_cancelled_&&(e==4?this.JSC$20005_channel_.JSC$20014_onRequestComplete(this):(this.JSC$20007_successful_=!1,POd(this)))}else O==400&&M.indexOf("Unknown SID")>0?(this.JSC$20007_lastError_=3,qL(13),this.JSC$20005_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$20005_rid_+")")):(this.JSC$20007_lastError_=0,qL(14),this.JSC$20005_channelDebug_.warning("XMLHTTP Bad status "+O+" ("+this.JSC$20005_rid_+")")),zh2(this),Gsa(this)}else this.JSC$20005_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(E){this.JSC$20005_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var WcW=function(G,e){var r=G.JSC$20007_xmlHttpChunkStart_,Z=e.indexOf("\n",r);if(Z==-1)return FcA;r=Number(e.substring(r,Z));if(isNaN(r))return A4H;Z+=1;if(Z+r>e.length)return FcA;e=e.slice(Z,Z+r);G.JSC$20007_xmlHttpChunkStart_=Z+r;return e};
tC.prototype.cancel=function(){this.JSC$20007_cancelled_=!0;zh2(this)};
var POd=function(G){G.JSC$20007_watchDogTimeoutTime_=Date.now()+G.timeout_;eid(G,G.timeout_)},eid=function(G,e){if(G.JSC$20007_watchDogTimerId_!=null)throw Error("Tk");
G.JSC$20007_watchDogTimerId_=XZ((0,_.CB)(G.JSC$20007_onWatchDogTimeout_,G),e)},UG8=function(G){G.JSC$20007_watchDogTimerId_&&(_.O_.clearTimeout(G.JSC$20007_watchDogTimerId_),G.JSC$20007_watchDogTimerId_=null)};
tC.prototype.JSC$20007_onWatchDogTimeout_=function(){this.JSC$20007_watchDogTimerId_=null;var G=Date.now();G-this.JSC$20007_watchDogTimeoutTime_>=0?(this.JSC$20005_channelDebug_.info("TIMEOUT: "+this.JSC$20007_requestUri_),this.JSC$20007_type_!=2&&this.JSC$20005_channel_.notifyServerReachabilityEvent(3),zh2(this),this.JSC$20007_lastError_=2,qL(18),Gsa(this)):(this.JSC$20005_channelDebug_.warning("WatchDog timer called too early"),eid(this,this.JSC$20007_watchDogTimeoutTime_-G))};
var Gsa=function(G){G.JSC$20005_channel_.JSC$20014_isClosed()||G.JSC$20007_cancelled_||G.JSC$20005_channel_.JSC$20014_onRequestComplete(G)},zh2=function(G){UG8(G);
_.TX(G.JSC$20007_readyStateChangeThrottle_);G.JSC$20007_readyStateChangeThrottle_=null;G.pollingTimer_.stop();G.JSC$20005_eventHandler_.removeAll();if(G.JSC$20007_xmlHttp_){var e=G.JSC$20007_xmlHttp_;G.JSC$20007_xmlHttp_=null;e.abort();e.dispose()}G.trident_&&(G.trident_=null)};
tC.prototype.getLastError=function(){return this.JSC$20007_lastError_};
var Lcd=function(G,e){try{G.JSC$20005_channel_.JSC$20014_onRequestData(G,e),G.JSC$20005_channel_.notifyServerReachabilityEvent(4)}catch(r){}};var NFa=function(G,e,r,Z){var O=G.info;a:if(r&&r!="y2f%"){try{var M=JSON.parse(r);if(M)for(var T=0;T<M.length;T++)if(Array.isArray(M[T])){var E=M[T];if(!(E.length<2)){var b=E[1];if(Array.isArray(b)&&!(b.length<1)){var w=b[0];if(w!="noop"&&w!="stop")for(var q=1;q<b.length;q++)b[q]=""}}}var t=(0,_.dT)(M);break a}catch(g){G.debug("Exception parsing expected JS array - probably was not JS");t=r;break a}t=void 0}else t=r;O.call(G,"XMLHTTP TEXT ("+e+"): "+t+(Z?" "+Z:""))};
Ki.prototype.debug=function(G){this.info(G)};
Ki.prototype.info=function(){};
Ki.prototype.warning=function(){};var r5H=function(G,e){this.JSC$20012_channel_=G;this.JSC$20012_channelDebug_=e;this.JSC$20012_parser_=new jT8};
_.V=r5H.prototype;_.V.JSC$20014_extraHeaders_=null;_.V.JSC$20014_request_=null;_.V.receivedIntermediateResult_=!1;_.V.JSC$20014_path_=null;_.V.state_=null;_.V.JSC$20014_lastStatusCode_=-1;_.V.JSC$20014_hostPrefix_=null;_.V.blockedPrefix_=null;
_.V.connect=function(G){this.JSC$20014_path_=G;G=ZKY(this.JSC$20012_channel_,this.JSC$20014_path_);qL(3);Date.now();var e=this.JSC$20012_channel_.firstTestResults_;e!=null?(this.JSC$20014_hostPrefix_=e[0],(this.blockedPrefix_=e[1])?(this.state_=1,OKd(this)):(this.state_=2,MG8(this))):(lS2(G,"MODE","init"),this.JSC$20014_request_=new tC(this,this.JSC$20012_channelDebug_),this.JSC$20014_request_.JSC$20007_extraHeaders_=this.JSC$20014_extraHeaders_,xGW(this.JSC$20014_request_,G,!1,null,!0),this.state_=
0)};
var OKd=function(G){var e=VGo(G.JSC$20012_channel_,G.blockedPrefix_,"/mail/images/cleardot.gif");_.Tj(e);Pt8(e.toString(),5E3,(0,_.CB)(G.checkBlockedCallback_,G),3,2E3);G.notifyServerReachabilityEvent(1)};
r5H.prototype.checkBlockedCallback_=function(G){if(G)this.state_=2,MG8(this);else{qL(4);var e=this.JSC$20012_channel_;e.JSC$20015_channelDebug_.debug("Test Connection Blocked");e.JSC$20019_lastStatusCode_=e.connectionTest_.JSC$20014_lastStatusCode_;gO(e,9)}G&&this.notifyServerReachabilityEvent(2)};
var MG8=function(G){G.JSC$20012_channelDebug_.debug("TestConnection: starting stage 2");var e=G.JSC$20012_channel_.secondTestResults_;e!=null?(G.JSC$20012_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+e?"Buffered":"Unbuffered"),qL(5),e?(qL(11),hiW(G.JSC$20012_channel_,G,!1)):(qL(12),hiW(G.JSC$20012_channel_,G,!0))):(G.JSC$20014_request_=new tC(G,G.JSC$20012_channelDebug_),G.JSC$20014_request_.JSC$20007_extraHeaders_=G.JSC$20014_extraHeaders_,e=TDl(G.JSC$20012_channel_,
G.JSC$20014_hostPrefix_,G.JSC$20014_path_),qL(5),lS2(e,"TYPE","xmlhttp"),xGW(G.JSC$20014_request_,e,!1,G.JSC$20014_hostPrefix_,!1))};
_.V=r5H.prototype;_.V.JSC$20014_createXhrIo=function(G){return this.JSC$20012_channel_.JSC$20014_createXhrIo(G)};
_.V.abort=function(){this.JSC$20014_request_&&(this.JSC$20014_request_.cancel(),this.JSC$20014_request_=null);this.JSC$20014_lastStatusCode_=-1};
_.V.JSC$20014_isClosed=function(){return!1};
_.V.JSC$20014_onRequestData=function(G,e){this.JSC$20014_lastStatusCode_=G.JSC$20007_lastStatusCode_;if(this.state_==0)if(this.JSC$20012_channelDebug_.debug("TestConnection: Got data for stage 1"),e){try{var r=this.JSC$20012_parser_.parse(e)}catch(Z){DCo(this.JSC$20012_channel_,this);return}this.JSC$20014_hostPrefix_=r[0];this.blockedPrefix_=r[1]}else this.JSC$20012_channelDebug_.debug("TestConnection: Null responseText"),DCo(this.JSC$20012_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(qL(7),Date.now()):e=="11111"?(qL(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$20014_lastStatusCode_=200,this.JSC$20014_request_.cancel(),this.JSC$20012_channelDebug_.debug("Test connection succeeded; using streaming connection"),qL(12),hiW(this.JSC$20012_channel_,this,!0)):(qL(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.V.JSC$20014_onRequestComplete=function(){this.JSC$20014_lastStatusCode_=this.JSC$20014_request_.JSC$20007_lastStatusCode_;this.JSC$20014_request_.JSC$20007_successful_?this.state_==0?(this.JSC$20012_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,OKd(this)):(this.state_=2,MG8(this))):this.state_==2&&(this.JSC$20012_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$20012_channelDebug_.debug("Test connection succeeded; using streaming connection"),
qL(12),hiW(this.JSC$20012_channel_,this,!0)):(this.JSC$20012_channelDebug_.debug("Test connection failed; not using streaming"),qL(11),hiW(this.JSC$20012_channel_,this,!1))):(this.JSC$20012_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?qL(9):this.state_==2&&qL(10),DCo(this.JSC$20012_channel_,this,this.JSC$20014_request_.getLastError()))};
_.V.JSC$20014_shouldUseSecondaryDomains=function(){return this.JSC$20012_channel_.JSC$20014_shouldUseSecondaryDomains()};
_.V.isActive=function(){return this.JSC$20012_channel_.isActive()};
_.V.notifyServerReachabilityEvent=function(G){this.JSC$20012_channel_.notifyServerReachabilityEvent(G)};var lT=function(G,e,r){this.state_=1;this.JSC$20015_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$20015_channelDebug_=new Ki;this.JSC$20015_parser_=new jT8;this.firstTestResults_=G||null;this.secondTestResults_=e!=null?e:null;this.asyncTest_=r||!1},E9A=function(G,e){this.JSC$20017_mapId=G;
this.map=e;this.context=null};
_.V=lT.prototype;_.V.JSC$20019_extraHeaders_=null;_.V.JSC$20019_extraParams_=null;_.V.forwardChannelRequest_=null;_.V.JSC$20019_backChannelRequest_=null;_.V.JSC$20019_path_=null;_.V.JSC$20019_forwardChannelUri_=null;_.V.JSC$20019_backChannelUri_=null;_.V.JSC$20019_hostPrefix_=null;_.V.JSC$20019_nextRid_=0;_.V.JSC$20019_nextMapId_=0;_.V.handler_=null;_.V.JSC$20019_forwardChannelTimerId_=null;_.V.JSC$20019_backChannelTimerId_=null;_.V.JSC$20019_deadBackChannelTimerId_=null;_.V.connectionTest_=null;
_.V.useChunked_=null;_.V.JSC$20019_lastArrayId_=-1;_.V.JSC$20019_lastPostResponseArrayId_=-1;_.V.JSC$20019_lastStatusCode_=-1;_.V.JSC$20019_forwardChannelRetryCount_=0;_.V.JSC$20019_backChannelRetryCount_=0;_.V.JSC$20019_channelVersion_=8;var iKa={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},bKY=function(G,e,r,Z){_.qQ.call(this,"timingevent",G);this.size=e;this.rtt=r;this.retries=Z};
_.Bz(bKY,_.qQ);var v9C=function(G){_.qQ.call(this,"serverreachability",G)};
_.Bz(v9C,_.qQ);lT.prototype.connect=function(G,e,r,Z,O){this.JSC$20015_channelDebug_.debug("connect()");qL(0);this.JSC$20019_path_=e;this.JSC$20019_extraParams_=r||{};Z&&O!==void 0&&(this.JSC$20019_extraParams_.OSID=Z,this.JSC$20019_extraParams_.OAID=O);this.asyncTest_?(XZ((0,_.CB)(this.connectTest_,this,G),100),wb8(this)):this.connectTest_(G)};
lT.prototype.disconnect=function(){this.JSC$20015_channelDebug_.debug("disconnect()");$C2(this);if(this.state_==3){var G=this.JSC$20019_nextRid_++,e=this.JSC$20019_forwardChannelUri_.clone();_.eO(e,"SID",this.sid_);_.eO(e,"RID",G);_.eO(e,"TYPE","terminate");SNH(this,e);G=new tC(this,this.JSC$20015_channelDebug_,this.sid_,G);G.JSC$20007_type_=2;G.JSC$20007_baseUri_=_.Tj(e.clone());(new Image).src=G.JSC$20007_baseUri_.toString();G.JSC$20007_requestStartTime_=Date.now();POd(G)}hUB(this)};
lT.prototype.connectTest_=function(G){this.JSC$20015_channelDebug_.debug("connectTest_()");this.connectionTest_=new r5H(this,this.JSC$20015_channelDebug_);this.connectionTest_.JSC$20014_extraHeaders_=this.JSC$20019_extraHeaders_;this.connectionTest_.JSC$20012_parser_=this.JSC$20015_parser_;this.connectionTest_.connect(G)};
var wb8=function(G){G.JSC$20015_channelDebug_.debug("connectChannel_()");G.JSC$20019_ensureInState_(1,0);G.JSC$20019_forwardChannelUri_=ZKY(G,G.JSC$20019_path_);TZW(G)},$C2=function(G){G.connectionTest_&&(G.connectionTest_.abort(),G.connectionTest_=null);
G.JSC$20019_backChannelRequest_&&(G.JSC$20019_backChannelRequest_.cancel(),G.JSC$20019_backChannelRequest_=null);G.JSC$20019_backChannelTimerId_&&(_.O_.clearTimeout(G.JSC$20019_backChannelTimerId_),G.JSC$20019_backChannelTimerId_=null);DRY(G);G.forwardChannelRequest_&&(G.forwardChannelRequest_.cancel(),G.forwardChannelRequest_=null);G.JSC$20019_forwardChannelTimerId_&&(_.O_.clearTimeout(G.JSC$20019_forwardChannelTimerId_),G.JSC$20019_forwardChannelTimerId_=null)},Er2=function(G,e){if(G.state_==0)throw Error("Wk");
G.JSC$20015_outgoingMaps_.length==1E3&&G.JSC$20015_parser_.stringify(e);G.JSC$20015_outgoingMaps_.push(new E9A(G.JSC$20019_nextMapId_++,e));G.state_!=2&&G.state_!=3||TZW(G)};
lT.prototype.JSC$20014_isClosed=function(){return this.state_==0};
lT.prototype.getState=function(){return this.state_};
var TZW=function(G){G.forwardChannelRequest_||G.JSC$20019_forwardChannelTimerId_||(G.JSC$20019_forwardChannelTimerId_=XZ((0,_.CB)(G.JSC$20019_onStartForwardChannelTimer_,G),0),G.JSC$20019_forwardChannelRetryCount_=0)};
lT.prototype.JSC$20019_onStartForwardChannelTimer_=function(G){this.JSC$20019_forwardChannelTimerId_=null;iX8(this,G)};
var iX8=function(G,e){G.JSC$20015_channelDebug_.debug("startForwardChannel_");if(G.state_==1){if(!e){G.JSC$20015_channelDebug_.debug("open_()");G.JSC$20019_nextRid_=Math.floor(Math.random()*1E5);e=G.JSC$20019_nextRid_++;var r=new tC(G,G.JSC$20015_channelDebug_,"",e);r.JSC$20007_extraHeaders_=G.JSC$20019_extraHeaders_;var Z=bXd(G),O=G.JSC$20019_forwardChannelUri_.clone();_.eO(O,"RID",e);_.eO(O,"CVER","1");SNH(G,O);BFd(r,O,Z);G.forwardChannelRequest_=r;G.state_=2}}else G.state_==3&&(e?vr8(G,e):G.JSC$20015_outgoingMaps_.length==
0?G.JSC$20015_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):G.forwardChannelRequest_||(vr8(G),G.JSC$20015_channelDebug_.debug("startForwardChannel_ finished, sent request")))},vr8=function(G,e){if(e)if(G.JSC$20019_channelVersion_>6){G.JSC$20015_outgoingMaps_=G.pendingMaps_.concat(G.JSC$20015_outgoingMaps_);
G.pendingMaps_.length=0;var r=G.JSC$20019_nextRid_-1;e=bXd(G)}else r=e.JSC$20005_rid_,e=e.JSC$20007_postData_;else r=G.JSC$20019_nextRid_++,e=bXd(G);var Z=G.JSC$20019_forwardChannelUri_.clone();_.eO(Z,"SID",G.sid_);_.eO(Z,"RID",r);_.eO(Z,"AID",G.JSC$20019_lastArrayId_);SNH(G,Z);r=new tC(G,G.JSC$20015_channelDebug_,G.sid_,r,G.JSC$20019_forwardChannelRetryCount_+1);r.JSC$20007_extraHeaders_=G.JSC$20019_extraHeaders_;r.setTimeout(1E4+Math.round(1E4*Math.random()));G.forwardChannelRequest_=r;BFd(r,Z,
e)},SNH=function(G,e){G.handler_&&(G=G.handler_.JSC$20026_getAdditionalParams())&&_.c2.forEach(G,function(r,Z){_.eO(e,Z,r)})},bXd=function(G){var e=Math.min(G.JSC$20015_outgoingMaps_.length,1E3),r=["count="+e];
if(G.JSC$20019_channelVersion_>6&&e>0){var Z=G.JSC$20015_outgoingMaps_[0].JSC$20017_mapId;r.push("ofs="+Z)}else Z=0;for(var O={},M=0;M<e;O={mapId$jscomp$3:void 0},M++){O.mapId$jscomp$3=G.JSC$20015_outgoingMaps_[M].JSC$20017_mapId;var T=G.JSC$20015_outgoingMaps_[M].map;O.mapId$jscomp$3=G.JSC$20019_channelVersion_<=6?M:O.mapId$jscomp$3-Z;try{_.c2.forEach(T,function(E){return function(b,w){r.push("req"+E.mapId$jscomp$3+"_"+w+"="+encodeURIComponent(b))}}(O))}catch(E){r.push("req"+O.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}G.pendingMaps_=G.pendingMaps_.concat(G.JSC$20015_outgoingMaps_.splice(0,e));
return r.join("&")},wH8=function(G){G.JSC$20019_backChannelRequest_||G.JSC$20019_backChannelTimerId_||(G.JSC$20019_backChannelAttemptId_=1,G.JSC$20019_backChannelTimerId_=XZ((0,_.CB)(G.JSC$20019_onStartBackChannelTimer_,G),0),G.JSC$20019_backChannelRetryCount_=0)},SpW=function(G){if(G.JSC$20019_backChannelRequest_||G.JSC$20019_backChannelTimerId_||G.JSC$20019_backChannelRetryCount_>=3)return!1;
G.JSC$20015_channelDebug_.debug("Going to retry GET");G.JSC$20019_backChannelAttemptId_++;G.JSC$20019_backChannelTimerId_=XZ((0,_.CB)(G.JSC$20019_onStartBackChannelTimer_,G),$R2(G,G.JSC$20019_backChannelRetryCount_));G.JSC$20019_backChannelRetryCount_++;return!0};
lT.prototype.JSC$20019_onStartBackChannelTimer_=function(){this.JSC$20019_backChannelTimerId_=null;this.JSC$20015_channelDebug_.debug("Creating new HttpRequest");this.JSC$20019_backChannelRequest_=new tC(this,this.JSC$20015_channelDebug_,this.sid_,"rpc",this.JSC$20019_backChannelAttemptId_);this.JSC$20019_backChannelRequest_.JSC$20007_extraHeaders_=this.JSC$20019_extraHeaders_;this.JSC$20019_backChannelRequest_.JSC$20007_readyStateChangeThrottleMs_=0;var G=this.JSC$20019_backChannelUri_.clone();_.eO(G,
"RID","rpc");_.eO(G,"SID",this.sid_);_.eO(G,"CI",this.useChunked_?"0":"1");_.eO(G,"AID",this.JSC$20019_lastArrayId_);SNH(this,G);_.eO(G,"TYPE","xmlhttp");xGW(this.JSC$20019_backChannelRequest_,G,!0,this.JSC$20019_hostPrefix_,!1);this.JSC$20015_channelDebug_.debug("New Request created")};
var hiW=function(G,e,r){G.JSC$20015_channelDebug_.debug("Test Connection Finished");G.useChunked_=G.secondTestResults_==null?r:!G.secondTestResults_;G.JSC$20019_lastStatusCode_=e.JSC$20014_lastStatusCode_;G.asyncTest_||wb8(G)},DCo=function(G,e){G.JSC$20015_channelDebug_.debug("Test Connection Failed");
G.JSC$20019_lastStatusCode_=e.JSC$20014_lastStatusCode_;gO(G,2)};
lT.prototype.JSC$20014_onRequestData=function(G,e){if(this.state_!=0&&(this.JSC$20019_backChannelRequest_==G||this.forwardChannelRequest_==G))if(this.JSC$20019_lastStatusCode_=G.JSC$20007_lastStatusCode_,this.forwardChannelRequest_==G&&this.state_==3)if(this.JSC$20019_channelVersion_>7){try{var r=this.JSC$20015_parser_.parse(e)}catch(Z){r=null}if(Array.isArray(r)&&r.length==3)if(e=r,e[0]==0)a:if(this.JSC$20015_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$20019_backChannelTimerId_)this.JSC$20015_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$20019_backChannelRequest_)if(this.JSC$20019_backChannelRequest_.JSC$20007_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$20007_requestStartTime_)DRY(this),this.JSC$20019_backChannelRequest_.cancel(),this.JSC$20019_backChannelRequest_=null;else break a;else this.JSC$20015_channelDebug_.warning("We do not have a BackChannel established");SpW(this);qL(19)}else this.JSC$20019_lastPostResponseArrayId_=e[1],G=this.JSC$20019_lastPostResponseArrayId_-this.JSC$20019_lastArrayId_,0<
G&&(e=e[2],this.JSC$20015_channelDebug_.debug(e+" bytes (in "+G+" arrays) are outstanding on the BackChannel"),e<37500&&this.useChunked_&&this.JSC$20019_backChannelRetryCount_==0&&!this.JSC$20019_deadBackChannelTimerId_&&(this.JSC$20019_deadBackChannelTimerId_=XZ((0,_.CB)(this.JSC$20019_onBackChannelDead_,this),6E3)));else this.JSC$20015_channelDebug_.debug("Bad POST response data returned"),gO(this,11)}else e!="y2f%"&&(this.JSC$20015_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
gO(this,11));else this.JSC$20019_backChannelRequest_==G&&DRY(this),_.iF(e)||(G=this.JSC$20015_parser_.parse(e),this.onInput_(G))};
lT.prototype.JSC$20019_onBackChannelDead_=function(){this.JSC$20019_deadBackChannelTimerId_!=null&&(this.JSC$20019_deadBackChannelTimerId_=null,this.JSC$20019_backChannelRequest_.cancel(),this.JSC$20019_backChannelRequest_=null,SpW(this),qL(20))};
var DRY=function(G){G.JSC$20019_deadBackChannelTimerId_!=null&&(_.O_.clearTimeout(G.JSC$20019_deadBackChannelTimerId_),G.JSC$20019_deadBackChannelTimerId_=null)};
lT.prototype.JSC$20014_onRequestComplete=function(G){this.JSC$20015_channelDebug_.debug("Request complete");if(this.JSC$20019_backChannelRequest_==G){DRY(this);this.JSC$20019_backChannelRequest_=null;var e=2}else if(this.forwardChannelRequest_==G)this.forwardChannelRequest_=null,e=1;else return;this.JSC$20019_lastStatusCode_=G.JSC$20007_lastStatusCode_;if(this.state_!=0)if(G.JSC$20007_successful_)if(e==1){e=G.JSC$20007_postData_?G.JSC$20007_postData_.length:0;G=Date.now()-G.JSC$20007_requestStartTime_;
var r=c4a;r.dispatchEvent(new bKY(r,e,G,this.JSC$20019_forwardChannelRetryCount_));TZW(this);this.handler_&&this.handler_.JSC$20026_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else wH8(this);else{r=G.getLastError();if(r==3||r==7||r==0&&this.JSC$20019_lastStatusCode_>0)this.JSC$20015_channelDebug_.debug("Not retrying due to error type");else{this.JSC$20015_channelDebug_.debug("Maybe retrying, last error: "+y4C(r,this.JSC$20019_lastStatusCode_));var Z;if(Z=e==1)this.forwardChannelRequest_||
this.JSC$20019_forwardChannelTimerId_||this.state_==1||this.JSC$20019_forwardChannelRetryCount_>=2?Z=!1:(this.JSC$20015_channelDebug_.debug("Going to retry POST"),this.JSC$20019_forwardChannelTimerId_=XZ((0,_.CB)(this.JSC$20019_onStartForwardChannelTimer_,this,G),$R2(this,this.JSC$20019_forwardChannelRetryCount_)),this.JSC$20019_forwardChannelRetryCount_++,Z=!0);if(Z||e==2&&SpW(this))return;this.JSC$20015_channelDebug_.debug("Exceeded max number of retries")}this.JSC$20015_channelDebug_.debug("Error: HTTP request failed");
switch(r){case 1:gO(this,5);break;case 4:gO(this,10);break;case 3:gO(this,6);break;case 7:gO(this,12);break;default:gO(this,2)}}};
var $R2=function(G,e){var r=5E3+Math.floor(Math.random()*1E4);G.isActive()||(G.JSC$20015_channelDebug_.debug("Inactive channel"),r*=2);return r*e};
lT.prototype.onInput_=function(G){for(var e=0;e<G.length;e++){var r=G[e];this.JSC$20019_lastArrayId_=r[0];r=r[1];this.state_==2?r[0]=="c"?(this.sid_=r[1],this.JSC$20019_hostPrefix_=r[2],r=r[3],r!=null?this.JSC$20019_channelVersion_=r:this.JSC$20019_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$20026_channelOpened(),this.JSC$20019_backChannelUri_=TDl(this,this.JSC$20019_hostPrefix_,this.JSC$20019_path_),wH8(this)):r[0]=="stop"&&gO(this,7):this.state_==3&&(r[0]=="stop"?gO(this,7):
r[0]!="noop"&&this.handler_&&this.handler_.JSC$20026_channelHandleArray(r),this.JSC$20019_backChannelRetryCount_=0)}};
lT.prototype.JSC$20019_ensureInState_=function(G){if(!_.Y4(arguments,this.state_))throw Error("Xk`"+this.state_);};
var gO=function(G,e){G.JSC$20015_channelDebug_.info("Error code "+e);if(e==2||e==9){var r=null;G.handler_&&(r=null);var Z=(0,_.CB)(G.testGoogleComCallback_,G);r||(r=new _.nO("//www.google.com/images/cleardot.gif"),_.Tj(r));xo8(r.toString(),1E4,Z)}else qL(2);G.onError_(e)};
lT.prototype.testGoogleComCallback_=function(G){G?(this.JSC$20015_channelDebug_.info("Successfully pinged google.com"),qL(2)):(this.JSC$20015_channelDebug_.info("Failed to ping google.com"),qL(1),this.onError_(8))};
lT.prototype.onError_=function(G){this.JSC$20015_channelDebug_.debug("HttpChannel: error - "+G);this.state_=0;this.handler_&&this.handler_.JSC$20026_channelError(G);hUB(this);$C2(this)};
var hUB=function(G){G.state_=0;G.JSC$20019_lastStatusCode_=-1;if(G.handler_)if(G.pendingMaps_.length==0&&G.JSC$20015_outgoingMaps_.length==0)G.handler_.JSC$20026_channelClosed();else{G.JSC$20015_channelDebug_.debug("Number of undelivered maps, pending: "+G.pendingMaps_.length+", outgoing: "+G.JSC$20015_outgoingMaps_.length);var e=_.Ai(G.pendingMaps_),r=_.Ai(G.JSC$20015_outgoingMaps_);G.pendingMaps_.length=0;G.JSC$20015_outgoingMaps_.length=0;G.handler_.JSC$20026_channelClosed(e,r)}},ZKY=function(G,
e){e=VGo(G,null,e);
G.JSC$20015_channelDebug_.debug("GetForwardChannelUri: "+e);return e},TDl=function(G,e,r){e=VGo(G,G.JSC$20014_shouldUseSecondaryDomains()?e:null,r);
G.JSC$20015_channelDebug_.debug("GetBackChannelUri: "+e);return e},VGo=function(G,e,r){var Z=_.LB(r);
if(Z.JSC$10041_domain_!="")e&&_.Gj(Z,e+"."+Z.JSC$10041_domain_),_.eg(Z,Z.JSC$10041_port_);else{var O=window.location;Z=wvo(O.protocol,e?e+"."+O.hostname:O.hostname,+O.port,r)}G.JSC$20019_extraParams_&&_.c2.forEach(G.JSC$20019_extraParams_,function(M,T){_.eO(Z,T,M)});
_.eO(Z,"VER",G.JSC$20019_channelVersion_);SNH(G,Z);return Z};
lT.prototype.JSC$20014_createXhrIo=function(G){if(G)throw Error("Uk");G=new _.ob;G.JSC$9805_withCredentials_=!1;return G};
lT.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
lT.prototype.notifyServerReachabilityEvent=function(G){var e=c4a;e.dispatchEvent(new v9C(e,G))};
lT.prototype.JSC$20014_shouldUseSecondaryDomains=function(){return!1};
new lFW;var qp8=function(){};
_.V=qp8.prototype;_.V.JSC$20026_channelOpened=function(){};
_.V.JSC$20026_channelHandleArray=function(){};
_.V.JSC$20026_channelSuccess=function(){};
_.V.JSC$20026_channelError=function(){};
_.V.JSC$20026_channelClosed=function(){};
_.V.JSC$20026_getAdditionalParams=function(){return{}};
_.V.isActive=function(){return!0};var tId=function(G){G.front_.length===0&&(G.front_=G.back_,G.front_.reverse(),G.back_=[])};
_.V=zLY.prototype;_.V.enqueue=function(G){this.back_.push(G)};
_.V.peek=function(){tId(this);return _.pf(this.front_)};
_.V.getCount=function(){return this.front_.length+this.back_.length};
_.V.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.V.clear=function(){this.front_=[];this.back_=[]};
_.V.contains=function(G){return _.Y4(this.front_,G)||_.Y4(this.back_,G)};
_.V.remove=function(G){var e=this.front_;var r=Array.prototype.lastIndexOf.call(e,G,e.length-1);r>=0?(_.sys(e,r),e=!0):e=!1;return e||_.yp(this.back_,G)};
_.V.getValues=function(){for(var G=[],e=this.front_.length-1;e>=0;--e)G.push(this.front_[e]);e=this.back_.length;for(var r=0;r<e;++r)G.push(this.back_[r]);return G};var RO=function(G){this.JSC$20030_map_=new _.v9;this.size=0;G&&this.addAll(G)},gr8=function(G){var e=typeof G;
return e=="object"&&G||e=="function"?"o"+_.zS(G):e.charAt(0)+G};
_.V=RO.prototype;_.V.getCount=function(){return this.JSC$20030_map_.size};
_.V.add=function(G){this.JSC$20030_map_.set(gr8(G),G);this.size=this.JSC$20030_map_.size};
_.V.addAll=function(G){G=_.NQ(G);for(var e=G.length,r=0;r<e;r++)this.add(G[r]);this.size=this.JSC$20030_map_.size};
_.V.removeAll=function(G){G=_.NQ(G);for(var e=G.length,r=0;r<e;r++)this.remove(G[r]);this.size=this.JSC$20030_map_.size};
_.V.delete=function(G){G=this.JSC$20030_map_.remove(gr8(G));this.size=this.JSC$20030_map_.size;return G};
_.V.remove=function(G){return this.delete(G)};
_.V.clear=function(){this.JSC$20030_map_.clear();this.size=0};
_.V.isEmpty=function(){return this.JSC$20030_map_.size===0};
_.V.has=function(G){return this.JSC$20030_map_.containsKey(gr8(G))};
_.V.contains=function(G){return this.JSC$20030_map_.containsKey(gr8(G))};
_.V.getValues=function(){return this.JSC$20030_map_.getValues()};
_.V.values=function(){return this.JSC$20030_map_.values()};
_.V.clone=function(){return new RO(this)};
_.V.equals=function(G){return this.getCount()==b7B(G)&&lAd(this,G)};
var lAd=function(G,e){var r=b7B(e);if(G.getCount()>r)return!1;!(e instanceof RO)&&r>5&&(e=new RO(e));return vv2(G,function(Z){var O=e;return O.contains&&typeof O.contains=="function"?O.contains(Z):O.containsValue&&typeof O.containsValue=="function"?O.containsValue(Z):_.FN(O)||typeof O==="string"?_.Y4(O,Z):_.c2.containsValue(O,Z)})};
RO.prototype.__iterator__=function(){return this.JSC$20030_map_.__iterator__(!1)};
RO.prototype[Symbol.iterator]=function(){return this.values()};var RU2={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(G){return(this._clampValue(G)-this.min)/(this.max-this.min)},
_clampValue:function(G){return Math.min(this.max,Math.max(this.min,this._calcStep(G)))},
_calcStep:function(G){G=parseFloat(G);if(!this.step)return G;G=Math.round((G-this.min)/this.step);return this.step<1?G/(1/this.step)+this.min:G*this.step+this.min},
_validateValue:function(){var G=this._clampValue(this.value);this.value=this.oldValue=isNaN(G)?this.oldValue:G;return this.value!==G},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var jko;var aAV;_.ts({_template:function(){if(aAV!==void 0)return aAV;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;jko===void 0&&(jko=document.createElement("template"));var Z=jko;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return aAV=G},
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(){_.DE(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(G){G.keyCode===27&&(G.preventDefault(),this.close())},
_track:function(G){if(!this.persistent&&!this.disableSwipe)switch(G.preventDefault(),G.detail.state){case "start":this._trackStart(G);break;case "track":this._trackMove(G);break;case "end":this._trackEnd(G)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var G=this.$.contentContainer.getBoundingClientRect();this._savedWidth=G.width;this._translateOffset=this.position==="left"?G.left:G.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(G){this._trackDetails&&(this._translateDrawer(G.detail.dx+this._translateOffset),this._trackDetails.push({dx:G.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(G){if(this._trackDetails){var e=G.detail.dx+this._translateOffset,r=this.getWidth();e=this.position==="left"?e>=0||e<=-r:e<=0||e>=r;if(!e){var Z=this._trackDetails;this._trackDetails=null;this._flingDrawer(G,Z);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}r/=2;G.detail.dx<-r?this.opened=this.position==="right":G.detail.dx>r&&(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(G,e){for(var r=Date.now(),Z=r-100,O,M=0,T=e.length-1;M<=T;){var E=M+T>>1,b=e[E];b.timeStamp>=Z?(O=b,T=E-1):M=E+1}return O?(G.detail.dx-O.dx)/(r-O.timeStamp||1):0},
_flingDrawer:function(G,e){e=this._calculateVelocity(G,e);if(!(Math.abs(e)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;G=G.detail.dx+this._translateOffset;var r=this.getWidth(),Z=this.position==="left",O=e>0;O?(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*(!O&&Z?-(G+r):O&&!Z?r-G:-G)/e;this._styleTransitionDuration(e);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,e)}},
_styleTransitionDuration:function(G){this.style.transitionDuration=G+"ms";this.$.contentContainer.style.transitionDuration=G+"ms";this.$.scrim.style.transitionDuration=G+"ms"},
_styleTransitionTimingFunction:function(G){this.$.contentContainer.style.transitionTimingFunction=G;this.$.scrim.style.transitionTimingFunction=G},
_translateDrawer:function(G){var e=this.getWidth();this.position==="left"?(G=Math.max(-e,Math.min(G,0)),this.$.scrim.style.opacity=1+G/e):(G=Math.max(0,Math.min(G,e)),this.$.scrim.style.opacity=1-G/e);this.translate3d(G+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var G=this._drawerState;G===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;G!==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=""),G!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var G=_.i4(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"])');G.length>0?(this._firstTabStop=G[0],this._lastTabStop=G[G.length-1]):
this._lastTabStop=this._firstTabStop=null;(G=this.getAttribute("tabindex"))&&parseInt(G,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(G){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||G.keyCode!==9||(G.shiftKey?this._firstTabStop&&_.i4(G).localTarget===this._firstTabStop&&(G.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.i4(G).localTarget===this._lastTabStop&&(G.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(G,e){this.toggleClass("visible",G&&!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 XHV;var KjB;_.ts({_template:function(){if(KjB!==void 0)return KjB;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;XHV===void 0&&(XHV=document.createElement("template"));var Z=XHV;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return KjB=G},
is:"tp-yt-paper-progress",behaviors:[RU2],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(G){this.toggleClass("indeterminate",G,this.$.primaryProgress)},
_transformProgress:function(G,e){G.style.transform=G.style.webkitTransform="scaleX("+e/100+")"},
_mainRatioChanged:function(G){this._transformProgress(this.$.primaryProgress,G)},
_progressChanged:function(G,e,r,Z,O){G=this._clampValue(G);e=this._clampValue(e);var M=this._calcRatio(G)*100,T=this._calcRatio(e)*100;this._setSecondaryRatio(M);this._transformProgress(this.$.secondaryProgress,M);this._transformProgress(this.$.primaryProgress,T);this.secondaryProgress=G;O?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",e);this.setAttribute("aria-valuemin",r);this.setAttribute("aria-valuemax",Z)},
_disabledChanged:function(G){this.setAttribute("aria-disabled",G?"true":"false")},
_hideSecondaryProgress:function(G){return G===0}});var fAd;var kZW;var HXC=function(){};
_.V=HXC.prototype;_.V.registered=function(){};
_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V._tapHandler=function(){};
_.V._focusChanged=function(){};
_.V._detectKeyboardFocus=function(){};
_.V._userActivate=function(){};
_.V._upHandler=function(){};
_.V._spaceKeyDownHandler=function(){};
_.V._spaceKeyUpHandler=function(){};
_.V._asyncClick=function(){};
_.V._pressedChanged=function(){};
_.V._ariaActiveAttributeChanged=function(){};
_.V._activeChanged=function(){};
_.V._controlStateChanged=function(){};
_.V._changedButtonState=function(){};
_.V._focusBlurHandler=function(){};
_.V._disabledChanged=function(){};
_.V._changedControlState=function(){};
_.V._buttonStateChanged=function(){};
_.V._downHandler=function(){};
_.V.ensureRipple=function(){};
_.V.getRipple=function(){};
_.V.hasRipple=function(){};
_.V._noinkChanged=function(){};
_.V._calcRatio=function(){};
_.V._clampValue=function(){};
_.V._calcStep=function(){};
_.V._validateValue=function(){};
_.V._update=function(){};
_.V._setImmediateValue=function(){};
_.V._setExpand=function(){};
_.V._setDragging=function(){};
_.V._setTransiting=function(){};
_.V._setMarkers=function(){};
_.V._setPressed=function(){};
_.V._setPointerDown=function(){};
_.V._setReceivedFocusFromKeyboard=function(){};
_.V._setFocused=function(){};
_.V._setRatio=function(){};
HXC=_.ts({_template:function(){if(kZW!==void 0)return kZW;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;fAd===void 0&&(fAd=document.createElement("template"));var Z=fAd;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return kZW=G},
is:"tp-yt-paper-slider",behaviors:[_.fS,_.o4,_.NcE,RU2],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&&_.BJ(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(G,e,r){this.setAttribute("aria-valuemin",e);this.setAttribute("aria-valuemax",r);this.setAttribute("aria-valuenow",G);this._positionKnob(this._calcRatio(G)*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(G){this._setImmediateValue(this._calcStep(this._calcKnobPosition(G)));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(G){return(this.max-this.min)*G/100+this.min},
_onTrack:function(G){G.stopPropagation();switch(G.detail.state){case "start":this._trackStart(G);break;case "track":this._trackX(G);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(G){this.dragging||this._trackStart(G);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,G.detail.dx*(this._isRTL?-1:1)));G=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(G);G=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(G+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var G=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;G.transform=G.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(G){this._expandKnob();G.preventDefault();this.focus()},
_bartrack:function(G){this._allowBarEvent(G)&&this._onTrack(G)},
_barclick:function(G){this._w=this.$.sliderBar.offsetWidth;var e=this.$.sliderBar.getBoundingClientRect();e=(G.detail.x-e.left)/this._w*100;this._isRTL&&(e=100-e);var r=this.ratio;this._setTransiting(!0);this._positionKnob(e);r===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
G.preventDefault();this.focus()},
_bardown:function(G){this._allowBarEvent(G)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(G))},
_knobTransitionEnd:function(G){G.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(G,e,r,Z){Z||this._setMarkers([]);e=Math.round((r-e)/this.step);e>G&&(e=G);if(e<0||!isFinite(e))e=0;this._setMarkers(Array(e))},
_mergeClasses:function(G){return Object.keys(G).filter(function(e){return G[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(G){return!this.ignoreBarTouch||G.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(G){this._isRTL?this._incrementKey(G):this._decrementKey(G)},
_rightKey:function(G){this._isRTL?this._decrementKey(G):this._incrementKey(G)},
_incrementKey:function(G){this.disabled||(G.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),G.preventDefault())},
_decrementKey:function(G){this.disabled||(G.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),G.preventDefault())},
_changeValue:function(G){this.value=G.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(G){G.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.WZE._createRipple.call(this)},
_focusedChanged:function(G){G&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=G?"":"none",this._ripple.holdDown=G)}});var dRW;var orW;var jy=null,skV=function(){};
_.V=skV.prototype;_.V.fit=function(){};
_.V._discoverInfo=function(){};
_.V.resetFit=function(){};
_.V.refit=function(){};
_.V.position=function(){};
_.V.constrain=function(){};
_.V._sizeDimension=function(){};
_.V.__sizeDimension=function(){};
_.V.center=function(){};
_.V.__getNormalizedRect=function(){};
_.V.__getOffscreenArea=function(){};
_.V.__getPosition=function(){};
_.V.notifyResize=function(){};
_.V.assignParentResizable=function(){};
_.V.stopResizeNotificationsFor=function(){};
_.V._subscribeIronResize=function(){};
_.V._unsubscribeIronResize=function(){};
_.V.resizerShouldNotify=function(){};
_.V._onDescendantIronResize=function(){};
_.V._fireResize=function(){};
_.V._onIronRequestResizeNotifications=function(){};
_.V._parentResizableChanged=function(){};
_.V._notifyDescendant=function(){};
_.V._requestResizeNotifications=function(){};
_.V._findParent=function(){};
_.V.toggle=function(){};
_.V.open=function(){};
_.V.close=function(){};
_.V.cancel=function(){};
_.V.invalidateTabbables=function(){};
_.V._ensureSetup=function(){};
_.V._canceledChanged=function(){};
_.V._withBackdropChanged=function(){};
_.V._prepareRenderOpened=function(){};
_.V._finishRenderOpened=function(){};
_.V._finishRenderClosed=function(){};
_.V._preparePositioning=function(){};
_.V._finishPositioning=function(){};
_.V._applyFocus=function(){};
_.V._onCaptureClick=function(){};
_.V._onCaptureFocus=function(){};
_.V._onCaptureEsc=function(){};
_.V._onCaptureTab=function(){};
_.V._onIronResize=function(){};
_.V._onNodesChange=function(){};
_.V.__ensureFirstLastFocusables=function(){};
_.V.__openedChanged=function(){};
_.V.__deraf=function(){};
_.V.__updateScrollObservers=function(){};
_.V.__addScrollListeners=function(){};
_.V.__removeScrollListeners=function(){};
_.V.__isValidScrollAction=function(){};
_.V.__onCaptureScroll=function(){};
_.V.__saveScrollPosition=function(){};
_.V.__restoreScrollPosition=function(){};
_.V._setCanceled=function(){};
skV=_.ts({_template:function(){if(orW!==void 0)return orW;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;dRW===void 0&&(dRW=document.createElement("template"));var Z=dRW;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);return orW=G},
is:"tp-yt-paper-toast",behaviors:[_.Nw],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(){_.fV._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.x6.requestAvailability()},
show:function(G){typeof G=="string"&&(G={text:G});for(var e in G)e.indexOf("_")===0?_.fV._warn('The property "'+e+'" is private and was not set.'):e in this?this[e]=G[e]:_.fV._warn('The property "'+e+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(G){G&&G.target===this&&G.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(jy&&jy!==this&&jy.close(),jy=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):jy===this&&(jy=null);_.W9._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(G){this.positionTarget=G},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var QkA=new _.L9("disablePersonalizationAction");var Bcl=new _.L9("showDmaConsentFlowCommand");var xuB=new _.L9("showMmgNoticeCommand");var IAo=new _.L9("saveConsentAction");var pHW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.cY(G)};
_.K(pHW,_.Tq);var CKa=_.xZp(pHW);var uSd=new _.L9("updateTopbarAvatarAction");var nr8=new _.L9("channelHandleValidationResultRenderer");var mRW=new _.L9("generateHandleFromNameResultRenderer");var cEW=new _.L9("channelHandleInputRenderer");var YpV=new _.L9("copyLinkRenderer");var yEC=new _.L9("timedCommand");var AEB=new _.L9("clearCookieAction");var FjW=new _.L9("getMultiPageMenuAction");var JEA=new _.L9("addToGuideSectionAction"),BZo=new _.L9("removeFromGuideSectionAction");var xR8=new _.L9("updateNotificationsUnseenCountAction");var PKC=new _.L9("resetChannelUnreadCountCommand");var URY=new _.L9("resetSubscriptionsUnreadDotCommand");var zUo=new _.L9("selectLanguageCommand");var h3W=new _.L9("sendFeedbackAction");var WjY=new _.L9("uploadImageToScottyCommand");var NZ2=new _.L9("registerPromoCommand");var Lja=new _.L9("setPushNotificationsEnabledCommand");var G5o=new _.L9("desktopTopbarRenderer");var eql=new _.L9("surveyFollowUpRenderer");var rJA=new _.L9("handlesClaimingRadioOptionRenderer");var ZwA=new _.L9("hotkeyDialogRenderer");var OwW=new _.L9("modifyReportFormCommand");var MPV=new _.L9("accountLinkCommand");var VPa=new _.L9("accountUnlinkCommand");var hqo=new _.L9("logAccountLinkingEventCommand");var T5W=new _.L9("guideCollapsibleEntryRenderer");var D2Y=new _.L9("guideDownloadsEntryRenderer");var Z2V=new _.L9("guideEntryRenderer");var EEY=new _.L9("getLocationCommand");var iw8=new _.L9("locationCollectionCommand");var bw8=new _.L9("storiesItemViewModel");var vEo=new _.L9("addToRemoteQueueAction");var wFY=new _.L9("insertInRemoteQueueAction");var $22=new _.L9("removeFromRemoteQueueAction");var SU8=new _.L9("notificationRenderer");var oSo=new _.L9("localWatchHistoryCommand");var qUH=new _.L9("pdgBuyFlowHeaderRenderer");var tPa=new _.L9("pdgColorSliderRenderer");var gEV=new _.L9("pdgCommentOptionRenderer");var l5a=new _.L9("pdgCommentPreviewRenderer");var RqC=new _.L9("superVodSelectableItemButtonRenderer");var ju8=new _.L9("switchButtonRenderer");var a5W=new _.L9("upsellDialogRenderer");var XFd=new _.L9("feedbackQuestionRenderer"),K7B=new _.L9("feedbackOptionRenderer");var f5H=new _.L9("sponsorshipsTierRenderer"),k5Y=new _.L9("sponsorshipsPromotionChannelRenderer");var HwA=new _.L9("simpleSurveyMessageRenderer");var hFW=new _.L9("invokeInstrumentManagerAction");var d2o=new _.L9("logYpcFlowDismissCommand");var oE2=new _.L9("logYpcFlowStartCommand");var su8=new _.L9("unlimitedCreateFamilyEndpoint");var QuW=new _.L9("iconBadgeRenderer");var s$C=new _.L9("collaborativePlaylistVisibilityValidationRule");var I5C=function(G){_.qQ.call(this,"channelMessage");this.message=G};
_.K(I5C,_.qQ);var pF2=function(G){_.qQ.call(this,"channelError");this.error=G};
_.K(pF2,_.qQ);var CXo={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",NO_DISCONNECT_TOAST:"ndt",CONNECT_TOAST_ONCE_PER_SESSION:"ctops"},uzH={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},nEV={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},m2B={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},cJY={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var aO=function(G){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 _.v9;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;G&&(this.id=G.id||G.name,this.name=G.name,this.clientName=G.clientName?G.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=G.app,this.type=G.type||"REMOTE_CONTROL",this.username=G.user||"",this.avatar=G.userAvatarUri||"",this.obfuscatedGaiaId=G.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=G.ownerObfuscatedGaiaId||"",this.castUserId=G.castUserId||"",this.theme=G.theme||"u",YUW(this,G.capabilities||""),yJ8(this,
G.compatibleSenderThemes||""),AJ2(this,G.experiments||""),this.remoteControllerUrl=G.remoteControllerUrl||"",this.localChannelEncryptionKey=G.localChannelEncryptionKey||"",this.deviceContext=G.deviceContext,this.brand=G.brand||"",this.model=G.model||"",this.year=G.year||0,this.os=G.os||"",this.osVersion=G.osVersion||"",this.chipset=G.chipset||"",this.mdxDialServerType=G.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=G.pairingType||"unknown",G=G.deviceInfo)&&(G=JSON.parse(G),this.brand=
G.brand||"",this.model=G.model||"",this.year=G.year||0,this.os=G.os||"",this.osVersion=G.osVersion||"",this.chipset=G.chipset||"",this.clientName=G.clientName?G.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=G.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
aO.prototype.copy=function(){var G={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&&(G.brand=this.brand);
this.model&&(G.model=this.model);this.year&&(G.year=this.year);this.os&&(G.os=this.os);this.osVersion&&(G.osVersion=this.osVersion);this.chipset&&(G.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(G.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(G.mdxDialServerType=this.mdxDialServerType);G=new aO(G);G.connected=this.connected;G.remoteControllerUrl=this.remoteControllerUrl;G.localChannelEncryptionKey=this.localChannelEncryptionKey;G.deviceContext=
this.deviceContext;G.castUserId=this.castUserId;return G};
aO.prototype.equals=function(G){return G?this.id==G.id:!1};
var YUW=function(G,e){G.capabilities.clear();_.Pz(e.split(","),_.VU(_.c2.contains,CXo)).forEach(function(r){G.capabilities.add(r)})},yJ8=function(G,e){G.compatibleSenderThemes.clear();
_.Pz(e.split(","),_.VU(_.c2.contains,uzH)).forEach(function(r){G.compatibleSenderThemes.add(r)})},AJ2=function(G,e){G.experiments.clear();
e.split(",").forEach(function(r){G.experiments.add(r)})};_.Bz(fi,_.pB);_.V=fi.prototype;_.V.JSC$20066_onTick_=function(){this.JSC$20064_interval_=Math.min(3E5,this.JSC$20064_interval_*2);this.JSC$20066_listener_();this.nextTickTime_&&this.start()};
_.V.start=function(){var G=this.JSC$20064_interval_+15E3*Math.random(),e=this.delay_;e.isActive()||e.start(G);this.nextTickTime_=Date.now()+G};
_.V.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.V.isActive=function(){return this.delay_.isActive()};
_.V.reset=function(){this.delay_.stop();this.JSC$20064_interval_=5E3};_.Bz(kL,qp8);_.V=kL.prototype;_.V.subscribe=function(G,e,r){return this.pubsub_.subscribe(G,e,r)};
_.V.unsubscribe=function(G,e,r){return this.pubsub_.unsubscribe(G,e,r)};
_.V.unsubscribeByKey=function(G){return this.pubsub_.unsubscribeByKey(G)};
_.V.publish=function(G,e){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.V.dispose=function(){this.JSC$20067_disposed_||(this.JSC$20067_disposed_=!0,_.TX(this.pubsub_),this.disconnect(),_.TX(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$20067_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.Nz({})})};
_.V.isDisposed=function(){return this.JSC$20067_disposed_};
_.V.connect=function(G,e,r){var Z=this,O,M,T,E;return _.D(function(b){if(b.nextAddress==1)return _.Km(b,2),Z.useAsyncBrowserChannelHandler_?b.yield(Z.connectPromise_,2):b.jumpTo(2);_.Xa(b);if(Z.JSC$20067_disposed_||Z.JSC$20067_channel_&&Z.JSC$20067_channel_.getState()==2)return b.return();Z.sCookie_="";Z.reconnectTimer_.stop();Z.connectionParams_=G||null;Z.connectUi_=e||0;O=Z.JSC$20067_pathPrefix_+"/test";M=Z.JSC$20067_pathPrefix_+"/bind";T=new lT(r?r.firstTestResults:null,r?r.secondTestResults:null,
Z.enableAsyncTest_);if(E=Z.JSC$20067_channel_)E.handler_=null;T.handler_=Z;Z.JSC$20067_channel_=T;if(Z.useAsyncBrowserChannelHandler_)return Z.connectPromise_=F7B(Z).then(function(){return JJl(Z,O,M,E,r)}),b.return(Z.connectPromise_.then(function(){Z.connectPromise_=_.Nz()}));
JJl(Z,O,M,E,r);return _.fm(b,0)})};
var JJl=function(G,e,r,Z,O){B58(G);if(G.JSC$20067_channel_){var M=_.xZ("ID_TOKEN"),T=G.JSC$20067_channel_.JSC$20019_extraHeaders_||{};M?T["x-youtube-identity-token"]=M:delete T["x-youtube-identity-token"];G.JSC$20067_channel_.JSC$20019_extraHeaders_=T}x2V(G);Z?(Z.getState(),G.JSC$20067_channel_.connect(e,r,G.defaultQueryParams_,Z.sid_,Z.JSC$20019_lastArrayId_)):O?G.JSC$20067_channel_.connect(e,r,G.defaultQueryParams_,O.sessionId,O.arrayId):G.JSC$20067_channel_.connect(e,r,G.defaultQueryParams_)};
kL.prototype.disconnect=function(G){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.Nz())}finally{this.disconnectUi_=G||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),B58(this),this.JSC$20067_channel_&&(this.JSC$20067_channel_.getState()==3&&iX8(this.JSC$20067_channel_),this.JSC$20067_channel_.disconnect()),this.disconnectUi_=0}};
kL.prototype.sendMessage=function(G,e){var r=this,Z;return _.D(function(O){switch(O.nextAddress){case 1:_.Km(O,2);if(!r.useAsyncBrowserChannelHandler_){O.jumpTo(2);break}return O.yield(r.connectPromise_,2);case 2:_.Xa(O);if(r.JSC$20067_disposed_)return O.return();Z={_sc:G};e&&_.c2.extend(Z,e);if(r.reconnectTimer_.isActive()||(r.JSC$20067_channel_?r.JSC$20067_channel_.getState():0)==2){r.JSC$20067_pendingMessages_.push(Z);O.jumpTo(6);break}if(!r.isChannelOpened()){O.jumpTo(6);break}_.Km(O,8);if(!r.useAsyncBrowserChannelHandler_||
PXV(r,G)){O.jumpTo(8);break}return O.yield(F7B(r),8);case 8:_.Xa(O,0,0,1);r.isChannelOpened()&&(PXV(r,G)||x2V(r),B58(r),Er2(r.JSC$20067_channel_,Z));_.fm(O,6,1);break;case 6:_.fm(O,0)}})};
var PXV=function(G,e){return G.enableMdxAuthForConnectionOnly_?!0:G.disableMdxAuthForAdMessages_?Object.values(nEV).includes(e):G.disableMdxAuthForNonPlaybackMessages_?!Object.values(m2B).includes(e):G.disableMdxAuthForShortsMessages_?Object.values(cJY).includes(e):!1};
kL.prototype.JSC$20026_channelOpened=function(){this.isInitialReconnectTimer_?(_.TX(this.reconnectTimer_),this.reconnectTimer_=new fi(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1):this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$20067_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)U2B(this);else{var G=this.JSC$20067_pendingMessages_;this.JSC$20067_pendingMessages_=[];var e=G.length;x2V(this);zqV(this,G,e);W7a(this)}else W7a(this)};
var U2B=function(G){var e,r;_.D(function(Z){if(Z.nextAddress==1)return _.Km(Z,2),Z.yield(F7B(G),2);_.Xa(Z);e=G.JSC$20067_pendingMessages_;G.JSC$20067_pendingMessages_=[];r=e.length;zqV(G,e,r);W7a(G);return _.fm(Z,0)})},zqV=function(G,e,r){for(var Z=0;Z<r;++Z)Er2(G.JSC$20067_channel_,e[Z]);
W7a(G)},W7a=function(G){G.publish("handlerOpened");
G.JSC$20067_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.V=kL.prototype;_.V.JSC$20026_channelError=function(G){var e=G==2&&this.JSC$20067_channel_.JSC$20019_lastStatusCode_==401;G==4||e||this.reconnectTimer_.start();this.publish("handlerError",G,e);e=Object.keys(iKa).find(function(r){return iKa[r]===G});
this.JSC$20067_channelErrorCounter.increment("BROWSER_CHANNEL",e!=null?e:"UNKNOWN")};
_.V.JSC$20026_channelClosed=function(G,e){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(e)for(var r=e.length,Z=0;Z<r;++Z){var O=e[Z].map;O&&this.JSC$20067_pendingMessages_.push(O)}this.JSC$20067_channelClosedCounter.increment("BROWSER_CHANNEL");G&&this.pendingMapsOnClosedCounter.JSC$9941_streamzService.JSC$9796_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",G.length);e&&this.undeliveredMapsOnClosedCounter.JSC$9944_streamzService.JSC$9796_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
e.length)};
_.V.JSC$20026_channelSuccess=function(G,e){e!=null&&G!=null&&this.channelMessageSentCounter.increment()};
_.V.JSC$20026_getAdditionalParams=function(){var G={v:2};this.sCookie_&&(G.gsessionid=this.sCookie_);this.connectUi_!=0&&(G.ui=""+this.connectUi_);this.disconnectUi_!=0&&(G.ui=""+this.disconnectUi_);this.connectionParams_&&_.c2.extend(G,this.connectionParams_);return G};
_.V.JSC$20026_channelHandleArray=function(G){G[0]=="S"?this.sCookie_=G[1]:G[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$20067_channel_.disconnect()):this.publish("handlerMessage",new WvW(G[0],G[1]));this.JSC$20067_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.V.isChannelOpened=function(){return!!this.JSC$20067_channel_&&this.JSC$20067_channel_.getState()==3};
var B58=function(G){if(G.JSC$20067_channel_){var e=G.JSC$20067_getXsrfToken_(),r=G.JSC$20067_channel_.JSC$20019_extraHeaders_||{};e?r["x-youtube-lounge-xsrf-token"]=e:delete r["x-youtube-lounge-xsrf-token"];G.JSC$20067_channel_.JSC$20019_extraHeaders_=r}},F7B=function(G){if(G.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.Nz();
if(!G.enableCachedUpdateAuthorizationHeader_)return N58(G);G.updateAuthorizationHeaderPromise_===null&&(G.updateAuthorizationHeaderPromise_=N58(G));return G.updateAuthorizationHeaderPromise_},N58=function(G){return _.fY(G.getAuthorizationHeader_().then(function(e){L72(G,e)}).thenCatch(function(){}),function(){G.updateAuthorizationHeaderPromise_=null})},L72=function(G,e){if(G.JSC$20067_channel_){var r=G.JSC$20067_channel_.JSC$20019_extraHeaders_||{};
e&&Object.keys(e).length>0?r=Object.assign({},r,e):delete r.Authorization;G.JSC$20067_channel_.JSC$20019_extraHeaders_=r}},x2V=function(G){G.getAuthorizationHeaderSync_&&!G.useAsyncBrowserChannelHandler_&&L72(G,G.getAuthorizationHeaderSync_())};
_.V=kL.prototype;_.V.setLoungeToken=function(G){(this.defaultQueryParams_.loungeIdToken=G)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$20067_channel_){var e=this.JSC$20067_channel_.JSC$20019_extraHeaders_||{};G?e["X-YouTube-LoungeId-Token"]=G:delete e["X-YouTube-LoungeId-Token"];this.JSC$20067_channel_.JSC$20019_extraHeaders_=e}};
_.V.getDeviceId=function(){return this.defaultQueryParams_.id};
_.V.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.V.reconnect=function(){var G=this.reconnectTimer_;G.delay_.fire();G.start()};
_.V.safeReconnect_=function(){var G=this.JSC$20067_channel_,e=0;G.JSC$20019_backChannelRequest_&&e++;G.forwardChannelRequest_&&e++;e==0&&this.connect(this.connectionParams_,this.connectUi_)};var pi=function(G,e){var r=G.basePath;G.supportCors&&(r=G.scheme+"://"+G.domain+G.port+G.basePath);return _.Vi(r+e,{})};
HR.prototype.sendRequest=function(G,e,r,Z,O,M,T){G={format:M?"RAW":"JSON",method:G,context:this,timeout:5E3,withCredentials:!!T,onSuccess:_.VU(this.JSC$20073_onSuccess_,Z,!M),onError:_.VU(this.onError_,O),onTimeout:_.VU(this.JSC$20073_onTimeout_,O)};r&&(G.postParams=r,G.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.fr(e,G)};
HR.prototype.JSC$20073_onSuccess_=function(G,e,r,Z){e?G(Z):G({text:r.responseText})};
HR.prototype.onError_=function(G,e){G(Error("Yk`"+e.status))};
HR.prototype.JSC$20073_onTimeout_=function(G){G(Error("Zk"))};var oX=function(G,e){return!!e&&(G.id==e||G.uuid==e)},G7a=function(G){return{name:G.name,
screenId:G.id,loungeToken:G.token,dialId:G.uuid,screenIdType:G.idType,screenIdSecret:G.secret}},en2=function(G){return new dy(G)},rMl=function(G){return Array.isArray(G)?_.Yf(G,en2):[]},hp8=function(G){if(!G)return"null";
var e=G.token?".."+G.token.slice(-6):"-",r=G.uuid?".."+G.uuid.slice(-6):"-",Z=G.secret?".."+G.secret.slice(-6):"-";return'{name:"'+G.name+'",id:'+G.id.substr(0,6)+"..,token:"+(e+",uuid:"+r+",idType:"+G.idType+",secret:")+(Z+"}")},p42=function(G){return Array.isArray(G)?"["+_.Yf(G,hp8).join(",")+"]":"null"};var w4W="",IX=null;var a9W=function(G,e){_.j7.call(this);var r=this;this.handler=G();this.handler.subscribe("handlerOpened",this.JSC$20080_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(Z,O){r.onError(O)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=e};
_.K(a9W,_.j7);_.V=a9W.prototype;_.V.connect=function(G,e,r){this.handler.connect(G,e,r)};
_.V.disconnect=function(G){this.handler.disconnect(G)};
_.V.reconnect=function(){this.handler.reconnect()};
_.V.getDeviceId=function(){return this.handler.getDeviceId()};
_.V.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.V.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.V.JSC$20080_onOpened=function(){this.dispatchEvent("channelOpened");var G=this.handler,e=this.currentScreenId;_.$N("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!G.JSC$20067_channel_.useChunked_,sessionId:G.JSC$20067_channel_.sid_,arrayId:G.JSC$20067_channel_.JSC$20019_lastArrayId_});_.$N("yt-remote-session-screen-id",e);G=T7A();e=D$W();_.Y4(G,e)||G.push(e);viW(G);bx8()};
_.V.onClosed=function(){this.dispatchEvent("channelClosed")};
_.V.onMessage=function(G){this.dispatchEvent(new I5C(G))};
_.V.onError=function(G){this.dispatchEvent(new pF2(G?1:0))};
_.V.sendMessage=function(G,e){this.handler.sendMessage(G,e)};
_.V.setLoungeToken=function(G){this.handler.setLoungeToken(G)};
_.V.dispose=function(){this.handler.dispose()};var jNW=function(G,e,r){var Z=this;r=r===void 0?function(){return""}:r;
var O=O===void 0?new pko:O;var M=M===void 0?new _.H_:M;this.pathPrefix=G;this.defaultQueryParams=e;this.getXsrfToken=r;this.JSC$20083_pubsub=M;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new fi(function(){var T;((T=Z.channel)==null?void 0:DG8((new n0H(T,T.JSC$19990_channel_)).JSC$20000_channel_.forwardChannelRequestPool_))===0&&Z.connect(Z.connectionParams,Z.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20083_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20083_channelOpenedCounter=new N8Y;this.JSC$20083_channelClosedCounter=new Lvm;this.JSC$20083_channelMessageReceivedCounter=new ed8;this.JSC$20083_channelErrorCounter=new rZo};
jNW.prototype.connect=function(G,e){G=G===void 0?{}:G;e=e===void 0?0:e;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=G,this.connectUi=e,ZHA(this),(G=_.xZ("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=G: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 Sy(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,OHV(this))};
var OHV=function(G){_.w2(G.channel,"w",function(){G.channelState=3;G.reconnectTimer.reset();G.connectionParams=null;G.connectUi=0;for(var e=_.h(G.nonAckedMessagesOnChannelClosed),r=e.next();!r.done;r=e.next())r=r.value,G.channel&&G.channel.send(r);G.nonAckedMessagesOnChannelClosed=[];G.publish("webChannelOpened");G.JSC$20083_channelOpenedCounter.increment("WEB_CHANNEL")});
_.w2(G.channel,"x",function(){G.channelState=0;G.reconnectTimer.isActive()||G.publish("webChannelClosed");var e,r=(e=G.channel)==null?void 0:mGY(new n0H(e,e.JSC$19990_channel_));r&&(G.nonAckedMessagesOnChannelClosed=[].concat(_.mY(r)));G.JSC$20083_channelClosedCounter.increment("WEB_CHANNEL")});
_.w2(G.channel,"z",function(e){var r=e.data;r[0]==="gracefulReconnect"?(G.reconnectTimer.start(),G.channel&&G.channel.close()):G.publish("webChannelMessage",new WvW(r[0],r[1]));G.lastStatusCode=e.statusCode;G.JSC$20083_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.w2(G.channel,"y",function(){G.lastStatusCode===401||G.reconnectTimer.start();G.publish("webChannelError");G.JSC$20083_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.V=jNW.prototype;_.V.disconnect=function(G){this.disconnectUi=G===void 0?0:G;this.reconnectTimer.stop();ZHA(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.V.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.V.reconnect=function(){var G=this.reconnectTimer;G.delay_.fire();G.start()};
_.V.sendMessage=function(G,e){this.channel&&(ZHA(this),G=Object.assign({},{_sc:G},e),this.channel.send(G))};
_.V.setLoungeToken=function(G){G||this.reconnectTimer.stop();G?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=G:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var ZHA=function(G){var e=G.getXsrfToken();e?G.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=e:delete G.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.V=jNW.prototype;_.V.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.V.publish=function(G){return this.JSC$20083_pubsub.publish.apply(this.JSC$20083_pubsub,[G].concat(_.mY(_.Bw.apply(1,arguments))))};
_.V.subscribe=function(G,e,r){return this.JSC$20083_pubsub.subscribe(G,e,r)};
_.V.unsubscribe=function(G,e,r){return this.JSC$20083_pubsub.unsubscribe(G,e,r)};
_.V.unsubscribeByKey=function(G){return this.JSC$20083_pubsub.unsubscribeByKey(G)};
_.V.dispose=function(){this.JSC$20083_disposed||(this.JSC$20083_disposed=!0,_.TX(this.JSC$20083_pubsub),this.disconnect(),_.TX(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.V.isDisposed=function(){return this.JSC$20083_disposed};var RdA=function(G){_.j7.call(this);this.webChannelService=G();this.webChannelService.subscribe("webChannelOpened",this.JSC$20091_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.K(RdA,_.j7);_.V=RdA.prototype;_.V.connect=function(G,e){this.webChannelService.connect(G,e)};
_.V.disconnect=function(G){this.webChannelService.disconnect(G)};
_.V.reconnect=function(){this.webChannelService.reconnect()};
_.V.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.V.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.V.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.V.JSC$20091_onOpened=function(){this.dispatchEvent("channelOpened")};
_.V.onClosed=function(){this.dispatchEvent("channelClosed")};
_.V.onMessage=function(G){this.dispatchEvent(new I5C(G))};
_.V.onError=function(){this.dispatchEvent(new pF2(this.webChannelService.lastStatusCode===401?1:0))};
_.V.sendMessage=function(G,e){this.webChannelService.sendMessage(G,e)};
_.V.setLoungeToken=function(G){this.webChannelService.setLoungeToken(G)};
_.V.dispose=function(){this.webChannelService.dispose()};var I9C=Date.now(),Ci=null,sNY=Array(50),mp=-1,QN8=!1;_.Bz(cR,_.Ar);cR.prototype.getScreens=function(){return this.screens};
cR.prototype.contains=function(G){return!!hdl(this.screens,G)};
cR.prototype.get=function(G){return G?sh(this.screens,G):null};
var Mba=function(G,e){var r=G.get(e.uuid)||G.get(e.id);if(r)return G=r.name,r.id=e.id||r.id,r.name=e.name,r.token=e.token,r.uuid=e.uuid||r.uuid,r.name!=G;G.screens.push(e);return!0},Vbo=function(G,e){var r=G.screens.length!=e.length;
G.screens=_.Pz(G.screens,function(M){return!!hdl(e,M)});
for(var Z=e.length,O=0;O<Z;O++)r=Mba(G,e[O])||r;return r},hna=function(G,e){var r=G.screens.length;
G.screens=_.Pz(G.screens,function(Z){return!(Z||e?!Z!=!e?0:Z.id==e.id:1)});
return G.screens.length<r};
cR.prototype.info=function(G){uS(this.JSC$20092_logName_,G)};var TAl=function(G,e,r,Z,O){_.Ar.call(this);this.JSC$20095_http_=G;this.pairingCode_=e;this.deviceId_=r;this.friendlyName_=Z;this.enableShortLivedLoungeToken_=O;this.pollIndex_=0;this.JSC$20095_xhr_=null;this.JSC$20095_timer_=NaN};
_.K(TAl,_.Ar);_.V=TAl.prototype;_.V.start=function(){!this.JSC$20095_xhr_&&isNaN(this.JSC$20095_timer_)&&this.poll_()};
_.V.stop=function(){this.JSC$20095_xhr_&&(this.JSC$20095_xhr_.abort(),this.JSC$20095_xhr_=null);isNaN(this.JSC$20095_timer_)||(_.X_(this.JSC$20095_timer_),this.JSC$20095_timer_=NaN)};
_.V.disposeInternal=function(){this.stop();_.Ar.prototype.disposeInternal.call(this)};
_.V.poll_=function(){this.JSC$20095_timer_=NaN;this.JSC$20095_xhr_=_.fr(pi(this.JSC$20095_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.CB)(this.JSC$20097_onSuccess_,this),onError:(0,_.CB)(this.onError_,this),onTimeout:(0,_.CB)(this.JSC$20097_onTimeout_,this)})};
_.V.JSC$20097_onSuccess_=function(G,e){this.JSC$20095_xhr_=null;G=e.screen||{};G.dialId=this.deviceId_;G.name=this.friendlyName_;e=-1;this.enableShortLivedLoungeToken_&&G.shortLivedLoungeToken&&G.shortLivedLoungeToken.value&&G.shortLivedLoungeToken.refreshIntervalMs&&(G.screenIdType="shortLived",G.loungeToken=G.shortLivedLoungeToken.value,e=G.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new dy(G),e)};
_.V.onError_=function(G){this.JSC$20095_xhr_=null;G.status&&G.status==404?this.pollIndex_>=Dcl.length?this.publish("pairingFailed",Error("$k")):(G=Dcl[this.pollIndex_],this.JSC$20095_timer_=_.jm((0,_.CB)(this.poll_,this),G),this.pollIndex_++):this.publish("pairingFailed",Error("al`"+G.status))};
_.V.JSC$20097_onTimeout_=function(){this.JSC$20095_xhr_=null;this.publish("pairingFailed",Error("bl"))};
var Dcl=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.Bz(yV,cR);_.V=yV.prototype;_.V.start=function(){YL(this)&&this.publish("screenChange");!_.SF("yt-remote-lounge-token-expiration")&&EXo(this);_.X_(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.jm((0,_.CB)(this.start,this),1E4)};
_.V.add=function(G,e){YL(this);Mba(this,G);iH2(this,!1);this.publish("screenChange");e(G);G.token||EXo(this)};
_.V.remove=function(G,e){var r=YL(this);hna(this,G)&&(iH2(this,!1),r=!0);e(G);r&&this.publish("screenChange")};
_.V.updateName=function(G,e,r,Z){var O=YL(this),M=this.get(G.id);M?(M.name!=e&&(M.name=e,iH2(this,!1),O=!0),r(G)):Z(Error("cl"));O&&this.publish("screenChange")};
_.V.disposeInternal=function(){_.X_(this.loungeTokenRefreshTimer_);yV.superClass_.disposeInternal.call(this)};
var EXo=function(G){if(G.screens.length){var e=_.Yf(G.screens,function(Z){return Z.id}),r=pi(G.JSC$20099_http_,"/pairing/get_lounge_token_batch");
G.JSC$20099_http_.sendRequest("POST",r,{screen_ids:e.join(",")},(0,_.CB)(G.handleLoungeTokens_,G),(0,_.CB)(G.handleLoungeTokenError_,G))}};
yV.prototype.handleLoungeTokens_=function(G){YL(this);var e=this.screens.length;G=G&&G.screens||[];for(var r=G.length,Z=0;Z<r;++Z){var O=G[Z],M=this.get(O.screenId);M&&(M.token=O.loungeToken,--e)}iH2(this,!e);e&&uS(this.JSC$20092_logName_,"Missed "+e+" lounge tokens.")};
yV.prototype.handleLoungeTokenError_=function(G){uS(this.JSC$20092_logName_,"Requesting lounge tokens failed: "+G)};
var YL=function(G){if(_.R("deprecate_pair_servlet_enabled"))return Vbo(G,[]);var e=rMl(Szm());e=_.Pz(e,function(r){return!r.uuid});
return Vbo(G,e)},iH2=function(G,e){tMo(_.Yf(G.screens,G7a));
e&&qzo()};var XI=function(G,e){_.Ar.call(this);this.getScreensToCheck_=e;e=(e=_.SF("yt-remote-online-screen-ids")||"")?e.split(","):[];for(var r={},Z=this.getScreensToCheck_(),O=Z.length,M=0;M<O;++M){var T=Z[M].id;r[T]=_.Y4(e,T)}this.screenIdSet_=r;this.JSC$20102_http_=G;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;bH2("Initialized with "+(0,_.dT)(this.screenIdSet_))};
_.K(XI,_.Ar);XI.prototype.isOnline=function(G){return!!this.screenIdSet_[G]};
XI.prototype.start=function(){var G=parseInt(_.SF("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.JV()-144E5<G?0:G)?vXW(this):(this.fastCheckEndTime_=_.JV()+3E5,_.$N("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
XI.prototype.isEmpty=function(){return _.c2.isEmpty(this.screenIdSet_)};
XI.prototype.update=function(){bH2("Updating availability on schedule.");var G=this.getScreensToCheck_(),e=_.c2.filter(this.screenIdSet_,function(r,Z){return r&&!!sh(G,Z)},this);
wr8(this,e)};
var $cH=function(G,e,r){var Z=pi(G.JSC$20102_http_,"/pairing/get_screen_availability");G.JSC$20102_http_.sendRequest("POST",Z,{lounge_token:e.token},(0,_.CB)(function(O){O=O.screens||[];for(var M=O.length,T=0;T<M;++T)if(O[T].loungeToken==e.token){r(O[T].status=="online");return}r(!1)},G),(0,_.CB)(function(){r(!1)},G))};
XI.prototype.disposeInternal=function(){_.X_(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.Ar.prototype.disposeInternal.call(this)};
var wr8=function(G,e){a:if(_.c2.getCount(e)!=_.c2.getCount(G.screenIdSet_))var r=!1;else{r=_.c2.getKeys(e);for(var Z=r.length,O=0;O<Z;++O)if(!G.screenIdSet_[r[O]]){r=!1;break a}r=!0}r||(bH2("Updated online screens: "+(0,_.dT)(G.screenIdSet_)),G.screenIdSet_=e,G.publish("screenChange"));S8B(G)},vXW=function(G){isNaN(G.refreshTimer_)||_.X_(G.refreshTimer_);
G.refreshTimer_=_.jm((0,_.CB)(G.requestScreenAvailability_,G),G.fastCheckEndTime_>0&&G.fastCheckEndTime_<_.JV()?2E4:1E4)};
XI.prototype.requestScreenAvailability_=function(){_.X_(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var G=q88(this);if(_.c2.getCount(G)){var e=pi(this.JSC$20102_http_,"/pairing/get_screen_availability"),r={lounge_token:_.c2.getKeys(G).join(",")};this.currentRequest_=this.JSC$20102_http_.sendRequest("POST",e,r,(0,_.CB)(this.onScreenAvailability_,this,G),(0,_.CB)(this.onScreenAvailabilityError_,this))}else wr8(this,{}),vXW(this)};
XI.prototype.onScreenAvailability_=function(G,e){this.currentRequest_=null;var r=_.c2.getKeys(q88(this));if(_.WA(r,_.c2.getKeys(G))){e=e.screens||[];r={};for(var Z=e.length,O=0;O<Z;++O)r[G[e[O].loungeToken]]=e[O].status=="online";wr8(this,r);vXW(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
XI.prototype.onScreenAvailabilityError_=function(G){this.warn_("Screen availability failed: "+G);this.currentRequest_=null;vXW(this)};
var bH2=function(G){uS("OnlineScreenService",G)};
XI.prototype.warn_=function(G){uS("OnlineScreenService",G)};
var q88=function(G){var e={};_.rR(G.getScreensToCheck_(),function(r){r.token?e[r.token]=r.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return e},S8B=function(G){G=_.c2.getKeys(_.c2.filter(G.screenIdSet_,function(e){return e}));
G.sort(_.CFA);G.length?_.$N("yt-remote-online-screen-ids",G.join(","),60):_.qv("yt-remote-online-screen-ids")};_.Bz(An,cR);_.V=An.prototype;_.V.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.V.add=function(G,e,r){this.localScreenService_.add(G,e,r)};
_.V.remove=function(G,e,r){this.localScreenService_.remove(G,e,r);this.onlineScreenService_.update()};
_.V.updateName=function(G,e,r,Z){this.localScreenService_.contains(G)?this.localScreenService_.updateName(G,e,r,Z):(G="Updating name of unknown screen: "+G.name,uS(this.JSC$20092_logName_,G),Z(Error(G)))};
_.V.getScreens=function(G){return G?this.screens:Ym8(this.screens,_.Pz(this.automaticScreens_,function(e){return!this.contains(e)},this))};
_.V.JSC$20107_getOnlineScreens=function(){return _.Pz(this.getScreens(!0),function(G){return this.onlineScreenService_.isOnline(G.id)},this)};
var gXa=function(G,e,r,Z,O,M){G.info("getAutomaticScreenByIds "+r+" / "+e);r||(r=G.deviceToScreenId_[e]);var T=G.getScreens(),E=r?sh(T,r):null;r&&(G.disableAutomaticScreenCache_||E)||(E=sh(T,e));if(E){E.uuid=e;var b=KZ(G,E);$cH(G.onlineScreenService_,b,function(w){O(w?b:null)})}else r?tbY(G,r,(0,_.CB)(function(w){var q=KZ(this,new dy({name:Z,
screenId:r,loungeToken:w,dialId:e||""}));$cH(this.onlineScreenService_,q,function(t){O(t?q:null)})},G),M):O(null)};
An.prototype.JSC$20107_getScreenByPollingPairingCode=function(G,e,r,Z,O,M){var T=this;this.info("getDialScreenByPairingCode "+G+" / "+e);var E=new TAl(this.JSC$20105_http_,G,e,r,Z);E.subscribe("pairingComplete",function(b,w){_.TX(E);O(KZ(T,b),w)});
E.subscribe("pairingFailed",function(b){_.TX(E);M(b)});
E.start();return(0,_.CB)(E.stop,E)};
var lnd=function(G,e){for(var r=G.screens.length,Z=0;Z<r;++Z)if(G.screens[Z].name==e)return G.screens[Z];return null};
An.prototype.JSC$20107_getScreenByPairingCode=function(G,e,r,Z){_.fr(pi(this.JSC$20105_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:G},timeout:5E3,onSuccess:(0,_.CB)(function(O,M){O=new dy(M.screen||{});if(!O.name||lnd(this,O.name)){a:{M=O.name;for(var T=2,E=e(M,T);lnd(this,E);){T++;if(T>20)break a;E=e(M,T)}M=E}O.name=M}r(KZ(this,O))},this),
onError:(0,_.CB)(function(O){Z(Error("dl`"+O.status))},this),
onTimeout:(0,_.CB)(function(){Z(Error("el"))},this)})};
var Rn2=function(G,e,r){$cH(G.onlineScreenService_,e,r)};
An.prototype.disposeInternal=function(){_.TX(this.localScreenService_);_.TX(this.onlineScreenService_);An.superClass_.disposeInternal.call(this)};
var tbY=function(G,e,r,Z){G.info("requestLoungeToken_ for "+e);var O={postParams:{screen_ids:e},method:"POST",context:G,onSuccess:function(M,T){M=T&&T.screens||[];M[0]&&M[0].screenId==e?r(M[0].loungeToken):Z(Error("fl"))},
onError:function(){Z(Error("gl"))}};
_.fr(pi(G.JSC$20105_http_,"/pairing/get_lounge_token_batch"),O)},jmo=function(G){G.screens=G.localScreenService_.getScreens();
for(var e=_.c2.transpose(G.deviceToScreenId_),r=G.screens.length,Z=0;Z<r;++Z){var O=G.screens[Z];O.uuid=e[O.id]||""}G.info("Updated manual screens: "+p42(G.screens))};
An.prototype.handleScreenChange_=function(){jmo(this);this.publish("screenChange");this.onlineScreenService_.update()};
var CnB=function(G){anB(G);G.localScreenService_=new yV(G.JSC$20105_http_);G.localScreenService_.subscribe("screenChange",(0,_.CB)(G.handleScreenChange_,G));jmo(G);G.disableAutomaticScreenCache_||(G.automaticScreens_=rMl(_.SF("yt-remote-automatic-screen-cache")||[]));anB(G);G.info("Initializing automatic screens: "+p42(G.automaticScreens_));G.onlineScreenService_=new XI(G.JSC$20105_http_,(0,_.CB)(G.getScreens,G,!0));G.onlineScreenService_.subscribe("screenChange",(0,_.CB)(function(){this.publish("onlineScreenChange")},
G))},KZ=function(G,e){var r=G.get(e.id);
r?(r.uuid=e.uuid,e=r):((r=sh(G.automaticScreens_,e.uuid))?(r.id=e.id,r.token=e.token,e=r):G.automaticScreens_.push(e),G.disableAutomaticScreenCache_||Xr8(G));anB(G);G.deviceToScreenId_[e.uuid]=e.id;_.$N("yt-remote-device-id-map",G.deviceToScreenId_,31536E3);return e},Xr8=function(G){G=_.Pz(G.automaticScreens_,function(e){return e.idType!="shortLived"});
_.$N("yt-remote-automatic-screen-cache",_.Yf(G,G7a))},anB=function(G){G.deviceToScreenId_=_.SF("yt-remote-device-id-map")||{}};
An.prototype.dispose=An.prototype.dispose;_.Bz(FZ,_.Ar);var fZ=function(G,e){G.screen_=e;G.publish("sessionScreen",G.screen_)},Kxa=function(G,e){G.screen_&&(G.screen_.token=e,KZ(G.JSC$20109_screenService_,G.screen_));
G.publish("sessionScreen",G.screen_)};
FZ.prototype.onSessionStopped=function(G){this.isDisposed()||(G&&(kD(this,""+G),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
FZ.prototype.info=function(G){uS(this.JSC$20109_logName_,G)};
var kD=function(G,e){uS(G.JSC$20109_logName_,e)};
FZ.prototype.JSC$20111_getCastSession=function(){return null};
FZ.prototype.setDisplayStatus=function(G){var e=this.receiver_;G?(e.displayStatus=new chrome.cast.ReceiverDisplayStatus(G,[]),e.displayStatus.showStop=!0):e.displayStatus=null;chrome.cast.setReceiverDisplayStatus(e,(0,_.CB)(function(){this.info("Updated receiver status for "+e.friendlyName+": "+G)},this),(0,_.CB)(function(){kD(this,"Failed to update receiver status for: "+e.friendlyName)},this))};
FZ.prototype.disposeInternal=function(){this.setDisplayStatus("");FZ.superClass_.disposeInternal.call(this)};var HT=function(G,e,r){FZ.call(this,G,e,"CastSession");var Z=this;this.config_=r;this.JSC$20114_session_=null;this.JSC$20114_boundSessionUpdate_=(0,_.CB)(this.JSC$20116_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.CB)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.jm(function(){fnW(Z,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20114_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20114_isInitLoungeToken_=!1;this.JSC$20114_lastLoungeTokenRefreshError_="unknown"};
_.K(HT,FZ);_.V=HT.prototype;
_.V.setCastSession=function(G){if(this.JSC$20114_session_){if(this.JSC$20114_session_==G)return;kD(this,"Overriding cast session with new session object");k7W(this);this.JSC$20114_isInitLoungeToken_=!1;this.JSC$20114_lastLoungeTokenRefreshError_="unknown";this.JSC$20114_session_.removeUpdateListener(this.JSC$20114_boundSessionUpdate_);this.JSC$20114_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20114_session_=G;this.JSC$20114_session_.addUpdateListener(this.JSC$20114_boundSessionUpdate_);this.JSC$20114_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);HHA(this,"getMdxSessionStatus")};
_.V.launchWithParams=function(G){this.info("launchWithParams no-op for Cast: "+(0,_.dT)(G))};
_.V.stop=function(){if(this.JSC$20114_session_)this.JSC$20114_session_.stop((0,_.CB)(function(){this.onSessionStopped()},this),(0,_.CB)(function(){this.onSessionStopped(Error("hl"))},this));
else this.onSessionStopped(Error("il"))};
_.V.setDisplayStatus=function(){};
_.V.disposeInternal=function(){this.info("disposeInternal");k7W(this);this.JSC$20114_session_&&(this.JSC$20114_session_.removeUpdateListener(this.JSC$20114_boundSessionUpdate_),this.JSC$20114_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20114_session_=null;FZ.prototype.disposeInternal.call(this)};
var oXo=function(G,e){_.X_(G.getLoungeTokenTimeoutKey_);G.getLoungeTokenTimeoutKey_=0;e==0?dcd(G):G.getLoungeTokenTimeoutKey_=_.jm(function(){dcd(G)},e)},dcd=function(G){HHA(G,"getLoungeToken");
_.X_(G.onLoungeTokenTimeoutKey_);G.onLoungeTokenTimeoutKey_=_.jm(function(){smH(G,null)},3E4)},HHA=function(G,e){G.info("sendYoutubeMessage_: "+e+" "+(0,_.dT)(void 0));
var r={};r.type=e;G.JSC$20114_session_?G.JSC$20114_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",r,function(){},(0,_.CB)(function(){kD(this,"Failed to send message: "+e+".")},G)):kD(G,"Sending yt message without session: "+(0,_.dT)(r))};
HT.prototype.onYoutubeMessage_=function(G,e){if(!this.isDisposed())if(e)if(e=(0,_.wo)(e),_.PA(e))switch(G=""+e.type,e=e.data||{},this.info("onYoutubeMessage_: "+G+" "+(0,_.dT)(e)),G){case "mdxSessionStatus":fnW(this,e);break;case "loungeToken":smH(this,e);break;default:kD(this,"Unknown youtube message: "+G)}else kD(this,"Unable to parse message.");else kD(this,"No data in message.")};
var Qmm=function(G,e){if(e)G.info("onConnectedScreenId_: Received screenId: "+e),G.screen_&&G.screen_.id==e||G.getScreen_(e,function(r){fZ(G,r)},function(){return G.onSessionStopped()},5);
else G.onSessionStopped(Error("jl"))},pra=function(G,e,r){G.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(e));
var Z=new dy(e);In8(G,Z,function(O){O?(G.JSC$20114_isInitLoungeToken_=!0,KZ(G.JSC$20109_screenService_,Z),fZ(G,Z),G.JSC$20114_lastLoungeTokenRefreshError_="unknown",oXo(G,r)):(_.WX(Error("kl`"+JSON.stringify(e))),G.onSessionStopped())},5)},fnW=function(G,e){_.X_(G.sessionStatusTimeoutKey_);
G.sessionStatusTimeoutKey_=0;if(e)G.config_.enableCastLoungeToken&&e.loungeToken?e.deviceId?G.screen_&&G.screen_.uuid==e.deviceId||(e.loungeTokenRefreshIntervalMs?pra(G,{name:G.receiver_.friendlyName,screenId:e.screenId,loungeToken:e.loungeToken,dialId:e.deviceId,screenIdType:"shortLived"},e.loungeTokenRefreshIntervalMs):(_.WX(Error("ml`"+JSON.stringify(e))),Qmm(G,e.screenId))):(_.WX(Error("ll`"+JSON.stringify(e))),Qmm(G,e.screenId)):Qmm(G,e.screenId);else G.onSessionStopped(Error("jl"))},smH=function(G,
e){_.X_(G.onLoungeTokenTimeoutKey_);
G.onLoungeTokenTimeoutKey_=0;var r=null;if(e)if(e.loungeToken){var Z;((Z=G.screen_)==null?void 0:Z.token)==e.loungeToken&&(r="staleLoungeToken")}else r="missingLoungeToken";else r="noLoungeTokenResponse";r?(G.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(e)+", error: "+r)),G.JSC$20114_lastLoungeTokenRefreshError_=r,oXo(G,3E4)):(Kxa(G,e.loungeToken),G.JSC$20114_isInitLoungeToken_=!1,G.JSC$20114_lastLoungeTokenRefreshError_="unknown",oXo(G,e.loungeTokenRefreshIntervalMs))};
HT.prototype.getScreen_=function(G,e,r,Z){_.X_(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;gXa(this.JSC$20109_screenService_,this.receiver_.label,G,this.receiver_.friendlyName,(0,_.CB)(function(O){O?e(O):Z>=0?(kD(this,"Screen "+G+" appears to be offline. "+Z+" retries left."),this.getScreenTimeoutKey_=_.jm((0,_.CB)(this.getScreen_,this,G,e,r,Z-1),300)):r(Error("nl"))},this),r)};
var In8=function(G,e,r,Z){_.X_(G.JSC$20114_checkScreenAvailabilityTimeoutKey_);G.JSC$20114_checkScreenAvailabilityTimeoutKey_=0;Rn2(G.JSC$20109_screenService_,e,function(O){O||Z<0?r(O):G.JSC$20114_checkScreenAvailabilityTimeoutKey_=_.jm(function(){In8(G,e,r,Z-1)},300)})};
HT.prototype.JSC$20111_getCastSession=function(){return this.JSC$20114_session_};
HT.prototype.JSC$20116_onSessionUpdate_=function(G){this.isDisposed()||G||(kD(this,"Cast session died."),this.onSessionStopped())};
var k7W=function(G){_.X_(G.getScreenTimeoutKey_);G.getScreenTimeoutKey_=0;_.X_(G.JSC$20114_checkScreenAvailabilityTimeoutKey_);G.JSC$20114_checkScreenAvailabilityTimeoutKey_=0;_.X_(G.sessionStatusTimeoutKey_);G.sessionStatusTimeoutKey_=0;_.X_(G.onLoungeTokenTimeoutKey_);G.onLoungeTokenTimeoutKey_=0;_.X_(G.getLoungeTokenTimeoutKey_);G.getLoungeTokenTimeoutKey_=0};var dO=function(G,e,r,Z){FZ.call(this,G,e,"DialSession");this.config_=Z;this.JSC$20118_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20118_theme_=r;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20118_deferredLaunchDeadlineTimer_=NaN;this.JSC$20118_boundSessionUpdate_=(0,_.CB)(this.JSC$20120_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20118_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20118_isInitLoungeToken_=!1;this.JSC$20118_lastLoungeTokenRefreshError_="unknown"};
_.K(dO,FZ);dO.prototype.setCastSession=function(G){this.JSC$20118_session_=G;this.JSC$20118_session_.addUpdateListener(this.JSC$20118_boundSessionUpdate_)};
dO.prototype.launchWithParams=function(G){this.connectData_=G;this.deferredLaunch_()};
dO.prototype.stop=function(){CQ8(this);if(this.JSC$20118_session_)this.JSC$20118_session_.stop((0,_.CB)(this.onSessionStopped,this,null),(0,_.CB)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
dO.prototype.disposeInternal=function(){CQ8(this);this.JSC$20118_session_&&this.JSC$20118_session_.removeUpdateListener(this.JSC$20118_boundSessionUpdate_);this.JSC$20118_session_=null;FZ.prototype.disposeInternal.call(this)};
var u2Y=function(G){var e;return!!(G.config_.enableDialLoungeToken&&((e=G.JSC$20118_session_)==null?0:e.getDialAppInfo))},mcW=function(G){G.cancelPolling_=G.JSC$20109_screenService_.JSC$20107_getScreenByPollingPairingCode(G.reversePairingCode_,G.receiver_.label,G.receiver_.friendlyName,u2Y(G),function(e,r){G.cancelPolling_=function(){};
G.JSC$20118_isInitLoungeToken_=!0;fZ(G,e);e.idType=="shortLived"&&r>0&&nX8(G,r)},function(e){G.cancelPolling_=function(){};
G.onSessionStopped(e)})};
dO.prototype.JSC$20120_onSessionUpdate_=function(G){this.isDisposed()||G||(kD(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var cMl=function(G){var e={};e.pairingCode=G.reversePairingCode_;e.theme=G.JSC$20118_theme_;l9B()&&(e.env_useStageMdx=1);return _.k1(e)},Y8C=function(G){return new Promise(function(e){G.reversePairingCode_=MMW();
if(G.connectData_){var r=new chrome.cast.DialLaunchResponse(!0,cMl(G));e(r);mcW(G)}else G.deferredLaunch_=function(){_.X_(G.JSC$20118_deferredLaunchDeadlineTimer_);G.deferredLaunch_=function(){};
G.JSC$20118_deferredLaunchDeadlineTimer_=NaN;var Z=new chrome.cast.DialLaunchResponse(!0,cMl(G));e(Z);mcW(G)},G.JSC$20118_deferredLaunchDeadlineTimer_=_.jm(function(){G.deferredLaunch_()},100)})},AMH=function(G,e,r){G.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(e));
var Z=new dy(e);return(new Promise(function(O){yM8(G,Z,function(M){M?(G.JSC$20118_isInitLoungeToken_=!0,KZ(G.JSC$20109_screenService_,Z),fZ(G,Z),nX8(G,r)):_.WX(Error("pl`"+JSON.stringify(e)));O(M)},5)})).then(function(O){return O?new chrome.cast.DialLaunchResponse(!1):Y8C(G)})},Fxl=function(G,e){var r=G.launchData_.receiver.label,Z=G.receiver_.friendlyName;
return(new Promise(function(O){gXa(G.JSC$20109_screenService_,r,e,Z,function(M){M&&M.token&&fZ(G,M);O(M)},function(M){kD(G,"Failed to get DIAL screen: "+M);
O(null)})})).then(function(O){return O&&O.token?new chrome.cast.DialLaunchResponse(!1):Y8C(G)})},yM8=function(G,e,r,Z){_.X_(G.JSC$20118_checkScreenAvailabilityTimeoutKey_);
G.JSC$20118_checkScreenAvailabilityTimeoutKey_=0;Rn2(G.JSC$20109_screenService_,e,function(O){O||Z<0?r(O):G.JSC$20118_checkScreenAvailabilityTimeoutKey_=_.jm(function(){yM8(G,e,r,Z-1)},300)})},nX8=function(G,e){G.info("getDialAppInfoWithTimeout_ "+e);
u2Y(G)&&(_.X_(G.getDialAppInfoTimeoutKey_),G.getDialAppInfoTimeoutKey_=0,e==0?JMC(G):G.getDialAppInfoTimeoutKey_=_.jm(function(){JMC(G)},e))},JMC=function(G){u2Y(G)&&G.JSC$20118_session_.getDialAppInfo(function(e){G.info("getDialAppInfo dialLaunchData: "+JSON.stringify(e));
e=e.extraData||{};var r=null;if(e.loungeToken){var Z;((Z=G.screen_)==null?void 0:Z.token)==e.loungeToken&&(r="staleLoungeToken")}else r="missingLoungeToken";r?(G.JSC$20118_lastLoungeTokenRefreshError_=r,nX8(G,3E4)):(G.JSC$20118_isInitLoungeToken_=!1,G.JSC$20118_lastLoungeTokenRefreshError_="unknown",Kxa(G,e.loungeToken),nX8(G,e.loungeTokenRefreshIntervalMs))},function(e){G.info("getDialAppInfo error: "+e);
G.JSC$20118_lastLoungeTokenRefreshError_="noLoungeTokenResponse";nX8(G,3E4)})},CQ8=function(G){_.X_(G.JSC$20118_checkScreenAvailabilityTimeoutKey_);
G.JSC$20118_checkScreenAvailabilityTimeoutKey_=0;_.X_(G.getDialAppInfoTimeoutKey_);G.getDialAppInfoTimeoutKey_=0;G.cancelPolling_();G.cancelPolling_=function(){};
_.X_(G.JSC$20118_deferredLaunchDeadlineTimer_)};var oO=function(G,e){FZ.call(this,G,e,"ManualSession");this.JSC$20122_deferredLaunchDeadlineTimer_=_.jm((0,_.CB)(this.launchWithParams,this,null),150)};
_.K(oO,FZ);oO.prototype.stop=function(){this.onSessionStopped()};
oO.prototype.setCastSession=function(){};
oO.prototype.launchWithParams=function(){_.X_(this.JSC$20122_deferredLaunchDeadlineTimer_);this.JSC$20122_deferredLaunchDeadlineTimer_=NaN;var G=sh(this.JSC$20109_screenService_.getScreens(),this.receiver_.label);if(G)fZ(this,G);else this.onSessionStopped(Error("ql"))};
oO.prototype.disposeInternal=function(){_.X_(this.JSC$20122_deferredLaunchDeadlineTimer_);this.JSC$20122_deferredLaunchDeadlineTimer_=NaN;FZ.prototype.disposeInternal.call(this)};var PR=function(G,e){_.Ar.call(this);this.config_=e;this.JSC$20125_screenService_=G;this.JSC$20125_appId_=e.appId||"233637DE";this.JSC$20125_theme_=e.theme||"cl";this.disableDial_=e.disableCastApi||!1;this.forceMirroring_=e.forceMirroring||!1;this.JSC$20125_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.CB)(this.onReceiverAction_,this)};
_.K(PR,_.Ar);
PR.prototype.init=function(G,e){chrome.cast.timeout.requestSession=3E4;var r=new chrome.cast.SessionRequest(this.JSC$20125_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.R("desktop_enable_cast_connect")&&(r.androidReceiverCompatible=!0);this.disableDial_||(r.dialRequest=new chrome.cast.DialRequest("YouTube"));var Z=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;G=G||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var O=(0,_.CB)(this.onReceiverUpdated_,
this);r=new chrome.cast.ApiConfig(r,(0,_.CB)(this.onSessionEstablished_,this),O,Z,G);r.customDialLaunchCallback=(0,_.CB)(this.onDialLaunchRequested_,this);chrome.cast.initialize(r,(0,_.CB)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),HxW(),this.JSC$20125_screenService_.subscribe("onlineScreenChange",(0,_.CB)(this.JSC$20127_onScreenChange_,this)),this.customReceivers_=BAa(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.CB)(function(M){this.warn_("Failed to set initial custom receivers: "+(0,_.dT)(M))},this)),this.publish("yt-remote-cast2-availability-change",xcA(this)),e(!0))},this),(0,_.CB)(function(M){this.warn_("Failed to initialize API: "+(0,_.dT)(M));
e(!1)},this))};
PR.prototype.setConnectedScreenStatus=function(G,e){sG("Setting connected screen ID: "+G+" -> "+e);if(this.JSC$20125_session_){var r=this.JSC$20125_session_.screen_;if(!G||r&&r.id!=G)sG("Unsetting old screen status: "+this.JSC$20125_session_.receiver_.friendlyName),Q0(this,null)}if(G&&e){if(!this.JSC$20125_session_){G=sh(this.JSC$20125_screenService_.getScreens(),G);if(!G){sG("setConnectedScreenStatus: Unknown screen.");return}if(G.idType=="shortLived"){sG("setConnectedScreenStatus: Screen with id type to be short lived.");
return}r=PQW(this,G);r||(sG("setConnectedScreenStatus: Connected receiver not custom..."),r=new chrome.cast.Receiver(G.uuid?G.uuid:G.id,G.name),r.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(r),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.CB)(function(Z){this.warn_("Failed to set initial custom receivers: "+(0,_.dT)(Z))},this)));
sG("setConnectedScreenStatus: new active receiver: "+r.friendlyName);Q0(this,new oO(this.JSC$20125_screenService_,r),!0)}this.JSC$20125_session_.setDisplayStatus(e)}else sG("setConnectedScreenStatus: no screen.")};
var PQW=function(G,e){return e?_.Cf(G.customReceivers_,function(r){return oX(e,r.label)},G):null};
PR.prototype.setLaunchParams=function(G){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20125_session_?this.JSC$20125_session_.launchWithParams(G):this.warn_("Setting connection data without a session")};
PR.prototype.JSC$20127_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20125_session_?(this.JSC$20125_session_.stop(),Q0(this,null)):sG("Stopping non-existing session")};
PR.prototype.requestSession=function(){chrome.cast.requestSession((0,_.CB)(this.onSessionEstablished_,this),(0,_.CB)(this.onSessionRequestFailed_,this))};
PR.prototype.disposeInternal=function(){this.JSC$20125_screenService_.unsubscribe("onlineScreenChange",(0,_.CB)(this.JSC$20127_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.yp(_.Lz("yt.mdx.remote.debug.handlers_")||[],KLY);_.TX(this.JSC$20125_session_);_.Ar.prototype.disposeInternal.call(this)};
var sG=function(G){uS("Controller",G)};
PR.prototype.warn_=function(G){uS("Controller",G)};
var KLY=function(G){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(G)},xcA=function(G){return G.hasCastReceiver_||!!G.customReceivers_.length||!!G.JSC$20125_session_},Q0=function(G,e,r){e!=G.JSC$20125_session_&&(_.TX(G.JSC$20125_session_),(G.JSC$20125_session_=e)?(r?G.publish("yt-remote-cast2-receiver-resumed",e.receiver_):G.publish("yt-remote-cast2-receiver-selected",e.receiver_),e.subscribe("sessionScreen",(0,_.CB)(G.onSessionScreen_,G,e)),e.subscribe("sessionFailed",
function(){return Uc2(G,e)}),e.screen_?G.publish("yt-remote-cast2-session-change",e.screen_):r&&G.JSC$20125_session_.launchWithParams(null)):G.publish("yt-remote-cast2-session-change",null))},Uc2=function(G,e){G.JSC$20125_session_==e&&G.publish("yt-remote-cast2-session-failed")};
_.V=PR.prototype;_.V.onSessionScreen_=function(G,e){this.JSC$20125_session_==G&&(e||Q0(this,null),this.publish("yt-remote-cast2-session-change",e))};
_.V.onReceiverAction_=function(G,e){if(!this.isDisposed())if(G)switch(G.friendlyName=chrome.cast.unescape(G.friendlyName),sG("onReceiverAction_ "+G.label+" / "+G.friendlyName+"-- "+e),e){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20125_session_)if(this.JSC$20125_session_.receiver_.label!=G.label)sG("onReceiverAction_: Stopping active receiver: "+this.JSC$20125_session_.receiver_.friendlyName),this.JSC$20125_session_.stop();else{sG("onReceiverAction_: Casting to active receiver.");this.JSC$20125_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20125_session_.screen_);break}switch(G.receiverType){case chrome.cast.ReceiverType.CUSTOM:Q0(this,new oO(this.JSC$20125_screenService_,G));break;case chrome.cast.ReceiverType.DIAL:Q0(this,new dO(this.JSC$20125_screenService_,G,this.JSC$20125_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:Q0(this,new HT(this.JSC$20125_screenService_,G,this.config_));break;default:this.warn_("Unknown receiver type: "+G.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20125_session_&&
this.JSC$20125_session_.receiver_.label==G.label?this.JSC$20125_session_.stop():this.warn_("Stopping receiver w/o session: "+G.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.V.onDialLaunchRequested_=function(G){if(this.isDisposed())return Promise.reject(Error("rl"));var e=G.receiver;e.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+e.friendlyName),e.receiverType=chrome.cast.ReceiverType.DIAL);var r=this.JSC$20125_session_?this.JSC$20125_session_.receiver_:null;if(!r||r.label!=e.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+e.friendlyName),Promise.reject(Error("sl"));if(r&&r.label==e.label&&r.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20125_session_.screen_)return sG("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20125_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+r.receiverType+'" to "dial" for '+e.friendlyName);Q0(this,new dO(this.JSC$20125_screenService_,e,this.JSC$20125_theme_,this.config_))}e=this.JSC$20125_session_;e.launchData_=G;e.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(G=e.launchData_.extraData||{},r=G.screenId||null,u2Y(e)&&G.loungeToken?G.loungeTokenRefreshIntervalMs?G=AMH(e,{name:e.receiver_.friendlyName,screenId:G.screenId,loungeToken:G.loungeToken,dialId:e.launchData_.receiver.label,screenIdType:"shortLived"},G.loungeTokenRefreshIntervalMs):(_.WX(Error("ol`"+JSON.stringify(G))),G=Fxl(e,r)):G=Fxl(e,r)):G=Y8C(e);return G};
_.V.onSessionEstablished_=function(G){var e=this;if(!this.isDisposed()&&!this.forceMirroring_){sG("New cast session ID: "+G.sessionId);var r=G.receiver;if(r.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20125_session_)if(r.receiverType==chrome.cast.ReceiverType.CAST)sG("Got resumed cast session before resumed mdx connection."),r.friendlyName=chrome.cast.unescape(r.friendlyName),Q0(this,new HT(this.JSC$20125_screenService_,r,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var Z=this.JSC$20125_session_.receiver_,O=sh(this.JSC$20125_screenService_.getScreens(),Z.label);O&&oX(O,r.label)&&Z.receiverType!=chrome.cast.ReceiverType.CAST&&r.receiverType==chrome.cast.ReceiverType.CAST&&(sG("onSessionEstablished_: manual to cast session change "+r.friendlyName),_.TX(this.JSC$20125_session_),this.JSC$20125_session_=new HT(this.JSC$20125_screenService_,r,this.config_),this.JSC$20125_session_.subscribe("sessionScreen",(0,_.CB)(this.onSessionScreen_,this,this.JSC$20125_session_)),
this.JSC$20125_session_.subscribe("sessionFailed",function(){return Uc2(e,e.JSC$20125_session_)}),this.JSC$20125_session_.launchWithParams(null));
this.JSC$20125_session_.setCastSession(G)}}};
_.V.JSC$20127_getCastSession=function(){return this.JSC$20125_session_?this.JSC$20125_session_.JSC$20111_getCastSession():null};
_.V.onSessionRequestFailed_=function(G){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.dT)(G)),G.code!=chrome.cast.ErrorCode.CANCEL&&Q0(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.V.onReceiverUpdated_=function(G){sG("Receiver availability updated: "+G);if(!this.isDisposed()){var e=xcA(this);this.hasCastReceiver_=G==chrome.cast.ReceiverAvailability.AVAILABLE;xcA(this)!=e&&this.publish("yt-remote-cast2-availability-change",xcA(this))}};
var BAa=function(G){var e=G.JSC$20125_screenService_.JSC$20107_getOnlineScreens(),r=G.JSC$20125_session_&&G.JSC$20125_session_.receiver_;G=_.Yf(e,function(Z){r&&oX(Z,r.label)&&(r=null);var O=Z.uuid?Z.uuid:Z.id,M=PQW(this,Z);M?(M.label=O,M.friendlyName=Z.name):(M=new chrome.cast.Receiver(O,Z.name),M.receiverType=chrome.cast.ReceiverType.CUSTOM);return M},G);
r&&(r.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(r=new chrome.cast.Receiver(r.label,r.friendlyName),r.receiverType=chrome.cast.ReceiverType.CUSTOM),G.push(r));return G};
PR.prototype.JSC$20127_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=BAa(this),sG("Updating custom receivers: "+(0,_.dT)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.CB)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",xcA(this)))};
PR.prototype.setLaunchParams=PR.prototype.setLaunchParams;PR.prototype.setConnectedScreenStatus=PR.prototype.setConnectedScreenStatus;PR.prototype.stopSession=PR.prototype.JSC$20127_stopSession;PR.prototype.getCastSession=PR.prototype.JSC$20127_getCastSession;PR.prototype.requestSession=PR.prototype.requestSession;PR.prototype.init=PR.prototype.init;PR.prototype.dispose=PR.prototype.dispose;var znd=_.Cp(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),Gxd=[],AZY=_.qK(znd);var Wxo=function(G){G.audioTrackId=null;G.trackData=null;G.playerState=-1;G.hasPrevious=!1;G.hasNext=!1;G.playerTime_=0;G.playerTimeAt_=_.JV();G.seekableStart_=0;G.seekableEnd_=0;G.duration_=0;G.loadedTime=0;G.liveIngestionTime_=NaN;G.isLive_=!1};
_.V=Uh.prototype;
_.V.reset=function(G){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;G&&(this.index=G.index,this.listId=G.listId,this.videoId=G.videoId,this.playerState=G.playerState,this.volume=G.volume,this.muted=G.muted,this.audioTrackId=G.audioTrackId,this.trackData=G.trackData,this.hasPrevious=G.hasPrevious,this.hasNext=G.hasNext,this.playerTime_=G.playerTime,this.playerTimeAt_=G.playerTimeAt,this.seekableStart_=G.seekableStart,this.seekableEnd_=G.seekableEnd,this.duration_=G.duration,this.loadedTime=
G.loadedTime,this.liveIngestionTime_=G.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.V.stopPlayer=function(){this.index=-1;this.videoId="";Wxo(this)};
_.V.isPlaying=function(){return this.playerState==1};
_.V.isBuffering=function(){return this.playerState==3};
_.V.isAdPlaying=function(){return this.playerState==1081};
var IO=function(G,e){G.playerTime_=e;G.playerTimeAt_=_.JV()},NAC=function(G){switch(G.playerState){case 1:case 1081:return(_.JV()-G.playerTimeAt_)/1E3+G.playerTime_;
case -1E3:return 0}return G.playerTime_};
Uh.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.JV()-this.playerTimeAt_)/1E3:0):this.duration_};
var LxB=function(G,e,r){var Z=G.videoId;G.videoId=e;G.index=r;e!=Z&&Wxo(G)},GEC=function(G){var e={};
e.index=G.index;e.listId=G.listId;e.videoId=G.videoId;e.playerState=G.playerState;e.volume=G.volume;e.muted=G.muted;e.audioTrackId=G.audioTrackId;e.trackData=_.c2.unsafeClone(G.trackData);e.hasPrevious=G.hasPrevious;e.hasNext=G.hasNext;e.playerTime=G.playerTime_;e.playerTimeAt=G.playerTimeAt_;e.seekableStart=G.seekableStart_;e.seekableEnd=G.seekableEnd_;e.duration=G.duration_;e.loadedTime=G.loadedTime;e.liveIngestionTime=G.liveIngestionTime_;return e};
Uh.prototype.clone=function(){return new Uh(GEC(this))};var ZJ=function(G,e){_.Ar.call(this);var r=this;this.state_=0;this.connection_=G;this.contextSubscriptions_=[];this.actionQueue_=new zLY;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.CB)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.CB)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.CB)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.CB)(this.onCloudviewAvailabilityChange_,this);var Z=0;G?(Z=G.getProxyState(),
Z!=3&&(G.subscribe("proxyStateChange",this.setState_,this),eQW(this))):Z=3;Z!=0&&(e?this.setState_(Z):_.jm(function(){r.setState_(Z)},0));
(G=OpB())&&r$H(this,G);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.K(ZJ,_.Ar);ZJ.prototype.getState=function(){return this.state_};
ZJ.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
ZJ.prototype.reconnect=function(){this.connection_.reconnect()};
var pZ=function(G){return new Uh(G.connection_.getPlayerContextData())};
_.V=ZJ.prototype;_.V.play=function(){CZ(this)?(this.castMedia_?this.castMedia_.play(null,_.qu,Z58(this,"play")):uT(this,"play"),O5d(this,1,NAC(pZ(this))),this.publish("remotePlayerChange")):nZ(this,this.play)};
_.V.pause=function(){CZ(this)?(this.castMedia_?this.castMedia_.pause(null,_.qu,Z58(this,"pause")):uT(this,"pause"),O5d(this,2,NAC(pZ(this))),this.publish("remotePlayerChange")):nZ(this,this.pause)};
_.V.seekTo=function(G){if(CZ(this)){if(this.castMedia_){var e=pZ(this),r=new chrome.cast.media.SeekRequest;r.currentTime=G;e.isPlaying()||e.isBuffering()?r.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:r.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(r,_.qu,Z58(this,"seekTo",{newTime:G}))}else uT(this,"seekTo",{newTime:G});O5d(this,3,G);this.publish("remotePlayerChange")}else nZ(this,_.VU(this.seekTo,G))};
_.V.stop=function(){if(CZ(this)){this.castMedia_?this.castMedia_.stop(null,_.qu,Z58(this,"stopVideo")):uT(this,"stopVideo");var G=pZ(this);G.stopPlayer();mP(this,G);this.publish("remotePlayerChange")}else nZ(this,this.stop)};
_.V.setVolume=function(G,e){if(CZ(this)){var r=pZ(this);if(this.castSession_){if(r.volume!=G){var Z=Math.round(G)/100;this.castSession_.setReceiverVolumeLevel(Z,(0,_.CB)(function(){ni("set receiver volume: "+Z)},this),(0,_.CB)(function(){this.warn_("failed to set receiver volume.")},this))}r.muted!=e&&this.castSession_.setReceiverMuted(e,(0,_.CB)(function(){ni("set receiver muted: "+e)},this),(0,_.CB)(function(){this.warn_("failed to set receiver muted.")},this))}else{var O={volume:G,
muted:e};r.volume!=-1&&(O.delta=G-r.volume);uT(this,"setVolume",O)}r.muted=e;r.volume=G;mP(this,r)}else nZ(this,_.VU(this.setVolume,G,e))};
_.V.setAudioTrack=function(G,e){CZ(this)?(e=e.getLanguageInfo().getId(),uT(this,"setAudioTrack",{videoId:G,audioTrackId:e}),G=pZ(this),G.audioTrackId=e,mP(this,G)):nZ(this,_.VU(this.setAudioTrack,G,e))};
_.V.addVideo=function(G){CZ(this)?uT(this,"addVideo",{videoId:G}):nZ(this,_.VU(this.addVideo,G))};
_.V.addPlaylist=function(G){CZ(this)?uT(this,"addVideos",{listId:G}):nZ(this,_.VU(this.addPlaylist,G))};
_.V.addVideos=function(G){G.length==0?this.warn_("Ignore add videos request due to empty list"):CZ(this)?uT(this,"addVideos",{videoIds:G.join(",")}):nZ(this,_.VU(this.addVideos,G))};
_.V.JSC$20137_removeVideo=function(G){CZ(this)?uT(this,"removeVideo",{videoId:G}):nZ(this,_.VU(this.JSC$20137_removeVideo,G))};
_.V.JSC$20137_insertVideo=function(G){CZ(this)?uT(this,"insertVideo",{videoId:G}):nZ(this,_.VU(this.JSC$20137_insertVideo,G))};
_.V.playVideo=function(G,e,r,Z,O,M,T){Z=Z===void 0?null:Z;O=O===void 0?null:O;M=M===void 0?null:M;T=T===void 0?null:T;var E=pZ(this),b={videoId:G};r!==void 0&&(b.currentIndex=r);LxB(E,G,r||0);e!==void 0&&(IO(E,e),b.currentTime=e);Z&&(b.listId=Z);O&&(b.playerParams=O);M&&(b.clickTrackingParams=M);T&&(b.locationInfo=(0,_.dT)(T));uT(this,"setPlaylist",b);Z||mP(this,E)};
_.V.nextVideo=function(G,e){if(CZ(this)){if(G&&e){var r=pZ(this);LxB(r,G,e);mP(this,r)}uT(this,"next")}else nZ(this,_.VU(this.nextVideo,G,e))};
_.V.clearPlaylist=function(){if(CZ(this)){uT(this,"clearPlaylist");var G=pZ(this);G.reset();mP(this,G);this.publish("remotePlayerChange")}else nZ(this,this.clearPlaylist)};
_.V.dispose=function(){if(this.state_!=3){var G=this.state_;this.state_=3;this.publish("proxyStateChange",G,this.state_)}_.Ar.prototype.dispose.call(this)};
_.V.disposeInternal=function(){MHY(this);this.connection_=null;this.actionQueue_.clear();r$H(this,null);_.Ar.prototype.disposeInternal.call(this)};
var eQW=function(G){_.rR("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(e){this.contextSubscriptions_.push(this.connection_.subscribe(e,_.VU(this.onProxyEvent_,e),this))},G)},MHY=function(G){_.rR(G.contextSubscriptions_,function(e){this.connection_.unsubscribeByKey(e)},G);
G.contextSubscriptions_.length=0},CZ=function(G){return G.getState()==1},nZ=function(G,e){G.actionQueue_.getCount()<50&&G.actionQueue_.enqueue(e)},O5d=function(G,e,r){var Z=pZ(G);
IO(Z,r);Z.playerState!=-1E3&&(Z.playerState=e);mP(G,Z)},uT=function(G,e,r){G.connection_.sendMessage(e,r)},mP=function(G,e){MHY(G);
G.connection_.setPlayerContextData(GEC(e));eQW(G)};
ZJ.prototype.setState_=function(G){if((G!=this.state_||G==2)&&this.state_!=3&&G!=0){var e=this.state_;this.state_=G;this.publish("proxyStateChange",e,G);if(G==1)for(;!this.actionQueue_.isEmpty();)G=this.actionQueue_,tId(G),G.front_.pop().apply(this);else G==3&&this.dispose()}};
ZJ.prototype.onProxyEvent_=function(G,e){this.publish(G,e)};
var r$H=function(G,e){G.castSession_&&(G.castSession_.removeUpdateListener(G.boundCastStatusListener_),G.castSession_.removeMediaListener(G.boundCastMediaListener_),G.onCastMediaChange_(null));G.castSession_=e;if(G.castSession_&&(ni("Setting cast session: "+G.castSession_.sessionId),G.castSession_.addUpdateListener(G.boundCastStatusListener_),G.castSession_.addMediaListener(G.boundCastMediaListener_),G.castSession_.media.length))G.onCastMediaChange_(G.castSession_.media[0])};
ZJ.prototype.onCastStatusUpdate_=function(G){if(!G)this.onCastMediaChange_(null),r$H(this,null);else if(this.castSession_.receiver.volume){G=this.castSession_.receiver.volume;var e=pZ(this),r=Math.round(100*G.level||0);if(e.volume!=r||e.muted!=G.muted)ni("Cast volume update: "+G.level+(G.muted?" muted":"")),e.volume=r,e.muted=!!G.muted,mP(this,e)}};
ZJ.prototype.onCastMediaChange_=function(G){ni("Cast media: "+!!G);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=G)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),VHH(this),this.publish("remotePlayerChange")};
var VHH=function(G){var e=G.castMedia_.media,r=G.castMedia_.customData;if(e&&r){var Z=pZ(G);e.contentId!=Z.videoId&&ni("Cast changing video to: "+e.contentId);Z.videoId=e.contentId;Z.playerState=r.playerState;IO(Z,G.castMedia_.getEstimatedTime());mP(G,Z)}else ni("No cast media video. Ignoring state update.")};
ZJ.prototype.onCastMediaUpdate_=function(G){if(G)VHH(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
ZJ.prototype.onCloudviewAvailabilityChange_=function(){var G=OpB();G&&r$H(this,G)};
ZJ.prototype.warn_=function(G){uS("CP",G)};
var Z58=function(G,e,r){return(0,_.CB)(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."),uT(this,e,r))},G)};var OC=function(G,e,r,Z){Z=Z===void 0?!1:Z;_.Ar.call(this);var O=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$20142_http_=G;this.enableConnectWithInitialState_=Z;this.listeners_.push(_.DR(window,"beforeunload",function(){O.JSC$20145_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new Uh;this.currentScreenId_=e.id;this.currentScreenIdType_=e.idType;this.channelService=X4Y(this.JSC$20142_http_,r,this.JSC$20145_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){hQH(O)});
this.channelService.listen("channelClosed",function(){cT("Channel closed");isNaN(O.connectTimerId_)?QV(!0):QV();O.dispose()});
this.channelService.listen("channelError",function(M){QV();isNaN(O.getReconnectTimeout_())?(M==1&&O.currentScreenIdType_=="shortLived"&&O.publish("browserChannelAuthError",M),cT("Channel error: "+M+" without reconnection"),O.dispose()):(O.reconnecting_=!0,cT("Channel error: "+M+" with reconnection in "+O.getReconnectTimeout_()+" ms"),TGo(O,2))});
this.channelService.listen("channelMessage",function(M){DYW(O,M)});
this.channelService.setLoungeToken(e.token);this.subscribe("remoteQueueChange",function(){var M=O.playerContext_.videoId;EiY()&&_.$N("yt-remote-session-video-id",M)})};
_.K(OC,_.Ar);
OC.prototype.connect=function(G,e){if(e){var r=e.listId,Z=e.videoId,O=e.videoIds,M=e.playerParams,T=e.clickTrackingParams,E=e.index,b={videoId:Z},w=e.currentTime,q=e.locationInfo;e=e.loopMode;w!==void 0&&(b.currentTime=w<=5?0:w);M&&(b.playerParams=M);q&&(b.locationInfo=q);T&&(b.clickTrackingParams=T);r&&(b.listId=r);O&&O.length>0&&(b.videoIds=O.join(","));E!==void 0&&(b.currentIndex=E);this.enableConnectWithInitialState_&&(b.loopMode=e||"LOOP_MODE_OFF");r&&(this.playerContext_.listId=r);this.playerContext_.videoId=
Z;this.playerContext_.index=E||0;this.playerContext_.state=3;IO(this.playerContext_,w);this.autoplayMode_="UNSUPPORTED";r=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";cT("Connecting with "+r+" and params: "+(0,_.dT)(b));this.channelService.connect({method:r,params:(0,_.dT)(b)},G,$$C())}else cT("Connecting without params"),this.channelService.connect({},G,$$C());Ez2(this)};
OC.prototype.setLoungeToken=function(G){this.channelService.setLoungeToken(G)};
OC.prototype.dispose=function(){this.isDisposed()||(_.Eu("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),TGo(this,3));_.Ar.prototype.dispose.call(this)};
OC.prototype.disposeInternal=function(){i5o(this);b5d(this);vzH(this);_.X_(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.X_(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.wQs(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.Ar.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var wdl=function(G){return _.Cf(G.connectedDevices_,function(e){return e.type=="LOUNGE_SCREEN"})},cT=function(G){uS("conn",G)},TGo=function(G,e){G.publish("proxyStateChange",e)},Ez2=function(G){G.connectTimerId_=_.jm(function(){cT("Connecting timeout");
G.JSC$20145_disconnect_(1)},2E4)},i5o=function(G){_.X_(G.connectTimerId_);
G.connectTimerId_=NaN},vzH=function(G){_.X_(G.reconnectedCheckScreenTimeout_);
G.reconnectedCheckScreenTimeout_=NaN},Sam=function(G){b5d(G);
G.playingSyncTimerId_=_.jm(function(){$YW(G,"getNowPlaying")},2E4)},b5d=function(G){_.X_(G.playingSyncTimerId_);
G.playingSyncTimerId_=NaN},hQH=function(G){cT("Channel opened");
G.reconnecting_&&(G.reconnecting_=!1,vzH(G),G.reconnectedCheckScreenTimeout_=_.jm(function(){cT("Timing out waiting for a screen.");G.JSC$20145_disconnect_(1)},15E3))},tHo=function(G,e){var r=null;
if(e){var Z=wdl(G);Z&&(r={clientName:Z.clientName,deviceMake:Z.brand,deviceModel:Z.model,osVersion:Z.osVersion})}_.Eu("yt.mdx.remote.remoteClient_",r);e&&(i5o(G),vzH(G));r=G.channelService.isChannelOpened()&&isNaN(G.connectTimerId_);e==r?e&&(TGo(G,1),$YW(G,"getSubtitlesTrack")):e?(G.getOtherConnectedRemoteId_()&&G.playerContext_.reset(),TGo(G,1),$YW(G,"getNowPlaying"),qaa(G)):G.JSC$20145_disconnect_(1)},gzm=function(G,e){var r=e.params.videoId;
delete e.params.videoId;r==G.playerContext_.videoId&&(_.c2.isEmpty(e.params)?G.playerContext_.trackData=null:G.playerContext_.trackData=e.params,G.publish("remotePlayerChange"))},l8d=function(G,e,r){var Z=e.params.videoId||e.params.video_id,O=parseInt(e.params.currentIndex,10);
G.playerContext_.listId=e.params.listId||G.playerContext_.listId;LxB(G.playerContext_,Z,O);G.publish("remoteQueueChange",r)},RQa=function(G,e){e.params=e.params||{};
l8d(G,e,"NOW_PLAYING_MAY_CHANGE");G.onStateChange_(e);G.publish("autoplayDismissed")};
OC.prototype.onStateChange_=function(G){var e=parseInt(G.params.currentTime||G.params.current_time,10);IO(this.playerContext_,isNaN(e)?0:e);e=parseInt(G.params.state,10);e=isNaN(e)?-1:e;e==-1&&this.playerContext_.playerState==-1E3&&(e=-1E3);this.playerContext_.playerState=e;e=Number(G.params.loadedTime);this.playerContext_.loadedTime=isNaN(e)?0:e;e=Number(G.params.duration);this.playerContext_.duration_=isNaN(e)?0:e;e=this.playerContext_;var r=Number(G.params.liveIngestionTime);e.liveIngestionTime_=
r;e.isLive_=isNaN(r)?!1:!0;e=this.playerContext_;r=Number(G.params.seekableStartTime);G=Number(G.params.seekableEndTime);e.seekableStart_=isNaN(r)?0:r;e.seekableEnd_=isNaN(G)?0:G;this.playerContext_.playerState==1?Sam(this):b5d(this);this.publish("remotePlayerChange")};
OC.prototype.onAdStateChange_=function(G){if(this.playerContext_.playerState!=-1E3){var e=1085;switch(parseInt(G.params.adState,10)){case 1:e=1081;break;case 2:e=1084;break;case 0:e=1083}this.playerContext_.playerState=e;G=parseInt(G.params.currentTime,10);IO(this.playerContext_,isNaN(G)?0:G);this.publish("remotePlayerChange")}};
var jYl=function(G,e){var r=e.params.muted=="true";G.playerContext_.volume=parseInt(e.params.volume,10);G.playerContext_.muted=r;G.publish("remotePlayerChange")},a8C=function(G,e){G.autoplayVideoId_=e.params.videoId;
G.publish("nowAutoplaying",parseInt(e.params.timeout,10))},XdC=function(G,e){G.autoplayVideoId_=e.params.videoId||null;
G.publish("autoplayUpNext",G.autoplayVideoId_)},KgH=function(G,e){G.autoplayMode_=e.params.autoplayMode;
G.publish("autoplayModeChange",G.autoplayMode_);G.autoplayMode_=="DISABLED"&&G.publish("autoplayDismissed")},f88=function(G,e){var r=e.params.hasNext=="true";
G.playerContext_.hasPrevious=e.params.hasPrevious=="true";G.playerContext_.hasNext=r;G.publish("previousNextChange")};
OC.prototype.isCapabilitySupportedOnConnectedDevices_=function(G){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var e=_.h(this.connectedDevices_),r=e.next();!r.done;r=e.next())if(!r.value.capabilities.has(G))return!1;return!0};
var DYW=function(G,e){e=e.message;e.params?cT("Received: action="+e.action+", params="+(0,_.dT)(e.params)):cT("Received: action="+e.action+" {}");switch(e.action){case "loungeStatus":e=(0,_.wo)(e.params.devices);G.connectedDevices_=_.Yf(e,function(Z){return new aO(Z)});
e=!!_.Cf(G.connectedDevices_,function(Z){return Z.type=="LOUNGE_SCREEN"});
tHo(G,e);e=G.isCapabilitySupportedOnConnectedDevices_("mlm");G.publish("multiStateLoopEnabled",e);break;case "loungeScreenDisconnected":csW(G.connectedDevices_,function(Z){return Z.type=="LOUNGE_SCREEN"});
tHo(G,!1);break;case "remoteConnected":var r=new aO((0,_.wo)(e.params.device));_.Cf(G.connectedDevices_,function(Z){return Z.equals(r)})||_.o4S(G.connectedDevices_,r);
break;case "remoteDisconnected":r=new aO((0,_.wo)(e.params.device));csW(G.connectedDevices_,function(Z){return Z.equals(r)});
break;case "gracefulDisconnect":break;case "playlistModified":l8d(G,e,"QUEUE_MODIFIED");break;case "nowPlaying":RQa(G,e);break;case "onStateChange":G.onStateChange_(e);break;case "onAdStateChange":G.onAdStateChange_(e);break;case "onVolumeChanged":jYl(G,e);break;case "onSubtitlesTrackChanged":gzm(G,e);break;case "nowAutoplaying":a8C(G,e);break;case "autoplayDismissed":G.publish("autoplayDismissed");break;case "autoplayUpNext":XdC(G,e);break;case "onAutoplayModeChanged":KgH(G,e);break;case "onHasPreviousNextChanged":f88(G,
e);break;case "requestAssistedSignIn":G.publish("assistedSignInRequested",e.params.authCode);break;case "onLoopModeChanged":G.publish("loopModeChange",e.params.loopMode);break;default:cT("Unrecognized action: "+e.action)}};
_.V=OC.prototype;_.V.getProxyState_=function(){var G=3;this.isDisposed()||(G=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(G=1):G=2);return G};
_.V.JSC$20145_disconnect_=function(G){cT("Disconnecting with "+G);_.Eu("yt.mdx.remote.remoteClient_",null);i5o(this);this.publish("beforeDisconnect",G);G==1&&QV();this.channelService.disconnect(G);this.dispose()};
_.V.getPlayerContextData_=function(){var G=this.playerContext_;this.clientVideoId_&&(G=this.playerContext_.clone(),LxB(G,this.clientVideoId_,G.index));return GEC(G)};
_.V.setPlayerContextData_=function(G){var e=this,r=new Uh(G);r.videoId&&r.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=r.videoId,_.X_(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.jm(function(){if(e.clientVideoId_){var O=e.clientVideoId_;e.clientVideoId_=null;e.playerContext_.videoId!=O&&$YW(e,"getNowPlaying")}},5E3));
var Z=[];this.playerContext_.listId==r.listId&&this.playerContext_.videoId==r.videoId&&this.playerContext_.index==r.index||Z.push("remoteQueueChange");this.playerContext_.playerState==r.playerState&&this.playerContext_.volume==r.volume&&this.playerContext_.muted==r.muted&&NAC(this.playerContext_)==NAC(r)&&(0,_.dT)(this.playerContext_.trackData)==(0,_.dT)(r.trackData)||Z.push("remotePlayerChange");this.playerContext_.reset(G);_.rR(Z,function(O){this.publish(O)},this)};
_.V.getOtherConnectedRemoteId_=function(){var G=this.channelService.getDeviceId(),e=_.Cf(this.connectedDevices_,function(r){return r.type=="REMOTE_CONTROL"&&r.id!=G});
return e?e.id:""};
_.V.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.V.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.V.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.V.JSC$20145_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var qaa=function(G){_.X_(G.idleDisconnectTimerId_);G.idleDisconnectTimerId_=_.jm(function(){G.JSC$20145_disconnect_(1)},864E5)},$YW=function(G,e,r){r?cT("Sending: action="+e+", params="+(0,_.dT)(r)):cT("Sending: action="+e);
G.channelService.sendMessage(e,r)};
OC.prototype.sendMessageWithUserAction_=function(G,e){$YW(this,G,e);qaa(this)};
OC.prototype.JSC$20145_getXsrfToken_=function(){var G=_.oZ.get("SAPISID","")||_.oZ.get("__Secure-1PAPISID",void 0)||"",e=_.oZ.get("__Secure-3PAPISID","")||"";if(!G&&!e)return"";G=_.uH(_.IF(G),2);e=_.uH(_.IF(e),2);return _.uH(_.IF(","+G+","+e),2)};
OC.prototype.subscribe=OC.prototype.subscribe;OC.prototype.unsubscribeByKey=OC.prototype.unsubscribeByKey;OC.prototype.getProxyState=OC.prototype.getProxyState_;OC.prototype.disconnect=OC.prototype.JSC$20145_disconnect_;OC.prototype.getPlayerContextData=OC.prototype.getPlayerContextData_;OC.prototype.setPlayerContextData=OC.prototype.setPlayerContextData_;OC.prototype.getOtherConnectedRemoteId=OC.prototype.getOtherConnectedRemoteId_;OC.prototype.getReconnectTimeout=OC.prototype.getReconnectTimeout_;
OC.prototype.getAutoplayMode=OC.prototype.getAutoplayMode_;OC.prototype.getAutoplayVideoId=OC.prototype.getAutoplayVideoId_;OC.prototype.reconnect=OC.prototype.JSC$20145_reconnect_;OC.prototype.sendMessage=OC.prototype.sendMessageWithUserAction_;OC.prototype.getXsrfToken=OC.prototype.JSC$20145_getXsrfToken_;OC.prototype.isCapabilitySupportedOnConnectedDevices=OC.prototype.isCapabilitySupportedOnConnectedDevices_;var Xzo=function(G){cR.call(this,"ScreenServiceProxy");this.instance_=G;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.CB)(this.JSC$20148_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.CB)(this.onOnlineScreenChange_,this)))};
_.K(Xzo,cR);_.V=Xzo.prototype;_.V.getScreens=function(G){return this.instance_.$_gs(G)};
_.V.contains=function(G){return!!this.instance_.$_c(G)};
_.V.get=function(G){return this.instance_.$_g(G)};
_.V.start=function(){this.instance_.$_st()};
_.V.add=function(G,e,r){this.instance_.$_a(G,e,r)};
_.V.remove=function(G,e,r){this.instance_.$_r(G,e,r)};
_.V.updateName=function(G,e,r,Z){this.instance_.$_un(G,e,r,Z)};
_.V.disposeInternal=function(){for(var G=this.subscriptionKeys_.length,e=0;e<G;++e)this.instance_.$_ubk(this.subscriptionKeys_[e]);this.subscriptionKeys_.length=0;this.instance_=null;cR.prototype.disposeInternal.call(this)};
_.V.JSC$20148_onScreenChange_=function(){this.publish("screenChange")};
_.V.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
An.prototype.$_st=An.prototype.start;An.prototype.$_gspc=An.prototype.JSC$20107_getScreenByPairingCode;An.prototype.$_gsppc=An.prototype.JSC$20107_getScreenByPollingPairingCode;An.prototype.$_c=An.prototype.contains;An.prototype.$_g=An.prototype.get;An.prototype.$_a=An.prototype.add;An.prototype.$_un=An.prototype.updateName;An.prototype.$_r=An.prototype.remove;An.prototype.$_gs=An.prototype.getScreens;An.prototype.$_gos=An.prototype.JSC$20107_getOnlineScreens;An.prototype.$_s=An.prototype.subscribe;
An.prototype.$_ubk=An.prototype.unsubscribeByKey;var t08=null,fkV=!1,zp=null,WR=null,akW=null,eA=[];var kE2=new _.PG("yt-menu"),H5H=function(){},ozm=function(G,e,r){G=e=="right-click"?r.rightClickMenuPopupHint:r.menuPopupHint;
if(!(dYm(e)>10))return e=e||"default",kE2.set(e+"-impression",dYm(e)+1),G},dYm=function(G){return parseInt(kE2.get((G||"default")+"-impression")||0,10)};
_.Fb(H5H);var sYa=function(){this.contexts_=new WeakMap;this.JSC$20154_networkService_=this.activeContext_=null},QYm=function(G,e,r){var Z=G.contexts_.get(e);
Z||(Z=new pvB(G.JSC$20154_networkService_),G.contexts_.set(e,Z));G.activeContext_=Z;r&&G.activeContext_.reset();G.activeContext_.start();return G.activeContext_};var YD=function(){};
YD.prototype.enqueue=function(){var G=this,e;return _.D(function(r){if(G.isCounterfactual())return(e=G.getCounterfactualData())&&G.shouldLogCounterfactualImpression()&&G.sendImpressionEndpoints(e),r.return();G.doEnqueue();_.HL(r)})};
YD.prototype.sendImpressionEndpoints=function(G){_.e8.getInstance().triggerOptionalAction("yt-service-request",{},G[0])};var y0=function(G,e){this.renderer=G;this.page=e};
_.K(y0,YD);y0.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
y0.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
y0.prototype.shouldLogCounterfactualImpression=function(){return!0};
y0.prototype.doEnqueue=function(){var G=_.Ae(this.page);G&&G.pause();this.renderer.impressionCommand&&_.e8.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.ul(_.e8.getInstance(),[this.renderer.promoCommand],this.page)};var I8W=function(G,e){this.renderer=G;this.resolver=_.C1();this.JSC$20166_enforcementCounter=new _.OFW;e?this.JSC$20166_playerManager=_.Ae(e):this.JSC$20166_playerManager=null;_.ZC(1,!0)};
_.K(I8W,YD);_.V=I8W.prototype;_.V.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var G=[];this.renderer.impressionEndpoints.forEach(function(e){(e=_.X0(e))&&G.push(e)});
return G}};
_.V.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.V.shouldLogCounterfactualImpression=function(){var G=_.d5_();G?(this.JSC$20166_enforcementCounter.increment("POPUP"),_.ZC(3)):_.ZC(2);return G};
_.V.cancel=function(){this.resolver.promise.cancel()};
_.V.doEnqueue=function(){var G=this;_.d5_()?(this.JSC$20166_enforcementCounter.increment("POPUP"),_.ZC(3),pdV(this)):this.JSC$20166_playerManager?(this.resolver.promise.then(function(){pdV(G)}),CNH(this.resolver,this.JSC$20166_playerManager)):_.ZC(2)};
var CNH=function(G,e){var r=_.C1();e.getPlayerPromise().then(function(Z){r.resolve(Z)});
r.promise.then(function(Z){Z.addEventListener("onAbnormalityDetected",G.resolve);_.fY(G.promise,function(){Z.removeEventListener("onAbnormalityDetected",G.resolve)})});
G.promise.thenCatch(function(){r.promise.cancel()})},pdV=function(G){_.ZC(3);
var e={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:G.renderer}};e=_.e8.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:e},{});Promise.all(e).then(function(){uuA();G.JSC$20166_playerManager&&G.JSC$20166_playerManager.pause()})},uuA=function(){lMa(function(G,e){_.iRY(G,e);
G===0?_.ZC(7):_.ZC(4)})};var nzA=function(G,e){this.renderer=G;this.page=e;this.resolver=_.C1()};
_.K(nzA,YD);_.V=nzA.prototype;_.V.cancel=function(){this.resolver.promise.cancel()};
_.V.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.V.isCounterfactual=function(){return!this.renderer.isVisible};
_.V.shouldLogCounterfactualImpression=function(){return!0};
_.V.doEnqueue=function(){var G=this;this.resolver.promise.then(function(){var r={popup:{mealbarPromoRenderer:G.renderer},popupType:"MEALBAR"};_.e8.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:r},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var e=_.Ae(this.page);e&&mYV(this.resolver,e)}break;default:this.resolver.resolve()}};
var mYV=function(G,e){var r=_.C1();e.getPlayerPromise().then(function(Z){r.resolve(Z)});
r.promise.then(function(Z){Z.addEventListener("onAdEnd",G.resolve);_.fY(G.promise,function(){Z.removeEventListener("onAdEnd",G.resolve)})});
G.promise.thenCatch(function(){r.promise.cancel()})};var c$d=function(G,e){this.renderer=G;this.page=e};
_.K(c$d,YD);_.V=c$d.prototype;_.V.cancel=function(){this.JSC$20174_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20174_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20174_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.V.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.V.isCounterfactual=function(){return!this.renderer.isVisible};
_.V.shouldLogCounterfactualImpression=function(){return!0};
_.V.doEnqueue=function(){var G=this,e,r;((e=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(r=e.playbackUpsellDialogTriggerConditionData)==null?void 0:r.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20174_downloadedVideosCountSelectorUnsubscriber=_.IC(_.Yt(),tsm,function(Z,O){Z>O&&(Yaa(G),G.cancel())}):Yaa(this)};
var Yaa=function(G){var e={popup:{upsellDialogRenderer:G.renderer},popupType:"MODAL"};_.e8.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:e},{});(G=_.Ae(G.page))&&G.pause()};var AC={},y$W=(AC.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",AC.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",AC.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",AC.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",AC.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",AC.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",AC.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",AC),A$B=function(G,e){this.renderer=G;this.targetManager=
e};
_.K(A$B,YD);_.V=A$B.prototype;_.V.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20181_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20181_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20181_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.V.getCounterfactualData=function(){if(this.isCounterfactual()){var G;return(G=this.renderer.promoConfig)==null?void 0:G.impressionEndpoints}};
_.V.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.V.shouldLogCounterfactualImpression=function(){return!0};
_.V.doEnqueue=function(){var G=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20181_downloadedVideosCountSelectorUnsubscriber=_.IC(_.Yt(),tsm,function(e,r){G.renderer.targetId&&e>r&&(Mgm(G.targetManager,G.renderer.targetId,FgA(G)),G.cancel())});
break;default:Mgm(this.targetManager,this.renderer.targetId,FgA(this))}};
var FgA=function(G){var e;if((e=G.renderer.suggestedPosition)==null?0:e.type)var r=y$W[G.renderer.suggestedPosition.type];r||(r="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:G.renderer},popupType:"HINT",position:r}}};var J$a=function(){this.previousPage=null},BGm;
J$a.prototype.registerPromoCommand=function(G,e){xYA(this,void 0,void 0,_.a(G.roadblock,a5W),void 0,void 0,e)};
var xYA=function(G,e,r,Z,O,M,T){G.previousPage!==T&&G.pendingTooltipPromo&&G.pendingTooltipPromo.cancel();G.previousPage=T;O?(G.pendingEnforcementPromo&&G.pendingEnforcementPromo.cancel(),G.pendingEnforcementPromo=new I8W(O,T),G.pendingEnforcementPromo.enqueue()):M?(G.pendingCommandWrapperPromo=new y0(M,T),G.pendingCommandWrapperPromo.enqueue()):Z?(G.pendingRoadblockPromo&&G.pendingRoadblockPromo.cancel(),G.pendingRoadblockPromo=new c$d(Z,T),G.pendingRoadblockPromo.enqueue()):e?(G.pendingMealbarPromo&&
G.pendingMealbarPromo.cancel(),G.pendingMealbarPromo=new nzA(e,T),G.pendingMealbarPromo.enqueue()):r&&(G.pendingTooltipPromo&&G.pendingTooltipPromo.cancel(),G.pendingTooltipPromo=new A$B(r,_.Kh()),G.pendingTooltipPromo.enqueue())},PNa=function(){BGm||(BGm=new J$a);
return BGm};var oUW=!1;var V78=function(G,e){var r=_.xZ("SESSION_INDEX");this.actionToken_=G;this.commonToken_=e;this.sessionIndex_=r},M7d=function(G){var e=_.C1(),r=_.Lz("payments.business.integration.bootstrap"),Z=_.Lz("payments.business.integration"),O=Z.Style.create().withMaterialDesignStyle(),M=Z.mashupMode.popup("instrument-manager");
r.asMashupMode(M).usingUserIndex(G.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(O).inStandaloneContext(Z.standaloneContextAuthId.forUserId()).instrumentManager(G.actionToken_,G.commonToken_.length>0?G.commonToken_:void 0,function(T){var E=T.instrumentId;E?e.resolve(E):(E=_.Lz("payments.business.integration.scenario.InstrumentManager"),e.reject(T.errorCode&&T.errorCode===E.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(T){_.WX(T);
e.reject("instrumentManagerLoadError")});
return e.promise};var Tf=function(G,e,r){this.payloadName="transactionFlowFailed";this.payload={errorType:G,serializedTransactionFlowLoggingParams:e,isUserDismiss:r===void 0?!1:r}};
_.Eu("yt.ypc.shared.YpcTransactionFlowError",Tf);var FI=function(){return _.DQ.apply(this,arguments)||this};
_.K(FI,_.DQ);FI.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
FI.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
FI.prototype.onErrorMessageDismiss=FI.prototype.onErrorMessageDismiss;_.B([_.n({readOnly:!0,observer:"errorRendererChanged"}),_.x("design:type",Object)],FI.prototype,"errorRenderer",void 0);_.B([_.Om("yt-live-chat-error-message-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FI.prototype,"onErrorMessageDismiss",null);_.B([_.Em()],FI);var UYo=[FI.prototype];var zQ8;var WgC;var NGV=new _.PG("yt-live-chat"),LgV=new Map;LgV.set("timestamp_toggle","show-timestamps");LgV.set("reactions_toggle","allow-reactions");var JC=function(){return _.m.apply(this,arguments)||this};
_.K(JC,_.m);_.V=JC.prototype;_.V.menuItemIdentifierChanged=function(){var G;(G=this.data)!=null&&G.menuItemIdentifier&&(G=LgV.get(this.data.menuItemIdentifier))&&(_.R("enable_lwe_web_mute")?(G=NGV.get(G),this.isToggled=!(G===void 0?!this.data.isToggled:!G)):this.isToggled=NGV.get(G))};
_.V.onFocus=function(){this.toggleButton.focus()};
_.V.onTap=function(){var G=this.data.command;G&&this.componentBehavior.resolveCommand(G)};
_.V.computeText=function(G,e,r){return this.componentBehavior.getSimpleString(G?r:e)};
_.V.computeIcon=function(G,e,r){return(G=G?r:e)&&G.iconType?_.Ne(G.iconType):""};
JC.prototype.onTap=JC.prototype.onTap;JC.prototype.onFocus=JC.prototype.onFocus;JC.prototype.menuItemIdentifierChanged=JC.prototype.menuItemIdentifierChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],JC.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],JC.prototype,"componentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],JC.prototype,"data",void 0);
_.B([_.n({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.x("design:type",String)],JC.prototype,"icon",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],JC.prototype,"isToggled",void 0);_.B([_.hs("tp-yt-paper-toggle-button"),_.x("design:type",Object)],JC.prototype,"toggleButton",void 0);_.B([_.Me("data.menuItemIdentifier"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JC.prototype,"menuItemIdentifierChanged",null);
_.B([_.Om("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JC.prototype,"onFocus",null);_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JC.prototype,"onTap",null);_.B([_.aR({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],JC);
_.A(JC,"yt-live-chat-toggle-renderer",function(){if(WgC===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;zQ8===void 0&&(zQ8=document.createElement("template"));var Z=zQ8;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);WgC=G}G=WgC;return G},{mode:0});var GPm=new _.Gz("NAVIGATION_PROGRESS_TOKEN");var eHo={},rmm={},ZIY=(rmm[iw8.name]=!0,rmm),BT=function(){var G=_.DQ.apply(this,arguments)||this;G._noAccessors=!0;G.tabGesturesIsActive=!1;G.actionRouterIsRoot=!0;G.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"};G.pageTitle="";G.titleSuffix="YouTube";G.unseenNotificationCount=
0;G.hasNavigated=!1;G.hasSetScrollTopForNavigation=!1;G.pagePreparer=null;G.zwiebackInitJobId=0;G.dataUpdatePromise=null;G.loadDepsPromise=_.Nz();G.hasPendingNavigation=!1;G.pendingPlayerOnResponseReceivedActions=[];return G};
_.K(BT,_.DQ);BT.prototype.attached=function(){OIW(this);document.addEventListener("yt-navigate-cache",_.ZQ(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var G=xD();G.init();G.dispatchElement=this.hostElement};
var OIW=function(G,e){e=e===void 0?0:e;var r=_.v_().resolve(_.bq(_.X9));if(r)MLA(G,r);else{if(e>=5)throw Error("tl");setTimeout(function(){OIW(G,e+1)},0)}},MLA=function(G,e){e.addEventListener("yt-navigate-start",_.ZQ(G,G.onYtNavigateStart));
e.addEventListener("yt-navigate-finish",_.ZQ(G,G.onYtNavigateFinish));e.addEventListener("yt-navigate-error",_.ZQ(G,G.onYtNavigateError));e.addEventListener("yt-page-data-fetched",_.ZQ(G,G.onYtPageDataFetched))};
_.V=BT.prototype;_.V.detached=function(){var G=_.v_().resolve(_.X9);G.removeEventListener("yt-navigate-start",_.ZQ(this,this.onYtNavigateStart));G.removeEventListener("yt-navigate-finish",_.ZQ(this,this.onYtNavigateFinish));G.removeEventListener("yt-navigate-error",_.ZQ(this,this.onYtNavigateError));G.removeEventListener("yt-page-data-fetched",_.ZQ(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.ZQ(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.V.setPageOffset=function(G,e){G?_.Pi(this.hostElement,"yt-set-page-offset",[G,e]):_.yx(Error("ul"))};
_.V.setPageOffsetForNavigation=function(G,e){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(G,e))};
_.V.onYtNavigateSetPageOffset=function(G,e){this.setPageOffsetForNavigation(e.page,e.offset)};
_.V.getPageOffset=function(){var G=_.z1(this.hostElement).querySelector("#page-manager").getCurrentPage(),e=0;G&&(e=_.Pi(this.hostElement,"yt-get-page-offset",[G])[0]);return e};
_.V.onYtHistoryPop=function(G,e){if(_.PX("DISABLE_WARM_LOADS"))G.preventDefault(),window.location.reload();else{var r=_.v_().resolve(_.X9);r.hasPendingNavigation()&&G.preventDefault();r.cancelPendingNavigation();_.UW(this.hostElement,"yt-pending-navigation-cancelled");e.errorMsg&&(G=e.errorMsg.split(" - "),e=Error(G[0]),G.length==2&&G[1]&&(_.JG(e,G[1]),_.FH(e)),window.location.reload())}};
_.V.onYtHistoryLoad=function(G,e){var r=this;if(_.PX("DISABLE_WARM_LOADS"))window.location.reload();else{(G=e.endpoint)&&Object.keys(G).length||(G=null);var Z=e.historyEntry,O=_.v_().resolve(_.X9),M=_.v_().resolve(_.y$),T=null;Z&&Z.rootData&&(T=Z.rootData);var E=T&&VLm(T);!T||E||T.filler?G?(O.navigate(G,!0),hH8(this,G)):(e.legacyBorder||E||(e.JSC$30483_savedComponentState==null&&T==null?_.FH(new _.Cr("Incomplete history entry",e.forward)):_.AG(new _.Cr("Malformed history entry",e.JSC$30483_savedComponentState,
e.forward,T))),window.location.reload()):(_.x8p({isHot:!0}),_.gJ({webInfo:{navigationReason:"h"}}),_.aPi(),_.jq("srt"),_.jq("pdc"),this.cancelPendingTasks(),TiC(this,e.forward,T),T.player&&(T.player.loaded=!1),hH8(this,G),_.KRW(O,G||{},T,2,{},!1,e).then(function(){r.setPageOffset(M.getCurrentPage(),Z.scrollTop||0)}))}};
_.V.initHistoryManager=function(G){if(!this.hasNavigated){this.hasNavigated=!0;var e=_.z1(this.hostElement).querySelector("#page-manager").getCurrentData();G=isNaN(G)?this.getPageOffset():G;var r=_.v_().resolve(_.X9).currentEndpoint;this.replaceState(r,e,G)}};
_.V.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.V.onYtNavigateStart=function(G,e){this.cancelPendingTasks();e.noProgressBar||(G=_.v_().resolve(_.bq(GPm)))&&G.start();G=this.hasPendingNavigation?null:this.data;var r=_.v_().resolve(_.y$),Z,O,M;_.R("kevlar_use_vimio_behavior")&&!((Z=e.endpoint)==null?0:(O=Z.commandMetadata)==null?0:(M=O.webCommandMetadata)==null?0:M.ignoreNavigation)&&(Z=r.getCurrentPage())&&Z.disconnectVisibilityRoot();r.prepareForNavigation(e.pageType,e.endpoint);_.R("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.MG(1,
"pcl"),_.Vf(this.pagePreparer,r.preparePage.bind(r,e.pageType,e.endpoint)));Z=this.getPageOffset();this.initHistoryManager(Z);e.reload||this.hasPendingNavigation?((_.R("web_enable_delay_shorts_sequence_call")||_.R("web_enable_shorts_sequence_cache_fix"))&&e.pageType==="shorts"&&e.reload&&_.xy(this.hostElement,"yt-shorts-reset"),this.replaceState(e.endpoint,G,Z)):(G==null?void 0:G.page)==="watch"&&e.pageType==="watch"&&_.R("kevlar_replace_watch_to_watch_history_state")?this.replaceState(e.endpoint,
G,Z):(G==null?void 0:G.page)!=="shorts"||e.pageType!=="shorts"||e.endpoint.reelWatchEndpoint.sequenceParams||_.R("short_to_short_back_nav_killswitch")?e.type!="navigate-back"&&e.type!="navigate-forward"&&(e.pageType==="shorts"&&_.xy(this.hostElement,"yt-shorts-reset"),this.saveAndPush(e.url,e.endpoint,G,Z)):(_.R("web_enable_delay_shorts_sequence_call")&&(e.endpoint.reelWatchEndpoint.sequenceParams=G==null?void 0:G.cachedSequenceParams,e.endpoint.reelWatchEndpoint.sequenceProvider=G==null?void 0:G.cachedSequenceProvider),
this.replaceState(e.endpoint,G,0));this.hasPendingNavigation=!0};
var DDY=function(G){G.hasPendingNavigation=!1;(G=_.v_().resolve(_.bq(GPm)))&&G.finish()};
BT.prototype.onYtNavigateError=function(G,e){DDY(this);G=this.get("endpoint.commandMetadata.webCommandMetadata.url",e);var r=_.O5(window.location.href);G&&!r.pbjreload&&(e=e.navigationErrorReason||"10",_.R("kevlar_parent_on_pbjreload")&&(r={csn:_.l4()},this.get("data.endpoint.clickTrackingParams")&&(r.itct=this.data.endpoint.clickTrackingParams),_.Yy(G,r)),_.kN(_.Mt(G,{pbjreload:e})))};
BT.prototype.onYtNavigateCache=function(G,e){var r=this,Z=e.url,O=e.endpoint,M=e.data;G=!!e.miniplayer;e=!!e.skipHistory;if(Z&&O&&M){var T=this.getPageOffset(),E=this.data||null;e||this.saveAndPush(Z,O,E,T);Z=_.KRW(_.v_().resolve(_.X9),O,M,G?4:3,{},G);G&&Z.then(function(){r.dataUpdatePromise&&r.dataUpdatePromise.then(function(){var b=_.v_().resolve(_.y$);r.setPageOffset(b.getCurrentPage(),0)})})}};
BT.prototype.onYtNavigateFinish=function(G,e){var r=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){Eqo(r,e.fromHistory)})};
var Eqo=function(G,e){DDY(G);if(G.pendingPlayerOnResponseReceivedActions){for(var r=_.h(G.pendingPlayerOnResponseReceivedActions),Z=r.next();!Z.done;Z=r.next())_.es(Z.value,G.hostElement);G.pendingPlayerOnResponseReceivedActions=[]}r=_.v_().resolve(_.y$);e||!G.hasNavigated||_.R("web_disable_scroll_on_navigate_finish")||((e=r.getCurrentPage())?e.is==="ytd-shorts"||G.tabGesturesIsActive||G.setPageOffsetForNavigation(e,0):_.FH(Error("vl")));_.oR(function(){_.oR(function(){_.jq("pda")})})};
BT.prototype.onYtNavigate=function(G){if(!G.detail.endpoint){var e=new _.Cr("Error: Missing yt-navigate endpoint from target:",G.target,G.target.nodeName);_.yx(e)}if(e=_.R("cold_missing_history"))e=xD(),e.init(!1),e=!(e.browserHistory.boundHistoryReplaceState&&e.browserHistory.boundHistoryPushState);if(e){_.BX("DISABLE_WARM_LOADS",!0);e=new _.Cr("Failed to initialize history manager",this.getDebugString());var r=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
r?_.FH(e):_.yx(e)}e=G.detail.endpoint;var Z,O;_.R("debug_forward_web_query_parameters")&&((Z=e.commandMetadata)==null?0:(O=Z.webCommandMetadata)==null?0:O.url)&&(e=JSON.parse(JSON.stringify(e)),e.commandMetadata.webCommandMetadata.url=_.wn4(e.commandMetadata.webCommandMetadata.url,window.location.search));G={type:0,command:e,form:{params:G.detail.params,tempData:G.detail.tempData||{},requestType:G.detail.type,createScreenConfig:G.detail.createScreenConfig,reload:G.detail.reload?G.detail.reload:!1,
requestForm:G.detail}};_.R("kevlar_yt_navigate_command_handler")?(Z=_.v_().resolve(_.$1),G.form.skipDefaultElement=!0,Z.resolveCommand(e,{form:G.form})):this.handleNavigate(G)};
BT.prototype.handleNavigate=function(G){this.hasSetScrollTopForNavigation=!1;var e=_.v_().resolve(_.X9),r=G.form||{};e.navigate(G.command,r.reload,r.params,r.tempData,r.requestType,r.createScreenConfig,r.ignoreConfirmation,r.requestForm)&&hH8(this,G.command,r.tempData)};
BT.prototype.onYtPageDataFetched=function(G,e){try{_.wlE().reset();this.data=e.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.v_().resolve(_.y$).updatePageData(this.data);var r=this.get("playerResponse.onResponseReceivedActions",this.data);r&&(r=iId(this,r));r&&_.Wi(this.hostElement,r,this.hostElement);var Z=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),O=this.get("response.responseContext.consistencyTokenJar",this.data);if(Z||O){var M=_.SUy(),T=(0,_.c2.getValues)(M.tokenJars);Z&&M.replace(T,Z);O&&M.replace(T,O)}}catch(E){_.yx(E)}};
var hH8=function(G,e,r){try{G.onYtEndpointChangeHandler(e,r)}catch(Z){_.yx(Z)}};
_.V=BT.prototype;_.V.onYtEndpointChangeHandler=function(){};
_.V.setPageTitle=function(G){G=(this.pageTitle=G)?G+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+G};
_.V.onYtUpdateTitle=function(G,e){this.setPageTitle(e)};
_.V.setUnseenNotificationCount=function(G){this.unseenNotificationCount=G;this.setPageTitle(this.pageTitle)};
_.V.handleUpdateNotificationsUnseenCountAction=function(G){_.a(G,xR8)&&((G=_.a(G,xR8).unseenCount)?this.setUnseenNotificationCount(G):this.setUnseenNotificationCount(0))};
_.V.handleClearCookieAction=function(G){var e;(G=(e=_.a(G,AEB))==null?void 0:e.cookieName)&&_.I__(G)};
_.V.onYtUpdateUnseenNotificationCount=function(G,e){this.setUnseenNotificationCount(e)};
_.V.loadData=function(G){var e=this;this.loadDepsPromise.then(function(){var r=_.v_().resolve(_.bq(_.X9));r||_.yx(Error("wl"));if(G&&G.response){if(!G.endpoint){var Z=_.sW(window.document.location.href)||"/",O="";if(Z==="/"||Z.startsWith("/?"))O="WEB_PAGE_TYPE_BROWSE";G.endpoint={commandMetadata:{webCommandMetadata:{url:Z,webPageType:O,rootVe:3854}}}}_.KRW(r,G.endpoint,G,5,{})}else G.endpoint?r.navigate(G.endpoint):r.navigate(_.Q_);_.A0.cancelJob(e.zwiebackInitJobId);e.zwiebackInitJobId=_.A0.addLowPriorityJob(srC)})};
var xD=function(){return _.v_().resolve(_.XL)};
BT.prototype.getDebugString=function(){return xD().getDebugString()};
BT.prototype.getThirdPartyManipulationSuspected=function(){return xD().getThirdPartyManipulationSuspected()};
BT.prototype.replaceState=function(G,e,r){xD().saveAndReplace(G,e,r)};
BT.prototype.saveAndPush=function(G,e,r,Z){xD().saveAndPush(G,e,r,Z)};
var VLm=function(G){return _.a(G.endpoint,_.u4)||_.a(G.endpoint,_.DC)?!0:!G||isNaN(G.expirationTime)?!1:(0,_.vG)()>G.expirationTime},TiC=function(G,e,r){var Z=G.get("response.trackingParams",r),O=_.go(),M=_.l4();
if(Z&&O&&M&&(Z=G.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",r),!Z&&r.rootVe&&(Z=r.rootVe),O=e?"forwardButton":"backButton",e=G.get("playerResponse.topbar.desktopTopbarRenderer."+O+".buttonRenderer.command.clickTrackingParams",G.data),G=G.get("response.topbar.desktopTopbarRenderer."+O+".buttonRenderer.command.clickTrackingParams",G.data),e=(G=e||G)?_.b1(G):void 0,G=_.h_(),O=[_.Nz(r)],_.aC(G,Z,e,{dataPromises:O,csnToClone:r.csn}),r.graftedVes))for(r=
_.h(r.graftedVes),Z=r.next();!Z.done;Z=r.next())_.Xr(G,Z.value)};
BT.prototype.onStoreGraftedVeAction=function(G){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(G)):_.FH(Error("xl"))};
var iId=function(G,e){return e.filter(function(r){for(var Z in r)if(ZIY[Z])return G.pendingPlayerOnResponseReceivedActions.push(r),!0;return!1})};
_.iY.Object.defineProperties(BT.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
BT.prototype.onStoreGraftedVeAction=BT.prototype.onStoreGraftedVeAction;BT.prototype.loadData=BT.prototype.loadData;BT.prototype.onYtUpdateUnseenNotificationCount=BT.prototype.onYtUpdateUnseenNotificationCount;BT.prototype.handleClearCookieAction=BT.prototype.handleClearCookieAction;BT.prototype.handleUpdateNotificationsUnseenCountAction=BT.prototype.handleUpdateNotificationsUnseenCountAction;BT.prototype.setUnseenNotificationCount=BT.prototype.setUnseenNotificationCount;
BT.prototype.onYtUpdateTitle=BT.prototype.onYtUpdateTitle;BT.prototype.setPageTitle=BT.prototype.setPageTitle;BT.prototype.onYtEndpointChangeHandler=BT.prototype.onYtEndpointChangeHandler;BT.prototype.onYtPageDataFetched=BT.prototype.onYtPageDataFetched;BT.prototype.handleNavigate=BT.prototype.handleNavigate;BT.prototype.onYtNavigate=BT.prototype.onYtNavigate;BT.prototype.onYtNavigateFinish=BT.prototype.onYtNavigateFinish;BT.prototype.onYtNavigateCache=BT.prototype.onYtNavigateCache;
BT.prototype.onYtNavigateError=BT.prototype.onYtNavigateError;BT.prototype.onYtNavigateStart=BT.prototype.onYtNavigateStart;BT.prototype.cancelPendingTasks=BT.prototype.cancelPendingTasks;BT.prototype.initHistoryManager=BT.prototype.initHistoryManager;BT.prototype.onYtHistoryLoad=BT.prototype.onYtHistoryLoad;BT.prototype.onYtHistoryPop=BT.prototype.onYtHistoryPop;BT.prototype.onYtNavigateSetPageOffset=BT.prototype.onYtNavigateSetPageOffset;BT.prototype.setPageOffset=BT.prototype.setPageOffset;
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],BT.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],BT.prototype,"data",void 0);_.B([_.Om("yt-navigate-set-page-offset"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],BT.prototype,"onYtNavigateSetPageOffset",null);
_.B([_.Om("yt-history-pop"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],BT.prototype,"onYtHistoryPop",null);_.B([_.Om("yt-history-load"),_.x("design:type",Function),_.x("design:paramtypes",[Event,_.ynj]),_.x("design:returntype")],BT.prototype,"onYtHistoryLoad",null);_.B([_.Om("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],BT.prototype,"onYtNavigate",null);
_.B([_.Om("yt-update-title"),_.x("design:type",Function),_.x("design:paramtypes",[Event,String]),_.x("design:returntype")],BT.prototype,"onYtUpdateTitle",null);_.B([_.Om("yt-update-unseen-notification-count"),_.x("design:type",Function),_.x("design:paramtypes",[Event,Number]),_.x("design:returntype")],BT.prototype,"onYtUpdateUnseenNotificationCount",null);_.B([_.Em()],BT);eHo.YtdAppBehavior=[_.gF.YtActionHandlerBehavior,BT.prototype];var PT=function(){var G=_.DQ.apply(this,arguments)||this;G._noAccessors=!0;return G};
_.K(PT,_.DQ);PT.prototype.ready=function(){var G=this;_.z1(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){G.onChange_()})};
PT.prototype.dataChanged_=function(){_.z1(this.hostElement).querySelector("#checkbox").checked=!1};
PT.prototype.onChange_=function(){var G=_.z1(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.xy(this.hostElement,"yt-dismissal-reason-"+G,this.data.feedbackToken)};
PT.prototype.dataChanged_=PT.prototype.dataChanged_;_.B([_.n(),_.x("design:type",Object)],PT.prototype,"data",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],PT.prototype,"dataChanged_",null);_.B([_.Em()],PT);var bIa=[PT.prototype];var UG=function(){var G=_.DQ.apply(this,arguments)||this;G.timeoutJobId=0;G.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return G};
_.K(UG,_.DQ);UG.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
UG.prototype.startTimeout=function(){var G=this,e=this.data&&this.data.displayDurationSeconds;e&&!this.timeoutJobId&&(this.timeoutJobId=_.IQ(_.A0,function(){_.Pi(G.hostElement,"yt-close-popup-action",[G.is]);G.timeoutJobId=0},e*1E3))};
UG.prototype.cancelTimeout=function(){_.A0.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
UG.prototype.ytdHatsSurveyBehaviorDataChanged=UG.prototype.ytdHatsSurveyBehaviorDataChanged;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],UG.prototype,"ytActionHandlerBehavior",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UG.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.B([_.Em()],UG);var vqd=[_.gF.YtActionHandlerBehavior,UG.prototype];var wPl=function(G,e){var r;return((r=G.prefixMapping)==null?0:r[e])?G.prefixMapping[e]:G.SHARED_RENDERERS_.hasOwnProperty(e)?"yt":G.prefix},zY={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}};zY.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.R("kevlar_mealbar_above_player"),modern:!0,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"}};
zY.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};zY.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};zY.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
zY.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)"}};
zY.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};
zY.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};
zY.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};
zY.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};
zY.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"}};zY.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};zY.TOAST={component:null,properties:{}};var $Dl=new function(G,e,r){this.supportedPopups=G;this.navigationEndpointPopupMap=e;this.popupTypeMap=r;this.supportedPopups=G;this.navigationEndpointPopupMap=e;this.popupTypeMap=r}({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:_.R("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"}),SLW=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$20232_popupConfig=zY;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 qLV=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.y1.getInstance()},WT=function(G,e){var r=G.pageNameToElement.get(e);
if(!r){switch(e){case "watch":var Z=_.R("web_watch_force_learning_journey_for_testing")?_.OD("ytd-watch-learning-journey"):_.R("kevlar_watch_fixie")?_.OD("ytd-watch-fixie"):_.R("kevlar_watch_grid")?_.OD("ytd-watch-grid"):_.OD("ytd-watch-flexy");break;case "learning_journey_watch":Z=_.OD("ytd-watch-learning-journey");break;case "shorts":Z=_.OD("ytd-shorts");break;case "search":Z=_.OD("ytd-search");break;case "channel":Z=_.OD("ytd-browse");Z.pageSubtype="channels";break;case "trending":Z=_.OD("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=
_.OD("ytd-browse");Z.pageSubtype=e;break;case "browse":Z=_.OD("ytd-browse");break;default:_.FH(new _.Cr("Error getting page element for type",e))}r=Z;G.pageNameToElement.set(e,r)}return r};
qLV.prototype.preparePage=function(G,e,r){r&&(G=_.OO(r)||G);if(G!=="watch"&&G!=="learning_journey_watch"){var Z=this.elementPoolPopulator,O=G;O!=Z.targetPage_&&Z.pendingPages_.indexOf(O)>-1&&(Z.targetPage_&&(Z.pendingPages_.unshift(Z.targetPage_),Z.abort()),TdW(Z,O),_.ArC(Z,O))}if((Z=WT(this,G))||!_.a(r,_.G2)){Z.isAttached||Z===e||(Z.hidden=!0);if(!Z.data&&(G!=="watch"&&G!=="learning_journey_watch"||!_.R("swatcheroo_page_pool_dont_provide_filler_data"))){var M;if(G=(M=_.xZ("FILLER_DATA",{})[G])==
null?void 0:M.response)Z.data=G}return Z}};var tLH=function(G){this.JSC$32456_clientRoot=G;this.playlistHandlerActionMap={"yt-add-to-playlist-command":Ye2,"yt-end-playlist-command":yVd,"yt-recover-playlist-command":F$H,"yt-refresh-playlist-command":xSa,"yt-playlist-remove-videos-action":JVV};_.re(_.e8.getInstance(),this.playlistHandlerActionMap,this.JSC$32456_clientRoot);tgo()},gqY;var NL=function(G,e,r){this.apiKey=G;this.endpoint=e;this.confidenceThreshold=r===void 0?.5:r;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 pko};
_.V=NL.prototype;
_.V.start=function(G){if(this.state===0)if(this.isOnline()){G.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=G.supportsHttpHeadersOverwriteParam);G.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=G.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.Rl("voice_assistant");_.K_("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=G.languageCode||"en-US";this.supportsCrossDomainXhr=G.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=G.youtubeAssistantRequest||null;this.listeningHandler=G.listeningHandler||this.listeningHandler;this.audioDetectedHandler=G.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=G.stopHandler||this.stopHandler;this.completeHandler=G.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=G.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=G.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
G.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=G.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=G.accessToken;this.additionalHeaders=G.additionalHeaders||{};var e;this.prefetchResponseTimeoutMs=(e=G.prefetchResponseTimeoutMs)!=null?e:this.prefetchResponseTimeoutMs;lUW(this);this.startAudio();RH2(this)}else this.errorHandler("OFFLINE")};
_.V.stop=function(G){var e=G===void 0?{}:G;G=e.logCancel===void 0?!0:e.logCancel;var r=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&&(G&&LZ("voz_cx"),GI(this,{logMicClosed:r,handleStop:e}),Z&&this.errorHandler("ABORTED"))};
_.V.getState=function(){return this.state};
_.V.isSupported=function(){return!0};
_.V.stopAudio=function(G){(G===void 0||G)&&LZ("voz_mf")};
_.V.startAudio=function(){LZ("voz_vp");return _.Nz(null)};
var jDC=function(G,e){G.channelOpen&&(G.state!==2&&(G.state=2,LZ("voz_ss"),G.listeningHandler()),e=new Uint8Array(e),e='{ "audioIn": "'+_.uH(e)+'" }',G.channel.send(e))},GI=function(G,e){var r=e===void 0?{}:e;
e=r.logMicClosed===void 0?!0:r.logMicClosed;r=r.handleStop===void 0?!0:r.handleStop;G.vozEndOfDataTimeout>-1&&(clearTimeout(G.vozEndOfDataTimeout),G.vozEndOfDataTimeout=-1);aUm(G);G.stopAudio(e);G.channel&&(G.channelOpen=!1,G.manuallyClosedChannel=!0,G.channel.close(),G.channel=void 0);G.transcribedSpeechResults=[];G.state=0;r&&G.stopHandler()},lUW=function(G){var e={httpHeadersOverwriteParam:G.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},G.additionalHeaders,G.accessToken&&G.isUsingVoz?{Authorization:"Bearer "+G.accessToken}:{"x-goog-api-key":G.apiKey}),supportsCrossDomainXhr:G.supportsCrossDomainXhr};G.channel=new Sy(G.endpoint,e);G.channel.open();_.w2(G.channel,"w",function(){var r=G.channel,Z=r.send,O=G.isUsingVoz?"PLACEHOLDER":"example";O={config:{dialogStateIn:{languageCode:G.languageCode},deviceConfig:{deviceId:O,deviceModelId:O},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!G.isUsingVoz)O.config.requestType=4;else if(G.isUsingVoz&&G.youtubeAssistantRequest){var M=JSON.stringify(G.youtubeAssistantRequest);O.config.internalIn={youtubeAssistantS3InputJson:M}}Z.call(r,O);G.channelOpen=!0;G.manuallyClosedChannel=!1});
_.w2(G.channel,"x",function(){G.manuallyClosedChannel||(G.channelOpen=!1,G.channel=void 0,GI(G))});
_.w2(G.channel,"z",function(r){if(r.data){aUm(G);for(var Z=0;Z<r.data.length;Z++){var O=G,M=r.data[Z],T=M.speechResults;if(T)a:{var E=[];M=[];var b=!1;T=_.h(T);for(var w=T.next();!w.done;w=T.next()){w=w.value;if(w.noSpeech){GI(O);O.errorHandler("NO_SPEECH");break a}w.transcript!==void 0&&w.stability!==void 0&&(w.stability<O.confidenceThreshold&&(b=!0),b?M.push(w.transcript):E.push(w.transcript))}if(E.length!==0||M.length!==0)E=E.join(" "),M=M.join(" "),O.receivedEndOfUtterance&&!O.isUsingVoz?O.isUsingVoz||
O.completeHandler([E,M]):(b=O,T=E,w=M,LZ("voz_sf"),b.transcriptionUpdateHandler(T,w),b.transcribedSpeechResults=[T,w]),O.receivedEndOfUtterance&&(LZ("voz_eou"),O.transcriptionCompleteHandler([E,M]),O.isUsingVoz&&(O.prefetchResponseTimeoutMs===0?GI(O,{logMicClosed:!1,handleStop:!0}):O.prefetchResponseTimeoutMs>0&&XP2(O)))}else O.isUsingVoz&&(M==null?0:M.internalOut)?(M=JSON.parse(M.internalOut.youtubeAssistantS3OutputJson),M.userHasOptedInToVaa||M.vaaConsent?O.vaaConsentUpdateHandler(!!M.userHasOptedInToVaa,
!!M.vaaConsent):(KAB(O),M&&(E=O.transcribedSpeechResults,LZ("voz_rqf"),O.completeHandler(E,M)))):M.eventType==="END_OF_UTTERANCE"?O.receivedEndOfUtterance=!0:(LZ("voz_err"),O.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.FH(Error("yl")))}}});
_.w2(G.channel,"y",function(r){GI(G);switch(r.status){case 1:r="WEBCHANNEL_NETWORK_ERROR";break;case 2:r="WEBCHANNEL_SERVER_ERROR";break;default:r="WEBCHANNEL_UNKNOWN_ERROR"}G.errorHandler(r);G.logError(Error(r))})};
NL.prototype.logError=function(G){_.yx(G)};
NL.prototype.isOnline=function(){return!0};
var XP2=function(G){KAB(G);G.prefetchResponseSetTimeoutId=setTimeout(function(){GI(G,{logMicClosed:!1,handleStop:!0})},G.prefetchResponseTimeoutMs)},KAB=function(G){G.prefetchResponseSetTimeoutId>-1&&(clearTimeout(G.prefetchResponseSetTimeoutId),G.prefetchResponseSetTimeoutId=-1)},RH2=function(G){aUm(G);
G.noResponseReceivedTimeout=window.setTimeout(function(){GI(G);G.errorHandler("NO_SPEECH")},11E3)},aUm=function(G){G.noResponseReceivedTimeout>-1&&(window.clearTimeout(G.noResponseReceivedTimeout),G.noResponseReceivedTimeout=-1)},LZ=function(G){_.jq(G,void 0,"voice_assistant")};var en=function(){NL.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.K(en,NL);en.prototype.isSupported=function(){return PMW()};
en.prototype.startAudio=function(){var G=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.Ss(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(Z){fUA(G,Z)};
this.processor.connect(this.audioContext.destination);var e=function(Z){G.stream=Z;if(!G.audioContext)return _.Nz(null);Z=G.audioContext.createMediaStreamSource(Z);G.processor&&Z.connect(G.processor);return _.Nz(null)},r={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?e(this.stream):(r=navigator.mediaDevices.getUserMedia(r))?r.then(e).catch(function(Z){GI(G);Z.name&&Z.name==="NotAllowedError"?G.errorHandler("NO_MICROPHONE_PERMISSION"):(G.errorHandler("AUDIO_ERROR"),G.logError(Z));return _.Ss(null)}):(GI(this),this.errorHandler("AUDIO_ERROR"),_.FH(Error("zl")));
return NL.prototype.startAudio.call(this)};
en.prototype.stopAudio=function(G){G=G===void 0?!0:G;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;NL.prototype.stopAudio.call(this,G)};
en.prototype.isOnline=function(){return navigator.onLine};
var fUA=function(G,e){if(G.audioContext)if(window.OfflineAudioContext){var r=G.audioContext.sampleRate,Z=e.inputBuffer.getChannelData(0);e=new window.OfflineAudioContext(1,Z.length,16E3);for(var O=e.createBuffer(1,Z.length,r),M=O.getChannelData(0),T=0,E=0;E<Z.length;E++)M[E]=Z[E],T+=M[E]*M[E];!G.audioDetected&&Math.sqrt(T/Z.length)>.01&&(G.audioDetected=!0,G.audioDetectedHandler());Z=e.createBufferSource();Z.buffer=O;Z.connect(e.destination);Z.start(0);e.oncomplete=function(b){b=b.renderedBuffer.getChannelData(0);
for(var w=Math.floor(16384E3/r),q=new Int16Array(w),t=0;t<w;++t)q[t]=Math.max(-1,Math.min(1,b[t]))*32767;jDC(G,q.buffer)};
e.startRendering()}else kPW(G,e)},kPW=function(G,e){var r=G.audioContext.sampleRate,Z=e.inputBuffer.getChannelData(0),O=Math.floor((r+8E3)/16E3);
r=Z.length/O;e=new Float32Array(r);for(var M=0;M<r;++M)e[M]=Z[M*O];Z=new Int16Array(r);for(O=0;O<r;++O)Z[O]=Math.max(-1,Math.min(1,e[O]))*32767;jDC(G,Z.buffer)};var HI8={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var dDA=function(){this.JSC$20297_audioEnabled=!0;this.audioFeedbackHolder={}};
dDA.prototype.isPlaying=function(G){return G.currentTime>0&&!G.paused&&!G.ended&&G.readyState>2};
var oql=function(G){for(var e=_.h(Object.values(HI8)),r=e.next();!r.done;r=e.next())r=r.value,G.audioFeedbackHolder[r]=new Audio,G.audioFeedbackHolder[r].src="/s/search/audio/"+r+".mp3",G.audioFeedbackHolder[r].load()},r6=function(G,e){if(G.JSC$20297_audioEnabled!==!1&&e in G.audioFeedbackHolder){for(var r=_.h(Object.values(G.audioFeedbackHolder)),Z=r.next();!Z.done;Z=r.next())Z=Z.value,G.isPlaying(Z)&&Z.pause();
G.audioFeedbackHolder[e].currentTime=0;G.audioFeedbackHolder[e].play().catch(function(){})}};var sD2=function(G,e){var r=this;this.store=G;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(){r.setState("offline");r.stop()};
this.audioPlayer=new dDA;var Z;(Z=this.audioPlayer)==null||oql(Z)};
_.V=sD2.prototype;_.V.getService=function(){return this.service};
_.V.isEnabled=function(){return!!this.service};
_.V.isSupported=function(){var G;return(G=this.service)==null?void 0:G.isSupported()};
_.V.start=function(){var G=this,e,r,Z,O,M,T,E,b,w,q,t,g,l;return _.D(function(X){switch(X.nextAddress){case 1:G.store.dispatch(K9W("",""));if(!navigator.onLine)return G.setState("offline"),X.return();window.addEventListener("offline",G.handleOfflineEvent);G.stream=null;if(!G.permissionsSupported){X.jumpTo(2);break}_.jr(X,3);return X.yield(QD8(G),5);case 5:e=X.yieldResult;if(!e)return(r=G.audioPlayer)==null||r6(r,"failure"),X.return();G.service.stream=G.stream;G.setState("listening");_.rL(X,2);break;
case 3:_.k5(X),G.permissionsSupported=!1;case 2:Z={context:_.chi(_.$2())},Z.youtubeAssistantParams={searchParams:{inlineSearchResponse:G.enableInlineSearchResponse}},O=function(H,I){G.store.dispatch(fFB("transcribing"));G.store.dispatch(K9W(H,I))},M=function(){var H;
(H=G.audioPlayer)==null||r6(H,"open");G.setState("listening")},T=function(){G.setState("transcribing")},E=function(H){G.setErrorState(H)},b=function(H,I){var C;
(C=G.audioPlayer)==null||r6(C,"success");I&&(_.R("kevlar_voice_search_inline_search")&&(G.responseProcessor=_.v_().resolve(_.ljN),G.responseProcessor&&(C=I.navigationAction,H=I.prefetchedSearchResponse,C&&H&&(C=(new _.$MA).JSC$14178_getStoreKey(C),_.or(G.responseProcessor,H,C)))),G.JSC$20315_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",I))},w=function(){window.removeEventListener("offline",G.handleOfflineEvent)},q=_.Ur_(!1),t=q.Authorization!=null,g=G.enableFirstPartyAuth||
G.enableFPAForSignedInUsers&&t?q:{"X-Goog-Visitor-Id":q["X-Goog-Visitor-Id"]},l={completeHandler:b,
errorHandler:E,listeningHandler:M,audioDetectedHandler:T,stopHandler:w,transcriptionUpdateHandler:O,youtubeAssistantRequest:Z,languageCode:IUV(),additionalHeaders:g,supportsCrossDomainXhr:G.enableFirstPartyAuth||G.enableFPAForSignedInUsers&&t,supportsHttpHeadersOverwriteParam:!G.disableHttpHeadersOverwrite},G.service.start(l),_.HL(X)}})};
_.V.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.V.reset=function(){this.store.dispatch(_.UK({type:"RESET_VOICE_SEARCH_STATE"}))};
_.V.setState=function(G){this.store.dispatch(fFB(G))};
_.V.setErrorState=function(G){switch(G){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var e;(e=this.audioPlayer)==null||r6(e,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)QD8(this);else{var r;(r=this.audioPlayer)==null||r6(r,"failure");this.setState("permission-denied")}break;case "ABORTED":var Z;(Z=this.audioPlayer)==null||r6(Z,"no_input");break;default:var O;(O=this.audioPlayer)==
null||r6(O,"no_input");this.setState("timeout")}};
var QD8=function(G){var e,r;return _.D(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 G.setState("permission-denied"),Z.return(!1);G.setState("permission");r={audio:{sampleSize:16,channelCount:1},video:!1};_.jr(Z,3);return Z.yield(navigator.mediaDevices.getUserMedia(r),5);case 5:return G.stream=Z.yieldResult,Z.return(!0);case 3:return _.k5(Z),
G.setState("permission-denied"),Z.return(!1)}})},IUV=function(){var G=_.xZ("INNERTUBE_CONTEXT_HL"),e=_.xZ("INNERTUBE_CONTEXT_GL");
return G.indexOf("-")>-1?G:G+"-"+e};var pPW=function(G,e,r){sD2.call(this,e,r);this.JSC$20315_actionRouter=G;this.enableInlineSearchResponse=_.R("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.R("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.R("kevlar_voice_search_enable_fpa_signedin_users")},C8A;
_.K(pPW,sD2);
var uAd=function(){if(!C8A){var G="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.R("kevlar_voice_search_auth_enabled")||_.R("kevlar_voice_search_use_yt_endpoint")?G="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.R("kevlar_voice_search_use_fp_endpoint")&&(G="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");C8A=
new pPW(_.e8.getInstance(),_.Yt(),new en(_.xZ("VOZ_API_KEY"),G,.5))}return C8A};var nqm=function(G){this.JSC$20319_clientRoot=G;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1,commentsPanelOpen:!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$20319_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)],["yt-autonav-engagement-panel-visible-changed",this.onYtEngagementPanelVisibleChanged.bind(this)]]));G=_.h(this.eventListeners);for(var e=G.next();!e.done;e=G.next()){var r=
_.h(e.value);e=r.next().value;r=r.next().value;r=_.h(r);for(var Z=r.next();!Z.done;Z=r.next()){var O=_.h(Z.value);Z=O.next().value;O=O.next().value;e.addEventListener(Z,O)}}_.re(_.e8.getInstance(),this.autonavPauseActionMap,this.JSC$20319_clientRoot)},mDo,cmA=function(G){return _.R("kevlar_autonav_popup_filtering")?(G=_.mk(G))?G.hasAttribute("prevent-autonav"):!0:!0};
_.V=nqm.prototype;_.V.onIronOverlayOpened=function(G){cmA(G)&&(this.autonavPauseReasons.overlayOpen=!0,Z4(this))};
_.V.onIronOverlayClosed=function(G){cmA(G)&&(this.autonavPauseReasons.overlayOpen=!1,Z4(this))};
_.V.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;Z4(this)};
_.V.onYtAutonavPauseBlur=function(){var G=this;_.A0.addJob(function(){YLW()||(G.autonavPauseReasons.inputBoxFocus=!1,Z4(G))},8,0)};
_.V.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;Z4(this)};
_.V.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;Z4(this)};
_.V.onYtAutonavPauseScroll=function(){var G=_.v_().resolve(_.y$);G.isOnWatch()&&(G=G.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=G.getBoundingClientRect().top<-200,Z4(this))};
_.V.onYtAutonavPauseUserEngagement=function(G){var e=this;if(_.R("user_engagement_enable_autoplay_pause_feature")){var r=Number(G.lowEngagementThresholdMs);isNaN(r)||r<=0||G.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.Yl("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.v_().resolve(_.bZ),_.bj()<r?_.IQ(_.A0,function(){_.Yl("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.vPW()?(this.userEngagementCsn=_.l4(),_.IQ(_.A0,function(){_.Yl("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
e.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,Z4(this)):_.Yl("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.Npp(Error("Al`"+JSON.stringify(G)))};
_.V.onYtAutonavPausePlayer=function(G){this.autonavPauseReasons.requestedByPlayer=!!G.detail;Z4(this)};
_.V.onYtAutonavVisibilityChanged=function(){var G=this,e,r,Z;return _.D(function(O){if(O.nextAddress==1)return(e=_.Ff())?O.yield(e.getPlayerPromise(),2):O.return();r=O.yieldResult;Z=r.isMuted()||r.getVolume()===0;G.autonavPauseReasons.backgroundAndMute=YLW()&&Z;Z4(G);_.HL(O)})};
_.V.onYtAutonavPausePlayerEnded=function(){_.v_().resolve(_.bZ);var G=144E5;_.R("user_engagement_enable_autoplay_pause_feature")||_.R("is_part_of_any_user_engagement_experiment")||(G=45E5);this.autonavPauseReasons.longIdle=_.bj()>G;ymB(this);Z4(this)};
_.V.onYtUserActivity=function(){var G=this;this.autonavPauseReasons.userEngagement&&(_.IQ(_.A0,function(){_.Yl("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",G.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,Z4(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.IQ(_.A0,function(){_.Yl("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",G.userEngagementCsn);_.Yc()}),this.autonavPauseReasons.youthereLactExperiment=!1,Z4(this));
this.autonavPauseReasons.longIdle&&!_.R("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,Z4(this))};
var YLW=function(){var G=window.document.visibilityState;return!(!G||G==="visible")},Z4=function(G){for(var e=!1,r=_.h(Object.values(G.autonavPauseReasons)),Z=r.next();!Z.done;Z=r.next())Z=Z.value,e=e||Z;
e?_.vt.getInstance().pause(G.autonavPauseReasons):(G=_.vt.getInstance(),G.autonavState_==3?(G.setState(2,!1,!1),G.autonavPauseReason_=void 0):G.autonavState_==1&&(G.disabledAutonavPauseReason_=void 0))},ymB=function(G){var e=!1;
if(_.R("enable_autoplay_pause_by_lact")){_.v_().resolve(_.bZ);e=_.qt("autoplay_pause_by_lact_sec")*1E3;var r=_.qt("autoplay_pause_by_lact_sampling_fraction");(e=_.bj()>=e&&Math.random()<r)&&!_.vPW()&&(_.IQ(_.A0,function(){_.Yl("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),e=!1)}e!==G.autonavPauseReasons.youthereLactExperiment&&(G.autonavPauseReasons.youthereLactExperiment=e)&&(G.userEngagementCsn=_.l4(),_.IQ(_.A0,function(){_.Yl("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",G.userEngagementCsn)}));
G.autonavPauseReasons.userEngagement&&_.IQ(_.A0,function(){_.Yl("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",G.userEngagementCsn)})};
nqm.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.Yl("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.Yc(),this.autonavPauseReasons.youthereLactExperiment=!1,Z4(this));this.autonavPauseReasons.userEngagement&&(_.Yl("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,Z4(this))};
nqm.prototype.onYtEngagementPanelVisibleChanged=function(G){G.detail&&G.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=G.detail.visible,Z4(this))};
nqm.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var Amd=_.oH.persistentPanelVisibleSelector,OF=function(){var G=_.m.apply(this,arguments)||this;G.miniGuideVisible=!1;G.guideOpened=_.R("disable_initial_guide_state_fix")?!1:G.canFitPersistentGuide(G.initialBodyClientWidth);G.guideUserStateOpened=G.getInitialGuideUserStateOpened();G.isFullscreenShorts=!1;G.miniGuideWidthThreshold=_.qt("kevlar_mini_guide_width_threshold",791);G.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
G.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");G.persistentGuideBlockedPagePathRegex=new RegExp(G.persistentGuideBlockedPagesPatterns.join("|"));G.animationTransitionDuration=0;G.lateDataResolver=_.C1();G.initialGuideDataFetchFailed=!1;G.initialLoad=!0;G.guideRenderers=new Set;G.isMouseOverGuide=!1;G.sessionUserManuallyExpandedGuideState=
!1;G.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return G};
_.K(OF,_.m);_.V=OF.prototype;_.V.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.V.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.V.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.V.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.V.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.V.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.V.ready=function(){_.v_().addProvider({provide:_.Pb,useValue:this.hostElement})};
_.V.attached=function(){var G=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.ZQ(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.ZQ(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.ZQ(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.ZQ(this,this.onYtGuideShow));_.DE(this,function(){G.animationTransitionDuration=200})};
_.V.detached=function(){document.removeEventListener("yt-navigate-finish",_.ZQ(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.ZQ(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.ZQ(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.ZQ(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.ZQ(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.ZQ(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.ZQ(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.V.getData=function(){return this.data};
_.V.load=function(){var G=this,e,r,Z,O;return _.D(function(M){switch(M.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=G.lateDataResolver.resolve.bind(G),M.return(G.lateDataResolver.promise);if(window.ytInitialGuideData)return e=_.C1(),e.resolve(window.ytInitialGuideData),M.return(e.promise);Z=!1;_.jr(M,2);return M.yield(G.fetchGuideData(),4);case 4:r=M.yieldResult;_.rL(M,3);break;case 2:O=_.k5(M),O.message==="Returned error"&&(Z=
!0);case 3:if(r)return M.return(r);G.onYtGuideClose();Z||(G.initialGuideDataFetchFailed=!0);return M.return(G.lateDataResolver.promise)}})};
_.V.fetchGuideData=function(){var G=this,e,r,Z,O,M,T,E;return _.D(function(b){if(b.nextAddress==1)return e=_.v_(),G.guidePromise||(r=e.resolve(_.v1),G.guidePromise=_.p1(r,QbV)),b.yield(G.guidePromise,2);if(b.nextAddress!=3)return Z=b.yieldResult,O=e.resolve(_.IK),b.yield(O(),3);(M=b.yieldResult)&&((T=Z)==null?void 0:(E=T.responseContext)==null?void 0:E.maxAgeSeconds)!==0&&M.put("service:guide:fallback",new _.lB({innertubeResponse:Z}));return b.return(Z)})};
_.V.initializeGuideDataIfEmpty=function(){var G=this,e,r;return _.D(function(Z){if(Z.nextAddress==1){if(!G.initialGuideDataFetchFailed||G.data)return Z.return();_.jr(Z,2);return Z.yield(G.fetchGuideData(),4)}if(Z.nextAddress!=2)return(e=Z.yieldResult)&&G.lateDataResolver.resolve(e),_.rL(Z,0);r=_.k5(Z);_.FH(r);_.HL(Z)})};
_.V.initializeGuideData=function(){var G=this,e;return _.D(function(r){switch(r.nextAddress){case 1:return _.Gx(Vs8(),{mainAppWeb:_.IB()}),_.jr(r,2),r.yield(G.load(),4);case 4:G.data=r.yieldResult;_.rL(r,3);break;case 2:_.k5(r),_.e0(Vs8(),"FAILURE");case 3:e=G.data&&G.data.items&&G.data.items.length>0?"SUCCESS":"FAILURE",_.e0(Vs8(),e),_.HL(r)}})};
_.V.setGuideData=function(G){var e=this,r,Z;return _.D(function(O){if(O.nextAddress==1)return e.disabled?O.return():e.data?(G.data=e.data,e.guideRenderers.add(G),O.return()):O.yield(e.initializeGuideData(),2);e.graftGuideToPage();r=_.PX("IS_HOMEPAGE_COLD")?"eop":void 0;_.R("disable_element_pool_populator")?e.setGuideDataAfterInit(G):(Z=new _.MG(1,r),_.Vf(Z,e.setGuideDataAfterInit.bind(e,G)));_.HL(O)})};
_.V.setGuideDataAfterInit=function(G){G.data=this.data;G.markDirty();this.guideRenderers.add(G);_.oR(function(){_.jq("gle")});
_.DE(this,function(){_.jq("gpe")})};
_.V.graftGuideToPage=function(){if(this.data){var G=this.data&&this.data.trackingParams;G&&(G=_.b1(G),_.KE(_.h_(),G))}};
_.V.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.ZQ(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.V.onDrawerOpenedChanged=function(G,e){!e.value&&this.guideOpened&&(this.guideOpened=!1)};
_.V.onYtGuideToggle=function(G){var e=this.guideOpened;this.guideOpened=!e;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var r=_.hy();_.Tn(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;r.save()}this.updateGuideDrawerElementState();if(this.guideElement){var Z;this.guideOpened&&((Z=G.detail)==null?0:Z.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.ZQ(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.ZQ(this,this.onAppDrawerTransitioned))}e||this.initializeGuideDataIfEmpty()};
_.V.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.ZQ(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Mh(this.guideElement)};
_.V.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.ZQ(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(aFA(this.guideOpened))};
_.V.guidePersistentAndVisibleChanged=function(){_.UW(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.V.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.UK({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.V.miniGuideVisibleChanged=function(){_.UW(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.V.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(aFA(this.guideOpened)),this.initialLoad=!1);_.UW(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.V.activeEndpointChanged=function(){_.UW(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.V.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.V.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()};
_.V.cachedClientWidthChanged=function(){this.updateGuideState()};
_.V.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.V.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var G=this.canFitPersistentGuide(this.cachedClientWidth);G?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=G}this.updateGuideDrawerElementState()};
_.V.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.V.getGuideOpened=function(){return this.guideOpened};
_.V.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.V.getActiveEndpoint=function(){return this.activeEndpoint};
_.V.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.V.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&&_.xy(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.V.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.R("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.V.handleGuideMouseLeave=function(){var G=this;!this.sessionUserManuallyExpandedGuideState&&_.R("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.sm(this,"handleGuideMouseLeave",function(){G.isMouseOverGuide||!G.guideOpened||G.miniGuideVisible||(G.guideOpened=!1,G.updateGuideDrawerElementState())},100))};
_.V.computeGuidePersistentAndVisible=function(){var G=this;_.sm(this,"computeGuidePersistentAndVisible",function(){G.guidePersistentAndVisible=G.guideOpened&&G.guidePersistent;G.guideIsVisibleButNotPersistent=!(!G.guideOpened||G.guidePersistent)})};
_.V.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.V.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.V.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.V.startLoadingWatch=function(){this.closeGuide()};
_.V.startLoadingShorts=function(){_.R("web_hide_guide_on_shorts")&&this.closeGuide()};
_.V.onYtNavigateFinish=function(G,e){if(!_.zx||e){this.activeEndpoint=e.endpoint;this.pageType=e.pageType;this.pageUrl=e.response.url;var r,Z;G=(Z=_.a((r=e.endpoint)==null?void 0:r.commandMetadata,_.rJ))==null?void 0:Z.url;!this.pageUrl&&G&&(this.pageUrl=G);_.R("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.V.getVisibleGuideRenderer=function(){for(var G=_.h(this.guideRenderers),e=G.next();!e.done;e=G.next())if(e=e.value,this.miniGuideVisible&&e.is==="ytd-mini-guide-renderer"||this.guideOpened&&e.is==="ytd-guide-renderer")return e;return null};
_.V.markGuideRendererDirty=function(G){if(G){typeof G.markDirty==="function"&&G.markDirty();G=_.h([].concat(_.mY(_.z1(G).children)));for(var e=G.next();!e.done;e=G.next())this.markGuideRendererDirty(e.value)}};
_.V.persistentGuideEnabled=function(G,e){if(!e||G==="watch"||G==="settings"||G==="shorts"&&this.isFullscreenShorts||_.R("reels_web_disable_persistent_guide_shorts")&&G==="shorts")return!1;var r=_.Kr(e)||"";return _.R("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(Z){return r===Z}):!this.persistentGuideBlockedPagePathRegex.test(r)};
_.V.canFitPersistentGuide=function(G){var e=_.qt("kevlar_persistent_guide_width_threshold",1312);return e===-1||_.R("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:G>this.calculateGuideThreshold(e)};
_.V.calculateGuideThreshold=function(G){return _.R("enable_ai_companion")?G+(this.persistentPanelVisible?400:0):G};
_.V.canFitMiniGuide=function(G){return this.miniGuideWidthThreshold===-1?!1:G>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.V.onResize=function(){var G=this;_.sm(this,"calculateGuideState",function(){G.onResizeDebounced()})};
_.V.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.V.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.V.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.V.getInitialGuideUserStateOpened=function(){return _.R("web_force_mini_guide_default")?!1:!_.hy().getFlag(109)};
_.iY.Object.defineProperties(OF.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.xZ("initialBodyClientWidth")||window.innerWidth}}});
OF.prototype.onResize=OF.prototype.onResize;OF.prototype.observeForMiniGuideVisible=OF.prototype.observeForMiniGuideVisible;OF.prototype.computeGuidePersistentAndVisible=OF.prototype.computeGuidePersistentAndVisible;OF.prototype.persistentPanelVisibleChanged=OF.prototype.persistentPanelVisibleChanged;OF.prototype.cachedClientWidthChanged=OF.prototype.cachedClientWidthChanged;OF.prototype.resetGuide=OF.prototype.resetGuide;OF.prototype.activeEndpointChanged=OF.prototype.activeEndpointChanged;
OF.prototype.guideOpenedChanged=OF.prototype.guideOpenedChanged;OF.prototype.miniGuideVisibleChanged=OF.prototype.miniGuideVisibleChanged;OF.prototype.guideIsVisibleButNotPersistentChanged=OF.prototype.guideIsVisibleButNotPersistentChanged;OF.prototype.guidePersistentAndVisibleChanged=OF.prototype.guidePersistentAndVisibleChanged;OF.prototype.onGuideElementChanged=OF.prototype.onGuideElementChanged;OF.prototype.onGuidePersistentChanged=OF.prototype.onGuidePersistentChanged;
OF.prototype.onRenderGuideChanged=OF.prototype.onRenderGuideChanged;OF.prototype.onActiveEndpointChanged=OF.prototype.onActiveEndpointChanged;OF.prototype.onMiniGuideVisibleChanged=OF.prototype.onMiniGuideVisibleChanged;OF.prototype.onGuideIsVisibleButNotPersistentChanged=OF.prototype.onGuideIsVisibleButNotPersistentChanged;OF.prototype.onGuidePersistendAndVisibleChanged=OF.prototype.onGuidePersistendAndVisibleChanged;
_.B([_.k(_.CS),_.x("design:type",Object)],OF.prototype,"ironResizableBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],OF.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],OF.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],OF.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],OF.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",Boolean)],OF.prototype,"disabled",void 0);_.B([_.n(),_.x("design:type",Boolean)],OF.prototype,"guidePersistentAndVisible",void 0);_.B([_.Me("guidePersistentAndVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OF.prototype,"onGuidePersistendAndVisibleChanged",null);_.B([_.n(),_.x("design:type",Boolean)],OF.prototype,"guideIsVisibleButNotPersistent",void 0);
_.B([_.Me("guideIsVisibleButNotPersistent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OF.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.B([_.n(),_.x("design:type",Object)],OF.prototype,"miniGuideVisible",void 0);_.B([_.Me("miniGuideVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OF.prototype,"onMiniGuideVisibleChanged",null);_.B([_.n(),_.x("design:type",Boolean)],OF.prototype,"forceMiniGuideClose",void 0);
_.B([_.n(),_.x("design:type",Object)],OF.prototype,"activeEndpoint",void 0);_.B([_.Me("activeEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OF.prototype,"onActiveEndpointChanged",null);_.B([_.n(),_.x("design:type",Boolean)],OF.prototype,"renderGuide",void 0);_.B([_.Me("renderGuide"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OF.prototype,"onRenderGuideChanged",null);
_.B([_.n({selector:Amd}),_.x("design:type",Boolean)],OF.prototype,"persistentPanelVisible",void 0);_.B([_.n(),_.x("design:type",Object)],OF.prototype,"guideOpened",void 0);_.B([_.n(),_.x("design:type",Boolean)],OF.prototype,"guidePersistent",void 0);_.B([_.Me("guidePersistent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OF.prototype,"onGuidePersistentChanged",null);_.B([_.n(),_.x("design:type",Object)],OF.prototype,"guideUserStateOpened",void 0);
_.B([_.n(),_.x("design:type",String)],OF.prototype,"pageUrl",void 0);_.B([_.n(),_.x("design:type",String)],OF.prototype,"pageType",void 0);_.B([_.n(),_.x("design:type",Number)],OF.prototype,"cachedClientWidth",void 0);_.B([_.n(),_.x("design:type",Object)],OF.prototype,"guideElement",void 0);_.B([_.n({selector:_.JI}),_.x("design:type",Object)],OF.prototype,"isFullscreenShorts",void 0);
_.B([_.Me("guideElement"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OF.prototype,"onGuideElementChanged",null);_.B([_.Me("guidePersistentAndVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OF.prototype,"guidePersistentAndVisibleChanged",null);
_.B([_.iD("guideIsVisibleButNotPersistent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OF.prototype,"guideIsVisibleButNotPersistentChanged",null);_.B([_.Me("miniGuideVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OF.prototype,"miniGuideVisibleChanged",null);_.B([_.iD("guideOpened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OF.prototype,"guideOpenedChanged",null);
_.B([_.Me("activeEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OF.prototype,"activeEndpointChanged",null);_.B([_.iD("pageUrl"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OF.prototype,"resetGuide",null);_.B([_.iD("cachedClientWidth"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OF.prototype,"cachedClientWidthChanged",null);
_.B([_.iD("persistentPanelVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OF.prototype,"persistentPanelVisibleChanged",null);_.B([_.Me("guideOpened","guidePersistent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OF.prototype,"computeGuidePersistentAndVisible",null);
_.B([_.iD("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OF.prototype,"observeForMiniGuideVisible",null);_.B([_.Om("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OF.prototype,"onResize",null);_.B([_.c({disableElementRegistration:!0,is:"yt-guide-manager"})],OF);
var FAV=_.A(OF,"yt-guide-manager",void 0,{mode:_.Px("kevlar_poly_si_batch_j081")?1:2});var MA=function(){var G=_.m.apply(this,arguments)||this;G.JSC$20329_keyboardInUse=!1;G.boundHandleCapturedKeydownEvent=function(e){G.handleCapturedKeydownEvent(e)};
return G};
_.K(MA,_.m);_.V=MA.prototype;_.V.attached=function(){this.listenToDocument(document)};
_.V.listenToDocument=function(G){G.addEventListener("keydown",_.ZQ(this,this.onKeyDownEvent));G.addEventListener("keyup",_.ZQ(this,this.onKeyUpEvent));G.addEventListener("mousedown",_.ZQ(this,this.onMouseDownEvent));_.R("desktop_keyboard_capture_keydown_killswitch")||G.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);G.addEventListener("yt-page-data-updated",_.ZQ(this,this.onPageUpdate))};
_.V.detached=function(){this.unlistenFromDocument(document)};
_.V.unlistenFromDocument=function(G){G.removeEventListener("keydown",_.ZQ(this,this.onKeyDownEvent));G.removeEventListener("keyup",_.ZQ(this,this.onKeyUpEvent));G.removeEventListener("mousedown",_.ZQ(this,this.onMouseDownEvent));_.R("desktop_keyboard_capture_keydown_killswitch")||G.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);G.removeEventListener("yt-page-data-updated",_.ZQ(this,this.onPageUpdate))};
_.V.ready=function(){_.v_().addProvider({provide:_.T6,useValue:this})};
_.V.isKeyBoardInUse=function(){return this.JSC$20329_keyboardInUse};
_.V.handleCapturedKeydownEvent=function(G){if(G.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(G)};
_.V.onMouseDownEvent=function(){this.JSC$20329_keyboardInUse=!1};
_.V.onPageUpdate=function(){if(_.R("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.R("web_shorts_keyboard_shortcut_usage_log")){_.B7.clear();for(var G=_.h(_.FD),e=G.next();!e.done;e=G.next()){var r=_.h(e.value);e=r.next().value;r=r.next().value;r=_.L1(r);_.B7.set(e,r);_.QU(_.l4(),_.go(),r)}_.xl.clear();G=_.h(_.Jr);for(e=G.next();!e.done;e=G.next())r=_.h(e.value),e=r.next().value,r=r.next().value,r=_.L1(r),_.xl.set(e,r),_.QU(_.l4(),_.go(),r);_.Il(_.l4(),_.go(),[].concat(_.mY(_.xl.values()),
_.mY(_.B7.values())));_.C_(_.l4(),[].concat(_.mY(_.xl.values()),_.mY(_.B7.values())))}};
_.V.onMiniplayerActiveChange=function(){var G;(G=_.v_().resolve(_.fp).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(G.document):this.unlistenFromDocument(G.document))};
_.V.ignoreKeyEvent=function(G){if(G.ctrlKey||G.altKey)if(_.R("kevlar_macro_markers_keyboard_shortcut")){if(G.keyCode!==37&&G.keyCode!==39)return!0}else return!0;var e=_.na(G)||[];return _.Smm(e)?(_.R("web_button_or_anchor_list_item")&&H18(e,G)&&(this.JSC$20329_keyboardInUse=!0),!0):G.defaultPrevented?(iS(G.keyCode,G.shiftKey,this.isShortsPage),!0):G.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(G):!1};
_.V.isSpacebarClick=function(G){var e=G||window.event;var r;e.composedPath&&typeof e.composedPath==="function"?r=e.composedPath():r=e.path;r&&r.length?e=r[0]:(e=e||window.event,e=e.target||e.srcElement,e.nodeType==3&&(e=e.parentNode));return e&&G.keyCode===32&&(G=e.tagName==="BUTTON"||e.tagName==="A"||e.tagName==="INPUT",e=(e=e.getAttribute("role"))&&(e==="option"||e==="button"||e.indexOf("menuitem")===0),G||e)?!0:!1};
_.V.onKeyDownEvent=function(G){if(!this.ignoreKeyEvent(G)&&(G.keyCode===191&&(G.shiftKey||G.metaKey?G.repeat!=null&&G.repeat||(this.openHotkeyDialog(),iS(G.keyCode,G.shiftKey,this.isShortsPage)):(this.focusSearchBox(),G.preventDefault())),!G.metaKey)){var e=_.v_().resolve(_.fp);switch(G.keyCode){case 9:this.JSC$20329_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(G);break;case 84:e.pipController.getWindow()&&window.focus();this.toggleTheaterMode(G.keyCode,G.shiftKey);break;case 73:e.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(G.keyCode,G.shiftKey);break;case 70:if(this.isShortsPage){_.qmW();break}this.isMiniplayerActive()?e.pipController.getWindow()&&(e.close(!0),window.focus()):this.passEventToPlayer(G);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(G.keyCode,G.shiftKey):this.closeMiniplayer(G.keyCode,G.shiftKey)||this.passEventToPlayer(G);break;case 13:G.shiftKey&&_.v_().resolve(_.rC).activate(G);break;default:this.passEventToPlayer(G)}}};
_.V.onKeyUpEvent=function(G){if(!this.ignoreKeyEvent(G))if(_.R("web_speedmaster_spacebar_control")&&G.keyCode===32)this.handlePlayerSpaceKey(G,!0);else{var e=this.getPlayerManager();e&&(e=e.getPlayer())&&e.handleGlobalKeyUp(G.keyCode,G.shiftKey,G.ctrlKey,G.altKey,G.metaKey,G.key,G.code)}};
_.V.getPlayerManager=function(){var G=_.Ff(),e=_.v_().resolve(_.bq(_.y$));return G&&e&&e.isOnWatch()?G:null};
_.V.passEventToPlayer=function(G,e){var r=this,Z,O,M,T;return _.D(function(E){if(E.nextAddress==1){if(!_.R("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&r.isMiniplayerActive())Z=_.v_().resolve(_.fp).getPlayerElement();else if(r.inlinePreviewIsActive){if(O=_.UW(r.hostElement,"yt-get-inline-preview-player-action"),(M=O)==null?0:M[0])Z=O[0]}else Z=_.Ff();return Z?E.yield(Z.getPlayerPromise(),3):E.jumpTo(0)}T=E.yieldResult;e?T.handleGlobalKeyUp(G.keyCode,G.shiftKey,G.ctrlKey,G.altKey,G.metaKey,
G.key,G.code):T.handleGlobalKeyDown(G.keyCode,G.shiftKey,G.ctrlKey,G.altKey,G.metaKey,G.key,G.code,G.repeat);G.keyCode!==38&&G.keyCode!==40&&iS(G.keyCode,G.shiftKey,r.isShortsPage);_.HL(E)})};
_.V.focusSearchBox=function(){_.xy(this.hostElement,"yt-focus-searchbox")};
_.V.openHotkeyDialog=function(){_.xy(this.hostElement,"yt-open-hotkey-dialog")};
_.V.isMiniplayerActive=function(){return _.v_().resolve(_.fp).isMiniplayerActive()};
_.V.closeMiniplayer=function(G,e){return this.isMiniplayerActive()?(_.v_().resolve(_.fp).close(),iS(G,e,this.isShortsPage),!0):!1};
_.V.toggleTheaterMode=function(G,e){var r=_.jv(_.Yt().getState()),Z=this.getPlayerManager(),O=_.R("disable_theater_mode_keyboard")||_.PX("START_IN_FULL_WINDOW_MODE");Z&&!O&&(r=!r,_.Ab()&&_.R("external_fullscreen")&&(r=!0),_.Pi(this.hostElement,"yt-toggle-theater-mode",[r]),iS(G,e,this.isShortsPage))};
_.V.toggleMiniplayer=function(G,e){var r=this.getPlayerManager();if(this.isMiniplayerActive()){var Z;((Z=_.v_().resolve(_.bq(_.y$)))==null?0:Z.isOnWatch())?_.v_().resolve(_.fp).close(!0):_.bI(_.v_().resolve(_.fp));iS(G,e,this.isShortsPage)}else r&&(_.Pi(this.hostElement,"yt-activate-miniplayer-from-watch-action"),iS(G,e,this.isShortsPage))};
_.V.handlePlayerSpaceKey=function(G,e){var r=!!_.Ff()||this.isMiniplayerActive();r=_.R("disable_space_scroll_fix")||r;_.R("global_spacebar_pause")&&!this.isKeyBoardInUse()&&r&&(G.preventDefault(),this.passEventToPlayer(G,e))};
_.V.isPresentingTheaterMode=function(){return _.R("web_watch_enable_tm_esc_key")?_.jv(_.Yt().getState())&&!_.Ab():!1};
MA.prototype.onMiniplayerActiveChange=MA.prototype.onMiniplayerActiveChange;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],MA.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],MA.prototype,"ytdReduxBehavior",void 0);_.B([_.n({selector:_.COp}),_.x("design:type",Boolean)],MA.prototype,"inlinePreviewIsActive",void 0);_.B([_.n({selector:_.zO_}),_.x("design:type",Boolean)],MA.prototype,"isShortsPage",void 0);
_.B([_.n({selector:_.j6}),_.x("design:type",Boolean)],MA.prototype,"miniplayerIsActive",void 0);_.B([_.Me("miniplayerIsActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],MA.prototype,"onMiniplayerActiveChange",null);_.B([_.c({disableElementRegistration:!0,is:"yt-hotkey-manager"})],MA);_.A(MA,"yt-hotkey-manager",void 0,{mode:_.Px("kevlar_poly_si_batch_j081")?1:2});var VK=function(){var G=_.m.apply(this,arguments)||this;G.loopStateEntityKey_=null;G.playlistLoopStateEntity_=null;G.isShuffleNextPlaylist=!1;G.PLAYER_EVENTS_=new Map;G.playerListenersSetup_=!1;G.videoSkipJob_=0;G.canAutoAdvance_=!1;G.playerManager_=null;G.TEST_ONLY={};return G};
_.K(VK,_.m);_.V=VK.prototype;_.V.ready=function(){_.v_().addProvider({provide:_.Gt,useValue:this.hostElement})};
_.V.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_)};
_.V.attached=function(){document.addEventListener("yt-navigate-start",_.ZQ(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.ZQ(this,this.onYtNavigateFinish_))};
_.V.detached=function(){document.removeEventListener("yt-navigate-start",_.ZQ(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.ZQ(this,this.onYtNavigateFinish_))};
_.V.updatePlaylistEventListeners=function(G,e){e&&!this.playerListenersSetup_?(this.playerManager_=G,this.registerPlaylistEventListeners_(G)):!e&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(G))};
_.V.setPlayer=function(G){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=G};
_.V.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.V.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.V.registerPlaylistEventListeners_=function(G){var e=this;G.getPlayerPromise().then(function(r){e.playerListenersSetup_||(e.ytPlayerListenerBehavior.listenToPlayerEvents(r,e.PLAYER_EVENTS_),e.playerListenersSetup_=!0)})};
_.V.removePlaylistEventListeners_=function(G){var e=this;G.getPlayerPromise().then(function(r){e.playerListenersSetup_&&(e.ytPlayerListenerBehavior.unlistenFromPlayerEvents(r,e.PLAYER_EVENTS_),e.playerListenersSetup_=!1)})};
_.V.setPlaylistComponent=function(G){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.ZQ(this,this.onPlaylistYtNavigate_)),G&&(G.data&&this.playlistComponent.data&&G.data.playlistId==this.playlistComponent.data.playlistId?(G.loopOn=this.playlistComponent.loopOn,G.shuffleOn=this.playlistComponent.shuffleOn):(G.loopOn=!1,G.shuffleOn=!1),this.isShuffleNextPlaylist&&(G.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=G;this.playlistComponent.addEventListener("yt-navigate",
_.ZQ(this,this.onPlaylistYtNavigate_))};
_.V.setAutoplayRenderer=function(G){this.autoplayData=G};
_.V.setPlaylistData=function(G){this.currentPlaylistData_=G;_.xy(this.hostElement,"yt-playlist-data-updated");_.c2.isEmpty(G)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(G)};
_.V.setPlayerPlaybackControlData=function(G){this.playerManager_&&this.playerManager_.updatePlayerComponents(G.playlistPanelRenderer)};
_.V.getPlaylistData=function(){return this.currentPlaylistData_};
_.V.getTempData_=function(G,e){if(this.playlistComponent==null)return null;G={};this.playlistComponent.shuffleOn&&(G.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(G.loop_on=this.playlistComponent.loopOn);e&&(G.autonav="1",_.v_().resolve(_.bZ),e=_.bj(),e>0&&(G.lact=e),this.playerManager_&&(e=this.playerManager_.getPlayer())&&e.shouldSendVisibilityState()&&(e=e.getVisibilityState(),e!=0&&(G.vis=e)));_.R("enable_unknown_lact_fix_on_html5")&&(_.v_().resolve(_.bZ),G.lact=
_.bj());return G};
_.V.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.V.setLoopStateEntityKey_=function(G){var e;this.loopStateEntityKey_=((e=this.getPlaylistLoopData_(G))==null?void 0:e.playlistLoopStateEntityKey)||null};
_.V.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.V.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.V.skipVideo=function(){var G=this,e=_.R("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||e)e=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.w8(_.A0,function(){G.onPlaylistNext();G.videoSkipJob_=0},e)};
_.V.cancelVideoSkip=function(){this.videoSkipJob_&&(_.A0.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.V.isInBackground_=function(){var G=window.document.visibilityState;return!(!G||G=="visible")};
_.V.onPlaylistIndex_=function(G){this.playlistComponent&&(G=this.playlistComponent.data.contents[G].playlistPanelVideoRenderer.navigationEndpoint,_.xy(this.hostElement,"yt-navigate",{endpoint:G,tempData:this.getTempData_(G)}))};
_.V.onPlayerStateChange_=function(G){if(G=G==0&&this.playlistComponent&&this.canAutoAdvance_)G=_.vt.getInstance(),G=!(G.autonavState_===3?G.autonavPauseReason_&&G.autonavPauseReason_.inputBoxFocus===!0:G.autonavState_===1&&G.disabledAutonavPauseReason_&&G.disabledAutonavPauseReason_.inputBoxFocus===!0);G&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.V.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.V.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.V.navigateToAutoplayWatchEndpoint_=function(G,e,r){var Z=this.playlistComponent.data.currentIndex,O=this.getNumPlayableVideos_();G=="NORMAL"&&e=="autoplayVideo"&&Z+1>=O&&r||!(G=this.getVideoEndpoint_(G,e))||(r=this.getTempData_(G,r),_.xy(this.hostElement,"yt-navigate",{endpoint:G,tempData:r}))};
_.V.getNumPlayableVideos_=function(){for(var G=0,e=_.h(this.playlistComponent.data.contents||[]),r=e.next();!r.done;r=e.next())r.value.playlistPanelVideoRenderer&&(G+=1);return G};
_.V.getVideoEndpoint_=function(G,e){if(this.autoplayData&&this.autoplayData.sets)for(var r=0,Z=this.autoplayData.sets.length;r<Z;r++){var O=this.autoplayData.sets[r];if(O.mode==G){if(O[e])return O[e];break}}else G=new _.Cr("AutoplayData is undefined in playlist manager","Mode: "+G+" endpoint: "+e),_.FH(G)};
_.V.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.V.onPlaylistYtNavigate_=function(G){if(G.detail.endpoint){G.stopPropagation();var e=G.detail;e.tempData=this.getTempData_(G.detail.endpoint);_.xy(this.hostElement,"yt-navigate",e)}};
_.V.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.V.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.V.playlistLoopStateEntityChanged_=function(G){var e=this,r,Z,O;return _.D(function(M){if(M.nextAddress==1){if(!G)return M.return();r=G.state==="PLAYLIST_LOOP_STATE_ONE";return e.playerManager_?M.yield(e.playerManager_.getPlayerPromise(),3):M.jumpTo(2)}M.nextAddress!=2&&(Z=M.yieldResult,Z.setLoopVideo(r));O=G.state==="PLAYLIST_LOOP_STATE_ALL";e.playlistComponent&&(e.playlistComponent.loopOn=O);_.HL(M)})};
_.V.getPlaylistLoopData_=function(G){var e,r;if(G=G==null?void 0:(e=G.playlistButtons)==null?void 0:(r=e.menuRenderer)==null?void 0:r.topLevelButtons)for(e=_.h(G),r=e.next();!r.done;r=e.next())if(r=r.value,r.playlistLoopButtonRenderer)return r.playlistLoopButtonRenderer};
_.V.getLoopStateCommand_=function(G){var e=this.getPlaylistData(),r;e=((r=this.getPlaylistLoopData_(e))==null?void 0:r.states)||[];var Z;G=(Z=_.a(e[G?1:2],_.j4c))==null?void 0:Z.button;var O;return(O=_.a(G,_.zM))==null?void 0:O.command};
_.V.onPlayerLoopChange_=function(G){this.playlistLoopStateEntity_&&(G?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(G=this.getLoopStateCommand_(G))&&this.ytComponentBehavior.resolveCommand(G)};
_.V.onSleepTimerSettingsChanged_=function(G){this.canAutoAdvance_=G!=="End of video"};
VK.prototype.onPlaylistLoopStateEntityChanged=VK.prototype.onPlaylistLoopStateEntityChanged;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],VK.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.GJ.YtPlayerListenerBehavior),_.x("design:type",_.ew)],VK.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],VK.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],VK.prototype,"loopStateEntityKey_",void 0);
_.B([_.n({selectorArgs:["loopStateEntityKey_"],selector:_.Iq.playlistLoopStateEntitySelector}),_.x("design:type",Object)],VK.prototype,"playlistLoopStateEntity_",void 0);_.B([_.Me("playlistLoopStateEntity_"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VK.prototype,"onPlaylistLoopStateEntityChanged",null);_.B([_.c({disableElementRegistration:!0,is:"yt-playlist-manager"})],VK);_.A(VK,"yt-playlist-manager",void 0,{mode:_.Px("kevlar_poly_si_batch_j081")?1:2});var JmH,BiW=function(){if(JmH!==void 0)return JmH;var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return JmH=G};var hR=function(){var G=_.m.apply(this,arguments)||this;G.lastCallback=null;G.getAccountLinkPromises={};G.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);G.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return G};
_.K(hR,_.m);_.V=hR.prototype;_.V.getLocation=function(){return window.location.href};
_.V.getCompletionUrl=function(){return _.ci(this.getLocation())};
_.V.containsRedirectState=function(G){return(G=_.$U(_.q$4(G)))?(new URLSearchParams(G)).get("redirect_state")!==null:!1};
_.V.createGalConfig=function(G,e){var r=new r98;G=r=e?this.getPopupOrRedirectSetting(r,_.xZ("LINK_API_KEY"),_.xZ("LINK_API_KEY_REDIRECT"),G):ZSA(r,_.xZ("LINK_API_KEY"));G.authUser=_.xZ("SESSION_INDEX")||0;G.supportedFlows=new Set([4]);return G.build()};
_.V.getPopupOrRedirectSetting=function(G,e,r,Z){this.isGalInteractionPopupMode(Z)?(G.interactionMode=0,G=ZSA(G,e)):(G.interactionMode=1,e=this.getCompletionUrl(),G.completionUrl=e,G=ZSA(G,r));return G};
_.V.isGalInteractionPopupMode=function(G){if(this.redirectModeProviderAllowlist.has(G))switch(G){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.V.getStatusEntityKeyForProviderId=function(G){return _.GF(G+":all","accountLinkStatusEntity")};
_.V.findNestedPropValue=function(G,e){var r=!1,Z=null;JSON.stringify(G,function(O,M){r||O!==e||(r=!0,Z=M);return r?null:M});
return Z};
_.V.findAccountLinkButtonViewModel=function(G,e){var r=null,Z=!1;JSON.stringify(G,function(O,M){Z||M.accountLinkStatusEntityKey!==e||M.accountLinkStatusSecondaryEntityKey||(Z=!0,r=M);return Z?null:M});
return r};
_.V.executeLinkingSuccessOrFailureCommands=function(G,e,r){var Z=null,O;(e==null?0:(O=e.url)==null?0:O.includes("account_sharing"))?Z=e==null?void 0:e.response:Z=e==null?void 0:e.response;(e=this.findAccountLinkButtonViewModel(Z,G))?(G=r?this.findNestedPropValue(e,"onSuccessCommand"):this.findNestedPropValue(e,"onFailureCommand"))?_.Gn([G],this.hostElement):_.GG(Error("Bl")):_.GG(Error("Cl`"+G))};
_.V.handleInitializeRequest=function(G,e){var r=this,Z=q28(this.createGalConfig(G,!0));this.containsRedirectState(this.getLocation())?bWY(G,Z.config,Z.galService).then(function(O){var M=r.getStatusEntityKeyForProviderId(G);if(O.statusCode===1)e&&r.executeLinkingSuccessOrFailureCommands(M,e,!0),O=r.getLocation().indexOf("#"),O!==-1&&window.history.pushState(null,"",r.getLocation().substring(0,O));else return e&&r.executeLinkingSuccessOrFailureCommands(M,e,!1),Promise.reject(Error(O.statusMessage))}).catch(function(O){_.FH(O);
_.cg("gamingAccountLinkStatusChanged",{serviceId:G,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(O)}):this.getAccountLinkPromises[G]=Z.startLinkingSession({serviceId:G})};
_.V.handleAccountLinkCommand=function(G){_.a(G,MPV)&&this.handleLinkRequest(_.a(G,MPV))};
_.V.handleLinkRequest=function(G){var e=this,r=G.thirdPartyId;if(r)if(this.isGalInteractionPopupMode(r)){var Z=function(){e.closeAndFire("ytd-gaming-account-link-setting-renderer",G.onFailureCommand)},O=function(){e.closeAndFire("ytd-gaming-account-link-setting-renderer",G.onSuccessCommand)};
this.lastCallback=O;this.getAccountLinkPromises[r].then(function(M){ugm(M).then(function(T){T.statusCode===1?O():Z()})}).catch(function(){Z()})}else this.getAccountLinkPromises[r].then(function(M){ugm(M).then(function(T){if(T.statusCode!==1)return Promise.reject(Error(T.statusMessage))})}).catch(function(M){_.FH(M);
_.cg("gamingAccountLinkStatusChanged",{serviceId:r,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(M)})};
_.V.closeAndFire=function(G,e){_.Pi(this.hostElement,"yt-close-popup-action",[G]);e&&_.Gn([e],this.hostElement)};
_.V.handleAccountUnlinkCommand=function(G){_.a(G,VPa)&&this.handleUnlinkRequest(_.a(G,VPa))};
_.V.handleUnlinkRequest=function(G){var e=this,r=G.thirdPartyId;if(r){var Z=function(){e.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",G.onFailureCommand)},O=function(){e.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",G.onSuccessCommand)};
this.lastCallback=O;var M=q28(this.createGalConfig(r,!1));this.unlinkUserGal(M,r).then(function(T){T.statusCode===1?O():Z()}).catch(function(){Z()})}};
_.V.unlinkUserGal=function(G,e){return G.deleteLink(e)};
_.V.handleLogAccountLinkingEventCommand=function(G){_.R("enable_gel_log_commands")&&_.a(G,hqo)&&(G=_.a(G,hqo).event)&&_.cg("gamingAccountLinkStatusChanged",G)};
_.iY.Object.defineProperties(hR,{template:{configurable:!0,enumerable:!0,get:function(){return BiW()}}});
_.B([_.k(_.qG.YtOpenPopupBehavior),_.x("design:type",Object)],hR.prototype,"ytOpenPopupBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],hR.prototype,"ytActionHandlerBehavior",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-third-party-manager"})],hR);_.A(hR,"ytd-third-party-manager",function(){return BiW()},{mode:_.Px("kevlar_poly_si_batch_j081")?1:2});var xDY,P8V=function(){if(xDY!==void 0)return xDY;var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return xDY=G};var TI=function(){var G=_.m.apply(this,arguments)||this;G.currentPage=void 0;G.renderLoadingStateJobId=0;G.updatePageDataJobId=0;G.pageDisposeJobsets=new WeakMap;G.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"};G.shouldApplyLockupToWatchTransition=_.R("web_thumbnail_to_watch_transition");G.shouldApplySlideTransition=_.td("web_page_transition_type")==="slide"||_.R("enable_plj_landing_page");G.shouldApplyLearningJourneyTransition=_.R("enable_plj_landing_page");G.TEST_ONLY=void 0;return G};
_.K(TI,_.m);_.V=TI.prototype;_.V.ready=function(){var G=_.v_();G.addProvider({provide:_.y$,useValue:this});G.addProvider({provide:_.PHW,useValue:this})};
_.V.created=function(){this.pagePool=new qLV;this.contextSwitcher=new sYa};
_.V.attached=function(){_.xy(this.hostElement,"attached");var G=_.v_().resolve(_.bq(_.bf));G&&(this.contextSwitcher.JSC$20154_networkService_=G);this.viewTransitionManager=_.v_().resolve(_.oY)};
_.V.getPageOffset=function(G){return G.getScrollTop()};
_.V.setPageOffset=function(G,e){try{G.setScrollTop(e)}catch(r){}};
_.V.setPageOffsetForNavigation=function(G,e){_.xy(this.hostElement,"yt-navigate-set-page-offset",{page:G,offset:e===void 0?0:e})};
_.V.pauseActiveContext=function(){var G=this.contextSwitcher;G.activeContext_&&G.activeContext_.pause()};
_.V.getModuleNameForType=function(G){return G==="watch"?_.R("kevlar_watch_fixie")?"watchFixie":_.R("kevlar_watch_grid")?"watchGrid":"watchFlexy":G==="shorts"||G==="search"?G:"browse"};
_.V.attachPage=function(G){var e,r=!_.R("pc_is_attached_ks")&&(G==null?void 0:(e=G.polymerController)==null?void 0:e.isAttached);if(!G.isAttached&&!r)try{_.z1(this.hostElement).appendChild(G)}catch(O){var Z;_.FH(new _.Cr("Error attaching page element for component",{origin:(Z=this.currentPage)==null?void 0:Z.is,component:G.is}))}};
_.V.setActivePage=function(G,e){var r=this,Z=!1,O=function(){var M=r.isOnWatch(),T=r.currentPage;if(G)if(G!==r.currentPage){T&&(T.hidden=!0,T.active=!1,T.removeAttribute("role"));r.currentPage=G;var E,b=e!=null?e:_.OO((E=r.data)==null?void 0:E.endpoint);T&&_.xy(r.hostElement,"yt-page-type-changed",{oldPageType:T.is,newPageType:G.is,newPageSubtype:b});_.uD().dispatch(_.UK({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:G.is}));_.uD().dispatch(_.UK({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:b||""}));
G.hidden=!1;r.attachPage(G);G.active=!0;G.setAttribute("role","main");T&&r.setPageOffsetForNavigation(G,0);_.R("kevlar_remove_page_dom_on_switch")&&!M&&T&&_.z1(r.hostElement).removeChild(T)}else Z=!0;else r.handleMissingDestinationPage(T)};
this.shouldRunBrowseTransition(this.currentPage,G)?zka(this.viewTransitionManager,O):this.shouldRunLearningJourneyTransition(this.currentPage,G)?LI8(this.viewTransitionManager,O):O();return Z};
_.V.handleMissingDestinationPage=function(G){if(this.isColdLoadForUnknownPage(G))_.FH(new _.Cr("Cold load for unknown page"));else{var e;G=new _.Cr("Unable to set active page",G?G.is:"unknown origin",(e=this.data)==null?void 0:e.endpoint);_.yx(G)}};
_.V.isColdLoadForUnknownPage=function(G){return!G&&Gp(this.data)==="unknown"};
_.V.shouldRunBrowseTransition=function(G,e){return this.shouldApplySlideTransition&&(G==null?void 0:G.is)==="ytd-browse"&&(e==null?void 0:e.is)==="ytd-browse"&&G!==e};
_.V.shouldRunLearningJourneyTransition=function(G,e){return this.shouldApplyLearningJourneyTransition&&(G==null?void 0:G.is)==="ytd-browse"&&((e==null?void 0:e.is)==="ytd-watch-learning-journey"||(e==null?void 0:e.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.V.shouldRunWatchNextLoadedTransition=function(G,e){return this.viewTransitionManager&&G.is==="ytd-watch-flexy"&&e};
_.V.updatePageData=function(G){var e=this,r=this.data;this.updatePageDataJobId&&_.A0.cancelJob(this.updatePageDataJobId);this.data=G;return new _.aQ(function(Z){var O=function(){G.filler?e.performDataUpdate(G,r):VgB(function(){e.performDataUpdate(G,r)});
var b=_.rk();_.Z7(b,"cr")||b.processSignal("cr");Z()},M=function(){G&&G.page==="watch"?e.updatePageDataJobId=_.w8(_.A0,O):O()};
if(_.R("kevlar_enable_mss_page_modules_client")&&G){var T=_.v_().resolve(_.Hz),E=e.getModuleNameForType(G.page);(T=Pma(T,[E]))?T.then(M):M()}else M()})};
_.V.isDownloadsPage=function(G){var e,r;return(G==null?void 0:(e=G.endpoint)==null?void 0:(r=e.browseEndpoint)==null?void 0:r.browseId)==="FEdownloads"};
_.V.setPlayerSyncInterval=function(G){var e;return _.D(function(r){if(r.nextAddress==1)return r.yield(_.v_().resolve(_.Ub),2);e=r.yieldResult;e.setUpPositionSyncInterval(G);_.HL(r)})};
_.V.performDataUpdate=function(G,e){_.R("kevlar_early_popup_close")||_.Pi(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var r=!G.filler;r&&(_.jq("lps"),_.R("config_age_report_killswitch")||mqC());var Z=Gp(G),O,M=!1;if(_.R("kevlar_remove_page_dom_on_switch")){var T=e&&Gp(e);Z===T&&(O=this.getCurrentPage())}O||(O=WT(this.pagePool,Z));r&&D1d(this.pagePool.elementPoolPopulator,Z);r&&!this.renderLoadingStateJobId&&(M=this.setActivePage(O));if(O){T=Z==="watch";var E=
Z==="shorts",b=Z==="learning_journey_watch";_.R("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(O);if(T||E||b)O.playerData=G.playerResponse;if(E)if(_.R("web_enable_delay_shorts_sequence_call")){G.reelWatchSequenceResponse&&(G.reelWatchSequenceResponse.entries||G.reelWatchSequenceResponse.prevEntries)&&(O.reelWatchSequenceResponse=G.reelWatchSequenceResponse);O.currentEndpoint=G.endpoint;var w;O.isPreviousPageShorts=!!(e==null?0:(w=e.endpoint)==null?0:w.reelWatchEndpoint);
var q,t;G.cachedSequenceParams=((q=G.endpoint)==null?void 0:(t=q.reelWatchEndpoint)==null?void 0:t.sequenceParams)||G.cachedSequenceParams||(e==null?void 0:e.cachedSequenceParams);var g,l;G.cachedSequenceProvider=((g=G.endpoint)==null?void 0:(l=g.reelWatchEndpoint)==null?void 0:l.sequenceProvider)||G.cachedSequenceProvider||(e==null?void 0:e.cachedSequenceProvider);O.cachedSequenceParams=G.cachedSequenceParams;O.cachedSequenceProvider=G.cachedSequenceProvider}else if(_.R("web_enable_shorts_sequence_cache_fix")){G.reelWatchSequenceResponse&&
(G.reelWatchSequenceResponse.entries||G.reelWatchSequenceResponse.prevEntries)?O.reelWatchSequenceResponse=G.reelWatchSequenceResponse:O.cachedReelWatchSequenceResponse&&!O.reelWatchSequenceResponse&&(O.reelWatchSequenceResponse=O.cachedReelWatchSequenceResponse);G.reelWatchSequenceResponse&&(e==null?void 0:e.page)!=="shorts"&&(O.cachedReelWatchSequenceResponse=G.reelWatchSequenceResponse);O.currentEndpoint=G.endpoint;var X;O.isPreviousPageShorts=!!(e==null?0:(X=e.endpoint)==null?0:X.reelWatchEndpoint)}else{G.reelWatchSequenceResponse&&
(G.reelWatchSequenceResponse.entries||G.reelWatchSequenceResponse.prevEntries)?O.reelWatchSequenceResponse=G.reelWatchSequenceResponse:G.cachedReelWatchSequenceResponse?O.reelWatchSequenceResponse=G.cachedReelWatchSequenceResponse:_.R("web_enable_cached_reel_sequence_fix")&&O.cachedReelWatchSequenceResponse&&!O.reelWatchSequenceResponse&&(O.reelWatchSequenceResponse=O.cachedReelWatchSequenceResponse);O.currentEndpoint=G.endpoint;var H;O.isPreviousPageShorts=!!(e==null?0:(H=e.endpoint)==null?0:H.reelWatchEndpoint);
G.cachedReelWatchSequenceResponse=G.reelWatchSequenceResponse||G.cachedReelWatchSequenceResponse||(e==null?void 0:e.cachedReelWatchSequenceResponse);O.cachedReelWatchSequenceResponse=G.cachedReelWatchSequenceResponse}w=this.isDownloadsPage(G);q=this.isDownloadsPage(e);w&&!q?this.setPlayerSyncInterval(6E5):!w&&q&&this.setPlayerSyncInterval();_.R("block_all_player_prefetch_requests")||this.preparePrefetchRequest(G,O,r,T,E,b);Gzo(_.v_().resolve(_.fp),e,G);if(_.R("enable_ai_companion")){var I;(I=_.v_().resolve(_.bq(_.cZ)))==
null||_.XOA(I,this.getPersistentPanelSurface(Z))}_.hv(_.v_().resolve(_.bZ));_.R("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(O);r?(r=typeof O.loadPage,r==="function"?(O.pageContext=QYm(this.contextSwitcher,O,O.data!==G.response),r=function(){O.loadPage(G.response)},this.shouldApplySlideTransition&&O.is==="ytd-browse"&&M&&(Z==="learning"||this.isDifferentBrowseId(G==null?void 0:G.endpoint,e==null?void 0:e.endpoint))?zka(this.viewTransitionManager,r):this.shouldRunWatchNextLoadedTransition(O,
M)?Nd8(this.viewTransitionManager,r):r()):_.AG(new _.Cr("b/38014653 ",[Z,
O.is,O.nodeName,r,O.isAttached,e&&Gp(e),this.hostElement.children.length])),_.jq("pdl")):(O.hidden=!0,G.response.filler=!0,O.data=G.response,this.attachPage(O));_.xy(this.hostElement,"yt-page-data-updated",{pageType:Z})}_.IQ(_.A0,function(){_.R("logging_avoid_blocking_during_navigation")&&_.KOA().transition("none");var C=PNa(),u=O;if(G){var P=Hp2(G),F=dSd(G),J;a:{if(G.playerResponse){var U=G.playerResponse,e$;if((J=U.auxiliaryUi)==null?0:(e$=J.messageRenderers)==null?0:e$.upsellDialogRenderer){J=
U.auxiliaryUi.messageRenderers.upsellDialogRenderer;break a}}else if(G.response&&(J=G.response,(U=J.overlay)==null?0:U.upsellDialogRenderer)){J=J.overlay.upsellDialogRenderer;break a}J=void 0}var Dq;var bF;e$=(Dq=G.playerResponse)==null?void 0:(bF=Dq.auxiliaryUi)==null?void 0:bF.messageRenderers;Dq=(e$==null?void 0:e$.enforcementMessageViewModel)||(e$==null?void 0:e$.bkaEnforcementMessageViewModel);Dq=(Dq==null?void 0:Dq.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?Dq:void 0;
var Kf;a:{if(G.response&&(bF=G.response,(Kf=bF.overlay)==null?0:Kf.commandWrapperPromoRenderer)){Kf=bF.overlay.commandWrapperPromoRenderer;break a}Kf=void 0}xYA(C,P,F,J,Dq,Kf,u)}})};
_.V.preparePrefetchRequest=function(G,e,r,Z,O,M){var T,E,b,w,q,t,g,l,X,H,I,C,u,P,F;return _.D(function(J){if(J.nextAddress==1)return!r||!(Z||O||M)||_.R("kevlar_disable_background_prefetch")&&_.N0(_.C9F)()===0?J.return():(T=_.Ae(e))?J.yield(T.getPlayerPromise(),2):J.return();E=J.yieldResult;b=_.v_().resolve(_.bq(_.bf));if(!b)return J.return();if(O)return w=_.Yi(_.aT),SAl(w,(q=G.endpoint)==null?void 0:q.reelWatchEndpoint,e.reelWatchSequenceResponse,E,b),J.return();l=(t=G.response)==null?void 0:(g=t.responseContext)==
null?void 0:g.webResponseContextExtensionData;if(!l)return J.return();u=(X=G.response)==null?void 0:(H=X.contents)==null?void 0:(I=H.twoColumnWatchNextResults)==null?void 0:(C=I.autoplay)==null?void 0:C.autoplay;P=_.v_().resolve(_.Gt);F=_.Yi(_.aT);qAd(F,l,E,b,P,u);_.HL(J)})};
_.V.movePlayerToWatch=function(G){var e=this,r,Z;return _.D(function(O){r=WT(e.pagePool,"watch");Z=r.getPlayerContainer();G.appendTo(Z);_.HL(O)})};
_.V.movePlayerToShorts=function(G){var e=this,r,Z,O;return _.D(function(M){r=WT(e.pagePool,"shorts");Z=r.getPlayerContainer();(O=G)==null||O.appendTo(Z,void 0,!0);_.HL(M)})};
_.V.getPlayerFromWatch=function(){var G=WT(this.pagePool,"watch");return _.Ae(G)};
_.V.getPlayerFromShorts=function(){var G=WT(this.pagePool,"shorts");return _.Ae(G)};
_.V.startLoadingWatch=function(){var G=this,e=WT(this.pagePool,"watch");this.renderLoadingStateJobId?(_.A0.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.R("web_watch_transition_enable_start_loading_watch_callsite")?WIm(this.viewTransitionManager,function(){G.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(e,"watch");
if(_.R("enable_ai_companion")){var r;(r=_.v_().resolve(_.bq(_.cZ)))==null||_.XOA(r,this.getPersistentPanelSurface("watch"))}};
_.V.startLoadingShorts=function(){var G=WT(this.pagePool,"shorts");this.setActivePage(G,"shorts")};
_.V.startLoadingLearningJourney=function(){var G=WT(this.pagePool,"learning_journey_watch");this.setActivePage(G,"learning_journey_watch")};
_.V.getCurrentPage=function(){return this.currentPage};
_.V.getDestinationPageType=function(){return this.destinationPageType};
_.V.getCurrentData=function(){return this.data};
_.V.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.V.isOnShorts=function(){var G;return((G=this.currentPage)==null?void 0:G.is)==="ytd-shorts"};
_.V.isWatchPage=function(G){return!!G&&(G.is==="ytd-watch-flexy"||G.is==="ytd-watch-fixie"||G.is==="ytd-watch-grid")};
_.V.preparePage=function(G,e){var r=this,Z=function(){var T=r.pagePool.preparePage(G,r.currentPage,e);T&&r.attachPage(T)},O=function(T){_.JG(T,e);
_.FH(T)};
if(_.R("kevlar_enable_mss_page_modules_client")){var M=this.getModuleNameForType(G);if(M=Pma(_.v_().resolve(_.Hz),[M])){M.then(Z.bind(this)).catch(O.bind(this));return}}try{Z()}catch(T){O(T)}};
_.V.lazyPrepareCriticalPages=function(G,e){G=_.OO(e)||G;_.R("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(G).then(this.maybePrepareWatchPage.bind(this,G)):this.maybePrepareWatchPage(G)};
_.V.maybePrepareWatchPage=function(G){G==="watch"||G==="learning_journey_watch"&&_.R("web_watch_learning_journey_disable_lazy_pages")||_.IQ(_.A0,this.preparePage.bind(this,"watch"))};
_.V.downloadPageModules=function(G){G=this.getModuleNameForType(G);var e=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);e.delete(G);var r=_.v_().resolve(_.Hz);r.JSC$18842_loadModules(G);return r.JSC$18842_loadModules.apply(r,_.mY(e))};
_.V.renderPageLoadingState=function(G,e){this.preparePage(G,e);var r=WT(this.pagePool,G);r.loadingData&&(r.loadingData.endpoint=e);r.loading=!0;this.setActivePage(r,G);G!=="watch"&&G!=="learning_journey_watch"||_.xy(this.hostElement,"yt-guide-close")};
_.V.prepareForNavigation=function(G,e){var r=this;if(this.currentPage&&this.data){var Z=_.OO(e)||G;this.destinationPageType=Z;Gp(this.data)==Z&&_.xy(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((G==="watch"||G==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.A0.cancelJob(this.renderLoadingStateJobId);_.v_().resolve(_.fp).deactivate(e);_.Zk(_.A0,function(){var M=r.viewTransitionManager,T=r.currentPage;
if(M.isLockupToWatchTransitionEnabled&&M.isLockupThumbnailRegistrationEnabled&&T)if(M.registeredLockupThumbnail)M.lockupThumbnailRegisteredFromWatchEndpoint&&_.FH(new _.Cr("Lockup thumbnail already registered from watch endpoint."));else{a:{var E=_.a(e,_.u4);if(E==null?0:E.videoId){var b="yt-lockup-view-model ."+_.eOs(E.videoId)+" yt-thumbnail-view-model";T=T.querySelectorAll(b);if(T.length===1){E=T[0];break a}T.length>1?_.FH(new _.Cr("Multiple LockupViewModel thumbnails found for videoId: "+E.videoId+
". Selector: "+b)):_.R("web_thumbnail_to_watch_transition_debug")&&_.FH(new _.Cr("No LockupViewModel thumbnail found for videoId: "+E.videoId+". Selector: "+b))}E=void 0}E&&(M.registeredLockupThumbnail=E,M.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.r0C(M,E))}});
var O=this.data;this.renderLoadingStateJobId=_.Zk(_.A0,function(){WIm(r.viewTransitionManager,function(){if(r.data!=O){var M=WT(r.pagePool,G);r.setActivePage(M)}else r.renderPageLoadingState(G,e);r.renderLoadingStateJobId=0})},150)}};
_.V.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var G=new _.MG(1);this.currentPage.pageDisposeJobs.forEach(function(e){_.Vf(G,e)});
this.pageDisposeJobsets.set(this.currentPage,G)}};
_.V.flushPageDisposeJobset=function(G){var e=this.pageDisposeJobsets.get(G);e&&(e.flushJobs(),this.pageDisposeJobsets.delete(G))};
_.V.onYtStopOldPlayer=function(G,e){e=e===void 0?!1:e;var r,Z=_.gR("kevlar_new_stop_old_player_logic_pages");if(_.R("kevlar_check_current_page_on_stop_old_player")&&(Z.length===0||this.currentPage&&Z.includes(this.currentPage.is)))if(this.data&&(r=Gp(this.data)),Gp(G)===r&&this.currentPage&&Gp(this.currentPage.data)!==r)var O=_.Ae(this.currentPage);else r=Gp(this.data),O=WT(this.pagePool,r),O=_.Ae(O);else this.data&&(r=Gp(this.data),O=WT(this.pagePool,r),O=_.Ae(O));if(O){Z=Gp(G);var M=WT(this.pagePool,
Z);M=_.Ae(M);if(O==M)e&&!_.R("kevlar_disable_preemptive_player_reset")&&O.resetForNewPlayback();else if(e=r==="watch"&&Z!=="watch",!e||Z==="shorts"||_.LxW()&&!u68(this.data,G))G=_.v_().resolve(_.fp),e&&G.isMiniplayerActive()&&G.pipController.getWindow()||O.stop()}};
_.V.isDifferentBrowseId=function(G,e){G=_.a(G,_.Mv);e=_.a(e,_.Mv);return(G==null?void 0:G.browseId)!==(e==null?void 0:e.browseId)};
_.V.getPersistentPanelSurface=function(G){switch(G){case "watch":return"WATCH";default:return"APP"}};
_.iY.Object.defineProperties(TI,{template:{configurable:!0,enumerable:!0,get:function(){return P8V()}}});
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],TI.prototype,"ytActionHandlerBehavior",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-page-manager"})],TI);_.A(TI,"ytd-page-manager",function(){return P8V()},{mode:_.Px("kevlar_poly_si_batch_j081")?1:2});var UDC;var D4=function(){var G=_.m.apply(this,arguments)||this;G.useListItemStyles=_.R("web_list_item_style_for_menu_items");G.systemIcons=_.R("kevlar_system_icons");return G};
_.K(D4,_.m);_.V=D4.prototype;_.V.ready=function(){this.hostElement.addEventListener("tap",_.ZQ(this,this.onEndpointTapExtra))};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.V.onFocus=function(){var G;(G=_.z1(this.hostElement).querySelector("tp-yt-paper-item"))==null||G.focus()};
_.V.onEndpointTapExtra=function(G){_.xy(this.hostElement,"iron-activate");var e=this.data.navigationEndpoint;e&&_.a(e,_.f1S)&&(G.stopPropagation(),_.Wi(this.hostElement,[e],this.hostElement))};
_.V.computeIcon=function(G){return G&&G.iconType?_.Ne(G.iconType):""};
_.V.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.V.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.V.forceUpdateStylesOnLegacyBrowsers=function(){_.R("kevlar_legacy_browsers")&&_.eD(this.hostElement)};
D4.prototype.forceUpdateStylesOnLegacyBrowsers=D4.prototype.forceUpdateStylesOnLegacyBrowsers;D4.prototype.onFocus=D4.prototype.onFocus;_.B([_.k(_.h5),_.x("design:type",Object)],D4.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.k(_.RXW.YtConditionalRendererBehavior),_.x("design:type",Object)],D4.prototype,"ytConditionalRendererBehavior",void 0);_.B([_.k(_.t4.YtEndpointBehavior),_.x("design:type",Object)],D4.prototype,"ytEndpointBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],D4.prototype,"data",void 0);_.B([_.n({computed:"computeIcon(data.icon)",value:""}),_.x("design:type",String)],D4.prototype,"icon",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],D4.prototype,"useIcons",void 0);_.B([_.n({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.x("design:type",Boolean)],D4.prototype,"hasSeparator",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],D4.prototype,"useListItemStyles",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],D4.prototype,"systemIcons",void 0);_.B([_.Om("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],D4.prototype,"onFocus",null);_.B([_.Me("useIcons","hasSeparator"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],D4.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.A(D4,"ytd-menu-navigation-item-renderer",function(){if(UDC===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);UDC=G}G=UDC;return G},{mode:1});var zH2;var WAA=_.nQ(_.OK("DOWNLOAD",{},"Download")),Ni8=_.nQ(_.OK("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),LAY=_.nQ(_.OK("RETRY",{},"Retry")),GuY=_.nQ(_.OK("PAUSE_DOWNLOADING",{},"Pause downloading")),euC=_.nQ(_.OK("RESUME_DOWNLOAD",{},"Resume download")),EF=function(){var G=_.m.apply(this,arguments)||this;G.primaryText=WAA;G.primaryIconType="OFFLINE_DOWNLOAD";G.hasSecondaryContent=!1;G.hasSeparator=!1;G.transferState="TRANSFER_STATE_UNKNOWN";G.isVideoDeletedByUser=!1;G.isHidden=!1;G.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return G};
_.K(EF,_.m);_.V=EF.prototype;_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.V.onFocus=function(){this.primaryEntry.focus()};
_.V.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.V.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.V.getRemoveAction=function(){return"ACTION_REMOVE"};
_.V.sendOfflineAction=function(G){var e=this.data.serviceEndpoint;if(e){var r=_.a(e,_.O2);r&&G&&(r.action=G);this.ytComponentBehavior.resolveCommand(e)}};
_.V.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=WAA,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=WAA;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=LAY;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=Ni8;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=euC;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=Ni8;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
GuY;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=Ni8;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=Ni8;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=WAA,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.V.showHideButton=function(){var G;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((G=this.playerStateEntity)==null?void 0:G.adsState)==="ADS_STATE_PLAYING"};
_.V.isSecondaryEntryHidden=function(G,e){return G?!0:!e};
_.V.computeHasSeparator=function(){var G;return!((G=this.data)==null||!G.hasSeparator)};
_.V.computePlayerStateEntityKey=function(G){return G};
EF.prototype.showHideButton=EF.prototype.showHideButton;EF.prototype.onTransferStateChange=EF.prototype.onTransferStateChange;EF.prototype.onFocus=EF.prototype.onFocus;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],EF.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],EF.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],EF.prototype,"ytComponentBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],EF.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],EF.prototype,"primaryText",void 0);_.B([_.n(),_.x("design:type",String)],EF.prototype,"primaryIconType",void 0);_.B([_.n(),_.x("design:type",String)],EF.prototype,"primaryAction",void 0);_.B([_.n(),_.x("design:type",Object)],EF.prototype,"secondaryText",void 0);_.B([_.n(),_.x("design:type",String)],EF.prototype,"secondaryIconType",void 0);
_.B([_.n(),_.x("design:type",String)],EF.prototype,"secondaryAction",void 0);_.B([_.n(),_.x("design:type",Object)],EF.prototype,"hasSecondaryContent",void 0);_.B([_.n({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.x("design:type",Object)],EF.prototype,"hasSeparator",void 0);_.B([_.n({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.x("design:type",String)],EF.prototype,"playerStateEntityKey",void 0);
_.B([_.n({selector:_.Gh,selectorArgs:["playerStateEntityKey"]}),_.x("design:type",Object)],EF.prototype,"playerStateEntity",void 0);_.B([_.n({selector:_.KQ,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.x("design:type",String)],EF.prototype,"transferState",void 0);_.B([_.n({selector:_.Gs$,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.x("design:type",Object)],EF.prototype,"isVideoDeletedByUser",void 0);
_.B([_.n(),_.x("design:type",Object)],EF.prototype,"isHidden",void 0);_.B([_.n({selector:_.xGp,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.x("design:type",Object)],EF.prototype,"offlineabilityState",void 0);_.B([_.hs("#primary-entry"),_.x("design:type",Object)],EF.prototype,"primaryEntry",void 0);_.B([_.Om("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EF.prototype,"onFocus",null);
_.B([_.iD("transferState","isVideoDeletedByUser"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EF.prototype,"onTransferStateChange",null);_.B([_.iD("offlineabilityState","playerStateEntity"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EF.prototype,"showHideButton",null);
_.A(EF,"ytd-menu-service-item-download-renderer",function(){if(zH2===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);zH2=G}G=zH2;return G},{mode:1});var rlC;var ib=function(){var G=_.m.apply(this,arguments)||this;G.useIcons=!1;G.systemIcons=_.R("kevlar_system_icons");G.useListItemStyles=_.R("web_list_item_style_for_menu_items");return G};
_.K(ib,_.m);_.V=ib.prototype;_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.V.onFocus=function(){var G;(G=_.z1(this.hostElement).querySelector("tp-yt-paper-item"))==null||G.focus()};
_.V.onTap=function(){_.UW(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var G=this.data.serviceEndpoint,e=this.data.command;if(G){var r,Z=(r=this.data)==null?void 0:r.trackingParams;r=!!_.a(G,_.hhC);Z&&r&&_.Yt().dispatch(_.UK({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:Z}}));this.ytComponentBehavior.resolveCommand(G)||_.v_().resolve(_.$1).resolveCommand(G,{form:{element:this.hostElement}})}e&&(this.ytComponentBehavior.resolveCommand(e)||_.Wi(this.hostElement,
[e],this.hostElement))};
_.V.computeIcon=function(G){return G&&G.iconType?_.Ne(G.iconType):""};
_.V.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.V.computeHasSeparator=function(){var G;return!((G=this.data)==null||!G.hasSeparator)};
_.V.forceUpdateStylesOnLegacyBrowsers=function(){_.R("kevlar_legacy_browsers")&&_.eD(this.hostElement)};
_.V.computeIsSelected=function(){var G;return!((G=this.data)==null||!G.isSelected)};
ib.prototype.forceUpdateStylesOnLegacyBrowsers=ib.prototype.forceUpdateStylesOnLegacyBrowsers;ib.prototype.onTap=ib.prototype.onTap;ib.prototype.onFocus=ib.prototype.onFocus;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ib.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h5),_.x("design:type",Object)],ib.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],ib.prototype,"ytComponentBehavior",void 0);
_.B([_.k(_.RXW.YtConditionalRendererBehavior),_.x("design:type",Object)],ib.prototype,"ytConditionalRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ib.prototype,"data",void 0);_.B([_.n({computed:"computeIcon(data.icon)",value:""}),_.x("design:type",String)],ib.prototype,"icon",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],ib.prototype,"useIcons",void 0);
_.B([_.n({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.x("design:type",Boolean)],ib.prototype,"hasSeparator",void 0);_.B([_.n({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.x("design:type",Boolean)],ib.prototype,"isSelected",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],ib.prototype,"systemIcons",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],ib.prototype,"useListItemStyles",void 0);
_.B([_.Om("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ib.prototype,"onFocus",null);_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],ib.prototype,"onTap",null);_.B([_.Me("useIcons","hasSeparator"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ib.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.A(ib,"ytd-menu-service-item-renderer",function(){if(rlC===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);rlC=G}G=rlC;return G},{mode:2});var ZUW;var bb=function(){return _.m.apply(this,arguments)||this};
_.K(bb,_.m);_.V=bb.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.onDataChanged=function(){var G=this;_.DE(this,function(){G.postbox.openDialog();G.focus();_.xy(G.hostElement,"yt-refit")})};
_.V.focus=function(){this.postbox.focus()};
_.V.closePopup=function(){_.Pi(this.hostElement,"yt-close-popup-action")};
_.V.onYtCommentboxDismiss=function(){this.closePopup()};
bb.prototype.onYtCommentboxDismiss=bb.prototype.onYtCommentboxDismiss;bb.prototype.onDataChanged=bb.prototype.onDataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],bb.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],bb.prototype,"data",void 0);_.B([_.n({value:function(){return _.OK("SBOX_INAPPROPRIATE_CANCEL")}}),
_.x("design:type",String)],bb.prototype,"closeButtonAriaLabel",void 0);_.B([_.hs("#postbox"),_.x("design:type",Object)],bb.prototype,"postbox",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bb.prototype,"onDataChanged",null);_.B([_.Om("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bb.prototype,"onYtCommentboxDismiss",null);
_.B([_.c({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],bb);
_.A(bb,"ytd-backstage-post-dialog-popup-renderer",function(){if(ZUW!==void 0)return ZUW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return ZUW=G},{mode:1});var OUo;var M28=function(){return _.m.apply(this,arguments)||this};
_.K(M28,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],M28.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],M28.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],M28);
_.A(M28,"ytd-sender-id-section-renderer",function(){if(OUo!==void 0)return OUo;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);
return OUo=G},{mode:1});var V2H;var huV;var TM8;var vW=function(){return _.m.apply(this,arguments)||this};
_.K(vW,_.m);vW.prototype.closePopup=function(){_.Pi(this.hostElement,"yt-close-popup-action")};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],vW.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],vW.prototype,"data",void 0);_.B([_.aR({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],vW);
_.A(vW,"yt-community-post-section-renderer",function(){if(TM8===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;huV===void 0&&(huV=document.createElement("template"));var Z=huV;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);TM8=G}G=TM8;return G},{mode:2});var DjC;var E3d;var iUd;var bUa;var v32;var wEm;var $jY=function(){return _.m.apply(this,arguments)||this};
_.K($jY,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],$jY.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],$jY.prototype,"data",void 0);_.B([_.aR({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],$jY);
_.A($jY,"yt-share-start-time-with-context-renderer",function(){if(wEm===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;v32===void 0&&(v32=document.createElement("template"));var Z=v32;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);wEm=G}G=wEm;return G},{mode:2});var w6=function(){return _.m.apply(this,arguments)||this};
_.K(w6,_.m);w6.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],w6.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],w6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],w6.prototype,"data",void 0);_.B([_.aR({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],w6);
_.A(w6,"yt-share-panel-title-v15-renderer",function(){if(bUa===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;iUd===void 0&&(iUd=document.createElement("template"));var Z=iUd;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);bUa=G}G=bUa;return G},{mode:2});var $Q=function(){return _.m.apply(this,arguments)||this};
_.K($Q,_.m);$Q.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"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],$Q.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],$Q.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],$Q.prototype,"data",void 0);_.B([_.aR({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],$Q);
_.A($Q,"yt-share-panel-header-renderer",function(){if(E3d===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;DjC===void 0&&(DjC=document.createElement("template"));var Z=DjC;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);E3d=G}G=E3d;return G},{mode:2});var SJY;var qJC;var Sn=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-open-popup-action":"onOpen"};return G};
_.K(Sn,_.m);_.V=Sn.prototype;_.V.attached=function(){this.onOpen()};
_.V.updateTimeSecs=function(G){this.currentTimeSecs=G};
_.V.computeTimeString=function(G){G=G.toString();var e=Math.floor(Number(G)/3600),r=Math.floor(Number(G)%3600%60);return(e>0?e+":":"")+_.rc(Math.floor(Number(G)%3600/60),e>0?2:1)+":"+_.rc(r,2)};
_.V.computeTimeStringA11y=function(G){return _.his({seconds:G})};
_.V.getTimeParam=function(){return USo(this.timeString)};
_.V.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var G={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},e;_.ke(_.h_(),(e=this.data)==null?void 0:e.trackingParams,G,7)};
_.V.onChangeStartAtTimestamp=function(){for(var G=this.startAtTimestamp.value.split(":"),e=0,r=1,Z=G.length-1;Z>=0;Z--)e+=Number(G[Z])*r,r*=60;this.updateTimeSecs(e);this.setTimestamp()};
_.V.onOpen=function(){var G=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var e=_.Ff();e?e.getPlayerPromise().then(function(r){r=r.getCurrentTime();G.updateTimeSecs(r)}):gO8()&&this.updateTimeSecs(gO8())};
_.V.setTimestamp=function(){var G=Math.floor(this.currentTimeSecs);_.Pi(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!G,timestamp:G||""}])};
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Sn.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Sn.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Sn.prototype,"data",void 0);_.B([_.n({value:!1,notify:!0}),_.x("design:type",Boolean)],Sn.prototype,"isStartAtChecked",void 0);_.B([_.n(),_.x("design:type",Number)],Sn.prototype,"currentTimeSecs",void 0);
_.B([_.n({computed:"computeTimeString(currentTimeSecs)"}),_.x("design:type",String)],Sn.prototype,"timeString",void 0);_.B([_.n({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.x("design:type",String)],Sn.prototype,"timeStringA11y",void 0);_.B([_.hs("#start-at-timestamp"),_.x("design:type",Object)],Sn.prototype,"startAtTimestamp",void 0);_.B([_.aR({is:"yt-start-at-renderer",disableElementRegistration:!0})],Sn);
_.A(Sn,"yt-start-at-renderer",function(){if(qJC===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;SJY===void 0&&(SJY=document.createElement("template"));var Z=SJY;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);qJC=G}G=qJC;return G},{mode:2});var t2o;var g3a;var lTW={};lTW.YtBindingExpressionsBehavior={identity:_.uF,msg:function(G,e){e=e===void 0?{}:e;return _.OK(G,e,G)},
msgPlural:function(G,e){return _.Mn(G,e)},
getMusicIconFromType:function(G){return _.Ne(G)}};var Rud;var j6H;var aTC;var XEA=document.head,KtH=XEA.appendChild,fTd;if(aTC===void 0){var kuH=document.createElement("template");_.f(kuH,'\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>');aTC=kuH}fTd=aTC;KtH.call(XEA,fTd.content);var qA=function(){var G=_.m.apply(this,arguments)||this;G.screenLayer=7;return G};
_.K(qA,_.m);qA.prototype.getScreenLayer=function(){return this.screenLayer};
qA.prototype.onTap=function(G){G&&G.detail&&(G.detail.x||G.detail.y)&&_.z1(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.zw(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(G=this.getScreenLayer(),_.xy(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:G}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.iY.Object.defineProperties(qA.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()}}});
qA.prototype.onTap=qA.prototype.onTap;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],qA.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],qA.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],qA.prototype,"data",void 0);_.B([_.d("data.title"),_.x("design:type",Object),_.x("design:paramtypes",[])],qA.prototype,"title",null);
_.B([_.d("data.serviceName"),_.x("design:type",String),_.x("design:paramtypes",[])],qA.prototype,"icon",null);_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],qA.prototype,"onTap",null);_.B([_.aR({is:"yt-share-target-renderer",disableElementRegistration:!0})],qA);
_.A(qA,"yt-share-target-renderer",function(){if(j6H===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;Rud===void 0&&(Rud=document.createElement("template"));var Z=Rud;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);j6H=G}G=j6H;return G},{mode:2});var HU2;var djW;var tR=function(){var G=_.m.apply(this,arguments)||this;G.SHARE_TARGET_WIDTH=70;G.SHARE_TARGET_MARGIN_RIGHT=8;G.PAGE_SCROLL_SPEED=9;G.actionMap={"yt-share-panel-reset-action":"onReset_"};return G};
_.K(tR,_.m);_.V=tR.prototype;_.V.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.V.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.z1(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.z1(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.V.onReset_=function(){if(_.z1(this.hostElement).querySelector("#list")){var G=_.z1(this.hostElement).querySelector("#list");var e=_.z1(this.hostElement).querySelector("#list");var r=e.offsetLeft,Z=e.offsetParent;Z||_.Idw(e)!="fixed"||(Z=_.F$(e).documentElement);if(Z){if(_.Wz&&!_.Lp(58)){var O=_.yxn(Z);r+=O.left}else Number(_.ZPv)>=8&&!(Number(_.ZPv)>=9)&&(O=_.yxn(Z),r-=O.left);e=_.cxE(Z)?Z.clientWidth-(r+e.offsetWidth):r}else e=r;qB2(G,e);this.updateScrollButtons_()}};
_.V.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.V.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.V.onScrollWheel_=function(G){G.stopPropagation();G.preventDefault();var e=SBC(_.z1(this.hostElement).querySelector("#list"));G=Math.abs(G.deltaX)>Math.abs(G.deltaY)?G.deltaX:G.deltaY;qB2(_.z1(this.hostElement).querySelector("#list"),e+G);this.updateScrollButtons_()};
_.V.smoothScrollByOnePage_=function(G){var e=_.z1(this.hostElement).querySelector("#list"),r=(Math.floor(e.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,Z=SBC(e),O=r*(G?1:-1),M=this.PAGE_SCROLL_SPEED,T=this.updateScrollButtons_.bind(this),E=0,b;(function q(){E+=M;b=E/r*2;qB2(e,Z+O*(b<1?b*b:-b*b+4*b-2));E<r?window.requestAnimationFrame(q):T()})()};
_.V.updateScrollButtons_=function(){var G=SBC(_.z1(this.hostElement).querySelector("#list")),e=_.z1(this.hostElement).querySelector("#list").scrollWidth-_.z1(this.hostElement).querySelector("#list").clientWidth;_.z1(this.hostElement).querySelector("#scroll-button-back").hidden=G<=0;_.z1(this.hostElement).querySelector("#scroll-button-forward").hidden=G>=e};
tR.prototype.onScrollWheel_=tR.prototype.onScrollWheel_;tR.prototype.onDataChanged_=tR.prototype.onDataChanged_;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],tR.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],tR.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(lTW.YtBindingExpressionsBehavior),_.x("design:type",Object)],tR.prototype,"ytBindingExpressionsBehavior",void 0);
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],tR.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],tR.prototype,"data",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tR.prototype,"onDataChanged_",null);_.B([_.Om("wheel"),_.x("design:type",Function),_.x("design:paramtypes",[WheelEvent]),_.x("design:returntype")],tR.prototype,"onScrollWheel_",null);
_.B([_.aR({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],tR);
_.A(tR,"yt-third-party-share-target-section-renderer",function(){if(djW===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;HU2===void 0&&(HU2=document.createElement("template"));var Z=HU2;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);djW=G}G=djW;return G},{mode:2});var g6=function(){return _.m.apply(this,arguments)||this};
_.K(g6,_.m);g6.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"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],g6.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],g6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],g6.prototype,"data",void 0);_.B([_.aR({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],g6);
_.A(g6,"yt-third-party-network-section-renderer",function(){if(g3a===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;t2o===void 0&&(t2o=document.createElement("template"));var Z=t2o;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);g3a=G}G=g3a;return G},{mode:2});_.J_(_.y(function(G){return _.v("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.v("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.v(_.E2,{data:function(){return G.data().firstPartyItems}},{listItemViewModel:_.xq})))},"bj"),"first-party-network-section-view-model",{props:{data:_.N6}});var o3A=(0,_.faS)(_.K5.share,{parentClickTrackingParamsSelector:function(G){return G.parentClickTrackingParams}});var s6C=_.Cp(["data:image/svg+xml;charset=UTF-8;base64,",""]),lb=function(){var G=_.m.apply(this,arguments)||this;G.screenLayer=7;G.qrCodeEnabled=_.R("web_enable_sharing_qr_code");G.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return G};
_.K(lb,_.m);_.V=lb.prototype;_.V.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"}}}};
_.V.attached=function(){this.JSC$20395_scroller&&(this.JSC$20395_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20395_scroller.attached&&typeof this.JSC$20395_scroller.attached==="function"&&this.JSC$20395_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.V.onDataChanged=function(){var G=this,e;(e=this.data)!=null&&e.contents&&(this.hostElement.setAttribute("links-only","true"),_.La(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.DE(this,function(){_.xy(G.hostElement,"yt-refit");G.focusSharePanelHeader()}))};
_.V.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.V.handleSetTimestamp=function(G){var e=this.shortUrl();G.isSet&&(e=_.yS(e,"t",G.timestamp));this.maybeRenderQrCode(e)};
_.V.shortUrl=function(){var G,e=(G=this.data)==null?void 0:G.contents;if(e)for(G=0;G<e.length;G++){var r=void 0,Z=void 0;if((r=e[G])==null?0:(Z=r.thirdPartyNetworkSection)==null?0:Z.copyLinkContainer){var O=Z=r=void 0;return(O=_.a((r=e[G])==null?void 0:(Z=r.thirdPartyNetworkSection)==null?void 0:Z.copyLinkContainer,YpV))==null?void 0:O.shortUrl}}};
_.V.maybeRenderQrCode=function(G){var e=this,r,Z,O,M,T,E,b,w,q;return _.D(function(t){if(t.nextAddress==1){r=_.z1(e.hostElement).querySelector("#qr-code");if(!e.qrCodeEnabled||!G)return r&&(r.style.display="none"),t.return();Z=_.Yrs(_.v_().resolve(_.LR),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});O=document.createElement("div");return typeof Z==="function"?(Z(O),t.jumpTo(2)):t.yield(Z,3)}t.nextAddress!=2&&(M=t.yieldResult,M(O));b=(T=O)==null?void 0:(E=T.firstChild)==null?void 0:E.firstChild;
w=document.createElement("img");q=_.h1F(s6C,btoa(b.outerHTML));w.onload=function(){var g={canvas:r,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:w},l=new CtW;yIW(l,G);AIm(l,!1,FvH(l));var X=l.modules,H=Object.assign({},RJ8,g);X=structuredClone(X);g=X.length;var I,C=(I=H.canvas)!=null?I:document.createElement("canvas");I=H.cellSize;l=H.logo;var u,P=(u=H.logoSize)!=null?u:Math.floor(g/4);g%2!==P%2&&P++;var F=H.logoPadding,J=H.backgroundColor;u=g*I;var U=
H.width,e$=0;U&&(e$=H.padding,e$=Math.ceil(e$*u/(U-e$*2)),C.style.width=U+"px",C.style.height=U+"px");C.width!==u+e$*2&&(C.width=u+e$*2);C.height!==u+e$*2&&(C.height=u+e$*2);u=C.getContext("2d");H.autoClear&&u.clearRect(0,0,C.width,C.height);u.fillStyle=J;u.beginPath();u.roundRect(0,0,C.width,C.height,H.borderRadius);u.fill();u.save();u.translate(e$,e$);if(l)for(C=Math.floor(g-P)/2-F,F=Math.floor(g+P)/2+F,J=C;J<F;J++)for(U=C;U<F;U++)X[J][U]=!1;for(C=0;C<g;C++)for(F=0;F<g;F++)(C<7&&F<7||C<7&&F>=g-
7||C>=g-7&&F<7)&&(X[C][F]=!1);var Dq;C=(Dq=H.markerColor)!=null?Dq:H.color;B8B(u,0,0,I,C);B8B(u,I*(g-7),0,I,C);B8B(u,0,I*(g-7),I,C);switch(H.cellStyle){case 0:Dq=X;X=Dq.length;C=H.cellSize;u.beginPath();for(F=0;F<X;F++)for(J=0;J<X;J++)Dq[F][J]&&u.rect(F*C,J*C,C,C);u.fillStyle=H.color;u.fill();break;case 1:Dq=X;X=Dq.length;C=H.cellSize;F=C*H.relativeCircleSize;u.fillStyle=H.color;u.beginPath();for(H=0;H<X;H++)for(J=0;J<X;J++)Dq[H][J]&&(u.beginPath(),u.ellipse((H+.5)*C,(J+.5)*C,F/2,F/2,0,0,2*Math.PI),
u.fill());u.fill();break;case 2:Dq=X;X=Dq.length;C=H.cellSize;u.fillStyle=H.color;H=[[1,1],[-1,1],[-1,-1],[1,-1]];u.beginPath();for(F=0;F<X;F++)for(J=0;J<X;J++)if(Dq[F][J])u.roundRect(F*C,J*C,C,C,C/2),F+1<X&&Dq[F+1][J]&&u.rect(F*C+C/2,J*C,C,C),J+1<X&&Dq[F][J+1]&&u.rect(F*C,J*C+C/2,C,C);else{U=F*C+C/2;e$=J*C+C/2;for(var bF=0;bF<4;bF++){var Kf=_.h(H[bF]),ti=Kf.next().value;Kf=Kf.next().value;F+ti>=0&&F+ti<X&&J+Kf>=0&&J+Kf<X&&Dq[F+ti][J]&&Dq[F][J+Kf]&&Dq[F+ti][J+Kf]&&(ti=bF*Math.PI/2,Kf=C/2,u.moveTo(U+
Kf*Math.cos(ti),e$+Kf*Math.sin(ti)),u.arc(U,e$,C/2,ti,ti+Math.PI/2,!1),u.lineTo(U+Kf*(Math.cos(ti)-Math.sin(ti)),e$+Kf*(Math.cos(ti)+Math.sin(ti))),u.lineTo(U+Kf*Math.cos(ti),e$+Kf*Math.sin(ti)))}}u.fill()}l&&u.drawImage(l,(g-P)*I/2,(g-P)*I/2,P*I,P*I);u.restore();r.style.removeProperty("display")};
w.src=_.nj(q);_.HL(t)})};
_.V.hasCommunityPostRenderer=function(){var G,e,r,Z;return!!((G=this.data)==null?0:(e=G.header)==null?0:(r=e.sharePanelHeaderRenderer)==null?0:(Z=r.communityPost)==null?0:Z.communityPostSectionRenderer)};
_.V.onTapClose=function(){_.Pi(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.V.getScreenLayer=function(){return this.screenLayer};
_.V.logSharePanelPage=function(){if(!_.R("enable_share_panel_navigation_logging_fix_on_web")){var G;if((G=this.data)!=null&&G.trackingParams){G=this.data.trackingParams;var e=this.parentClickTrackingParams;e=e?_.b1(e):void 0;var r=_.h_();_.aC(r,21760,e,{layer:7,parentLayer:0});r.graftServerVe(G,void 0,7);_.Yt().dispatch(_.UK({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
lb.prototype.onDataChanged=lb.prototype.onDataChanged;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],lb.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],lb.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],lb.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],lb.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],lb.prototype,"data",void 0);_.B([_.n({value:_.OK("SBOX_INAPPROPRIATE_CANCEL")}),_.x("design:type",String)],lb.prototype,"closeButtonAriaLabel",void 0);_.B([_.hs("yt-share-panel-header-renderer"),_.x("design:type",HTMLElement)],lb.prototype,"header",void 0);_.B([_.n({selector:o3A.parentClickTrackingParamsSelector}),_.x("design:type",String)],lb.prototype,"parentClickTrackingParams",void 0);_.B([_.n(),_.x("design:type",Object)],lb.prototype,"qrCodeEnabled",void 0);
_.B([_.hs("#scroller"),_.x("design:type",Object)],lb.prototype,"JSC$20395_scroller",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lb.prototype,"onDataChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],lb);
_.A(lb,"ytd-unified-share-panel-renderer",function(){if(V2H!==void 0)return V2H;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return V2H=G},{mode:1});var Q68;var Rv=function(){var G=_.m.apply(this,arguments)||this;G.modernModal=!0;return G};
_.K(Rv,_.m);Rv.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
Rv.prototype.computeShouldHideOldButtons=function(){var G;return!((G=this.data)==null?0:G.button)};
_.iY.Object.defineProperties(Rv.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var G,e;return(G=this.data)==null?void 0:(e=G.button)==null?void 0:e.buttonRenderer}}});
_.B([_.n(),_.x("design:type",Object)],Rv.prototype,"data",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Rv.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],Rv.prototype,"ytEventForwardingBehavior",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Rv.prototype,"modernModal",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Rv.prototype,"buttonRendererData",null);
_.B([_.c({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],Rv);
_.A(Rv,"ytd-modal-with-title-and-button-renderer",function(){if(Q68!==void 0)return Q68;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Q68=G},{mode:1});var ITd;var jn=function(){return _.m.apply(this,arguments)||this};
_.K(jn,_.m);jn.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eG("page-changed",this.page))};
jn.prototype.pageChangedForBinding=jn.prototype.pageChangedForBinding;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],jn.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],jn.prototype,"data",void 0);_.B([_.n(),_.x("design:type",String)],jn.prototype,"page",void 0);_.B([_.Me("page"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jn.prototype,"pageChangedForBinding",null);
_.B([_.c({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],jn);
_.A(jn,"ytd-account-item-section-header-renderer",function(){if(ITd!==void 0)return ITd;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return ITd=G},{mode:1});var pE8;var av=function(){return _.m.apply(this,arguments)||this};
_.K(av,_.m);av.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"}}}};
av.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],av.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],av.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.eP),_.x("design:type",Object)],av.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],av.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!1}),_.x("design:type",Function)],av.prototype,"onAccountItemTap",void 0);
_.B([_.c({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],av);
_.A(av,"ytd-account-item-section-renderer",function(){if(pE8!==void 0)return pE8;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return pE8=G},{mode:1});var C0H;var uYH;var n3C=function(){return _.m.apply(this,arguments)||this};
_.K(n3C,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],n3C.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],n3C.prototype,"data",void 0);_.B([_.c({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],n3C);
_.A(n3C,"ytd-accounts-dialog-header-renderer",function(){if(uYH!==void 0)return uYH;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return uYH=G},{mode:1});var mjd;var X4=function(){return _.m.apply(this,arguments)||this};
_.K(X4,_.m);X4.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],X4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],X4.prototype,"data",void 0);_.B([_.c({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],X4);
_.A(X4,"ytd-google-account-header-renderer",function(){if(mjd!==void 0)return mjd;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return mjd=G},{mode:1});var Kg=function(){return _.m.apply(this,arguments)||this};
_.K(Kg,_.m);Kg.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"}}}};
Kg.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eG("page-changed",this.page))};
Kg.prototype.pageChangedForBinding=Kg.prototype.pageChangedForBinding;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Kg.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Kg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Kg.prototype,"data",void 0);_.B([_.n(),_.x("design:type",String)],Kg.prototype,"page",void 0);
_.B([_.Me("page"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Kg.prototype,"pageChangedForBinding",null);_.B([_.c({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],Kg);
_.xP()(Kg,"ytd-account-section-list-renderer",function(){if(C0H===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);C0H=G}G=C0H;return G},{allowedProps:["data"],
mode:1});var clW;var fg=function(){var G=_.m.apply(this,arguments)||this;G.enableHandlesAccountMenuSwitcher=_.R("enable_handles_account_menu_switcher");return G};
_.K(fg,_.m);fg.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
fg.prototype.dataChanged=fg.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],fg.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],fg.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],fg.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.B([_.hs("#avatar"),_.x("design:type",Object)],fg.prototype,"avatar",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fg.prototype,"dataChanged",null);_.B([_.c({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],fg);
_.xP()(fg,"ytd-active-account-header-renderer",function(){if(clW===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);clW=G}G=clW;return G},{allowedProps:["data"],
mode:1});var YJA;var yl2;var kQ=function(){return _.m.apply(this,arguments)||this};
_.K(kQ,_.m);kQ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
kQ.prototype.onBackTap=function(){_.xy(this.hostElement,"yt-menu-back-tapped")};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],kQ.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],kQ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],kQ.prototype,"data",void 0);_.B([_.c({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],kQ);
_.xP()(kQ,"ytd-simple-menu-header-renderer",function(){if(yl2===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);yl2=G}G=yl2;return G},{allowedProps:["data"],
mode:2});var AlY;var Fto=function(){return _.m.apply(this,arguments)||this};
_.K(Fto,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Fto.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Fto.prototype,"data",void 0);_.B([_.c({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],Fto);
_.A(Fto,"ytd-comment-video-thumbnail-header-renderer",function(){if(AlY!==void 0)return AlY;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return AlY=G},{mode:1});var Jl8;var BMY=function(){return _.m.apply(this,arguments)||this};
_.K(BMY,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],BMY.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],BMY.prototype,"data",void 0);_.B([_.c({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],BMY);
_.A(BMY,"ytd-abuse-type-selector-renderer",function(){if(Jl8!==void 0)return Jl8;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Jl8=G},{mode:1});var xjW;var P0d=(0,_.faS)(_.K5.reportChannelAbuse,{isVideoIdSelectedSelector:function(G,e){return e in G.selectedVideoIds},
additionalContextSelector:function(G){return G.additionalContext},
impersonatedChannelUrlSelector:function(G){return G.impersonatedChannelUrl},
reportChannelAbuseSelector:function(G){return G}});var HW=function(){return _.m.apply(this,arguments)||this};
_.K(HW,_.m);HW.prototype.attached=function(){var G=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){G.additionalContextInput.focusTextInput()})};
HW.prototype.handleAdditionalContextChanged=function(){var G=this;_.sm(this,"ytd-report-channel-additional-context-update",function(){G.ytdReduxBehavior.dispatch(_.UK({type:"ADDITIONAL_CONTEXT_UPDATED",payload:G.additionalContext}))},300)};
HW.prototype.updateAdditionalContextFromBinding=function(G){this.additionalContext=G.detail.value};
HW.prototype.handleAdditionalContextChanged=HW.prototype.handleAdditionalContextChanged;_.B([_.k(_.A5),_.x("design:type",Object)],HW.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",String)],HW.prototype,"additionalContext",void 0);_.B([_.n({selector:P0d.additionalContextSelector}),_.x("design:type",String)],HW.prototype,"additionalContextRedux",void 0);_.B([_.n(),_.x("design:type",Object)],HW.prototype,"data",void 0);
_.B([_.hs("yt-text-input-form-field-renderer"),_.x("design:type",Object)],HW.prototype,"additionalContextInput",void 0);_.B([_.Me("additionalContext"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],HW.prototype,"handleAdditionalContextChanged",null);_.B([_.c({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],HW);
_.A(HW,"ytd-report-channel-modal-additional-context-renderer",function(){if(xjW!==void 0)return xjW;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return xjW=G},{mode:1});var UjV;var d6=function(){var G=_.m.apply(this,arguments)||this;G.nextButtonDisabled=null;G.submitEndpoint=null;G.navigationEndpoint=null;G.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return G};
_.K(d6,_.m);_.V=d6.prototype;_.V.computeNextButtonData=function(G,e,r){var Z={};e&&(Z.navigationEndpoint=e);r&&(Z.serviceEndpoint=r);G&&G.buttonRenderer&&_.c2.extend(Z,G.buttonRenderer);return Z};
_.V.handleReportChannelModalDisableNextButtonAction=function(G){this.setNextButtonIsDisabled(G)};
_.V.handleReportFormEndpointUpdateAction=function(G){this.setNextButtonIsDisabled(!!G.disableSubmitButton);this.resetEndpointData();G.submitEndpoint?this.submitEndpoint=G.submitEndpoint:G.submitNavigationEndpoint&&(this.navigationEndpoint=G.submitNavigationEndpoint)};
_.V.handleSignalActionSubmitForm=function(){var G,e=Object.keys(((G=this.reportChannelAbuseForm)==null?void 0:G.selectedVideoIds)||{}),r;G=((r=this.reportChannelAbuseForm)==null?void 0:r.additionalContext)||"";var Z;r=((Z=this.reportChannelAbuseForm)==null?void 0:Z.impersonatedChannelUrl)||"";var O;if((O=this.data)==null?0:O.submitEndpoint){e={impersonated_channel_url:r,text:G,video_ids:e};var M;_.v_().resolve(_.$1).resolveCommand((M=this.data)==null?void 0:M.submitEndpoint,{form:Object.assign({},
e,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.V.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.V.onYtServiceRequestError=function(G){this.setNextButtonIsDisabled(!1);_.QO(this.hostElement,G.detail.error.message)};
_.V.setNextButtonIsDisabled=function(G){this.set("data.nextButton.buttonRenderer.isDisabled",G)};
_.V.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
d6.prototype.onYtServiceRequestError=d6.prototype.onYtServiceRequestError;d6.prototype.onYtServiceRequestCompleted=d6.prototype.onYtServiceRequestCompleted;_.B([_.n(),_.x("design:type",Object)],d6.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],d6.prototype,"nextButtonDisabled",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],d6.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],d6.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],d6.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],d6.prototype,"submitEndpoint",void 0);_.B([_.n(),_.x("design:type",Object)],d6.prototype,"navigationEndpoint",void 0);_.B([_.n({selector:P0d.reportChannelAbuseSelector}),_.x("design:type",Object)],d6.prototype,"reportChannelAbuseForm",void 0);
_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],d6.prototype,"onYtServiceRequestCompleted",null);_.B([_.Om("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],d6.prototype,"onYtServiceRequestError",null);_.B([_.c({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],d6);
_.A(d6,"ytd-report-channel-modal-footer-renderer",function(){if(UjV!==void 0)return UjV;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return UjV=G},{mode:1});var zuH;var ov=function(){var G=_.m.apply(this,arguments)||this;G.boundOnTapDismissButton=function(){G.closePopup()};
return G};
_.K(ov,_.m);ov.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
ov.prototype.handleDataChanged=function(){_.Os(this.hostElement)};
ov.prototype.closePopup=function(){_.Pi(this.hostElement,"yt-close-popup-action")};
ov.prototype.handleDataChanged=ov.prototype.handleDataChanged;_.B([_.n(),_.x("design:type",Object)],ov.prototype,"boundOnTapDismissButton",void 0);_.B([_.n(),_.x("design:type",Object)],ov.prototype,"data",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ov.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],ov.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ov.prototype,"handleDataChanged",null);_.B([_.c({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],ov);
_.A(ov,"ytd-report-channel-modal-header-renderer",function(){if(zuH!==void 0)return zuH;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return zuH=G},{mode:1});var WtW;var sF=function(){var G=_.m.apply(this,arguments)||this;G.autoValidate=!1;G.invalid=!1;G.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return G};
_.K(sF,_.m);_.V=sF.prototype;_.V.attached=function(){var G=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){G.channelUrlInput.focusTextInput()})};
_.V.disableNextButton=function(G){_.Pi(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[G])};
_.V.handleImpersonatedChannelUrlChanged=function(){var G=this;this.disableNextButton(!0);this.invalid=!1;_.sm(this,"ytd-report-channel-impersonated-channel-update",function(){var e=G.impersonatedChannelUrl.trim();G.ytdReduxBehavior.dispatch(_.UK({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:e}));var r;((r=G.data)==null?0:r.submitEndpoint)&&e&&_.v_().resolve(_.$1).resolveCommand(G.data.submitEndpoint,{form:{impersonated_channel_url:e,element:G.hostElement}})},500)};
_.V.handleModifyReportFormCommand=function(G){this.invalid=this.get("modifyReportFormCommand.action",G)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.V.updateInvalidFromBinding=function(G){this.invalid=G.detail.value};
_.V.updateImpersonatedChannelUrlFromBinding=function(G){this.impersonatedChannelUrl=G.detail.value};
sF.prototype.handleImpersonatedChannelUrlChanged=sF.prototype.handleImpersonatedChannelUrlChanged;_.B([_.k(_.A5),_.x("design:type",Object)],sF.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],sF.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],sF.prototype,"autoValidate",void 0);_.B([_.n(),_.x("design:type",Object)],sF.prototype,"invalid",void 0);
_.B([_.n(),_.x("design:type",String)],sF.prototype,"impersonatedChannelUrl",void 0);_.B([_.n({selector:P0d.impersonatedChannelUrlSelector}),_.x("design:type",String)],sF.prototype,"impersonatedChannelUrlRedux",void 0);_.B([_.n(),_.x("design:type",Object)],sF.prototype,"data",void 0);_.B([_.hs("#text-input"),_.x("design:type",Object)],sF.prototype,"channelUrlInput",void 0);
_.B([_.Me("impersonatedChannelUrl"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sF.prototype,"handleImpersonatedChannelUrlChanged",null);_.B([_.c({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],sF);
_.A(sF,"ytd-report-channel-modal-impersonation-renderer",function(){if(WtW!==void 0)return WtW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return WtW=G},{mode:1});var NMa;var LtV;var QK=function(){return _.m.apply(this,arguments)||this};
_.K(QK,_.m);QK.prototype.onCheckboxToggled=function(G){var e,r,Z=(r=_.a((e=this.data)==null?void 0:e.video,_.N8))==null?void 0:r.videoId;Z&&this.ytdReduxBehavior.dispatch(G.target.checked?_.UK({type:"VIDEO_SELECTED",payload:Z}):_.UK({type:"VIDEO_UNSELECTED",payload:Z}))};
QK.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.iY.Object.defineProperties(QK.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var G,e=(G=this.data)==null?void 0:G.video;if(!e)return{};var r;G=(r=_.a(e,_.N8))==null?void 0:r.navigationEndpoint;if(!G)return e;_.a(G==null?void 0:G.commandMetadata,_.rJ)&&(_.a(G.commandMetadata,_.rJ).ignoreNavigation=!0);return e}}});
_.B([_.n({reflectToAttribute:!0,selector:P0d.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.x("design:type",Boolean)],QK.prototype,"checked",void 0);_.B([_.n(),_.x("design:type",Object)],QK.prototype,"data",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],QK.prototype,"video",null);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],QK.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],QK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],QK.prototype,"ytdReduxBehavior",void 0);_.B([_.c({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],QK);
_.A(QK,"ytd-selectable-video-renderer",function(){if(LtV!==void 0)return LtV;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return LtV=G},{mode:1});var Iv=function(){var G=_.m.apply(this,arguments)||this;G.monitorScroll=!0;return G};
_.K(Iv,_.m);Iv.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Iv.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Iv.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Iv.prototype,"data",void 0);_.B([_.c({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],Iv);
_.A(Iv,"ytd-selectable-video-list-renderer",function(){if(NMa!==void 0)return NMa;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return NMa=G},{mode:1});var GmW;_.te("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var pg=function(){return _.m.apply(this,arguments)||this};
_.K(pg,_.m);pg.prototype.onChange=function(G){if(G=_.mk(G).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.R("kevlar_command_handler_migration_killswitch"))_.Wi(this.hostElement,G,this.hostElement);else{G=_.h(G);for(var e=G.next();!e.done;e=G.next())this.ytComponentBehavior.resolveCommand(e.value)}};
pg.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
pg.prototype.updateDataToggledFromBinding=function(G){this.set("data.toggled",G.detail.value)};
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],pg.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],pg.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],pg.prototype,"data",void 0);_.B([_.n({computed:"isEnabled(data)"}),_.x("design:type",Boolean)],pg.prototype,"enabled",void 0);_.B([_.c({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],pg);
_.A(pg,"ytd-toggle-item-renderer",function(){if(GmW!==void 0)return GmW;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return GmW=G},{mode:1});var eyW;var rcC;var Zy8;var Cg=function(){var G=_.m.apply(this,arguments)||this;G.setVisible=!1;G.boundOnSubmitButtonClick=function(){G.onSubmitButtonClick()};
G.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return G};
_.K(Cg,_.m);Cg.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}}}}}};
Cg.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
Cg.prototype.onSubmitButtonClick=function(){var G;((G=this.data)==null?0:G.submitEndpoint)&&!_.R("enable_ytc_refunds_submit_form_signal_action")&&_.zw(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
Cg.prototype.handleSignalActionSubmitForm=function(){var G;((G=this.data)==null?0:G.submitEndpoint)&&_.zw(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.iY.Object.defineProperties(Cg.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.hiddenByDefault)&&!this.setVisible}}});
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Cg.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Cg.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Cg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Cg.prototype,"setVisible",void 0);_.B([_.n(),_.x("design:type",Object)],Cg.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",Object)],Cg.prototype,"surveyFeedbackData",void 0);_.B([_.n(),_.x("design:type",Object)],Cg.prototype,"boundOnSubmitButtonClick",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("data","setVisible"),_.x("design:type",Object),_.x("design:paramtypes",[])],Cg.prototype,"visibilityHidden",null);_.B([_.aR({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],Cg);
_.A(Cg,"yt-flow-footer-renderer",function(){if(Zy8===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;rcC===void 0&&(rcC=document.createElement("template"));var Z=rcC;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Zy8=G}G=Zy8;return G},{mode:2});var OyY=(0,_.faS)(_.K5.ypc,{surveyFeedbackDataSelector:function(G){return G.surveyFeedbackData}});var ub=function(){return _.m.apply(this,arguments)||this};
_.K(ub,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ub.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],ub.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ub.prototype,"data",void 0);_.B([_.n({selector:OyY.surveyFeedbackDataSelector}),_.x("design:type",Object)],ub.prototype,"surveyFeedbackData",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],ub);
_.A(ub,"ytd-flow-footer-renderer",function(){if(eyW!==void 0)return eyW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return eyW=G},{mode:_.Px("kevlar_poly_si_batch_j025")?1:2});var MBV;var VBW;var ng=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return G};
_.K(ng,_.m);_.V=ng.prototype;_.V.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.gp("multiPageMenuSectionItems")}}};
_.V.handleHideEnclosingAction_=function(G){if(this.data&&this.data.items)for(var e=0;e<this.data.items.length;e++){var r=this.data.items[e].notificationRenderer;if(r&&r.notificationId==G.hideEnclosingAction.notificationId){this.splice("data.items",e,1);_.Pi(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.V.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.La(this.hostElement,"hidden",!0)};
_.V.updateMenu_=function(G){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&G&&!G.doNotRefreshInbox){G=this.data.continuations;for(var e=0;e<G.length;e++)if(G[e].invalidationContinuationData){var r=void 0;var Z=(r=G[e].invalidationContinuationData)==null?void 0:r.continuation;break}G=_.c2.clone(this.data.continuationUpdateEndpoint||null);G.continuation=Z;G.click_tracking_params=this.data.trackingParams;_.zw(this.hostElement,[G])}};
_.V.onServiceRequestCompleted_=function(G,e){if(this.data&&(G=e.actions)){e=0;for(var r=G.length;e<r;e++){var Z=_.a(G[e],_.seb);if(!Z)break;if((Z.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||Z.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&Z.continuationItems&&this.data.items){var O=this.data.items.length-1;this.data.items[O].continuationItemRenderer&&(Z=["data.items",O,1].concat(Z.continuationItems),this.splice.apply(this,Z))}}}};
ng.prototype.onServiceRequestCompleted_=ng.prototype.onServiceRequestCompleted_;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ng.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],ng.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],ng.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ng.prototype,"data",void 0);
_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.n1]),_.x("design:returntype")],ng.prototype,"onServiceRequestCompleted_",null);_.B([_.aR({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],ng);
_.xP()(ng,"yt-multi-page-menu-section-renderer",function(){if(VBW===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;MBV===void 0&&(MBV=document.createElement("template"));var Z=MBV;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);VBW=G}G=VBW;return G},{allowedProps:["data"],
mode:2});var hy2;var TmW;var mq=function(){return _.m.apply(this,arguments)||this};
_.K(mq,_.m);mq.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.iY.Object.defineProperties(mq.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.progress)==null?0:this.data.progress*100}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],mq.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],mq.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],mq.prototype,"data",void 0);_.B([_.d("data.progress"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],mq.prototype,"showProgressBar",null);
_.B([_.d("data.progress"),_.x("design:type",Number),_.x("design:paramtypes",[])],mq.prototype,"progress",null);_.B([_.aR({is:"yt-flow-header-renderer",disableElementRegistration:!0})],mq);
_.A(mq,"yt-flow-header-renderer",function(){if(TmW===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;hy2===void 0&&(hy2=document.createElement("template"));var Z=hy2;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);TmW=G}G=TmW;return G},{mode:2});var D3l;var Ex2;var cW=function(){return _.m.apply(this,arguments)||this};
_.K(cW,_.m);cW.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],cW.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],cW.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],cW.prototype,"data",void 0);_.B([_.aR({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],cW);
_.A(cW,"yt-post-confirmation-flow-step-renderer",function(){if(Ex2===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;D3l===void 0&&(D3l=document.createElement("template"));var Z=D3l;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Ex2=G}G=Ex2;return G},{mode:2});var iyB;var byY;var YQ=function(){return _.m.apply(this,arguments)||this};
_.K(YQ,_.m);
YQ.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"}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],YQ.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],YQ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],YQ.prototype,"data",void 0);_.B([_.aR({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],YQ);
_.A(YQ,"yt-refund-confirmation-flow-step-renderer",function(){if(byY===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;iyB===void 0&&(iyB=document.createElement("template"));var Z=iyB;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);byY=G}G=byY;return G},{mode:2});var vxH=_.y(function(G){var e=G.data;return _.v("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.v("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.v(_.nC,{data:function(){return{thumbnails:[{url:e().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.v("div",{class:"profileBadgeViewModelContent"},_.v("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return e().badgeDesc}),_.v(_.S,{cond:function(){return e().badgeSubtitle},
then:function(){return _.v("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return e().badgeSubtitle})}})))},"cj");
vxH.idomCompat=!0;var w0A=_.y(function(G){var e=G.data;return _.v("yt-comment-interaction-view-model",{el:_.cQ(_.jV(function(){return e().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.v("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return e().onTapA11yLabel},
"on:keydown":_.FRU(),tabindex:0},_.v("div",{class:"ytCommentInteractionViewModelHeader"},_.v("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return e().headerPrefix},' "',function(){return e().videoTitle}),_.v("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.v("div",{class:"ytCommentInteractionViewModelContent"},_.v("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return e().commentContent}),_.v("div",{class:"ytCommentInteractionViewModelChevron"},
_.v(_.nC,{data:function(){return{thumbnails:[{url:e().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"dj");
w0A.idomCompat=!0;var $3H=_.y(function(G){var e=G.data;return _.v("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.v(_.E2,{data:function(){return e().avatar}},{avatarViewModel:_.yy}),_.v("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return e().channelName}))},"ej");
$3H.idomCompat=!0;var l68=_.y(function(G){var e=G.data;G={};return _.v("yt-profile-info-view-model",{class:_.LC("ytProfileInfoViewModelHost",(G.ytProfileInfoViewModelWithVideoShelf=function(){return e().videosHorizontalShelf},G))},_.v(STW,{profileInfo:e}),_.v(_.E2,{data:function(){return e().videosHorizontalShelf}},{horizontalShelfViewModel:function(r){return _.v("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.v(_.WP,{data:r.data}))}}),_.v(_.S,{cond:function(){return e().comments},
then:function(){return _.v(qT8,{profileInfo:e})}}),_.v(_.S,{cond:function(){return e().sharedSubscriptionsTitle},
then:function(){return _.v(_.S,{cond:function(){return e().subscriptionsAccessButtonCommand},
then:function(){return _.v(tBW,{profileInfo:e})},
else:function(){return _.v(gxd,{profileInfo:e})}})}}))},"fj");
l68.idomCompat=!0;var qT8=_.y(function(G){var e=G.profileInfo;return _.v("div",{class:"ytProfileInfoViewModelActivity"},_.v("div",{class:"ytProfileInfoViewModelHeader"},_.v("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return e().commentsInteractionTitle})),_.v(_.E2,{data:function(){return e().comments}},{commentInteractionViewModel:function(r){return _.v("div",{class:"ytProfileInfoViewModelActivity"},_.v(w0A,{data:r.data}))}}))},"gj"),tBW=_.y(function(G){var e=G.profileInfo;
return _.v("div",{class:"ytProfileInfoViewModelSubSection"},_.v("div",{class:"ytProfileInfoViewModelSubHeader"},_.v(_.Ds,{command:function(){return e().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.v("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return e().sharedSubscriptionsTitle}),_.v("div",null,_.v(_.E2,{data:function(){return e().subscriptionsAccessButton}},{buttonViewModel:_.wF})))),_.v(Ry2,{sharedSubscriptions:function(){var r;
return((r=e().sharedSubscriptions)==null?void 0:r.slice(0,5))||[]}}))},"hj"),gxd=_.y(function(G){var e=G.profileInfo;
return _.v("div",{class:"ytProfileInfoViewModelSubSection"},_.v("div",{class:"ytProfileInfoViewModelSubHeader"},_.v("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return e().sharedSubscriptionsTitle})),_.v(Ry2,{sharedSubscriptions:function(){var r;
return((r=e().sharedSubscriptions)==null?void 0:r.slice(0,5))||[]}}))},"ij"),Ry2=_.y(function(G){return _.v("div",{class:"ytProfileInfoViewModelSubs"},_.v(_.E2,{data:G.sharedSubscriptions},{sharedSubscriptionViewModel:function(e){return _.v("div",{class:"ytProfileInfoViewModelSub"},_.v($3H,{data:e.data}))}}))},"jj"),STW=_.y(function(G){var e=G.profileInfo;
return _.v("div",{class:"ytProfileInfoViewModelActivity"},_.v(_.u6,{each:function(){return[e().profileBadgeInfoYtWide,e().profileBadgeInfoChannelWide].filter(function(r){return!!r})},
keyBy:"INDEX"},function(r){return _.v(_.$Z,null,_.v("div",{class:"ytProfileInfoViewModelHeader"},_.v("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return r().profileSectionTitle}),_.v("div",{class:"ytProfileInfoViewModelSectionDesc"},_.v("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var Z;
return(Z=r().commentBadge)==null?void 0:Z.commentDesc}),_.v(_.S,{cond:function(){var Z;
return(Z=r().commentBadge)==null?void 0:Z.blackHeartDesc},
then:function(){return _.v("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.v("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.v(_.nC,{data:function(){var Z;
return{thumbnails:[{url:(Z=r().commentBadge)==null?void 0:Z.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.v("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var Z;return(Z=r().commentBadge)==null?void 0:Z.blackHeartDesc}))),_.v("div",{class:"ytProfileInfoViewModelBadge"},_.v(_.u6,{each:function(){return r().badges||[]}},function(Z){return _.v(vxH,{data:Z})})))}))},"kj");var j7W=_.y(function(G){var e=G.data;var r=function(){return e().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.v("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.v(_.E2,{data:function(){return e().profileIdentityInfo}},{profileIdentityInfoViewModel:function(Z){return _.v(_.Mqm,{data:Z.data,
hideDivider:r,isChannelInfoCard:r})},
profileInfoViewModel:l68}),_.v(_.E2,{data:function(){return e().profileInfo}},{profileIdentityInfoViewModel:_.Mqm,
profileInfoViewModel:l68}))},"lj");
j7W.idomCompat=!0;_.J_(j7W,"yt-profile-card-view-model",{props:{data:_.N6}});var yK=function(){var G=_.m.apply(this,arguments)||this;G.enableFocusFix=_.R("music_web_enable_focus_on_setting_menu_fix")&&_.PX("IS_MOBILE_WEB",!1);G.covered=!1;G.hideMenu=!1;G.isCommentNotificationOnProfileCard=!1;G.scrolledByTouch=!1;G.disableBackdropFilter=_.R("web_disable_backdrop_filter");G.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return G};
_.K(yK,_.m);_.V=yK.prototype;
_.V.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"}}}};
_.V.ready=function(){var G=this;this.JSC$20496_containerElement.addEventListener("scroll",function(){G.ytRendererBehavior.markDirty()})};
_.V.attributeChanged=function(G,e){G==="menu-style"&&_.Pi(this.hostElement,"yt-multi-page-menu-closed-action",[e])};
_.V.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.ZQ(this,this.focusOnStampFinished))};
_.V.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.ZQ(this,this.focusOnStampFinished))};
_.V.reset=function(){this.closeJobId&&(_.A0.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.V.focusOnStampFinished=function(G){G.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.ZQ(this,this.focusOnStampFinished)),this.doFocus())};
_.V.doFocus=function(){var G=_.sij(this.sectionsElement);G.length&&G[0].focus()};
_.V.computeMenuStyle=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.V.computeIsCommentNotificationOnProfileCard=function(G){return _.R("enable_profile_cards_on_comments")&&G.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.V.computeHideMenu=function(G,e){return G||!(!e||!e.showLoadingSpinner)};
_.V.onPopupClosed=function(){this.isPopUpOpen=!1;_.Pi(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.V.onPopupOpened=function(G,e){this.isPopUpOpen=!0;e.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.xy(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.UK({type:"CHANNEL_REPORT_RESET"})))};
_.V.onYtNavigate=function(G,e){this.shouldCloseOnNavigateEvent(e.endpoint)&&_.Pi(this.hostElement,"yt-close-all-popups-action")};
_.V.handleEndpoint=function(G){G=_.a(G,_.JO);!this.isCommentNotificationOnProfileCard&&G&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20496_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.V.handleActions=function(G){for(var e=0,r=G.length;e<r;e++){var Z=_.a(G[e],FjW);Z&&this.handleGetMultiPageMenuAction(Z);(Z=_.a(G[e],_.seb))&&this.handleAppendContinuationItemsAction(Z)}};
_.V.onServiceRequestSentOrCompleted=function(G,e){G.detail&&G.detail.endpoint&&this.handleEndpoint(G.detail.endpoint);e.actions&&this.handleActions(e.actions)};
_.V.handleGetMultiPageMenuAction=function(G){var e=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.z1(this.submenuElement).appendChild(e);(G=G.menu.multiPageMenuRenderer)&&this.logSubmenu(G);e.data=G;e.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.V.handleAppendContinuationItemsAction=function(G){if(this.data&&G.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&G.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&&G.continuationItems){G=_.h(G==null?void 0:G.continuationItems);for(var r=G.next();!r.done;r=G.next())if(r=r.value,_.a(r,SU8)){var Z=
void 0,O=void 0,M=void 0,T=void 0,E=void 0;((Z=this)==null?0:(O=Z.data)==null?0:(M=O.sections)==null?0:(T=M[e])==null?0:(E=T.multiPageMenuNotificationSectionRenderer)==null?0:E.items)&&this.push("data.sections."+e+".multiPageMenuNotificationSectionRenderer.items",r)}else if(_.a(r,_.R2l)||_.a(r,_.mL))this.push("data.sections",r),e++}}};
_.V.logSubmenu=function(G){if(!_.R("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var e=this.ytRendererBehavior.getScreenLayer(),r=_.l4(e),Z=_.go(e);if((G=G.trackingParams)&&r&&Z){var O=_.b1(G);_.R("combine_ve_grafts")?_.h_().graftServerVe(G,Z,e):_.QU(r,Z,O)}}};
_.V.emptySubmenuContainer=function(){for(var G=_.z1(this.submenuElement);G.firstChild;)G.removeChild(G.firstChild)};
_.V.onMenuBackTap=function(G){_.xy(this.hostElement,"yt-submenu-closed");G.stopPropagation()};
_.V.onSubmenuClosed=function(G){_.mk(G)!==this.hostElement&&(this.covered=!1,_.xy(this.hostElement,"yt-refit"),G.stopPropagation())};
_.V.onRetrieveLocation=function(G,e){e.hasComments&&(e.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),G.stopPropagation())};
_.V.shouldCloseOnNavigateEvent=function(G){if(!G)return!0;if(_.a(G,_.G6w)||_.a(G,_.ehW)||_.a(G,_.LFW)||_.a(G,_.G2))return!1;var e;return((e=_.a(G==null?void 0:G.commandMetadata,_.rJ))==null?0:e.ignoreNavigation)?!1:!0};
_.V.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.V.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.V.refitAfterRender=function(){var G=this;_.DE(this,function(){_.xy(G.hostElement,"yt-refit")})};
yK.prototype.refitAfterRender=yK.prototype.refitAfterRender;yK.prototype.onRetrieveLocation=yK.prototype.onRetrieveLocation;yK.prototype.onSubmenuClosed=yK.prototype.onSubmenuClosed;yK.prototype.onMenuBackTap=yK.prototype.onMenuBackTap;yK.prototype.onServiceRequestSentOrCompleted=yK.prototype.onServiceRequestSentOrCompleted;yK.prototype.onYtNavigate=yK.prototype.onYtNavigate;yK.prototype.onPopupOpened=yK.prototype.onPopupOpened;yK.prototype.onPopupClosed=yK.prototype.onPopupClosed;
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],yK.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],yK.prototype,"ytEventForwardingBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],yK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],yK.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],yK.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",Object)],yK.prototype,"enableFocusFix",void 0);_.B([_.n(),_.x("design:type",Object)],yK.prototype,"covered",void 0);_.B([_.n({computed:"computeHideMenu(covered, data)"}),_.x("design:type",Object)],yK.prototype,"hideMenu",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.x("design:type",String)],yK.prototype,"menuStyle",void 0);
_.B([_.n({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.x("design:type",Object)],yK.prototype,"isCommentNotificationOnProfileCard",void 0);_.B([_.n(),_.x("design:type",Boolean)],yK.prototype,"isPopUpOpen",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],yK.prototype,"scrolledByTouch",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],yK.prototype,"disableBackdropFilter",void 0);
_.B([_.hs("#sections"),_.x("design:type",HTMLElement)],yK.prototype,"sectionsElement",void 0);_.B([_.hs("#spinner"),_.x("design:type",HTMLElement)],yK.prototype,"spinnerElement",void 0);_.B([_.hs("#header"),_.x("design:type",HTMLElement)],yK.prototype,"headerElement",void 0);_.B([_.hs("#container"),_.x("design:type",HTMLElement)],yK.prototype,"JSC$20496_containerElement",void 0);_.B([_.hs("#submenu"),_.x("design:type",HTMLElement)],yK.prototype,"submenuElement",void 0);
_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yK.prototype,"onPopupClosed",null);_.B([_.Om("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],yK.prototype,"onPopupOpened",null);_.B([_.Om("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],yK.prototype,"onYtNavigate",null);
_.B([_.Om("yt-service-request-completed"),_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.n1]),_.x("design:returntype")],yK.prototype,"onServiceRequestSentOrCompleted",null);_.B([_.Om("yt-menu-back-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],yK.prototype,"onMenuBackTap",null);
_.B([_.Om("yt-submenu-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],yK.prototype,"onSubmenuClosed",null);_.B([_.Om("yt-retrieve-location"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],yK.prototype,"onRetrieveLocation",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yK.prototype,"refitAfterRender",null);
_.B([_.c({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],yK);
_.A(yK,"ytd-multi-page-menu-renderer",function(){if(YJA!==void 0)return YJA;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return YJA=G},{mode:1});var a6V;var AR=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return G};
_.K(AR,_.m);_.V=AR.prototype;_.V.created=function(){this.showTooltips=!0};
_.V.computeAccessibility_=function(G){return this.get("accessibility.accessibilityData",G)||null};
_.V.onTap=function(){var G=_.UW(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(G&&G.length===1&&G[0])_.Pi(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 r;((r=this.data)==null?0:r.menuRequest)&&_.zw(this.hostElement,[this.data.menuRequest])}}};
_.V.handleTopbarMenuClosedAction=function(G){var e,r;(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(G)===((e=this.data)==null?void 0:(r=e.icon)==null?void 0:r.iconType)&&this.toggleIconState(!1)};
_.V.toggleIconState=function(G){_.R("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=G)};
_.V.handleUpdateTopbarAvatarAction=function(G){var e;G=(e=_.a(G,uSd))==null?void 0:e.avatarUrl;var r,Z;e=(r=this.data)==null?void 0:(Z=r.avatar)==null?void 0:Z.thumbnails;G&&e&&(r={thumbnails:[Object.assign({},e[0],{url:G})]},this.set("data.avatar",r))};
_.iY.Object.defineProperties(AR.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.z1(this.hostElement).querySelector("#button")}}});
AR.prototype.onTap=AR.prototype.onTap;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],AR.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],AR.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h5),_.x("design:type",Object)],AR.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.k(_.qdW.YtButtonBehavior),_.x("design:type",Object)],AR.prototype,"ytButtonBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],AR.prototype,"data",void 0);
_.B([_.hs("yt-icon-button#button"),_.x("design:type",Object)],AR.prototype,"iconButton",void 0);_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],AR.prototype,"onTap",null);_.B([_.c({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],AR);
_.xP()(AR,"ytd-topbar-menu-button-renderer",function(){if(a6V===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);a6V=G}G=a6V;return G},{allowedProps:["data"],
mode:1});var X0d;var F4=function(){return _.m.apply(this,arguments)||this};
_.K(F4,_.m);F4.prototype.getSelected=function(){return this.reasons.selected};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],F4.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],F4.prototype,"data",void 0);_.B([_.hs("#reasons"),_.x("design:type",Object)],F4.prototype,"reasons",void 0);_.B([_.c({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],F4);
_.A(F4,"ytd-ad-feedback-content",function(){if(X0d!==void 0)return X0d;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return X0d=G},{mode:1});var Kml;var JR=function(){return _.m.apply(this,arguments)||this};
_.K(JR,_.m);_.V=JR.prototype;_.V.onPopupOpened=function(){_.Pi(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.V.computeConfirmButton=function(G){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:G.confirmLabel}};
_.V.computeCancelButton=function(G){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:G.cancelLabel}};
_.V.onConfirmTap=function(){var G=this.content.getSelected();G!==void 0&&(G=this.data.reasons[G].endpoint)&&(_.v_().resolve(_.$1).resolveCommand(G,{form:{element:this.hostElement}}),_.Pi(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.V.sendFeedbackSubmitToastAction=function(){var G;(G=this.data)!=null&&G.completionMessage&&(G=_.Ah(this.data.completionMessage),_.Pi(this.hostElement,"yt-open-popup-action",[G,this]))};
_.V.onCancelTap=function(){_.Pi(this.hostElement,"yt-close-popup-action")};
JR.prototype.onPopupOpened=JR.prototype.onPopupOpened;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],JR.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],JR.prototype,"data",void 0);_.B([_.hs("#content"),_.x("design:type",Object)],JR.prototype,"content",void 0);_.B([_.Om("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],JR.prototype,"onPopupOpened",null);
_.B([_.c({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],JR);
_.A(JR,"ytd-ad-feedback-renderer",function(){if(Kml!==void 0)return Kml;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Kml=G},{mode:1});var f6o;var kmW=function(){return _.m.apply(this,arguments)||this};
_.K(kmW,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],kmW.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],kmW.prototype,"data",void 0);_.B([_.c({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],kmW);
_.A(kmW,"ytd-ad-info-dialog-content",function(){if(f6o!==void 0)return f6o;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return f6o=G},{mode:1});var Hya;var BW=function(){return _.m.apply(this,arguments)||this};
_.K(BW,_.m);BW.prototype.computeConfirmButton=function(G){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:G.confirmLabel}};
BW.prototype.onConfirmTap=function(){_.Pi(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
BW.prototype.computeShouldShowTitle=function(){var G;return!((G=this.data)==null||!G.title)};
BW.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.v_().resolve(_.$1).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
BW.prototype.onPopupClosed=BW.prototype.onPopupClosed;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],BW.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],BW.prototype,"data",void 0);_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],BW.prototype,"onPopupClosed",null);_.B([_.c({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],BW);
_.A(BW,"ytd-ad-info-dialog-renderer",function(){if(Hya!==void 0)return Hya;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Hya=G},{mode:1});var d3W;var xQ=function(){var G=_.m.apply(this,arguments)||this;G.actionButtonClass="action-button";G.dismissButtonId="dismiss-button";G.dialogDismiss=!0;return G};
_.K(xQ,_.m);_.V=xQ.prototype;_.V.computeInPlayer=function(G){return(G==null?void 0:G.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.V.computedLogo=function(){var G,e;return this.isDarkTheme()?(G=this.data)==null?void 0:G.logoDark:(e=this.data)==null?void 0:e.logo};
_.V.computedHeaderImage=function(){var G,e;return this.isDarkTheme()?(G=this.data)==null?void 0:G.headerImageDark:(e=this.data)==null?void 0:e.headerImage};
_.V.computeLogoIconId=function(){var G,e,r,Z=(G=this.computedLogo())==null?void 0:(e=G.sources)==null?void 0:(r=e[0])==null?void 0:r.height;return Z&&Z%31===0?"logo-icon-with-padding":"logo-icon"};
_.V.computeLogoIconHeight=function(){var G,e,r,Z=(G=this.computedLogo())==null?void 0:(e=G.sources)==null?void 0:(r=e[0])==null?void 0:r.height;return Z&&Z%31===0?"31":"24"};
_.V.onPopupClosed=function(){_.v_().resolve(_.o7).dispose()};
_.V.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.V.onShow=function(){this.inPlayer&&_.ZC(6);this.titleElement.focus()};
_.V.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var G=0;G<this.data.impressionEndpoints.length;G++){var e=_.a(this.data.impressionEndpoints[G],_.ag);e&&this.ytComponentBehavior.resolveCommand(e)}};
_.V.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.Pi(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.iY.Object.defineProperties(xQ.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var G,e;return!((G=this.data)==null||!G.headerImageDark)&&!((e=this.data)==null||!e.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.secondaryButton)}}});
xQ.prototype.onPopupClosed=xQ.prototype.onPopupClosed;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],xQ.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],xQ.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.xB.YtVisibilityBehavior),_.x("design:type",Object)],xQ.prototype,"ytVisibilityBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],xQ.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",Object)],xQ.prototype,"actionButtonClass",void 0);_.B([_.n(),_.x("design:type",Object)],xQ.prototype,"dismissButtonId",void 0);_.B([_.n(),_.x("design:type",Object)],xQ.prototype,"dialogDismiss",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],xQ.prototype,"hasHeaderImage",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],xQ.prototype,"hasPremiumButton",null);
_.B([_.n({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.x("design:type",Boolean)],xQ.prototype,"inPlayer",void 0);_.B([_.hs("#dismiss-button"),_.x("design:type",HTMLElement)],xQ.prototype,"dismissButton",void 0);_.B([_.hs("#title"),_.x("design:type",HTMLElement)],xQ.prototype,"titleElement",void 0);_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],xQ.prototype,"onPopupClosed",null);
_.B([_.c({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],xQ);
_.A(xQ,"ytd-enforcement-message-view-model",function(){if(d3W!==void 0)return d3W;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return d3W=G},{mode:1});var oxo;var s7W;var PW=function(){var G=_.m.apply(this,arguments)||this;G.TEST_ONLY={immediateValidation:function(){G.immediateValidation()},
onValidationResponse:function(e){G.onValidationResponse(e)},
onGenerateHandleFromNameResponse:function(e){G.onGenerateHandleFromNameResponse(e)}};
return G};
_.K(PW,_.m);_.V=PW.prototype;_.V.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.V.validate=function(){this.immediateValidation()};
_.V.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.V.setHandleInputValue=function(G){this.handleDir=this.getHandleDir(G);this.handleInput.value=G;this.validationState={status:"PENDING"};this.immediateValidation()};
_.V.getHandleDir=function(G){var e=G===""&&!1;return(e=_.zgw.test.call(_.zgw,G))?"rtl":"ltr"};
_.V.onDataChanged=function(){var G,e;this.handleDir=this.getHandleDir((e=(G=this.data)==null?void 0:G.handle)!=null?e:"");var r;this.validationState=((r=this.data)==null?0:r.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var Z;((Z=this.data)==null?0:Z.validateOnInit)&&this.immediateValidation()};
_.V.stopPropagation=function(G){G.stopPropagation()};
_.V.onInput=function(){var G;this.handleDir=this.getHandleDir((G=this.handleInput.value)!=null?G:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.V.onFocusout=function(G){this.handleInput.contains(G.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.V.delayedValidation=function(){var G,e;this.debouncedValidation((e=(G=this.data)==null?void 0:G.validationDelayMs)!=null?e:1E3)};
_.V.immediateValidation=function(){this.debouncedValidation(0)};
_.V.debouncedValidation=function(G){var e=this;_.sm(this,"debouncedValidation",function(){var r,Z=e.staticValidation((r=e.handleInput.value)!=null?r:"");if(Z!==void 0)e.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:Z};else{var O;if((O=e.data)!=null&&O.validateChannelHandleCommand){e.validationState={status:"LOADING"};var M;e.ytComponentBehavior.resolveCommand(e.data.validateChannelHandleCommand,{form:{handle:(M=e.handleInput.value)!=null?M:""},commandController:{onSuccess:function(T,
E){e.onValidationResponse(E)},
onServerError:function(T,E){e.onValidationServerError(E)}}})}else e.handleUnexpectedValidationError(new _.Cr("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",e.data))}},G)};
_.V.staticValidation=function(G){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(G)&&e.validValueRegexpErrorMessage!==void 0)return e.validValueRegexpErrorMessage;if(e.minLength!==void 0&&G.length<e.minLength&&e.minLengthErrorMessage!==void 0)return e.minLengthErrorMessage;if(e.maxLength!==void 0&&G.length>e.maxLength&&e.maxLengthErrorMessage!==void 0)return e.maxLengthErrorMessage}};
_.V.onValidationResponse=function(G){var e=_.a(G.result,nr8);e===void 0?this.handleUnexpectedValidationError(new _.Cr("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",G)):this.handleValidationResultRenderer(e)};
_.V.onValidationServerError=function(G){this.handleUnexpectedValidationError(new _.Cr("ValidateChannelHandle request failed.",G))};
_.V.handleValidationResultRenderer=function(G){if(G.handle===void 0)this.handleUnexpectedValidationError(new _.Cr("ChannelHandleValidationResultRenderer does not contain handle.",G));else if(G.handle===this.handleInput.value)switch(G.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:G.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:G.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.Cr("Unrecognized ChannelHandleValidationResult",G));break;default:_.zC(G.result)}};
_.V.handleUnexpectedValidationError=function(G){var e;this.validationState={status:"UNKNOWN",handle:(e=this.handleInput.value)!=null?e:""};_.FH(G)};
_.V.stopEventPropagation=function(G){G.stopPropagation()};
_.V.updateHandleOnChannelNameInputChange=function(G){if(!this.wasEdited){var e,r;this.debouncedGenerateHandleFromName(G,(r=(e=this.data)==null?void 0:e.validationDelayMs)!=null?r:1E3)}};
_.V.debouncedGenerateHandleFromName=function(G,e){var r=this;_.sm(this,"debouncedGenerateHandleFromName",function(){var Z;(Z=r.data)!=null&&Z.validateChannelHandleCommand?r.ytComponentBehavior.resolveCommand(r.data.validateChannelHandleCommand,{form:{name:G},commandController:{onSuccess:function(O,M){r.onGenerateHandleFromNameResponse(M)},
onServerError:function(O,M){_.FH(new _.Cr("Error calling GenerateHandleFromName",M))}}}):_.FH(new _.Cr("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",r.data))},e)};
_.V.onGenerateHandleFromNameResponse=function(G){this.wasEdited||((G=_.a(G.result,mRW))?this.setHandleInputValue(G.handle):_.FH(new _.Cr("Invalid results when generate handle from name")))};
_.iY.Object.defineProperties(PW.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var G;if(G=this.validationState)G=this.validationState,G=G.status==="OK"||G.status==="UNKNOWN";if(G)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var G;if(((G=this.validationState)==null?void 0:G.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 G,e=(G=this.channelHandleEntity)==null?void 0:G.handleEdit;this.handleDir=this.getHandleDir(e!=null?e:"");return e}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var G,e;if(((G=this.data)==null?void 0:(e=G.channelHandleStaticValidationParams)==null?void 0:e.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
PW.prototype.stopEventPropagation=PW.prototype.stopEventPropagation;PW.prototype.onDataChanged=PW.prototype.onDataChanged;PW.prototype.applyHandleEdit=PW.prototype.applyHandleEdit;PW.prototype.onValueChanged=PW.prototype.onValueChanged;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],PW.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],PW.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],PW.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",Boolean)],PW.prototype,"wasEdited",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],PW.prototype,"handleDir",void 0);_.B([_.hs("#handle-input"),_.x("design:type",Object)],PW.prototype,"handleInput",void 0);_.B([_.n(),_.d("validationState"),_.x("design:type",Object),_.x("design:paramtypes",[])],PW.prototype,"value",null);
_.B([_.Me("value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],PW.prototype,"onValueChanged",null);_.B([_.d("validationState"),_.x("design:type",Object),_.x("design:paramtypes",[])],PW.prototype,"errorIndicator",null);_.B([_.n({reflectToAttribute:!0}),_.d("errorIndicator"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],PW.prototype,"borderErrorIndicator",null);
_.B([_.n({selectorArgs:["data.channelHandleEntityKey"],selector:function(G,e){return _.e6(G.entities,"channelHandle",e)}}),
_.x("design:type",Object)],PW.prototype,"channelHandleEntity",void 0);_.B([_.d("channelHandleEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],PW.prototype,"handleEdit",null);_.B([_.Me("handleEdit"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],PW.prototype,"applyHandleEdit",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],PW.prototype,"onDataChanged",null);
_.B([_.d("data.channelHandleStaticValidationParams.validValueRegexp"),_.x("design:type",Object),_.x("design:paramtypes",[])],PW.prototype,"validValueRegexp",null);_.B([_.Om("yt-service-request-sent"),_.Om("yt-service-request-completed"),_.Om("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],PW.prototype,"stopEventPropagation",null);_.B([_.c({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],PW);
_.A(PW,"ytd-channel-handle-input-renderer",function(){if(s7W!==void 0)return s7W;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return s7W=G},{mode:_.Px("kevlar_poly_si_batch_j025")?1:2});var UF=function(){var G=_.m.apply(this,arguments)||this;G.data=null;G.errorMessage=null;G.isLoading=!0;G.hideContainer=!1;G.enableNewChannelCreationOnIdForAll=_.R("enable_new_channel_creation_for_id4all");G.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"};G.testOnly={setErrorMessage:function(e){G.resetErrorState();
G.setErrorState(e)}};
return G};
_.K(UF,_.m);_.V=UF.prototype;_.V.created=function(){this.logScreenVe()};
_.V.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")};
_.V.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var G;((G=this.zeroStepErrorMessageEntity)==null?0:G.value)&&this.set("errorMessage",_.nQ(this.zeroStepErrorMessageEntity.value))};
_.V.onCreateTap=function(){var G=this;if(this.data&&this.data.channelCreationEndpoint){var e,r;if(!((e=this.data.createChannelButton)==null?0:(r=e.buttonRenderer)==null?0:r.isDisabled)){var Z;if((Z=this.nameInput)!=null&&Z.value){this.setLoadingState();var O,M;e=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(O=this.handleInput)==null?void 0:O.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((M=this.handleInput)==null?void 0:M.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:e,commandController:{onSuccess:function(T,E){G.onChannelCreationEndpointSuccess(E);G.obakeImageSource&&_.cg("channelCreatedWithObakeImage",{imageSourceType:G.obakeImageSource})},
onServerError:function(){G.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.V.endpointRequiresServiceRequestAction=function(G){return!!_.a(G,_.gB)||!!_.a(G,uSd)};
_.V.isNavigateAction=function(G){var e;return!!_.a(G,_.H7)||!!_.a((e=_.a(G,yEC))==null?void 0:e.command,_.H7)};
_.V.isPlaylistAction=function(G){return!!_.a(G,_.BV)||!!_.a(G,_.L6)};
_.V.onChannelCreationEndpointSuccess=function(G){if(G.createChannelError){var e;this.setErrorState((e=G.createChannelError)==null?void 0:e.errorMessage);this.handleInput&&this.handleInput.validate()}else{G.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(G.navigationEndpoint);if(G.actions){e=_.h(G.actions);for(var r=e.next();!r.done;r=e.next())if(r=r.value,this.endpointRequiresServiceRequestAction(r)&&this.ytComponentBehavior.resolveCommand(r),this.isNavigateAction(r)){var Z=void 0;r=_.a((Z=
_.a(r,yEC))==null?void 0:Z.command,_.H7);Z=void 0;this.isPlaylistAction((Z=r)==null?void 0:Z.endpoint)&&(_.Pi(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),Z=void 0,this.ytComponentBehavior.resolveCommand((Z=r)==null?void 0:Z.endpoint))}}G.actions&&G.actions.some(function(O){var M;return _.a(O,_.H7)||_.a((M=_.a(O,yEC))==null?void 0:M.command,_.H7)})||_.Pi(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.V.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.V.onCancelTap=function(){var G,e,r;if(!((G=this.data)==null?0:(e=G.cancelButton)==null?0:(r=e.buttonRenderer)==null?0:r.isDisabled)){var Z,O,M;G=(Z=this.data)==null?void 0:(O=Z.cancelButton)==null?void 0:(M=O.buttonRenderer)==null?void 0:M.command;if(!G||!_.a(G,_.KUy)){var T;this.nameInput&&((T=this.data)==null?0:T.name)&&(this.nameInput.value=this.data.name);var E;this.handleInput&&((E=this.data)==null?0:E.channelHandleInput)&&(this.handleInput.data=_.a(this.data.channelHandleInput,cEW));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.V.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.V.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.V.onClearProfilePhotoTap=function(){var G,e,r;((G=this.data)==null?0:(e=G.clearProfilePhotoButton)==null?0:(r=e.buttonRenderer)==null?0:r.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.V.onEditAvatarTap=function(){var G,e,r;((G=this.data)==null?0:(e=G.editAvatarButton)==null?0:(r=e.buttonRenderer)==null?0:r.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.V.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)};
_.V.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var G;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((G=this.data)==null?0:G.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.V.setErrorState=function(G){this.resetErrorState();if(G)this.set("errorMessage",G);else{var e;if((e=this.zeroStepErrorMessageEntity)==null?0:e.value)this.set("errorMessage",_.nQ(this.zeroStepErrorMessageEntity.value));else{var r;((r=this.data)==null?0:r.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.V.fetchImageBlobWithAlr=function(G,e){e=e===void 0?5:e;var r=this,Z,O,M,T,E;return _.D(function(b){switch(b.nextAddress){case 1:return b.yield(fetch(G,{method:"GET",mode:"cors"}),2);case 2:Z=b.yieldResult;if(Z.ok){b.jumpTo(3);break}if(e===0)throw Error();O=r.addJitter(Math.pow(2,5-e));return b.yield(new Promise(function(w){setTimeout(w,O*1E3)}),4);
case 4:return b.return(r.fetchImageBlobWithAlr(G,e-1));case 3:if(!Z.headers.get("content-type").split(";").some(function(w){return w.trim()==="text/plain"})){b.jumpTo(5);
break}M=r;T=M.fetchImageBlobWithAlr;return b.yield(Z.text(),6);case 6:return b.return(T.call(M,b.yieldResult,e-1));case 5:return b.yield(Z.blob(),7);case 7:return E=b.yieldResult,b.return(E)}})};
_.V.addJitter=function(G){var e=G*.3*Math.random();Math.random()>.5&&(e*=-1);return G+e};
_.V.openProfilePicturePicker=function(){var G=this,e,r,Z,O,M,T;return _.D(function(E){if(E.nextAddress==1){e=G.data.scottyUploadUrl;if(!e)return E.return();r=document.documentElement.hasAttribute("dark");Z=document.body.style.colorScheme;r&&(document.body.style.colorScheme="dark");O=sCo(QCB(oed(aZH(r?"dark":"light")),function(b){var w,q,t,g,l;return _.D(function(X){if(X.nextAddress==1)return w=_.yS(zeH(new jx(b.photoUrl,!1)).build(),"alr","yes"),G.obakeImageSource=G.pictureChangeSourceToObakeImageSourceType(b.photoSource),
_.jr(X,2),G.setLoadingState(),X.yield(G.fetchImageBlobWithAlr(w),4);if(X.nextAddress!=2)return q=X.yieldResult,t=new FileReader,t.addEventListener("load",function(){var H,I,C,u,P,F;return _.D(function(J){if(J.nextAddress==1){if(q.size>15728640)return G.setErrorState((H=G.data)==null?void 0:H.imageSizeErrorMessage),_.FH(Error("Gl")),J.return();if(!t.result)return G.setErrorState((I=G.data)==null?void 0:I.genericImageLoadErrorMessage),_.FH(Error("Hl")),J.return();C=t.result;_.jr(J,2);return J.yield(zp2(q,
e),4)}if(J.nextAddress!=2)return u=J.yieldResult,G.handleImageUpdatedAction(C,u),G.resetErrorState(),_.rL(J,0);P=_.k5(J);G.setErrorState((F=G.data)==null?void 0:F.uploadErrorMessage);if(P instanceof Error)_.yx(P);else{var U=new _.Cr(JSON.stringify(P));_.yx(U)}_.HL(J)})}),t.readAsDataURL(q),_.rL(X,0);
g=_.k5(X);G.setErrorState((l=G.data)==null?void 0:l.genericImageLoadErrorMessage);g instanceof Error?_.yx(g):_.AG(new _.Cr(JSON.stringify(g)));_.HL(X)})}),function(){G.hideContainer=!1;
document.body.style.colorScheme=Z});
_.jr(E,2);return((M=G.data)==null?0:M.shouldViewChannelCreationFormForSupex)?E.yield(O.openPicker("profile-picture/art-selection"),5):E.yield(O.openPicker(),5)}if(E.nextAddress!=2)return _.rL(E,0);_.k5(E);G.setErrorState((T=G.data)==null?void 0:T.selectImageErrorMessage);_.HL(E)})};
_.V.pictureChangeSourceToObakeImageSourceType=function(G){switch(G){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.V.logScreenVe=function(){_.aC(_.h_(),124448)};
_.V.graftServerVe=function(){var G=_.go(),e,r,Z=(e=this.data)==null?void 0:(r=e.loggingDirectives)==null?void 0:r.trackingParams;Z&&G&&(this.channelCreationFormVe=_.h_().graftServerVe(Z,G),G={visualElement:this.channelCreationFormVe},_.ZM().reportShown(G))};
_.V.isNameChanged=function(G){var e;return((e=this.data)==null?void 0:e.name)!==G};
_.V.isHandleChanged=function(G){var e,r=_.a((e=this.data)==null?void 0:e.channelHandleInput,cEW);return r&&G?r.handle!==G:!1};
_.V.handleImageUpdatedAction=function(G,e){this.hideContainer=!1;this.previewDataUrl=G;this.encryptedBlobId=e};
_.V.handleImageSelectionErrorAction=function(G){this.hideContainer=!1;this.setErrorState(G)};
_.V.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.V.showContainer=function(){this.hideContainer=!1};
_.V.maybeWipeZeroStepErrorMessage=function(){var G,e=(G=this.data)==null?void 0:G.zeroStepErrorMessageEntityKey,r;e&&((r=this.zeroStepErrorMessageEntity)==null?0:r.value)&&this.ytdReduxBehavior.dispatch(_.bt("stringEntity",e,{key:e,value:""}))};
_.iY.Object.defineProperties(UF.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 G;return((G=this.photoThumbnail)==null?0:G.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 G;return!((G=this.data)==null||!G.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.descriptionInfo}}});
UF.prototype.dataChanged=UF.prototype.dataChanged;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],UF.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],UF.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],UF.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],UF.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],UF.prototype,"errorMessage",void 0);
_.B([_.n(),_.x("design:type",Object)],UF.prototype,"isLoading",void 0);_.B([_.n(),_.x("design:type",String)],UF.prototype,"previewDataUrl",void 0);_.B([_.n(),_.x("design:type",Number)],UF.prototype,"obakeImageSource",void 0);_.B([_.n(),_.x("design:type",Object)],UF.prototype,"hideContainer",void 0);_.B([_.hs("#title-input"),_.x("design:type",Object)],UF.prototype,"nameInput",void 0);_.B([_.hs("#handle-input"),_.x("design:type",Object)],UF.prototype,"handleInput",void 0);
_.B([_.n(),_.x("design:type",Boolean)],UF.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.B([_.n({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.TCs}),_.x("design:type",Object)],UF.prototype,"zeroStepErrorMessageEntity",void 0);_.B([_.d("data","data.isDefaultProfilePhoto","previewDataUrl"),_.x("design:type",Object),_.x("design:paramtypes",[])],UF.prototype,"photoThumbnail",null);
_.B([_.d("data","data.isDefaultProfilePhoto","photoThumbnail"),_.x("design:type",Object),_.x("design:paramtypes",[])],UF.prototype,"userSetPhotoThumbnailUrl",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],UF.prototype,"hideProfilePhotoButtonLayer",null);_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],UF.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.B([_.iD("data","zeroStepErrorMessageEntity"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UF.prototype,"dataChanged",null);_.B([_.n({reflectToAttribute:!0}),_.d("data.descriptionInfo","zeroStepErrorMessageEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],UF.prototype,"description",null);_.B([_.c({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],UF);
_.A(UF,"ytd-channel-creation-dialog-renderer",function(){if(oxo!==void 0)return oxo;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return oxo=G},{mode:1});var Q7C;var zI=function(){var G=_.m.apply(this,arguments)||this;G.isLoading=!1;G.isDisabled=!1;return G};
_.K(zI,_.m);zI.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
zI.prototype.updateDisabled=function(){var G;this.isDisabled=this.isLoading||((G=this.handleInput)==null?void 0:G.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
zI.prototype.onSaveClick=function(){var G=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 r;if((r=G.data)==null?0:r.nextEndpoint){var Z;G.ytComponentBehavior.resolveCommand((Z=G.data)==null?void 0:Z.nextEndpoint)}else G.isLoading=
!1,G.closeDialog()},
onServerError:function(){G.isLoading=!1;G.handleInput.validate();var r;G.errorMessage=(r=G.data)==null?void 0:r.errorMessage}}}))}};
zI.prototype.closeDialog=function(){_.Pi(this.hostElement,"yt-close-popup-action",[this.is])};
zI.prototype.updateDisabled=zI.prototype.updateDisabled;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],zI.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],zI.prototype,"data",void 0);_.B([_.hs("#handle-input"),_.x("design:type",Object)],zI.prototype,"handleInput",void 0);_.B([_.Me("isLoading"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zI.prototype,"updateDisabled",null);
_.B([_.c({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],zI);
_.A(zI,"ytd-channel-handle-edit-dialog-renderer",function(){if(Q7C!==void 0)return Q7C;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Q7C=G},{mode:1});var I6Y;var WW=function(){return _.m.apply(this,arguments)||this};
_.K(WW,_.m);WW.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],WW.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],WW.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],WW.prototype,"data",void 0);_.B([_.c({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],WW);
_.A(WW,"ytd-channel-switcher-footer-renderer",function(){if(I6Y!==void 0)return I6Y;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return I6Y=G},{mode:1});var p0A;var C2l;var NA=function(){return _.m.apply(this,arguments)||this};
_.K(NA,_.m);NA.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
NA.prototype.onIronChange=NA.prototype.onIronChange;_.B([_.n(),_.x("design:type",Object)],NA.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!1}),_.x("design:type",Function)],NA.prototype,"onDontAskAgainChanged",void 0);_.B([_.hs("#checkbox"),_.x("design:type",Object)],NA.prototype,"checkbox",void 0);_.B([_.Om("iron-change"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],NA.prototype,"onIronChange",null);
_.B([_.c({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],NA);
_.A(NA,"ytd-identity-prompt-footer-renderer",function(){if(C2l!==void 0)return C2l;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return C2l=G},{mode:1});var Lg=function(){var G=_.m.apply(this,arguments)||this;G.dontAskAgain=!1;G.showPopup=!1;G.boundDontAskAgainChanged=function(e){G.dontAskAgainChanged(e)};
G.boundOnAccountItemTap=function(e){G.onAccountItemTap(e)};
return G};
_.K(Lg,_.m);_.V=Lg.prototype;
_.V.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]]"}}}}}};
_.V.ready=function(){var G=this;_.z1(this.hostElement).querySelector("#container").addEventListener("scroll",function(){G.ytRendererBehavior.markDirty()})};
_.V.dontAskAgainChanged=function(G){this.dontAskAgain=G};
_.V.onAccountItemTap=function(G){if(G){var e={};this.dontAskAgain&&(e={dont_ask_again:this.dontAskAgain});_.kN(G,e)}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.V.redirectOnlyAccount=function(G){G.sections&&G.sections.length>0&&(G=_.a(G.sections[0],_.SBw),(G==null?0:G.contents)&&(G==null?void 0:G.contents.length)<=1?(G=_.O5(window.location.href),(G==null?0:G.next)&&_.Bof(G.next)?_.kN(G.next):_.kN("/")):this.showPopup=!0)};
Lg.prototype.dataChanged=Lg.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Lg.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Lg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Lg.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!1}),_.x("design:type",Object)],Lg.prototype,"dontAskAgain",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Lg.prototype,"showPopup",void 0);_.B([_.n({reflectToAttribute:!1}),_.x("design:type",Object)],Lg.prototype,"boundDontAskAgainChanged",void 0);_.B([_.n({reflectToAttribute:!1}),_.x("design:type",Object)],Lg.prototype,"boundOnAccountItemTap",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Lg.prototype,"dataChanged",null);
_.B([_.c({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],Lg);
_.A(Lg,"ytd-channel-switcher-renderer",function(){if(p0A!==void 0)return p0A;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return p0A=G},{mode:1});var uOC;var GK=function(){return _.m.apply(this,arguments)||this};
_.K(GK,_.m);_.iY.Object.defineProperties(GK.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.B([_.n(),_.x("design:type",Object)],GK.prototype,"data",void 0);_.B([_.d("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],GK.prototype,"steps",null);_.B([_.c({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],GK);
_.A(GK,"ytd-channel-transfer-stepper-renderer",function(){if(uOC!==void 0)return uOC;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return uOC=G},{mode:1});var nxB;var e5=function(){var G=_.m.apply(this,arguments)||this;G.data=null;G.isError=!1;G.isLoading=!1;return G};
_.K(e5,_.m);_.V=e5.prototype;_.V.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"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.V.computeProfileName=function(G){return G?G.givenNameValue+" "+G.familyNameValue:""};
_.V.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)};
_.V.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)};
e5.prototype.onYtServiceRequestError=e5.prototype.onYtServiceRequestError;e5.prototype.onYtServiceRequestSent=e5.prototype.onYtServiceRequestSent;e5.prototype.dataChanged=e5.prototype.dataChanged;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],e5.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],e5.prototype,"data",void 0);
_.B([_.n({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.x("design:type",String)],e5.prototype,"profileName",void 0);_.B([_.n(),_.x("design:type",Object)],e5.prototype,"isError",void 0);_.B([_.n(),_.x("design:type",Object)],e5.prototype,"isLoading",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],e5.prototype,"dataChanged",null);
_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.oV]),_.x("design:returntype")],e5.prototype,"onYtServiceRequestSent",null);_.B([_.Om("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.oV]),_.x("design:returntype")],e5.prototype,"onYtServiceRequestError",null);_.B([_.c({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],e5);
_.A(e5,"ytd-channel-warm-welcome-cont-renderer",function(){if(nxB!==void 0)return nxB;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return nxB=G},{mode:1});var m3V;var rb=function(){var G=_.m.apply(this,arguments)||this;G.data=null;return G};
_.K(rb,_.m);rb.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
rb.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],rb.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],rb.prototype,"data",void 0);_.B([_.c({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],rb);
_.A(rb,"ytd-channel-warm-welcome-renderer",function(){if(m3V!==void 0)return m3V;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return m3V=G},{mode:1});var ccY;var Z3=function(){return _.m.apply(this,arguments)||this};
_.K(Z3,_.m);_.iY.Object.defineProperties(Z3.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.authorThumbnail)||{}}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Z3.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Z3.prototype,"data",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Z3.prototype,"thumbnailDetails",null);_.B([_.c({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],Z3);
_.A(Z3,"ytd-comment-preview-renderer",function(){if(ccY!==void 0)return ccY;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return ccY=G},{mode:1});var YTa;var Ox=function(){return _.m.apply(this,arguments)||this};
_.K(Ox,_.m);Ox.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.iY.Object.defineProperties(Ox.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.submitButton}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Ox.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Ox.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Ox.prototype,"data",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ox.prototype,"submitButton",null);_.B([_.c({is:"ytd-notice-renderer",disableElementRegistration:!0})],Ox);
_.A(Ox,"ytd-notice-renderer",function(){if(YTa!==void 0)return YTa;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return YTa=G},{mode:1});var ycC;var MH=function(){return _.m.apply(this,arguments)||this};
_.K(MH,_.m);MH.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],MH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],MH.prototype,"data",void 0);_.B([_.c({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],MH);
_.A(MH,"ytd-preview-comment-dialog-content",function(){if(ycC!==void 0)return ycC;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return ycC=G},{mode:1});var AcY;var VF=function(){return _.m.apply(this,arguments)||this};
_.K(VF,_.m);VF.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
VF.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],VF.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],VF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],VF.prototype,"data",void 0);_.B([_.c({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],VF);
_.A(VF,"ytd-preview-comment-dialog-renderer",function(){if(AcY!==void 0)return AcY;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return AcY=G},{mode:1});var Fm8;var JcA=_.R("web_button_rework")&&_.PX("BUTTON_REWORK")||_.R("web_button_rework_with_live"),ha=function(){var G=_.m.apply(this,arguments)||this;G.closeLabel=_.OK("CLOSE");G.selectedAmountIndex=1;G.privacyCheckboxValue=!1;G.useAmsterdamStyle=JcA;G.amountPlaceholderIndex=-1;return G};
_.K(ha,_.m);_.V=ha.prototype;_.V.onAmountClick=function(G){this.selectedAmountIndex=_.z1(this.hostElement).querySelector("#amounts").indexForElement(G.currentTarget)};
_.V.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.Pi(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.V.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.Pi(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.Pi(this.hostElement,"yt-close-popup-action",[this.is]);var G;(G=_.Ff())==null||G.getPlayerPromise().then(function(e){e.pauseVideo()})}};
_.V.donationCallback=function(G){G.success?(this.hostElement.hasAttribute("live-chat")&&G.response&&G.response.data&&G.response.data.actions&&_.Pi(this.hostElement,"yt-live-chat-open-popup",[G.response.data.actions[0]]),_.Pi(this.hostElement,"yt-close-popup-action",[this.is]),_.Pi(this.hostElement,"yt-live-chat-close-buy-flow")):G.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(G.errorMessageRenderer)};
_.V.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.z1(this.hostElement).querySelector("#custom-amount-input").focus()};
_.V.updateConfirmationDialogTextWithAmount=function(G){var e=this.getConfirmDialogRuns();e&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(e),"text"],this.getFormattedAmount(G))};
_.V.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.V.getAmountPlaceholderIndex=function(G){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=G.findIndex(function(e){return e.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.V.getFormattedAmount=function(G){var e;return(new _.Q4(4,((e=this.data)==null?void 0:e.currencyCode)||"")).format(G)};
_.V.isAmountValid=function(G){if(G==="")return!1;G=Number(G)*1E6;var e=this.get("minAmountMicros",this.data),r=this.get("maxAmountMicros",this.data);return e&&G<e||r&&G>r?!1:!0};
_.V.setInputError=function(){this.shouldShowValidationError?_.z1(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.z1(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.V.setInitialCheckboxValue=function(){var G;this.privacyCheckboxValue=!((G=this.data)==null||!G.privacyCheckboxInitialState)};
_.V.updateCustomAmountInputFromBinding=function(G){this.customAmountInput=G.detail.value};
_.V.updatePrivacyCheckboxValueFromBinding=function(G){this.privacyCheckboxValue=G.detail.value};
_.iY.Object.defineProperties(ha.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var G=this,e,r;return((e=this.data)==null?void 0:(r=e.suggestedAmounts)==null?void 0:r.map(function(Z,O){return{buttonRenderer:{style:G.selectedAmountIndex===O?"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 G;return!((G=this.data)==null||!G.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 G=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(G&&this.amountMicros!==null)return Object.assign({},G,{ypcGetCartEndpoint:Object.assign({},G.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 G=this.get("confirmLargeAmount",this.data);if(G&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),G}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var G=this.get("donateButton.buttonRenderer",this.data);if(G)return Object.assign({},G,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
ha.prototype.setInitialCheckboxValue=ha.prototype.setInitialCheckboxValue;ha.prototype.setInputError=ha.prototype.setInputError;ha.prototype.setFocusOnCustomAmountInput=ha.prototype.setFocusOnCustomAmountInput;_.B([_.k(UYo),_.x("design:type",Object)],ha.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ha.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],ha.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ha.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],ha.prototype,"closeLabel",void 0);_.B([_.n(),_.x("design:type",Object)],ha.prototype,"selectedAmountIndex",void 0);_.B([_.n(),_.x("design:type",String)],ha.prototype,"customAmountInput",void 0);_.B([_.n(),_.x("design:type",Object)],ha.prototype,"privacyCheckboxValue",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],ha.prototype,"useAmsterdamStyle",void 0);_.B([_.Me("customAmount"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ha.prototype,"setFocusOnCustomAmountInput",null);_.B([_.d("data","selectedAmountIndex"),_.x("design:type",Array),_.x("design:paramtypes",[])],ha.prototype,"suggestedAmountButtons",null);
_.B([_.d("data","selectedAmountIndex"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ha.prototype,"isCustomAmountSelected",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ha.prototype,"showPrivacyCheckbox",null);_.B([_.d("data","selectedAmountIndex","customAmount"),_.x("design:type",Object),_.x("design:paramtypes",[])],ha.prototype,"amountMicros",null);
_.B([_.d("isCustomAmountSelected","customAmountInput"),_.x("design:type",Object),_.x("design:paramtypes",[])],ha.prototype,"customAmount",null);_.B([_.d("customAmount"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ha.prototype,"shouldShowValidationError",null);_.B([_.d("customAmount"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ha.prototype,"isDonateButtonEnabled",null);
_.B([_.d("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.x("design:type",Object),_.x("design:paramtypes",[])],ha.prototype,"donateCommand",null);_.B([_.d("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.x("design:type",Object),_.x("design:paramtypes",[])],ha.prototype,"donateCommandWithConfirmation",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ha.prototype,"largeDonationThreshold",null);
_.B([_.d("customAmount","donateCommand","amountMicros"),_.x("design:type",Object),_.x("design:paramtypes",[])],ha.prototype,"confirmLargeAmountCommand",null);_.B([_.d("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.x("design:type",Object),_.x("design:paramtypes",[])],ha.prototype,"donateButtonRenderer",null);_.B([_.Me("shouldShowValidationError"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ha.prototype,"setInputError",null);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ha.prototype,"setInitialCheckboxValue",null);_.B([_.c({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],ha);
_.A(ha,"ytd-donation-amount-picker-renderer",function(){if(Fm8!==void 0)return Fm8;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Fm8=G},{mode:1});var BmW;var x3A=function(){return _.m.apply(this,arguments)||this};
_.K(x3A,_.m);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],x3A.prototype,"ytComponentBehavior",void 0);_.B([_.n({}),_.x("design:type",Object)],x3A.prototype,"data",void 0);_.B([_.c({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],x3A);
_.A(x3A,"ytd-donation-post-transaction-content",function(){if(BmW!==void 0)return BmW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return BmW=G},{mode:1});var P2d;var TK=function(){return _.m.apply(this,arguments)||this};
_.K(TK,_.m);TK.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],TK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);_.B([_.n({}),_.x("design:type",Object)],TK.prototype,"data",void 0);_.B([_.c({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],TK);
_.A(TK,"ytd-donation-post-transaction-renderer",function(){if(P2d!==void 0)return P2d;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return P2d=G},{mode:1});var U3d;var zyl;var D3=function(){return _.m.apply(this,arguments)||this};
_.K(D3,_.m);D3.prototype.computeIsStreamingProvider=function(G){return!!G.isStreamingShelf};
D3.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],D3.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],D3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],D3.prototype,"data",void 0);_.B([_.n({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],D3.prototype,"isStreamingProvider",void 0);
_.B([_.c({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],D3);
_.A(D3,"ytd-media-provider-renderer",function(){if(zyl!==void 0)return zyl;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return zyl=G},{mode:1});var Wm8;var Ex=function(){return _.m.apply(this,arguments)||this};
_.K(Ex,_.m);Ex.prototype.observeLightsourcePalette=function(){var G,e=(G=this.data)==null?void 0:G.vibrantsourceColorPaletteData;e&&_.Sv(this.hostElement,e)};
Ex.prototype.observeLightsourcePalette=Ex.prototype.observeLightsourcePalette;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Ex.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Ex.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Ex.prototype,"data",void 0);
_.B([_.Me("data.vibrantsourceColorPaletteData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ex.prototype,"observeLightsourcePalette",null);_.B([_.c({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],Ex);
_.A(Ex,"ytd-streaming-pop-up-dialog",function(){if(Wm8!==void 0)return Wm8;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Wm8=G},{mode:1});var i5=function(){return _.m.apply(this,arguments)||this};
_.K(i5,_.m);i5.prototype.onPopupOpened_=function(){var G;((G=this.data)==null?0:G.serviceEndpoint)&&_.v_().resolve(_.$1).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
i5.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
i5.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"}}}}};
i5.prototype.onPopupOpened_=i5.prototype.onPopupOpened_;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],i5.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],i5.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.eP),_.x("design:type",Object)],i5.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],i5.prototype,"data",void 0);
_.B([_.Om("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],i5.prototype,"onPopupOpened_",null);_.B([_.c({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],i5);
_.A(i5,"ytd-brandconnect-popup-renderer",function(){if(U3d!==void 0)return U3d;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return U3d=G},{mode:1});var Nmd;var b5=function(){return _.m.apply(this,arguments)||this};
_.K(b5,_.m);_.V=b5.prototype;_.V.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){for(var G=0;G<this.getOptionRenderers().length;G++)this.notifyPath("data.options."+G+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+G+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.V.updateSubmitButton=function(G){this.set("data.submitButton.buttonRenderer.isDisabled",!G)};
_.V.computeAlt=function(G){return _.mG(G)};
_.V.onDismissTap=function(){_.Pi(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.v_().resolve(_.$1).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.V.getOptionRenderers=function(G){return(G=G||this.data)&&G.options?G.options.reduce(function(e,r){r.checkboxSurveyOptionRenderer&&e.push(r.checkboxSurveyOptionRenderer);return e},[]):[]};
_.V.onOptionChange=function(G){var e=this,r=!1;if(G.detail.checked)for(var Z=this.getOptionRenderers().find(function(E){return E.value===G.detail.value}),O=this.getOptionRenderers(),M=0;M<O.length;M++){var T=O[M];
this.notifyPath("data.options."+M+".checkboxSurveyOptionRenderer.checked");T.checked&&((Z==null?0:Z.isExclusiveOption)?!T.isExclusiveOption:T.isExclusiveOption)?this.set("data.options."+M+".checkboxSurveyOptionRenderer.checked",!1):T.checked&&(r=!0)}else r=this.getOptionRenderers().some(function(E,b){e.notifyPath("data.options."+b+".checkboxSurveyOptionRenderer.checked");return E.checked});
this.updateSubmitButton(r)};
_.V.onSubmitTap=function(){var G=this.getOptionRenderers().filter(function(M){return M.checked});
if(G.length!==0){var e=G.map(function(M){return M.responseEndpoint});
G=[];for(var r=1;r<e.length;r++){var Z=void 0,O=(Z=_.a(e[r],_.lM))==null?void 0:Z.feedbackToken;O&&G.push(O)}e=[e[0]];G.length&&e.push({extra_feedback_tokens:G});_.zw(this.hostElement,e);_.Pi(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);G=this.data&&this.data.submitActions||[];if(_.R("kevlar_command_handler_migration_killswitch"))_.Wi(this.hostElement,G,this.hostElement);else for(G=_.h(G),e=G.next();!e.done;e=G.next())this.ytComponentBehavior.resolveCommand(e.value)}};
b5.prototype.onOptionChange=b5.prototype.onOptionChange;b5.prototype.dataChanged=b5.prototype.dataChanged;_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],b5.prototype,"ytEventForwardingBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],b5.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],b5.prototype,"ytComponentBehavior",void 0);
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],b5.prototype,"ytRendererBehavior",void 0);_.B([_.k(vqd),_.x("design:type",Object)],b5.prototype,"ytdHatsSurveyBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],b5.prototype,"data",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],b5.prototype,"dataChanged",null);
_.B([_.Om("ytd-checkbox-survey-option-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],b5.prototype,"onOptionChange",null);_.B([_.c({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],b5);
_.A(b5,"ytd-checkbox-survey-renderer",function(){if(Nmd!==void 0)return Nmd;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Nmd=G},{mode:1});var Lmm;var Ggm;var v3=function(){return _.m.apply(this,arguments)||this};
_.K(v3,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],v3.prototype,"ytRendererBehavior",void 0);_.B([_.k(bIa),_.x("design:type",Object)],v3.prototype,"ytdDismissalReasonBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],v3.prototype,"data",void 0);_.B([_.c({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],v3);
_.A(v3,"ytd-dismissal-reason-text-renderer",function(){if(Ggm!==void 0)return Ggm;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Ggm=G},{mode:1});var ef2;var wb=function(){return _.m.apply(this,arguments)||this};
_.K(wb,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],wb.prototype,"ytRendererBehavior",void 0);_.B([_.k(bIa),_.x("design:type",Object)],wb.prototype,"ytdDismissalReasonBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],wb.prototype,"data",void 0);_.B([_.c({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],wb);
_.A(wb,"ytd-dismissal-reason-video-renderer",function(){if(ef2!==void 0)return ef2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return ef2=G},{mode:1});var $k=function(){return _.m.apply(this,arguments)||this};
_.K($k,_.m);_.V=$k.prototype;_.V.created=function(){this.selectedFeedbackTokens=new RO};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.V.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.V.onDismissalReasonSelected=function(G,e){_.xy(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(e);this.hasReasonsSelected=!0};
_.V.onDismissalReasonDeselected=function(G,e){_.xy(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(e);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.V.onCancelTap=function(){_.Pi(this.hostElement,"yt-close-popup-action")};
_.V.onSubmitTap=function(){var G=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(G={feedback_tokens:G},_.v_().resolve(_.$1).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},G,{element:this.hostElement})}));_.Pi(this.hostElement,"yt-close-popup-action")};
$k.prototype.onDismissalReasonDeselected=$k.prototype.onDismissalReasonDeselected;$k.prototype.onDismissalReasonSelected=$k.prototype.onDismissalReasonSelected;$k.prototype.dataChanged=$k.prototype.dataChanged;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],$k.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],$k.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],$k.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",Boolean)],$k.prototype,"hasReasonsSelected",void 0);_.B([_.n(),_.x("design:type",RO)],$k.prototype,"selectedFeedbackTokens",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$k.prototype,"dataChanged",null);_.B([_.Om("yt-dismissal-reason-selected"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,String]),_.x("design:returntype")],$k.prototype,"onDismissalReasonSelected",null);
_.B([_.Om("yt-dismissal-reason-deselected"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,String]),_.x("design:returntype")],$k.prototype,"onDismissalReasonDeselected",null);_.B([_.c({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],$k);
_.A($k,"ytd-dismissal-follow-up-renderer",function(){if(Lmm!==void 0)return Lmm;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Lmm=G},{mode:1});var r1W;var S5=function(){return _.m.apply(this,arguments)||this};
_.K(S5,_.m);_.V=S5.prototype;_.V.onCheckedChange=function(){this.multiselect||_.xy(this.hostElement,"yt-feedback-single-select-changed");_.z1(this.hostElement).querySelector("#freeform").focus();_.xy(this.hostElement,"yt-refit")};
_.V.showTextBox=function(G,e){return G&&e};
_.V.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))};
_.V.updateDataCheckedFromBinding=function(G){this.set("data.checked",G.detail.value)};
_.V.updateDataResultTextFromBinding=function(G){this.set("data.resultText",G.detail.value)};
S5.prototype.dataChanged=S5.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],S5.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],S5.prototype,"data",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],S5.prototype,"multiselect",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],S5.prototype,"dataChanged",null);
_.B([_.c({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],S5);
_.A(S5,"ytd-feedback-option-renderer",function(){if(r1W!==void 0)return r1W;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return r1W=G},{mode:1});var ZTa;var qH=function(){return _.m.apply(this,arguments)||this};
_.K(qH,_.m);qH.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
qH.prototype.onSingleSelectCheckedChanged=function(G){G=_.mk(G);for(var e=0;e<this.data.options.length;e++)if(G.data!==_.a(this.data.options[e],K7B)){var r="data.options."+e+".feedbackOptionRenderer.checked";this.notifyPath(r);this.set(r,!1)}};
qH.prototype.onSingleSelectCheckedChanged=qH.prototype.onSingleSelectCheckedChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],qH.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],qH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],qH.prototype,"data",void 0);
_.B([_.Om("yt-feedback-single-select-changed"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],qH.prototype,"onSingleSelectCheckedChanged",null);_.B([_.c({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],qH);
_.A(qH,"ytd-feedback-question-renderer",function(){if(ZTa!==void 0)return ZTa;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return ZTa=G},{mode:1});var OTA;var ta=function(){return _.m.apply(this,arguments)||this};
_.K(ta,_.m);ta.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
ta.prototype.getSelectedFeedbackResults=function(){for(var G={},e=0;e<this.data.questions.length;e++)for(var r=_.a(this.data.questions[e],XFd),Z=0;Z<r.options.length;Z++){var O=_.a(r.options[Z],K7B);O&&O.checked&&(G[O.optionKey]=O.resultText)}return G};
ta.prototype.onKeyUp=function(){var G=this;_.za(_.A0,function(){_.xy(G.hostElement,"yt-refit")});
_.A0.start()};
ta.prototype.submitSurvey=function(){var G=this.getSelectedFeedbackResults();Object.keys(G).length>0&&this.data.submitFeedbackEndpoint&&(G={survey_results:G,is_feedback_token_unencrypted:!0},_.v_().resolve(_.$1).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},G,{element:this.hostElement})}))};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ta.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],ta.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ta.prototype,"data",void 0);_.B([_.c({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],ta);
_.A(ta,"ytd-feedback-survey-renderer",function(){if(OTA!==void 0)return OTA;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return OTA=G},{mode:1});var Mea;var VeV;var gb=function(){return _.m.apply(this,arguments)||this};
_.K(gb,_.m);gb.prototype.computeAlt=function(G){return _.mG(G)};
gb.prototype.submitResponse=function(){var G,e;(G=this.data)!=null&&G.feedbackToken&&((e=this.data)==null?void 0:e.nextStageIndex)!==void 0&&(_.UW(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.UW(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
gb.prototype.onClick=function(){this.submitResponse()};
gb.prototype.onClick=gb.prototype.onClick;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],gb.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],gb.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],gb.prototype,"vertical",void 0);_.B([_.Om("click"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gb.prototype,"onClick",null);
_.B([_.c({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],gb);
_.A(gb,"ytd-single-select-answer-option-renderer",function(){if(VeV!==void 0)return VeV;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return VeV=G},{mode:1});var hf8;var l5=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return G};
_.K(l5,_.m);l5.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
l5.prototype.dataChanged=function(){var G,e;this.vertical=((e=(G=this.data)==null?void 0:G.answerOrientation)!=null?e:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
l5.prototype.submitFeedback=function(G){var e;((e=this.data)==null?0:e.responseEndpoint)&&G&&_.zw(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[G]}])};
l5.prototype.dataChanged=l5.prototype.dataChanged;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],l5.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],l5.prototype,"eventForwardingBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],l5.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],l5.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],l5.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],l5.prototype,"vertical",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],l5.prototype,"dataChanged",null);_.B([_.c({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],l5);
_.A(l5,"ytd-single-select-question-renderer",function(){if(hf8!==void 0)return hf8;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return hf8=G},{mode:1});var RM=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return G};
_.K(RM,_.m);_.V=RM.prototype;_.V.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"}}}};
_.V.dataChanged=function(){this.jumpToStage(0)};
_.V.jumpToStage=function(G){var e,r;if((e=this.data)==null?0:(r=e.stages)==null?0:r[G])this.currentStage=this.data.stages[G],this.refitAfterRender()};
_.V.computeAlt=function(G){return _.mG(G)};
_.V.computeSimpleMessage=function(G){var e;return(e=_.a(G,HwA))==null?void 0:e.messageText};
_.V.computeHideDismiss=function(G){var e;return(e=_.a(G,eql))==null?void 0:e.hideParentDismissButton};
_.V.onDismissTap=function(){_.Pi(this.hostElement,"yt-close-popup-action");_.a(this.currentStage,HwA)||this.data.dismissalEndpoint&&_.v_().resolve(_.$1).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.V.refitAfterRender=function(){var G=this;_.DE(this,function(){_.xy(G.hostElement,"yt-refit")})};
RM.prototype.dataChanged=RM.prototype.dataChanged;_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],RM.prototype,"eventForwardingBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],RM.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],RM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],RM.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.k(vqd),_.x("design:type",Object)],RM.prototype,"ytdHatsSurveyBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],RM.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],RM.prototype,"currentStage",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],RM.prototype,"dataChanged",null);_.B([_.c({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],RM);
_.A(RM,"ytd-multi-stage-survey-renderer",function(){if(Mea!==void 0)return Mea;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return Mea=G},{mode:1});var TrV;var j5=function(){return _.m.apply(this,arguments)||this};
_.K(j5,_.m);j5.prototype.computeAlt=function(G){return _.mG(G)};
j5.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.v_().resolve(_.$1).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.Pi(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.ZRH(!1)))};
j5.prototype.onTap=function(){this.vertical&&this.submitResponse()};
j5.prototype.onTap=j5.prototype.onTap;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],j5.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],j5.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],j5.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],j5.prototype,"vertical",void 0);
_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],j5.prototype,"onTap",null);_.B([_.c({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],j5);
_.A(j5,"ytd-single-option-survey-option-renderer",function(){if(TrV!==void 0)return TrV;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return TrV=G},{mode:1});var DOB;var aM=function(){return _.m.apply(this,arguments)||this};
_.K(aM,_.m);_.V=aM.prototype;_.V.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){var G,e;this.vertical=(((G=this.data)==null?void 0:(e=G.surveyOrientation)==null?void 0:e.type)||"HORIZONTAL")==="VERTICAL"};
_.V.computeAlt=function(G){return _.mG(G)};
_.V.onDismissTap=function(){_.Pi(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.v_().resolve(_.$1).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.ZRH(!1))};
aM.prototype.dataChanged=aM.prototype.dataChanged;_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],aM.prototype,"eventForwardingBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],aM.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],aM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(vqd),_.x("design:type",Object)],aM.prototype,"ytdHatsSurveyBehavior",void 0);
_.B([_.k(_.A5),_.x("design:type",Object)],aM.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],aM.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],aM.prototype,"vertical",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aM.prototype,"dataChanged",null);_.B([_.c({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],aM);
_.A(aM,"ytd-single-option-survey-renderer",function(){if(DOB!==void 0)return DOB;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return DOB=G},{mode:1});var Ead;var Xv=function(){return _.m.apply(this,arguments)||this};
_.K(Xv,_.m);Xv.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Xv.prototype.onDismissTap=function(){_.Pi(this.hostElement,"yt-close-popup-action")};
Xv.prototype.onNavigate=function(){_.Pi(this.hostElement,"yt-close-popup-action")};
Xv.prototype.onNavigate=Xv.prototype.onNavigate;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Xv.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],Xv.prototype,"ytEventForwardingBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Xv.prototype,"data",void 0);_.B([_.Om("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Xv.prototype,"onNavigate",null);
_.B([_.c({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],Xv);
_.A(Xv,"ytd-survey-follow-up-renderer",function(){if(Ead!==void 0)return Ead;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Ead=G},{mode:1});var iTH;var bTV;var vaC;var Kc=function(){var G=_.m.apply(this,arguments)||this;G.polymer2="Element"in Polymer;return G};
_.K(Kc,_.m);_.V=Kc.prototype;_.V.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.V.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.V.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.V.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eG("minutes-changed",this.minutes))};
_.V.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eG("seconds-changed",this.seconds))};
_.V.updateMinutesFromBinding=function(G){this.minutes=G.detail.value};
_.V.updateSecondsFromBinding=function(G){this.seconds=G.detail.value};
Kc.prototype.secondsChangedForBinding=Kc.prototype.secondsChangedForBinding;Kc.prototype.minutesChangedForBinding=Kc.prototype.minutesChangedForBinding;Kc.prototype.secondsChanged=Kc.prototype.secondsChanged;_.B([_.n(),_.x("design:type",String)],Kc.prototype,"minutes",void 0);_.B([_.n(),_.x("design:type",String)],Kc.prototype,"seconds",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Kc.prototype,"polymer2",void 0);
_.B([_.hs("#seconds"),_.x("design:type",Object)],Kc.prototype,"secondsEl",void 0);_.B([_.Me("seconds"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Kc.prototype,"secondsChanged",null);_.B([_.Me("minutes"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Kc.prototype,"minutesChangedForBinding",null);
_.B([_.Me("seconds"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Kc.prototype,"secondsChangedForBinding",null);_.B([_.aR({is:"yt-timestamp-input",disableElementRegistration:!0})],Kc);
_.A(Kc,"yt-timestamp-input",function(){if(vaC===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;bTV===void 0&&(bTV=document.createElement("template"));var Z=bTV;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);vaC=G}G=vaC;return G},{mode:2});var fc=function(){return _.m.apply(this,arguments)||this};
_.K(fc,_.m);_.V=fc.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20668_scroller.dialogElement=this.hostElement.parentNode};
_.V.dataChanged=function(){var G=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.Je().getPlayerPromise().then(function(e){e=e.getCurrentTime();G.minutes=Math.floor(e/60).toString();G.seconds=(Math.floor(e)%60).toString()})};
_.V.onTapSubmit=function(G){G.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(G={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(G.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(G.minutes=this.minutes,G.seconds=this.seconds),_.v_().resolve(_.$1).resolveCommand(this.serviceEndpoint,{form:Object.assign({},G,{element:this.hostElement})}))};
_.V.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.V.onYtServiceRequestCompleted=function(G,e){e=e.actions;if(Array.isArray(e))for(var r=0,Z=e.length;r<Z;r++)_.a(e[r],_.sP)&&(G.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(e[r]))};
_.V.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.V.toggleSubmitButton=function(G){this.set("submitButton.isDisabled",!G)};
_.V.handleInput=function(){var G=this.issueType,e=this.affiliation,r=this.minutes,Z=this.seconds;r=!this.showTimestamp||!!r&&!!Z;this.toggleSubmitButton(!!this.descriptionText&&!!G&&!!e&&r)};
_.V.computeServiceEndpoint=function(G){return this.get("submitButton.buttonRenderer.serviceEndpoint",G)};
_.V.computeSubmitButton=function(G){(G=this.get("submitButton.buttonRenderer",G))&&(G=Object.assign({},G,{serviceEndpoint:void 0}));return G};
_.V.computeShowTimestamp=function(G){return!!G};
_.V.onValueChangedForIssueType=function(G){this.issueType=G.detail.value};
_.V.onValueChangedForAffiliation=function(G){this.affiliation=G.detail.value};
_.V.updateDescriptionTextFromBinding=function(G){this.descriptionText=G.detail.value};
_.V.updateFullNameTextFromBinding=function(G){this.fullNameText=G.detail.value};
_.V.updateMinutesFromBinding=function(G){this.minutes=G.detail.value};
_.V.updateSecondsFromBinding=function(G){this.seconds=G.detail.value};
fc.prototype.handleInput=fc.prototype.handleInput;fc.prototype.onYtServiceRequestError=fc.prototype.onYtServiceRequestError;fc.prototype.onYtServiceRequestCompleted=fc.prototype.onYtServiceRequestCompleted;fc.prototype.onYtServiceRequestSent=fc.prototype.onYtServiceRequestSent;fc.prototype.dataChanged=fc.prototype.dataChanged;_.B([_.k(_.qG.YtOpenPopupBehavior),_.x("design:type",Object)],fc.prototype,"ytOpenPopupBehavior",void 0);
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],fc.prototype,"ytRendererBehavior",void 0);_.B([_.hs("#scroller"),_.x("design:type",Object)],fc.prototype,"JSC$20668_scroller",void 0);_.B([_.hs("#description"),_.x("design:type",HTMLInputElement)],fc.prototype,"description",void 0);_.B([_.hs("#full-name"),_.x("design:type",Object)],fc.prototype,"fullName",void 0);_.B([_.n(),_.x("design:type",Object)],fc.prototype,"data",void 0);
_.B([_.n({computed:"computeShowTimestamp(data.timestampLabel)"}),_.x("design:type",Boolean)],fc.prototype,"showTimestamp",void 0);_.B([_.n({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.x("design:type",Object)],fc.prototype,"serviceEndpoint",void 0);_.B([_.n({computed:"computeSubmitButton(data)"}),_.x("design:type",Object)],fc.prototype,"submitButton",void 0);_.B([_.n(),_.x("design:type",String)],fc.prototype,"descriptionText",void 0);
_.B([_.n(),_.x("design:type",Number)],fc.prototype,"issueType",void 0);_.B([_.n(),_.x("design:type",Number)],fc.prototype,"affiliation",void 0);_.B([_.n(),_.x("design:type",String)],fc.prototype,"fullNameText",void 0);_.B([_.n(),_.x("design:type",String)],fc.prototype,"minutes",void 0);_.B([_.n(),_.x("design:type",String)],fc.prototype,"seconds",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fc.prototype,"dataChanged",null);
_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.oV]),_.x("design:returntype")],fc.prototype,"onYtServiceRequestSent",null);_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.n1]),_.x("design:returntype")],fc.prototype,"onYtServiceRequestCompleted",null);
_.B([_.Om("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],fc.prototype,"onYtServiceRequestError",null);_.B([_.Me("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fc.prototype,"handleInput",null);_.B([_.c({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],fc);
_.A(fc,"ytd-legal-report-details-form-renderer",function(){if(iTH!==void 0)return iTH;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return iTH=G},{mode:1});var wa8;var kk=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return G};
_.K(kk,_.m);kk.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
kk.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var G=this.formRenderer.getForm();G&&this.data.submitEndpoint&&(_.v_().resolve(_.$1).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},G,{element:this.hostElement})}),_.Pi(this.hostElement,"yt-close-popup-action"))}};
kk.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.Pi(this.hostElement,"yt-close-popup-action"))};
kk.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
kk.prototype.onPopupClosed=kk.prototype.onPopupClosed;_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],kk.prototype,"ytEventForwardingBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],kk.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],kk.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],kk.prototype,"ytRendererBehavior",void 0);
_.B([_.hs("yt-form-renderer"),_.x("design:type",Object)],kk.prototype,"formRenderer",void 0);_.B([_.n(),_.x("design:type",Object)],kk.prototype,"data",void 0);_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kk.prototype,"onPopupClosed",null);_.B([_.c({is:"ytd-form-popup-content",disableElementRegistration:!0})],kk);
_.A(kk,"ytd-form-popup-content",function(){if(wa8!==void 0)return wa8;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return wa8=G},{mode:1});var $OY;var H3=function(){return _.m.apply(this,arguments)||this};
_.K(H3,_.m);H3.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
H3.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
H3.prototype.onPopupOpened=function(){_.xy(this.hostElement,"yt-invalidate-popup-tabbables")};
H3.prototype.onYtServiceRequestCompleted=function(G,e){e.data&&e.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.xy(this.hostElement,"yt-invalidate-popup-tabbables"))};
H3.prototype.onYtServiceRequestCompleted=H3.prototype.onYtServiceRequestCompleted;H3.prototype.onPopupOpened=H3.prototype.onPopupOpened;_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],H3.prototype,"ytEventForwardingBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],H3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],H3.prototype,"ytRendererBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],H3.prototype,"data",void 0);_.B([_.Om("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],H3.prototype,"onPopupOpened",null);_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.n1]),_.x("design:returntype")],H3.prototype,"onYtServiceRequestCompleted",null);_.B([_.c({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],H3);
_.A(H3,"ytd-form-popup-renderer",function(){if($OY!==void 0)return $OY;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return $OY=G},{mode:1});var S7W;var db=function(){var G=_.m.apply(this,arguments)||this;G.isLoading=!1;return G};
_.K(db,_.m);_.V=db.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");$qa(this.hostElement)};
_.V.onYtServiceRequestSent=function(){this.isLoading=!0};
_.V.onYtServiceRequestCompleted=function(){_.Pi(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.V.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.Wi(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.V.closePopupHandler=function(){this.fireOnCloseActions()};
_.V.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var G=this.get("data.headerImage.thumbnails");G&&(G=_.BQ(G,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+G+")")}};
_.V.onYtNavigate=function(G){(G=_.mk(G))&&G.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
db.prototype.onYtNavigate=db.prototype.onYtNavigate;db.prototype.onHeaderImageChanged=db.prototype.onHeaderImageChanged;db.prototype.closePopupHandler=db.prototype.closePopupHandler;db.prototype.onYtServiceRequestCompleted=db.prototype.onYtServiceRequestCompleted;db.prototype.onYtServiceRequestSent=db.prototype.onYtServiceRequestSent;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],db.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],db.prototype,"ytEventForwardingBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],db.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],db.prototype,"isLoading",void 0);_.B([_.hs("#header"),_.x("design:type",HTMLDivElement)],db.prototype,"header",void 0);_.B([_.hs("#confirm-button"),_.x("design:type",_.dF)],db.prototype,"confirmButton",void 0);
_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],db.prototype,"onYtServiceRequestSent",null);_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],db.prototype,"onYtServiceRequestCompleted",null);
_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],db.prototype,"closePopupHandler",null);_.B([_.Me("data.headerImage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],db.prototype,"onHeaderImageChanged",null);_.B([_.Om("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],db.prototype,"onYtNavigate",null);
_.B([_.c({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],db);
_.A(db,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(S7W!==void 0)return S7W;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return S7W=G},{mode:1});var q7A;var oM=function(){var G=_.m.apply(this,arguments)||this;G.isLoading=!1;return G};
_.K(oM,_.m);_.V=oM.prototype;_.V.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"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);$qa(this.hostElement)};
_.V.onYtServiceRequestCompleted=function(){_.Pi(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.V.onYtServiceRequestError=function(G){_.QO(this.hostElement,G.detail.error.message)};
_.V.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.V.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.Pi(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.V.onDataChanged=function(){this.isLoading=!1;var G=this.get("data.headerImage.thumbnails");G&&(G=_.BQ(G,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+G+")");G=_.l4();var e=_.go(),r=this.get("data.trackingParams");r&&e&&G&&_.QU(G,e,_.b1(r))};
_.iY.Object.defineProperties(oM.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
oM.prototype.onDataChanged=oM.prototype.onDataChanged;oM.prototype.onDomChange=oM.prototype.onDomChange;oM.prototype.onYtServiceRequestError=oM.prototype.onYtServiceRequestError;oM.prototype.onYtServiceRequestCompleted=oM.prototype.onYtServiceRequestCompleted;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],oM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],oM.prototype,"ytRendererBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],oM.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],oM.prototype,"isLoading",void 0);_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],oM.prototype,"hasDescription",null);_.B([_.hs("tp-yt-paper-dialog-scrollable"),_.x("design:type",Object)],oM.prototype,"scrollable",void 0);_.B([_.hs("#header"),_.x("design:type",HTMLElement)],oM.prototype,"header",void 0);
_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],oM.prototype,"onYtServiceRequestCompleted",null);_.B([_.Om("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],oM.prototype,"onYtServiceRequestError",null);
_.B([_.Om("dom-change"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],oM.prototype,"onDomChange",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oM.prototype,"onDataChanged",null);_.B([_.c({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],oM);
_.A(oM,"ytd-gaming-account-link-setting-renderer",function(){if(q7A!==void 0)return q7A;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return q7A=G},{mode:1});var teY;var gaC;var sx=function(){var G=_.m.apply(this,arguments)||this;G.isHeader=!1;G.getEndpointForm=function(){return r3Y(G.data)};
return G};
_.K(sx,_.m);_.V=sx.prototype;_.V.triggerHintActions=function(){var G=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var e=_.UW(G.hostElement,"yt-get-opened-popups-action");!(e&&e.length===1?e[0]:[]).some(function(r){r=r.openPopupAction.popupType;return r==="SURVEY"||r==="MEALBAR"||r==="HINT"})&&G.data.hintActions&&G.guideOpened&&(_.Wi(G.hostElement,G.data.hintActions,G.hostElement),G.data.hintActions=void 0)})};
_.V.getBadgeIconType=function(G){return G&&G.liveBroadcasting?"live":null};
_.V.onDown=function(){this.interaction.triggerDown()};
_.V.onUp=function(){this.interaction.triggerUp()};
_.V.onTap=function(G){if(this.data.serviceEndpoint){var e;_.R("shorts_controller_retrieve_seedless_sequence_v2")&&((e=_.a(this.data.serviceEndpoint,_.DC))==null?void 0:e.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):e58(this.data.serviceEndpoint,this);G.preventDefault()}else this.data.navigationEndpoint&&!_.mO(_.na(G),this.hostElement,["A".toString()])&&_.xy(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.V.computeActive=function(G,e){if(!G)return!1;var r=G.navigationEndpoint;G=G.serviceEndpoint;if(!r&&!G||!e)return!1;if(r){G=(G=_.OO(e))&&["subscriptions","filteredsubscriptions"].includes(G);if(_.a(r,_.Mv)&&_.a(e,_.Mv)&&!G){var Z=_.a(r,_.Mv).browseId;e=_.a(e,_.Mv).browseId;return Z!==void 0&&e!==void 0&&(Z===e||Z==="VLWL"&&e==="FEwatch_later"||Z==="FEwatch_later"&&e==="VLWL")}var O;r=(O=_.a(r.commandMetadata,_.rJ))==null?void 0:O.url;e=(Z=_.a(e.commandMetadata,_.rJ))==null?void 0:Z.url;return!(!r||
!e||r!==e&&r!==_.Kr(e))}return this.isActiveShortsTab(G,e)};
_.V.isActiveShortsTab=function(G,e){e=!!_.a(e,_.DC)||!!_.a(e,_.xA);return(!!_.a(G,_.DC)||!!_.a(G,_.xA))&&e};
_.V.computeIsPrimary=function(G){return!!G};
_.iY.Object.defineProperties(sx.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 G=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&G)return G}}});
sx.prototype.onTap=sx.prototype.onTap;sx.prototype.onUp=sx.prototype.onUp;sx.prototype.onDown=sx.prototype.onDown;sx.prototype.triggerHintActions=sx.prototype.triggerHintActions;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],sx.prototype,"componentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],sx.prototype,"rendererBehavior",void 0);_.B([_.k(_.Zs.YtTaskEmitterBehavior),_.x("design:type",Object)],sx.prototype,"taskEmitterBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],sx.prototype,"activeEndpoint",void 0);_.B([_.n(),_.x("design:type",Object)],sx.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Boolean)],sx.prototype,"guideOpened",void 0);_.B([_.n(),_.x("design:type",String)],sx.prototype,"type",void 0);_.B([_.hs("yt-interaction"),_.x("design:type",Object)],sx.prototype,"interaction",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],sx.prototype,"isHeader",void 0);
_.B([_.n({reflectToAttribute:!0}),_.d("data","activeEndpoint"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],sx.prototype,"active",null);_.B([_.n({reflectToAttribute:!0}),_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],sx.prototype,"isPrimary",null);_.B([_.n({reflectToAttribute:!0}),_.d("data.count","data.presentationStyle","data.badges.*"),_.x("design:type",String),_.x("design:paramtypes",[])],sx.prototype,"lineEndStyle",null);
_.B([_.d("lineEndStyle"),_.x("design:type",Object),_.x("design:paramtypes",[])],sx.prototype,"ariaLabel",null);_.B([_.Me("data.hintActions","guideOpened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sx.prototype,"triggerHintActions",null);_.B([_.Om("down"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sx.prototype,"onDown",null);
_.B([_.Om("up"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sx.prototype,"onUp",null);_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],sx.prototype,"onTap",null);_.B([_.c({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],sx);
_.A(sx,"ytd-guide-entry-renderer",function(){if(gaC!==void 0)return gaC;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return gaC=G},{mode:1});var QF=function(){var G=_.m.apply(this,arguments)||this;G.userToggled=!1;return G};
_.K(QF,_.m);_.V=QF.prototype;_.V.getItemsPath=function(){return"data.expandableItems"};
_.V.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.V.onExpanderItemTapped=function(G){var e=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.R("kevlar_guide_expandable_items_killswitch")&&_.DE(this,function(){_.Mh(e.expandableItems)});
G.preventDefault()};
_.V.onCollapserItemTapped=function(G){var e=this;this._setExpanded(!1);this.userToggled=!0;G.preventDefault();this.expandableItems&&!_.R("kevlar_guide_collapsible_items_killswitch")&&_.DE(this,function(){_.Os(e.hostElement)})};
_.V.observeActiveEndpoint=function(){for(var G=this.activeEndpoint,e=this.data,r=this.expandableItems.children,Z=0,O=r.length;Z<O;Z++)r[Z].activeEndpoint=G;e&&e.autoExpandCommand&&G&&!this.userToggled&&(r=this.data.autoExpandCommand,e=!(!_.a(r,_.Mv)||!_.a(G,_.Mv)||_.a(r,_.Mv).browseId!==_.a(G,_.Mv).browseId),G=this.get("commandMetadata.webCommandMetadata.url",G),r=this.get("commandMetadata.webCommandMetadata.url",r),e=e||!!(G&&r&&G.includes(r)),this._setExpanded(e),e&&this.ytLazyListBehavior.fillRemainingListItems())};
QF.prototype.observeActiveEndpoint=QF.prototype.observeActiveEndpoint;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],QF.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],QF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.Dr.YtLazyListBehavior),_.x("design:type",Object)],QF.prototype,"ytLazyListBehavior",void 0);_.B([_.hs("#expandable-items"),_.x("design:type",HTMLElement)],QF.prototype,"expandableItems",void 0);
_.B([_.n(),_.x("design:type",Object)],QF.prototype,"data",void 0);_.B([_.n({readOnly:!0,reflectToAttribute:!0}),_.x("design:type",Boolean)],QF.prototype,"expanded",void 0);_.B([_.n({value:0}),_.x("design:type",Number)],QF.prototype,"initialCount",void 0);_.B([_.n(),_.x("design:type",Object)],QF.prototype,"activeEndpoint",void 0);_.B([_.Me("data","activeEndpoint","canShowMore"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QF.prototype,"observeActiveEndpoint",null);
_.B([_.c({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],QF);
_.A(QF,"ytd-guide-collapsible-entry-renderer",function(){if(teY!==void 0)return teY;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return teY=G},{mode:_.Px("kevlar_poly_si_batch_j079")?1:2});var l$a;var Rf8;var IM=function(){var G=_.m.apply(this,arguments)||this;G.allVideosCount=0;G.renderGuideEntry=!1;return G};
_.K(IM,_.m);IM.prototype.observeRenderEntry=function(){var G;this.renderGuideEntry=!((G=this.data)==null||!G.alwaysShow)||!!this.allVideosCount};
IM.prototype.observeRenderEntry=IM.prototype.observeRenderEntry;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],IM.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],IM.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],IM.prototype,"activeEndpoint",void 0);_.B([_.n({selector:_.y44}),_.x("design:type",Object)],IM.prototype,"allVideosCount",void 0);
_.B([_.n(),_.x("design:type",Object)],IM.prototype,"renderGuideEntry",void 0);_.B([_.iD("allVideosCount","data.alwaysShow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],IM.prototype,"observeRenderEntry",null);_.B([_.c({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],IM);
_.A(IM,"ytd-guide-downloads-entry-renderer",function(){if(Rf8===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);Rf8=G}G=Rf8;return G},{mode:1});var pc=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return G};
_.K(pc,_.m);_.V=pc.prototype;_.V.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]]"}}}}}};
_.V.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var G=this.sectionItems.children,e=0,r=G.length;e<r;e++)G[e].activeEndpoint=this.activeEndpoint}};
_.V.handleAddToGuideSectionAction=function(G){var e=_.a(G,JEA);if(e&&this.data&&(G=e.items,e=e.handlerData,G&&e&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(e)>-1)){e=0;for(var r=G.length;e<r;e++)G[e].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,G[e])}};
_.V.handleRemoveFromGuideSectionAction=function(G){var e=_.a(G,BZo);e&&this.data&&(G=e.guideEntryId,e=e.handlerData,G&&e&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(e)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(G,this.data.sectionItems),this.removeFromCollapsedSection(G,this.data.sectionItems)))};
_.V.removeFromExpandedSection=function(G,e){G=this.getEntryIndexMatchingId(G,e);G!==-1&&this.splice("data.sectionItems",G,1)};
_.V.removeFromCollapsedSection=function(G,e){var r=e.findIndex(function(Z){return!!_.a(Z,T5W)});
r&&r!==-1&&e[r]&&_.a(e[r],T5W)&&(e=_.a(e[r],T5W).expandableItems)&&(G=this.getEntryIndexMatchingId(G,e),G!==-1&&this.splice("data.sectionItems."+r+".guideCollapsibleEntryRenderer.expandableItems",G,1))};
_.V.getEntryIndexMatchingId=function(G,e){var r=this;return e.findIndex(function(Z){return r.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",Z)===G})};
pc.prototype.activeEndpointChanged=pc.prototype.activeEndpointChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],pc.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],pc.prototype,"actionHandlerBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],pc.prototype,"ytRendererstamperBehavior",void 0);_.B([_.hs("#section-items"),_.x("design:type",HTMLDivElement)],pc.prototype,"sectionItems",void 0);
_.B([_.hs("#header-entry"),_.x("design:type",Object)],pc.prototype,"headerEntry",void 0);_.B([_.n(),_.x("design:type",Object)],pc.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],pc.prototype,"activeEndpoint",void 0);_.B([_.Me("activeEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pc.prototype,"activeEndpointChanged",null);_.B([_.c({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],pc);
_.A(pc,"ytd-guide-collapsible-section-entry-renderer",function(){if(l$a===void 0){var G=document.createElement("template");_.f(G,'\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="true" 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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);l$a=G}G=l$a;return G},{mode:1});var jwW;var a$B;var Cc=function(){var G=_.m.apply(this,arguments)||this;G.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 G};
_.K(Cc,_.m);_.V=Cc.prototype;
_.V.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}}}}};
_.V.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var G=_.UW(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);G&&G.length===1&&G[0]&&_.UW(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.V.handleResetChannelUnreadCountCommand=function(G){var e;(G=(e=_.a(G,PKC))==null?void 0:e.channelId)&&this.data&&this.data.items&&(e=this.getPathToEntryMatchingId(G))&&(this.set(e+".guideEntryRenderer.count",0),this.set(e+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.V.handleResetSubscriptionsUnreadDotCommand=function(G){var e,r=(e=_.a(G,URY))==null?void 0:e.targetId,Z;r&&(Z=this.data)!=null&&Z.items&&(G=this.data.items.findIndex(function(O){var M;return((M=O.guideEntryRenderer)==null?void 0:M.targetId)===r}),G<0||this.set("data.items."+G+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.V.getPathToEntryMatchingId=function(G){if(this.data&&this.data.items){var e=this.getEntryIndexMatchingId(G,this.data.items);if(e>-1)return"data.items."+e;for(var r=0;r<this.data.items.length;r++)if(e=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[r]))if(e=this.getEntryIndexMatchingId(G,e),e>-1)return"data.items."+r+".guideCollapsibleEntryRenderer.expandableItems."+e}};
_.V.handleAddToGuideSectionAction=function(G){var e=this;if(_.a(G,JEA)){var r=_.a(G,JEA).items;G=_.a(G,JEA).handlerData;var Z,O;if(r&&G&&((Z=this.data)==null?void 0:(O=Z.handlerDatas)==null?void 0:O.indexOf(G))>-1){r=r.filter(function(T){return(T=e.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",T))&&!e.isGuideItemPresent(T)});
var M;if(G==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((M=this.data)==null?0:M.items)&&(Z=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),Z>-1)){this.splice.apply(this,["data.items",Z+1,0].concat(_.mY(r)));return}this.unshift.apply(this,["data.items"].concat(_.mY(r)))}}};
_.V.isGuideItemPresent=function(G){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(G,this.data.items)!==-1)return!0;var e=this.data.items.find(function(r){return!!r.guideCollapsibleEntryRenderer});
if((e==null?0:e.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(G,e.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.V.getEntryIndexMatchingId=function(G,e){var r=this;return e.findIndex(function(Z){return r.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",Z)===G})};
_.V.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(G,e){var r=this;return e.findIndex(function(Z){return r.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",Z)===G})};
_.V.handleRemoveFromGuideSectionAction=function(G){if(_.a(G,BZo)){var e=_.a(G,BZo).guideEntryId;G=_.a(G,BZo).handlerData;var r,Z;e&&G&&((r=this.data)==null?void 0:(Z=r.handlerDatas)==null?void 0:Z.indexOf(G))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(e,this.data.items),this.removeFromCollapsedSection(e,this.data.items))}};
_.V.removeFromExpandedSection=function(G,e){G=this.getEntryIndexMatchingId(G,e);G!==-1&&this.splice("data.items",G,1)};
_.V.removeFromCollapsedSection=function(G,e){var r=e.findIndex(function(Z){return!!Z.guideCollapsibleEntryRenderer});
r!==-1&&(e=e[r].guideCollapsibleEntryRenderer.expandableItems)&&(G=this.getEntryIndexMatchingId(G,e),G!==-1&&this.splice("data.items."+r+".guideCollapsibleEntryRenderer.expandableItems",G,1))};
_.V.activeEndpointChanged=function(){for(var G=_.z1(this.hostElement).querySelector("#items").children,e=0,r=G.length;e<r;e++)G[e].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.V.guideOpenedChanged=function(){for(var G=_.z1(this.hostElement).querySelector("#items").children,e=0,r=G.length;e<r;e++)G[e].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
Cc.prototype.guideOpenedChanged=Cc.prototype.guideOpenedChanged;Cc.prototype.activeEndpointChanged=Cc.prototype.activeEndpointChanged;Cc.prototype.persistentGuideChanged=Cc.prototype.persistentGuideChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Cc.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Cc.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Cc.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.Dr.YtLazyListBehavior),_.x("design:type",Object)],Cc.prototype,"ytLazyListBehavior",void 0);_.B([_.k(_.UN.YtdGuideStateAwareBehavior),_.x("design:type",Object)],Cc.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Cc.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Cc.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",String)],Cc.prototype,"type",void 0);_.B([_.n({value:20}),_.x("design:type",Number)],Cc.prototype,"initialCount",void 0);_.B([_.n({value:10}),_.x("design:type",Number)],Cc.prototype,"targetFramerate",void 0);_.B([_.n({value:!0}),_.x("design:type",Boolean)],Cc.prototype,"autoFill",void 0);_.B([_.n({value:50}),_.x("design:type",Number)],Cc.prototype,"renderDelay",void 0);
_.B([_.Me("guidePersistentAndVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Cc.prototype,"persistentGuideChanged",null);_.B([_.iD("activeEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Cc.prototype,"activeEndpointChanged",null);_.B([_.iD("guideOpened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Cc.prototype,"guideOpenedChanged",null);
_.B([_.c({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],Cc);
_.A(Cc,"ytd-guide-section-renderer",function(){if(a$B!==void 0)return a$B;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return a$B=G},{mode:_.Px("kevlar_poly_si_batch_j073")?1:2});var Xa8;var c3=function(){return _.m.apply(this,arguments)||this};
_.K(c3,_.m);_.iY.Object.defineProperties(c3.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],c3.prototype,"rendererBehaviors",void 0);_.B([_.n(),_.x("design:type",Object)],c3.prototype,"data",void 0);_.B([_.n(),_.d("data.signInButton.buttonRenderer.style"),_.x("design:type",Object),_.x("design:paramtypes",[])],c3.prototype,"alignByText",null);_.B([_.c({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],c3);
_.A(c3,"ytd-guide-signin-promo-renderer",function(){if(Xa8===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);Xa8=G}G=Xa8;return G},{mode:1});var Yk=function(){var G=_.m.apply(this,arguments)||this;G.showFooter=!1;return G};
_.K(Yk,_.m);Yk.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}}}}};
Yk.prototype.attached=function(){var G=this,e;return _.D(function(r){if(r.nextAddress==1){e=_.v_().resolve(_.bq(_.Pb));if(!e)return r.jumpTo(0);e.setGuideData(G.hostElement);return r.yield(0,3)}G.ytLazyListBehavior.initialCount=2;return r.return()})};
Yk.prototype.onMouseExit=function(){_.R("web_guide_hover_expansion")&&_.UW(this.hostElement,"yt-guide-mouseleaved",[])};
Yk.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
Yk.prototype.dataChanged=Yk.prototype.dataChanged;Yk.prototype.onMouseExit=Yk.prototype.onMouseExit;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Yk.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Yk.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.Dr.YtLazyListBehavior),_.x("design:type",Object)],Yk.prototype,"ytLazyListBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Yk.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Yk.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],Yk.prototype,"showFooter",void 0);_.B([_.n({value:!0}),_.x("design:type",Boolean)],Yk.prototype,"autoFill",void 0);_.B([_.Om("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Yk.prototype,"onMouseExit",null);
_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Yk.prototype,"dataChanged",null);_.B([_.c({is:"ytd-guide-renderer",disableElementRegistration:!0})],Yk);
_.A(Yk,"ytd-guide-renderer",function(){if(jwW!==void 0)return jwW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return jwW=G},{mode:_.Px("kevlar_poly_si_batch_j073")?1:2});var Knd;var yF=function(){var G=_.m.apply(this,arguments)||this;G.systemIcons=_.R("kevlar_system_icons");G.frostedGlass=_.R("web_frosted_glass");G.getEndpointForm=function(){return r3Y(G.data)};
return G};
_.K(yF,_.m);_.V=yF.prototype;_.V.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.V.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.mG(this.data.formattedTitle))};
_.V.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.V.onDown=function(){this.interaction.triggerDown()};
_.V.onUp=function(){this.interaction.triggerUp()};
_.V.onTap=function(G){if(this.data.serviceEndpoint){var e;_.R("shorts_controller_retrieve_seedless_sequence_v2")&&((e=_.a(this.data.serviceEndpoint,_.DC))==null?void 0:e.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):e58(this.data.serviceEndpoint,this);G.preventDefault()}else{var r;((r=this.data)==null?0:r.navigationEndpoint)&&!_.mO(_.na(G),this.hostElement,["A".toString()])&&_.xy(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.V.computeActive=function(G,e){if(!G)return!1;var r=G.navigationEndpoint;G=G.serviceEndpoint;if(!r&&!G||!e)return!1;if(r){G=_.a(r,_.Mv);var Z=_.a(e,_.Mv);if(G&&Z)return G.browseId===Z.browseId&&G.params===Z.params;var O;r=(O=_.a(r.commandMetadata,_.rJ))==null?void 0:O.url;var M;e=(M=_.a(e.commandMetadata,_.rJ))==null?void 0:M.url;return!(!r||!e||r!==e&&r!==_.Kr(e))}return this.isActiveShortsTab(G,e)};
_.V.isActiveShortsTab=function(G,e){e=!!_.a(e,_.DC)||!!_.a(e,_.xA);return(!!_.a(G,_.DC)||!!_.a(G,_.xA))&&e};
_.V.computeTitle=function(G,e){return e?"":_.mG(G)};
_.iY.Object.defineProperties(yF.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
yF.prototype.onTap=yF.prototype.onTap;yF.prototype.onUp=yF.prototype.onUp;yF.prototype.onDown=yF.prototype.onDown;yF.prototype.onActiveStateChange=yF.prototype.onActiveStateChange;yF.prototype.dataChanged=yF.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],yF.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],yF.prototype,"ytComponentBehavior",void 0);
_.B([_.k(_.nS),_.x("design:type",Object)],yF.prototype,"ironButtonState",void 0);_.B([_.n(),_.x("design:type",Object)],yF.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],yF.prototype,"activeEndpoint",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],yF.prototype,"noLabels",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.x("design:type",Boolean)],yF.prototype,"isActive",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],yF.prototype,"systemIcons",void 0);_.B([_.hs("yt-interaction"),_.x("design:type",Object)],yF.prototype,"interaction",void 0);_.B([_.d("isActive"),_.x("design:type",Object),_.x("design:paramtypes",[])],yF.prototype,"ariaSelected",null);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],yF.prototype,"frostedGlass",void 0);
_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yF.prototype,"dataChanged",null);_.B([_.Me("isActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yF.prototype,"onActiveStateChange",null);_.B([_.Om("down"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yF.prototype,"onDown",null);
_.B([_.Om("up"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yF.prototype,"onUp",null);_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],yF.prototype,"onTap",null);_.B([_.c({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],yF);
_.A(yF,"ytd-mini-guide-entry-renderer",function(){if(Knd!==void 0)return Knd;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Knd=G},{mode:_.Px("kevlar_poly_si_batch_j063")?1:2});var f$W;var Aa=function(){var G=_.m.apply(this,arguments)||this;G.allVideosCount=0;G.noLabels=_.R("kevlar_mini_guide_no_labels")||_.R("kevlar_modern_mini_guide");G.frostedGlass=_.R("web_frosted_glass");return G};
_.K(Aa,_.m);_.V=Aa.prototype;_.V.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.V.onMouseEnter=function(){_.R("web_guide_hover_expansion")&&_.UW(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.V.visibleChanged=function(){if(this.visible&&!this.data){var G=_.v_().resolve(_.bq(_.Pb));G&&G.setGuideData(this.hostElement)}};
_.V.dataChanged=function(){var G=_.R("kevlar_modern_mini_guide"),e;var r=(e=this.data)==null?void 0:e.items;e=this.allVideosCount;var Z=[];if(r){for(var O=[],M=_.h(r),T=M.next();!T.done;T=M.next())if(T=T.value,T.guideSubscriptionsSectionRenderer){var E=void 0;O=((E=T.guideSubscriptionsSectionRenderer)==null?void 0:E.items)||[]}r=_.h(r);for(M=r.next();!M.done;M=r.next())if(M=M.value,T=void 0,(T=M.guideSectionRenderer)==null?0:T.items)for(T=void 0,M=_.h((T=M.guideSectionRenderer)==null?void 0:T.items),
T=M.next();!T.done;T=M.next()){T=T.value;var b=void 0,w=void 0;E=T.guideEntryRenderer||_.a((b=T)==null?void 0:(w=b.guideCollapsibleSectionEntryRenderer)==null?void 0:w.headerEntry,Z2V);b=[];w=[];var q=void 0;if(((q=E)==null?void 0:q.targetId)==="subscriptions-guide-item")b=O;else{var t=q=void 0;if((q=T)==null?0:(t=q.guideCollapsibleSectionEntryRenderer)==null?0:t.sectionItems)w=b=T.guideCollapsibleSectionEntryRenderer.sectionItems}O2d(Z,E,G?b:[]);if(w.length>0)for(T=_.h(w),E=T.next();!E.done;E=T.next())E=
E.value,w=_.a(E,D2Y),b=void 0,w=w&&(w.alwaysShow||e)?_.a((b=w)==null?void 0:b.entryRenderer,Z2V):_.a(E,Z2V),O2d(Z,w,[])}}this.miniGuideItems=Z};
_.V.activeEndpointChanged=function(){for(var G=this.items.children,e=0;e<G.length;e++)G[e].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.V.registerWithViewTransitionManager=function(){var G=this;_.IQ(_.A0,function(){var e=_.v_().resolve(_.bq(_.oY));if(e&&e.isAnyTransitionEnabled){var r={};e.viewTransitionCoordinator.registerElement(G.hostElement,(r.slide="mini-guide-page-transition",r))}})};
Aa.prototype.activeEndpointChanged=Aa.prototype.activeEndpointChanged;Aa.prototype.dataChanged=Aa.prototype.dataChanged;Aa.prototype.visibleChanged=Aa.prototype.visibleChanged;Aa.prototype.onMouseEnter=Aa.prototype.onMouseEnter;_.B([_.k(_.A5),_.x("design:type",Object)],Aa.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Aa.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Aa.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.UN.YtdGuideStateAwareBehavior),_.x("design:type",Object)],Aa.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Aa.prototype,"ytComponentBehavior",void 0);_.B([_.hs("#items"),_.x("design:type",Object)],Aa.prototype,"items",void 0);_.B([_.n(),_.x("design:type",Object)],Aa.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",Boolean)],Aa.prototype,"visible",void 0);_.B([_.n(),_.x("design:type",Object)],Aa.prototype,"miniGuideItems",void 0);_.B([_.n({selector:_.y44}),_.x("design:type",Object)],Aa.prototype,"allVideosCount",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Aa.prototype,"noLabels",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Aa.prototype,"frostedGlass",void 0);
_.B([_.Om("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Aa.prototype,"onMouseEnter",null);_.B([_.iD("visible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Aa.prototype,"visibleChanged",null);_.B([_.iD("data","allVideosCount"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Aa.prototype,"dataChanged",null);
_.B([_.iD("activeEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Aa.prototype,"activeEndpointChanged",null);_.B([_.c({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],Aa);
_.A(Aa,"ytd-mini-guide-renderer",function(){if(f$W===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);f$W=G}G=f$W;return G},{mode:1});var kgA;var HTY=/^[\x00-\x7F]+$/,Fv=function(){return _.m.apply(this,arguments)||this};
_.K(Fv,_.m);_.iY.Object.defineProperties(Fv.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var G,e=_.mG((G=this.data)==null?void 0:G.handle);if(e)return _.nQ("@"+e)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var G=_.mG(this.displayHandle),e,r=_.mG((e=this.data)==null?void 0:e.handleUrl);if(G&&r)return _.nQ(r+G)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var G=_.mG(this.displayHandle);if(G&&!HTY.test(G)){var e;return(e=this.data)==null?void 0:e.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var G=_.mG(this.displayHandleUrl),e,r=_.mG((e=this.data)==null?void 0:e.urlInfoText);if(G&&r)return _.nQ(r+" "+G)}}});
_.B([_.n(),_.x("design:type",Object)],Fv.prototype,"data",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Fv.prototype,"displayHandle",null);_.B([_.d("displayHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],Fv.prototype,"displayHandleUrl",null);_.B([_.d("displayHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],Fv.prototype,"warningText",null);
_.B([_.d("displayHandleUrl"),_.x("design:type",Object),_.x("design:paramtypes",[])],Fv.prototype,"urlInfoTextWithUrl",null);_.B([_.c({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],Fv);
_.A(Fv,"ytd-handles-claiming-confirm-dialog-content",function(){if(kgA!==void 0)return kgA;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return kgA=G},{mode:1});var dOW;var Ja=function(){var G=_.m.apply(this,arguments)||this;G.okButtonOverride={style:"mono",type:"outline",size:"M"};return G};
_.K(Ja,_.m);Ja.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ja.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Ja.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Ja.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Ja.prototype,"okButtonOverride",void 0);_.B([_.n(),_.x("design:type",Object)],Ja.prototype,"data",void 0);_.B([_.c({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],Ja);
_.A(Ja,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(dOW!==void 0)return dOW;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return dOW=G},{mode:1});var oad;var swB=/^[\x00-\x7F]+$/,B3=function(){var G=_.m.apply(this,arguments)||this;G.isLoading=!1;return G};
_.K(B3,_.m);B3.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var G;this.selectedHandle=(G=this.handleInput)==null?void 0:G.value;this.onSelectedHandleChanged(this.selectedHandle);_.UW(this.hostElement,"yt-refit-popups-action")}};
_.iY.Object.defineProperties(B3.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.nQ("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.nQ(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!swB.test(this.selectedHandle)){var G;return(G=this.data)==null?void 0:G.warningText}}}});
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],B3.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],B3.prototype,"data",void 0);_.B([_.n(),_.x("design:type",String)],B3.prototype,"selectedHandle",void 0);_.B([_.n(),_.x("design:type",Object)],B3.prototype,"isLoading",void 0);_.B([_.n(),_.x("design:type",Function)],B3.prototype,"onSelectedHandleChanged",void 0);_.B([_.hs("#channel-handle-input"),_.x("design:type",Object)],B3.prototype,"handleInput",void 0);
_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],B3.prototype,"handleUrlPrefix",null);_.B([_.d("selectedHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],B3.prototype,"displayHandle",null);_.B([_.d("selectedHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],B3.prototype,"displayHandleUrl",null);_.B([_.d("selectedHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],B3.prototype,"warningText",null);
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],B3.prototype,"ytRendererBehavior",void 0);_.B([_.c({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],B3);
_.A(B3,"ytd-handles-claiming-edit-dialog-content",function(){if(oad!==void 0)return oad;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return oad=G},{mode:1});var QwB;var xk=function(){var G=_.m.apply(this,arguments)||this;G.actionButtonOverride={style:"mono",type:"filled",size:"M"};G.cancelButtonOverride={style:"mono",type:"text",size:"M"};G.selectButtonDisabled=!1;G.isLoading=!1;G.hasSelectedHandleEventListener=!1;G.selectedHandleChanged=function(e){G.selectedHandle=e};
return G};
_.K(xk,_.m);_.V=xk.prototype;_.V.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.V.onDataChanged=function(){var G,e;this.selectedHandle=(e=_.a((G=this.data)==null?void 0:G.inputField,cEW))==null?void 0:e.handle};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.onCancel=function(){this.selectedHandle="";_.Pi(this.hostElement,"yt-close-popup-action",[this.is])};
_.V.onSelectHandle=function(){var G=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(r,Z){if(Z.newHandleUpdateStatus!==void 0&&Z.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&Z.newHandleUpdateStatus.errorMessage)_.QO(G.hostElement,_.mG(Z.newHandleUpdateStatus.errorMessage)),
G.isLoading=!1;else{var O;if((O=G.data)==null?0:O.onChannelUpdateSuccess){r=G.data.onChannelUpdateSuccess;var M,T;if(Z=(M=_.a(r,_.sP))==null?void 0:(T=M.popup)==null?void 0:T.handlesClaimingConfirmDialogRenderer)Z.handle=_.nQ(G.selectedHandle);G.ytComponentBehavior.resolveCommand(r);_.Pi(G.hostElement,"yt-close-popup-action",[G.is])}else G.isLoading=!1}},
onServerError:function(){var r;G.content&&((r=G.content)==null?0:r.handleInput)&&G.content.handleInput.validate();G.isLoading=!1;_.QO(G.hostElement,_.OK("TRY_AGAIN_LATER"))}}}))}};
_.V.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
xk.prototype.onDataChanged=xk.prototype.onDataChanged;xk.prototype.onSelectedHandleChanged=xk.prototype.onSelectedHandleChanged;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],xk.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],xk.prototype,"actionButtonOverride",void 0);_.B([_.n(),_.x("design:type",Object)],xk.prototype,"cancelButtonOverride",void 0);_.B([_.n(),_.x("design:type",Object)],xk.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",String)],xk.prototype,"selectedHandle",void 0);_.B([_.n(),_.x("design:type",Object)],xk.prototype,"selectButtonDisabled",void 0);_.B([_.n(),_.x("design:type",Object)],xk.prototype,"isLoading",void 0);_.B([_.n(),_.x("design:type",Object)],xk.prototype,"hasSelectedHandleEventListener",void 0);_.B([_.n(),_.x("design:type",Object)],xk.prototype,"handleInput",void 0);
_.B([_.Me("selectedHandle"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xk.prototype,"onSelectedHandleChanged",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xk.prototype,"onDataChanged",null);_.B([_.hs("ytd-handles-claiming-edit-dialog-content"),_.x("design:type",Object)],xk.prototype,"content",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],xk.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],xk.prototype,"ytRendererstamperBehavior",void 0);_.B([_.c({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],xk);
_.A(xk,"ytd-handles-claiming-edit-dialog-renderer",function(){if(QwB!==void 0)return QwB;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return QwB=G},{mode:1});var I$V;var P3=function(){return _.m.apply(this,arguments)||this};
_.K(P3,_.m);_.iY.Object.defineProperties(P3.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null?0:G.handle){var e;return _.nQ("@"+_.mG((e=this.data)==null?void 0:e.handle))}}}});
_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],P3.prototype,"formattedHandle",null);_.B([_.n(),_.x("design:type",Object)],P3.prototype,"data",void 0);_.B([_.c({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],P3);
_.A(P3,"ytd-handles-claiming-radio-option-renderer",function(){if(I$V!==void 0)return I$V;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return I$V=G},{mode:1});var pam;var CUC=/^[\x00-\x7F]+$/,Ux=function(){var G=_.m.apply(this,arguments)||this;G.initialRadioIndex="-1";G.isLoading=!1;G.maybeSubmitFeedback=function(){G.feedbackSurveyRenderer.submitSurvey()};
return G};
_.K(Ux,_.m);Ux.prototype.updateSelectedHandleIndexFromBinding=function(G){this.selectedRadioIndex=+G.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(G)};
Ux.prototype.selectedHandleChanged=function(G){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var e;this.selectedHandle=(e=this.handleInput)==null?void 0:e.value;this.onSelectedHandleChanged(G)}};
_.iY.Object.defineProperties(Ux.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var G;return(((G=this.data)==null?void 0:G.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var G;return this.ytRendererBehavior.getSimpleString((G=this.data)==null?void 0:G.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.nQ("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.nQ(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!CUC.test(this.selectedHandle)){var G;return(G=this.data)==null?void 0:G.warningText}}}});
_.B([_.n(),_.x("design:type",Object)],Ux.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],Ux.prototype,"initialRadioIndex",void 0);_.B([_.n(),_.x("design:type",Number)],Ux.prototype,"selectedRadioIndex",void 0);_.B([_.n(),_.x("design:type",String)],Ux.prototype,"selectedHandle",void 0);_.B([_.n(),_.x("design:type",Object)],Ux.prototype,"isLoading",void 0);_.B([_.n(),_.x("design:type",Function)],Ux.prototype,"onSelectedHandleChanged",void 0);
_.B([_.n(),_.x("design:type",Function)],Ux.prototype,"onSelectedRadioIndexChanged",void 0);_.B([_.hs("#channel-handle-input"),_.x("design:type",Object)],Ux.prototype,"handleInput",void 0);_.B([_.hs("ytd-feedback-survey-renderer"),_.x("design:type",Object)],Ux.prototype,"feedbackSurveyRenderer",void 0);_.B([_.d("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],Ux.prototype,"radioButtonLength",null);
_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ux.prototype,"handleUrlPrefix",null);_.B([_.d("selectedHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ux.prototype,"displayHandle",null);_.B([_.d("selectedHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ux.prototype,"displayHandleUrl",null);_.B([_.d("selectedHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ux.prototype,"warningText",null);
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Ux.prototype,"ytRendererBehavior",void 0);_.B([_.c({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],Ux);
_.A(Ux,"ytd-handles-claiming-select-dialog-content",function(){if(pam!==void 0)return pam;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return pam=G},{mode:1});var umd;var zK=function(){var G=_.m.apply(this,arguments)||this;G.actionButtonOverride={style:"mono",type:"filled",size:"M"};G.cancelButtonOverride={style:"mono",type:"text",size:"M"};G.initialRadioIndex="-1";G.selectButtonDisabled=!1;G.isLoading=!1;G.selectedRadioIndexChanged=function(e){G.selectedRadioIndex=Number(e.detail.value)};
G.selectedHandleChanged=function(e){G.selectedHandle=e.detail.value};
return G};
_.K(zK,_.m);_.V=zK.prototype;_.V.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.V.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.V.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.UW(this.hostElement,"yt-refit-popups-action")};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.Pi(this.hostElement,"yt-close-popup-action",[this.is])};
_.V.onSelectHandle=function(){var G=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(r,Z){if(Z.newHandleUpdateStatus!==void 0&&Z.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&Z.newHandleUpdateStatus.errorMessage)_.QO(G.hostElement,_.mG(Z.newHandleUpdateStatus.errorMessage)),
G.isLoading=!1;else{var O;if((O=G.data)==null?0:O.onChannelUpdateSuccess){r=G.data.onChannelUpdateSuccess;Z=_.a(r,_.sP);var M;if(Z==null?0:(M=Z.popup)==null?0:M.handlesClaimingConfirmDialogRenderer)Z.popup.handlesClaimingConfirmDialogRenderer.handle=_.nQ(G.selectedHandle);G.ytComponentBehavior.resolveCommand(r);_.Pi(G.hostElement,"yt-close-popup-action",[G.is])}else G.isLoading=!1}},
onServerError:function(){if(G.selectedRadioIndex===G.radioButtonLength){var r;G.content&&((r=G.content)==null?0:r.handleInput)&&G.content.handleInput.validate()}G.isLoading=!1;_.QO(G.hostElement,_.OK("TRY_AGAIN_LATER"))}}}))}};
_.V.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var G,e;this.selectedHandle=(G=this.content)==null?void 0:(e=G.handleInput)==null?void 0:e.value}else this.selectedRadioIndex>=0&&((G=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(G==null?void 0:G.handle):this.selectedHandle=void 0)};
_.V.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.V.getRadioItem=function(G){if(this.radioButtonLength>G&&G>=0)return _.a(this.data.radioButton[G],rJA)};
_.iY.Object.defineProperties(zK.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var G;return(((G=this.data)==null?void 0:G.radioButton)||[]).length}}});
zK.prototype.onSelectedHandleChanged=zK.prototype.onSelectedHandleChanged;zK.prototype.onSelectedHandleIndexChanged=zK.prototype.onSelectedHandleIndexChanged;zK.prototype.onDataChanged=zK.prototype.onDataChanged;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],zK.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],zK.prototype,"actionButtonOverride",void 0);_.B([_.n(),_.x("design:type",Object)],zK.prototype,"cancelButtonOverride",void 0);
_.B([_.n(),_.x("design:type",Object)],zK.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],zK.prototype,"initialRadioIndex",void 0);_.B([_.n(),_.x("design:type",Number)],zK.prototype,"selectedRadioIndex",void 0);_.B([_.n(),_.x("design:type",String)],zK.prototype,"selectedHandle",void 0);_.B([_.n(),_.x("design:type",Object)],zK.prototype,"selectButtonDisabled",void 0);_.B([_.n(),_.x("design:type",Object)],zK.prototype,"isLoading",void 0);
_.B([_.d("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],zK.prototype,"radioButtonLength",null);_.B([_.hs("ytd-handles-claiming-select-dialog-content"),_.x("design:type",Object)],zK.prototype,"content",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zK.prototype,"onDataChanged",null);
_.B([_.Me("selectedRadioIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zK.prototype,"onSelectedHandleIndexChanged",null);_.B([_.Me("selectedHandle"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zK.prototype,"onSelectedHandleChanged",null);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],zK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.c({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],zK);
_.A(zK,"ytd-handles-claiming-select-dialog-renderer",function(){if(umd!==void 0)return umd;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return umd=G},{mode:1});var naW;var mOd;var W3=function(){return _.m.apply(this,arguments)||this};
_.K(W3,_.m);W3.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],W3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],W3.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],W3.prototype,"data",void 0);_.B([_.c({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],W3);
_.A(W3,"ytd-hotkey-dialog-section-option-renderer",function(){if(mOd!==void 0)return mOd;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return mOd=G},{mode:1});var c18;var NH=function(){return _.m.apply(this,arguments)||this};
_.K(NH,_.m);NH.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],NH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],NH.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],NH.prototype,"data",void 0);_.B([_.c({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],NH);
_.A(NH,"ytd-hotkey-dialog-section-renderer",function(){if(c18!==void 0)return c18;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return c18=G},{mode:1});var Lc=function(){return _.m.apply(this,arguments)||this};
_.K(Lc,_.m);Lc.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Lc.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Lc.prototype,"data",void 0);_.B([_.c({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],Lc);
_.A(Lc,"ytd-hotkey-dialog-content",function(){if(naW!==void 0)return naW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return naW=G},{mode:1});var Y7B;var GT=function(){return _.m.apply(this,arguments)||this};
_.K(GT,_.m);GT.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var G=document.querySelector("ytd-hotkey-dialog-content #scrollable");G&&(G.dialogElement=this.hostElement.parentElement)};
GT.prototype.onCloseTap=function(){_.Pi(this.hostElement,"yt-close-popup-action")};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],GT.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],GT.prototype,"data",void 0);_.B([_.c({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],GT);
_.A(GT,"ytd-hotkey-dialog-renderer",function(){if(Y7B!==void 0)return Y7B;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Y7B=G},{mode:1});var y1o;var eh=function(){return _.m.apply(this,arguments)||this};
_.K(eh,_.m);eh.prototype.onYtServiceRequestError=function(){if(this.blocked){var G;var e=(G=this.data)==null?void 0:G.defaultServiceEndpoint}else{var r;e=(r=this.data)==null?void 0:r.toggledServiceEndpoint}var Z;(e=(Z=_.a(e,_.fLE))==null?void 0:Z.onFailureAction)&&this.ytComponentBehavior.resolveCommand(e);this.updateBlockState(!this.blocked)};
eh.prototype.onYtToggleButton=function(G){this.updateBlockState(G.detail.toggled)};
eh.prototype.updateBlockState=function(G){if(G!==this.blocked){var e=this.blockedEntityKey;e&&this.ytdReduxBehavior.dispatch(_.bt("blockStateEntity",e,{key:e,blocked:G}));this.set("data.isToggled",G)}};
_.iY.Object.defineProperties(eh.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)}}});
eh.prototype.onYtToggleButton=eh.prototype.onYtToggleButton;eh.prototype.onYtServiceRequestError=eh.prototype.onYtServiceRequestError;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],eh.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],eh.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],eh.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],eh.prototype,"blockedEntityKey",void 0);
_.B([_.n({selectorArgs:["blockedEntityKey"],selector:function(G,e){return _.e6(G.entities,"blockStateEntity",e)}}),
_.x("design:type",Object)],eh.prototype,"blockStateEntity",void 0);_.B([_.d("data","blockStateEntity"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],eh.prototype,"blocked",null);_.B([_.Om("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],eh.prototype,"onYtServiceRequestError",null);
_.B([_.Om("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],eh.prototype,"onYtToggleButton",null);_.B([_.c({is:"ytd-block-button",disableElementRegistration:!0})],eh);
_.A(eh,"ytd-block-button",function(){if(y1o!==void 0)return y1o;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return y1o=G},
{mode:1});var A1l;var FnY;var rY=function(){return _.m.apply(this,arguments)||this};
_.K(rY,_.m);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],rY.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],rY.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],rY.prototype,"data",void 0);_.B([_.c({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],rY);
_.A(rY,"ytd-kids-blocklist-picker-item-renderer",function(){if(FnY!==void 0)return FnY;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return FnY=G},{mode:1});var Zy=function(){return _.m.apply(this,arguments)||this};
_.K(Zy,_.m);Zy.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Zy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Zy.prototype,"data",void 0);_.B([_.c({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],Zy);
_.A(Zy,"ytd-kids-blocklist-picker-content",function(){if(A1l!==void 0)return A1l;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return A1l=
G},{mode:_.Px("kevlar_poly_si_batch_j025")?1:2});var J1Y;var OR=function(){var G=_.m.apply(this,arguments)||this;G.hasAnyRequestSucceeded=!1;G.hasAnyRequestFailed=!1;G.numPendingRequests=0;return G};
_.K(OR,_.m);_.V=OR.prototype;_.V.attached=function(){this.hostElement.setAttribute("dialog","")};
_.V.onDoneButtonTap=function(){_.Pi(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.V.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.V.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.V.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.V.onPopupClosed=function(G){var e,r;if(((e=G.detail)==null?void 0:(r=e.popup)==null?void 0:r.is)==="tp-yt-paper-dialog"){var Z;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((Z=this.data)==null?0:Z.successfulToastActionMessage)&&(G=_.Ah(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(G));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
OR.prototype.onPopupClosed=OR.prototype.onPopupClosed;OR.prototype.onYtServiceRequestError=OR.prototype.onYtServiceRequestError;OR.prototype.onYtServiceRequestCompleted=OR.prototype.onYtServiceRequestCompleted;OR.prototype.onYtServiceRequestSent=OR.prototype.onYtServiceRequestSent;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],OR.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],OR.prototype,"ytRendererBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],OR.prototype,"data",void 0);_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OR.prototype,"onYtServiceRequestSent",null);_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OR.prototype,"onYtServiceRequestCompleted",null);
_.B([_.Om("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OR.prototype,"onYtServiceRequestError",null);_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],OR.prototype,"onPopupClosed",null);_.B([_.c({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],OR);
_.A(OR,"ytd-kids-blocklist-picker-renderer",function(){if(J1Y!==void 0)return J1Y;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return J1Y=G},{mode:1});var Bro;var xO2;var Ms=function(){return _.m.apply(this,arguments)||this};
_.K(Ms,_.m);Ms.prototype.setTip=function(G){var e=this;this.data&&(this.tip=ozm(H5H.getInstance(),G,this.data),_.DE(this,function(){_.xy(e.hostElement,"yt-refit")}))};
Ms.prototype.clearTip=function(){this.tip=void 0};
Ms.prototype.computeHidden=function(G){return!G};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Ms.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Ms.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.x("design:type",Boolean)],Ms.prototype,"hidden",void 0);_.B([_.n(),_.x("design:type",Object)],Ms.prototype,"tip",void 0);_.B([_.c({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],Ms);
_.A(Ms,"ytd-menu-popup-tip-renderer",function(){if(xO2!==void 0)return xO2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);
return xO2=G},{mode:1});var PU2;var VL=function(){var G=_.m.apply(this,arguments)||this;G.useIcons=!1;G.systemIcons=_.R("kevlar_system_icons");G.useListItemStyles=_.R("web_list_item_style_for_menu_items");return G};
_.K(VL,_.m);_.V=VL.prototype;_.V.onFocus=function(){var G;(G=_.z1(this.hostElement).querySelector("tp-yt-paper-item"))==null||G.focus()};
_.V.onTap=function(){var G=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(G&&_.a(G,_.LO))this.componentBehavior.resolveCommand(G),this.updateToggledStateInEntity();else if(G){this.componentBehavior.resolveCommand(G)||_.v_().resolve(_.$1).resolveCommand(G,{form:{element:this.hostElement}});var e;((e=_.a(G,_.eq))==null?void 0:e.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.V.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.V.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.V.updateToggledStateInEntity=function(){var G=this.data.toggleMenuServiceItemEntityKey,e=!this.data.isToggled;G&&this.ytdReduxBehavior.dispatch(_.bt("toggleMenuServiceItemEntity",G,{key:G,isToggled:e}))};
_.V.computeIcon=function(G,e,r){return(G=G?r:e)&&G.iconType?_.Ne(G.iconType):""};
_.V.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.V.isIconActive=function(G){return!_.R("toggle_menu_active_icon_killswitch")&&G};
_.iY.Object.defineProperties(VL.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return((G=this.data)==null?0:G.isToggled)?(e=this.data)==null?void 0:e.toggledText:(r=this.data)==null?void 0:r.defaultText}}});
VL.prototype.toggledStateEntityChanged=VL.prototype.toggledStateEntityChanged;VL.prototype.onYtServiceRequestCompleted=VL.prototype.onYtServiceRequestCompleted;VL.prototype.onTap=VL.prototype.onTap;VL.prototype.onFocus=VL.prototype.onFocus;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],VL.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],VL.prototype,"componentBehavior",void 0);
_.B([_.k(_.A5),_.x("design:type",Object)],VL.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],VL.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],VL.prototype,"useIcons",void 0);_.B([_.n({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.x("design:type",String)],VL.prototype,"icon",void 0);
_.B([_.n({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.Iq.toggleMenuServiceItemEntitySelector}),_.x("design:type",Object)],VL.prototype,"toggleMenuServiceItemEntity",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],VL.prototype,"systemIcons",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],VL.prototype,"useListItemStyles",void 0);
_.B([_.Om("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VL.prototype,"onFocus",null);_.B([_.d("data.isToggled"),_.x("design:type",Object),_.x("design:paramtypes",[])],VL.prototype,"toggleButtonText",null);_.B([_.Om("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VL.prototype,"onTap",null);
_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VL.prototype,"onYtServiceRequestCompleted",null);_.B([_.Me("toggleMenuServiceItemEntity.isToggled","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VL.prototype,"toggledStateEntityChanged",null);_.B([_.c({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],VL);
_.A(VL,"ytd-toggle-menu-service-item-renderer",function(){if(PU2!==void 0)return PU2;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return PU2=G},{mode:1});var UO2;var hN=function(){return _.m.apply(this,arguments)||this};
_.K(hN,_.m);hN.prototype.onFocus=function(){var G;(G=_.z1(this.hostElement).querySelector("tp-yt-paper-item"))==null||G.focus()};
_.iY.Object.defineProperties(hN.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.Fy(this.data.iconUrl)}}});
hN.prototype.onFocus=hN.prototype.onFocus;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],hN.prototype,"rendererBehavior",void 0);_.B([_.k(_.t4.YtEndpointBehavior),_.x("design:type",Object)],hN.prototype,"ytEndpointBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],hN.prototype,"data",void 0);_.B([_.Om("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hN.prototype,"onFocus",null);
_.B([_.d("data.iconUrl"),_.x("design:type",Object),_.x("design:paramtypes",[])],hN.prototype,"imageSource",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],hN);
_.A(hN,"ytd-menu-custom-icon-item-renderer",function(){if(UO2!==void 0)return UO2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return UO2=G},{mode:_.Px("kevlar_poly_si_batch_j028")?1:2});_.J_(_.xq,"yt-list-item-view-model",{props:{data:_.N6,isMenuItem:_.N6,isCompact:_.N6,onTap:_.yb,trailingAccessory:_.yb,hideSelectionTextChevron:_.N6,disabled:_.N6,inPopup:_.N6,disableHorizontalPadding:_.N6,isOverlay:_.N6,isToggled:_.N6,ariaLabel:_.N6,ariaPressed:_.N6}});var TT=function(){var G=_.m.apply(this,arguments)||this;G.disableBackdropFilter=_.R("web_disable_backdrop_filter");return G};
_.K(TT,_.m);_.V=TT.prototype;
_.V.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"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.V.computeAriaLabel=function(G){return G};
_.V.onPopupOpened=function(){this.items.selected=0;for(var G=_.h(_.z1(this.items).children),e=G.next();!e.done;e=G.next())e.value.popupPositionTarget=this.positionTarget;if(G=this.popupTip||void 0)G.setTip(this.source||""),this.source=void 0;this.veData&&(G=_.l4())&&_.C_(G,[this.veData])};
_.V.onPopupClosed=function(){var G=this.popupTip||void 0;G&&G.clearTip()};
_.V.onIronActivate=function(G){this.shouldPersist(G)||_.Pi(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(G=_.l4())&&_.n_(G,this.veData)};
_.V.shouldPersist=function(G){var e,r;if(((e=G.detail)==null?void 0:e.selected)===void 0||(r=this.data)==null||!r.items)return!1;var Z,O;return!((O=(Z=this.data.items[G.detail.selected])==null?void 0:Z.toggleMenuServiceItemRenderer)==null||!O.persistentOnMenuPopup)};
_.V.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(G){return G.menuNavigationItemRenderer?!!G.menuNavigationItemRenderer.icon:G.menuServiceItemRenderer?!!G.menuServiceItemRenderer.icon:G.menuConditionalServiceItemRenderer?!!G.menuConditionalServiceItemRenderer.icon:G.menuConditionalNavigationItemRenderer?!!G.menuConditionalNavigationItemRenderer.icon:G.toggleMenuServiceItemRenderer?!!G.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
TT.prototype.onPopupClosed=TT.prototype.onPopupClosed;TT.prototype.onPopupOpened=TT.prototype.onPopupOpened;_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],TT.prototype,"ytEventForwardingBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],TT.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],TT.prototype,"ytRendererBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],TT.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],TT.prototype,"veData",void 0);_.B([_.n({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.x("design:type",String)],TT.prototype,"ariaLabel",void 0);_.B([_.n({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],TT.prototype,"useIcons",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],TT.prototype,"disableBackdropFilter",void 0);_.B([_.hs("#items"),_.x("design:type",Object)],TT.prototype,"items",void 0);_.B([_.hs("ytd-menu-popup-tip-renderer"),_.x("design:type",Object)],TT.prototype,"popupTip",void 0);_.B([_.Om("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],TT.prototype,"onPopupOpened",null);
_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],TT.prototype,"onPopupClosed",null);_.B([_.c({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],TT);
_.A(TT,"ytd-menu-popup-renderer",function(){if(Bro!==void 0)return Bro;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Bro=G},{mode:1});var zf2;var WnV=_.y(function(G){G=_.cx(G,{icon:void 0});var e=G.data;G=G.icon;var r=function(){return e().iconBadgeText},Z={},O=_.LC("yt-spec-icon-badge-shape",function(){a:switch(e().iconBadgeType){case "notification":var M="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":M="yt-spec-icon-badge-shape--type-cart";break a;default:M=""}return M},function(){a:switch(e().iconBadgeStyle){case "overlay":var M="yt-spec-icon-badge-shape--style-overlay";
break a;default:M=""}return M},(Z["yt-spec-icon-badge-shape--text-size-small"]=function(){var M=r();
return!!((M==null?0:M.length)&&M.length>2)},Z));
return _.v("yt-icon-badge-shape",null,_.v(_.S,{cond:G,then:function(M){return _.v("div",{class:O},_.v("div",{class:"yt-spec-icon-badge-shape__icon"},_.v(_.V$,{icon:M})),_.v(_.S,{cond:r,then:function(T){return _.v("div",{class:"yt-spec-icon-badge-shape__badge"},T)}}))}}))},"mj");
WnV.idomCompat=!0;_.J_(WnV,"yt-icon-badge-shape",{props:{data:_.N6,icon:_.N6}});var Dy=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};G.unseenCount=0;G.isOverlay=!1;return G};
_.K(Dy,_.m);_.V=Dy.prototype;_.V.attached=function(){var G=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(e){G.onServiceWorkerMessage(e)})};
_.V.onDataChanged=function(){this.isAttached&&!this.JSC$20806_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20806_lastData=this.data};
_.V.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.V.computeIcon=function(){var G,e;return(G=this.data)==null?void 0:(e=G.icon)==null?void 0:e.iconType};
_.V.onServiceWorkerMessage=function(G){G.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.V.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.a(this.data.updateUnseenCountEndpoint,_.eq)&&_.a(this.data.updateUnseenCountEndpoint,_.eq).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.V.handleUpdateNotificationsUnseenCountAction=function(G){var e=this;G=_.a(G,xR8);G!=null&&G.unseenCount&&G.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(G.unseenCount),_.A0.addLowPriorityJob(function(){e.data.updateUnseenCountEndpoint&&e.ytComponentBehavior.resolveCommand(e.data.updateUnseenCountEndpoint)},G.timeoutMs))};
_.V.onClick=function(){_.xy(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var G=_.UW(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),e=this.data.menuRequest;G&&G.length===1&&G[0]?_.Pi(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):e&&this.ytComponentBehavior.resolveCommand(e)};
_.V.handleTopbarMenuClosedAction=function(G){G==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.V.toggleIconState=function(G){this.iconButton&&(this.iconButton.pressed=G)};
_.V.sendUnseenCountRequest=function(G){var e=this;_.IQ(_.A0,function(){e.ytComponentBehavior.resolveCommand(G)})};
_.V.updateCountUI=function(G){this.set("unseenCount",G<9?G:"9+")};
_.iY.Object.defineProperties(Dy.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
Dy.prototype.handleUpdateNotificationsUnseenCountAction=Dy.prototype.handleUpdateNotificationsUnseenCountAction;Dy.prototype.onDataChanged=Dy.prototype.onDataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Dy.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Dy.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h5),_.x("design:type",Object)],Dy.prototype,"ytdOpenPopupBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Dy.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Dy.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],Dy.prototype,"unseenCount",void 0);_.B([_.n(),_.x("design:type",Object)],Dy.prototype,"isOverlay",void 0);_.B([_.n({value:!0}),_.x("design:type",Boolean)],Dy.prototype,"showTooltips",void 0);_.B([_.hs("yt-icon-button"),_.x("design:type",Object)],Dy.prototype,"iconButton",void 0);
_.B([_.d("unseenCount"),_.x("design:type",Object),_.x("design:paramtypes",[])],Dy.prototype,"showNotificationCount",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dy.prototype,"onDataChanged",null);_.B([_.Om("yt-update-notifications-unseen-count-action"),_.x("design:type",Function),_.x("design:paramtypes",[Object]),_.x("design:returntype")],Dy.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.B([_.c({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],Dy);
_.A(Dy,"ytd-notification-topbar-button-renderer",function(){if(zf2!==void 0)return zf2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return zf2=G},{mode:_.Px("kevlar_poly_si_batch_j025")?1:2});var Nro;var ER=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return G};
_.K(ER,_.m);ER.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}}}}}};
ER.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
ER.prototype.onDarkModeToggled=function(G){this.dark=G};
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],ER.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],ER.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ER.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ER.prototype,"data",void 0);_.B([_.n({value:!0,reflectToAttribute:!0}),_.x("design:type",Boolean)],ER.prototype,"dark",void 0);
_.B([_.c({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],ER);
_.A(ER,"yt-pdg-buy-flow-header-renderer",function(){if(Nro!==void 0)return Nro;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Nro=G},{mode:1});var LnB;var GQA;var i$=function(){var G=_.m.apply(this,arguments)||this;G.immediateValue=0;G.isDarkTheme=!1;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.K(i$,_.m);_.V=i$.prototype;_.V.created=function(){_.x6.requestAvailability()};
_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.V.dataChanged=function(){var G=_.z1(this.hostElement).querySelector("#color-slider");G.immediateValue&&this.updateSliderKnobAndGradientStyles(G.immediateValue);this.data.notches[0].knobColorArgb&&_.eD(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.jF(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.xZ("HTML_DIR")==="rtl"&&_.z1(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.V.onSliderImmediateChange=function(){var G=_.z1(this.hostElement).querySelector("#color-slider");G.dragging&&(G.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(G.immediateValue),this.updateSliderKnobAndGradientStyles(G.immediateValue)),this.updateSliderAria())};
_.V.onSliderChange=function(){var G=_.z1(this.hostElement).querySelector("#color-slider");G.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(G.immediateValue),this.updateSliderKnobAndGradientStyles(G.immediateValue));this.updateSliderAria()};
_.V.updateSliderAria=function(){var G=_.z1(this.hostElement).querySelector("#color-slider"),e=_.z1(this.hostElement).querySelector("#color-slider");e=_.mG(this.data.notches[e.immediateValue].tierValue);_.t$S()&&_.xy(this.hostElement,"iron-announce",{text:e});G.setAttribute("aria-valuetext",e)};
_.V.updateSuperThanksSelectedTierEntity=function(G){if(G!==this.immediateValue){var e,r,Z=this==null?void 0:(e=this.data)==null?void 0:(r=e.superThanksSelectedTierEntity)==null?void 0:r.key;Z&&Z.length>0&&this.ytdReduxBehavior.dispatch(_.bt("superThanksSelectedTierEntity",Z,{key:Z,index:G}))}};
_.V.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.V.updateSliderKnobAndGradientStyles=function(G){this.immediateValue=G;G=this.data.notches[G];if(G==null?0:G.knobColorArgb)var e={"--ytd-pdg-color-slider-knob-color":_.jF(G.knobColorArgb)};(G==null?0:G.linearGradientCssStyle)&&e!==null&&(e=Object.assign({},e,{"--ytd-pdg-color-slider-active-color":G==null?void 0:G.linearGradientCssStyle}));e!==null&&_.eD(this.hostElement,e)};
i$.prototype.onSliderChange=i$.prototype.onSliderChange;i$.prototype.onSliderImmediateChange=i$.prototype.onSliderImmediateChange;i$.prototype.dataChanged=i$.prototype.dataChanged;_.B([_.n(),_.x("design:type",Object)],i$.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],i$.prototype,"immediateValue",void 0);_.B([_.n(),_.x("design:type",Number)],i$.prototype,"maxMarkers",void 0);
_.B([_.n({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:jVl}),_.x("design:type",Object)],i$.prototype,"superThanksSelectedTierEntity",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],i$.prototype,"isDarkTheme",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],i$.prototype,"ytdReduxBehavior",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],i$.prototype,"dataChanged",null);
_.B([_.Om("immediate-value-change"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],i$.prototype,"onSliderImmediateChange",null);_.B([_.Om("change"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],i$.prototype,"onSliderChange",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],i$);
_.A(i$,"ytd-pdg-color-slider-renderer",function(){if(GQA!==void 0)return GQA;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return GQA=G},{mode:1});var eSW;var rw8;var b$=null;
_.ts({is:"ytd-comment-input",_template:function(){if(rw8!==void 0)return rw8;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return rw8=G},
behaviors:[_.O5f.YtHostElementBehavior,_.fS,_.F9.YtComponentBehavior,_.h4.YtRendererstamperBehavior,_.L4c.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 _.Wk}},
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",_.ZQ(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;_.Sk();this.focus()},
detached:function(){document.removeEventListener("tap",_.ZQ(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(G){G=G.detail;G=G.isCustomEmoji?G.shortcuts[0]:G.emojiId;var e=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(e,G);this.maybeUpdateTextDirection_();_.xy(this.hostElement,"input")},
getInputRange_:function(){var G=_.z_();if(G){G=G.getBrowserRangeObject();for(var e=G.commonAncestorContainer;e;){if(e===this.getEditableTextArea_())return G;e=e.parentNode}}G=this.getEditableTextArea_();G=_.cu(G,G.childNodes.length);G.select();return G.getBrowserRangeObject()},
insertTextWithEmojis_:function(G,e,r){(e=this.emojiManager.createDocumentFragment(e,!0,!1,r===void 0?!0:r))&&e.childNodes.length!==0&&(G.collapsed||G.deleteContents(),r=e.lastChild,G.insertNode(e),_.hPv(r).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var G=_.z_();if(G){var e=G.JSC$11352_getStartNode(),r=G.JSC$11352_getEndNode();if(Mc8(e)&&Mc8(r)){var Z=G.JSC$11352_getStartOffset(),O;if(_.GB&&e.nodeType===Node.ELEMENT_NODE&&(O=_.hGl(e)))_.cu(O,0).select();else{O=Mf(e)?e:_.B2(e,Mf);var M=Mf(r)?r:_.B2(r,Mf);if(O||M)if(G.isCollapsed()){if(e.nodeType===Node.TEXT_NODE){G=!0;Z===e.length&&(G=!1);if(b$==="end"||b$==="right")G=!1;e=e.parentNode;G=[].concat(_.mY(e.parentNode.childNodes)).indexOf(e)+(G?0:1);_.cu(e.parentNode,
G).select()}}else O?O.previousSibling&&O.previousSibling.length>0?_.YM(r,G.JSC$11352_getEndOffset(),O.previousSibling,O.previousSibling.length-1).select():(e=document.createTextNode("\u200b"),O.parentNode.insertBefore(e,O),_.YM(r,G.JSC$11352_getEndOffset(),e,0).select()):M&&(M.nextSibling&&M.nextSibling.length>0?_.YM(e,G.JSC$11352_getStartOffset(),M.nextSibling,1).select():(r=document.createTextNode("\u200b"),M.parentNode.insertBefore(r,M.nextSibling),_.YM(e,G.JSC$11352_getStartOffset(),r,r.length).select()));
b$=null}}else b$=null}else b$=null},
leftKeyPressed_:function(){b$="left"},
rightKeyPressed_:function(){b$="right"},
endKeyPressed_:function(){b$="end"},
maybeDeleteChip_:function(){var G=i2o(!0);if(G){var e=_.z_(),r=e.JSC$11352_getStartNode();e=e.JSC$11352_getStartOffset();_.pV(r,e,G,G.childNodes.length).select()}},
maybeBackspaceChip_:function(){var G=i2o(!1);if(G){var e=_.z_(),r=e.JSC$11352_getStartNode();e=e.JSC$11352_getStartOffset();_.pV(r,e,G,0).select()}},
maybeBackspaceChipWordMode_:function(G){var e=_.z_();if(e.isCollapsed()){var r=e.JSC$11352_getStartNode();e=e.JSC$11352_getStartOffset();var Z=b22(r,e,!0);Z&&(_.pV(r,e,Z,0).select(),document.execCommand("delete"),G.preventDefault(),G.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(G){var e=_.z_();if(e.isCollapsed()){var r=e.JSC$11352_getStartNode();e=e.JSC$11352_getStartOffset();var Z=b22(r,e,!1);Z&&(_.pV(r,e,Z,Z.childNodes.length).select(),document.execCommand("delete"),G.preventDefault(),G.stopImmediatePropagation())}},
onContentClick:function(G){G.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(G){G.defaultPrevented||G.currentTarget.tagName==="YTD-COMMENT-INPUT"&&Mf(G.target)&&G.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.z1(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.z1(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(G,e){G=h5W(G,this.emojiManager,e).cloneNode(!0);for(e=G.firstChild;e;)if(e.nodeType!==1)e=e.nextSibling;else switch(e.tagName){case "BR":var r=_.kS();_.$Kw(r,e);e=r.nextSibling;break;case "DIV":(r=e.lastChild)&&e.nextSibling&&_.sg(_.kS(),r);e.previousSibling&&(e.previousSibling.nodeType===1||e.previousSibling.nodeType===3&&!e.previousSibling.textContent.endsWith("\n"))&&_.oi(_.kS(),e);r&&r.nodeName==="BR"&&_.d1(r);r=e;e.hasChildNodes()?(e=e.firstChild,
_.Swn(r)):(e=e.nextSibling,_.d1(r));break;default:e=e.nextSibling}return vjV(G)},
setTextAreaValue:function(G){G||(G="");var e=this.getEditableFormattedString_();e.text="";this.getEditableTextArea_().innerText="";typeof G==="string"&&(G={runs:[{text:G}]});e.text=G},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();b$=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var G=this.getEditableTextArea_();G&&(_.cu(G,G.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.xZ("HTML_DIR")==="rtl"){var G=this.getEditableTextArea_(),e=this.getTextAreaValue()!==""?"auto":"rtl";G.setAttribute("dir",e)}},
handleInputEvent_:function(){var G=null;if(this.isEmojiButtonDisplayed){var e=this.getInputRange_();e&&(G=this.emojiInput.retrieveTextBeforeRange(e))}this.insertText_(G,!0);this.updateCharCount_();G=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=G.scrollHeight>G.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var G=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:G})},
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(G){this.isEmojiButtonDisplayed&&(G.preventDefault(),G.stopImmediatePropagation(),G=G.clipboardData.getData("text/plain"),this.insertText_(G,!1,!1),_.xy(this.hostElement,"input"))},
insertText_:function(G,e,r){e=e===void 0?!1:e;r=r===void 0?!0:r;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&G){var Z=this.getInputRange_().cloneRange();this.emojiManager&&Z&&(e&&this.emojiInput.offsetStartOfRangeBy(Z,G.length),this.insertTextWithEmojis_(Z,G,r),Vcl(this.getEditableTextArea_().lastChild)||(Z=this.getInputRange_().cloneRange()),Z&&(this.emojiInput.updateSuggestions(Z,G),this.updateSuggestionOffset_(Z)))}},
getSimpleString:_.mG,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(G){return G?"focused":"not-focused"},
computePlaceholderText_:function(G){return this.getSimpleString(G)},
computeEditableText_:function(G){return this.getSimpleString(G)},
onPrefilledContentDismissed_:function(G){G.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(G,e){G?this.fire("yt-autonav-pause-focus"):e!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(G){var e=this.getEditableTextArea_();[].concat(_.mY(G.dataTransfer.items)).forEach(function(r){r.kind==="string"&&r.type.match("^text/plain")&&r.getAsString(function(Z){e.appendChild(document.createTextNode(Z))})});
G.preventDefault()},
preventDefault_:function(G){G.preventDefault()},
onSuggestionInsert_:function(G){this.insertTextWithEmojis_(G.detail.range,G.detail.text)},
onEmojiSuggestionClick_:function(G){this.emojiInput.insertSuggestion(G.detail)},
updateSuggestionOffset_:function(G){if(this.emojiInput&&_.z1(this.emojiInput).querySelector("#dropdown")){var e=this.getEditableTextArea_().getBoundingClientRect().bottom,r=G.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(e-r)+5;e=this.getEditableTextArea_().getBoundingClientRect().left;G=G.getBoundingClientRect().left-e;_.z1(this.emojiInput).querySelector("#dropdown").style.marginLeft=G+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.PG("yt-post"));return this.localStorage}});var vD=function(){var G=_.m.apply(this,arguments)||this;G.currentCommentOptionIndex=0;G.isEmojiPickerDisplayed=!1;G.emojiManager=_.Wk;G.isUgcEmpty=!1;G.userGeneratedCommentChangedHandler=function(){_.xy(G.hostElement,"ytd-pdg-user-generated-comment-changed");G.isEmojiYtdCommentInputEnabled&&(G.isUgcEmpty=!G.ytdCommentInputEl.getTextAreaValue())};
G.pasteHandler=function(e){e.preventDefault();e.stopImmediatePropagation();var r;if(e=(r=e.clipboardData)==null?void 0:r.getData("text/plain"))r=document.getSelection().getRangeAt(0),r.collapsed||r.deleteContents(),e=document.createTextNode(e),r.insertNode(e),r.selectNodeContents(e),r.collapse(!1),e=window.getSelection(),e.removeAllRanges(),e.addRange(r)};
G.onDocumentClick=function(e){if(G.isEmojiPickerDisplayed){var r,Z,O;!(e.target instanceof Node)||(r=e.composedPath())!=null&&r.includes(G.editableTextEl)||(Z=e.composedPath())!=null&&Z.includes(G.emojiButtonEl)||(O=e.composedPath())!=null&&O.includes(G.emojiPickerEl)||(G.isEmojiPickerDisplayed=!1)}};
return G};
_.K(vD,_.m);_.V=vD.prototype;_.V.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.V.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.V.detached=function(){var G;(G=this.contentEl)==null||G.removeEventListener("input",this.userGeneratedCommentChangedHandler);var e;(e=this.contentEl)==null||e.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.V.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.V.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var G;this.contentEl.textContent=this.rendererBehavior.getSimpleString((G=this.data)==null?void 0:G.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.V.reloadEmojis=function(){this.emojiPickerEl&&_.a(this.emojiPicker,_.heW)&&this.emojiPickerEl.updateEmojiCategories()};
_.V.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.eD(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.V.handleBackgroundColorStyling=function(){var G;if((G=this.currentCommentOption)==null?0:G.commentBackgroundColorArgb){var e;_.eD(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.jF((e=this.currentCommentOption)==null?void 0:e.commentBackgroundColorArgb)})}else _.eD(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.V.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var G;(G=this.contentEl)==null||G.focus()}};
_.V.onEditButtonClick=function(G){var e=document.getSelection();e&&this.contentEl&&(G.stopPropagation(),G.preventDefault(),e.selectAllChildren(this.contentEl),e.collapseToEnd())};
_.V.onContentDrop=function(G){var e=this;if(G.dataTransfer){G=_.h(G.dataTransfer.items);for(var r=G.next();!r.done;r=G.next())r=r.value,r.kind==="string"&&r.type.match("^text/plain")&&r.getAsString(function(Z){var O;(O=e.contentEl)==null||O.appendChild(document.createTextNode(Z))})}};
_.V.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.V.getUserGeneratedCommentText=function(){var G,e=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(G=this.contentEl)==null?void 0:G.textContent;return e?e.trim():""};
_.V.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.V.onEmojiSelect=function(G){this.ytdCommentInputEl.onEmojiSelect(G)};
_.iY.Object.defineProperties(vD.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.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 G;return!((G=this.currentCommentOption)==null||!G.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var G;if(_.a((G=this.currentCommentOption)==null?void 0:G.chipRenderer,_.dGP)){var e;return _.a((e=this.currentCommentOption)==null?void 0:e.chipRenderer,_.dGP)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var G,e;return((G=this.data)==null?0:G.commentOptionRenderers)?_.a((e=this.data)==null?void 0:e.commentOptionRenderers[this.superThanksSelectedTierEntity.index],gEV):void 0}var r,Z;return((r=this.data)==null?0:r.commentOptionRenderers)?_.a((Z=this.data)==null?void 0:Z.commentOptionRenderers[this.currentCommentOptionIndex],gEV):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var G;return this.rendererBehavior.getSimpleString((G=this.data)==null?void 0:G.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var G;return this.rendererBehavior.getSimpleString((G=this.data)==null?void 0:G.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var G,e;return(e=_.a((G=this.data)==null?void 0:G.commentDialog,_.Xuv))==null?void 0:e.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var G,e;return(e=_.a((G=this.data)==null?void 0:G.commentDialog,_.Xuv))==null?void 0:e.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var G,e;return(e=_.a((G=this.data)==null?void 0:G.commentDialog,_.Xuv))==null?void 0:e.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var G,e,r=(e=_.a((G=this.data)==null?void 0:G.commentDialog,_.Xuv))==null?void 0:e.emojiPicker;if(!_.a(r,_.heW)||!_.a(r,_.heW).categories)return!1;G=function(M){return M.emojiPickerCategoryRenderer?M.emojiPickerCategoryRenderer.emojiIds&&M.emojiPickerCategoryRenderer.emojiIds.length>0:M.emojiPickerUpsellCategoryRenderer?M.emojiPickerUpsellCategoryRenderer.emojis&&M.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var Z,O;return((Z=_.a(r,_.heW))==null?0:(O=Z.categories)==null?0:O.find(G))?!0:!1}}});
vD.prototype.onEmojiSelect=vD.prototype.onEmojiSelect;vD.prototype.dataChanged=vD.prototype.dataChanged;vD.prototype.currentCommentOptionChanged=vD.prototype.currentCommentOptionChanged;_.B([_.k(_.A5),_.x("design:type",Object)],vD.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],vD.prototype,"rendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],vD.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.hs("#content-dom-if"),_.x("design:type",_.lD)],vD.prototype,"contentDomIfEl",void 0);_.B([_.hs("#content-no-emojis"),_.x("design:type",HTMLElement)],vD.prototype,"contentEl",void 0);_.B([_.hs("#container"),_.x("design:type",HTMLElement)],vD.prototype,"containerEl",void 0);_.B([_.hs("#comment-chip-container"),_.x("design:type",HTMLElement)],vD.prototype,"paidCommentChipContainerEl",void 0);_.B([_.hs("#text-input"),_.x("design:type",HTMLElement)],vD.prototype,"editableTextEl",void 0);
_.B([_.hs("#emoji-button"),_.x("design:type",HTMLElement)],vD.prototype,"emojiButtonEl",void 0);_.B([_.hs("#emoji-picker > yt-emoji-picker-renderer"),_.x("design:type",Object)],vD.prototype,"emojiPickerEl",void 0);_.B([_.hs("#text-input > ytd-comment-input"),_.x("design:type",Object)],vD.prototype,"ytdCommentInputEl",void 0);_.B([_.n(),_.x("design:type",Object)],vD.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],vD.prototype,"currentCommentOptionIndex",void 0);
_.B([_.n({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:jVl}),_.x("design:type",Object)],vD.prototype,"superThanksSelectedTierEntity",void 0);_.B([_.n(),_.x("design:type",Object)],vD.prototype,"isEmojiPickerDisplayed",void 0);_.B([_.n(),_.x("design:type",Object)],vD.prototype,"emojiManager",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],vD.prototype,"isUgcEmpty",void 0);
_.B([_.Me("currentCommentOption"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vD.prototype,"currentCommentOptionChanged",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vD.prototype,"dataChanged",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],vD.prototype,"isEmojiYtdCommentInputEnabled",null);
_.B([_.d("data.title"),_.x("design:type",Object),_.x("design:paramtypes",[])],vD.prototype,"title",null);_.B([_.d("data.authorText"),_.x("design:type",Object),_.x("design:paramtypes",[])],vD.prototype,"channelName",null);_.B([_.d("data.commentOptionRenderers","currentCommentOption"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],vD.prototype,"shouldShowPaidCommentChipRenderer",null);
_.B([_.d("data.commentOptionRenderers","currentCommentOption"),_.x("design:type",Object),_.x("design:paramtypes",[])],vD.prototype,"paidCommentChipRenderer",null);_.B([_.d("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],vD.prototype,"currentCommentOption",null);
_.B([_.d("data.defaultCommentText","superThanksSelectedTierEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],vD.prototype,"commentText",null);_.B([_.d("data.placeholderText"),_.x("design:type",Object),_.x("design:paramtypes",[])],vD.prototype,"placeholderText",null);_.B([_.d("data.commentDialog.commentDialogRenderer.editableText"),_.x("design:type",Object),_.x("design:paramtypes",[])],vD.prototype,"editableText",null);
_.B([_.d("data.commentDialog.commentDialogRenderer.emojiButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],vD.prototype,"emojiButton",null);_.B([_.d("data.commentDialog.commentDialogRenderer.emojiPicker"),_.x("design:type",Object),_.x("design:paramtypes",[])],vD.prototype,"emojiPicker",null);
_.B([_.d("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],vD.prototype,"isEmojiButtonDisplayed",null);_.B([_.Om("yt-emoji-select"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],vD.prototype,"onEmojiSelect",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],vD);
_.A(vD,"ytd-pdg-comment-preview-renderer",function(){if(eSW!==void 0)return eSW;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return eSW=G},{mode:2});var ZGY;var wY=function(){var G=_.m.apply(this,arguments)||this;G.selected=!1;return G};
_.K(wY,_.m);_.V=wY.prototype;_.V.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.V.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.V.dataChanged=function(){this.data&&(_.W1(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.eD(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.jF(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.jF(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.V.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.V.onClick=function(){this.logClick()};
_.V.onKeyboardSelect=function(){_.xy(this.hostElement,"tap");this.onClick()};
_.V.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
wY.prototype.onClick=wY.prototype.onClick;wY.prototype.selectedChanged=wY.prototype.selectedChanged;wY.prototype.dataChanged=wY.prototype.dataChanged;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],wY.prototype,"componentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],wY.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.fS),_.x("design:type",Object)],wY.prototype,"ironA11yKeysBehavior",void 0);
_.B([_.k(_.IR),_.x("design:type",Object)],wY.prototype,"ironSelectableBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],wY.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],wY.prototype,"shownThumbnail",void 0);_.B([_.n(),_.x("design:type",Object)],wY.prototype,"basePriceText",void 0);_.B([_.n(),_.x("design:type",Object)],wY.prototype,"purchaseCommand",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],wY.prototype,"selected",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wY.prototype,"dataChanged",null);_.B([_.Me("selected"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wY.prototype,"selectedChanged",null);_.B([_.Om("click"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wY.prototype,"onClick",null);
_.B([_.c({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],wY);
_.A(wY,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(ZGY!==void 0)return ZGY;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return ZGY=G},{mode:1});var $7=function(){var G=_.m.apply(this,arguments)||this;G.selectedItemIndex=0;G.buyButtonDisabled=!1;return G};
_.K($7,_.m);_.V=$7.prototype;
_.V.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]]"}}}}}};
_.V.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var G;var e=(G=_.a(this.data.colorSlider,tPa))==null?void 0:G.notches[this.selectedItemIndex].purchaseCommand}else{var r;e=(r=_.a(this.data.selectableItemButtons[this.selectedItemIndex],RqC))==null?void 0:r.purchaseCommand}if(e){G=_.a(e,_.$RS);G.productData||(G.productData={});var Z;G.productData={pdgData:{commentMessageText:(Z=this.commentPreviewRenderer)==null?void 0:Z.getUserGeneratedCommentText()}};
_.xy(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(e)}}};
_.V.dataChanged=function(){if(this.data){_.Wk.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.dTy(_.Wk,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.Wk.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var G;this.buyButtonDisabled=!((G=_.a(this.data.commentPreview,l5a))==null||!G.placeholderText);this.updatePriceSelectorStatus();var e;if((e=this.data)==null?0:e.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;G=[];this.data.preloadImages&&(G=this.data.preloadImages);
G=G.map(function(r){return _.BQ(r.thumbnails,1920)});
G=_.h(G);for(e=G.next();!e.done;e=G.next())(e=e.value)&&_.nos(e).thenCatch(function(){_.FH(Error("Il"))})}};
_.V.superThanksSelectedTierEntityChanged=function(){var G;(this==null?void 0:(G=this.superThanksSelectedTierEntity)==null?void 0:G.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.V.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.V.updatePriceSelectorStatus=function(){this.isColorSlider?(_.z1(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.z1(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.z1(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.z1(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.V.closeBuyFlow=function(){_.Pi(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.V.onUserGeneratedContentChanged=function(){var G;this.buyButtonDisabled=!((G=this.commentPreviewRenderer)==null?0:G.getUserGeneratedCommentText())};
_.V.updateSelectedItemIndexFromBinding=function(G){this.selectedItemIndex=G.detail.value};
_.iY.Object.defineProperties($7.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.disclaimerText)}}});
$7.prototype.onUserGeneratedContentChanged=$7.prototype.onUserGeneratedContentChanged;$7.prototype.closeBuyFlow=$7.prototype.closeBuyFlow;$7.prototype.selectedItemIndexChanged=$7.prototype.selectedItemIndexChanged;$7.prototype.superThanksSelectedTierEntityChanged=$7.prototype.superThanksSelectedTierEntityChanged;$7.prototype.dataChanged=$7.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],$7.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],$7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],$7.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],$7.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],$7.prototype,"selectedItemIndex",void 0);_.B([_.n(),_.x("design:type",Boolean)],$7.prototype,"isColorSlider",void 0);
_.B([_.n(),_.x("design:type",Object)],$7.prototype,"buyButtonDisabled",void 0);_.B([_.n({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:jVl}),_.x("design:type",Object)],$7.prototype,"superThanksSelectedTierEntity",void 0);_.B([_.hs("ytd-pdg-comment-preview-renderer"),_.x("design:type",Object)],$7.prototype,"commentPreviewRenderer",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],$7.prototype,"ytdReduxBehavior",void 0);
_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$7.prototype,"dataChanged",null);_.B([_.Me("superThanksSelectedTierEntity"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$7.prototype,"superThanksSelectedTierEntityChanged",null);_.B([_.Me("selectedItemIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$7.prototype,"selectedItemIndexChanged",null);
_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$7.prototype,"closeBuyFlow",null);_.B([_.Om("ytd-pdg-user-generated-comment-changed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$7.prototype,"onUserGeneratedContentChanged",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],$7.prototype,"isDisclaimerTextShown",null);
_.B([_.c({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],$7);
_.A($7,"yt-super-vod-buy-flow-content-renderer",function(){if(LnB!==void 0)return LnB;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return LnB=G},{mode:1});var OGH;var Sh=function(){var G=_.m.apply(this,arguments)||this;G.lottieAnimationRef={};return G};
_.K(Sh,_.m);_.V=Sh.prototype;_.V.created=function(){_.x6.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.ZQ(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.V.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.xy(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.V.detached=function(){this.autoCloseJobId&&_.A0.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.ZQ(this,this.onPopupIronOverlayOpened))};
_.V.dataChanged=function(){var G=this;this.data&&this.data.autoCloseDelay&&(_.Pi(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.za(_.A0,function(){G.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.eD(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.V.onDOMLoadedLottie=function(){var G=this,e,r,Z=Number((e=this.data)==null?void 0:(r=e.autoCloseDelay)==null?void 0:r.seconds)||0;this.fadeOutJobId=_.za(_.A0,function(){G.lottiePlayerEl.classList.add("fadeout")},(Z-.25)*1E3);
this.autoCloseJobId=_.za(_.A0,function(){G.closePopup()},Z*1E3)};
_.V.openPopup=function(){this.ironOverlayBehavior.open()};
_.V.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.Pi(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.Wi(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.v_().resolve(_.$1).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.A0.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.A0.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.V.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var G,e;(G=this.lottieAnimationRef)==null||(e=G.lottieEl)==null||e.destroy();G=this.data.lottie;var r,Z;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:G.url+"_"+Math.random(),path:G.url,autoplay:!0,loop:(Z=(r=G.settings)==null?void 0:r.loop)!=null?Z:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.iY.Object.defineProperties(Sh.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var G,e;return!!((G=this.data)==null?0:(e=G.lottie)==null?0:e.url)}}});
Sh.prototype.maybeInitializeLottie=Sh.prototype.maybeInitializeLottie;Sh.prototype.dataChanged=Sh.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Sh.prototype,"rendererBehavior",void 0);_.B([_.k(_.Nw),_.x("design:type",Object)],Sh.prototype,"ironOverlayBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Sh.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],Sh.prototype,"lottiePlayerProps",void 0);
_.B([_.n(),_.x("design:type",Object)],Sh.prototype,"lottieAnimationRef",void 0);_.B([_.hs("ytd-lottie-player"),_.x("design:type",HTMLElement)],Sh.prototype,"lottiePlayerEl",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Sh.prototype,"dataChanged",null);_.B([_.d("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Sh.prototype,"hasLottieAnimation",null);
_.B([_.Me("data.lottie.url"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Sh.prototype,"maybeInitializeLottie",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],Sh);
_.A(Sh,"ytd-desktop-image-overlay-renderer",function(){if(OGH!==void 0)return OGH;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return OGH=G},{mode:1});var Mp8;var qs=function(){return _.m.apply(this,arguments)||this};
_.K(qs,_.m);_.V=qs.prototype;_.V.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"}}}}};
_.V.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",_.ZQ(this,this.closePopup))};
_.V.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.ZQ(this,this.closePopup))};
_.V.dataChanged=function(){_.UW(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.a(this.data.header,qUH)&&(this.hasBackgroundBanner=!!_.a(this.data.header,qUH).backgroundBanner)};
_.V.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.ZQ(this,this.closePopup))};
_.V.closePopup=function(){this.data&&this.data.onCloseCommand&&_.zw(this.hostElement,[this.data.onCloseCommand])};
qs.prototype.handleBuyflowSelectionSubmitted=qs.prototype.handleBuyflowSelectionSubmitted;qs.prototype.dataChanged=qs.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],qs.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],qs.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],qs.prototype,"data",void 0);
_.B([_.n({value:!0,reflectToAttribute:!0}),_.x("design:type",Boolean)],qs.prototype,"hasBackgroundBanner",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qs.prototype,"dataChanged",null);_.B([_.Om("yt-pdg-buy-flow-selection-submitted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qs.prototype,"handleBuyflowSelectionSubmitted",null);
_.B([_.c({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],qs);
_.A(qs,"ytd-pdg-buy-flow-renderer",function(){if(Mp8!==void 0)return Mp8;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Mp8=G},{mode:1});var Vp8;var tN=function(){var G=_.m.apply(this,arguments)||this;G.isOpen=!1;G.isPlaylistCreated=!1;return G};
_.K(tN,_.m);_.V=tN.prototype;_.V.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.V.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.xy(this.hostElement,"yt-refit")};
_.V.onCreateTap=function(){var G=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.zw(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(e,r){if(!_.R("killswitch_ep_in_create_playlist_response")&&(r==null?0:r.actions))for(e=_.h(r.actions),r=e.next();!r.done;r=e.next())r=r.value,_.a(r,_.gB)&&G.ytComponentBehavior.resolveCommand(r)}}]),this.isPlaylistCreated=!0)};
_.V.onKeydown=function(G){if(G.keyCode===13)this.onCreateTap()};
_.V.onServiceRequestCompleted=function(G){G.stopPropagation();_.Pi(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.V.computePrivacyBadge=function(G){return G?[{metadataBadgeRenderer:G}]:[]};
tN.prototype.onServiceRequestCompleted=tN.prototype.onServiceRequestCompleted;tN.prototype.onKeydown=tN.prototype.onKeydown;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],tN.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],tN.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],tN.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],tN.prototype,"isOpen",void 0);
_.B([_.n(),_.x("design:type",Object)],tN.prototype,"isPlaylistCreated",void 0);_.B([_.n({value:{REQUIRED_LABEL:_.OK("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.OK("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.x("design:type",Object)],tN.prototype,"addToStrings",void 0);_.B([_.n({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.x("design:type",Array)],tN.prototype,"privacyBadge",void 0);
_.B([_.hs("#privacy-input"),_.x("design:type",Object)],tN.prototype,"privacyInput",void 0);_.B([_.hs("#name-input"),_.x("design:type",Object)],tN.prototype,"nameInput",void 0);_.B([_.Om("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],tN.prototype,"onKeydown",null);_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],tN.prototype,"onServiceRequestCompleted",null);
_.B([_.c({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],tN);
_.A(tN,"ytd-add-to-playlist-create-renderer",function(){if(Vp8!==void 0)return Vp8;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Vp8=G},{mode:1});var hSl;var Tul;var gY=function(){var G=_.m.apply(this,arguments)||this;G.transferState="TRANSFER_STATE_UNKNOWN";return G};
_.K(gY,_.m);gY.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
gY.prototype.onCheckboxChange=function(G){var e=this;this.data&&_.sm(this,"yt-playlist-checkbox-changed",function(){var r=_.mk(G).checked?e.data.addToPlaylistServiceEndpoint:e.data.removeFromPlaylistServiceEndpoint;r&&_.v_().resolve(_.$1).resolveCommand(r,{form:{element:e.hostElement}});_.R("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)};
gY.prototype.computeIconType=function(G){return G?"yt-icons:"+G.toLowerCase():null};
gY.prototype.dataChanged=gY.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],gY.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],gY.prototype,"data",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],gY.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],gY.prototype,"ytComponentBehavior",void 0);_.B([_.hs("#checkbox"),_.x("design:type",HTMLInputElement)],gY.prototype,"checkbox",void 0);
_.B([_.n({selector:_.fQ,selectorArgs:["data.playlistId"]}),_.x("design:type",String)],gY.prototype,"transferState",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gY.prototype,"dataChanged",null);_.B([_.c({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],gY);
_.A(gY,"ytd-playlist-add-to-option-renderer",function(){if(Tul!==void 0)return Tul;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Tul=G},{mode:1});var DbW=_.y(function(G){var e=G.data;return _.v("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.v("div",null,_.v(_.Wh,{text:function(){return e().title}})),_.v(_.S,{cond:function(){return e().subtitle},
then:function(r){return _.v("div",{class:"ytdMenuTitleRendererSubtitle"},_.v(_.Wh,{text:r}))}}))},"nj");
DbW.idomCompat=!0;_.J_(DbW,"ytd-menu-title-renderer",{props:{data:_.N6}});var l$=function(){var G=_.m.apply(this,arguments)||this;G.addToStrings={ADD_TO_DROPDOWN_LABEL:_.OK("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};G.closeButtonAriaLabel=_.OK("SBOX_INAPPROPRIATE_CANCEL");G.dialog=_.R("desktop_add_to_playlist_renderer_dialog_popup");return G};
_.K(l$,_.m);_.V=l$.prototype;_.V.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"}}}};
_.V.onPopupOpened=function(){_.Nv(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.V.onPopupClosed=function(){_.Nv(this.playlists,"scrollable",!1)};
_.V.computeAriaLabel=function(){var G;if(this==null?0:(G=this.data)==null?0:G.actions){G=_.h(this.data.actions);for(var e=G.next();!e.done;e=G.next())if(e=e.value,e.menuTitleRenderer)return _.mG(e.menuTitleRenderer.title)}};
_.V.onTapClose=function(){_.Pi(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.iY.Object.defineProperties(l$.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var G;if(this==null?0:(G=this.data)==null?0:G.actions){G=_.h(this.data.actions);for(var e=G.next();!e.done;e=G.next())if(e=e.value,e.menuTitleRenderer)return e.menuTitleRenderer}return!1}}});
l$.prototype.onPopupClosed=l$.prototype.onPopupClosed;l$.prototype.onPopupOpened=l$.prototype.onPopupOpened;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],l$.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],l$.prototype,"ytEventForwardingBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],l$.prototype,"ytRendererStamperBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],l$.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],l$.prototype,"addToStrings",void 0);_.B([_.n({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.x("design:type",String)],l$.prototype,"ariaLabel",void 0);_.B([_.n(),_.x("design:type",String)],l$.prototype,"closeButtonAriaLabel",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],l$.prototype,"dialog",void 0);
_.B([_.hs("#playlists"),_.x("design:type",HTMLElement)],l$.prototype,"playlists",void 0);_.B([_.hs("ytd-add-to-playlist-create-renderer"),_.x("design:type",Object)],l$.prototype,"createRenderer",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],l$.prototype,"menuTitleRenderer",null);_.B([_.Om("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],l$.prototype,"onPopupOpened",null);
_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],l$.prototype,"onPopupClosed",null);_.B([_.c({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],l$);
_.A(l$,"ytd-add-to-playlist-renderer",function(){if(hSl!==void 0)return hSl;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return hSl=G},{mode:1});var EK8;var Rz=function(){var G=_.m.apply(this,arguments)||this;G.isPlaylistEditComplete=!1;G.isCollabEngagementDisabled=!1;G.closeButtonAriaLabel=_.OK("SBOX_INAPPROPRIATE_CANCEL");G.saveButton={title:_.OK("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"};G.onValueChanged=function(){G.updateSaveButtonState();G.computeCollabEngagementDisabled()};
return G};
_.K(Rz,_.m);_.V=Rz.prototype;_.V.attached=function(){this.JSC$20860_scroller&&(this.JSC$20860_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20860_scroller.attached&&typeof this.JSC$20860_scroller.attached==="function"&&this.JSC$20860_scroller.attached())};
_.V.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.V.onPopupClosed=function(){this.reset()};
_.V.close=function(){_.Pi(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.V.onClickSave=function(){var G=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 r=Number(this.privacyInput.value);isNaN(r)||e.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:r})}this.votingInput.value!==null&&(r=this.votingInput.value)&&e.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:r});if(e.length>0){var Z;_.a((Z=this.data)==null?void 0:Z.updateSettingsEndpoint,_.BV).actions=e;var O;if((O=this.data)==null?0:O.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){G.close()}}}),this.isPlaylistEditComplete=!0}}};
_.V.computePrivacyBadge=function(G){return G?[{metadataBadgeRenderer:G}]:[]};
_.V.computeEditorData=function(G){var e,r;return G==null?void 0:(e=G.sections)==null?void 0:(r=e[0])==null?void 0:r.playlistSettingsEditorCasualSectionRenderer};
_.V.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.V.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}}}}}};
_.V.computeAriaLabel=function(){var G,e,r,Z=(G=this.data)==null?void 0:(e=G.sections)==null?void 0:(r=e[0])==null?void 0:r.playlistSettingsEditorCasualSectionRenderer;return _.mG(Z==null?void 0:Z.title)};
_.V.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"}))};
_.V.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.V.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.V.isNameChanged=function(){var G,e,r;return(((G=this.editorData)==null?void 0:(e=G.name)==null?void 0:(r=e.textInputFormFieldRenderer)==null?void 0:r.value)||"")!==(this.nameInput.value||"")};
_.V.isDescriptionChanged=function(){var G,e,r;return(((G=this.editorData)==null?void 0:(e=G.description)==null?void 0:(r=e.textInputFormFieldRenderer)==null?void 0:r.value)||"")!==(this.descriptionInput.value||"")};
_.V.isPrivacyChanged=function(){var G,e,r,Z,O,M,T,E;return((T=(G=this.editorData)==null?void 0:(e=G.privacy)==null?void 0:(r=e.dropdownFormFieldRenderer)==null?void 0:(Z=r.dropdown)==null?void 0:(O=Z.dropdownRenderer)==null?void 0:(M=O.entries)==null?void 0:M.find(function(b){var w;return b==null?void 0:(w=b.privacyDropdownItemRenderer)==null?void 0:w.isSelected}))==null?void 0:(E=T.privacyDropdownItemRenderer)==null?void 0:E.int32Value)!==this.privacyInput.value};
_.V.isVotingChanged=function(){var G,e,r,Z,O,M,T,E;return((T=(G=this.editorData)==null?void 0:(e=G.voting)==null?void 0:(r=e.dropdownFormFieldRenderer)==null?void 0:(Z=r.dropdown)==null?void 0:(O=Z.dropdownRenderer)==null?void 0:(M=O.entries)==null?void 0:M.find(function(b){var w;return b==null?void 0:(w=b.privacyDropdownItemRenderer)==null?void 0:w.isSelected}))==null?void 0:(E=T.privacyDropdownItemRenderer)==null?void 0:E.int32Value)!==this.votingInput.value};
Rz.prototype.onPopupClosed=Rz.prototype.onPopupClosed;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Rz.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Rz.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],Rz.prototype,"ytEventForwardingBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Rz.prototype,"ytRendererStamperBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],Rz.prototype,"data",void 0);_.B([_.n({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.x("design:type",Array)],Rz.prototype,"privacyBadge",void 0);_.B([_.n({computed:"computeEditorData(data)"}),_.x("design:type",Object)],Rz.prototype,"editorData",void 0);_.B([_.n(),_.x("design:type",Object)],Rz.prototype,"isPlaylistEditComplete",void 0);_.B([_.n(),_.x("design:type",Object)],Rz.prototype,"isCollabEngagementDisabled",void 0);
_.B([_.n({value:{REQUIRED_LABEL:_.OK("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.OK("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.x("design:type",Object)],Rz.prototype,"addToStrings",void 0);_.B([_.n({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.x("design:type",String)],Rz.prototype,"ariaLabel",void 0);_.B([_.n(),_.x("design:type",String)],Rz.prototype,"closeButtonAriaLabel",void 0);
_.B([_.n(),_.x("design:type",Object)],Rz.prototype,"saveButton",void 0);_.B([_.hs("#name-input"),_.x("design:type",Object)],Rz.prototype,"nameInput",void 0);_.B([_.hs("#description-input"),_.x("design:type",Object)],Rz.prototype,"descriptionInput",void 0);_.B([_.hs("#privacy-input"),_.x("design:type",Object)],Rz.prototype,"privacyInput",void 0);_.B([_.hs("#voting-input"),_.x("design:type",Object)],Rz.prototype,"votingInput",void 0);
_.B([_.hs("#scroller"),_.x("design:type",Object)],Rz.prototype,"JSC$20860_scroller",void 0);_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Rz.prototype,"onPopupClosed",null);_.B([_.n(),_.x("design:type",Object)],Rz.prototype,"onValueChanged",void 0);_.B([_.c({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],Rz);
_.A(Rz,"ytd-playlist-settings-editor-renderer",function(){if(EK8===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);EK8=G}G=EK8;return G},{mode:1});var iGW;_.te("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var jh=function(){return _.m.apply(this,arguments)||this};
_.K(jh,_.m);_.V=jh.prototype;_.V.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}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.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 G=this.get("data.nextButton.buttonRenderer.navigationEndpoint");G&&(this.nextNavigationEndpoint=G,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.V.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 G={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",G)}}};
_.V.onPopupOpened=function(G){G.detail!==this&&G.detail!==this.hostElement||!_.R("enable_premium_voluntary_pause")||_.Pi(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.V.onNextButtonTap=function(){var G=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);G&&this.ytdOpenPopupBehavior.openPopup(G)};
_.V.updateSelectedResponseIndexFromBinding=function(G){this.selectedResponseIndex=G.detail.value};
jh.prototype.onPopupOpened=jh.prototype.onPopupOpened;jh.prototype.onSelectedResponseIndexChange=jh.prototype.onSelectedResponseIndexChange;jh.prototype.dataChanged=jh.prototype.dataChanged;_.B([_.k(_.h5),_.x("design:type",Object)],jh.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],jh.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],jh.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],jh.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Number)],jh.prototype,"selectedResponseIndex",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jh.prototype,"dataChanged",null);_.B([_.Me("selectedResponseIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jh.prototype,"onSelectedResponseIndexChange",null);
_.B([_.Om("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],jh.prototype,"onPopupOpened",null);_.B([_.c({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],jh);
_.A(jh,"ytd-red-cancel-survey-renderer",function(){if(iGW!==void 0)return iGW;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return iGW=G},{mode:1});var bG8;var az=function(){var G=_.m.apply(this,arguments)||this;G.closeButtonAriaLabel=_.OK("SBOX_INAPPROPRIATE_CANCEL");return G};
_.K(az,_.m);az.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
az.prototype.onClickClose=function(){_.Pi(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],az.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],az.prototype,"rendererStamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],az.prototype,"data",void 0);_.B([_.n(),_.x("design:type",String)],az.prototype,"closeButtonAriaLabel",void 0);_.B([_.c({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],az);
_.A(az,"ytd-search-filter-options-dialog-renderer",function(){if(bG8!==void 0)return bG8;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return bG8=G},{mode:1});var vKA;var Sio=function(){return function(G){G=G.availabilityType;return G===void 0||G==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||G==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var XV=function(){var G=_.m.apply(this,arguments)||this;G.qualityOptions=[];G.upsellOptions=[];G.showUpsellSection=!1;G.rememberSettingsChecked=!1;return G};
_.K(XV,_.m);_.V=XV.prototype;_.V.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}}}}};
_.V.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.V.updateQualityOptions=function(){if(this.formats===void 0)_.Pi(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var G=[],e=[];this.showUpsellSection=!1;for(var r=_.h(this.formats),Z=r.next();!Z.done;Z=r.next())(Z=Z.value)&&(Z.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?e.push(Z):G.push(Z));G.length&&(this.qualityOptions=$_m(G));e.length&&(this.showUpsellSection=!0,this.upsellOptions=$_m(e))}};
_.V.updateRememberString=function(){if(this.downloadQualityPickerEntity)var G=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var e;G=(e=this.data)==null?void 0:e.premiumRememberSettingString}else{var r;G=(r=this.data)==null?void 0:r.rememberSettingString}G=G===void 0?_.OK("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):G;this.rememberSettingsCheckboxRenderer={title:_.Bn(G),disabled:!1}};
_.V.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.iY.Object.defineProperties(XV.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var G;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(G=this.data)==null?void 0:G.qualityFormats}}});
XV.prototype.updateRememberString=XV.prototype.updateRememberString;XV.prototype.updateQualityOptions=XV.prototype.updateQualityOptions;XV.prototype.dataChanged=XV.prototype.dataChanged;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],XV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],XV.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],XV.prototype,"data",void 0);
_.B([_.k(_.A5),_.x("design:type",Object)],XV.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Boolean)],XV.prototype,"selectedUpsellQuality",void 0);_.B([_.n({computed:"computeIcon_(data.premiumIcon)",value:""}),_.x("design:type",String)],XV.prototype,"premiumIcon",void 0);_.B([_.n({selector:ghY,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.x("design:type",Object)],XV.prototype,"downloadQualityPickerEntity",void 0);
_.B([_.n(),_.x("design:type",Array)],XV.prototype,"qualityOptions",void 0);_.B([_.n(),_.x("design:type",Array)],XV.prototype,"upsellOptions",void 0);_.B([_.n(),_.x("design:type",Object)],XV.prototype,"showUpsellSection",void 0);_.B([_.n(),_.x("design:type",Object)],XV.prototype,"rememberSettingsCheckboxRenderer",void 0);_.B([_.hs("#remember-settings"),_.x("design:type",HTMLInputElement)],XV.prototype,"rememberSettingsCheckbox",void 0);
_.B([_.n(),_.x("design:type",Object)],XV.prototype,"rememberSettingsChecked",void 0);_.B([_.n(),_.x("design:type",Function)],XV.prototype,"onRememberSettingsCheckedChanged",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XV.prototype,"dataChanged",null);_.B([_.Me("downloadQualityPickerEntity"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XV.prototype,"updateQualityOptions",null);
_.B([_.Me("selectedUpsellQuality"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XV.prototype,"updateRememberString",null);_.B([_.c({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],XV);
_.A(XV,"ytd-download-quality-selector-content",function(){if(vKA!==void 0)return vKA;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return vKA=G},{mode:1});var wlm;var Ku=function(){var G=_.m.apply(this,arguments)||this;G.selectedUpsellQuality=!1;G.qualityOptions=[];G.useUpsellDismissAlternate=_.R("use_not_now_dl_upsell_dismiss_cta");G.shouldShowAlternateUpsellDimiss=!1;G.rememberSettings=!1;G.rememberSettingsChecked=!1;G.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};G.rememberSettingsCheckedChanged=function(e){G.rememberSettingsChecked=e};
return G};
_.K(Ku,_.m);_.V=Ku.prototype;
_.V.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Bn(_.OK("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Bn(_.OK("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Bn(_.OK("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Bn(_.OK("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.V.updateQualityOptions=function(){this.formats===void 0?_.Pi(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=$_m(this.formats)};
_.V.onQualityOptionsSelect=function(G){if(this.qualityOptions&&G){G!==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=_.h(this.qualityOptions.entries()),r=e.next();!r.done;r=
e.next()){r=_.h(r.value);var Z=r.next().value;r=r.next().value;var O=void 0,M=void 0;if(((O=r)==null?void 0:(M=O.settingsRadioOptionRenderer)==null?void 0:M.id)===G){this.selectedQualityIndex=Z;G=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((G=this.formats[Z])==null?void 0:G.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.V.onClickSubmit=function(){var G;if((G=this.downloadButtonRenderer)==null||!G.isDisabled){var e,r;G=(r=(e=this.data)==null?void 0:e.onSubmitEndpoint)!=null?r:{};var Z,O;if(this.formats&&(((Z=_.a(G,_.O2))==null?0:Z.videoId)||((O=_.a(G,_.Mo))==null?0:O.playlistId))){var M,T,E,b,w,q;e={formatType:(b=(M=this.formats)==null?void 0:(T=M[(E=this.selectedQualityIndex)!=null?E:0])==null?void 0:T.format)!=null?b:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(w=this.getOfflineEndpoint(G))==null?void 0:(q=w.actionParams)==null?void 0:q.settingsAction)};this.getOfflineEndpoint(G).actionParams=e;this.ytComponentBehavior.resolveCommand(G)}_.Pi(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.V.onClickUpsell=function(){var G;if((G=this.upsellButtonRenderer)==null||!G.isDisabled){var e,r;G=(r=(e=this.data)==null?void 0:e.upsellEndpoint)!=null?r:{};this.ytComponentBehavior.resolveCommand(G);_.Pi(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);e="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var Z,O,M,T;e=(T=(Z=this.formats)==null?void 0:(O=Z[(M=this.selectedQualityIndex)!=null?M:0])==null?void 0:O.format)!=null?T:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:e}})}};
_.V.onClickClose=function(){_.Pi(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.V.getOfflineSettingsAction=function(G,e){return G?e===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":e:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.V.getOfflineEndpoint=function(G){return _.a(G,_.O2)?_.a(G,_.O2):_.a(G,_.Mo)};
_.iY.Object.defineProperties(Ku.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.Bn(_.OK("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var G;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(G=this.data)==null?void 0:G.qualityFormats}}});
Ku.prototype.updateQualityOptions=Ku.prototype.updateQualityOptions;Ku.prototype.dataChanged=Ku.prototype.dataChanged;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Ku.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Ku.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Ku.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Ku.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Ku.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Number)],Ku.prototype,"selectedQualityIndex",void 0);_.B([_.n(),_.x("design:type",Object)],Ku.prototype,"selectedUpsellQuality",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],Ku.prototype,"ytdReduxBehavior",void 0);
_.B([_.n({selector:ghY,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.x("design:type",Object)],Ku.prototype,"downloadQualityPickerEntity",void 0);_.B([_.n(),_.x("design:type",Array)],Ku.prototype,"qualityOptions",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ku.prototype,"useUpsellDismissAlternate",void 0);_.B([_.n(),_.x("design:type",Object)],Ku.prototype,"shouldShowAlternateUpsellDimiss",void 0);
_.B([_.n(),_.x("design:type",Object)],Ku.prototype,"downloadButtonRenderer",void 0);_.B([_.n(),_.x("design:type",Object)],Ku.prototype,"upsellButtonRenderer",void 0);_.B([_.n(),_.x("design:type",Object)],Ku.prototype,"cancelButtonRenderer",void 0);_.B([_.n(),_.x("design:type",Object)],Ku.prototype,"upsellCancelButtonRenderer",void 0);_.B([_.n(),_.x("design:type",Object)],Ku.prototype,"rememberSettings",void 0);_.B([_.n(),_.x("design:type",Object)],Ku.prototype,"rememberSettingsChecked",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ku.prototype,"dataChanged",null);_.B([_.Me("downloadQualityPickerEntity"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ku.prototype,"updateQualityOptions",null);_.B([_.c({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],Ku);
_.A(Ku,"ytd-download-quality-selector-renderer",function(){if(wlm!==void 0)return wlm;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return wlm=G},{mode:1});var $bY;var fu=function(){return _.m.apply(this,arguments)||this};
_.K(fu,_.m);fu.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
fu.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"}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],fu.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],fu.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],fu.prototype,"data",void 0);_.B([_.n({computed:"computeIcon_(data.infoIcon)"}),_.x("design:type",Object)],fu.prototype,"infoIcon",void 0);
_.B([_.n({computed:"computeIcon_(data.warningIcon)"}),_.x("design:type",Object)],fu.prototype,"warningIcon",void 0);_.B([_.c({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],fu);
_.A(fu,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if($bY!==void 0)return $bY;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return $bY=G},{mode:1});var SvY;var k7=function(){return _.m.apply(this,arguments)||this};
_.K(k7,_.m);k7.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
k7.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"}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],k7.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],k7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],k7.prototype,"data",void 0);_.B([_.c({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],k7);
_.A(k7,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(SvY!==void 0)return SvY;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return SvY=G},{mode:1});var qv8;var HD=function(){return _.m.apply(this,arguments)||this};
_.K(HD,_.m);HD.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
HD.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"}}}}};
HD.prototype.onServiceRequestSentOrCompleted=function(G,e){e&&e.actions&&e.actions.length>0&&_.Pi(this.hostElement,"yt-close-popup-action",[this.is])};
HD.prototype.onServiceRequestSentOrCompleted=HD.prototype.onServiceRequestSentOrCompleted;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],HD.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],HD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],HD.prototype,"data",void 0);
_.B([_.Om("yt-service-request-completed"),_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.n1]),_.x("design:returntype")],HD.prototype,"onServiceRequestSentOrCompleted",null);_.B([_.c({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],HD);
_.A(HD,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(qv8!==void 0)return qv8;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return qv8=G},{mode:1});var tpA;var dY=function(){var G=_.m.apply(this,arguments)||this;G.submitButtonDisabled=!0;return G};
_.K(dY,_.m);_.V=dY.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.V.onDataChanged=function(){var G,e,r;if(((G=this.data)==null?void 0:(e=G.confirmButton)==null?void 0:(r=e.buttonRenderer)==null?void 0:r.isDisabled)!==void 0){var Z,O,M;this.submitButtonDisabled=(Z=this.data)==null?void 0:(O=Z.confirmButton)==null?void 0:(M=O.buttonRenderer)==null?void 0:M.isDisabled}};
_.V.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.V.updateSubmitButtonDisabledFromBinding=function(G){this.submitButtonDisabled=G.detail.value};
_.V.updateSubmitButtonDisabledFromConfirmCheckbox=function(G){this.submitButtonDisabled=!G.detail.value};
dY.prototype.onDataChanged=dY.prototype.onDataChanged;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],dY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],dY.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],dY.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],dY.prototype,"submitButtonDisabled",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dY.prototype,"onDataChanged",null);_.B([_.c({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],dY);
_.A(dY,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(tpA!==void 0)return tpA;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return tpA=G},{mode:1});var gKd;var oz=function(){return _.m.apply(this,arguments)||this};
_.K(oz,_.m);_.iY.Object.defineProperties(oz.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var G,e,r;return((G=this.data)==null?void 0:G.title)+" "+((e=this.data)==null?void 0:e.metadataPrimary)+" "+((r=this.data)==null?void 0:r.metadataSecondary)}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],oz.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],oz.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],oz.prototype,"data",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],oz.prototype,"ariaLabel",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],oz);
_.A(oz,"ytd-compact-product-list-item-renderer",function(){if(gKd!==void 0)return gKd;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return gKd=G},{mode:1});var l0o;var sR=function(){return _.m.apply(this,arguments)||this};
_.K(sR,_.m);sR.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]]"}}}}}};
_.iY.Object.defineProperties(sR.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],sR.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],sR.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],sR.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],sR.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],sR);
_.A(sR,"ytd-compact-product-list-renderer",function(){if(l0o!==void 0)return l0o;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return l0o=G},{mode:1});var RS8;var QL=function(){return _.m.apply(this,arguments)||this};
_.K(QL,_.m);_.V=QL.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.V.getBackgroundUrl=function(){var G=this.get("data.headerImage.thumbnails");return G?"url("+_.BQ(G,this.hostElement.clientWidth)+")":""};
_.V.onDataChanged=function(){var G=this.getBackgroundUrl();G&&(this.header.style.backgroundImage=G);G=_.l4();var e=_.go(),r=this.get("data.trackingParams");r&&e&&G&&_.QU(G,e,_.b1(r));G=_.h(this.hostElement.querySelectorAll("yt-img-shadow"));for(e=G.next();!e.done;e=G.next())e.value.onShow()};
_.V.onPopupClosed=function(G){_.mk(G).localName==="ytd-membership-post-cancel-renderer"&&_.Pi(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
QL.prototype.onPopupClosed=QL.prototype.onPopupClosed;QL.prototype.onDataChanged=QL.prototype.onDataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],QL.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],QL.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],QL.prototype,"data",void 0);_.B([_.hs("#header"),_.x("design:type",HTMLDivElement)],QL.prototype,"header",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QL.prototype,"onDataChanged",null);_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],QL.prototype,"onPopupClosed",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],QL);
_.A(QL,"ytd-membership-post-cancel-renderer",function(){if(RS8!==void 0)return RS8;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return RS8=G},{mode:1});var j0H;var Iz=function(){return _.m.apply(this,arguments)||this};
_.K(Iz,_.m);Iz.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
Iz.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Iz.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Iz.prototype,"data",void 0);_.B([_.hs("ytd-feedback-survey-renderer"),_.x("design:type",Object)],Iz.prototype,"feedbackSurveyRenderer",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],Iz);
_.A(Iz,"ytd-sponsorship-confirm-cancel-content",function(){if(j0H!==void 0)return j0H;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return j0H=G},{mode:1});var a0V;var pu=function(){var G=_.m.apply(this,arguments)||this;G.maybeSubmitFeedback=function(){G.content&&G.content.maybeSubmitFeedback()};
return G};
_.K(pu,_.m);_.V=pu.prototype;_.V.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.V.onYtPopupOpened=function(G,e){e===this&&this.data&&this.data.onOpenCommands&&_.Wi(this.hostElement,this.data.onOpenCommands,this.hostElement);_.Pi(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.V.onYtPopupClosed=function(G,e){(e&&e.canceled===!0||e&&e.canceled===!1&&e.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.Wi(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.V.onYtServiceRequestCompleted=function(){_.Pi(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.V.onYtServiceRequestError=function(G){_.QO(this.hostElement,G.detail.error.message)};
_.V.onDataChanged=function(){if(this.isAttached){var G=this.backgroundUrl;G&&(_.z1(this.hostElement).querySelector("#header").style.backgroundImage=G)}};
_.iY.Object.defineProperties(pu.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var G=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return G?"url("+_.BQ(G,this.hostElement.clientWidth)+")":""}}});
pu.prototype.onDataChanged=pu.prototype.onDataChanged;pu.prototype.onYtServiceRequestError=pu.prototype.onYtServiceRequestError;pu.prototype.onYtServiceRequestCompleted=pu.prototype.onYtServiceRequestCompleted;pu.prototype.onYtPopupClosed=pu.prototype.onYtPopupClosed;pu.prototype.onYtPopupOpened=pu.prototype.onYtPopupOpened;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],pu.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],pu.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],pu.prototype,"data",void 0);_.B([_.n({value:function(){return _.OK("SBOX_INAPPROPRIATE_CANCEL")}}),
_.x("design:type",String)],pu.prototype,"closeButtonAriaLabel",void 0);_.B([_.hs("#scrollable"),_.x("design:type",Object)],pu.prototype,"scrollable",void 0);_.B([_.hs("ytd-sponsorship-confirm-cancel-content"),_.x("design:type",Object)],pu.prototype,"content",void 0);_.B([_.Om("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],pu.prototype,"onYtPopupOpened",null);
_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],pu.prototype,"onYtPopupClosed",null);_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],pu.prototype,"onYtServiceRequestCompleted",null);
_.B([_.Om("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],pu.prototype,"onYtServiceRequestError",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pu.prototype,"onDataChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],pu);
_.A(pu,"ytd-sponsorship-confirm-cancel-renderer",function(){if(a0V!==void 0)return a0V;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return a0V=G},{mode:_.Px("kevlar_poly_si_batch_j081")?1:2});var XlV;var Cu=function(){return _.m.apply(this,arguments)||this};
_.K(Cu,_.m);Cu.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Cu.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Cu.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],Cu);
_.A(Cu,"ytd-sponsorships-celebration-content",function(){if(XlV!==void 0)return XlV;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return XlV=
G},{mode:1});var KbV;var f0m=_.Cp(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),u$=function(){var G=_.m.apply(this,arguments)||this;G.scriptsAppended=!1;G.useFullWidthPrimaryButton=!1;G.buttonOverrides={type:"tonal",style:"overlay-dark"};return G};
_.K(u$,_.m);_.V=u$.prototype;_.V.dataChanged=function(){var G;this.useFullWidthPrimaryButton=!((G=this.data)==null||!G.useFullWidthPrimaryButton)};
_.V.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:_.R("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.onDataChanged=function(){var G;(G=this.header)==null||G.style.setProperty("background-color",this.backgroundColor);if(G=this.headerImageUrl){var e;(e=this.header)==null||e.style.setProperty("background-image",G)}e=_.l4(4);G=_.go(4);var r=this.get("data.trackingParams");if(r&&G&&e){var Z=_.b1(r);_.QU(e,G,Z);_.R("combine_ve_grafts")?_.h_().graftServerVe(r,G,4):_.QU(e,G,Z)}e=_.h(this.hostElement.querySelectorAll("yt-img-shadow"));for(G=e.next();!G.done;G=e.next())G.value.onShow();if(e=this.get("data.gtmId"))_.sZ(e,
_.xZ("GL","")),this.setupConversionTracking()};
_.V.setupConversionTracking=function(){if(!this.scriptsAppended){var G=document.createElement("script");_.Vw(G,_.Of(f0m.join("")));document.head.appendChild(G);G=document.createElement("noscript");G.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(G);this.scriptsAppended=!0}};
_.V.onPopupClosed=function(G){if(_.mk(G).localName==="ytd-sponsorships-celebration-renderer"){_.Pi(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var e;this.data&&((e=this.data)==null?0:e.dismissCommand)&&_.Ga.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.iY.Object.defineProperties(u$.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var G=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.jF(G)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var G=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return G?"url("+_.BQ(G,this.hostElement.getBoundingClientRect().width)+")":""}}});
u$.prototype.onPopupClosed=u$.prototype.onPopupClosed;u$.prototype.onDataChanged=u$.prototype.onDataChanged;u$.prototype.dataChanged=u$.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],u$.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],u$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],u$.prototype,"data",void 0);
_.B([_.hs("#header"),_.x("design:type",HTMLElement)],u$.prototype,"header",void 0);_.B([_.n(),_.x("design:type",Object)],u$.prototype,"scriptsAppended",void 0);_.B([_.n({type:Boolean,reflectToAttribute:!0}),_.x("design:type",Object)],u$.prototype,"useFullWidthPrimaryButton",void 0);_.B([_.n(),_.x("design:type",Object)],u$.prototype,"buttonOverrides",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u$.prototype,"dataChanged",null);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u$.prototype,"onDataChanged",null);_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],u$.prototype,"onPopupClosed",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],u$);
_.A(u$,"ytd-sponsorships-celebration-renderer",function(){if(KbV!==void 0)return KbV;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return KbV=G},{mode:1});var kQV;var nu=function(){var G=_.m.apply(this,arguments)||this;G.isToggleChecked=!1;return G};
_.K(nu,_.m);nu.prototype.onDataChanged=function(){var G;this.isToggleChecked=((G=this.data)==null?void 0:G.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
nu.prototype.close=function(){var G;((G=this.data)==null?0:G.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
nu.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var G,e=_.a((G=this.data)==null?void 0:G.switchButton,ju8);e&&(this.isToggleChecked&&e.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(e.switchOnInnertubeCommand),!this.isToggleChecked&&e.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(e.switchOffInnertubeCommand))};
nu.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
nu.prototype.onDataChanged=nu.prototype.onDataChanged;_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],nu.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],nu.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],nu.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],nu.prototype,"isToggleChecked",void 0);_.B([_.n({value:_.OK("CLOSE")}),_.x("design:type",String)],nu.prototype,"closeButtonAriaLabel",void 0);
_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nu.prototype,"onDataChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],nu);
_.A(nu,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(kQV!==void 0)return kQV;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return kQV=G},{mode:1});var HGd;var mh=function(){return _.m.apply(this,arguments)||this};
_.K(mh,_.m);_.V=mh.prototype;_.V.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"}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.detached=function(){this.playerElement.stop()};
_.V.onYtServiceRequestCompleted=function(){_.Pi(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.V.onYtServiceRequestError=function(G){_.QO(this.hostElement,G.detail.error.message)};
_.V.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.V.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.V.getTier=function(G,e){return!G||!G.tiers||e<0?null:_.a(G.tiers[e],f5H)};
_.V.moreThanOne=function(G){return!!(G&&G.length>1)};
_.V.tierOverviewTap=function(G){var e=this;this.selectedTier=G.model.index;_.DE(this,function(){_.xy(e.hostElement,"yt-refit")})};
_.V.computeSelectedClass=function(G,e){return this.isSelected(G,e)?"selected":""};
_.V.computeButtonAriaPressed=function(G,e){return this.isSelected(G,e)?"true":"false"};
_.V.isSelected=function(G,e){return G===e};
_.V.onDataChanged=function(){_.z1(this.hostElement).querySelector("#header-overlay").style.visibility="";_.z1(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 G=_.h(this.hostElement.querySelectorAll("yt-img-shadow")),
e=G.next();!e.done;e=G.next())e.value.onShow();var r;this.set("selectedTier",(r=this.get("data.targetTierIndex"))!=null?r:0);var Z;(G=(Z=this.data)==null?void 0:Z.onVisible)&&this.ytComponentBehavior.resolveCommand(G)};
_.V.initializeVe=function(G){var e=_.l4(),r=_.go(),Z=this.get("data.trackingParams");r&&e&&(this.screenLayer=4,e=_.N0(_.MRf)(void 0,69877,{clientScreenNonce:e,visualElement:r},void 0,void 0,void 0),_.jW(e,69877,4),r=_.go(4),Z&&r&&(Z=_.b1(Z),_.QU(e,r,Z),G&&(this.offerVideoVe=_.L1(74659),_.QU(e,Z,this.offerVideoVe))))};
_.V.setHeaderBackground=function(){var G=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.z1(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.jF(G);if(G=this.getHeaderImage())G=_.BQ(G,screen.width),_.z1(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+G+")"};
_.V.getHeaderImage=function(){var G=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&G?G:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.V.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.V.setupVideoPlayer=function(G){var e=this,r,Z,O,M;return _.D(function(T){if(T.nextAddress==1)return r=e.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),Z=e.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.R("kevlar_player_update_killswitch")?e.playerElement.update({args:{autoplay:r,video_id:G,player_params:Z}}):e.playerElement.loadVideoWithPlayerVars({autoplay:r,video_id:G,player_params:Z}),
T.yield(e.playerElement.getPlayerPromise(),2);O=T.yieldResult;O.addEventListener("onStateChange",function(E){e.onPlayerStateChange(E)});
O.setScreenLayer(e.screenLayer);(M=_.l4(4))&&e.offerVideoVe&&_.p_(M,e.offerVideoVe);r&&(e.pauseOtherPlayers(),e.playerElement.focusOnPlayer(),e.playerElement.getPlayer().hideControls(),_.IQ(_.A0,function(){e.fadeOutHeaderOverlay()},4E3));
_.HL(T)})};
_.V.onPlayerStateChange=function(G){G===1?this.backgroundPlayerElement&&(G=this.backgroundPlayerElement.player_.getPlayerState(),G!==1&&G!==3||this.backgroundPlayerElement.pause()):G===0&&(_.z1(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.z1(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.V.fadeOutHeaderOverlay=function(){_.z1(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.V.onHeaderTap=function(){if(this.offerVideo){_.z1(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var G;((G=this.playerElement.player_)==null?void 0:G.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(G=_.l4(4))&&this.offerVideoVe&&_.n_(G,this.offerVideoVe)}};
_.V.getBackgroundImageLayerClass=function(G){return G?"background-image-layer-with-video":""};
_.V.getHeaderClass=function(G){return G?"header-with-video":""};
_.V.getHeaderOverlayClass=function(G){return G?"header-overlay-with-video":""};
_.V.getTitleContainerClass=function(G,e){return G?"title-container-with-video":e?"title-container-without-video-flexible":"title-container-without-video"};
_.V.tierTitleDisplayStatus=function(G){return this.moreThanOne(G)?"hide":"show"};
_.V.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.v_().resolve(_.fp).getPlayerElement():this.backgroundPlayerElement=_.Ff();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var G=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=G===1||G===3;this.backgroundPlayerElement.pause()}};
_.V.isMiniplayerActive=function(){return _.v_().resolve(_.fp).isMiniplayerActive()};
_.V.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eG("selected-tier-changed",this.selectedTier))};
mh.prototype.selectedTierChangedForBinding=mh.prototype.selectedTierChangedForBinding;mh.prototype.onDataChanged=mh.prototype.onDataChanged;mh.prototype.onYtPopupClosed=mh.prototype.onYtPopupClosed;mh.prototype.onYtPopupOpened=mh.prototype.onYtPopupOpened;mh.prototype.onYtServiceRequestError=mh.prototype.onYtServiceRequestError;mh.prototype.onYtServiceRequestCompleted=mh.prototype.onYtServiceRequestCompleted;
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],mh.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],mh.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],mh.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],mh.prototype,"data",void 0);_.B([_.n({value:0}),_.x("design:type",Number)],mh.prototype,"selectedTier",void 0);
_.B([_.n({value:""}),_.x("design:type",String)],mh.prototype,"offerVideo",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],mh.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.B([_.n({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.zS(this)}}),
_.x("design:type",String)],mh.prototype,"playerId",void 0);_.B([_.hs("tp-yt-paper-dialog-scrollable"),_.x("design:type",Object)],mh.prototype,"scrollable",void 0);_.B([_.hs("ytd-sponsorships-tier-renderer"),_.x("design:type",Object)],mh.prototype,"tierRenderer",void 0);_.B([_.hs("#player"),_.x("design:type",Object)],mh.prototype,"playerElement",void 0);
_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],mh.prototype,"onYtServiceRequestCompleted",null);_.B([_.Om("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],mh.prototype,"onYtServiceRequestError",null);
_.B([_.Om("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mh.prototype,"onYtPopupOpened",null);_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mh.prototype,"onYtPopupClosed",null);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mh.prototype,"onDataChanged",null);
_.B([_.Me("selectedTier"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mh.prototype,"selectedTierChangedForBinding",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],mh);
_.A(mh,"ytd-sponsorships-offer-renderer",function(){if(HGd!==void 0)return HGd;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return HGd=G},{mode:_.Px("kevlar_poly_si_batch_j077")?1:2});var db8;var cD=function(){var G=_.m.apply(this,arguments)||this;G.buttonOverrides={type:"filled",style:"mono"};return G};
_.K(cD,_.m);cD.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}}}}}};
cD.prototype.backgroundColorChanged=function(){var G,e,r,Z=(e=_.a((G=this.data)==null?void 0:G.content,k5Y))==null?void 0:(r=e.backgroundColor)==null?void 0:r.backgroundColor;Z&&(G=_.RB(Z),_.z1(this.hostElement).querySelector("#banner").style.backgroundColor=G,_.z1(this.hostElement).querySelector("#abstract-art").style.backgroundColor=G)};
cD.prototype.attached=function(){this.JSC$20945_scroller&&(this.JSC$20945_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20945_scroller.attached&&typeof this.JSC$20945_scroller.attached==="function"&&this.JSC$20945_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
cD.prototype.backgroundColorChanged=cD.prototype.backgroundColorChanged;_.B([_.n(),_.x("design:type",Object)],cD.prototype,"data",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],cD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.hs("#scroller"),_.x("design:type",Object)],cD.prototype,"JSC$20945_scroller",void 0);_.B([_.n(),_.x("design:type",Object)],cD.prototype,"buttonOverrides",void 0);
_.B([_.Me("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cD.prototype,"backgroundColorChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],cD);
_.A(cD,"ytd-sponsorships-promotion-celebration-renderer",function(){if(db8!==void 0)return db8;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return db8=G},{mode:_.Px("kevlar_poly_si_batch_j077")?1:2});var oKB;var s0W;var Y7=function(){return _.m.apply(this,arguments)||this};
_.K(Y7,_.m);Y7.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
Y7.prototype.computeIsInitiallyChecked=function(G){return G===1};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Y7.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Y7.prototype,"data",void 0);_.B([_.hs("#checkbox"),_.x("design:type",Object)],Y7.prototype,"checkbox",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],Y7);
_.A(Y7,"ytd-subscription-toggle-option-renderer",function(){if(s0W!==void 0)return s0W;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return s0W=G},{mode:1});var yL=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return G};
_.K(yL,_.m);yL.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"}}}};
yL.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
yL.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var G=_.z1(this.hostElement).querySelector("#options").selected;G=this.data.options[G].subscriptionRadioOptionRenderer.serviceEndpoint;var e=_.z1(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");e&&G&&G.modifyChannelNotificationPreferenceEndpoint&&(e=e.getValue())&&(G.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[e]);_.v_().resolve(_.$1).resolveCommand(G,{form:{element:this.hostElement}});
_.Pi(this.hostElement,"yt-close-popup-action")};
_.iY.Object.defineProperties(yL.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var G=this.data.options,e=0;e<G.length;e++){var r=G[e].subscriptionRadioOptionRenderer;if(r&&r.selected)return e}return null}}});
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],yL.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],yL.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],yL.prototype,"eventForwardingBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],yL.prototype,"data",void 0);_.B([_.d("data.options"),_.x("design:type",Object),_.x("design:paramtypes",[])],yL.prototype,"initialIndex",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],yL);
_.A(yL,"ytd-subscription-notification-options-renderer",function(){if(oKB!==void 0)return oKB;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return oKB=G},{mode:1});var Q08;var I0a=function(){return _.m.apply(this,arguments)||this};
_.K(I0a,_.m);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],I0a.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],I0a.prototype,"data",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],I0a);
_.A(I0a,"ytd-tvfilm-offer-groups-renderer",function(){if(Q08!==void 0)return Q08;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Q08=G},{mode:1});var plB;var AN=function(){return _.m.apply(this,arguments)||this};
_.K(AN,_.m);_.V=AN.prototype;_.V.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"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.V.computeThumbnailClass=function(G){return G.thumbnailOverlays?G.isShow?"thumbnail-show":"thumbnail-movie":G.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.V.computeCommerceSectionClass=function(G){return G.offers&&G.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.V.computeTitleClass=function(G){return G.offers&&G.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.V.onDataChanged=function(){[].concat(_.mY(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(G){G.onShow()})};
AN.prototype.onDataChanged=AN.prototype.onDataChanged;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],AN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],AN.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],AN.prototype,"data",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],AN.prototype,"onDataChanged",null);
_.B([_.c({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],AN);
_.A(AN,"ytd-ypc-offers-overlay-renderer",function(){if(plB!==void 0)return plB;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return plB=G},{mode:_.Px("kevlar_poly_si_batch_j028")?1:2});var CR2;var uPW=function(){this.usedMethods=new Set};
uPW.prototype.add=function(G){this.usedMethods.add(G)};
uPW.prototype.reset=function(){this.usedMethods.clear()};var cwY=function(G,e){this.query=G;this.previousSearchQuery=e;this.id=nKB++;if(!mbm){e=_.xZ("SBOX_SETTINGS");G="https://"+((e==null?void 0:e.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var r=e==null?void 0:e.REQUEST_LANGUAGE;r&&(G+="&hl="+r);(r=e==null?void 0:e.REQUEST_DOMAIN)&&(G+="&gl="+r);G+="&client=youtube&gs_ri=youtube";(r=e==null?void 0:e.SUGG_EXP_ID)&&(G+="&sugexp="+encodeURIComponent(r));(r=e==null?void 0:e.PSUGGEST_TOKEN)&&(G+="&tok="+r);(e=
e==null?void 0:e.SESSION_INDEX)&&(G+="&authuser="+e);_.R("desktop_enable_visual_suggest")&&(G+="&h=180&w=320&ytvs=1");mbm=G}},Yvd=function(G){var e="q="+encodeURIComponent(G.query);
G.previousSearchQuery&&(e+="&pq="+encodeURIComponent(G.previousSearchQuery));return e},yw8=function(){var G=_.xZ("SBOX_SETTINGS"),e={};
if(G==null?0:G.SEND_VISITOR_DATA)e["X-Goog-Visitor-Id"]=G==null?void 0:G.VISITOR_DATA;return e},Awa=function(G){var e=mbm;
e+="&gs_id="+G.id.toString(36);e+="&q="+encodeURIComponent(G.query);e+="&cp="+G.query.length;G.previousSearchQuery&&(e+="&pq="+encodeURIComponent(G.previousSearchQuery));(G=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(e+="&video_id="+G);return e},nKB=0,mbm="";var FbA=_.ax.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,JwB=_.ax.SEARCH_ENTITY_SUGGESTION_MOVIE,BuW=_.ax.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,xbW=_.ax.SEARCH_ENTITY_SUGGESTION_TV_SHOW,PRA=function(G,e){this.text=G;this.bold=e},Ub8=function(G,e,r){this.input=e;
this.index=r;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=G[0];this.type=G[1];this.subtypes=G[2];var Z;this.displayText=hj((Z=G[3])==null?void 0:Z.b);var O;this.ignoredPrefix=hj((O=G[3])==null?void 0:O.a);var M,T;this.hasNewVideo=((M=G[3])==null?void 0:(T=M.zam)==null?void 0:T.toString())==="true"?!0:!1;var E;this.visualSuggestUrl=(E=G[3])==null?void 0:E.zai;var b;this.entityType=hj((b=G[3])==null?void 0:b.zap);var w;this.entityName=hj((w=G[3])==null?void 0:w.zao);var q;e=hj((q=
G[3])==null?void 0:q.zaf);var t;this.entityMid=(t=G[3])==null?void 0:t.zae;q=tc2(this.subtypes,this.entityMid);if(e&&q){if(e){t="";switch(q){case "YOUTUBE_ENTITY_TYPE_SONG":t=BuW;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":t=FbA;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":t=xbW;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":t=JwB}q=q==="YOUTUBE_ENTITY_TYPE_SONG"||q==="YOUTUBE_ENTITY_TYPE_ALBUM"?t+" \u2022  \u2022 "+e:e}else q="";this.entitySubtitle=q}var g;this.externalChannelId=(g=G[3])==null?void 0:g.zav;var l;
this.entityThumbnailAttributionUrl=(l=G[3])==null?void 0:l.zaq},Wbm=function(G,e){var r=[],Z,O=(Z=G.displayText)!=null?Z:G.text;
(e==null?0:e.useEntityName)&&zSC(G)&&G.entityName&&(O=G.entityName);if(G.type===33)return r.push(new PRA(O,!1)),r;if(O.length>=G.input.length&&O.substring(0,G.input.length)===G.input)r.push(new PRA(G.input,!1)),r.push(new PRA(O.substring(G.input.length),!0));else{var M=new Set(G.input.split(/\s/)),T=O.split(/\s/);r=T.map(function(E,b){return new PRA(E.trim()+(b===T.length-1?"":" "),!M.has(E))})}return r},zSC=function(G){var e=!!tc2(G.subtypes);
G=!!G.entityMid;return e||G};var Nu8=function(G){this.rawResponse=["",[],{}];this.suggestions=[];try{var e=JSON.parse(gjl(G));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 r=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(Z,O){return new Ub8(Z,r,O)})};var LbV=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new uPW;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20982_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},GNo,elW=function(){GNo||(GNo=new LbV);
return GNo};
LbV.prototype.updateSuggestions=function(G){var e=this;this.availableSuggestions.forEach(function(r){e.previousSuggestions[r]=!0});
this.availableSuggestions=G.map(function(r){var Z=r.type.toString();r.subtypes.length>0&&(Z+="i"+r.subtypes.join("i"),Z+="k"+r.suggestionSources.COMPLETE_SERVER.toString());return Z})};
var rga=function(G,e){var r=Date.now();G.firstEditTime<0&&(G.firstEditTime=r);e&&(G.lastQueryBuildTime=r);G.lastEditTime=r};
LbV.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20982_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var ZeV=function(G){var e="";G.availableSuggestions.forEach(function(O){delete G.previousSuggestions[O]});
for(var r=_.h(Object.keys(G.previousSuggestions)),Z=r.next();!Z.done;Z=r.next())Z=Z.value,G.previousSuggestions[Z]&&(e+=(e?"j":"")+Z);return e},OeB=function(G,e){var r=[];
e&&(r[1]=e.toString());r[0]="youtube";r[7]=Date.now()-G.startTime;r[6]=G.sessionNumber;G.zeroPrefixSuggestionCount>=0&&(r[33]=G.zeroPrefixSuggestionCount);r[13]=G.outOfSyncResponseCount;if(G.availableSuggestions.length>0){for(var Z=e="",O=0,M=_.h(G.availableSuggestions),T=M.next();!T.done;T=M.next())T=T.value,T!==Z&&(O>1&&(e+="l"+O),e+=(Z?"j":"")+T,O=0,Z=T),O+=1;O>1&&(e+="l"+O);r[3]=e}r[35]=ZeV(G);G.selectedSuggestionIndex>=0&&(r[2]=G.selectedSuggestionIndex);var E;if(e=(E=_.xZ("SBOX_SETTINGS"))==
null?void 0:E.SUGG_EXP_ID)r[19]=G.normalize(e),E=0,G.experimentTriggeredBeforeFinal&&(E|=1),G.experimentTriggeredFinal&&(E|=2),r[20]=E;r[26]=Array.from(G.inputMethodsTracker.usedMethods).join("j");if(G.JSC$20982_totalRoundTripTime>0){r[15]=G.JSC$20982_totalRoundTripTime;r[14]=G.maxRoundTripTime;E=[];for(O=e=0;O<10;O++)Z=G.roundTripTimeHistogram[O],Z===0?e++:(e>1?E.push(O+"-"+Z):e===1?E.push("0j"+Z):E.push(Z.toString()),e=0);E=E.join("j");r[16]=E}G.zeroPrefixRoundTripTime>0&&(r[36]=G.zeroPrefixRoundTripTime);
G.lastQueryBuildTime>0&&(r[18]=G.lastQueryBuildTime-G.startTime);G.firstEditTime>0&&(r[4]=G.firstEditTime-G.startTime);G.lastEditTime>0&&(r[5]=G.lastEditTime-G.startTime);return r.join(".")};
LbV.prototype.normalize=function(G){return G.replaceAll(".","-")};
var MYm=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var FV=function(){var G=_.m.apply(this,arguments)||this;G.microphoneSpinnerActive=!1;G.noAnimations=!1;G.boundExitClick=function(){G.onExitButtonClick()};
G.speechOverlayClassName="";G.isLevelAnimating=!1;G.playCloseDialogAudioFeedback=!0;G.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return G};
_.K(FV,_.m);_.V=FV.prototype;_.V.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.V.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=uAd()};
_.V.dataChanged=function(){this.logDialog()};
_.V.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var G;(G=this.manager.audioPlayer)!=null&&(G.JSC$20297_audioEnabled=!1)}this.manager.stop();(G=this.manager.audioPlayer)!=null&&(G.JSC$20297_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.V.handleSpeechQueryCompleteAction=function(G){var e=G.navigationAction;e&&(G.trackingParams&&_.h_().graftServerVe(G.trackingParams,this.dialogVe,5),_.xy(this.hostElement,"yt-navigate",{endpoint:e,tempData:this.getNavigationParams(e),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.V.onExitButtonClick=function(){this.closeDialog()};
_.V.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var G;if((G=this.manager)!=null){var e;(e=G.audioPlayer)==null||r6(e,"failure");G.setState("microphone-off");G.stop()}}else(G=this.manager)==null||G.start()};
_.V.transcriptionChanged=function(){var G,e;(((G=this.transcription)==null?0:G.low)||((e=this.transcription)==null?0:e.high))&&this.setState("transcribing",this.transcription)};
_.V.stateChanged=function(){this.setState(this.state,this.transcription)};
_.V.logDialog=function(){var G;(G=this.data)!=null&&G.trackingParams&&(G=_.h_(),_.aC(G,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=G.graftServerVe(this.data.trackingParams,void 0,5))};
_.V.getNavigationParams=function(G){var e={};if(_.R("web_yt_searchbox")){var r=elW();r.inputMethodsTracker.add(6);r=OeB(r,15);e.gs_l=r;var Z;e.oq=((Z=_.a(G,_.Vl))==null?void 0:Z.query)||""}else if(G=window.ytvoicesearchloggingparams){if(G=G())e.oq=G.oq,e.gs_l=G.gs_l}else _.GG(Error("Jl"));return e};
_.V.closeDialog=function(){_.Pi(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.V.setState=function(G,e){if(this.data){var r=this.data,Z={};switch(G){case "listening":Z={headerText:r.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:r.microphoneButtonAriaLabel};break;case "timeout":Z={headerText:r.promptHeader,microphoneState:"try-again",microphoneLabel:r.promptMicrophoneLabel,microphoneAriaLabel:r.promptMicrophoneLabel};break;case "microphone-off":Z={headerText:r.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:r.promptMicrophoneLabel,
microphoneAriaLabel:r.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:r.microphoneButtonAriaLabel}:Z={headerText:r.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:r.microphoneButtonAriaLabel};break;case "processing":Z={headerText:r.loadingHeader,microphoneState:"processing",microphoneAriaLabel:r.microphoneButtonAriaLabel};
break;case "offline":Z={headerText:r.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:r.connectionErrorMicrophoneLabel,microphoneAriaLabel:r.connectionErrorMicrophoneLabel};break;case "permission":Z={headerText:r.permissionsHeader,bodyLine1:r.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:r.permissionsSubtext};break;case "permission-denied":Z={headerText:r.disabledHeader,bodyLine1:r.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:r.disabledSubtext}}Z.className=
G;this.speechOverlayState=Z;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.V.setMicrophoneState=function(G){var e=this.isLevelAnimating;this.isLevelAnimating=G==="speaking";!e&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=G==="processing"&&!this.noAnimations};
_.V.setClass=function(G){this.speechOverlayClassName&&_.Nv(this.hostElement,this.speechOverlayClassName,!1);G&&(this.speechOverlayClassName=G,_.Nv(this.hostElement,G,!0))};
_.V.runLevelAnimation=function(){var G=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var e=1+Math.random()*.75,r=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+r/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+e+")");_.A0.addJob(function(){G.runLevelAnimation()},3,r)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
FV.prototype.stateChanged=FV.prototype.stateChanged;FV.prototype.transcriptionChanged=FV.prototype.transcriptionChanged;FV.prototype.onPopupClosed=FV.prototype.onPopupClosed;FV.prototype.dataChanged=FV.prototype.dataChanged;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],FV.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],FV.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],FV.prototype,"rendererStamperBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],FV.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],FV.prototype,"eventForwardingBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],FV.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],FV.prototype,"speechOverlayState",void 0);
_.B([_.n(),_.x("design:type",Object)],FV.prototype,"microphoneSpinnerActive",void 0);_.B([_.n({type:_.R("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.x("design:type",Object)],FV.prototype,"noAnimations",void 0);_.B([_.n({selector:function(G){var e;return(e=G.voiceSearch)==null?void 0:e.transcription}}),
_.x("design:type",Object)],FV.prototype,"transcription",void 0);_.B([_.n({selector:function(G){var e;return(e=G.voiceSearch)==null?void 0:e.overlay}}),
_.x("design:type",String)],FV.prototype,"state",void 0);_.B([_.n(),_.x("design:type",Object)],FV.prototype,"boundExitClick",void 0);_.B([_.hs("#microphone-levels"),_.x("design:type",HTMLElement)],FV.prototype,"level",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FV.prototype,"dataChanged",null);_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FV.prototype,"onPopupClosed",null);
_.B([_.iD("transcription"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FV.prototype,"transcriptionChanged",null);_.B([_.iD("state"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FV.prototype,"stateChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],FV);
_.A(FV,"ytd-voice-search-dialog-renderer",function(){if(CR2!==void 0)return CR2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return CR2=G},{mode:1});var VYH;var JN=function(){var G=_.m.apply(this,arguments)||this;G.isOverlay=!1;G.hidden=!1;return G};
_.K(JN,_.m);_.V=JN.prototype;_.V.onPopupClosed=function(){this.toggleIconState(!1)};
_.V.computeIcon=function(){var G,e,r;return(e=_.a((G=this.data)==null?void 0:G.icon,QuW))==null?void 0:(r=e.icon)==null?void 0:r.iconType};
_.V.computeIconBadgeShape=function(){var G;return{iconBadgeType:"cart",iconBadgeText:(G=this.iconBadgeEntity)==null?void 0:G.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.V.onClick=function(){var G;(G=this.data)!=null&&G.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.V.computeHidden=function(G){return!G};
_.V.toggleIconState=function(G){this.iconButton&&(this.iconButton.pressed=G)};
JN.prototype.onPopupClosed=JN.prototype.onPopupClosed;_.B([_.k(_.A5),_.x("design:type",Object)],JN.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],JN.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],JN.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],JN.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],JN.prototype,"isOverlay",void 0);
_.B([_.n({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.x("design:type",Object)],JN.prototype,"hidden",void 0);_.B([_.n({selectorArgs:["data.iconBadgeEntityKey"],selector:function(G,e){return _.e6(G.entities,"iconBadgeEntity",e)}}),
_.x("design:type",Object)],JN.prototype,"iconBadgeEntity",void 0);_.B([_.hs("yt-icon-button"),_.x("design:type",HTMLButtonElement)],JN.prototype,"iconButton",void 0);_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JN.prototype,"onPopupClosed",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],JN);
_.A(JN,"ytd-icon-badge-topbar-button-renderer",function(){if(VYH!==void 0)return VYH;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return VYH=G},{mode:1});var hl2;var BD=function(){var G=_.m.apply(this,arguments)||this;G.premiumOptions=[];return G};
_.K(BD,_.m);BD.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.iY.Object.defineProperties(BD.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],BD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],BD.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Array)],BD.prototype,"premiumOptions",void 0);_.B([_.d("premiumOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],BD.prototype,"hasPremiumOptions",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],BD);
_.A(BD,"ytd-offline-promo-content",function(){if(hl2!==void 0)return hl2;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return hl2=G},{mode:1});var T3o;var x7=function(){var G=_.m.apply(this,arguments)||this;G.premiumOptions=[];return G};
_.K(x7,_.m);x7.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var G;this.premiumOptions=qiH((G=this.data)==null?void 0:G.formats)};
x7.prototype.onClickSubmit=function(){_.Pi(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var G;(G=_.Ff())==null||G.pause()};
x7.prototype.attached=function(){this.JSC$21002_scroller&&(this.JSC$21002_scroller.dialogElement=this.hostElement.parentNode)};
_.iY.Object.defineProperties(x7.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
x7.prototype.dataChanged=x7.prototype.dataChanged;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],x7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],x7.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],x7.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],x7.prototype,"data",void 0);
_.B([_.n({computed:"computeIcon_(data.headersIcon)",value:""}),_.x("design:type",String)],x7.prototype,"headersIcon",void 0);_.B([_.n(),_.x("design:type",Array)],x7.prototype,"premiumOptions",void 0);_.B([_.hs("#scroller"),_.x("design:type",Object)],x7.prototype,"JSC$21002_scroller",void 0);_.B([_.d("headersIcon"),_.x("design:type",Object),_.x("design:paramtypes",[])],x7.prototype,"showIcon",null);
_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],x7.prototype,"dataChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],x7);
_.A(x7,"ytd-offline-promo-renderer",function(){if(T3o!==void 0)return T3o;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return T3o=G},{mode:1});var DFH;var PD=function(){var G=_.m.apply(this,arguments)||this;G.playbackPauseInterval=NaN;G.isLoading=!1;G.hasError=!1;G.dialogClass="";G.youtubeLabel=_.OK("LOGO_ALT_LABEL",{},"YouTube Home");G.logoName="yt-logos-ext:yt-logo-updated";G.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return G};
_.K(PD,_.m);_.V=PD.prototype;_.V.onDataChange=function(){var G;if(this.showEOMV1Text=!((G=this.data)==null||!G.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.V.attached=function(){this.pausePlayer()};
_.V.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.V.handleLangSelect=function(G){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[G.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.V.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.V.handleSaveConsent=function(G){var e=this;this.showLoadingSpinner();this.showLoadingSpinner();T2W(_.a(G,IAo)).catch(function(r){_.FH(new _.Cr("Something went wrong when save consent "+(r.message?r.message:r)+"."));e.hideLoadingSpinner();e.showErrorMessage()})};
_.V.handleDisablePersonalization=function(G){var e=this;this.showLoadingSpinner();Dq8(_.a(G,QkA)).then(function(){e.dialog.close();e.resumePlayer()}).catch(function(r){_.FH(new _.Cr("Something went wrong when disable personalization "+(r.message?r.message:r)+"."));
e.hideLoadingSpinner();e.showErrorMessage()})};
_.V.showLoadingSpinner=function(){var G=this;this.showSpinnerJobId=_.A0.addLowPriorityJob(function(){G.isLoading=!0},500)};
_.V.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.A0.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.V.showErrorMessage=function(){var G=this;this.hasError=!0;_.A0.addLowPriorityJob(function(){G.hasError=!1},2E3)};
_.V.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.aZ(function(){try{var G=_.Ff();G&&G.pause()}catch(e){}},100))};
_.V.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var G=_.Ff();G&&G.play()}catch(e){}};
_.iY.Object.defineProperties(PD.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.eomV1Text)return[];G=[];for(var e=["SHIELD","WARNING","BAR_CHART"],r=this.data.eomV1Text.essentialCookieMsg.items,Z=0;Z<e.length&&Z<r.length;Z++)G.push({icon:e[Z],text:r[Z]});return G}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.eomV1Text)return[];G=[];for(var e=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],r=this.data.eomV1Text.nonEssentialCookieMsg.items,Z=0;Z<e.length&&Z<r.length;Z++)G.push({icon:e[Z],text:r[Z]});return G}}});
PD.prototype.onDataChange=PD.prototype.onDataChange;_.B([_.n(),_.x("design:type",Object)],PD.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Boolean)],PD.prototype,"showEOMV1Text",void 0);_.B([_.n(),_.x("design:type",Object)],PD.prototype,"isLoading",void 0);_.B([_.n(),_.x("design:type",Object)],PD.prototype,"hasError",void 0);_.B([_.n(),_.x("design:type",Number)],PD.prototype,"showSpinnerJobId",void 0);_.B([_.n(),_.x("design:type",Object)],PD.prototype,"dialogClass",void 0);
_.B([_.hs("#dialog"),_.x("design:type",Object)],PD.prototype,"dialog",void 0);_.B([_.hs("#cb-header"),_.x("design:type",HTMLElement)],PD.prototype,"header",void 0);_.B([_.hs("#lang-select"),_.x("design:type",HTMLElement)],PD.prototype,"langSelect",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],PD.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],PD.prototype,"ytComponentBehavior",void 0);
_.B([_.n(),_.x("design:type",String)],PD.prototype,"youtubeLabel",void 0);_.B([_.n(),_.x("design:type",Object)],PD.prototype,"logoName",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],PD.prototype,"onDataChange",null);_.B([_.d("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],PD.prototype,"eomEssentialCookieMsgItems",null);
_.B([_.d("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],PD.prototype,"eomNonEssentialCookieMsgItems",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],PD);
_.A(PD,"ytd-consent-bump-v2-lightbox",function(){if(DFH!==void 0)return DFH;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return DFH=G},{mode:1});var EG8;var UR=function(){return _.m.apply(this,arguments)||this};
_.K(UR,_.m);UR.prototype.ready=function(){if(!_.Qi()||R9d)var G=!0;else R9d=!0,G=!1;G||(G=document.querySelector("ytd-app"),G||(G=document.body),this.internalLightBox=_.z1(G).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.B([_.n(),_.x("design:type",Object)],UR.prototype,"data",void 0);_.B([_.hs("#lightbox"),_.x("design:type",Object)],UR.prototype,"lightBox",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],UR);
_.A(UR,"ytd-consent-bump-v2-renderer",function(){if(EG8!==void 0)return EG8;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return EG8=G},{mode:1});var ieB;var beW;var vGa;var zT=function(){return _.m.apply(this,arguments)||this};
_.K(zT,_.m);_.V=zT.prototype;_.V.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&ul8(this.toastManager,this.toastType)};
_.V.open=function(G){this.toast&&(this.ephemeralAction&&_.v_().resolve(_.rC).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=G!=null?G:0,this.toastManager.enqueue(this.toast,G)):this.toast.open())};
_.V.close=function(G){var e;(e=this.toast)==null||e.close();this.toastManager&&G===1&&ul8(this.toastManager,G)};
_.V.refit=function(){var G;(G=this.toast)==null||G.refit()};
_.V.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var G;(G=this.toast)==null||G.close()}};
_.V.setVerticalOffset=function(G){this.toast&&(this.toast.verticalOffset=G,this.toast.fit())};
_.V.computeButtonClass_=function(G){return G?"toast-button":""};
_.V.computeText_=function(G){return _.mG(G)};
_.V.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.eG("toast-opened-changed",this.toastOpened))};
_.V.updateToastOpenedFromBinding=function(G){this.toastOpened=G.detail.value};
_.iY.Object.defineProperties(zT.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var G,e,r=(G=this.data)==null?void 0:(e=G.actionButton)==null?void 0:e.buttonRenderer;return(r==null?void 0:r.command)||(r==null?void 0:r.serviceEndpoint)||(r==null?void 0:r.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 G=[],e;((e=this.data)==null?0:e.responseText)&&G.push(_.mG(this.data.responseText));var r;((r=this.data)==null?0:r.subText)&&G.push(_.mG(this.data.subText));var Z,O;if((Z=this.data)==null?0:(O=Z.actionButton)==null?0:O.buttonRenderer){var M,T;G.push(((M=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(T=M.accessibilityData)==null?void 0:T.label)||_.mG(this.data.actionButton.buttonRenderer.text))}return G.filter(function(E){return E}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var G,e;return(e=(G=this.toast)==null?void 0:G.opened)!=null?e:!1}}});
zT.prototype.toastOpenedChangedForBinding=zT.prototype.toastOpenedChangedForBinding;zT.prototype.toastOpenedChanged=zT.prototype.toastOpenedChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],zT.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],zT.prototype,"ytEventForwardingBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],zT.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],zT.prototype,"duration",void 0);
_.B([_.n(),_.x("design:type",Number)],zT.prototype,"toastType",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],zT.prototype,"useCloseButton",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],zT.prototype,"closeToastOnActionButtonClick",void 0);_.B([_.n({value:function(){return _.OK("SBOX_INAPPROPRIATE_CANCEL")}}),
_.x("design:type",String)],zT.prototype,"closeButtonAriaLabel",void 0);_.B([_.n(),_.x("design:type",Boolean)],zT.prototype,"toastOpened",void 0);_.B([_.n(),_.x("design:type",Boolean)],zT.prototype,"hasOpened",void 0);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],zT.prototype,"command",null);_.B([_.d("labelText","command","duration"),_.x("design:type",Object),_.x("design:paramtypes",[])],zT.prototype,"ephemeralAction",null);
_.B([_.d("ephemeralAction"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],zT.prototype,"hasEphemeralAction",null);_.B([_.hs("#toast"),_.x("design:type",Object)],zT.prototype,"toast",void 0);_.B([_.n({value:function(){return{style:"call-to-action-inverse"}}}),
_.x("design:type",Object)],zT.prototype,"buttonOverrides",void 0);_.B([_.n({value:{style:"mono-inverse"}}),_.x("design:type",Object)],zT.prototype,"closeButtonOverrides",void 0);_.B([_.n({value:function(){return _.v_().resolve(_.bq(_.W$))}}),
_.x("design:type",Object)],zT.prototype,"toastManager",void 0);_.B([_.d("data.responseText","data.subText","data.actionButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],zT.prototype,"labelText",null);_.B([_.Me("toastOpened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zT.prototype,"toastOpenedChanged",null);
_.B([_.Me("toastOpened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zT.prototype,"toastOpenedChangedForBinding",null);_.B([_.aR({is:"yt-notification-action-renderer",disableElementRegistration:!0})],zT);
_.A(zT,"yt-notification-action-renderer",function(){if(vGa===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;beW===void 0&&(beW=document.createElement("template"));var Z=beW;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);vGa=G}G=vGa;return G},{mode:2});var WD=function(){var G=_.m.apply(this,arguments)||this;G.duration=4E3;G.downloadingCount=0;G.downloadedCount=0;G.downloadingOnlySmartDownloads=!1;G.sessionTotalDownloads=0;G.sessionDownloaded=0;G.previousSessionsDownloaded=0;G.totalDownloadPercentage=0;G.currentDownloadProgress=0;G.currentDownloadPercentage=0;G.isLeaderTab=!0;G.isFullScreen=!1;G.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};G.boundBeforeUnload=function(e){G.isLeaderTab&&G.downloadingCount>0&&(e.preventDefault(),
e.returnValue=!0)};
return G};
_.K(WD,_.m);_.V=WD.prototype;
_.V.open=function(){this.updateDownloadState();if(this.data){var G=this.sessionDownloaded+1,e=this.sessionTotalDownloads>1?_.OK("VIDEOS_DOWNLOADING_RATIO",{downloaded:G.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+G+"/"+this.sessionTotalDownloads):_.OK("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(e=this.sessionTotalDownloads>1?_.OK("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:G.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
G+"/"+this.sessionTotalDownloads):_.OK("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));G=this.isLeaderTab?_.OK("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.mG(this.data.responseText)!==e||_.mG(this.data.subText)!==G)this.set("data.responseText",_.nQ(e)),this.set("data.subText",_.nQ(G)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.V.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.V.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.V.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.V.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var G=this.downloadedCount-this.previousSessionsDownloaded;G<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-G);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.V.handleFullscreenChange=function(G){(this.isFullScreen=G)||this.updatePopup()};
WD.prototype.updateCurrentDownloadProgress=WD.prototype.updateCurrentDownloadProgress;WD.prototype.updatePopup=WD.prototype.updatePopup;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],WD.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],WD.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],WD.prototype,"ytEventForwardingBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],WD.prototype,"actionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],WD.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],WD.prototype,"duration",void 0);_.B([_.n({selector:function(G){return _.YZq(G.entities).length}}),
_.x("design:type",Object)],WD.prototype,"downloadingCount",void 0);_.B([_.n({selector:tsm}),_.x("design:type",Object)],WD.prototype,"downloadedCount",void 0);_.B([_.n({selector:function(G){var e=_.YZq(G.entities);return qY8(G.entities,e)}}),
_.x("design:type",Object)],WD.prototype,"downloadingOnlySmartDownloads",void 0);_.B([_.n(),_.x("design:type",Object)],WD.prototype,"sessionTotalDownloads",void 0);_.B([_.n(),_.x("design:type",Object)],WD.prototype,"sessionDownloaded",void 0);_.B([_.n(),_.x("design:type",Object)],WD.prototype,"previousSessionsDownloaded",void 0);_.B([_.n(),_.x("design:type",Object)],WD.prototype,"totalDownloadPercentage",void 0);
_.B([_.n({selector:function(G){var e;G=(e=_.YZq(G.entities))!=null?e:[];return G.length>0?_.d6s(G.slice(-1)):0}}),
_.x("design:type",Object)],WD.prototype,"currentDownloadProgress",void 0);_.B([_.n(),_.x("design:type",Object)],WD.prototype,"currentDownloadPercentage",void 0);_.B([_.n({selector:_.BFf}),_.x("design:type",Object)],WD.prototype,"isLeaderTab",void 0);_.B([_.hs("yt-notification-action-renderer"),_.x("design:type",Object)],WD.prototype,"notificationActionRenderer",void 0);
_.B([_.iD("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WD.prototype,"updatePopup",null);_.B([_.iD("currentDownloadProgress"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WD.prototype,"updateCurrentDownloadProgress",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],WD);
_.A(WD,"ytd-video-download-toast-renderer",function(){if(ieB!==void 0)return ieB;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return ieB=G},{mode:1});var wNC;var $FC;var Ns=function(){return _.m.apply(this,arguments)||this};
_.K(Ns,_.m);Ns.prototype.computeIsRedLogo=function(G,e){!G&&e&&(G=e);return G==="YOUTUBE_RED_LOGO"||G==="YOUTUBE_PREMIUM_LOGO"};
Ns.prototype.computeLogoName=function(G){G=this.componentBehavior.computeIcon_(G);return G===""?"yt-logos-ext:yt-logo-updated":G};
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Ns.prototype,"componentBehavior",void 0);_.B([_.n({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.x("design:type",Boolean)],Ns.prototype,"isRedLogo",void 0);_.B([_.n({computed:"computeLogoName(data)"}),_.x("design:type",String)],Ns.prototype,"logoName",void 0);_.B([_.n({value:{}}),_.x("design:type",Object)],Ns.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",Object)],Ns.prototype,"logoType",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-logo"})],Ns);
_.A(Ns,"ytd-logo",function(){if($FC!==void 0)return $FC;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return $FC=G},{mode:_.Px("kevlar_poly_si_batch_j074")?1:2});var Lu=function(){var G=_.m.apply(this,arguments)||this;G.animationRef={};return G};
_.K(Lu,_.m);_.V=Lu.prototype;_.V.attached=function(){document.addEventListener("yt-navigate-finish",_.ZQ(this,this.logYoodle))};
_.V.detached=function(){document.removeEventListener("yt-navigate-finish",_.ZQ(this,this.logYoodle))};
_.V.logYoodle=function(){var G,e;if((G=this.data)==null?0:(e=G.loggingDirectives)==null?0:e.trackingParams)this.ytRendererBehavior.markDirty(),_.h_().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.V.computeHideImg=function(G,e){return!!G||!!e};
_.V.computeHideYtdLogo=function(G,e){return!G||!!e};
_.V.computeHideLottie=function(G){return!G};
_.V.computeIsRedLogo=function(G){return G==="YOUTUBE_RED_LOGO"||G==="YOUTUBE_PREMIUM_LOGO"};
_.V.renderLogoEntity=function(){var G=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),e=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),r=this.getLogoTitleText(this.data),Z=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==G&&(this.url=G);this.animatedUrl!==e&&(this.animatedUrl=e);this.logoTitleText!==r&&(this.logoTitleText=r);this.lottieUrl!==Z&&(this.lottieUrl=Z,this.lottiePlayerProps=this.computeLottiePlayerProps(Z))};
_.V.getSanitizedThumbnail=function(G){return G&&G.thumbnails?_.Bup(G.thumbnails,122)||"":""};
_.V.getThumbnailUrl=function(G,e){if(!e)return"";var r,Z;G=G?(r=e.darkThemeLogo)==null?void 0:r.thumbnail:(Z=e.lightThemeLogo)==null?void 0:Z.thumbnail;return this.getSanitizedThumbnail(G)};
_.V.getAnimatedThumbnailUrl=function(G,e){return e?this.getSanitizedThumbnail(G?e.darkThemeAnimatedLogo:e.lightThemeAnimatedLogo):""};
_.V.getLogoTitleText=function(G){if(G)return _.mG(G.tooltipText)};
_.V.computeLogoIcon=function(G,e){if(e){var r,Z;return G?(r=e.darkThemeLogo)==null?void 0:r.icon:(Z=e.lightThemeLogo)==null?void 0:Z.icon}};
_.V.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.V.getLottieUrl=function(G,e){var r,Z,O,M;return G?e==null?void 0:(r=e.darkThemeLogo)==null?void 0:(Z=r.lottieAnimation)==null?void 0:Z.url:e==null?void 0:(O=e.lightThemeLogo)==null?void 0:(M=O.lottieAnimation)==null?void 0:M.url};
_.V.computeLottiePlayerProps=function(G){if(G){var e;if((e=this.animationRef)==null?0:e.lottieEl){var r;(r=this.animationRef)==null||r.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:G,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.V.onLottieError=function(){this.data&&this.lottieUrl&&_.xy(this.hostElement,"yoodle-error")};
_.V.onImgError=function(){this.data&&!this.lottieUrl&&_.xy(this.hostElement,"yoodle-error")};
Lu.prototype.playAnimation=Lu.prototype.playAnimation;Lu.prototype.renderLogoEntity=Lu.prototype.renderLogoEntity;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Lu.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Lu.prototype,"data",void 0);_.B([_.n({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.x("design:type",Boolean)],Lu.prototype,"hideImg",void 0);
_.B([_.n({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.x("design:type",Boolean)],Lu.prototype,"hideYtdLogo",void 0);_.B([_.n({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.x("design:type",Boolean)],Lu.prototype,"hideLottie",void 0);_.B([_.n({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.x("design:type",Boolean)],Lu.prototype,"isRedLogo",void 0);
_.B([_.n(),_.x("design:type",Boolean)],Lu.prototype,"useDarkThemeYoodle",void 0);_.B([_.n(),_.x("design:type",String)],Lu.prototype,"url",void 0);_.B([_.n(),_.x("design:type",String)],Lu.prototype,"animatedUrl",void 0);_.B([_.n(),_.x("design:type",String)],Lu.prototype,"logoTitleText",void 0);_.B([_.n({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.x("design:type",Object)],Lu.prototype,"logoIcon",void 0);_.B([_.n(),_.x("design:type",Object)],Lu.prototype,"logoType",void 0);
_.B([_.n(),_.x("design:type",String)],Lu.prototype,"lottieUrl",void 0);_.B([_.n(),_.x("design:type",Object)],Lu.prototype,"lottiePlayerProps",void 0);_.B([_.n(),_.x("design:type",Object)],Lu.prototype,"animationRef",void 0);_.B([_.Me("data"),_.Me("useDarkThemeYoodle"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Lu.prototype,"renderLogoEntity",null);
_.B([_.Om("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Lu.prototype,"playAnimation",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],Lu);
_.A(Lu,"ytd-yoodle-renderer",function(){if(wNC!==void 0)return wNC;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return wNC=G},{mode:_.Px("kevlar_poly_si_batch_j074")?1:2});var SdW;var qd8;var tY2=_.oH.currentPageTypeSelector,gGW=_.oH.currentPageSubTypeSelector,GW=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return G};
_.K(GW,_.m);_.V=GW.prototype;_.V.onYoodleError=function(){_.R("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.V.computeLogoName=function(G){G=this.componentBehavior.computeIcon_(G);return G===""?"yt-logos-ext:yt-logo-updated":G};
_.V.computeTitle=function(G,e,r){return r&&(e==null?0:e.tooltipText)?_.mG(e.tooltipText):_.mG(G)};
_.V.computeAriaLabel=function(G,e,r){return r&&(e==null?0:e.tooltipText)?_.mG(G):""};
_.V.computeShowYoodle=function(G,e,r){return!G||!e&&!!r&&!_.c2.isEmpty(r)};
_.V.onNavigateHomeAction=function(){if(_.R("kevlar_miniplayer_navigate_home_from_app_killswitch")){var G;(G=_.z1(this.hostElement).querySelector(".yt-simple-endpoint"))==null||G.click()}};
_.V.computeLogoHref=function(G,e,r){var Z;(r==null?0:r.onTapCommand)?Z=this.componentBehavior.computeHref_(r.onTapCommand):G&&(Z=this.componentBehavior.computeHref_(G));return Z?Z:e};
_.V.computeCommand=function(G,e){return(e==null?void 0:e.onTapCommand)||G};
_.V.getEndpointForm=function(){if(_.R("kevlar_topbar_disable_cache_only_home")){var G=_.v_().resolve(_.YB),e=tY2(G.getState())||"";G=gGW(G.getState())||"";return{disableCache:e==="ytd-browse"&&G==="home"}}return{disableCache:!0}};
GW.prototype.onYoodleError=GW.prototype.onYoodleError;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],GW.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],GW.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],GW.prototype,"componentBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],GW.prototype,"ytdReduxBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],GW.prototype,"data",void 0);_.B([_.n(),_.x("design:type",String)],GW.prototype,"countryCode",void 0);_.B([_.n({selectorArgs:["data.overrideEntityKey"],selector:function(G,e){return _.e6(G.entities,"logoEntity",e)}}),
_.x("design:type",Object)],GW.prototype,"logoEntity",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.x("design:type",Boolean)],GW.prototype,"showYoodle",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],GW.prototype,"yoodleError",void 0);_.B([_.n({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.x("design:type",String)],GW.prototype,"titleText",void 0);
_.B([_.n({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.x("design:type",String)],GW.prototype,"ariaLabelText",void 0);_.B([_.n({value:"/"}),_.x("design:type",String)],GW.prototype,"defaultEndpointUrl",void 0);_.B([_.n({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.x("design:type",String)],GW.prototype,"endpointUrl",void 0);
_.B([_.n({computed:"computeCommand(data.endpoint, logoEntity)"}),_.x("design:type",String)],GW.prototype,"command",void 0);_.B([_.n(),_.x("design:type",Object)],GW.prototype,"logoType",void 0);_.B([_.n({}),_.x("design:type",Boolean)],GW.prototype,"useDarkThemeYoodle",void 0);_.B([_.Om("yoodle-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],GW.prototype,"onYoodleError",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],GW);
_.A(GW,"ytd-topbar-logo-renderer",function(){if(qd8!==void 0)return qd8;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return qd8=G},{mode:_.Px("kevlar_poly_si_batch_j027")?1:2});var le8=0;var Rl2=_.ax.SEARCH_APPEND_LABEL,jfV=_.ax.SUGGESTION_NEW_VIDEOS_TEXT,aeo=_.ax.SUGGESTION_THUMBNAIL_LABEL,XN2=_.ax.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,KwV=_.y(function(G){function e(ly){var gW,Ww;return _.D(function(o8){if(o8.nextAddress==1)return gW=new Request(ly),_.jr(o8,2),o8.yield(fetch(gW,{credentials:"include"}),4);if(o8.nextAddress!=2)return a8(!0),_.rL(o8,0);Ww=_.k5(o8);_.FH(Ww);_.HL(o8)})}
var r=G.isHighlighted;var Z=G.suggestion;var O=G.onClickCallback;var M=G.onHoverUpdateCallback;var T=G.labels;var E=G.queryBuilderFunction;var b=G.onRemoveCallback;var w=G.suggestionIndex;var q=G.generateUniqueId;var t=G.highlightedId;var g=G.useScrollMargin;var l=G.isKeyboardMode;var X=null,H=null,I=_.hT("div"),C=_.hT("span");G=_.h(_.XQ(!1,void 0,"mxSc0e"));var u=G.next().value,P=G.next().value,F=_.T2("a",function(ly){ly&&_.$i(237477,ly,H,function(gW){H=gW})}),J=_.T2("button",function(ly){ly&&_.$i(237477,
ly,H,function(gW){H=gW})}),U=_.ev(function(ly){if((ly==null?void 0:ly.button)===2)return ly.preventDefault(),!1;
var gW=_.l4();gW&&X&&_.mC(gW,X,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var Ww;O(ly,Z().text,Z().index,Z().entityMid,ly==null?void 0:(Ww=ly.detail)==null?void 0:Ww.wasSelectedByKeyboard);return!1}),e$=function(){return Z().type===35},Dq=function(){return _.R("desktop_enable_single_suggestion_highlight")},bF=function(){return _.qt("desktop_suggestions_panel_row_height")||0},Kf=function(){var ly;
return _.R("desktop_enable_new_video_metadata")&&((ly=Z())==null?void 0:ly.hasNewVideo)===!0},ti=function(){return _.R("desktop_enable_visual_suggest")},Ry=function(){return _.R("desktop_enable_entity_suggest")&&zSC(Z())},nf=function(){return Z().entitySubtitle},k4=function(){return Dq()?(r==null?void 0:r())||rj()&&!(l==null?0:l()):(r==null?void 0:r())||rj()},SE=function(){var ly=_.xZ("SBOX_SETTINGS");
return e$()&&!(ly==null?0:ly.HIDE_REMOVE_LINK)},Fn=function(){return Wbm(Z(),{useEntityName:Ry()})},kw,Lf=!((kw=_.v_().resolve(_.bq(_.Ig)))==null||!kw()),vc=function(){return e$()?_.R("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},IW=function(){return T==null?void 0:T().SUGGESTION_DISMISS_LABEL},Hc=function(){return T==null?void 0:T().SUGGESTION_DISMISSED_LABEL};
G=_.h(_.XQ(!1,void 0,"WMms1e"));kw=G.next().value;var a8=G.next().value;G=_.h(_.XQ(!1,void 0,"PyL0t"));var t2=G.next().value,hi=G.next().value,rj=t2,tS=_.ev(function(){E(C.value.innerText);return!1}),OV=_.ev(function(ly){ly.preventDefault();
return!1}),RW=_.ev(function(ly){var gW=Z().text,Ww=_.xZ("SBOX_SETTINGS"),o8="https://"+(Ww.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
o8+="&delq="+encodeURIComponent(gW);(gW=Ww==null?void 0:Ww.PSUGGEST_TOKEN)&&(o8+="&tok="+gW);(Ww=Ww==null?void 0:Ww.SESSION_INDEX)&&(o8+="&authuser="+Ww);e(o8);ly.preventDefault();(ly=_.l4())&&H&&_.mC(ly,H,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");b(w==null?void 0:w());return!1}),Zl=_.ev(function(){if(Dq()&&(l==null?0:l()))return!1;
hi(!0);M(!0);return!1}),pm=_.ev(function(){hi(!1);
M(!1);return!1}),Bc=_.ev(function(){P(!0);
return!1}),wj=_.ev(function(){P(!1);
return!1}),by=_.ev(function(ly){ly.preventDefault();
if(Z().entityThumbnailAttributionUrl){var gW=Z().entityThumbnailAttributionUrl;ly=Z().entityName;var Ww={dismissDialogEndpoint:{}};gW={commandExecutorCommand:{commands:[Ww,{urlEndpoint:{url:gW,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:gW}}}]}};Ww={buttonViewModel:{title:_.OK("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:Ww}}};gW={buttonViewModel:{title:_.OK("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:gW}}};ly={dialogHeaderViewModel:{headline:{content:ly!=null?ly:_.OK("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var o8={basicContentViewModel:{paragraphs:[{text:{content:_.OK("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};ly={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:ly,footer:{panelFooterViewModel:{primaryButton:gW,
secondaryButton:Ww,shouldHideDivider:!0}},content:o8}}}}};_.v_().resolve(_.$1).resolveCommand(ly)}return!1});
G=_.h(_.XQ("",void 0,"yG5Sx"));var ea=G.next().value,U_=G.next().value;_.YZ(function(){SE()&&U_(q==null?void 0:q(w==null?void 0:w()));I.value&&_.$i(12453,I.value,X,function(ly){X=ly})});
return _.v(_.S,{cond:kw,then:function(){var ly={};return _.v("div",{class:_.LC("ytSuggestionComponentRemovedText",(ly.ytSuggestionComponentLargerRemovedText=function(){return ti()},ly)),
style:function(){return bF()>0?"height: "+bF()+"px;":""},
role:"button"},Hc)},
else:function(){var ly={},gW={};return _.v("div",{class:_.LC("ytSuggestionComponentSuggestion",(ly.ytSuggestionComponentSuggestionHover=function(){return!Dq()},ly.ytSuggestionComponentHighlighted=k4,ly.ytSuggestionComponentPersonalizedSuggestion=e$,ly.ytSuggestionComponentMweb=!1,ly.ytSuggestionComponentLargerSuggestion=function(){return Kf()||ti()},ly.ytSuggestionComponentThumbnailSuggestion=function(){return ti()},ly.ytSuggestionComponentRoundedSuggestion=function(){return _.R("desktop_enable_scrollable_suggestions_panel")&&
_.R("desktop_enable_suggestions_panel_padding")},ly.ytSuggestionComponentThumbnailPadding=function(){return ti()&&!e$()},ly)),
style:function(){return bF()>0?"height: "+bF()+"px;":""},
role:"presentation","on:mousedown":U,"on:mouseover":Zl,"on:mouseout":pm,el:I},_.v("div",{class:_.LC("ytSuggestionComponentText",(gW.ytSuggestionComponentScrollMargin=g,gW)),"aria-label":function(){return Kf()?Z().text+" "+jfV:Z().text},
id:function(){return q==null?void 0:q(w==null?void 0:w())},
"on:mousedown":U,role:"option"},_.v(_.S,{cond:function(){return Z().type!==33},
then:function(){return _.v(_.V$,{icon:vc,className:"ytSuggestionComponentIcon"})}}),_.v("div",{class:"ytSuggestionComponentLeftContainer"},_.v("span",{el:C,
role:"button",tabindex:0},_.v(_.u6,{each:Fn},function(Ww){return Ww.bold?_.v("span",{class:"ytSuggestionComponentBold"},Ww.text):_.v("span",null,Ww.text)})),_.v(_.S,{cond:function(){return Ry()&&!!Z().entitySubtitle||Kf()},
then:function(){return _.v("div",{class:"ytSuggestionComponentMetadataContainer"},_.v(_.S,{cond:function(){return Ry()&&!!Z().entitySubtitle},
then:function(){return _.v("div",{class:"ytSuggestionComponentEntitySubtitle"},nf)}}),_.v(_.S,{cond:function(){return Kf()},
then:function(){return _.v("div",{class:"ytSuggestionComponentNewVideoContainer"},_.v("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.v("div",{class:"ytSuggestionComponentNewVideoText"},jfV))}}))}}))),_.v("div",{class:"ytSuggestionComponentRightContainer"},_.v(_.S,{cond:function(){return ti()&&Z().visualSuggestUrl!==void 0},
then:function(){var Ww={};return _.v("div",{class:"ytSuggestionComponentThumbnailContainer"},_.v("img",{"aria-label":aeo,class:_.LC("ytSuggestionComponentVisualSuggestThumbnail",(Ww.ytSuggestionComponentCircularFrame=function(){return Ry()&&Z().subtypes.includes(790)},Ww.ytSuggestionComponentEntitySuggestThumbnail=function(){return Ry()},Ww)),
src:function(){return Z().visualSuggestUrl}}),_.v(_.S,{cond:function(){return Ry()&&!!Z().entityThumbnailAttributionUrl},
then:function(){var o8={};return _.v("span",{title:XN2,role:"tooltip"},_.v("div",{"on:mouseover":Bc,"on:mouseout":wj,"on:mousedown":by,class:_.LC("ytSuggestionComponentThumbnailOverlay",(o8.ytSuggestionComponentThumbnailOverlayHidden=function(){return!u()},o8))},_.v(_.V$,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.v(_.nz,null,_.v(_.pz,{when:function(){return ti()&&SE()}},function(){var Ww={};
return _.v("button",{class:_.LC("ytSuggestionComponentRemoveLinkClearButton",(Ww.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return ea()&&ea()===(t==null?void 0:t())},Ww.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!k4()},Ww)),
el:J,"on:mousedown":RW,"aria-label":IW,id:function(){return ea()}},_.v(_.V$,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.v(_.pz,{when:function(){return!(ti()&&Z().visualSuggestUrl!==void 0)&&SE()}},function(){var Ww={};
return _.v("a",{class:_.LC("ytSuggestionComponentRemoveLink",(Ww.ytSuggestionComponentRemoveLinkDark=Lf,Ww.ytSuggestionComponentRemoveLinkSelected=function(){return ea()&&ea()===(t==null?void 0:t())},Ww)),
el:F,"on:mousedown":RW,"aria-label":IW,tabindex:0,role:"button",id:function(){return ea()}},IW)}),_.v(_.pz,{when:function(){return!1}},function(){return _.v("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":tS,"on:mousedown":OV,role:"button","aria-label":Rl2},_.v(_.V$,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"pj");var feA=_.Cp(["//www.google.com/textinputassistant/","/","_tia.js"]),kNW=_.y(function(){return _.v("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.v("button",{class:"ytdTextInputAssistantButton","on:click":_.ev(function(){elW().inputMethodsTracker.add(3);var G,e=(G=_.xZ("SBOX_SETTINGS"))==null?void 0:G.REQUEST_LANGUAGE;if(e)return _.Hi(_.qK(feA,14,e)),!1})},_.v("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"qj");var Hea=function(){this.cache=new Map},dFW=function(G){for(var e=_.h(G.cache.entries()),r=e.next();!r.done;r=e.next()){var Z=_.h(r.value);
r=Z.next().value;Z=Z.next().value;Z.suggestions.some(function(O){return O.type===35})&&G.cache.delete(r)}};var oGV=_.ax.SEARCH,sfC=_.ax.SEARCH_CLEAR_LABEL,Qfl=new _.Gz("FAKE_SUGGEST_RESPONSE"),IeV=_.y(function(G){function e(){Bc||(Bc=setTimeout(function(){by()},1E3))}
function r(KP,Xn,m8){if(KP.trim()){pm=KP;_.BX("REFINEMENTS_TUPLE",void 0);RW=!0;var gz;Xn=OeB(t2,Xn);var gj=(gz=G.searchEndpoint)==null?void 0:gz.call(G);_.R5W(KP,Xn,gj,vc.value.value,m8,window.location.pathname.startsWith("/shorts"));by();vc.value.value=KP;vc.value.blur();t2.reset()}}
function Z(KP){return _.D(function(Xn){return Xn.return(new Promise(function(m8){var gz=new XMLHttpRequest;gz.open("GET",Awa(KP),!0);gz.withCredentials=!0;var gj=_.xZ("SBOX_SETTINGS");(gj==null?0:gj.SEND_VISITOR_DATA)&&gz.setRequestHeader("X-Goog-Visitor-Id",gj==null?void 0:gj.VISITOR_DATA);gz.onload=function(){m8(gz.responseText)};
gz.onerror=function(){_.FH(Error("Ll"));m8(null)};
setTimeout(function(){gz.abort()},1E4);
gz.send(null)}))})}
function O(KP){var Xn,m8,gz,gj;return _.D(function(H2){switch(H2.nextAddress){case 1:return Xn={credentials:"include",headers:yw8()},window.AbortController&&(m8=new AbortController,setTimeout(function(){m8.abort("ytsbox-suggest-timeout")},1E4),Xn.signal=m8.signal),_.jr(H2,2),H2.yield(fetch(Awa(KP),Xn),4);
case 4:gz=H2.yieldResult.text();_.rL(H2,3);break;case 2:return gj=_.k5(H2),gj!=="ytsbox-abort-last"&&gj!=="ytsbox-suggest-timeout"&&_.FH(gj),H2.return(null);case 3:return H2.return(gz)}})}
function M(KP){var Xn,m8,gz;return _.D(function(gj){switch(gj.nextAddress){case 1:if(Xn=_.v_().resolve(_.bq(Qfl)))return gj.return(Xn);m8=Date.now();e();return _.R("yt_searchbox_xhr")?gj.yield(Z(KP),5):gj.yield(O(KP),4);case 4:gz=gj.yieldResult;gj.jumpTo(3);break;case 5:gz=gj.yieldResult;case 3:if(gz){Bc&&(clearTimeout(Bc),Bc=null);var H2=t2,qI=m8,cw=KP.query.length===0;qI=Date.now()-qI;cw?H2.zeroPrefixRoundTripTime=qI:(H2.JSC$20982_totalRoundTripTime+=qI,H2.maxRoundTripTime=Math.max(H2.maxRoundTripTime,
qI),cw=Math.floor(qI/100),cw>=MYm.length?++H2.roundTripTimeHistogram[9]:++H2.roundTripTimeHistogram[MYm[cw]])}return gj.return(gz)}})}
function T(KP){var Xn,m8,gz;return _.D(function(gj){if(gj.nextAddress==1)return(Xn=a8.cache.get(Yvd(KP)))?gj.return(Xn):gj.yield(M(KP),2);m8=gj.yieldResult;if(m8===null)return gj.return(null);gz=new Nu8(m8);KP.query.length===0&&gz.suggestions.length===0||a8.cache.set(Yvd(KP),gz);return gj.return(gz)})}
function E(KP){var Xn,m8;return _.D(function(gz){if(gz.nextAddress==1){Zl=!1;var gj=pm;gj=_.Kqs()==="search"?(_.Wp(location.href,"search_query")||_.Wp(location.href,"q"))===gj:!1;Xn=new cwY(KP,gj?pm:null);return gz.yield(T(Xn),2)}m8=gz.yieldResult;if(m8===null)return gz.return();Xn.query.length===0&&(t2.zeroPrefixSuggestionCount=m8.suggestions.length);if(Xn.id<=wj)return t2.outOfSyncResponseCount++,gz.return();if(document.activeElement!==vc.value)return gz.return();wj=Xn.id;var H2=t2,qI=m8.rawResponse[2]||
{};H2.experimentTriggeredBeforeFinal||(H2.experimentTriggeredBeforeFinal=H2.experimentTriggeredFinal);H2.experimentTriggeredFinal=!!qI.e;t2.updateSuggestions(m8.suggestions);I(-1);SE([]);m8.suggestions!==l()&&rw(m8.suggestions.length);X(m8.suggestions);Dq(m8.suggestions.length>0&&m8.suggestions[0].type===33);Hc&&(Hc.hidden=m8.suggestions.length===0,e$()?(Hc.style.minWidth="",H2=Hc.style,qI=(gj=l()[0])==null?void 0:gj.ignoredPrefix,H2.marginLeft=(qI?Math.min(qI.length*6,IW.value.offsetWidth):0).toString()+
"px"):(Hc.style.minWidth=IW.value.offsetWidth+"px",Hc.style.marginLeft="0"),lL());_.HL(gz)})}
function b(){if(!RW)return!1;var KP=_.xZ("REFINEMENTS_TUPLE");return KP?(KP=KP[1].map(function(Xn,m8){return new Ub8([Xn,0,[71]],vc.value.value,m8)}),l()!==KP&&rw(KP.length),SE([]),X(KP),t2.updateSuggestions(KP),RW=!1,Hc.hidden=KP.length===0,Zl=KP.length>0,!0):!1}
function w(){var KP=vc.value.value;(typeof KP==="string"||KP instanceof String)&&KP!==""?F(!0):F(!1)}
function q(){if(_.Kqs()==="search"){var KP=window.location.href;try{var Xn=_.Wp(KP,"search_query")||_.Wp(KP,"q")||""}catch(m8){Xn=""}Xn&&(vc.value.value=Xn,F(!0))}}
var t=_.h(_.XQ([],void 0,"YqWjzb")),g=t.next().value;t=t.next().value;var l=g,X=t;g=_.h(_.XQ(-1,void 0,"hiyF4d"));var H=g.next().value,I=g.next().value;g=_.h(_.XQ(-1,void 0,"SUGY4b"));var C=g.next().value,u=g.next().value;g=_.h(_.XQ(!1,void 0,"ozgCGe"));var P=g.next().value,F=g.next().value;g=_.h(_.XQ(!1,void 0,"fb0dKe"));var J=g.next().value,U=g.next().value;t=_.h(_.XQ(!1,void 0,"KkbNee"));g=t.next().value;t=t.next().value;var e$=g,Dq=t;t=_.h(_.XQ(!1,void 0,"b5D7E"));g=t.next().value;var bF=t.next().value;
t=_.h(_.XQ(!1,void 0,"UrhqVc"));var Kf=t.next().value,ti=t.next().value;t=_.h(_.XQ(1,void 0,"zwJX4d"));var Ry=t.next().value,nf=t.next().value;t=_.h(_.XQ([],void 0,"HryHu"));var k4=t.next().value,SE=t.next().value;t=_.h(_.XQ(!1,void 0,"Imfa3e"));var Fn=t.next().value,kw=t.next().value;t=_.R("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var Lf=_.hT("yt-searchbox"),vc=_.hT("input"),IW=_.hT("div"),Hc,a8=
new Hea,t2=elW(),hi=_.v_().resolve(_.bq(_.Ig)),rj=function(){var KP;return((KP=G.forceDarkMode)==null?void 0:KP.call(G))||!(hi==null||!hi())},tS=function(){return _.R("desktop_enable_scrollable_suggestions_panel")},OV="i"+le8++,RW=!1,Zl=!1,pm="",Bc=null,wj=-1,by=function(){SE([]);
X([]);Dq(!1);Hc&&(Hc.hidden=!0);Bc&&(clearTimeout(Bc),Bc=null);I(-1)},ea=function(KP,Xn){KP.preventDefault();
kw(!0);Hc&&(Hc.hidden=!1);var m8=H();KP=l();var gz=k4();Xn=j$H(Xn);m8+=Xn;for(m8>=KP.length?m8=-1:m8<-1&&(m8=KP.length-1);m8!==-1&&(gz.includes(m8)||m8>=KP.length||m8<0);)m8+=Xn,m8>=KP.length&&(m8=-1);I(m8);H()>=0&&(vc.value.value=l()[H()].text,u(0),w(),KP=H(),gz=C(),(gz=document.getElementById(lx[KP][gz]))&&tS()&&(KP===l().length-1?Hc.scrollTop=Hc.scrollHeight:gz.scrollIntoView({block:"nearest",inline:"start"})))},U_=_.ev(function(KP){if(!(KP.relatedTarget instanceof Element&&KP.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){U(!0);
var Xn;(Xn=G.focusCallback)==null||Xn.call(G,!0);b()||(Zl?Hc.hidden=!1:(_.xy(Lf.value,"yt-autonav-pause-focus",{}),E(KP.target.value)))}}),ly=_.ev(function(KP){if(!(KP.relatedTarget instanceof Element&&KP.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){U(!1);
var Xn;(Xn=G.focusCallback)==null||Xn.call(G,!1);Hc.scrollTop=0;Hc.hidden=!0;_.xy(Lf.value,"yt-autonav-pause-blur",{})}}),gW=function(KP){KP=j$H(KP);
var Xn;((Xn=lx[H()])==null?0:Xn[C()+KP])&&u(C()+KP)},Ww=_.ev(function(KP){var Xn=KP.target;
switch(KP.keyCode){case 13:KP.preventDefault();var m8;if((m8=lx[H()])==null?0:m8[C()]){var gz;(gz=document.getElementById(lx[H()][C()]))==null||gz.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}KP=KP.shiftKey?4:3;m8=t2;gz=H();m8.selectedSuggestionIndex=gz;r(Xn.value,KP);break;case 27:Hc&&(Hc.hidden=!0);break;case 40:ea(KP,40);break;case 38:ea(KP,38);break;case 39:gW(39);break;case 37:gW(37);break;case 229:t2.inputMethodsTracker.add(4);break;default:t2.inputMethodsTracker.add(1),
rga(t2)}return!1}),o8=_.ev(function(KP){E(KP.target.value);
w();tS()&&Hc&&(Hc.scrollTop=0);return!1}),Y5=_.ev(function(){t2.inputMethodsTracker.add(2);
rga(t2);return!1});
_.YZ(function(){if(Hc){t2.reset();if(window.ResizeObserver){var KP=new ResizeObserver(function(){e$()||(Hc.style.minWidth=IW.value.offsetWidth+"px")});
KP.observe(IW.value);(new ResizeObserver(function(){lL()})).observe(Hc);
_.yD(function(){KP.disconnect()})}q();
window.addEventListener("yt-navigate-finish",q);window.addEventListener("yt-focus-searchbox",function(){vc.value.focus()});
var Xn;bF((Xn=_.xZ("SBOX_SETTINGS"))==null?void 0:Xn.HAS_ON_SCREEN_KEYBOARD)}else _.yx(new _.Cr("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var Wg=_.ev(function(KP){KP.preventDefault();r(vc.value.value,12);return!1}),TV=_.ev(function(KP){KP.preventDefault();
var Xn,m8;(Xn=vc)==null||(m8=Xn.value)==null||m8.focus();var gz,gj;((gz=vc)==null?void 0:(gj=gz.value)==null?void 0:gj.value)!==""&&(vc.value.value="",vc.value.dispatchEvent(new Event("input")));return!1}),Ul=_.ev(function(){var KP=apH(vc.value.value,l().filter(function(Xn){return Xn.type!==35}).map(function(Xn){return{label:Xn.text}}));
_.Pi(Lf.value,"yt-open-popup-action",[{openPopupAction:KP},document.body]);return!1}),fd=_.ev(function(){vc.value.focus();
return!1}),h2=function(KP,Xn,m8,gz,gj){t2.selectedSuggestionIndex=m8;
r(Xn,gj?3:1,gz)},Uw=function(KP){vc.value.value=KP;
vc.value.dispatchEvent(new Event("input"));t2.inputMethodsTracker.add(5);rga(t2,!0)},lx=[[]],RF=function(KP){var Xn="searchbox-suggestion"+_.Qj(_.FA);
lx[KP].push(Xn);return Xn},rw=function(KP){if(l()){lx=[[]];
for(var Xn=0;Xn<KP;Xn++)lx.push([])}},lL=function(){if(tS()){var KP=Hc,Xn=KP.scrollTop;
KP=KP.scrollHeight-KP.clientHeight;ti(Xn>=KP);Xn=Math.abs(KP-Xn);Xn<=40?nf(1-(40-Xn)/40):nf(1)}},cJ=function(){return"opacity: "+Ry()*100+"%"},ds=_.ev(function(){lL();
return!1}),mS=_.ev(function(){kw(!1);
return!1}),BA,aW={},lH={},o2={},sV={};
return _.v("yt-searchbox",{class:_.LC("ytSearchboxComponentHost",(aW.ytSearchboxComponentMweb=!1,aW.ytSearchboxComponentDesktop=!0,aW["yt-searchbox-filled-query"]=function(){return P()},aW["ytd-masthead"]=function(){return!J()},aW.ytSearchboxComponentHostDark=rj,aW)),
role:"search",el:Lf,"client-ve-type":10349},_.v("div",{el:IW,"on:click":fd,class:_.LC("ytSearchboxComponentInputBox",(lH.ytSearchboxComponentInputBoxDark=rj,lH.ytSearchboxComponentInputBoxHasFocus=J,lH))},_.v("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":Wg},_.v(_.S,{cond:J,then:function(){return _.v("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.v(_.V$,{icon:"SEARCH"}))}}),_.v("input",{el:vc,
class:_.LC("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":OV,"aria-expanded":!((BA=Hc)==null?0:BA.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":ly,"on:focus":U_,"on:input":o8,"on:keydown":Ww,"on:paste":Y5,placeholder:G.placeholderText,"aria-activedescendant":function(){var KP;return(KP=lx[H()])==null?void 0:KP[C()]},
"aria-autocomplete":"list",role:"combobox"})),_.v(_.S,{cond:g,then:function(){return _.v("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.v(kNW,null))}}),_.v(_.S,{cond:P,
then:function(){return _.v("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.v("button",{class:"ytSearchboxComponentClearButton","on:click":TV,"aria-label":G.clearButtonAriaLabel||sfC},_.v(_.V$,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.v(_.ED,{model:{}})))}})),_.v("button",{class:_.LC("ytSearchboxComponentSearchButton",(o2.ytSearchboxComponentSearchButtonDark=rj,o2)),
"on:click":Wg,"aria-label":oGV,title:G.placeholderText},_.v(_.V$,{icon:"SEARCH"})),_.v(_.S,{cond:function(){if(PMW()&&_.R("mweb_voice_search")&&G.voiceSearchButton)return G.voiceSearchButton()},
then:function(KP){var Xn={};return _.v("div",{class:_.LC("ytSearchboxComponentVoiceSearchWrapper",(Xn.ytSearchboxComponentHideVoiceSearchButton=function(){return P()},Xn))},_.v(_.E2,{data:KP},{buttonRenderer:function(m8){return _.v(_.Op,{data:m8.data,
onButtonClickCallback:function(){}})}}))}}),_.v("div",{el:_.cQ(function(KP){return void(Hc=KP)}),
id:OV,class:_.LC("ytSearchboxComponentSuggestionsContainer",(sV.ytSearchboxComponentSuggestionsContainerDark=rj,sV["yt-searchbox-suggestions-container"]=!1,sV.ytSearchboxComponentSuggestionsContainerScrollable=tS(),sV.ytSearchboxComponentSuggestionsContainerAnimated=t,sV)),"on:scroll":ds,"on:mousemove":mS,role:"listbox",hidden:!0},_.v(_.u6,{each:l},function(KP,Xn){return _.v(KwV,{suggestion:KP,isHighlighted:function(){return Xn()===H()},
onClickCallback:h2,onHoverUpdateCallback:function(m8){if(_.R("desktop_enable_single_suggestion_highlight")){var gz=Xn();m8&&(u(0),I(gz))}},
onRemoveCallback:function(m8){dFW(a8);m8===void 0||m8<0||k4().includes(m8)||SE([].concat(_.mY(k4()),[m8]))},
labels:G.labels,queryBuilderFunction:Uw,suggestionIndex:Xn,generateUniqueId:RF,highlightedId:function(){var m8;return(m8=lx[H()])==null?void 0:m8[C()]},
useScrollMargin:tS(),isKeyboardMode:Fn})}),_.v(_.S,{cond:function(){return!e$()&&l().find(function(KP){return KP.type!==35})&&_.R("searchbox_reporting")},
then:function(){return _.v("button",{class:"ytSearchboxComponentReportButton","on:mousedown":Ul},_.OK("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.v(_.S,{cond:function(){return!Kf()&&tS()},
then:function(){return _.v("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.v("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:cJ}))}})))},"sj");
IeV.idomCompat={callbacks:{focusCallback:!0}};_.J_(IeV,"yt-searchbox",{props:{searchEndpoint:_.N6,placeholderText:_.N6,labels:_.N6,voiceSearchButton:_.N6,focusCallback:_.yb,clearButtonAriaLabel:_.N6,forceDarkMode:_.N6}});var et=function(){var G=_.m.apply(this,arguments)||this;G.menuButtonTargetId="topbar-guide-menu";G.narrow=!1;G.menuStrings={BACK_ALT_LABEL:_.OK("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.OK("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.OK("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.OK("SBOX_PLACEHOLDER",void 0,"Search")};G.pageDarkTheme=document.documentElement.hasAttribute("dark");G.watchPageScrollTop=0;G.theater=!1;G.fullscreen=!1;G.disableFrostedGlassDuringViewTransition=
!1;G.desktopUnifiedSearchPanelMode=_.R("desktop_enable_unified_search_panel");G.cinematicTheaterMode=_.R("web_cinematic_theater_mode");G.aiCompanionEnabled=_.R("enable_ai_companion");G.ytSearchboxFocused=!1;G.searchboxLabels=_.xZ("SBOX_LABELS");G.topbarIsAboveChipbar=!1;G.isDarkThemeForced=!1;G.areGhostCardsHidden=!1;G.guideKeyboardToggle=!1;G.voiceSearchManager=uAd();G.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};G.setYtSearchboxFocused=
function(e){G.ytSearchboxFocused=e};
G.toggleFrostedGlassDuringViewTransition=function(e){G.disableFrostedGlassDuringViewTransition=e};
return G};
_.K(et,_.m);_.V=et.prototype;_.V.computeSimpleText=function(G){return _.mG(G)};
_.V.onDarkChanged=function(){for(var G=_.h(this.buttons||[]),e=G.next();!e.done;e=G.next())e.value.isOverlay=!!this.dark;G=_.h(this.buttonRenderers||[]);for(e=G.next();!e.done;e=G.next())e.value.overrides=this.computeButtonOverride()};
_.V.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.V.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"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var G=_.Z7(_.rk(),"aa");_.Nv(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||G||(this.isDarkThemeForced=this.dark=!0);this.logoType?(G=this.hostElement.querySelector("#masthead-logo"))&&(_.R("polymer_on_demand_shady_dom")?G.setAttribute("slot","masthead-logo-old"):_.d1(G)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.ZQ(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.ZQ(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.V.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.ZQ(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.ZQ(this,this.onSetTheaterModeEnabled))};
_.V.dataChanged=function(){var G=this.data;G&&(this.voiceEnabled=G.voiceSearchButton?uAd().isSupported():!1,_.Kty(_.Kh(),this.menuButtonTargetId,this.guideButton),G.onReceivedActions&&G.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.Wi(this.hostElement,G.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&G&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.Nv(this.hostElement,"dark",!1),_.Nv(this.hostElement,"theater",!1),
(G=this.hostElement.querySelector("#masthead-logo"))&&(_.R("polymer_on_demand_shady_dom")?G.setAttribute("slot","masthead-logo-old"):_.d1(G))))};
_.V.computeCenterHidden=function(){var G;return this.data&&!((G=this.data.searchbox)==null?0:G.fusionSearchboxRenderer)};
_.V.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.Nv(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.V.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.V.onWatchScroll=function(G){this.watchPageScrollTop=G.detail||0;this.updateMastheadBackgroundOpacity()};
_.V.onFullscreenChangeAction=function(G){G||(this.watchPageScrollTop=0);this.fullscreen=G;this.updateMastheadBackgroundOpacity()};
_.V.onSetTheaterModeEnabled=function(G){this.theater=G.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.V.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.V.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.V.setBackgroundOpacity=function(G){G=this.calculateBackgroundOpacity(G);this.background.style.opacity=""+G};
_.V.calculateBackgroundOpacity=function(G){var e=this.theater&&this.cinematicTheaterMode?.6:0,r=this.hostElement.clientHeight/2;return Math.min(Math.max(G,0),r)/r*(1-e)+e};
_.V.shouldShowCinematicMastHead=function(){var G=_.R("kevlar_watch_grid")&&!_.R("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(G||this.pageDarkTheme)};
_.V.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.V.focusGuide=function(){this.guideButton.focus()};
_.V.onGuideToggleTap=function(){_.xy(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.V.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.V.onGuideToggleHover=function(){_.xy(this.hostElement,"yt-guide-hover")};
_.V.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.V.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.V.closeOnOutsideClickCondition=function(G){for(G=_.na(G);G[0];){var e=G.shift();if(e instanceof Element&&e.id==="kbd")return!1}return!0};
_.V.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.V.pausePlayer=function(){var G;(G=_.Ff())==null||G.pause();this.pauseMiniplayer()};
_.V.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var G;(G=_.v_().resolve(_.fp).getPlayerElement())==null||G.pause()}};
_.V.isMiniplayerActive=function(){return _.v_().resolve(_.fp).isMiniplayerActive()};
_.V.updateNarrowFromBinding=function(G){this.narrow=G.detail.value};
_.V.onYtSendFeedbackAction=function(){_.Pi(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.V.registerWithViewTransitionManager=function(){U1B(_.v_().resolve(_.oY),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.iY.Object.defineProperties(et.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.R("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
shouldShowAiCompanionButton:{configurable:!0,enumerable:!0,get:function(){var G;return!!(this.aiCompanionEnabled&&((G=this.data)==null?0:G.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var G;return(G=this.data)==null?void 0:G.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
et.prototype.narrowChanged=et.prototype.narrowChanged;et.prototype.onWatchPageChange=et.prototype.onWatchPageChange;et.prototype.onRendererStamperFinished=et.prototype.onRendererStamperFinished;et.prototype.dataChanged=et.prototype.dataChanged;et.prototype.onDarkChanged=et.prototype.onDarkChanged;_.B([_.k(_.CS),_.x("design:type",Object)],et.prototype,"ironResizableBehavior",void 0);_.B([_.k(_.AXH),_.x("design:type",Object)],et.prototype,"ytdExpandableInputBehavior",void 0);
_.B([_.k(_.UN.YtdGuideStateAwareBehavior),_.x("design:type",Object)],et.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],et.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],et.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],et.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],et.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.A5),_.x("design:type",Object)],et.prototype,"ytdReduxBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],et.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],et.prototype,"narrow",void 0);_.B([_.n(),_.x("design:type",Object)],et.prototype,"logoType",void 0);_.B([_.n(),_.x("design:type",Boolean)],et.prototype,"voiceEnabled",void 0);
_.B([_.n(),_.x("design:type",Object)],et.prototype,"menuStrings",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],et.prototype,"dark",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],et.prototype,"pageDarkTheme",void 0);_.B([_.n(),_.x("design:type",Object)],et.prototype,"watchPageScrollTop",void 0);_.B([_.n({reflectToAttribute:!0,selector:_.Iss}),_.x("design:type",Boolean)],et.prototype,"isWatchPage",void 0);
_.B([_.n({reflectToAttribute:!0,selector:_.pkN}),_.x("design:type",Boolean)],et.prototype,"isShortsPage",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],et.prototype,"theater",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],et.prototype,"fullscreen",void 0);_.B([_.n({reflectToAttribute:!0,selector:_.mGA}),_.x("design:type",String)],et.prototype,"frostedGlassMode",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],et.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],et.prototype,"aiCompanionEnabled",void 0);_.B([_.n(),_.x("design:type",Object)],et.prototype,"ytSearchboxFocused",void 0);_.B([_.To("#buttons > *"),_.x("design:type",Array)],et.prototype,"buttons",void 0);_.B([_.To("ytd-button-renderer"),_.x("design:type",Array)],et.prototype,"buttonRenderers",void 0);
_.B([_.hs("#background"),_.x("design:type",HTMLDivElement)],et.prototype,"background",void 0);_.B([_.hs("#guide-button"),_.x("design:type",Object)],et.prototype,"guideButton",void 0);_.B([_.hs("#logo"),_.x("design:type",Object)],et.prototype,"logo",void 0);_.B([_.n({computed:"computeButtonOverride(dark)"}),_.x("design:type",Object)],et.prototype,"buttonOverrides",void 0);
_.B([_.iD("dark"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],et.prototype,"onDarkChanged",null);_.B([_.n({value:function(){return this.onVoiceTap.bind(this)}}),
_.x("design:type",Function)],et.prototype,"boundOnTapVoiceButton",void 0);_.B([_.n(),_.x("design:type",Object)],et.prototype,"topbarIsAboveChipbar",void 0);_.B([_.n(),_.x("design:type",String),_.x("design:paramtypes",[])],et.prototype,"guideIcon",null);_.B([_.d("voiceEnabled"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],et.prototype,"shouldShowVoiceSearchButton",null);
_.B([_.d("data.aiCompanionButton","aiCompanionEnabled"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],et.prototype,"shouldShowAiCompanionButton",null);_.B([_.d("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],et.prototype,"voiceSearchButton",null);_.B([_.d("aiCompanionEnabled"),_.x("design:type",String),_.x("design:paramtypes",[])],et.prototype,"narrowQuery",null);
_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],et.prototype,"dataChanged",null);_.B([_.Om("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],et.prototype,"onRendererStamperFinished",null);_.B([_.iD("isWatchPage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],et.prototype,"onWatchPageChange",null);
_.B([_.iD("narrow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],et.prototype,"narrowChanged",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-masthead"})],et);
_.A(et,"ytd-masthead",function(){if(SdW!==void 0)return SdW;var G=document.createElement("template");_.f(G,'\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="[[narrowQuery]]" 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="[[!shouldShowAiCompanionButton]]" 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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return SdW=G},{mode:_.Px("kevlar_poly_si_batch_j036")?1:2});var pNd;var CvH={},uc8={},nG8={},mFW={},cgo=(mFW.OFFLINE=(CvH["publicytnetworkstatus-online"]="BACK_ONLINE",CvH),mFW.ONLINE=(uc8["publicytnetworkstatus-offline"]="OFFLINE",uc8),mFW.BACK_ONLINE=(nG8["publicytnetworkstatus-offline"]="OFFLINE",nG8.TIMER_TRIGGER="ONLINE",nG8),mFW),rN=function(){var G=_.m.apply(this,arguments)||this;G.currentState="ONLINE";G.scheduledJobId=0;G.bannerString="";G.bannerVe=null;G.networkStatusManagerInstance=new _.e4;return G};
_.K(rN,_.m);_.V=rN.prototype;_.V.attached=function(){var G=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){G.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){G.stateChangeHandler("publicytnetworkstatus-offline")})};
_.V.detached=function(){var G=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){G.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){G.stateChangeHandler("publicytnetworkstatus-offline")})};
_.V.enterState=function(G){var e=this;this.scheduledJobId&&_.A0.cancelJob(this.scheduledJobId);G==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):G==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.OK("NO_INTERNET_CONNECTION",void 0,"No internet connection")):G==="BACK_ONLINE"&&(this.bannerString=_.OK("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.IQ(_.A0,function(){e.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=G};
_.V.stateChangeHandler=function(G){(G=cgo[this.currentState][G])&&this.enterState(G)};
_.V.logVisibility=function(G){var e=_.l4();this.createBannerVe(G);e&&this.bannerVe&&(G?_.C_(e,[this.bannerVe]):_.up(e,[this.bannerVe]))};
_.V.createBannerVe=function(G){!this.bannerVe&&G&&(this.bannerVe=_.L1(37929),_.KE(_.h_(),this.bannerVe))};
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",String)],rN.prototype,"currentState",void 0);_.B([_.n(),_.x("design:type",Object)],rN.prototype,"scheduledJobId",void 0);_.B([_.n(),_.x("design:type",Object)],rN.prototype,"bannerString",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-network-status-banner"})],rN);
_.A(rN,"ytd-network-status-banner",function(){if(pNd!==void 0)return pNd;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return pNd=
G},{mode:1});var YdV;var Zu=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};G.hidden=!0;G.frostedGlass=_.R("web_frosted_glass");return G};
_.K(Zu,_.m);Zu.prototype.computeHidden=function(G){return G&&G.status?!1:!0};
Zu.prototype.handleUpdatePermissionRoleCommand=function(G){if(G=_.a(G,_.sqE))if(G=_.a(G.renderer,_.o0S))this.data=G};
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Zu.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Zu.prototype,"componentBehavior",void 0);_.B([_.n({value:!0,computed:"computeHidden(data)"}),_.x("design:type",Object)],Zu.prototype,"hidden",void 0);_.B([_.n(),_.x("design:type",Object)],Zu.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Zu.prototype,"frostedGlass",void 0);
_.B([_.c({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],Zu);
_.A(Zu,"ytd-permission-role-bottom-bar-renderer",function(){if(YdV!==void 0)return YdV;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return YdV=G},{mode:1});var ygV;var Ag8;var agC={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var Oo=function(){return _.m.apply(this,arguments)||this};
_.K(Oo,_.m);_.V=Oo.prototype;_.V.attached=function(){this.JSC$21100_scroller&&(this.JSC$21100_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21100_scroller.attached&&typeof this.JSC$21100_scroller.attached==="function"&&this.JSC$21100_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(r){r.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var G=_.z1(this.hostElement);G.querySelector("tp-yt-paper-radio-group").selected="";var e=G.querySelector("#reason-text");e&&(e.value="");G.querySelector("#description-text").value=""}};
_.V.canSubmit=function(G,e){_.xy(this.hostElement,"yt-invalidate-popup-tabbables");return!(G&&e)};
_.V.onCancel=function(){_.Pi(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.V.onSubmit=function(){var G=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(M){return M.active}).map(function(M){return M.innerText.trim()}),e=this.hostElement.querySelector("tp-yt-paper-radio-group"),r=e.selectedItem,Z=r.name;
r=r.innerText.trim();var O=e.querySelector("#reason-text");e=void 0;O&&(e=O.value);(O=this.descriptionText.value)&&(O=O.trim());XsB(this.data.searchQuery,G,Z,r,O,e);_.Pi(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.V.sendFormSubmitToast=function(){var G=_.Fs(_.OK("SBOX_INAPPROPRIATE_TOAST"));_.Pi(this.hostElement,"yt-open-popup-action",[G,this])};
_.V.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(G){return G.active})};
_.V.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
Oo.prototype.onIronSelect=Oo.prototype.onIronSelect;Oo.prototype.onIronChange=Oo.prototype.onIronChange;Oo.prototype.dataChanged=Oo.prototype.dataChanged;_.B([_.n(),_.x("design:type",Object)],Oo.prototype,"data",void 0);_.B([_.n({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.x("design:type",Boolean)],Oo.prototype,"submitDisabled",void 0);_.B([_.n(),_.x("design:type",Boolean)],Oo.prototype,"suggestionSelected",void 0);
_.B([_.n(),_.x("design:type",Boolean)],Oo.prototype,"catagorySelected",void 0);_.B([_.hs("#scroller"),_.x("design:type",Object)],Oo.prototype,"JSC$21100_scroller",void 0);_.B([_.hs("#description-text"),_.x("design:type",Object)],Oo.prototype,"descriptionText",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Oo.prototype,"dataChanged",null);
_.B([_.Om("iron-change"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Oo.prototype,"onIronChange",null);_.B([_.Om("iron-select"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Oo.prototype,"onIronSelect",null);_.B([_.c({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],Oo);
_.A(Oo,"ytd-search-suggestion-report-dialog",function(){if(Ag8!==void 0)return Ag8;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);return Ag8=G},{mode:1});var Mi=function(G){var e=G.openPopupAction;var r=G.target;var Z=G.container;var O=G.popupContainerConfig;var M=G.getElement;G=G.removeWhenClosed===void 0?!1:G.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=e;this.target=r;this.container=Z;this.popupContainerConfig=O;this.getElement=M;this.JSC$21106_popupConfig=this.popupContainerConfig.JSC$20232_popupConfig[this.openPopupAction.popupType];this.rendererName=(e=this.getName())?_.OWf(e,wPl(this.popupContainerConfig,
e)):"";_.R("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=G);this.createPopup()};
Mi.prototype.updatePopup=function(G){this.openPopupAction=G;this.JSC$21106_popupConfig=this.popupContainerConfig.JSC$20232_popupConfig[this.openPopupAction.popupType];Fwa(this);_.R("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
Mi.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var xFH=function(G,e,r){(e=e&&G.JSC$21106_popupConfig.narrowProperties?G.JSC$21106_popupConfig.narrowProperties:G.JSC$21106_popupConfig.properties)&&r!==void 0&&(e.isAriaModal=r);JgV(G,e);G.isRtl()&&JgV(G,G.JSC$21106_popupConfig.rtlProperties);B3H(G)};
Mi.prototype.createPopup=function(){var G=this.JSC$21106_popupConfig.component;if(this.popupContent=Pvm(this,this.rendererName)){if(G){this.popup=Pvm(this,G);var e=this.popupContent;_.R("web_enable_wrapper_for_cow_component_in_popup")&&(e=document.createElement("div"),e.appendChild(this.popupContent));_.R("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$21106_popupConfig.slotName&&e.setAttribute("slot",this.JSC$21106_popupConfig.slotName);G=this.popup;var r=this.container.tagName.toLowerCase(),
Z=_.YN(e);_.VbN(_.AX(G),_.JX(e,r,Z));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.R("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.z1(this.container).appendChild(this.popup)}};
var Fwa=function(G){var e,r,Z=(e=G.openPopupAction.accessibilityData)==null?void 0:(r=e.accessibilityData)==null?void 0:r.label;Z&&(G.popup.ariaLabel=Z);var O;((O=G.popupContent.polymerController)!=null?O:G.popupContent).data=(0,_.c2.unsafeClone)(G.openPopupAction.popup[G.getName()]);G.popupContent.duration=UFo(G);G.popupContent.positionType=G.openPopupAction.position;var M=G.openPopupAction.properties;M&&Object.keys(M).forEach(function(T){G.popupContent[T]=M[T]})},JgV=function(G,e){if(e)for(var r=
_.h(Object.keys(e)),Z=r.next();!Z.done;Z=r.next())Z=Z.value,G.popup[Z]=e[Z]},B3H=function(G){if(G.openPopupAction.position){var e=G.JSC$21106_popupConfig.positionalProperties&&G.JSC$21106_popupConfig.positionalProperties[G.openPopupAction.position],r=G.JSC$21106_popupConfig.rtlPositionalProperties&&G.JSC$21106_popupConfig.rtlPositionalProperties[G.openPopupAction.position];
e=G.isRtl()&&r?r:e;e.shiftedHorizontalOffset&&(r=G.popup.style.display,G.popup.style.display="block",G.popupContent&&G.popup.positionTarget&&G.popupContent.clientWidth>G.popup.positionTarget.clientWidth&&(e.horizontalOffset=G.popup.positionTarget.clientWidth/2-e.shiftedHorizontalOffset),G.popup.style.display=r);JgV(G,e)}},zlW=function(G,e){if(e)for(var r=_.h(Object.keys(e)),Z=r.next();!Z.done;Z=r.next())Z=Z.value,G.popup.style[Z]=e[Z]};
Mi.prototype.getName=function(){return _.Ft(this.openPopupAction.popup,"renderer")||_.Ft(this.openPopupAction.popup,"dialog")||_.Ft(this.openPopupAction.popup,"model")||void 0};
var UFo=function(G){G=G.openPopupAction.durationHintMs;return G===0?G:Math.max(4E3,G||4E3)};
Mi.prototype.isRtl=function(){return _.xZ("HTML_DIR")==="rtl"};
var Pvm=function(G,e){G=G.getElement(e,G.target);G==null&&_.FH(new _.Cr("popup getElement returned null",e));return G};var Wwl={};
Wwl.YtPopupContainerBehavior=[_.F9.YtComponentBehavior,_.gF.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_);_.Jb(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.Bi(this.hostElement)},
closePopup:function(G){var e=this.createCacheKey(void 0,G);this.popups_[e]&&this.handleClosePopupAction_(void 0,G)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.A0.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.A0.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(G){G.opened&&G.keepBelowPlayer&&this.ensurePopupBelowPlayer(G)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var G in this.popups_){var e=this.popups_[G];if(e.popup.scrollAction==="refit"){var r=e.popup.positionTarget.getBoundingClientRect(),Z=e.popup;r=r.top;var O=e;if(!O.naturalHeight){O.popup.hidden=!1;O.popup.style.position="fixed";O.popup.style.top="0px";O.popup.style.left="0px";var M=O.popup.getBoundingClientRect();O.naturalHeight=M.bottom-M.top;O.popup.refit()}Z.hidden=!(r>=O.naturalHeight+60);e.popupContent.clientHeight===0&&e.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(G){this.popupContainerConfig=G},
handleOpenPopupAction:function(G,e){var r=G.openPopupAction,Z=_.v_().resolve(_.bq(_.W$))&&r.popupType==="TOAST";Z&&!r.uniqueId&&(r.uniqueId=_.Kv());if(!_.R("popup_container_parent_target_killswitch")){var O;e=(O=this.getParentTarget(e))!=null?O:e}var M=this.ensurePopup_(r,e);return new _.aQ(function(T){M.then(function(E){if(!E)return T();this.maybeCreateNarrowMediaQuery_();var b=this.createCacheKey(E.rendererName,E.openPopupAction.uniqueId);if(r.showOncePerUniqueId){if(this.shownPopupKeys_.has(b))return T();
this.shownPopupKeys_.add(b)}b=this.popups_[b];var w=!(!b||!b.openPopupAction.beReused);w=!!r.reusePopup||w;if(E.popup.opened&&!w){Z&&!E.openPopupAction.replacePopup||this.handleClosePopupAction_(E.rendererName,E.openPopupAction.uniqueId);w=r.popupType==="DIALOG"&&!_.R("popup_container_dialog_reopen_killswitch");if(!Z&&!w&&b&&b.target==e&&!E.openPopupAction.replacePopup)return T();_.DE(E.popup,function(){this.completeOpenPopupAction_(r,e,E);T()}.bind(this))}else E.popup.opened?E.updatePopup(r):this.completeOpenPopupAction_(r,
e,E),T()}.bind(this))}.bind(this))},
getParentTarget:function(G){if(G&&G instanceof HTMLElement)for(var e=_.h(Object.entries(this.popups_)),r=e.next();!r.done;r=e.next())if(r=_.h(r.value),r.next(),r=r.next().value,this.popupClosesOnClick(r)&&r.popup.contains(G))return r.target},
popupClosesOnClick:function(G){return G.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER"].includes(G.rendererName.toUpperCase())},
completeOpenPopupAction_:function(G,e,r){r.updatePopup(G);G=this.narrowMediaQuery_.queryMatches;var Z=this.isAriaModal;r.target=e;var O;e=((O=r.target.polymerController)!=null?O:r.target).popupPositionTarget||r.target;r.JSC$21106_popupConfig.targetContainer&&(e=r.container);r.popup.positionTarget=e;r.popupContent.positionTarget=e;B3H(r);r.JSC$21106_popupConfig.forceFocus&&(r.popupContent.style.outline="none");r.popupContent.tabIndex=-1;r.JSC$21106_popupConfig.narrowProperties&&(r.popup.style.position=
"static");r.JSC$21106_popupConfig.preventAutonav&&r.popup.setAttribute("prevent-autonav",!0);r.JSC$21106_popupConfig.forceCloseOnOutsideClick&&r.popup.setAttribute("force-close-on-outside-click",!0);xFH(r,G,Z);zlW(r,r.JSC$21106_popupConfig.styles);r.isRtl()&&zlW(r,r.JSC$21106_popupConfig.rtlStyles);if(!r.openPopupAction.shouldStopParentSignal){var M;O=(M=r.target.polymerController)!=null?M:r.target;(r.popupContent.startForwardingEvents||r.popupContainerConfig.forwardingEnabledPopups.has(r.rendererName))&&
O.parentComponent!==r.popupContent&&r.popupContent!==r.target&&r.target!==document.body&&(r.popupContent.startForwardingEvents?r.popupContent.startForwardingEvents(r.popupContainerConfig.forwardedEvents,r.target):(r.JSC$21106_eventForwarder||(r.JSC$21106_eventForwarder=new _.W4(r.popupContent)),r.JSC$21106_eventForwarder.start(r.popupContainerConfig.forwardedEvents,r.target)))}r=r.popup;r.addEventListener("iron-overlay-opened",_.ZQ(this,this.onPopupIronOverlayOpened_));r.addEventListener("iron-overlay-closed",
_.ZQ(this,this.onPopupIronOverlayClosed_));r.addEventListener("iron-overlay-canceled",_.ZQ(this,this.onPopupIronOverlayCanceled_));r.addEventListener("yt-refit",_.ZQ(this,this.refitPopup_));r.addEventListener("yt-invalidate-popup-tabbables",_.ZQ(this,this.handleInvalidatePopupTabbables_));r.open()},
getPopupDurationMs_:function(G){return G.durationHintMs===0?G.durationHintMs:Math.max(4E3,G.durationHintMs||4E3)},
handleClosePopupAction_:function(G,e){var r=_.R("web_popup_cache_key_killswitch")||!!e;if(G||r){var Z=this.createCacheKey(G,e);G=(G=this.popups_[Z])&&G.popup}else G=_.poW(_.z8);if(G&&G.close){if(e=_.v_().resolve(_.bq(_.T6)))G.restoreFocusOnClose=e.isKeyBoardInUse();G.close();this.removePopup_(G,Z)}},
handleClosePopupCommand_:function(G){G.closePopupCommand&&G.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,G.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(G){var e={},r;for(r in this.popups_)if(e={key$jscomp$1223:e.key$jscomp$1223},e.key$jscomp$1223=r,!G||!G.some(function(M){return function(T){return T==M.key$jscomp$1223}}(e))){var Z=this.popups_[e.key$jscomp$1223],O=Z.popup;
_.v_().resolve(_.bq(_.W$))&&Z.openPopupAction.popupType==="TOAST"||(O&&O.close&&O.close(),this.removePopup_(O,e.key$jscomp$1223))}},
handleClosePopupsAction_:function(G){G.forEach(function(e){var r=this.popups_[e];r&&((r=r.popup)&&r.close&&r.close(),this.removePopup_(r,e))}.bind(this))},
handleGetPopupOpenedAction_:function(G,e){return(e=this.createCacheKey(G,e))&&this.popups_[e]?this.popups_[G].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var G=[],e;for(e in this.popups_){var r=this.popups_[e];r.popup.opened&&G.push(r)}return G},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(G,e){_.R("ytpopup_disable_default_html_caching")&&G&&G.removeWhenClosed&&(_.z1(this.hostElement).removeChild(G),e&&this.popups_[e]&&delete this.popups_[e])},
shouldReusePopup_:function(G){return!(!G||!G.reusePopup)||!(!G||!G.beReused)},
ensurePopup_:function(G,e){this.maybeCreateNarrowMediaQuery_();var r=_.Ft(G.popup,"renderer")||_.Ft(G.popup,"dialog")||_.Ft(G.popup,"model");if(!r)return _.Nz();r=_.OWf(r,wPl(this.popupContainerConfig,r));return _.Nz(this.getAndMaybeCreatePopup_(G,r,e))},
getAndMaybeCreatePopup_:function(G,e,r){var Z=this.createCacheKey(e,G.uniqueId);if(this.popups_[Z])return this.popups_[Z];G=new Mi({openPopupAction:G,target:r,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(e)});return this.popups_[Z]=G},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(G){return _.R("ytpopup_disable_default_html_caching")?G&&G.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",_.ZQ(this,this.openPopupQueryMatchesChanged_)),_.z1(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(G){G=G.detail.value;for(var e in this.popups_)xFH(this.popups_[e],G)},
onPopupIronOverlayClosed_:function(G){var e=G.currentTarget,r=_.fnp(e);r=r.length>0?r[0]:e;if(r.is!=="ytd-reel-watch-while-dialog-renderer"||G.target.is!=="tp-yt-iron-dropdown"){G.detail.popup=e;G.detail.popupRenderer=r;var Z,O={context:{openingElement:((Z=this.popups_[(r==null?void 0:r.is)||""])==null?void 0:Z.target)||void 0}};Object.assign(O,G.detail);var M;_.xy((M=r.hostElement)!=null?M:r,"yt-popup-closed",O);e.removeEventListener("yt-refit",_.ZQ(this,this.refitPopup_));e.removeEventListener("yt-invalidate-popup-tabbables",
_.ZQ(this,this.handleInvalidatePopupTabbables_));e.removeEventListener("iron-overlay-canceled",_.ZQ(this,this.onPopupIronOverlayCanceled_));e.removeEventListener("iron-overlay-closed",_.ZQ(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(e)}},
onPopupIronOverlayCanceled_:function(G,e){var r=G.currentTarget,Z=_.fnp(r);Z=Z.length>0?Z[0]:r;if(Z.is!=="ytd-reel-watch-while-dialog-renderer"||G.target.is!=="tp-yt-iron-dropdown"){var O;_.xy((O=Z.hostElement)!=null?O:Z,"yt-popup-canceled",G.detail);O=e?_.na(e):null;(!e||["click","tap"].includes(e.type))&&!r.hasAttribute("force-close-on-outside-click")&&r.positionTarget&&O&&O.includes(r.positionTarget)&&G.preventDefault();r.restoreFocusOnClose=_.fS.keyboardEventMatchesKeys(e,"esc")}},
onPopupIronOverlayOpened_:function(G){G=G.currentTarget;var e=_.fnp(G);e=e.length>0?e[0]:G;var r,Z;_.xy((r=e.hostElement)!=null?r:e,"yt-popup-opened",(Z=e.hostElement)!=null?Z:e);G.keepBelowPlayer&&(this.ensurePopupBelowPlayer(G,!0),this.dynamicallyPositionedElements_.add(G));r=_.v_().resolve(_.bq(_.T6));Z=!!e.querySelector("#toast");r&&r.isKeyBoardInUse()&&!Z&&(typeof e.focusFirstItem==="function"?e.focusFirstItem():(e=_.sij(G),e.length&&e[0].focus()));G.removeEventListener("iron-overlay-opened",
_.ZQ(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(G){G=G.currentTarget;G.refit&&G.refit()},
refitPopups_:function(){for(var G in this.popups_)this.popups_[G].refit()},
handleInvalidatePopupTabbables_:function(G){G=G.currentTarget;G.invalidateTabbables&&G.invalidateTabbables()},
createCacheKey:function(G,e){return _.R("web_popup_cache_key_killswitch")?e?G+"#"+e:G:e?"#"+e:G},
openSheet:function(G,e){var r=G==null?void 0:G.openPopupActionCommand;if(!r&&(G==null?0:G.viewModel)){if(G.sheetPosition)a:switch(G.sheetPosition){case "SHEET_POSITION_RIGHT":r="OPEN_POPUP_POSITION_RIGHT";break a;default:r="OPEN_POPUP_POSITION_UNKNOWN"}else r=void 0;r={openPopupAction:{popup:{sheetViewModel:G.viewModel},popupType:"CONTEXTUAL_SHEET",position:r}}}r&&this.handleOpenPopupAction(r,e)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var G=this;return _.D(function(e){return e.return(G.handleGetOpenedPopupsAction_().filter(function(r){var Z;return((Z=r.openPopupAction)==null?void 0:Z.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(G,e,r){if(_.R("web_dialog_utils_killswitch")){var Z=G==null?void 0:G.openPopupActionCommand,O=(r==null?0:r.ariaLabel)?{accessibilityData:{accessibilityData:{label:r.ariaLabel}}}:void 0;!Z&&(G==null?0:G.viewModel)&&(Z={openPopupAction:Object.assign({},{popup:{dialogViewModel:G.viewModel},popupType:(r==null?0:r.isModal)?"MODAL":"DIALOG"},O&&O)});Z&&this.handleOpenPopupAction(Z,e)}else{if(O=G==null?void 0:G.viewModel){var M=r=r===void 0?{}:r;r=M.ariaLabel;O={popup:{dialogViewModel:O},
popupType:M.isModal?"MODAL":"DIALOG"};M={accessibilityData:{label:r}};r&&(O.accessibilityData=M);O={openPopupAction:O}}else O=void 0;if(O=(Z=O)!=null?Z:G==null?void 0:G.openPopupActionCommand)this.isAriaModal=_.R("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(O,e)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var G=this;return _.D(function(e){return e.return(G.handleGetOpenedPopupsAction_().filter(function(r){var Z;return((Z=r.openPopupAction)==null?void 0:Z.popupType)==="DIALOG"}).length>0)})}}];var N38;var LwY;var GOA=_.Cp(["about:blank"]),V3=function(){var G=_.m.apply(this,arguments)||this;G.isMuted=!1;G.pageLoadTimeoutId=void 0;return G};
_.K(V3,_.m);_.V=V3.prototype;_.V.dataChanged=function(){var G=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var e=this.data.url,r=_.FF(e);_.R("enable_yt_ata_iframe_authuser")?(r=_.FF(e),_.Ge(this.iframe,KKd(r))):_.Ge(this.iframe,r);this.pageLoadTimeoutId=_.IQ(_.S0(),function(){return void G.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.L2({destination:window,iframe:this.iframe,origin:_.e$y(r.toString()),channelName:"ataiframe",onMessage:_.Tzj(pHW,function(Z){CKa(Z.data)?(Z=_.WY(Z.data,1,_.VW,_.bx()),Z.length!==1?_.FH(Error("Ml")):(Z=Z[0],Z===3?(G.isMuted=!0,G.logStateChanged({adMuteRequested:!0})):Z===1&&G.close())):_.FH(Error("Nl"))}),
onEstablished:function(){G.cancelPageLoadTimeout();G.logStateChanged({pageLoadSucceeded:!0})}})}};
_.V.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.S0().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.V.logStateChanged=function(G){var e;if((e=this.data)==null?0:e.trackingParams)G={adsClientData:{aboutThisAdData:G}},_.h_().stateChanged(this.data.trackingParams,G)};
_.V.close=function(){_.Pi(this.hostElement,"yt-close-popup-action",[this.is])};
_.V.handlesPopupClosed=function(G,e){var r=this,Z,O;return _.D(function(M){if(M.nextAddress==1)return _.xZ("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.Pi(r.hostElement,"on-about-this-ad-popup-closed",[r.isMuted,e]),M.jumpTo(0)):G&&fgY(G)?M.yield(kBo(G),4):(r.isMuted&&_.Pi(r.hostElement,"yt-mute-ad-action",[r.is,r]),M.jumpTo(0));if(Z=M.yieldResult){var T=O=new _.nX(Z),E=r.isMuted;T.getOptions().includes("onAboutThisAdPopupClosed")?_.iuC(T,"onAboutThisAdPopupClosed",{isMuted:E,layoutId:e}):_.s2("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.HL(M)})};
_.V.onPopupClosed=function(G){var e=this,r,Z;return _.D(function(O){r=_.qK(GOA);_.Ge(e.iframe,r);e.cancelPageLoadTimeout();if(!e.data)return O.jumpTo(0);e.ytRendererBehavior.markDirty();Z=G.detail.context.openingElement;return O.yield(e.handlesPopupClosed(Z,e.data.layoutId),0)})};
_.V.detached=function(){this.cancelPageLoadTimeout()};
_.V.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
V3.prototype.onPopupClosed=V3.prototype.onPopupClosed;V3.prototype.dataChanged=V3.prototype.dataChanged;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],V3.prototype,"ytRendererBehavior",void 0);_.B([_.hs("#iframe"),_.x("design:type",HTMLIFrameElement)],V3.prototype,"iframe",void 0);_.B([_.n(),_.x("design:type",Object)],V3.prototype,"data",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],V3.prototype,"dataChanged",null);
_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype",Promise)],V3.prototype,"onPopupClosed",null);_.B([_.aR({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],V3);
_.A(V3,"yt-about-this-ad-renderer",function(){if(LwY===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;N38===void 0&&(N38=document.createElement("template"));var Z=N38;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);LwY=G}G=LwY;return G},{mode:2});var e4V;var ruB;var Z8l=function(G){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=G;Object.setPrototypeOf(this,Z8l.prototype)};
_.K(Z8l,Error);var O8m=function(G,e){var r=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=r.message;"stack"in r&&(this.stack=r.stack);this.minWidth=G;this.minHeight=e;Object.setPrototypeOf(this,O8m.prototype)};
_.K(O8m,Error);var M9A=function(G){this.requirements=G;this.JSC$21134_maxFileSize=G.maxFileSizeMB*1024*1024},V92=function(G,e){if(e.size>G.JSC$21134_maxFileSize)throw new Z8l(G.requirements.maxFileSizeMB);
};var h4W=function(G,e){this.canvas=G;this.imageEditorBuilder=e};
h4W.prototype.addEventListeners=function(G){var e=function(O){Tt2(G,O)};
this.JSC$21140_mouseDownEvent=e;var r=function(O){DTC(G,O)};
this.JSC$21140_mouseMoveEvent=r;var Z=function(){EFA(G)};
this.JSC$21140_mouseUpEvent=Z;this.canvas.addEventListener("mousedown",e);this.canvas.addEventListener("mousemove",r);document.addEventListener("mouseup",Z)};
h4W.prototype.removeEventListeners=function(){this.JSC$21140_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$21140_mouseDownEvent);this.JSC$21140_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$21140_mouseMoveEvent);this.JSC$21140_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$21140_mouseUpEvent)};
var i8a=function(G,e){G.removeEventListeners();return new Promise(function(r){var Z=new Image;Z.crossOrigin="anonymous";Z.onload=function(){var O=G.imageEditorBuilder(G.canvas,Z);G.addEventListeners(O);r(O)};
Z.src=e})},hf=function(G,e,r,Z,O,M,T,E){this.canvas=G;
this.image=e;this.requiredRatio=r;this.minImageCropDimension=Z;this.minOutputImageResolution=O;this.component=M;this.styleFocusedCorner=E===void 0?!0:E;this.action=2;this.focusedCorner=this.resizeCorner=0;G=this.canvas.getContext("2d");if(!G)throw Error("Ol");this.ctx=G;this.canvasMargin=T!=null?T:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;T=this.image;G=this.canvasInnerWidth/T.width;T.height*G>912&&(G=T.width/T.height*912/T.width);T=G;this.scaledImageWidth=this.canvas.width%2?
d_m(this.image.width*T):H2W(this.image.width*T);this.scaledImageHeight=Math.round(this.image.height*T);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$21143_overlayMarginBottom=this.JSC$21143_overlayMarginTop=this.canvasMargin;this.JSC$21143_overlayMarginRight=this.JSC$21143_overlayMarginLeft=this.horizontalMargin;this.JSC$21143_overlayWidth=this.scaledImageWidth;this.JSC$21143_overlayHeight=this.scaledImageHeight;
G=this.image.width/this.image.height;G>this.requiredRatio?(this.JSC$21143_overlayWidth=this.canvas.width%2?d_m(this.scaledImageHeight*this.requiredRatio):H2W(this.scaledImageHeight*this.requiredRatio),this.JSC$21143_overlayMarginRight=this.JSC$21143_overlayMarginLeft=(this.canvas.width-this.JSC$21143_overlayWidth)/2):G<this.requiredRatio&&(this.JSC$21143_overlayHeight=this.canvas.height%2?d_m(this.scaledImageWidth/this.requiredRatio):H2W(this.scaledImageWidth/this.requiredRatio),this.JSC$21143_overlayMarginBottom=
this.JSC$21143_overlayMarginTop=(this.canvas.height-this.JSC$21143_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*T,this.scaledImageWidth);b8A(this)};
hf.prototype.getContext=function(){return this.ctx};
var Tt2=function(G,e){e={x:Math.round(e.pageX-G.canvas.getBoundingClientRect().left),y:Math.round(e.pageY-G.canvas.getBoundingClientRect().top)};G.dragStart=e;vFm(G,e)!==0?(G.action=1,w$A(G,e),G.resizeCorner=vFm(G,e)):e.x>G.JSC$21143_overlayMarginLeft&&e.x<G.JSC$21143_overlayMarginLeft+G.JSC$21143_overlayWidth&&e.y>G.JSC$21143_overlayMarginTop&&e.y<G.JSC$21143_overlayMarginTop+G.JSC$21143_overlayHeight&&(G.action=0)},$TA=function(G,e){switch(e){case 1:return{x:G.JSC$21143_overlayMarginLeft,
y:G.JSC$21143_overlayMarginTop};case 2:return{x:G.JSC$21143_overlayMarginLeft,y:G.JSC$21143_overlayMarginTop+G.JSC$21143_overlayHeight};case 3:return{x:G.JSC$21143_overlayMarginLeft+G.JSC$21143_overlayWidth,y:G.JSC$21143_overlayMarginTop};case 4:return{x:G.JSC$21143_overlayMarginLeft+G.JSC$21143_overlayWidth,y:G.JSC$21143_overlayMarginTop+G.JSC$21143_overlayHeight};default:throw Error("Pl");}},qrV=function(G,e){if(G.focusedCorner!==0){G.dragStart=$TA(G,G.focusedCorner);
G.action=1;G.resizeCorner=G.focusedCorner;var r=G.dragStart.x,Z=G.dragStart.y;switch(e){case 0:G.focusedCorner===1||G.focusedCorner===4?(r-=10,Z-=10):(r-=10,Z+=10);break;case 1:G.focusedCorner===1||G.focusedCorner===4?(r+=10,Z+=10):(r+=10,Z-=10);break;case 2:r=G.focusedCorner===1||G.focusedCorner===4?r-10:r+10;Z-=10;break;case 3:r=G.focusedCorner===1||G.focusedCorner===4?r+10:r-10;Z+=10;break;default:throw Error("Ql");}Sr8(G,{x:r,y:Z});b8A(G);G.action=2;G.dragStart=void 0}},DTC=function(G,e){e={x:Math.round(e.pageX-
G.canvas.getBoundingClientRect().left),
y:Math.round(e.pageY-G.canvas.getBoundingClientRect().top)};w$A(G,e);switch(G.action){case 1:Sr8(G,e);break;case 0:G.dragStart&&(G.JSC$21143_overlayMarginLeft=Math.max(G.horizontalMargin,Math.min(G.JSC$21143_overlayMarginLeft-(G.dragStart.x-e.x),G.horizontalMargin+G.scaledImageWidth-G.JSC$21143_overlayWidth)),G.JSC$21143_overlayMarginRight=G.canvas.width-G.JSC$21143_overlayMarginLeft-G.JSC$21143_overlayWidth,G.JSC$21143_overlayMarginTop=Math.max(G.canvasMargin,Math.min(G.JSC$21143_overlayMarginTop-
(G.dragStart.y-e.y),G.scaledImageHeight-G.JSC$21143_overlayHeight+G.canvasMargin)),G.JSC$21143_overlayMarginBottom=G.canvas.height-(G.JSC$21143_overlayMarginTop+G.JSC$21143_overlayHeight));break;default:return}b8A(G);G.dragStart=e},EFA=function(G){G.action=2;
G.dragStart=void 0;document.body.style.cursor="auto"},w$A=function(G,e){switch(vFm(G,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:G.action!==1&&(document.body.style.cursor="auto")}},vFm=function(G,e){var r=G.JSC$21143_overlayMarginLeft-5,Z=G.JSC$21143_overlayMarginTop-5,O=G.JSC$21143_overlayMarginLeft+G.JSC$21143_overlayWidth-5;
G=G.JSC$21143_overlayMarginTop+G.JSC$21143_overlayHeight-5;return t9o(e,{x:r,y:Z})?1:t9o(e,{x:O,y:Z})?3:t9o(e,{x:r,y:G})?2:t9o(e,{x:O,y:G})?4:0},t9o=function(G,e){return G.x>=e.x&&G.x<=e.x+10&&G.y>=e.y&&G.y<=e.y+10},Sr8=function(G,e){if(G.dragStart)switch(G.resizeCorner){case 2:Math.abs((G.JSC$21143_overlayMarginLeft+G.JSC$21143_overlayWidth-e.x)/(e.y-G.JSC$21143_overlayMarginTop))>=G.requiredRatio?gFl(G,e.x):l1C(G,e.y);
break;case 1:Math.abs((G.JSC$21143_overlayMarginLeft+G.JSC$21143_overlayWidth-e.x)/(G.JSC$21143_overlayMarginTop+G.JSC$21143_overlayHeight-e.y))>=G.requiredRatio?R4B(G,e.x):l1C(G,e.y);break;case 4:Math.abs((e.x-G.JSC$21143_overlayMarginLeft)/(e.y-G.JSC$21143_overlayMarginTop))>=G.requiredRatio?gFl(G,e.x):jKl(G,e.y);break;case 3:Math.abs((e.x-G.JSC$21143_overlayMarginLeft)/(G.JSC$21143_overlayMarginTop+G.JSC$21143_overlayHeight-e.y))>=G.requiredRatio?R4B(G,e.x):jKl(G,e.y);break;default:throw Error("Rl");
}},gFl=function(G,e){var r=G.JSC$21143_overlayMarginTop;
G.JSC$21143_overlayMarginBottom=a1a(G,e);G.JSC$21143_overlayHeight=G.canvas.height-G.JSC$21143_overlayMarginBottom-r;G.JSC$21143_overlayWidth=Math.round(G.JSC$21143_overlayHeight*G.requiredRatio);X$C(G)},R4B=function(G,e){var r=G.JSC$21143_overlayMarginTop+G.JSC$21143_overlayHeight;
G.JSC$21143_overlayMarginTop=a1a(G,e);G.JSC$21143_overlayHeight=r-G.JSC$21143_overlayMarginTop;G.JSC$21143_overlayWidth=Math.round(G.JSC$21143_overlayHeight*G.requiredRatio);X$C(G)},X$C=function(G){switch(G.resizeCorner){case 2:case 1:G.JSC$21143_overlayMarginLeft=G.canvas.width-G.JSC$21143_overlayMarginRight-G.JSC$21143_overlayWidth;
break;case 4:case 3:G.JSC$21143_overlayMarginRight=G.canvas.width-G.JSC$21143_overlayMarginLeft-G.JSC$21143_overlayWidth;break;default:throw Error("Rl");}},l1C=function(G,e){var r=G.JSC$21143_overlayMarginLeft+G.JSC$21143_overlayWidth;
G.JSC$21143_overlayMarginLeft=KsA(G,e);G.JSC$21143_overlayWidth=r-G.JSC$21143_overlayMarginLeft;G.JSC$21143_overlayHeight=Math.round(G.JSC$21143_overlayWidth/G.requiredRatio);f18(G)},jKl=function(G,e){var r=G.JSC$21143_overlayMarginLeft;
G.JSC$21143_overlayMarginRight=KsA(G,e);G.JSC$21143_overlayWidth=G.canvas.width-G.JSC$21143_overlayMarginRight-r;G.JSC$21143_overlayHeight=Math.round(G.JSC$21143_overlayWidth/G.requiredRatio);f18(G)},f18=function(G){switch(G.resizeCorner){case 2:case 4:G.JSC$21143_overlayMarginBottom=G.canvas.height-G.JSC$21143_overlayMarginTop-G.JSC$21143_overlayHeight;
break;case 1:case 3:G.JSC$21143_overlayMarginTop=G.canvas.height-G.JSC$21143_overlayMarginBottom-G.JSC$21143_overlayHeight;break;default:throw Error("Rl");}},a1a=function(G,e){switch(G.resizeCorner){case 2:e=G.canvas.height-(G.JSC$21143_overlayMarginTop+kOB(G,e));
break;case 4:e=G.canvas.height-(G.JSC$21143_overlayMarginTop+H8W(G,e));break;case 1:e=G.JSC$21143_overlayMarginTop+G.JSC$21143_overlayHeight-kOB(G,e);break;case 3:e=G.JSC$21143_overlayMarginTop+G.JSC$21143_overlayHeight-H8W(G,e);break;default:throw Error("Rl");}return Math.max(e,G.canvasMargin)},kOB=function(G,e){e=G.JSC$21143_overlayMarginLeft+G.JSC$21143_overlayWidth-Math.max(e,G.horizontalMargin);
e=e<0?G.JSC$21143_overlayWidth:Math.max(e,G.minOverlayWidth);return Math.round(e/G.requiredRatio)},H8W=function(G,e){e=G.canvas.width-Math.max(G.canvas.width-e,G.horizontalMargin)-G.JSC$21143_overlayMarginLeft;
e=e<0?G.JSC$21143_overlayWidth:Math.max(e,G.minOverlayWidth);return Math.round(e/G.requiredRatio)},KsA=function(G,e){switch(G.resizeCorner){case 2:e=G.canvas.width-G.JSC$21143_overlayMarginRight-dTH(G,e);
break;case 4:e=G.canvas.width-G.JSC$21143_overlayMarginLeft-dTH(G,e);break;case 1:e=G.canvas.width-G.JSC$21143_overlayMarginRight-oFY(G,e);break;case 3:e=G.canvas.width-G.JSC$21143_overlayMarginLeft-oFY(G,e);break;default:throw Error("Rl");}return Math.max(e,G.horizontalMargin)},dTH=function(G,e){e=G.canvas.height-Math.max(G.canvas.height-e,G.canvasMargin)-G.JSC$21143_overlayMarginTop;
return e<0?G.JSC$21143_overlayWidth:Math.max(Math.round(e*G.requiredRatio),G.minOverlayWidth)},oFY=function(G,e){e=G.JSC$21143_overlayMarginTop+G.JSC$21143_overlayHeight-Math.max(e,G.canvasMargin);
return e<0?G.JSC$21143_overlayWidth:Math.max(Math.round(e*G.requiredRatio),G.minOverlayWidth)},b8A=function(G){G.ctx.clearRect(0,0,G.canvas.width,G.canvas.height);
G.ctx.drawImage(G.image,0,0,G.image.width,G.image.height,G.horizontalMargin,G.canvasMargin,G.canvas.width-2*G.horizontalMargin,G.scaledImageHeight);G.ctx.fillStyle="rgba(0, 0, 0, 0.7)";G.ctx.fillRect(G.horizontalMargin,G.JSC$21143_overlayMarginTop,G.JSC$21143_overlayMarginLeft-G.horizontalMargin,G.JSC$21143_overlayHeight);G.ctx.fillRect(G.JSC$21143_overlayMarginLeft+G.JSC$21143_overlayWidth,G.JSC$21143_overlayMarginTop,G.JSC$21143_overlayMarginRight-G.horizontalMargin,G.JSC$21143_overlayHeight);G.ctx.fillRect(G.horizontalMargin,
G.canvasMargin,G.scaledImageWidth,G.JSC$21143_overlayMarginTop-G.canvasMargin);G.ctx.fillRect(G.horizontalMargin,G.JSC$21143_overlayMarginTop+G.JSC$21143_overlayHeight,G.scaledImageWidth,G.JSC$21143_overlayMarginBottom-G.canvasMargin);G.drawOverlay();G.component&&_.xy(G.component,"image-updated")};
hf.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$21143_overlayMarginLeft,this.JSC$21143_overlayMarginTop,this.JSC$21143_overlayWidth,this.JSC$21143_overlayHeight);sK2(this)};
var sK2=function(G){var e=G.JSC$21143_overlayMarginLeft-5,r=G.JSC$21143_overlayMarginTop-5,Z=G.JSC$21143_overlayMarginLeft+G.JSC$21143_overlayWidth-5,O=G.JSC$21143_overlayMarginTop+G.JSC$21143_overlayHeight-5;G.ctx.fillStyle="#FFF";G.ctx.fillRect(e,r,10,10);G.ctx.strokeRect(e,r,10,10);G.ctx.fillRect(Z,r,10,10);G.ctx.strokeRect(Z,r,10,10);G.ctx.fillRect(e,O,10,10);G.ctx.strokeRect(e,O,10,10);G.ctx.fillRect(Z,O,10,10);G.ctx.strokeRect(Z,O,10,10);if(G.focusedCorner!==0&&G.styleFocusedCorner){G.ctx.lineWidth=
4;G.ctx.strokeStyle="#3EA6FF";switch(G.focusedCorner){case 1:--e;--r;break;case 2:--e;r=O-1;break;case 3:e=Z-1;--r;break;case 4:e=Z-1;r=O-1;break;default:return}G.ctx.strokeRect(e,r,12,12)}};
hf.prototype.crop=function(G,e){e=e===void 0?!0:e;var r=this.image.width/this.scaledImageWidth,Z=document.createElement("canvas"),O=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],M=this.JSC$21143_overlayWidth*r,T=this.JSC$21143_overlayHeight*r;Z.width=Math.max(M,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);Z.height=Math.max(T,O);G&&(Z.width=Math.min(Z.width,Z.height),Z.height=Math.min(Z.width,Z.height));
G=Z.getContext("2d");if(!G)throw Error("Fl");O=(this.JSC$21143_overlayMarginLeft-this.horizontalMargin)*r;r*=this.JSC$21143_overlayMarginTop-this.canvasMargin;e||(G.fillStyle="white",G.fillRect(0,0,Z.width,Z.height));G.drawImage(this.image,O,r,M,T,0,0,Z.width,Z.height);return Z};var QKH=function(G,e,r,Z,O){hf.call(this,G,e,r,Z,void 0,O,8,!1)};
_.K(QKH,hf);QKH.prototype.drawOverlay=function(){var G=this.getContext(),e=this.JSC$21143_overlayWidth,r=this.JSC$21143_overlayHeight,Z=this.JSC$21143_overlayMarginTop,O=this.JSC$21143_overlayMarginLeft;G.lineWidth=2;G.strokeStyle="#3EA6FF";G.beginPath();G.arc(O+e/2,Z+r/2,e/2,0,2*Math.PI);G.stroke();G.strokeRect(O,Z,e,r);sK2(this)};
var I12={maxFileSizeMB:15,minWidth:98,minHeight:98},p$a=["image/png","image/jpeg","image/gif"],TW=function(){var G=_.m.apply(this,arguments)||this;G.fileSelectorFocusListener=null;G.errorMessage=null;G.isLoading=!0;G.hideContainer=!0;G.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return G};
_.K(TW,_.m);_.V=TW.prototype;_.V.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.V.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.V.computePlaylistThumbnail=function(G){return G==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.V.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.Pi(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.V.setErrorState=function(G){this.resetErrorState();G&&(this.errorMessage=G)};
_.V.showPopup=function(){var G=this;this.hideContainer=!1;_.IQ(_.A0,function(){_.xy(G.hostElement,"yt-refit")});
this.isLoading=!1};
_.V.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.V.closePopup=function(){this.resetFileSelector();_.Pi(this.hostElement,"yt-close-popup-action",[this.is])};
_.V.onCancelTap=function(){this.isPlaylistThumbnail||_.Pi(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.V.openFileSelector=function(){var G=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.IQ(_.A0,function(){setTimeout(function(){if(!G.fileSelector.files||G.fileSelector.files.length===0)G.onCancelTap();G.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(e){e instanceof Error?_.yx(e):_.AG(new _.Cr(JSON.stringify(e)))}};
_.V.handleFileSelection=function(){var G=this,e,r,Z,O,M,T;return _.D(function(E){switch(E.nextAddress){case 1:_.jr(E,2);if(!G.fileSelector.files||!G.imageEditorCanvas)return G.onCancelTap(),E.return();e=G.fileSelector.files[0];V92(G.imageChecker,e);_.jr(E,4);return E.yield(NBo(e),6);case 6:G.mimeType=E.yieldResult;_.rL(E,5,2);break;case 4:_.k5(E,2),_.Pi(G.hostElement,"yt-image-selection-error-action",[(r=G.data)==null?void 0:r.genericImageLoadErrorMessage]),G.onCancelTap();case 5:Z=new FileReader;
Z.addEventListener("load",function(){var b,w;return _.D(function(q){if(q.nextAddress==1){if(!Z.result)return _.FH(Error("Hl")),q.return();b=Z.result;w=new Image;w.src=b;w.onload=function(){try{var t=G.imageChecker;if(w.width<t.requirements.minWidth||w.height<t.requirements.minHeight)throw new O8m(t.requirements.minWidth,t.requirements.minHeight);}catch(l){if(l instanceof O8m){var g;_.Pi(G.hostElement,"yt-image-selection-error-action",[(g=G.data)==null?void 0:g.imageDimensionErrorMessage]);G.logImageDimensionErrorVe()}else l instanceof
Error?_.yx(l):(t=new _.Cr(JSON.stringify(l)),_.yx(t));G.onCancelTap()}G.showPopup()};
w.onerror=function(){var t;_.Pi(G.hostElement,"yt-image-selection-error-action",[(t=G.data)==null?void 0:t.genericImageLoadErrorMessage]);G.onCancelTap()};
return q.yield(i8a(G.imageEditorCanvas,b),2)}G.imageEditor=q.yieldResult;G.updatePositionOfAllCorners();G.addEventListeners(G.imageEditor);_.HL(q)})},!1);
Z.readAsDataURL(e);_.rL(E,0);break;case 2:O=_.k5(E),O instanceof Z8l?_.Pi(G.hostElement,"yt-image-selection-error-action",[(M=G.data)==null?void 0:M.imageSizeErrorMessage]):(O instanceof Error?_.yx(O):_.AG(new _.Cr(JSON.stringify(O))),_.Pi(G.hostElement,"yt-image-selection-error-action",[(T=G.data)==null?void 0:T.genericImageLoadErrorMessage])),G.onCancelTap(),_.HL(E)}})};
_.V.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var G=_.OY(_.h_(),{veType:232707,visualElement:_.L1(232707)});G&&(G={visualElement:G},_.ZM().reportShown(G))}};
_.V.handleImageSelectionErrorAction=function(G){this.isPlaylistThumbnail&&_.tns(this.hostElement,G)};
_.V.convertToImageFormatBundle=function(G){var e=this,r,Z,O;return _.D(function(M){switch(M.nextAddress){case 1:return r=G.toDataURL(e.outputMimeType,1),M.yield(L$C(r),2);case 2:Z=M.yieldResult;_.jr(M,3);V92(e.imageChecker,Z);_.rL(M,4);break;case 3:O=_.k5(M);if(!(O instanceof Z8l))throw O;_.FH(new _.Cr("Output size is bigger than input size for image",e.mimeType,e.outputMimeType,Z.size));r=G.toDataURL("image/jpeg",.95);return M.yield(L$C(r),6);case 6:Z=M.yieldResult;case 4:return M.return({dataUrl:r,
imageFile:Z})}})};
_.V.handleUploadImageToScottyCommand=function(G){var e=this,r,Z,O,M,T,E,b,w,q,t;return _.D(function(g){switch(g.nextAddress){case 1:if(!e.imageEditor||!_.a(G,WjY))return g.return();r=_.a(G,WjY).scottyUploadUrl;if(!r){var l=new _.Cr("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.yx(l);return g.return()}_.jr(g,2);e.setLoadingState();Z=e.imageEditor.crop(!1,!1);return g.yield(e.convertToImageFormatBundle(Z),4);case 4:return O=g.yieldResult,g.yield(zp2(O.imageFile,r),5);
case 5:M=g.yieldResult;((T=e.data)==null?0:T.onUploadEndpoint)?(E=e.buildUploadServiceEndpoint(M),e.ytComponentBehavior.resolveCommand(E),b=_.a(E,_.BV),((w=b)==null?0:w.params)?e.closePopup():e.resetFileSelector()):(_.Pi(e.hostElement,"yt-image-updated-action",[O.dataUrl,M]),e.closePopup());_.rL(g,0);break;case 2:q=_.k5(g),e.setErrorState((t=e.data)==null?void 0:t.uploadErrorMessage),q instanceof Error?_.yx(q):(l=new _.Cr(JSON.stringify(q)),_.yx(l)),_.HL(g)}})};
_.V.buildUploadServiceEndpoint=function(G){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",G),this.data.onUploadEndpoint):null};
_.V.dataChanged=function(){var G=this,e;return _.D(function(r){if(r.nextAddress==1){if(!G.data||!G.canvasElement)return r.return();G.data.imageRatio&&G.data.minImageCropWidth||_.AG(new _.Cr("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));e=function(Z,O){return G.data.imageType==="IMAGE_TYPE_AVATAR"?new QKH(Z,O,G.data.imageRatio,[G.data.minImageCropWidth,G.data.minImageCropWidth/G.data.imageRatio],G.hostElement):new hf(Z,O,G.data.imageRatio,[G.data.minImageCropWidth,
G.data.minImageCropWidth/G.data.imageRatio],void 0,G.hostElement,8,!1)};
G.imageEditorCanvas=new h4W(G.canvasElement,e);return G.data.url?r.yield(i8a(G.imageEditorCanvas,G.data.url),3):(G.hideContainer=!0,G.openFileSelector(),r.jumpTo(0))}G.imageEditor=r.yieldResult;G.showPopup();G.addEventListeners(G.imageEditor);_.HL(r)})};
_.V.addEventListeners=function(G){this.removeEventListeners();var e=function(O){Tt2(G,O)};
this.JSC$21151_mouseDownEvent=e;var r=function(O){DTC(G,O)};
this.JSC$21151_mouseMoveEvent=r;var Z=function(){EFA(G)};
this.JSC$21151_mouseUpEvent=Z;this.topLeftCorner.addEventListener("mousedown",e);this.topLeftCorner.addEventListener("mousemove",r);this.topLeftCorner.addEventListener("mouseup",Z);this.topRightCorner.addEventListener("mousedown",e);this.topRightCorner.addEventListener("mousemove",r);this.topRightCorner.addEventListener("mouseup",Z);this.bottomLeftCorner.addEventListener("mousedown",e);this.bottomLeftCorner.addEventListener("mousemove",r);this.bottomLeftCorner.addEventListener("mouseup",Z);this.bottomRightCorner.addEventListener("mousedown",
e);this.bottomRightCorner.addEventListener("mousemove",r);this.bottomRightCorner.addEventListener("mouseup",Z)};
_.V.removeEventListeners=function(){this.JSC$21151_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$21151_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$21151_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$21151_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$21151_mouseDownEvent));this.JSC$21151_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$21151_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$21151_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$21151_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$21151_mouseMoveEvent));this.JSC$21151_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$21151_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$21151_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$21151_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$21151_mouseUpEvent))};
_.V.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var G=document.activeElement;G&&G.shadowRoot&&G.shadowRoot.activeElement;)G=G.shadowRoot.activeElement;switch(G){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};
_.V.updatePositionOfCorner=function(G,e){var r=G.y-e.offsetHeight/2+4;e.style.left=G.x-e.offsetWidth/2+16+"px";e.style.top=r+"px"};
_.V.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var G=_.h([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),e=G.next();!e.done;e=G.next()){e=e.value;var r=$TA(this.imageEditor,e.corner);this.updatePositionOfCorner(r,e.div)}};
_.V.onLeft=function(G){this.imageEditor&&this.setFocusInImageEditor()&&(qrV(this.imageEditor,0),this.updatePositionOfAllCorners(),G.preventDefault())};
_.V.onRight=function(G){this.imageEditor&&this.setFocusInImageEditor()&&(qrV(this.imageEditor,1),this.updatePositionOfAllCorners(),G.preventDefault())};
_.V.onUp=function(G){this.imageEditor&&this.setFocusInImageEditor()&&(qrV(this.imageEditor,2),this.updatePositionOfAllCorners(),G.preventDefault())};
_.V.onDown=function(G){this.imageEditor&&this.setFocusInImageEditor()&&(qrV(this.imageEditor,3),this.updatePositionOfAllCorners(),G.preventDefault())};
_.V.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.iY.Object.defineProperties(TW.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&p$a.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var G,e,r;((e=this.data)==null?0:e.imageRatio)&&((r=this.data)==null?0:r.minImageCropWidth)?G={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:G=I12;return new M9A(G)}}});
TW.prototype.updatePositionOfAllCorners=TW.prototype.updatePositionOfAllCorners;TW.prototype.dataChanged=TW.prototype.dataChanged;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],TW.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],TW.prototype,"ytComponentBehavior",void 0);_.B([_.k(_.fS),_.x("design:type",Object)],TW.prototype,"ironA11yKeysBehavior",void 0);
_.B([_.hs("#canvas"),_.x("design:type",HTMLCanvasElement)],TW.prototype,"canvasElement",void 0);_.B([_.hs("#file-selector"),_.x("design:type",HTMLInputElement)],TW.prototype,"fileSelector",void 0);_.B([_.hs("#top-left-corner"),_.x("design:type",HTMLDivElement)],TW.prototype,"topLeftCorner",void 0);_.B([_.hs("#top-right-corner"),_.x("design:type",HTMLDivElement)],TW.prototype,"topRightCorner",void 0);
_.B([_.hs("#bottom-left-corner"),_.x("design:type",HTMLDivElement)],TW.prototype,"bottomLeftCorner",void 0);_.B([_.hs("#bottom-right-corner"),_.x("design:type",HTMLDivElement)],TW.prototype,"bottomRightCorner",void 0);_.B([_.n(),_.x("design:type",Object)],TW.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],TW.prototype,"errorMessage",void 0);_.B([_.n(),_.x("design:type",Object)],TW.prototype,"isLoading",void 0);_.B([_.n(),_.x("design:type",Object)],TW.prototype,"hideContainer",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.x("design:type",Boolean)],TW.prototype,"isPlaylistThumbnail",void 0);_.B([_.iD("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],TW.prototype,"dataChanged",null);_.B([_.Om("image-updated"),_.Om("yt-refit"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],TW.prototype,"updatePositionOfAllCorners",null);
_.B([_.aR({is:"yt-image-editor-renderer",disableElementRegistration:!0})],TW);
_.A(TW,"yt-image-editor-renderer",function(){if(ruB===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;e4V===void 0&&(e4V=document.createElement("template"));var Z=e4V;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);ruB=G}G=ruB;return G},{mode:2});var CVY;var udY;var Du=function(){return _.m.apply(this,arguments)||this};
_.K(Du,_.m);Du.prototype.updateMinutesFromBinding=function(G){this.handleMinutesChanged&&this.handleMinutesChanged(G)};
Du.prototype.updateSecondsFromBinding=function(G){this.handleSecondsChanged&&this.handleSecondsChanged(G)};
Du.prototype.updateDescriptionFromBinding=function(G){this.handleDescriptionChanged&&this.handleDescriptionChanged(G)};
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Du.prototype,"ytComponentBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Du.prototype,"data",void 0);_.B([_.n(),_.x("design:type",String)],Du.prototype,"minutes",void 0);_.B([_.n(),_.x("design:type",String)],Du.prototype,"seconds",void 0);_.B([_.n(),_.x("design:type",String)],Du.prototype,"description",void 0);_.B([_.n(),_.x("design:type",Function)],Du.prototype,"handleMinutesChanged",void 0);
_.B([_.n(),_.x("design:type",Function)],Du.prototype,"handleSecondsChanged",void 0);_.B([_.n(),_.x("design:type",Function)],Du.prototype,"handleDescriptionChanged",void 0);_.B([_.n(),_.x("design:type",Number)],Du.prototype,"characterLimit",void 0);_.B([_.n(),_.x("design:type",Number)],Du.prototype,"textNumRows",void 0);_.B([_.aR({is:"yt-report-details-form-content",disableElementRegistration:!0})],Du);
_.A(Du,"yt-report-details-form-content",function(){if(udY===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;CVY===void 0&&(CVY=document.createElement("template"));var Z=CVY;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);udY=G}G=udY;return G},{mode:2});var nF8;var mT8;var Eo=function(){var G=_.m.apply(this,arguments)||this;G.updateMinutesFromBinding=function(e){G.minutes=e.detail.value};
G.updateSecondsFromBinding=function(e){G.seconds=e.detail.value};
G.updateDescriptionFromBinding=function(e){G.description=e.detail.value};
return G};
_.K(Eo,_.m);_.V=Eo.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.V.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"}}}};
_.V.ready=function(){_.z1(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.V.onSubmitYtAction=function(G){var e=G.detail;e.actionName==="yt-service-request"&&(e=e.args[1],e.flagEndpoint&&(G.stopPropagation(),this.refireAction(e)))};
_.V.refireAction=function(G){var e={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(e.vss_id=this.vssId);_.zw(this.hostElement,[G,e]);this.submitDisabled=!0};
_.V.dataChanged=function(){var G=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var e=_.Ff();e&&e.getPlayerPromise().then(function(r){var Z=r.getOption("cc","track")||r.getOption("captions","track");Z&&(G.vssId=Z.vss_id);r=r.getCurrentTime();G.minutes=Math.floor(r/60).toString();G.seconds=(Math.floor(r)%60).toString()})};
_.V.updateSubmitButtonState=function(){var G;((G=this.data)==null?0:G.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==="")};
_.V.onYtServiceRequestCompleted=function(){_.Pi(this.hostElement,"yt-close-popup-action")};
_.V.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.iY.Object.defineProperties(Eo.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.textNumRows)||4}}});
Eo.prototype.onYtServiceRequestError=Eo.prototype.onYtServiceRequestError;Eo.prototype.onYtServiceRequestCompleted=Eo.prototype.onYtServiceRequestCompleted;Eo.prototype.updateSubmitButtonState=Eo.prototype.updateSubmitButtonState;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Eo.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Eo.prototype,"ytRendererBehavior",void 0);
_.B([_.n({observer:"dataChanged"}),_.x("design:type",Object)],Eo.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Boolean)],Eo.prototype,"submitDisabled",void 0);_.B([_.n(),_.x("design:type",String)],Eo.prototype,"minutes",void 0);_.B([_.n(),_.x("design:type",String)],Eo.prototype,"seconds",void 0);_.B([_.n(),_.x("design:type",String)],Eo.prototype,"description",void 0);_.B([_.n(),_.x("design:type",String)],Eo.prototype,"vssId",void 0);
_.B([_.n({value:_.xZ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.x("design:type",Boolean)],Eo.prototype,"isMusic",void 0);_.B([_.d("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],Eo.prototype,"characterLimit",null);_.B([_.d("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],Eo.prototype,"textNumRows",null);
_.B([_.iD("minutes","seconds","description","submitDisabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Eo.prototype,"updateSubmitButtonState",null);_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Eo.prototype,"onYtServiceRequestCompleted",null);
_.B([_.Om("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Eo.prototype,"onYtServiceRequestError",null);_.B([_.aR({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],Eo);
_.A(Eo,"yt-report-details-form-renderer",function(){if(mT8===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;nF8===void 0&&(nF8=document.createElement("template"));var Z=nF8;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);mT8=G}G=mT8;return G});var cuH;var YrW;var yu2;var Au8;var ia=function(){return _.m.apply(this,arguments)||this};
_.K(ia,_.m);
ia.prototype.onCheckedChanged_=function(){if(this.data){var G=_.z1(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.Pi(this.hostElement,"yt-additional-detail-checkbox-update",[G]):this.data.identifier==="yt-hide-user-checkbox"?_.Pi(this.hostElement,"yt-hide-user-checkbox-update",[G]):G&&this.data.enableCommand?_.Pi(this.hostElement,"yt-modify-report-form-command",[_.a(this.data.enableCommand,OwW)]):!G&&this.data.disableCommand&&_.Pi(this.hostElement,
"yt-modify-report-form-command",[_.a(this.data.enableCommand,OwW)])}};
ia.prototype.onLabelTap_=function(G){G.target.tagName!="A"&&(_.z1(this.hostElement).querySelector("#checkbox").checked=!_.z1(this.hostElement).querySelector("#checkbox").checked)};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],ia.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ia.prototype,"data",void 0);_.B([_.aR({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],ia);
_.A(ia,"yt-boolean-form-field-v2-renderer",function(){if(Au8===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;yu2===void 0&&(yu2=document.createElement("template"));var Z=yu2;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Au8=G}G=Au8;return G});var ba=function(){var G=_.m.apply(this,arguments)||this;G.canShowAdditionalDetailCheckbox=!1;G.canShowCheckbox=!1;G.keepDropdownFocusedAfterSelection=!0;return G};
_.K(ba,_.m);ba.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}}}}};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],ba.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],ba.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],ba.prototype,"canShowAdditionalDetailCheckbox",void 0);_.B([_.n(),_.x("design:type",Object)],ba.prototype,"canShowCheckbox",void 0);_.B([_.n(),_.x("design:type",Object)],ba.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.B([_.aR({is:"yt-report-form-modal-content",disableElementRegistration:!0})],ba);
_.A(ba,"yt-report-form-modal-content",function(){if(YrW===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;cuH===void 0&&(cuH=document.createElement("template"));var Z=cuH;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);YrW=G}G=YrW;return G},{mode:2});var Fso;var JuH;var v6=function(){var G=_.m.apply(this,arguments)||this;G.submitting=!1;G.submitButtonDisabled=!0;G.command=null;G.canShowCheckbox=!1;G.canShowAdditionalDetailCheckbox=!1;G.canShowNextButton=!1;G.additionalDetailCheckboxChecked=!1;G.refitJob=0;G.keepDropdownFocusedAfterSelection=!0;G.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 G};
_.K(v6,_.m);_.V=v6.prototype;_.V.created=function(){this.refitJob=0};
_.V.attached=function(){this.JSC$21174_scroller&&(this.JSC$21174_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21174_scroller.attached&&typeof this.JSC$21174_scroller.attached==="function"&&this.JSC$21174_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(G){G&&(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,G.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),G.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.V.onYtPopupOpened=function(){var G=_.Ff();G&&G.getPlayerPromise().then(function(e){e.pauseVideo()})};
_.V.onYtNavigate=function(G){_.a(G.detail.endpoint,_.L9y)&&(G.stopPropagation(),this.hideReportForm=!0)};
_.V.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.V.onYtServiceRequestCompleted=function(G,e){var r=e.actions;if(r){if(r.length===1&&_.a(r[0],_.LO)){var Z;r=((Z=_.a(r[0],_.LO))==null?void 0:Z.commands)||[]}Z=0;for(var O=r.length;Z<O;Z++)_.a(r[Z],_.sP)&&(G.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(r[Z]))}if(e.data&&(G=this.get("feedbackResponses",e.data)))for(e=0;e<G.length;e++)if(G[e].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.V.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.V._onDescendantIronResize=function(G){G.stopPropagation();return!1};
_.V.handleReportFormEndpointUpdateAction=function(G){if(G.submitEndpoint){var e=this.command=G.submitEndpoint;e=_.a(e,_.Wic);if(e==null?0:e.additionalDetailCheckboxChecked)e.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else G.submitNavigationEndpoint?(this.command=G.submitNavigationEndpoint,this.toggleSubmitButton(!1)):G.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:G.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;G.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",G));this.refit()};
_.V.handleConfirmDialogCloseAction=function(G){G.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.V.submitButtonDisabledChanged=function(){var G=this.hostElement.parentElement;G&&G.invalidateTabbables&&G.invalidateTabbables()};
_.V.handleModifyReportFormCommand=function(G){G=this.get("action",G);G==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:G==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:G==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:G==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:G==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:G==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.V.updateDialogStyling=function(){var G,e,r,Z,O,M=((O=(G=this.data)==null?void 0:(e=G.optionsSupportedRenderers)==null?void 0:(r=e.optionsRenderer)==null?void 0:(Z=r.items)==null?void 0:Z.length)!=null?O:0)<=2?0:240;_.eD(this.hostElement,{"--yt-report-form-modal-renderer-min-width":M+"px"})};
_.V.toggleSubmitButton=function(G){this.submitButtonDisabled=!G;this.submitButtonDisabled=G};
_.V.computeSubmitButtonData=function(G,e){var r={};_.a(e,_.L9y)?r.navigationEndpoint=e:r.command=e||void 0;G&&G.buttonRenderer&&_.c2.extend(r,G.buttonRenderer);return r};
_.V.computeNextButtonData=function(G,e){var r={};if(!G||!G.buttonRenderer)return r;_.c2.extend(r,G.buttonRenderer);if(!e)return r;if(_.a(e,_.L9y))r.navigationEndpoint=rQa(e);else if(r.command=rQa(e),G=_.a(r.command,_.Wic))G.legalCheckboxChecked=!0;return r};
_.V.computeShowNextButton=function(G,e,r){return!!G&&e&&r};
_.V.refit=function(){var G=this;this.refitJob||(this.refitJob=_.A0.addLowPriorityJob(function(){_.xy(G.hostElement,"yt-refit");G.refitJob=0}))};
_.V.handleAdditionalDetailCheckboxUpdateAction=function(G){this.additionalDetailCheckboxChecked=G;_.a(this.command,_.Wic).additionalDetailCheckboxChecked=G};
_.iY.Object.defineProperties(v6,{template:{configurable:!0,enumerable:!0,get:function(){if(JuH===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;Fso===void 0&&(Fso=document.createElement("template"));var Z=Fso;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);JuH=G}G=JuH;return G}}});
v6.prototype.onYtServiceRequestError=v6.prototype.onYtServiceRequestError;v6.prototype.onYtServiceRequestCompleted=v6.prototype.onYtServiceRequestCompleted;v6.prototype.onYtServiceRequestSent=v6.prototype.onYtServiceRequestSent;v6.prototype.onYtNavigate=v6.prototype.onYtNavigate;v6.prototype.onYtPopupOpened=v6.prototype.onYtPopupOpened;_.B([_.k(_.qG.YtOpenPopupBehavior),_.x("design:type",Object)],v6.prototype,"openPopupBehavior",void 0);
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],v6.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],v6.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],v6.prototype,"eventForwardingBehavior",void 0);_.B([_.k(_.CS),_.x("design:type",Object)],v6.prototype,"ironResizableBehavior",void 0);_.B([_.n({observer:"dataChanged"}),_.x("design:type",Object)],v6.prototype,"data",void 0);
_.B([_.n(),_.x("design:type",Object)],v6.prototype,"submitting",void 0);_.B([_.n({observer:"submitButtonDisabledChanged"}),_.x("design:type",Object)],v6.prototype,"submitButtonDisabled",void 0);_.B([_.n(),_.x("design:type",Object)],v6.prototype,"command",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],v6.prototype,"hideReportForm",void 0);_.B([_.n(),_.x("design:type",Object)],v6.prototype,"canShowCheckbox",void 0);
_.B([_.n(),_.x("design:type",Object)],v6.prototype,"canShowAdditionalDetailCheckbox",void 0);_.B([_.n(),_.x("design:type",Object)],v6.prototype,"canShowNextButton",void 0);_.B([_.n(),_.x("design:type",Object)],v6.prototype,"additionalDetailCheckboxChecked",void 0);_.B([_.n(),_.x("design:type",Object)],v6.prototype,"refitJob",void 0);_.B([_.n(),_.x("design:type",Object)],v6.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.B([_.hs("#scroller"),_.x("design:type",Object)],v6.prototype,"JSC$21174_scroller",void 0);_.B([_.Om("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],v6.prototype,"onYtPopupOpened",null);_.B([_.Om("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],v6.prototype,"onYtNavigate",null);
_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.oV]),_.x("design:returntype")],v6.prototype,"onYtServiceRequestSent",null);_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.n1]),_.x("design:returntype")],v6.prototype,"onYtServiceRequestCompleted",null);
_.B([_.Om("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],v6.prototype,"onYtServiceRequestError",null);_.B([_.aR({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],v6);var BtB;var xTW;var wN=function(){return _.m.apply(this,arguments)||this};
_.K(wN,_.m);_.V=wN.prototype;_.V.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.V.onVisible=function(){var G,e;(e=_.v_().resolve(_.bq(_.rC)))==null||e.enqueue({label:_.mG((G=this.data)==null?void 0:G.messageTitle),elementToFocus:this.hostElement})};
_.V.onThumbnailLoaded=function(){_.xy(this.hostElement,"yt-refit")};
_.V.onDismissTap=function(){_.Pi(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.V.computeAlternateIcon=function(G){return G?G==="BACKSTAGE_ARTWORK"?"backstage:artwork":G:null};
_.V.computeFontFamily=function(G){return G==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.V.computeBackgroundStyle=function(G,e){if(G=this.computeBackgroundImage(G,e))if(G=_.xh(G.thumbnails))return'background-image: url("'+G+'");'};
_.V.computeHasFullHeightImage=function(G){return!(!(G&&G.thumbnails&&G.thumbnails.length>0)||this.modern)};
_.V.isModernStyle=function(G){return G.style==="STYLE_MODERN"};
_.V.computeIcon=function(G,e){if(G&&G.icon)return e?G.iconDark:G.icon};
_.V.computeBackgroundImage=function(G,e){if(G&&G.backgroundImage)return e?G.backgroundImageDark:G.backgroundImage};
_.V.computeLogo=function(G,e){if(G&&G.logo)return e?G.logoDark:G.logo};
_.V.computeShouldShowModernIcon=function(G,e){return G&&!!e};
_.V.getLogoContainerClassName=function(G){return this.logoWithPadding(G)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.V.getLogoImageId=function(G){return this.logoWithPadding(G)?"mealbar-logo-with-padding":"mealbar-logo"};
_.V.logoWithPadding=function(G){var e,r,Z;return(G=(e=this.computeLogo(G,this.isDarkTheme))==null?void 0:(r=e.thumbnails)==null?void 0:(Z=r[0])==null?void 0:Z.height)&&G%31===0?!0:!1};
wN.prototype.onThumbnailLoaded=wN.prototype.onThumbnailLoaded;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],wN.prototype,"ytRendererBehavior",void 0);_.B([_.n({}),_.x("design:type",Object)],wN.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.x("design:type",Boolean)],wN.prototype,"modern",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],wN.prototype,"isDarkTheme",void 0);
_.B([_.n({computed:"computeIcon(data, isDarkTheme)"}),_.x("design:type",Object)],wN.prototype,"icon",void 0);_.B([_.n({computed:"computeLogo(data, isDarkTheme)"}),_.x("design:type",Object)],wN.prototype,"logo",void 0);_.B([_.n({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.x("design:type",Object)],wN.prototype,"backgroundStyle",void 0);_.B([_.n({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.x("design:type",Object)],wN.prototype,"alternateIcon",void 0);
_.B([_.n({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.x("design:type",Boolean)],wN.prototype,"hasFullHeightImage",void 0);_.B([_.n({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.x("design:type",Boolean)],wN.prototype,"useYoutubeSans",void 0);_.B([_.n({computed:"computeShouldShowModernIcon(modern, icon)"}),_.x("design:type",Boolean)],wN.prototype,"shouldShowModernIcon",void 0);
_.B([_.Om("yt-img-shadow-loaded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wN.prototype,"onThumbnailLoaded",null);_.B([_.aR({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],wN);
_.A(wN,"yt-mealbar-promo-renderer",function(){if(xTW===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;BtB===void 0&&(BtB=document.createElement("template"));var Z=BtB;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);xTW=G}G=xTW;return G},{mode:2});var PVV;var UTV;var $R=function(){return _.m.apply(this,arguments)||this};
_.K($R,_.m);_.V=$R.prototype;_.V.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]]"}}}}}};
_.V.computeHasButtons_=function(G){return!(!G.dismissButton&&!G.acceptButton)};
_.V.computeStyle_=function(G){return G||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.V.observeImpressionEndpoints_=function(){var G=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(e){e.clickTrackingParams&&delete e.clickTrackingParams;_.zw(G.hostElement,[e])})};
_.V.onTap_=function(){_.Pi(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
$R.prototype.observeImpressionEndpoints_=$R.prototype.observeImpressionEndpoints_;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],$R.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],$R.prototype,"ytEventForwardingBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],$R.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],$R.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],$R.prototype,"positionType",void 0);_.B([_.n({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.x("design:type",Boolean)],$R.prototype,"hasButtons_",void 0);_.B([_.n({value:function(){return this.onTap_.bind(this)}}),
_.x("design:type",Function)],$R.prototype,"boundOnTap_",void 0);_.B([_.n({value:{style:"mono-inverse"}}),_.x("design:type",Object)],$R.prototype,"buttonOverride",void 0);_.B([_.Me("data.promoConfig.impressionEndpoints"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$R.prototype,"observeImpressionEndpoints_",null);_.B([_.aR({is:"yt-tooltip-renderer",disableElementRegistration:!0})],$R);
_.A($R,"yt-tooltip-renderer",function(){if(UTV===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;PVV===void 0&&(PVV=document.createElement("template"));var Z=PVV;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);UTV=G}G=UTV;return G},{mode:2});var z4V;var Ws8;var Ntm={},Lso=(Ntm.WEB_REMIX="music.youtube.com",Ntm),St=function(){var G=_.m.apply(this,arguments)||this;G.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return G};
_.K(St,_.m);_.V=St.prototype;_.V.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.created=function(){this.embedHost_=Lso[_.xZ("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.V.ready=function(){_.z1(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.V.computeEmbedCode_=function(G,e,r,Z,O){if(!G)return"";var M=G.videoId,T=G.fullListId,E=[];G.attributionId&&E.push("si="+G.attributionId);Z||E.push("controls=0");r&&Number(e)>0&&E.push("start="+e);T&&(M="videoseries",E.push("list="+T));r="https://"+(O?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+M;G.clipId&&(E.push("clip="+G.clipId),E.push("clipt="+G.clipTiming));e=E.length>0?r+"?"+E.join("&amp;"):r;G.encryptedEmbedConfig&&E.push("embed_config="+JSON.stringify({enc:G.encryptedEmbedConfig}));
E=E.length>0?r+"?"+E.join("&amp;"):r;_.R("web_sharing_embed_preview_killswitch")?_.z1(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(E,G.previewWidth||854,G.previewHeight||480):(_.dc(this.videoPreviewContainer),_.z1(this.videoPreviewContainer).appendChild(this.buildIframeElement(E)));return this.getEmbedCode_(e,G.width||560,G.height||315)};
_.V.buildIframeElement=function(G){var e=document.createElement("iframe"),r,Z;e.width=""+((Z=(r=this.data)==null?void 0:r.previewWidth)!=null?Z:854);var O,M;e.height=""+((M=(O=this.data)==null?void 0:O.previewHeight)!=null?M:480);_.v5U(e,2,G);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};
_.V.computeIsSquareAspectRatio_=function(G){return G.previewHeight&&G.previewWidth?G.previewHeight==G.previewWidth:!1};
_.V.computeShowEmbedOptions_=function(G){return!!G.enablePrivacyModeOptionLabel||!!G.showPlayerControlsOptionLabel};
_.V.getEmbedCode_=function(G,e,r){return'<iframe width="'+e+'" height="'+r+'" src="'+G+'" 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>'};
_.V.handleSignalActionCopyShareEmbedUrl_=function(){_.z1(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.V.handleSetTimestamp_=function(G){this.startAtTimeStamp_=(this.startAtChecked_=G.isSet)?G.timestamp:0};
_.V.closePanel_=function(){_.Pi(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.V.onEmbedCode_=function(){_.z1(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.V.onYtPopupClosed_=function(){_.dc(_.z1(this.hostElement).querySelector("#video-preview"))};
_.V.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.a(this.data.actionButtons[0],_.zM)&&this.ytRendererBehavior.logExplicitClick(_.a(this.data.actionButtons[0],_.zM))};
St.prototype.onYtPopupClosed_=St.prototype.onYtPopupClosed_;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],St.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],St.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],St.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],St.prototype,"data",void 0);
_.B([_.n({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.x("design:type",String)],St.prototype,"embedCode_",void 0);_.B([_.n({value:!0}),_.x("design:type",Boolean)],St.prototype,"isPlayerControlsOptionChecked_",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],St.prototype,"isPrivacyModeOptionChecked_",void 0);_.B([_.n({value:!1,notify:!0}),_.x("design:type",Boolean)],St.prototype,"startAtChecked_",void 0);
_.B([_.n({value:0}),_.x("design:type",Number)],St.prototype,"startAtTimeStamp_",void 0);_.B([_.n({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],St.prototype,"isSquareAspectRatio_",void 0);_.B([_.hs("#video-preview"),_.x("design:type",HTMLElement)],St.prototype,"videoPreviewContainer",void 0);_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],St.prototype,"onYtPopupClosed_",null);
_.B([_.aR({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],St);
_.A(St,"yt-sharing-embed-renderer",function(){if(Ws8===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;z4V===void 0&&(z4V=document.createElement("template"));var Z=z4V;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Ws8=G}G=Ws8;return G},{mode:2});var Gld={};
Gld.YtUnlimitedFamilyInterstitialBehavior=[_.qG.YtOpenPopupBehavior,_.gF.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(G){G=_.of3(_.mk(G),"yt-button-renderer");return G?G.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(G){this.dialogHistory_.push(G)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var G=this.popFromHistory();if(G){var e={openPopupAction:{popupType:"DIALOG",popup:{}}};e.openPopupAction.popup[G.renderer]=G.data;this.showingPreviousDialog_=!0;this.openPopup(e)}},
handleOpenPopupAction_:function(G){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var e=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(Z){return!!G.openPopupAction.popup[Z]}),r=this.getElementName_();
e&&this.data&&(this.pushToHistory({renderer:r,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(G){if(G=_.a(G,su8))this.loading=!0,_.Pi(this.hostElement,"yt-open-create-family-dialog",[G,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var G=this.hostElement.nodeName.split("-").slice(1).map(function(e){return""+e[0].toUpperCase()+e.slice(1).toLowerCase()}).join("");
return G[0].toLowerCase()+G.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var eWV;var rzV;var qi=function(){return _.m.apply(this,arguments)||this};
_.K(qi,_.m);_.V=qi.prototype;_.V.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}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Pi(this.hostElement,"yt-register-create-family-dialog");_.z1(this.hostElement).querySelector("#thumbnail").onShow()};
_.V.fireOnCloseCommand_=function(){var G;((G=this.data)==null?0:G.onCloseCommand)&&_.Wi(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.V.onYtServiceRequestSent_=function(G,e){e&&e.endpoint&&_.a(e.endpoint,_.eq)||(this.loading=!0)};
_.V.onYtServiceRequestCompleted_=function(){var G=this.hostElement.parentElement;G.close&&G.close();this.loading=!1};
_.V.openPopupHandler_=function(G){if(G.detail==this){var e;((e=this.data)==null?0:e.onOpenCommands)&&_.Wi(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.V.closePopupHandler_=function(G,e){this.fireOnCloseCommand_();if(e&&e.canceled===!0||e&&e.canceled===!1&&e.confirmed===!1){var r;((r=this.data)==null?0:r.onDismissCommands)&&_.Wi(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.V.dataChanged_=function(){this.loading=!1};
qi.prototype.dataChanged_=qi.prototype.dataChanged_;qi.prototype.closePopupHandler_=qi.prototype.closePopupHandler_;qi.prototype.openPopupHandler_=qi.prototype.openPopupHandler_;qi.prototype.onYtServiceRequestCompleted_=qi.prototype.onYtServiceRequestCompleted_;qi.prototype.onYtServiceRequestSent_=qi.prototype.onYtServiceRequestSent_;_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],qi.prototype,"ytEventForwardingBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],qi.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(Gld.YtUnlimitedFamilyInterstitialBehavior),_.x("design:type",Object)],qi.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],qi.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],qi.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],qi.prototype,"loading",void 0);_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.oV]),_.x("design:returntype")],qi.prototype,"onYtServiceRequestSent_",null);_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.n1]),_.x("design:returntype")],qi.prototype,"onYtServiceRequestCompleted_",null);
_.B([_.Om("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],qi.prototype,"openPopupHandler_",null);_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],qi.prototype,"closePopupHandler_",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qi.prototype,"dataChanged_",null);
_.B([_.aR({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],qi);
_.A(qi,"yt-unlimited-family-message-interstitial-renderer",function(){if(rzV===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;eWV===void 0&&(eWV=document.createElement("template"));var Z=eWV;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);rzV=G}G=rzV;return G},{mode:2});var Zq8;var OqH;var tf=function(){return _.m.apply(this,arguments)||this};
_.K(tf,_.m);tf.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"}}}};
tf.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.z1(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(G){G.onShow()});
_.z1(this.hostElement).querySelector("#main-thumbnail").onShow()};
tf.prototype.onButtonTap_=function(G){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(G)};
tf.prototype.computeMainThumbnailWidth_=function(G){return G&&G.length!==0?72:96};
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],tf.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],tf.prototype,"ytRendererBehavior",void 0);_.B([_.k(Gld.YtUnlimitedFamilyInterstitialBehavior),_.x("design:type",Object)],tf.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],tf.prototype,"data",void 0);
_.B([_.n({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.x("design:type",Number)],tf.prototype,"mainThumbnailWidth_",void 0);_.B([_.n({value:function(){return this.onButtonTap_.bind(this)}}),
_.x("design:type",Function)],tf.prototype,"boundButtonTap_",void 0);_.B([_.aR({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],tf);
_.A(tf,"yt-unlimited-family-profile-interstitial-renderer",function(){if(OqH===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;Zq8===void 0&&(Zq8=document.createElement("template"));var Z=Zq8;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);OqH=G}G=OqH;return G},{mode:2});var Mlo;var Vla;var gN=function(){var G=_.m.apply(this,arguments)||this;G.sliderAriaValueText_=null;G.selectedIndex_=0;G.messages={PAUSE_SLIDER:_.OK("PAUSE_SLIDER",void 0,"Pause Duration")};return G};
_.K(gN,_.m);_.V=gN.prototype;_.V.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_]]"}}}}}};
_.V.onPopupOpened_=function(G){G.detail==this&&_.R("enable_premium_voluntary_pause")&&(_.Pi(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.setDialogData=function(G){this.data=G;this.resetSlider_()};
_.V.dataChanged_=function(){this.data&&this.resetSlider_()};
_.V.onSubmitTap_=function(){if(this.data.confirmCommand){var G=this.data.confirmCommand;_.a(G,_.GZy)&&_.zw(this.hostElement,[G,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.V.onExitButtonTap_=function(){_.Pi(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.V.closePopupHandler_=function(G,e){(e&&e.canceled===!0||e.canceled===!1&&e.confirmed===!1)&&this.handleOnDismissCommands_()};
_.V.onSliderChange_=function(){this.selectedIndex_=_.z1(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.V.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.V.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.V.resetSlider_=function(){if(this.data){var G=this.data.defaultEndOptionIndex||0,e=_.z1(this.hostElement).querySelector("#id-pause-slider");if(e.immediateValue<G)for(;e.immediateValue!=G;)e.increment();else if(G<e.immediateValue)for(;e.immediateValue!=G;)e.decrement();this.selectedIndex_=G;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.V.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.Wi(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.V.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.Wi(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.V.onYtServiceRequestSent=function(){this.loading=!0};
_.V.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
gN.prototype.onYtServiceRequestCompleted=gN.prototype.onYtServiceRequestCompleted;gN.prototype.onYtServiceRequestSent=gN.prototype.onYtServiceRequestSent;gN.prototype.closePopupHandler_=gN.prototype.closePopupHandler_;gN.prototype.dataChanged_=gN.prototype.dataChanged_;gN.prototype.onPopupOpened_=gN.prototype.onPopupOpened_;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],gN.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],gN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],gN.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],gN.prototype,"loading",void 0);_.B([_.n(),_.x("design:type",Number)],gN.prototype,"selectIndexMax_",void 0);_.B([_.n(),_.x("design:type",Object)],gN.prototype,"selectedData_",void 0);
_.B([_.n(),_.x("design:type",Object)],gN.prototype,"sliderAriaValueText_",void 0);_.B([_.n({value:function(){return this.onSubmitTap_.bind(this)}}),
_.x("design:type",Function)],gN.prototype,"onButtonTap_",void 0);_.B([_.n({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.x("design:type",Function)],gN.prototype,"onSecondaryTap_",void 0);_.B([_.n(),_.x("design:type",Object)],gN.prototype,"messages",void 0);_.B([_.Om("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],gN.prototype,"onPopupOpened_",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gN.prototype,"dataChanged_",null);
_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],gN.prototype,"closePopupHandler_",null);_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.oV]),_.x("design:returntype")],gN.prototype,"onYtServiceRequestSent",null);
_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.n1]),_.x("design:returntype")],gN.prototype,"onYtServiceRequestCompleted",null);_.B([_.aR({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],gN);
_.A(gN,"yt-unplugged-pause-membership-dialog-renderer",function(){if(Vla===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;Mlo===void 0&&(Mlo=document.createElement("template"));var Z=Mlo;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Vla=G}G=Vla;return G},{mode:2});var hWA;var TCW;var la=function(){return _.m.apply(this,arguments)||this};
_.K(la,_.m);la.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.gp("vcBalanceRenderer")}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],la.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],la.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],la.prototype,"data",void 0);_.B([_.aR({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],la);
_.A(la,"yt-vc-offer-layout-header-renderer",function(){if(TCW===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;hWA===void 0&&(hWA=document.createElement("template"));var Z=hWA;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);TCW=G}G=TCW;return G},{mode:2});var Dd8;var EoB;var iqd;var bqa;var RS=function(){return _.m.apply(this,arguments)||this};
_.K(RS,_.m);RS.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.iY.Object.defineProperties(RS.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)}}});
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],RS.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],RS.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.lb8.YtTappableItemBehavior),_.x("design:type",Object)],RS.prototype,"ytTappableItemBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],RS.prototype,"data",void 0);
_.B([_.n({reflectToAttribute:!0}),_.d("data.accessibilityText"),_.x("design:type",String),_.x("design:paramtypes",[])],RS.prototype,"ariaLabel",null);_.B([_.n({reflectToAttribute:!0}),_.d("data.style"),_.x("design:type",String),_.x("design:paramtypes",[])],RS.prototype,"vcOfferStyle",null);_.B([_.d("data.style","data.titleText"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],RS.prototype,"showTitleText",null);_.B([_.aR({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],RS);
_.A(RS,"yt-vc-offer-renderer",function(){if(bqa===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;iqd===void 0&&(iqd=document.createElement("template"));var Z=iqd;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);bqa=G}G=bqa;return G},{mode:2});var jt=function(){return _.m.apply(this,arguments)||this};
_.K(jt,_.m);jt.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}}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],jt.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],jt.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],jt.prototype,"data",void 0);_.B([_.aR({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],jt);
_.A(jt,"yt-vc-offer-layout-renderer",function(){if(EoB===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;Dd8===void 0&&(Dd8=document.createElement("template"));var Z=Dd8;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);EoB=G}G=EoB;return G},{mode:2});var voW;var wqH;var $dC;var Scd;var aS=function(){return _.m.apply(this,arguments)||this};
_.K(aS,_.m);aS.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}}}}}};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],aS.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],aS.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],aS.prototype,"data",void 0);_.B([_.aR({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],aS);
_.A(aS,"yt-ypc-offers-modal-top-bar-renderer",function(){if(Scd===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;$dC===void 0&&($dC=document.createElement("template"));var Z=$dC;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Scd=G}G=Scd;return G},{mode:2});var XE=function(){return _.m.apply(this,arguments)||this};
_.K(XE,_.m);XE.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"}}}}};
XE.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
XE.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var G=this.scrollable;G.attached&&typeof G.attached==="function"&&G.attached()};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],XE.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],XE.prototype,"ytRendererstamperBehavior",void 0);_.B([_.hs("#scrollable"),_.x("design:type",Object)],XE.prototype,"scrollable",void 0);_.B([_.n(),_.x("design:type",Object)],XE.prototype,"data",void 0);_.B([_.aR({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],XE);
_.A(XE,"yt-ypc-offers-modal-renderer",function(){if(wqH===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;voW===void 0&&(voW=document.createElement("template"));var Z=voW;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);wqH=G}G=wqH;return G},{mode:2});var qca;var tll;var Kk=function(){return _.m.apply(this,arguments)||this};
_.K(Kk,_.m);_.V=Kk.prototype;_.V.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}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.z1(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.V.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.Pi(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.V.onYtPopupOpened_=function(G,e){(e==null?void 0:e.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.Wi(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.V.onYtPopupClosed_=function(G,e){this.continueButtonTapped||e&&(e.canceled===!0||e.canceled===!1&&e.confirmed===!1)&&this.data.onDismissCommands&&_.Wi(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.V.onYtServiceRequestError_=function(G){this.set("showSpinner",!1);_.QO(this.hostElement,G.detail.error.message)};
_.V.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.R("enable_ypc_spinners")?_.Pi(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
Kk.prototype.onYtServiceRequestError_=Kk.prototype.onYtServiceRequestError_;Kk.prototype.onYtPopupClosed_=Kk.prototype.onYtPopupClosed_;Kk.prototype.onYtPopupOpened_=Kk.prototype.onYtPopupOpened_;Kk.prototype.onYtServiceRequestCompleted_=Kk.prototype.onYtServiceRequestCompleted_;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Kk.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],Kk.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.n(),_.x("design:type",Object)],Kk.prototype,"data",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],Kk.prototype,"showSpinner",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],Kk.prototype,"continueButtonTapped",void 0);_.B([_.n({value:function(){return this.onContinueTapped_.bind(this)}}),
_.x("design:type",Function)],Kk.prototype,"bindOnContinueTapped_",void 0);_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Kk.prototype,"onYtServiceRequestCompleted_",null);_.B([_.Om("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],Kk.prototype,"onYtPopupOpened_",null);
_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],Kk.prototype,"onYtPopupClosed_",null);_.B([_.Om("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Kk.prototype,"onYtServiceRequestError_",null);_.B([_.aR({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],Kk);
_.A(Kk,"yt-ypc-upgrade-dialog-renderer",function(){if(tll===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;qca===void 0&&(qca=document.createElement("template"));var Z=qca;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);tll=G}G=tll;return G},{mode:2});var goo;var lKW;var fk=function(){return _.m.apply(this,arguments)||this};
_.K(fk,_.m);fk.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
fk.prototype.computeHasButtons_=function(G){return!(!G.dismissButton&&!G.confirmButton)};
fk.prototype.computeStyle_=function(G){return G||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],fk.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],fk.prototype,"ytEventForwardingBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],fk.prototype,"ytRendererstamperBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],fk.prototype,"data",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],fk.prototype,"positionType",void 0);
_.B([_.n({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.x("design:type",Boolean)],fk.prototype,"hasButtons_",void 0);_.B([_.n({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.x("design:type",Boolean)],fk.prototype,"style_",void 0);_.B([_.aR({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],fk);
_.A(fk,"yt-bubble-hint-renderer",function(){if(lKW===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;goo===void 0&&(goo=document.createElement("template"));var Z=goo;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);lKW=G}G=lKW;return G},{mode:2});var RWW;var jJY;var kR=function(){var G=_.bY.apply(this,arguments)||this;G.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return G};
_.K(kR,_.bY);_.V=kR.prototype;_.V.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.V.attached=function(){var G=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){G.$.thumbnail.onShow();G.$["header-image"].onShow()})};
_.V.handleCheckBoxUpdateAction_=function(G){this.canShowCheckboxEnabledConfirmButton=G};
_.V.computeUseOverlayForSpinner_=function(G,e){return!!G&&e};
_.V.computeShowSpinner_=function(G,e){return G||!!e};
_.V.fireOnCloseActions_=function(){var G,e=_.h(((G=this.data)==null?void 0:G.onClosedActions)||[]);for(G=e.next();!G.done;G=e.next())this.ytRendererBehavior.resolveCommand(G.value)};
_.V.fireOnOpenCommands_=function(G){var e,r=(e=this.data)==null?void 0:e.onOpenCommands;if(r)for(G.stopImmediatePropagation(),G=_.h(r),e=G.next();!e.done;e=G.next())this.ytRendererBehavior.resolveCommand(e.value)};
_.V.fireOnDismissCommands_=function(G){var e,r=(e=this.data)==null?void 0:e.onDismissCommands;if(r)for(G.stopImmediatePropagation(),G=_.h(r),e=G.next();!e.done;e=G.next())this.ytRendererBehavior.resolveCommand(e.value)};
_.V.openPopupHandler_=function(G){G.detail==this&&this.fireOnOpenCommands_(G)};
_.V.closePopupHandler_=function(G,e){_.UW(this,"yt-confirm-dialog-close-action",[e]);this.fireOnCloseActions_();(e&&e.canceled===!0||e&&e.canceled===!1&&e.confirmed===!1)&&this.fireOnDismissCommands_(G)};
_.V.onHeaderImageChanged_=function(){var G;((G=this.data)==null?0:G.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.V.computeHasHeaderImageWidth_=function(G){return G!=void 0};
_.V.computeHasLoadingMessage=function(G){return!!G};
_.V.onHeaderImageWidthChanged_=function(){var G,e=(G=this.data)==null?void 0:G.headerImageWidth;if(e){if(G=1.25*e*2+e,this.$.main.style.width=G+"px",e=this.$.scroller.firstElementChild)e.style.minWidth=G+"px"}else this.$.main.style.width="100%"};
_.V.onThumbnailChanged_=function(){var G;((G=this.data)==null?0:G.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")};
_.V.onYtNavigate_=function(G){G=_.mk(G);G instanceof Node&&_.W1(this.$["confirm-button"]).contains(G)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.V.computePrimaryIsCancel_=function(G){return G};
_.V.computeIsCancelButtonHidden_=function(G){return G.skipCancelButton||!G.cancelButton};
_.V.computeIsCheckboxHidden_=function(G){return!G.checkbox};
_.V.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.V.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.V.onYtServiceRequestCompleted_=function(){var G;((G=this.data)==null?0:G.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.iY.Object.defineProperties(kR,{template:{configurable:!0,enumerable:!0,get:function(){if(jJY===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;RWW===void 0&&(RWW=document.createElement("template"));var Z=RWW;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);jJY=G}G=jJY;return G}}});
kR.prototype.onYtServiceRequestCompleted_=kR.prototype.onYtServiceRequestCompleted_;kR.prototype.onYtServiceRequestSent_=kR.prototype.onYtServiceRequestSent_;kR.prototype.onThumbnailLoaded_=kR.prototype.onThumbnailLoaded_;kR.prototype.onYtNavigate_=kR.prototype.onYtNavigate_;kR.prototype.onThumbnailChanged_=kR.prototype.onThumbnailChanged_;kR.prototype.onHeaderImageWidthChanged_=kR.prototype.onHeaderImageWidthChanged_;kR.prototype.onHeaderImageChanged_=kR.prototype.onHeaderImageChanged_;
kR.prototype.closePopupHandler_=kR.prototype.closePopupHandler_;kR.prototype.openPopupHandler_=kR.prototype.openPopupHandler_;_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],kR.prototype,"ytActionHandlerBehavior",void 0);_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],kR.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],kR.prototype,"ytRendererBehavior",void 0);
_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],kR.prototype,"ytEventForwardingBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],kR.prototype,"data",void 0);_.B([_.n({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.x("design:type",Boolean)],kR.prototype,"primaryIsCancel",void 0);_.B([_.n({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.x("design:type",Boolean)],kR.prototype,"isCancelButtonHidden",void 0);
_.B([_.n({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.x("design:type",Boolean)],kR.prototype,"isCheckboxHidden",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],kR.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.B([_.n({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.x("design:type",Boolean)],kR.prototype,"useOverlayForSpinner_",void 0);
_.B([_.n({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.x("design:type",Boolean)],kR.prototype,"showSpinner_",void 0);_.B([_.n({value:!1}),_.x("design:type",Boolean)],kR.prototype,"isActionInProgress_",void 0);_.B([_.n({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.x("design:type",Boolean)],kR.prototype,"hasHeaderImageWidth_",void 0);
_.B([_.n({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.x("design:type",Boolean)],kR.prototype,"hasLoadingMessage",void 0);_.B([_.Om("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],kR.prototype,"openPopupHandler_",null);_.B([_.Om("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],kR.prototype,"closePopupHandler_",null);
_.B([_.Me("data.headerImage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kR.prototype,"onHeaderImageChanged_",null);_.B([_.Me("data.headerImageWidth"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kR.prototype,"onHeaderImageWidthChanged_",null);_.B([_.Me("data.thumbnail"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kR.prototype,"onThumbnailChanged_",null);
_.B([_.Om("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],kR.prototype,"onYtNavigate_",null);_.B([_.Om("yt-img-shadow-loaded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kR.prototype,"onThumbnailLoaded_",null);_.B([_.Om("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.oV]),_.x("design:returntype")],kR.prototype,"onYtServiceRequestSent_",null);
_.B([_.Om("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.n1]),_.x("design:returntype")],kR.prototype,"onYtServiceRequestCompleted_",null);_.B([_.aR({is:"yt-confirm-dialog-renderer",noInjection:!0})],kR);var aKa;var XqC;var H6=function(){return _.m.apply(this,arguments)||this};
_.K(H6,_.m);H6.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.z1(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
H6.prototype.computeConfirmButton_=function(G){var e={text:G.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};G.confirmNavigationEndpoint?e.navigationEndpoint=G.confirmNavigationEndpoint:G.confirmServiceEndpoint&&(e.serviceEndpoint=G.confirmServiceEndpoint);return e};
H6.prototype.computeShowTitle_=function(G){return!(G==null||!G.title)};
_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],H6.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],H6.prototype,"data",void 0);_.B([_.n({computed:"computeShowTitle_(data)"}),_.x("design:type",Boolean)],H6.prototype,"showTitle",void 0);_.B([_.aR({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],H6);
_.A(H6,"yt-fancy-dismissible-dialog-renderer",function(){if(XqC===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;aKa===void 0&&(aKa=document.createElement("template"));var Z=aKa;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);XqC=G}G=XqC;return G});var KU8;var fKB;var dN=function(){var G=_.m.apply(this,arguments)||this;G.spinnerActive=!1;return G};
_.K(dN,_.m);dN.prototype.created=function(){aSm(2201)};
dN.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
dN.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
dN.prototype.onIronOverlayClosed=dN.prototype.onIronOverlayClosed;dN.prototype.onIronOverlayOpened=dN.prototype.onIronOverlayOpened;_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],dN.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.Nw),_.x("design:type",Object)],dN.prototype,"tpYtIronOverlayBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],dN.prototype,"data",void 0);_.B([_.n(),_.x("design:type",Object)],dN.prototype,"spinnerActive",void 0);
_.B([_.Om("iron-overlay-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dN.prototype,"onIronOverlayOpened",null);_.B([_.Om("iron-overlay-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dN.prototype,"onIronOverlayClosed",null);_.B([_.aR({is:"yt-loading-renderer",disableElementRegistration:!0})],dN);
_.A(dN,"yt-loading-renderer",function(){if(fKB===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;KU8===void 0&&(KU8=document.createElement("template"));var Z=KU8;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);fKB=G}G=fKB;return G},{mode:2});var klA;var Hqo;var oS=function(){var G=_.m.apply(this,arguments)||this;G.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);G.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);G.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.K(oS,_.m);_.V=oS.prototype;_.V.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.V.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.V.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.V.openPopupHandler_=function(G){G.detail===this.hostElement&&this.hostElement.hidden&&_.Pi(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.V.onDismissButtonTap_=function(){var G;this.closeOnDismissButton_.has(((G=this.data)==null?void 0:G.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Pi(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.V.onAcceptButtonTap_=function(){var G;this.closeOnAcceptButton_.has(((G=this.data)==null?void 0:G.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Pi(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.V.computeHasHeader_=function(G){return!!G.headerBackgroundImage};
_.V.computeLayoutStyle_=function(G){return G};
_.V.computePopupSize_=function(G){return G};
_.V.computeIconType_=function(G){return G.dialogIcon&&G.dialogIcon.iconType?G.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":G.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":G.dialogIcon.iconType:""};
_.V.computeIsLogo_=function(G){return!!G.dialogIcon&&!!G.dialogIcon.iconType&&(G.dialogIcon.iconType==="YOUTUBE_LOGO"||G.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||G.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.V.computeHasCustomLogo=function(G){return!(G==null||!G.headerForegroundImage)};
_.V.computeCustomLogo=function(G,e){if(G!=null&&G.headerForegroundImage)return G.headerForegroundImageDark?e?G.headerForegroundImageDark:G.headerForegroundImage:G.headerForegroundImage};
_.V.computeHeaderBackgroundImage=function(G,e){if(G!=null&&G.headerBackgroundImage)return e&&(G==null?0:G.headerBackgroundImageDark)?G.headerBackgroundImageDark:G.headerBackgroundImage};
_.V.shouldShowIconContainer=function(G,e){return G&&!e};
_.V.shouldShowNonYouTubeIcon=function(G,e){return!G&&!e};
_.V.getLogoImageId=function(G){var e,r,Z;return(G=(e=this.computeCustomLogo(G,this.isDarkTheme))==null?void 0:(r=e.thumbnails)==null?void 0:(Z=r[0])==null?void 0:Z.height)&&G%31===0?"custom-logo-with-padding":"custom-logo"};
oS.prototype.openPopupHandler_=oS.prototype.openPopupHandler_;oS.prototype.dataChanged_=oS.prototype.dataChanged_;_.B([_.k(_.h4.YtRendererstamperBehavior),_.x("design:type",Object)],oS.prototype,"ytRendererstamperBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],oS.prototype,"ytRendererBehavior",void 0);_.B([_.n(),_.x("design:type",Boolean)],oS.prototype,"isDarkTheme",void 0);
_.B([_.n({computed:"computeCustomLogo(data, isDarkTheme)"}),_.x("design:type",Object)],oS.prototype,"customLogo",void 0);_.B([_.n({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.x("design:type",Object)],oS.prototype,"headerBackgroundImage",void 0);_.B([_.n(),_.x("design:type",Object)],oS.prototype,"data",void 0);_.B([_.n({computed:"computeHasHeader_(data)"}),_.x("design:type",Boolean)],oS.prototype,"hasHeader",void 0);
_.B([_.n({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.x("design:type",Object)],oS.prototype,"layoutStyle",void 0);_.B([_.n({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.x("design:type",Object)],oS.prototype,"popupSize",void 0);_.B([_.n({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],oS.prototype,"hasLogo",void 0);
_.B([_.n({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],oS.prototype,"hasCustomLogo",void 0);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oS.prototype,"dataChanged_",null);_.B([_.Om("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],oS.prototype,"openPopupHandler_",null);
_.B([_.aR({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],oS);
_.A(oS,"yt-upsell-dialog-renderer",function(){if(Hqo===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;klA===void 0&&(klA=document.createElement("template"));var Z=klA;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);Hqo=G}G=Hqo;return G},{mode:2});var dd8=_.y(function(G){return _.v("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.v(_.S,{cond:G.title,then:function(e){return _.v("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},e)}}))},"tj"),ooH=_.y(function(G){return _.v("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.v(_.E2,{data:G.closeButton},{buttonViewModel:function(e){return _.v("div",null,_.v(_.wF,{data:e.data}))}}))},"uj"),sJo=_.y(function(G){var e=G.data;
return _.v(_.$Z,null,_.v("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.v("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.v(_.S,{cond:function(){return!!e().image&&!!e().title},
then:function(){return _.v(_.nC,{data:function(){return e().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.v("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.v(_.S,{cond:function(){return e().title},
then:function(r){return _.v("h3",{class:"miniAppGameInfoDialogViewModelTitle"},r)}}),_.v(_.S,{cond:function(){return e().primaryGenre},
then:function(r){return _.v("span",{class:"miniAppGameInfoDialogViewModelGenre"},r)}}))),_.v(_.S,{cond:function(){var r=e().description;
return r&&r.length<=150},
then:function(){return _.v("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.v("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return e().description}))}}))},"vj"),QJV=_.y(function(G){G=G.infoRows;
var e=_.v_().resolve(_.Z6),r=_.R("enable_displaying_ppn");return _.v("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.v(_.u6,{each:G},function(Z){return _.v("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.v(_.S,{cond:function(){return Z.label},
then:function(O){return _.v("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},O)}}),_.v(_.S,{cond:function(){return Z.attributedLabel},
then:function(O){return _.v("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.v(_.Wh,{text:O,noPreWrap:!0}))}}),_.v(_.S,{cond:function(){return Z.value},
then:function(O){return _.v("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},O)}}),_.v(_.S,{cond:function(){return Z.attributedValue},
then:function(O){return _.v("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.v(_.Wh,{text:O,noPreWrap:!0}))}}))}),_.v(_.S,{cond:function(){return r&&e.clientData.has("post_play_nonce")},
then:function(){return _.v("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.v("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.v("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},e.getData("post_play_nonce")))}}))},"wj"),IKC=_.y(function(G){var e=G.data;
return _.v("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.v(dd8,{title:function(){return e().dialogTitle}}),_.v(sJo,{data:e}),_.v(_.S,{cond:function(){return e().infoRow},
then:function(r){return _.v(QJV,{infoRows:r})}}),_.v(ooH,{closeButton:function(){return e().closeButton}}))},"xj");
IKC.idomCompat=!0;_.J_(IKC,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.N6}});_.J_(_.y(function(G){var e=G.data;return _.v("yt-gulp-triggering-dialog-view-model",{class:_.LC("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.v(_.nC,{data:function(){return e().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.v("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.v("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.v("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.v(_.Wh,{text:function(){return e().title}})),_.v(_.S,{cond:function(){return e().bodyText},
then:function(r){return _.v(_.u6,{each:r},function(Z){return _.v("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.v(_.Wh,{text:Z}))})}})),_.v("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.v(_.E2,{data:function(){return e().dismissButton}},{buttonViewModel:function(r){return _.v("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},_.v(_.wF,{data:r.data}))}}),_.v(_.E2,{data:function(){return e().actionButton}},{buttonViewModel:function(r){return _.v("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},
_.v(_.wF,{data:r.data}))}}))))},"yj"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.N6}});var pqd=_.y(function(G){var e=G.data;G=_.mr(function(){return e().agreements},[]);
return _.v("installment-agreements-view-model",{class:_.LC("ytInstallmentAgreementsViewModelHost")},_.v(_.u6,{each:G},function(r){return _.v("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.v("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.v(_.Wh,{text:r.label})),_.v("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.v(_.E2,{data:function(){return r.openButton}},{buttonViewModel:_.wF})))}))},"zj");
pqd.idomCompat=!0;var CIY=_.y(function(G){var e=_.h(_.Ob(function(){var U,e$;return((U=G.data().createPlaylistDialogFormSchema)==null?0:(e$=U.initialValues)==null?0:e$.title)?G.data().createPlaylistDialogFormSchema.initialValues.title:""})),r=e.next().value,Z=e.next().value;
e=_.h(_.Ob(function(){G.data();return!1}));
var O=e.next().value,M=e.next().value;e=_.h(_.Ob(function(){G.data();return!1}));
var T=e.next().value,E=e.next().value;e=_.h(_.Ob(function(){var U,e$;return(U=G.data().createPlaylistDialogFormSchema)==null?void 0:(e$=U.initialValues)==null?void 0:e$.visibility}));
var b=e.next().value,w=e.next().value;e=_.h(_.Ob(function(){G.data();return!1}));
var q=e.next().value,t=e.next().value;e=_.h(_.Ob(function(){var U,e$;return(U=G.data().createPlaylistDialogFormSchema)==null?void 0:(e$=U.initialValues)==null?void 0:e$.isCollaborative}));
var g=e.next().value,l=e.next().value,X=_.hT("div");_.Y8(function(){var U=X.value.querySelector("textarea");U&&(U.value=r())},"axFRaf");
_.yY(function(){var U;_.KuW((U=G.data().createPlaylistDialogFormSchema)==null?void 0:U.id,{onSubmit:function(){var e$=r();var Dq=b(),bF=g(),Kf=G.data();e$={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:e$,privacyStatus:Dq,videoIds:Kf.videoIds,sourcePlaylistId:Kf.sourcePlaylistId,params:bF?Kf.createPlaylistParamsCollaborationEnabled:Kf.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.v_().resolve(_.$1).resolveCommand(e$)},
isValid:function(){return O()&&!T()&&!q()}})});
var H=function(U){if(U!==void 0&&(Z(U),!O()&&U.length>0&&M(!0),O())){var e$=ojV(G.data());if(e$){var Dq=e$.minLength;e$=e$.maxLength;Dq&&U.length<Dq?E(!0):e$&&U.length>e$?E(!0):E(!1)}}},I=function(){var U=!(!g()||b()!=="PRIVATE");
t(U)},C=function(U){U!==void 0&&(w(U),I())},u=function(){if(q())return Q$C(G.data())},P=function(){l(!g());
I()},F=function(){return{validate:function(U){if(O()){var e$=ojV(G.data());
if(e$){var Dq=e$.minLength;e$=e$.translations;if(Dq&&U.length<Dq)return e$==null?void 0:e$.minLengthErrorMessage}}}}},J=function(){var U=ojV(G.data()),e$=U==null?void 0:U.maxLength,Dq;
U=U==null?void 0:(Dq=U.translations)==null?void 0:Dq.maxLengthErrorMessage;if(e$&&U)return{maxChars:e$,errorMessage:U}};
return _.v("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.v("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:X},_.v(_.E2,{data:function(){return G.data().playlistTitle}},{textFormFieldViewModel:function(U){return _.v(_.QI8,{data:U.data,
text:r,onInput:H,validation:F,characterLimit:J})},
textFieldViewModel:function(U){return _.v(_.sIm,{data:U.data,text:r,onInput:H,validation:F,characterLimit:J})}})),_.v("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.v(_.E2,{data:function(){return G.data().playlistVisibility}},{dropdownViewModel:function(U){return _.v(_.AhW,{data:U.data,
onSelected:C,error:u})}})),_.v(_.S,{cond:function(){return!!G.data().playlistCollaborate},
then:function(){return _.v("div",null,_.v(_.E2,{data:function(){return G.data().playlistCollaborate}},{switchListItemViewModel:function(U){return _.v(_.SqE,{data:U.data,
onTap:P})}}))}}))},"Bj");var uB2=_.y(function(G){var e=G.data;return _.v("upsell-offer-table-cell-content-view-model",null,_.v("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.v(_.nz,null,_.v(_.pz,{when:function(){return e().iconType}},function(){return _.v("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.v(_.V$,{icon:function(){return e().iconType.toString()}}))}),_.v(_.pz,{when:function(){return e().title}},function(){return _.v(_.Wh,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return e().title}})}),_.v(_.pz,{when:function(){return e().subtitle}},function(){return _.v(_.Wh,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return e().subtitle}})}),_.v(_.pz,{when:function(){return e().infoText}},function(){return _.v(_.Wh,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return e().infoText}})}),_.v(_.pz,{when:function(){return e().featureDescription}},function(){return _.v(_.Wh,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return e().featureDescription}})}),_.v(_.pz,{when:function(){return e().note}},function(){return _.v(_.Wh,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return e().note}})}))))},"Cj");
uB2.idomCompat=!0;var noW=_.y(function(G){var e=G.data;return _.v("upsell-offer-table-cell-view-model",null,_.v("div",{class:_.LC("ytUpsellOfferTableCellViewModelCellWrapper",function(){return e().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":e().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.v(_.E2,{data:function(){return e().contents}},{upsellOfferTableCellContentViewModel:uB2})))},"Dj");
noW.idomCompat=!0;var mdV=_.y(function(G){var e=G.data;var r=G.upsellTableIsFirstRow;var Z=function(){return(r==null?0:r())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},O=function(){return(r==null?0:r())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.v("ytm-upsell-offer-table-row-view-model",null,_.v("div",{class:function(){return(r==null?0:r())?"ytUpsellOfferTableRowViewModelHostFirstRow":"ytUpsellOfferTableRowViewModelHost"}},_.v(_.E2,{data:function(){return e().rowHeaderCell}},{upsellOfferTableCellViewModel:function(M){return _.v("div",{class:Z},_.v(noW,{data:M.data}))}}),_.v("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},_.v(_.E2,{data:function(){return e().contentCells}},{upsellOfferTableCellViewModel:function(M){return _.v("div",
{class:O},_.v(noW,{data:M.data}))}}))))},"Ej");
mdV.idomCompat=!0;var czH=_.y(function(G){var e=G.data;return _.v("ytm-upsell-offer-table-view-model",null,_.v("div",{class:"ytUpsellOfferTableViewModelHost"},_.v("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.v(_.E2,{data:function(){return e().rows}},{upsellOfferTableRowViewModel:function(r,Z){return _.v(mdV,{data:r.data,
upsellTableIsFirstRow:function(){return Z()===0}})}}))))},"Fj");
czH.idomCompat=!0;var Ycl=_.y(function(G){var e=function(){return G.data()},r=_.mr(G.noPadding,!1),Z=function(){var M,T;
return(T=(M=e().logo.accessibilityData)==null?void 0:M.label)!=null?T:""},O={};
return _.v("upsell-view-model",{class:_.LC("ytUpsellViewModelHost",(O.ytUpsellViewModelHostNoPadding=function(){return r()},O.ytUpsellViewModelHostWide=function(){return e().offerTable!==void 0},O))},_.v("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.v(_.S,{cond:function(){return _.d8(e().logo)},
then:function(M){return _.v(_.nC,{data:M,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:Z})}})),_.v("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.v(_.Wh,{text:function(){return e().title}})),_.v("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.v(_.u6,{each:function(){var M;
return(M=e().subtitles)!=null?M:[]},
keyBy:"INDEX"},function(M){var T={};return _.v("div",{class:_.LC("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(T.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return e().offerTable!==void 0},T))},_.v(_.Wh,{text:M}))})),_.v("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.v(_.u6,{each:function(){var M;
return(M=e().benefitInfos)!=null?M:[]},
keyBy:"INDEX"},function(M){return _.v(_.S,{cond:function(){return M().info},
then:function(T){return _.v("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.v(_.V$,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.v(_.Wh,{text:T}))}})})),_.v(_.S,{cond:function(){return e().offerTable!==void 0},
then:function(){return _.v("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.v(_.E2,{data:function(){return e().offerTable}},{upsellOfferTableViewModel:function(M){return _.v(czH,{data:M.data})}}))}}),_.v("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.v(_.u6,{each:function(){var M;
return(M=e().legalInfos)!=null?M:[]},
keyBy:"INDEX"},function(M){var T={};return _.v("div",{class:_.LC("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(T.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return e().offerTable!==void 0},T))},_.v(_.Wh,{text:M}))})))},"Gj");var yzA=_.y(function(G){var e=G.data;G={};G=(G.ytMiniAppScoreChallengeViewModelScoreRadial=!0,G.ytMiniAppScoreChallengeViewModelDarkScoreRadial=Igl(),G);return _.v("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.v("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return e().title}),_.v("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return e().subtitle}),_.v("div",{class:_.qo(G)},_.v("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return e().score})),_.v("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return e().prompt}))},"Hj");var Az8=function(){this.store=_.uD();this.formId=""};
Az8.prototype.onInit=function(G){G.formId&&(this.formId=G.formId,this.store.dispatch(_.UK({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var FUW=_.y(function(G){function e(E){if(E&&(E=_.a(E,_.ve)))return Object.assign({},E,{isSelected:M()})}
var r=_.h(_.Ob(function(){var E,b;return(b=(E=_.a(G.data().option,_.ve))==null?void 0:E.isSelected)!=null?b:!1})),Z=r.next().value,O=r.next().value,M=Z;
_.yY(function(){var E;_.KuW((E=G.data().formSchema)==null?void 0:E.id,{onSubmit:function(){var b=_.v_().resolve(_.$1),w=!!G.data().selectedCommand,q=!!G.data().unselectedCommand;if(M()){if(w)var t=G.data().selectedCommand}else q&&(t=G.data().unselectedCommand);t=_.X0(t);e(G.data().option)&&!t?(b="",!w&&q?b="selected ":w&&!q&&(b="unselected "),w=new _.Cr("No "+b+"command found for SelectionListItemFormViewModel"),_.yx(w)):t&&b.resolveCommand(t)},
isValid:function(){return!0}})});
var T=function(){O(!M())};
_.yD(function(){var E,b,w=(E=G.data())==null?void 0:(b=E.formSchema)==null?void 0:b.id;w&&_.T_()().delete(w)});
return _.v("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.v("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.v(_.Wh,{text:function(){return G.data().paragraph}})),_.v(_.S,{cond:function(){return e(G.data().option)},
then:function(E){return _.v(_.xq,{data:E,isCompact:!0,hideSelectionTextChevron:!0,onTap:T,disableHorizontalPadding:!0})}}))},"Ij");var Jz8=_.y(function(G){var e=G.data;var r=G.disablePadding;var Z=G.className;var O=_.hT("yt-dialog-header-view-model"),M=function(){var E=e().imageBanner;a:switch(e().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var b="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:b="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:E,style:b,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},T=function(){return e().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.yY(function(){var E=function(){_.Pi(O.value,"yt-refit-popups-action")},b;
(b=O.value)==null||b.addEventListener("image-loaded",E);_.yD(function(){var w;(w=O.value)==null||w.removeEventListener("image-loaded",E)})});
G={};return _.v("yt-dialog-header-view-model",{el:O,class:_.LC(Z,(G.ytDialogHeaderViewModelHost=!0,G.ytDialogHeaderViewModelHostDisablePadding=r,G))},_.v(_.S,{cond:function(){return e().imageBanner},
then:function(){var E={};return _.v("div",{class:_.LC(Z,(E.ytDialogHeaderViewModelBanner=!0,E.ytDialogHeaderViewModelBannerFullBleed=T,E)),style:_.Mk({"max-height":function(){return e().assetContainerMaxHeight!==void 0?e().assetContainerMaxHeight+"px":void 0}})},_.v(_.wZ,{data:M,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.v(_.S,{cond:function(){return e().headerBlock},
then:function(){return _.v("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.v(_.E2,{data:function(){return e().headerBlock}},{contentPreviewImageViewModel:function(E){return _.v(_.wZ,{data:E.data,
notifyOnLoaded:!0})}}))}}),_.v(_.S,{cond:function(){return e().customBanner},
then:function(E){return _.v("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.v(_.E2,{data:E},{avatarStackViewModel:_.FM}))}}),_.v(_.S,{cond:function(){return e().headline},
then:function(E){return _.v("h2",null,_.v(_.Wh,{text:E,className:"ytDialogHeaderViewModelText"}))}}))},"Jj");
Jz8.idomCompat=!0;var BCl=_.y(function(G){var e=_.wRa(function(){return G.data().formId}),r=e.submitForm,Z=e.isValid;
return _.v("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.v(_.E2,{data:function(){return G.data().panelFooter}},{panelFooterViewModel:function(O){return _.v(_.qE,{data:O.data,
disablePadding:!0,disablePrimaryButton:function(){return!Z()},
onClickPrimaryButton:function(){r()}})}}))},"Kj");var xdo=_.y(function(G){var e=function(){var r,Z;return(Z=(r=_.a(G.data().rendererContext,_.D9))==null?void 0:r.label)!=null?Z:""};
return _.v("yt-dialog-image-content-view-model",{class:_.LC("ytDialogImageContentViewModelHost",G.className)},_.v(_.S,{cond:function(){return _.d8(G.data().image)},
then:function(r){var Z={};return _.v("div",{style:_.Mk((Z.width=(0,_.Jm)(function(){var O;return(O=G.data().imageMaxWidth)!=null?O:""}),Z)),
class:"ytDialogImageContentViewModelImage"},_.v(_.nC,{data:r,alt:e,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.v(_.Wh,{text:function(){return G.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Lj");var zWl=_.y(function(G){var e=_.cx(G,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),r=e.elRefCallback;G=e.iconWiz;var Z=e.assetWiz,O=e.assetType,M=e.titleWiz,T=e.leadingActionHeaderWiz,E=e.trailingActionHeaderWiz,b=e.headerPosition,w=e.contentWiz,q=e.buttonLayout,t=e.buttonStyle,g=e.primaryButtonWiz,l=e.secondaryButtonWiz,X=e.contentAlignment,H=e.isFullscreen,I=e.width,C=e.maxHeight,u=e.isHeaderWizDefined,
P=e.headerWiz,F=e.isFooterWizDefined,J=e.footerWiz;e=_.hT("dialog-layout",function(k4){r==null||r(k4)});
var U=Z?function(){return Z({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,e$=g?function(){var k4={};
return g({buttonOverrides:function(){return{style:(t==null?void 0:t())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.LC((k4["yt-spec-dialog-layout__dialog-layout-button"]=!0,k4["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(q==null?void 0:q())===0||(q==null?void 0:q())===2},k4))})}:void 0,Dq=l?function(){var k4={};
return l({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.LC((k4["yt-spec-dialog-layout__dialog-layout-button"]=!0,k4["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(q==null?void 0:q())===0||(q==null?void 0:q())===2},k4))})}:void 0,bF=function(){return(!!M||!!T||!!E)&&b()===0},Kf={},ti={},Ry={},nf={};
return _.v("dialog-layout",{el:e,class:_.LC((Kf["yt-spec-dialog-layout"]=!0,Kf["yt-spec-dialog-layout--dialog-layout-fullscreen"]=H,Kf["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!H()},Kf["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return C()===1},Kf["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(O==null?void 0:O())===1},Kf)),
style:function(){return(I==null?void 0:I())!==void 0?"width: "+I+"px;":""}},G?_.v("div",{class:_.LC((ti["yt-spec-dialog-layout__dialog-layout-icon"]=!0,ti["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!Z&&b()===1},ti["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return X()===1},ti))},_.v(G,null)):null,_.v(_.S,{cond:u,
then:function(){return P?_.v("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.v(P,null)):null},
else:function(){return _.v(_.$Z,null,_.v(_.S,{cond:bF,then:function(){return _.v(PI8,{contentAlignment:X,LeadingActionHeader:T,TrailingActionHeader:E,Title:M,isAboveAsset:!!U})}}),U?_.v("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.v(U,null)):null)}}),_.v("div",{class:_.LC((Ry["yt-spec-dialog-layout__dialog-layout-container"]=!0,Ry["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(X==null?void 0:X())===1},Ry["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=
function(){return!M&&!(P&&u())||!!U&&(b==null?void 0:b())===0},Ry))},_.v(_.S,{cond:function(){return M&&!P&&(b==null?void 0:b())===1},
then:function(){return _.v(PI8,{contentAlignment:X,LeadingActionHeader:T,TrailingActionHeader:E,Title:M,isAboveAsset:!1})}}),w?_.v("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.v("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.v(w,null))):null,_.v(_.S,{cond:F,
then:function(){return J?_.v("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.v(J,null)):null}}),e$||Dq?_.v(Ud8,{footerClasses:_.LC((nf["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,nf["yt-spec-dialog-layout__dialog-layout-footer"]=!0,nf["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(q==null?void 0:q())===2},nf["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(q==null?void 0:q())===1},nf)),
PrimaryButton:e$,SecondaryButton:Dq}):null))},"Mj"),PI8=_.y(function(G){var e=_.cx(G,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),r=e.contentAlignment,Z=e.LeadingActionHeader;G=e.Title;var O=e.TrailingActionHeader,M=e.isAboveAsset,T=e.enableLeadingActionHeader;e={};return _.v("div",{class:_.LC((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"]=M,e["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(r==null?void 0:r())===1&&T()},e))},_.v(_.S,{cond:function(){return T()},
then:function(){return Z?_.v("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.v(Z,null)):null}}),G?_.v("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.v(G,null)):null,O?_.v("div",null,_.v(O,null)):null)},"Nj"),Ud8=_.y(function(G){var e=G.footerClasses;
var r=G.PrimaryButton;G=G.SecondaryButton;return _.v("div",{class:e},G?_.v(G,null):null,r?_.v(r,null):null)},"Oj");var WUY=_.y(function(G){var e=G.data;return _.v("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.v("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.v(_.E2,{data:function(){return e().avatar}},{avatarViewModel:_.yy})),_.v("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.v(_.Wh,{text:function(){return e().title}})),_.v(_.Wh,{text:function(){return e().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Pj");var NCd=_.y(function(G){return _.v("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.v("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.v(_.Wh,{text:function(){return G.data().inviteMessage}})),_.v("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.v(_.Wh,{text:function(){return G.data().attributedAccountSectionHeaderText}})),_.v("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.v(_.E2,{data:function(){return G.data().accountAvatar}},{avatarViewModel:_.yy}),_.v("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.v(_.Wh,{text:function(){return G.data().accountName}}),_.v("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.v(_.Wh,{text:function(){return G.data().handle}}))),_.v(_.E2,{data:function(){return G.data().trailingButton}},{buttonViewModel:_.wF})),_.v("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.v(_.Wh,{text:function(){return G.data().termsOfService}})))},"Qj");var LUW=_.y(function(G){var e=G.data;return _.v("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.v("div",{class:"ytAccessConfirmationViewModelContent"},_.v(_.E2,{data:function(){var r;return(r=e().avatar)!=null?r:e().dualAvatar}},{dualAvatarViewModel:function(r){return _.v(_.MZl,{data:r.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(r){return _.v(_.Aq,{data:r.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.v("h2",{class:"ytAccessConfirmationViewModelTitle"},_.v(_.Wh,{text:function(){return e().title}})),_.v(_.Wh,{text:function(){return e().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Rj");var G0W=_.y(function(G){var e=G.data;var r=void 0;G=_.h(_.Ob(function(){var w;return((w=_.a(e().content,_.Yo))==null?void 0:w.defaultSelectedKey)||""}));
var Z=G.next().value,O=G.next().value,M,T=function(){O("");var w;(w=r)!=null&&w.store.dispatch(_.UK({type:"RESET_COMMAND_MAP"}))};
_.yY(function(){r=new Az8;window.addEventListener("yt-popup-closed",T)});
_.Y8(function(){if(r&&M!==e().formId&&(r.onInit(e()),(M=e().formId)&&Z())){var w=r,q={key:Z()};q.command&&w.store.dispatch(jsY(M,q.command))}},"c2n8Gf");
_.yD(function(){window.removeEventListener("yt-popup-closed",T)});
var E=function(w,q,t){q.key&&t&&q.key!==Z()&&(O(q.key),r&&q.command&&r.store.dispatch(jsY(t,q.command)))},b=function(){if(_.a(e().content,_.Yo))return!(Z==null?0:Z())};
return _.v("yt-dialog-view-model",{class:_.LC("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.v(zWl,{headerWiz:function(){return _.v("span",{skip:!0},_.v(_.E2,{data:function(){return e().header}},{dialogHeaderViewModel:function(w){return _.v(Jz8,{data:w.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!e().header},
contentWiz:function(){return _.v("span",{skip:!0},_.v(_.E2,{data:function(){return e().customContent?e().customContent:e().content}},{basicContentViewModel:_.ViC,
createPlaylistDialogFormViewModel:CIY,collaborativePlaylistInviteMessageViewModel:NCd,miniAppScoreChallengeViewModel:yzA,radioButtonGroupViewModel:function(w){var q=w.data;return _.v(_.kFV,{data:q,selectedKey:Z,onSelected:E,groupName:function(){return q().formId}})},
selectionListItemFormViewModel:FUW,upsellViewModel:function(w){return _.v(Ycl,{data:w.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:WUY,installmentAgreementsViewModel:pqd,accessConfirmationViewModel:LUW,listViewModel:function(w){return _.v(_.X8w,{data:w.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:xdo}))},
footerWiz:function(){return _.v("span",{skip:!0},_.v(_.E2,{data:function(){return e().footer}},{panelFooterViewModel:function(w){return _.v(_.qE,{data:w.data,
disablePadding:!0,disablePrimaryButton:b})},
formPanelFooterViewModel:BCl,formFooterViewModel:function(w){return _.v(_.$rm,{data:w.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!e().footer}}))},"Tj");
G0W.idomCompat=!0;_.J_(G0W,"yt-dialog-view-model",{props:{data:_.N6},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var e6B=_.y(function(G){var e=G.data;var r=_.BYU(function(){return e().rendererContext});
G={};return _.v("yt-panel-header-view-model",{class:_.LC("ytPanelHeaderViewModelHost",(G.ytPanelHeaderViewModelHostHideDivider=function(){return!!e().shouldHideDivider},G.ytPanelHeaderViewModelHostCompact=function(){return!!e().subtitle},G)),
"aria-label":function(){var Z;return(Z=r())==null?void 0:Z.label}},_.v("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.v(_.S,{cond:function(){return e().title},
then:function(Z){return _.v("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.v(_.Wh,{text:Z,className:"ytPanelHeaderViewModelTitle"}))}}),_.v(_.S,{cond:function(){return e().subtitle},
then:function(Z){return _.v(_.Wh,{text:Z,className:"ytPanelHeaderViewModelSubtitle"})}})),_.v("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.v(_.E2,{data:function(){return e().trailingButtons}},{buttonViewModel:function(Z){return _.v(_.wF,{data:Z.data,
className:"ytPanelHeaderViewModelButton"})}})))},"Uj");
e6B.idomCompat=!0;var rrY=_.y(function(G){var e=_.ev(function(M){var T;if((T=G.skipContentClick)==null?0:T.call(G))return!1;G.onContentWrapperClick(M);return!0}),r,Z,O;
return _.v("div",{class:_.LC("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return G.isAnimating()?"transform: translateY("+G.currentY()+"px);transition: 0.2s":""}},(r=G.header)==null?void 0:r.call(G),_.v("div",{id:G.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.Mk({"max-height":(0,_.Jm)(G.maxHeightForContentWrapper)}),"on:scroll":njl(G.onScroll),"on:touchmove":njl(function(M){return void M.stopPropagation()})},_.v("div",{el:{onRender:G.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":e},(Z=G.body)==null?void 0:Z.call(G))),(O=G.footer)==null?void 0:O.call(G))},"Vj");
rrY.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var Zvo=_.y(function(G){var e=_.mr(G.leadingLabel),r=_.mr(G.trailingLabel),Z=_.mr(G.footerButtonType),O=function(){return e()||r()||G.hasPrimaryButton()||G.hasSecondaryButton()},M={},T=_.LC("yt-spec-bottom-sheet-layout__primary-button",(M["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return Z()===0&&G.hasPrimaryButton()},M["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return Z()===1&&G.hasPrimaryButton()},M["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return Z()===2&&G.hasPrimaryButton()},M["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return Z()===3&&G.hasPrimaryButton()},M));
M={};var E=_.LC("yt-spec-bottom-sheet-layout__secondary-button",(M["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return Z()===1&&G.hasSecondaryButton()},M["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return Z()===2&&G.hasSecondaryButton()},M["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return Z()===3&&G.hasPrimaryButton()},M));
return _.v(_.S,{cond:G.hasFooterOverride,then:function(){var b;return _.v(_.$Z,null,(b=G.footerOverride)==null?void 0:b.call(G))},
else:function(){return _.v(_.S,{cond:O,then:function(){return _.v("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.v(_.S,{cond:function(){return e()||r()},
then:function(){var b={};return _.v("div",{class:_.LC("yt-spec-bottom-sheet-layout__footer-label-wrapper",(b["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!G.hasPrimaryButton()},b))},_.v(_.S,{cond:e,
then:function(){return _.v("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},e)}}),_.v(_.S,{cond:r,
then:function(){return _.v("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},r)}}))}}),_.v(_.S,{cond:function(){return G.hasPrimaryButton()||G.hasSecondaryButton()},
then:function(){var b={};return _.v("div",{class:_.LC("yt-spec-bottom-sheet-layout__footer-button-wrapper",(b["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.eSv,b))},_.v(_.S,{cond:function(){return G.hasSecondaryButton()&&Z()!==0},
then:function(){var w;return _.v("div",{class:E},(w=G.secondaryButton)==null?void 0:w.call(G))}}),_.v(_.S,{cond:G.hasPrimaryButton,
then:function(){var w;return _.v("div",{class:T},(w=G.primaryButton)==null?void 0:w.call(G))}}))}}))}})}})},"Wj");
Zvo.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var OvW=_.y(function(G){var e=_.mr(G.title),r=_.mr(G.subtitle);return _.v("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:G.headerId,"on:touchstart":_.ev(function(Z){var O;(O=G.touchstart)==null||O.call(G,Z);return!1}),
"on:touchmove":_.ev(function(Z){var O;(O=G.touchmove)==null||O.call(G,Z);return!1}),
"on:touchend":_.ev(function(Z){var O;(O=G.touchend)==null||O.call(G,Z);return!1})},_.v("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.v(_.S,{cond:G.hasHeaderOverride,
then:function(){var Z;return _.v(_.$Z,null,(Z=G.headerOverride)==null?void 0:Z.call(G))},
else:function(){var Z={};return _.v("div",{class:_.LC((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))},_.v("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.v(_.S,{cond:e,then:function(){return _.v(_.$Z,null,_.v("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},e),_.v(_.S,{cond:r,then:function(){return _.v("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
r)}}))}})),_.v(_.S,{cond:function(){return e()&&G.hasActionHeader()},
then:function(){var O;return _.v("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(O=G.actionHeader)==null?void 0:O.call(G))}}))}}))},"Xj");
OvW.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.y(function(G){function e(Dq){if(!P&&typeof MutationObserver!=="undefined"){var bF={childList:!0};"MutationObserver"in window&&(P=new MutationObserver(r.bind(void 0,Dq)),P.observe(Dq,bF))}}
function r(Dq){typeof P!=="undefined"&&(F["content-wrapper"]===void 0&&(F["content-wrapper"]=Dq.children[0].clientHeight),H(F["content-wrapper"]),X()>I()||C(X()))}
function Z(){l(window.innerHeight);X()>I()||C(X());J.isFullScreen[0]()&&X()>I()?U().dispatch("Snap To Full Screen",{maxHeight:u()}):U().dispatch("Snap To Neutral Position",{maxHeight:I()})}
function O(Dq){document.body.style.overscrollBehavior="none";Dq.preventDefault();U().dispatch("Touch Start",{event:Dq})}
function M(Dq){Dq.preventDefault();U().dispatch("Touch Move",{event:Dq,contentScrollable:X()>I(),fullContentWrapperHeight:u(),contentWrapperHeight:I(),heightMap:F,contentWrapperId:"content-wrapper",header:c3o(G),footer:c3o(G),headerDivHeight:F["bottom-sheet-header"],footerDivHeight:F["bottom-sheet-footer"]})}
function T(){document.body.style.overscrollBehavior="";J.isFullScreen[0]()?J.currentY[0]()>=60?U().dispatch("Snap To Neutral Position",{maxHeight:I()}):U().dispatch("Snap To Full Screen",{maxHeight:u()}):J.currentY[0]()>=60?E():J.currentY[0]()<=-60&&X()>I()?U().dispatch("Snap To Full Screen",{maxHeight:u()}):U().dispatch("Snap To Neutral Position",{maxHeight:I()})}
function E(){U().dispatch("Close Sheet",{clientHeight:g(),maxHeight:0});setTimeout(function(){m_2()},250)}
var b=_.hT("div"),w=_.hT("div"),q=_.h(_.XQ(window.innerHeight,void 0,"CmOsU")),t=q.next().value;q=q.next().value;var g=t,l=q;q=_.h(_.XQ(0,void 0,"p0Flhb"));t=q.next().value;q=q.next().value;var X=t,H=q;q=_.h(_.Ob(function(){var Dq=c3o(G);return.6*g()-psW(Dq)-Cgd(Dq)}));
t=q.next().value;q=q.next().value;var I=t,C=q,u=function(){var Dq=c3o(G),bF=g(),Kf=F["bottom-sheet-header"],ti=F["bottom-sheet-footer"];return bF-(Dq.hasHeaderFn&&Kf!==void 0?Kf:psW(Dq))-(Dq.hasFooterFn&&ti!==void 0?ti:Cgd(Dq))-24-24},P=null,F={},J={initialY:_.XQ(0,void 0,"sxdESd"),
currentY:_.XQ(0,void 0,"GZzqeb"),isAnimating:_.XQ(!1,void 0,"vJBupc"),isFullScreen:_.XQ(!1,void 0,"XyRDp"),maxHeightForContentWrapper:_.Ob(I)},U=function(){var Dq=null;return function(){if(!Dq){var bF={initialY:J.initialY[0](),currentY:J.currentY[0](),isAnimating:J.isAnimating[0](),isFullScreen:J.isFullScreen[0](),maxHeightForContentWrapper:J.maxHeightForContentWrapper[0]()};Dq=uC8(bF)}return Dq}}();
_.yY(function(){window.addEventListener("resize",Z);U().subscribe(function(Dq){J.initialY[1](Dq.initialY);J.currentY[1](Dq.currentY);J.isAnimating[1](Dq.isAnimating);J.isFullScreen[1](Dq.isFullScreen);J.maxHeightForContentWrapper[1](Dq.maxHeightForContentWrapper)});
requestAnimationFrame(function(){b.value&&(F["bottom-sheet-header"]=b.value.clientHeight);w.value&&(F["bottom-sheet-footer"]=w.value.clientHeight)})});
_.yD(function(){window.removeEventListener("resize",Z);P&&(P.disconnect(),P=null)});
var e$=_.LC({"bottom-sheet-content-without-icon":function(){var Dq;return!((Dq=G.shouldShowIcons)==null?0:Dq.call(G))}});
return _.v("bottom-sheet-layout",null,_.v(rrY,{contentWrapperId:"content-wrapper",isAnimating:function(){return J.isAnimating[0]()},
currentY:function(){return J.currentY[0]()},
maxHeightForContentWrapper:function(){return J.maxHeightForContentWrapper[0]()},
shouldShowIcons:G.shouldShowIcons,skipContentClick:G.skipContentClick,onScroll:function(){var Dq=document.getElementById("bottom-sheet-header"),bF=document.getElementById("content-wrapper");if(Dq&&bF){var Kf={};Kf=(Kf["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,Kf["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,Kf);Dq.className=bF.scrollTop>1?_.qo(Kf):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:m_2,contentWrapperEl:function(Dq){e(Dq);requestAnimationFrame(function(){r(Dq)})},
header:function(){return _.v("div",{el:b},_.v(OvW,{touchstart:O,touchmove:M,touchend:T,title:G.headerTitle,subtitle:G.headerSubtitle,headerId:"bottom-sheet-header",headerOverride:G.headerFn,hasHeaderOverride:G.hasHeaderFn,actionHeader:G.headerActionHeader,hasActionHeader:G.hasHeaderActionHeader}))},
footer:function(){return _.v("div",{el:w},_.v(Zvo,{footerButtonType:G.footerButtonType,leadingLabel:G.footerLeadingLabel,trailingLabel:G.footerTrailingLabel,primaryButton:G.footerPrimaryButton,hasPrimaryButton:G.hasFooterPrimaryButton,secondaryButton:G.footerSecondaryButton,hasSecondaryButton:G.hasFooterSecondaryButton,footerOverride:G.footerFn,hasFooterOverride:G.hasFooterFn}))},
body:function(){return _.v(_.S,{cond:G.hasContentFn,then:function(){var Dq;return _.v("div",{class:e$},(Dq=G.contentFn)==null?void 0:Dq.call(G))}})}}))},"Yj").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var Mom=_.y(function(G){var e=_.v_().resolve(_.nJ);return _.v("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.ev(function(){return void e.closeSheet()})},_.v(_.S,{cond:function(){return!!G.header},
then:function(){return _.v("div",{class:"ytContextualSheetLayoutHeaderContainer"},G.header())}}),_.v(_.S,{cond:function(){return!!G.content},
then:function(){return _.v("div",{class:"ytContextualSheetLayoutContentContainer"},G.content())}}),_.v(_.S,{cond:function(){return!!G.footer},
then:function(){return _.v("div",{class:"ytContextualSheetLayoutFooterContainer"},G.footer())}}))},"Zj");
Mom.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var Vo8=_.y(function(G){G=G.data;var e=_.hT("yt-sheet-view-model",function(Z){if(_.R("web_focus_first_element_sheet")||!_.R("sheet_focus_first_killswitch"))return Z.addEventListener("focus",function(){nPa(Z)}),function(){Z.removeEventListener("focus",function(){nPa(Z)})}}),r={};
return _.v("yt-sheet-view-model",{"on:mousedown":_.ev(function(Z){_.R("sheet_focus_first_killswitch")||Z.currentTarget!==Z.target&&Z.preventDefault()}),
"on:focus":_.ev(function(){_.R("sheet_focus_first_killswitch")||nPa(e.value)}),
class:_.LC("ytSheetViewModelHost",(r.ytSheetViewModelContextual=!0,r.ytSheetViewModelDisableBackdropFilter=_.R("web_disable_backdrop_filter"),r)),el:e,tabindex:-1},_.v(_.S,{cond:G,then:function(Z){return _.v(Mom,{header:function(){return _.v(_.E2,{data:function(){return Z().header}},{panelHeaderViewModel:e6B})},
content:function(){return _.v(_.E2,{data:function(){return Z().content}},{listViewModel:function(O){return _.v(_.X8w,{data:O.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:Ycl,miniAppScoreChallengeViewModel:yzA})},
footer:function(){return _.v(_.E2,{data:function(){return Z().footer}},{panelFooterViewModel:_.qE})}})}}))},"$j");
Vo8.idomCompat=!0;_.J_(Vo8,"yt-sheet-view-model",{props:{data:_.N6}});var TIo=_.y(function(G){var e=function(){var r;return(r=G.data().enableDebuggingFeatures)!=null?r:!1};
return _.v("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.v(_.u6,{each:function(){var r;return(r=G.data().stickers)!=null?r:[]}},function(r){return _.v(h6H,{data:function(){return r},
debugMode:e})}))},"ak"),h6H=_.y(function(G){var e=_.cx(G,{debugMode:!1}).debugMode,r=_.mr(function(){var b;
return(b=G.data().region)==null?void 0:b.w},0),Z=_.mr(function(){var b;
return(b=G.data().region)==null?void 0:b.h},0),O=_.mr(function(){var b;
return(b=G.data().region)==null?void 0:b.x},0),M=_.mr(function(){var b;
return(b=G.data().region)==null?void 0:b.y},0),T=_.ev(function(){var b=G.data().onTap;
b&&_.HQ(b)}),E={};
return _.v("div",{class:_.LC("ytStoriesStickerLayerViewModelSticker",(E.ytStoriesStickerLayerViewModelDebugMode=e,E)),style:_.Mk({width:function(){return 100*r()+"%"},
height:function(){return 100*Z()+"%"},
left:function(){return 100*O()+"%"},
top:function(){return 100*M()+"%"},
"flex-direction":function(){return YiW(G.data().flexDirection)},
"justify-content":function(){return y3W(G.data().justifyContent)},
"align-items":function(){return A3W(G.data().alignItems)}}),
"on:click":T},_.v(_.E2,{data:function(){return G.data().button||G.data().toggleButton}},{buttonViewModel:function(b){return _.v(_.wF,{data:b.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(b){return _.v(_.pb,{data:b.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"bk");var El2=_.y(function(G){var e=function(){return G.data()},r={},Z=_.h(_.XQ(!1,void 0,"SegA3d")),O=Z.next().value,M=Z.next().value,T=_.mr(function(){return e().backgroundColor},0);
Z=_.mr(function(){return e().actionButtons},[]);
var E=_.mr(function(){return e().stickerLayer},{}),b=function(){var q,t;
return{animationRef:r,animationConfig:{autoplay:!1,loop:!1,path:(t=(q=e().foregroundAnimation)==null?void 0:q.url)!=null?t:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){M(!0)},
complete:function(){G.navigateToNextItemOnLottieComplete()}}}},w=function(){var q,t,g,l,X,H,I,C;
return{animationConfig:{autoplay:(H=(q=e().backgroundAnimation)==null?void 0:(t=q.settings)==null?void 0:t.autoplay)!=null?H:!1,loop:(I=(g=e().backgroundAnimation)==null?void 0:(l=g.settings)==null?void 0:l.loop)!=null?I:!1,path:(C=(X=e().backgroundAnimation)==null?void 0:X.url)!=null?C:"",name:"stories_item_background_animation"}}};
_.Y8(function(){if(G.isVisible()&&O()){var q;(q=r.lottieEl)==null||q.play();G.animationRef()&&(G.animationRef().lottieEl=r.lottieEl)}else{var t;(t=r.lottieEl)==null||t.stop()}},"MxM2wb");
return _.v("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.Mk({"background-color":function(){return _.jF(T())+";"}})},_.v("div",{class:"ytStoriesItemViewModelAssetContent"},_.v(_.S,{cond:function(){return!!e().backgroundAnimation},
then:function(){return _.v(_.lO,{data:w,animationName:function(){return w().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.v(_.S,{cond:function(){return!!e().backgroundImage},
then:function(){return _.v(_.nC,{data:function(){return e().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.v(_.S,{cond:function(){return!!e().foregroundAnimation},
then:function(){return _.v(_.lO,{data:b,animationName:function(){return b().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.v(_.S,{cond:function(){return!!e().foregroundImage},
then:function(){return _.v(_.nC,{data:function(){return e().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.v("div",{class:"ytStoriesItemViewModelTopShadow"}),_.v(_.E2,{data:function(){return E()}},{storiesStickerLayerViewModel:TIo})),_.v("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.Mk({"background-color":function(){return _.jF(T())}})},_.v("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.v(_.u6,{each:Z},function(q){return _.v(DEH,{data:function(){return q},
pauseAutoNavigation:G.pauseAutoNavigation})}))))},"dk"),ivl={style:"overlay",
type:"outline"},DEH=_.y(function(G){var e={};return _.v("div",{class:_.LC("ytStoriesItemViewModelActionButton",(e.ytStoriesItemViewModelStretchedActionButton=function(){return G.data().size==="STORIES_BUTTON_SIZE_STRETCH"},e)),
"on:click":_.ev(G.pauseAutoNavigation)},_.v(_.E2,{data:function(){return G.data().button}},{buttonViewModel:function(r){return _.v(_.wF,{data:r.data,
buttonOverrides:ivl})}}))},"ek");var bvW={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.J_(_.y(function(G){var e=function(){var ti;return(ti=G.data().startIndex)!=null?ti:0},r=_.h(_.Ob(e)),Z=r.next().value,O=r.next().value;
r=_.h(_.XQ(!1,void 0,"qWlrrc"));var M=r.next().value,T=r.next().value,E=function(){var ti;return(ti=G.data().storyItems)!=null?ti:[]},b={},w=_.hT("yt-stories-viewer-view-model"),q=function(){return G.data().dismissButton},t=function(){var ti;
return _.X0((ti=_.a(q(),_.G$))==null?void 0:ti.onTap)},g=_.hT("div"),l,X,H=!1,I=function(){var ti;
(ti=l)==null||ti.cancel();l=C(Z()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});l.onfinish=function(){var Ry=_.a(E()[Z()],bw8),nf,k4;Ry!=null&&Ry.foregroundAnimation&&((Ry==null?0:(nf=Ry.foregroundAnimation)==null?0:nf.url)||(Ry==null?0:(k4=Ry.foregroundAnimation)==null?0:k4.payload))||(Z()!==E().length-1?(O(Z()+1),I()):t()&&_.KC(t()))}},C=function(ti){return g.value.children[ti].children[0]},u=function(){for(var ti=0;ti<Z();ti++)C(ti).style.transform=
"scaleX(1)"},P=function(){H||(M()?T(!1):(Z()===E().length-1&&t()&&_.KC(t()),C(Z()).style.transform="scaleX(1)",Z()!==E().length-1&&(O(Z()+1),I())))},F=function(){H||(M()?T(!1):(C(Z()).style.transform="scaleX(0)",Z()!==0&&O(Z()-1),I()))},J=function(){T(!0)},U=function(){C(Z()).style.transform="scaleX(1)";
Z()!==E().length-1?(O(Z()+1),I()):t()&&_.KC(t())};
r=function(){H=!1;X=setTimeout(function(){T(!0);H=!0},300)};
var e$=function(){clearTimeout(X);H&&M()&&T(!1)};
_.Y8(function(){if(M()){var ti;(ti=l)==null||ti.pause();var Ry;(Ry=b.lottieEl)==null||Ry.pause()}else{var nf;(nf=l)==null||nf.play();var k4;(k4=b.lottieEl)==null||k4.play()}},"utQ8Hb");
_.Y8(function(){u();Z()===e()&&I()},"UsBAlc");
var Dq=function(ti){ti.key==="ArrowLeft"?F():ti.key==="ArrowRight"&&P()},bF=function(ti){if(ti.target===w.value){(ti=t())&&_.KC(ti);
clearTimeout(X);var Ry;(Ry=l)==null||Ry.cancel();window.removeEventListener("keydown",Dq);window.removeEventListener("yt-popup-closed",bF)}},Kf=function(ti){ti.target===w.value&&(window.addEventListener("keydown",Dq),window.addEventListener("yt-popup-closed",bF))};
_.yY(function(){u();I();window.addEventListener("yt-popup-opened",Kf)});
return _.v("yt-stories-viewer-view-model",{el:w,class:_.LC("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.v("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.v("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.ev(F),"on:mousedown":_.ev(r),"on:mouseup":_.ev(e$),"on:mouseleave":_.ev(e$)}),_.v("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.ev(P),"on:mousedown":_.ev(r),"on:mouseup":_.ev(e$),"on:mouseleave":_.ev(e$)})),
_.v("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.v(_.E2,{data:E},{storiesItemViewModel:function(ti,Ry){var nf=ti.data;return _.v(_.S,{cond:function(){return Math.abs(Ry()-Z())<=1},
then:function(){var k4={};return _.v("div",{class:_.LC("ytStoriesViewerViewModelStoryItem",(k4.ytStoriesViewerViewModelActiveStoryItem=function(){return Ry()===Z()},k4))},_.v(El2,{data:nf,
pauseAutoNavigation:J,navigateToNextItemOnLottieComplete:U,isVisible:function(){return Ry()===Z()},
animationRef:b}))}})}})),_.v("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:g},_.v(_.u6,{each:E},function(){return _.v("div",{class:"ytStoriesViewerViewModelProgressBar"},_.v("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.v("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.v(_.nC,{data:bvW,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.v("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.v(_.E2,{data:q},{buttonViewModel:_.wF}))))},"hk"),"yt-stories-viewer-view-model",{props:{data:_.N6}});_.J_(_.y(function(G){var e=G.data;var r=_.hT("yt-gen-ai-feedback-form-view-model"),Z=[];return _.v("yt-gen-ai-feedback-form-view-model",{el:r,class:"ytGenAiFeedbackFormViewModelHost"},_.v(_.Wh,{text:function(){return e().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.v("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.v(_.E2,{data:function(){return e().feedbackChips}},{toggleButtonViewModel:function(O){var M=O.data;
return _.v(_.pb,{data:M,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(T){var E=M();E=_.a(E,_.rq);E=_.a(E==null?void 0:E.defaultButtonViewModel,_.G$).trackingParams;T?Z.push(E):(T=Z.indexOf(E),T>-1&&Z.splice(T,1))}})}})),_.v(_.Wh,{text:function(){return e().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.v("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.v(_.E2,{data:function(){return e().submitButton}},{buttonViewModel:function(O){return _.v(_.wF,{data:O.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){FK8(r.value,Z,e().uniqueId)}})}}),_.v(_.E2,{data:function(){return e().moreFeedbackButton}},{buttonViewModel:function(O){return _.v(_.wF,{data:O.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"ik"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.N6},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var so=function(){return _.m.apply(this,arguments)||this};
_.K(so,_.m);so.prototype.created=function(){aSm(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(SLW);var G=_.v_().resolve(_.l2W);G&&(G.container=this.ytPopupContainerBehavior);if(G=_.v_().resolve(_.nJ))G.container=this.ytPopupContainerBehavior;if(G=_.v_().resolve(_.m6)){var e=this.ytPopupContainerBehavior;G.containerWasInjected?_.FH(Error("qj")):G.container=e}};
so.prototype.ensurePopupBelowPlayer=function(G,e){var r=_.v_().resolve(_.bq(_.y$));if(!r||!r.isOnWatch()||!_.Ff())return!1;r=r.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.T1().height>r+this.getPopupHeight(G,e)?(G.style.top="auto",G.style.bottom="0px"):(G.style.top=r+"px",G.style.bottom="auto");return!0};
so.prototype.getPopupHeight=function(G,e){e&&(G.cachedPopupHeight=0);if(!G.cachedPopupHeight){e=0;var r=G.clientHeight,Z=window.getComputedStyle(G);e+=parseInt(Z.marginTop,10);e+=parseInt(Z.marginBottom,10);G.cachedPopupHeight=r+e}return G.cachedPopupHeight};
so.prototype.getElement=function(G){return document.createElement(G)};
_.B([_.k(Wwl.YtPopupContainerBehavior),_.x("design:type",Object)],so.prototype,"ytPopupContainerBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],so.prototype,"ytComponentBehavior",void 0);_.B([_.c({disableElementRegistration:!0,is:"ytd-popup-container"})],so);
_.A(so,"ytd-popup-container",function(){if(ygV!==void 0)return ygV;var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);return ygV=G},{mode:1});var vlW;var w7W={};w7W.YtLogYpcFlowCommandsBehavior=[_.gF.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(G){_.a(G,oE2)&&(G=_.a(G,oE2))&&(G.serializedTransactionFlowLoggingParams?_.a5s(G.serializedTransactionFlowLoggingParams):G.serializedYpcCancelFlowLoggingParams?(G=G.serializedYpcCancelFlowLoggingParams)&&_.qd("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",G):G.serializedYpcResumeFlowLoggingParams?(G=G.serializedYpcResumeFlowLoggingParams)&&_.qd("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",G):G.serializedYpcPauseFlowLoggingParams?(G=G.serializedYpcPauseFlowLoggingParams)&&
_.qd("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",G):G.serializedYpcRefundFlowLoggingParams?(G=G.serializedYpcRefundFlowLoggingParams)&&w58("YPC_EVENT_TYPE_START",G):G.serializedYpcDeactivateFlowLoggingParams?(G=G.serializedYpcDeactivateFlowLoggingParams)&&_.qd("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",G):G.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(G=G.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.qd("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",G))},
handleLogYpcFlowDismiss_:function(G){_.a(G,d2o)&&(G=_.a(G,d2o),G.serializedTransactionFlowLoggingParams?_.XFf(G.serializedTransactionFlowLoggingParams):G.serializedYpcCancelFlowLoggingParams?(G=G.serializedYpcCancelFlowLoggingParams)&&_.qd("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",G):G.serializedYpcResumeFlowLoggingParams?(G=G.serializedYpcResumeFlowLoggingParams)&&_.qd("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",G):G.serializedYpcPauseFlowLoggingParams?(G=
G.serializedYpcPauseFlowLoggingParams)&&_.qd("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",G):G.serializedYpcRefundFlowLoggingParams&&(G=G.serializedYpcRefundFlowLoggingParams)&&w58("YPC_EVENT_TYPE_CANCEL",G))}}];var $Ed={};$Ed.YtCancelRecurrenceBehavior=[_.F9.YtComponentBehavior,_.Ws3,{attached:function(){var G=this;hkC(this,function(e,r){return G.ypcCancelRecurrenceHandler(e,r)})},
ypcCancelRecurrenceHandler:function(G,e){var r=this;if(!e||!e.ypcCancelRecurrenceEndpoint)return!1;if(!e.ypcCancelRecurrenceEndpoint.params)return _.WX(Error("Sl")),!0;_.ki(this.hostElement);var Z=_.Q$.instance,O=_.v_().resolve(_.bq(_.bf));Z&&_.IV(Z,e)?_.p1(Z,e).then(function(M){r.ypcCancelRecurrenceSuccess_(G,e,{data:M})},function(M){r.ypcCancelRecurrenceFailure_(G,e,M)}).thenCatch(function(){_.WX(Error("Tl"))}):O?O.requestDataForServiceEndpoint(e).then(function(M){r.ypcCancelRecurrenceSuccess_(G,
e,M)},function(M){r.ypcCancelRecurrenceFailure_(G,e,M)}).thenCatch(function(){_.WX(Error("Tl"))}):_.WX(Error("Ul"));
return!0},
ypcCancelRecurrenceSuccess_:function(G,e,r){_.H4(this.hostElement);r.data||(r={data:r});r.data&&r.data.actions&&_.Wi(this.hostElement,r.data.actions,this.hostElement);r.data.messageRenderer?Sbl(e.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(e=e.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.qd("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",e);_.xy(G,"yt-service-request-completed",r)},
ypcCancelRecurrenceFailure_:function(G,e,r){_.H4(this.hostElement);Sbl(e.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.xy(G,"yt-service-request-error",{error:r,params:[G,e]})}}];var S$o=function(G,e){_.rs.call(this,e)};
_.K(S$o,uWW);var q$C={};q$C.YtCompleteTransactionBehavior=[_.F9.YtComponentBehavior,_.Ws3,{attached:function(){var G=this;hkC(this,function(e,r){return G.ypcCompleteTransactionHandler(e,r)})},
completeTransaction:function(G,e){var r=this;e={payments_payload:window.btoa(e.integratorData),buybucket_params:G.data.buybucketParams,offer_params:G.data.offerParams};var Z=_.v_().resolve(_.bf),O=G.data.completeTransactionEndpoint,M=this.get("ypcCompleteTransactionEndpoint.actions",O);M&&_.Wi(this.hostElement,M,this.hostElement);return(M=_.Q$.instance)&&_.IV(M,O)?_.p1(M,O,e).then(function(T){return!T||(T==null?0:T.error)?(T=r.get("data.serializedTransactionFlowLoggingParams",G),_.Ss(new Tf("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
T))):{data:T}}).then(function(T){return r.handleCompleteTransactionSuccess_(T,G)},function(){return r.handleCompleteTransactionFailure_(G)}):Z.requestDataForServiceEndpoint(O,e).then(function(T){return r.handleCompleteTransactionSuccess_(T,G)},function(){return r.handleCompleteTransactionFailure_(G)})},
handleCompleteTransactionSuccess_:function(G,e){G.data||(G={data:G});if(G.data.messageRenderer)return _.Ss(new S$o(G.data.messageRenderer));if(G.data.trackingParams){var r=_.l4(),Z=_.go();r&&Z&&_.QU(r,Z,_.b1(G.data.trackingParams))}e=this.get("data.serializedTransactionFlowLoggingParams",e);$kA(e);return _.Nz(G)},
handleCompleteTransactionFailure_:function(G){G=this.get("data.serializedTransactionFlowLoggingParams",G);_.Ca("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",G);return _.Ss(new Tf("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",G))},
ypcCompleteTransactionHandler:function(G,e){var r=this;if(!e.ypcCompleteTransactionEndpoint)return!1;if(!e.ypcCompleteTransactionEndpoint.transactionParams)return _.WX(Error("Vl")),!0;e.ypcCompleteTransactionEndpoint&&e.ypcCompleteTransactionEndpoint.gtmData&&_.Q9(e.ypcCompleteTransactionEndpoint.gtmData);var Z=_.v_().resolve(_.bq(_.bf));if(Z){_.ki(this.hostElement);var O=_.Q$.instance;O&&_.IV(O,e)?_.p1(O,e).then(function(M){return!M||(M==null?0:M.error)?(M=r.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
e),_.Ss(new Tf("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",M))):{data:M}}).then(function(M){_.xy(G,"yt-service-request-completed");
r.ypcCompleteTransactionSuccess_(e,M)},function(){return r.ypcCompleteTransactionFailure_(e)}):Z.requestDataForServiceEndpoint(e).then(function(M){_.xy(G,"yt-service-request-completed");
r.ypcCompleteTransactionSuccess_(e,M)},function(){return r.ypcCompleteTransactionFailure_(e)})}return!0},
ypcCompleteTransactionSuccess_:function(G,e){_.H4(this.hostElement);e.data||(e={data:e});_.Pi(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);e.data.messageRenderer||e.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(G):(_.Q9('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",G));e.data.actions&&(G=CMH(e.data.actions),e=ub2(e.data.actions),G.length&&_.zw(this.hostElement,
G),e.length&&_.Wi(this.hostElement,e,this.hostElement))},
ypcCompleteTransactionFailure_:function(G){_.H4(this.hostElement);_.Pi(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",G,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(G,e,r){if(e=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",e))e={serializedTransactionFlowLoggingParams:e},r&&(e.errorType=r),_.cg(G,e),_.Yc()}}];var toY={};toY.YtEndpointHandlerWithYpcBehavior=[_.Ws3,_.gF.YtActionHandlerBehavior,[{openWalletDialog:function(G,e,r,Z,O,M,T){var E=this,b=_.C1();e=e.replace(/-/g,"+").replace(/_/g,"/");var w=_.hy().get("hl");_.ngN(_.Yi(_.uf),e,b.resolve,O,function(q){M&&M();b.reject(q)},w,function(q){return E.onServerBackendAnalyticEvent_(G,r,q)},this.onDialogClose_.bind(this),Z,T);
return b.promise},
openFixFlowDialog:function(G,e,r,Z){G=G.replace(/-/g,"+").replace(/_/g,"/");_.Yi(_.uf).openFixFlowDialog(G,e,r,Z)},
onDialogClose_:function(){_.Pi(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(G,e,r){_.xy(G,"yt-commerce-action-init-done");e&&_.zw(this.hostElement,[e,{backend_analytics:r}])}}],
_.qG.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(G,e){G=this.get("data.nativeFlowEndpoint",e);e=this.get("data.fallbackEndpoint",e);G?_.zw(this.hostElement,[G]):e&&_.xy(this.hostElement,"yt-navigate",{endpoint:e})}}],
$Ed.YtCancelRecurrenceBehavior,q$C.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 G=this;hkC(this,function(e,r,Z){return G.handleYPCEndpoint(e,r,Z)});
this.ypcRegisterActionMapJobId_=_.IQ(_.A0,function(){G.registerActionMap(G.buyFlowActionMap_)})},
detached:function(){var G=this;_.A0.cancelJob(this.ypcRegisterActionMapJobId_);_.IQ(_.A0,function(){G.unregisterActionMap(G.buyFlowActionMap_)})},
handleYPCEndpoint:function(G,e,r){var Z=e.ypcGetCartEndpoint;if(Z){_.Rl("commerce_transaction");var O=Z.gtmId;O&&_.sZ(O);(Z=Z.gtmData)&&_.Q9(Z)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",e)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(G,e),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",e)!=null?(this.handleYPCFixInstrumentEndpoint_(G,e),!0):e.ypcPauseSubscriptionCommand?(LKa(this.hostElement,G,e,r),
!0):e.ypcResumeSubscriptionCommand?(rDY(this.hostElement,G,e),!0):e.getPaymentInstrumentsParamsCommand?(z5C(this.hostElement,G,e),!0):e.ypcHandleTransactionEndpoint?(PgH(this.hostElement,G,e,r),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(G,e){var r=this;_.jq("ttcr",void 0,"commerce_transaction");e=e.ypcGetCartEndpoint;var Z=e.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,O=Z.encryptedPurchaseParams,M=Z.serializedTransactionFlowLoggingParams,T=Z.serializedPaymentsClientParams,E=this.createGetCartResponseFromParams_(Z,e.offerParams,M);this.changeButtonState(G,!0);_.fY(this.openWalletDialog(G,O,Z.ypcLogWalletAnalyticDataEndpoint,M,function(){r.changeButtonState(G,!1)},function(){r.changeButtonState(G,
!1)},T).then(function(b){return r.handleBuyFlowCompleteCallback_(G,E,b)},function(){return r.handleOnLoadError(E)}).then(function(b){return void r.handlePostPurchaseSuccess_(G,E,b)},function(b){return void r.handlePostPurchaseError_(b)}),function(){r.changeButtonState(G,!1);
G instanceof Element&&_.xy(G,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(G,e,r){var Z=G.completeTransactionEndpoint,O=G.handleTransactionEndpoint;e={data:{offerParams:window.btoa(e),serializedTransactionFlowLoggingParams:r}};O?e.data.handleTransactionEndpoint=O:e.data.completeTransactionEndpoint=Z;G.onCartDismissCommand&&(e.data.onCartDismissCommand=G.onCartDismissCommand);return e},
onGetCartServiceRequestCompleted_:function(G,e){var r=this,Z=G.target;if(e&&e.data&&e.data.messageRenderer)_.H4(this.hostElement),this.handleMessageRenderer_(e.data.messageRenderer),this.changeButtonState(Z,!1);else{var O=this.get("data.encryptedPurchaseParams",e),M=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",e),T=this.get("data.ypcLogWalletAnalyticDataEndpoint",e),E=this.get("data.serializedPaymentsClientParams",e),b=this.getLoggingParams_(e);if(b||O||M)G.stopPropagation(),_.jq("ttcr",
void 0,"commerce_transaction"),O||_.H4(this.hostElement),this.changeButtonState(Z,!1),M?_.Pi(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.xZ("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:M}}},this]):O&&(this.changeButtonState(Z,!0),G=null,G=this.openWalletDialog(Z,O,T,b,function(){_.H4(r.hostElement);r.changeButtonState(Z,!1)},function(){_.H4(r.hostElement);
r.changeButtonState(Z,!1)},E),_.fY(G.then(function(w){return r.handleBuyFlowCompleteCallback_(Z,e,w)},function(){return r.handleOnLoadError(e)}).then(function(w){return r.handlePostPurchaseSuccess_(Z,e,w)},function(w){return r.handlePostPurchaseError_(w)}),function(){r.changeButtonState(Z,!1);
_.xy(Z,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(G,e){e&&e.endpoint&&e.endpoint.ypcGetCartEndpoint&&!e.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",e.endpoint.ypcGetCartEndpoint)&&_.Wi(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",e.endpoint.ypcGetCartEndpoint)],G.target),_.ki(this.hostElement),this.changeButtonState(G.target,!0))},
onServiceRequestError_:function(G,e){if(e&&e.params&&e.params.length){e=_.h(e.params);for(var r=e.next();!r.done;r=e.next())if((r=r.value)&&r.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",r.ypcGetCartEndpoint)&&_.Wi(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",r.ypcGetCartEndpoint)],G.target);_.H4(this.hostElement);this.changeButtonState(G.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(G,e,r){var Z=r.integratorData;return Z==null||Z===""||r.error!=null?(Z=this.getLoggingParams_(e),String(r.error)==="-1"?(e.data.onCartDismissCommand&&_.Wi(this.hostElement,[e.data.onCartDismissCommand],G),_.Ss(new Tf("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",Z,!0))):_.Ss(new Tf("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",Z))):e.data.handleTransactionEndpoint?U_H(this.hostElement,e.data.handleTransactionEndpoint,{payments_payload:Z,funds_guarantee_callback_client_data:r.integratorClientCallbackData}):
this.completeTransaction(e,r)},
handlePostPurchaseSuccess_:function(G,e,r){e=r.data;var Z=!1,O,M;if(e&&((O=e.command)==null?0:(M=O.commandExecutorCommand)==null?0:M.commands)){var T,E;O=(T=e.command)==null?void 0:(E=T.commandExecutorCommand)==null?void 0:E.commands;for(T=0;T<O.length;T++)if(_.a(O[T],_.NHW)){Z=!0;break}}Z||(e&&e.gtmDatas&&e.gtmDatas.length?_.Q9(e.gtmDatas[0]):_.Q9('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));r.data&&r.data.actions&&(e=CMH(r.data.actions),r=ub2(r.data.actions),e.length&&
_.zw(this.hostElement,e),r.length&&_.Wi(this.hostElement,r,G))},
handlePostPurchaseError_:function(G){G&&G.payload&&G.payload.isUserDismiss||_.yx(Error("Xl"))},
handleOnLoadError:function(G){G=this.getLoggingParams_(G);return _.Ss(new Tf("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",G))},
getLoggingParams_:function(G){return this.get("data.serializedTransactionFlowLoggingParams",G)},
handleMessageRenderer_:function(G){var e=_.Ft(G,"renderer"),r=_.xZ("openPopupConfig");e==="confirmDialogRenderer"&&r&&_.Pi(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:r.popupTypeMap[e],popup:G}},this])},
handleYPCFixInstrumentEndpoint_:function(G,e){var r=this,Z=e.ypcFixInstrumentEndpoint;e=Z.encryptedFixInstrumentParameters;this.logFixFopEvent_(Z,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(G,!0);this.openFixFlowDialog(e,function(O,M){r.onFixFlowCompleteCallback_(Z,O,M)},function(){return r.changeButtonState(G,!1)},function(){r.changeButtonState(G,!1);
r.logFixFopEvent_(Z,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(G,e,r){var Z=_.Lz("payments.business.integration.scenario.FixInstrument");if(e==Z.IntegratorCallbackType.ON_COMPLETE){e="FIX_FOP_EVENT_TYPE_CANCEL";var O=null;r.error!=null?r.error!=Z.OnCompleteCallbackError.USER_CANCELLED&&(_.Wi(this.hostElement,[G.errorAction],this.hostElement),e="FIX_FOP_EVENT_TYPE_FAILURE",O="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.Wi(this.hostElement,[G.successAction],this.hostElement),e="FIX_FOP_EVENT_TYPE_SUCCESS");_.Wi(this.hostElement,[G.onFinishAction],
this.hostElement);this.logFixFopEvent_(G,e,O)}},
logFixFopEvent_:function(G,e,r){(G=G.serializedFixFopLoggingParams)?(e={eventType:e,serializedFixFopLoggingParams:G},r!=null&&(e.errorType=r),_.cg("fixFopFlow",e),_.Yc()):_.yx(Error("Yl"))},
changeButtonState:function(G,e){_.R("enable_ypc_spinners")&&G&&(G.is==="yt-button-renderer"||G.is==="ytd-button-renderer")&&(G.disabled=e)}}];var glo=function(G){this.JSC$32747_clientRoot=G;this.feedbackCollectorActionMap={"yt-help-dialog-requested":Olm,"yt-feedback-dialog-requested":Zl2,"yt-signal-action-help":M_V,"yt-signal-action-send-feedback":V_C,"yt-send-feedback-action":Tc2,"yt-user-feedback-endpoint":Duo};_.re(_.e8.getInstance(),this.feedbackCollectorActionMap,this.JSC$32747_clientRoot)},lP8;var R6H=function(G){this.JSC$32752_clientRoot=G;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":ESW.bind(null,this.JSC$32752_clientRoot),"yt-signal-action-delete-all-downloads":blY,"yt-signal-action-delete-download":vSd,"yt-signal-action-delete-playlist-download":$uo,"yt-signal-action-install-pwa":R3A,"yt-signal-action-refresh-downloads":gSV,"yt-offline-video-endpoint":aw8,"yt-offline-playlist-endpoint":KZV,"yt-update-local-app-setting-command":kDB,"yt-offline-orchestration-action-command":duH,
"yt-signal-action-undo-delete-download":qgV,"yt-local-watch-history-command":QiC};_.re(_.e8.getInstance(),this.downloadManagerActionMap,this.JSC$32752_clientRoot);_.sO.instance=new _.sO},jx8;var Q3=function(){var G=_.m.apply(this,arguments)||this;G.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_"};G.remoteApi_=null;return G};
_.K(Q3,_.m);_.V=Q3.prototype;
_.V.ready=function(){_.R("polymer_enable_mdx")&&(wzW({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.R("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.R("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.R("enable_cast_short_lived_lounge_token")}),_.S4("yt-remote-connection-change",this.handleConnectionChange_,this),_.S4("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=jrC())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.V.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.V.handleConnectionChange_=function(G){(this.mdxConnected=G)?(G=qeB(),!G&&epY()&&rVV()&&(G={key:"cast-selector-receiver",name:rVV()}),G=G.name):G=null;this.receiverName=G;_.TX(this.remoteApi_);(this.remoteApi_=jrC())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.V.handleReceiverAvailabilityChange_=function(){var G=Sel();epY()&&_.SF("yt-remote-cast-available")&&G.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=G.length>0};
_.V.handleRemoteQueueChange_=function(){var G=this.currentVideoId_,e=this.currentListId_,r=pZ(this.remoteApi_);this.currentVideoId_=r.videoId;this.currentListId_=r.listId;this.currentVideoId_&&_.Pi(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.R("polymer_enable_mdx_queue")?this.currentListId_:null,G,e])};
_.V.handleAddToQueueAction_=function(G){G=_.a(G,vEo);this.remoteApi_&&(G.videoId?this.remoteApi_.addVideo(G.videoId):G.playlistId&&this.remoteApi_.addPlaylist(G.playlistId))};
_.V.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.V.handleInsertInQueueAction_=function(G){G=_.a(G,wFY);this.remoteApi_&&G.videoId&&this.remoteApi_.JSC$20137_insertVideo(G.videoId)};
_.V.handleRemoveFromQueueAction_=function(G){G=_.a(G,$22);this.remoteApi_&&G.videoId&&this.remoteApi_.JSC$20137_removeVideo(G.videoId)};
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Q3.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n(),_.x("design:type",Object)],Q3.prototype,"appId",void 0);_.B([_.n(),_.x("design:type",Boolean)],Q3.prototype,"mdxConnected",void 0);_.B([_.n(),_.x("design:type",Boolean)],Q3.prototype,"receiverAvailable",void 0);_.B([_.n(),_.x("design:type",Object)],Q3.prototype,"receiverName",void 0);_.B([_.n(),_.x("design:type",Object)],Q3.prototype,"currentVideoId_",void 0);
_.B([_.n(),_.x("design:type",Object)],Q3.prototype,"currentListId_",void 0);_.B([_.aR({is:"yt-mdx-manager",disableElementRegistration:!0})],Q3);_.A(Q3,"yt-mdx-manager",void 0,{mode:2});var aP2;var X78;var IS=function(){var G=_.m.apply(this,arguments)||this;G.APP_IDS={ytr:3,ytm:5};G.JSC$21366_timeoutId_=0;G.actionMap={"yt-open-create-family-dialog":"open"};return G};
_.K(IS,_.m);_.V=IS.prototype;_.V.created=function(){aSm(2200)};
_.V.detached=function(){this.observer_&&this.observer_.disconnect()};
_.V.open=function(G,e){var r=this,Z=G.serializedYpcFamilyCreateLoggingParams;this.JSC$21366_timeoutId_=setTimeout(this.abort_.bind(this,G.postFlowErrorEndpoint,Z),3E4);e&&(this.onReadyCallback_=e);var O=_.z1(this.hostElement).querySelector("#unicorn-iframe");Z&&Z&&vOC("ypcFamilyCreateFlowStarted",Z);_.MJU("family_creation",function(){var M=_.Lz("gapi.family_creation.render");_.Lz("gapi.config.update")("iframes/family_creation/url",r.getFamilyCreationUrlWithUnicornParams_());var T=3;G.appId&&G.appId in
r.APP_IDS&&(T=r.APP_IDS[G.appId]);T={authUser:_.xZ("SESSION_INDEX")||0,clientId:T,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.xZ("HL"),initialflow:[4,5,6,7],m:r.isMobile?1:0,onFlowComplete:r.onUnicornFlowComplete_.bind(r,G.postFlowSuccessEndpoint,Z),onError:r.onUnicornFlowError_.bind(r,G.postFlowErrorEndpoint,Z),onReady:r.onUnicornFlowReady_.bind(r,G.referencePcidParams)};M(O,T)})};
_.V.close=function(){_.z1(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.V.onUnicornFlowComplete_=function(G,e){this.close();e&&e&&vOC("ypcFamilyCreateFlowSucceeded",e);_.xy(this.hostElement,"yt-navigate",{endpoint:G})};
_.V.onUnicornFlowError_=function(G,e){this.close();e&&vOC("ypcFamilyCreateFlowCancelled",e);_.xy(this.hostElement,"yt-navigate",{endpoint:G})};
_.V.onUnicornFlowReady_=function(G){var e=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();G&&_.Lz("gapi.family_creation.setConfig")(0,G);this.observer_=new MutationObserver(function(){_.z1(e.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.z1(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.z1(this.hostElement).querySelector("#dialog").open()};
_.V.getFamilyCreationUrlWithUnicornParams_=function(){return _.xZ("YTR_FAMILY_CREATION_URL")};
_.V.getCurrentUrl_=function(){return document.location.href};
_.V.abort_=function(G,e){this.clearTimeout_();this.onUnicornFlowError_(G,e)};
_.V.clearTimeout_=function(){clearTimeout(this.JSC$21366_timeoutId_)};
_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],IS.prototype,"ytActionHandlerBehavior",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],IS.prototype,"isMobile",void 0);_.B([_.n(),_.x("design:type",Object)],IS.prototype,"onReadyCallback_",void 0);_.B([_.n(),_.x("design:type",Object)],IS.prototype,"observer_",void 0);_.B([_.aR({is:"yt-create-family-dialog",disableElementRegistration:!0})],IS);
_.A(IS,"yt-create-family-dialog",function(){if(X78===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);var e=G.content,r=e.insertBefore;aP2===void 0&&(aP2=document.createElement("template"));var Z=aP2;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);X78=G}G=X78;return G},{mode:2});var K42;var fPm;var pk=function(){var G=_.m.apply(this,arguments)||this;G.STEP=1;G.BLOCK_ON=80;G.MIN_PROGESS=0;G.MAX_PROGESS=100;return G};
_.K(pk,_.m);_.V=pk.prototype;_.V.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.V.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));_.v_().addProvider({provide:GPm,useValue:this})};
_.V.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.V.finish=function(){var G=this;this.progress=this.MAX_PROGESS;IwH(function(){G.progress==G.MAX_PROGESS&&(G.hostElement.hidden=!0)})};
_.V.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.iY.Object.defineProperties(pk.prototype,{progress:{configurable:!0,enumerable:!0,set:function(G){this.progress_=G;var e="scaleX("+G/this.MAX_PROGESS+")",r=_.z1(this.hostElement).querySelector("#progress").style;r.transform=e;r.webkitTransform=e;this.hostElement.setAttribute("aria-valuenow",String(G))},
get:function(){return this.progress_}}});
_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],pk.prototype,"ytComponentBehavior",void 0);_.B([_.aR({is:"yt-page-navigation-progress",disableElementRegistration:!0})],pk);
_.A(pk,"yt-page-navigation-progress",function(){if(fPm===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.z().content.cloneNode(!0),
G.content.firstChild);var e=G.content,r=e.insertBefore;K42===void 0&&(K42=document.createElement("template"));var Z=K42;r.call(e,Z.content.cloneNode(!0),G.content.firstChild);fPm=G}G=fPm;return G},{mode:2});var k0W={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"},Hvl={"font-size":"12px","font-style":"italic"},dEC={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.nSW=function(){return _.D(function(G){_.HL(G)})};var olV=_.y(function(G){var e=function(){return G.data().subtext},r={};
return _.v("snackbar-view-model",{class:_.LC("snackbarViewModelHost",G.className)},_.v("div",{class:_.LC("snackbarViewModelEngagementBarWrapper",G.className)},_.v(_.S,{cond:function(){return G.data().image},
then:function(Z){return _.v(_.nC,{data:Z,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.v(_.S,{cond:function(){return G.data().imageContent},
then:function(){return _.v("div",{class:"snackbarViewModelAvatarContainer"},_.v(_.E2,{data:function(){return G.data().imageContent}},{decoratedAvatarViewModel:_.Aq}))}}),_.v("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.v("div",{class:_.LC((r.snackbarViewModelTitle=!0,r.snackbarViewModelTitleWithSubtext=e,r))},_.v(_.Wh,{text:function(){return G.data().text}})),_.v(_.S,{cond:e,
then:function(){return _.v("div",{class:"snackbarViewModelSubtext"},_.v(_.Wh,{text:function(){return e()}}))}})),_.v(_.S,{cond:function(){return G.data().buttons},
then:function(){return _.v("div",{class:"snackbarViewModelButtonClassWrapper"},_.v(_.E2,{data:function(){return G.data().buttons}},{buttonViewModel:function(Z){return _.v(_.wF,{data:Z.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:G.target})}}))}})))},"jk");_.J_(_.y(function(){function G(u,P,F){X(u);I(F);g("in");q(!0);e(u,P);T=setTimeout(function(){r()},P)}
function e(u,P){var F,J=(F=u.text)==null?void 0:F.content;u=_.lt(u.rendererContext);J&&(P={label:J,command:u,durationMs:P},_.v_().resolve(_.rC).enqueue(P))}
function r(u){g("out");u&&clearTimeout(T)}
function Z(){r(!0)}
function O(u){if(u){var P=u.snackbarViewModel,F=u.durationMs,J=u.target;F||(F=3E3);P&&(u=_.v_().resolve(_.bq(_.W$)))&&u.enqueue({isOpened:w,open:function(){G(P,F,J)},
close:r},0)}}
var M=_.T2("snackbar-container"),T=void 0,E=_.h(_.XQ(!1,void 0,"mDc5N")),b=E.next().value;E=E.next().value;var w=b,q=E;b=_.h(_.XQ("out",void 0,"FpOs5e"));var t=b.next().value,g=b.next().value;b=_.h(_.XQ(void 0,void 0,"jIDRob"));var l=b.next().value,X=b.next().value;b=_.h(_.XQ(void 0,void 0,"kOA3Mb"));var H=b.next().value,I=b.next().value,C=_.ev(function(){if(t()==="out"){q(!1);X(void 0);I(void 0);var u=_.v_().resolve(_.bq(_.W$));u&&ul8(u,0)}});
_.yY(function(){var u=_.v_().resolve(_.bq(_.tzd));u&&(u.showSnackbarFn=O,u.closeSnackbarFn=Z)});
return _.v("snackbar-container",{class:"ytSnackbarContainerHost",el:M},_.v(_.S,{cond:function(){return w()&&!!l()},
then:function(){var u={};return _.v("div",{class:_.LC("ytSnackbarContainerSnackbarContainer",(u.ytSnackbarContainerMobile=!1,u.ytSnackbarContainerPivotBar=function(){var P;return!((P=_.v_().resolve(_.bq(_.gfY)))==null||!P())},u.ytSnackbarContainerOpened=function(){return w()&&t()==="in"},u.ytSnackbarContainerClosed=function(){return w()&&t()==="out"},u)),
"on:animationend":C},_.v(olV,{data:function(){return l()},
target:function(){return H()}}))}}))},"kk"),"snackbar-container");_.J_(_.xbv,"yt-tooltip");var sxW=_.Zoo.ephemeralActionSelector;_.J_(_.y(function(){var G=_.Eb(sxW);return _.v("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var e;return(e=G())==null?void 0:e.announcement})},"lk"),"yt-ephemeral-actions");var r8d=new Map;var PDB=function(G,e){var r=this;this.handleError=G;this.logEventInternal=e;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){r.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
PDB.prototype.logError=function(G){this.handleError(G)};
PDB.prototype.logEvent=function(G,e){switch(G){case "IDB_DATA_CORRUPTED":_.R("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",e);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",e);break;case "IS_SUPPORTED_COMPLETED":_.R("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",e);break;case "QUOTA_EXCEEDED":Qxm(this,e);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",e);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":G=Object.assign({},e,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",G)}};
var Qxm=function(G,e){_.Oc.getInstance().estimate().then(function(r){r=Object.assign({},e,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:OYW(r==null?void 0:r.usage),deviceStorageQuotaMbytes:OYW(r==null?void 0:r.quota)});G.logEventInternal("idbQuotaExceeded",r)})};var IPC=_.y(function(G){var e=_.hT("yt-draggable"),r=G.onDrag,Z=G.onDragStart,O=G.onDragEnd,M=_.cx(G,{allowClicks:!1,dragThreshold:5}),T=M.dragThreshold,E=M.allowClicks;G=M.children;M=M.className;var b=void 0,w=void 0,q=new _.yB(0,0),t=!1;_.yY(function(){b=new _.um(e.value);w=new _.wE(l);g(b,w);if(E()){_.HtE(b,T());var H;(H=e.value)==null||H.addEventListener("click",X,{capture:!0})}_.yD(function(){var I;(I=b)==null||I.dispose();if(E()){var C;(C=e.value)==null||C.removeEventListener("click",X,{capture:!0})}})});
var g=function(H,I){_.w2(H,"earlycancel",function(){E()&&(t=!1)});
_.w2(H,"start",function(C){Z==null||Z(C);C.defaultPrevented||E()&&(t=!0)});
_.w2(H,"beforedrag",function(C){b&&w&&(C.preventDefault(),q=new _.yB(C.clientX-b.startX,C.clientY-b.startY),w.start())});
_.w2(H,"end",function(){I.stop();O==null||O();q=new _.yB(0,0)})},l=function(){q&&r(q)},X=function(H){t&&(t=!1,H.stopPropagation(),H.preventDefault())};
return _.v("yt-draggable",{el:e,class:_.LC("ytDraggableComponentHost",M)},G)},"mk");var p7C=_.y(function(G){var e=_.h(_.XQ(0,void 0,"Qf0tbc")),r=e.next().value,Z=e.next().value;e=function(O){var M={},T={};return _.v(IPC,{className:_.LC("ytdMiniplayerComponentResizer",(M.ytdMiniplayerComponentResizerDisabled=function(){return O===G.horizontalAlignment()||O===G.verticalAlignment()},M.ytdMiniplayerComponentResizerNorth=O==="north",M.ytdMiniplayerComponentResizerEast=O==="east",M.ytdMiniplayerComponentResizerSouth=O==="south",M.ytdMiniplayerComponentResizerWest=O==="west",M)),
onDragStart:function(){Z(G.currentMiniplayerSize());if(G.onResizeStart)G.onResizeStart()},
onDrag:function(E){O!=="north"&&O!=="west"||E.scale(-1);var b;E=(b=O==="north"||O==="south")?E.y:E.x;var w=G.currentAspectRatio();b&&w>=1?E*=w:!b&&w<1&&(E/=w);b=E;G.onResize(r()+b)}},_.v("div",{class:_.LC("ytdMiniplayerComponentResizerCorner",(T.ytdMiniplayerComponentResizerNorthCorner=O==="north",T.ytdMiniplayerComponentResizerEastCorner=O==="east",T.ytdMiniplayerComponentResizerSouthCorner=O==="south",T.ytdMiniplayerComponentResizerWestCorner=O==="west",T))}))};
return _.v("div",{class:"ytdMiniplayerComponentResizers"},e("north"),e("east"),e("south"),e("west"))},"nk");var Cco=16/9;_.J_(_.y(function(){var G=_.hT("ytd-miniplayer"),e=_.h(_.XQ(new _.kf(NaN,NaN),void 0,"NHaFyc")),r=e.next().value,Z=e.next().value;e=_.h(_.XQ(!1,void 0,"a0rwG"));var O=e.next().value,M=e.next().value;e=_.h(_.XQ(!1,void 0,"f1jSeb"));var T=e.next().value,E=e.next().value;e=_.h(_.XQ(!1,void 0,"JojXKc"));var b=e.next().value,w=e.next().value;e=_.h(_.XQ(!1,void 0,"FjS8Db"));var q=e.next().value,t=e.next().value;e=_.h(_.XQ(!1,void 0,"z5WG9e"));var g=e.next().value,l=e.next().value;e=_.h(_.XQ(!1,void 0,"eUzZd"));
var X=e.next().value,H=e.next().value;e=_.h(_.XQ(Cco,void 0,"XsBIy"));var I=e.next().value,C=e.next().value,u=_.h(_.XQ(!1,void 0,"FJSvse"));e=u.next().value;var P=u.next().value;u=_.h(_.XQ(!1,void 0,"VDUFL"));var F=u.next().value,J=u.next().value;u=_.h(_.XQ(void 0,void 0,"nFeh4b"));var U=u.next().value,e$=u.next().value;u=_.h(_.XQ(wa()?"west":"east",void 0,"T7co7c"));var Dq=u.next().value,bF=u.next().value;u=_.h(_.XQ("south",void 0,"QDUsLb"));var Kf=u.next().value,ti=u.next().value;u=_.h(_.XQ(400,
void 0,"F7Vdze"));var Ry=u.next().value,nf=u.next().value,k4=_.v_().resolve(_.fp).miniplayerPropSignalMap[0],SE=k4.data,Fn=k4.externalPlaylistData;u=k4.toastData;var kw=k4.playabilityStatus,Lf=k4.isReadyToResume,vc=k4.isDisabled,IW=k4.watchWhile,Hc=k4.playerVe,a8=k4.expandVe,t2=k4.closeVe,hi=k4.readyToResumeVe,rj=k4.readyToResumeCloseVe,tS=k4.repositionVe,OV=k4.resizeVe;k4=_.h(_.Ob(Lf));var RW=k4.next().value,Zl=k4.next().value,pm=_.Eb(_.oH.persistentPanelVisibleSelector),Bc=!1,wj=!1,by;_.yY(function(){Z(_.T1());
G.value.addEventListener("animationend",function(Ul){Ul.target===G.value&&(l(!1),H(!1))});
EVA(G.value)});
_.Vk("yt-window-resized",function(Ul){Ul&&Z(Ul)});
var ea=function(){by&&C(by.getVideoAspectRatio())},U_=function(){if(by){var Ul=by.getPlayerState()===1;
RW()&&Ul&&Zl(!1)}},ly=function(){var Ul=a8();
if(Ul){var fd=_.l4(3);fd&&_.n_(fd,Ul)}},gW=function(){var Ul=t2(),fd=rj();
Ul&&_.n_(_.l4(3),Ul);Lf()&&fd&&_.n_(_.l4(3),fd)};
_.Vk("yt-activate-miniplayer",function(Ul){var fd;return _.D(function(h2){if(h2.nextAddress==1)return O()?h2.return():h2.yield((fd=_.v_().resolve(_.fp).getPlayerElement())==null?void 0:fd.getPlayerPromise(),2);by=h2.yieldResult;if(!by)return h2.return();!F()&&_.R("kevlar_watch_while_v2")&&(ti(Ul&&!_.R("kevlar_watch_while_bottom_align")?"north":"south"),bF(wa()?"west":"east"));var Uw=by;Uw.addEventListener("onVideoDataChange",ea);Uw.addEventListener("onStateChange",U_);Uw.addEventListener("onExpandMiniplayer",
ly);Uw.addEventListener("onCloseMiniplayer",gW);C(by.getVideoAspectRatio());M(!0);DQm()||l(!0);_.HL(h2)})});
_.Vk("yt-deactivate-miniplayer",function(Ul,fd){return _.D(function(h2){if(!O())return h2.return();M(!1);Zl(!1);H(Ul);t(!1);E(!1);if(by){var Uw=by;Uw.removeEventListener("onVideoDataChange",ea);Uw.removeEventListener("onStateChange",U_);Uw.removeEventListener("onExpandMiniplayer",ly);Uw.removeEventListener("onCloseMiniplayer",gW)}DQm()||fd?fd&&l(!1):l(!0);_.HL(h2)})});
var Ww=function(){return!(IW()&&_.R("kevlar_watch_while_modern"))},o8=function(){var Ul;
return!((Ul=Fn())==null||!Ul.contents)},Y5=function(){var Ul=Ry();
var fd=r();fd=Math.min(Math.min(fd.width,fd.height)-32,720);var h2=I(),Uw=Ww(),lx=o8()&&T(),RF=Math.min(Ul,fd);Ul=new _.kf(192,Uw?116:192);h2=new _.kf(lx?Cco:h2,1);RF=new _.kf(RF,Uw?RF-76:RF);RF=h2.aspectRatio()>RF.aspectRatio()?RF.width/h2.width:RF.height/h2.height;h2=h2.scale(RF);Ul.width<=h2.width&&Ul.height<=h2.height||(Ul=h2.aspectRatio()<=Ul.aspectRatio()?Ul.width/h2.width:Ul.height/h2.height,h2.scale(Ul),h2.width=Math.min(h2.width,fd),h2.height=Math.min(h2.height,fd));return new _.kf(h2.width,
_.j0(192,h2.height+wKW(Uw,lx),720))},Wg=function(){var Ul=Y5(),fd=Ww(),h2=o8()&&T();
return new _.kf(Ul.width,Ul.height-wKW(fd,h2))},TV=function(){var Ul=function(fd){fd.target===G.value&&q()&&(t(!1),G.value.removeEventListener("transitionend",Ul))};
DQm()||(G.value.addEventListener("transitionend",Ul),t(!0));E(!T())};
_.Y8(function(){var Ul=Hc(),fd=_.l4(3),h2=_.go(3);if(fd&&h2&&Ul){_.QU(fd,h2,Ul);h2=tS();var Uw=OV(),lx=a8(),RF=t2(),rw=rj();lx&&RF&&rw&&(_.Il(fd,Ul,[lx,RF,rw]),_.C_(fd,[lx,RF]));h2&&Uw&&_.Il(fd,Ul,[h2,Uw])}},"UBpUDd");
_.Y8(function(){var Ul=hi();if(Ul){var fd=_.l4(0),h2=_.go(0);fd&&h2&&(_.QU(fd,h2,Ul),_.C_(fd,[Ul]))}},"fQpBzb");
k4={};return _.v("ytd-miniplayer",{el:G,class:_.LC("ytdMiniplayerComponentHost",(k4.ytdMiniplayerComponentVisible=function(){return(O()||g())&&!(IW()&&_.R("kevlar_watch_while_counterfactual"))},k4.ytdMiniplayerComponentAnimatingSnap=b,k4.ytdMiniplayerComponentAnimatingPlaylistExpand=q,k4.ytdMiniplayerComponentAnimatingFade=g,k4),function(){if(g()){var Ul=Kf();
var fd=O(),h2=X();Ul=fd?Ul==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":h2?Ul==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":Ul==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else Ul="";return Ul}),
style:_.Mk({top:function(){return Kf()==="north"?"16px":""},
right:function(){var Ul=Dq(),fd=pm();fd=(fd===void 0?0:fd)&&!wa()?400:0;return Ul==="east"?16+fd+"px":""},
bottom:function(){return Kf()==="south"?"16px":""},
left:function(){var Ul=Dq(),fd=pm();fd=(fd===void 0?0:fd)&&wa()?400:0;return Ul==="west"?16+fd+"px":""},
width:function(){return Y5().width+"px"},
height:function(){return Y5().height+"px"},
transform:function(){var Ul=U();return Ul?"translate("+Ul.x+"px, "+Ul.y+"px)":""}})},_.v("div",{class:"ytdMiniplayerComponentContent"},_.v(IPC,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(Ul){var fd=vVC(Dq(),Kf(),r(),Y5(),U()),h2=Wg();Math.abs(Ul.clientY-(fd.y+h2.height))>15?(P(!0),Ul=_.l4(3),fd=tS(),Bc||(Bc=!0,Ul&&fd&&_.C_(Ul,[fd])),Ul&&fd&&_.n_(Ul,fd)):Ul.preventDefault()},
onDrag:function(Ul){e$(Ul)},
onDragEnd:function(){var Ul=iYY(vVC(Dq(),Kf(),r(),Y5(),U()),r(),Y5()),fd=bYW(Dq(),Kf(),r(),Y5(),pm()),h2=bYW(Ul.horizontalAlignment,Ul.verticalAlignment,r(),Y5(),pm());h2=new _.yB(h2.x-fd.x,h2.y-fd.y);var Uw;fd=fd.y+(((Uw=U())==null?void 0:Uw.y)||0)+Y5().height/2;var lx=function(){Dq()===Ul.horizontalAlignment&&Kf()===Ul.verticalAlignment||J(!0);bF(Ul.horizontalAlignment);ti(Ul.verticalAlignment);e$(void 0)},RF=function(rw){rw.target===G.value&&b()&&(w(!1),lx(),G.value.removeEventListener("transitionend",
RF))};
P(!1);Kf()==="south"&&fd>r().height?(lx(),_.v_().resolve(_.fp).close()):(G.value.addEventListener("transitionend",RF),w(!0),e$(h2))}},_.v(_.S,{cond:O,
then:function(){return _.v(_.VSo,{isDisabled:vc,playabilityStatus:kw,size:Wg})}}),_.v(_.S,{cond:Ww,
then:function(){return _.v(_.OF8,{isReadyToResume:RW,data:SE,expanded:T,onExpandClick:TV,playlistData:Fn})}}),_.v(_.S,{cond:e,
then:function(){return _.v("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.v(_.S,{cond:function(){return o8()&&T()||q()},
then:function(){return _.v(_.tZm,{className:"ytdMiniplayerComponentPlaylistPanel",data:Fn,hideHeaderText:!0,withinMiniplayer:!0})}}),_.v("div",{class:"ytdMiniplayerComponentToast"},_.v(_.hzW,{toastData:u}))),_.v(p7C,{onResize:function(Ul){nf(_.j0(192,Ul,720))},
onResizeStart:function(){var Ul=_.l4(3),fd=OV();wj||(wj=!0,Ul&&fd&&_.C_(Ul,[fd]));Ul&&fd&&_.n_(Ul,fd)},
currentAspectRatio:I,currentMiniplayerSize:Ry,horizontalAlignment:Dq,verticalAlignment:Kf}))},"qk"),"ytd-miniplayer",{});var uDH=_.oH.persistentPanelVisibleSelector,Ck=function(){var G=_.m.apply(this,arguments)||this;G.tabGesturesIsActive=!1;G.persistentPanelEnabled=_.R("enable_ai_companion");G.hasDelegation=!1;G.isFrostedGlassInitialized=!1;G.frostedGlassExp=_.R("web_frosted_glass");G.hasPendingWatchNavigation=!1;G.mastheadHiddenFocusWithinKillswitch=_.R("web_masthead_hidden_focus_within_killswitch");G.clientOnlyWizTooltipsEnabled=_.R("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
G.scrollAtTop=!0;G.guideScrollTop=0;G.isTheaterModeSession=_.PX("START_IN_THEATER_MODE");G.iMaxTheaterMode=_.R("web_watch_imax_theater_mode");G.isFullWindowSession=_.PX("START_IN_FULL_WINDOW_MODE");G.hasCreateFamilyDialog=!1;G.mastheadHeight=56;G.networkStatusManager=new _.e4;G.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"};G.dynamicActionMap={"yt-run-attestation-command":function(e){var r=_.MrB.instance,Z=_.a(e,_.b7W);return Z?_.R("use_rta_manager_for_async")&&
IQl()?vpW(r,Z,e.clickTrackingParams):b9C(r,Z,e.clickTrackingParams):_.Ss(Error("pi"))}};
G.isFrostedGlassDisabled=!1;G.isChannelOrPlaylistPage=!1;return G};
_.K(Ck,_.m);_.V=Ck.prototype;_.V.created=function(){var G=_.v_();_.R("kevlar_clear_duplicate_pref_cookie")&&_.IQ(_.A0,function(){var e=_.oZ.get("PREF");e&&!/f\d=/.test(e)&&(e=_.td("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")});
_.R("gzip_gel_with_worker")&&_.ecp();_.R("jspb_serialize_with_worker")&&OCm();_.R("web_worker_availability_check")&&ZY8();_.R("nwl_init_killswitch")||r_W().then(function(){_.A0.addLowPriorityJob(kxo)});
this.pageManagerAttachedPromise=_.C1();this.ytdAppBehavior.loadDepsPromise=_.KY([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.Zp(this.onThrottledScroll,200,this);_.R("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);UeW();Cll=!!_.Lz("ytappsettings.initialized");Eh=_.Lz("ytappsettings.previousValue");P1H=_.Lz("ytappsettings.previousSnapshotTime");Cll||(Cll=!0,Uq2());IkC();pzo();_.BX("DEFERRED_DETACH",
_.R("kevlar_tuner_should_defer_detach"));_.BX("REUSE_COMPONENTS",!0);_.BX("STAMPER_STABLE_LIST",!0);_.BX("SCHEDULED_LAZY_LIST",!0);_.BX("openPopupConfig",$Dl);_.BX("useClickHandler",!0);_.R("kevlar_shell_cleanup")&&_.A0.addLowPriorityJob(u0d.bind(this,_.O_.caches));_.PX("IS_SHELL_LOAD")&&_.gJ({shellStartupDurationMs:Math.round((0,_.vG)()-_.wJ())});yDd(this.networkStatusManager);_.R("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",poB(k0W)),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!",
poB(Hvl)),console.log("%cVisit http://go/join-youtube-web to apply today.",poB(dEC)));_.Rga(G.resolve(_.Gl),1E3)};
_.V.ready=function(){var G=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var e=wQW();e&&!_.R("external_fullscreen_killswitch")&&document.addEventListener(e,this.setFullscreen.bind(this));(e=window.matchMedia("(prefers-color-scheme: dark)"))&&e.addEventListener&&e.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(e=_.v_().resolve(_.bq(_.ETv)))e.subscribe("navigation-start",
function(r){r.destinationPageSubtype==="watch"&&(G.hasPendingWatchNavigation=!0)}),e.subscribe("navigation-end",function(r){r.destinationPageSubtype==="watch"&&(G.hasPendingWatchNavigation=!1)})};
_.V.attached=function(){var G=this;_.rk().processSignal("ci");_.R("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.rtE?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.e0(_.Kip(),"SUCCESS");this.updateIconSet();_.Jb(this.guideInnerContent,!1);_.Kh().initVisibilityObserver();this.guideService.guideElement=this.guide;var e=document.createElement("ytd-miniplayer"),r=_.z1(this.hostElement).querySelector("#content");
_.z1(this.hostElement).insertBefore(e,r);_.rk().processSignal("ma");_.v_().resolve(_.fp).init(e);this.persistentPanelEnabled&&_.aCW(_.v_().resolve(_.cZ),this.persistentPanelContainer,"APP");_.PX("IS_SHELL_LOAD")&&(r=document.createElement("ytd-network-status-banner"),_.z1(this.hostElement).insertBefore(r,e));_.R("kevlar_right_click_on_lockups")&&_.z8._onCaptureClick&&document.addEventListener("contextmenu",_.z8._onCaptureClick.bind(_.z8),!0);var Z=function(){var O=_.OD("yt-page-navigation-progress");
_.z1(G.hostElement).appendChild(O)};
setTimeout(function(){_.rk().parkOrScheduleJob(Z,0,"eocs",16)},0);
_.R("service_worker_push_enabled")&&_.IQ(_.A0,b1A);_.re(_.e8.getInstance(),this.dynamicActionMap,this.hostElement);_.xy(this.hostElement,"ytd-app-attached");_.rk().processSignal("aa");ka2(this.hostElement);_.Eu("gapi.load",_.MJU);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.IQ(_.A0,
function(){var O=document.createElement("ytd-video-preview");_.z1(_.z1(G.hostElement).querySelector("#video-preview")).appendChild(O)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.IQ(_.A0,function(){mu8();G.registerWithViewTransitionManager()});
if(_.oB()&&this.isAppDarkTheme()!==_.H1())this.onDarkModeToggledAction();else e=_.d0()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==e&&(_.R("enable_dark_theme_only_on_shorts")?_.kN(_.R("enable_dark_theme_only_on_shorts_control")?window.location.href:_.Mt(window.location.href,{theme:"dark"})):_.FH(new _.Cr("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(gqY=new tLH(this.hostElement)),jx8=new R6H(this.hostElement),lP8=new glo(this.hostElement),mDo=new nqm(this.hostElement)};
_.V.getThemeSettingsToLog=function(){var G=_.d0()==="USER_INTERFACE_THEME_DARK";G=_.oB()?_.H1()?"os-dark":"os-light":G?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:G,cookiesEnabled:_.Qi()}};
_.V.detached=function(){_.Bi(this.guideInnerContent);_.A0.cancelJob(MX);MX=0;_.A0.cancelJob(hn);hn=0;_.wQs(fMl);fMl.length=0;aMa=_.Eri=null;_.Kh().dispose();_.R("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.Mx(_.e8.getInstance(),gqY.playlistHandlerActionMap,gqY.JSC$32456_clientRoot);_.Mx(_.e8.getInstance(),jx8.downloadManagerActionMap,jx8.JSC$32752_clientRoot);_.Mx(_.e8.getInstance(),lP8.feedbackCollectorActionMap,lP8.JSC$32747_clientRoot);
for(var G=_.h(mDo.eventListeners),e=G.next();!e.done;e=G.next()){var r=_.h(e.value);e=r.next().value;r=r.next().value;r=_.h(r);for(var Z=r.next();!Z.done;Z=r.next()){var O=_.h(Z.value);Z=O.next().value;O=O.next().value;e.removeEventListener(Z,O)}}_.Mx(_.e8.getInstance(),mDo.autonavPauseActionMap,mDo.JSC$20319_clientRoot)};
_.V.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.hy().getFlag(186)};
_.V.computeIsInlinePreviewEnabled=function(G,e,r){return!r&&_.bO8({miniplayerIsActive:G,miniplayerPlaybackState:e})};
_.V.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.UK({type:"SET_FROSTED_GLASS_MODE",payload:!_.R("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"}))};
_.V.computeIsFrostedGlassDisabled=function(G,e,r,Z){return G||e||r||Z&&_.R("web_frosted_glass_disable_watch")};
_.V.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.R("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.V.computeIsHomePage=function(G,e){if(!G||e==null||!e.endpoint)return!1;var r;return((r=_.a(e.endpoint,_.Mv))==null?void 0:r.browseId)==="FEwhat_to_watch"};
_.V.updateIsChannelOrPlaylistPage=function(){if(_.R("web_frosted_glass")){var G,e,r=(e=(G=_.v_().resolve(_.bq(_.y$)))==null?void 0:G.getCurrentPage())==null?void 0:e.pageSubtype;this.isChannelOrPlaylistPage=r?["channel","channels","playlist"].includes(r):!1}};
_.V.scheduleFrostedGlassInitialization=function(){var G=this;_.R("web_frosted_glass")&&_.rk().parkOrScheduleJob(function(){G.isFrostedGlassInitialized=!0},0,_.tz(["eocs",
"cr"]),300)};
_.V.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.Wgw(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.UK({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.UK({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.V.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(Xvm(!0))};
_.V.onYtSignalActionRequestPersistentStorage=function(){if(!_.R("request_persistent_storage_killswitch")){var G=_.v_().resolve(_.n8C);G.cachedPersistStatePromise||(G.cachedPersistStatePromise=x1a())}};
_.V.handleYtChannelCreationFormEndpoints=function(G){G&&this.ytComponentBehavior.resolveCommand(G)};
_.V.handleShowEngagementPanelEndpoint=function(G){G&&this.ytComponentBehavior.resolveCommand(G)};
_.V.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(Xvm(!1))};
_.V.initIconDefs=function(G,e){var r=document.createElement("iron-iconset-svg");r.name=G;G=document.createElementNS("http://www.w3.org/2000/svg","svg");r.appendChild(G);G.appendChild(e);document.body.appendChild(r);return r};
_.V.onWindowResized=function(){_.Pi(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var G=_.tL.getInstance();G.documentWidth_=document.body.clientWidth;mQ8(G)};
_.V.onWindowScrolled=function(){var G=_.v_().resolve(_.y$).getCurrentPage();if(G!=null&&G.getScrollTop){var e=this.ytdReduxBehavior,r=e.dispatch;G=G.getScrollTop()<=0;r.call(e,_.UK({type:"SET_SCROLL_AT_TOP",payload:G}))}};
_.V.guideIsVisibleButNotPersistentSelectorChanged=function(){var G=_.v_().resolve(_.y$).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=G.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"),
G.setScrollTop(this.guideScrollTop));_.UW(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.V.getCurrentPageScrollableElementType=function(){var G=_.v_().resolve(_.y$).getCurrentPage();if(G&&G.getPageScrollingElement())return G.getPageScrollingElement().nodeName};
_.V.observeGuideVisibility=function(){var G=_.tL.getInstance(),e=this.miniGuideVisible;G.guidePersistentAndVisible_=this.guidePersistentAndVisible;G.miniGuideVisible_=e;mQ8(G)};
_.V.observePersistentPanelVisibility=function(){var G=_.tL.getInstance();G.persistentPanelVisible_=this.persistentPanelVisible;mQ8(G)};
_.V.handleEduDismissAction=function(G){G&&G.eduDismissAction&&(_.Pi(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.euw.getInstance(),_.SX.set(G.eduDismissAction.key+"-dismissed",!0))};
_.V.handleEduImpressionAction=function(G){if(G&&G.eduImpressionAction){var e=_.euw.getInstance();G=G.eduImpressionAction.key;e.JSC$13185_eduDisplayedThisLoad_[_.Guc[G].setKey||G]=!0;_.SX.set(G+"-impression",parseInt(_.SX.get(G+"-impression")||0,10)+1)}};
_.V.onYtSignalActionConfirmMentionsEdu=function(){_.Pi(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.lr.getInstance();_.gk.set("edu-dismissed",!0)};
_.V.onYtSignalActionRecordMentionsEduImpression=function(){_.lr.getInstance();var G=_.gk.set,e=parseInt(_.gk.get("edu-impressions"),10);G.call(_.gk,"edu-impressions",(isFinite(e)?e:0)+1)};
_.V.onYtPageManagerAttached=function(G){var e;((e=_.mk(G))==null?void 0:e.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.V.onInvokeInstrumentManagerAction=function(G,e){TTW(e,G)};
_.V.updateIconSet=function(){var G=this.hostElement.querySelector("#masthead");if(G){var e=_.W1(G),r=e.querySelector("g#yt-logo-updated");r&&(G=document.createElementNS("http://www.w3.org/2000/svg","defs"),G.appendChild(r.cloneNode(!0)),(e=e.querySelector("g#yt-logo-red-updated"))&&G.appendChild(e.cloneNode(!0)),this.initIconDefs("yt-logos-ext",G))}};
_.V.updateMastheadData=function(){var G=this,e,r,Z,O,M;return _.D(function(T){if(T.nextAddress==1){e=G.data;r=G.hostElement.querySelector("#masthead");if(!r)return T.return();_.DE(G,function(){r.data=G.topbarData});
if(!G.get("response.topbar",e)||G.get("response.topbar.responseContext.maxAgeSeconds",e)===0)return T.jumpTo(0);if(Z=_.v_().resolve(_.IK))return T.yield(Z(),6);O=_.v_().resolve(_.g9);return T.yield(O.put("service:topbar:fallback",new _.lB({innertubeResponse:G.get("response.topbar",e)})),0)}return(M=T.yieldResult)?T.yield(M.put("service:topbar:fallback",new _.lB({innertubeResponse:G.get("response.topbar",e)})),0):T.jumpTo(0)})};
_.V.computeTopbarData=function(G){if(!G)return null;var e;return this.isShortsPage&&this.topbarData&&!_.a((e=G.response)==null?void 0:e.topbar,G5o)?this.topbarData:G.response&&"topbar"in G.response?_.a(G.response.topbar,G5o)||null:null};
_.V.onSetTheaterModeEnabled=function(G,e){this.isTheaterModeSession=e.enabled;this.setTheaterModeStyles(e.enabled)};
_.V.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.V.onDarkModeToggledAction=function(){var G=_.Kr(window.location.href);if(!_.vEN(G)){(G=!!_.O5(window.location.href).themeRefresh)&&_.FH(new _.Cr("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!G){Uq2();G={themeRefresh:1};var e=_.v_().resolve(_.y$);if(e.isOnWatch()){var r,Z;e=((r=e.getPlayerFromWatch())==null?void 0:(Z=r.getPlayer())==null?void 0:Z.getCurrentTime())||0;e>=1&&(G.time_continue=Math.floor(e))}_.Qi()||_.d0()!=="USER_INTERFACE_THEME_DARK"||(G.theme="dark");_.kN(_.Mt(window.location.href,
G))}_.R("web_appshell_refresh_trigger")&&_.O_.caches&&this.refreshAppShellResponse();r=_.sW(window.location.href);_.aA(_.v_().resolve(_.XL),_.y5(r,"theme"))}};
_.V.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.V.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.V.onPlayerFullscreen=function(G){_.Ab();this.playerFullscreen=G};
_.V.setRestrictedMode=function(G){var e=_.hy();_.Tn(0,58,G);e.save();_.v_().resolve(_.X9).reload()};
_.V.onPageChanged=function(G){G.detail.newPageType==="ytd-watch-flexy"||G.detail.newPageType==="ytd-watch-fixie"||G.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.qS("WEB_PAGE_TYPE_WATCH")):G.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.qS("WEB_PAGE_TYPE_SHORTS")):G.detail.newPageType==="ytd-browse"&&G.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.qS("WEB_PAGE_TYPE_MINI_APP")):_.R("web_frosted_glass")&&G.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.qS("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.qS("WEB_PAGE_TYPE_UNKNOWN"));G.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.V.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.V.onGuideToggleTap=function(){_.xy(this.hostElement,"yt-guide-toggle")};
_.V.onGuideToggleHover=function(){_.xy(this.hostElement,"yt-guide-hover")};
_.V.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.V.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.V.setMastheadTheme=function(){var G=_.W1(this.hostElement).querySelector("#masthead");G&&(G.dark=G.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),G.isDarkThemeForced=!1)};
_.V.onRequestPanelModeChange=function(G,e){this.hideHeaderShadow=e.mode!=="seamed"};
_.V.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.V.onDrawerIronSelect=function(G){_.mk(G).id==="guide"&&this.processDrawerIronSelect()};
_.V.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var G="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(G="opened"));_.xy(this.hostElement,"yt-autonav-pause-guide-"+G)};
_.V.onAddElementToApp=function(G){_.z1(this.hostElement).appendChild(G.detail)};
_.V.onThrottledScroll=function(){var G=_.v_().resolve(_.y$).getCurrentPage();G&&(this.scrollAtTop=G.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.V.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.V.setFullscreen=function(){if(_.R("external_fullscreen")||!this.isWatchPage){var G=_.R("kevlar_fullerscreen_root_only_killswitch")?!!_.Ab():!!_.Ab()&&_.Ab()===document.documentElement;G=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(G||this.isFullWindowSession);this.fullscreen!==G&&((this.fullscreen=G)&&_.UW(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Yt().dispatch(_.c$P(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.Pi(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.V.setFullscreenLoggingForShorts=function(G){var e,r,Z;return _.D(function(O){if(O.nextAddress==1)return O.yield((e=_.Ff())==null?void 0:e.getPlayerPromise(),2);r=O.yieldResult;(Z=r)==null||Z.setAppFullscreen(G);_.HL(O)})};
_.V.updateMastheadCssHeight=function(){var G=this.mastheadHeight;this.fullscreen&&(G=0);_.eD(this.hostElement,{"--ytd-masthead-height":G+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.V.updateNetworkStatusBannerDisplayStatus=function(){var G="unset";this.fullscreen&&(G="none");_.eD(this.hostElement,{"--ytd-network-status-banner-display":G})};
_.V.updateNetworkStatusBannerCssHeight=function(){var G="unset";this.fullscreen&&(G="0px");_.eD(this.hostElement,{"--ytd-network-status-banner-max-height":G})};
_.V.updateScrollAndMasthead=function(G,e,r,Z){this.iMaxTheaterMode||(Z=!1);var O=_.v_().resolve(_.y$).getCurrentPage();G||e||Z?(document.body.classList.add("no-scroll"),O.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.ZQ(this,this.onScroll)),O.setScrollTop(0),_.eD(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.fv()+"px"})):r?_.xy(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.xy(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
O.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.ZQ(this,this.onScroll)));this.mastheadHidden=G||e||r;this.updateMastheadCssHeight();_.R("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.V.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.V.onYtNavigateAction=function(G){G=this.get("navigateAction.endpoint",G);_.xy(this.hostElement,"yt-navigate",{endpoint:G})};
_.V.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var G=document.createElement("yt-create-family-dialog");_.z1(this.hostElement).appendChild(G);this.hasCreateFamilyDialog=!0}};
_.V.onSetPushNotificationsEnabledCommand=function(G){var e=this,r=_.a(G,Lja);r&&typeof r.enabled==="boolean"&&(Notification.permission!=="granted"?hPW().then(function(){Notification.permission==="granted"?(F2Y(!r.enabled).then(xq2),r.successAction&&_.zw(e.hostElement,[r.successAction])):r.failureAction&&_.zw(e.hostElement,[r.failureAction])}):(F2Y(!r.enabled).then(xq2),r.successAction&&_.zw(this.hostElement,[r.successAction])))};
_.V.onYtSignalActionEnableChromeNotifications=function(){TpA(!0)};
_.V.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.a(this.topbarData.hotkeyDialog,ZwA)}}})};
_.V.onYtSignalActionShowKeyboardShortcutDialog=function(){_.Pi(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.V.onYtEndpointChangeHandler=function(G,e){var r=_.Yi(_.aT);r.pendingPrefetchJob_&&(e=!(!e||e.autonav!="1"),r.pendingPrefetchJob_.resolve(G&&_.iXS(G)?_.bXf(G,e):""),r.pendingPrefetchJob_=null);_.Pi(this.hostElement,"yt-pause-active-page-context");_.Pi(this.hostElement,"ytd-log-youthere-nav");_.Pi(this.hostElement,"yt-prepare-page-dispose")};
_.V.handleCommandWithCommandHandler=function(G,e){_.Ga.instance.resolveCommand(G,{form:{element:e}})};
_.V.onYtTimedCommand=function(G){var e=this;G=_.a(G,yEC);var r=G.command;r&&_.Zk(_.A0,function(){var Z=_.a(r,_.v9w);Z?(_.Ga.instance.resolveCommand(r),e.maybeLogGetAnswerRequestTick(Z)):_.Wi(e.hostElement,[r],e.hostElement)},G.timeoutMs||0)};
_.V.maybeLogGetAnswerRequestTick=function(G){G&&G.isFirstRequest&&(_.Rl("search_overview_answer"),_.jq("so_rq",void 0,"search_overview_answer"))};
_.V.onYtSignalActionSkipNavigation=function(){var G=_.v_().resolve(_.y$).getCurrentPage();_.Mh(G)};
_.V.onYtSignalActionCopyDebugData=function(){RP2()};
_.V.handleEntityUpdateCommand=function(G){_.V4(_.a(G,_.ugE).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.V.logFlowLoggingEventCommand=function(G){if(G=_.a(G,_.x3S))if(G.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var e=G.flowEventNamespace,r=G.flowEventType,Z=G.flowType;Z&&e&&r&&_.ZXN(_.eF(e,r,G.flowEventMetadata),Z)}else{e=_.r0();r=G.flowEventNamespace;Z=G.flowEventType;var O=G.flowType;O&&r&&Z&&e.logFlowEvent(_.eF(r,Z,G.flowEventMetadata),O,G.flowNonce)}};
_.V.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.V.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.V.onTouchStart=function(){var G=_.fh();_.l4()&&_.sb(G.JSC$13307_screenManager,{visualElement:G.ve})};
_.V.handleSelectLanguageCommand=function(G){if(G=_.a(G,zUo).hl){var e=_.hy();e.set("hl",G);e.save();_.v_().resolve(_.X9).reload()}};
_.V.handleConfirmDialogEndpoint=function(G){(G=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(G))&&this.ytOpenPopupBehavior.openPopup(G)};
_.V.handleOpenPopupNavigationEndpoints=function(G,e){(G=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(G))&&this.ytOpenPopupBehavior.openPopup(G,e)};
_.V.handleSaveCommandToSessionStorage=function(G){if(G=_.a(G,_.tfW)){var e=G.key;e&&G.command&&window.sessionStorage.setItem(e,JSON.stringify(G.command))}};
_.V.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(G){G&&G.active&&G.active.postMessage({type:"refresh_shell"})}).catch(function(G){G.name!=="SecurityError"&&_.yx(G)})};
_.V.onDeviceThemeChanged=function(){var G=_.H1();_.Tn(_.hy(),185,G);_.hy().save()};
_.V.handleYtRegisterPromoCommand=function(G){if(_.a(G,NZ2)){var e=_.v_().resolve(_.y$).getCurrentPage()||this.hostElement;PNa().registerPromoCommand(_.a(G,NZ2),e)}};
_.V.onYtNavigateHomeAction=function(){if(!_.R("kevlar_miniplayer_navigate_home_from_app_killswitch")){var G,e,r,Z,O=(Z=(G=this.topbarData)==null?void 0:(e=G.logo)==null?void 0:(r=e.topbarLogoRenderer)==null?void 0:r.endpoint)!=null?Z:_.Q_;this.ytComponentBehavior.resolveCommand(O)}};
_.V.onYtLocationCollectionCommand=function(G){uko(_.a(G,iw8))};
_.V.onYtGetLocationCommand=function(G){mSB(_.a(G,EEY),this)};
_.V.updateRenderGuideFromBinding=function(G){this.renderGuide=G.detail.value};
_.V.updateGuidePersistentAndVisibleFromBinding=function(G){this.guidePersistentAndVisible=G.detail.value};
_.V.updateMiniGuideVisibleFromBinding=function(G){this.miniGuideVisible=G.detail.value};
_.V.onThemeSelected=function(G,e){var r=_.hy(),Z=G||e?G:_.H1(),O=(Z&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!Z&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.vEN(_.Kr(window.location.href));_.Tn(0,165,G);_.Tn(0,174,e);r.save();O&&_.Pi(this.hostElement,"yt-dark-mode-toggled-action",[Z]);_.Pi(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.V.getCurrentTheme=function(){return _.oB()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.d0()};
_.V.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.V.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.V.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.V.handleShowConsentPrimitive=function(G){var e=this,r,Z;return _.D(function(O){if(O.nextAddress==1){try{r=(Z=_.Ff())==null?void 0:Z.getPlayerPromise()}catch(M){}return O.yield(eFa(G,r),2)}_.Pi(e.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.HL(O)})};
_.V.handleSelectActiveIdentityEndpointInternal=function(G){_.Ka();G=_.a(G,_.dCW);if(G!=null&&G.supportedTokens){G=_.h(G.supportedTokens);for(var e=G.next();!e.done;e=G.next())e=e.value,e.accountSigninToken&&_.kN(e.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.V.handleUpdatePermissionRoleCommand=function(G){if(G=_.a(G,_.sqE)){var e;this.hasDelegation=!((e=_.a(G.renderer,_.o0S))==null||!e.status)}};
_.V.registerWithViewTransitionManager=function(){var G=_.v_().resolve(_.bq(_.oY));if(G){var e,r=(e=this.guide)==null?void 0:e.querySelector("#scrim"),Z;e=(Z=this.guide)==null?void 0:Z.querySelector("#contentContainer");r&&e&&G.isAnyTransitionEnabled&&(Z={},G.viewTransitionCoordinator.registerElement(r,(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)),r={},G.viewTransitionCoordinator.registerElement(e,
(r.slide="app-drawer-container-page-transition",r["lockup-to-watch"]="app-drawer-container-page-transition",r["learning-journey"]="app-drawer-container-page-transition",r)))}};
_.iY.Object.defineProperties(Ck.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.R("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.iY.Object.defineProperties(Ck,{template:{configurable:!0,enumerable:!0,get:function(){if(vlW===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.z().content.cloneNode(!0),G.content.firstChild);vlW=G}G=vlW;return G}}});
Ck.prototype.onOpenHotkeyDialog=Ck.prototype.onOpenHotkeyDialog;Ck.prototype.setFullscreen=Ck.prototype.setFullscreen;Ck.prototype.onAddElementToApp=Ck.prototype.onAddElementToApp;Ck.prototype.onDrawerIronSelect=Ck.prototype.onDrawerIronSelect;Ck.prototype.onGuideOpenButtonHover=Ck.prototype.onGuideOpenButtonHover;Ck.prototype.onRequestPanelModeChange=Ck.prototype.onRequestPanelModeChange;Ck.prototype.onPageDataUpdated=Ck.prototype.onPageDataUpdated;Ck.prototype.onPageChanged=Ck.prototype.onPageChanged;
Ck.prototype.onSetTheaterModeEnabled=Ck.prototype.onSetTheaterModeEnabled;Ck.prototype.updateMastheadData=Ck.prototype.updateMastheadData;Ck.prototype.onYtPageManagerAttached=Ck.prototype.onYtPageManagerAttached;Ck.prototype.observePersistentPanelVisibility=Ck.prototype.observePersistentPanelVisibility;Ck.prototype.observeGuideVisibility=Ck.prototype.observeGuideVisibility;Ck.prototype.guideIsVisibleButNotPersistentSelectorChanged=Ck.prototype.guideIsVisibleButNotPersistentSelectorChanged;
Ck.prototype.isInlinePreviewEnabledChanged=Ck.prototype.isInlinePreviewEnabledChanged;Ck.prototype.isWatchPageChanged=Ck.prototype.isWatchPageChanged;Ck.prototype.dispatchFrostedGlassMode=Ck.prototype.dispatchFrostedGlassMode;_.B([_.k(_.A5),_.x("design:type",Object)],Ck.prototype,"ytdReduxBehavior",void 0);_.B([_.k(_.Qy.YtEventForwardingBehavior),_.x("design:type",Object)],Ck.prototype,"ytEventForwardingBehavior",void 0);
_.B([_.k(_.qG.YtOpenPopupBehavior),_.x("design:type",Object)],Ck.prototype,"ytOpenPopupBehavior",void 0);_.B([_.k(_.gF.YtActionHandlerBehavior),_.x("design:type",Object)],Ck.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.k({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.e8.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.R("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var G;((G=this.actionRouterNode.hostElement)!=null?G:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var G;((G=this.actionRouterNode.hostElement)!=null?G:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(G){this.actionRouter_.handleAction(G.detail)}}),
_.x("design:type",Object)],Ck.prototype,"ytActionRouterBehavior",void 0);_.B([_.k(eHo.YtdAppBehavior),_.x("design:type",Object)],Ck.prototype,"ytdAppBehavior",void 0);_.B([_.k(_.t4.YtEndpointBehavior),_.x("design:type",Object)],Ck.prototype,"ytEndpointBehavior",void 0);_.B([_.k(toY.YtEndpointHandlerWithYpcBehavior),_.x("design:type",Object)],Ck.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.B([_.k(w7W.YtLogYpcFlowCommandsBehavior),_.x("design:type",Object)],Ck.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.B([_.k(_.W.YtRendererBehavior),_.x("design:type",Object)],Ck.prototype,"ytRendererBehavior",void 0);_.B([_.k(_.F9.YtComponentBehavior),_.x("design:type",Object)],Ck.prototype,"ytComponentBehavior",void 0);_.B([_.n({selector:_.dvB}),_.x("design:type",Object)],Ck.prototype,"tabGesturesIsActive",void 0);_.B([_.n(),_.x("design:type",Boolean)],Ck.prototype,"renderGuide",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ck.prototype,"guidePersistentAndVisible",void 0);_.B([_.n({selector:_.HaH}),_.x("design:type",Boolean)],Ck.prototype,"guideIsVisibleButNotPersistent",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Ck.prototype,"standalone",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ck.prototype,"miniGuideVisible",void 0);
_.B([_.n(),_.x("design:type",Object)],Ck.prototype,"persistentPanelEnabled",void 0);_.B([_.n({selector:uDH,reflectToAttribute:!0}),_.x("design:type",Boolean)],Ck.prototype,"persistentPanelVisible",void 0);_.B([_.n({selector:_.n0F}),_.x("design:type",Number)],Ck.prototype,"miniplayerPlaybackState",void 0);_.B([_.n({selector:_.j6,reflectToAttribute:!0}),_.x("design:type",Boolean)],Ck.prototype,"miniplayerIsActive",void 0);
_.B([_.n({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.x("design:type",Boolean)],Ck.prototype,"isInlinePreviewEnabled",void 0);_.B([_.n(),_.x("design:type",Boolean)],Ck.prototype,"isInlinePreviewDisabled",void 0);_.B([_.n({reflectToAttribute:!0,value:function(){return _.PX("START_IN_FULL_WINDOW_MODE")}}),
_.x("design:type",Boolean)],Ck.prototype,"mastheadHidden",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ck.prototype,"playerFullscreen",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ck.prototype,"fullscreen",void 0);_.B([_.n({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Ck.prototype,"hideHeaderShadow",void 0);
_.B([_.n({value:{GUIDE_ALT_LABEL:_.OK("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.x("design:type",Object)],Ck.prototype,"menuStrings",void 0);_.B([_.n({computed:"computeTopbarData(data)"}),_.x("design:type",Object)],Ck.prototype,"topbarData",void 0);_.B([_.n({selector:_.Iss,reflectToAttribute:!0}),_.x("design:type",Boolean)],Ck.prototype,"isWatchPage",void 0);_.B([_.n({selector:_.pkN,reflectToAttribute:!0}),_.x("design:type",Boolean)],Ck.prototype,"isShortsPage",void 0);
_.B([_.n({selector:function(G){return _.aI(G)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.x("design:type",Boolean)],Ck.prototype,"isMiniAppPage",void 0);_.B([_.n({selector:function(G){return _.aI(G)==="WEB_PAGE_TYPE_BROWSE"}}),
_.x("design:type",Boolean)],Ck.prototype,"isBrowsePage",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ck.prototype,"scrolling",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Ck.prototype,"hasDelegation",void 0);_.B([_.n({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Ck.prototype,"guideScrolledByTouch",void 0);_.B([_.n(),_.x("design:type",Object)],Ck.prototype,"isFrostedGlassInitialized",void 0);
_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Ck.prototype,"frostedGlassExp",void 0);_.B([_.n({selector:function(G){return G.ui.chipBarIsSticky}}),
_.x("design:type",Boolean)],Ck.prototype,"chipBarIsSticky",void 0);_.B([_.n({computed:"computeIsHomePage(isBrowsePage, data)"}),_.x("design:type",Boolean)],Ck.prototype,"isHomePage",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Ck.prototype,"hasPendingWatchNavigation",void 0);_.B([_.n({reflectToAttribute:!0}),_.x("design:type",Object)],Ck.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.B([_.n(),_.x("design:type",Object)],Ck.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.B([_.yC("guide"),_.x("design:type",Object)],Ck.prototype,"guide",void 0);_.B([_.yC("guide-service"),_.x("design:type",FAV)],Ck.prototype,"guideService",void 0);_.B([_.yC("guide-inner-content"),_.x("design:type",HTMLDivElement)],Ck.prototype,"guideInnerContent",void 0);_.B([_.hs("#persistent-panel-container"),_.x("design:type",HTMLElement)],Ck.prototype,"persistentPanelContainer",void 0);
_.B([_.n({selector:_.mGA}),_.x("design:type",String)],Ck.prototype,"frostedGlassMode",void 0);_.B([_.Me("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ck.prototype,"dispatchFrostedGlassMode",null);_.B([_.n({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.x("design:type",Object)],Ck.prototype,"isFrostedGlassDisabled",void 0);
_.B([_.Me("isWatchPage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ck.prototype,"isWatchPageChanged",null);_.B([_.d("isHomePage","chipBarIsSticky"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ck.prototype,"applyFrostedGlassToChipBar",null);_.B([_.n(),_.x("design:type",Object)],Ck.prototype,"isChannelOrPlaylistPage",void 0);
_.B([_.iD("isInlinePreviewEnabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ck.prototype,"isInlinePreviewEnabledChanged",null);_.B([_.Me("guideIsVisibleButNotPersistent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ck.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.B([_.Me("guidePersistentAndVisible","miniGuideVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ck.prototype,"observeGuideVisibility",null);_.B([_.Me("persistentPanelVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ck.prototype,"observePersistentPanelVisibility",null);
_.B([_.Om("attached"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Ck.prototype,"onYtPageManagerAttached",null);_.B([_.Me("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],Ck.prototype,"updateMastheadData",null);_.B([_.Om("yt-set-theater-mode-enabled"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],Ck.prototype,"onSetTheaterModeEnabled",null);
_.B([_.Om("yt-page-type-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Ck.prototype,"onPageChanged",null);_.B([_.Om("yt-page-data-updated"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ck.prototype,"onPageDataUpdated",null);_.B([_.Om("yt-request-panel-mode-change"),_.x("design:type",Function),_.x("design:paramtypes",[Event,Object]),_.x("design:returntype")],Ck.prototype,"onRequestPanelModeChange",null);
_.B([_.Om("yt-guide-hover"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ck.prototype,"onGuideOpenButtonHover",null);_.B([_.Om("app-drawer-transitioned"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Ck.prototype,"onDrawerIronSelect",null);_.B([_.Om("yt-add-element-to-app"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Ck.prototype,"onAddElementToApp",null);
_.B([_.Om("yt-set-fullerscreen-styles"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ck.prototype,"setFullscreen",null);_.B([_.Om("yt-open-hotkey-dialog"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ck.prototype,"onOpenHotkeyDialog",null);_.B([_.c({is:"ytd-app"})],Ck);_.rk().processSignal("eor");
_.AA();
}catch(e){_._DumpException(e)}
try{
_.yT("NSzT5");
var tDm;_.P7=function(G){var e=document.createElement("link");_.Ef(e,G,"stylesheet");document.head.appendChild(e)};
_.U$=function(G,e){var r,Z;return _.D(function(O){r=document.createElement("div");r.id=G.id;G.className&&(r.className=G.className);Z=G.element;if(!Z)throw Error("gk");if(G.location==="prepend")Z.prepend(r);else if(G.location==="appendChild")Z.appendChild(r);else if(G.location==="after")Z.after(r);else throw Error("hk");return O.return(_.cX(r,e,"Ui"))})};
_.z0=function(G){var e;return _.D(function(r){(e=document.getElementById(G))&&e.remove();_.HL(r)})};
_.W7=function(G,e){var r=document.querySelector(G);r?e(r):setTimeout(function(){_.W7(G,e)},1E3)};
_.gPH=function(G,e,r){var Z;_.D(function(O){if(O.nextAddress==1)return(Z=document.getElementById(G))?O.jumpTo(2):O.yield(tDm(G,e,r),2);if(Z=document.getElementById(G))Z.style.display="block";_.HL(O)})};
tDm=function(G,e,r){return _.D(function(Z){return Z.return(new Promise(function(O){_.W7("div #panels",function(M){_.U$({element:M,location:"appendChild",id:G,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+r},e);O()})}))})};
_.aQ8=function(G){G=G===void 0?"":G;_.z0("creator_chatbots-entry-point");_.z0("creator_chatbots-panel");_.P7(lQo);_.W7("ytd-watch-metadata #top-level-buttons-computed",function(e){document.getElementById("creator_chatbots-entry-point")||(_.U$({element:e,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.v(Rc2,{creatorChannelId:G})}),_.gPH("creator_chatbots-panel",function(){return _.v(jRY,{usePlayerHeight:!0,
creatorChannelId:G})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))})};_.NE=_.y(function(G){var e=G.text;var r=G.onClick;var Z=G.color;var O=G.backgroundColor;var M=G.buttonSize;var T=G.disabled;var E=G.iconName;var b=G.iconSize;G=G.className;var w=_.ev(function(t){r(t)}),q={};
return _.v("button",{class:_.LC("ytpStandardButtonsHost",(q.ytpStandardButtonsLarge=function(){return(M==null?void 0:M())==="large"},q),G),
"on:click":w,style:_.Mk({color:Z,"background-color":O}),disabled:T}," ",_.v(_.S,{cond:E,then:function(){return _.v(_.V$,{className:"ytpStandardButtonsIconContainer",icon:E,size:b})}}),e)},"Ti");_.Xxd=_.y(function(G){var e,r={};return _.v("div",{class:_.LC("ytprototypesEngagementPanelComponentHost",(r.ytprototypesEngagementPanelComponentHostMweb=G.isMweb,r),G.className),id:G.id},_.v("div",{class:_.LC("ytprototypesEngagementPanelComponentEngagementPanelHeader",G.headerClassName)},_.v("div",null,G.header()),_.v("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.v("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(e=G.HeaderButton)==null?void 0:e.call(G)),
_.v(_.NE,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",onClick:function(){var Z;(Z=G.onHide)==null||Z.call(G);var O;if((O=G.preventDefault)==null||!O.call(G))if(Z=G.id(),Z=document.getElementById(Z))Z.style.display="none"}}))),_.v("div",{class:_.LC("ytprototypesEngagementPanelComponentEngagementPanelContent",G.contentClassName),
style:function(){var Z,O;return"height: "+(((Z=G.height)==null?0:Z.call(G))||((O=G.isMweb)==null?0:O.call(G))?"100%":"800px")+";"}},G.content()))},"Vi");var KrA=_.Cp(["https://portraits.google.com"]),fQo=_.Cp(["https://labs-characters.teams.x20web.corp.google.com"]),koW=_.Cp(["https://portraits.google.com/gallery?ytChannelId=",""]),HRW=_.qK(KrA),Lv=_.qK(fQo),jRY=_.y(function(G){function e(g){var l;if(g=(l=g.detail)==null?void 0:l.endpoint){l=_.a(g,_.Mv);var X;l&&((X=l.browseId)==null?0:X.startsWith("UC"))&&l.browseId!==O()&&(_.z0("creator_chatbots-panel-persistent"),q.removeEventListener("yt-navigate-start",e))}}
var r=G.usePlayerHeight;var Z=G.isPersistentPanel;var O=G.creatorChannelId;var M=_.R("enable_creator_chatbots_extension_dev_server"),T=document.createElement("iframe"),E=M?Lv:HRW;_.YZ(function(){var g=O();g=M?Lv:_.qK(koW,g);_.v5U(T,1,g)});
T.className="ytprotoCreatorChatbotsAppLabsIframe";T.allow="microphone; clipboard-read; clipboard-write self "+E;var b=function(){var g;return _.D(function(l){if(l.nextAddress==1)return l.yield(_.v_().resolve(_.Ub),2);(g=l.yieldResult)&&g.pauseVideo();_.HL(l)})},w=function(){var g,l,X;
return _.D(function(H){return H.nextAddress==1?H.yield(_.v_().resolve(_.Ub),2):(g=H.yieldResult)?H.return({video_id:(X=(l=g.getVideoData())==null?void 0:l.video_id)!=null?X:"",timestamp_sec:g.getCurrentTime().toString()}):H.return({})})};
window.addEventListener("message",function(g){var l,X,H,I,C,u;return _.D(function(P){if(P.nextAddress==1){l=M?Lv.toString():HRW.toString();if(g.origin!==l)return console.warn("Received message from untrusted origin:",g.origin),P.return();X=g.data;if(typeof X!=="object"||X===null||!X.action)return P.return();if(X.action==="pause")return P.yield(b(),0);if(X.action!=="getYouTubeContext"||!g.source)return P.jumpTo(0);H=g.source;I=H.postMessage;C=JSON;u=C.stringify;return P.yield(w(),7)}I.call(H,u.call(C,
{youTubeContext:P.yieldResult}),{targetOrigin:g.origin});return P.jumpTo(0)})});
_.iC("yt-page-type-changed",function(){if(Z==null?0:Z()){var g;((g=_.v_().resolve(_.y$).getCurrentPage())==null?void 0:g.pageSubtype)!=="channels"&&(g=document.getElementById("creator_chatbots-panel-persistent"))&&(g.style.display="none")}});
var q=_.v_().resolve(_.X9),t;(t=q)==null||t.addEventListener("yt-navigate-start",e);_.yD(function(){var g;(g=q)==null||g.removeEventListener("yt-navigate-start",e)});
return _.v("div",{class:"ytprotoCreatorChatbotsAppHost",style:function(){return(r==null?0:r())?"height: var(--ytd-watch-flexy-panel-max-height);":"height: 100%;"}},_.v(_.Xxd,{id:function(){return(Z==null?0:Z())?"creator_chatbots-panel-persistent":"creator_chatbots-panel"},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:function(){var g=M?Lv.toString():HRW.toString(),l;(l=T.contentWindow)==null||l.postMessage("ep_closed",g)},
header:function(){return _.v("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.v("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to the Creator"),_.v(_.PZ,{data:{text:"AI experiment",type:0}}))},
HeaderButton:function(){return _.v(_.NE,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",onClick:function(){_.er(window,_.Y$(M?Lv.toString():E.toString()+"/gallery?ytChannelId="+O()),"_blank")}})},
content:function(){return T}}))},"Xi");var deH,lQo,Rc2;deH=_.Cp(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);lQo=_.qK(deH);Rc2=_.y(function(G){var e=G.creatorChannelId;var r=function(){_.gPH("creator_chatbots-panel",function(){return _.v(jRY,{usePlayerHeight:!0,creatorChannelId:e})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.v("div",{class:"ytd-menu-renderer"},_.v(_.vk,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:r}},
icon:function(){return _.v(_.V$,{icon:"SPARK"})}}))},"Yi");
_.dtl=function(G){G=G===void 0?"":G;var e;return _.D(function(r){return(e=document.getElementById("creator_chatbots-panel-persistent"))?(e.style.display==="none"&&(e.style.display="block"),r.jumpTo(0)):r.yield(new Promise(function(Z){_.W7("ytd-app",function(O){_.U$({element:O,location:"appendChild",id:"creator_chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.v(jRY,{isPersistentPanel:!0,
creatorChannelId:G})});
Z()})}),0)})};
_.AA();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
